tsParticles error -  not found

I have this Component. The images are in the correct location but particles are not showing, I am missing something? The error is thrown in ImageDrawer.js 89.
import React from 'react';
import Particles from 'react-particles-js';

import Particle1 from 'common/src/assets/image/saas/particles/particle-1.png';
import Particle2 from 'common/src/assets/image/saas/particles/particle-2.png';
import Particle3 from 'common/src/assets/image/saas/particles/particle-3.png';
import Particle4 from 'common/src/assets/image/saas/particles/particle-4.png';
import Particle5 from 'common/src/assets/image/saas/particles/particle-5.png';
import Particle6 from 'common/src/assets/image/saas/particles/particle-6.png';

const ParticlesComponent = () => {
  return (
    <>
      <Particles
        className="particle"
        params={{
          particles: {
            number: {
              value: 6,
              density: { enable: true, value_area: 800 },
            },

            shape: {
              type: ['images'],
              images: [
                {
                  src: `${Particle1}`,
                  width: 25,
                  height: 25,
                },
                {
                  src: `${Particle2}`,
                  width: 18,
                  height: 18,
                },
                {
                  src: `${Particle3}`,
                  width: 32,
                  height: 32,
                },
                {
                  src: `${Particle4}`,
                  width: 41,
                  height: 41,
                },
                {
                  src: `${Particle5}`,
                  width: 22,
                  height: 22,
                },
                {
                  src: `${Particle6}`,
                  width: 22,
                  height: 22,
                },
              ],
            },
            opacity: {
              value: 0.17626369048095938,
              random: true,
              anim: { enable: false, speed: 1, opacity_min: 0.1, sync: false },
            },
            size: {
              value: 10,
              random: false,
            },
            line_linked: {
              enable: false,
            },
            move: {
              enable: true,
              speed: 1.5,
              direction: 'none',
              random: false,
              straight: false,
              bounce: true,
              attract: { enable: true, rotateX: 100, rotateY: 400 },
            },
          },
          retina_detect: true,
        }}
      />
    </>
  );
};
export default ParticlesComponent;

Hi @fcpauldiaz
Which version are you using? It seems a duplicate of issue #118 that should be fixed in v3.2.1.

Thanks @matteobruni, it was indeed a duplicate of #118, changing images to image fixed the issue. Thanks!


Non anonymous role name 'stealth-admin'

Change the current method dynamic role name extracted from the .env file to a static role name stealth-admin for the admin/non-anonymous message
Edit the .env.example and remove the role name

@NidheeshaT I would like to work on this issue.

@NidheeshaT I would like to work on this issue.

Better leave this good-first-issue to newbies who want to contribute, I suggest you take some a look into other issues.

Better leave this good-first-issue to newbies who want to contribute, I suggest you take some a look into other issues.
To be honest, I've never worked on a discord bot before, so I'm trying to learn something new as I go, so which issue do you want me to work on?

To be honest, I've never worked on a discord bot before, so I'm trying to learn something new as I go, so which issue do you want me to work on?

I suggest you look into the issue #1
It doesn't much knowledge of the discord.js api and will also help you understand the structure of it. You just have to store the details in a DB and extract them and use it while sending the message.
For this either you have follow the development steps and set up a discord bot in the developer portal, or I can provide with test credentials. The first approach is better and will help you learn through the bot setting up process.

I suggest you look into the issue https://github.com/FiniteLoop-NMAMIT/stealth-bot/issues/1
It doesn't much knowledge of the discord.js api and will also help you understand the structure of it. You just have to store the details in a DB and extract them and use it while sending the message.
For this either you have follow the development steps and set up a discord bot in the developer portal, or I can provide with test credentials. The first approach is better and will help you learn through the bot setting up process.

Great, I'll go to work on #1

assign it to me!


Debugging one isolate in multi-engine scenario

I'm using multiple flutter and try to connect to one of them, and i try to follow the link
debugging-specific-instances-of-flutter
but the command line tool can not work as the website.
anyone can help?
platform
OS: windows 10
Flutter 2.0.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b1395592de (13 days ago) • 2021-04-01 14:25:01 -0700
Engine • revision 2dce47073a
Tools • Dart 2.12.2
Steps to Reproduce

Run flutter attach --isolate-filter='debug'

PS D:\work\foo> flutter --version
Flutter 2.0.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision b1395592de (13 days ago) • 2021-04-01 14:25:01 -0700
Engine • revision 2dce47073a
Tools • Dart 2.12.2

PS D:\work\foo> flutter attach --isolate-filter='debug'
Could not find an option named "isolate-filter".

Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.

$flutter doctor -v
[√] Flutter (Channel stable, 2.0.4, on Microsoft Windows [Version 10.0.19042.867], locale zh-CN)
    • Flutter version 2.0.4 at D:\tools\flutter_windows_2.0.1-stable\flutter
    • Framework revision b1395592de (13 days ago), 2021-04-01 14:25:01 -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\wungcq\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: D:\tools\AndroidStudio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.1.0)
    • Android Studio at D:\tools\AndroidStudio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (3 available)
    • MIX 2 (mobile) • 6f7c29fd • android-arm64  • Android 9 (API 28)
    • Chrome (web)   • chrome   • web-javascript • Google Chrome 89.0.4389.114
    • Edge (web)     • edge     • web-javascript • Microsoft Edge 89.0.774.75

• No issues found!

i figured out that the PR (#63336)[https://github.com/flutter/flutter/pull/63336] REMOVE the l and isolate-filter command support.
I think this is not a good choice... when flutter 2 claimed that it support multiple engines, the debugging work will be a REALLY BIG PROBLEM.
and any one know how can I debug exactly to an selected isloate?

Hi @WunGCQ
Since it was remover, documentation needs an update and probably alternative solution https://flutter.dev/docs/development/add-to-app/debugging#debugging-specific-instances-of-flutter

Repurposing the bug to make sure we have a proper debugging solution for targeting an isolate.


Can't use gaussian_blur if sigma is a tensor on gpu

🐛 Describe the bug
Admittedly perhaps an unconventional use, but I'm using gaussian_blur in my model to blur attention maps and I want to have the sigma be a parameter.
It would work, except for this function:
https://github.com/pytorch/vision/blob/06ad737628abc3a1e617571dc03cbdd5b36ea96a/torchvision/transforms/_functional_tensor.py#L725
x is not moved to the device that sigma is on.
I believe it is like this in all torchvision versions.
WORKS:
import torch
from torchvision.transforms.functional import gaussian_blur
k = 15
s = torch.tensor(0.3 * ((5 - 1) * 0.5 - 1) + 0.8, requires_grad = True)

blurred = gaussian_blur(torch.randn(1, 3, 256, 256), k, [s])
blurred.mean().backward()
print(s.grad)
>>> tensor(-4.6193e-05)

DOES NOT:
import torch
from torchvision.transforms.functional import gaussian_blur
k = 15
s = torch.tensor(0.3 * ((5 - 1) * 0.5 - 1) + 0.8, requires_grad = True, device='cuda')

blurred = gaussian_blur(torch.randn(1, 3, 256, 256, device='cuda'), k, [s])
blurred.mean().backward()
print(s.grad)

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
[D:\Temp\ipykernel_39000\3525683463.py](file:///D:/Temp/ipykernel_39000/3525683463.py) in <module>
      4 s = torch.tensor(0.3 * ((5 - 1) * 0.5 - 1) + 0.8, requires_grad = True, device='cuda')
      5
----> 6 blurred = gaussian_blur(torch.randn(1, 3, 256, 256, device='cuda'), k, [s])
      7 blurred.mean().backward()
      8 print(s.grad)

[s:\anaconda3\envs\base_pip\lib\site-packages\torchvision\transforms\functional.py](file:///S:/anaconda3/envs/base_pip/lib/site-packages/torchvision/transforms/functional.py) in gaussian_blur(img, kernel_size, sigma)
   1361         t_img = pil_to_tensor(img)
   1362
-> 1363     output = F_t.gaussian_blur(t_img, kernel_size, sigma)
   1364
   1365     if not isinstance(img, torch.Tensor):

[s:\anaconda3\envs\base_pip\lib\site-packages\torchvision\transforms\_functional_tensor.py](file:///S:/anaconda3/envs/base_pip/lib/site-packages/torchvision/transforms/_functional_tensor.py) in gaussian_blur(img, kernel_size, sigma)
    749
    750     dtype = img.dtype if torch.is_floating_point(img) else torch.float32
--> 751     kernel = _get_gaussian_kernel2d(kernel_size, sigma, dtype=dtype, device=img.device)
    752     kernel = kernel.expand(img.shape[-3], 1, kernel.shape[0], kernel.shape[1])
    753

[s:\anaconda3\envs\base_pip\lib\site-packages\torchvision\transforms\_functional_tensor.py](file:///S:/anaconda3/envs/base_pip/lib/site-packages/torchvision/transforms/_functional_tensor.py) in _get_gaussian_kernel2d(kernel_size, sigma, dtype, device)
    736     kernel_size: List[int], sigma: List[float], dtype: torch.dtype, device: torch.device
    737 ) -> Tensor:
--> 738     kernel1d_x = _get_gaussian_kernel1d(kernel_size[0], sigma[0]).to(device, dtype=dtype)
    739     kernel1d_y = _get_gaussian_kernel1d(kernel_size[1], sigma[1]).to(device, dtype=dtype)
    740     kernel2d = torch.mm(kernel1d_y[:, None], kernel1d_x[None, :])

[s:\anaconda3\envs\base_pip\lib\site-packages\torchvision\transforms\_functional_tensor.py](file:///S:/anaconda3/envs/base_pip/lib/site-packages/torchvision/transforms/_functional_tensor.py) in _get_gaussian_kernel1d(kernel_size, sigma)
    727
    728     x = torch.linspace(-ksize_half, ksize_half, steps=kernel_size)
--> 729     pdf = torch.exp(-0.5 * (x / sigma).pow(2))
    730     kernel1d = pdf / pdf.sum()
    731

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!

I don't know about the convention, like whether device should be passed in, but the simplest fix I believe would just be to change:
728     x = torch.linspace(-ksize_half, ksize_half, steps=kernel_size)
to:
728     x = torch.linspace(-ksize_half, ksize_half, steps=kernel_size).to(sigma.device)
Actually that won't when sigma is just a float. So I guess there could be a check for whether its a float or a float tensor.
 Will it be suitable for a beginner?

Hi @Xact-sniper, I think a possible fix is that we can add torch.device to this function call here. Can you pls send a reproducible code snippet?

Thanks for the report @Xact-sniper . This will be fixed by https://github.com/pytorch/vision/pull/8426.
What you're trying to do won't work on the V2 version, I'm not sure why just yet, I'll open a separate issue to keep track of that.


JAVA-688 : QueryBuilder doesn't serialize raw strings

LGTM. Could you add a unit test in QueryBuilderTest?
To be clear, the goal is to ensure that the QUERY message generated is a raw string, with no parameters. Another way of checking it is that statement.getQueryString() should not contain placeholders.
The example I put in the ticket is a bit contrived, but that should do if the test explains it.

I put both test for QUERY and placeholders, and for getValues(), so we are sure.


Update loud app

Setup:
https://hifi-content.s3.amazonaws.com/Experiences/Releases/usefulUtilities/loudApp/2019-03-26_14-26-30/appResources/loudApp_app.js
Add to old test plan:

Avatars that ignore the admin are still seen in loud app and all loud app functions still apply to these avatars

Both myself and Salina tested, looks good


Fix CVE-2022-40899

"An issue discovered in Python Charmers Future 0.18.2 and earlier allows remote attackers to cause a denial of service via crafted Set-Cookie header from malicious web server. This issue has been patched in version 0.18.3."

Future is a sub-dependency of junitparser 1.4.1, so we may be better off just upgrading junitparser instead. @BertKleewein is there a way for me to check what versions of junitparser have upgraded to this version of Future? And is there any reason why we shouldn't upgrade the junitparser dependency in the first place?

Future is a sub-dependency of junitparser 1.4.1, so we may be better off just upgrading junitparser instead. @BertKleewein is there a way for me to check what versions of junitparser have upgraded to this version of Future? And is there any reason why we shouldn't upgrade the junitparser dependency in the first place?

@timtay-microsoft junitparser specifies the latest version of future, so this line is technically unnecessary. I'm going to pull it anyway to make the requirement explicit. I'm going to do a separate PR to use the latest version of junitparser -- this is a good idea. I think I didn't have a good reason to use a fixed version number (IIRC)


Load MP4 file

Hello,
I was wondering if this fork of videojs can load mux static mp4 files instead of mux m3u8 ? If it is not feasible what would you suggest in order to load a mux mp4 asset ?
Best regards

You should be able to play an mp4 if you have the url for it. videojs-mux-kit doesn't currently have an option to use the mp4 over the m3u8 when it resolves the playback id provided.


feat(focus-source): Added handle.unlock

Introduces a new method for focus-source: handle.unlock().
For details please see #150

Coverage increased (+0.0009%) to 98.884% when pulling e57ba51e03628e6be9d89cf288cdd5dd6bc3bca7 on jantimon:feature/focus-source-unlock into 201a10945ae311d22a4c0fd44605c72397caddb0 on medialize:master.

Thanks!


Support python 3.11, drop python 3.8

As titled, support python 3.11 now that triangle has been updated.
Drop python 3.8 support to allow package upgrades across the board.
Consider requiring rhino3dm==8.0.0b2 to allow installs across all environments.

For now keep rhino option at python 3.9. Drop support for python 3.8 and introduce python 3.11. Use 3.9 as main build version. When rhino3dm fixes mcneel/rhino3dm#535, open rhino option to python 3.10 and 3.11, and use 3.11 as main build version.


make request on document

Hello, i try to use the plugin, and i have some troubles.
I have succeeded to store documents, this is an  example response:
 {"ok":true,"id":"54demandeur\u00014MALONG BOUGUE\u00014FRANCIS\u00014Ecole supérieure\u00014Cameroon\u00014LITTORAL\u00014DOUALA\u0001323361.44787603671900000357\u0001\u0001","rev":"1-be47f9721bdf049cbacfb52db14f2357"}

Now I want to Search in database Documents which a property is a specific value, for example Collection = 'applicants'.
Thanks to see an example of use or research.

Sorry for not responding; this project has been moved into the main PouchDB project: https://github.com/pouchdb/pouchdb/pull/5476


Use Cabal-syntax to parse cabal packages

There's actually two changes here:

Parse using the cabal-syntax package. This fixes bugs for descriptors that put source dirs in common stanzas, like this one.
Generate one hie-bios component per module, instead of one per hs-source-dir. This fixes issues in projects that reuse the same hs-source-dir in multiple Cabal components, like the one linked above does too.

@pepeiborra I published implicit-hie-<IP_ADDRESS>  with the changes in this pr. implicit-hie-cradle builds with implicit-hie-<IP_ADDRESS> . So now just HLS and anything else upstream has to updated.

@pepeiborra Does a minimal hie.yaml with cradle: {cabal: {}}  cause issues on your project?


Remove pki-validation files

Recieved slack approval from @hzhu16

This was a remake of OSG PR #365


[PyTorch] Add heuristics for intializing FP8 params

Description
https://github.com/NVIDIA/TransformerEngine/pull/1127 changed the default behavior of Float8Tensor so that the FP8 transpose is no longer memoized, but rather treated as part of the data layout. This helps us avoid headaches where the cache is invalidated (since the FP8 data and transpose are updated together in Float8Tensor.quantize_) and reduces the FP8-specific logic in the TE modules (e.g. whether to update the transpose in the first microbatch). However, it also means that Float8Tensor needs to know whether to store the FP8 transpose at construction time.
This PR adds a heuristic kwarg to the fp8_model_init context. Right now the only supported value is "memory", which will cause TE modules to initialize FP8 params without FP8 transposes. In the future, I can imagine extending this logic to fp8_autocast so it can handle FP8 data tensors. We could also support other heuristics (e.g. "performance", "communication", etc) and add logic for other quantization schemes. However, I've purposely kept this PR small to avoid interfering with other changes in the quantization infrastructure (see https://github.com/NVIDIA/TransformerEngine/pull/1251).
Type of change

[ ] Documentation change (change only to the documentation, either a fix or a new content)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Infra/Build change
[ ] Code refractor

Changes

Add heuristic option to fp8_model_init context

Checklist:

[x] I have read and followed the contributing guidelines
[x] The functionality is complete
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

/te-ci pytorch

/te-ci pytorch


try to use babel code frame in renderer worker for more useful error …

…messages (wip)

superceded by https://github.com/lvce-editor/lvce-editor/pull/681


Class:TemporalCoverage

Parent

Label
Temporal Coverage

Definition
A record of a time range represented by the collection's establishment or change over time. This term is separate from the living or geologic periods represented by the objects in the collection.

Usage

Repeatable
Yes

Relationships
Range: CollectionStatusHistory, Event, MeasurementOrFact, OrganisationalUnit, PersonRole, ResourceRelationship | Class-level properties: MeasurementOrFact, Reference

Potential standards/vocabularies/ontologies to adopt

Notes
This class can be used to reflect temporal coverage of the collection within various contexts (defined by the temporalCoverageType property). Examples might include the time range in which objects within the collection were collected or the time period over which the collection was assembled.  It should not be used to document the time range within which the objects in the collection were alive, and if the time period you are trying to describe is better described by the CollectionHistory, GeologicalContext or ChronometricAge classes, or period property of the ObjectGroup class, then those classes or properties should be used instead. For example, the period property of the ObjectGroup class and/or GeologicalContext class should be used to record named time periods.

Do you really mean to restrict the domain of temporalCoverage to a collection?  Seems that given the label, why not define it as a specification of a temporal extent, with domain = Perdurant (event or process instance).  Physical objects only have temporal extent indirectly, based on their participation in some event(s); the events have temporal extent.

As it stands, repeatable classes are repeatable in any context, i.e., regardless of the class to which they are attached.  Some classes seem to warrant different repeatability allowances in different situations.
For example, TemporalCoverage is repeatable, but in most use cases only a single attachment is needed. An Event seems like it should only ever have a single TemporalCoverage class attached.
However, there may be use cases in which this makes sense (we just don’t know what they are), and in the interest of not overcomplicating recommended use, we are only defining classes as repeatable in any context or none.


Hook must specify a required_executable or command that is tracked by git

My .overcommit.yml looks like:
PrePush:
  RuboCop:
    enabled: true
    command: ['bundle', 'exec', 'rubocop']
    on_warn: fail

  RSpec:
    enabled: true
    command: ['bundle', 'exec', 'rspec']
    on_warn: fail

PostCheckout:
  BundleInstall:
    enabled: true
    on_warn: fail

And when I try to git push I get a message:
Hook must specify a `required_executable` or `command` that is tracked by git (i.e. is a path relative to the root of the repository) so that it can be signed

What should I do in such case?

Hey @KamilLelonek,
There is no RuboCop pre-push hook available out of the box. You need to create one.
Since there is no RuboCop pre-push hook, Overcommit assumes you are trying to create an "ad hoc" hook—hooks which don't require a separate Ruby implementation file (like RSpec).
In order for Overcommit to provide security checks as outlined in the Security section, it requires ad hoc hooks to refer to scripts that are tracked by Git in your repository, which is why you're seeing the error message in question.
In this case I agree the error message could elaborate on this a bit, so I'll leave this open to track that update.


please add this plugin to haiku OS

please make a package

That needs to be done by someone else. Ido not know haiku so don't know what needs to be done.

Am 18.10.2020 um 19:32 schrieb kermit<EMAIL_ADDRESS>
please make a package
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

I think so too.

I have no idea, why you want a package specifically for haiku OS and don't want to clone this repo. But packaging anything is not our expertise, so either become active yourself and provide it (like Debian does), or ask your distribution to package vim-airline, if you cannot clone it yourself.

Why creating a package: for any distribution for any system?


UTF-8 characters

when using heavy checkmark column width is not properly calculated, this might be issue https://henvic.dev/posts/go-utf8/

Hi! Thanks for taking time to create this issue. Can you provide an example input and output please?

input
``
type Val struct {
CheckMark string
}
type Vals struct {
Values []*Val
}
vals := &Vals{}
val := &Val{CheckMark: "\u2714"}
arr := make([]*Val, 0)
arr = append(arr, val)
vals.Values = arr
``
output:
|  CheckMark |
|  U+2714         |

Hi there again.
I am not able to reproduce this issue
main.go
package main

import (
	"fmt"

	"github.com/ecoshub/stable"
)

func main() {
	type Val struct {
		CheckMark string
	}

	type Vals struct {
		Values []*Val
	}

	vals := &Vals{}
	val := &Val{CheckMark: "\u2714"}
	arr := make([]*Val, 0)
	arr = append(arr, val)
	vals.Values = arr

	fmt.Println("first print")
	// first print
	stable.Print(vals)

	fmt.Println("second print")
	// second print
	stable.Print(vals.Values)

	t, err := stable.ToTable(vals.Values)
	if err != nil {
		fmt.Println(err)
		return
	}

	fmt.Println("third print")
	// third print
	fmt.Println(t)
}

output:
first print
+------------------+
|       Vals       |
|------------------|
|      Values      |
|------------------|
|  [0xc0000103d0]  |
+------------------+

second print
+-------------+
|  CheckMark  |
|-------------|
|  ✔          |
+-------------+

third print
+-------------+
|  CheckMark  |
|-------------|
|  ✔          |
+-------------+

go.mod
module test/stable

go 1.16

require github.com/ecoshub/stable v1.0.3

Am I missing something....

yes that is the issue, do you see that check mark column is not aligned...

Ooo now I get it :))  Yes there is one more space char at the end. Thank you

I think there is another issue on this problem. Because I am only seeing this "extra space" from my mobile phone. On my laptop there is "extra space" everything seems OK. 😄
this is the screen shot from my laptop (macOS chrome Version 103.0.5060.134 (Official Build) (x86_64)):

and this is screenshot from my mobile phone:

Did you notice that?

@ecoshub sorry, why did you closed it? I see this issue when working in terminal...i see that there is possible issue also related to browsers but for sure you will see this issue in terminal, did you tried it in terminal??

tested with:
zsh    alacritty (Linux ecomain 5.17.4-arch1-1 x86_64 GNU/Linux)
sh     alacritty (Linux ecomain 5.17.4-arch1-1 x86_64 GNU/Linux)
zsh    xfce      (Linux ecomain 5.17.4-arch1-1 x86_64 GNU/Linux)
sh     xfce      (Linux ecomain 5.17.4-arch1-1 x86_64 GNU/Linux)
zsh    alacritty (Darwin  21.3.0 Darwin Kernel Version 21.3.0 x86_64)
bash   alacritty (Darwin  21.3.0 Darwin Kernel Version 21.3.0 x86_64)
sh     alacritty (Darwin  21.3.0 Darwin Kernel Version 21.3.0 x86_64)
zsh    warp      (Darwin  21.3.0 Darwin Kernel Version 21.3.0 x86_64)
bash   warp      (Darwin  21.3.0 Darwin Kernel Version 21.3.0 x86_64)
sh     warp      (Darwin  21.3.0 Darwin Kernel Version 21.3.0 x86_64)

no extra space.
think about it if I update "column width" function those setups gonna fail this time.
if you have any solution please share with me I would be if there is a solution.


Work to support chef-server on IBM POWER platforms

These are all the chef-server specific changes to support Linux (RHEL and Ubuntu) on IBM POWER8. This also depends on chef/omnibus-software#642 which updates software components, adds the IBM JRE, and works around missing JITs on the POWER8 architecture.
/cc @chef/chef-server-maintainers

:+1: Looks reasonable to me. It might be nice to rebase/squash before merge.

👍


Pandas version incompatibility

Per discussion in nflverse discord.
Release 0.2.7 updated Pandas to a version not compatible with Python 3.6. This requirement should be reverted if possible. Alternatively if functionality in the updated Pandas is found to be needed, then the package metadata should be updated to specify it requires Python >= 3.7.

Resolved in release 0.2.11, requirements updated to Python >= 3.6 and pandas requirements reduced to > 1.


Update GETTINGSTARTED.md

The step "Checkout this repository on your PC" updated to clarify using git lfs clone

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Unable to access PADv2 through Baidu Pan

Hi,
First of all, thank you very much for this great work and also for making your code and data publicly available! For a research project, I would like to download PADv2, however since I am located in Switzerland I was unable to create a Baidu account to access the dataset through Baidu Pan. Would it be possible for you to upload PADv2 on Google Drive as well?
Thank you very much for your time!
Best,
Ayça

I have uploaded PADv2 dataset to https://drive.google.com/file/d/1TMWYMgO2GRM9ScEMCqEBwCPYk-UWBURD/view?usp=sharing

Thanks a lot!


fix(validation): Added validation logic for Project name

Added validation for

Project Name in all the applicable screens.
Project Version in summary screen
Maven artifact in summary screen
Group Id in summary screen

@jyasveer merged it


Follow official tutorials for multi-lingual porfolio

Hello @wr0124, I guess you want to add Chinese !
You may want to follow this playlist :

[ ] Vidéo

[x] Video 1 : customization
[x] Video 2 : create new language

@hugolpz Thanks for writing through github! it is a nice way to learn how to use it!   I had watched video2, but I get problem of Synchronization. I can totally modify the files as following the steps, but failed to connect to github.  I guess maybe due to some setting issues ?


Editing the DOM inside Vue instance with Devtools stops Vue binding altogether

http://jsfiddle.net/6pzxsx12/1/
Steps to reproduce:

Open DevTools
Traverse to
 then edit as HTML
Add something anywhere inside the

The counter stops.

This is expected, you replaced it with a different DOM Node that Vue has no way to track.


Create search fragment

What this PR does / why we need it:
Add search fragment. Suitable for usage in a separate page. Can be used inside navigation with a few style changes in the future.
Which issue this PR fixes:
fixes #7
fixes #8
Special notes for your reviewer:
Demo is available in here. Almost all of the code is here thanks to eddiewebb.
The config is generated using fuse.js's website. It might seem weird so please feel free to change it. Fuse is a fuzzy search and in that, it seems a bit buggy. Not really sure if it's buggy or not.
Please do not merge this so we can have a bit more discussion on it (possibility of changing search library, using an online service and ...).
Release note:
- search: Add search fragment

[ ] Move navigation to left if search is enabled, search would be aligned right
[ ] Move search to collapse in mobile
[ ] Extract design of search results section to a partial and share them between navbar and search fragment

As it might go amiss: https://github.com/okkur/syna/pull/327#discussion_r214436416

Looks good. One clarification question and 2 todos still open: https://github.com/okkur/syna/pull/327#issuecomment-417459465

Also the alignment seems broken on the actual search page. https://deploy-preview-327--syna-demo.netlify.com/search/

I think everything is now in order. I updated the nav example with the search param but set it to false since navbar already has a search and two navbar with two searches will mess up :D

Awesome. We are almost there.
Found a small bug. Enter something in the navbar search -> hit enter or click search icon -> redirected to search page, but no search term is given.

Haha clicking on the submit button or pressing Enter triggered the close search functionality and form was submitted after that. Fixed the issue.

And we have search. That is so awesome. \o/


Modrinth Support For Plugins

Importance: 7/10
Problem:
I tried adding a plugin to auto-update from Modrinth but it doesn't seem to work:
FreedomChat:
  exclude: false
  version: 1.3.1
  latest-version:
  author: Oharass
  spigot-id: 0
  bukkit-id: 0
  ignore-content-type: false
  custom-check-url: https://api.modrinth.com/v2/project/MubyTbnA/version?loaders=[%22paper%22]
  custom-download-url:

Solution:
Add support for Modrinth or if I'm not doing it correctly show me how

custom-check-url requires a relatively specific response, so I doubt that will work.
Modrinth support for plugins is being worked on by the community, which usually means that it takes years before its added.
You can add support for it yourself if you know a bit of Java.

It would be pretty easy to implement, since support already exists for modrinth mods.


parallelize engine operations

Cluster operations on engines should be parallelized.
cc @nishanttotla @wsong @alexmavr.
Signed-off-by: Dong Chen<EMAIL_ADDRESS>

LGTM, ping @nishanttotla


Add Mailgun transport

Closes #108

This is still WIP

@TheNeikos Hey, I would love to use this in my app. What still need to be done? Is there anything I can do to help?

You can check out the discussion in #108, but I don't plan on working on this future, sorry!


Store registrations in a permanent way

Maybe with Redis

Done - please close

I added you as a collaborator.


add notebook tests, build.sh args

Closes #53
This pulls over the remaining changes from that PR... thought that was easier than fixing the merge conflicts between that and recent PRs.

adds notebook testing
adds all the remaining build.sh changes from #53 (mostly for interactive development)
adds cugraph-pyg and cugraph-dgl tests in conda-python-tests (missed in #59)

Notes for Reviewers
I left other comments explaining these changes inline.

/merge


Jk scheduler

Description
Implement lr scheduler. Neptune links: constant scheduler, cosine scheduler. Image with plot of lr below (respectively: constant with warmup=100; cosine with warmup=100, final_lr_step=900)
Checklist

[yes] Is this PR focused on a single feature without the possibility of being divided into smaller PRs?
[yes] Are all variables set with logical defaults that are backward compatible?
[yes] I attached link to neptune if it was necessary
[yes] Have you successfully executed the linter and tests?
[yes] Are all functions concise and don't require splitting?
[yes] Is there documentation for arguments and complex logic?
[no] Are there no temporary solutions in the code? Should a task be added to Trello to refine the code?
[yes] Are all functions placed in appropriate files?
[yes] Is the PR name meaningful and descriptive?
[provided] Is PR description provided, or unnecessary?

Other questions:

[-] If I made changes to the requirements or anything related to the Singularity image I did generate new image and upload a new image to the clusters
[yes] If this change is significant enough I notified all individuals working with this repository (@channel in slack channel)
[yes] If there is a need for a second reviewer I requested additional review

Constant scheduler

Cosine scheduler

I would love to see some simple tests on the schedulers. One for each type.

That the values each step are correct.


Only works in IE11 after a refresh (or with Developer Tools open)

The getSize function returns the wrong values in IE11 when the page is just opened (not refreshed).
After a refresh (F5) it does return the right width.
I've narrowed it down to the following problem:
On line 95, the variable isBoxSizeOuter is set:
isBoxSizeOuter = getStyleSize( style.width ) === 200;
On IE11 this value seems to randomly 'jump' between true and false.
Inserting the following line, seems to fix it:
if (!!navigator.userAgent.match(/Trident.*rv[ :]*11\./)) isBoxSizeOuter = false;

getSize v3 does not support IE11. Closing this one as a wontfix.


Merge Rampup into Main

@shimkiv thanks for getting this started! make sure to also do the same merge in o1js-bindings and include here


Should be an option to keep downloaded data sources around

Currently sq writes a downloaded remote data source to a temporary file. There should be an option to keep this file around.

Duplicates #24.


How to use chartisan front end library located in node_moudules

I have installed chartisan npm package using npm install and now the i can see its folder in node_modules too.
But not sure how to use it with Laravel-AdminLTE. Is there anything I need to do in config/adminlte.php or add any script tag in main_views master.blade.php?
In general the question would be how to use js framework installed by npm in node_modules directory?
Please help.

Closed, no feedback from author...


Add generator tests in test/specs/rules/require-arrow-functions.js

I've been told the requireArrowFunctions rule doesn't work well with generators, and I had a look at test/specs/rules/require-arrow-functions.js and it doesn't appear to be any generator tests there.

At this point only major and CST related bugs will be fixed.


case statement for operatingsystem, set version from this

Fixes bfraser/puppet-grafana#42

Rather than using $::operatingsystem, can we get away with $::osfamily here to support other EL type systems (e.g. Scientific)?

The version parameter is also referenced by the 'archive' install method, which can be used regardless of the operating system. Perhaps we can default to version 2.1.0 and only set it to 2.1.0-1 in a conditional as part of the 'package' and 'repo' install methods? I'm open to suggestions.

I agree osfamily is better. I'll change it tomorrow.

Actually, looking at this further, this change would break the package_source parameter as the URL includes a reference to version. I've actually hardcoded the '-1' in init.pp.

The last commit should resolve the discussed issues.

This will still prevent the archive install method from working, as it references the version parameter too.
How can we implement this while still permitting the archive method to work, as that should be a fallback for users that are either not using Debian or RedHat based systems, or choose to not use packages for some reason?
Along those lines, I don't know that we should fail outright if the target system is not one of those OS families.

Let me know if you see any other issues.

This looks good @adamcstephens thanks for the contribution!


added PyPi coordinates

To address https://github.com/strongbox/strongbox/issues/809
It's a semi - wip and is hence pretty bumpy. Ill be happy with any remarks that you might have.
One question is whether ID is a requirement to be had? It seems like it, together with version. I went with constructing it from most common unique elements. Please let me know if that is what's supposed to happen ;)

Perhaps this wasn't explicitly mentioned in the task's description, but there's a bit more to this... Along with the ArtifactCoordinates implementation, there needs to be a utility class which can convert paths to ArtifactCoordinates and vice-versa. (We've also been working on improving the How To Implement-Your Own Repository Format where this is described. Could you please have a look at the updated page and implement such a utility class and the tests for it?
Thanks! (And sorry, if the original task's description didn't mention this explicitly).

@ror6ax ,
Would you like to continue investigating this, or are you no longer interested/able to do so?

Thanks for your efforts, @ror6ax! However, as it needed some more work and you seemed to have abandoned this, another contributor implemented it.
Closing in favour of #1197.


Deprecate Curator

This moves all the implementation details of Curator to a non-public package,
while preserving the API.
The plan is to add a minimal interface for VespaCurator that we'll expose as a
public API.
Depends on internal PR due to the deprecation.
(The large diff is mainly due to refactoring of MockCurator)
@hmusum and @bratseth

I see that you have both moved the implementation of Curator into VespaCurator and also declares that the package containing Curator should be removed. Why do both? Seems like one or the other should be sufficient.
The Curator deprecation tells people to use com.yahoo.vespa.curator.impl.VespaCurator instead, but they can't since it isn't public.
What do you plan to remove from the API? It's hard to have an opinion on this without seeing the rest of the plan I think.

Why do both?

We want to reuse code, i.e. our own code should use the same implementation as users of the public API.

The Curator deprecation tells people to use com.yahoo.vespa.curator.impl.VespaCurator instead

Yes, that comment is confusing. It was intended for usage in our own code. Will fix.

What do you plan to remove from the API? It's hard to have an opinion on this without seeing the rest of the plan I think.

The plan is:

Users inject com.yahoo.vespa.curator.api.VespaCurator (public API, implemented by impl.VespaCurator) that only exposes locking in the initial version. This interface can then grow based on user requirements.
Our own code injects com.yahoo.vespa.curator.impl.VespaCurator and can access the full non-public API.
com.yahoo.vespa.curator.Curator is removed in Vespa 8 (and package becomes non-public). The impl package could then be pulled up one-level, but that's not really important.
On Vespa 8 com.yahoo.vespa.curator.api will be the only public API.

So the goal is 1) to provide just the locking part of the API as public, and 2) revoke public on com.yahoo.vespa.curator.
Makes sense, but wouldn't you achieve this just by adding com.yahoo.vespa.curator.api.VespaCurator (implemented by Curator), adding the deprecation com.yahoo.vespa.curator and nothing else?

Looks like that may be possible, but Curator needs to have ConfigserverConfig injected. I see now that the config-model already (and surprisingly) produces that config for container clusters: https://github.com/vespa-engine/vespa/blob/master/config-model/src/main/java/com/yahoo/vespa/model/container/ContainerCluster.java#L559, but the initial plan was to use the new CuratorConfig for this.

Yes, that's a bit surprising, but I don't see the connection to this?

VespaCurator in this PR takes a CuratorConfig instead of ConfigserverConfig. Our idea was to change the config model to produce that CuratorConfig for container clusters instead adding ConfigserverConfig in even more non-ideal places, but it already does the latter... 😅

Good plan but we can achieve that just by accepting both configs in Curator?

Sure, but does DI handle more than one constructor annotated with @Inject? If I remember correctly, it fails as it doesn't know which one to choose. I'm thinking that since the config-model already creates ConfigserverConfig we can keep using that for now.

Sure, but does DI handle more than one constructor annotated with @Inject?

No, but we can just change which one has the @Inject.

I'm thinking that since the config-model already creates ConfigserverConfig we can keep using that for now.

Yes, it doesn't make it worse.


the debug mode

hi,
how to allow the debug mod ?   admins can 't use the consol, but not the devcommands and debug mod.
thx

@tophlcvf Did you set the -console launch option in Steam?
Have a look here: https://github.com/lloesche/valheim-server-docker#enable-admin-console

yes, but i just got the console, not the debug mode

@tophlcvf Ah, now I get it. The devcommands (and therefore also the debugmode) command does not work on dedicated servers. You can just use simple commands like kick or ban. Type help in the console to to see which commands can be used.

ah I was wondering why this was not working, is there any way that ValheimPlus or some mods can give back commands to admins ? Simple stuff like weather or whatever

@Gby56 Yes I've seen some mods that enable devcommands on dedicated servers. Not sure qhich one is the best. Just search for them in Thunderstore (or Nexus) and pick the one that fits you best.


[Bug] [E2E] The SqlServerCDCIT CI seems unstable

Search before asking

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

What happened

SeaTunnel Version
dev
SeaTunnel Config
none

Running Command
none

Error Exception
none

Zeta or Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

https://github.com/Carl-Zhou-CN/incubator-seatunnel/actions/runs/7437987933/job/20237718444


cannot reproduce result in your paper with InceptionV4

Hi, I tried to use InceptionV4 as CNN encoder to train the Baseline-XE model, but I cannot get the results like your paper. When finishing trarining, I got three .pth, i.e., epoch1, epoch2, and epoch3. I didn't konw which is more better, so I tested them respectively. I found epoch3.pth is the best among three. But the results are still lower than your paper.
I got the results as follows:
2020-04-22 18:00:49,045:INFO::Results:
2020-04-22 18:00:49,046:INFO::BLEU-4:0.3745473407866488
2020-04-22 18:00:49,046:INFO::METEOR:0.26116567752846037
2020-04-22 18:00:49,046:INFO::ROUGE_L:0.5878605132246427
2020-04-22 18:00:49,046:INFO::CIDEr:0.4295072766573666
2020-04-22 18:00:49,046:INFO::AVG:0.4132702020492796,
which are much lower than your paper, B4 38.6,  M 27.7, R-L 59.5, and C 44.6.
I trained the model with python3.6.10, pytorch0.3.1, and TitanXP gpu.

Hi, if you see the training details in the supplementary of the paper, you will notice that we used 5-average-ensemble models for reporting the main table results.

Hi, I do not konw exactly what's the meaning of 5-average-ensemble.  Does that mean you selected top-5 best models on the validation set and computed a average score among them?


go azure identity is misaligned with az core

during the "release" of core library we upgraded from azcore 0.19.0 to 0.20.0. However there's no azidentity for that version yet.
The workaround for now is to edit the go mod and replace az identity by
github.com/Azure/azure-sdk-for-go/sdk/azidentity v0.0.0-20211101190130-7f961f26ebb5

We could either:

wait for the azure team to release a new and aligned version
downgrade to 0.19.0

The team released the new version, which addresses the issue.


fix currency bug

Referencing oscars PR. I'll add a link later

https://github.com/open-telemetry/opentelemetry-demo/pull/507

Testing this out.


hash operator() must not throw exceptions

hash operator() must not throw exceptions, so let it be noexcept

We can't do that in this case - the standard doesn't specify this and absl::optional is a pre-adopted type.
We could probably comment somewhere that (many) hash containers don't allow throwing if you'd like to be explicit about it.

@tituswinters the Standard guarantees that any member of std::hash (including std::hash::operator()) will not throw exceptions

http://eel.is/c++draft/unord.hash#3 "except as noted otherwise"
http://eel.is/c++draft/optional.hash "are not guaranteed to be noexcept"
Am I missing something?

Looks like this is conclusive. Closing


fix for ignoring res status

Describe what your pull request addresses

[ ] response status return from saving to DCS was being ignored

Test Instructions

[ ] At the moment, 403 status is being returned from uW en_tn conversion (not sure why, but this is how I found that the status was being ignored)

Now shows:


RGB colors no longer consistent with Love2d

LÖVE version: 11.1
love.js commit: 38ab12b
I'm not entirely sure when/why this happened, but the setColor method in Love2d now takes values between 0-1, instead of 0-255 (I'm using LOVE 11.1).
So, the following code:
love.graphics.setColor(0.2, 0.8, 0.2)

...produces a lovely shade of green in Love2d. After converting to HTML5 with love.js, however, it appears black, because the browser interprets RGB values on a scale of 0-255.

Did you ever figure out how to solve this? When I run my game I can hear it playing but everything is black so I am assuming I am having the same issue as you.

This is not the only difference between Love 0.10.0 and 11.1, although it is a major one. It would probably be a good idea to develop your game in 0.10.0 instead if you want to ensure compatibility with love.js.

Usually I have a constant that is set in the configurations according to the love version like:
local major, minor, revision, codename
major, minor, revision, codename = love.getVersion()

-- Colors in love 0.10 where between 0-255 but now are 0-1
COLOR_SCALE = 1
if major < 1 then
    COLOR_SCALE = 255
end

And when I want some color I just do
love.graphics.setColor(0.8 * COLOR_SCALE, 0.2 * COLOR_SCALE, 0.5 * COLOR_SCALE)

Another option is to wrap lg.setColor on startup:
if major < 1 then
  local _setColor = love.graphics.setColor
  love.graphics.setColor = function(...)
    local vals = { ... }
    for i = 1, #vals do
      vals[i] = 255 * val[i]
    end
    return _setColor(unpack(vals))
  end
end

Is this issue still present on the 0.11 branch? I'm new to Love and this seems like a common change I keep hitting with older libraries. I was wondering if it'd be worth investigating upgrading Love.js to 11.X, but then I found the 0.11 branch where this seems to already have happened.


AWS faults href links

AWS 10 faults href links added

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://65802c658ccef333b29630a3--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://65817c72bcd12211e5e4a981--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6593da98929bea6c3885f6e9--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://6593ef2edd95820a71da9bc5--harness-developer.netlify.app


Add if defined EXECINFO

I have submitted a patch at https://github.com/MisterTea/EternalTerminal/pull/269 to support this change there and also added here.
MUSL libc does not natively have libexecinfo. Adding this change,
makes execinfo optional
Signed-off-by: Nathan Owens<EMAIL_ADDRESS>This is a

[X] New feature

I have

[X] Merged in the latest upstream changes
[ ] Run the tests

Closing until I have it setup correctly, as I thought I did.


(elixir) improve elixir language recognition and support

This improves Elixir language recognition and support.
Minor: Adds the keyword defguard. Pronounced "def guard".
Major: Improve highlight support for Elixir. Specifically when recognizing and coloring references to a module.
Changes
The areas indicated in the graphic are colored yellow, the same color as the module name in the declaration. Prior to this change, those all appear as a plain term and are gray.

Checklist

[ ] Added markup tests, or they don't apply here because...
[x] Updated the changelog at CHANGES.md

Looks reasonable, but we also need some markup tests to verify the behavior of the new module highlight rule.

Looks reasonable, but we also need some markup tests to verify the behavior of the new module highlight rule.

Great! Now I just need to figure out how to do that. :)

Making progress

@joshgoebel added new test file and updated others for the added highlighting.
I believe it is ready. Let me know if there's anything else I need to do. Thankd!

Does ALL_CAPS have any traditional semantic meaning in Elixir?

Does ALL_CAPS have any traditional semantic meaning in Elixir?

I can't think of anything. It's valid code, but it's not used for things like constants as in other languages. Is there something specific you're asking about?

Well some languages make a distinction and right now your regex matches both so had to ask. So if there is no real convention then I assume assuming it's a module would be fine?

Well some languages make a distinction and right now your regex matches both so had to ask. So if there is no real convention then I assume assuming it's a module would be fine?

Ah, I see. Thanks for clarifying. Yes. In Elixir it's really just modules, functions, and data. A module starts with an uppercase letter. The rest can also be upper but Pascal case is the convention.
Thanks for following through. I appreciate the work that's been done on the library.

Thanks for the feedback. How's it look now?

@brainlid Thanks so much!


Lint code

This change is

Coverage decreased (-0.03%) to 43.955% when pulling 681ca36b1c0078b84eeae5253a9ffac22af86cba on aledbf:doc-equals into a56dd7cc38d6ee3b86dc5a34201fa96d4e0f4209 on kubernetes:master.


Bump to php-cs-fixer v3.1

Description
New fixers applied:

declare_parentheses
empty_loop_body
removed deprecated class_keyword_remove
types_spaces
new option for class_definition

Only fixer with effect is the new option of class_definition adding a space before the parenthesis of anonymous class instantiation to line it with PSR12 requirement that anonymous classes should follow and behave like closures.
Checklist:

[x] Securely signed commits

I may be blind, but should the composer.json not be updated with 3.1?

@sfadschm You're not wrong, it's a bit confusing. This will ultimate land at https://github.com/CodeIgniter/coding-standard which will be applied here, but the easiest way to see the effects of each rule (especially while we're getting set up) is to apply them to the framework directly. I'm sure Paul will bump the Composer version at the source repo when it is ready.

Oh right. Just thought the fixer might complain in the checks, when its on 3.0 but some rules are from 3.1.
This does not seem to be the case, so all good :-)


[Usage] kafka to hive

Search before asking

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

Description
Have any one have load data from kakfa to hive successed？
Can u share a example?
Seatunnel 2.1.0（compiled）
Hive 2.5.7
Spark 2.4.0
Hadoop 2.8.0
Although I can load data from kafka to hive table sometimes:
Hive Table：db_test.db/test_table/user_10.db/part-00000-e7732d9e-e4ff-4499-8c6a-60216ba51fdb-c000.snappy.parquet
And has a error：
28899 [streaming-job-executor-0] INFO  hive.metastore  - Mestastore configuration hive.metastore.filter.hook changed from org.apache.hadoop.hive.metastore.DefaultMetaStoreFilterHookImpl to org.apache.hadoop.hive.ql.security.authorization.plugin.AuthorizationMetaStoreFilterHook
Exception in thread "streaming-job-executor-0" java.lang.NoSuchMethodError: com.facebook.fb303.FacebookService$Client.sendBaseOneway(Ljava/lang/String;Lorg/apache/thrift/TBase;)V
    at com.facebook.fb303.FacebookService$Client.send_shutdown(FacebookService.java:436)
    at com.facebook.fb303.FacebookService$Client.shutdown(FacebookService.java:430)
    at org.apache.hadoop.hive.metastore.HiveMetaStoreClient.close(HiveMetaStoreClient.java:492)

But I can  table test_table not in show tables and the data in parquet file is only part of the produce messages.
Usage Scenario

Related issues

Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

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

Do you add other dependency? This error seem like dependency conflict. Also please provide your config.

the config is
`
source {
kafkaStream {
topics = "test_topic"
consumer.bootstrap.servers = "xxx1:9092,xxx2:9092,xxx3:9092"
consumer.group.id = "seatunnel_group"
}
}
transform {
json {
source_field = "raw_message"
result_table_name = res_table
}
}
sink {
Hive {
source_table_name = "res_table"
result_table_name = "xxx.seatunnel_test"
save_mode = "append"
sink_columns = "id,key"
}
}
`

@better629 Can you read write data into hive success with your spark environment? It seems this caused by your spark job has not loaded the jar libfb303-0.9.3.jar, and this jar should in your ${spark_home}/jars

@ruanwenjun  the jar exists, it's
xxx]# find ./ -name "*fb303*" ./jars/libfb303-0.9.3.jar

@someorz I have tried version seatunnel-1.5.7, and it works. Maybe you can have a try. But the above problem not solved.

@better629 modify root pom.xml maven-shade-plugin，exclude org.apache.thrift:libthrift

@someorz how to find this?

@better629 analyza dependencies

Hive actually uses libthrift-0.9.3 instead of 0.9.0, but due to dependency conflicts, the packaged jar is 0.9.0.


Create entity for a Fastly Datacenter (aka POP)

Relevant information
Parsing Logs-to-Metrics and then synthesizing the metrics to create an entity for a Fastly datacenter (POP)
Checklist

[X] I've read the guidelines and understand the acceptance criteria.
[X] The value of the attribute marked as identifier will be unique and valid.
[X] I've confirmed that my entity type wasn't already defined. If it is I'm providing an
explanation above.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@nr-jbiggley the - is not accepted in the name of the type. Also the length for the name of the type is limited to 11.
Here is the regexp that it needs to match /[A-Z][A-Z0-9_]{2,11}/ (more details in the README of this repo). You can use https://regexr.com/ to verify that it's matching the regexp.

Sorry @nr-jbiggley I missed this in my previous review: the directory should match exactly this format "$domain-$type" in lowercase.  Can you rename it to ext-fastly_pop? I'll merge right after that's done.

thanks @nr-jbiggley !


Incorrect time

Hi,
my timezone on RaspberryPi is Czech Republic Prague UTC+2

ramp-thermostat node switching in incorrect time viz screenshot...

Strange, it shouldn't, the ramp-thermostat uses Date().
Try this flow and post what you get:
[{"id":"bae429e2.64e498","type":"function","z":"cf6706ec.415a58","name":"","func":"msg.payload = new Date();\n\nreturn msg;","outputs":1,"noerr":0,"x":270,"y":2620,"wires":[["1ac21ef9.332ec1"]]},{"id":"1ac21ef9.332ec1","type":"debug","z":"cf6706ec.415a58","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":430,"y":2620,"wires":[]},{"id":"add46b9a.c51008","type":"inject","z":"cf6706ec.415a58","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":2620,"wires":[["bae429e2.64e498"]]}]

Hi,
return

"Tue Oct 02 2018 16:27:31 GMT+0000 (UTC)"

actually now 18:27:31

root@raspberrypi:~# date

Tue 2 Oct 18:27:55 CEST 2018

Something is different, I get:
"Tue Oct 02 2018 19:01:23 GMT+0200 (CEST)"

$ date
Tue Oct  2 19:00:49 CEST 2018

I don't now why, you might ask in the node-red-forum.

I'm researching the internet and I'm not the only one with this problem.
So far I have found one thing:
new Date(); returned "Tue Oct 02 2018 17:05:45 GMT+0000 (UTC)"
new Date().toLocaleString(); returned "2018-10-2 19:05:45"

There is no such setting in my settings.js. Anyway it's okey.


services / "new" environments

This tracks the implementation of Services in wrangler v2. Of note, we may want to detail the transition story from existing "wrangler v1 style" environments.

Awesome upgrade to environments , hoping this would be available in wrangler soon .
As of now , Is dashboard the only way to interact with the "new" environments ?

Currently, yes, the dashboard is the only way to interact with the new environments. That said, we're actively thinking about what it looks like in wrangler v2. Will share details when we have something concrete.

This is now being targeted for 2.0 release, work can be followed in #382


Alias conda-server to binstar

Users can now run conda server ... in place of binstar .... This change is backwards compatible.
cc @asmeurer @csoja @ilanschnell

@srossross :+1: for maintaining BC.  What about including a note in the binstar version noting that it's been deprecated and guiding users toward the new interface?  That's what I did when moving woc-* CLI tools to wk-server-* (see example here).  It's amazing what users will do to get things to quiet down. :-)

@tswicegood that is a good idea.


[NeurIPS 2023 OOD Track] Submission from Team UTokyo

This is a submission from our team UTokyo.
Our algorithm is epsearch.
If it has something wrong, I would appreciate quick response about it.
Additionally, I hope to see the result output to check the performance gap, because I'm not available the same VM as yours.

Thanks for your submission. I was unable to install the code. Could you please help?
10.33 Get:47 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libwebsocketpp-dev amd64 0.8.2-4 [119 kB]
10.43 Err:46 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libssl-dev amd64 3.0.2-0ubuntu1.10
10.43   404  Not Found [IP: <IP_ADDRESS> 80]
10.80 Get:48 http://archive.ubuntu.com/ubuntu jammy/universe amd64 libcpprest-dev amd64 2.10.18-1build2 [158 kB]
10.99 E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_3.0.2-0ubuntu1.10_amd64.deb  404  Not Found [IP: <IP_ADDRESS> 80]
10.99 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
10.99 Fetched 66.6 MB in 10s (6780 kB/s)
------
Dockerfile:7
--------------------
   5 |     RUN add-apt-repository -y ppa:git-core/ppa
   6 |     RUN apt update
   7 | >>> RUN DEBIAN_FRONTEND=noninteractive apt install -y git make g++ libaio-dev libgoogle-perftools-dev libunwind-dev clang-format libboost-dev libboost-program-options-dev libcpprest-dev python3.10
   8 |     # mkl
   9 |     RUN DEBIAN_FRONTEND=noninteractive apt install -y intel-mkl
--------------------
ERROR: failed to solve: process "/bin/sh -c DEBIAN_FRONTEND=noninteractive apt install -y git make g++ libaio-dev libgoogle-perftools-dev libunwind-dev clang-format libboost-dev libboost-program-options-dev libcpprest-dev python3.10" did not complete successfully: exit code: 100

Install Status:
{'neurips23-ood-epsearch': 'fail'}

It seems network issue, since it shows 404.
In CI executed about 7 hours ago worked successfully, here is the CI log:
https://github.com/maronuu/big-ann-benchmarks/actions/runs/6685604607/job/18164076292#step:4:2379
So could you please retry after removing docker build cache, or reboot the VM?

@harsha-simhadri

Yes, I am trying from a different machine. will update soon

I am curious why your docker script is so long -- faiss, diskann, hnsw installs and then some. Can this be pruned?

Sorry, all of them faiss, hnswlib, and diskann (built from our modified source) are used in our solution...
Will try to reduce the dependencies to investigate the dockerfile, but I'd appreciate you could continue the evaluation.
Thank you for understanding

I am able to install and run now, but see the following crash
2023-10-30 06:00:22,465 - annb.da2885bf00d6 - INFO - Time taken for save: 70.039s.
2023-10-30 06:00:23,168 - annb.da2885bf00d6 - INFO - DiskANN index built at /home/app/data/indices/ood/diskann/Text2Image1B-10000000/R60_L500_alpha1.0/R60_L500_alpha1.0
2023-10-30 06:00:23,168 - annb.da2885bf00d6 - INFO - DiskANN index built in 6738.572 s
2023-10-30 06:00:23,168 - annb.da2885bf00d6 - INFO - Loading index..
2023-10-30 06:00:23,172 - annb.da2885bf00d6 - INFO - /opt/miniconda3/envs/utokyo/lib/python3.10/site-packages/diskannpy/_common.py:250: UserWarning: The number of vectors in the saved index exceeds the max_vectors parameter. max_vectors is being adjusted to accommodate the dataset, but any insertions will fail.
2023-10-30 06:00:23,172 - annb.da2885bf00d6 - INFO -   warnings.warn(
2023-10-30 06:00:23,172 - annb.da2885bf00d6 - INFO - /opt/miniconda3/envs/utokyo/lib/python3.10/site-packages/diskannpy/_common.py:256: UserWarning: The number of vectors in the saved index equals max_vectors parameter. Any insertions will fail.
2023-10-30 06:00:23,172 - annb.da2885bf00d6 - INFO -   warnings.warn(
2023-10-30 06:00:23,196 - annb.da2885bf00d6 - INFO - Inner product: Using AVX2 implementation AVXDistanceInnerProductFloat
2023-10-30 06:00:24,934 - annb.da2885bf00d6 - INFO - /tmp/tmpiy6kl6l0: line 3:    15 Killed                  python3 -u run_algorithm.py --dataset text2image-10M --algorithm epsearch --module neurips23.ood.epsearch.diskann-in-mem-ep-hnsw --constructor epdiskann --runs 5 --count 10 --neurips23track ood '["ip", {"R": 60, "L": 500, "alpha": 1.0, "n_ep_candidates": 16384, "buildthreads": 8, "ep_train": "id", "M": 32, "efConstruction": 200}]' '[{"Ls": 70, "T": 8, "efSearch": 32}]' '[{"Ls": 70, "T": 8, "efSearch": 128}]' '[{"Ls": 80, "T": 8, "efSearch": 32}]' '[{"Ls": 80, "T": 8, "efSearch": 128}]' '[{"Ls": 85, "T": 8, "efSearch": 32}]' '[{"Ls": 90, "T": 8, "efSearch": 32}]' '[{"Ls": 95, "T": 8, "efSearch": 32}]' '[{"Ls": 100, "T": 8, "efSearch": 32}]' '[{"Ls": 105, "T": 8, "efSearch": 32}]' '[{"Ls": 110, "T": 8, "efSearch": 32}]'
2023-10-30 06:00:24,968 - annb.da2885bf00d6 - INFO - ERROR conda.cli.main_run:execute(49): `conda run python3 -u run_algorithm.py --dataset text2image-10M --algorithm epsearch --module neurips23.ood.epsearch.diskann-in-mem-ep-hnsw --constructor epdiskann --runs 5 --count 10 --neurips23track ood ["ip", {"R": 60, "L": 500, "alpha": 1.0, "n_ep_candidates": 16384, "buildthreads": 8, "ep_train": "id", "M": 32, "efConstruction": 200}] [{"Ls": 70, "T": 8, "efSearch": 32}] [{"Ls": 70, "T": 8, "efSearch": 128}] [{"Ls": 80, "T": 8, "efSearch": 32}] [{"Ls": 80, "T": 8, "efSearch": 128}] [{"Ls": 85, "T": 8, "efSearch": 32}] [{"Ls": 90, "T": 8, "efSearch": 32}] [{"Ls": 95, "T": 8, "efSearch": 32}] [{"Ls": 100, "T": 8, "efSearch": 32}] [{"Ls": 105, "T": 8, "efSearch": 32}] [{"Ls": 110, "T": 8, "efSearch": 32}]` failed. (See above for error)
2023-10-30 06:00:26,702 - annb.da2885bf00d6 - ERROR - ['ip', {'R': 60, 'L': 500, 'alpha': 1.0, 'n_ep_candidates': 16384, 'buildthreads': 8, 'ep_train': 'id', 'M': 32, 'efConstruction': 200}]
Trying to instantiate neurips23.ood.epsearch.diskann-in-mem-ep-hnsw.epdiskann(['ip', {'R': 60, 'L': 500, 'alpha': 1.0, 'n_ep_candidates': 16384, 'buildthreads': 8, 'ep_train': 'id', 'M': 32, 'efConstruction': 200}])
Running epsearch on text2image-10M
buildthreads: 8
buildthreads: 8 set to faiss
data/text2image1B/base.1B.fbin.crop_nb_10000000
xb shape: (10000000, 200)
Building Entry Point Searcher..
ep index not found at /home/app/data/indices/ood/diskann/Text2Image1B-10000000/mydiskann-ep-hnsw_n_ep_candidates16384_M32_efConstruction200/ep_R60_L500_alpha1.0.index, building...
candidate ids not found, building...
training kmeans
training kmeans done
centroids: (16384, 200)
delete kmeans instance
build raw index
build raw index done
candidate ids: (16384,)
[9192670 6146820 7294570 ...<PHONE_NUMBER>299 1113765]
saving candidate ids...
build search index
candidate vecs: (16384, 200)
adding items to hnsw index
build search index done
write index...
write index done
EP Searcher built in 1290.920 s
Building DiskANN index..
DiskANN index does not exist at /home/app/data/indices/ood/diskann/Text2Image1B-10000000/R60_L500_alpha1.0/R60_L500_alpha1.0, building...
Inner product: Using AVX2 implementation AVXDistanceInnerProductFloat
Using only first 10000000 from file..
Starting index build with 10000000 points...
99% of index build completed.Starting final cleanup..done. Link time: 5354.67s
Index built with degree: max:60  avg:34.2944  min:1  count(deg<2):167
Not saving tags as they are not enabled.
Time taken for save: 70.039s.
DiskANN index built at /home/app/data/indices/ood/diskann/Text2Image1B-10000000/R60_L500_alpha1.0/R60_L500_alpha1.0
DiskANN index built in 6738.572 s
Loading index..
/opt/miniconda3/envs/utokyo/lib/python3.10/site-packages/diskannpy/_common.py:250: UserWarning: The number of vectors in the saved index exceeds the max_vectors parameter. max_vectors is being adjusted to accommodate the dataset, but any insertions will fail.
  warnings.warn(
/opt/miniconda3/envs/utokyo/lib/python3.10/site-packages/diskannpy/_common.py:256: UserWarning: The number of vectors in the saved index equals max_vectors parameter.  (See above for error)

@harsha-simhadri
Thank you for the response!
Could you please re-run the script? It will load the built index, since index building seems OK.
I encountered the same kind of issue when running the baseline diskann.
When you execute build -> load consecutively, you might encounter this kind of crash.
In my VM (16GB RAM), after completing building, re-running the script to start from loading the built one is sccusessful.

ok, will do
@magdalendobson also mentioned the problem with diskann. will fix later.

@maronuu  Do these results agree with your experiments?
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 70, 'T': 8, 'efSearch': 32}))",text2image-10M,10,7573.446042503093,0.0,20.606487035751343,9923132.0,0,0,ood,0.8635550000000001
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 70, 'T': 8, 'efSearch': 128}))",text2image-10M,10,6640.106372050111,0.0,20.606487035751343,9923132.0,0,0,ood,0.86555
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 80, 'T': 8, 'efSearch': 32}))",text2image-10M,10,6937.091639136287,0.0,20.606487035751343,9923132.0,0,0,ood,0.877434
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 80, 'T': 8, 'efSearch': 128}))",text2image-10M,10,6196.065618049459,0.0,20.606487035751343,9923132.0,0,0,ood,0.8793979999999999
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 85, 'T': 8, 'efSearch': 32}))",text2image-10M,10,6734.157169006247,0.0,20.606487035751343,9923132.0,0,0,ood,0.883373
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 90, 'T': 8, 'efSearch': 32}))",text2image-10M,10,6481.696715359318,0.0,20.606487035751343,9923132.0,0,0,ood,0.888749
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 95, 'T': 8, 'efSearch': 32}))",text2image-10M,10,6272.184337292608,0.0,20.606487035751343,9923132.0,0,0,ood,0.8935280000000001
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 100, 'T': 8, 'efSearch': 32}))",text2image-10M,10,6052.100101117866,0.0,20.606487035751343,9923132.0,0,0,ood,0.897959
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 105, 'T': 8, 'efSearch': 32}))",text2image-10M,10,5876.9827056185695,0.0,20.606487035751343,9923132.0,0,0,ood,0.901895
epsearch,"diskann(('R60_L500_alpha1.0', {'Ls': 110, 'T': 8, 'efSearch': 32}))",text2image-10M,10,5693.436734613872,0.0,20.606487035751343,9923132.0,0,0,ood,0.9056050000000001

not the same tendency but seems reasonable,
I will try another parameter sets and submit it.
Thank you for the evaluation! You can merge this PR.

@harsha-simhadri
Sorry, one question,
Did you use the private query set or public one in this evaluation?

Public query.


3.0 migration guide

Will add to this as we close out the milestone.
Issue fixed: #475

Will need IGListSectionType stuff once #168 lands:

Swift needs override
Find/delete anything refing IGListSectionType
(optional) Delete default or empty methods

@rnystrom
We need to mention the Swift names changes (#593), then I think this is probably good to go?

made some minor edits. going to import and merge.


Implements Data.Task

The new implementation of Data.Task, which aims to be more lawful, make automatic resource management better, and allows one to take advantage of async/await with promises.
Tasks are now divided in many components:

Task — represents any asynchronous action, together with how resources are allocated and collected;
TaskExecution — represents the execution of a Task, allowing that execution to be cancelled, or its value to be depended on (which means you get memoisation for free here);
Future — represents the eventual result of running a task. This might be a successful resolution, a rejection, or a cancellation;
Deferred — a low-level mechanism for asynchronously providing values to futures. These are usually used under-the-hood, but they're exposed to user code as well.

Creating tasks
In order to construct asynchronous actions, users would use Task, as before. The new task function used to construct Tasks has a different signature however:
const { task } = require('folktale/data/task');
const delay = (ms) => task(
  resolver => {
    return setTimeout(resolver.resolve, ms);
  },
  {
    onCancelled(timer) { console.log(`${ms} timer was cancelled.`); },
    cleanup(timer) { clearTimeout(timer); }
  }
);

So task now takes a computation, which is a one-argument function taking a resolver object, which provides the methods resolver.resolve(value), resolver.reject(reason), and resolver.cancel(). The computation returns an object that tracks which resources it allocated in the process, and which must be collected when the task finishes executing or is cancelled.
The second argument to task is an object which may provide any of the two optional methods (Task falls back to a noop if they aren't provided), both are invoked with the resources allocated by the computation, and both are invoked asynchronously.
The onCancelled method is invoked if the task is cancelled, and is always invoked before cleanup. Because attempting to resolve a Task that has been cancelled is an error, Task authors must take special care to handle cancellations in their code.
The cleanup method is invoked after the task is settled (either by cancelling, rejecting, or resolving), and should collect any resources allocated by the task. In the example above, the only resource allocated is a timer, so the timer gets collected.
Running tasks
Tasks are now all ran with the new run() method. This returns a TaskExecution object, which has methods to deal with the execution of that task. In order to get the final value of a Task, one has to either get a Promise or a Future for the execution. Promises allow one to use async/await, but cancellations are handled as rejections, and objects with a .then method have to be wrapped in something so they don't get assimilated by the promise:
(async () => {
  console.log('Hello');
  const value = await delay(1000).run().promise();
  console.log('World');
})();

Futures are safer, and also allow one to work with them as monads, but they don't get a special syntax:
console.log('Hello');
delay(1000).run().future().chain(value => {
  console.log('World');
});

Finally, executions can be cancelled by calling .cancel(). Cancellation is always "safe", meaning it won't throw an exception if the execution has already settled.
console.log('Hello');
delay(1000).run().cancel();
console.log('World'); // logs right away

Combining tasks
For now, Tasks can be combined with the or and and methods. The first selects the first task to resolve, while the latter waits both tasks:
const a = delay(100).map(_ => 1);
const b = delay(500).map(_ => 10);

const x = await a.or(b).run().promise();
// => 1, after 100ms

const xs = await a.and(b).run().promise();
// => [1, 10], after 500ms

This closes #17

Why are we using chain in ap?  I think it's much practical/usefull to execute tasks concurrently (fantasy-land/#179)

Mmh, because a.ap(b) is observably different from b.chain(x => f(a)) in the presence of side-effects, since one runs those effects sequentially, and one runs them in parallel, so those two operations are not entirely interchangeable (but people expect them to be!), and this can lead to subtle, hard to debug problems.
The Semigroup instance was removed for similar reasons: it's not deterministic. Both of those operations were moved to different methods, so they're still there, their behaviour when composed with arbitrary expressions is just less confusing.
For concurrent executions, where you had:
const a = delay(100).map(x => y => f(x, y));
const b = delay(120);
const value = await a.ap(b).run().promise();

You'd now have:
const a = delay(100);
const b = delay(120);
const value = await a.and(b).map(([x, y]) => f(x, y)).run().promise();

For Semigroup, where you had:
const a = Task.empty();
const b = delay(100);
const value = await a.concat(b).run().promise();

You'd now have:
const a = Task.task(resolver => {});
const b = delay(100);
const value = await a.or(b).run().promise();

We can provide a ParallelTask object that always combines tasks in Parallel, though, so it's always an Applicative, rather than a monad, that way you'd be able to write:
const a = delay(100).map(x => y => f(x, y));
const b = delay(120);
const value = await Parallel(a).ap(Parallel(b)).run().promise();

Awesome work, robotlolita!
I particularly like the idea to have an API, that is somewhat similar to the one of the other ADT's (willMatchWith). In that line of thought, do you think it will be appropriate to include conversions to Either and Maybe in a somewhat similar manner (so for example Task.toMaybe() returns a successful task, holding a Maybe value).
Also nice that Tasks can be converted to promises. I imagine that I can write one module of my app in a pure setting using Tasks, and convert them to promises from another, impure module.
One question: what is the point of the taskExecution object - isn't it simpler for run to directly return a Future? Does it have to do with the cancel method not being exposed to it?

@boris-marinov hm, you'd probably want to have a .toFutureMaybe() (probably not with this name) and similar that returns a successful Future holding a Maybe value.
As for the TaskExecution, its main purpose is to control who can and can't cancel the execution of a Task. Cancellation propagates, and any tiny innocent looking .cancel() call may affect quite a lot of stuff, so it makes sense to control which places have that power, to avoid errors that end up being pretty hard to debug.
The idea is that you'd mostly pass Futures (or Promises) around, so people can use the values of the tasks that produced them, and mostly use TaskExecution internally, in the process that executed the task. But in some cases you might want to extend that power to some other function, so you'd give it the TaskExecution object. This way you're guaranteed that most code won't be able to affect the Task process, only wait for its value, and it's much simpler to reason about than things like Cancellable Promises.

I think we should at least have ConcurrentTasktype which is not a monad (is only Applicative), plus functions to convert one to another ConcurrentTask.fromTask and Task.fromConcurrentTask

About and: it could be useful but with multiple .and(..) it looks sortof wired:
a.and(b).and(c).and(d).map(([[[a, b], c], d]) => ...)

And as we are using array what would be it's type?
and :: Task e a ~> Task e b -> Task e (Array ?)

@safareli yeah, there'll be a Task.concurrently(taskArray) which you can use for that case: Task.concurrently([a, b, c, d]).map(([a, b, c, d]) => ...). Similarly a Task.race and Task.sequentially.
As for the types, even though it and uses an array, the type is described as a tuple, so you get:
and :: forall a, b, c: (Task a b).(Task a c) => Task a (b, c)

Where (b, c) is a tuple type.


fix: PydanticUserError: Please use typing_extensions.TypedDict inst…

…ead of typing.TypedDict on Python < 3.12.

Should already be addressed through the recent pydantic integrations - will be fixed in the new release :)


Stream Phoniebox to Chromecast (work-in-progress)

I'm currently checking out streaming to Chromecasts using the MPD httpd streaming service. Looks like it's easy to implement but as always with streaming: playback is not realtime but delayed. This is a work-in-progress and might not be a good solution but maybe someone wants to contribute code and/or test this.
Here's what I did to configure it:
Install pychromecast library
pip3 install pychromecast
Enable MPD httpd service
edit mpd.conf (sudo nano /etc/mpd.conf) and add following code block
audio_output {
	type			"httpd"
	name			"Phoniebox HTTP Stream"
	encoder			"vorbis"
	port			"8000"
	bind_to_address		"<IP_ADDRESS>"
	quality			"5.0"		# do not define if bitrate is defined
	#bitrate		"128"		# do not define if quality is defined
	format			"44100:16:1"
	max_clients		"0"		# optional 0=no limit
}

Restart MPD
sudo systemctl restart mpd
Use script to play/pause/stop stream on Chromecast
https://github.com/andreasbrett/RPi-Jukebox-RFID/blob/patch-1/scripts/control_chromecast.py

configure your Chromecast's name in the configuration section of that file
if you changed the port and audio format in mpd.conf you will have to configure this here as well
play with python3 control_chromecast.py play
pause with python3 control_chromecast.py pause
stop with python3 control_chromecast.py stop

Hi @andreasbrett
do you think you could create a pull request for this script? and add a page in the wiki :)
thanks for your contributions!!!
All the best, micz

I will do so once this is a bit more tested. Currently it's more a proof of concept that I haven't had a chance to test thoroughly (also my phoniebox is currently away for finishing the laqcer).

Hi @andreasbrett ,
any chance to try this out. The link to the script control_chromecast.py is no longer available. I would really like to test it if possible.
Thanks

Hi,
any progress on this?
I would love to do exactly this.
lg,
Marco

@timoweber1985 @Wallnusskaese
Sorry, I had abandonded further developing this as the delay was just too long for my use case. I had accidentally deleted the branch on my fork so the linked script file was not available anymore. It's back up now. Please try again but know that I stopped developing this. You're free to further enhance it if you want to.

@andreasbrett
Great to hear from you! Is the delay so bad?

@Wallnusskaese
It was for my use case and I quickly decided not to bother with it. I guess when reducing buffer size of the http stream of mpd there might be a chance to reduce the delay.

@andreasbrett thanks for keeping up on this.
Which version of pyChromecast do you use?
I'm on 2.5.2 and figured out that the loooong buffering seems due to a bug in pyChromecast.
As described here: https://github.com/home-assistant/core/issues/16319.
My current workaround (as i cannot update pyChromecast by now) is to issue a play command right after the initial play http-stream command.

To give some background on why I want this to work:
I have made an Phoniebox for my little boy, but sometimes it would be great to just play his audiobooks through our chromecast/google home environment.
So I soldered an rfid reader onto an esp8266 and connected it over mqtt to my fhem-instance.
I now plan to run phoniebox on this server ( anyone knows how to run phoniebox within docker??) and cast it to my chromecast.

@andreasbrett thanks for keeping up on this.
Which version of pyChromecast do you use?
I'm on 2.5.2 and figured out that the loooong buffering seems due to a bug in pyChromecast.

I didn't have an issue with the buffering as that's only an issue when your starting to cast. My issue is more that my actions on the phoniebox become active on the chromecast with a delay. Not an issue with your setup where you'd like to hear audio books and won't switch between them or pause/play often. It's an issue though with the animal sounds that my daughter (1,5y) is triggering with her rfid cards. Every second of delay is too long for the short attention span of our most little ones.

To give some background on why I want this to work:
I have made an Phoniebox for my little boy, but sometimes it would be great to just play his audiobooks through our chromecast/google home environment.
So I soldered an rfid reader onto an esp8266 and connected it over mqtt to my fhem-instance.
I now plan to run phoniebox on this server ( anyone knows how to run phoniebox within docker??) and cast it to my chromecast.

Why not use the phoniebox itself for that. Make a script that will toggle the output of mpd from local alsa output to the http stream and start casting it to your chromecast. Assign that script to a rfid tag and you can switch your son's phoniebox from local mode to chromecast mode. I wouldn't go through the hassle to manage 2 phonieboxes for your scenario. Also phoniebox is not what I would call a secure setup. It relies a lot on the standard user having a lot of sudo permissions. Definitely not something I would want to have on my smart home server. Maybe I'm getting your idea the wrong way.

Nope you are right.

Why not use the phoniebox itself for that.
That was my starting point, but fiddling with my sons phoniebox would cause trouble with him (I tend to break things). I would also love to have a test system where I can test things first, before deploying to the (right-now-working) Box.
I was hoping to get phoniebox going within docker, I guess that would be ok security-wise.
But unfortunately (for me) thats not quite easy to accomplish.

Are you aware of https://github.com/dresdner353/mpd2chromecast ?

Are you aware of https://github.com/dresdner353/mpd2chromecast ?


Latest replays produce "Missing weapon" errors

Looks like the replays since the recent patch produce a bunch of "Missing weapon type" errors

I fixed this issue.  Would you like the changes on my own branch or can I push to development?

Hi @stevegee58 sorry for the late response.
The issue is that Weapons is actually a list of ids, which changes every patch. So the way I wrote it isnt very maintainable. So realistically I should just remove that enum entirely. I'm quite far with actually reading the entire replay in my C# variant. Once that is done I'll make sure to update the Python one as well :) That way, we dont need the Weapons enum anymore since the replay will contain the correct weapon with id.
And just in case, I dont think you can push your changes to my repository. Or even create a branch for that matter. You'd need to fork this repo and make a PR from your forked repo to my development branch. I'd be happy to review and accept any PR of course!

Actually the weapon errors in this case were because there's a new player type value so the parser got out of sync in the replay file.
I'll fork and do a pull request.  Thanks!


Evaluate host plant inclusion

It seems Cardamine diphylla is the primary host plant, and is available across most, if not all, of P. virginiensis' range. Need to consider how important it is to include those two additional host plants in the models...

For now, keeping C. concatenata and skipping B. laevigata.


Gjoranv/vagrant fixes

FYI: @bjorncs
We should add an environment var to allow using it without CPP tools and GUI, e.g. USE_CPP_TOOLS which defaults to true. Also, I don't really understand why Vagrantfile requires VESPA_VAGRANT_VM_BOX_URL to be set. Vagrant handles boxes perfectly well, and updates if necessary, without config.vm.box_url.

@vekterli FYI

🥇

@gjoranv VESPA_VAGRANT_VM_BOX_URL is required to be set simply because that's 1 out of 2 variables that we had to manually set in our own Vagrantfiles locally, and I just moved them indiscriminately to environment variables as part of 15b35cb 🙂

@vekterli I found this in the Vagrant doc:

If config.vm.box is a shorthand to a box in HashiCorp's Vagrant Cloud then this value does not need to be specified. Otherwise, it should point to the proper place where the box can be found if it is not installed.

I guess it means you are using a box that is not in HashiCorp's Vagrant Cloud then? I use plain 'centos/7'. I think specifying an url could be optional.

Indeed, several of us use a home brewed box with GUI etc installed and set up in advance, so it's not a vanilla box in Da Cloud™.


Bug 1761924:  Update PackageManifest table handler

After the Kube 1.16 rebase, the oc get packagemanfiest command would
return an error complaining that no table handler was registered. This
is due to the fact that the expected function signature was changed.
This commit introduces a change that updates the function signature.

/retest

/retest

/retest

/retest

/retest

/retest

/retest
On Sat, Oct 19, 2019 at 9:58 AM OpenShift CI Robot<EMAIL_ADDRESS>wrote:

@awgreene https://github.com/awgreene: The following test failed, say
/retest to rerun them all:
Test name Commit Details Rerun command
ci/prow/e2e-aws-olm 3ebc413
https://github.com/operator-framework/operator-lifecycle-manager/commit/3ebc413f5966f16b68506387efb22b3a372cfc97
link
https://prow.svc.ci.openshift.org/view/gcs/origin-ci-test/pr-logs/pull/operator-framework_operator-lifecycle-manager/1078/pull-ci-operator-framework-operator-lifecycle-manager-master-e2e-aws-olm/3169 /test
e2e-aws-olm
Full PR test history
https://prow.svc.ci.openshift.org/pr-history?org=operator-framework&repo=operator-lifecycle-manager&pr=1078.
Your PR dashboard
https://prow.svc.ci.openshift.org/pr?query=is:pr+state:open+author:awgreene.
Please help us cut down on flakes by linking to
https://github.com/kubernetes/community/blob/master/contributors/devel/flaky-tests.md#filing-issues-for-flaky-tests
an open issue
https://github.com/operator-framework/operator-lifecycle-manager/issues?q=is:issue+is:open
when you hit one in your PR.
Instructions for interacting with me using PR comments are available here
https://git.k8s.io/community/contributors/guide/pull-requests.md. If
you have questions or suggestions related to my behavior, please file an
issue against the kubernetes/test-infra
https://github.com/kubernetes/test-infra/issues/new?title=Prow issue:
repository. I understand the commands that are listed here
https://go.k8s.io/bot-commands.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/operator-framework/operator-lifecycle-manager/pull/1078?email_source=notifications&email_token=AAAOFR5EMOE6CCYOUX7W7U3QPMHATA5CNFSM4JBOGXJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBXQK4Y#issuecomment-544146803,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAOFR4JA7RSDSPLZIKXC3TQPMHATANCNFSM4JBOGXJA
.

/retest


to add information about pull.sh script in README.md

@Graur by hand :D I did not noticed pull.sh... Will try it next time, thanks!)
UPD: mb you should add something about pull.sh to readme? I believe i'm not the last who make changes in that way)
Originally posted by @maxonfjvipon in https://github.com/objectionary/home/issues/37#issuecomment-1179546650

@Graur I added some explanation in f611f77 If still not enough, let me know. Otherwise, please close.

@yegor256 Great! Thank you!


[MEDIUM] Missing validation in maxTokens can lead to some auction NFTs getting stuck in the contract when winner calls claim() in Auctions contract

Summary
The data type of maxTokens is uint256. When an auction is started using Auctions.startAuctionERC721() auction.tokenCount is set as auction.tokenCount = uint8(tokenIds.length);. Now, the tokenIds.length should be <= maxTokens. The default value of maxTokens is set as 50. But the owner can update the maxTokens. If the owner sets a value > 255 it'll be stored perfectly in maxTokens as maxTokens is of data type uint256. Now, when someone start an Auction with value > 255 the call doesn't revert. But the value of auction.tokenCount overflows.
Impact
As the auction.tokenCount overflows it is set to a value between 0 - 255. But _validateAuctionTokensERC721() locks all the NFTs. Now when the winner will claim() their NFTs only auction.tokenCount is taken into account. Rest of the NFTs will remain in the locked state.
Reproduction Steps

Owner sets maxTokens = 257
Alice startAuction() with tokenIds.length = 257. All the 257 tokenIds are locked.
Auction object auction.tokenCount overflows and get set as 1.
Auction ends and Alice claims(). Alice only receives 1 NFT. Rest of the 256 NFTs are still locked and Nobody can auction on them.

POC
Add the following test case in Auctions.t.sol
contract AuctionsTest is Test {
    Auctions public auctions;
    BidTicket public bidTicket;
    Mock721 public mock721;
    Mock1155 public mock1155;

    address public theBarn;
    address public theFarmer;
    address public user1;
    address public user2;

    uint256 public tokenCount = 10;
    uint256[] public tokenIds = [0 ,1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 ,11 ,12 ,13 ,14 ,15 ,16 ,17 ,18 ,19 ,20 ,21 ,22 ,23 ,24 ,25 ,26 ,27 ,28 ,29 ,30 ,31 ,32 ,33 ,34 ,35 ,36 ,37 ,38 ,39 ,40 ,41 ,42 ,43 ,44 ,45 ,46 ,47 ,48 ,49 ,50 ,51 ,52 ,53 ,54 ,55 ,56 ,57 ,58 ,59 ,60 ,61 ,62 ,63 ,64 ,65 ,66 ,67 ,68 ,69 ,70 ,71 ,72 ,73 ,74 ,75 ,76 ,77 ,78 ,79 ,80 ,81 ,82 ,83 ,84 ,85 ,86 ,87 ,88 ,89 ,90 ,91 ,92 ,93 ,94 ,95 ,96 ,97 ,98 ,99 ,100 ,101 ,102 ,103 ,104 ,105 ,106 ,107 ,108 ,109 ,110 ,111 ,112 ,113 ,114 ,115 ,116 ,117 ,118 ,119 ,120 ,121 ,122 ,123 ,124 ,125 ,126 ,127 ,128 ,129 ,130 ,131 ,132 ,133 ,134 ,135 ,136 ,137 ,138 ,139 ,140 ,141 ,142 ,143 ,144 ,145 ,146 ,147 ,148 ,149 ,150 ,151 ,152 ,153 ,154 ,155 ,156 ,157 ,158 ,159 ,160 ,161 ,162 ,163 ,164 ,165 ,166 ,167 ,168 ,169 ,170 ,171 ,172 ,173 ,174 ,175 ,176 ,177 ,178 ,179 ,180 ,181 ,182 ,183 ,184 ,185 ,186 ,187 ,188 ,189 ,190 ,191 ,192 ,193 ,194 ,195 ,196 ,197 ,198 ,199 ,200 ,201 ,202 ,203 ,204 ,205 ,206 ,207 ,208 ,209 ,210 ,211 ,212 ,213 ,214 ,215 ,216 ,217 ,218 ,219 ,220 ,221 ,222 ,223 ,224 ,225 ,226 ,227 ,228 ,229 ,230 ,231 ,232 ,233 ,234 ,235 ,236 ,237 ,238 ,239 ,240 ,241 ,242 ,243 ,244 ,245 ,246 ,247 ,248 ,249 ,250 ,251 ,252 ,253 ,254 ,255 ,256];
    uint256[] public tokenIds2 = [0,1,2];
    uint256[] public tokenIdsOther = [3, 4, 5];
    uint256[] public tokenIdAmounts = [10, 10, 10];
    uint256[] public amounts = [1, 1, 1];

    receive() external payable {}
    fallback() external payable {}

    function setUp() public {
        theBarn = vm.addr(1);
        theFarmer = vm.addr(123);

        bidTicket = new BidTicket(address(this));
        auctions = new Auctions(address(this), theBarn, theFarmer, address(bidTicket));
        mock721 = new Mock721();
        mock1155 = new Mock1155();

        user1 = vm.addr(2);
        user2 = vm.addr(3);

        bidTicket.setAuctionsContract(address(auctions));
        bidTicket.mint(user1, 1, 100);
        bidTicket.mint(user2, 1, 100);

        vm.deal(user1, 1 ether);
        vm.deal(user2, 1 ether);

        // mock721.mint(theBarn, tokenCount);
        mock721.mint(theBarn, 257);
        mock1155.mintBatch(theBarn, tokenIds2, tokenIdAmounts, "");

        vm.startPrank(theBarn);
        mock721.setApprovalForAll(address(auctions), true);
        mock1155.setApprovalForAll(address(auctions), true);
        vm.stopPrank();
    }

    //
    // startAuctionERC721()
    //

    function test_startAuctionERC721_Success_Max_Token_Vulnerability() public {
        auctions.setMaxTokens(257);
        vm.startPrank(user1);

        uint256 startBalance = user1.balance;
        assertEq(bidTicket.balanceOf(user1, 1), 100);

        auctions.startAuctionERC721{value: 0.05 ether}(0.05 ether, address(mock721), tokenIds);
        // assertEq(user1.balance, startBalance - 0.05 ether, "Balance should decrease by 0.05 ether");
        // assertEq(auctions.nextAuctionId(), 2, "nextAuctionId should be incremented");
        // assertEq(bidTicket.balanceOf(user1, 1), 99);

        (, address tokenAddress,,uint8 tokenCount,, address highestBidder, uint256 highestBid,,) = auctions.auctions(1);

        console.log("Total NFTS locked is 257 while auction.tokenCount", tokenCount);

        skip(60 * 60 * 24 * 7 + 1);
        auctions.claim(1);
        console.log("The winner was supposed to receive 257 NFTs but the no. of NFTs received: ", mock721.balanceOf(user1));

        // assertEq(tokenAddress, address(mock721));
        // assertEq(highestBidder, user1);
        // assertEq(highestBid, 0.05 ether);
    }

## Output

  Total NFTS locked is 257 while auction.tokenCount 1
  The winner was supposed to receive 257 NFTs but the no. of NFTs received:  1

Mitigation
If Auction.tokenCount can be max(uint8) then the data type of maxTokens should also be uint8 to maintain uniformity.

Thanks for being so thorough. Above was intentional gas optimization. Perhaps it would be minorly helpful to make our setters more idiot proof, but we have no intention of going beyond 50x, and are more likely to reduce over time rather than increase. Good eye, though.


Support templ

Temple allows for commenting go, and html within 1 templ file.
https://github.com/a-h/templ
https://templ.guide/commands-and-tools/ide-support

Seems like we need to use github.com/JoosepAlviste/nvim-ts-context-commentstring in order to support different comment styles in different places inside templ components.
I've added basic support for templ to nvim-ts-context-commentstring: https://github.com/JoosepAlviste/nvim-ts-context-commentstring/pull/98. Works just fine


v0.4.2

Coverage remained the same at 93.025% when pulling ff0792828df4cc535acdcd2ffdaca462700b2948 on develop into 03508213c8dc6ef71750c7e78cc1758b5cb523f5 on master.


Font size should be responsive wrt device text size configuration

From @MiltonArkash:

The current version is not respecting the device's text size configurations. I have set VERY LARGE in my mobile and many other sites adjust text like this but this template doesn't adjust for it. Hard to read the small text

What is wrt? Looking online yield With Respect To, With Reference To, With Regard To. I guess both are ok in this context. WRT can also be Web Runtime or even World Rally Team.

With Respect To.

Hmm could not find what's wrong with this. It works when I change the font size for my desktop but not for my android chrome browser. If anyone knows what is the issue, would appreciate a PR, thanks!

Hmm could not find what's wrong with this. It works when I change the font size for my desktop but not for my android chrome browser. If anyone knows what is the issue, would appreciate a PR, thanks!

import Head from "next/head";
<Head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
</Head>

link to forum discussion


NFS install docs should mention that full disk access for iterm or terminal can be turned off (docs)

Describe the bug
One user mentioned that their team decided against NFS because of the full disk access granted to iTerm, not knowing that it can be turned off after /etc/exports is configured. We should make clear in the docs that this is the case.

#1622 will fix this.