Buff ores, add quartz

About the PR

doubles ore counts for expeditions because the rocks were sad and boring.
adds quartz as random gen because it wasn't in there for some raisin and i need glass
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

:cl:

add: Quartz now generates on planets.
tweak: Greatly increased the amount of ore that generates on planets. Grab your picks!

banana


Task.Result throws on incomplete task

If you try to access .Result of an incomplete Task in Bridge, you get an error:

Task is not yet completed.

In C#, this would block and wait for the result.
I don't know whether you can implement this reasonably (without burning CPU in a loop like you do for Thread.Sleep but since I couldn't find an existing discussion about it I thought it was worth raising. The ideal would be rewriting the calling code, but I suspect that's non-trivial or it would've been done for Thread.Sleep?

Hi @DanTup – Thanks for taking the time to report this issue. We will investigate and see what we can do to fix the problem.

Spinning in a loop (like Thread.Sleep) probably wouldn't actually work because it'd stop the Task ever completing (it would also be really undesirable; I think it's ok in Thread.Sleep because it's probably not used outside of test code), so the solution is probably going to be really complicated.
This isn't blocking me (I changed my code to pass in a callback and then await the Task, then call the callback with the result) so don't worry about spending effort on this on my account :-)

Hi,
What about just await task instead of reading Result?
Just var result = await task; instead var result = task.Result;

That's what I've done (last line of my previous comment); but since this behaviour (throwing) is different to C# I thought it was worth having an issue about (even if you don't/can't change it, others might come here looking; or maybe you want to document it if you have a list of known differences).
The best fix is definitely for the developer to await the task; but in C# it's an easy/lazy way to block waiting for a task if you're running somewhere you can't await (eg. in a C# console app, the Main method can't be async/Task-returning). Presumably .Wait() has the same issue (though I haven't tested).
I don't think you can (reasonably) fix this tbh!


Bug: Branch protection rules inherit

When we create a new project based on a template, the branch protection rules are not replicated.

We can close it


drop support for favicons

It's something I suggested in #710, The support for advanced favicon is working but that's an extra burden in the lib that generated multiple issues.
There is a sphinx extention that already exist, use more or less the same configuration and seems to work very well: https://github.com/tcmetzger/sphinx-favicon
What would you think if we drop the favicon support from here and suggest the use of this extention instead ?
Pros:

The issues related to favicon will be send directly to the appropriate extention
that's the same parameter (copy/paste the content of html_theme_options["favicon"] into favicons)
if new user start using our theme from elsewhere with sphinx-favicon it will work out of the box

Cons:

it forces users to install an extra extention
users that already rely on our favicon parameter will be forced to tune their doc when we drop it

If you agree I will do some house keeping in the extension repository and update our documentation accordingly.
What do you think ?
cc @tcmetzger as he's the maintainer of the extention.

Assuming it works well, +1 for not duplicating effort when there's an existing sphinx extension. IMO reducing our maintenance burden is an acceptable reason to ask users to install another small package, and we can be nice about the transition (do a deprecation cycle for the conf.py config; communicate loudly about it at release time; etc)

To clarify, you just mean drop support for fancy multi-scale etc favicons. Favicon support is built into Sphinx itself at a basic level. Right?
If so, then I'm +1 on this for sure. If an extension exists that does the same stuff, we should just document the use of this extension for this functionality rather than support it with custom code.

you just mean drop support for fancy multi-scale etc favicons. Favicon support is built into Sphinx itself at a basic level. Right?

yep, that's correct.

Thanks to @12rambau's help, I have just released version 1.0 of Sphinx Favicon!


Error running sonobuoy

What steps did you take and what happened:
Who knows why we reported a log error while running sonobuoy?
the error is：
time="2019-06-19T11:41:04Z" level=error msg="error querying pod logs under namespace heptio-sonobuoy: the server rejected our request for an unknown reason (get pods sonobuoy-e2e-job-7d478649056a4bc3)"
What did you expect to happen:
Anything else you would like to add:
When I ran the e2e use case for k8s, I found an error. Do you know why?
[k8s.io] [sig-node] PreStop
/workspace/anago-v1.14.3-beta.0.37+5e53fd6bc17c0d/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:687
should call prestop when killing a pod  [Conformance] [It]
/workspace/anago-v1.14.3-beta.0.37+5e53fd6bc17c0d/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:692
waiting for server pod to start
Unexpected error:
<*errors.errorString | 0xc0002befb0>: {
s: "timed out waiting for the condition",
}
timed out waiting for the condition
occurred
Unexpected error:
<*errors.errorString | 0xc0028d03f0>: {
s: "expected pod "pod-configmaps-b046b489-929e-11e9-af6f-4a925cca4061" success: Gave up after waiting 5m0s for pod "pod-configmaps-b046b489-929e-11e9-af6f-4a925cca4061" to be "success or failure"",
}
expected pod "pod-configmaps-b046b489-929e-11e9-af6f-4a925cca4061" success: Gave up after waiting 5m0s for pod "pod-configmaps-b046b489-929e-11e9-af6f-4a925cca4061" to be "success or failure"
occurred
Environment:

Sonobuoy version: 0.14.3
Kubernetes version: (use kubectl version):1.14.3
OS (e.g. from /etc/os-release): 16.04.4 LTS (Xenial Xerus)

I thought I was in China and I couldn't access the gcr.io, so I solved the problem by downloading the corresponding image to the local place.
Does anyone have a better way to get a GCR mirror?

https://github.com/kubernetes/kubernetes/issues/56038 seems to be about that type of problem with k8s in general. I'd checkout that thread and seek guidance in some of the k8s channels on slack.


Use Case: Two-Stage Delete or Ingest

aka. "Trash Bin" and "Empty Trash Bin"

Title (Goal)
Two stage delete or ingest

Primary Actor
Collection Manager

Scope
Workflow

Story
As a repository manager, i want to have the option to publish and unpublish nodes or content so that i can remove access to nodes and content before permanently deleting them.

Related:

this is the end-of-lifecycle version of: https://github.com/Islandora/documentation/issues/1938

Just a addition to this. How about an "Empty Trash Bin in 30/60/90/365 days" delay or a continuous cron to "Purge objects from Trash Bin if delete date is older than 30/60/90/365 days"? I think that would be useful for those that like to schedule tasks at using the semester terms.

@rosiel fyi, I've seen https://www.drupal.org/project/trash but haven't tried it.


Back out "RN: Adopt Mapped Types in EventEmitter"

Summary:
Currently, metro-config does not have hermes-parser enabled by default. This is because hermes-parser does not yet support parsing all of TypeScript's syntax nodes.
However, this also means we cannot yet utilize any Flow langauge features that require the use of hermes-parser (and are unsupported by Babel). Mapped types falls into this category, so we cannot use them.
This backs out a recent change that tried to adopt Flow mapped types in EventEmitter, for now. We can revisit after making the necessary changes to metro-config.
Changelog:
[Internal]
Reviewed By: pieterv
Differential Revision: D47729818

Merged as https://github.com/facebook/react-native/commit/aa474847ec2d5fb35c81b39a1216916a7ae22177


libz from build_env linked

netgen needs to be rebuild with occt7.3 because zlib from the build_env is linked. Maybe using build.merge_build_and_host: true

https://github.com/conda-forge/netgen-feedstock/pull/12


Check for previous/existing GitHub issues/module proposals

[X] I have checked for previous/existing GitHub issues/module proposals.

Check this module doesn't already exist in the module indexes

[X] I have checked for that this module doesn't already exist in the module indexes.

Bicep or Terraform?
Terraform
Module Classification?
Resource Module
Module Name
avm-res-network-applicationgatewaywebapplicationfirewallpolicy
Module Details
AVM Resource Module for Application Gateway Web Application Firewall (WAF) Policy
Do you want to be the owner of this module?
No
Module Owner's GitHub Username (handle)
No response
(Optional) Secondary Module Owner's GitHub Username (handle)
No response

@PmeshramPM I can be the owner of this module

@cshea-msft this should create waf policy using this rp https://learn.microsoft.com/en-us/azure/templates/microsoft.network/applicationgatewaywebapplicationfirewallpolicies?pivots=deployment-language-arm-template

@prjelesi  ok so it's just creating a Web Application Firewall. https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/web_application_firewall_policy
@mofaizal is the owner of the appgw module, so he might want to own this.

This module doesn't make sense. The firewall policy is a dedicated resource that's shared with other resources.
The output of the waf policy module will be used in the existing appgw module

We are good to go to move this module to dev. @cshea-msft @mofaizal Who is raising hand to own it?

Just in case no one could own this module, I would like to own it.

Just in case no one could own this module, I would like to own it.

Let's wait @cshea-msft  and @mofaizal  to reply.

@prjelesi  i don't need to own it

@mofaizal

@mofaizal
Thanks for requesting/proposing to be an AVM module owner!
We just want to confirm you agree to the below pages that define what module ownership means:

Team Definitions & RACI
Shared Specification (Bicep & Terraform)
Module Support

Any questions or clarifications needed, let us know!
If you agree, please just reply to this issue with the exact sentence below (as this helps with our automation 👍):
"I CONFIRM I WISH TO OWN THIS AVM MODULE AND UNDERSTAND THE REQUIREMENTS AND DEFINITION OF A MODULE OWNER"
Thanks,
The AVM Core Team
#RR

"I CONFIRM I WISH TO OWN THIS AVM MODULE AND UNDERSTAND THE REQUIREMENTS AND DEFINITION OF A MODULE OWNER"

here's a sample here that passes static code checks (tflint, grept etc)
https://github.com/kewalaka/terraform-azure-avm-res-network-applicationgatewaywebapplicationfirewallpolicy

@kewalaka  Thanks for your support, here is the Repo link to PR https://github.com/Azure/avm-res-network-applicationgatewaywebapplicationfirewallpolicy


[move-prover] Organized the tests

Replaced the outdated Move stdlibs with new ones
Deleted the legacy mvir test files which have been ported and no longer necessary
Added more test cases regarding nested resources with multiple fields (porting from some leftovers)
Added README.md in the test folder move-prover/tests
Updated the commands in scripts/README.md to set the env variables properly.

Motivation
To clean up and organize the test folder of move-prover
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
cargo test

@bors-libra r=wrwg

:pushpin: Commit 8a81ca9 has been approved by wrwg

:hourglass: Testing commit 8a81ca99b57d79134d20b398e3e666c36308afdc with merge cb00fc110121d8cf40518b1c8448647abaa53596...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: wrwg
Pushing cb00fc110121d8cf40518b1c8448647abaa53596 to master...


Pillar (with labs)

What does this change?
Replaces the Pillar value from @guardian/types with a locally defined one that is very similar but that includes labs
Why?
Because DCR needs labs supported. There is an open PR to add labs to the /types repo but I want this to be a discussion and so by creating this workaround we remove the dependency and allow the PR time to be discussed if needed.

 Atoms rendering uses Pillar


Add screenshots please

add at least 1 screenshot to readme.md

You have the whole Luke Smith channel.

thats ok, but repository has to have screenshots


export names with all

Export package level exports using __all__ https://docs.python.org/3/tutorial/modules.html#importing-from-a-package
Checklist:

[x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
[x] Add or update relevant docs, in the docs folder and in code.
[x] Add an entry in CHANGES.rst summarizing the change and linking to the issue.
[x] Add .. versionchanged:: entries in any relevant code docs.
[x] Run pre-commit hooks and fix any issues.
[x] Run pytest and tox, no tests failed.

Thanks, but we don't do this.

@davidism Any reason for not accepting this patch ?


Add steam authenticator support

This branch adds support for extracting and generating andOTP backups for steam authenticator codes.
Since the generation of steam codes is a slightly modified one, I had to denote the codes being steam codes by inserting 'steam-' at the beginning of their names. Ideally I think that adding an 'issuer' value to each code is a better solution, but I'm not familiar enough with any of the other authenticators to get it working properly.

I've updated the README so the steam changes and last PR modifications are better documented, I think this is ready to go now.

I think adding an issuer parameter would be a better solution than encoding it in the name itself. Does Steam's algorithm require anything else besides the data in shared_secret?

The only data steam's algorithm requires is the shared secret.
Perhaps a type attribute would be better? Could be 'STEAM' for the steam codes and 'TOTP' for the other ones, just like it's done in andOTP.

Thanks, it looks fine to me.


Save chat contents

Validations

[X] I believe this is a way to improve. I'll try to join the Continue Discord for questions
[X] I'm not able to find an open issue that requests the same enhancement

Problem
I've had a good chat with my AI. I'm ready to change the subject and talk about something new but my current chat was extensive and I want to refer back to it later.
Solution
Offer a button to export the chat to a markdown file.

@explorigin There are a couple of ways that you can do this. First, whenever you start a new chat, it will be saved and you can go back to it by going to the history page (icon in the top right of the sidebar). The second option is to use the "/share" slash command, which will actually export the chat as a readable markdown format

/share works beautifully!


feat: add it-tools service template and logo

Changes

Add it-tools service template and logo

Thank you for the PR! I will change it a bit and test it if it works!


Proposal: Add InjectionCaller to allow nested injection scopes

For better or worse, I often call API functions from elsewhere in my API in a nested fashion (API function A calls API function B). Dependency injection means that the "parent" function is handed any dynamic variables/parameters it needs, but the "child" function must have them supplied explicitly.
A concrete example of this is a GraphQL endpoint. The GQL endpoint is one of a number of HTTP-routed API functions that receive normal dependency injection. But the GraphQL endpoint might expose a number of mutations that themselves call (or are) other API functions. The endpoint, which receives the injected variables, doesn't directly call the mutations (graphene has its own resolver system), nor can it optimistically request all the dependencies that the nested API functions might possibly require. What we want in this case is a way to load the current "injection context" at runtime and reuse it to call other API functions.
The challenge of designing a component that allows this runtime injection is that we want the state of the "parent" call to be available to the "child" injection function, and components are typically bound/introspected before that state is known. For example, if the parent parsed an HTTP request header, we want that available to the child.
So here I have one proposal for how to make this work: the InjectionCaller component. I'm still getting my bearings with the framework so I'm not sure this is compliant with "the API Star way" and would welcome thoughts.
Here's an example, see the unit test for a more complete one:

def api_function_1(user: AuthenticatedUser):
    """
    This is one of my api functions that uses injection to authenticate a user
    """
    do_something_with_authenticated_user(user)

def api_function_2(call_with_injection: InjectionCaller):
    """
    This is another api function that one way or another needs to call the first function
    but doesn't necessarily know what injected parameters it requires
    """
    # this call will properly parse the authenticated user even though it
    # wasn't passed to this scope
    call_with_injection(api_fuction_1)

Yup, we absolutely will need something along these lines.
For cases where you're explicitly calling into a function you can just include the requirements in both places, however there's cases where you want to be able to provide a generic "call into this thing" where we need this.
Not sure if this is how I'd want to tackle it or not - would need some further through before progressing it. In the meantime you could maintain an alternative Injector in your own codebase, and use that with the app, using INJECTOR_CLS = ...

Figured this was an early stab -- glad to hear it's on the roadmap! I'll close this for now and use this class for my own INJECTOR_CLS in the meantime, as you suggested. Thanks!

👍


Node.js-like module resolution doesn't follow parent paths

When I have following environment

parent

node_modules

my-proper-external-module

index.d.ts
index.js

my-application

index.ts (import m_p_e_m from 'my-proper-external-module')

It couldn't resolve where the my-proper-external-module is.
It should work according the proposal (https://github.com/Microsoft/TypeScript/issues/2338) and the source code(https://github.com/Microsoft/TypeScript/blob/b95e1ff6d8656693c80ac54a15893c3ad4859762/src/compiler/program.ts#L125).
I think it's come from by the directory which the loadModuleFromNodeModules have is empty string. It is an empty so it can not follow recursively.
Below is my tsconfig.json
{
  "compilerOptions": {
    "target": "ES5",
    "module": "commonjs",
    "moduleResolution": "node"
  },
  "files": [
    "./a.ts"
  ]
}

Got it.
When if I compile like this
tsc --project .

doesn't work. But when if
tsc --project $(pwd)

works.

looks like this is fixed in master. can you give typescript@next a try?

Doesn't work for me
https://github.com/heycalmdown/typescript-5102/tree/master

Same issue with some angular2 users who put their tsconfig.json under a src folder.
Workaround is to run tsc from the parent directory and use the -p flag.

should be handled by https://github.com/Microsoft/TypeScript/pull/5275

fixed in e811fecda645cd7905821d48fcf5f757dbedfa50

@alexeagle and @heycalmdown can you give tomorrow's typescript@next a try?

Sure, I was waiting your go sign.


The seasons don't change

Describe the bug
If I modify any value in calendar.yml to be higher, like the number of minutes a game day lasts, or how many game days a season should last, the seasons stop changing. In order for the seasons to continue to change, I need to reset all the values to their defaults.
How to reproduce
Modify any value indicating the time in calendar.yml to a higher one, the seasons will stop.
Screenshots / Videos
No response
Server Log
No response

for me the season not change from winter to spring
this makes the season plugin rly bad
pls fix this fast as posibile.

Describe the bug
If I modify any value in calendar.yml to be higher, like the number of minutes a game day lasts, or how many game days a season should last, the seasons stop changing. In order for the seasons to continue to change, I need to reset all the values to their defaults.
How to reproduce
Modify any value indicating the time in calendar.yml to a higher one, the seasons will stop.
Screenshots / Videos
No response
Server Log
No response

@efor89 can you share your configuration? It's definitely something with configuration, it's working alright for me with testing.

@HokoriStan Any worldguard region will be ignored.

Here is my configuration:
config.txt
calendar.txt

i watch now if it is better changing.
the last winter spring change was working so i w8 for 1 more change.
current its summer, on 26.05 it change from winter to spring again.
i tell you if it works again.

@kubiiikk is your problem solved? I noticed that this issue is from Apr 1, since that date five updates were released, maybe your problem was fixed.
If not. I can't reproduce the bug with your configuration. Can you make a video reproducing it?

@Ynverxe Unfortunately no, the updates didn't fix the problem. Simply by increasing any value in calendar.yml, the seasons stop at the current one, and I can jump to the next one just by using the command.
The video will be longer, but I will record it in a few hours as soon as I get to the server.

Although I don't understand how when it never helped before, after resetting the calendar.yml I'd say it works. I'll let it run and let you know tomorrow morning if it works without any issues.

After restarting the server in the morning (3:00) the seasons do not change again, there is not a single mention in the log (I have events set for every month). During the day, I tried to change the settings and length of days, only the default setting works.

this time summer to fall was not working.
but i change the default temperatur 2 days ago i dont know if this is a problem.

@GC-spigot Hi, is there any update for this problem? Seasons are still half functional regardless of version. Whether I have the plugin updated to the latest version or not, it doesn't matter at all, February will pass easily 3 times in a row and immediately after that it will skip straight to winter, after that only manual setting of the month via the command will help. Although the issue is still open as a bug, it has been almost 3 months without any correction of my problems. So will anything happen with it? Thanks.

i dont know a lot of time the season not change and i have to do it by my self

the season change works now much better


discover() socket error

When running soco.discover(), I get an error.
I installed Python 2.7.12 on Windows 10.  Then I ran pip install soco.  This installed SoCo 0.12.  I then ran the following:
`
C:\Python27\Lib>python
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import soco
soco.discover()
Traceback (most recent call last):
File "", line 1, in
File "C:\Python27\lib\site-packages\soco\discovery.py", line 123, in discover
list(s.getsockname()[0] for s in _sockets))
File "C:\Python27\lib\site-packages\soco\discovery.py", line 123, in
list(s.getsockname()[0] for s in _sockets))
File "socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 10022] An invalid argument was supplied

`

Thanks for the report. It looks like this is the same as #445, which has just been fixed in the development version. Are you able to try the most up-to-date checkout from GitHub? I'll mark as closed for now, but please re-open if you continue to have problems.

I am not familiar with pythin but I downloaded the master repo
executest setup.py build then setup.py install
Here is the last output (everything looks fine)
Installed c:\python27\lib\site-packages\soco-0.12-py2.7.egg
Processing dependencies for soco==0.12
Searching for xmltodict==0.10.2
Best match: xmltodict 0.10.2
Adding xmltodict 0.10.2 to easy-install.pth file
Using c:\python27\lib\site-packages
Searching for requests==2.12.1
Best match: requests 2.12.1
Adding requests 2.12.1 to easy-install.pth file
Using c:\python27\lib\site-packages
Finished processing dependencies for soco==0.12
Then I executed the spl.py again, the bug seems stil be there.
C:\Users\User\Downloads\spl>spl.py
Traceback (most recent call last):
File "C:\Users\User\Downloads\spl\spl.py", line 446, in
spl = SPL()
File "C:\Users\User\Downloads\spl\spl.py", line 260, in init
zones = soco.discover()
File "build\bdist.win32\egg\soco\discovery.py", line 123, in discover
File "build\bdist.win32\egg\soco\discovery.py", line 123, in
File "C:\Python27\lib\socket.py", line 228, in meth
return getattr(self._sock,name)(*args) E
socket.error: [Errno 10022] An invalid argument was supplied

Hi Marcin,
Where did you download from? If you downloaded a release version, that is  the same as the one you got from pypi. You actually need the development version, which you can get by using git, or by using the green "clone or download" button on the repository front page.
Note, you don't need to use setup.py build, only setup.py install

My mistake I took the release 0.12 version from https://pypi.python.org/pypi/soco/
So now I am getting the real master version 0.11.1 and with this version I cannot reproduce the bug.
Thanks @lawrenceakka.

After installing the master branch version by executing this command
setup.py install
The soco package is labeled with 0.11.1 but the latest releast version is 0.12.
C:\python2.7\Scripts>pip list
pip (8.1.1)
requests (2.12.1)
setuptools (20.10.1)
soco (0.11.1)
xmltodict (0.10.2)

Is the master branch version really 0.11.1 or 0.12.x ? Maybe I did something wrong during intallation from sources.

hi i get the same error. i downloaded the master branch (Version 0.11.1) and executed "Setup.py isntall" and pip install requests.
Any news to this issue?

I think someone forgot to update the version string after last release. I have now changed it to say "0.12+", so that it will be possible to infer development status from the version string alone.
From what I can gather from the comments, this issue is resolved in the development version, so it is just about waiting for the next release. You can follow the discussion surrounding that here #442.


Close icon not appearing on search page

Describe the bug
Close icon not appearing on search page
To Reproduce
Steps to reproduce the behavior:

Go to search page
Try to search something
You will  see a string inside input box "Close"

String "Close should replaced with a close remove icon"

Issue fixed


How to use v3 microservice?

(I know v3 is still WIP.)
If I start the microservice like
docker run -p 8080:8080 --rm arachnysdocker/athenapdf-service:3

and try to do an inline conversion
http://<IP_ADDRESS>:8080/convert?auth=arachnys-weaver&url=http://blog.arachnys.com/

the only response I get is
weaver/3.0.0<PHONE_NUMBER>)

and nothing gets logged, even if the -D flag is set (and it is clearly visible in the logs that debug was set as it states debug=true).
My question is
How to use v3? Is the v3 microservice already functional at all?

@scream314 First, thank you so much for playing around with v3 👍And apologies that it has been quite lacking in both documentation, and updates.
Second, there are some sample cURL requests in https://github.com/arachnys/athenapdf/issues/123#issuecomment-318345714.

http://localhost:5555/process?uri=https://google.com&mime_type=text/html seems to work.


(1.10.2) Space Elevator Bug

I am playing on Forever Stranded <IP_ADDRESS> with optifine and have elevators for the moon, earth, and my space station. When I go to the moon, everything is fine, but when I leave the moon, my

Submit button is really close on mobile. Anyhow, the elevator coming from the moon sticks at y=1000, rendering any other uses unusable. Only way I know to fix this is to apply a backup, yet this is extremely inefficient. Advanced Rocketry is 1.2.7 (update as of June 12, 2017)

I'm having the same issue, I have 2 elevators stuck at y level 999 and 996 which I can't remove. I've broken both the Earth and space station elevator and recreated them without luck.
Also running Forever Stranded but version 1.9.2 (forge <IP_ADDRESS>2) and AR Version 1.2.2.
Will try to move the earth elevator from the x/z location where the elevator is stuck but it breaks the base's design so I'd like to bring it back there.


[firebase_dynamic_links] Links are not opening the app

I tried implementing firebase_dynamic_links into my Flutter project, but as soon as I click on the link on for example Whatsapp, it just links me to the Play Store where my app does not yet exist. Does anyone know why the url doesn't take me to my app on Android?
DynamicLinkParameters parameters = DynamicLinkParameters(
  uriPrefix: 'https://globalpool.page.link',
  link: Uri.parse('http://alexlushiku.com/?pool=${widget.id}'),
  androidParameters: AndroidParameters(
    packageName: 'com.globalpool.globalpool',
    minimumVersion: 25, // TODO: Change minimum version
  ),
  socialMetaTagParameters:  SocialMetaTagParameters(
    title: 'Pool Invite',
    description: 'Invite to ${widget.name}',
    imageUrl: Uri.parse('https://static1.squarespace.com/static/5b551972697a98cf2ceef4b1/t/5b5fac0070a6ad76751cfe42/1532996631929/InviteLogo.png')
  ),
);

await parameters.buildShortLink().then((uri) {
  print('Short: ${uri.shortUrl}');
  Share.share(uri.shortUrl.toString());
});

Flutter Doctor
[√] Flutter (Channel stable, v1.5.4-hotfix.2, on Microsoft Windows [Version 10.0.18362.145], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[√] Android Studio (version 3.4)
[√] IntelliJ IDEA Community Edition (version 2018.3)
[√] Connected device (1 available)

• No issues found!

Opera Touch doesn't seem to support these links. Switching to another browser worked


fix(docs): fix broken links

One link cannot be fixed until this issue is resolved: https://github.com/fern-api/fern/issues/4538

chewing off some, not all. will re-run after this PR is merged and pushed to prod:


"failed to find image information for service" when running an image which uses a service

The lucj/webhooksapp image was built from the following Acornfile. The idea is for webhooks application to be able to use 2 cloud Services (MongoDB Atlas and/or NATS/NGS) if the corresponding flags are provided at launch.
args: {
    // Run tests
    tests: false

    // Use Atlas service
    atlas: false

    // Use NATS / NGS service
    ngs: false
}

if args.atlas {
    services: atlas: {
      image: "docker.io/lucj/acorn-atlas-service"
    }
}

if args.ngs {
    services: ngs: {
      image: "docker.io/lucj/acorn-ngs-service"
    }
}

containers: {
    api: {
        build: {
            target: std.ifelse(args.dev, "dev", "production")
            context: "./api"
        }
        if args.dev {
            dirs: "/app": "./api/"
        }
        if args.atlas {
            env: {
                MONGODB_URL: "@{services.atlas.data.proto}://@{services.atlas.secrets.db-creds.username}:@{services.atlas.secrets.db-creds.password}@@{services.atlas.address}"
            }
        }
        if args.ngs {
            env: {
                NATS_URL<EMAIL_ADDRESS>            }
            files: {
                "/nats/creds"<EMAIL_ADDRESS>            }
        }
        probes: [
            {
                type: "liveness"
                http: {
                  url: "http://localhost:5000/healthz"
                }
            },
            {
                type: "readiness"
                http: {
                  url: "http://localhost:5000/readyz"
                }
            }
        ]
        ports: "5000/http"
        dependsOn: std.ifelse(args.atlas,
          std.ifelse(args.ngs, [""], ["nats"]),
          std.ifelse(args.ngs, ["mongo"], ["mongo", "nats"])
        )
    }

    wss: {
        build: {
            target: std.ifelse(args.dev, "dev", "production")
            context: "./wss"
        }
        if args.dev {
            dirs: {
                "/app/index.js": "./wss/index.js"
                "/app/lib": "./wss/lib"
            }
        }
        if args.atlas {
            env: {
                MONGODB_URL: "@{services.atlas.data.proto}://@{services.atlas.secrets.db-creds.username}:@{services.atlas.secrets.db-creds.password}@@{services.atlas.address}"
            }
        }
        if args.ngs {
            env: {
                NATS_URL<EMAIL_ADDRESS>            }
            files: {
                "/nats/creds"<EMAIL_ADDRESS>            }
        }
        probes: {}
        ports: "8080/http"
        dependsOn: std.ifelse(args.atlas,
          std.ifelse(args.ngs, [""], ["nats"]),
          std.ifelse(args.ngs, ["mongo"], ["mongo", "nats"])
        )
    }

    if !args.atlas {
        mongo: {
            image: "mongo:6.0"
            ports: 27017
            dirs: {
                if !args.dev {
                    "/data/db": "volume://db"
                }
            }
        }
    }

    if !args.ngs {
        nats: {
            image: "nats:2.9-alpine"
            ports: 4222
        }
    }

    swagger:{
        image: "swaggerapi/swagger-ui:v4.14.0"
        environment: {
            BASE_URL: "/docs"
        }
        dirs: "/app/swagger.json": "./conf/openapi.yaml"
        ports: "8080/http"
        dependsOn: ["api"]
    }

    www: {
        build: {
            target: std.ifelse(args.dev, "dev", "production")
            context: "./www"
        }
        if args.dev {
            dirs: "/app": "./www/"
        }
        probe: "http://localhost:3000"
        ports: "3000/http"
        dependsOn: ["api", "wss"]
    }
}

routers: {
    default: {
        routes: {
            "/": "www:3000"
            "/docs": "swagger:8080"
            "/ws": "wss:8080"
            "/wh": "api:5000"
            "/data": "api:5000"
            "/stats": "api:5000"
        }
    }
}

if args.tests {
    jobs: test: {
        build: {
            context: "./api"
            target: "testing"
        }
        dependsOn: ["www", "api", "wss"]
    }
}

if !args.atlas {
    volumes: {
        if !args.dev {
            "db": {
                size: "200M"
            }
        }
    }
}

When I run the app from the Acornfile, providing the --atlas flags, it's working fine, the Service is triggered and the app launched (even if the service remains in "pending create")
acorn run -n webhook . --atlas

But when I run the app from the image generated by the above Acornfile it gives me the following error
# acorn run -n webhook lucj/webhooksapp --atlas
  ✗  ERROR:  App.api.acorn.io "webhook" is invalid: spec.permissions: Invalid value: []v1.Permissions(nil): failed to find image information for service [atlas]

Any idea the reason of this error ?

@cjellick I'm 99% certain that when the Acorn is built with standard args, the conditionals aren't satisfied for the services so those images aren't part of the build. It's building this:
> acorn render .
{
	containers: {
		api: {
			build: {
				context:    "./api"
				dockerfile: "api/Dockerfile"
				target:     "production"
			}
			ports: [
				{
					protocol:   "http"
					targetPort: 5000
				},
			]
			probes: [
				{
					type: "liveness"
					http: url: "http://localhost:5000/healthz"
					timeoutSeconds:   1
					periodSeconds:    10
					successThreshold: 1
					failureThreshold: 3
				},
				{
					type: "readiness"
					http: url: "http://localhost:5000/readyz"
					timeoutSeconds:   1
					periodSeconds:    10
					successThreshold: 1
					failureThreshold: 3
				},
			]
			dependencies: [
				{
					targetName: "mongo"
				},
				{
					targetName: "nats"
				},
			]
			permissions: {}
		}
		mongo: {
			dirs: "/data/db": {
				volume: "db"
				secret: {}
			}
			image: "mongo:6.0"
			ports: [
				{
					port:       27017
					targetPort: 27017
				},
			]
			probes: null
			permissions: {}
		}
		nats: {
			image: "nats:2.9-alpine"
			ports: [
				{
					port:       4222
					targetPort: 4222
				},
			]
			probes: null
			permissions: {}
		}
		swagger: {
			dirs: "/app/swagger.json": {
				contextDir: "./conf/openapi.yaml"
				secret: {}
			}
			image: "swaggerapi/swagger-ui:v4.14.0"
			build: {
				context:    "."
				dockerfile: "Dockerfile"
				baseImage:  "swaggerapi/swagger-ui:v4.14.0"
				contextDirs: "/app/swagger.json": "./conf/openapi.yaml"
			}
			environment: [
				{
					name:  "BASE_URL"
					value: "/docs"
					secret: {}
				},
			]
			ports: [
				{
					protocol:   "http"
					targetPort: 8080
				},
			]
			probes: null
			dependencies: [
				{
					targetName: "api"
				},
			]
			permissions: {}
		}
		wss: {
			build: {
				context:    "./wss"
				dockerfile: "wss/Dockerfile"
				target:     "production"
			}
			ports: [
				{
					protocol:   "http"
					targetPort: 8080
				},
			]
			probes: []
			dependencies: [
				{
					targetName: "mongo"
				},
				{
					targetName: "nats"
				},
			]
			permissions: {}
		}
		www: {
			build: {
				context:    "./www"
				dockerfile: "www/Dockerfile"
				target:     "production"
			}
			ports: [
				{
					protocol:   "http"
					targetPort: 3000
				},
			]
			probes: [
				{
					type: "readiness"
					http: url: "http://localhost:3000"
					timeoutSeconds:   1
					periodSeconds:    10
					successThreshold: 1
					failureThreshold: 3
				},
			]
			dependencies: [
				{
					targetName: "api"
				},
				{
					targetName: "wss"
				},
			]
			permissions: {}
		}
	}
	volumes: db: size: "200M"
	routers: default: routes: [
		{
			path:              "/stats"
			targetServiceName: "api"
			targetPort:        5000
			pathType:          "prefix"
		},
		{
			path:              "/data"
			targetServiceName: "api"
			targetPort:        5000
			pathType:          "prefix"
		},
		{
			path:              "/docs"
			targetServiceName: "swagger"
			targetPort:        8080
			pathType:          "prefix"
		},
		{
			path:              "/wh"
			targetServiceName: "api"
			targetPort:        5000
			pathType:          "prefix"
		},
		{
			path:              "/ws"
			targetServiceName: "wss"
			targetPort:        8080
			pathType:          "prefix"
		},
		{
			path:              "/"
			targetServiceName: "www"
			targetPort:        3000
			pathType:          "prefix"
		},
	]
}

As a workaround, you could set a --build and do an  if args.atlas || args.build. That would pick up the images I think. We should discuss to see if there is something more to do.

@cloudnautique as a workaround I defined a --build args and add it in the "or" condition as you said.
I built the app:
acorn build -t docker.io/lucj/webhooksapp:test . --build

and run it:
acorn run -n webhook lucj/webhooksapp:test --atlas

The app is working now, except the service remains in "pending create" but I think this is related to something else.

@lucj here is the solution to images behind conditionals: https://docs.acorn.io/authoring/images
please let us know if we can close this one.

closing.


Fixes #171 - alpha, digit, ... return proper value on no match

The functions alpha, digit, alphanumeric, space and
multispace returned Done(&input[0..0], input). This was a
problem in recognize, because it uses the pointer offset of
s and t in the returned Done(s, t). This offset would be
zero before and therefore recognize would return Done([], [])
as it was Done(s, &t[..0]).
Now alpha, etc. return Done(&input[input_length..], input)
and therefore recognize returns Done(s, &t[..t.len()]),
which equals Done([], &t[..]).
Someone should probably write a test for this.
Also this functions could be combined into a macro, since they are basically the same except one function and one error in each.

From what I see, this would not break anything, but please add tests for this

Where should I put them, since they involve recognize and digit? (One test is in #171 )

The tests from #171 in the same file as recognize! and the tests for digit and others in src/nom.rs

What test should i write for digit and the others? An offset test for the return value?

yes, please

Done. I checked both tests on current master (5f8af32) and both fail. With the patch both succeed.

Thank you for your help!


BUILTIN_SSH_SERVER_USER config variable not acknowledged by gitea

Gitea version (or commit ref): bae2642
Git version: 2.15.0
Operating system: Docker/CentOS
Database (use [x]):

[X] PostgreSQL

Can you reproduce the bug at https://try.gitea.io:

[X] Not relevant (don't have access to infra to see)

Description
Under the [server] configuration section I've set BUILTIN_SSH_SERVER_USER to sample, and the web interface still shows git (which is the RunUser), however per https://github.com/go-gitea/gitea/blob/bec69f702ba8ecdc9a77db34ff94b7e55879be59/models/repo.go#L864 the configuration variable should overwrite that for the web interface.
Screenshots

Related PR: #2678
cc: @geek1011

This setting only works if you are using the built-in ssh server. Are you sure you enabled it instead of using the system SSH server?
The following settings must be set:

SSH.Disabled to false
SSH.StartBuiltinServer to true
SSH.BuiltinServerUser to a nonempty string

@geek1011 Yup. That was my problem, thanks you. It's now displaying as it should.


Feature request: return back to the commad mode with given line

Hi. Thanks, it appears exactly i was looking for!
Is there an easy way to add C-c feature from the original command-line window? It returns back to the command mode with line under the cursor inserted.
Very handy to preview :s regex replacing result.

Thanks!

Very handy to preview :s regex replacing result.

This seems to be useful.

Wow, great! Thank you!


BasicEntityPersister::count() return type fix

Resolve #6810 by casting return value to integer (2.5.x branch)

@vkurdin thanks for helping us to backport this fix but we do need to have the tests as well. Maybe cherry-picking the original commit(s) and addressing the the conflicts would be a better solution?

@lcobucci no conflicts introduced after cherry-picking the original commit to 2.5 branch. On the other side new functionality was added: EntityRepository::count method. Is that ok to introduce new feature to 2.5 branch?

@vkurdin we shouldn't introduce new features on 2.5 but don't we have any test that ensures that we're returning the correct type on that method (not even an assertSame())?

I've meant tests for BasicEntityPersister#count(). If we don't we should probably do something about that on 2.6 as well

@vkurdin I've found (on v2.6) the test that covers this method and, unfortunately, we are using assertEquals() and not assertSame(). So it's fine to merge this on 2.5 but we should fix BasicEntityPersisterTypeValueSqlTest#testCountEntities() on master (eventually).

@vkurdin 🚢 thanks for your contribution!


Creating KPI reporting

As an analyst, I need to understand the data available in Elastic Search by Kibana queries and working with the Data Team in order to create KPI reporting.
OR
As an analyst, I need to use Google Tag Manager to tag workType, identifier, subject, genre and language (if not already tagged) so that I can analyse breadth of usage for DE and Collections teams to track progress on enabling researchers to engage with more of our collections.
Acceptance criteria
Able to produce KPI(s) from chosen tool.
https://github.com/wellcometrust/wellcomecollection.org/issues/4341

@taceybadgerbrook We can leave language out of the GTM tracking. I don't believe we have a use case for analysing collection use by language. However, I would add in addition to identifier (e.g. f4qaqqv6) the reference (e.g. Wellcome Library no. 42427i). In future we'll have reference numbers for archive material that look like PP/CRI or similar, should be mapped to the same property in the API.

KPI reporting spans GA and Kibana which cannot be stitched together.
Have created sharepoint doc below to express use cases described in https://docs.google.com/document/d/1gT2GIb4GMB6UbhGppXDgO3872D0Yv7sUe3I01dvq_b0/edit?usp=sharing to identify what data we don't have to inform discussion of alternative tools:
https://wellcomecloud.sharepoint.com/:w:/r/sites/wcdigitalexperience/Shared Documents/Analytics/Measuring use of our collections (data we have vs data we need).docx?d=w789b56b0e09e42ebae3e8c48fb3a488d&csf=1&e=S5iau0


Watcher hung on initializing windows 10

I have been using Watcher for a while without issue.
I'm initializing a watcher with 1 folder that contains 2000 folders, each with 1 sub folder that has a few files.
I put a few console logs in and saw the watcher is getting hung in tiny-readdir here: https://github.com/fabiospampinato/tiny-readdir/blob/master/src/index.ts#L35
In testing I increased the concurrency limit over 2k and it finished initialization.
No symlinks and the config is
{
  ignored: /(^|[\/\\])\../, // ignore dotfiles
  renameDetection: true,
  renameTimeout: 2000,
  recursive: true,
  ignoreInitial: true,
  persistent: true
}

How long does it take without raising the concurrency limit?
And how long with the limit raised to 2000?
Could you share a performance profile of this? You can get one by node --inspect-brk-ing your script, opening the devtools the link from chrome://inspect, and recording one from there.

It is very fast when there is no concurrency limit or the concurrency limit is greater than the number of directories.
I did a bit more digging and I see what is happening.
In the promise-concurrency-limiter the promise never finishes because the nested directory gets queued.
i.e.
/dirA/subdir/...
/dirB/subdir/...
/dirC/subdir/...

Suppose the concurrency limit is 1.
/dirA runs, /dirB gets queued, /dirC gets queued, /dirA/subdir gets queued. Since the subdir just got queued the promise from /dirA never returns.
One possible solution in tiny-readdir could be
  const handleDirectory = ( dirmap: ResultDirectory, subPath: string, depth: number ): Promisable<void> => {

    dirmap.directories.push ( subPath );
    directories.push ( subPath );

    if ( depth >= maxDepth ) return;

    // if depth > 1 and the limiter is full, then we cannot queue this function or the current promise will never return
    if ( depth > 1 && limiter.count >= limiter.concurrency) return populateResultFromPath ( subPath, depth + 1 )

    return limiter.add ( () => populateResultFromPath ( subPath, depth + 1 ) );

  };

https://github.com/fabiospampinato/tiny-readdir/blob/master/src/index.ts#L28

Any update on this?

I've removed the concurrency limiter, which slowed things down and caused deadlocks potentially.
It seems that tiny-readdir naturally yields to the event loop due to internal async/awaits, so the limiter is not really needed for that. For edge cases where the user is asking to watch / or something, where tiny-readdir could almost freeze the process, I've added a limit option, both to that and to watcher, there's basically no limit by default, but depending on your use case you may decide to set one yourself as a stop gap measure in edge cases.


Make UGC metadata methods allow up to 5000 bytes as per valve's docum…

…entation.
This also makes setItemMetadata use the byte length of the string and return false when it is too big.

Awesome!  Looks good, sir!  Thank you very much!


Configurable hash algorithm

Dynomite supports several hash algorithms, but Dyno uses implicitly the Murmur hash function.
This pull request provides configurable HashPartitioner through ConnectionPoolConfiguration.

Can you point me where Dynomite provides more than murmur1 hash algorithm? Currently, Dyno provides multiple hash algorithms support including murmur1, murmur2, murmur3, Binary Search etc. For more information: https://github.com/Netflix/dyno/tree/master/dyno-core/src/main/java/com/netflix/dyno/connectionpool/impl/hash How is this PR going to improve that?

I refer to the "hash" option in Dynomite configuration. That option is used during  pool initialization. The hash functions are defined in hashkit subtree.
The sample logs below illustrates the Dynomite behaviour with hash=fnv1a_32 :
[2017-09-28 09:53:08.215] conf_push_scalar:541 push 'fnv1a_32'
[2017-09-28 09:53:08.215] conf_handler:1291 conf handler on hash: fnv1a_32
....
[2017-09-28 09:53:08.215] conf_dump:357 dyn_o_mite
[2017-09-28 09:53:08.215] conf_dump:359   listen: <IP_ADDRESS>:8111
[2017-09-28 09:53:08.215] conf_dump:360   timeout: 5000
[2017-09-28 09:53:08.215] conf_dump:361   backlog: 512
[2017-09-28 09:53:08.215] conf_dump:362   hash: 8

Dyno provides multiple hash algorithms, but Murmur1 usage is hardcoded in TokenAwareSelection  strategy.
The goal of this PR is to efficiently load balance requests when Dynomite server doesn't use default hashing function. The hash function is configurable through ConnectionPoolConfiguration :
ConnectionPoolConfigurationImpl config
	= new ConnectionPoolConfigurationImpl(cluster.getName())
		.withHashPartitioner(new Fnv1aHashPartitioner())
		.withTokenSupplier(new SimpleTokenMapSupplier(hosts))
		.withErrorMonitorFactory(new SimpleErrorMonitorFactory(errorThreshold));

I am sorry for my delay on this. #186 is a fairly large feature and currently under review. Once it is merged, we will move to this one.

#186 has been merged in master, would you mind resolving the conflicts so that we can move forward with this?


PCA basis calculation

i tried to load PCA model by pca calculated data. i have the below PCA data to load PCA model
-Mean
-eigenvectors
-eigenvalues
PCA component - 7
Num of row (x,y,z,x,y,z..) - 15420
i need pca_basis to load PCA model, how to calculate PCA basis data, eigenvector is equal to PCA basis? but it's row wise pca component (like 7 x 15420) we need column wise pca component ( 15420 x 7)
PcaModel Constructor:
PcaModel(cv::Mat mean, cv::Mat pca_basis, cv::Mat eigenvalues, std::vector<std::array<int, 3>> triangle_list) : mean(mean), normalised_pca_basis(pca_basis), eigenvalues(eigenvalues), triangle_list(triangle_list)
Code:
eos::morphablemodel::PcaModel shapeModel(pt_mean, pt_eig_vecs, pt_eig_vals, triangleList);

I'm not sure what exactly your question is. Just use OpenCV PCA or Matlab pca to do standard PCA on your data and feed that into the eos PcaModel constructor. The dimensions that the different cv::Mat's should have are all nicely documented in the PcaModel class.

Thanks.
i have converted eigenvectors values as vertical matrix from horizontal and problem is solved. PCA model loaded successfully.
i can get mean, and nun of component values from PCAshapeModel with out any issues, but i can't generate sample mesh
Testing code:
vector fitted_coeffs;
fitted_coeffs.assign (15420,0.3);
eos::render::Mesh mesh = morphModel.draw_sample(fitted_coeffs, vector());
eos::render::write_obj(mesh, "sam.obj");
Error message:
OpenCV Error: Sizes of input arguments do not match (The operation is neither 'array op array' (where arrays have the same size and the same number of channels), nor 'array op scalar', nor 'scalar op array') in arithm_op, file /var/opencvpython/opencv/modules/core/src/arithm.cpp, line 639
Problematic line (Debug line):
cv::Mat model_sample = mean + normalised_pca_basis * alphas;
problem is adding mean and pca_basis values, i don't know what's wrong with mean and pca_basis values, both cv:Mat's are same row
matrix values
mean = 15420 x 1
pca_basis = 15420 x 7
please help me to solve this issue

What is the dimension of alphas? You can easily figure this out by yourself. Do you know how matrix multiplication works? If you multiply two matrices, one of dimensions m x n and the second one r x s, then n needs to be equal to r for it to work and the resulting matrix will be a m x s matrix. So check that normalised_pca_basis * alphas gives you a vector of the same dimensions as mean, so you can add them. Best get a sheet of paper.

alpha dimension is 1x15420, now i understand the complete PCA system and calculation. problem is solved.
i am a bad student when i studying in school, three times failed in math subject. but now become a PCA system expert after explore your project.
Thanks for your support,

I'll close this then ;-)


Added new command in git checkout source

Adding git command to undo all the changes in the current working directory.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

@siddharthsuneel Awesome! Thanks! Congrats on your first open source contribution to this repository!


Fix github.com/elazarl/goproxy Denial of Service

Description

How Has This Been Tested?

Merge criteria:

[ ] The commits are squashed in a cohesive manner and have meaningful messages.
[ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[ ] The developer has manually tested the changes and verified that the changes work

CI issue will be fixed by https://github.com/opendatahub-io/rest-proxy/pull/25

@spolti Can you rebase, to check that it would build now?


[docs][DrawerAppBar] Add Roboto font

Closes https://github.com/mui/material-ui/issues/38765

[x] I have followed (at least) the PR section of the contributing guide.

@mnajdova it's  finished, but I don't know why the argos don't pass


Obsoletion request: GO:0052489 negative regulation by host of symbiont programmed cell death

Dear all,
The proposal has been made to obsolete GO:0052489 negative regulation by host of symbiont programmed cell death. The reason for obsoletion is that there is no evidence that this process exists. There are 2 EXP to this term, but these have been replaced by ‘GO:0052489 negative regulation by host of symbiont programmed cell death'.
There are no mappings; this term is not present in any subsets.
You can comment on the ticket: https://github.com/geneontology/go-ontology/issues/26363
Thanks, Pascale

[ ] send email to go-friends
[ ] create ticket in go-announcement repo
[ ] obsolete term


An error occurred

It won't let me in on a public server, is it server-sided now?

Interesting...It was vanilla compatible in testing, but it seems to not be working. I will look into this.

Strangely, the network API seems to no longer be working. It has been deactivated for now. Update TerminalCommander on Thunderstore once it show and it should work.
You may need to disable LethalNetworkAPI if it's in your mod list and turned on. The only thing impact is host settings will no longer apply to clients for things like cooldown times. Let me know if you still have issues.


Admin API - Delete Admin Account

Create a REST endpoint in the Admin API for deleting Admin Accounts.
User Story
As a developer extending API Umbrella Web
I need to delete Admin Accounts via the Admin REST API
so that I can ensure the Admin Users collections are consistent with my application

Possibly related to issue #139

Addressed in #152


fix(tsm1): Compaction log error

Closes #11776
Upgrades compaction log message to warning.

[x] CHANGELOG.md updated with a link to the PR (not the Issue)
[x] Well-formatted commit messages
[x] Rebased/mergeable
[x] Tests pass
[x] Signed CLA (if not already signed)

@scbrickley has signed the CLA.

@scbrickley looks like our bot that updates CHANGELOG.md is on the fritz. Can you update it? Should be good to merge after that. Thanks

Updated the change log, but now some of the checks are failing. Anything else I've forgotten?

Ah, the commit messages need to follow the format of the first commit

Gotcha. I'll fix it.

I seem to be going around in circles here trying to fix the commit/merge messages. Apologies. Still pretty new to some of this.

I believe that fixed it.

@scbrickley you beat me to it. That should fix it. Thanks


[windows][usm] fix bug in filename evaluation

During testing & discussion, it was discovered that there was a misunderstanding in the name of the app.config file.  While generally referred to as app.config, the filename is actually <app.exe>.config.  This PR fixes the filename evaluation.
What does this PR do?
Motivation
Parse the right file to get USM tag names
Additional Notes
Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
Updated tests included in PR

/merge


V3 design

I'm working on a v3 rewrite POC. The goal is to reduce code, here are the specs to help:

Autocomplete classes should be useable as widget which register themselves, remove the registry, like django-select2, extra fields would be provided where it's really required (generic relations),
Less complicated test cases, multiple django-admin themes support,
More like v1, I mean we should provide a set of tools and examples rather than having them all factored in autocomplete_light.forms, example app code should be used both by tests and documentation, which means that our test engine itself would be very light, kill ModelForm, rather, document how to industrialize it at the project-level ie. with type() tricks and so on
multiple JS script support, select2 by default, typeahead also, it didn't exist when I started this app but now there's no reason not to use it ... I might have to do JS backflips to get things add-another to work with it though, but that would be another AutocompleteMixin (AutocompleteSelect2, AutocompleteTypeahed, and so on, made possible by the first spec)

That means a lot of code removal.
So the repo looks like:

autocomplete_light

generic

fk.py
m2m.py
gm2m.py (new generic m2m app to use with 1.8+)
autocomplete.py

taggit, etc ... one dir per feature

tests  # each test dir is a django app

gfk

models.py
admin.py

gm2m

...

projects # project configurations to run the tests with

base (django.contrib.admin)
suit (inherits base, with django-suit)
grappelli (inherits base, with django-grappeli)

I tried my best to make django-autocomplete-light just a set of loosely coupled extensions to django-select2, starting with "simple" GFK support but at the end of the day I'm overridding everything they supply so I don't think it makes much sense, I had to try to get sufficient determination for this spec, even if we have to copy their cache-registry part.

Closing in favor of PR #558


What is the rule for using memory?

Hello, what is the rule for using memory?
I read the code of the inference part, but I don't know how to use memory. Will all the memory be used every time a track is run? Or will only the memory of the previous or next frame be used?

you could refer to the code from here
https://github.com/yformer/EfficientTAM/blob/main/sam2/modeling/sam2_base.py#L532


User/zachnew msft/disable data processors

Resolves issue #122

Would it be better to add files under src/Microsoft.Performance.SDK/Extensibility/DataProcessing as:

$(DefaultItemExcludes);Extensibility\DataProcessing\**

Would it be better to add files under src/Microsoft.Performance.SDK/Extensibility/DataProcessing as:
  <PropertyGroup>
    <DefaultItemExcludes>$(DefaultItemExcludes);Extensibility\DataProcessing\**</DefaultItemExcludes>
  </PropertyGroup>

Maybe something similar for src/Microsoft.Performance.SDK.Runtime/Extensibility/DataExtensions/DataProcessors

I thought about it, but for consistency when we revisist, I felt having the files commented out with the same tag (SDK_DP) as everywhere else would make it easier to find, as everything is in the cs files.


Source distribution requires 'requirements.txt'

There's an issue with this project for when the source distribution is used over the pre-built wheels, the issue is FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
To fix this, you either need to drop usage of requirements.txt in setup.py or package it with the source distribution.

Hello.
Please check v1.1.9, I've added requirements.txt into sdist archive.

Actually, @ErikMinekus needs to test this as they were the one who had the problem.

That's solved, but you require the latest setuptools for Python >= 3.5, so any package that uses this library won't install unless setuptools is fully upgraded.

Do you have a Python traceback to help?

$ python3 -m pip install --user ./ambuild
Processing ./ambuild
    Complete output from command python setup.py egg_info:
    /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)
    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.pyc' found under directory '*'
    warning: no previously-included files matching '*.pyo' found under directory '*'
    warning: no previously-included files matching '*.orig' found under directory '*'

    Installed /tmp/pip-3xxex8yq-build/.eggs/setuptools_git_versioning-1.1.9-py3.5.egg
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-3xxex8yq-build/setup.py", line 75, in <module>
        zip_safe = False)
      File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 269, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 826, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1085, in best_match
        dist = working_set.find(req)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 695, in find
        raise VersionConflict(dist, req)
    pkg_resources.VersionConflict: (setuptools 20.7.0 (/usr/lib/python3/dist-packages), Requirement.parse('setuptools>=49.6; python_version >= "3.5"'))

I've removed such strong restrictions for setuptools version, please check v1.1.10.
But I don't really think that somebody will use setuptools 20.7 with python3.5 in 2020.

That's fair, but it's the version that apt install python3-setuptools installs on Ubuntu Xenial LTS. I now know that I should be using pip install setuptools.
Anyway, for some reason flake8 is failing to install now:
$ python3 -m pip install --user ./ambuild
Processing ./ambuild
    Complete output from command python setup.py egg_info:
    /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)
    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.pyc' found under directory '*'
    warning: no previously-included files matching '*.pyo' found under directory '*'
    warning: no previously-included files matching '*.orig' found under directory '*'

    Installed /tmp/pip-pxg0f_da-build/.eggs/setuptools_git_versioning-1.1.10-py3.5.egg
    Searching for flake8>=3.8; python_version >= "3.5"
    Reading https://pypi.python.org/simple/flake8/
    Best match: flake8 3.8.3
    Downloading https://files.pythonhosted.org/packages/99/eb/cc2bbe9b242a79d2c5820911f21875a138aafa3dc2c3b9b34ba714f9fef9/flake8-3.8.3.tar.gz#sha256=f04b9fcbac03b0a3e58c0ab3a0ecc462e023a9faf046d57794184028123aa208
    Processing flake8-3.8.3.tar.gz
    Writing /tmp/easy_install-j1jnazks/flake8-3.8.3/setup.cfg
    Running flake8-3.8.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-j1jnazks/flake8-3.8.3/egg-dist-tmp-4tr5_ehw
    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    no previously-included directories found matching 'docs/build/'
    warning: install_lib: 'build/lib' does not exist -- no Python modules to install

    zip_safe flag not set; analyzing archive contents...
    Moving UNKNOWN-0.0.0-py3.5.egg to /tmp/pip-pxg0f_da-build/.eggs

    Installed /tmp/pip-pxg0f_da-build/.eggs/UNKNOWN-0.0.0-py3.5.egg
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-pxg0f_da-build/setup.py", line 75, in <module>
        zip_safe = False)
      File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 269, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 313, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 829, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'flake8>=3.8; python_version >= "3.5"' distribution was not found and is required by setuptools-git-versioning

Manually running python3 -m pip install flake8 does work.

flake8 actually isn't required by setuptools-git-versioning. @dolfinus I seriously recommend splitting setup.py and requirements.txt

You're right, I've removed flake8 from requirements.txt completely, v1.1.11 is released.

Works fine now, I think this can be closed.


Add more tourism data to the Australian Accommodation Monitor

Re additional datasets.
After further feedback from Tourism team I am asking you to add to your next work program the addition of three layers to the Australian Accommodation Monitor.
•	ADR
•	Property Count - Census
•	Room Count - Census
The property and room count layers will cover all regions on the map.
Some of the other layers have gaps due to lack of responses to surveys and identification issues with small samples,.

https://drive.google.com/file/d/1UuO0Pc1av6SSaZGQMB4BijS8--W_7ozX/view


ripple effect hangs and stays visible longer than expected

Hi,
after opening the date picker, the ripple effect sometimes remains visible and not fading out.
this can be seen in your demo as well.
is there an option to fix this issue or disable the ripple effect all together ?
I tried to disable ripples globally on Angular Material in my NgModule:
	providers   : [
		{provide: MAT_RIPPLE_GLOBAL_OPTIONS, useValue: globalRippleConfig}
	],

but with no success.
thanks
Rotem

I am also facing same issue, is there an option to fix this issue?
i have tried disable ripple globally.
const globalRippleConfig: RippleGlobalOptions = {
disabled: true,
terminateOnPointerUp: true,
animation: {
enterDuration: 300,
exitDuration: 0
}
};
providers   : [
{provide: MAT_RIPPLE_GLOBAL_OPTIONS, useValue: globalRippleConfig}
],
but not solved.


Couldn't change the background of the navbar

Hi Alexey!! Awesome work on this, I was trying it out and it's great! one thing I couldn't do is set the navbar background to 'transparent'. backgroundColor="transparent"

Hi Alejandro! I'm feel myself very sorry for not responding you for a 2 weeks. I was busy making https://github.com/Kureev/browserify-react-live . So, answering your question: since version 0.7.2 you can use backgroundStyle property to customize background layer. If you using prev. version it's also fine and backgroundColor should work. The only case it may not work - if you also specify style property and override backgroundColor there. For this case I made this patch in 0.7.2. Please, let me know if it works fine for you

Hey Kureev,
So with backgroundStyle would you just do the following:
<Navigator
renderScene={this.renderScene}
initialRoute={{
component: Main,
backgroundStyle: 'transparent',
navigationBar: (
<NavigationBar
customTitle={}
customPrev={} />
),
}} />
as i can't make it work this way.

Hi Alexey!! I finally didn't go for your solution. I found a way of implementing what I wanted, what I'm missing is how to change the background color of the selected tab (similar to instagram functionality). If you want to check out my final result is here: https://github.com/skyhitz/skyhitz-react-native-ios/blob/master/app/components/tabviews/maintabbar.js

Hey @robtg4! I think we're talking about react-native-navbar so far, so backgroundStyle property should be applied to it. Also, not sure I got your idea with this part:
navigationBar: (
customTitle={}
customPrev={} />
),

I'd say you need to do something like this instead:
navigationBar: (
  <Navbar backgroundStyle={{ backgroundColor: 'transparent', }} />
),

@alejomendoza Hi again! Not sure I can find where you're using my component in the code. I think you're building a great application, but not sure I understand what kind of help I can do for you. Make sure you read readme first and using component as I pointed out in examples.

@alejomendoza Have you figured out how to solve this issue?

ok thatnks @Kureev !

Hey @Kureev - sorry for the delayed response - I still seem to not be able to make the navbar transparent - here is my code so far:

and here's wha that looks like:

Update your library version
In the new version (0.8.2) you should use style instead of backgroundColor

Would it solve your problem?

Closed due to lack of feedback (+ check 1.0.0 version, it has tintColor property for this purpose)

Hi @Kureev - this is perhaps my favorite react component...certainly the one I use most often, so thank you so much.  I've also tried:
<Navbar backgroundStyle={{ backgroundColor: 'transparent', }} />

and I am getting a white background.  I'm using the latest version of react-native-navbar.  Would I also need to adjust something in the obj-c file to accomplish this?  thanks so much.

Hi @aaronbwatkins ! I think you need to try a tintColor="transparent" property, that should work.

Thanks @Kureev - I just tried tintColor = "transparent" as well.  Still gives me a white background.  I also tried adding a style property to the NavBar and putting tintColor in my Stylesheet.create function.  Also tried <Navbar backgroundStyle={{ tintColor: 'transparent', }} /> to no avail.  I know this is also pretty tedious to do in Xcode/Swift.  No worries if it's not possible, I can manage with a white navBar for now.  Thanks again!

I'll take a look on it asap, I promise.

thanks a lot @Kureev . I appreciate that. :-)

                tintColor='transparent'

this actually worked for me..

backgroundColor has nothing with a way you position elements. It's not necessary to put a navbar element at the end of your view and align it via position: absolute.

@Kureev you are absolutely right. I was saying that's only way I accomplished transparent nav bar  -- usually it flows over a picture inside a scrollview. I am hoping you or others can find a better approach.

Hm, what stops you from something like this:
<View style={container}>
  <Navbar {...navbarSettings} />
  <ScrollView {..scrollViewSettings} />
</View>

That shouldn't overlap a ScrollView, right?

@Kureev I might be totally misunderstanding what the issue was, I thought people want something like this:

Anyway, the background of the navbar is transparent.

Oh, I got what you mean, @kkgelu!
Well, in this particular use-case I'd recommend you to use the approach you suggested with
{
  position: 'absolute',
  top: 0,
}

Hi,
i want "transparent" header In REACT-NATIVE How?
I have header with white screen but i have already background image


Fix SameSite cookie warning

Prevent the console from displaying warning message about SameSite.

A cookie associated with a cross-site resource at http://shields.io/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.

Not concerned. Should be fixed by shield.io domain. Closing the issue.


 Thanks for the heads up.

i find it useful in reducing boilerplate for platform-detection, polyfilling, or code meant to to run in both browsers and node:
// real-world polyfill for TextDecoder/TextEncoder for older versions of node that won't break in browsers
    (function () {
        try {
            globalThis.TextDecoder = (
                globalThis.TextDecoder || require("util").TextDecoder
            );
            globalThis.TextEncoder = (
                globalThis.TextEncoder || require("util").TextEncoder
            );
        } catch (ignore) {}
    }());

Every bad practice that JSLint warns against is useful.


fix: show latest quote first (issue #29)

fix: show latest quote first (issue #29)

@VectorXz quotes is showing first but when refresh the page that quotes is not showing plz fix this hurry up...

@danishzayan
As I observed, the quotes still shown after refresh.
BUT, if you're adding new quote and refresh it will not show up due to the limit of API.
I think you are running out of resources on API

@danishzayan As I observed, the quotes still shown after refresh. BUT, if you're adding new quote and refresh it will not show up due to the limit of API. I think you are running out of resources on API

Ok i see

@VectorXz Have you knowledge of Strapi CMS...

No... sorry.

Strapi

@VectorXz ok all is well.. gud job 🤩


Increment version for healthinsights releases

Increment package version after release of com.azure azure-health-insights-cancerprofiling

API change check
API changes are not detected in this pull request.


Fix sending usage metrics problem

Running node lib/bin/run-analytics.js (or the docker production equivalent) doesn't work. It hangs for many seconds and then returns this error:
'{"sent":false,"message":"Error submitting analytics","error":{"code":"ECONNRESET"}}'

Likely something in external/odk-analytics.js with how streaming responses get sent. Checking specficially on FormData which is now built into Node 18 but doesn't seem to work the same way.
Even on staging, sending analytics has been broken for a while. Matt said on slack:

https://staging.getodk.cloud/v1/audits?action=analytics is interesting. A report was sent on July 27, but it’s been failing since Aug 27. Presumably something changed in that month.

If I understand correctly, I think FormData is being used in order to send the submission XML as a file to the OpenRosa submission endpoint. I think we could:

Change how we use FormData to match the expectations of Node 18. There are just a few calls involving FormData, so maybe this wouldn't be a big change?
Alternatively: do we even need to use FormData? I think we could submit to the REST endpoint instead of the OpenRosa endpoint. Then we could just send the XML as the request body rather than sending a file.


XmlOthers.java:151-156: Continue changelog...

The puzzle 82-4bfb0748 from #82 has to be resolved:
https://github.com/artipie/rpm-adapter/blob/6832bcfffd73ce19e4d7597b3bbc2b7cb6272031/src/main/java/com/artipie/rpm/meta/XmlOthers.java#L151-L156
The puzzle was created by paulodamaso on 13-May-20.
Estimate: 30 minutes,  role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

@g4s8/z please, pay attention to this issue


callback event

Whether there is a callback event after the view is displayed, such as data initialization。

Cool, then I close this.


Overlay RGBA? Transparency not supported?

The overlay feature is nice, but couldn't figure out how to use png files with portions that are transparent. Is it possible to have a png as an overlay but with areas that are cut out?
Thanks

At the moment, the overlay subsystem in picamera only uses RGB data with the renderer. In other words, alpha data is thrown away before passing the RGB buffer to the renderer. I've no idea if the renderer will accept an RGBA buffer; there is a format which suggests support for this but I don't know whether the firmware will take any notice of the alpha channel.
If anyone wants to play with this and find out, please do and report back! I think it's relatively easy - just play with the overlay class' MMAL format in picamera/renderers.py and feed the renderer something with 4 bytes per pixel instead of three.

Okay, I've had a chance to play with this today. Quite simply it looks like the renderer system ignores the alpha channel of any provided buffer. The patch I used was as follows:
diff --git a/picamera/renderers.py b/picamera/renderers.py
index ab72bb8..51be8e5 100644
--- a/picamera/renderers.py
+++ b/picamera/renderers.py
@@ -527,8 +527,8 @@ class PiOverlayRenderer(PiRenderer):
         fmt = port[0].format
         mmal.mmal_format_copy(
             fmt, parent._camera[0].output[parent.CAMERA_PREVIEW_PORT][0].format)
-        fmt[0].encoding = mmal.MMAL_ENCODING_RGB24
-        fmt[0].encoding_variant = mmal.MMAL_ENCODING_RGB24
+        fmt[0].encoding = mmal.MMAL_ENCODING_RGBA
+        fmt[0].encoding_variant = mmal.MMAL_ENCODING_RGBA
         if size is not None:
             w, h = size
             fmt[0].es[0].video.width = mmal.VCOS_ALIGN_UP(w, 32)
@@ -573,7 +573,7 @@ class PiOverlayRenderer(PiRenderer):
         """
         port = self.renderer[0].input[0]
         fmt = port[0].format
-        bp = ct.c_uint8 * (fmt[0].es[0].video.width * fmt[0].es[0].video.height * 3)
+        bp = ct.c_uint8 * (fmt[0].es[0].video.width * fmt[0].es[0].video.height * 4)
         try:
             sp = bp.from_buffer(source)
         except TypeError:

And the test script was:
import picamera
from PIL import Image
from time import sleep

img = Image.open('test.png')

with picamera.PiCamera() as camera:
    camera.start_preview(alpha=192)
    camera.add_overlay(img.tostring(), size=(1280, 720))
    sleep(5)

Where test.png was a 1280x720 PNG with several regions incorporating partial and full alpha transparency.
To be honest, this was pretty much what I was expecting (why provide an alpha value for the entire renderer if it supports per-pixel alpha), so I'm afraid this functionality isn't going to be supported unless you can persuade upstream to implement it. I'll leave this open and mark it as an upstream enhancement for now, but I wouldn't hold your breath (my hunch is this will be in the "too difficult" category).

I can follow your patch logic, but when i make your changes to my /usr/share/pyshared/picamera/renderers.py and start your script with an image (png) i created in PS CS6 (616x600px, colored layer, erased some areas, save as png, no background) it gets repeated and horrible "fuzzed"...
What could be wrong? Did you something special? What is you test.png looking like?
my test.py:
#!/usr/bin/python
import picamera
from PIL import Image
from time import sleep

img = Image.open('test.png')

with picamera.PiCamera() as camera:
  camera.resolution = (616,600)
  camera.start_preview(alpha=192)
  camera.add_overlay(img.tostring(), size=(616, 600))
  while True:
    sleep(1)

Here my files:

Have a read of the overlay recipe - the source data needs to have a width which is a multiple of 32, and a height which is a multiple of 16 (1280x720 is which is why my test worked).

Ah... ok, that was a hint into the right direction. :+1: Thank's!
Now I resized the png to 1280x720 and ran
#!/usr/bin/python
import picamera
from PIL import Image
from time import sleep
img = Image.open('test.png')
with picamera.PiCamera() as camera:
  camera.start_preview(alpha=192)
  camera.add_overlay(img.tostring(), size=(1280, 720))
  while True:
    sleep(1)

i get a overlay, but this is not my "bubble" - its just the blue background and a white square. Looks like this:

But when use the example and execute
#!/usr/bin/python
import picamera
from PIL import Image
from time import sleep
with picamera.PiCamera() as camera:
    width = 1280
    height = 720
    sizeA=(width,height)
    camera.resolution = (width,height)
    camera.framerate = 24
    camera.start_preview()
    img = Image.open("test.png")
    #img.convert("RGBA")
    #img.resize((width, height), Image.ANTIALIAS)
    pad = Image.new("RGBA", (
        ((img.size[0] + 31) // 32) * 32,
        ((img.size[1] + 15) // 16) * 16,
        ))
    pad.paste(img, (0, 0), img)
    #mix = Image.alpha_composite(pad,img)
    o = camera.add_overlay(pad.tostring(), size=sizeA)
    o.alpha = 128
    o.layer = 3
    while True:
        sleep(1)

i get the following better resut:

But thats not completely stisfying, cause when i now change o.alpha = 128 to o.alpha = 255 (for having a full color overlay) the center "bubble" gets black - not transparent.
Do you have any ideas here?

My guess is the only difference is the fact you're setting camera resolution in the second recipe (the padding stuff is unnecessary as the test PNG is already has a resolution which is a multiple of 32 x 16 blocks). Still, it just goes to demonstrate what I mentioned above: the firmware ignores the alpha channel of image data in renderers.

I suspect it is that the firmware will ignore the alpha channel if it is given a global alpha.
You're setting MMAL_PARAMETER_DISPLAYREGION with MMAL_DISPLAY_SET_ALPHA to provide a global alpha, so I believe that is overriding the alpha channel.
...
Then again the dispmanx call that results from video_render is always passing in a DISPMANX_ALPHA_T (interface/vmcs_host/vc_dispmanx_types.h) with flags = DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS. Adding in per pixel alpha raises the question of exposing premultiplied or not, and the MIX flag.
If you want firmware changes investigated further, please raise an issue on raspberrypi/firmware with a link to here, and I'll see if I can find some time to look into it.

Ah, intriguing - I'll try and find some time to try out the renderer component without setting any alpha at all (you're absolutely correct that it's always calling MMAL_DISPLAY_SET_ALPHA even when it's not strictly necessary, so it's worth experimenting without that).

As per my followup comment, that actually won't make a difference, so save your effort.
Alpha defaults to 255, and the dispmanx call always sets DISPMANX_FLAGS_ALPHA_FIXED_ALL_PIXELS, so nothing you can do can change that. :-(
I never realised that video_render never got used with image formats having an alpha channel even though it supported them - you live and learn.
If the OP is that fussed then raise an issue and I'll see if it is possible to solve it without opening a big can of worms. The other approach is to use dispmanx directly, but that involves a moderate amount more fiddling around to get it to work.

If anyone is attempting this, you can hack an image overlay with alpha using pngview. Make sure you set the layer to 3 or higher so you overlay the camera preview. Use subprocess to call the executable from python.

The tuning of the /picamera/renderers.py was exactly what I was expecting for.
Unfortunately, the source code did changed a lot.
Someone does he has an idea about How to patch the new code?

@mchobby feel free to make a fork of picamera and commit your changes to that fork. Even if the changes are too big / complex to merge directly I'd be happy to take a look when I get a mo (apologies I don't have much time for picamera at the moment - I'll try and catch up in a month or so).

Hi, That's the exact kind of code that I wanted too. But I could not make the changes in the picamera/renderers.py. So transparency is achieved but the opaque part of the  image is not visible properly.
I could not understand in which method and how to make the changes.
Would be great if somebody could help with the renderers.py file.

Actually the work on #196 should permit "proper" RGBA transparency support too (I recently managed to get a transparent PNG overlaid on both preview and recording with the branch mentioned in that ticket). However, full RGBA transparency does heavily limit the available resolution / framerate due to the amount of bandwidth required for chucking full RGBA buffers around. Anyway, that's probably not much use to most people yet (the mmalobj API is below the level most people use picamera), but I'm working on something a bit more high level too. Whether that makes it into a release before xmas is very debatable though.

Same problem here. waiting for updating...

I'm also waiting for that update. It partially works but when I set the alpha channel to 255 the transparent regions become black. I know it can be achieved using mmal and DispmanX as it is shown here but a feature like that using picamera would be perfect!
If I can help with something, just let me know.

raspidmx doesn't use MMAL at all; it's all dispmanx. Integrating that into picamera would be more work than I can afford to do at the moment (there'll be some dispmanx stuff in 1.13 for screen capture, but nothing for rendering).
Currently I'm tidying up #196 for release; it'll have the mmalobj layer for doing overlays (or more precisely generic transforms) but there won't be a high level API yet (can't afford the time to spend on that at the moment).

Thanks for answering waveform80,
So I will wait for that release that includes the #196 enhancements, afterwards I will try to figure out what can I do to solve my issue, which is having an overlay with a RGBA PNG with both preview and overlay in full color (255 alpha), even if it means diving into lower levels.

Hi,
In waiting to a real overlay RGBA with python I used the raspidmx, and raspivid
you can see a method in this page

Hi @gauthierlerouzic,
Yep, that's the workaround I will be using meanwhile, but I just don't like to use an external process when it could be done in the python one.

Please share your results. It would be good to see how you do that :)

Hi @AdrianAntunez ,
I understand and i'm agree with you.
when will be possible to do that only with python, i will change my code.
But for the moment I need a working solution. :)

For me, I install pngview. and run this command :
./pngview -b 0 -l 3 Carte.png & raspivid -t 0 -vf
I have just a problem for break run.
When I do Ctrl + C, raspivid break, but pngview doesn't want to break.
If anyone have a idea. :)

FYI I have a fix for this. video_render if given RGBA data will take the per pixel alpha and ignore the global alpha.
I'd guess the updated firmware should be on the rpi-update branch around the middle to end of next week.

I think I can sneak this into 1.13 ;)

Thanks a lot for the #199 fix. Image overlay is working good.
I have an image that is partially transparent, and what I noticed in the output is that all transparent part is behaving like black. Just to ascertain the  fact I overlayed it with the image below with 4 different colors and rest of the area transparent. I am attaching my input and output images.
What should I do to make black look black and transparent look transparent ?
Thanks in advance
Preetha

Just to confirm, your TIF image is 32bpp RGBA with alpha=50% (or some constant) across the whole image?
If so I would have expected to see a black square. If you'll confirm your RGBA values for each area I'll try to find time to recreate.
Composition is not my area of expertise, I just found a suitable set of defines to hang things on. I started reading up about premultiplied alpha and the like, and decided it wasn't worth the effort.

Yes the TIF image is at 32bpp and the alpha value is set at 128 which would correspond to 50%.
I am attaching a PNG format of the image (as TIF is not supported). PNG produces similar output as the TIF image.
I have used TIF and PNG formats so as to not loose the alpha values.
Thanks once again.

Still no solutions for full transparency area ?

Hi,
I am trying to create an overlay that displays a white cross with a transparent background over the camera preview.
I understood that the v.1.13 allows me to do that.
But I can’t make it work.
Here’s the code:
from Tkinter import *
import numpy as np
import picamera
import picamera.array

cameraOK = False

class App:
	def __init__(self, master):
		global o
		if cameraOK == True:
			camera.start_preview()
			a = np.zeros((((922 + 15) // 16) * 16, ((1640 + 31) // 32) * 32, 4), dtype=np.uint8)
			zx = a.shape[1]
			zy = a.shape[0]
			a[zy/2, :, :] = 0xff
			a[:, zx/2, :] = 0xff
			camera.preview.window=(10,72,zx,zy)
			camera.preview.fullscreen = False
			o = camera.add_overlay(np.getbuffer(a),format='rgba', size=(zx,zy), window =(10,72,zx,zy),fullscreen = False)
			o.alpha=64
			o.layer=3

def callback():
	if cameraOK == True:
		camera.stop_preview()
		camera.remove_overlay(o)
	root.destroy()
try:
	camera = picamera.PiCamera(resolution=(1640,922))#(1280,720))
	cameraOK = True
	print ('camera ok')
except :
	print('Something went wrong with the camera')
root = Tk()
root.title('TEST')
root.protocol('WM_DELETE_WINDOW',callback)
w=root.winfo_screenwidth()
h= root.winfo_screenheight()-32
root.geometry("%dx%d+0+0" % (w, h))
app = App(root)

root.mainloop()

With o.alpha=64 I can see the camera preview but not entirely clear, with the default o.alpha=255 there is no preview visible at all. I only see the cross over a black background, which was the case for the old version but was supposed be changed in the new one.
What am I missing?
Thank you in advance,
Aleksandra

@olagajda: You missed setting the alpha per pixel. Your array has 4 channels, but apparently you are setting only the first 3.
Try
a[zy/2, :, :, :] = 0xff
a[:, zx/2, :, :] = 0xff

Hope that helps,
Reinbert


[CI] Update coverage tool to codecov for pre-merge

Description

Replaced coverage reporting tool from Codacy to Codecov for the pre-merge job in the workflow

Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] Refactor (non-breaking change which refactors the code base)
[ ] 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

Checklist

[x] My code follows the pre-commit style and check guidelines of this project.
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing tests pass locally with my changes
[ ] I have added a summary of my changes to the CHANGELOG (not for minor changes, docs and tests).

@yunchu, thanks for your PR. Is it possible to do this without setting it up from https://app.codecov.io/gh/openvinotoolkit?

@yunchu, thanks for your PR. Is it possible to do this without setting it up from https://app.codecov.io/gh/openvinotoolkit?

@samet-akcay AFAIK, for the public repo, it doesn't need to register it and corresponding token is also not required.

@yunchu, thanks for your PR. Is it possible to do this without setting it up from https://app.codecov.io/gh/openvinotoolkit?

@samet-akcay AFAIK, for the public repo, it doesn't need to register it and corresponding token is also not required.

hm, if this is the case, it's good news!

Any idea about how to use codecov badge on the readme file? For codacy, there is this line on the readme

To get this, I assume we need to somehow connect to codecov's anomalib dashboard?

um... it looks like to have signing up to the codecov.io
here is a guild for the badge and need to get into the "setting" menu but cannot see it without sign up to there.
https://docs.codecov.com/docs/status-badges

Yeah, I think we need to add both anomalib and training extensions to codecov to get this. I can only see datumaro and mmdetection repos in codecov.

how about just putting  to the README.md?

I guess the number of the coverage for the default branch should be reported to the codecov to show it correctly.


Missing temporary files (*~) rule in gitignore

elementary Code creates temporary files (*~) when editing files. I think we should add a rule to gitignore to avoid accidentally adding these files to commits.

I always use VSCode instead of elementary Code, which does not create those temproary files. :sweat_smile: But we might want to address this issue for developers who use elementary Code since it's the default editor of elementary OS.


Add ETH_P_ALL protocol number to SockProtocol

Hi. I am working on a networking project that uses packet sockets and noticed that ETH_P_ALL is not there in the SockProtocol enum. I thought it would be nice to have it here alongside IPPROTO_TCP and IPPROTO_UDP instead of having to separately import it from the libc crate.

@asomers I have made the changes.

Good.  Now would you please squash?  If you rebase too, that will fix the CI failures.

I have squashed the commits.


[Bug]: Transactions timing out

Description
None of the transactions went through. They all take quite a long time to transact and end up failing due to connection error.
Steps to reproduce
Checking m-pesa balance

Open stax
press home
tap on m-pesa
refresh balance

check airtime balance(safaricom)

press SIMs
on safaricom tab press check balance

check airtime balance (airtel)

press SIMs
on airtel tab press check balance

buying airtime

press SIMs
tap on buy airtime
change recipient network to safaricom
choose buy airtime for myself
enter amount
press continue
press buy airtime now
enter m-pesa pin and confirm

sending money

go to home page
press send money
enter contact number
enter amount
press continue
press send money now
enter m-pesa pin

Expected result
I expect to get a successful transaction with a confirmation message.
Actual result
I get a failed transaction with message 'We received no response from MPESA. We don't think this transaction worked. Please try again.'
Link to screenshots/screen recordings
https://drive.google.com/drive/folders/1jUg6M5vHi4drfSJhOiNGZ5riatLpIqtm?usp=sharing
Device name
Redmi 9
Android OS
10 QP1A.190711.020
Is your phone dual SIM or single SIM?
Dual SIM
Which telco are you using for this test?
Safaricom
Stax device ID or email address
<EMAIL_ADDRESS>

@Purity-E could you let me know if this is still persisting, I would like to dig dipper to understand what is happening there for you. Sorry about this.

This is likely specific to this device

@johnswekenyi the problem is still persisting even after I updated the device.

This is likely specific to this device

@davkutalek do you have other users with Redmi devices or am I the only one with Redmi? I'm just curious to know.

@Purity-E We have had others, but the last one we have tested is quite old at this point. We should be able to fix the issue but our team will have to buy the same/similar device.

@Purity-E We have had others, but the last one we have tested is quite old at this point. We should be able to fix the issue but our team will have to buy the same/similar device.

Okay. Though it did work quite well for me on the first day I did the transactions.

@Purity-E Oh that is helpful info. Can you try restarting the phone and see if it works after?

@Purity-E Oh that is helpful info. Can you try restarting the phone and see if it works after?

Okay. I'll give you feedback on how it has gone.

@Purity-E Oh that is helpful info. Can you try restarting the phone and see if it works after?

I've restarted my phone and the transactions are going through now, but I have got pending messages for check balance(safaricom) and send money


when dragging a panel, its quaternion should be rotated by the thumbstick

this is kinda working now. but it's clunky. it's being handled in main.js:handleController()


Don't work F1.

Why? Help me, please.
Try to write here
Sublime Text\Packages\goto-documentation\Default (Windows).sublime-keymap
and try here
Sublime Text\Data\Packages\User\goto-documentation\Default (Windows).sublime-keymap
Result = Nothing

Alt+T, H will invoke AutoIt Help.


[Bug/Feature] Multiple deadend player choices

Be default you can't have multiple dead end choice operatiors. It can be midigated by a GOTO to an empty dialogue node but that can be messy in the editor graph. Don't know if intentional or a bug.
Reason for feature: Be nice for illusion of choice, while somewhat frowned appon it could give the player a feeling of doing something even if it leads no where either way.
Current:

How it should be (excluding the ->

another way to work around is to have empty bracketing for the choice like this

Thinking about it... I'm not 100% sure if we should quietly accept dead end choices with. I feel like it should require some "effort" to make something a "nothing" choice like the brackets. What do you think?
At the least we can document it.
for now I made a change to include the test for "dead end" choices.
3b39d01ad8b93a4064f220d57cc934de3c7f02bc

documentation added and closing the issue for now!
06314dcd13f63b5eb7768e0ead03baa464e21b59


Add missing viewColumns option on README.md

Just noticed it was on the code but not on README.md, thought I could give my 2 cents on that.

Great catch, man! Thanks for the PR!


Console clearing on npm start is an annoying user experience

After creating a definition for a contentful app, you have instructions for how to start developing, including a deep link to view your development app. You get the impression you'll be able to follow along with the instructions, so you think, "let me npm start and then open that url in my browser" but then you start and all that helpful information is gone.
I don't know what the solution is to this but this is not a fun experience. I don't know where that url was going to take me and I have no idea how to find it. Why do we have to clear the console on npm start, anyway?

Hi @heyitstowler,
thanks for your feedback! I understand your issues about our instructions suddenly disappearing after running npm start.
Unfortunately, it is not easily possible to disable the console clearing to keep these instructions. Under the hood, Create Contentful App is using Create React App. Create React App clears the console on every start and there is no option to disable that functionality.
To avoid users of Contentful getting stuck after running npm start, there are instructions and links in the browser when clicking on the provided URL. This screen provides you with the same information that was previously cleared from the console:

Closing due to inactivity