Getting inputstream from the audio in a voice channel?

How would i go about getting an inputstream from the audio in a voice channel

In JDA 3.0 I'm considering creating an implementation of AudioReceiveHandler that would allow you to retrieve an AudioInputStream. Be on the lookout for that when it comes out.

This was implemented in 8a104f365fbd9b71d5605712bdd6c9e8a3619ee0

No it wasn't. This requests an implementation of AudioRecieveHandler that acts as an AudioInputStream. The commit you referenced does not provide that.

Is this still a thing? And could someone show me how to build an AudioInputStream with the help of the AudioReceiveHandler?

I am working on an InputStream wrapper for Channel object (including VoiceChannels).
If you want to try that, here: https://github.com/BenjaminUrquhart/CIS

@AutismSpeaks
I am working on an InputStream wrapper for Channel objects (including VoiceChannels).
If you want to try that, here: https://github.com/BenjaminUrquhart/CIS

How would an AudioInputStream work? One can only create an AudioInputStream instance when its length (count of sample frames) is already known. This means that you can only store a fixed length of audio in an AudioInputStream, it can't be a real stream as in one that is going to receive new data constantly. It might still be useful to provide AudioInputStream instances though, it would just have to have a specified length and would need a handler that takes these instances. (Think about how some recording software works: they save multiple files of a fixed length. Each AudioInputStream here would represent a file.)
A normal InputStream might be more useful, but I am not familiar with what today's Java voice recognition, real-time processing libraries take as an input.

Is it now possible to get an AduiInputStream?

Is it now possible to get an AduiInputStream?

Not that I know.

This will likely never make its way into JDA because of what AudioInputStream is.

An audio input stream is an input stream with a specified audio format and length.

Audio that flows out of VoiceChannel (via an AudioReceiveHandler) doesn't have a specified length because it is real-time data.  AudioInputStream is meant to represent audio sources that are full-encapsulated like a file of song as an mp3. They have a known length.
As such, there's no real way to expose an AudioInputStream from JDA as AudioInputStream, as a construct, does not support continuous data.
If you have another library that only accepts AudioInputStreams I would recommend you capture some finite amount of data using an  AudioReceiveHandler (thus you have a known length) and then construct an AudioInputStream from that captured data and pass it anywhere that needs an AudioInputStream.


Add the "sample_ref" property to malware-analysis SDOs

From https://github.com/oasis-tcs/cti-stix2/issues/210
Fixes half of #339 .

Codecov Report

Merging #356 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master    #356      +/-   ##
=========================================
- Coverage   98.15%   98.1%   -0.05%
=========================================
  Files         124     124
  Lines       14176   13859     -317
=========================================
- Hits        13914   13596     -318
- Misses        262     263       +1

Impacted Files
Coverage Δ

stix2/v21/sdo.py
94.53% <ø> (ø)
:arrow_up:

stix2/test/v21/test_malware_analysis.py
100% <ø> (ø)
:arrow_up:

stix2/canonicalization/Canonicalize.py
61.04% <0%> (-0.41%)
:arrow_down:

stix2/datastore/filesystem.py
92.88% <0%> (-0.12%)
:arrow_down:

stix2/patterns.py
98% <0%> (-0.02%)
:arrow_down:

stix2/test/v21/test_datastore_filesystem.py
99.17% <0%> (-0.02%)
:arrow_down:

stix2/test/v20/test_datastore_filesystem.py
99.19% <0%> (-0.02%)
:arrow_down:

stix2/test/v21/test_relationship.py
100% <0%> (ø)
:arrow_up:

stix2/test/v20/test_campaign.py
100% <0%> (ø)
:arrow_up:

stix2/test/v21/test_core.py
100% <0%> (ø)
:arrow_up:

... and 60 more

Continue to review full report at Codecov.

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


[gluon][transform]fix unpicklable transform_first on windows

Description
Allow windows user to properly use Dataset.transform_first in combination with num_workers > 0
The original problem is caused by nested function which cannot be pickled in transform_first
Reproduceable following http://en.diveintodeeplearning.org/chapter_deep-learning-basics/fashion-mnist.html and set num_workers > 0 on windows machine

Removed nested function and use callable object instead.
Test case added

Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

@astonzhang

Thanks for the fix!

@eric-haibin-lin Can you help review and merge? Aston is eager to include it in 1.4 so readers using windows don't need to struggle with dependencies.


Default reconstruction parameters

IMO the current UI design encourages a pattern of:

clicking the "Acquire" buttons,
seeing which boxes become red,
filling them in,
then repeating until it works.

If the acquire buttons are on the top of the plugin, I think they should work "out of the box" without tweaking. Alternatively, if we think that user input is necessary before an acquisition, I think the "Acquire" buttons might make more sense at the button of the plugin. I'm leaning towards the first option with sensible defaults for now.

Accidental double post...network issues.


Toggle Marker Lines

From<EMAIL_ADDRESS>on December 22, 2011 08:36:42
Is it possible to include an action to toggle the display of marker lines?
Original issue: http://code.google.com/p/sws-extension/issues/detail?id=437

@swstim Bets solution for that is Heda's script:
Regions&Markers from Items ··· HeDaScripts for REAPER ··· |
Also, there is SWS markers sets.
This can be close, IMHO.

I think this issue is actually referencing the "Marker Line Z Order" setting which I don't see in Heda's scripts.

Meanwhile there where actions added: SWS/BR: Options - Set marker line Z order to ...


cosineSimilarity(), maximalMarginalRelevance(), and any util can't be imported

The cosineSimilarity() and maximalMarginalRelevance() functions were added with the math_utils.ts file in #1973.
However, this function can't be imported outside of langchain since it isn't included in the package.json "exports". In fact, nothing from the util directory is available since they are only in the dist directory.
I'm not familiar enough with how "exports" or any of this is built, but it seems like math_utils as a minimum should be included in this process, and there is a good case that all of util should be.

Yeah, I wouldn't have a problem with adding it as an entrypoint - what would your use-case be?

In this case, I'm using it to demonstrate how similar sets of embeddings are to each other to demonstrate or evaluate how effective the embedding library is. In theory, this could be done by using a vector database, but this also guarantees to give us a numeric evaluation of how similar the vectors are.


Some steps fail to create when editing an empty workflow

Describe the bug

Steps to reproduce

Create an empty workflow.
Edit the workflow, add some steps and save.
Check the workflow steps.

Result

No steps in the first stage.

Checked the PUT workflows api request. The first stage had no steps.

Expected behavior

All steps created successfully.
Environment

Walrus version: main 065ee92e55e14044fa0777be4c631f7082fadc0e
UI version: dev-b9a6538

Additional context
Add any other context about the problem here.

Environment

Walrus version: main a3e5c0343d3e831ca30e4fd76a160212bc5bba7f
UI version: dev-4b1fd17

Test Result: pass
Cannot create an empty workflow now and empty stages are automatically deleted when saving.


Update latest documents, publications and announcements template

What
https://trello.com/c/th7Nw5lU/623-update-latest-from-world-locations-template-and-locale-publications
Change apply to the following pages:

announcements https://www.gov.uk/government/announcements.ka?world_locations[]=all
publications - https://www.gov.uk/government/publications.de?world_locations[]=all and
latest documents https://www.gov.uk/government/latest?world_locations[]=singapore

Changes include:

Title and page heading (h1) are now the same for each page
In "Subscription links" component

Removed the 'With copyable feed link' option as this adds an additional h3 which breaks the document outline on these pages
Moved component in to separate column

Replaced Whitehall layout markup / style with grid system
Changed world location (latest) documents page layout from 'full-width' to 'two-thirds'
Replaced select_tag in https://github.com/alphagov/whitehall/pull/6252/files#diff-fd350a6c20d48d3a4b48e3e0187e47fa07a0f05d60f68830ce60810cebd44106L13 with "select" component

Why

Consistent look with other pages
Use design system styles and component guide components
Fix document outline issues

Visual changes

Before
After

## Anything else
The feeds component is in a shared partial, which is used by the topical events landing pages e.g. https://www.gov.uk/government/topical-events/2022-events-platinum-jubilee-commonwealth-games-festival-uk, so have included screenshots for this page too as they are affected by some of the changes above.

I'm not convinced the Announcements pages works as it should however this is out of scope this PR- https://github.com/alphagov/whitehall/issues/6306

I think this looks Ok, I think there's some more long term considerations but just needs a rebase.


Add missing await to super setup for STAR

The asyncio refactor looks great!
There is a missing await in STAR.setup, which is preventing initialization. This PR fixes that.

Great, thank you!


Testing on ERC20 token which has no return data (ex, USDT) fail and reverted.

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[x] Foundryup

What version of Foundry are you on?
forge 0.1.0 (67f9ed1 2022-02-23T00:32:01.483845067+00:00)
What command(s) is the bug in?
forge test --rpc-url {...}
Operating System
Linux
Describe the bug
Hi,
When I called transfer function of USDT, It reverts an return to fallback().
I guess it is due to USDT's implemetation of transfer function which has no return value.
I tested other ERC20 tokens LINK and Dai which have not reverted.
And also, when I use OZ's SafeERC20 library, USDT doesn't reverted.
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.6;

import "ds-test/test.sol";
import "./utils/Console.sol";
import "src/interface/IERC20.sol";

interface CheatCodes {
  function prank(address) external;
  function startPrank(address) external;
  function stopPrank() external;
}

contract Test2 is DSTest {
    address constant FAUCET = 0xF977814e90dA44bFA03b6295A0616a897441aceC;
    address constant TESTER = 0x00a329c0648769A73afAc7F9381E08FB43dBEA72;

    CheatCodes cheats = CheatCodes(HEVM_ADDRESS);
    IERC20 usdt = IERC20(0xdAC17F958D2ee523a2206206994597C13D831ec7);

    function faucet() public {
        cheats.startPrank(FAUCET);
        usdt.transfer(TESTER, 1*1e6);
        cheats.stopPrank();
    }

    function setUp() public {
        faucet();
    }
    function testTest() public {
        console.log(usdt.balanceOf(TESTER));
    }
}

root# forge test --fork-url http://localhost:8545/ --fork-block-number 14261277 -vvvv --debug --match-contract Test2
compiling...
Compiling 1 files with 0.7.6
Compilation finished successfully
success.
Running 1 test for Test2.json:Test2
[FAIL. Reason: Setup failed: Execution reverted: Revert(Reverted), (gas:<PHONE_NUMBER>778621134)] testTest() (gas: 0)
Traces:

  [9079256848778621134] Test2::setUp()
    ├─ [0] VM::startPrank(0xf977814e90da44bfa03b6295a0616a897441acec)
    │   └─ ← ()
    ├─ [9079256848778614990] 0xdac1…1ec7::transfer(0x00a329c0648769a73afac7f9381e08fb43dbea72, 1000000)
    │   └─ ← ()
    └─ ← ()
  [0] 0x0000…0000::fallback()
    └─ ← ()

Failed tests:
[FAIL. Reason: Setup failed: Execution reverted: Revert(Reverted), (gas:<PHONE_NUMBER>778621134)] testTest() (gas: 0)

Encountered a total of 1 failing tests, 0 tests succeeded

ACK - I've reproduced and investigating

OK so this is intended behavior.
Trying to integrate with USDT (or any of the tokens that were deployed with that bug) from a newer Solidity version without safe-transfer is expected to fail when using the "standard" ERC20 interface. This is because newer Solidity versions will try to decode the boolean return data, which in USDT case's there is none.
There's 3 ways to solve this:

Use Solidity 0.4.20 (not ideal)
Define interface ERC20 { function transfer(address,uint256) external; } (without the returns (bool) part so that Solidity doesn't try to decode the return data)
Use Safe Transfer


pin pyasn1-modules

Fixes https://clusterhq.atlassian.net/browse/FLOC-2506
See #1706 for comments on the approach.

Thanks @exarkun - this seems like an improvement to me. However, I am wary of @tomprince 's concerns that pinning security modules is a risk. Maybe we should look at https://clusterhq.atlassian.net/browse/FLOC-1172 soon.

Merge when you're happy (I guess now, this is a test fixer so it can be merged, right?).

However, I am wary of @tomprince 's concerns that pinning security modules is a risk.

In general I agree with this concern.  So yea, we should do something better.  For this particular case, I'm not as concerned because our use of pyasn1 is in our build infrastructure only.

I am unhappy with the outcome of the builds:

installed-package/vagrant/centos-7 - hung, known issue, https://clusterhq.atlassian.net/browse/FLOC-2503
acceptance/vagrant/centos-7/zfs
* failed container tests, known issue, https://clusterhq.atlassian.net/browse/FLOC-2488
* failed postgres tests, known issue (can't find the issue but I know it's filed)
Rackspace builders - Resource limits exceeded, known issue, https://clusterhq.atlassian.net/browse/FLOC-2441
acceptance/aws/ubuntu-14.04/aws - Resource limits exceeded, known issue, https://clusterhq.atlassian.net/browse/FLOC-2441

So I guess I'll merge.


Applying extend to the edit_snippet_files function fails

Meta:

OS: Windows
Neovim version: 0.8

Description:
When applying extend to the edit_snippet_files function, as described in the readme at the bottom of the edit_snippets section, neovim is throwing an error.
The code from my init.lua (line numbers included):
171 -- Luasnip snippet editing
172 require("luasnip.loaders").edit_snippet_files {
173     extend = function(ft, paths)
174         if #paths == 0 then
175             return {
176                 {
177                     "CONFIG/snippets/" .. ft .. ".snippets",
178                     string.format(
179                         "%s/%s.snippets",
180                         vim.env['HOME'] .. "/.config/nvim/snippets/",
181                         ft
182                     )
183                 }
184             }
185         end
186
187         return {}
188     end
189 }

The error:
Error detected while processing [redacted...]\AppData\Local\nvim\init.lua:
E5113: Error while calling lua chunk: ...site\pack\packer\start\LuaSnip/lua/luasnip/util/util.lua:484: attempt to index local 'config' (a nil value)
stack traceback:
	...site\pack\packer\start\LuaSnip/lua/luasnip/util/util.lua:484: in function 'get_snippet_filetypes'
	...e\pack\packer\start\LuaSnip/lua/luasnip/loaders/init.lua:40: in function 'edit_snippet_files'
	[redacted...]\AppData\Local\nvim\init.lua:172: in main chunk

Hi, thanks for the report.
I can't reproduce this error, which is weird because it seems to me that this should not depend on any configuration (error originates here)
Does just :lua = require("luasnip.session").config also throw an error?
Ahhh, or is the setup-call missing? require("luasnip").setup() should do it in that case

Yep. Thanks!
The require("luasnip").setup({}) call was missing.


Take hostname from arp -a

In the arp.table function can we also return the host name (e.g.jbis-imac.router.home)? If the hostname is ? it wasn't found so maybe store that as null?
jbis-imac.router.home (<IP_ADDRESS>) at XX:XX:XX:XX:XX:XX on en1 ifscope permanent [ethernet]

https://github.com/skepticfx/arpjs/pull/32

https://github.com/skepticfx/arpjs/pull/32

Thanks for reporting and the PR

Thanks for reporting and the PR

Thanks for adding!
Does the PR change the question mark null?

Thanks for adding!
Does the PR change the question mark null?

Thanks. Just did.
https://github.com/skepticfx/arpjs/pull/33/files
The whole code was from a long time ago and am not too happy with the code quality. Will do a rewrite soon.

Thanks. Just did.
https://github.com/skepticfx/arpjs/pull/33/files
The whole code was from a long time ago and am not too happy with the code quality. Will do a rewrite soon.


Plans in the Spider2-lite

Hi,
Did you pass the "plan" provided in the Spider2-lite as a part of the context in the benchmarked methods? e.g. agent, Dail-SQL, CodeS
Thank you!

Hi, sorry for the late reply!
We are considering using "plan" as part of the context only in the oracle setting, since the majority of them are generated based on the gold SQL, which is not usable in the real text2SQL scenarios. Please refer to README of Dail-SQL for the performance improvements when using "plan".
For its detailed implementation in Dail-SQL and CodeS, see https://github.com/xlang-ai/Spider2/blob/98fc5c486a6b7c6202a118026f190ab21e480b03/spider2-lite/baselines/dailsql/prompt/PromptReprTemplate.py#L100 and https://github.com/xlang-ai/Spider2/blob/98fc5c486a6b7c6202a118026f190ab21e480b03/spider2-lite/baselines/codes/utils/load_sft_dataset.py#L41


fix(etag): support multi-value If-None-Match

chore(etag): reduce global state in tests
perf(etag): don't override ETags from upstream
perf(etag): 304s include only necessary headers
fix(etag): Support multi-value If-None-Match
perf(etag): prefer Header.prototype.get

I recommend reviewing commit-by-commit as each commit has detailed rationale, including references to the relevant specs.

Hi @jamesarosen !
Great work! Looks good.
And, we can ignore the "Bun" CI is faling because it's Bun's matter, after merging, I'll fix the version of Bun.

please run yarn denoify

Done 👍

Great! I'll merge it now!


VLAN tag configuration should not require 0x8100 prefix

This PR fixes #102.

@andywingo The config is in host endianness, like always. Diego modified the code so that it handles the conversion to network endianness. We should explicitly document that it takes host endianness, but I think that's the right choice (as well as what we previously did).

LGTM. Thanks you @dpino

I think this patch is the right patch but it can cause communications problems with people that have been using C.htonl(0x81000XXX) in their configs.  Given the potential for confusion here we should require that the vlan ID be in host endianness without the 0x81000 prefix and verify that an error is thrown (1) when a user uses C in their config file and (2) when a user specifies a 0x81000 prefix.

Hmm. Actually, yes. We really shouldn't break the using C.htonl case. You're absolutely right.

I think breaking configs that use C.htonl is fine as long as a good error is signalled.  Much easier to break now and DTRT instead of having to document the wrong thing forever.  We can call all of our users :)

I think that's fine on 2.0, but I don't like doing that for 1.1.

To summarize, the additional checkings needed are signaling an error if C.htons is used in the configuration file or in case not is a 802.1q TPID is already added in the tag. Is that correct? @andywingo @kbara

Problem is, we can't distinguish these cases.  C.htonl(0x81000000) is within the range of host-endianness vlan tags without the 0x81000 prefix.  We must break the C.htonl case.  And we should!

I'll reluctantly agree with @andywingo , as long as it breaks LOUDLY and CLEARLY, with a readable (even verbose) error message. But let's really not make a habit of this.

Cool.  @dpino can you update to remove the code that checks for the TPID please; just assert that the vlan is in the [0, 4091] range and add the TPID unconditionally.  Thanks!

@andywingo we still need to document byte order, since this is a 2-byte setting. I vote 'specify it in host byte order'. What do you think?

@kbara yes agreed, host byte order ftw!

@wingo OK, I think the range should be 0-65536. The tag is actually a 12-bit number but there's no other way to set the remaining 4-bit of a tag https://en.wikipedia.org/wiki/IEEE_802.1Q

I will updated the documentation stating this parameter is in host-byte order.

Thank you. Specify that this parameter sets the other 4 bits as well, while you're at it?

OK, will do.

Though the VLAN tag is stored is two bytes, the VID allowable range is [0,4091].  Please verify appropriately.

If we want to allow specifying the PCP/DEI, those values should be set in separate fields.

That's cleaner, and I suppose we're already absolutely breaking 1.0 compatibility anyhow. Sorry Diego, I'll agree with Andy again.

@andywingo  @kbara I just read your comments now. I think it all depends on how we define the value. If it's properly explaining in the doc, I think it's OK to be a 16-bit value (check PR and see if you agree). If still don't, I will undo the changes and make it a 12-bit value.

I think having 3 settings lets us do better error checking and reduces the scope for user error. I've been thinking we probably should 'at some point' for a while. While you're deep in the patch and all 3 of us have actively discussed it and we're breaking compatibility -anyhow- seems like the best chance we'll get.

Updated PR. I prefer to leave settings of PCP and DEI for the future in case they are needed.

LGTM.  Thank you Diego!

I'd prefer to have those settings, but I'm willing to LGTM the merge nonetheless.


Automatic article suggestions not working properly

When trying to get article suggestions, it sometimes doesn't return any article or returns 2 when it had many alternatives.

this is due to this.

this is due to this.


Create Coding Ninjas DSA Notes in C++.md

Welcome to the world of C++ programming! Below, you'll find a treasure trove of knowledge to help you master the art of coding. Each link is a gateway to a valuable resource for your learning journey.
What does this PR do?
Add resource(s) | Remove resource(s) | Add info | Improve repo
For resources
Description
Why is this valuable (or not)?
How do we know it's really free?
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

follow alphabetical ordering

Please read docs/CONTRIBUTING.md guidelines!


Feature request: automatic updates as new docker images are released

It would be great if there was a daily GitHub action that checked for new docker tags and released a new version of the addon!

Love this and following closely! Could it be working with ingress so that it would work with Nabu Cassa cloud? (I think that's what it's called).


remove build volumes mount point empty dir when committing the final image

When building the image with build-time volumes, such as playbook-dir:/src, an empty dir /src will left in the final image. Can we mount the build-time volumes in each buildah run ...  command, instead of in buildah from command, and at time of commit, execute another run command to remove all the empty mount point folders?

this is pretty interesting behaviour of buildah - I'm wondering if we should get some support from it here

this is pretty interesting behaviour of buildah - I'm wondering if we should get some support from it here

Now my own images use a workaround, putting the following task at the very last of the playbook:
    # to clean up the mount point empty direcotires, we need:
    # - place this task at last of this play, that is, the 'buildah commit' will be called immediately
    # - ran by 'raw' module, then 'buildah umount' will not be inserted before commit
    # - provide SYS_ADMIN capacity
    # - each new mount point must be bind directly in /mnt directory
    # - /mnt contains only mount point directories
    #
    # to clean up dynamic mounted files by runtime engin, we also require SYS_ADMIN capacity
    - name: cleanup mount point directories
      changed_when: False
      vars:
        dy_mounts:
        - /run/.containerenv
        - /etc/resolv.conf
        - /etc/hosts
        - /etc/hostname
        cmds:
        - find /mnt -mindepth 1 -maxdepth 1 -exec umount {} + -exec rmdir {} +
        - ls -1 {{ dy_mounts | join(' ') }} 2>/dev/null | xargs -r umount
        - rm -f {{ dy_mounts | join(' ') }}
        - find /run -mindepth 1 -delete
      raw: sh -ec {{ cmds | join(' ; ') | quote }}

Now my own images use a workaround, putting the following task at the very last of the playbook:
    # to clean up the mount point empty direcotires, we need:
    # - place this task at last of this play, that is, the 'buildah commit' will be called immediately
    # - ran by 'raw' module, then 'buildah umount' will not be inserted before commit
    # - provide SYS_ADMIN capacity
    # - each new mount point must be bind directly in /mnt directory
    # - /mnt contains only mount point directories
    #
    # to clean up dynamic mounted files by runtime engin, we also require SYS_ADMIN capacity
    - name: cleanup mount point directories
      changed_when: False
      vars:
        dy_mounts:
        - /run/.containerenv
        - /etc/resolv.conf
        - /etc/hosts
        - /etc/hostname
        cmds:
        - find /mnt -mindepth 1 -maxdepth 1 -exec umount {} + -exec rmdir {} +
        - ls -1 {{ dy_mounts | join(' ') }} 2>/dev/null | xargs -r umount
        - rm -f {{ dy_mounts | join(' ') }}
        - find /run -mindepth 1 -delete
      raw: sh -ec {{ cmds | join(' ; ') | quote }}

Now my own images use a workaround, putting the following task at the very last of the playbook:
    # to clean up the mount point empty direcotires, we need:
    # - place this task at last of this play, that is, the 'buildah commit' will be called immediately
    # - ran by 'raw' module, then 'buildah umount' will not be inserted before commit
    # - provide SYS_ADMIN capacity
    # - each new mount point must be bind directly in /mnt directory
    # - /mnt contains only mount point directories
    #
    # to clean up dynamic mounted files by runtime engin, we also require SYS_ADMIN capacity
    - name: cleanup mount point directories
      changed_when: False
      vars:
        dy_mounts:
        - /run/.containerenv
        - /etc/resolv.conf
        - /etc/hosts
        - /etc/hostname
        cmds:
        - find /mnt -mindepth 1 -maxdepth 1 -exec umount {} + -exec rmdir {} +
        - ls -1 {{ dy_mounts | join(' ') }} 2>/dev/null | xargs -r umount
        - rm -f {{ dy_mounts | join(' ') }}
        - find /run -mindepth 1 -delete
      raw: sh -ec {{ cmds | join(' ; ') | quote }}

Now my own images use a workaround, putting the following task at the very last of the playbook:
    # to clean up the mount point empty direcotires, we need:
    # - place this task at last of this play, that is, the 'buildah commit' will be called immediately
    # - ran by 'raw' module, then 'buildah umount' will not be inserted before commit
    # - provide SYS_ADMIN capacity
    # - each new mount point must be bind directly in /mnt directory
    # - /mnt contains only mount point directories
    #
    # to clean up dynamic mounted files by runtime engin, we also require SYS_ADMIN capacity
    - name: cleanup mount point directories
      changed_when: False
      vars:
        dy_mounts:
        - /run/.containerenv
        - /etc/resolv.conf
        - /etc/hosts
        - /etc/hostname
        cmds:
        - find /mnt -mindepth 1 -maxdepth 1 -exec umount {} + -exec rmdir {} +
        - ls -1 {{ dy_mounts | join(' ') }} 2>/dev/null | xargs -r umount
        - rm -f {{ dy_mounts | join(' ') }}
        - find /run -mindepth 1 -delete
      raw: sh -ec {{ cmds | join(' ; ') | quote }}

Looks like a pretty good solution to your problem.
The main issue here for me is that ansible-bender would be removing something from the final images which users can't configure - a valid use case may be to have a directory populated, then put a mount on top during the build and keep the old, default data in the final image.
As I said earlier, I think this would be worth discussing with buildah upstream if they can do something about the lingering files/directories.

Looks like a pretty good solution to your problem.
The main issue here for me is that ansible-bender would be removing something from the final images which users can't configure - a valid use case may be to have a directory populated, then put a mount on top during the build and keep the old, default data in the final image.
As I said earlier, I think this would be worth discussing with buildah upstream if they can do something about the lingering files/directories.

i agree, the previous work around is specific, and we should not remove intended files/dirs. That is, for the building toolset, the build-time mounts should not create a new nor remove an existent path. But the building engine and the ansible-bender as a wrapper cannot easily archive both.
There is still an issue introduced by ansible buildan connection. The python modules (not raw module) have to connect the container 3 times.  At the last time, ansible tries to cleanup the temp files and then mount the built time volumes again, and left an empty directories there. The ansible pipelining feature may be a solution of this issue.

i agree, the previous work around is specific, and we should not remove intended files/dirs. That is, for the building toolset, the build-time mounts should not create a new nor remove an existent path. But the building engine and the ansible-bender as a wrapper cannot easily archive both.
There is still an issue introduced by ansible buildan connection. The python modules (not raw module) have to connect the container 3 times.  At the last time, ansible tries to cleanup the temp files and then mount the built time volumes again, and left an empty directories there. The ansible pipelining feature may be a solution of this issue.


[qt5] Cross-compilation for ARM64 fails

Microsoft (R) Program Maintenance Utility Version 14.28.29913.0
Copyright (C) Microsoft Corporation.  All rights reserved.

This version of C:\vcpkg\buildtrees\qt5-base\arm64-windows-static-md-dbg\bin\qmake.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

From https://code.qt.io/cgit/qt/qtbase.git/tree/cmake/README.md:

Compiling for a target architecture that's different than the host requires one build of Qt for the
host. This "host build" is needed because the process of building Qt involves the compilation of
intermediate code generator tools, that in turn are called to produce source code that needs to be
compiled into the final libraries. These tools are built using Qt itself and they need to run on the
machine you're building on, regardless of the architecure you are targeting.
Build Qt regularly for your host system and install it into a directory of your choice using the
CMAKE_INSTALL_PREFIX variable. You are free to disable the build of tests and examples by
passing -DBUILD_EXAMPLES=OFF and -DBUILD_TESTING=OFF.
With this installation of Qt in place, which contains all tools needed, we can proceed to create a
new build of Qt that is cross-compiled to the target architecture of choice. You may proceed by
setting up your environment. The CMake wiki has further information how to do that at
https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling
Yocto based device SDKs come with an environment setup script that needs to be sourced in your shell
and takes care of setting up environment variables and a cmake alias with a toolchain file, so that
you can call cmake as you always do.
In order to make sure that Qt picks up the code generator tools from the host build, you need to
pass an extra parameter to cmake:
-DQT_HOST_PATH=/path/to/your/host_build

The specified path needs to point to a directory that contains an installed host build of Qt.

qt5-base is not yet setup for cross builds since host triplets were just recently added. You can try setting VCPKG_QT_TARGET_MKSPEC and VCPKG_QT_HOST_TOOLS_ROOT. To appropiate values but don't expect it to be successful.

ERROR: Feature 'icu' was enabled, but the pre-condition 'libs.icu' failed.

Confirm VCPKG_QT_TARGET_MKSPEC and VCPKG_QT_HOST_TOOLS_ROOT doesn't help. I help correct toolchain+rootfs for RasPi1 / RasPi3 and can build other vcpkg ports but when i trying to build qt5-base it alwayes tries to build for x86_64 and ignores mkspec like linux-aarch64-g++ or similar. Just always configures qt for linux-g++`.

Finaly i found dirty solution and can cross-compile qt5-base without opengl, fontconfig, harfbuzz, icu. My current solution is enought for me to build cli-utility, but maybe it can be helpful to somebody as start point.
So what i did:

Built cross-toolchain: https://github.com/kafeg/dockerpi-toolchain
Patched vcpkg with this changes: https://github.com/ptyio/vcpkg/commits/ptyio (all mine commits at the top, most important in configure_qt.cmake, portfile.cmake and vcpkg.json)
Called vcpkg install qt5-base:arm-linux

And it works for me. I got armv6 vcpkg libraries set!
@Neumann-A hope it could help in the future investigating.

This is also on my wishlist, adding cross-compilation for ARM64 for Qt 5.15 would be really nice and another small step towards a more mature windows arm64 ecosystem.

Qt 5 doesn't require host Qt installation to exist, only Qt 6 does. But currently vcpkg builds both host and target variants which doesn't seem right.
Here's an example how to cross-compile Qt5-base x86_64 -> arm64 on a Mac that doesn't require editing any mkspecs:
/PATH/TO/QT_BASE/configure -device-option QMAKE_APPLE_DEVICE_ARCHS=arm64 <other options>

maybe the same would work on Windows.
Qt tools like qmake and moc are built for host and libs are built for target:
> lipo -info lib/libQt5Core.a
Non-fat file: lib/libQt5Core.a is architecture: arm64

> file bin/moc
bin/moc: Mach-O 64-bit executable x86_64

Qt 5 doesn't require host Qt installation to exist, only Qt 6 does.

Qt5 in vcpkg simply doesn't work like upstream.

This issue hasn’t been updated in 3 month, if it is still an issue, please reopen this issue.

Is there any progress with this? I found that the configure.bat script in upstream already supports build Qt5 for ARM64:
https://gist.github.com/tycho/3ce679850a03a39d8c174ac05af56214?permalink_comment_id=5068421#gistcomment-5068421

@Neumann-A Could you have any suggestions for cross-compilation of qt5-base under arm64?

Could you have any suggestions for cross-compilation of qt5-base under arm64?

Requires setting it up from the portfile for windows?

Any chance this is now fixed by https://github.com/microsoft/vcpkg/pull/35120 ?

Any chance this is now fixed by #41536 ?

That PR is for recognizing arm64 hosts. It is not helping with cross builds on x64 hosts.


label for=

This is a great library, thank you for making forms simple!
One thing that has come up is that the asHtml function doesn't add an id to the input nor a for attribute on the label. Could this be added in? Form.Base.TextField.Attributes seems to be the place to specify it.

Yes, I would like labels to focus inputs when clicked. Two reasons for this: (1) it's the norm for websites, and (2) it helps less precise cursor users (mobile).
I don't currently need anything other than a basic CRUD form for simple data entry and sought out the library to solve this. It does look like I can solve it with custom view but would add complexity where library defaults already does 99% of the work.
It might be better to use a for="id" and input id="id" where the id is specified in the Attributes (perhaps as a Maybe?) since this would keep the underlying HTML and CSS the same. I don't know what goals you have in mind for the default view though.

Yes, I would like labels to focus inputs when clicked. Two reasons for this: (1) it's the norm for websites, and (2) it helps less precise cursor users (mobile).

I understand, asHtml needs to fix this.

It might be better to use a for="id" and input id="id" where the id is specified in the Attributes (perhaps as a Maybe?) since this would keep the underlying HTML and CSS the same.

I want to avoid adding an id attribute to the API if possible. Forcing users to provide a unique identifier for each field would not be ideal. In the end, the id is an implementation detail to achieve this functionality.

I don't know what goals you have in mind for the default view though.

The default asHtml view function is meant to be used for very simple purposes. custom allows users to create a custom view function really easily.
I will go with the "input inside label" approach for the default asHtml view.


Per chunk ticking.

Thought i might add this as a progress report.

Currently I'm working on the ability to define groups, allowing you to set certain TE's/Entities to be given a different time slice, or making the not be slowed down at all.
For example, say you want to slow down Cows,Chickens and Pigs more than other Mobs, you will be able to do so.
I'm also working on adding the ability to time and limit per player.
Per chunk ticking I'm not entirely sure how to do yet, at least properly.

What would be nice is per entity/tile entity or per chunk so if one user on the server is doing some really bad stuff everyone else is not effected all his things are just slowed way down.

The only way that i could see something like that happening if you use some sort of permission system.  Be it kcauldron, forgeessentials or even SpongeAPI but that wouldn't be exactly dynamic.
You could (for example) define a permission node to have x amount of slices for that node.  Would be more ideal for say those users that help contribute towards the running costs of the server over those that just come on to play.


Switching between UAT and Production endpoints

Switching between UAT and Production endpoints can only be done at the moment by editing the core code directly.
Need a way to switch:
protected $endpoint = 'https://sec.paymentexpress.com/pxaccess/pxpay.aspx';
to
protected $endpoint = 'https://uat.paymentexpress.com/pxaccess/pxpay.aspx';

Hmm - most processors change endpoints depending on 'testMode' e.g from cybersource
public function getEndpoint()
{
    return $this->getTestMode() ? $this->testEndpoint : $this->liveEndpoint;
}

Can someone submit a PR for this? I don't have a PxPay account.

@delatbabel PR for this is merged


Help for experiments trained only on Vimeo

Hi, thanks for your code!
We are trying to build an unified benchmark of most of the SOTA VFI methods. For 2x VFI with four input frames, we see that the training set of FLAVR(https://github.com/tarun005/FLAVR) and VFIT(https://github.com/zhshi0816/Video-Frame-Interpolation-Transformer) are the pure Vimeo (septulets set), while, in ST-MFNet, it is a mixture of Vimeo(septulets set) and BVI. So we retrained the ST-MFNet on the pure Vimeo (septulets set). But, unfortunately the best PSNR we got on validation set of Vimeo (septulets set) is only 35.29, which is quite worse than the model released (36.49 on the same validation set). We think there must be some errors about the parameter settings, but we have tried a few weeks and got no improvement till now.
So, we are here to seek the help for the complement of our experiments.
Could you train your model on the pure Vimeo (septulets set) and release the model or evaluation results on Vimeo, UCF101, DAVIS and SNU-FILM(4 subsets).
Thanks!

Hi,
Thank you for your interest in our work. I will get started with the suggested training and get back to you as soon as I have the results. There might be delays though because I am working on another project at the moment.
Many thanks.

Thanks for your reply!

Hi, sorry for the delay. I've trained the model on vimeo septuplets training set for 60 epochs and it looks like training has plateaued. You can access the model from here. The PSNR on video-septuplets test split is 36.23dB.
Thanks again for your interest in our work.

Thanks for your timely help!


Pantheon 7 updates 2022-07-03

Description of changes
https://github.com/NixOS/nixpkgs/issues/170361
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

pantheon.switchboard-plug-wacom: 1.0.0 → 1.0.1

[ ] Update release.yml
[ ] l10n: Correctly setup the locales (#29)
[ ] Update io.elementary.switchboard.wacom.appdata.xml.in
[ ] README: Remove WIP (#28)
[ ] Release 1.0.1 (#32) Tagged: 1.0.1

pantheon.wingpanel-indicator-notifications: 6.0.4 → 6.0.5

[ ] Clear notifications faster (#242)
[ ] Load notifications without blocking (#241)
[ ] Release 6.0.5 (#247) Tagged: 6.0.5

@ofborg test pantheon

@ofborg test pantheon


Draftpunk w/ Amoeba Gem

Hi Steve,
I finally got time to try your gem, and after adding it to my project, now my app fails its tests regarding our duplicate methods. Could it be due to the fact your gem uses Amoeba gem too?

 So, if you're already using amoeba on those models, it's quite likely we'll see conflicts (or outright bizarre behavior). Out of curiousity, what amoeba configurations are you using on those models? I wonder if there are more options draft_punk should support which could be passed through to amoeba

It seems Amoeba overrides our configuration. The problem is that our structure and duplicate is quite special and complex. It fails validation when we use draftpunk at the moment.
One thing you could use is it Amoeba on the fly configuration. That would solve the problem that the "local amoeba configuration" still works.
Then to answer your question, we are using:

nullify 5 times

prepend 4 times

set 5 times

propagate 1 time

We have a unique attribute in every single model we need to set it to nil, so we use propagate coupled with nullify

include_association 2 times

exclude_association 4 times

recognize + exclude_association (different behaviour) 3 times

customize 1 time


Adding font suggestions

Addressing issue #21
Adding .png files to provide you with cartoonish font suggestions.
After you decide which font to use, I can integrate that font into your portfolio website.
Folder path - /public/fonts
To explore more fonts like these, visit https://www.fontfabric.com/display/

@Sukrittt Thank you for working on this issue. Can you add the fonts to some of the pages?

Sure, have you chosen any of the fonts I suggested?

Sure, have you chosen any of the fonts I suggested?

Not yet. I was hoping we use them each in different the pages and decide on which one to use.

Your name at the top can use a cartoonish font.
Everything else can be kept in the same font.

Your name at the top can use a cartoonish font.
Everything else can be kept in the same font.

I agree with you. The logo name should remain as it is.
But what I am saying is that you should try these fonts on different pages so we can see how they look.

Okay, I'll make changes in the fonts and make a pull request.

Hey,
I came across an issue while trying to make changes to the code in your GitHub repository. The problem is that the code was written on a different operating system and I am getting errors as a result.
If you could make the following changes to the App.css file or any other .css file, you can use this font-family:
@font-face {
  font-family: Muller-Next;
  src: url(../../public/MullerNextExpandedTrial-Regular.ttf);
}

/* Wherever you want to use this text */
body{
  font-family: Muller-Next;
}

Note: I have already added font-family Muller-Next .ttf  file in /public.

@Sukrittt Thank you for contributing to this project. With the fonts that was used before, a link was added to the public/index.html as you can see below.
https://github.com/Haywayaheadshot/abu-the-portfolio/blob/6cb0ae69d579026159975460355bc6d25ee9236b/public/index.html#L14-L17
And then I added a class that will call the font family so I can use them in the react components. Below is the class for the font-family.
https://github.com/Haywayaheadshot/abu-the-portfolio/blob/6cb0ae69d579026159975460355bc6d25ee9236b/src/styles/index.css#L20-L22
Could you please use that approach or add the font to the index.css file?
It is easier and simpler to use these methods.

Indeed, that approach appears feasible. However, as previously mentioned, I am unable to modify the code due to the fact that it was created on a different operating system and is causing compilation errors on my current system.

@Sukrittt I am sorry about your predicament. I will go ahead and finish the task. Thank you for your contribution.


Copy-CSShadowCopyItem

This doesn't work running as admin on win10, localhost, for me. Trying to grab the AmCache for some other testing. Also, what's the point of this error?
If I step through the code in ISE, it does work... wtf smalls? (Maybe there's a race condition where the shadowcopy is getting deleted before the file is copied.)

Hey smalls. :P
Sorry. I'm going to close this. The decision was made to not include and functions in CIMSweep that alter system state.


Update CHANGELOG for v0.9.2 release

Codecov Report

Merging #1178 into master will increase coverage by 8.60%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1178      +/-   ##
==========================================
+ Coverage   31.23%   39.83%   +8.60%
==========================================
  Files         105       75      -30
  Lines        9863    10919    +1056
==========================================
+ Hits         3081     4350    +1269
+ Misses       6489     6213     -276
- Partials      293      356      +63

Flag
Coverage Δ

#integration-tests
?

#unit-tests
39.83% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

 Why would this PR increase coverage by 12%?

/skip-all

@weiqiangt the reported coverage numbers here are strange. Why would this PR increase coverage by 12%?

The base b2af9f4d3856fed070c6528d6dee84e78ed12c10 of this PR only contains integration test data.
If this phenomenon occurs frequently in the future, I think we can let the check failed if the coverage statistic failed.
For now, I can only see the base one is abnormal.


add the whole_rings filter to defaults

also fixed up whole_rings_only filter

Hello @richardjgowers! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file src/kartograf/atom_mapper.py:

Line 290:80: E501 line too long (87 > 79 characters)
Line 341:80: E501 line too long (86 > 79 characters)
Line 615:80: E501 line too long (91 > 79 characters)
Line 616:80: E501 line too long (83 > 79 characters)
Line 649:37: E225 missing whitespace around operator
Line 649:41: E701 multiple statements on one line (colon)
Line 649:80: E501 line too long (89 > 79 characters)
Line 695:37: E225 missing whitespace around operator
Line 695:41: E701 multiple statements on one line (colon)
Line 695:80: E501 line too long (110 > 79 characters)

In the file src/kartograf/filters/ring_changes.py:

Line 84:80: E501 line too long (84 > 79 characters)


Request: Remove "Listen for events" notification

This notification is completely useless. You don't need a persistent notification for a service.
I used to hide it by setting the priority to 0 and then back up to normal, but now you deny this too. This is simply disrespectful of the user and should be rectified as soon as possible.

Here's my version with a switch to turn it off https://github.com/adolfintel/riot-android as suggested in #1058
It's very rough at the moment. I'll try to integrate it properly and send you a PR.


lsdj-wavetable-import: accept synth, wave index in decimal

accepting decimal index will allow for better batch processing with for-loops

to clarify: if possible, accept both/either 0-F or 0-15 as input

There's now a -d/--decimal flag that interprets the synth/index as decimal instead of hex


add missing toc

:warning: Validation status: warnings

File
Status
Preview URL
Details

api/TOC.md
:warning:Warning
View
Details

api/TOC.md

[Warning] Invalid file link:(~/excel/Concep../Language-specific-properties-methods-and-functions.md).
[Warning] Invalid file link:(~/api/overview/Library-Referen../Languagesettings-members-office.md).
[Warning] Invalid file link:(~/powerpoint/Concep../Language-specific-properties-and-methods-powerpoint.md).
[Warning] Invalid file link:(~/Language/Reference/User-Interface-He../Language-region-setting-has-changed.md).
[Warning] Invalid file link:(~/api/overview/Library-Referen../Languagesettings-properties-office.md).

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

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

api/TOC.md
:white_check_mark:Succeeded
View

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

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

api/TOC.md
:white_check_mark:Succeeded
View

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


From linkml to schemapack

This PR includes scripts and files to convert ghga-metadata-model from its LinkML representation to SchemaPack definition.
The bash script migrate_to_schemapack.sh calls the scripts in the required order and cleans up the repository from LinkML-related files and folders.

I updated the branch based on the ghga-metadata-schema (on linkml) changes. I introduced a new condition to  extract_relationships.py script to prevent the script from interpreting two specific fields as a relationship. The explanation is also provided in the function definition of slots_with_class_range,


patch mac bundle differently

Description
Patch mac bundle without using sudo. I tested fix version 1 (sudo) and this one, and I found this patch is more consistent in addressing the issue and does not require sudo. I made a comment on the dmgbuild issue, will let the owner decide whether this should be added to dmgbuild or not. It is tricky because the sleep is 30 seconds long, which could be too long for many people.
what it does: it adds a sleep of 30 second BEFORE first attempt to detach the disk, I confirmed that once the first attempt is made, the disk management pretty much hang and is unlikely to respond again, therefore the sleep and try later has little chance in working again
ps.: disabling mds on build machine also have a positive impact, but in my testing it is not sufficient alone without the sleep, I inspected lsof on the volume but there is nothing after mds is disabled. If the issue persist, disable mds via
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Type of change

[X] Bug-fix (non-breaking change which fixes an issue)

References
closes #1611
https://github.com/napari/napari/pull/1844
https://github.com/al45tair/dmgbuild/issues/26
How has this been tested?

manually tested on pipeline

Final checklist:

[X] My PR is the minimum possible work for the desired functionality
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] I have added tests that prove my fix is effective or that my feature works

a bit more details of my version 2 investigation: I paused the pipeline before briefcase package, and tried to do it from inside the machine to visually see the state of the vm, very interestingly and bizarrely, briefcase runs perfectly fine, and very performant in fact, when run via terminal inside the build vm, disk util reports no glitch during the detach, and everything seems to be working exactly as expected. Then I let the pipeline continue to run the exact same command, then all weirdness happens, the command seems to be slow and umount hang most of the times without the patch. I discovered that adding a sleep before detach fixes this issue when I further decompose the build process and try to figure out what part of dmgbuild is behaving differently. However, being completely honest I cannot explain why this patch works either. I have disabled mds on my build machine and kept an eye on the volume, there is no process reported to be interacting with this volume per lsof, compared with before mds was doing something before I disabled it.
I am very sorry about these "possible fix" without rationale putting to everyone to review as this issue seems like a rare race condition somewhere in disk/volume management in macos... I usually hate to write this level of detail but I am hoping someone could maybe smell something off and discover more without having to redo my exploring

separate to the build issue, I am struggling to start the bundled app on my mac: in the bundled app it uses Support/bin/python3, however most resources, including pyside2-rcc is in app_packages/bin/, I tweaked the build_icons.py to read from that location, and managed to get the app to work on the build machine. However when I try that on my own macbook, it wont start complaining the file is not found, however, the file was there and permission seems to be granted to everyone to execute.
can someone verify the bundle works / not working for them? the latest bundle working for me is 0.3.8rc2

I usually hate to write this level of detail but I am hoping someone could maybe smell something off and discover more without having to redo my exploring

I love it!!! Very helpful for the rest of the community

can someone verify the bundle works / not working for them? the latest bundle working for me is 0.3.8rc2, if this is a confirmed issue I will create another issue tracking this

hmm ok, this is worth following up on! maybe @GenevieveBuckley or @tlambert03 can try building too (see https://github.com/napari/napari/pull/1848#issuecomment-723513546)
I will merge this now and try to trigger a rebuild

Looks like mac and windows bundles built, which is great! But there are so many other errors that I'm not sure https://github.com/napari/napari/actions/runs/351831998
@ziyangczi it might be worth as a next step making a PR to build tags of the form X.Y.ZaW, where X, Y, Z, and W are numbers and a stands for alpha, build properly without requiring any release notes or pushing anything to pypi. Thoughts @jni?

@ziyangczi should also be able to tag commits in a PR in his own personal fork to test this (that’s what I did when I was creating the workflow originally).  That way we don’t need to make confusing tags in the main repo


Update AudioPlayer.svelte: fix: begin playing sound again on ended

Bug: on:ended the time was set to 0 but after the audio/video ends the audio/video is paused automatically.
Fix: on:ended the audio/video needs to be unpaused again.

// for showcase it could also be, but the time is set to beginning automatically when audio is unpaused after it ended
time = 0;
paused = false;

Thank you but this isn't desirable behaviour. If you want audio to loop, using the loop attribute, don't use JavaScript


Stability mechanism hardening

I've been doing some reading on the stability-based histogram measurement.
https://privacytools.seas.harvard.edu/files/privacytools/files/complexityprivacy_1.pdf#page=24

The paper is written such that q(x) = sum(q(x_i)) / n, as in, q is not a count, it is a linear query. Therefore the scale and threshold are off by a factor of 1/n.
From page 13 "Variants of the definition and notation." The stability mechanism is expects ordered data. We don't currently have a way to distinguish between ordered and unordered data. I'm hesitant to call this an issue, because the HashMap ordering itself is random (albeit not with secure noise).
The thresholding part of the proof assumes Hamming distance d_in = 1. Therefore modifying an input can change two bins. If I'm understanding the proof correctly, I think the magic 2 constant in the thresholding ln should actually be dataset distance. The aggregator would either need to emit a 2-parameter distance consisting of sensitivity and dataset distance, or be fused with the stability measurement.
The overall proof is a basic composition of the noise addition and thresholding. This means the calibration of gaussian noise is more nuanced than I accounted for. It should be calibrated similar to the gaussian mechanism, and any delta consumed while noising should eat into the delta budgeted for thresholding.

I put together an initial proof for a threshold for 3:
Consider any x, x' \in C^n such that d_{sym}(x, x') <= k. C is any arbitrary set of categories.
The query q(x) computes a vector of counts of each category in C. Then the sensitivity on the query q in p-space is \Delta_p = ||q(x) - q(x')||_p = k * 2^(1/p - 1). This simplifies to \Delta_1 = k, and \Delta_2 = k / sqrt(2). The noise scale for the laplace is then just k / \epsilon.
If C is private, then we don't release counts for zero queries, and we must censor any categories where counts on neighboring datasets may be zero. Therefore, the count must be at least k/2 (in the worst case, if all edits were made to one category), plus an additional term to account for the right tail of the noise distribution (if a large positive noise was added). This extra term accounts for the probability that a category with a zero-count neighboring dataset is still included in the release due to the noise. This probability should be no greater than delta/k, because in the worst case, up to k different categories could be adjusted in a neighboring dataset.
To compute this bound, we need a value t such that the area of the integral of the noise distribution from t to infinity is delta/k. This value t for the laplace distribution is ln(k/(2 * delta)) * \Delta_1 / \epsilon. I think the reason why I have an extra 2 is because the paper probably integrated the absolute value of the laplace, whereas I integrated the right tail. I don't see why the paper would consider large negative noise values. Otherwise, this is equivalent to the paper when k = 2 (one edit).
Putting this together, the threshold is k / 2 + ln(k/(2*delta)) * \Delta_1 / \epsilon with noise scale \Delta_1 / \epsilon.


v22.46.0 & v22.20.0 not working with TBeam v1.0 on 33cm

I tried updating my TBeams today and discovered an odd behavior .
I have two pairs of TBeams:  One pair on 70cm and another pair on 33cm:
I-Gate v22.14.0 and Tracker v22.19.0  -  Everything works fine on both pairs.
Updated both pairs to:
I-Gate v22.46.0  -  33cm doesn't working
-  70cm works fine
Downgraded the I-Gate on the 33cm I-Gate back to v22.14.0 - Works fine.
Updated the I-Gate to v22.20.0 - Doesn't work.
Again, downgraded the I-Gate on the 33cm back to v22.14.0 - Works fine.
This is the problem I am seeing.  The I-Gate doesn't receive the Tracker's beacons.  I am using the exact same JSON configuration across the different versions.  The I-Gate will log on to the APRS servers and report it's status.
During the upgrade/downgrade process.  I 'erased flash' and 'clean' the build.  I also removed the battery and USB power to ensure I was starting with a completely blank TBeam.

I set my frequency to 915.775Mhz.  As far as the config. Everything is the
same as 70cm.  I wanted to keep it simple for converting from one band to
another.
Good luck!!  73
On Mon, Jul 29, 2024, 3:38 PM Ken Chilton @.***> wrote:

Hi Doug,
I have an iGate/Digi up for LoRa APRS on 70cm to complement 2m and am just
starting to set up for 33cm. I saw you have a couple nodes up already
advertising 33cm operation. There seems to be some consensus for 70cm LoRa
APRS, but I did not see any clear standards for 33cm except to copy the
non-ham stuff. What frequency and LoRa config are you running? Although our
coverage is far apart, maybe if we follow/create a standard, anyone in
between can follow suit.
Once I get this up on the Heltec, I will try the TBeam. I already have
APRS loaded on a T-Echo, but won't know if it is working right until I get
the next one loaded. I will let you (and Peter) know if I find any bugs.
73 de W1OT
—
Reply to this email directly, view it on GitHub
https://github.com/lora-aprs/LoRa_APRS_iGate/issues/228#issuecomment-2256754744,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AX7AIB56HRYX2AXEROY6FW3ZO2K3NAVCNFSM6AAAAABLU5JZDGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJWG42TINZUGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


Cleanup events handler

Renamed Events() to RegisterEventHandler() in Engine.
Added RegisterEventHandler() to the Cluster interface.
Removed EventHandler requirement from swarm's Cluster constructor.
Make API's events handler private.

Signed-off-by: Andrea Luzzardi<EMAIL_ADDRESS>

/cc @vieux @abronan

LGTM

Coverage decreased (-0.18%) to 39.43% when pulling 442217d6dcaa91c91bf4fcea015222b29299b764 on aluzzardi:events-cleanup into 35c6eec263595a20c3315760df14fafd691a0b31 on docker:master.

LGTM


Add 300ms sleep before calling apk.start.

Adding a short delay here appears to fix #351 at least for my system.
First time contributing, so please let me know if there are other conventions I should follow.
Thanks!

The commit seems empty, though I don't think adding a 300ms delay to fix a race condition is a proper way to fix these things.

The app is started with am start -W which should guarantee that is has started? If that isn't the case we might want to spinloop on pidof until a given timeout - let's check how ndk-gdb does it instead of hand-rolling our own solution (300ms is after all very long and arbitrary).

One thing that occurred to me - we don't strictly need the PID, it's just to output the logcat results. If we can wrangle logcat to filter based on activity name we might also be fine (though - we may also introduce problems if we have multiple of the same activities running).

@Jasper-Bekkers It doesn't seem like the logcat buffer includes the package name (or activity name), there's only log tags which are application-defined and impossible for us to guess (set to RustStdoutStderr for the forwarding code in ndk-glue, and our own application uses module names through the log facade).
All apps run under a unique user (UID), and that's included in the logcat buffer. Our app tends to switch UIDs though (perhaps because it is being reinstalled, e.g. when switching debug signatures) but at least logcat --uid supports a comma-separated list. We just need a clean way to process pm dump rust.<appname>.
Alas, Google has already solved this problem for Android Studio - we just have to look up how they solve this problem instead of reinventing the wheel.

Sorry for the empty commit- I believe it's resolved now.  Thanks for being patient!
I'd agree a more proper solution is warranted here, though I'm somewhat unfamiliar with the rust (and android-rust) ecosystem, so I'd appreciate some guidance along the way.
For reference, this is how Google achieves this in their bazel tooling, which I would presume could be considered close to if not the "gold standard" for Android deployment (this is likely similar or the same as is done internally): https://github.com/bazelbuild/bazel/blob/f65a0d6a87619022de5a6a28ddd7a30ea3cf3186/tools/android/incremental_install.py#L785-L788

@jingchan Are you sure this change change solves the problem? You inserted the timeout in between apk.install() and apk.start(), meaning that the Activity won't get launched (but the install might start up the process) before the timeout.
Instead, should the timeout reside in between am start -W and pidof? In #351 you mention "Appears to be a race condition where apk.start is called before the system is ready to start the app and return a PID" yet the logs seem to indicate that the activity was started successfully - which is strange given that it should be running after that, thanks to -W.
Do you think the installation/app-replacement is still running in the background at that point, causing am start to start an older instance of the Activity which is killed pretty much immediately after, when the installation completes?

Alas, the Bazel build script doesn't seem to wait for the activity to start nor tries to acquire a PID, so it's different.
For testing, can you test if the Activity always launches correctly after commenting out the pidof and logcat invocations? I'm curious if the app doesn't start at all in your case (as this always worked before, AFAIK) or if it's merely an issue with the freshly-added pidof+logcat logic.
In other words, even if cargo apk run fails on Error: String `` is not a PID, is the app still launched?

Closing for not seeing any followup on the questions and suggestions posed above. Besides, the cargo-apk portion of this repo migrated to https://github.com/rust-mobile/cargo-apk :tada:


Table prefix giving errors and possible fix suggested

The "mergeQueries"-function calls $this->getTable() in a DB::raw() and thereby ignoring any check whether a table prefix is in use. This causes error messages on queries on "products"-table with prefix "qs_" like:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'qs_products.account_id' in 'where clause' (SQL: select count() as aggregate from (select qs_products., (case when LOWER(brand) LIKE xyz then 150 else 0 end) + (case when LOWER(brand) LIKE xyz% then 50 else 0 end) + (case when LOWER(brand) LIKE %xyz% then 10 else 0 end) + (case when LOWER(description) LIKE xyz then 300 else 0 end) + (case when LOWER(description) LIKE xyz% then 100 else 0 end) + (case when LOWER(description) LIKE %xyz% then 20 else 0 end) as relevance from qs_products where qs_products.account_id = 30 and shop_id in (33) group by qs_products.id having relevance > 7.50 order by relevance desc) as products where qs_products.account_id = 30)
Where:
"relevancedesc) as products whereqs_products.account_id` = 30 "
Should be:
"relevancedesc) as qs_products whereqs_products.account_id` = 30 "
Introducing $tableNameRaw and changing the "mergeQueries"-function to the code below solves my issues (in Laravel 4.2):
protected function mergeQueries(Builder $clone, Builder $original) {
$tableNameRaw = DB::getQueryGrammar()->wrapTable($this->getTable());
    $original->from(DB::raw("({$clone->toSql()}) as {$tableNameRaw}"));
    $original->mergeBindings($clone->getQuery());
}

Used the code suggestion from Christian Mayer:
http://blog.fox21.at/2015/05/06/laravel-5-usage-of-table-names-in-raw-mysql-queries.html

database.php mysql  strict => false


gofmt() fails, goimport() works

After updating to a9b6697, (I think I was on 2371bf4 previously), I see the following when my BufWritePre autocommand calls gofmt()
Error detected while processing BufWritePre Autocommands for "*.go":
Error executing lua callback: ...ames/.local/share/nvim/plugged/go.nvim/lua/go/format.lua:30: attempt to call field 'format' (a nil value)
stack traceback:
        ...ames/.local/share/nvim/plugged/go.nvim/lua/go/format.lua:30: in function 'run'
        ...ames/.local/share/nvim/plugged/go.nvim/lua/go/format.lua:133: in function 'gofmt'

Running :lua require('go.format').gofmt() shows a similar error.
Manually running goimport() succeeds, as does updating my BufWritePre to call it.

If it helps, I have gofmt = 'gopls' in my setup call.

I think it is because you are on a neovim version older than 0.7.0. In which the vim.lsp.format is not supported.
The override is in lsp.lua. But for some reason, it was disabled in your setup.

Interesting, I am on 0.7.0.  Perhaps there is something wrong with my distro's package.  I poke around a bit when I have more time.

I was wrong...
In fact that should be a change for neovim 0.8.x instead of 0.7.x release. I updated the plugin and you should not see error now.

@jhillyerd
Could you check if it was fixed in the latest?

Let's see if I remember to do this tonight...

Yes, it's fixed.  Tested = 99674bb


ExportFinder > Cannot export twice

Hi! Amazing work on fastpack. It would be amazing if I could use it in production applications but my quite large codebase fails because of ExportFinder > Cannot export twice error. Some transpiled library in node_modules that's failing:
export * from './parser';
export function parse(input, opts) {
  // some impl
}

It turns out ./parser export parser as well as this module.
Why it's an issue with fastpack while webpack or parcel can handle such case?

Ran into the exact same issue with fastpack and react-intl's dependency on intl-messageformat-parser. I've created an issue to see if they're willing to resolve it on their end.


Added iOS GHA pipeline

@edgchen1 There was #964 but it's blocked by the shutdown issue and not ready at this moment. In the future I would like to see it revived and added to this CI pipeline.
In our release pipeline, the CocoaPods tests added in #709 will make sure the basic functionality works.


Issue #20: Add compatibility for Starfinder game system.

As a contributor to the Starfinder system I too wanted to have Polyglot working with Starfinder, so I've added it and then discovered there was an issue for it. :-)
It was a very easy addition, I tested it and it worked like a charm! I love this module. 👍

The default language in Starfinder should be common, so I left that behaviour intact.

Easy addition indeed!
Thanks for testing it and sending the PR! :)


Parallel classes runs methods from one class in different threads, interleaves two classes in one thread

I have a TestNG suite which runs classes in parallel.
I have encountered failures because test methods which have dependencies ran in different threads.
I created a minimum reproduceable test case.
My Test classes extend an abstract test class. I don't know if this is related to the problem.
I attached a zip file with the Java source, Test.xml and pom.xml
parallelClasses.zip
EXPECTED:
FirstTest.testTwo should run in thread 11. I expect all test methods from one class to run in the same thread.
ThirdTest.test3a should run after SecondTest class finishes. I expect all test methods in a class to run before another class starts running in the same thread.
ACTUAL:
`[TestNG] Running:
C:\Users\mbullock\workspace\Test\Test.xml
thread 11  STARTING METHOD=FirstTest.testOne
thread 12  STARTING METHOD=SecondTest.test2a
thread 12  STARTING METHOD=ThirdTest.test3a
thread 12  STARTING METHOD=SecondTest.test2b
thread 11  STARTING METHOD=ThirdTest.test3b
thread 12  STARTING METHOD=FirstTest.testTwo
===============================================
Critical
Total tests run: 6, Failures: 0, Skips: 0
===============================================`

+1

There is a Test annotation parameter : singleThreaded
http://testng.org/doc/documentation-main.html#annotations
Will it solve the issue?

Added the following annotation to all three classes plus the abstract class.
@Test(singleThreaded=true)
It doesn't solve the problem.

I also tested making the base class concrete and making the Test classes not extend a class.
The problem still exists in both cases.

Looks similar to #89


Native automation mode hangs when visiting certain areas of web app

What is your Scenario?
I am currently investigating the potential enablement of Native Automation mode for my teams suite of tests to increase their speed.  Have come across a blocker on certain parts of the web application when using native mode, attached is a snippet that replicates the issue.
What is the Current behavior?
It seems that when visiting certain parts of the application (in this case login) with native automation mode enabled TestCafe hangs, eventually throwing an error.
What is the Expected behavior?
TestCafe to continue running and tests to pass as normal. (Our suite runs fine with native automation disabled)
What is your public website URL? (or attach your complete example)
https://www.economist.com/
What is your TestCafe test code?
import { Selector } from 'testcafe';

const logIntoYourAccount = Selector('div').withText('Log into your account').nth(2);

fixture`Example`
    .page`https://www.economist.com/`;

test('go to login page', async t => {
    await t.navigateTo('https://myaccount.economist.com/s/login/')
    await t.expect(logIntoYourAccount.exists).ok();
});

Your complete configuration file
No response
Your complete test report
No response
Screenshots

Steps to Reproduce

testcafe chrome test.js --native-automation
notice that page hangs and test fails
testcafe chrome test.js
notice that test passes with native automation not running

TestCafe version
2.5.1-rc.1
Node.js version
v16.20.0
Command-line arguments
testcafe chrome test.js --native-automation
testcafe chrome test.js
Browser name(s) and version(s)
Chrome
Platform(s) and version(s)
macOS
Other
No response

Hi @tgrisley
Thank you for the shared example. I've reproduced the issue.

Duplicate of https://github.com/DevExpress/testcafe/issues/7664


The activity function 'StoreMessageActivity' failed:

Dear team,
I get this error:
Failed to prepare the message for sending: The activity function 'StoreMessageActivity' failed: "Invalid URI: The hostname could not be parsed.". See the function execution logs for additional details.
do you know anything about it?
version 5
Kind regards,
Alexander

Hi @acanton5,
Thank you for raising the query, issue seems to be in your xxxx-prep-function, please check your configuration in the prep function to make sure the URI's updated are correct, if so you can check the logs in Application insights for more information.

Hello,
you mean here? I don't see any URI value. Just KeyVault:Url.

Hello @Porkai-Pandian can you help here?

Worked over the call with customer and issue is resolved as confirmed with customer, hence closing the issue


Check newer version

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (baf84ec) 91.34% compared to head (af9c393) 91.34%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #27   +/-   ##
=======================================
  Coverage   91.34%   91.34%
=======================================
  Files          52       52
  Lines        2033     2033
  Branches      224      224
=======================================
  Hits         1857     1857
  Misses        174      174
  Partials        2        2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


☆(𝚉𝚆𝚊𝚝𝚌𝚑≦𝚅𝙸𝙳𝙴𝙾𝚂•FULL) One Girl One Frog Viral ᴠɪᴅᴇᴏ ʟᴇᴀᴋᴇᴅ Now Trending On Social Media X Twitter #153

10 sec ago One Girl One Frog ʟᴇᴀᴋᴇᴅ ᴠɪᴅᴇᴏ Viral On Social Media. ☆(𝚉𝚆𝚊𝚝𝚌𝚑≦𝚅𝙸𝙳𝙴𝙾𝚂•FULL) One Girl One Frog Viral ᴠɪᴅᴇᴏ ʟᴇᴀᴋᴇᴅ Now Trending On Social Media X Twitter #153
𝖶𝖺𝗍𝖼𝗁 🟢 ➤ ➤ ➤ 🌐 𝖢𝗅𝗂𝖼𝗄 𝖧𝖾𝗋𝖾 𝖳𝗈 𝗅𝗂𝗇𝗄 (𝖥𝗎𝗅𝗅 𝖵𝗂𝗋𝖺𝗅 𝖵𝗂𝖽𝖾𝗈 𝖫𝗂𝗇𝗄)
🔴 ➤►𝖣𝖮𝖶𝖭𝖫𝖮𝖠𝖣👉👉 (𝖥𝗎𝗅𝗅 𝖵𝗂𝗋𝖺𝗅 𝖵𝗂𝖽𝖾𝗈 𝖫𝗂𝗇𝗄) 𝖶𝖺𝗍𝖼𝗁
🟢 ➤ ➤ ➤ 🌐 𝖢𝗅𝗂𝖼𝗄 𝖧𝖾𝗋𝖾 𝖳𝗈 𝗅𝗂𝗇𝗄 (𝖥𝗎𝗅𝗅 𝖵𝗂𝗋𝖺𝗅 𝖵𝗂𝖽𝖾𝗈 𝖫𝗂𝗇𝗄)
🔴 ➤►𝖣𝖮𝖶𝖭𝖫𝖮𝖠𝖣👉👉 (𝖥𝗎𝗅𝗅 𝖵𝗂𝗋𝖺𝗅 𝖵𝗂𝖽𝖾𝗈 𝖫𝗂𝗇𝗄)
One Girl One Frog's latest video has taken the internet by storm, sparking lively discussions across various social media platforms. The rising digital influencer, known for her captivating content—particularly her recent Spiderman-themed video—has experienced a tremendous surge in popularity, with fans eagerly awaiting the full version. Audiences are flocking to Instagram, X (formerly Twitter), and Discord to join the conversation and engage with her latest creation.
As the excitement continues to build, fans are actively sharing their thoughts online, underscoring the pivotal role social media plays in propelling creators like One Girl One Frog into the limelight. With her distinctive style and creative approach, Nila has made a significant impact on the digital scene, leaving her audience eager to see what she will do next.  The rising digital influencer, known for her captivating content—particularly her recent Spiderman-themed video—has experienced a tremendous surge in popularity, with fans eagerly awaiting the full version. Audiences are flocking to Instagram, X (formerly Twitter), and Discord to join the conversation and engage with her latest creation.
As the excitement continues to build, fans are actively sharing their thoughts online, underscoring the pivotal role social media plays in propelling creators like One Girl One Frog into the limelight. With her distinctive style and creative approach, Nila has made a significant impact on the digital scene, leaving her audience eager to see what she will do next.


Issue/4683 force state

Description

Short description here *

closes #4683
Self Check:
Strike through any lines that are not applicable (~~line~~) then check the box

[x] Attached issue to pull request
[x] Changelog entry
[x] Code is clear and sufficiently documented
[x] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )

ci closed previous PR as they were attached to the export-bar and I missed it

I rerun jenkins omitting e2e as was mentioned on stand-up, results from previous run are shown below

Processing this pull request

Merged into branches iso6, master in 6c2c63f9683ab988aebf7065594cf4a60fc27225


Add mongoose alias prop

I added the alias property to the prop annotator.
https://github.com/szokodiakos/typegoose/issues/166

Coverage remained the same at 91.228% when pulling fbe93456f5ed26cbc866b30591f2ea531399b3da on jinxcifer:add-alias-prop into 287a209ef7d80ccef3ba2866d707d57165caf64e on szokodiakos:master.

this can be closed in favor of #349
@Ben305


ForeignKeyCascadeChecker default mapping

Hey @djezzzl I believe that the mapping here https://github.com/djezzzl/database_consistency/blob/a2be80b47fc9cc165c302cf2da60a03a5dfd473d/lib/database_consistency/checkers/association_checkers/foreign_key_cascade_checker.rb#L20-L21 is not entirely correct.
Accordingly to https://stackoverflow.com/questions/60043008/when-to-use-nothing-or-restrict-for-on-delete-with-ecto the default NO ACTION value also raises an error, it is just deferred. But for this purpose it would be perfect to have something like:
      OPTION_TO_CASCADE = {
        delete: :cascade,
        delete_all: :cascade,
        nullify: :nullify,
        restrict_with_exception: [nil, :restrict],
        restrict_with_error: [nil, :restrict]
      }.freeze

WDYT?

Hi @pyromaniac,
Yes, it seems you're correct. Thank you for sharing this! Would you like to make a PR for that?

Yes, will do soon


Old fields with colons in API ID path not supported

The tool generates invalid syntax when the Prismic repository contains invalid API ID Paths.
Historically, it was possible to create a field with the API ID Path including colon characters, e.g. general::banners.
(The project I am working on has many, many legacy fields using this syntax, for better or worse. Updating them all is not viable, as it would require broad code changes.)
Versions

prismic-ts-codegen: 0.1.5
node: 18.14.1

Reproduction

It is no longer possible to create fields with : in the name anymore, so a new test case cannot be produced.
Steps to reproduce

Start with an old prismic repository, containing models with fields whose API ID contain colon characters, e.g. general::banners
Setup the code generation according to the documentation, using PRISMIC_CUSTOM_TYPES_API_TOKEN to generate from the repository
Run the cli tool

What is expected?
Valid TypeScript type defintiions, where fields containing colons are escaped as strings, e.g.
"general::banners": prismicT.GroupField<Simplify<GlobalContentDocumentDataGeneralBannersItem>>;

What is actually happening?
Invalid syntax is generated, as these keys are not safely escaped.
/**
 * Visible banners field in *Global Content*
 *
 * - **Field Type**: Group
 * - **Placeholder**: *None*
 * - **API ID Path**: global_content."general::banners"[]
 * - **Tab**: General
 * - **Documentation**: https://prismic.io/docs/core-concepts/group
 *
 */
general: ;
banners: prismicT.GroupField<Simplify<GlobalContentDocumentDataGeneralBannersItem>>;

Thank you for the report and PR, @SudoCat!
This bug is fixed in v0.1.6.


Invalid Signature for plugin (widewine)

Hi, I package and sign my app using this commands
electron-packager . 'My app name' --out ./dist --tmpdir=false --platform=mas --version=0.35.6 --arch=x64 --overwrite --icon=./src/assets/images/icon.icns --app-version=1.0.0 --build-version=1.0.202 --app-bundle-id=com.xxxx.myapp --helper-bundle-id=com.xxxx.myapp.helper
electron-osx-sign './dist/myapp.app' --provisioning-profile=my.provisionprofile --app-version=1.0.0 --build-version=1.0.202 --identity 'my identity' --platform=mas --type=distribution --entitlements='parent.plist' --entitlements-inherit='child.plist' --arch=x64 --version=0.35.6
electron-osx-flat './dist/myapp.app' --identity 'my identity' --platform=mas
My parent.plist content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.security.app-sandbox</key>
    <true/>
    <key>com.apple.security.network.client</key>
    <true/>
  </dict>
</plist>

My child.plist content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.security.app-sandbox</key>
    <true/>
  </dict>
</plist>

Everyhting works fine, I'm able to upload my .pkg file to the Itunes Store through applcaition loader.
However, after 5 minutes I receive an email with this error message:
Invalid Signature - The executable at path myapp.app/Contents/Resources/app/src/lib/widewine-cdm/<IP_ADDRESS>3/widevinecdmadapter.plugin has following signing error(s): code object is not signed at all In architecture: x86_64 . Refer to the Code Signing and Application Sandboxing Guide at http://developer.apple.com/library/mac/#documentation/Security/Conceptual/CodeSigningGuide/AboutCS/AboutCS.html and Technical Note 2206 at https://developer.apple.com/library/mac/technotes/tn2206/_index.html for more information.

@utiq Thanks for filing this issue! The current version of electron-osx-sign does not expect .plugin/.bundle as properties to codesign.
On that, a quickest fix I will recommend is to try the following command:
electron-osx-sign './dist/myapp.app' './dist/myapp.app/Contents/Resources/app/src/lib/widewine-cdm/<IP_ADDRESS>3/widevinecdmadapter.plugin'
    --provisioning-profile=my.provisionprofile
    --identity 'my identity'
    --platform=mas
    --type=distribution
    --entitlements='parent.plist'
    --entitlements-inherit='child.plist'
    --version=0.35.6

I've removed --app-version, --build-version and --arch since electron-osx-sign does not use these options. Additionally, the child.plist file should contain com.apple.security.inherit; however, this entry is included by default in default.entitlements.mas.inherit.plist.

Also, I can help debug the process if you don't mind posting the debug log printed with export DEBUG=electron-osx-sign* (with the asterisk) before calling electron-osx-sign. 😸

Additionally, we can open a PR on including signing .plugin & .bundle. It's actually my first time seeing this issue.

Thanks for your answer and detailed instructions Zhuo, I followed them and I could sign the app successfully. However, when I open the app, it crashes. find attached the crash report, I don't know if that helps.
crash-report.txt
I'm trying to sign something like this, maybe it would help to have the source code.
https://github.com/lassebrenden/electron-netflix

@utiq it's actually my first time seeing an app hung at launch.
Since it's expected that the app should fail to launch after code signed for distribution, I would recommend getting the app running comfortably in sandbox first before delivering it for review so unexpected behaviors could be fixed locally.
electron-osx-sign './dist/myapp.app' './dist/myapp.app/Contents/Resources/app/src/lib/widewine-cdm/<IP_ADDRESS>3/widevinecdmadapter.plugin'
    --provisioning-profile=development.provisionprofile
    --identity 'my identity, the personal Mac Developer identity'
    --platform=mas
    --type=development
    --entitlements='parent.plist'
    --entitlements-inherit='child.plist'
    --version=0.35.6

Note that you may need to create a provisioning profile for development, similar to the one for distribution. Would you mind sharing a copy of the entitlements files so I can help check?

Oh and by the way, is Electron 0.35.6 the version you're using for packaging your app? This may change the way we codesign the app drastically.

Closing this issue for now since it's been inactive for quite a while.


Request: show in crash sample how to add customized data as soon as the crash occurs

I don't know if it's possible, but would be great to see how you suggest to add customized data that is most relevant in the time of the crash.
Currently, the only way to do this, that I know of, is by using setDefaultUncaughtExceptionHandler, as I did for Fabric Crashlytics :
    // init crashlytics:
    Fabric.with(application, new Crashlytics(), new Twitter(authConfig));
    // wrap the Crashlytics crash with on-time setting of data into its crash report :
    Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {
        final UncaughtExceptionHandler defaultHandler = Thread.getDefaultUncaughtExceptionHandler();

        @Override
        public void uncaughtException(final Thread th, final Throwable ex) {
            Crashlytics.setString(...);
            defaultHandler.uncaughtException(th, ex);
        }
    });

But if there is a better way, please put it in the sample.

Thanks! Check out this section in our docs :) https://firebase.google.com/docs/crashlytics/customize-crash-reports#add_custom_logs

@TKBurner I'm talking about Android, and I'm talking about adding customized data, and I'm talking about doing it when the crash occurs.
What you provided is none of those.

Please add this to your Android Manifest:
<meta-data android:name="firebase_crashlytics_collection_enabled" android:value="false" />
after that you can invoke Crashlytics the same way you did with Fabric and everything will work exactly the way it did before.

@TKBurner That's not what I asked about.
I asked if there is a nice API instead of the workaround I've presented here, and if so, show it in the sample.

@AndroidDeveloperLB just FYI that doc that @TKBurner linked tricked me too.  You have to scroll to the top and switch to the "Android" tab to see Android snippets.

The sdks are actually the same right now and there will be a seamless
process to migrate from fabric to firebase in the near future.
On Mon, Jun 18, 2018, 4:27 PM AndroidDeveloperLB<EMAIL_ADDRESS>wrote:

BTW, where can I ask questions?
I want to know what are the advantages of using the new SDK, compared to
the original Fabric Crashlytics SDK. I want to know if it's worth moving to
it, and if Fabric will continue to work and be maintained and updated...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/firebase/quickstart-android/issues/541#issuecomment-398184434,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AB5SJGo0F2kQD1Ve9aH7ASr1Keyut_olks5t-A0hgaJpZM4UrvlN
.

@TKBurner But will thing change? Will they stay the same? Will one stop being updated? What will happen?

Is it worth switching to Firebase Crashlytics?
Will it at some point be better than Fabric? Maybe Fabric will be deprecated?

@AndroidDeveloperLB in many cases yes, it's worth switching.  Firebase Crashlytics should have all of the features you already love, plus some new integrations like integration with Cloud Functions or Google Analytics for Firebase.  I'd say give it a try and let us know what you think!

I am closing this issue, even though it was a good discussion, since I don't think we will change the quickstart to show this feature.  The quickstart is supposed to be as bare-bones as possible and this is an advanced feature.

Can you please consider to add a second sample with this ? Or at least write about it in the docs as a tip?

@AndroidDeveloperLB I will see if we can add it to the docs, good idea!

Thank you. Maybe let it be open then?

@AndroidDeveloperLB I try to keep open issues here limited to things that can be fixed within the repo (or where this is the best place to debug them).  Same reason I close issues here as soon as we find the root cause to be outside the sample, even if they are Firebase SDK issues.  Hope that makes sense!

ok I hope you won't forget to add this tip somewhere.


CMS-257: Add fontawesome svg files

Jira Ticket:
CMS-257
Description:

Remove fontawesome js files
Add fontawesome svg files

Looks good! I'd love to hear if the size to download the app has changed now that it's only including a few icons

I noticed the size was a bit off after I downloaded it but I have no idea why ... 🙃


No footer in occurrence search

In the occurrence search view, the footer is missing. Some people found this very confusing.

Did they really find it "very confusing"?
I remember removing it explicitly, but I cannot remember why. I suspect it had to do with behaviour when scrolling the table and zooming the map.

Well... maybe it was just mildly confusing or strange, but it has been noted by several users.
Is there a reason not to show it? It doesn't take up space, since it's usually outside the visible area.

The reason is styling. It behaves odd because the widget has a height. The widget has a height because it makes it easier to control - similar to how a Google map have a height when you insert it on a page. The problem is that scrolling then becomes tricky. I haven't really figured out how to handle it well so I disabled the footer as the best/fastest solution. But you can just enable it. It is simply hidden. I've added it to your site.

Ah... I see.
Thanks!


[3.5] Linux IOError

Howdy, this issue is not present in 3.45.  In 3.5 when running commands in Ubuntu GNU/Linux I see abends with all commands.
$ ./gam.py info domain
Google Apps Domain: canonical.com
Traceback (most recent call last):
File "./gam.py", line 8189, in
doGetDomainInfo()
File "./gam.py", line 6294, in doGetDomainInfo
result = callGAPI(service=cd.users(), function=u'list', fields=u'users(customerId)', customer=customerId, sortOrder=u'DESCENDING')
File "./gam.py", line 379, in callGAPI
return method(**parameters).execute()
File "/home/joey/GAM-3.5/oauth2client/util.py", line 137, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/joey/GAM-3.5/googleapiclient/http.py", line 722, in execute
body=self.body, headers=self.headers)
File "/home/joey/GAM-3.5/oauth2client/util.py", line 137, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/joey/GAM-3.5/oauth2client/client.py", line 551, in new_request
redirections, connection_type)
File "/home/joey/GAM-3.5/httplib2/init.py", line 1608, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/home/joey/GAM-3.5/httplib2/init.py", line 1411, in _request
_updateCache(headers, response, content, self.cache, cachekey)
File "/home/joey/GAM-3.5/httplib2/init.py", line 448, in _updateCache
cache.set(cachekey, text)
File "/home/joey/GAM-3.5/httplib2/init.py", line 715, in set
f = file(cacheFullPath, "wb")
IOError: [Errno 36] File name too long: u'/home/joey/GAM-3.5/gamcache/www.googleapis.com,admin,directory,v1,users,customer=my_customer&fields=users%28customerId%29&alt=json&sortOrder=DESCENDING&prettyPrint=false,49ab63bcf113abad2621b2b9a5c62371'

Bump. Having the Exact same issue after syncing with master.
python gam.py info domain
Google Apps Domain: domain.com
Traceback (most recent call last):
  File "gam.py", line 8715, in <module>
    doGetDomainInfo()
  File "gam.py", line 1148, in doGetDomainInfo
    doGetInstanceInfo()
  File "gam.py", line 6705, in doGetInstanceInfo
    result = callGAPI(service=cd.users(), function=u'list', fields=u'users(customerId)', customer=customerId, maxResults=1)
  File "gam.py", line 343, in callGAPI
    return method(**parameters).execute()
  File "/home/USER/Documents/Repos/GAM/src/oauth2client/util.py", line 142, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/home/USER/Documents/Repos/GAM/src/googleapiclient/http.py", line 722, in execute
    body=self.body, headers=self.headers)
  File "/home/USER/Documents/Repos/GAM/src/oauth2client/client.py", line 589, in new_request
    redirections, connection_type)
  File "/home/USER/Documents/Repos/GAM/src/httplib2/__init__.py", line 1609, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/home/USER/Documents/Repos/GAM/src/httplib2/__init__.py", line 1412, in _request
    _updateCache(headers, response, content, self.cache, cachekey)
  File "/home/USER/Documents/Repos/GAM/src/httplib2/__init__.py", line 448, in _updateCache
    cache.set(cachekey, text)
  File "/home/USER/Documents/Repos/GAM/src/httplib2/__init__.py", line 715, in set
    f = file(cacheFullPath, "wb")
IOError: [Errno 36] File name too long: u'/home/USER/Documents/Repos/GAM/src/gamcache/www.googleapis.com,admin,directory,v1,users,customer=my_customer&fields=users%28customerId%29&alt=json&prettyPrint=false&maxResults=1,32CHARMD500000000000000000000000'

user% python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> len('/home/USER/Documents/Repos/GAM/src/gamcache/www.googleapis.com,admin,directory,v1,users,customer=my_customer&fields=users%28customerId%29&alt=json&prettyPrint=false&maxResults=1,32CHARMD500000000000000000000000')
210
>>>

Please close issue.
It is now resolved.


Remove or delete added themes

I'm always frustrated when I cannot delete or remove any of the themes I added to the Material Theme Builder plugin for Figma.
I would like a way to delete or remove themes I added to the Material Them Builder plugin for Figma.

At the moment themes can be deleted from the Figma styles (right panel). Next time the plugin is opened they will not show.
But, we do have an upcoming release that has rename and delete within the plugin.

Great! Thank you @margeeta. I appreciate the tip and look forward to the upcoming release!


cli updates

JOBBERGATE-CLI
Complete:

init jobbergate api 1 time (main.py)
Api Class (line 18) gets init in main() and assigned to **ctx.obj**  each function uses @click.pass_obj decorator to access it and the function is called with  resp = ctx.api.create_application(...)

create jobbergate_common for global. values values

create better jobbergate token caching
JOBBERGATE_USER_TOKEN_DIR = f"{str(Path.home())}/.local/cache/jobbergate-cli" in jobbergate_common and main() calls this function to create the dir if it does not exists (This was the recommended method in python 3.5+ over the standard "if not os.path.exists(...) way:

# create dir for token if it doesnt exist
Path(JOBBERGATE_USER_TOKEN_DIR).mkdir(parents=True, exist_ok=True)

* what if there are multiple users on the system?
* need to cache the token in ~/.local/cache/jobbergate-cli (JOBBERGATE_USER_TOKEN_DIR)
* check for ~/.local/cache/jobbergate-cli dir when the user first runs jobbergate-cli, create if not. exists

create the possibility for a jobbergate config file in ~/.local/cache/jobbergate-cli

users can optionally supply the file with configs to override jobbergate defaults

Not Complete yet

decorator wrapper for tabulate response

tabulate decorator added and tested

@stephenkeefauver looks clean - nice work!
👍


Do not suggest to open a function

For some reason ionide wants to open functions instead of only the namespace:

Repro:
open.zip

Fixed by dc55da6df24ff2f0961f55df8cdd2d2492cdf044


Fixed Typo in README

I noticed a typo in your README

Oops, accidentally did this on the mirror. I'll send an MR to the gitlab project instead.