buildOrder: make page render after all plugins are run

Enter your suggestions in details:
so the use case is like this
I want this:

normal HTML pages are rendered
resolve_urls rewrites the link
Atom feed file is generated by reading the HTML files

instead, I get this

normal HTML pages are rendered
Atom feed file is generated by reading the HTML files
resolve_urls rewrites the link

Do I need to write a plugin to deal with this use case?

The feed plugin fixes this problem, because you can add the feed plugin after other plugins.

The feed plugin fixes this problem, because you can add the feed plugin after other plugins.

Thanks. This should tell me how to write my own plugin.

@iacore Why do you want to write a Feed plugin?
If you're missing something from the existing one, maybe we can add it.

I have my own .tsx template.
Other than missing a feed plugin, I think I need a plugin that renders a page after all plugins are run.

Other than missing a feed plugin, I think I need a plugin that renders a page after all plugins are run.

@oscarotero how do I write a plugin like this? alternatively, should buildOrder affect plugins as well?

If I understand correctly, you want to create a page dynamically. One way to do that is with a processor:
import { Page } from "lume/core/file.ts";

site.process("*", (_, pages) => {
  const newPage = Page.create({
    url: "/new-page-url/",
    content: "Content of the page",
  });

  pages.push(newPage);
});

If you want to render the page like the rest of the pages (with the layouts, preprocessors, processors, etc), it's a bit tricky, because Lume is not prepared for that. Maybe you can use the renderPageOnDemand function from the renderer class. I didn't test it but perhaps this works:
import { Page } from "lume/core/file.ts";

site.process("*", async (_, pages) => {
  const newPage = Page.create({
    url: "/new-page-url/",
    layout: "main-layout.vto",
    title: "Page title",
    content: "Content of the page {{ title }}",
    templateEngine: [".vto"],
  });

  await site.renderer.renderPageOnDemand(newPage);

  pages.push(newPage);
});


change setup_dates method

set the initial cur_date value of setup_dates method to utc format so that it does not get thrown off by DST changes that occur in some locales.
Fixes #48

@coulson84 Hey, I have removed the moment.js dependency. Can you check if the problem still occurs, if yes you will have to update this PR

Closing PR due to inactivity. Re-open when ready.


Incorrect stock allocation when building new part

Describe the bug
Hi there,
I'm running into an issue in InvenTree - when building a new part / assembly, installing stock items in its BOM ends up clearing the inventory of those parts. The example below, using the InvenTree demo version, illustrates this.
Steps to Reproduce
Steps to reproduce the behavior:
First, we'll choose to make a widget assembly:

The following is its BOM (we'll be focusing on the M3x8 Torx):

We search for the part "Widget Assembly" in the upper right corner, and select it:

We then create a new stock item for it:

In the installed items tab, we then click the "Install Stock Items" option:

We select the M3x8 Torx, of which there are 485/560 available. We can confirm the available quantity by opening the part page in a new window:

We then install the part:

After reloading the M3x8 Torx page, though, we see that all the stock has been depleted, even though only 5 of the part was required (as seen in the BOM):

We also see that all the stock of the part is gone in the BOM:

Expected behavior
Only the amount of the installed item necessary for the assembly should be deducted - not the entire stock of that item.
Deployment Method

[x] Demo
[  ] Docker
[  ] Bare Metal

Version Information
[0.8.0 dev]

@palagap this is expected from my understanding of your steps.
You are installing the stockitem (containing however much instances of a part) into the assembly - if you want to allocate stock to a build according to the BOM this needs to be done in the allocation tab of the build.

@palagap yes this is "expected" behaviour - although the steps you are performing are not the intended way to install stock via a build order.
Manual installation of one stock item inside another stock item consumes the entire quantity of that stock item. Manual installation is not intended to be a normal workflow step.
You want to follow the allocation procedure outlined in the documentation. Here, you allocate stock as part of a build order and it uses the information contained in the Bill of Materials to determine the quantity of each stock item to be installed.

Got it, thank you for the clarifications @SchrodingersGat and @matmair.

@palagap if you have a suggestion for a short description we should add to the form I would be happy to add it.


crash with betterend origins

crash-2022-05-11_14.08.49-client.txt

Some Apotheosis mixins are very bad with compat, I’ll change them to use Injects in the next update.

Some Apotheosis mixins are very bad with compat; I’ll change them to use Injects in the next update.

thank you!i will install it first time

Fixed in v0.2.1


Older browser versions querySelector error

Issue Type

[x] Bug report
[ ] Feature request
[ ] Question / support request
[ ] Other

Description
On older chrome versions (tested on v86.0) and samsung internet browser (tested on v13), the following error was reported on sentry:
Failed to execute 'querySelector' on 'Element': ':is(img, svg, [role="img"], [data-zoom]):not([aria-hidden="true"])' is not a valid selector.

Hi @hhatakeyama, and thank you for opening your issue.
Chrome  86 looks like it came out over 2 years ago, and the global usage of it is very small. For Samsung browser v13, it is even less.
Before I go about making any changes, I have a few questions:

Can your Chrome browsers be updated?
For Chrome, it looks like it might work if a flag is enabled by the user. Can they do this? Support for :is() can be enabled with the Experimental Web Platform features flag
How critical is this tool for you? I am concerned that if you're supporting lots of old browsers, this may just be 1 of potentially a number of issues with using newer browser features. If it's blocking you, then could you have a conditional where you check for browser support for this :is and, if it's not supported, you only render a regular image?

Thanks for your time!

@hhatakeyama Ok, I will look into this.

I'm sorry I haven't circled back to this. Other things have taken priority. Is this still an issue for you, @hhatakeyama?

@pacocoursey @hhatakeyama Is this what that would basically look like?

let selector = `:is(img, svg, [role="img"], [data-zoom]):not([aria-hidden="true"])`

if (!CSS.supports(selector)) {
  selector = `img:not([aria-hidden="true"]), svg:not([aria-hidden="true"]), [data-zoom]:not([aria-hidden="true"])`
}

At which point maybe it's just better to do this...
const selector = ['img', 'svg', '[data-zoom]']
  .map(x => `${x}:not([aria-hidden="true"])`)
  .join(',')

document.querySelector(selector)

What do y'all think?

Can y'all please 🙏 try this fix out? npm i<EMAIL_ADDRESS>


Upgrade to 2.10.0: Unknown parameter in NetworkInterfaces

Required Info:

AWS ParallelCluster version [e.g. 2.9.0]: 2.10.0
Full cluster configuration without any credentials or personal data

[cluster default]
key_name = xxx
base_os = ubuntu1804
scheduler = slurm
master_instance_type = r5n.2xlarge
master_root_volume_size = 50
encrypted_ephemeral = true
vpc_settings = default
queue_settings = compute

[vpc default]
vpc_id = vpc-xxx
master_subnet_id = subnet-xxx
use_public_ips = false

[queue compute]
compute_type = spot
enable_efa = false
disable_hyperthreading = true
compute_resource_settings = r5n4

[compute_resource r5n4]
instance_type = r5n.4xlarge
min_count = 0
max_count = 32

Cluster name: slurm-bug
[Optional] Arn of the cluster CloudFormation main stack:

Bug description and how to reproduce:
Simply try to create a cluster with the above config. Fails with:
$ pcluster create -c cluster_bug.conf slurm-bug
Beginning cluster creation for cluster: slurm-bug
Unexpected error of type ParamValidationError: Parameter validation failed:
Unknown parameter in NetworkInterfaces[0]: "NetworkCardIndex", must be one of: AssociatePublicIpAddress, DeleteOnTermination, Description, DeviceIndex, Groups, Ipv6AddressCount, Ipv6Addresses, NetworkInterfaceId, PrivateIpAddress, PrivateIpAddresses, SecondaryPrivateIpAddressCount, SubnetId, AssociateCarrierIpAddress, InterfaceType
Traceback (most recent call last):
  File "/xxx/lib/python3.8/site-packages/pcluster/cli.py", line 467, in main
    args.func(args)
  File "/xxx/lib/python3.8/site-packages/pcluster/cli.py", line 38, in create
    pcluster.create(args)
  File "/xxx/lib/python3.8/site-packages/pcluster/commands.py", line 209, in create
    pcluster_config.validate()
  File "/xxx/lib/python3.8/site-packages/pcluster/config/pcluster_config.py", line 495, in validate
    self.__test_configuration()
  File "/xxx/lib/python3.8/site-packages/pcluster/config/pcluster_config.py", line 551, in __test_configuration
    self.cluster_model.test_configuration(self)
  File "/xxx/lib/python3.8/site-packages/pcluster/models/hit/hit_cluster_model.py", line 87, in test_configuration
    self._ec2_run_instance(
  File "/xxx/lib/python3.8/site-packages/pcluster/cluster_model.py", line 66, in _ec2_run_instance
    boto3.client("ec2").run_instances(**kwargs)
  File "/xxx/lib/python3.8/site-packages/botocore/client.py", line 316, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/xxx/lib/python3.8/site-packages/botocore/client.py", line 607, in _make_api_call
    request_dict = self._convert_to_request_dict(
  File "/xxx/lib/python3.8/site-packages/botocore/client.py", line 655, in _convert_to_request_dict
    request_dict = self._serializer.serialize_to_request(
  File "/xxx/lib/python3.8/site-packages/botocore/validate.py", line 297, in serialize_to_request
    raise ParamValidationError(report=report.generate_report())
botocore.exceptions.ParamValidationError: Parameter validation failed:
Unknown parameter in NetworkInterfaces[0]: "NetworkCardIndex", must be one of: AssociatePublicIpAddress, DeleteOnTermination, Description, DeviceIndex, Groups, Ipv6AddressCount, Ipv6Addresses, NetworkInterfaceId, PrivateIpAddress, PrivateIpAddresses, SecondaryPrivateIpAddressCount, SubnetId, AssociateCarrierIpAddress, InterfaceType

Hi,
I suspect this is because you are using an older version of Boto3, please try to upgrade to the latest version of Boto3 with pip install boto3 --upgrade
Thank you.

You suspected correctly! Thanks for the quick reply.
I was still on a 1.14.x release. I now see that the requirements do specify:
boto3>=1.16.14

Hi @cread ,
Great!
Did you install 2.10.0 from pypi? Just trying to see if there is an issue with our dependency requirements

I installed from conda-forge. I'm working on a PR now for them.

Thanks Chris for creating the patch in conda-forge repo!


312238 - [Newsroom] [UAT Testing] - Critical Pages - Fact Sheet - Different table style and format

Description: The table in migrated page has different format and style.
Legacy: https://newsroom.accenture.com/fact-sheet/
Migrated: https://tempnewsroom.accenture.com/fact-sheet
Expected:

Actual:

Azdo Link:  https://dev.azure.com/accenturecio26/WebContentDigAssetMgmt_PR1093/_workitems/edit/312238
cc: @ravkiran @amol-anand @raymond-h-dev

Need to add table block to the codebase. Import script has been updated to import tables in a table block


Breadth First Search

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Implemented the algorithm in python.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.

Related Issues or Pull Requests
#704
Fill up the DCP form
If you are a part of DCP 21, fill up this form after the PR is merged.
The links provided in the form will be checked thoroughly, if someone tries fooling around, strict actions will be taken against the individual.

It is already present here


Create common Exception interface, break exceptions into smaller parts

It is a common practice to introduce a generic Exception interface so that all exceptions thrown by this library can be caught in a single catch.
Also, as discussed on gitter, we should create more exceptions instead of one or two big ones.

:+1:
At least differentiate between client exceptions (400s) and server ones (500s).

That's a good point.
Currently the base separation is based on single and multi requests.
Can you open a separate issue for that?


Level 1: Amazon Voucher Interactive Elements + Questions

Again, should make this kid friendly through better text and fonts + MENTION AT THE TOP, that this is part of the game and lesson and is not actually serious.

Questions should be worded better. If a question is wrong, there should be an explanation for the correct one, plus multiple retries.
If the user gets the questions wrong, instead of it putting the "Mission Failed" Page, it should show the explanation.

Level 2 is a broken link.

Level2 link has been however Level3 and Level4 are still broken and will be fixed in #40

I am interested in fixing and implementing the said features. Please assign it to me.


Navigate to person

https://i.imgur.com/fJSvF2k.gif

@mallikaviswas makes sense, how about we have an attribute "share_location" which is similar to discoverable but toggles off after 15mins? just like the location?

How will that work? Will the share_locaton toggle be with the discoverable toggle in Settings?
Then the "Navigate Me" button can be displayed only if "share_location" is true and if it is within 15 mins since the acceptedTimestamp (in requests table). Let's check with Dony and we could wait to implement this after the demo?


Tutorial for Unsharp Mask

@AnimeshMaheshwari22 please, added here : https://github.com/kornia/tutorials/blob/master/source/index.rst
oterhwise won't appear in the website.

@AnimeshMaheshwari22 please, added here : https://github.com/kornia/tutorials/blob/master/source/index.rst
oterhwise won't appear in the website.

Added Unsharp mask tutorial to index.rst


NPC makes hits with no damage and no knockback

Video from that bug is here:
https://youtu.be/rA5FKRi_Sbc

Extremely likely to be a plugin conflict. Refer to https://wiki.citizensnpcs.co/Plugin_Conflict

maybe a anticheat issue?


Suggestion: Add support for duckdb database

Look title

hope to support for duckdb

how can one train the model on DuckDB Text2SQL standard?

DuckDB's SQL is PostgreSQL


incomplete and hard to understand

I struggle to understand what the above sentence "When a postfix operator is applied to a function argument, the value of the argument is not guaranteed to be incremented or decremented before it is passed to the function. See section 1.9.17 in the C++ standard for more information." exactly tries to say and to which version of the standard it refers to.

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

ID: a0fb45d8-cdb3-f736-ad53-56791efbc5f9
Version Independent ID: 7e885863-dbf7-2c68-7197-616277d03b12
Content: Postfix Increment and Decrement Operators: ++ and --
Content Source: docs/cpp/postfix-increment-and-decrement-operators-increment-and-decrement.md
Product: visual-cpp
Technology: cpp-language
GitHub Login: @corob-msft
Microsoft Alias: corob

@wonkoRT
I agree, that's a clunky sentence. Basically, what it's saying is, don't expect portable, consistent behavior when you apply postfix ++ or -- to a function argument.
The Standard referred to is C++98, and the paragraph in question is about the sequence of operations when a function is called. That standard doesn't specify everything about when argument post-evaluation side-effects occur. Later standards (for example, C++11 in section 1.9.15) clarify that post-evaluation side effects and value computations do occur before the function is called - but the argument expressions are unsequenced and the order of argument evaluation is unspecified. That means it's really easy to create undefined behavior when you call a function:
#include <iostream>
void fn(const int arg1, const int arg2)
{
    std::cout << "arg1 " << arg1 << ", arg2 " << arg2 << std::endl;
}
int main()
{
    int a = 0;
    fn(a++, a++); // What will arg1 and arg2 be? It's undefined. Don't do this!
}

That doesn't mean it will crash, it just means that if arg1 and arg 2 are both 0, both 1, both 2, or they're a mixture of any of those values, don't act surprised. Microsoft C++ appears to set arg1 to 0 and arg2 to 1 when I try the sample for x86, but that might depend on the calling convention or the processor.

Thanks for the clarification, the example and for specifying the standard! Now i see from where (or what time) this is coming from.

Thank you for your patience as we work through our backlog. We have received more issues than we can manage at this time. We are closing issues based on their severity, how broadly applicable they are, and whether there is enough information provided to act on the issue. If you believe that this issue should not have been closed, please add a comment explaining why by 3/8/2024. We appreciate your contribution and encourage you to propose changes using public PRs, or submit feedback through our updated control at the top of the page, as we phase out Git Issues for this repo. For more information on our feedback systems, see https://aka.ms/ContentUserFeedback.


Binary file name?

lv_font_converter :)
Any better ideas/reasons?

@puzrin The only issue I would have (and it's minor) is that the name is a bit longer than I would be used to for a CLI tool.

Hm... never noticed for many years, i always type with autocomplete by tab

lv_cfont?

lv_font?

@puzrin lv_font does not give the user the impression that it's a convertor tool. I suppose if they always get it from this repository it doesn't really matter though.

lv_font_build?

lv_font_create?

lv_fontconv?

lv_font_conv? - more readable in scripts

@kisvegabor @puzrin I like lv_font_conv.

I'm ok woth lv_font_conv.
If no objections, could you rename repo, then press sync in travis-ci and make sure repo is enabled after rename?

@puzrin Done.

Maybe I'm a little bit late, but I also agree with "lv_font_conv".


Torrent intents not recognized

When I add a new torrent from another another program (f.e. clicking a link in a browser), if it is a magnet link gearshift adds the new torrent correctly, but if it is a .torrent file it fails.
If I save the same .torrent file in the phone and use the add torrent option, then select the .torrent file, it gets added correctly. Since the same .torrent file works when added manually from local memory, but not when coming from another app, that is why I suspect the problem is in how gearshift handles .torrent intents.

Same issue here, but sometimes it works though. Always works when using add function in app. Might be a chrome/Android based problem? I'm using cm N based ROM.

If sometimes it worked, most probably it was the website you were downloading the torrent from didn't set the MIME type correctly. Gearshift has nothing to do with this.

If you add a torrent from IPTorrents it always gives error. I use Firefox for Android.

@subiol
Since I have no idea what iptorrents is, check what content type it returns for a torrent file. Use curl or similar to look at the headers.

I really like your solution to managing destination folders. I would be very happy to use the app, but unfortunately I faced the problem discussed above. It seems to me that there is a problem with intent-based file sharing introduced at SDK24. The intent sharing operation does not work, but the same .torrent file can be opened manually without problems.


Integrated terminal panel

The terminal-plus package doesn't work on Atom from 1.9 and this is a must-have package for me.
So I think it should be better if we can have a terminal built in instead of waiting for a package to be updated.

We aren't going to be building a terminal emulator into Atom. We agree that it is something that is very useful for some workflows but it isn't something that we'll be investing our limited resources into building and maintaining. We would much rather concentrate on making a great editor and leave terminal emulators to others who have the interest and expertise for them.


How to use --sidebar-relative-width

Hello!
I am quite new with these things and can not figure out how to use css. There is a note that I can use for example: --sidebar-relative-width. Where should it be in the configuration? Is there an example somewhere?
And sorry if this is not a right place to ask this kind of things. If not, where should it be discussed?

Hello,
In order to apply the width on the sidebar, you need to enter the following to your active theme:
# Sidebar size   sidebar-relative-width: 25%
Obviously, adjust the percentage to what looks best for you. You can find the themes under config->themes
Hope this helps
M


Add capability to have multiple servers defined in a single gradle file

I want to be able to start multiple servers from a single gradle file but can't do this as the Liberty stanza applies to the whole build project.  Something like this would be nice:
task startMyServer(type: LibertyStart) {
    serverName = 'myServer'
}
task startOtherServer(type: LibertyStart) {
    serverName = 'otherServer'
}

Closing since this was delivered in release 2.3.


Read dependent picklist by record type on a standard object

Hi guys, thanks for the great API.
I believe this would be a query regarding the ability to read a dependent picklist by record type. I am coming from this Idea, and followed Mr. Ayers procedure on how to get picklist values using the mdapi. Deployed mdapi to my sandbox, made a proof of concept, and then proceeded to tackle the real issue that I wanted to solve.
I tried to get a RecordTypeID dependent Type picklist from the Case object, and ended up getting a null pointer exception. After tracing the error I noticed that the response I got from the readMetadata function from MetadataService was returning null on the picklist field. After reading the code a couple of times through I noticed Mr. Ayers is using a CustomField and proceeded to facepalm.
So in the end my question is, is there any way to replicate this process, but for a Standard object (Case) and Standard field (Type)? Has any one come to you guys with an option? Reading through the issue list I didn't see something similar, but I wanted to ask you guys.
Thanks.

Found my answer:
https://github.com/financialforcedev/apex-mdapi/issues/149


Error: Cannot find module 'extract-text-webpack-plugin'

In the package.json there are these scripts..
 "scripts": {
    "clean": "rm -rf ./public/bundle.* ./src/firebase-config.json ./node_modules",
    "build": "npm run clean && npm run createfirebaseconf; NODE_ENV=production webpack -p;",
    "createfirebaseconf": "firebase setup:web --json > ./src/firebase-config.json",
    "serve": "firebase serve"
  },

When doing npm run build it will execute npm run clean which will remove the folder node_modules among other things
Because of this I'm getting this error when doing npm run build
Error: Cannot find module 'extract-text-webpack-plugin'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)

because of course, all dependencies required in webpack.config.js (included this extract-text-webpack-plugin) are not available anymore on node_modules
I've fixed this by simply removing the ./node_modules part of the script
"clean": "rm -rf ./public/bundle.* ./src/firebase-config.json",

What was the purpose of this? Am I missing something?

@juanmaguitar Thank you!!!
This was stumping for quite some time. Yes this appears to be an error when testing locally, if removing the npm_modules as part if the build no wonder it was not finding the modules over and over again.


New Feature:  Selectable Support

I've been printing a few pieces lately and found myself wishing that there was an easy way to turn off some (but not all) of the supports that Slic3r has generated around my object.
To start with, a handy feature would be to be able to filter for the support structures in the gcode editor and visualiser.  They could be displayed in a different colour, optionally, and could be selected using the familiar mouse swipe + Ctrl key combination.  Maybe you could view just the supports and not the model.  Anyway.  Once selected, the Delete key could be used to bring up a confirmation dialogue box:  Do you really want to delete these features?  OK/Cancel.  There are already Undo/Redo buttons in the editor in case you go too far with deleting stuff.
Now I don't really know whether there would be issues with respect to paths joining up again and the whole gcode structure making sense once you've deleted bits out of it, but it seems to me that this method of adding support and then removing the stuff you don't actually need (or in many cases, want) is going to be much easier to use than some other method of defining where you want support in your model on the Slic3r end.

FYI,
Craftware has  Selectable  supports
https://craftunique.com/craftware


AttributeError

Hi,
I tried the Example 01 - GRNBoost2 local, https://nbviewer.jupyter.org/github/tmoerman/arboreto/blob/master/notebooks/examples/ex_01_grnboost2_local.ipynb, and I got the following error:
AttributeError                            Traceback (most recent call last)
 in ()
1 import os
----> 2 from arboreto.algo import grnboost2, genie3
D:\Anaconda\lib\site-packages\arboreto\algo.py in ()
4
5 import pandas as pd
----> 6 from distributed import Client, LocalCluster
7 from arboreto.core import create_graph, SGBM_KWARGS, RF_KWARGS, EARLY_STOP_WINDOW_LENGTH
8
D:\Anaconda\lib\site-packages\distributed_init_.py in ()
1 from future import print_function, division, absolute_import
2
----> 3 from . import config
4 from dask.config import config
5 from .actor import Actor, ActorFuture
D:\Anaconda\lib\site-packages\distributed\config.py in ()
11 from .compatibility import logging_names
12
---> 13 config = dask.config.config
14
15
AttributeError: module 'dask' has no attribute 'config'

This is most likely an issue with the dask and distributed versions in your installation. The first thing I would try is updating both packages using the conda package manager.

Thank  you prompt reply


Pokemon Optimizer round 4

Add full documentation of Pokemon Optimizer (need to add a few things but mostly done)
Add support for different mode of selection "by_pokemon", "by_family", "overall"
Add parameter to create and reference groups of Pokemon
Add possibility to exclude Pokemon or groups of Pokemon
Add possibility to configure evolution threshold when selecting Pokemon to keep
Add possibility to keep Pokemon whose stats are no further that x% of the best
Auto correct misspelled Pokemon names in configuration

:+1:

I wonder if lines 261 to 263 of pokemon_optimizer.py are not a duplicate of lines above ? I've a TypeError 'Pokemon' type not iterable when I reach this step.

Which lines are you referring to ?

I think he's referring to this:
for _, pokemon_list in self.group_by_pokemon_id(senior_pokemon_list):
try_evolve, keep = self.get_best_pokemon_for_rule(pokemon_list, rule)
try_evolve_all += try_evolve
keep_all += keep
        try_evolve, keep = self.sort_pokemon_list(other_family_list, rule)
        try_evolve_all += try_evolve
        keep_all += keep

Sorry, can you point me on which line is reported in the error message ? I do not see where the error is.

I don't have the error on my screen anymore, but it was pointing to line 262 of pokemon_optimizer.py.
I've just set the evolve=false on config.json to get rid of the error, but now I transfert most of my pokemon so even if I set it back to true to check the error message, I've to wait for more pokemon.
Bit if you check the file pokemon_optimizer.py, you can see that line 261, 262 and 263 are just a duplicating of above lines 257, 258, 259 but outside of the "for" loop. I don't catch all the logic behind the code, so I may be wrong.

Ok I see the error, I will fix.
For the lines you are talking about, they are not exactly duplicated, there is a small difference ;)

I pushed the fix in the other pull request.

I'm not seeing the PR


Add link to security model

This is to hopefully create a built in response for questions around this, we can evolve it as needed

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

R: @Abacn


ignore low_contrast warning

What is the purpose of this PR?
To avoid the repeating warning: 'X.tif is a low contrast image'. closes #260
This warning is raised when saving the preprocessed .tif images to the deepcell_input dir.
How did you implement your changes
Setting the optional parameter check_contrast of skimage.io.imsave to false.

We save images also in plot_overlay. The images that are saved in this function are not supposed to be with low contrast. I'm not sure if we should turn off this flag there, because in case we do get this warning when saving images in this function, it might be because of a real unexpected problem.


Field-Annotation description does not work

Describe the bug
when annotating a property with @Field(description="some description") the description is ignored
Cause
in kompendium.core.handler.ObjectHandler.kt - ComponentSchema.adjustForFieldOverrides
the line 114 - this.setDescription(fieldOverrides.description)
the returned copy of the ComponentSchema is never used and the original ComponentSchema is returned by the function
Proposed fix
  private fun ComponentSchema.adjustForFieldOverrides(prop: KProperty1<*, *>): Pair<String, ComponentSchema> {
    var name = prop.name
    var spec = this
    prop.findAnnotation<Field>()?.let { fieldOverrides ->
      if (fieldOverrides.description.isNotBlank()) {
        spec = this.setDescription(fieldOverrides.description)
      }
      if (fieldOverrides.name.isNotBlank()) {
        name = fieldOverrides.name
      }
    }
    return Pair(name, spec)
  }

I tried the proposed fix with a local release and ran into another issue. The description for a field does not get attached to the property but rather to the object. This leads to the error "Slug cannot be null for an object schema!" in certain situations.
Referencing the same object with different descriptions breaks the generation.
@Serializable
data class Foo(
    @Field(description = "description1")
    val test: Bar
)

@Serializable
data class Fuu(
    @Field(description = "description2")
    val test: Bar
)

@Serializable
data class Bar(
    val test: String
)

what version of kotlin, ktor and kompendium are you using?  I'm pretty sure we have a test in place that validates this behavior, but bugs are always possible :)

Ah i see, the test case json does not have the description either.  Makes sense why that is passing then :D easy to miss this kinda stuff

I believe the reason for the second bug you mention is that kompendium does an object comparison to what is in the cache, and likely the object in the cache has a description, and the object it is comparing does not.
This is a pretty bad design on my part.  However, I believe we can get around this by simply removing description from the object comparison.
With that said, this project is now super low on my personal priorities list, so this fix will likely need you or someone from the community to tackle it if time is of the essence.
Also, Jetbrains is supposedly working on their own solution for openapi generation for Ktor 2 (which was released today 🎉)

field annotations have been deprecated, and will be completely rehauled prior to the official kompendium v3 release.  Going to close this


Replace vaffle with nnn

Integrate neovim with nnn.

To enable to split filer and nvim (currently ), how do I do?
Integrate tmux too and no more neovim tab?


FW 3.0 0-100 Laser Power Levels

Firmware 3.0 added support for laser power levels of 0-100.
The old LaserPowerModes low/medium/high still works fine with this library, but it would be nice to be able to have more granular control without going through multiple levels of menus.
It shows up in the OSD as "LD Power".
Thanks!
Rob

If you can get me the command to run or the remote code I can add it. I can't find any updated spec from JVC. Command would be like  PMLP. It would have a specific kind of input as well, probably numeric.

Some details here:
https://www.avsforum.com/threads/official-jvc-rs4100-nz9-rs3100-nz8-rs2100-nz7-rs1100-np5-owners-thread.3226551/post-63154737
It's nothing critical, since this can currently be controlled with picture modes. There are occasions when it would be nice, though. Of course, on those occasions, I can also navigate a few menus. First world problems. :)

Hmm...on p34, it looks like this only includes what you have already implemented. I didn't find more granular control.

Then again, it looks like he has highlighted a numeric command PMCV on p27.

Another low priority but would be nice feature...
Showing the source format on p41.
Similar deal. On occasions when I need it, I can go into menus, but it would be convenient to display on my HA control panel.

Actually, looking closer at this stuff, this one would be more useful and probably easier:
Reporting the current anamorphic mode status.
It's often confusing to know what's going on when the aspect and anamorphic modes aren't right, and it would be very helpful to be able to see it at a glance.
As a binary sensor, when you select it as a button, it will show as the button state.
binary_sensor:
  - name: "JVC Aspect Auto"
    value_template: "{{ is_state('remote.nz9', 'on') and (states.remote.nz9.attributes.aspect_ratio == 'auto') }}"

Okay I added all of these. Please test 4.1.3 of the integration. I didnt update to fw 3.0 so I can't test the laser value yet but it should work. Source format will appear under resolution.


Add module based color encoding for the literal tree visualization

This PR implements additional categorical color encoding for the literal tree visualization.

Do you think we could use the colormaps in util/colormaps.py here?

Looks good to me. Thanks Suraj.


feat(applications-service): add interested party feature env var

Pull Request Template
Describe your changes
ASB-1920
Adds BACK_OFFICE_INTEGRATION_POST_INTERESTED_PARTY_CASE_REFERENCES environment variable to Applications Service API
Type of change 🧩

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[x] My code follows the style guidelines of this project
[x] My code changes do not include any hardcoded secrets or passwords
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[x] My Tech Lead is aware of any infrastructure changes that will cost money

:tada: This PR is included in version 1.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.14.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.18.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


kube-spawn: ensure that system requirements are satisfied

Ensure that the system requirements are satisfied for starting kube-spawn. It's just like running the commands below:

# modprobe overlay
# modprobe nf_conntrack
# echo "131072" > /sys/module/nf_conntrack/parameters/hashsize
# setenforce 0
# systemctl stop firewalld

It was originally done by scripts/vagrant-mod-env.sh. However it's actually hard for end-users to take care of the requirements prior to running kube-spawn. So allow kube-spawn to do the initialization by itself a bit actively.
Also remove unnecessary warnings "exit status 1" while waiting on completion.
Fixes https://github.com/kinvolk/kube-spawn/issues/69

What do you think about moving this new code related to checking before startup out of cmd/kube-spawn making it part of pkg/bootstrap.
It's similar to kubeadm's preflight checks... Would it be useful to be able to skip them?

@dongsupark ^

@robertgzr SGTM. I'll try it later.

Rebased on master, and moved the relevant parts to pkg/bootstrap/node.go.
Also removed parts for disabling SELinux & firewalld from the PR, as it could cause side-effects. (as @schu mentioned) Created another issue to address that part.
I didn't add the --skip-preflight-checks option to kubeadm, because then it would skip a lot of checks. I'm not sure we can skip all of them.


Failed to load test harness error when running tests with flutter test

Steps to Reproduce

When running tests on a dart package, if I run the tests using the IDE, it runs flutter test ... and I get the below error. This is not a flutter plugin, as in, there is only dart code and no dependencies on flutter code.

Logs

Testing started at 10:45 ...
/Users/thinkdigital/development/flutter/bin/flutter --no-color test --machine --plain-name "test prefix" test/html_parsing_client_test.dart

Compiler message:

Failed to load test harness. Are you missing a dependency on flutter_test?

Unhandled exception:
FileSystemException(uri=org-dartlang-untranslatable-uri:package%3Aflutter_test%2Fflutter_test.dart; message=StandardFileSystem only supports file:* and data:* URIs)
#0      StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
#1      asFileUri (package:vm/kernel_front_end.dart:601:37)
<asynchronous suspension>
#2      FrontendCompiler._outputDependenciesDelta (package:vm/frontend_server.dart:401:39)
<asynchronous suspension>
#3      FrontendCompiler.compile (package:vm/frontend_server.dart:375:13)
<asynchronous suspension>
#4      _FlutterFrontendCompiler.compile (package:frontend_server/server.dart:31:22)
<asynchronous suspension>
#5      listenAndCompile.<anonymous closure> (package:vm/frontend_server.dart:736:26)
<asynchronous suspension>
#6      _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#7      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#8      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#9      _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#10     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#11     _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#12     _LineSplitterSink._addLines (dart:convert/line_splitter.dart:150:13)
#13     _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:125:5)
#14     StringConversionSinkMixin.add (dart:convert/string_conversion.dart:163:5)
#15     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#16     _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#17     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#18     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#19     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#20     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#21     _StringAdapterSink.add (dart:convert/string_conversion.dart:236:11)
#22     _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:241:7)
#23     _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:312:20)
#24     _Utf8ConversionSink.add (dart:convert/string_conversion.dart:305:5)
#25     _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
#26     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#27     _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#28     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#29     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#30     _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#31     _StreamController._add (dart:async/stream_controller.dart:640:7)
#32     _StreamController.add (dart:async/stream_controller.dart:586:5)
#33     _Socket._onData (dart:io-patch/socket_patch.dart:1786:41)
#34     _RootZone.runUnaryGuarded (dart:async/zone.dart:1314:10)
#35     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#36     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#37     _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#38     _StreamController._add (dart:async/stream_controller.dart:640:7)
#39     _StreamController.add (dart:async/stream_controller.dart:586:5)
#40     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1335:33)
#41     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:856:14)
#42     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#43     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#44     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#45     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)
dart:async/stream_controller.dart 595:43                     _StreamController.addError
dart:async/stream_controller.dart 862:13                     _StreamSinkWrapper.addError
package:stream_channel/src/guarantee_channel.dart 144:14     _GuaranteeSink._addError
package:stream_channel/src/guarantee_channel.dart 135:5      _GuaranteeSink.addError
package:flutter_tools/src/test/flutter_platform.dart 448:27  FlutterPlatform._startTest
===== asynchronous gap ===========================
dart:async/zone.dart 1053:19                                 _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 77:23                      _asyncThenWrapperHelper
package:flutter_tools/src/test/flutter_platform.dart         FlutterPlatform._startTest
package:flutter_tools/src/test/flutter_platform.dart 362:36  FlutterPlatform.loadChannel
package:flutter_tools/src/test/flutter_platform.dart 315:46  FlutterPlatform.load
===== asynchronous gap ===========================
dart:async/zone.dart 1053:19                                 _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 77:23                      _asyncThenWrapperHelper
package:test_core/src/runner/loader.dart                     Loader.loadFile.<fn>
package:test_core/src/runner/load_suite.dart 98:31           new LoadSuite.<fn>.<fn>
===== asynchronous gap ===========================
dart:async/zone.dart 1045:19                                 _CustomZone.registerCallback
dart:async/zone.dart 962:22                                  _CustomZone.bindCallbackGuarded
dart:async/timer.dart 52:45                                  new Timer
dart:async/timer.dart 87:9                                   Timer.run
dart:async/future.dart 174:11                                new Future
package:test_api/src/backend/invoker.dart 399:21             Invoker._onRun.<fn>.<fn>.<fn>

Failed to load "/Users/thinkdigital/IdeaProjects/pub_client/test/html_parsing_client_test.dart":
Compilation failed
Test: /Users/thinkdigital/IdeaProjects/pub_client/test/html_parsing_client_test.dart
Shell: /Users/thinkdigital/development/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester

I think the issue lies in the fact that I have a Flutter project open in Intellij and then I added a local package as a source so I can edit it as well and so it tries to run the tests as flutter tests. When I open the project directly, it runs pub run test and there are no issues.

You need to include steps to reproduce the issue, such as an example of the test file where this occurs.

@jonahwilliams, the problem is that it's an incorrect command being run, not an issue with the file. It boils down to the IDE incorrectly assuming that it's a flutter test file instead of a dart test file. For example, I created a new dart package using stagehand and then ran flutter test random_name_test.dart and it fails with the same error. Running pub run test random_name_test.dart runs fine. We could say, "well run the right command", but it's something decided on by the IDE.
Is there any more clarification I can provide? I'm happy to help

@ThinkDigitalSoftware did you find a workaround for this? I'm in the same situation with the same error. Makes it frustrating to develop and test a dart package and a flutter app at the same time in one IDE. Perhaps this could be directed to an IDE-focused flutter issue tracker?

@mike278 I don't believe I did.

Hello @ThinkDigitalSoftware !
Can you please also attach the flutter doctor -v output?
Thank you.

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

Why was this closed? I'm running into the same error. I want to be able to run pure Dart tests from the IDE

Hi @frank06
can you please provide your flutter doctor -v
and the logs of your test
Thank you

@iapicca sure!
➜ flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.14.6 18G103, locale en-US)
    • Flutter version 1.12.13+hotfix.5 at /usr/local/Caskroom/flutter/1.2.1/flutter
    • Framework revision 27321ebbad (9 weeks ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at /Users/admin/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • CocoaPods version 1.8.4

[!] Android Studio (version 3.4)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)

[✓] VS Code (version 1.42.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.8.1

[!] Connected device
    ! No devices available

! Doctor found issues in 2 categories.

Running the test via flutter pub run test test/adapter_test.dart works fine.
When I use VS Code "Run" or "Debug" (because I'd like to debug tests) then I get a failure with the following message:
loading /Users/admin/projects/zzz_lib/test/adapter_test.dart:

ERROR: Failed to load "/Users/admin/projects/zzz_lib/test/adapter_test.dart":
Compilation failed
Test: /Users/admin/projects/zzz_lib/test/adapter_test.dart
Shell: /usr/local/Caskroom/flutter/1.2.1/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester

dart:async/stream_controller.dart 597:43                      _StreamController.addError
dart:async/stream_controller.dart 864:13                      _StreamSinkWrapper.addError
package:stream_channel/src/guarantee_channel.dart 144:14      _GuaranteeSink._addError
package:stream_channel/src/guarantee_channel.dart 135:5       _GuaranteeSink.addError
package:flutter_tools/src/test/flutter_platform.dart 463:27   FlutterPlatform._startTest
===== asynchronous gap ===========================
dart:async/zone.dart 1055:19                                  _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 73:23                       _asyncThenWrapperHelper
package:flutter_tools/src/test/flutter_platform.dart          FlutterPlatform._startTest
package:flutter_tools/src/test/flutter_platform.dart 368:36   FlutterPlatform.loadChannel
package:flutter_tools/src/test/flutter_platform.dart 321:46   FlutterPlatform.load
package:test_core/src/runner/loader.dart 224:36               Loader.loadFile.<fn>
===== asynchronous gap ===========================
dart:async/zone.dart 1055:19                                  _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 73:23                       _asyncThenWrapperHelper
package:test_core/src/runner/loader.dart                      Loader.loadFile.<fn>
package:test_core/src/runner/load_suite.dart 98:31            new LoadSuite.<fn>.<fn>
package:test_api/src/utils.dart 241:5                         invoke
package:test_core/src/runner/load_suite.dart 97:7             new LoadSuite.<fn>
package:test_api/src/backend/invoker.dart 392:25              Invoker._onRun.<fn>.<fn>.<fn>.<fn>
dart:async/future.dart 176:37                                 new Future.<fn>
package:stack_trace/src/stack_zone_specification.dart 209:15  StackZoneSpecification._run
package:stack_trace/src/stack_zone_specification.dart 119:48  StackZoneSpecification._registerCallback.<fn>
dart:async/zone.dart 1122:38                                  _rootRun
dart:async/zone.dart 1023:19                                  _CustomZone.run
dart:async/zone.dart 925:7                                    _CustomZone.runGuarded
dart:async/zone.dart 965:23                                   _CustomZone.bindCallbackGuarded.<fn>
package:stack_trace/src/stack_zone_specification.dart 209:15  StackZoneSpecification._run
package:stack_trace/src/stack_zone_specification.dart 119:48  StackZoneSpecification._registerCallback.<fn>
dart:async/zone.dart 1126:13                                  _rootRun
dart:async/zone.dart 1023:19                                  _CustomZone.run
dart:async/zone.dart 949:23                                   _CustomZone.bindCallback.<fn>
dart:async-patch/timer_patch.dart 23:15                       Timer._createTimer.<fn>
dart:isolate-patch/timer_impl.dart 384:19                     _Timer._runTimers
dart:isolate-patch/timer_impl.dart 418:5                      _Timer._handleMessage
dart:isolate-patch/isolate_patch.dart 174:12                  _RawReceivePortImpl._handleMessage
===== asynchronous gap ===========================
dart:async/zone.dart 1047:19                                  _CustomZone.registerCallback
dart:async/zone.dart 964:22                                   _CustomZone.bindCallbackGuarded
dart:async/timer.dart 54:45                                   new Timer
dart:async/timer.dart 91:9                                    Timer.run
dart:async/future.dart 174:11                                 new Future
package:test_api/src/backend/invoker.dart 391:21              Invoker._onRun.<fn>.<fn>.<fn>
dart:async/zone.dart 1126:13                                  _rootRun
dart:async/zone.dart 1023:19                                  _CustomZone.run
dart:async/zone.dart 1518:10                                  _runZoned
dart:async/zone.dart 1465:12                                  runZoned
package:test_api/src/backend/invoker.dart 378:9               Invoker._onRun.<fn>.<fn>
dart:async/zone.dart 1126:13                                  _rootRun
dart:async/zone.dart 1023:19                                  _CustomZone.run
dart:async/zone.dart 1518:10                                  _runZoned
dart:async/zone.dart 1465:12                                  runZoned
package:test_api/src/backend/invoker.dart 144:7               Invoker.guard
package:test_api/src/backend/invoker.dart 428:15              Invoker._guardIfGuarded
package:test_api/src/backend/invoker.dart 377:7               Invoker._onRun.<fn>
package:stack_trace/src/chain.dart 101:24                     Chain.capture.<fn>
dart:async/zone.dart 1126:13                                  _rootRun
dart:async/zone.dart 1023:19                                  _CustomZone.run
dart:async/zone.dart 1518:10                                  _runZoned
dart:async/zone.dart 1465:12                                  runZoned
package:stack_trace/src/chain.dart 99:12                      Chain.capture
package:test_api/src/backend/invoker.dart 376:11              Invoker._onRun
package:test_api/src/backend/live_test_controller.dart 185:5  LiveTestController._run
package:test_api/src/backend/live_test_controller.dart 40:37  _LiveTest.run
dart:async/future.dart 202:37                                 new Future.microtask.<fn>
dart:async/zone.dart 1122:38                                  _rootRun
dart:async/zone.dart 1023:19                                  _CustomZone.run
dart:async/zone.dart 925:7                                    _CustomZone.runGuarded
dart:async/zone.dart 965:23                                   _CustomZone.bindCallbackGuarded.<fn>
dart:async/zone.dart 1126:13                                  _rootRun
dart:async/zone.dart 1023:19                                  _CustomZone.run
dart:async/zone.dart 925:7                                    _CustomZone.runGuarded
dart:async/zone.dart 965:23                                   _CustomZone.bindCallbackGuarded.<fn>
dart:async/schedule_microtask.dart 43:21                      _microtaskLoop
dart:async/schedule_microtask.dart 52:5                       _startMicrotaskLoop
dart:isolate-patch/isolate_patch.dart 118:13                  _runPendingImmediateCallback
dart:isolate-patch/isolate_patch.dart 175:5                   _RawReceivePortImpl._handleMessage

thank you @frank06

@iapicca Update: I had forgotten flutter_test as a dependency on the library, it works now!
I have another issue which probably doesn't belong here: the library is pure Dart, and the example is a Flutter app.  If I remove the Flutter dependency from the library, the example app is unable to find the Flutter SDK. That is why (for now at least) I have to depend on Flutter in the library, too.

Hi @frank06
first of all I'm glad that you fixed the issue
and thank you for  letting me know
I suggest you to open a specific issue for the case you are describing,
I (personally) see it more like a proposal,
closing this issue for now,
if you disagree please comment below and I'll reopen the issue
Thanks again


npm ERR! enoent ENOENT: no such file or directory, open '/home/runner/work/MediaPipeUnityPlugin/MediaPipeUnityPlugin/Packages/com.github.homuler.mediapipe/package.json'

Plugin Version or Commit ID
2f37866
Unity Version
2022.3.6f1
Your Host OS
Ubuntu 20.04
Target Platform
Android, iOS
[Windows Only] Visual Studio C++ and Windows SDK Version
No response
[Linux Only] GCC/G++ and GLIBC Version
No response
[Android Only] Android Build Tools and NDK Version
Build Tools: 30.0.2
NDK: 21.4.7075529
[iOS Only] XCode Version
Unsure (default)
Command Sequences
Used github actions workflow.

Forked the most recent commit from master branch.
Commented the line in build-package.yml and package.yml that install for windows, macOS and linux.
Changed android default args to --android arm64 --android_ndk_api_level 21
Ran Github actions 'Build a package' workflow with default args (leaving the args empty)

build-package.yml contents:
name: Build a Package
on:
  workflow_dispatch:
    inputs:
      bazelBuildArgs:
        type: string
        description: A value for `--bazel_build_opts`
      # linuxBuildArgs:
      #   type: string
      #   description: Build options for Linux Build
      androidBuildArgs:
        type: string
        description: Build options for Android Build
      # macosBuildArgs:
      #   type: string
      #   description: Build options for macOS Build
      iosBuildArgs:
        type: string
        description: Build options for iOS Build
      # windowsBuildArgs:
      #   type: string
      #   description: Build options for Windows Build
  schedule:
    - cron: 0 12 * * 0,3
jobs:
  package:
    uses: ./.github/workflows/package.yml
    with:
      ref: ${{ github.event.ref }}
      packageName: package
      bazelBuildArgs: ${{ inputs.bazelBuildArgs || '--experimental_scale_timeouts=10.0 --http_timeout_scaling=10.0' }}
      # linuxBuildArgs: ${{ inputs.linuxBuildArgs || '--desktop gpu --opencv cmake' }}
      androidBuildArgs: ${{ inputs.androidBuildArgs || '--android arm64 --android_ndk_api_level 21' }}
      # macosBuildArgs: ${{ inputs.macosBuildArgs || '--desktop cpu --opencv cmake --macos_universal' }}
      iosBuildArgs: ${{ inputs.iosBuildArgs || '--ios arm64' }}
      # windowsBuildArgs: ${{ inputs.windowsBuildArgs || '--desktop cpu --opencv cmake' }}
    secrets: inherit

package.yml contents:
name: Package
on:
  workflow_call:
    inputs:
      ref:
        type: string
        required: true
      packageName:
        type: string
        default: package
      bazelBuildArgs:
        type: string
        default: '--experimental_scale_timeouts=10.0 --http_timeout_scaling=10.0'
      # linuxBuildArgs:
      #   type: string
      #   default: '--desktop gpu --opencv cmake'
      androidBuildArgs:
        type: string
        default: '--android arm64 --android_ndk_api_level 21'
      # macosBuildArgs:
        # type: string
        # default: '--desktop cpu --opencv cmake --macos_universal'
      iosBuildArgs:
        type: string
        default: '--ios arm64'
      # windowsBuildArgs:
      #   type: string
      #   default: '--desktop cpu --opencv cmake'
    secrets:
      UNITY_EMAIL:
        required: false
      UNITY_PASSWORD:
        required: false
      UNITY_TOTP_KEY:
        required: false

jobs:
  print-inputs:
    runs-on: ubuntu-latest
    steps:
      - name: Print inputs for debug
        run: |
          echo 'inputs.ref=${{ inputs.ref }}'
          echo 'inputs.bazelBuildArgs=${{ inputs.bazelBuildArgs }}'
          # echo 'inputs.linuxBuildArgs=${{ inputs.linuxBuildArgs }}'
          echo 'inputs.androidBuildArgs=${{ inputs.androidBuildArgs }}'
          # echo 'inputs.macosBuildArgs=${{ inputs.macosBuildArgs }}'
          echo 'inputs.iosBuildArgs=${{ inputs.iosBuildArgs }}'
          # echo 'inputs.windowsBuildArgs=${{ inputs.windowsBuildArgs }}'

  # linux-build:
  #   runs-on: ubuntu-latest
  #   steps:
  #     - uses: actions/checkout@v3
  #       with:
  #         ref: ${{ inputs.ref }}

  #     - name: Build a Docker image
  #       run: |
  #         docker build --no-cache --build-arg UID=$(id -u) -t mediapipe_unity:latest . -f docker/linux/x86_64/Dockerfile

  #     - name: Build
  #       run: |
  #         docker run --rm \
  #           --mount type=bind,src=$PWD/Packages,dst=/home/mediapipe/Packages \
  #           --mount type=bind,src=$PWD/Assets,dst=/home/mediapipe/Assets \
  #           mediapipe_unity:latest \
  #           python build.py build --bazel_build_opts="${{ inputs.bazelBuildArgs }}" ${{ inputs.linuxBuildArgs }} -vv

  #     - name: Upload artifacts
  #       uses: actions/upload-artifact@v3
  #       with:
  #         name: ${{ inputs.packageName }}-base
  #         path: .

  android-build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
        with:
          ref: ${{ inputs.ref }}

      - name: Build a Docker image
        run: |
          docker build --no-cache --build-arg UID=$(id -u) -t mediapipe_unity:latest . -f docker/linux/x86_64/Dockerfile

      - name: Remove unused files to free up space
        run: |
          sudo rm -rf /usr/share/dotnet /usr/local/lib/android

      - name: Build
        run: |
          docker run --rm \
            --mount type=bind,src=$PWD/Packages,dst=/home/mediapipe/Packages \
            --mount type=bind,src=$PWD/Assets,dst=/home/mediapipe/Assets \
            mediapipe_unity:latest \
            python build.py build --bazel_build_opts="${{ inputs.bazelBuildArgs }}" ${{ inputs.androidBuildArgs }} -vv

      - name: Upload mediapipe_android.aar
        uses: actions/upload-artifact@v3
        with:
          name: ${{ inputs.packageName }}-mediapipe_android.aar
          path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/Android/mediapipe_android.aar

  # macos-build:
  #   runs-on: macos-12
  #   steps:
  #     - uses: actions/checkout@v3
  #       with:
  #         ref: ${{ inputs.ref }}

  #     # Setup Python
  #     - uses: actions/setup-python@v4
  #       with:
  #         python-version: '3.10'
  #     - name: Install NumPy
  #       run: pip install --no-cache-dir --user numpy

  #     - name: Build libmediapipe_c.dylib
  #       run: |
  #         unset ANDROID_NDK_HOME
  #         python build.py build --bazel_build_opts="${{ inputs.bazelBuildArgs }}" ${{ inputs.macosBuildArgs }} -vv

  #     - name: Upload libmediapipe_c.dylib
  #       uses: actions/upload-artifact@v3
  #       with:
  #         name: ${{ inputs.packageName }}-libmediapipe_c.dylib
  #         path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib

  ios-build:
    runs-on: macos-12
    steps:
      - uses: actions/checkout@v3
        with:
          ref: ${{ inputs.ref }}

      # Setup Python
      - uses: actions/setup-python@v4
        with:
          python-version: '3.10'
      - name: Install NumPy
        run: pip install --no-cache-dir --user numpy

      - name: Build bazel to circumvent a compile error
        run: |
          mkdir bin
          git clone https://github.com/bazelbuild/bazel.git --depth 1 --single-branch --branch  6.1.1
          cd bazel
          git apply ../third_party/bazel_ios_workaround.diff
          USE_BAZEL_VERSION=6.2.1 bazel build --java_runtime_version=remotejdk_11 //src:bazel
          cp bazel-bin/src/bazel ../bin
          cd ..
          echo "bin" >> $GITHUB_PATH

      - name: Build MediaPipeUnity.framework
        run: |
          unset ANDROID_NDK_HOME
          sed -i -e 's/PLEASE_SET_YOUR_BUNDLE_ID_HERE/com.github.homuler.mediapipe.unity/g' mediapipe_api/objc/BUILD
          python build.py build --bazel_build_opts="${{ inputs.bazelBuildArgs }}" ${{ inputs.iosBuildArgs }} -vv

      - name: Upload MediaPipeUnity.framework
        uses: actions/upload-artifact@v3
        with:
          name: ${{ inputs.packageName }}-MediaPipeUnity.framework
          path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/iOS/MediaPipeUnity.framework

  # windows-build:
  #   runs-on: windows-2019
  #   steps:
  #     - uses: actions/checkout@v3
  #       with:
  #         ref: ${{ inputs.ref }}

  #     - name: Build a Docker image
  #       run: |
  #         docker build --no-cache -t mediapipe_unity:latest . -f docker/windows/x86_64/Dockerfile
  #       shell: cmd
  #       timeout-minutes: 60

  #     - name: Build
  #       run: |
  #         docker run --rm --cpus=2 --memory=8g ^
  #           --mount type=bind,src=%CD%\Packages,dst=C:\mediapipe\Packages ^
  #           --mount type=bind,src=%CD%\Assets,dst=C:\mediapipe\Assets ^
  #           mediapipe_unity:latest ^
  #           python build.py build --bazel_build_opts="${{ inputs.bazelBuildArgs }}" ${{ inputs.windowsBuildArgs }} -vv
  #       shell: cmd

  #     - name: Upload mediapipe_c.dll
  #       uses: actions/upload-artifact@v3
  #       with:
  #         name: ${{ inputs.packageName }}-mediapipe_c.dll
  #         path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/mediapipe_c.dll

  package:
    runs-on: ubuntu-latest
    needs:
      # - linux-build
      - android-build
      # - macos-build
      - ios-build
      # - windows-build
    steps:
      - name: Check options
        run: |
          if [[ -z '${{ secrets.UNITY_EMAIL }}' ]]; then
            echo "BUILD_UNITYPACKAGE=0" >> $GITHUB_ENV
          else
            echo "BUILD_UNITYPACKAGE=1" >> $GITHUB_ENV
          fi

      - name: Install UnityEditor
        if: ${{ env.BUILD_UNITYPACKAGE == '1' }}
        run: |
          sudo docker cp $(docker create --rm unityci/editor:2022.3.6f1-base-1):/opt/unity /opt/unity
          sudo chown -R $(id -u):$(id -g) /opt/unity

          echo -e '#!/bin/bash\nxvfb-run -ae /dev/stdout /opt/unity/Editor/Unity -batchmode "$@"' | sudo tee -a /usr/bin/unity-editor
          sudo chmod +x /usr/bin/unity-editor
      - name: Generate a license activation file
        if: ${{ env.BUILD_UNITYPACKAGE == '1' }}
        run: |
          unity-editor -quit -createManualActivationFile -logFile || true
      - name: Request a Unity license file
        if: ${{ env.BUILD_UNITYPACKAGE == '1' }}
        env:
          UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
          UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
          UNITY_TOTP_KEY: ${{ secrets.UNITY_TOTP_KEY }}
        run: |
          npm install -g unity-verify-code
          git clone https://github.com/homuler/unity-license-activate.git
          cd unity-license-activate
          npm install
          cd ..
          npm install -g ./unity-license-activate
          unity-license-activate "$UNITY_EMAIL" "$UNITY_PASSWORD" Unity_v2022.3.6f1.alf --authenticator-key "$UNITY_TOTP_KEY"
          rm -rf unity-license-activate
      - name: Activate License
        if: ${{ env.BUILD_UNITYPACKAGE == '1' }}
        run: |
          unity-editor -quit -batchmode -nographics -logFile -manualLicenseFile $(ls Unity_*.ulf) || true
          rm Unity_*.alf
          rm Unity_*.ulf

      # - name: Download the base package
      #   uses: actions/download-artifact@v3
      #   with:
      #     name: ${{ inputs.packageName }}-base
      - name: Download mediapipe_android.aar
        uses: actions/download-artifact@v3
        with:
          name: ${{ inputs.packageName }}-mediapipe_android.aar
          path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/Android
      # - name: Download libmediapipe_c.dylib
      #   uses: actions/download-artifact@v3
      #   with:
      #     name: ${{ inputs.packageName }}-libmediapipe_c.dylib
      #     path: Packages/com.github.homuler.mediapipe/Runtime/Plugins
      - name: Download MediaPipeUnity.framework
        uses: actions/download-artifact@v3
        with:
          name: ${{ inputs.packageName }}-MediaPipeUnity.framework
          path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/iOS/MediaPipeUnity.framework
      # - name: Download mediapipe_c.dll
      #   uses: actions/download-artifact@v3
      #   with:
      #     name: ${{ inputs.packageName }}-mediapipe_c.dll
      #     path: Packages/com.github.homuler.mediapipe/Runtime/Plugins

      - name: Zip all
        run: |
          zip -r MediaPipeUnityPlugin-all.zip . -x .git/**\*

      - name: Export tarball
        run: |
          cd Packages/com.github.homuler.mediapipe
          npm pack
          mv com.github.homuler.mediapipe-*.tgz ../..

      - name: Export unitypackage
        if: ${{ env.BUILD_UNITYPACKAGE == '1' }}
        run: |
          unity-editor -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod PackageExporter.Export

      - name: Upload artifacts
        uses: actions/upload-artifact@v3
        with:
          name: ${{ inputs.packageName }}
          path: |
            com.github.homuler.mediapipe-*.tgz
            *.unitypackage
            MediaPipeUnityPlugin-all.zip
          retention-days: 7

  clean:
    runs-on: ubuntu-latest
    needs:
      - package
    steps:
      - uses: geekyeggo/delete-artifact@v2
        with:
          name: ${{ inputs.packageName }}-base
          failOnError: false

      - uses: geekyeggo/delete-artifact@v2
        with:
          name: ${{ inputs.packageName }}-mediapipe_android.aar
          failOnError: false

      # - uses: geekyeggo/delete-artifact@v2
      #   with:
      #     name: ${{ inputs.packageName }}-libmediapipe_c.dylib
      #     failOnError: false

      - uses: geekyeggo/delete-artifact@v2
        with:
          name: ${{ inputs.packageName }}-MediaPipeUnity.framework
          failOnError: false

      # - uses: geekyeggo/delete-artifact@v2
      #   with:
      #     name: ${{ inputs.packageName }}-mediapipe_c.dll
      #     failOnError: false

Log
Android and iOS builds completed successfully. Got error in package/package -> Export tarball step.
Here's the log for this step:
1s
Run cd Packages/com.github.homuler.mediapipe
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/runner/work/MediaPipeUnityPlugin/MediaPipeUnityPlugin/Packages/com.github.homuler.mediapipe/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/runner/work/MediaPipeUnityPlugin/MediaPipeUnityPlugin/Packages/com.github.homuler.mediapipe/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: /home/runner/.npm/_logs/2023-08-26T[1](https://github.com/baig97/MediaPipeUnityPlugin/actions/runs/5984295639/job/16235890513#step:10:1)1_4[8](https://github.com/baig97/MediaPipeUnityPlugin/actions/runs/5984295639/job/16235890513#step:10:9)_21_008Z-debug-0.log
Error: Process completed with exit code 254.

Additional Context
P.s: I am not very proficient with Github Actions workflow neither working with bazel. I just want to complete my face blendshapes project in unity for which I want to use Mediapipe Tasks (unavailable in release 0.12.0).
If you can suggest me steps to circumvent this issue or give me an alternate pathway to make this work, I would be grateful.
Also tell me, if there is a way I can use the built binaries for android and iOS to do some manual steps for successfully loading the plugin in untiy project (I am getting build errors as of now trying this).

I don't know why you need to modify the workflow file in the first place.
And if you don't know what you're doing too, please don't modify the existing files. Even if something stops working as a result, please take responsibility for it yourself.
See also https://github.com/homuler/MediaPipeUnityPlugin/issues/1007#issuecomment-1687375305.

Thanks, it really helped. I modified mine as I wanted only android and iOS. Plus the non modified build was failing too (on Windows) for some reason.
Will download your latest successful build now.

I see. If it fails, try rerunning failed jobs.

However, it seems to me that this error doesn't have occurred by chance, so we might need to fix it.

Thanks for noting. Please look into it.
I couldn't make it work by rerunning the jobs but I could get the plugin to work by using Build a package # 126.
Working like a charm!


Fixed post request

Made it more convenient to use by sending requests as an object rather than a string.
Also POST requests now work properly

Thanks!


Add documentation!

[x] Some docs (GitHub pages in a docs folder?) would be nice

[x] Node module needs a readme

[ ] Add simple examples for each supported language

[x] Add comments to proto files and check generated code is documented where appropriate

Initial docs are done. Will open another issue for examples.


Automated Package Upgrade

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


opensubtitles API change

opensubtitles.org will shut down its API in the next month or two, and is telling people to use opensubtitles.com REST API instead:
https://trac.opensubtitles.org/projects/opensubtitles
https://opensubtitles.stoplight.io/docs/opensubtitles-api/e3750fd63a100-getting-started
Subliminal needs to be updated to stay compatible. Due to bitrot, this is one of the only built-in providers which still works in 2023. When the change happens, without a fix subliminal will become almost useless.

Unfortunately, OpenSubtitles will begin to restrict the REST API in 2024. Only VIP (paid) members will be able to access the API.
https://forum.opensubtitles.org/viewtopic.php?f=1&t=18389

As of today (January 1, 2024), subliminal no longer works with OpenSubtitles.  It downloads a 104-byte file, which is an ad for OpenSubtitles.

so addic7ed.com doesn't work because need a Captcha, legengastv is down and now opensubtitles is locked behind a VIP account. Is there any option available to download subtitles?

gestdown ( mentioned in #1055 ) seems to work for addic7ed without a captcha
subdl.com seems to have scraped opensubtitles for a really long time, and now allows to download all that ( although the next.js api isn't too pleasant to work with )
subscene.com, but the UX is terrible, not even talking about automated downloading9
opensubtitles seems to still work, with workarounds such as changing the user agent and some headers, but i'm not 100% sure about that

closed in favor of #1063


buildkit: separate out the cni config to establish an independent interface

With CNI config being drop-in for the k3c and kublet interface(s) combined with the BuildKit-specific CNI config establishing an interface for BuildKit's use it is unreasonable to expect that these can be kept in sync. Also, given that BuildKit already runs somewhat isolated in the k3c.io containerd namespace we should just configure for it a separate network interface.

Or maybe just set .NetworkConfig.Mode = "host"


1.46 brings back "git fatal error: file is outside directory"

VSCode Version: 1.46.0
OS Version: Windows 10

Steps to Reproduce:
Same as in https://github.com/microsoft/vscode/issues/89373, except the version is latest

Does this issue occur when all extensions are disabled?: Yes
I see that fix https://github.com/microsoft/vscode/commit/830992d818cbf1a09e744f0ee475c542763bdfff
does not work, because "Output" shows
git add -A -- c:\vms\deb0\git-compose-eyodf\git-compose\internal\cmd\gico.go

"C:" here is lower case. The problem appeared recently after the update.

Others have reported that updating their local Git version resolves this. What version are you using? Are you able to update?

Git is of "git version 2.12.0.windows.1", but I'm not sure if that's the git problem.
It seems like git does not like lowercase drive names (I checked that specifically) and I think the mentioned fix was lost between versions.
That method add has changed between
https://github.com/microsoft/vscode/blame/1.42.0/extensions/git/src/git.ts#L1159
and
https://github.com/microsoft/vscode/blame/1.46.0/extensions/git/src/git.ts#L1217
This block changed
from
		if (paths && paths.length) {
			args.push.apply(args, paths.map(sanitizePath));
		} else {
			args.push('.');
		}

to
		if (paths && paths.length) {
			for (const chunk of splitInChunks(paths, MAX_CLI_LENGTH)) {
				await this.run([...args, '--', ...chunk]);
			}
		} else {
			await this.run([...args, '--', '.']);
		}

The first one passes arguments through sanitizePath, second one does not look so.
This commit looks like the one, that removed call to sanitizePath
https://github.com/microsoft/vscode/commit/93b50c021106ed6a4712eb1c93a0baed98f64353

It is working in 1.43.0 for me, but started happening after that 1.44,2 - 1.46.0. I am using Windows 10, git version 2.25.0.windows.1. I will update git to the latest version and try again and let you know if that worked.

Upgrading git to 2.27.0.windows.1 did seem to resolve the issue for me. I updated. added and deleted files and all three scenarios worked.

@strowk Please update Git to 2.27 and let us know how that goes.

After upgrading to git 2.27, I can confirm that for me, the issue was resolved.


Rust code compiles more than once

This task is automatically imported from the old Task Issue Board and it was originally created by Michał Urbańczyk.
Original issue is here.

No description provided.
Comments:
Wojciech reported that he observes that Rust code compiles more than once even hen no change is made to the code while using the watch command.
Exact scenarios and resolution shall be discussed at a later date (after the release). (Michał Urbańczyk - Nov 1, 2022)

There is no watch for the Rust code anymore, so the issue is no longer relevant.


False-positive for 'no-unused-imports' for wildcards with extension functions

When allowing wildcard imports and using one to import all extension functions from a package the import is tagged as unused even when an extension function from it is in use in the code.
This is with:

ktlint 0.43.2
both Kotlin 1.5.31 and 1.6.10

Attached is a minimal gradle project that exemplifies this.  Just run ktlint -v in the project root and you should get:
$ ktlint -v
.../app/src/main/kotlin/import_use_bug/App.kt:3:1: Unnecessary import (no-unused-imports)

This occurs whether there is just a single extension or multiple extensions defined in the extensions package.
TIA.
import-use-bug.zip

This problem is a duplicate of #1256. The lastest attempt to solve it, in PR https://github.com/pinterest/ktlint/issues/1277, is currently stuck.


Support for Win32 .NET

Hi everyone,
do you plan to support Win32 .NET, too? Currently certain features such as capturing screens of other apps require me to stick to Win32 for now.
Thanks in advance,
Robert

+1 for support for .NET desktop app

Screen capture is available in UWP as of RS4: https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/screen-capture
For .NET desktop support we have a basic DataChannel sample available today if that's all you need.  Audio/video support is planned but we don't have a timeframe yet.

Issue moved to webrtc-uwp/webrtc-uwp-sdk #36 via ZenHub


getInitialPushPayload() throws error at app start

Describe the bug
When opening the app on Android from the launcher (not tested on iOS right now), at device ready, getInitialPushPayload() throws error with empty 'error' object. Then the app works ok and also detects foreground notifications.
If the app open trough a push notification, the error is not thrown.
To Reproduce
Code used at device ready (as in the example app):
// Push notification handlers
FCM.getInitialPushPayload()
	.then((payload) => {
		if(payload.wasTapped){
			// do stuff
		}else{
			//Notification was received in foreground. Maybe the user needs to be notified.
			// do different stuff
		}
	})
	.catch((error) => {
		  alert(JSON.stringify(error, null, 2));
	});

Expected behavior
No errors at app startup.
Screenshots
NA
Environment (please complete the following information):
Everything @latest<EMAIL_ADDRESS><EMAIL_ADDRESS>this plugin @7.3.0, ...)
Also, one last note about a different issue: the app gets installed with "Enable sound" disabled, so all the notifications channels I create will never have a sound. The system I am testing on is a Xiaomi running Android 10.

For the last issue, the "Allow sound" on notifications, looks like it's strictly related to Xiaomi MIUI OS, some references below:
https://stackoverflow.com/questions/53150950/enable-sound-button-in-notification-channel
https://stackoverflow.com/questions/57882970/android-push-notification-sound-is-missing-not-working-background-and-foregro
https://stackoverflow.com/questions/58715149/push-notifications-with-no-sound-on-miui
https://stackoverflow.com/questions/59669451/android-check-if-allow-sound-notification-setting-is-enabled-programmatically

To anyone experiencing such issue, I managed to debug and get the error: it was thrown on check of if(payload.wasTapped). Apparently at app launch getInitialPushPayload gets triggered with a null payload, so all I had to do was to add a check on that:
	FCM.getInitialPushPayload()
	.then((payload) => {
		// Check if payload is an object, solves the error thrown at startup
		if(typeof payload === 'object' && payload !== null) {
			if(payload.wasTapped){
                               .... do your stuff ....
                        }
                 }
           }.catch(...)

Hope this helps!
Still no luck with notificaiton sound on MIUI devices. There is a way to have it automatically activated, but I think it will need some works at plugin-level.

Thank you for reaching out.
The documentation was updated, to avoid confusion in the future (https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/blob/master/README.md#fcmgetinitialpushpayload)
FCM.getInitialPushPayload() returns a promise.
The promise must be either resolved or rejected.
Not having any data, is not an error, so resolved it is.
Having no data is more of a null, as of the absence of data, than an "empty object".

I've created an issue specific to the sound problem. #169

Hi! With getInitialPushPayload() I always get null result...
In some states are normal but after kill app, open notification then open app and it must return payload if I am not wrong
I am testing over ionic V3 example of this plugin and iOS device. What is it happening?


Could you show me a sample code on how to integrate cfscrape with sqlmap

Dear Anorov, thank you for your response. I am new to cfscrape and can not find any sqlmap clue in readme file. Could you show me a sample code on integration of cfscrape and sqlmap? Thank you very much!

From the sqlmap wiki :
--cookie=COOKIE     HTTP Cookie header value
--cookie-del=COO..  Character used for splitting cookie values
--load-cookies=L..  File containing cookies in Netscape/wget format
--drop-set-cookie   Ignore Set-Cookie header from response

This means that the tool supports external cookies, and this how you'll interface it with cfscrape. First, you get the cookies from cfscrape after it has completed the challenge, then you pass them to sqlmap.
An interesting option is --load-cookies, which means it would be possible to share a cookie jar between the two tools which sounds like the easiest way to get going.
No demo code though, if you want to run massive penetration testing against hosts you don't have control over, I think you should be able to figure the rest yourself ;)

Hi, dear friends and support team, I have a storage question which need to ask for your help.
I have write the following code, named as sampl4.py
import cfscrape

proxies = {"http": "http://localhost:8080", "https":"http://localhost:8080"}
request = "GET / HTTP/1.1\r\n"
cookie_value, user_agent = cfscrape.get_cookie_string("http://s1.sohucnc.com")

tokens, user_agent = cfscrape.get_tokens("http://s1.sohucnc.com/", proxies=proxies)

print tokens

result = subprocess.check_output(["curl", "--cookie", cookie_value, "-A", user_agent, "http://s1.sohucnc.com"])

# quit()

request += "Cookie: %s\r\nUser-Agent: %s\r\n" % (cookie_value, user_agent)

print request
print "============="

The following is the running result
———————————————————————
{'cf_clearance': '', '__cfduid': ''}
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   122    0   122    0     0    830      0 --:--:-- --:--:-- --:--:--   835
GET / HTTP/1.1
Cookie: cf_clearance=; __cfduid=
———————————————————————
However, in my burp suite, it shows a valid cfduid but still without cf_clearance.
So, what is wrong with my script? How could I get a valid cfduid and cf_clearance? I need your help.

I have found python-scripter could intercept and modify http request data. So I need your help to guide on how to integrate cfscrape with python-scripter of burp suite because cfscrape module and python-scripter use different data types to get and send out http request data.
Thank you

Please don't use the issue tracker for basic programming help. I would recommend using Stack Overflow instead. All of the information you need can be found in the README.


Release new podspec to cocoapods repo

I noticed the podspec hasn't been pushed to the cocoapods repo for a long time. I would gladly help you with it (I use this podspec in my own library, right now I setup my own pod spec repo to do that).

Released new pod as YAJLO. See new README.


Minor cleanup

Clean-up flake8 and docs configs

Might be good to briefly summarize using tomli vs toml in the previous version for someone like me that isn't familiar with the need to change it.

Might be good to briefly summarize using tomli vs toml in the previous version for someone like me that isn't familiar with the need to change it.

tomli was the library that was chosen in PEP 680 to be incorporated into Python 3.11+ as the standard toml parsing library over the "toml" package. Thus in Python 3.11+ toml parsing will become a standard feature of Python whose interface and behavior will match the tomli package. So it makes sense to switch over to the library which will become the standard, as it involved such a minor change.

Note that the "toml" package/library was originally created and maintained by PyPi to handle pyproject.toml files for pip. However, PyPI has since switched pip over to using tomli exclusively, and so support for the "toml" package has mostly ended, for example it does not full support TOML v1.0.0 (of the format) unlike tomli which does.

Just the thing about autoflake, looks good otherwise

Wow, that happened (recently) after I started using it for other ASDF projects. I guess I am behind and need to update all those ones now.


Update build.xml file to include newer bumblebench additions to jar file

arraycopy (https://github.com/AdoptOpenJDK/bumblebench/tree/master/net/adoptopenjdk/bumblebench/arraycopy) needs to be added to the build.xml file for inclusion into the BumbleBench.jar file

Missed closing this one, fixed via https://github.com/AdoptOpenJDK/bumblebench/pull/26


Publish a new NuGet package for C# code

Hey, we take a dependency on this repository for React Native for Windows.  Somebody released a package on NuGet: http://www.nuget.org/packages/Facebook.CSSLayout.  Any thoughts on having a Facebook managed NuGet package?

cc @pragmatrix who setup the package. I'd be happy to use it as the official one.

Wasn't sure if @pragmatrix 's package had forked behavior, but if not, then I'm happy with anyone publishing the package!

@pragmatrix built the C# support :)

:+1:

Hi, I've released the FaceBook.CSSLayout package on NuGet, it has no forked behavior. And I am happy to transfer it over to facebook or publish it directly. I'd suggest to align the NuGet packages with the github releases made by @ColinEberhardt (the last one was in November 2015).
@ColinEberhardt Can we release the current master as a new, "official" release, probably with a significant higher version number like (2.x) to indicate that there are API changes?

Good idea @pragmatrix - the project really needs a new release. There are two problems with the process right now:

The release process is manual, although only 4 steps (https://github.com/facebook/css-layout/blob/master/dist/README.md)
The release process is not automatic, i.e. someone has to decide it is time to create a release.

An alternative solution I've started using on a few other projects is semantic release:
https://github.com/semantic-release/semantic-release
This ensures that any code merged to master is versioned and released. In order for this to work effectively you have to enforce a semantic commit message format so that the plugin can determine how to update the version number and generate release notes. Although it does solve both problems above.
NuGet releases would likely have to be performed manually, but at least the core library would have regular releases.

@pragmatrix would be great to get a 2.x NuGet package, definitely have been breaking changes since November release.

I've published a "prerelease" package with the version number 2.0.0-pre to NuGet: https://www.nuget.org/packages/Facebook.CSSLayout/2.0.0-pre and will do further prereleases when important changes happen in the master branch and as long the release process is not defined.

Awesome!  Thanks @pragmatrix.


No validation for  inactiveAfter value greater than excludeBefore value in idle users identification API

Describe the issue:
Try this API with the following conditions

inactiveAfter value greater than excludeBefore
inactiveAfter value less than excludeBefore
https://is.docs.wso2.com/en/next/apis/idle-accounts-identification-rest-api/#tag/Get-inactive-users/operation/getInactiveUsers

Ideally inactiveAfter value less than excludeBefore case should return 400, but getting 200 response

Fixed with https://github.com/wso2/identity-api-server/pull/590


feat(typescript): Export all interfaces and types from glamorous.d.ts

closes #108
What:
Exports all interfaces and types used in glamorous.d.ts
Why:
They are handy to use in code, in particular I was constructing a styles object before passing it to a glamorous built-in DOM component factory and wanted access to the CSSProperties interface.
How:
Exporting all interfaces and types in glamorous.d.ts and setting up a test file to ensure all these are available.
Checklist:

[ ] Documentation N/A
[x] Tests
[x] Code complete
[ ] Added myself to contributors table N/A
[x] Followed the commit message format

Codecov Report

Merging #158 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #158   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          10     10
  Lines         138    138
  Branches       35     35
=====================================
  Hits          138    138

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 272df7f...74d33c3. Read the comment docs.


Points are not updating, leaderboards are empty

I mentioned this issue in a closed thread a few days ago, but I think this is actually a different problem.
My sequences uploaded since Friday the 21st are having no points calculated. Checking other users' profiles, this seems to be the case for everyone. Also, the leaderboards for daily and weekly are empty because of this.

I am experiencing the same issue and it appears to be affecting all the other accounts/profiles I’ve seen.

Ditto. Of course it happened during holidays...

No daily, no weekly, no monthly leaderboard. No data was found! Reload or go Back

Yes, No updates after 27th Dec, every time it upload, it show's nothing, uploaded almost 4-5 new route.

I suddenly have points again, and all the leaderboards seem up-to-date!

There was a glitch in the points system that we didn't catch during the holiday break, sorry folks. Points are back up and should be retro-actively assigned to your uploads.
I will leave this issue open in case you still experience issues with the leaderboards @Approksimator @pkoby ?

Everything is ok! Closed!

All good, thanks!


Sameer/optional whitelist quiz

Purpose
Make AllowList Optional
https://user-images.githubusercontent.com/43687814/216797098-56b47fed-3fd7-4d3c-91a0-e89de90bd2da.mov

BACK BUTTON - can you add a back button to the first screen so users can go back to the Roadmap page?


prometheus.exporter.snmp dynamic targets support

PR Description
Add an argument targets to support passing targets at runtime to the exporter.
Also add integration tests to cover both ways of passing targets.
Which issue(s) this PR fixes

Related to https://github.com/grafana/alloy/issues/273
Related to https://github.com/grafana/alloy/issues/289
Fixes https://github.com/grafana/alloy/issues/954
Notes to the Reviewer
I added an additional argument because replacing the target block would be a breaking change.
PR Checklist

[x] CHANGELOG.md updated
[x] Documentation added
[x] Tests updated
[x] Create an issue to eventually delete the target block when switching to a major version

When I was thinking about how to do this so it wasn't a breaking change, I pictured adding a name attribute to the target block. This attribute would be used if set to override the block label. Did you consider this or was there a downside to it?

I was unaware of this issue, it's a happy accident that it fixes it :) The problem with the block is that you cannot have a dynamic list of targets. Every time you want to add a new target, you need to update your config to add a new block. This is not very practical for users that have a big list of targets that changes a lot (see the feedback from Brainlab). That's why I decided to get rid of the block for a prometheus.scrape style.

I would love to see the converter code make use of the new field so that

it converts people to the way of the future
the conversion doesn't have to manage translating to a valid river identifier which has some potential edge cases

I will make the change :)

@erikbaranowski @clayton-cornell fyi I added another example to the doc with the discovery.file. It's a lot of examples better too many examples than too few. I think that it will help the users

It's a lot of examples better too many examples than too few. I think that it will help the users

More than one example is a good thing. :-)

@erikbaranowski I found a bug: the Validate function was not called (this component is a bit special, it has its own UnmarshalAlloy function). I move the validate code there and remove the validation for exclusivity because passing an empty list of targets is a valid scenario since the list might be populated at runtime

@erikbaranowski @clayton-cornell sorry to drag this down but I realized that it would be better not to allow users to pass targets via discovery components without the need to use a discovery.relabel to relabel the address. I made this change in my last commit