How do you create an sdl.AudioCallback function?

I don't understand how to create my own callback function of type sdl.AudioCallback to pass to sdl.AudioSpec. Can anyone provide a simple example?
I was able to get something to compile, but I don't think it's valid -- the callback doesn't get called:
package main

import (
	"fmt"
	"time"
	"unsafe"

	"github.com/veandco/go-sdl2/sdl"
)

func main() {
	cb := func(unsafe.Pointer, *uint8, int) {
		fmt.Println("callback called")
	}
	spec := &sdl.AudioSpec{
		Freq:     4800,
		Format:   sdl.AUDIO_S16LSB,
		Channels: 2,
		Samples:  1024,
		Callback: sdl.AudioCallback(unsafe.Pointer(&cb)),
	}
	sdl.OpenAudio(spec, nil)
	fmt.Printf("%+v\n", spec)
	sdl.PauseAudio(0)
	time.Sleep(2 * time.Second)
}

For reference:
audio.go:
type AudioCallback C.SDL_AudioCallback

SDL_audio.h (SDL 2.0.3):
/**
 *  This function is called when the audio device needs more data.
 *
 *  \param userdata An application-specific parameter saved in
 *                  the SDL_AudioSpec structure
 *  \param stream A pointer to the audio data buffer.
 *  \param len    The length of that buffer in bytes.
 *
 *  Once the callback returns, the buffer will no longer be valid.
 *  Stereo samples are stored in a LRLRLR ordering.
 */
typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream, int len);

Sorry, to tell you this, but this is a very hard part to wrap and nobody did it properly yet. The problem is,  that SDL_AudioSpec is a struct that contains a pointer to a C.Compatible function. That is nice for a C api, but not easy to port, since functions from go canst be cast to a C compatible function pointer. But it is poissible to write a function in go that can be cast into an AudioCallback:
//void MyCallback(void *userdata, Uint8 * stream, int len);
import "C"

//export MyCallback
func MyCallback(userdata unsafe.Pointer, stream *C.Uint8, length C.int) {
    [...]
}

now C.MyCallback should ba a valiid SDL_AudioCallback and therefore be compatible. sorry this api is far from ideal, but pull requests that make it nicer are always welcome. There's no "please don't break existing code" rule for this port yet.

Thank you! I need to think more on the API for sdl.AudioCallbacks . In the meantime, I'll submit a PR for an example.


feat(toolbar layout): implements toolbar layout

closes #136
Working PR
Based on past experience, relying only on flexbox for responsive layout produces suboptimal results. Therefore, I included a few responsive modifiers to better control layout.
Questions:

Should the title of this component be genericized? In talking with @jgiardino about accessibility compliance, toolbars are limited to buttons or controls https://www.w3.org/TR/wai-aria-1.1/#toolbar. It seems this layout would benefit from a more generic name.

Deploy preview for pf-next ready!
Built with commit 2df04386936b70b11ad59a220b875ba81f5efd63
https://deploy-preview-391--pf-next.netlify.com

Hi @mattnolting Sorry, I think I didn't scoped it enough in the issue (again).
The layout should be empty. if you want to create examples those should be demos.
The tool bar groups should not have a thing on the right. Designers specially asked that toolbars group on the lest.
If a user wishes to have a thing on the right and a thing on the left they can use a split with a tool bar inside.

@andresgalante Got my demos and layouts mixed up! I've updated the layout to include only simple items. I left pf-l-toolbar__section assuming there will be a need in the future when more complex toolbar layouts are designed, will remove if you prefer. The idea is that multiple sections can be used in favor of multiple toolbars. Also an assumption, but it seems very reasonable that there will be a need in the near future.

Based on the structure, this looks more like pf-l-flex layout, which could easily be applied to a toolbar demo, footer actions, etc, as it employs the same concepts as https://pf-next.com/layouts/Level/examples/, https://pf-next.com/layouts/Split/examples/, https://pf-next.com/layouts/Stack/examples/. However, that may be another, separate issue..

@mattnolting I understand your concern, an abstraction to a pf-flex layout would cope with these usecases, a grid would probably also do the same. My intention was to build the layouts based on what they are and not how they are build.
That way we don't attach the API to the implementation, and if down the road there is a better CSS way to build a split, a toolbar or a gallery then we can change the implementation and keep the same classname API.
The cost of course is repetition of code.
@mattnolting Does it make sense? What do you think?
@michael-coker @srambach @jgiardino @matthewcarleton @mindreeper2420 What do you think?

@andresgalante I think there's value in use case layouts, a grid layout system and a flexbox layout system. I see grid as mostly a page layout system (although it can also be used in a toolbars, cards, etc for example) and flex as a fluid approach to positioning where items don't need to align vertically. From what I can tell, Bootstrap, Bulma, Lightning Design use one or the other (flexbox). Setting explicit widths on flexbox items to accomplish the same layout grid provides automatically feels like a hack to me, so I'd love to see support for both flex and grid.

Updated the templates to ignore empty space after class attribute.
Removed all modifiers, except for pf-m-align-right. Let me know what you think.
Updated documentation to reflect those changes
Rebased w/master

@andresgalante I'm a fan of utility classes. I have a handful in my application for common generic patterns in the app that aren't part of PF, so that I'm not repeating CSS, and in a lot of cases, it keeps me from having to write CSS at all.
I like your concept of building layouts based on what they are, and not how they're built for the reason that you gave - if there is a better way to achieve the layout in the future, we can change the layout without modifying the API. One option could be to create mixins for utility classes (or just mixins that aren't attached to a utility class, if we don't want utility classes), and apply the mixin to the utility class itself, as well as layout specific classes. So like, @mixin pf-l-flex { display: flex; }, .pf-l-flex { @include pf-l-flex; }, and .pf-l-toolbar { @include pf-l-flex; }. That would allow us to keep the layout specific classes without having to repeat code.

I like what @michael-coker is proposing here for the layouts. That makes a lot of sense. Generally we want to avoid mixins but I don't think that rule needs to apply here.

@michael-coker Your idea makes sense, by using a mixing we'll end up with a single source of truth by repetition of code. It's a cleaner API.
But maybe having just one grid and one flex layout will simplify things further. We will end up with things like gallery on the side but eliminate the need for the toolbar, split and level.
@mattnolting @michael-coker @matthewcarleton  let's talk about it today and come up with a decision.


x/pkgsite: remove bdd.fi/x/runitor/pkg/api and bdd.fi/x/runitor/pkg/api/healthchecks

Listings to be removed

bdd.fi/x/runitor/pkg/api/healthchecks
bdd.fi/x/runitor/pkg/api

Reason
runitor is a command line tool and its opportunistic implementation of a Healthchecks API was never intended to be available as a separate package. v3.0 moved these implementations under internal while these listings are vestigial from v2.0.

Done.

Done.


⚠ Turnos 24x7 has degraded performance

In 0556a8b, Turnos 24x7 (https://reservas-dev.alternativasinteligentes.com/) experienced degraded performance:

HTTP code: 200
Response time: 2143 ms

Resolved: Turnos 24x7 performance has improved in 4be74ef.


Routing setup intermittently failing

Is this a request for help?: Yes
Is this an ISSUE or FEATURE REQUEST? (choose one): Issue
What version of acs-engine?: 0.12.4
Orchestrator and version (e.g. Kubernetes, DC/OS, Swarm) Kubernetes 1.9.2
What happened: We're seeing pods intermittently not being able to communicate with anything. Other pods, services, the Kubernetes API, the internet. The connections time out.
Best guess so far is that something is failing in the iptables setup, since the routing is what seems to be broken.
What you expected to happen: Communication working.
How to reproduce it (as minimally and precisely as possible): Not sure. This happens seemingly at random.
Anything else we need to know: We have a particular workload where a container is started, does a few network operations and then finishes, with quite high frequency (5-10 pods/minute) which gets hit by this quite a lot.
But it has also happened to other pods in normal deployments. Being restarted by a crash-loop does not help, but deleting the pod or otherwise getting it scheduled on another node has helped there a few times.
Here's a list of cases I've tested on a pod in this state, and if it works:

Ping/curl other pod on same node: NO
Ping/curl other pod on other node: NO
Ping/curl LoadBalancer service: NO
Ping/curl api, or DNS-lookups to kube-dns: NO
Ping/curl internet hosts: NO
Ping node running the pod: YES!
Ping other nodes: NO

Anything else I should test? Some specific routing I should look at?

Is there any difference using IP instead of DNS names?

Nope, and sorry for not mentioning that. DNS fails (since we can't reach <IP_ADDRESS>...) so all tests were on IP addresses.

@carlpett Are you able to deploy a test cluster using k8s 1.9.7 and repro? In particular there were several ILB issues on Azure w/ the early patch releases of 1.9.

@jackfrancis I don't have a reliable way of triggering this myself, unfortunately. Are there any details about those issues that I can use to try to determine if they are behind this? (Also, what is ILB? :) )

ILB == Internal Load Balancer

Ah, right. Thanks!
I'm probably missing something, but how is a load balancer involved here, this seems to affect pod egress traffic, mainly? And were there some good issues for me to check if they were the same?

@jackfrancis this just happened again on 1.10.3.
I spoke with @khenidak yesterday about there being a recent fix for Azure CNI that could be relevant?

@carlpett Can you please paste the output of following from one of the nodes from where pods cannot reach anywhere
ebtables -t nat -L
iptables -t filter -L
iptables -t nat -L

Also, can you please verify if you are using Azure CNI or not. You can list the files in /opt/cni/bin/ and also check if there are logs from azure cni in the /var/log/azure-vnet.log This log will also have the version of azure cni in the very beginning

@sharmasushant Yes, we're using the Azure CNI. Here's the first row of /var/log/azure-vnet.log:

Plugin azure-vnet version v1.0.4-1-gf0f090e

Here's the requested output: https://gist.github.com/carlpett/33939f883a096609fd44f55d6fc64634

This just happened once more (on another 1.10.3 cluster). Opened a support case about it, let me know if you need the log output and can't get it via support.

@carlpett Could you try installing this daemonset, it has been proven to stabilize ebtables on an Azure CNI-based cluster:
Ref:
https://hub.docker.com/r/containernetworking/networkmonitor/
Do this to install the monitor:
$ kubectl create -f https://raw.githubusercontent.com/Azure/acs-engine/master/parts/k8s/addons/azure-cni-networkmonitor.yaml
And then, edit the daemonset to point to the actual image:
$ kubectl edit daemonset azure-cni-networkmonitor -n kube-system
Replace <azureCNINetworkMonitorImage> with containernetworking/networkmonitor:v0.0.4.

@carlpett I looked at your output of ebtables. I see the rules are there for the PODS created on the nodes. The cni network monitor was created in response to an incident where ebtables were getting completely flushed on the node (kernel logs will usually tell you if that is the case).
Is it possible to have access to the machine where the POD is in the state that you have describe in original issue?


Fixes for ESPHome 2023.7 and later

Fixes for the changes introduced in ESPHome 2023.7.0

Thanks for your assistance!

You'll want to use version v0.0.14 will be available shortly.


Material ui

fixed json error message and removed unnecessary scopes from conf.json

wrong target branch. see pull 2 instead


CUSTOM DATASET

Hai sir, I am trying to train ReDet on VisDrone dataset.

I converted VisDrone to COCO format
I created a file mmdet/datasets/VisDrone.py  and added the below code:
from .coco import CocoDataset
# And added the class information and all
In mmdet/datasets/init.py, I added the below:
from .VisDrone import VisDroneDataset
And added 'VisDroneDataset' to all in mmdet/datasets/init.py
And created a config file for visdrone with necessary data paths set

When I run "python tools/train.py {config file of visdrone}, I get the error as given below:
Traceback (most recent call last):
File "tools/train.py", line 95, in
main()
File "tools/train.py", line 91, in main
logger=logger)
File "/home/ai20resch13001/ReDet-base/mmdet/apis/train.py", line 61, in train_detector
_non_dist_train(model, dataset, cfg, validate=validate)
File "/home/ai20resch13001/ReDet-base/mmdet/apis/train.py", line 197, in _non_dist_train
runner.run(data_loaders, cfg.workflow, cfg.total_epochs)
File "/DATA/ai20resch13001/anaconda3/envs/redet-base/lib/python3.7/site-packages/mmcv/runner/runner.py", line 358, in run
epoch_runner(data_loaders[i], **kwargs)
File "/DATA/ai20resch13001/anaconda3/envs/redet-base/lib/python3.7/site-packages/mmcv/runner/runner.py", line 264, in train
self.model, data_batch, train_mode=True, **kwargs)
File "/home/ai20resch13001/ReDet-base/mmdet/apis/train.py", line 39, in batch_processor
losses = model(**data)
File "/DATA/ai20resch13001/anaconda3/envs/redet-base/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/DATA/ai20resch13001/anaconda3/envs/redet-base/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 152, in forward
outputs = self.parallel_apply(replicas, inputs, kwargs)
File "/DATA/ai20resch13001/anaconda3/envs/redet-base/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 162, in parallel_apply
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
File "/DATA/ai20resch13001/anaconda3/envs/redet-base/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 83, in parallel_apply
raise output
File "/DATA/ai20resch13001/anaconda3/envs/redet-base/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 59, in _worker
output = module(*input, **kwargs)
File "/DATA/ai20resch13001/anaconda3/envs/redet-base/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/ai20resch13001/ReDet-base/mmdet/models/detectors/base_new.py", line 95, in forward
return self.forward_train(img, img_meta, **kwargs)
File "/home/ai20resch13001/ReDet-base/mmdet/models/detectors/ReDet.py", line 136, in forward_train
gt_obbs = gt_mask_bp_obbs_list(gt_masks)
File "/home/ai20resch13001/ReDet-base/mmdet/core/bbox/transforms_rbbox.py", line 597, in gt_mask_bp_obbs_list
return list(gt_obbs_list)
File "/home/ai20resch13001/ReDet-base/mmdet/core/bbox/transforms_rbbox.py", line 587, in gt_mask_bp_obbs
gt_polys = mask2poly(gt_masks)
File "/home/ai20resch13001/ReDet-base/mmdet/core/bbox/transforms_rbbox.py", line 582, in mask2poly
return list(polys)
File "/home/ai20resch13001/ReDet-base/mmdet/core/bbox/transforms_rbbox.py", line 569, in mask2poly_single
max_contour = max(contours, key=len)
ValueError: max() arg is an empty sequence
I took the config file of DOTA and modified the data path to VisDrone paths. Should I modify anything else like img_scale??
Could you kindly let me know how to overcome this error.

You need to filter out small instances to make sure the cv2.findContours work.
Try to filter out samll object in your dataset, or set checkmask=True:
https://github.com/csuhan/ReDet/blob/0b9addf3c2734659fd6ffc7824f2e659fde4419c/mmdet/datasets/custom.py?#L297-L308


View Standalone, Global, and Zone CP instances in GUI

Summary
I'd like to be able to view how many instances of Standalone, Global, and Zone CP instances are online in the GUI

@tomaszwylezek should this go to the kuma-gui repo?


代码拉下来运行不起来 报错

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

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

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

File was processed with these loaders:

./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders

File was processed with these loaders:

./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders

@lyh0371 由于项目是在2020年8月份左右搭建的，当时相关插件还不稳定。初步判断可能是由于 @ant-design-vue/babel-plugin-jsx插件导致的。目前正在迁移到vite。如果想使用tsx的格式开发vue3.0，可以参考下 ant-design-vue 的配置。

@lyh0371 由于项目是在2020年8月份左右搭建的，当时相关插件还不稳定。初步判断可能是由于 @ant-design-vue/babel-plugin-jsx插件导致的。目前正在迁移到vite。如果想使用tsx的格式开发vue3.0，可以参考下 ant-design-vue 的配置。

感谢回复,我先参考下如何生成文档的,期待迁移到vite


[Feature] Improve the installation script for Ubuntu

The current version of the script assumes the developer has already
installed Python.  This is a reasonable assumption but considering the
script's name it clearly intends to use Python 2.7, which the user may
not have if he is using only Python 3 or later.  It is not a guarantee
that Python 2.7 will always be available on a fresh install of Ubuntu.
This patch addresses that issue by modifying the script to install the
following packages from Ubuntu's standard package repository:

python2.7
python2.7-dev
python2.7-dbg
python2.7-doc

Only the first is absolutely necessary.  The other three are
convenient additions for developers, providing development libraries,
debugging tools, and a local copy of Python 2.7's documentation.
Developers on Ubuntu who are using Python 3 will be unaffected since
(at this time of writing) Python 3 is installed as
/usr/bin/python3

and related programs, like the Python 3 version of pip, have similar
installation paths.
This patch also adds #!/bin/sh to the start of the script to ensure
that shell is used for the commands.  Right now the script does not
use any constructs which would cause problems for alternative shells
like zsh or Fish, but this addition is a safeguard for future changes
which may use constructs specific to the standard POSIX shell.
Finally, this commit makes the script executable by the user so that
they can run
./install-ubuntu-py27.sh

instead of having to run
sh ./install-ubuntu-py27.sh

This small convenience is aided by the addition of #!/bin/sh so that
there is no ambiguity about which shell to use.
Signed-off-by: Eric James Michael Ritz<EMAIL_ADDRESS>

Thank you, ejmr, your pull request was merged in commit 07e56f98118468c010bd05de4ddb02483509174f! Good stuff as usual. Thanks for the thorough explanation.


Bug?

~$ go get -tags byollvm github.com/go-llvm/llvm

github.com/go-llvm/llvm
In file included from /usr/include/llvm-c/Types.h:17:0,
from /usr/include/llvm-c/Analysis.h:22,
from go/src/github.com/go-llvm/llvm/analysis.go:4:
/usr/include/llvm/Support/DataTypes.h:57:3: error: #error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h"
^
/usr/include/llvm/Support/DataTypes.h:61:3: error: #error "Must #define __STDC_CONSTANT_MACROS before " "#including Support/DataTypes.h"
error "Must #define __STDC_CONSTANT_MACROS before " \
^
guest@system:~$  export CGO_CFLAGS=llvm-config --cflags
guest@system:~$ export CGO_LDFLAGS="llvm-config --ldflags -Wl,-Lllvm-config --libdir -lLLVM-llvm-config --version"
guest@system:~$ go get -tags byollvm github.com/go-llvm/llvm# github.com/go-llvm/llvm
could not determine kind of name for C.LLVMDisposeMessage
guest@system:~$ go get -tags byollvm github.com/go-llvm/llvm
github.com/go-llvm/llvm
could not determine kind of name for C.LLVMDisposeMessage
how fix?

I'm not maintaining the project anymore, it was moved to http://llvm.org/ guys. They have their own places for questions and bug reports, which I'm not aware of.


can't comment on any embedded content

If a content is embedded, it's not possible to make a comment on it.
Example: http://serlo.org/57636 (below in the article)

This happens because we moved the entity comments into a placeholder and render it once in the layout (below the article and horizon). In injections the layout isn't used, so the comments aren't rendererd.


How to implement Data abstraction in C++

We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner. Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published.
Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
Proposed title of article
How to implement Data abstraction in C++
Introduction paragraph (2-3 paragraphs):
Abstraction is the act of showing essential features to the user but hiding the background details. Data abstraction refers to providing only essential information about the data to the outside world. In C++, classes provide a great level of data abstraction. They provide enough methods to the outside world to play with the functionality of the object.  And to manipulate object data state without actually knowing how the class is implemented. For example, we can use the pow() function to calculate the power of a number without knowing the algorithm the function follows. In fact, the underlying implementation of the algorithm could change between releases of the library. As long as the interface stays the same, your function call will still work. This article will go through an introduction to abstraction along with types and how data abstraction is achieved in C++.
Key takeaways:

Types Of Abstraction
Abstraction Using Specifiers
Abstraction using class's
Abstraction using header files
Advantages of data abstraction

References:
N/A
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

cool topic - approved @Dawe-7

merged


SQLite is creating a disk file for In-memory DB

I tried to create a shareable in-memory database as per the documentation provided on SQLite  Site. But I end up finding the solution to the problem.
Here is my code in C#:
 var connectionString = "Data Source=sharedmemdb;Mode=Memory;Cache=Shared";

            using (var connection1 = new SQLiteConnection(connectionString))
            {
                connection1.Open();

                var command1 = connection1.CreateCommand();
                command1.CommandText =
                    "CREATE TABLE Message ( Text TEXT );" +
                    "INSERT INTO Message ( Text ) VALUES ( 'Is there anybody out there?' );";
                command1.ExecuteNonQuery();

                using (var connection2 = new SQLiteConnection(connectionString))
                {
                    connection2.Open();

                    var command2 = connection2.CreateCommand();
                    command2.CommandText = "SELECT Text FROM Message;";

                    var message = command2.ExecuteScalar() as string;
                }
            }

If I execute this code, it will create in-memory DB named as sharedmemdb  and shared cache is enabled while making the connection, so this connection accessible to other connections also. If I run this first time this works pretty fine but if I close the application and run again it throws error "Table Message already exists" and this looks very strange as I created the table in-memory and this should not be available if application restarts.
After getting this error, I looked into the application directory and found the file "sharedmemdb" which means SQLite is not creating the shareable in-memory DB.
Any clue why this is happening?

I was using System.Data.SQlite namespace which doesn't supports that. Changing it to a namespace using Microsoft.Data.Sqlite;  allows me to access memory DB.


Include PingFederate as a Thirdparty Key manager connector

Describe your problem(s)

Describe your solution

How will you implement it

Optional Fields
Related Issues:

Suggested Labels:

Suggested Assignees:

Fixed with https://github.com/wso2/product-apim/pull/9394


[BUG] copy_paste_agent_resources not working at all with entities and does not work with the "Default Negative Intent"

Expected Behavior
I am attempting to copy and paste entity and intent resources from one agent to another agent. My skip_list includes webhooks and route_groups. Following the documentation, I made sure that my resources dictionary followed what was being done in the get_page_dependencies function, so I am confident that my resource dictionary is in the proper format.
I also have a general question about copy_paste_agent_resources function. I may be certainly missing something but I am wondering why this function returns an object called "resources_skip_list", which implies resources skipped, when in fact it seems to represent just the opposite, and that is resources created?
Current Behavior
For entities, when copy_util invokes the _create_entity_resources function and that function calls EntityTypes.create_entity_type funtion, the below error is thrown.
2024-06-16 07:04:31 INFO     ACreating Entity geekSquadEntity...
Traceback (most recent call last):
  File "/Users/a660709/PycharmProjects/gcp/scrapi.py", line 39, in <module>
    cu.copy_paste_agent_resources(resources=resources_dict, source_agent=ccai_agent_id, destination_agent=ss_agent_id, skip_list=["webhooks", "route_groups"])
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/dfcx_scrapi/tools/copy_util.py", line 717, in copy_paste_agent_resources
    resources_skip_list = self._create_entity_resources(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/dfcx_scrapi/tools/copy_util.py", line 450, in _create_entity_resources
    self.entities.create_entity_type(destination_agent, entity)
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/dfcx_scrapi/core/scrapi_base.py", line 452, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/dfcx_scrapi/core/entity_types.py", line 344, in create_entity_type
    entity_type_obj = types.EntityType(
                      ^^^^^^^^^^^^^^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/proto/message.py", line 615, in __init__
    super().__setattr__("_pb", self._meta.pb(**params))
                               ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: bad argument type for built-in operation

Copying of intents works fine except for the "Default Negative Intent". The below error occurs whether or not the "Default Negative Intent" exists in the destination agent. As you can see, the interesting thing is that the error is referencing the "fallback" intent, even though the intent being copied is the "negative" intent.
2024-06-16 07:17:47 INFO     ACreating Entity sms_same-calling-number...
2024-06-16 07:17:51 INFO     Creating Intent Default Welcome Intent...
2024-06-16 07:17:59 INFO     Creating Intent Default Negative Intent...
Traceback (most recent call last):
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/google/api_core/grpc_helpers.py", line 76, in error_remapped_callable
    return callable_(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/grpc/_channel.py", line 1181, in __call__
    return _end_unary_response_blocking(state, call, False, None)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/grpc/_channel.py", line 1006, in _end_unary_response_blocking
    raise _InactiveRpcError(state)  # pytype: disable=not-instantiable
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.INVALID_ARGUMENT
	details = "com.google.apps.framework.request.BadRequestException: You cannot create fallback intent."
	debug_error_string = "UNKNOWN:Error received from peer ipv4:<IP_ADDRESS>:443 {grpc_message:"com.google.apps.framework.request.BadRequestException: You cannot create fallback intent.", grpc_status:3, created_time:"2024-06-16T07:18:03.744788-05:00"}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/a660709/PycharmProjects/gcp/scrapi.py", line 39, in <module>
    cu.copy_paste_agent_resources(resources=resources_dict, source_agent=ccai_agent_id, destination_agent=ss_agent_id, skip_list=["webhooks", "route_groups"])
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/dfcx_scrapi/tools/copy_util.py", line 722, in copy_paste_agent_resources
    resources_skip_list = self._create_intent_resources(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/dfcx_scrapi/tools/copy_util.py", line 478, in _create_intent_resources
    self.intents.create_intent(destination_agent, intent)
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/dfcx_scrapi/core/scrapi_base.py", line 452, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/dfcx_scrapi/core/intents.py", line 533, in create_intent
    response = client.create_intent(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/google/cloud/dialogflowcx_v3beta1/services/intents/client.py", line 1043, in create_intent
    response = rpc(
               ^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/google/api_core/gapic_v1/method.py", line 131, in __call__
    return wrapped_func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/a660709/PycharmProjects/gcp/venv/lib/python3.12/site-packages/google/api_core/grpc_helpers.py", line 78, in error_remapped_callable
    raise exceptions.from_grpc_error(exc) from exc
google.api_core.exceptions.InvalidArgument: 400 com.google.apps.framework.request.BadRequestException: You cannot create fallback intent.

Possible Solution
For the entities related issue, the fix was to simply change the entity argument to a named argument on line 447 in copy_util.py so that it would not be incorrectly interpreted as display_name in the create_entity_type function.
self.entities.create_entity_type(destination_agent, obj=entity)

For the "Default Negative Intent" issue, I just removed it from the resources dictionary before calling the copy_paste_agent_resources, but I was hoping something could be done in dfcx-scrapi to deal with that more appropriately.
Steps to Reproduce

Context (Environment)

Detailed Description

Possible Implementation

@my3sons thanks for reporting these!
Re: EntityTypes.create_entity_type, feel free to create PR if you want to contribute to the repo.
Otherwise, we can also make a fix for it soon.
Re: Default Negative Intent, seems like a leftover / legacy message from when this used to be called the Default Fallback Intent. These are created by default with each new agent and you cannot "recreate" them, so the error makes sense.
We can update the code so that Default Negative Intent is always excluded.
FYI @MRyderOC

Hello @kmaphoenix, sorry for the delayed response! I did create a PR for the above issue with copy_paste_agent_resources function: https://github.com/GoogleCloudPlatform/dfcx-scrapi/pull/205.


Added resizing ability to columns

Columns can now be resized by clicking and dragging the right-edge of a column. Had to add an additional inner element to the  element to avoid unwanted clicks causing the column to sort on resize.
Addresses issue #9

I've just added a commit that fixes an issue with the new exportData functionality from #703. It assumed the raw data/hash would match one-to-one with the defined fields, which obviously can't be assumed, and breaks when there's more elements in the data hash than there is defined fields.

Hi wardrop,
I am quite new in github, this commit is already in the solution or it is waiting for an approval or something like that'

@gattidaniel Yeah it's awaiting to be merged into the main jsGrid branch. Right now the changes I've made live only in my fork of jsGrid.

@Wardrop, thank you for the valuable contribution!
Could you please exclude /dist/* changes from the PR?

I've reverted the changes to the dist directory, which has essentially removed them from the pull request.

Hi, how can i get this patch/commit for now? I really need this feature =)

Well? why isn't it in dist?

For those who want to use this now, you can get the updated dist files from a previous commit of mine: https://github.com/Wardrop/jsgrid/tree/a9cfe25/dist

Any update for this feature?
This might not merge yet.

@Wardrop i'd like to contribute by making  resizing work on rtl pages too , any suggestions ?
Currently resizing is inverted for rtl direction


Not working

I run script on my server.
It loaded and I allow web cam access and other permission.
Still it is asking for allow.below error message : "Please click allow to start local video/audio stream."
Any help? Anything I am missing?

me too

I am getting same error.


Support top kernel with only stream arguments

Supported in both XO (AXIS) mode and HLS (ap_fifo) mode. See https://github.com/rapidstream-org/rapidstream-tapa/tree/main/tests/apps/stream-vadd for usages.


Ability to provide last cached version data from https://unicode.org/Public/UNIDATA/UnicodeData.txt for nodejs.

Hello,
Thanks for maintaining the npm package. My request is to provide a cached version of data from https://unicode.org/Public/UNIDATA/UnicodeData.txt I have seen multiple times that unicode.org website becomes unavailable and the build process breaks because of it. Can you npm package track the connection from the site and if it is not available provide any sort of last cached data?
Thanks
Arvind

@arvindmorwal unicode isn't necessarily unavailable, but it does throttle for excessive downloads, see https://github.com/dodo/node-unicodetable/issues/16


⚠ TorrentLeech has degraded performance

In c90dcaf, TorrentLeech ($TL) experienced degraded performance:

HTTP code: 200
Response time: 6119 ms

Resolved: TorrentLeech performance has improved in 6d6fc76 after 6 minutes.


Composer Setup error

Recently I've been trying to setup Pterodactyl and every time I've been getting this same error... I've tried installing it in its own directory, running as a non-root user, running as a root user, restarting the server, and the list goes on..
I don't know if this was the error that was mentioned on the Installing wiki page, but I still dont really know what to do if it don't think the files exist. Hopefully this is a very simple fix. Thank you, and I look forward to being able to use the panel.
Console log: http://pastebin.com/RkDNYQhX

what version of php do you have? I just want to be sure php -v will give you probably what I need

PHP 5.5.9-1ubuntu4.16 (cli) (built: Apr 20 2016 14:31:27)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

@DaneEveritt @DDynamic Anyone know of how to fix this? I would really like to use this panel, but the panel doesn't like me back

Try running this command:
chown -R www-data:www-data /var/www/html

I don't know if this is the same error as before, but this is the output of trying to install on a clean VM with the command you mentioned. I did notice something odd although, whenever I tried to do the command to download the zip file as a normal user or even with Sudo, it automatically spat out 'Permission Denied' before I could even enter the sudo password.

`Script php artisan clear-compiled handling the pre-update-cmd event returned with an error

[RuntimeException]
Error Output: PHP Warning:  require(/var/www/html/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/bootstrap/autoload.php on line 17
PHP Fatal error:  require(): Failed opening required '/var/www/html/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/bootstrap/autoload.php on line 17
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] []...
Script composer install --ansi --no-dev handling the setup event returned with an error
[RuntimeException]
Error Output: Running composer as root/super user is highly discouraged as packa
ges, plugins and scripts cannot always be trusted

php artisan clear-compiled
Script php artisan clear-compiled handling the pre-update-cmd event returned wit
h an error

[RuntimeException]

Error Output: PHP Warning:  require(/var/www/html/bootstrap/../vendor/autoload

.php): failed to open stream: No such file or directory in /var/www/html/bootstrap/autol
oad.php on line 17
PHP Fatal error:  require(): Failed opening required '/var/www/html/bootstrap/
../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ht
ml/bootstrap/autoload.php on line 17
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-cust
om-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-
o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [
39m]...
setup [--dev] [--no-dev] [--] []...
`

@DDynamic I don't know if this is the same error as before, but this is the output of trying to install on a clean VM with the command you mentioned. I did notice something odd although, whenever I tried to do the command to download the zip file as a normal user or even with Sudo, it automatically spat out 'Permission Denied' before I could even enter the sudo password.
`
Script php artisan clear-compiled handling the pre-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Warning: require(/var/www/html/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/bootstrap/autoload.php on line 17
PHP Fatal error: require(): Failed opening required '/var/www/html/bootstrap/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/html/bootstrap/autoload.php on line 17
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] []...
Script composer install --ansi --no-dev handling the setup event returned with an error
[RuntimeException]
Error Output: Running composer as root/super user is highly discouraged as packa
ges, plugins and scripts cannot always be trusted
php artisan clear-compiled
Script php artisan clear-compiled handling the pre-update-cmd event returned wit
h an error
[RuntimeException]
Error Output: PHP Warning:  require(/var/www/html/bootstrap/../vendor/autoload
.php): failed to open stream: No such file or directory in /var/www/html/bootstrap/autol
oad.php on line 17
PHP Fatal error: require(): Failed opening required '/var/www/html/bootstrap/
../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ht
ml/bootstrap/autoload.php on line 17
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-cust
om-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-
o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [
39m]...
setup [--dev] [--no-dev] [--] []...
`

I hate bumping, but I mean... Someoone has to know the reason for this right? @parkervcp @DDynamic @DaneEveritt

Are you using Nginx or Apache? By the way, I hate to say it but this project is pretty much dead, or at least on hold.

This is/was a bug in Laravel. Workaround is to simply manually run the commands listed under composer setup in the composer.json file.


Ensure tags must fit pattern before adding them

Fixes #20

@developit any reason why we can't merge this yet? Would be awesome to have this functionality working!

Array.prototype.includes() is not supported in IE9, which this library targets.

We could just add a polyfill for legacy browsers. This keeps the code clean and can be deleted quickly when you finally drop IE. :^)

I'm too obsessed with file size to go that route 😜

Developit: it's literally only a few characters
if (!String.prototype.includes) {
  String.prototype.includes = function(search, start) {
    'use strict';
    if (typeof start !== 'number') {
      start = 0;
    }

    if (start + search.length > this.length) {
      return false;
    } else {
      return this.indexOf(search, start) !== -1;
    }
  };
}

See https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/includes . It's also way more readable than ye olde "if index is greater than or equal to zero".


std.math: Fix names of PI/4 constants for RealFormat.ieeeQuadruple

Introduced by #5459.
FYI @klickverbot as the author of the referenced PR.

Ping?  This fixes a build failure on 128-bit real platforms.


Create readme.md

@codebryan lib/domains/tw/edu/tsust/readme.md: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@codebryan Please change the filename to follow the repository rules. Also, please add the name of the school to the file, as described in the rules. Thank you.

@codebryan I am sorry, the page you are referring to does not contain any IT-related courses. Also, the page https://vuzkunaeva.kz/academy/majors does not list any majors related to software development.
Thus, the school is considered as not eligible for this repository. Please apply for GitHub Student Developer Pack, and then apply for JetBrains free subscription with your GitHub account at https://www.jetbrains.com/shop/eform/students (GitHub tab).
I have to close this request without merging. Thank you for your understanding.


got library in artifact download doesn't pickup proxy from environment

Because of this we see connection timeout here:
https://github.com/dorny/test-reporter/blob/main/src/utils/github-utils.ts#L53
because no proxy is used in the test-reporter action. the action tries to establish a direct connection which won't work in our setup.
All other octokit interactions will correctly pickup and https_proxy environment variables and setup a proxy server correctly.

Hi, any updates on this? Can this please get fixed?


Add jokes command

Relevant Issues
Closes #1023
Description
I added a joke command which retrieves jokes based on a user's input from the pyjokes API.
Did you:

[x] Join the Python Discord Community?
[x] Read all the comments in this template?
[x] Ensure there is an issue open, or link relevant discord discussions?
[x] Read and agree to the contributing guidelines?

To whoever merged this, please squash & merge.


Add Lyrics API Support?

I found akashrchandran/spotify-lyrics-api which seems to use an "unofficial" Spotify API to get lyrics.
I also found Maxuss/verses which uses lyricstify/lyricstify's API, I haven't looked into their API code but I assume they do the same thing.
Is this something Ferrispot can support? I don't know what exactly the API responds with, but it seems spotify-lyrics-api is able to get LRC (which has a crate) with little PHP

Ferrispot will strictly interact with the Spotify Web API only. These lyrics tools call an undocumented Spotify endpoint outside the Web API and spoof themselves as web browsers, which means using the endpoint programmatically is prohibited by the Spotify terms of service. Unless Spotify adds an endpoint to the Web API to retrieve lyrics, I won't be adding support for it.

Understandable, Spotify denied my production application request three times already, so I'll handle the code in my project.


1password op commandline no longer works since desktop app integration was introduced

Describe the bug
When running any op command the error
[ERROR] 2023/09/30 12:23:42 connecting to desktop app: read: connection reset, make sure the CLI is correctly installed and Connect with 1Password CLI is enabled in the 1Password app
is displayed.
Steps To Reproduce
Steps to reproduce the behavior:

Install the _1password and _1password-gui packages
Run 1password to launch the GUI
Ensure settings -> Developer -> Connect with 1Password CLI is enabled
Attempt any op command such as op signin
Get the above error

Expected behavior
I expect the CLI to correctly integrate with the GUI and perform my required commands
Additional context
I've included the failing portion of the strace. It seems to be returning 133 (ENOSPC) when attempting to write to the GUI socket:
2100179 <... read resumed>"\0", 16)     = 1
2100174 epoll_ctl(4, EPOLL_CTL_ADD, 7, {events=EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, data={u32=1951461760, u64=139704352698752}} <unfinished ...>
2100179 epoll_pwait(4,  <unfinished ...>
2100174 <... epoll_ctl resumed>)        = 0
2100179 <... epoll_pwait resumed>[{events=EPOLLOUT, data={u32=1951461760, u64=139704352698752}}], 128, 0, NULL, 0) = 1
2100174 getsockname(7,  <unfinished ...>
2100179 epoll_pwait(4,  <unfinished ...>
2100174 <... getsockname resumed>{sa_family=AF_UNIX}, [112 => 2]) = 0
2100174 getpeername(7, {sa_family=AF_UNIX, sun_path="/run/user/1000/1Password-BrowserSupport.sock"}, [112 => 47]) = 0
2100174 getegid()                       = 1000
2100174 getgid()                        = 1000
2100174 write(7, "\201\0\0\0{\"callbackId\":1,\"invocation\":{\"type\":\"NmRequestAccounts\",\"content\":{\"version\":1,\"userRequested\":true,\"supportsDelegation\":true}}}", 133) = 133
2100174 futex(0xc000088548, FUTEX_WAKE_PRIVATE, 1) = 1
2100176 <... futex resumed>)            = 0
2100174 read(7,  <unfinished ...>
2100176 futex(0xc000088548, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
2100174 <... read resumed>0xc000452a1c, 4) = -1 EAGAIN (Resource temporarily unavailable)
2100174 futex(0x19b0a88, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
2100179 <... epoll_pwait resumed>[{events=EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP|EPOLLRDHUP, data={u32=1951461760, u64=139704352698752}}], 128, 4999, NULL, 0) = 1
2100179 read(7, 0xc000452a1c, 4)        = -1 ECONNRESET (Connection reset by peer)
2100179 futex(0x19b0a88, FUTEX_WAKE_PRIVATE, 1 <unfinished ...>
2100174 <... futex resumed>)            = 0
2100179 <... futex resumed>)            = 1
2100174 epoll_pwait(4, [], 128, 0, NULL, 0) = 0
2100179 write(2, "[ERROR] 2023/09/30 11:57:43 connecting to desktop app: read: connection reset, make sure the CLI is correctly installed and Connect with 1Password CLI is enabled in the 1Password app\n", 183 <unfinished ...>

However the /run/user/1000 tmpfs volume is at 1% usage with 2.4G available and no other disks are full either.
Notify maintainers
@joelburget
@marsam
@savannidgerinel
@matthewpi
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.35, NixOS, 23.05 (Stoat), 23.05pre-git`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.5`
 - channels(root): `"nixos-22.11"`
 - channels(rob-prije): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

(I don't install via nix channels. I currently have installed the version at https://github.com/NixOS/nixpkgs/archive/5cfafa12d57374f48bcc36fda3274ada276cf69e.tar.gz)

Could also reproduce on my system after upgrading to v8.10.16. Could 1Password be attempting to communicate via some channel that's just broken on Nix?

Hey, y'all. Unfortunately, I've never used the CLI, so I don't know how the CLI communications work. I suspect that it is different from integration with the browser extension, though I'm only guessing on that. I only did work to make the browser extension work in Nix. I think it likely that we will need to add on to the Nix module for the CLI as well, but I cannot give you any advice at the moment on how to do that.
I'd suggest filing a support request. Even though I'm on vacation this week, there are a few other Nix users who may be able to help, and it is something that I can work on when I return next week.

I cannot reproduce this, it's working fine for me.  I use both browser extensions hooked into the 1Password GUI app, the SSH agent, and occasionally the op CLI.
Versions:

_1password-gui-beta: 1Password for Linux 8.10.16 (81016043)
_1password: 2.21.0

If you disable the Use rich approval prompt setting (under the Developer tab) which may be why it works for me.  I have been running with that setting disabled for awhile now since in a previous update (I believe when they added the new prompt), it was broken on NixOS but I'm unsure if that was ever resolved.

~I cannot reproduce this, it's working fine for me. I use both browser extensions hooked into the 1Password GUI app, the SSH agent, and occasionally the op CLI.~
Versions:
* `_1password-gui-beta`: 1Password for Linux 8.10.16 (81016043)

* `_1password`: 2.21.0

If you disable the Use rich approval prompt setting (under the Developer tab) which may be why it works for me. I have been running with that setting disabled for awhile now since in a previous update (I believe when they added the new prompt), it was broken on NixOS but I'm unsure if that was ever resolved.

Can repro! Looks like the new approval prompt is just broken on Nix, then?

I don't seem to have the "Use rich approval prompt" option. My 1Password GUI's About says its version 8.10.9. When I go to Developer the only options are a "Set Up SSH Agent" button and a "Connect with 1Password CLI` toggle box which I have enabled.
This seems as though there's a hidden dependency on an external prompt program I don't have.

FWIW, the same on osx with latest everything.
OS: Sonoma 14.2.1 (23C71)
1password app: 1Password for Mac 8.9.11 (80911019)

Touch ID is on, required every 2 weeks
updates are installed automatically from the production release channel
connect with 1password cli is on
use the ssh agent is off

op command line: 2.24.0

installed with brew
link from /opt/homebrew/bin/op -> /opt/homebrew/Caskroom/1password-cli/2.24.0/op
link from /usr/local/bin/op -> /opt/homebrew/Caskroom/1password-cli/2.24.0/op

$ which op
/usr/local/bin/op

$ op signin
[ERROR] 2024/01/26 10:43:32 connecting to desktop app: 1Password CLI couldn't connect to the 1Password desktop app. To fix this, update the desktop app to the latest version. If you're still having trouble connecting, restart the app. If you're using version 8.10.12 or earlier of the app, the 1Password CLI binary must be located in /usr/local/bin/op.

Not that I'm very knowledgeable about NIx but to me it seems to be a permissions error (see https://1password.community/discussion/128029/can-not-connect-to-desktop-app)
WARN  2024-02-13T10:23:55.079 tokio-runtime-worker(ThreadId(7)) [1P:op-ipc/src/ipc/unix.rs:402] invalid group attempted to connect, rejecting remote

The 1Password docs say the op binary has to be owned by the onepassword-cli group and executed with that group (https://developer.1password.com/docs/cli/get-started#step-1-install-1password-cli).
Unfortunately I'm not really familiar with how nix handles /nix/store and how you can handle such permission requirements.

Not that I'm very knowledgeable about NIx but to me it seems to be a permissions error (see https://1password.community/discussion/128029/can-not-connect-to-desktop-app)

WARN  2024-02-13T10:23:55.079 tokio-runtime-worker(ThreadId(7)) [1P:op-ipc/src/ipc/unix.rs:402] invalid group attempted to connect, rejecting remote

The 1Password docs say the op binary has to be owned by the onepassword-cli group and executed with that group (https://developer.1password.com/docs/cli/get-started#step-1-install-1password-cli).
Unfortunately I'm not really familiar with how nix handles /nix/store and how you can handle such permission requirements.

Huh... this is definitely not trivial. Currently all files in /nix/store are owned by root, and there's no way for nixpkgs to make the group by itself.
Best way forward would probably be to make a NixOS module for the CLI, add the group to the system, and give root the group. The user then has to add the group to themself manually unless we find a way to automagically do so.

Oh, there already is a CLI module. You can enable it with programs._1password.enable = true. Back when I read this I was either not thinking clearly, or I assumed that you were installing with the modules.
In fact, reviewing the thread, it looks like you're not using the module in either case. You can add these lines to configuration.nix:
  programs._1password-gui.enable = true;
  programs._1password.enable = true;

And, if you want to unlock 1Password with the system unlock:
  programs._1password-gui.polkitPolicyOwners = [ "your-username-here" ];

Oh, there already is a CLI module. You can enable it with programs._1password.enable = true. Back when I read this I was either not thinking clearly, or I assumed that you were installing with the modules.

I am using the module for it but evidently I forgot about that :woman_facepalming: Seems like I couldn't reproduce it now

I got the same error
[ERROR] 2024/02/25 19:33:44 connecting to desktop app: 1Password CLI couldn't connect to the 1Password desktop app. To fix this, update the desktop app to the latest version. If you're still having trouble connecting, restart the app. If you're using version 8.10.12 or earlier of the app, the 1Password CLI binary must be located in /usr/local/bin/op.

I'm on latest 1Password app and 1Password CLI.
In order to get around this error all I had done was reseting the "Integrate with 1Password CLI" checkbox in 1Password app developer setting.

I'm running into the same problem on nixos, unfortunately toggling on/off through settings does not fix the problem for me.  Strangely, it does seem like the initial connection works, as I can turn off the integration in the GUI, then, attempt to enable through the CLI (which, in turn, launches the GUI).
Toggling the settings at that point produces a success message, immediately followed by the original error message
$ op signin                                                                                02/27/24 10:10:52 AM
Would you like to turn on the 1Password app integration? This allows you to sign in to 1Password CLI using the 1Password app. [Y/n] y
Unlock 1Password and select 'Integrate with 1Password CLI' in the Settings window that opens. To use Touch ID, Windows Hello, or another system authentication option with 1Password CL
I, navigate to the Security tab and turn it on.
Waiting for setting to change. To cancel, enter Ctrl + C.
All set! Let's 🚀
[ERROR] 2024/02/27 10:11:00 connecting to desktop app: read: connection reset, make sure
 1Password CLI is installed correctly, then open the 1Password app, select 1Password > S
ettings > Developer and make sure the 'Integrate with 1Password CLI' setting is turned o
n. If you're still having trouble connecting, restart the app.

I got the same error on macOS
[ERROR] 2024/02/25 19:33:44 connecting to desktop app: 1Password CLI couldn't connect to the 1Password desktop app. To fix this, update the desktop app to the latest version. If you're still having trouble connecting, restart the app. If you're using version 8.10.12 or earlier of the app, the 1Password CLI binary must be located in /usr/local/bin/op.

I'm on latest 1Password app and 1Password CLI.
In order to get around this error all I had done was reseting the "Integrate with 1Password CLI" checkbox in 1Password app developer setting.

This is never going to work. The integration requires some tools be installed with suid and owned by particular users. You just can't do that outside modules installed via NixOS.

This is never going to work.

Very much sounds like he got it to work.  FWIW I also have 1password + cli on MacOS working, managed through Nix (nix-homebrew in the case of the GUI).  The problems I have are on my NixOS desktop.

Oh, there already is a CLI module. You can enable it with programs._1password.enable = true. Back when I read this I was either not thinking clearly, or I assumed that you were installing with the modules.
In fact, reviewing the thread, it looks like you're not using the module in either case. You can add these lines to configuration.nix:
  programs._1password-gui.enable = true;
  programs._1password.enable = true;

And, if you want to unlock 1Password with the system unlock:
  programs._1password-gui.polkitPolicyOwners = [ "your-username-here" ];

This turned out to be my problem. Enabling these has fixed my op command line and improved my overall experience with the GUI integrating better with the Chrome extension among other things. Thank you so much! I'm glosing this issue out.

Where is this mysterious configuration.nix. DOCUMENTATION people!!

@rprije

@rprije

https://nixos.org/manual/nixos/stable/options#opt-programs._1password.enable
https://nixos.org/manual/nixos/stable/options#opt-programs._1password-gui.enable
https://nixos.org/manual/nixos/stable/options#opt-programs._1password-gui.polkitPolicyOwners
The configuration file where this is located is described at https://nixos.org/manual/nixos/stable/#ch-configuration

For NixOS-WSL users, see https://github.com/nix-community/NixOS-WSL/issues/346


the demo speed

when i use casade R-CNN,the demo speed is low,The test speed is about 1 second per picture，and i have tesla GPU, Is this a problem of program optimization?Can the test speed be accelerated a bit?

Hi @781458112
You may try testing on your machine. If the results are the same, maybe it due to hardware limitations.


feat: add portable reputation app generation [FTL-8851]

:tada: This PR is included in version 1.12.0 :tada:
The release is available on:

Visual Studio Marketplace
GitHub release

Your semantic-release bot :package::rocket:


Support ssh keys with passphrase applied

backport does not appear to support ssh keys that are protected by a passphrase. The process hangs indefinitely when trying to clone the repository. If I recreate my key without a passphrase applied, then the backport works perfectly.
I'm guessing that the git client is waiting for the passphrase to be entered via stdin, but backport doesn't expose/allow that to be entered via command line. It would be nice if we could enable this support, so users can protect their keys if they so choose.
System Config:

OS: macOS High Sierra 10.13.3
Git Client: 2.14.3 (Apple Git-98)

This is a good point. I was looking at ways to capture interaction while working on https://github.com/sqren/backport/issues/45 but didn't find any good way of doing it.
I would like it if backport could maintain control of the flow, so a password prompt doesn't suddenly appear (it also messes with the loading spinners).
However, it seems like I can't simply capture the output from an interactive shell like ssh with Node's child_process, and I need to use something like pty.js instead.
A workaround would be to add your ssh key to the ssh-agent
I'll try to look into this soon-ish.

Great idea about using the ssh-agent. I completely forgot about that option. Thanks!

Good to hear the workaround solved it for now. Closing this for now in favor of https://github.com/sqren/backport/issues/56


curve does not seem to be used in latest version

A read of 'git grep curve' seems to show that the current velocity logic does not take account of the curve parameter at al.

Was waiting for Roger to try it out without curves

Great, just checking this was the intention.
On Mon, Jan 4, 2016 at 00:42 Geert Bevin<EMAIL_ADDRESS>wrote:

Was waiting for Roger to try it out without curves
—
Reply to this email directly or view it on GitHub
https://github.com/rogerlinndesign/linnstrument-firmware/issues/30#issuecomment-168612300
.


Moving Structs

Moving the logging structs to maestroSpecs so more than one project can have access to them.

LGTM.  Are you creating a commit in maestro to remove it from maestro and instead refer to this lib?

@johnmichaelwelsh In reference to https://github.com/armPelionEdge/maestroSpecs/pull/4#issuecomment-582211922, please link the PR (copy and paste the URL).
It helps with tracking multi-repo changes :grin:

Will add the link in the future for multi-repo changes.
The maestro side is this commit: https://github.com/armPelionEdge/maestro/commit/d891281e7c643e22e47f5d016ae8a2e534581f45

Will add the link in the future for multi-repo changes.
The maestro side is this commit: armPelionEdge/maestro@d891281

Thanks Mike.  You might want to double-check that commit before making a PR from it.


Update CI: add run_local.sh

Don't use Docker service / xenon-* images. Note: For time being, mirror iss27 branch in iss32 to test the scripts via run_local.sh wrapper.

See #33.

Note: For time being, mirror iss27 branch in iss32 to test via run_local.sh.

the runtime is reduced to <19 min


[TF 2.0 API Docs] tf.image.adjust_brightness

URL(s) with the issue:
https://www.tensorflow.org/versions/master/api_docs/python/tf/image/adjust_brightness
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/image_ops_impl.py
Description of issue (what needs changing):
Raises listed and defined
Raises are not listed and defined
Usage example
No usage example has been provided
Submit a pull request?
Yes
https://github.com/tensorflow/tensorflow/pull/29320

Closing since associated PR is merged. Thanks!


Test that test failures is captured in PRs.

Just checking that the tests kicks in on PRs. Awesome =)


supported obj types at debugpage

supported obj types at debugpage #436
native_only flag for is_supported()

thanks! :smile:


SPA with node.js

It would be great if this page had a link o SPA with nodje.js backend.

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

ID: a80d3420-d113-358b-709f-a61da7211a2b
Version Independent ID: 5b0994ea-bd51-d7c0-460d-0412945148d8
Content: Move single-page app to production - Microsoft identity platform
Content Source: articles/active-directory/develop/scenario-spa-production.md
Service: active-directory
Sub-service: develop
GitHub Login: @navyasric
Microsoft Alias: nacanuma

@DarkLite1 Thank you for your feedback . We will investigate and update the thread.

@DarkLite1 SPA samples are already served with a Node.js backend. Perhaps you've meant a SPA + Node.js Web API combination? In that case, there will be a sample soon after MSAL-Node becomes mature.

#assign: @derisen

@DarkLite1 I've made a PR for adding links to Node.js web API sample using passport-azure-ad library.

Awesome! When I click your link I get nowhere but I'm sure the PR will be ok. Thanks for the help, it will help others too :)


Show Selected Date

There is no option to show the date, or to horizontally centre the date that i wish to show. So the user can feel that the is by default selected.

I added a new method in version 1.0.4
func scrollToSelectedDate(animated: Bool)

U can see example in ViewController


New SDK port (Java)

I've made a fresh new port (under the Casterlabs org) for Java (Cleaner code, adheres to the existing Go api very tightly).
Casterlabs/Webview

That's relly cool. Especially the AWT support and the usage of JNI.

By the way, is there any license for it?

By the way, is there any license for it?

Ah, meant to do that! It'll be under the same license as the main webview project (MIT).

@e3ndr Whether the java repository can be merged with the current repository？

@e3ndr Whether the java repository can be merged with the current repository？

What do you mean?

@e3ndr Hi,I means if there are plans to migrate the repository to webview org, such as: https://github.com/webview/webview_java, It makes it look more official.
And the webview.dev document already has a Java-related directory, but the content is still empty.
Recently I've been looking for java and webview2 related implementations, and I haven't found a good solution for a long time, and yours seems like a good choice.
I have the requirement of application in the production environment. At present, the function of your repo is relatively simple. I hope to move the needle by making the repository more official, eventually becoming a totipotent java-webview-app solution like wailsapp in golang.

@e3ndr Hi,I means if there are plans to migrate the repository to webview org, such as: https://github.com/webview/webview_java, It makes it look more official.
And the webview.dev document already has a Java-related directory, but the content is still empty.
Recently I've been looking for java and webview2 related implementations, and I haven't found a good solution for a long time, and yours seems like a good choice.
I have the requirement of application in the production environment. At present, the function of your repo is relatively simple. I hope to move the needle by making the repository more official, eventually becoming a totipotent java-webview-app solution like wailsapp in golang.

Ah, yes the plan is to get it merged into the webview organization.

@e3ndr Are you asking for us to give you a repo to become a maintainer of in the webview org that you can push your java binding to?
@justjosias is a webview org admin so I'll defer to him.

@e3ndr We can do that. I'll invite you to the org so you can migrate it. Are you in the webview Discord? That way you can participate in conversations regarding the Java bindings and we can discuss this more directly.

@e3ndr Are you asking for us to give you a repo to become a maintainer of in the webview org that you can push your java binding to?

Sure!

@e3ndr We can do that. I'll invite you to the org so you can migrate it. Are you in the webview Discord? That way you can participate in conversations regarding the Java bindings and we can discuss this more directly.

I just joined, Ɇ₦ĐɆⱤV₳₥₱łⱤɆ#9092.


Question regarding the NPM "protocol"

Hi,
Is there an npmjs API/protocol description on which verdaccio/sinopia is built up on? Or is the npmjs API reverse engineered in order to make this project possible?
Thanks

I think sinopia was born as a API reverse engineered from npm. I haven't found any hint of design either on commits, wiki or history of tickets on the original project. Anyway, I was documenting which features of npm latest are actually supported by verdaccio.
https://github.com/verdaccio/verdaccio/wiki/Registry-Endpoints
Why the question?

I was implementing my own registry based on trail/error until i found sinopia and later verdaccio. I wanted to compare my own implementation with another one. It looks like that npmjs themselves do not provide a good documentation regarding the API implementation.


communication with the charger

Hello.
Have you studied how the charger communicates with the battery?
I have a homemade battery-powered welding machine and I wanted to make the battery compatible with the Makita charger.
https://www.youtube.com/shorts/GvXqMOTdAs8
But I didn’t succeed, maybe I don’t have enough knowledge or perseverance.
Help as much as you can.

Assuming you are attempting to make a spot welder.
If it is the 18V batteries you are attempting to use I don't think you will get the current you need from them.
The specifications for the cells in a 18V 4Ah battery pack I have is 2200mA max discharge (two cells in parallel) so this comes to 4400mA maximum discharge current, I don't think the battery pack can safely supply the current you need.
You may or may not have better luck with the 40V batteries but now you are getting into a higher voltage (and bigger spark).
The type of battery that can effortlessly supply this kind of current (hundreds of amps) is a lead acid (car battery) type of battery.  I would recommend a 12V variety, and even a smaller sealed lead acid may work.  Be careful of gas buildup when quickly discharging a sealed battery (there is no vent outside of an emergency pressure relief).
These types of car batteries are designed to supply hundreds of amps while starting a car.
This would be my recommendation instead of a Makita battery pack.
I honestly don't think you will be able to pull the amount of current necessary to spot weld with these.

I just looked at the video, it is spot welder, but a normal wire feed kind of welder, but the same applies.
Normally a wire fed welder (if I am not mistaken) operates at a very low voltage (maybe 1-5 volts) with very high current (hundreds of amps) since it is the current (not the voltage) that produces the heat to weld.
I still think you can do this with an automotive battery, but be careful of short circuits and I would fuse protect it (50A or 100A fuse, or more).  You will also need a way to feed the wire.

Hey @Y13Lab
Sorry for not replying sooner. I have made a battery emulator that would fit this purpose. I did it mostly to verify my findings, and also to make a automatic tune changer :) But making batteries is not my intent with this project, and releasing such work would most likely just be used to make clones. I would still be willing to help you with your project, but please contact me through the contact e-mail in that case.
Closing this issue now as it is not relevant to this project.


New Features for the Python based Object Visualizer

🚀 Feature
John Reyna recently created the python based object visualizer which lies on the viewer-py-object-qa-application branch. The visualizer will be used to find out issues in the object models. Before we start using it on a larger scale, I have the following feature request:

Visualize the bounding box of the object
Add a small display on the top left of the visualizer with:

name of the object
sim step time w/ physics
process memory before/after importing a new object.

Motivation
Adding these features will help us in reducing the time required to filter out the objects. These features will help us in catching the following issues:

I suspect some objects dont have axis aligned bounding box, which means they will have a larger bounding box than required
Some objects are slow to render
Some objects take a lot of gpu memory

The earlier we catch issues in the objects, the sooner we will be able to use them in Habitat.

CC:  @aclegg3 @ASzot

For this part:
"(1) Add a small display on the top left of the visualizer that:
(2) name of the object
(3) sim step time w/ physics
(4) process memory before/after importing a new object."
For point (1), As far as I know, and what Alex said, was that displaying text in the application window isn't a feature yet for our python code, just C++. would it be ok to just print that info in the terminal, or is this a dealbreaker?
For point (3), what do you mean by this? Just how long the last frame took to process and render? Or JUST the physics step, and not the rendering?
And for point (4), what do you mean by "process memory?" Do you mean the amount of CPU and RAM memory that is currently being used in the process? Or GPU memory as well?

would it be ok to just print that info in the terminal, or is this a dealbreaker
I think we would be adding further information to the visualizer, some of which will be changing as we simulate (for eg: sim step time), so publishing this information in the terminal isnt ideal. How long do you think it would take to create this new module?

what do you mean by this? Just how long the last frame took to process and render? Or JUST the physics step, and not the rendering?
Having both the rendering time and the physics step time displayed independently would be ideal. If possible, it would be great if the color of the text could change from green to red when the stepping time passed a certain threshold. For starters you could use 10ms as the threshold.

what do you mean by "process memory?"
@ASzot @aclegg3 Can you chime in here? What did you wanted to see with this?

I'm not sure how long it would take to write code that writes to the application window. This is the first time I have worked with python, so I'd have to really dig into how the magnum Application module works.
As for process memory. I was able to calculate the GPU memory usage using the nvidia_smi library. An example output is:
GPU Info
Device 0: b'NVIDIA GeForce RTX 2070 with Max-Q Design'
Memory Info: 81.45% free
8,589,934,592 (total)
6,996,754,432 (free)
1,593,180,160 (used)
Is that the kind of thing you would want? I also wrote something to get the CPU and RAM memory usage, but I'm not sure it is right

I was able to print out the CPU usage. This is an example print statement:
CPU Memory
CPU memory usage: 23.20%
CPU Stats
Context switches: 554,137,115
Interrupts: 404,366,682
Software interrupts: 194,285,948
System calls: 0
CPU Frequency
Current frequency: 2,704.47 MHz
Min frequency: 800.0 MHz
Max frequency: 4,500.0 MHz
I also was able to draw the bounding boxes. Press 'k' to toggle on and off. you were right, some of them are not axis aligned

@mosra can comment on writing text to the python window here. I understand there are a couple of technical hurdles, maybe related to sharing the render buffer or glContext with the text writer. Likely this would need to be worked on from the Magnum side.

@jrreyna Some of this is already implemented in a tutorial script. Check out examples/tutorials/physics_benchmarking.py.

I added an issue for the GUI text specifically as it has broader scope than this application. #1842

@aclegg3 Regarding the GPU memory usage - In Macbooks, does Habitat use the Intel graphics card? Currently John is using nvidia_smi library in his PR and it gave me an error on my macbook.

Yeah, integrated graphics on mac. @jrreyna we should have a fallback if the user does not have nvidia hardware.

Re text -- answered on #1842.
Re GPU memory usage / nvidia_smi -- this feels like something that should be directly inside Magnum itself, so you don't need to worry about portability. I'll see what can be done.

@mosra
"Re text -- answered on https://github.com/facebookresearch/habitat-sim/issues/1842.
Re GPU memory usage / nvidia_smi -- this feels like something that should be directly inside Magnum itself, so you don't need to worry about portability (and GL vs Vulkan, once we are there). I'll see what can be done."
So I should just focus on CPU and RAM memory usage?


Update specs2-core, specs2-scalacheck to 4.10.3

Updates

org.specs2:specs2-core
org.specs2:specs2-scalacheck

from 4.8.3 to 4.10.3.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.specs2" } ]

labels: test-library-update, semver-minor

Superseded by #115.

Superseded by #115.


[Main][Task]27064950: Add doc on adding offline support channel

https://github.com/microsoft/ApplicationInsights-JS/issues/1419


fix: use single quotes as required by prettier

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)
[x] My changes do not use shortened URLs or affiliate links.

Instead of reverting #35278, this just fixes the quotes in the css, so it stops breaking builds.
@raisedadead just close this if you'd rather revert.

I've found out this isn't necessary, since the changes were never intended to stay.


Fix for invalid word to concordance adapter

For the issue - https://github.com/alpheios-project/components/issues/403
Add check - if concordance adapter returns error message instead of empty array for invalid word.

We have some strange not always repeatable problem with the test for gez

@balmas , should I spend some time to investigate that?

I think maybe the gez parser is not entirely reliable and might be changing underneath us ... I would suggest to skip the test for now and enter an issue to investigate and update the tests for it.


Using alpha_mask has number of dimensions mismatch

When using --alpha_mask with images with the background removed using rembg. On commit 0d96e10b3e66d5c6c7096fbeb7626c5be2e98809

Traceback (most recent call last):
  File "/mnt/900/builds/sd-scripts/train_network.py", line 1156, in <module>
    trainer.train(args)
  File "/mnt/900/builds/sd-scripts/train_network.py", line 919, in train
    loss = apply_masked_loss(loss, batch)
  File "/mnt/900/builds/sd-scripts/library/custom_train_functions.py", line 497, in apply_masked_loss
    mask_image = torch.nn.functional.interpolate(mask_image, size=loss.shape[2:], mode="area")
  File "/mnt/900/builds/sd-scripts/.venv/lib/python3.10/site-packages/torch/nn/functional.py", line 3961, in interpolate
    raise ValueError(
ValueError: Input and output must have the same number of spatial dimensions, but got input with spatial dimensions of [1, 576, 960] and output size of torch.Size([72, 120]). Please provide input tensor in (N, C, d1, d2, ...,dK) format and output size in (o1, o2, ...,oK) format.

uncommented print line for context:
mask_image: torch.Size([2, 1, 1, 576, 960]), 0.6733689904212952

If I swap the following lines it works.
        mask_image = batch["alpha_masks"].to(dtype=loss.dtype).unsqueeze(1) # add channel dimension
        # mask_image = batch["alpha_masks"].to(dtype=loss.dtype)

It does seem to work, to a degree, with the lines swapped.
I have seen others get it to work without having to modify this line so maybe some interaction with the dataset and the alpha_mask. Would be happy to try to isolate this.

Maybe post your command line? I got the alpha mask parameter working, so you could compare yours to mine:
accelerate launch --num_cpu_threads_per_process=2 "./sdxl_train.py" --pretrained_model_name_or_path="/home/ara/Documents/Dev/sdxl/training/earthscape/kohya/dreambooth/earthscape-step00002600.safetensors" --sdpa --enable_bucket --min_bucket_reso=64 --max_bucket_reso=1024 --train_data_dir="/home/ara/Documents/Dev/sdxl/training/earthscape/kohya/img" --resolution="1024,1024" --output_dir="/home/ara/Documents/Dev/sdxl/training/earthscape/kohya/dreambooth" --logging_dir="/home/ara/Documents/Dev/sdxl/training/earthscape/kohya/log" --save_model_as=safetensors --vae="/home/ara/Documents/Dev/sdxl/sdxl_vae.safetensors" --output_name="earthscape" --lr_scheduler_num_cycles="20000" --max_token_length=150 --max_data_loader_n_workers="0" --lr_scheduler="constant_with_warmup" --lr_warmup_steps="100" --max_train_steps="16000" --caption_extension=".txt" --optimizer_type="Adafactor" --optimizer_args scale_parameter=False relative_step=False warmup_init=False --max_data_loader_n_workers="0" --max_token_length=150 --bucket_reso_steps=32 --v_pred_like_loss="0.5" --save_every_n_steps="200" --save_last_n_steps="600" --min_snr_gamma=5 --gradient_checkpointing --xformers --bucket_no_upscale --noise_offset=0.0357 --adaptive_noise_scale=0.00357 --sample_sampler=k_dpm_2 --sample_prompts="/home/ara/Documents/Dev/sdxl/training/earthscape/kohya/dreambooth/sample/prompt.txt" --sample_every_n_steps="50" --fused_backward_pass --cache_latents --loss_type=huber --train_batch_size="4" --train_text_encoder --learning_rate_te1 1e-9 --learning_rate_te2 0 --learning_rate="4e-7" --flip_aug --enable_wildcard --shuffle_caption --alpha_mask
On a different topic, I wouldn't have high hopes for using background removal with alpha_mask. The problem I find is that since the background could be anything, the trained network starts generating multiple extra legs etc. as that raises the chance of getting a leg in the unmasked region, and the extra legs are not trained away by the gradient, as they end up in the masked background regions.

My current config. File paths and such are separately set. Using lycoris but i wouldn't think that would affect it.
pretrained_model_name_or_path="runwayml/stable-diffusion-v1-5"
max_train_epochs=4
save_every_n_epochs=1
train_batch_size=1
gradient_accumulation_steps=2
sample_every_n_epochs=1
sample_sampler="dpmsolver++"
caption_extension=".txt"
ip_noise_gamma=0.1
noise_offset=0.1
adaptive_noise_scale=0.01
noise_offset_random_strength=true
ip_noise_gamma_random_strength=true
gradient_checkpointing=true
alpha_mask=true
network_dim=10
network_alpha=5
network_module = "lycoris.kohya"
network_args = [
  "algo=boft",
  "rescale=True",
  "constrain=1e-4",
  "dropout=0.3",
  "rank_dropout=0.15",
  "module_dropout=0.15",
]

debiased_estimation_loss=true
sdpa=true
seed=13337

save_model_as="safetensors"
training_comment="Trained by: rockerBOO"
mixed_precision="fp16"

optimizer_type="PagedAdamW32Bit"
unet_lr=1e-4
text_encoder_lr=5e-5
optimizer_args=["weight_decay=0.01", "betas=(0.9,0.999)"]

loss_type="huber"
huber_schedule="snr" # exponential, constant, or snr.
huber_c=0.1

log_with = "wandb"

In terms of the masking I do the automated rembg mask and then manually filter out bad results. I have gotten very good results (in some cases the best results) with my current test but the backgrounds are not great. I think mixing in non-alpha  results could prove to be even better. I certainly would iterate on my masking technique but for this current test it balances how fast it is, with decent to great results.
Though at this point just curious if I'm messing it up by not adding that additional channel. But also why it is not working correctly. Maybe something SD1.5 related?

I checked it and also it doesn't work because of the dimension.
Alpha_mask already has 3 dimensions (1 x W x H) and doesn't need to be unsqueezed.
Also, there is a problem when using flip_arg with cache_latents.
The conversion using transforms.ToTensor() is missing in cache_batch_latents, so the training failed as follows:
  File "E:\LoRA-Scripts\library\train_util.py", line 1207, in __getitem__
    alpha_mask = None if image_info.alpha_mask is None else torch.flip(image_info.alpha_mask, [1])
TypeError: flip(): argument 'input' (position 1) must be Tensor, not numpy.ndarray

Add alpha_mask = transforms.ToTensor()(alpha_mask) to fix.
So, here are all the fixes:
diff --git a/library/custom_train_functions.py b/library/custom_train_functions.py
index 2a513dc..37680b1 100644
--- a/library/custom_train_functions.py
+++ b/library/custom_train_functions.py
@@ -487,7 +487,7 @@ def apply_masked_loss(loss, batch):
         # print(f"conditioning_image: {mask_image.shape}")
     elif "alpha_masks" in batch and batch["alpha_masks"] is not None:
         # alpha mask is 0 to 1
-        mask_image = batch["alpha_masks"].to(dtype=loss.dtype).unsqueeze(1) # add channel dimension
+        mask_image = batch["alpha_masks"].to(dtype=loss.dtype) # add channel dimension
         # print(f"mask_image: {mask_image.shape}, {mask_image.mean()}")
     else:
         return loss
diff --git a/library/train_util.py b/library/train_util.py
index 1f9f3c5..5795f86 100644
--- a/library/train_util.py
+++ b/library/train_util.py
@@ -2498,6 +2498,7 @@ def cache_batch_latents(
                 alpha_mask = alpha_mask.astype(np.float32) / 255.0
             else:
                 alpha_mask = np.ones_like(image[:, :, 0], dtype=np.float32)
+            alpha_mask = transforms.ToTensor()(alpha_mask)
         else:
             alpha_mask = None
         alpha_masks.append(alpha_mask)


hls hangs when input stream reconnect

Hello,
I use the latest srs version 3 on debian stretch, with this hls settings:
hls {
        enabled         on;
        hls_path        /var/www/ffplayout;
        hls_fragment    10;
        hls_window      60;
        hls_dispose     1;
        hls_m3u8_file   [app]/[stream].m3u8;
        hls_ts_file     [app]/[stream]-[seq].ts;
    }

The problem is: when the input stream disconnect and connect again, hls wont work anymore. When it reconnect before hls_dispose 1 is reached, the last *.ts.tmp file is not growing, it only change the size randomly bigger and smaller.
When I stop the input stream longer then hls_dispose 1, the ts-folder will be empty. But when I start the stream again, I get a *.ts.tmp file, with the last seq. number, before the stream was stopping. And again the file is not growing and there comes also no stream.m3u8 file.
The only way is, to restart srs and reconnect again the input stream.
After starting srs I also get always the warning: can't enable vhost.hls of __defaultVhost__. But hls will work.
Is there any solution for that?
Regards

I will check it.


Add table aws_dynamodb_metric_account_provisioned_read_capacity_util.

References
We need to have table to get the account specific DynamoDb (DDB) table throughput  limit check metrics. This will be used for AWS config rule (dynamodb-throughput-limit-check)
The below attached image describes the account specific metric for DDB service. These are automatically provisioned by Cloud Watch.

We have similar design patter of this code here

Already merged.


Brand Logo Designer

Create a horizontal logo with an icon symbolizing your business and your brand name alongside, set on a transparent background: https://chat.openai.com/g/g-eSTMWEuBk-brand-logo-designer-by-domore-ai

Added


Make personal api token generation as easy as possible

[ ] What scopes do we need?
[ ] Can we automate it?
[ ] How do we capture it

This card is blocked for now, we reached out to GH to get a better sense of how we can do that to make it easy for our users 👍

Described in detail in https://github.com/fastlane/ci/blob/master/docs/use_cases/first_time_setup.md
Gonna be built by @AndrewMcBurney


Optimized threadpool

I have a couple questions about the design of the threadpool that somewhat tie into potential future optimizations too:
First off, why is it limited to 31 (or 32 with the main thread) threads? If it's because of the processor group limit on windows (wherein one group is at most 64 logical processors and therefore 32 physical cores), would it not be desirable to add support for spanning threads across multiple processor groups?
Secondly, why is the thread pool an explicit singleton? This design/architecture of this threadpool seems like it could work very well in uses like event loop handlers or reactors that want their own pool, if multiple pools could be created and customized.

No real reason for it. The project is still very early on and some features will get polished over time.
The current idea was getting something reasonable done that would suit the needs of the project and could be built upon later.
Getting a threading API right is not something that is done over night.
I am expecting things to change as the project evolves and adapts to various needs which users have.
Any suggestions are welcome, of course.

That's fair! I do think it would be interesting and potentially useful to make the threadpool more flexible like that (by not forcing it to be a singleton), but at that point it's not necessarily in service of the ECS exclusively, and it also makes it easier for users to misuse it, so a bit of a trade-off.
As for the thread limit and especially the mention of processor groups, it was more a personal curiosity, as I've noticed a lot of other popular thread pool and task executor framework implementations don't handle those either (and as someone that does use a windows machine with more than one processor group, I wish more did!)


FFM-8982: adds ffserver 1.1079.0 relnote

@KimberlyFields - This is waiting for @davejohnston to signal that it's released.

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

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


i18n(it): Updates resources/plugins.mdx

Description
Updates resources/plugins.mdx

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

it
resources/plugins.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


On "Restart": Debug adapter process has terminated unexpectedly (read ECONNRESET)

Which OS: MacOS 10.13.6
Which extension version: 1.0.0
Which LLDB version: lldb-9<IP_ADDRESS>
Swift-4.1
Which VSCode version:  September 2018 (version 1.28)
What is the problem and how did you get there:
Debugger crashes when selecting "Restart" while in a debugging session. Message: Debug adapter process has terminated unexpectedly (read ECONNRESET)
Nothing in the output log

Minor issue, debugger works when running again after crash

Fixed in 1.1.2


Revising proxyHoldApplication to remove custom function

Revising per comments at https://github.com/istio/istio/pull/28873.

@stewartbutler: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
efee1839c47871a5fa02896042c50dbcd8e636da
link
/test release-notes_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@stewartbutler: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

release-notes_istio
efee1839c47871a5fa02896042c50dbcd8e636da
link
/test release-notes_istio

lint_istio
efee1839c47871a5fa02896042c50dbcd8e636da
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Note: when cherry pick this to 1.8, need to cherry pick #27696 also.

@stewartbutler: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
2f18631cb0b581660a30c3958e3f1b165ba2bf2c
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

This LGTM except lint, @howardjohn could you take a look also?  Thanks!

I'm actually not sure how best to resolve this, as the code is there in order to support the deprecated (but not yet removed) API option and the use of the deprecated function is why lint is failing. @howardjohn, do you know how to resolve?

just add // nolint: staticcheck for the lint error

@stewartbutler: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
adcf16fbc4826030895511aa52846dcaa543efca
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@stewartbutler: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
adcf16fbc4826030895511aa52846dcaa543efca
link
/test lint_istio

gencheck_istio
adcf16fbc4826030895511aa52846dcaa543efca
link
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Feature/ted 1057

Codecov Report
Base: 98.59% // Head: 98.59% // No change to project coverage :thumbsup:

Coverage data is based on head (8961b37) compared to base (bb3c291).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #411   +/-   ##
=======================================
  Coverage   98.59%   98.59%
=======================================
  Files         136      136
  Lines        6637     6637
=======================================
  Hits         6544     6544
  Misses         93       93

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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