Wrong VulkanHandle Equals

The operator == is wrong of VulkanHandle and does not compare correct when left is null:
Should be
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static bool operator ==(VulkanHandle<THandle> left, VulkanHandle<THandle> right)
{
	if (ReferenceEquals(left, right))
	{
		return true;
	}

	return left?.Equals(right) ?? false;
}

Hey! Sorry for late reply, but I only noticed this issue now ^^. It must have slipped past me somehow.
Could you provide a simple failing sample?

Currently the == operator is overloaded as follows:
public static bool operator ==(VulkanHandle<THandle> left, VulkanHandle<THandle> right)
{
    left?.Equals(right) ?? false;
}

If only left is null, they are not considered equal. If both left and right are null, they are also not considered equal (similar to how null compares to null by default).
This == operator in turn calls out the overloaded Equals method which is defined as follows:
public override bool Equals(object obj)
{
    if (ReferenceEquals(null, obj)) return false;
    if (ReferenceEquals(this, obj)) return true;
    if (obj.GetType() != GetType()) return false;
    return Handle.Equals(((VulkanHandle<THandle>)obj).Handle);
}

In which the reference equality is included.

On a side note, I was hesitant to overload equality for handle types in the first place and I might remove it at some point (unless proven that it's of any use).

Of course, take look at this code:
private static Instance _instance;

pubic void SomeMethod()
{
           if(_instance == null)  // This does not work
              _instance = new Instance();
}

Aha, of course - thanks for pointing this out!
I've decided to remove the entire custom equality comparison for handles. It's sole purpose was to provide a shorthand to compare if two instances of VulkanHandle{} classes contain the same underlying handle, but it might as well be done by comparing VulkanHandle{}.Handle properties directly.
I'll push a new nuget version soon.

New alpha11 nuget package is now available.

I've removed custom equality comparison for all handle types (https://github.com/discosultan/VulkanCore/commit/0ecca37c3525ca2e316cd0e8df8f56c7caa9e374) to reduce complexity/confusion. It didn't really provide any value.

Since there are no release notes available for alphaXX releases, I'll also mention here that I've also removed Image.BackingMemory and Buffer.BackingMemory properties (https://github.com/discosultan/VulkanCore/commit/d4229876e02d00eddb0dc4fa35ec658c768f823c). The reasoning here being that the property did not properly reflect bound memory in cases where an image was acquired from a swapchain, for example. It should be application's responsibility to track buffer and image resources along with their bound memory handles.

Thank you


Fix make test

- Description of the problem which is fixed/What is the use case
make test is failing on the devel branch.
- What I did

git clone https://github.com/openshift/sandboxed-containers-operator.git
git checkout devel
make test

- How to verify it
make test should succeed.
- Description for the changelog
The real fixes are the second commit that adapts the tests to the new logic in the controller code introduced by #300,
and the third commit that adds the CRD of the ContainerRuntimeConfig to the test suite.
First commit is a cosmetic fix that make the timestamps human readable in the controller logs. It can only be tested in a situation where make test fails, e.g. before applying the other patches of this PR.
Fixes https://issues.redhat.com/browse/KATA-2167

Forced push because this needed rebase.
Added the do-not-merge label back because I'm now getting an error when tearing the test down, likely a regression caused by #307 that I wasn't getting before of course ... :disappointed:

The test framework is basically creating a k8s cluster, starting the operator inside it and exercising some actions like a user could achieve with the oc CLI. This looks more like integration testing than actual unit testing. It is very slow : up to 5 minutes, for just 6 high level trivial test cases and more than 50% of the code is there to mimick the behavior of the MCO as expected by the controller.
Adapting the tests to the changes introduced by #291 and #300 is only about adding a lot more of this MCO mimicking code. I've already added ~100 LoCs in my local repo and I'm still not there yet. It doesn't seem reasonable to invest so much effort for such a limited benefit.
@pmores suggested another direction : try to run a real MCO in the test cluster. This would allow to fully get rid of the mimicking code and to focus on actual test cases. This is future work, so I'm closing this PR.


Boolean Conditions in Where Clause

When using the Where clause like this:
var query = new Query("table").Select("*").Where("column", "=", true)

This gives an output as shown below for SQL Server
SELECT
  *
FROM
  [table]
WHERE
  [column] = true

For SQL Server since boolean is not supported we need to use bit 0/1.
If I use .WhereTrue("column") it works fine.
Not sure if in above scenario it needs to be fixed?

#437
#510


question about training

I wonder that could the modality A interact with modality B in training?
I guess that each tokenizer process their modality sperately, each modality was transformed by the freezed encoder(concat all the data and set the attention mask if modality A can not interact with modality B, or just forward 12 times?), and each modality was sent to its head to calculate loss.
Am I right?

Thank you for your interest in Meta-Transformer. In our paper, we introduce how we conduct multimodal experiments e.g. audio-visual semantic segmentation on Page23 SecC.1. Without any fusion module, Meta-Transformer can outperform existing state-of-the-art methods directly, as experimental results are shown in Table.13. We simply CONCATENATE these visual and audio embeddings after Data2Seq tokenization. We believe that the modality-shared encoder can learn modality-invariant patterns, at the same time, it can also autonomously fuse multimodal features. If you have any question, please let me know.

All modalities share one training with multi-task loss, or 12 trainings, each training has one task loss?

Thank you for your interest in Meta-Transformer. In our paper, we introduce how we conduct multimodal experiments e.g. audio-visual semantic segmentation on Page23 SecC.1. Without any fusion module, Meta-Transformer can outperform existing state-of-the-art methods directly, as experimental results are shown in Table.13. We simply CONCATENATE these visual and audio embeddings after Data2Seq tokenization. We believe that the modality-shared encoder can learn modality-invariant patterns, at the same time, it can also autonomously fuse multimodal features. If you have any question, please let me know.

What does the attention mask look like during training?

The former did not lead to training divergence. The latter also works. In addition, training with several of the 12 modalities can also benefit from Meta-Transformer. It's up to you to manage your experimental settings.

The former did not lead to training divergence. The latter also works. In addition, training with several of the 12 modalities can also benefit from Meta-Transformer. It's up to you to manage your experimental settings.

I just wonder that meta-transformer will choose which one? There is a little imformation about training in paper.


Formik's handleSubmit enable type check

Currently, handleSubmit is used as handleSubmit as any as otherwise it emits a type error.
The issue is mentioned here. Although it is marked as closed, it is not elegantly solved yet. Check the comments there and remove as any once it is fixed.

No fix yet :(

If anyone still tackles with it: @wsdt offered a walkaround (which walks around Typescript purpose as well) ->
onPress={handleSubmit as any}


how to compile?

i know this thing is like 12 years old but how do i compile it

I tried to compile this too but it seems like you need a very very old version of QT5 that no distribution packages.

Edit: It seems like this fork compiles successfully with QT5 👀 https://github.com/imbavirus/mazecompositor
If you have a C++ compiler, GNU Make and Qt5 installed you should be able to compile it:
qmake
make -j$(nproc)


Add ability to transform uploaded code to screenshot

I have multiple ways in mind, but for now this is the goal:
ssh codesnap.sh image=true < main.go
// output should give link to image

the screenshot should be styled for social media.
e.g.

Something that can be useful to integrate this:
https://github.com/carbon-app/carbon

for simplicity reasons the images can be stored on the same instance and served through the same Go server. If the demand increases, an object storage instance, having an S3 compatible API, will be acquired; but let's not think that far ahead, and focus on building a simple version of this

or instead of storing the image on the server, we could just keep storing code like we are doing now, and let the frontend generate the image

we'll ditch the image=true command and do everything on the frontend for now, so we don't have to store anything. It seems like a better approach for now


is this project dead?

is this project dead?

Hello @PCAssistSoftware We are still all here :) And so sorry for inactively for a while. We are refratoring the base at the moment and you can see from develop branch instead.


projection: clipAngle as an option, and always clipExtent(frame)

Introduces two projection clipping methods:
New option: projection.clipAngle
a number, passed directly to the projection factory. This also forces fitting the projection to the frame with its restricted sphere path.
Always clip-to-frame
Systematically applies the clipRectangle post-clip stream transform. Benefits:

the user doesn’t have to add an explicit clip:"frame" option to the geo marks to avoid bleeding in the margins and between facets
the computed paths do not extend (invisibly) as much, which seems to make the SVG lighter, and in particular consume less memory when a map zoomed to a large scale has a "heavy" geo mark than spans the whole globe

Note that this is a lighter, less configurable version of #1150:

the projection is always clipped to the frame’s extent.
not trying to add a clip-to-sphere projection option.

The only drawback I've seen so far is that you can't have a "bleed edges" projection, where the interpolation of a polygon along the sphere is hidden by the frame. However, this can be approximated with negative margins, or a white stroke Plot.frame if you need facets (see examples in tests).
Since this changes almost all the test maps, I'm taking this as an opportunity to switch most of them from 50m to 110m geometries, in order to make the tests a bit faster, and the repo a bit smaller.
closes #1137
closes #1131
supersedes #1132 and #1150

It can definitely be an option on the projection and it also makes total sense to use projection clipping rather than svg clipping when it is set as an option on the mark.

If it’s a mark option, it should be two different options, though (or two different values of the same mark.clip option). Meaning I don’t think we should change the existing _mark.clip "frame" option to behave differently when you have a projection, since the result is not the same. (SVG clipping affects strokes and dot symbols that extend outside the frame, but projection clipping does not.)

I want it on by default: overlapping facets just look too bad. I'll give it another shot.

lgtm!


Fix/utf8 recognition

Worked on resolving the comment about problems with Utf8 recognition.
There are 2 commits, both work and solve the problem.
Personally I prefer the later one (current state of the branch), it moves the complexity of the Utf8 Byte count out of the parser itself.
The need for LangVersion 9 should be okay I guess, it allows the usage of the new return x switch-statement.

Thanks this looks like a great solution! I have some comments I'd love your responses to before I approve and merge, but I definitely like the second commit over the first.


Document that cloud provider must be configured in YAML for Windows clusters

The three options for cloud provider in YAML are aws, azure, and gce.
The custom cloud provider needs to be selected in the Rancher UI when the cluster is created.
This documentation should help prevent a bug that happens when you are using a cloud provider such as GCE, and you are running a Windows cluster, and you attempt to upgrade the cluster, but the cloud provider is not configured in the cluster YAML.
Context: https://github.com/rancher/rancher/issues/25671

Closing this issue because it is addressed by this commit https://github.com/rancher/docs/pull/2424/commits/22a65c0889bd5f97b3584b177558761b353c49ba


Always call update  of LBs for ASG changes

Fixed a bug where the ELBs were not getting updated with the correct instances for the ASG.

Coverage increased (+0.0001%) to 94.249% when pulling e4f91f218cf5ce366f589f875601dbe53be2fced on DenverJ:bugfix/autoscaling-update-elb into a2f5c41372f7bbad0f3bb075eb94b5fa5792c2f6 on spulec:master.

Coverage increased (+0.0001%) to 94.249% when pulling e4f91f218cf5ce366f589f875601dbe53be2fced on DenverJ:bugfix/autoscaling-update-elb into a2f5c41372f7bbad0f3bb075eb94b5fa5792c2f6 on spulec:master.


:sparkles: ActionBar & Personal chargeuptime

Added Message "x seconds until launch"
chargeuptime is now personal, they're in the player pref yaml file
Added one sound

Hey, sorry I've neglected this repo; it's been in my old account that I don't get notifications anymore. I'll review this and look at getting it merged and released if you'd still like.

I'll look into it !


connection from PC to crazyflie not working?

Hi,
I am trying to run the demo example "roslaunch crazyflie_demo teleop_xbox360.launch" and I get the data correctly from the crazyflie (battery, temperature, IMU) but for some reason I cannot send commands to the crazyflie using my logitech gamepad. I tried the cfclient and it works to receive data and control the crazyflie with the gamepad, but for some reason it is not working with your demo example. I tried also to use the logitech_gamepad.launch from the hector project (had to modify it as you did for the xbox360.launch, but also did not work). Any good way to debug this?
I am running ROS Jade, Ubuntu 14.04, Crazyflie 2.0.
Thanks for the help, great work and thank you for sharing!

Once you run roslaunch crazyflie_demo teleop_xbox360.launch, can you check rostopic echo /crazyflie/joy and see if you get any messages from the joystick back? Also, while you are doing that you can take a note of the axis and button mapping (just check which values change). If the rostopic doesn't publish, you might need to use another joystick device (e.g. /dev/input/js1).

Thanks so much for the quick reply. I was getting an error output on "joy" but since the program was continuing to print I could not see that yesterday. I had to install ros-jade-joy that for some reason it had not been installed. Now everything works! Thanks a lot for the help! I will be trying to modify your vicon demo for the qualisys mocap system during the day!

For some reason ros-jade-joy is not part of the default ros installation. Glad you figured it out!


Logger: Cant Disable, cant replace.

Versions

Python: 3.6.1
OS: Linux x 4.10.11-1-ARCH 1 SMP PREEMPT Tue Apr 18 08:39:42 CEST 2017 x86_64 GNU/Linux Arch Linux
Kivy: 1.10.0
Kivy installation method: From Kivy Docs

Description
What are you trying to get done:

Use my own custom pure Python logger sub-classed from builtin standard lib logging.
Be free to NOT use a logger.
Be free to Disable the logger.

What has happened:
Even on import kivy I already got an unwanted logger and an unwanted log file.
I need to disable builtin Kivy logger.
I need to be able to use my own custom logger if I want to.
What went wrong:

Completely Disable builtin default Kivy Logger.
Use my own custom pure Python logger sub-classed from builtin standard lib logging.

What did you expect?:
from kivy.logger import Logger
Logger.disabled = True

Should be enough to Completely Disable the Logger.
Or implement the reverse, create a kivy.enable_logger() that fires up builtin default Kivy logger.
Code and Logs
I do NOT want files on /home/juan/.kivy/logs/*
juan@x ~ $ python -c "import kivy"
[INFO   ] [Logger      ] Record log in /home/juan/.kivy/logs/kivy_17-05-17_18.txt
[INFO   ] [Kivy        ] v1.10.0
[INFO   ] [Python      ] v3.6.1 (default, Mar 27 2017, 00:27:06)
[GCC 6.3.1 20170306]
. . .

I can not Disable the Logger:
from kivy.logger import Logger
from kivy.config import Config
Logger.disabled = True
Config.set('kivy','log_enable', '0')
Logger = None
del Logger
# And I still got Logger messages somehow.

Example from Template still creates unwanted log files on /home/juan/.kivy/logs/kivy_DATE.txt:
from kivy.config import Config
from kivy.logger import Logger
Logger.disabled = True
Config.set('kivy','log_enable', '0')
# Logger = None  # You can try comment out this line,its the same results.
# del Logger  # You can try comment out this line,its the same results.

from kivy.app import App
from kivy.lang import Builder
from kivy.factory import Factory
from kivy.uix.boxlayout import BoxLayout

kv = """
#:import rand_float random.uniform

<CustomLabel@Label>:
    canvas.before:
        Color:
            rgb: [rand_float(0.3, 0.7) for _ in range(3)]
        Rectangle:
            pos: self.pos
            size: self.size
    text: 'New label'

<Test>:
    Button:
        text: 'Add a new label'
        on_press: root.add_label()
    BoxLayout:
        id: box
        orientation: 'vertical'
"""

class Test(BoxLayout):
    def __init__(self, *args, **kwargs):
        super(Test, self).__init__(*args, **kwargs)
        self.add_label()

    def add_label(self):
        self.ids.box.add_widget(Factory.CustomLabel())

class TestApp(App):
    def build(self):
        return Test()

if __name__ == '__main__':
    Builder.load_string(kv)
    TestApp().run()

Dont force a god-mode unkillable Logger by default.

See this link  for help

Ok, sorry, thats seems to fix the problem.

I'm still interested to know why
Config.set("kivy", "log_enable", "0")

does not help.  Did this use to work, but does not with current versions?

Calling
 os.environ["KIVY_NO_FILELOG"] = "1"

in the middle of imports breaks PEP8 E402 "module level import not at top of file". Is there a way to do it "right"?


Use the #[inline] macro on resampling functions

This should provide us a small performance boost when resampling
audio.

It looks like this optimization does not make anything faster.
It is possible that the Rust compiler already inlines functions when appropriate.


Networkmap changes to implement latest nms chart.

Description

changes in nms.tpl ,networkmap chart and implement them to get nms up and running using the latest BLOI networkMap chart (available in BLOI feature/ambassador branch - https://innersource.accenture.com/projects/BLOI/repos/platform-kubernetes-corda/browse/charts/networkMap) .

certificate creation for ssl communication with mongodb database.

Acceptance Criteria

Existing functionality should not hamper
Value and chart file should pass the helm lint without error.
Creation of mongodb certificate authority(if not catered at doorman level)
Certificate creation for mongodb server of nms and putting them into vault
nms should be up and running.
Playbook should run from ansible cli and complete network should be up and running from ansible cli too.
Update the doc to reflect the changes made

Closed as per #217


arm-none-eabi-g++

Is there a simple way to specify compiling with arm-none-eabi-g++ instead of arm-none-eabi-gcc??
Have a bug with my code C++ code and how it is linked. Want to cross off the possibility that the compiler is the issue.
Thanks in advance.
Mark

Did you ever get this fixed?

I actually did not, sorry I did not see this comment, I'll make sure I try to fix it. @markd666 do you have a simple example I can use to reproduce issues?

Also, do you mean arm-none-eabi-c++ ?

Ok, I have a PR to address this issue, I will merge it only if it is still relevant: #24

I found it useful and would like it merged


Background color in css does not change top notch

When overriding styles in Styled Components, setting the background-color does not change the color of the notch.
const StyledTooltip = styled(ReactTooltip)`
  // using !important to override styles from the library
  background-color: ${({ theme }) => theme.vars.foundationSurface2} !important;
  border-radius: ${({ theme }) => theme.constants.borderRadiusMd} !important;
`;

hi, @daceynolan can you let me your thoughts here, please? https://github.com/ReactTooltip/react-tooltip/pull/820#issuecomment-1317096074


refactor & feat: extract sd prompt component to handle prompt display and input

sd example and sd generator now use the same sd prompt component to display/edit prompt
sd prompt parser are now more forgivable and allow missing values (only prompt and negative prompt are required)
Add negative prompt when generating images online
Allow import stable diffusion webui format text from clipboard

Fixing eslint


How can i take snapshots for every second?

Great work. Really love to use webcam.js. I wanted to take snapshot for every second. I've tried with javascript timers. But getting script blocking issues. could you give me heads up to get that.

canvas.toDataURL is a fairly expensive operation, and it is used in the .snap method.
Try passing a new canvas to .snap for every frame. Stash those canvases in an array, and encode them at an appropriate time (like when the user stops recording)
// pass in a canvas as the second argument
snap: function(user_callback, user_canvas)

However, it looks like this will only work where getUserMedia is supported. The flash fallback uses base64 data regardless. Probably because it has to pass it from flash to js.
Just curious... what is your use-case for snapping an image every second?
If you are mainly supporting mobile devices, then you might want to look into HTML media input. It gives the user a lot of flexibility in how they want to input the video. They can choose to use a pre-recorded video file, or they can record a new video to use. And it's super simple to implement. It's just an input tag with an accept="video/*" attribute.

Not sure what you mean by "script blocking issues".  Remember that you need to host your page over HTTPS for most browsers to allow webcam access.  Here is a demo page showing continuous capture:
https://pixlcore.com/demos/webcamjs/demos/continuous.html
Hope this helps.

@positlabs Thanks for your inputs & quick response. Actually i'm sending a snap to server for every second and based on the response i'm displaying face co-ordinates with box(left,top,width,height with object) on the snap. For these process i wanted send a snap to the server for each second and based on the server response time callback should trigger for the next snap.
But as said that, canvas.toDataURL is expensive operation. I've gone thru the webcam.js, it's reading video based on the length. In the same i'm trying to display the snap. Can you help me here?

@jhuckaby  Really appreciate your efforts on the demo.
Basically timers are not preferable in my use case. because I've trigger callback based on the server response(please look into the above comment). Would it be possible to give me inputs to implement the same logic with callback or promises? That helps me a lot.

Sorry, I don't know what you're asking.  If you don't want to use timers, but you want to snap a pic every second, then I don't know how to help you.  Apologies.

As Joseph said, your problem statement isn't clear. From what I can gather,
you could try a leading or training debounce to control the rate of the
snaps between the timer and your response callback.
On 28 Oct 2016 11:04 p.m., "Joseph Huckaby"<EMAIL_ADDRESS>wrote:

Sorry, I don't know what you're asking. If you don't want to use timers,
but you want to snap a pic every second, then I don't know how to help you.
Apologies.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jhuckaby/webcamjs/issues/199#issuecomment-256960407,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AARUHQLYsNlIkZI7Vir_7LeIKNMXluqwks5q4h0DgaJpZM4Kisqr
.


AIException reference missing in dotnet - doesn't compile with main version of semantic kernel

I'm trying to compile the app with my own branch of semantic kernel I forked from main and it fails since can't find this AIException class.  Searching codebase cannot find it defined in dotnet code, only in python.  Even when searching release branch of exact version copilot uses from nuget I can't find it (0.21.230828.2-preview).  Any ideas how to get it working?

chat-copilot/webapi/Controllers/ChatController.cs(158,41): error CS0246: The type or namespace name 'AIException' could not be found (are you missing a using directive or an assembly reference?)

Hi @benm5678, thanks for filing this issue. It looks like AIException was recently removed from the Microsoft.SemanticKernel.Abstractions package in this release,  see this PR. Chat-copilot is currently using a slightly older of release and this is why you are seeing a mismatch.
We will update copilot-chat to the latest SK release early this week and we'll let you know when it's done.

@benm5678 we have updated the SK packages to 0.23.230906.2-preview. If you pull the latest from main it should resolve your issue. I'm closing this issue for now but please reopen it if you feel the issue is not resolved. Thanks!


BUG: torch.cuda.is_available is False with conda-forge install

Installed with conda create -n vak-tweetynet-tutorial vak tweetynet -c conda-forge
Then did
$ conda activate vak-tweetynet-tutorial
(vak-tweetynet-tutorial) bart@tandy:~/Documents/repos/coding/birdsong/tweetynet-vak-tutorial
$ python
Python 3.9.10 | packaged by conda-forge | (main, Feb  1 2022, 21:24:11)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.cuda.is_available()
False

Tried installing cudatoolkit but this did not fix it:
$ conda install cudatoolkit=10.2 -c pytorch
Collecting package metadata (repodata.json): done
Solving environment: done

I tested this on an up-to-date pop-os and had the same issue.
Should also test on Windows.

If I do conda create -n vak-env vak -c conda-forge -c pytorch on pop-os then torch.cuda.is_available() is now True
So maybe I just need to add that to install instructions?
Thought I tried that on Ubuntu though and it did not fix it
In general extra-verbose installs are annoying

Copying and pasting some helpful advice from @bollwyvl in the conda-forge gitter:

hm... might just be how you're installing torch: I can get it to solve with something like:
mamba create -n foo --dry-run vak 'pytorch=*=cuda'

pytorch                             1.10.2  cuda112py39h4de5995_1  conda-forge/linux-64      667MB
vak                                  0.4.1  pyhd8ed1ab_1           conda-forge/noarch         87kB

as a pure python package, seems like it's slightly beneficial, as it would work on e.g. binder for demo purposes, even if it's no good for produciton

you could, however, add a multi-output, and have yer own vak-gpu which further refined the dependency

well, there's this: https://github.com/conda-forge/rift-feedstock/blob/main/recipe/meta.yaml

there's a few ways to do a "pun" package (an output with the same name as the feedstock)

yeah, looks like rift does that just fine

so your vak-gpu might look like:

outputs:
- name: vak
- name: vak-gpu
  requirements:
    run:
      - {{ pin_subpackage("vak", max_pin="x.x") }}
      - cudnn

or something

but you probably won't be able to test it in CI

Thank you, I at least see that I can just add another name and separate run requirements
It's tricky because pytorch does this weird thing where you specify cudatoolkit as a separate package for a GPU install, or you specify cpuonly as a package (?) for CPU.
When installing from their channel.
Sorry if I'm telling you something you already know.
But it looks like rift-gpu is just, like rift with pytorch as the backend. I always need pytorch to be there :(

right: you always want pytorch, but if you also require a "sentinel" cuda package, that might be enough

nm, mamba create -n foo --dry-run vak pytorch cudnn does not blend

so there's gotta be some other way, but I am not the guy to know

well, there's pytorch-gpu, so mamba create -n foo --dry-run vak pytorch-gpu pytorch does the thing

so your vak-gpu could depend on pytorch-gpu and vak

Looking at what other libraries do

speechbrain: no conda install -- https://github.com/speechbrain/speechbrain#quick-installation
pyannote: verbose conda install -- https://github.com/pyannote/pyannote-audio#installation
fastai: has their own channel, but install looks terse -- https://github.com/fastai/fastai#installing

The fastai approach might be the least confusing for downstream users. So we'd need to set up a channel and write a recipe.
I don't see a separate recipe repo or any GitHub Actions that build it?
https://github.com/fastai/fastai/blob/master/environment.yml

To pick up: does the project have any value (e.g. is its test suite functional) if installed next to a cpu version of pytorch?
you could consider inverting the output described above, using run_constrained as a negative solver clause:
outputs:
- name: vak # default, tiny metapackage
  requirements:
    run:
      - {{ pin_subpackage("vak-core", max_pin="x.x" }}
    run_constrained:
      - pytorch-cpu <0.0.0 # what? that's impossible!
- name: vak-core # the actual package
  requirements:
     run:
       - pytorch
       # ... all the other stuff

This is similar to how matplotlib works: for historical reasons, it ships with the qt backend, but all downstream dependencies are encouraged to use matplotlib-base.

set up a channel

Going off the conda-forge channel will eventually lead to a higher maintenance burden... as long as you can get away with doing pypi releases, the CF bots will do their best take care of your conda best practice needs.

(though there's nothing wrong with encouraging the pytorch channel, as they have the bodies to throw at keeping stuff running)

Thank you @bollwyvl

To pick up: does the project have any value (e.g. is its test suite functional) if installed next to a cpu version of pytorch?

the main use case built in right now can be run on CPU, so it definitely has value with pytorch-cpu, which is great for people that may not have access to GPUs

Going off the conda-forge channel will eventually lead to a higher maintenance burden... as long as you can get away with doing pypi releases, the CF bots will do their best take care of your conda best practice needs.

I hear you but watching people do installs I realize the main group I'm trying to reach will be just completely overwhelmed by any nuance like "add multiple channels" and "you have to do this on Windows but not on Mac".
Not sure if I can even automate away those nuances, either with CF or without.
Need to think about it more but adding a vak-gpu might be the way

https://github.com/NickleDave/vak/issues/470#issuecomment-1070822941

If I do conda create -n vak-env vak -c conda-forge -c pytorch on pop-os then torch.cuda.is_available() is now True

Tried this on ubuntu instead of pop-os but conda create runs forever at the "Solving environment" step.
Ubuntu 16.04, conda 4.8 and 4.11

hm, the order of arguments definitely matters, at least for channels, but might matter overall.
not helping on the "simple invocation" front, but maybe try:
conda create --dry-run -n vak-env -c pytorch -c conda-forge -c nodefaults vak
                                   ^                         ^
                                   + prefer pytorch for GPU  + avoid ToS entanglements

and of course, mamba can easily save minutes on big solves, especially on windows.
however... conda/mamba/pip install on top of existing environments is the devil... especially mixing them indiscriminately. you might want to encourage users to start heading down the annotated environment.yml route, e.g.
# environment-vak.yml
channels:
- pytorch      # prefer pytorch for GPU builds, if available
- conda-forge  # use conda-forge for all others
- nodefaults   # avoid ToS-encumbered dependencies
dependencies:
- vak
# - your other conda dependencies
- pip
- pip:
  # - your pip dependencies, if you _need_ them

and then...
conda env update --file environment-vak.yml

Thank you @bollwyvl

hm, the order of arguments definitely matters, at least for channels, but might matter overall.

I should know this by now

not helping on the "simple invocation" front, but maybe try:
conda create --dry-run -n vak-env -c pytorch -c conda-forge -c nodefaults vak
                                   ^                         ^
                                   + prefer pytorch for GPU  + avoid ToS entanglements

by ToS you mean Anaconda's? Any reason in particular I should be worried about that?
I guess leaving out defaults also makes the solve faster?

and of course, mamba can easily save minutes on big solves, especially on windows.

Agreed. I should probably add a :::note suggesting to upgrade to 4.12 and use the new solver, at least.

however... conda/mamba/pip install on top of existing environments is the devil... especially mixing them indiscriminately. you might want to encourage users to start heading down the annotated environment.yml route, e.g.
# environment-vak.yml
channels:
- pytorch      # prefer pytorch for GPU builds, if available
- conda-forge  # use conda-forge for all others
- nodefaults   # avoid ToS-encumbered dependencies
dependencies:
- vak
# - your other conda dependencies
- pip
- pip:
  # - your pip dependencies, if you _need_ them

and then...
conda env update --file environment-vak.yml

Thank you. Agreed some advice on envs helps but again most of our users so far are just learning that this concept even exists so I am afraid to overload  the docs page with this. Maybe a link to another page on envs would be good later

hm, the order of arguments definitely matters, at least for channels, but might matter overall.

I tried switching with pytorch first but "Solving environment" still seemed to hang
Then I tried specifying a Python and that resolved. It also seems to have installed cudatoolkit this time?
conda create -n vak-env python=3.8 vak -c pytorch -c conda-forge

so:

[ ] specify a python with conda create command/snippet in docs, as above

Note: we do have a lower bound on dependencies so that's not something making the solve slower

Yes, this works on Ubuntu 16.04.7 LTS:
conda create -n vak-env python=3.8 vak -c pytorch -c conda-forge

After conda activate vak-env:
(vak-env) art@CrabLab:~$ python
Python 3.8.12 | packaged by conda-forge | (default, Jan 30 2022, 23:42:07)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.cuda.is_available()
True

[ ] test with the channels reversed to be sure of that

Question is whether I could have a vak (implicit cpu) that installs cpuonly from pytorch channel, and then a vak-gpu that installs cudatoolkit etc., that would at least slightly reduce some of the verboseness?

closing for now -- I think for most users just adding -c pytorch -c conda-forge will get them what they want; will fix this in the docs in #527. If all else fails they can install torch + torchvision first exactly the way they need it, will document that too as a "troubleshooting" thing


System.Management.ManagementException: Not found

Hey MatthewKing,
Congrats for this amazing work.
I am getting the following error on Windows 8.1 64bit (Not virtual OS) and I am using DeviceId 4.5.0. Will upgrading to 5.1.1 change the DeviceId output? and is there a way to check for each user if all the required IDs are available or not before generating the final client device ID in  DeviceIdBuilder()?
I am using
                string deviceId = new DeviceIdBuilder()
                .AddMachineName()
                .AddProcessorId()
                .AddMotherboardSerialNumber()
                .AddSystemDriveSerialNumber()
                .ToString();

The client is saying that WMI is running, so I am not sure what is missing from the above 4 required IDs.
Please see the error detail below
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Management.ManagementException: Not found
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementObject.Initialize(Boolean getObject)
at System.Management.ManagementClass.GetInstances(EnumerationOptions options)
at System.Management.ManagementClass.GetInstances()
at DeviceId.Components.WmiDeviceIdComponent.GetValue()
at DeviceId.Formatters.HashDeviceIdFormatter.<>c.b__3_1(IDeviceIdComponent x)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()    at System.String.Join(String separator, IEnumerable1 values)
at DeviceId.Formatters.HashDeviceIdFormatter.GetDeviceId(IEnumerable`1 components)
at DeviceId.DeviceIdBuilder.ToString()
at DatalayerClass.<>c__DisplayClass18_0.<Get_Unique_Device_Id>b__0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

I'm no WMI expert, but I think that the error message you're seeing indicates that something has gone wrong with WMI on your machine. I've done a quick search for that particular error message and it seems to be quite common (and unrelated to DeviceId in particular). There seems to be a lot of different suggested fixes. As I've never encountered this issue myself, I can't recommend which fix you try.
Upgrading from v4 to v5 will probably keep your device IDs the same, but I think there was a potential for them to change in some edge cases (hence the major version increment). Having said that, I don't think upgrading from v4 to v5 will help in this case. I'm going to have to reconsider how DeviceId should act in the case of exceptions like this. I'm not sure whether throwing the exception is good behavior or not.
But to fix your actual issue, I think you're going to have to resolve the issue with WMI on your system.

Thanks for your reply, I think user's WMI is corrupt.
Can you please check the email on your email<EMAIL_ADDRESS>regarding this Github issue.
I really appreciate your help. Thanks again


Modified PointData and CellData VTK export

This pr adds the possibility to export BEZIER curves and cell as *.vtu files. Since paraview requires a strange definition of RationalWeights in *.vtu files for Rational Bézier cells in addition a modified PointData and CellData XML export is implemented.

Strangely enough, the black test fails. No error message appears on my local machine.


Update REST API example to instance API

Updated REST API example to point to the instance specific call to reimage, instead of the bulk action.

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

#sign-off

@mimckitt For a future update: "Powershell" should be "PowerShell" in text. Thanks!


SHA1 is calculated incorrectly in zewo/Websocket

The SHA1 sum is calculated incorrectly when opening a web socket. This causes the websocket to fail to open on at least Chrome
Attempt to open a websocket connection to a zewo websocket server from chrome - the socket connection will fail with the following message: WebSocket connection to 'ws://localhost:8080/socket failed: Error during WebSocket handshake: Incorrect 'Sec-WebSocket-Accept' header value
The error is in the arrayOfBytes function in SHA1.swift. I replaced the implementation of that with the one from CryptoSwift and that resolved the issue. I'm happy to submit a pull request with this change if needed?

Yes, please do submit a pull request! Looks like we broke it during the update to Swift 3.

Just noticed the PR you submitted - awesome! Could you submit it to this repository on the websocket branch? That's how we do our development.

Sure. No problem :)

Done. Thanks for the help @Danappelxx


Document in README

Update the README to at least point to the spec examples. So people can find them easily.
I would also strongly suggest to show some simple examples in the README. Similarly to bio-aligner plugin. That way people get to try this biogem :)

Updated the Readme with links that point to the Wiki (with examples) and specs.

Great. I had not found the wiki. Goes to show the importance of the README file.


chore: update tests to ignore environment variables not explicitly set in test

right now if you have environment variables set on your dev machine for auth or account variables, wrangler's tests will take them into account when running tests, which means our tests are inconsistent machine to machine. we should totally be testing how wrangler behaves with and without environment variables set, but we should be doing it in a controlled manner.

This was partly completed with the #879 for global user. need to extend to using the same struct in manifest. For science. 🤓

Fixing this should eliminate usage of the config crate
When constructing GlobalUser, we should loop over CF_API_TOKEN, CF_EMAIL, and CF_API_KEY.
When constructing Manifest, we should loop over CF_ZONE_ID, CF_ACCOUNT_ID, CF_NAME, CF_TYPE, CF_WORKERS_DEV, CF_ROUTE, and CF_WEBPACK_CONFIG. Note that this leaves out CF_ENV, CF_ROUTES, CF_KV_NAMESPACES, and CF_SITE which we currently try to parse. These are not strings and cannot be set in an environment variable, so we should not attempt to parse them. This will eliminate the parsing bug seen in #704 and will also (very slightly) improve performance on machines with a large number of environment variables.


Frozen deps does not check for workflow pinning

In our own repo:
$grep uses .github/workflows/* | grep master
.github/workflows/codescan.yml:        uses: aquasecurity/trivy-action@master
.github/workflows/integration.yml:        uses: google-github-actions/setup-gcloud@master
.github/workflows/synk-cron.yaml:        uses: snyk/actions/iac@master
.github/workflows/synk.yaml:        uses: snyk/actions/iac@master

Shall we pin these? If yes, we should also add this to the Frozen-Dep check.

Fixed by #466


Update-Help tests sporadicly failed

Sample https://travis-ci.org/PowerShell/PowerShell/jobs/360846618#L5033
5032 Describing Validate Update-Help from the Web for all PowerShell Core modules.
5033+++++Update-Help : Failed to update Help for the module(s) 'PackageManagement' with UI culture(s) {en-US} : One or more errors occurred. (A task was canceled.)
5034At /home/travis/build/PowerShell/PowerShell/test/powershell/engine/Help/UpdatableHelpSystem.Tests.ps1:204 char:25
5035+                         Update-Help -Module $moduleName -Force
5036+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5037+ CategoryInfo          : InvalidOperation: (:) [Update-Help], Exception
5038+ FullyQualifiedErrorId : UnknownErrorId,Microsoft.PowerShell.Commands.UpdateHelpCommand
5039
5040
5041    [-] Validate Update-Help for module 'PackageManagement' 30.33s
5042      Expected 1, but got 0.
5043      159:     $helpFilesInstalled.Count | Should -Be $expectedHelpFiles.Count
5044      at ValidateInstalledHelpContent, /home/travis/build/PowerShell/PowerShell/test/powershell/engine/Help/UpdatableHelpSystem.Tests.ps1: line 159
5045      at <ScriptBlock>, /home/travis/build/PowerShell/PowerShell/test/powershell/engine/Help/UpdatableHelpSystem.Tests.ps1: line 208

What we test - Update-Help (1) can update or (2) can dowload?
If we should test only (1) we could cache the help content locally and publish it by means of a test help module (WebListener?).

Update-Help tests tests are executed against cached local content in most cases. But, we still have to test the code path for downloading the help content. There have been some timeout issues with the help content for PackageManagement recently. A similar Save-Help test was marked pending for same reason. Maybe this should be marked as pending as well till we find a solution.

Can we use our WebListener module to emulate downloading?


Make update-pr-from-base-branch's button smaller

Currently the "Update branch" is rather large and it looks like an action that should be taken. It's not really something the user should do that often, so we should probably de-emphasize it.

This is an alternative, it just replaces .btn with .btn-link:

Also:

[ ] it should probably use a window.prompt() window to ask for confirmation
[ ] it could have an "info" icon with a link to https://github.com/sindresorhus/refined-github/issues/1236 or any other post with a clearer explanation of when this action may be useful

晕过头了我。


[bug] Add support for Central Package Management

LMK if you need an IC expert to help w/ how to add this support or what to detect.


undefined reference to `xcb_total_read'

Also some warnings:

   [CC]   obj/i686-linux-gnu/release/src/bin/xmoji/font.o
src/bin/xmoji/font.c: In function ‘createFromFile’:
src/bin/xmoji/font.c:229:45: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘FT_Long’ {aka ‘long int’} [-Wsign-compare]
     while ((face->num_glyphs & glyphidmask) != face->num_glyphs)

   [CC]   obj/i686-linux-gnu/release/src/bin/xmoji/x11adapter.o
src/bin/xmoji/x11adapter.c: In function ‘readX11Input’:
src/bin/xmoji/x11adapter.c:508:25: warning: implicit declaration of function ‘xcb_total_read’; did you mean ‘xcb_host_end’? [-Wimplicit-function-declaration]
     uint64_t newrdpos = xcb_total_read(c);
                         ^~~~~~~~~~~~~~
                         xcb_host_end
src/bin/xmoji/x11adapter.c: In function ‘flushandsync’:
src/bin/xmoji/x11adapter.c:599:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint64_t’ {aka ‘long long unsigned int’} [-Wsign-compare]
  while (xcb_total_read(c) != rdpos)
                           ^~
src/bin/xmoji/x11adapter.c:619:32: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint64_t’ {aka ‘long long unsigned int’} [-Wsign-compare]
     } while (xcb_total_read(c) != rdpos);
                                ^~

   [CCLD] bin/i686-linux-gnu/release/xmoji
/usr/bin/ld: obj/i686-linux-gnu/release/src/bin/xmoji/x11adapter.o: in function `readX11Input':
x11adapter.c:(.text.readX11Input+0x1b): undefined reference to `xcb_total_read'
/usr/bin/ld: x11adapter.c:(.text.readX11Input+0x1c8): undefined reference to `xcb_total_read'
/usr/bin/ld: obj/i686-linux-gnu/release/src/bin/xmoji/x11adapter.o: in function `flushandsync':
x11adapter.c:(.text.flushandsync+0x42): undefined reference to `xcb_total_read'
/usr/bin/ld: x11adapter.c:(.text.flushandsync+0xc5): undefined reference to `xcb_total_read'
/usr/bin/ld: obj/i686-linux-gnu/release/src/bin/xmoji/x11adapter.o: in function `X11Adapter_init':
x11adapter.c:(.text.X11Adapter_init+0xc12): undefined reference to `xcb_total_read'
collect2: error: ld returned 1 exit status
make[1]: *** [src/bin/xmoji/xmoji.mk:103: bin/i686-linux-gnu/release/xmoji] Error 1
make: *** [zimk/lib/platform.mk:25: all] Error 2

Unfortunately, xcb_total_read() is a hard requirement for reliably integrating xcb in an outer event loop without dedicating an extra thread to it (like many toolkits do). Of course it should check for the minimum required xcb version instead of failing at compile time, I will fix that ...

I'm in the process of doing a series of upgrades to my machine (I wasn't able to for a long time due to insufficient disk space).
So you get the benefit of testing your code on old distributions :)
Looks like next upgrade xcb will be new enough, hopefully in the next couple weeks.

So you get the benefit of testing your code on old distributions :)

And if possible, I'm happy to keep my code compatible with older libs and tools. Here it's not possible (without radically changing the design) unfortunately, but at least it should not just fail at build time...

Were the warnings anything important?

The first one is interesting, I assume you build on a 32bit platform? On Linux-x86, long and uint32_t have the same size, and then, the bitwise and is done on operands converted to unsigned, leading to the warning comparing the result to a signed value. On most 64bit ABIs, long also has 64 bits, therefore the bitwise and is implicitly done signed and no warning occurs, that's why my CI build doesn't catch it.
It shouldn't break anything in practice (POSIX mandates exact-width types which imply two's-complement representation, so comparisons should be well-defined), but I'll still add an explicit cast to silence the warning 🙂
The other two warnings are just fallout from the missing function, the compiler assumes the old "implicit int" rule for them.


Blue font color used in home page seems not suit the page style

The blue color(#2962ff) used in home page might be too bright. Maybe #0088CC or other blue color will be better

@liuzhiqi Thanks, I've changed the main color into: #546787, the same with the logo color!


Run grcov on stable

In this way it shouldn't be no more necessary to pin a nightly version for grcov
Thanks in advance for your review! :)

Looks like nasm-rs 0.1.8 has problems with certain version of nasm.
https://github.com/medek/nasm-rs/pull/31 should address it.

Coverage decreased (-0.3%) to 81.77% when pulling 27bc9139d1a597761fd09dbd8961ad6dac7b4689 on Luni-4:grcov-stable into 132be5cf3812a2233e14492c273c512e49ee278a on xiph:master.

@lu-zero
I rebased this PR, so it works now


Memory leak during CPU inference

I have trained efficient conformer transducer and during inference on a CPU in a flask based web app, I see there is a memory leak at
https://github.com/burchim/EfficientConformer/blob/2f59ed2564c45c5978742fe1984cd48363064c88/models/encoders.py#L128
x, attention, hidden = block(x, mask)
The memory used at the above line while running an inference is never released, thus causing OOM is some time. Increase in memory in each iteration gets lowered but not totally removed if I use jemalloc.

Using last release version of jemalloc 5.2.1 and using torch.no_grad() fixed the memory leak.

Hi,
Thanks for pointing this out!
The gradient of attention weights and hidden states aren't detached in attention layers.


How long typically does the recertification process take?

[Enter feedback here]

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

ID: f273ba5e-67f5-c73c-5de0-b5423a56227e
Version Independent ID: a67da8b4-9031-db4c-5868-ccbbaac55610
Content: Next steps: Submit your app on Partner Center (Common Data Service) - PowerApps
Content Source: powerapps-docs/developer/common-data-service/next-steps-submit-app-cloud-partner-portal.md
Service: powerapps
GitHub Login: @KumarVivek
Microsoft Alias: kvivek

@ugreg Thanks for your feedback. We are closing this issue because we are either unable to find relevant information or reproduce this. If you're still experiencing the issue described here, please reopen or create a new issue.


The graph generated from the adjacency matrix doesn't match with the one in google doc

From adjacency matrix:

Note: add 1 to the indices in this graph, to match the numbers drawn below.
From google doc:

Please double-check the adjacency matrix to make sure they match with each other. I think there may be some misentries in line 1 (index 0), and the relationship between clusters with number 10,12,19 and 13,14,17,18 (index 9,11,18 and 12,13,16,17). Additionally, as the matrix has transitivity, nodes within a cluster should be linked with each other. For example, number 17 (index 16) should be linked with number 13, 14, and 18, but only connected with 13 in the adjacency matrix.

We can discuss this in class tmr; I just wanted to try out the issues on GitHub. 😆

I have redone the matrix as a 21x21. So the network numbers remained the same, but I added a 0-row and column. The 0-node has a connection to node 4 and node 6.

Thanks! The nodes are easier to refer to now. I can see that node 0 is connected to node 4 and node 6 from the 0th row of the matrix. But from the plot output, node 3 is also connected to them.

Besides, the edges in each cluster do not seem to be complete? For example, in the cluster of node 0,3,4,6, in the 6th row (row for node 6), it shows "1" for node 0 and node 6, but "0" for node 3 and node 4 (while it should be "1" for all nodes 0,3,4,6).  In the 6th column, it correctly shows"1" for all nodes. Currently, this matrix is not symmetric, while it should be symmetric for undirected graphs. Maybe I can develop a function to check symmetry in the adjacency matrix?

I created a new branch for this issue, we can try to fix this problem there.

Ok I updated the file and pushed to the branch. Let me know if it is fixed. I still cant see any figures or on my machine, so can't tel if the graph updated correctly. Thanks!


drivers: can: add system calls to CAN timing functions

Add CAN system calls for getting the minimum/maximum timing values supported by a given CAN controller device driver instance:

can_get_timing_min()
can_get_timing_max()
can_get_timing_min_data()
can_get_timing_max_data()

Convert can_calc_timing() + can_calc_timing_data() to syscalls and use the newly added syscalls calls for determining the minimum/maximum supported timing parameter values.
Fix size verification in z_vrfy_can_get_core_clock().
Extend the CAN timing test to verify the newly added system calls:

Convert the CAN driver timing calculation tests to run in userspace where available.
Extend the CAN driver timing calculation test verification to cover the sjw and prescaler values.
Extend the CAN driver timing tests to cover data phase timing on CAN-FD capable CAN controllers.

These changes have been verified on the following boards:

TWR-KE18F (twr_ke18f)
FRDM-K64F (frdm_k64f)
MIMXRT1024-EVK (mimxrt1024_evk)
STM32F3 Discovery (sstm32f3_disco)
LPCXpresso55S16 (lpcxpresso55s16)
Keyestudio CAN-BUS Shield (KS0411) (keyestudio_can_bus_ks0411)
Native Posix Loopback (native_posix, native_posix_64)

This PR is part of a series for enabling all the CAN driver tests to run in userspace (where available) in order to get proper CI testing of the CAN syscall handlers.


Translate every csv headers

changed every csv headers to be translated
erased all template strings for csv related content
added userLocal to OCPPParam type

i18nManager class shall use the singleton design pattern, in the whole e-mobility codebase. I do know if that can be part of that PR for ev-server.
It's a pretty easy change to do that will likely have a measurable impact on the memory consumption, especially on the dashboard.
This was what Claude proposed :-)

It could also be the object factory design pattern that might not always give you the same object instance ;)
--
Jérôme Benoit aka fraggle
Piment Noir - https://piment-noir.org
OpenPGP Key ID : 27B535D3
Key fingerprint : B799 BBF6 8EC8 911B B8D7 CDBC C3B1 92C6 27B5 35D3

i18nManager class shall use the singleton design pattern, in the whole e-mobility codebase. I do know if that can be part of that PR for ev-server.
It's a pretty easy change to do that will likely have a measurable impact on the memory consumption, especially on the dashboard.
This was what Claude proposed :-)

It could also be the object factory design pattern that might not always give you the same object instance ;)
--
Jérôme Benoit aka fraggle
Piment Noir - https://piment-noir.org
OpenPGP Key ID : 27B535D3
Key fingerprint : B799 BBF6 8EC8 911B B8D7 CDBC C3B1 92C6 27B5 35D3

@cabch  Put back to requested changes pipeline

@cabch  Put back to requested changes pipeline

@ClaudeROSSI You can mark the conversation resolved once you checked them :)

@ClaudeROSSI You can mark the conversation resolved once you checked them :)

@cabch Haven't we said that perf tests needed to be done to check both solutions you sent me ;-) (+= vs join)

@cabch Haven't we said that perf tests needed to be done to check both solutions you sent me ;-) (+= vs join)


Lead Photo Allows Text Scrolling?

I think the PDF attachment to the .net entry got ported as the lead image. When you hover your mouse over the image (either in the search-grid view or the reader view), you can scroll down through the text (can't scroll back up, though).
https://participedia.xyz/organization/709

Hi @scottofletcher - is this still happening or did you remove it manually? I can't see what you mean when I visit this org page.  I remember coming across another entry that had the same problem so if I find it I'll post it here


Possibility to use without DatHost.net

Right now the bot supports dedicated servers from DatHost.net, would it be possible to use the bot without it? Meaning all functionalities except for the server host integration part?
I am running a local dedicated server, so I am in no need for servers via DatHost.net.

It would be possible, but I'd like to possibly find some sort of way to reduce the amount of work necessary when it comes to configuring & start/stopping a local CS2 server. Back in CSGO it would be fairly trivial to have a server running a plugin like Get5 and then simply drop in a config or use their existing API, but there aren't any solutions yet for CS2 that I am aware of (please feel free to share if something exists). It might be possible to simply do all of the interaction via RCON though.
This is definitely something I wanted to get around to doing, so feedback and possible implementations are welcome.

Alright, I'll see if I can test the bot without the DatHost functionality and see if it works.
I do not know if it is possible, but I have tried this cs2 plugin which is working great:
https://github.com/shobhit-pathak/MatchZy
Maybe there could be a way to interact with it ?


Fix useLocalStorage batch updates not working

useLocalStorage can not handle batch updates correctly, this PR will fix that.
It does not call the update function with the current state in the local storage.
It uses the last "rendered" state which will not work if you call the callback multiple times without react rendering the component between calls.
Here is an example sandbox which shows our usecase.
In this Menu top left of the app.

If you Click show all or hide all this will do batch updates on the useLocalStorage which will only toggle the last column and not all columns due to this bug.

This fix would also allow setState to be used in memoized functions and receive the up-to-date state for it's update function.


Fix tracking response parsing for shipment events without location

@barhot @ajlai @Aryk please review

@denis please review

LGTM

LGTM

LGTM


oAuth Issue - invalid_grant

I can't make it work with Home Assistant 0.104.3.
On second step (callback from polar to home assiatant) i have this error in logs (in browser i can see 500 error).
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle
    result = await result
  File "/config/custom_components/polar/config_flow.py", line 137, in get
    await hass.config_entries.flow.async_configure(flow_id, {'code': code})
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 130, in async_configure
    result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 172, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/config/custom_components/polar/config_flow.py", line 97, in async_step_oauth
    token_response = self.accesslink.get_access_token(user_input['code'])
  File "/usr/local/lib/python3.7/site-packages/accesslink/accesslink.py", line 40, in get_access_token
    return self.oauth.get_access_token(authorization_code)
  File "/usr/local/lib/python3.7/site-packages/accesslink/oauth2.py", line 75, in get_access_token
    headers=headers)
  File "/usr/local/lib/python3.7/site-packages/accesslink/oauth2.py", line 143, in post
    return self.__request("post", endpoint=endpoint, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/accesslink/oauth2.py", line 137, in __request
    return self.__parse_response(response)
  File "/usr/local/lib/python3.7/site-packages/accesslink/oauth2.py", line 121, in __parse_response
    raise HTTPError(message, response=response)
requests.exceptions.HTTPError: 400 Bad Request: {"error":"invalid_grant"}```

Exact same issue here. With HA v0.108.1

@ahilles107 are you running behind a reverse proxy? Mine is behind HaProxy and what help me out are the instructions here: https://www.home-assistant.io/docs/ecosystem/haproxy/
In particular the http settings in configuration.yaml have been essential


allow to control thread safety

based on http://sqlite.org/threadsafe.html SQLite can be instructed at compile, start and run time on what thread safety level to support.
Currently methods like ExecuteNonQueryAsync() in fact do no more than a blocking call to ExecuteNonQuery() and return result via Task.FromResult(). That blocks UI thread. It's ok to wrap database access code in Task.Run(), but that will require thread safety control.
Would be great to have support of SQLITE_OPEN_NOMUTEX and SQLITE_OPEN_FULLMUTEX

The version of sqlite3.dll that we ship will use the default mode of serialized. If you want to change this during startup, you could call sqlite3_config() using P/Invoke. Given this, is there any reason to expose SQLITE_OPEN_NOMUTEX and SQLITE_OPEN_FULLMUTEX?
System.Data.Sqlite.dll also doesn't appear to expose it.

@bricelam I guess you are right, I've tested it and default mode is serialized, which might just work. This issue came before I've realized that real trouble comes from PRAGMA temp_store_directory #229.
What do you think of adding such "one-time config" to SqliteEngine.UseWinSqlite3()?

Yeah, if we expose any of the configuration options, they should definitely hang off of SqliteEngine.

Per discussion, we believe we are doing all the right things here already.


SqlServerValueGeneratorSelector: my cheese has been moved

Upgrading from EF 1.1.0 to 2.0.
I have a class:
public class CustomSqlServerValueGeneratorSelector : SqlServerValueGeneratorSelector
{
        // empty constructor; signature has changed since EF 1.1.0
        public override ValueGenerator Create(IProperty property, IEntityType entityType)
        {
          ...
        }
}

which i hooked in to my data context like so:
        private static readonly IServiceProvider _serviceProvider = new ServiceCollection()
             .AddEntityFrameworkSqlServer()
             .AddScoped<SqlServerValueGeneratorSelector, CustomSqlServerValueGeneratorSelector>()
             .BuildServiceProvider();

        protected override void OnConfiguring(DbContextOptionsBuilder options)
        {
            var connectionString = ConfigurationManager.ConnectionStrings["MyConnection"].ConnectionString;
            options
                .UseInternalServiceProvider(_serviceProvider)
                .UseSqlServer(connectionString);
        }

This used to work; the Create() method of my custom class would return the right value generator. Now it doesn't even hit a breakpoint on the first line of the method.
What changes do I need to make to get this working again?
Thanks in advance.

You would need to add constructor probably like this
https://github.com/aspnet/EntityFrameworkCore/blob/e4ab5ad430871e63083287cb8d00ffdd5c2109cf/src/EFCore.SqlServer/ValueGeneration/Internal/SqlServerValueGeneratorSelector.cs#L26-L37
Also the service registration is like this
https://github.com/aspnet/EntityFrameworkCore/blob/e4ab5ad430871e63083287cb8d00ffdd5c2109cf/src/EFCore.SqlServer/Extensions/SqlServerServiceCollectionExtensions.cs#L80
So you may need to add scoped service of IValueGeneratorSelector instead of concrete type.

Thanks @smitpatel, I changed my code from:
private static readonly IServiceProvider _serviceProvider = new ServiceCollection()
             .AddEntityFrameworkSqlServer()
             .AddScoped<SqlServerValueGeneratorSelector, CustomSqlServerValueGeneratorSelector>()
             .BuildServiceProvider();

to
private static readonly IServiceProvider _serviceProvider = new ServiceCollection()
             .AddEntityFrameworkSqlServer()
             .AddScoped<IValueGeneratorSelector, CustomSqlServerValueGeneratorSelector>()
             .BuildServiceProvider();

and now it works!
Thank you for your help!


matchData -> matchProperty

function matchProperty calls angular.equals to do deep comparisons of expectations and config mocks.
Shouldn't the calls have a json.parse ? Otherwise data configs will come through as strings.
angular.equals(expectationRequest[property], JSON.parse(config[property])

Hello @kaimon , could you provide a more concrete example of a real world problem? I have not heard of any issues with anything related to this so far.


pogs: support interface types

I'm trying to write some table-driven tests for go.sandstorm, and the pogs package makes this a lot easier, but it's still a bit annoying because I can't put capnp interface types in the struct literals. I don't think this should be hard to implement; we can require that capnp interface fields to have an rpc.Client field, and it should just be an assignment.

Yup, this sounds right. I omitted it just for sake of time, not really as a "it shouldn't be done".

It occurs to me that implementing this properly requires access to the capability table, which is transitively accessable via capnp.Struct (segment -> message), but Struct.seg isn't exported, so right now this doesn't quite work from an purely external package.
(I know you're busy this week, and don't really expect a timely response, but I figure there's no harm in frontloading).

All structs have a Segment() method. You can always get the segment/message, you just can't modify the seg field.

Ah, missed that. should do the trick then.

(Just a note: I've got a branch where I'm working on this).

#66 is merged, now, so I'm closing this.


Add the documentation for the OAuth2 authentication service

We miss the documentation for the OAuth2 service, if present in Apigility

This repository has been closed and moved to laminas-api-tools/api-tools-documentation; a new issue has been opened at https://github.com/laminas-api-tools/api-tools-documentation/issues/14.


get_similar_accounts returns nothing!

Hi
I'm trying to get similar accounts with given profile:
loader = instaloader.Instaloader(
    save_metadata=True,
    compress_json=False
)
profile = instaloader.Profile.from_username(self.loader.context, 'amazon')
for sim_profile in profile.get_similar_accounts():
    print(sim_profile.username, sim_profile.userid)

But this prints nothing!
I've tried for different public profiles, but the result always is empty.
So, is this a bug or am I missing something?

It works for me.


chore: Upgrade crds to v1. Fixes #4765

Signed-off-by: J.P. Zivalich<EMAIL_ADDRESS>Checklist:

[ ] My organization is added to USERS.md.

This PR:

Upgrades the CRDs from v1beta to v1
Fixes #4765

Superceeded.

Superceeded.


feat: Added get panels function

Added support to get panels from API.

thanks ethanholz for your contribution.


Freshly created container with MC 1.20.6 results in failure to open ViaVersion, zip END header not found

Context
On startup, the server log shows the error 'java.lang.RuntimeException: Failed to open plugin jar plugins/ViaVersion.jar' & Caused by: java.util.zip.ZipException: zip END header not found. Other plugins don't load or even show a failure message in the log. Removing and reinstalling ViaVersion did not solve the issue.
The error started happening this morning 2024-09-04, and the server was running fine using this image before that point. Since there hasn't been a new release of LJMGF, I'm guessing there was an update in one of the dependencies that bricked it.
I reproduced the error by doing docker compose up -d with the below docker-compose.yaml in an empty volume with no plugins or world data added. I tried with and without NoPermCheck and got the same result.
docker-compose.yaml
services:
  manatee-mc:
    image: 05jchambers/legendary-minecraft-geyser-floodgate:latest
    container_name: manatee-mc
    environment:
      Version: 1.20.6
      MaxMemory: 8192
      TZ: America/Los_Angeles
      # NoPermCheck: Y
    volumes:
      - ./lmgf:/minecraft
    ports:
      - "25565:25565"
      - "19132:19132/udp"
      - "19132:19132"
      - "8123:8123"
    restart: always
  manatee-rcon:
    image: itzg/rcon
    container_name: manatee-rcon
    restart: always
    environment:
      TZ: America/Los_Angeles
      RWA_USERNAME: *****
      RWA_PASSWORD: *****
      RWA_ADMIN: "TRUE"
      # is referring to the service name 'mc' declared below
      RWA_RCON_HOST: manatee-mc
      # needs to match the password configured for the container, see RCON_PASSWORD below
      RWA_RCON_PASSWORD: "*****"
    ports:
      - "4326:4326"
      - "4327:4327"

Log
## Log2024-09-04 19:41:52 Paper Minecraft Java Server Docker + Geyser/Floodgate script by James A. Chambers
2024-09-04 19:41:52 Latest version always at https://github.com/TheRemote/Legendary-Java-Minecraft-Geyser-Floodgate
2024-09-04 19:41:52 Don't forget to set up port forwarding on your router!  The default port is 25565 and the Bedrock port is 19132
2024-09-04 19:41:52 Port used: 25565
2024-09-04 19:41:52 Bedrock port used: 19132
2024-09-04 19:41:52 Taking ownership of all server files/folders in /minecraft...
2024-09-04 19:41:52 Complete
2024-09-04 19:41:52 Updating to most recent paperclip version ...
2024-09-04 19:41:54 Latest paperclip build found: 149
2024-09-04 19:41:56 Updating Floodgate...
2024-09-04 19:41:57 Updating Geyser...
2024-09-04 19:41:54   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-09-04 19:41:54                                  Dload  Upload   Total   Spent    Left  Speed
2024-09-04 19:41:56
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 21 43.6M   21 9550k    0     0  15.3M      0  0:00:02 --:--:--  0:00:02 15.3M
 60 43.6M   60 26.2M    0     0  16.3M      0  0:00:02  0:00:01  0:00:01 16.3M
 97 43.6M   97 42.7M    0     0  16.3M      0  0:00:02  0:00:02 --:--:-- 16.3M
0100-01-01 00:00:00 43.6M  100 43.6M    0     0  16.3M      0  0:00:02  0:00:02 --:--:-- 16.3M
2024-09-04 19:41:56   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-09-04 19:41:56                                  Dload  Upload   Total   Spent    Left  Speed
2024-09-04 19:41:57
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-09-04 19:41:57
0100-01-01 00:00:00 10.9M  100 10.9M    0     0  12.1M      0 --:--:-- --:--:-- --:--:-- 12.1M
2024-09-04 19:41:57   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-09-04 19:41:57                                  Dload  Upload   Total   Spent    Left  Speed
2024-09-04 19:41:58
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2024-09-04 19:41:59
 40 20.7M   40 8638k    0     0  8454k      0  0:00:02  0:00:01  0:00:01 8454k
0100-01-01 00:00:00 20.7M  100 20.7M    0     0  11.5M      0  0:00:01  0:00:01 --:--:-- 15.9M
2024-09-04 19:42:00 md5sum: plugins/ViaVersion.jar: No such file or directory
2024-09-04 19:42:00 Updating ViaVersion...
2024-09-04 19:42:00   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2024-09-04 19:42:00                                  Dload  Upload   Total   Spent    Left  Speed
2024-09-04 19:42:01
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0100-01-01 00:00:00  9737    0  9737    0     0  18094      0 --:--:-- --:--:-- --:--:-- 18064
2024-09-04 19:42:01 Starting Minecraft server...
2024-09-04 19:42:01 Downloading mojang_1.20.6.jar
2024-09-04 19:42:13 Applying patches
2024-09-04 19:42:17 Starting org.bukkit.craftbukkit.Main
2024-09-04 19:42:18 System Info: Java 21 (OpenJDK 64-Bit Server VM 21.0.3+9-Ubuntu-1ubuntu1) Host: Linux <IP_ADDRESS>-microsoft-standard-WSL2 (amd64)
2024-09-04 19:42:18 Loading libraries, please wait...
2024-09-04 19:42:18 WARN StatusConsoleListener Advanced terminal features are not available in this environment
2024-09-04 19:42:20 [19:42:20 INFO]: [ReobfServer] Remapping server...
2024-09-04 19:42:21 [19:42:21 ERROR]: [EntrypointUtil] Failed to open plugin jar plugins/ViaVersion.jar
2024-09-04 19:42:21 java.lang.RuntimeException: Failed to open plugin jar plugins/ViaVersion.jar
2024-09-04 19:42:21     at io.papermc.paper.pluginremap.PluginRemapper.remap(PluginRemapper.java:339) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     at io.papermc.paper.pluginremap.PluginRemapper.remapPlugin(PluginRemapper.java:266) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     at io.papermc.paper.pluginremap.PluginRemapper.rewritePluginDirectory(PluginRemapper.java:204) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.prepareContext(DirectoryProviderSource.java:42) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.prepareContext(DirectoryProviderSource.java:17) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     at io.papermc.paper.plugin.util.EntrypointUtil.registerProvidersFromSource(EntrypointUtil.java:14) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     at io.papermc.paper.plugin.PluginInitializerManager.load(PluginInitializerManager.java:109) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     at net.minecraft.server.Main.main(Main.java:122) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     at org.bukkit.craftbukkit.Main.main(Main.java:328) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42) ~[app:?]
2024-09-04 19:42:21     at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
2024-09-04 19:42:21 Caused by: java.util.zip.ZipException: zip END header not found
2024-09-04 19:42:21     at jdk.zipfs@21.0.3/jdk.nio.zipfs.ZipFileSystem.findEND(ZipFileSystem.java:1320) ~[jdk.zipfs:?]
2024-09-04 19:42:21     at jdk.zipfs@21.0.3/jdk.nio.zipfs.ZipFileSystem.initCEN(ZipFileSystem.java:1541) ~[jdk.zipfs:?]
2024-09-04 19:42:21     at jdk.zipfs@21.0.3/jdk.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:179) ~[jdk.zipfs:?]
2024-09-04 19:42:21     at jdk.zipfs@21.0.3/jdk.nio.zipfs.ZipFileSystemProvider.getZipFileSystem(ZipFileSystemProvider.java:125) ~[jdk.zipfs:?]
2024-09-04 19:42:21     at jdk.zipfs@21.0.3/jdk.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:120) ~[jdk.zipfs:?]
2024-09-04 19:42:21     at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:528) ~[?:?]
2024-09-04 19:42:21     at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:440) ~[?:?]
2024-09-04 19:42:21     at io.papermc.paper.pluginremap.PluginRemapper.remap(PluginRemapper.java:290) ~[paper-1.20.6.jar:1.20.6-149-6e71f41]
2024-09-04 19:42:21     ... 10 more
2024-09-04 19:42:27 [19:42:27 INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
2024-09-04 19:42:27 [19:42:27 INFO]: Found new data pack file/bukkit, loading it automatically
2024-09-04 19:42:27 [19:42:27 INFO]: Found new data pack paper, loading it automatically
2024-09-04 19:42:29 [19:42:29 INFO]: No existing world data, creating new world
2024-09-04 19:42:29 [19:42:29 WARN]: Failed to parse level-type default, defaulting to minecraft:normal
2024-09-04 19:42:32 [19:42:32 INFO]: [ReobfServer] Done remapping server in 11692ms.
2024-09-04 19:42:32 [19:42:32 INFO]: [PluginRemapper] Remapping plugin 'plugins/Floodgate-Spigot.jar'...
2024-09-04 19:42:32 [19:42:32 INFO]: Loaded 1175 recipes
2024-09-04 19:42:32 [19:42:32 INFO]: Loaded 1276 advancements
2024-09-04 19:42:32 [19:42:32 INFO]: Starting minecraft server version 1.20.6
2024-09-04 19:42:32 [19:42:32 WARN]: ****************************
2024-09-04 19:42:32 [19:42:32 WARN]: YOU ARE RUNNING THIS SERVER AS AN ADMINISTRATIVE OR ROOT USER. THIS IS NOT ADVISED.
2024-09-04 19:42:32 [19:42:32 WARN]: YOU ARE OPENING YOURSELF UP TO POTENTIAL RISKS WHEN DOING THIS.
2024-09-04 19:42:32 [19:42:32 WARN]: FOR MORE INFORMATION, SEE https://madelinemiller.dev/blog/root-minecraft-server/
2024-09-04 19:42:32 [19:42:32 WARN]: ****************************
2024-09-04 19:42:32 [19:42:32 INFO]: Loading properties
2024-09-04 19:42:32 [19:42:32 INFO]: This server is running Paper version 1.20.6-149-ver/1.20.6@6e71f41 (2024-08-24T09:37:06Z) (Implementing API version 1.20.6-R0.1-SNAPSHOT)
2024-09-04 19:42:33 [19:42:33 INFO]: Server Ping Player Sample Count: 12
2024-09-04 19:42:33 [19:42:33 INFO]: Using 4 threads for Netty based IO
2024-09-04 19:42:34 [19:42:34 WARN]: [!] The timings profiler has been enabled but has been scheduled for removal from Paper in the future.
2024-09-04 19:42:34     We recommend installing the spark profiler as a replacement: https://spark.lucko.me/
2024-09-04 19:42:34     For more information please visit: https://github.com/PaperMC/Paper/issues/8948
2024-09-04 19:42:34 [19:42:34 INFO]: [ChunkTaskScheduler] Chunk system is using 1 I/O threads, 4 worker threads, and gen parallelism of 4 threads
2024-09-04 19:42:34 [19:42:34 INFO]: Default game type: SURVIVAL
2024-09-04 19:42:34 [19:42:34 INFO]: Generating keypair
2024-09-04 19:42:35 [19:42:35 INFO]: Starting Minecraft server on *:25565
2024-09-04 19:42:35 [19:42:35 INFO]: Using epoll channel type
2024-09-04 19:42:35 [19:42:35 INFO]: Paper: Using libdeflate (Linux x86_64) compression from Velocity.
2024-09-04 19:42:35 [19:42:35 INFO]: Paper: Using OpenSSL 3.0.x (Linux x86_64) cipher from Velocity.
2024-09-04 19:42:35 [19:42:35 INFO]: Preparing level "world"
2024-09-04 19:42:35 [19:42:35 WARN]: Failed to parse level-type default, defaulting to minecraft:normal
2024-09-04 19:42:37 [19:42:37 INFO]: [PluginRemapper] Done remapping plugin 'plugins/Floodgate-Spigot.jar' in 5405ms.
2024-09-04 19:42:38 [19:42:38 WARN]: Failed to parse level-type default, defaulting to minecraft:normal
2024-09-04 19:42:39 [19:42:39 WARN]: Failed to parse level-type default, defaulting to minecraft:normal
2024-09-04 19:42:39 [19:42:39 INFO]: Preparing start region for dimension minecraft:overworld
2024-09-04 19:42:41 [19:42:41 INFO]: Time elapsed: 1713 ms
2024-09-04 19:42:41 [19:42:41 INFO]: Preparing start region for dimension minecraft:the_nether
2024-09-04 19:42:41 [19:42:41 INFO]: Time elapsed: 638 ms
2024-09-04 19:42:41 [19:42:41 INFO]: Preparing start region for dimension minecraft:the_end
2024-09-04 19:42:41 [19:42:41 INFO]: Time elapsed: 235 ms
2024-09-04 19:42:42 [19:42:42 INFO]: Running delayed init tasks
2024-09-04 19:42:42 [19:42:42 INFO]: Done (9.334s)! For help, type "help"
2024-09-04 19:42:42 [19:42:42 INFO]: Timings Reset

I am having the exact same issue. I dug a little deeper and found out that the link being generated by the script is not being generated properly. For some reason the $ViaVersionVersion variable in the shell script is returning "pattern". Therefore the resulting link is something along the lines of "https://ci.viaversion.com/job/ViaVersion/lastBuild/artifact/build/libs/pattern". I ran the command itself that assigns data to the $ViaVersionVersion variable, and all I get is the string "pattern". The resulting "ViaVersion.jar" file that is downloaded is actually and HTML file that mirrors the the "Not Found" page on Jenkins. I hardcoded the link to a specific version of ViaVersion, it worked fine.
I just had to comment out the code resposible for updating ViaVersion, and manually update ViaVersion when a new update releases.

Glad I'm not the only one experiencing this. Thanks for sharing your solution.

I am having the exact same issue. I dug a little deeper and found out that the link being generated by the script is not being generated properly. For some reason the $ViaVersionVersion variable in the shell script is returning "pattern". Therefore the resulting link is something along the lines of "https://ci.viaversion.com/job/ViaVersion/lastBuild/artifact/build/libs/pattern". I ran the command itself that assigns data to the $ViaVersionVersion variable, and all I get is the string "pattern". The resulting "ViaVersion.jar" file that is downloaded is actually an HTML file that mirrors the "Not Found" page on Jenkins. I hardcoded the link to a specific version of ViaVersion, it worked fine.
I just had to comment out the code resposible for updating ViaVersion, and manually update ViaVersion when a new update releases. -Edit-
In addition to commenting out the code responsible for updating ViaVersion, you can install the AutoViaUpdater plugin at: https://www.spigotmc.org/resources/autoviaupdater.109331/ to continue to autoupdate ViaVersion, along with ViaBackwards, and ViaRewind.

+1 to this issue replicated here too. Same corrupt ViaVersion.jar being downloaded, same file size (9737)
Further to the solution provided by @TylerJohnson177 (you can edit start.sh from line 173), you can disable ViaVersion if you don't actually need it by recomposing with environment variable NoViaVersion: "Y"

I ran into this issue ~3 days ago and I was able to resolve this by doing the following steps (thanks everyone in this thread for the clues!):

Make sure docker-compose server is down.
Delete any /plugins/ViaVersion.jar files.
Download AutoViaUpdater .jar file from here https://www.spigotmc.org/resources/autoviaupdater.109331/ and add this into /plugins/
Inside docker-compose.yml set the following env values:
NoViaVersion: 'Y'
Version: 1.21.1 #To match a version from here: https://papermc.io/downloads/paper
docker-compose up -d to start the server again and now bedrock and java clients can join again :)

Not sure if this is the best way to do this, but these steps got me back up and running again so I wanted to share. Thanks all!

Actually with my steps above, I am still facing an issue which I never had previously:
Bedrock clients (1.21.20) can connect for ~10-15 minutes and then after some time every bedrock client is disconnected at the same time. Docker logs show "[Geyser-Spigot] {username} has disconnected from the Java server because of Bedrock client timed out". (I don't see anything else inside the docker logs which indicates an issue)
The bedrock clients are then unable to connect again once this happens unless I restart the server entirely. After that same issue repeats again for bedrock users. The java clients remain connected and can still connect fine the entire time, so this only impacts bedrock users. I've tested Android/PS5/iOS Bedrock users and they are all impacted the same way at the same time. Once this happens they cannot see the server online anymore unless the docker stack is restarted.
This happens on local network connections and nothing to do with host machine resources or networking issues. This impacts freshly created servers, and my previously running servers.
Is anyone else facing this issue? And any idea how to troubleshoot this?

Actually with my steps above, I am still facing an issue which I never had previously:
Bedrock clients (1.21.20) can connect for ~10-15 minutes and then after some time every bedrock client is disconnected at the same time. Docker logs show "[Geyser-Spigot] {username} has disconnected from the Java server because of Bedrock client timed out". (I don't see anything else inside the docker logs which indicates an issue)
The bedrock clients are then unable to connect again once this happens unless I restart the server entirely. After that same issue repeats again for bedrock users. The java clients remain connected and can still connect fine the entire time, so this only impacts bedrock users. I've tested Android/PS5/iOS Bedrock users and they are all impacted the same way at the same time. Once this happens they cannot see the server online anymore unless the docker stack is restarted.
This happens on local network connections and nothing to do with host machine resources or networking issues. This impacts freshly created servers, and my previously running servers.
Is anyone else facing this issue? And any idea how to troubleshoot this?

I followed the method @TylerJohnson177 did and Bedrock clients haven't been getting booted in my case. I pulled the git repo, commented out all code in start.sh dealing with ViaVersion, and built the image locally. I don't think it should make a difference with the edited start.sh but I set NoViaVersion=Y in my docker compose just in case.
I'd assume using the ViaVersion updater plugin shouldn't behave differently than downloading it manually, so you might want to check for other configuration issues especially if you try this method and have the same problem.
start.sh:165-202
.....
    # Update Geyser
    echo "Updating Geyser..."
    if [ -z "$QuietCurl" ]; then
        curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" -o /minecraft/plugins/Geyser-Spigot.jar "https://download.geysermc.org/v2/projects/geyser/versions/latest/builds/latest/downloads/spigot"
    else
        curl --no-progress-meter -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" -o /minecraft/plugins/Geyser-Spigot.jar "https://download.geysermc.org/v2/projects/geyser/versions/latest/builds/latest/downloads/spigot"
    fi

echo "ViaVersion update process has been disabled in /scripts/start.sh. Check for updates manually"

# COMMENT OR DELETE all ViaVersion lines. and don't forget to leave the fi below (I did lol)

fi

# Accept EULA
AcceptEULA=$(echo eula=true >eula.txt)

.....

docker-compose.yml

services:
  minecraft-server:
    container_name: minecraft-server
    restart: always
    build:
      context: .
      dockerfile: ./amd64.Dockerfile
    ports:
      - "25565:25565"
      - "19132:19132"
      - "19132:19132/udp"
    volumes:
      - ./minecraft:/minecraft
    stdin_open: true # docker run -i
    tty: true # docker run -t
    entrypoint: [ "/bin/bash", "/scripts/start.sh" ]
    # Environment variables
    environment:
      Port: "25565"
      BedrockPort: "19132"
      TZ: "America/Los Angeles" # Timezone
      #BackupCount: 10 # Number of rolling backups to keep
      MaxMemory: 4096 # Maximum memory usage for Java
      Version: 1.20.6 # Use custom version
      #NoBackup: "plugins" # Optional folder to skip during backups
      NoPermCheck: "Y" # Optional flag to skip permissions check
      #NoViaVersion: "Y" # Optional flag to disable ViaVersion plugin
      #QuietCurl: "Y" # Optional flag to reduce curl log output by suppressing progress meter

@morganmattr Also I'm using Minecraft 1.20.6 for the server, so it's possible that your issue is version specific.

Thank you @spktkl!! I did exactly this (set Version: 1.20.6 and those edits to start.sh) and now the server hasn't had any of these Bedrock disconnects in ~12 hours that require a server restart, so I think I am good now. Appreciate the quickly help and work around advice!

The issue is in ./start.sh line 175 It seems https://ci.viaversion.com/job/ViaVersion/lastBuild/artifact/build/libs/ become minified and curl ... gets following: <input name="pattern" type="text" ... instead of href="ViaVersion-5.0.4-SNAPSHOT.jar. Then cut ... splits it by " symbol into fields and grabs 2nd field, which is ... right: pattern!
So I made pull request #35 to fix it :)

Came here to say that I found the exact root cause of the issue.  Nice synopsis.  For now, I'm just setting the NoViaVersion env var to a random string value after manually downloading the latest ViaVersion.jar build.  Hopefully they accept your fix soon.


Recipe app

Change made :
👉 Use controllers to handle requests and render empty views.
👉 Understand Rails naming conventions.
👉 Use params from browser requests in a safe way.
👉Use preprocessed HTML file with embedded Ruby code.
👉Use layouts and templates for shared content.
👉Use database migration files to maintain database schema.
👉Use validations for models.
👉Secure app from n+1 problems.
👉Understand what ORM is.
👉Write SQL queries with ActiveRecord.
👉Set up associations between models.
👉Build a web app that requires the user to log in.
👉Describe the difference between authorization and authentication.
👉Use Devise gem for authentication.
👉Understand how sessions and cookies can support authentication.
👉Limit access to web app resources based on authorization rules.
👉Write unit tests using Rspec
👉Write integration tests with capybara gem
Preview :

Hello @VICTOR-CHUKWU,
Our project is working as intended in my local machine and I pushed every changes.
Please check out the screenshots I took.

hello, can you drop your db and run rails db:create and rails db:migrate again to check if it still works on your local machine, as you can see from the video I made, also you can reach me on Slack with the same name

Hello @VICTOR-CHUKWU ,
Now, it is fixed.


Tag Zebra 1.0.0-beta.14 release

Motivation
We need to tag the next release, it's been a while since we've done one.

Fixed by https://github.com/ZcashFoundation/zebra/pull/5006


Rename PointerInput::button_just_down and just_up methods

should these be called pressed and released instead of down and up to match the methods on ButtonInput? https://dev-docs.bevyengine.org/bevy/input/struct.ButtonInput.html#method.just_pressed

Originally posted by @hymm in https://github.com/bevyengine/bevy/issues/16176#issuecomment-2448285515

What work is pending here?
PointerInput::button_just_down / just_up don't seem to exist as of 9a0c9b9e8f0408add03c1527a71612ebef34c329, is the requested change the following comment? (https://github.com/bevyengine/bevy/pull/16176#issuecomment-2448327505)

Can we rename PointerAction::Pressed to PointerAction::Button?

I think this is resolved; I just forgot to update the issue status.


⚠ Bofrost.at has degraded performance

In 711c1f8, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1447 ms

Resolved: Bofrost.at performance has improved in ca98f30 after 19 minutes.


Start tracking how many people visit odo.dev

We should start collecting some metrics for odo.dev website, to see if and how people use odo website and documentation.
We can start with simple metrics like how many people visit website and what pages.
/priority medium
/kind documentation

Do you mean https://docs.netlify.com/monitor-sites/analytics/?

Orignaly I meant via Segment and Woopra like we have for telemetry, but if there is something form Netlify directly it should be ok.

It looks like Netlify Analytics is $9/month and it has only 30 days history.
Let's go with Woopra and Segment, as we are already paying for that and it will give us longer history


Is there any option to add axis 'title' in ember chartist??

@tylergaw

Hey @santosh1994 . It looks like you'll need to use the https://gionkunz.github.io/chartist-js/plugins.html#axis-title-plugin plugin. Unfortunately our plugin story isn't very complete yet (see #31). If you're interested we'd love to have you help flesh out our plugin story.