Gravitational splits is POSSIBLE

@AlexHGaming @Megabyte918 MegaByte918 the Gravitational splits is possible, watch my smallest video: https://youtu.be/qp9qa7VjUms > this is are all my job.
PS. U need more Clips write in the chat with comment.

@kekko9994 it is not possible you have 100% changed the code, in pure Mo-E it is almost unreal

nope, i'm not changed the code

i'm used gameserver.ini

u need to watch with you eyes????

i'm training in my server
for search more bugs on my server

pour your version on some file sharing service I downloaded

you have hamachi, i'm see you this split

I know how to add this -_-

So do I, I have the code for it, I will make a PR for this.

Add the following code to line 825 in GameServer.js:
if (!check.canEat(cell) || cell.getAge() < 1 && check.cellType == 0) return;

I'm PR'ing a more simpler way.
Hold on.

more simpler
Also, how is it more simple?

@AlexHGaming Is there are way i can make locked names for a specific ip address or something

WRONG!!!!! i'm are an agar modder all for me is not are secret

@kekko9994 Dude the code I specified just makes them much easier to perform...
In no way am I saying this is impossible without the code, just extremely difficult. I've done it only ONCE without my addition (after like 30+ previous tries). So I am implying that it's just very difficult, not impossible. Now, who exactly are you calling a liar here?

@kekko9994 Trying to not be rude, but your grammar is not understandable. And no it is not wrong, since it actually works, and being an agar modder ain't even possible. It's called "good at agario clone (editing)"

"Gravitational splits" kden we have an aeronautic scientist over here.

@B0RYS Reason it was called that was because back when the pushsplit just came into gota, we didn't have a name for what it would be called, so I just named it gravitational because it like moves weird, I don't know, I just prefer it to be called PushSplits.

k

The problem I see with calling this type of pushsplit just a "pushsplit" is that there is already a trick under that same name in agar.io. So by not naming this pushsplit a "gravitational pushsplit", it can cause confusion. Could there be a better name for this trick? Yes. Do I know what that name would be? No, but since people kept adding "gravitational" in-front of the name, people just kind of went with it.

@Agarian i tried these code
if (!check.canEat(cell) || cell.getAge() < 1 && check.cellType == 3) return;
and
if (!check.canEat(cell) || cell.getAge() < 1 && check.cellType == 3) {
return;
}
but the code isnt working i want eject mass to go throw player but this code dosent change anything but if i change check.cellType to 0 it applys eat collision on every cell type please help!

@Gigabyte918 Do you mean you want them to ALWAYS go through players? Or just have a small window to when cells are stacked on each other? To do the second thing, remove  && check.cellType == 3 completely. For the first thing, keep  && check.cellType == 3, and change cell.getAge() < 1 to a larger number (you may also have to add  && cell.cellType == 3 but IDK for sure).

I tried this code but nothing changes
if (!check.canEat(cell) || cell.getAge() < 1 && check.cellType == 0) return;

Okay, since you guys are really bothered, do this.
Put the following code on this line here:
if (!check.canEat(cell) || cell.getAge() < 2) {
     // check doesn't want to eat
     return;
 }

or ```javascript
if (!check.canEat(cell) || cell.getAge() < 1 && check.cellType == 0) return;

if ya talking about pushsplits, or "gravitational splits"

i want only eject cell to go throw player not other cell type
Code i used
if (!check.canEat(cell) || cell.getAge() < 20 && check.cellType == 3) return;


Collision Hand and Two Handed - Demo

About:
this currently is a barebones setup, that will hopfefuly end up in a demo scene to showcase how to use the above
currently it is not useable in production as it has some issues that would prevent it from being used properly
Anyways here is a quick rundown on how to add the collision hands, as right now there is no demo scene.
HowTo:
add the collision hand two times under ur xr origing and select the nodes depending on left and right controllers

if u want to have collision on pickable objects as well, check the pickable_collision mark on the collision hand
and instantiate a PickableCollision.tscn to the pickable object like so

Known Bugs:

Pickable_Collision shapes are off
TwoHanded is getting dropped too fast, needs a way to make this not happen that fast or disable when held with two hands?...
if holding a pickable with each hands and those get in contact with each other, they slow down the whole session... will need some further investigation

@BastiaanOlij and @Malcolmnixon
if you guys should have some time to look at the code, this would be nice
there are some issues and am sure i could use some help on refining some of the things, like the collision shape being offset on the pickable collision of the pickables when using the collision hand but right now am just gonna mark this as draft as i got no demo scene up but am workin on it

dont know what it is that happend but for whatever reason when i try to use pickable_collision and or two_handed with the collision_hand, i get a strange result of the visual hands being totally of in transforms like 5 Meters away
tried without the pickable_collision, using only the collision_hands and the issue didnt happen but once i added the pickable_collision, the whole repo got the issue, i suspect some kind of overshadowing of files in my git stashes.. no idea but i gotta close this pr as it doesnt make sense this way


Add query functions on TypeDefinition

Problem
To work with TypeDefinition objects the user needs to be provided some query functions to be able to inspect the type.
Happy Case
We should add at least:

fn generics(self) -> [Token]
fn as_type(self) -> Type
fn fields(self) -> [(Token, Type)]

Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response

Implemented by https://github.com/noir-lang/noir/pull/5310


send.rs:in_reply_to_mentions_issue:test

use nostr::serde_json explicitly

applied cargo +nightly fmt to tests/ngit/send.rs

I'm not sure what you are trying to achieve here? If you are suggesting changing the version of fmt to use, please do so using nix?

When using ngit as a library and not building in nix - it wasnt available when running tests. maybe out of scope - no biggie! :)
great work btw!

When using ngit as a library and not building in nix - it wasnt available when running tests. maybe out of scope - no biggie! :)
great work btw!

O cool. I didn't consider that. Please package the changes together into a single commit / PR and I'd be apply them.

please list what PRs you would like to include.

I will add some cargo docs stubs and add a little more documentation in another PR

maybe i will do it over nostr - good testing. :)

it may be a good test - due to my repo has completely diverged and we can test submitting PRs from a divergent repo. (should work)

your git testing is great... i have some ideas for asynchronous git operations...

also - i have implemented the "expensive tests" as a feature (tokio async) so those can be run separately... i will put together a PR.

please list what PRs you would like to include. I closed the others - I will stack them.

I meant if you were making changes to a number of files so that it passes +nightly fmt then it would be best to include them in a single commit.


How can I only upload metadata with deliver in a Fastfile?

I want to call deliver in a Fastfile lane. However it should only update the metadata. I do not want to upload the ipa again as I want to use the ipa I already tested via Testflight. So it's already uploaded to iTC.
  desc "Deploy a new version to the App Store"
  lane :appstore do
    ensure_git_status_clean
    deliver(submit_for_review: false, automatic_release: false)
  end

I found out the only way to prevent ipa uploading is to not define the path to the ipa when calling deliver. However when using fastlane it automatically detects the ipa in my project directory.
Do I have to use deliver(ipa: "")?

Is it just skip_binary_upload: true? Why is this so hard to find?

Hi @funkenstrahlen! Thanks for following up. Yup, that's how you do it. To see the options available for an action just type fastlane action 'action name'. For example: fastlane action deliver
Thanks!


ldconfig doesn't work

Describe the bug
ldconfig tries to write in a nix store directory, (glibc/etc/ld.so.cache), which is read-only, in order to build a cache.
Steps To Reproduce
Steps to reproduce the behavior:

Try to run ldconfig

Additional context
Reading the manual I figured out that you can use -C path in order to specify a path that is actually writable.
Notify maintainers
@edolstra (?)

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.7.2-zen1, NixOS, 24.05 (Uakari), 24.05.20240129.97b17f3`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.19.3`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/cspbzpnll2sxb1g4qb331ycbyzbjcahb-5gc4ncnkzcgma8fl1qabm8v9kj7w68gl-source`

Add a :+1: reaction to issues you find important.

I also run into this issue when trying to configure nix-ld to also work for python in a virtualenv.

@tobiasBora did you ever figure this out? Were you dealing with ctypes.util.find_library() by chance? Trying to get a python package that uses this working with nix-ld(-rs)

@carschandler I think to remember that the conclusion was to also use LD_* variables for python to work, a library has even been created for this, but I think it just does a bunch of export, but I can't remember the name.


Migrate from node-bunyan to pinojs

Is your feature request related to a problem? Please describe.
Describe the solution you'd like
I would like to improve the performance for the logger in v5.
bunyan is not actively maintained anymore and slower compared to other solutions.
Describe alternatives you've considered
https://www.npmjs.com/package/pino
https://www.npmjs.com/package/roarr
https://www.npmjs.com/package/log4js
Let's discuss what we need and which one we can use in the future.
Additional context
Add any other context or screenshots about the feature request here.
Needed features

different log levels
~rotating log~:

type: rotating-file Will be dropped the built-in support in favor of https://github.com/logrotate/logrotate
type: file will be dropped in favor of verdaccio > /var/log/server.log format.

color support
cluster
streams
Custom logger format? https://github.com/verdaccio/verdaccio/issues/1286

Pino 🌲 +1 is the best option in my opinion

wip PoC here: https://github.com/verdaccio/verdaccio/tree/feat-logging

Seconding the pino integration!

I have a doubt .... perhaps you guys can give me some light on this.
The default configuration for the logger looks like this in the config.yaml file.
logs:
  - { type: stdout, format: pretty, level: trace }

Full config here: https://verdaccio.org/docs/en/logger
But after play around with PinoJS, I realized that I might configure it on start up, for instance.

Redation (http://getpino.io/#/docs/redaction): Nice feature to avoid leaks by third-party plugins or custom middlewares, thus, it is another way to secure verdaccio
PinoJS Options (http://getpino.io/#/docs/api?id=options): Like crlf or disable the whole logger if someone needs some boots the speed and logger is not required for any task.

My doubt would be about the current configuration only allows an array, I cannot introduce breaking changes if I want to ship this on 4.2.0, thus, I was thinking how to add it to the config file in a way do not confuse users.
option_logger:
   - enabe: false
   - crlf: true
logs:
  - { type: stdout, format: pretty, level: trace }

I'm not 100% happy with that, but I guess, perhaps is no the moment to allow configure the logger and perhaps wait for 5.0.0 for such things and just focus in migrate PinoJS.
Ideas? 🤔

Isn't a list an array in Yaml?
Generally it should work.
https://yaml-online-parser.appspot.com/?yaml=option_logger%3A+
+++-+enabe%3A+false
+++-+crlf%3A+true
+++-+redact%3A+['key'%2C+'path.to.key'%2C+'stuff.thats[*].secret']+
logs%3A
++-+{+type%3A+stdout%2C+format%3A+pretty%2C+level%3A+trace+}&type=json

Actually, I meant add option_logger would be not that good idea at this moment.

And ... I made a typo, thanks for let me know. It is not an array what I was pursuing, it is an object. I'll update the example.

I'll publishing new updates under the following tag.
npm i -g verdaccio@logger  --registry https://registry.verdaccio.org

Custom logger request -> https://github.com/verdaccio/verdaccio/issues/1286

I'm actively working on this:

re-write logger from scratch with Pinojs
custom prettifier and allow external prettifiers
It will be possible to disable prettifier and display raw JSON
It will drop two types, file rotation and streaming to files

Few things in advance, the new logger will support plugins, this is an example of configuration I'm using in order to minimize the breaking changes.
logs:
  # Logger as STDOUT
  - { type: stdout, format: pretty, level: http }
  # Logger as STDOUT as JSON
  - { type: stdout, format: json, level: http }
  # Logger as STDOUT as JSON
  - { type: stdout, format: pretty-timestamped, level: http }
  # Logger as STDOUT as custom prettifier
  - { type: stdout, plugin: { dest: '@verdaccio/logger-prettify', options: { foo: 1, bar: 2}}, level: http }

this will be converted as JSON
{
  "logs": [
    {
      "type": "stdout",
      "format": "pretty",
      "level": "http"
    },
    {
      "type": "stdout",
      "format": "json",
      "level": "http"
    },
    {
      "type": "stdout",
      "format": "pretty-timestamped",
      "level": "http"
    },
    {
      "type": "stdout",
      "plugin": {
        "dest": "@verdaccio/logger-prettify",
        "options": {
          "foo": 1,
          "bar": 2
        }
      },
      "level": "http"
    }
  ]
}


Is this an unnecessary encode?

When I tried to use partition_epub to process a Chinese book, I found that the output was incorrect. Through debugging, I found that this encode step caused the final error. However, I'm not sure if it's effective in other situations, so I dare not make a PR rashly.
document_tree = etree.fromstring(content.encode(), self.parser)

I have only tested 2 EPUBs and the situation is the same.
Here is a screenshot of the code debugging for version 0.5.8.

And just change the line which mentioned above document_tree = etree.fromstring(content, self.parser)

Everything is correct.

Got it, thanks a lot!

I tried to process Japanese epub with partition_epub() and ran into the same problem.
I would appreciate if the problem could be fixed.

@pandazki @nakamichiworks - Just released the fix for this in 0.5.11


This Visual is not connected to a PresentationSource.

I was going to close MarkPad on Surface Pro 4 and hit this. Latest release build from ClickOnce install.
Date and Time:         2016/1/17 23:14:32
OS Version:            Microsoft Windows NT 6.2.9200.0
Application Domain:    DefaultDomain
Assembly Codebase:     file:///C:/Users/d/AppData/Local/Apps/2.0/X5HGOY35.XNC/COZ8XMDY.28R/mark...app_0000000000000000_0000.000a_4fe90f97b0816791/MarkPad.exe
Assembly Full Name:    MarkPad, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null
Assembly Version:      <IP_ADDRESS>
Assembly Build Date:   2016/1/17 15:05:36
Exception Source:      PresentationCore
Exception Type:        System.InvalidOperationException
Exception Message:     This Visual is not connected to a PresentationSource.

This might be fixed in MahApps.Metro but when I last looked at this the interface has changed and ResizeWithGrip has been obsoleted - might be a minor thing, but needs investigating...
e.g. https://github.com/Code52/DownmarkerWPF/blob/200df7b3d571dd5a7e4820246c5d4f2d3761021b/src/MarkPad/Document/Controls/HyperlinkEditorView.xaml#L14


Forces stash state sync before accessing syncResult.

Fixes #1189

I don't want to take any chances with this change. Let's merge it into 17.3

@joaoandremartins should be good to merge this.


Strip FUGR generator comments

to #5073
OK, presenting for your judgement. Don't judge too strictly :)
Works quite nicely imho :)

Note: This is a fix/workaround for a bad practice of SAP to include dates/versions in source code


Add and fix some Aqua tests

This is a peel off from #896, which first adds and tackles the unbound type parameters

bors r+


Manage Secret externally

We would like to manage our secret for scimsession via external tooling (terraform). So we need to inject the proper secret into the pod/deployment but we do not want the chart to manage the secret as we then would have to store the credential either in the value files or the helm arguments when calling.
However there is currently one single setting that manages both parts:

create/manage the Secret object
inject the secret into the Pod/Deployment

scim:
  credentialsSecrets:
    scimsession:
      key: scimsession

@devillexio this is a real showstopper for us in using this chart. ;( would you consider any PR on this?
I have thought of 'scim.credentiasSecrets.manageSecret: true|false'

Thanks for the additional context @pniederla. We have plans to make the enabling of the credentials volume/secret more explicit. Unfortunately I cannot commit any timelines. I'm hopeful that we can take a look once we have published the latest version of the SCIM bridge on all available channels.

Agreed with @pniederlag - this seems weirdly inflexible for a company who's sole existence is credentials. I'd love to hear more about what is planned for improvements.

@devillexio this is a real showstopper for us in using this chart. ;( would you consider any PR on this?
I have thought of 'scim.credentiasSecrets.manageSecret: true|false'

I'm currently working on a fork of the chart to allow for external secrets and this change is unfortunately not trivial because of the assumptions made in multiple templates. Will try to PR upstream when it's ready.

As a workaround we configured the secrets with empty values and used kustomize to remove the generated Secret object and defined it ourselves. Maybe that would work for you as well.
values.yml
credentialsVolume: ""
credentialsSecrets:
  scimsession:
    key: scimsession
    value_json: "{}"
  workspaceCredentials:
    key: workspace-credentials
    value_json: "{}"
  workspaceSettings:
    key: workspace-settings
    value_json: "{}"

kustomization.yaml
patchesStrategicMerge:
  - delete-secret.yaml

delete-secret.yaml
$patch: delete
apiVersion: v1
kind: Secret
metadata:
  name: foo-scim-bridge-credentials
  namespace: bar


Completed the Spanish translations for the Plone 4 training

This improvements are the base that be reused for upgrade the Spanish translations for the Plone 5 training.

@pbauer thanks you!

@macagua no, thank you! Do I get it right that you plan to translate the plone5-training(s) to spanish? I suggest you wait until after the conference because there will be many changes in preparation for the trainings in barcelona.

@pbauer Yes, my plan is translate the plone5-training(s) to Spanish.
At the moment I have 49% of the translation done of the plone5 training, this thanks to the reultizacion of the memory of translation of the plone4 training, the rest to be translated are the new sections in the trainings of plone5.
Then I will follow your advice and I will wait for your new changes, thank you for notifying me of these changes to come. :beer: :+1:


Add TLS support for pd's gRPC endpoint

Is your feature request related to a problem? Please describe.
It should be possible for pd to serve gRPC using TLS, without requiring the use of an extra proxy layer.
Describe the solution you'd like
Add a way to specify a certificate that pd will use to do TLS.  Then use Tonic's TLS support to enable TLS connections on the Server.

It looks like the way to do this is:

Use tls_config on the server builder to set a TLS config
Configure a ServerTlsConfig with the cert details.

I'm not sure exactly what we need to take on the command line to populate the ServerTlsConfig, but once we figure out, we could add those as command line options.
At this stage I don't think that we need to do cert management, we can punt all of that to the user for now.

Closing in favor of #1406; I don't think we should support TLS other than auto-TLS, since anyone willing to configure certs manually could also configure a reverse proxy.


Output for first Chapter 1 example is completely incorrect and makes not sense why

Hi, I'm new to Python and just picked up the book. I've setup my environments just fine, but recently updated Python 2.7 to Python 3.7. As I mentioned, everything is working fine up to the point of the first example script in Chapter 1 ( recipe_format_strings_step1.py).
When I run this file in the console, I get this output:
REVENUE | PROFIT | PERCENT
--------------------------
  1,000 |    +10 |   0.00%
  2,000 |    +17 |   0.00%
  2,500 |   +170 |   0.00%
  2,500 |   -170 | -100.00%

I've literally copied and pasted this raw code example in this repo and still no luck, same output as above for me. I imagining it's some quirkiness with Python I'm unaware of, but due to my newness with Python, the recent update from 2.7 to 3.7, I'm not even sure what to Google or look up.
I don't even logically understand how I'm getting -100.00% on the final percent value with the simple division of -170/2500 (output: -0.068). It's like adding two decimal places and rounding down or something "under the hood" (-68% rounded down to -100% and then also adding the two decimal places again as defined by .2% in the TEMPLATE definition; I'm so confused)? Any help would be appreciated.

Are you sure that you are using python3.7 to run the script? Given the result, it seems like you are using python2.7.
the key detail is here
percent = profit / revenue

In Python3, this will produce a float result, while in Python2 it will be an int result. The way it works in python2 is actually a floor division, rounding to the lowest integer, so for example 5/3 will return 1. This is different to the nearest integer.
with negative numbers, the lowest integer is actually -1, you can check doing in Python2
Python 2.7.17 (default, Oct 24 2019, 12:57:47)
[GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> -1/2700
-1

while in Python3
Python 3.8.6 (default, Oct  8 2020, 14:06:32)
[Clang 12.0.0 (clang-1<IP_ADDRESS>)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> -1/2700
-0.00037037037037037035

For a result similar in Python2, you need to change it to
percent = (1.0 * profit) / revenue

forcing to do a float division.
Hope this explains the behaviour
(You can see the Python docs difference between https://docs.python.org/2/tutorial/introduction.html?highlight=division#numbers and https://docs.python.org/3.7/tutorial/introduction.html?highlight=division#numbers )


Remove GooseAI docs and change no-commit-to-branch precommit hook

Since we removed the GooseAI as a registered model (https://github.com/EleutherAI/lm-evaluation-harness/pull/1141/files#diff-390f332b33418a36b2034271770d49b8851cabfafd91998e6b247b1431d9cc7cR67), does it make sense to remove in the docs as well?
This PR also looks to fix the issue with precommit linting. Since the default args for no-commit-to-branch are set to main and master, the precommit will always fail with the GitHub action, which acts only on commits/PRs to main. This allows us to skip the run in this case, but the tradeoff is that this will allow empty commits on that branch.

I believe openai should also be removed from the documentation as a name for OpenAI Completions, since it's no longer supported as an alias.

done!

Thanks very much!


Cannot start zoo1 on port 7000 on macOS

zoo1 might not start on macOS (Monterey) as port 7000 is already in use. The application that uses this port seems to be Mac's AirPlay. Disabling 'AirPlay Receiver' has worked for me (https://developer.apple.com/forums/thread/682332) - but I assume we should change the ZK port?!

merged the fix that resolves this.


Do you have an introduction to the TriHeuristic algorithm for TextChunkProcessor

Shigarov, A., Altaev, A., Mikhailov, A., Paramonov, V., Cherkashin, E. (2018). TabbyPDF: web-based system for PDF table extraction. Information and Software Technologies. 920 CCIS, 257-269. https://doi.org/10.1007/978-3-319-99972-2_20


Face tags don't seem to work for my photos

Describe the bug
I tag my photos using DigiKam on linux (which supports XMP tag) and for some reason, your squirrel photo from the demo shows the face tag but not my photos.
Looking through the code, I don't see any fields being used that aren't in my photo, so I'm stumped. Any idea whats up?
Photo/video (optional) that causes the bug
Related XMP metadata from your squrrel photo:
Xmp.mwg-rs.Regions/mwg-rs:AppliedToDimensions XmpText     0  type="Struct"
Xmp.mwg-rs.Regions/mwg-rs:AppliedToDimensions/stDim:w XmpText     4  1394
Xmp.mwg-rs.Regions/mwg-rs:AppliedToDimensions/stDim:h XmpText     3  930
Xmp.mwg-rs.Regions/mwg-rs:AppliedToDimensions/stDim:unit XmpText     5  pixel
Xmp.mwg-rs.Regions/mwg-rs:RegionList         XmpText     0  type="Bag"
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]      XmpText     0  type="Struct"
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Rotation XmpText     7  0.00000
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Name XmpText    18  Alvin the Squirrel
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Type XmpText     4  Face
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area XmpText     0  type="Struct"
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:h XmpText     7  0.28108
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:w XmpText     7  0.21731
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:x XmpText     7  0.57214
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:y XmpText     7  0.42297

My photo metadata
Xmp.mwg-rs.Regions/mwg-rs:RegionList         XmpText     0  type="Bag"
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]      XmpText     0  type="Struct"
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Name XmpText    12 My Person
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Type XmpText     4  Face
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area XmpText     0  type="Struct"
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:x XmpText     8  0.422976
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:y XmpText     8  0.207705
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:w XmpText     8  0.245531
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:h XmpText     8  0.168197
Xmp.mwg-rs.Regions/mwg-rs:RegionList[1]/mwg-rs:Area/stArea:unit XmpText    10  normalized
Xmp.MP.RegionInfo/MPRI:Regions               XmpText     0  type="Bag"
Xmp.MP.RegionInfo/MPRI:Regions[1]            XmpText     0  type="Struct"
Xmp.MP.RegionInfo/MPRI:Regions[1]/MPReg:Rectangle XmpText    37  0.30021, 0.123607, 0.245531, 0.168197
Xmp.MP.RegionInfo/MPRI:Regions[1]/MPReg:PersonDisplayName XmpText    12  My Person

Screenshots
N/A
Environment (please complete the following information):

OS: Ubuntu 64 bit
Browser: Firefox

Used app version:

compiled from source, deployed as docker container

Hi,
I was developing the feature with Lightroom and did not have the chance to test it with other applications.
I would be happy to support other image editors, but I'm super busy lately. Even if I consider this feature with the highest priority most like I wont have the chance to fix it in the next 2 months.
But I would be happy to merge a pull request, if you have the time adding this to the app.
You can try figuring out the XMP difference with this app: http://metapicz.com
I'm loading the face data here: https://github.com/bpatrik/pigallery2/blob/83025f7b32df67c8079d5c3d5aa57c528cef7196/backend/model/threading/MetadataLoader.ts#L198
I'm using this to parse the xmp data: https://github.com/mattiasw/ExifReader
Best,
Patrik

Happy to contribute, I'm just not so great with frontend tools so I'll be a bit slow. I looked through that file and found nothing being accessed that wasn't in the metadata. It needs a step-through I suppose.

Actually looking at that library, it appears that it might only support JPG which might be my issue. All mine are PNGs

I had a quick look at it and unfortunately you are right.
I put face data to PNG-s and I could not make that lib to read it (even if I switched off their error check)
We can try asking them to add PNG support or we can try finding a new lib. (or alternatively forking theirs and adding PNG support)
To fix it, you don't need to touch the UI part. Its enough to update that few line of code at the backbend where the process the photos.
For that you can use npm run run-backend to build the typescript files to javascript. (or use tsc command with optionally -w flag to watch for changes while you develop)
Best,
Patrik

Hi! Maintainer of ExifReader here. Just want to say that the library supports XMP tags in PNGs since earlier this year if you want to try to upgrade.

Thank you @mattiasw, using the newer version indeed solved the issue.


[hapi usage] replace options.db with options.PouchDB

see https://github.com/hoodiehq/hoodie-server#usage for comparison
This is part of an effort to normalise the options of our hapi plugins:

hoodie
hoodie-server
hoodie-store-server
hoodie-account-server

closing in favor of https://github.com/hoodiehq/camp/issues/51


Oauth not working

Describe the bug
Adding the automower integration fails at oauth. It gives an error 500 internal server error.
Expected behavior
Previously worked fine. Expected it to authenticate normally
The log entry thats generated it this
Logger: homeassistant.helpers.config_entry_oauth2_flow
Source: helpers/config_entry_oauth2_flow.py:211
First occurred: 8:11:49 (4 occurrences)
Last logged: 8:16:35
Token request failed (invalid_client): Client or client secret is invalid
Running latest home assistant image 2024.1.16 in a docker container.

Have you checked your Client id or client secret? Maybe a trailing whitespace?

Yeah it all seems ok, cant see any extra spaces there. Is there any way to manually copy that info from the response url to the integration?

I get this too after upgrading to Python 3.12.


The client-side caching appears to be invalid？

I upgrad version v0.0.83 -> v1.0.21-go1.18, but a test did not pass.
const testCacheTTL = 1 * time.Minute

func cacheCmd(c Cmdable) CacheCmdable {
	return c.Cache(testCacheTTL)
}

type resp3 struct {
	v       ConfVisitor
	cmd     rueidis.Client
	adapter rueidiscompat.Cmdable
	handler handler
}

type resp3Cache struct {
	ttl  time.Duration
	resp *resp3
}

func (r *resp3) Cache(ttl time.Duration) CacheCmdable {
	if r.v.GetEnableCache() {
		return &resp3Cache{resp: r, ttl: ttl}
	}
	return r
}
func (r *resp3Cache) Do(ctx context.Context, completed rueidis.Completed) rueidis.RedisResult {
	rsp := r.resp.cmd.DoCache(ctx, rueidis.Cacheable(completed), r.ttl)
	r.resp.handler.cache(ctx, rsp.IsCacheHit())
	return rsp
}

func (r *resp3) getExistsCompleted(keys ...string) rueidis.Completed {
	return r.cmd.B().Exists().Key(keys...).Build()
}

func (r *resp3) Exists(ctx context.Context, keys ...string) IntCmd {
	return newIntCmd(r.cmd.Do(ctx, r.getExistsCompleted(keys...)))
}

func (r *resp3Cache) Exists(ctx context.Context, keys ...string) IntCmd {
	return newIntCmd(r.Do(ctx, r.resp.getExistsCompleted(keys...)))
}

test
var key1, key2, nosuchkey, value1, value2 = "key1:{1}", "key2:{1}", "nosuchkey:{1}", "Hello", "World"
s := c.Set(ctx, key1, value1, 0)
So(s.Err(), ShouldBeNil)
So(s.Val(), ShouldEqual, OK)

b := c.Exists(ctx, key1)
So(b.Err(), ShouldBeNil)
So(b.Val(), ShouldEqual, 1)

b = c.Exists(ctx, nosuchkey)
So(b.Err(), ShouldBeNil)
So(b.Val(), ShouldEqual, 0)

b = cacheCmd(c).Exists(ctx, nosuchkey)
So(b.Err(), ShouldBeNil)
So(b.Val(), ShouldEqual, 0)

s = c.Set(ctx, key2, value2, 0)
So(s.Err(), ShouldBeNil)
So(s.Val(), ShouldEqual, OK)

b = cacheCmd(c).Exists(ctx, key1, nosuchkey, key2)
So(b.Err(), ShouldBeNil)
So(b.Val(), ShouldEqual, 2)

b = c.Exists(ctx, key1, nosuchkey, key2)
So(b.Err(), ShouldBeNil)
So(b.Val(), ShouldEqual, 2)

d := c.Del(ctx, key1, key2)
So(d.Err(), ShouldBeNil)
So(d.Val(), ShouldEqual, 2)

b = cacheCmd(c).Exists(ctx, key1, nosuchkey, key2)
So(b.Err(), ShouldBeNil)
So(b.Val(), ShouldEqual, 0) // Sometimes, v1.0.21-go1.18 Failures, Expected: '0' Actual: '2'

b = c.Exists(ctx, key1, nosuchkey, key2)
So(b.Err(), ShouldBeNil)
So(b.Val(), ShouldEqual, 0)

Hi @lenonqing,
The notifications of cache invalidation will always come after responses of mutation command in newer redis versions. This will cause what you have observed - immediate  cache access after modification can still return stale result.
There is nothing we can do in the client side.

but same Redis server version, execute  10000 times using v0.0.83 version, it's work ok.
I only upgrade client version, is this normal?

Hi @lenonqing,
I think you were just lucky to execute 10000 times without error. I have run your test with v0.0.083 many times, and it also didn't pass sometimes.
Indeed, the newer versions have a higher chance of failing. I think that is because there are more background goroutines.
You could set the PipelineMultiplex to -1 to reduce goroutines, and it will increase the success chance.
Or you could just put a small delay, ex. time.Sleep(time.Millisecond), after your mutations.

Yes, Use time.Sleep(time.Millisecond) work ok, Thanks!


fix(i18n): add intl support for selects

Description:
Resolves #2073

How Has This Been Tested?
Manually

Types of changes:
Refactor/bugfix

Checklist:

[x] My code follows the code style of this project.
[x] I have reviewed and updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes where needed.
[x] All new and existing tests passed.
[x] My commits have been squashed into a concise set of changes.

Coverage increased (+0.1%) to 20.352% when pulling 0f432ac001dc75e8c3aa2734aa8822aea9004c2d on korhaliv:fix/dropdown-i18n into ed20c3e2658f88eb035bcb549af52983bbef9426 on LN-Zap:next.


I can´t install library in platformio. Error to get ESPAsyncTCP

Hi,
when I install librery in platformio appear this error:
Library Manager: Installing git+https://github.com/khoih-prog/ESPAsyncTCP
git version 2.34.0.windows.1
Cloning into 'C:\Users\msanc.platformio.cache\tmp\pkg-installing-qo24k_s0'...
fatal: invalid branch name: init.defaultBranch =
Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', 'https://github.com/khoih-prog/ESPAsyncTCP', 'C:\Users\msanc\.platformio\.cache\tmp\pkg-installing-qo24k_s0']
This appear to be that deafultBranch is inexsitent in ESPAsyncTCP proyect
Platform.io version 6.1.5

ESP32 v2.0.5
OS WIndows 11

Regards

Hi @hardmax
I have no issue installing here. You can post on PIO Forum for help, certainly with all the settings, such as platformio.ini, etc.
$ pio pkg install --global -l "khoih-prog/AsyncMQTT_Generic"
Library Manager: Installing khoih-prog/AsyncMQTT_Generic
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
Library Manager: Resolving dependencies...
Library Manager<EMAIL_ADDRESS>is already installed
Library Manager: Installing git+https://github.com/khoih-prog/ESPAsyncTCP
git version 2.39.1
Cloning into '/home/kh/.platformio/.cache/tmp/pkg-installing-z94g0l_z'...
remote: Enumerating objects: 54, done.
remote: Counting objects: 100% (54/54), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 54 (delta 3), reused 33 (delta 2), pack-reused 0
Receiving objects: 100% (54/54), 49.41 KiB | 1.54 MiB/s, done.
Resolving deltas: 100% (3/3), done.
Library Manager<EMAIL_ADDRESS>has been installed!
Library Manager<EMAIL_ADDRESS>is already installed
Library Manager<EMAIL_ADDRESS>is already installed
Library Manager<EMAIL_ADDRESS>is already installed
Library Manager<EMAIL_ADDRESS>is already installed
Library Manager<EMAIL_ADDRESS>is already installed
Library Manager: Installing me-no-dev/ESPAsyncTCP @ >=1.2.2
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
Library Manager: ESP Async<EMAIL_ADDRESS>is already installed

Using PIO, you must be very familiar with it to manually modify the settings as necessary.
Good Luck,

Hi, with PIO the same error:
PS C:\Users\msanc\OneDrive\Documentos\PlatformIO\Projects\Prueba> pio pkg install --global -l "khoih-prog/AsyncMQTT_Generic"
Library Manager: Installing khoih-prog/AsyncMQTT_Generic
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
Library Manager: Resolving dependencies...
Library Manager: Installing me-no-dev/AsyncTCP @ >=1.1.1
Unpacking  [####################################]  100%
Library Manager<EMAIL_ADDRESS>has been installed!
Library Manager: Installing git+https://github.com/khoih-prog/ESPAsyncTCP
git version 2.34.0.windows.1
Cloning into 'C:\Users\msanc.platformio.cache\tmp\pkg-installing-s656vqv_'...
fatal: invalid branch name: init.defaultBranch =
Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', 'https://github.com/khoih-prog/ESPAsyncTCP', 'C:\Users\msanc\.platformio\.cache\tmp\pkg-installing-s656vqv_']
Maybe somthing in my cache,I going to review, anyway this is my platformio settings:
[env]
upload_speed = 921600
lib_compat_mode = strict
lib_ldf_mode = chain+
[env:ESP32]
platform = espressif32
framework = arduino
lib_deps =
<EMAIL_ADDRESS>board = esp32doit-devkit-v1
Regards

Hi,
I solve it. My windows Git dont have master branch. I solved put in a terminal:
git config --global init.defaultBranch master
Thansk, regards


Swagger core 1.3.9 - can't seem to get authentication working.

I want to be able to authenticate and set permissions for each api.
I have a list of about 20 permissions.  I want to be able to pass a bearer token in the header and have my authentication manage access to specific apis.
I upgraded to Swagger core, jaxrs and annotations to version 1.3.9.
I added the following lines to my api, and it won't even compile.
@POST
@Timed
@Logged
@Produces({MediaType.APPLICATION_JSON})
@ApiEndpointPermissions({
        @ApiEndpointPermission(permission = PermissionStrings.ORGANIZATION_READ,
                permissionInstancePathParam = PathParamNames.ORGANIZATION_ID),
        @ApiEndpointPermission(permission = PermissionStrings.API_KEY_CREATE)
})
@ApiOperation(value = "Create Api Keys",
        consumes = MediaType.APPLICATION_JSON,
        authorizations = Array(new Authorization(value="oauth2",
                scopes = Array(
                        new AuthorizationScope(scope = "organization:read", description = "read organization"),
                        new AuthorizationScope(scope = "apikey:create", description = "create apiKey")
                ))))
@ApiResponses(value = {
        @ApiResponse(code = 400, message = "Bad Request"),
        @ApiResponse(code = 403, message = "Credentials are required to access this resource")
})

public ApiKeyResponse createApiKey(@PathParam(PathParamNames.ORGANIZATION_ID) OrganizationId organizationId,
                                   @Context HttpServletRequest request) {

   // Do stuff here.
    return apiKeyResponse;
}

My index.html in my swaggerui resource changed to so that api-key goes on header rather than query.
I have several issues:
I've checked the how to embed oauth2 blog post and that post is really old, out of date and there don't seem to be equivalent functions. So I can't pass the api-key in the header with my bearer token and have swagger connect to get the proper permissions to exercise the apis.
Please provide some guidance on authenticating my apis within swagger's documentation.
I am using Java 1.8, dropwizard.
Thank you.
Lucille Wilson
I can't seem to add annotations to the apis to document the permissions each api is allowed.
I can't seem to hook up oath2 at all.

Can't find anything specific that requires documentation. @lagrwilson if there's anything you feel is missing, please add a comment.


How to programatically switch tabs?

I need to be able to programatically switch to a specific tab, how do we do that?
I wouldve assumed an api where we keep the index in state, and listen back to onIndexChanges,
failing that, a ref to access the internal methods of the container. But can't see any docs about either

after looking at the source I found we can do
ref = createRef<Tabs.Container>()
this.ref.current?.jumpToTab("following")

It works but there's still a typescript error
TS2503: Cannot find namespace Tabs
Is there a better way to do this?

There's a CollapsibleRef type you can use:
const ref = useRef<CollapsibleRef>(null)


Solved issue #315 . The live word counter is showing the correct count of alphabets .

🛠 Fixes Issue (#315)

👨💻 Changes proposed
The live word counter is showing the correct count of alphabets .
✅ Check List (Check all the applicable boxes)

[x] My code doesn't break any part of the project (Zero Octave-Javascript-Projects).
[x] This PR does not contain plagiarized content.
[x] My Addition/Changes works properly and matches the overall repo pattern.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots

Hey @NOiR-07 , can you please assign GSSOC label to it as it is not been counted in my PRs for GSSOC'22 .


Operating System Concepts: Preemptive Scheduling

Description
What is Preemptive Scheduling in Operating System?
Overview of Algorithms in  Preemptive Scheduling
1.Round Robin (RR)
2.Shortest Remaining Time First (SRTF)
3.Priority (preemptive version)
Domain
C/CPP
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign


Selecting the "other" option for indicator plant in readiness and stubble height is not opening a prompt to enter a value for other.

REQUIREMENTS

[x] other option is an option on drop down
[ ] selecting other opens popup
[ ] popup allows data entry to define what the other species is
[ ] the text entered in the popup is displayed in the “Indicator Species” field

@calebissharp Should I be seeing this in test now? Might take a time or two for me to figure out when things are actually ready.  Thx

@LisaMoore1 Yes, I think so.

@calebissharp The user needs a predictable way to interact with dropdowns and "other" options.  The pop up model (like for adding a Plant Community) is our standard.  Is it possible to make the indicator plant lists and actions function in the same way? It would mean having the custom value appear in the same space that would otherwise house the selected option from the ref table (at least I think where that value is coming from). Is that doable?
Related -- I thought I captured this in another issue somewhere but I can't find it now so thought I'd better capture it while it is on my mind.
Dropdown list for both readiness and stubble height should only show those species that aren't shrubs. Alder is an example of a shrub -- anything that falls in the same category (I think it is the boolean value for [ref_plant_species].[is_shrub_use] that identifies them) should not be included in readiness/stubble height.

Yes, I could change it to that. I did it this way because I felt like it provides better indication to a user that it is an "other" type, as they are handled slightly differently on the backend. However if you want to handle it transparently with the dialog, I can do that as well. I could also make it so the user can enter a custom value right into the dropdown, so it would behave sort of like a combination dropdown and text box (Here's an example if that doesn't make sense).
That's the same bug as described in #239, correct? I should get around to it next week.

@LisaMoore1 Just pinging you in case you missed this. Would appreciate your thoughts.

Thanks. Did miss it. Our users think of any entry as all the same (that there is a back end doing anything is kind of foreign to them). If we do the entry into the dropdown it will introduce something other than what has been standard...but that would give them a chance to try something else and maybe like it better. I'm good with whichever is easier for you of the two options you propose.
On a separate note -- if you're working on this now we should assign it to the 0.5 milestone, give it some points and stick it in the sprint pipeline.  I'll let you do that for this (any anything else in Lisa's playground) you are working on between now and end of day. Thx

Ok, I'll do the direct entry in the dropdown then!
I think this way may also provide a more streamlined workflow. For example, a user can type the plant they want into a field, and will immediately know if it already exists or if they should add it. The search functionality we'll have is a good idea for such a large list anyway. With the dialog option, they'd have to scroll through the entire dropdown and if they can't find what they're looking for, know to click "Other". There could also be cases where they don't see a plant that is pre-populated, and then end up adding it themselves.
As with any user interaction change, it will take time for users to get used to it. On the positive side, we haven't actually had this type of data entry on web yet, just the iOS app, so they may implicitly expect different types of interaction anyway.
I didn't actually see that we had a milestone, but I'll be sure to add any issues.

@calebissharp Same behaviour (and preference) as #169

@calebissharp Please update so that "ENTER" also advances cursor to next field (as TAB currently behaves)


[Bug] Setting time to 12 kills the app.

After I ran the command time 12 the app stopped working (pressing a button doesn't bring up the console).
I was able to recover my data by copying the .json file and then going back to all the default perfs.

I've already resolved this issue but I haven't pushed an update on itch.io


Filtering problems

When add a function in my controller for filters, filter at ui page did not working:
filter : function(somth) {
if (somth.somth > $scope.somth || somth.somth > $scope.somth) {
return somth;
}
else {
return null;
}
},
UI needs to clear filtering to start working

I believe such an option did not excist

I have apologize and correct myself. Repo isn't dead at all. Just owner did not respond to issues, that he don't like/cannot answer.

OK.
I'm probably going to be helping where / when I can. My main focus over the next few weeks will be on improving the documentation. I'm probably not going to get a chance to reply to issues...

When you typing me that, did you count that as an answer for this issue?

No

I don't ask for much. Just simple "can do" or "can't do" works for me.

I think your question needs running sample code to see what you're trying to do. I didn't want to say myself in case you took the time put something together that I didn't then have the time to look into further

ty

Closing because of inactivity


Refactor server enums

Motivation and context

There are lots of copy-paste around enums in the server implementation. This PR introduces common bases that take the common code an reduce boilerplate.

Added StrEnum and DjangoEnum base classes for enums
Refactored all enums on the server
Fixed few server schema generation warnings

How has this been tested?

Checklist

[ ] I submit my changes into the develop branch
[ ] I have added a description of my changes into CHANGELOG file
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (read github docs)
[ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[ ] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.

@kirill-sizov, please fix the pylint warnings in the develop branch:
************* Module organizations.views
cvat/apps/organizations/views.py:194:4: W0221: Variadics removed in overridden 'InvitationViewSet.perform_create' method (arguments-differ)
************* Module engine.views
cvat/apps/engine/views.py:309:4: W0221: Variadics removed in overridden 'ProjectViewSet.perform_create' method (arguments-differ)
cvat/apps/engine/views.py:822:4: W0221: Variadics removed in overridden 'TaskViewSet.perform_create' method (arguments-differ)
cvat/apps/engine/views.py:1741:4: W0221: Variadics removed in overridden 'IssueViewSet.perform_create' method (arguments-differ)
cvat/apps/engine/views.py:1816:4: W0221: Variadics removed in overridden 'CommentViewSet.perform_create' method (arguments-differ)

@SpecLad , could you please review?

Why not use the Django built-in models.TextChoices class? Seems like it does roughly the same thing as these new classes.

Probably it was added after most of the models. Ok. I've finally found a confirmation in the docs that TextChoices doesn't introduce new DB tables. So yes, probably it could be used instead. I've tried to use it, and it creates an extra migration for a typical declaration of members. Not sure if we want this.

I've tried to use it, and it creates an extra migration for a typical declaration of members.

What does the migration do?

Django enums add a display value for members. In our cases we just return the member name, but in Django enums it will be generated from the names into normal text, so it is almost always different. We can provide our own definitions as the second value:
class YearInSchool(models.TextChoices):
        FRESHMAN = 'FR', _('Freshman')

Or try to override the default and reproduce our current behavior.

@kirill-sizov, please fix the pylint warnings in the develop branch:
************* Module organizations.views
cvat/apps/organizations/views.py:194:4: W0221: Variadics removed in overridden 'InvitationViewSet.perform_create' method (arguments-differ)
************* Module engine.views
cvat/apps/engine/views.py:309:4: W0221: Variadics removed in overridden 'ProjectViewSet.perform_create' method (arguments-differ)
cvat/apps/engine/views.py:822:4: W0221: Variadics removed in overridden 'TaskViewSet.perform_create' method (arguments-differ)
cvat/apps/engine/views.py:1741:4: W0221: Variadics removed in overridden 'IssueViewSet.perform_create' method (arguments-differ)
cvat/apps/engine/views.py:1816:4: W0221: Variadics removed in overridden 'CommentViewSet.perform_create' method (arguments-differ)

Yes, I will fix it in separate PR

I think in most cases the Django auto-generated display value will be fine, and we can override it when it isn't.
But you didn't answer the question. I don't think the display values get saved to the DB, so what does the migration do?

@SpecLad, having DimensionType inherited from Django TextField we get this migration:
field=models.CharField(choices=[('3d', 'Dim 3D'), ('2d', 'Dim 2D')], default='2d', max_length=2),

for the same enum declaration. It's not clear to me if we need these changes in DB for a simple refactoring, nor do I know if we can use these new values anywhere. I think, switching to TextChoices is a good idea, but the default label values need to be changed back to the existing values.

/check


Descriptions are omitted for schema references

If a property of a definition references another defined type via a reference, the description for the property is not written to the schema.
This means that specificity in a document for a description for a type of a property is not serialized to the schema.
This is because if the Reference property is non-null, it is the only property serialized.
https://github.com/Microsoft/OpenAPI.NET/blob/c08eb18391e42555c00297de5530503f3be318a7/src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L254-L258
https://github.com/Microsoft/OpenAPI.NET/blob/c08eb18391e42555c00297de5530503f3be318a7/src/Microsoft.OpenApi/Models/OpenApiSchema.cs#L427-L431
When the schema is serialized, allowable metadata such as the description should still be serialized when a reference is present.
Expected
"definitions": {
  "Foo": {
    "description": "A foo",
    "type": "object",
    "properties": {
      "bar": {
        "$ref": "#/definitions/Bar",
        "description": "A custom Bar"
      }
    }
  },
  "Bar": {
    "description": "A bar",
    "type": "object",
    "properties": {
      "name": {
        "type": "string"
      }
    }
  }
}

Actual
"definitions": {
  "Foo": {
    "description": "A foo",
    "type": "object",
    "properties": {
      "bar": {
        "$ref": "#/definitions/Bar"
      }
    }
  },
  "Bar": {
    "description": "A bar",
    "type": "object",
    "properties": {
      "name": {
        "type": "string"
      }
    }
  }
}

@martincostello  Unfortunately that is by design.  The JSON Reference specification does not allow any keys to be by the side of it.  The OpenAPI TSC is currently working on a new mechanism that may allow something equivalent in the future but currently it is not allowed.  I know AutoREST supports it, but it is not valid OpenAPI.

That’s a shame.
I did try out a V2 schema validator before opening this issue, which appeared to have no issues with the description being present, as well as trying to look up the rules in the spec, but I couldn’t seem to find anything that stated it was forbidden.

@martincostello   It isn't the easiest thing to find.  If you see here it says:

This object cannot be extended with additional properties and any properties added SHALL be ignored.

I've come across this as well. It's frustrating (specific details follow). I do realise from the above that this is not something controlled by this project, but I am not sure where else to post a comment that might be heard.
A string, int or bool property can have a description of what it is for, but it seems wrong that a custom Address type property, say, should not also have a description to say whether it is a home or work address.
To give a real-world example, I am using Swashbuckle.AspNetCore and it is correctly capturing the schema references where my C# API objects contain child objects, and the also capturing in the schema objects descriptions of what those reference objects are for from my XML comments.
But then OpenAPI.NET is (correctly!) not serializing the description even though it is present in the schema, and even if I hack the code from this project (it only needs a couple of lines changes) to output descriptions into the JSON where present along with references, then of course the Swagger UI is (correctly!) ignoring them for display in the UI.
It doesn't prima facie sound hard to change the spec to allow only an optional Description field in addition to the $ref field? (So partly I was just wondering why an entire new mechanism is considered necessary for this.)

See also: https://github.com/OAI/OpenAPI-Specification/issues/556

I feel I'm facing similar issue. I create OpenApiResponse with both description and reference set. And description is not in the serialized content. The problem is AutoRest is expecting description and will fail to generate client if description is not in the input. With this issue present, it looks like I cannot make the generated Swagger definition work in AutoRest by default.
Here is the implementation in OpenApiResponse. It clearly indicates Reference and description (likely other properties) are mutually exclusive.
    /// <summary>
    /// Serialize <see cref="OpenApiResponse"/> to Open Api v2.0.
    /// </summary>
    public void SerializeAsV2(IOpenApiWriter writer)
    {
        if (writer == null)
        {
            throw Error.ArgumentNull(nameof(writer));
        }

        if (Reference != null)
        {
            Reference.SerializeAsV2(writer);
            return;
        }

        SerializeAsV2WithoutReference(writer);
    }

@MikeBeaton Newer versions of JSON Schema have introduced a major distinction between the notion of annotations and constraints.  By doing this they have enabled merging of annotations but remove the problem of trying to figure out how to merge constraints.  Descriptions are considered annotations and not constraints.
We are currently trying to figure out if we can safely adopt JSON draft-8 in OpenAPI 3.1.  Maybe there will be good news at some point in the near future.

It is unfortunate that AutoREST decided to allow this. I understand why they did and I have talked with the team about this issue. Hopefully we can move past this in the near future.

Hey man, it was like that when I got here 🗡

Fear not @fearthecowboy , this will be allowed in 3.1 !


Connections duplicated on redeploy

If you redeploy a node-red flow with TTN message node connections then the connection is duplicated (i.e. original connection is not closed) resulting in duplicate messages being generated.

@beneuto thanks for reporting, we'll investigate this
Feel free to submit a pull request fixing the issue!

Hi,
I also have the bug on a fresh node-red install with only TTN node installed.

This seems quite easy to fix.
Anyone?
See https://github.com/node-red/node-red/issues/893#issuecomment-221696528

Thanks, I will try it and do a PR if it works.

Its weird. NPM last release is v2.0.1, it does contain the "done()" call and the bug is present.
By the way this call has been removed by @romeovs in v2.0.2. So, did you solved the issue ?

Right, it has not been deployed. I will do that.

@Oliv4945 done


Feature request: Versioned buckets

It would be great to empty also versioned buckets before they are removed.
Thank you for the amazing library!

+1 It looks like there was a commit for this, but it does not work. It would simply require fixing the lambda to properly empty a versioned bucket before deleting.

Any news on this? @BDQ @schof
Would be good to support versioned buckets :+1:

@Dzhuneyt I'm not using versioned buckets so I don't really have the expertise to fix this. Happy to accept a PR from you or anyone else though!


Ryuutama Character Sheet Issues

Abstract: Level-up tab in the character sheet does not reflect level-up choices made.
Foundry Version: 0.6.2
Ryuutama 0.4.7
What I did: Created a sandbox, with minimal modules, none affecting character sheets. Created a sample character to test sheet capability. Input 100XP to get to level 2 to test leveling up mechanism.
What went wrong: Inputting either HP, MP or choosing the Stat Increase did not accurately reflect in the topside stat boxes. Inputting 1200XP to get to Level 4 showed that that Level 4 stat increase was not reflected either. The favoured terrain choice did not reflect specialty bonus either, and Immunity choice had no mechanical effect.
Semi-critical issue: Attacker Type taken again does not allow for an extra weapon mastery.
Non-critical issue: Given that many skill checks are paired with another skill, sometimes it feels a little odd to see to chat boxes and having to tabulate success from there, rather than a single read out, but I understand it does make character sheet coding simpler. Also I'm unclear on the checkboxes that increment the Stat up one die level.

Fixed in 0.5.0 release. I removed level reference from the system template.json since it's already there in the form of the key, and forgot to change it in the actor.js to just use key.


Fixes in Theora SCsub

properly pass x86 assembly define to the compiler,
don't compile unnecessary/encoder files.

Meh, scons, I still can't get how to properly make our driver builds self-contained :D


#50 new toc for archive-providers and mdo-providers reference

Part of API toc but open their own tree

@SuperOfficeDevNet I moved the toc entries as requested


Warn user about password loss during OS /app upgrade

As there are no storage resisting OS and application upgrade, currently all passwords are lost when a user upgrade it OS or the password application.
A tool exists to backup / restore them, however we should strongly highlight this, like with a disclaimer message the first time the app is started (?).

Another good reason to change the app to use the BIP85 standard to generate passwords? 😄
#48

You really should do this. I've been using the ledger for a number of years now and I use the password app for my login for my computer. I was forced into upgrading the firmware in order to continue restaking my polygon and cosmos. I upgraded it and lost all my passwords. I had to used the tool to backup the json a year or so ago but I couldn't remember where I put it. I use these to login to my LUKS encrypted computer. Thankfully I was able to remember the name to regenerate the computer password but it took me over 20 attempts and all day before I did.
A simple warning and would be a good idea.

There are some work invested in a client-side (Ledger Live) solution, which is quite larger than just a warning as the root issue is how to keep all app 'local storage' persistent across upgrades (because this issue is basically the same thing as settings being reset). But when embracing the whole system, just a warning feels a small gain for a not so trivial change (or we could argue it already exists in a very simple form, as I'm pretty sure the Ledger Live pops up a "save your data" warning before an upgrade).
But until this is fixed by system/OS design, I'd think an app disclaimer clarifying the current behavior could be an easy and not that costly step.


Rich Text: Formatting options do not respect line breaks

Hello, we have been having trouble with the rich text field editor. When our content editors attempt to apply formatting, the styles do not always get applied correctly, even when a line break is added. Here is an example:
https://github.com/contentful/field-editors/assets/21227678/26fab735-311d-4bda-a1ba-27fc6258cc78
Any response is appreciated. Thank you.

Hi @AKlein920, I'm looking into this now and from what I can tell this only occurs when you add a line break with shift+enter, but not with normal line breaks. Is there another time you were running into this issue, or could you give a little more info on it?

I just tested this out again myself, and you are correct, this only happens when attempting to separate lines out with shift+enter, not when lines are separated by just the enter key. Our content editors often have trouble getting line breaks to be respected when using only the enter key, so our team has advised them to prefer the shift+enter approach.


Eloquent type - integer gets converted to mongodb - string.

Hello all,
We are trying to migrate a database collection which has columns of type integer and hence we have used $table->integer('column_name'). Post migration when we check in the mongo db, the data type for that column is shown as string.
What can be the reason for this?
Thanks in advance...

See this https://github.com/jenssegers/laravel-mongodb/pull/834


Stylebot does not work with https://mail.google.com/tasks/canvas

Dear,
I have tried stylebot to modify Google Tasks page, however it does not work.
Please test this URL: https://mail.google.com/tasks/canvas.
Thanks,

The issue still occurs
Was it fixed ?

I'm having the same issue here. I'm unclear on how StyleBot is meant to be used on iframe content.

Should the URL pattern be for the URL of the iframe, or the URL of its containing page?

Do I need to do anything special to tell Stylebot to look inside iframe(s)?

Here's an example: In Gmail if you use Chat, there are chat boxes with a Video Call button at the top. If you ever press this button by accident, you interrupt someone else, seriously upsetting them, for no reason. This is common. I want it gone.
If I open a Chat as a separate window this is trivial:
hangouts.google.com
div.ttmkl {
display: none;
}
And it works in StyleBot. As soon as I collapse it back into Gmail, it's now in an iframe and not found by StyleBot. This is regardless of whether I use the URL pattern for the iframe (hangouts.google.com) or Gmail (mail.google.com).
How do I get this to work?
I'm unclear on whether this is a continuation of this bug or just missing documentation.

@b9chris styling google gmail tasks bar because its an iframe you'll need to reference the iFrame URL.  As of today targeting https://tasks.google.com  works for me.
For anyone looking for Dark Mode CSS as of today this is working for me:
`.SSPGKf {
background: #090909;
}
.uqJv0c {
background-color: #111111;
border-bottom: solid 1px #373737;
}
.PV0kIb {
background-color: #090909;
margin-bottom: 20px;
}
.lq5Efd {
background-color: #000000;
border: 1px solid #000000;
}
.bRcSk .c6ZeFd, .bRcSk .RFmU6c {
color: #d6d6d6;
}
.zRfOtf {
background-color: #000000
}
.NNKXjd {
background-color: #000000;
color: #707070;
}
.NNChOb {
border-top: 1px solid #000000;
}
.PwTVze .Pf0ADe {
border-bottom: 1px solid #000000;
box-sizing: border-box;
}`


Springdoc / convert to module

fix https://github.com/jhipster/jhipster-lite/issues/2108

Information on hexagonal architecture can be found here https://github.com/jhipster/jhipster-lite/blob/main/src/main/resources/generator/server/documentation/hexagonal-application-service/hexagonal-application-service-architecture.md


Solution Stack Name not valid for Elastic Beanstalk

Hi Team Epsilon,
To start with, thanks a lot for this tutorial and template to install OpenEMR in a breeze.
I followed the tutorial for N.Virginia on my AWS account(Free tier). However, in the mid of progress it got rolled back because of this issue:
15:54:00 UTC-0400 | CREATE_FAILED | AWS::ElasticBeanstalk::Environment | EBEnvironment | No Solution Stack named '64bit Amazon Linux 2017.03 v2.4.1 running PHP 7.0' found.
Once this event failed, the entire stack got rolled back.

Interesting, it looks like the AMI may be wrong. Will look into this.

Hello, vnktsh. A few quick questions.

Can you verify that you're trying to use the stack in us-east-1?
Can you paste attach the full stack output?
Can you install the AWS CLI with your credentials and also attach the response from aws elasticbeanstalk list-available-solution-stacks?

Never mind all that, I think I spotted it. You got bit by http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platform-history-php.html -- your account was newer than the cutoff date for the v2.4.1 solution, so you were only permitted access to the v2.4.2, a situation none of our testers would encounter. Restart from the new guide link and you should be good.

Hi Jesdynf, great that you have found the bug, however I wish I could test this. I realized in free tier I won't have free access to non t2.micro ec2 and db instances. Will I be able to modify the template so that it is safe for free tier users? (e.g. using micro instances and specifying a lesser storage capacities)?

Only to a limited extent -- you're certainly welcome to modify the stack, which you can find in /assets/OpenEMR.json and then submit to CloudFormation directly instead of using the encoded link from the guide, but I fear you may not be able to make the stack completely free. That said, our calculations are that the stack costs about $4.50/day, so call it $0.20/hr, and you can delete the stack at the conclusion of your experiment, so you could conduct a couple experiments for less than a dollar.
Another alternative is to review the live OpenEMR 5.0.0 demo.
Regardless of how you proceed, I recommend checking the section on billing alarms, which will help let you know if it looks like your monthly bill will be higher than you would prefer.

Btw @vnktsh, we are certainly welcoming testers at this point. Let me know if you'd like me to Paypal you some funds for further testing.

Hi Matthew.. I am attempting to install OpenEMR AWS version and got the similar error: "No Solution Stack named '64bit Amazon Linux 2017.03 v2.4.1 running PHP 7.0' found." I went ahead by modifying the linux version from 2.4.1 to 2.4.3 based on the information given at "http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html#concepts.platforms.PHP". This time the it processed the "AWS::ElasticBeanstalk::Environment" step, but now I am getting the error: CREATE_FAILED - Environment failed to launch.
I am not sure how to proceed further. Please suggest.

The solutoion stack currently in the repo uses v2.4.2, not v2.4.1. How are
you launching your stack? Where is your template coming from?
On Aug 19, 2017 2:32 PM, "hellosanket"<EMAIL_ADDRESS>wrote:
Hi Matthew.. I am attempting to install OpenEMR AWS version and got the
similar error: "No Solution Stack named '64bit Amazon Linux 2017.03 v2.4.1
running PHP 7.0' found." I went ahead by modifying the linux version from
2.4.1 to 2.4.3 based on the information given at "
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/conce
pts.platforms.html#concepts.platforms.PHP". This time the it processed the
"AWS::ElasticBeanstalk::Environment" step, but now I am getting the error:
CREATE_FAILED - Environment failed to launch.
I am not sure how to proceed further. Please suggest.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/GoTeamEpsilon/OpenEMR-Cloud/issues/60#issuecomment-323543263,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABrAxQ99ax4In0uWomFcVUM5H4GmEDGiks5sZzhRgaJpZM4OnCj6
.

@jesdynf Thank you for your response. I tried to install from the current master guide, but got the following error: No Solution Stack named '64bit Amazon Linux 2017.03 v2.4.2 running PHP 7.0' found.".
I think AWS is not supporting version 2.4.2 anymore, as mentioned at this link: "http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platform-history-php.html". It looks like support was there till 8/10. Now the new supported version is 2.4.3 as per: "http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html#concepts.platforms.PHP"

Ugh, is this always going to be a thing? It is supported, but not for the newest of the new accounts.
That said, I want you to take /that/ OpenEMR.json file and modify it to use the 2.4.3 stack. It didn't work with the 2.4.1 you tried to modify because there have been Beanstalk changes since then, but now it might work.

hey it worked..thank you so much for your help..

Great to hear! Stop by the OpenEMR chat if you have any questions about the
machinery, I'll be delighted to help.
On Aug 20, 2017 11:11 AM, "hellosanket"<EMAIL_ADDRESS>wrote:

hey it worked..thank you so much for your help..
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoTeamEpsilon/OpenEMR-Cloud/issues/60#issuecomment-323594888,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABrAxV7Kxmafqpsk_58xieREFaG8OOWXks5saFqpgaJpZM4OnCj6
.

👍


refactor: improve frontend performance by avoiding unnecessary requests

[] Investigate if can avoid some calls to DMSS API in frontend @awesthouse
[] Pass down entity when available in frontend to plugins @awesthouse

https://github.com/equinor/dm-core-packages/tree/feature/entity-context


Proposal for multi-material objects

So I've been working over how to create multi-material meshes when rib exporting.  Previously we were creating new meshes (1 per material) adding them to bpy.data exporting, then emitting each rib separately with the corresponding material.  Ok fine, this worked, however it split up meshes, which I claim may have issue on subdiv meshes.  Also seemed to have issues with UV, as well as scene updates which were slow on big scenes.
I have a proposal that seems to work with only ONE (biggish) downside.  It won't support emissive geometry on multi-materials, yet.
Here's the trick.  Just emit the geometry as for a normal object, emit a per face material id primvar.
Emit all the Bxdfs/materials for the geometry, then use the PxrBxdfBlend (keying the mask parameter off the material id primvar) to switch between the Bxdfs.
I could probably even write a light shader .sl to do the same thing fairly easily as well to make it support multiple materials objects that also have emmissivity in them.  But for now we could give the caveat to not use emmisive multi-material Objects.
Thoughts?

BTW I should mention the bxdfblend hookup would all happen behind the scenes.  If that wasn't clear.

As far as I'm concerned, as long as the no emissive multi material limitation is known about and communicated, it can be worked around.  From the sound of it, your solution will solve a number of other problems that are more frequently encountered anyway.

Exactly.  And I think I can write a shader to deal with emmisivity anyway.

I like this idea. It is unfortunate that there is a downside, but if there has to be one that is ok. Great job Brian!

Works like a charm...

Here's the shader rib for anyone interested:
Pattern "PxrPrimvar" "read_material_id" "string varname" ["material_id"]
Pattern "PxrSeExpr" "mat_mask_0" "string expression" ["$input == 0"] "reference float input" ["read_material_id:resultF"]
Pattern "PxrSeExpr" "mat_mask_1" "string expression" ["$input == 1"] "reference float input" ["read_material_id:resultF"]
Bxdf "PxrBxdfBlend" "multi_material" "reference bxdf[2] lobe" ["Material.PxrGlass" "Material.001.PxrDisney"] "reference float[2] mask" ["mat_mask_0:resultF" "mat_mask_1:resultF"]
PointsPolygons [4 4 4 4 4 4] [0 1 2 3 4 7 6 5 0 4 5 1 1 5 6 2 2 6 7 3 4 0 3 7] "uniform float material_id" [0 0 0 1 0 0] "P" [1 1 -1 1 -1 -1 -1 -1 -1 -1 1 -1 1 0.999999 1 0.999999 -1 1 -1 -1 1 -1 1 1]

Is that bxdf blend available in the add on?  I see a few different mixers and layer nodes but they're all rgb color operators. It would be great to be able to blend different Disney bxdf's using a noise pattern or similar

So here's the other "hitch" with this plan.  BxdfBlend is a bit "deprecated" in PRMan 20.0 and is hidden by default.  I can make it available for multi materials, but with the scenario you describe BxdfBlend doesn't really work (it does work ok if you have masks that only 0 or 1 like above)
You should use the PxrLMMixer and mix layered PxrLM materials, or if you want to use PxrDisney, the bxdf is designed around the principle of mixing inputs, not the bxdf.  https://disney-animation.s3.amazonaws.com/library/s2012_pbs_disney_brdf_notes_v2.pdf
Furthermore I might even edit the BxdfBlend node specifically for using with this multi-material scenario in mind and put it in the blender addon distribution.  If done correctly we could take out the seexpr nodes described above...

Good to know on the BxdfBlend.
There's an implementation of the Disney BRDF in another renderer that I play around with and they have it explicitly set up as a layer based system so I just assumed that this was the way it was supposed to work, as opposed to their own interpretation of it.  My bad.
if the BxdfBlend is deprecated it probably should remain hidden as it is now, especially since Pixar seemingly prefers we use the LM system instead.

Ha, layering materials is a topic that we could debate for months.  Luckily here we're merely "switching" between bxdfs

More than happy to leave that debate up to the people who do this stuff for a living, not cowboy hobbyists like myself :)
Playing devil's advocate here, but if the BxdfBlend is deprecated, is that going to cause issues with your multi material switch solution down the line?

I'm probably going to rewrite it for specifically this purpose, and put it in the github distribution as "BxdfSwitch" (or BxdfSelect)

Sounds great. Just a note you might have to adjust the code for detecting shaders in the plugin's directory to prevent the user from using it in the material editor (displacement tab.) This is shaping up to be great!

Leaving this open as I still want to get that bxdf rewritten.  Anyone want to learn to write bxdfs? ;)

Yes please. I have a basic understanding of the api and I mostly know how the PxrConstant shader works so any more information would be great!

Just a note of a bug I've found with the new multi material export and IPR.  Everything looks fine at first, but if you add or delete any nodes on the material that you're editing the entire object will then show that material (other materials appear to get overridden when the refresh is triggered).  I have to restart IPR to get the rest of the materials back.  This bug does not happen if you only edit parameters (such as color).

So coming back around here.  In the near future with renderman the way to do things like this is to use hierachical subdivs for multi material shader attachments (and keep the way we're doing on polys).  I'm going to rename the issue.


(10/10) RUM-2895 Update sample compose screen

This PR has been created automatically by splitting a large branch
RUM-2895 Update sample compose screen

Codecov Report

Merging #1888 (ef7a76c) into feature/sr_compose (160a264) will increase coverage by 0.02%.
The diff coverage is n/a.

Additional details and impacted files
@@                  Coverage Diff                   @@
##           feature/sr_compose    #1888      +/-   ##
======================================================
+ Coverage               82.14%   82.16%   +0.02%
======================================================
  Files                     496      496
  Lines                   17446    17447       +1
  Branches                 2650     2650
======================================================
+ Hits                    14331    14335       +4
+ Misses                   2397     2395       -2
+ Partials                  718      717       -1

see 26 files with indirect coverage changes


Cant start apps

Heloo, i cant start whats2api, this screenshoot message
https://prnt.sc/vvgq6p

same

same

You can try add code
Array.prototype.find = function(...args) {   let index = this.findIndex(...args)   if (index >= 0) return index >= 0 ? this[index] : void 0 }
in modules/whatsapp.js before variable global.openWA

@rejidan @haziqmus @aRhez0903 @sakidi-umv Have you lot tried the Easy API CLI in wa-automate?

I haven't tried again to use Easy Api Wa-Automated because when I tried the old version I couldn't take qrcode images yet. I will try again with the latest version, thanks @smashah

@rejidan @haziqmus @aRhez0903 @sakidi-umv Have you lot tried the Easy API CLI in wa-automate?

Thanks you, after post this issue i have try to easy api and its works, but i not close this post hope this repo update

Great. Feel free to make an issue in the other repo if there's something I can do there to get this project working for you again 👍


Update toHaveSelector to use state: hidden when not is set

Fixes #32
Updates toHaveSelector to switch the state automatically to state: 'hidden' if used with not.

Codecov Report

Merging #94 (6f62265) into master (503a29c) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #94   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           10        10
  Lines          152       153    +1
  Branches        25        26    +1
=========================================
+ Hits           152       153    +1

Impacted Files
Coverage Δ

src/matchers/toHaveSelector/index.ts
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Modified github readme

Fixes Issue #126

Changes proposed

Screenshots
!

Note to reviewers

@verma-kunal @anubha-v-ardhan

@chirag0002 squashed the commits

I don't think it is squashed & merged properly please have a look

@AvineshTripathi can you merge it for this time because I seem to follow all the steps but it's still not squashing. Will take care from next time to not make so many commits


Network policy is not enforced

Environmental Info:
K3s Version: v1.21.4+k3s1

Node(s) CPU architecture, OS, and Version: Linux server 5.13.0-1019-gcp #23~20.04.1-Ubuntu SMP Mon Mar 7 13:39:50 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Cluster Configuration: 1 server, 1 agent.
Describe the bug:
Applying deny-all network policy in a namespace is not enforced as expected.
Steps To Reproduce:

Installed K3s: /usr/local/bin/k3s server with defaults, no flags were passed.
The policy:

apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  namespace: prod
  name: deny-all
spec:
  podSelector: {}
  policyTypes:
  - Ingress
  - Egress

Expected behavior:
Applying deny-all network policy in a namespace should deny all traffic.
Actual behavior:
I set up three namespaces with some pods running: prod, qa and demo.
From the diagram, the policy is applied in the prod namespace. I am expecting traffic to block, but for some odd reason, pod-1 is able to reach.

The second scenario, I applied the policy in the demo namespace. And I still get this odd behaviour where the ds pods are able to reach whereas the curl pod not as expected.

Additional context / logs:
server: iptables-save -c | grep deny

[1:60] -A KUBE-POD-FW-J3LFR2RAC67TX63O -m comment --comment "run through nw policy deny-all" -j KUBE-NWPLCY-SA6FJAI3TI2BUUWP

agent: iptables-save -c | grep deny

[1:60] -A KUBE-POD-FW-Q57E535675JMJWPF -m comment --comment "run through nw policy deny-all" -j KUBE-NWPLCY-YV6U3WFXB7MUMPRI

Output from /etc/cni/net.d/87-podman.conflist
{
  "cniVersion": "0.4.0",
  "name": "podman",
  "plugins": [
    {
      "type": "bridge",
      "bridge": "cni-podman0",
      "isGateway": true,
      "ipMasq": true,
      "hairpinMode": true,
      "ipam": {
        "type": "host-local",
        "routes": [{ "dst": "<IP_ADDRESS>/0" }],
        "ranges": [
          [
            {
              "subnet": "<IP_ADDRESS>/16",
              "gateway": "<IP_ADDRESS>"
            }
          ]
        ]
      }
    },
    {
      "type": "portmap",
      "capabilities": {
        "portMappings": true
      }
    },
    {
      "type": "firewall"
    },
    {
      "type": "tuning"
    }
  ]
}

So hostNetwork: true was enabled on the ds spec, thus policies won't apply as pods become part of the host's networking. I wonder if there is a workaround built-in before trying out calico's host policies?

I believe this is listed as a known issue upstream: https://kubernetes.io/docs/concepts/services-networking/network-policies/#what-you-can-t-do-with-network-policies-at-least-not-yet

The ability to prevent loopback or incoming host traffic (Pods cannot currently block localhost access, nor do they have the ability to block access from their resident node).


Latest version fails to get DAPS token

We've been trying to deploy a simple IDS configuration with a connector and a broker (starting respectively from the docker-compose files https://github.com/International-Data-Spaces-Association/IDS-Deployment-Examples/tree/main/dataspace-connector/full and https://github.com/International-Data-Spaces-Association/metadata-broker-open-core/tree/master/docker/composefiles/broker-localhost).
The connector seems to work fine, and we were able to use the UI to produce and then consume a resource. However we were not able to register the connector with the broker, as the broker fails to authenticate with DAPS and throws
"TokenRetrievalException: Unable to retrieve DAPS token".  This fails both with the default configuration and when passing a DAPS url from the command line.
We also tried deploying our own DAPS server and configuring the broker to use it, but the setting seems to be ignored as no request is logged on the DAPS server.
This is our docker-compose configuration:
version: '3'
services:
  broker-reverseproxy:
    image: registry.gitlab.cc-asp.fraunhofer.de/eis-ids/broker-open/reverseproxy
    volumes:
     - /c/topix/metadata-broker-open-core/cert/:/etc/cert/
    networks:
      broker:
        ipv4_address: <IP_ADDRESS>
      public:
        ipv4_address: <IP_ADDRESS>
    # ports:
    # - "443:443" # IDS-HTTP API
    # - "80:80"

  broker-core:
    image: registry.gitlab.cc-asp.fraunhofer.de/eis-ids/broker-open/core:latest
    # image: registry.gitlab.cc-asp.fraunhofer.de/eis-ids/broker-open/core:4.2.8
    volumes:
      - /c/topix/metadata-broker-open-core/cert/:/etc/cert/
    restart: always
    environment:
    - SPARQL_ENDPOINT=http://broker-fuseki:3030/connectorData
    # Dirty hack to pass extra args
    # - ELASTICSEARCH_HOSTNAME=broker-elasticsearch -Ddaps.url=http://<IP_ADDRESS>:4567/token -Ddaps.token.url=http://<IP_ADDRESS>:4567/token -Ddaps.key.url=http://<IP_ADDRESS>:4567/.well-known/jwks.json
    # - ELASTICSEARCH_HOSTNAME=broker-elasticsearch -Ddaps.url=https://daps.aisec.fraunhofer.de/v3/token -Ddaps.token.url=https://daps.aisec.fraunhofer.de/v3/token -Ddaps.key.url=https://daps.aisec.fraunhofer.de/.well-known/jwks.json
    - ELASTICSEARCH_HOSTNAME=broker-elasticsearch
    - SHACL_VALIDATION=true
    - DAPS_VALIDATE_INCOMING=false
    - IDENTITY_JAVAKEYSTORE=isstbroker-keystore.jks
    - COMPONENT_URI=https://localhost/
    - COMPONENT_CATALOGURI=https://localhost/connectors/
    - JWKS_TRUSTEDHOSTS=daps.aisec.fraunhofer.de,omejdn,daps-domain.example
    networks:
      broker:
        ipv4_address: <IP_ADDRESS>
      public:
        ipv4_address: <IP_ADDRESS>
      daps:
        ipv4_address: <IP_ADDRESS>
    # expose:
    # - "8080"

  broker-fuseki:
    image: registry.gitlab.cc-asp.fraunhofer.de/eis-ids/broker-open/fuseki
    volumes:
      - broker-fuseki:/fuseki
    networks:
      broker:
        ipv4_address: <IP_ADDRESS>
    # expose:
    # - "3030"

volumes:
  broker-fuseki:

networks:
  public:
    external: true
    name: topix_public
  daps:
    external: true
    name: daps_daps
  broker:
    ipam:
      driver: default
      config:
        - subnet: "<IP_ADDRESS>/24"

Version 4.2.8 on the other hand is able to connect to the Fraunhofer DAPS but not the custom DAPS.

@CapacitorSet we are almost a year further. Were you able to resolve the issue?


Fix missing "currentNode" variable declaration in data structures linked list challenges (Russian)

Description
This PR fixes an issue where the currentNode variable in the following challenges is not declared before usage like it should be:

https://learn.freecodecamp.org/coding-interview-prep/data-structures/remove-elements-from-a-linked-list/
https://learn.freecodecamp.org/coding-interview-prep/data-structures/search-within-a-linked-list/
https://learn.freecodecamp.org/coding-interview-prep/data-structures/remove-elements-from-a-linked-list-by-index/
https://learn.freecodecamp.org/coding-interview-prep/data-structures/add-elements-at-a-specific-index-in-a-linked-list/
https://learn.freecodecamp.org/coding-interview-prep/data-structures/search-within-a-linked-list

Checklist

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

Sibling PRs

Arabic: #35636
Chinese: #35637
English: #35638
Portuguese: #35639
Spanish: #35641

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


Problems with font, styles and images on Ubuntu 16.04

I am having very hard time trying to make just a basic businesscard example working fully.
I installed the module locally and tried to run the given example:
var fs = require('fs');
var pdf = require('html-pdf');
var html = fs.readFileSync('./test/businesscard.html', 'utf8');
var options = { format: 'Letter' };

pdf.create(html, options).toFile('./businesscard.pdf', function(err, res) {
  if (err) return console.log(err);
  console.log(res); // { filename: '/app/businesscard.pdf' }
});

Apparently it worked fine, PDF went out, but...
Background was black (this is ok), size was also ok, but the font was not incorrect, the image was not there... Looks like styling problem or some kind, or some configuration, but I cannot solve it.
I spent 2 days searching for a solution, no success...
Can anybody please help me?

Hello @aorlic! having the same problem here. Apparently the PDF is always compiled with the default linux font 😞

@adrianovalente You will have to have the font installed on the server https://medium.com/@stockholmux/besting-phantomjs-font-problems-ee22795f5c0b
@aorlic Base64 encoding images into an img tag works. Giving the fully qualified path to a webserver serving the image somewhere works too.  I'm assuming that's because, when called from Node, PhantomJS doesn't have a way to know where to find the image unless it's talking to a webserver.

@ScriptGadget : Thanks for the hint but I could not still solve it. I am using a Ubuntu server. In Ubuntu, type1 folder does not exist at /usr/share/fonts based on the description of your link. I installed my fonts in truetype but it did not help me.
I thought maybe I need to install phantomjs-prebuilt globally that perhaps help but it did not let me install it (access denied) even with sudo keyword.
My problem is related to loading the font. In the HTML format everything works fine but when I make the PDF the font changes. I tried to use the advice in the link that you published here but no success yet.


Missing double equals in captiveportal.inc

Looking at where this is nested inside various if statements, I do not think this error did too much harm - only to the $mac['descr'] - in this particular code flow $username is not used for important stuff after this point.

merged, thanks


How to specify SERVER_BUNDLE_ONLY in production?

I'm able to get pre-rendering working fine locally but I have issues in production.
Here's the error I see.
https://gist.github.com/Overload119/908f96279a537d84a1da9fec5a877a83
I'm pretty sure it's because my server bundle is not being used (I'm using server-side rendering with HMR).
webpackConfig.js
if (process.env.WEBPACK_DEV_SERVER || process.env.CLIENT_BUNDLE_ONLY) {
    // eslint-disable-next-line no-console
    console.log('[React on Rails] Creating only the client bundles.');
    result = clientConfig();
  } else if (process.env.SERVER_BUNDLE_ONLY) {
    // eslint-disable-next-line no-console
    console.log('[React on Rails] Creating only the server bundle.');
    result = serverConfig();
  } else {
    // default is the standard client and server build
    // eslint-disable-next-line no-console
    console.log('[React on Rails] Creating both client and server bundles.');
    result = [clientConfig(), serverConfig()];
  }

How do I make sure pre-rendering on the server-side is using this process.env.SERVER_BUNDLE_ONLY flag?

The process.env.SERVER_BUNDLE_ONLY is used only for building the server bundle when using the webpack-dev-server, so this is not relevant to your production setup.
Your gist error message does not show the source of the error.

Thanks! Yeah I misunderstood a ton of things here, but I eventually found out the issue was this one:
https://github.com/webpack/webpack/issues/8677


also remove owl:imports?

https://github.com/gtfierro/ontoenv/blob/c20a1c741c879717ea2c4109e5c322445885d70c/ontoenv/__init__.py#L270
Does it make sense to also remove owl:imports here so that another processor doesn't also process the imports (including ontoenv ittself)?

Can you be more specific? Do you mean removing them as part of importing the dependencies? Ontoenv knows which graphs it has visited so I don't think we want to remove the owl:imports

Can you be more specific? Do you mean removing them as part of importing the dependencies? Ontoenv knows which graphs it has visited so I don't think we want to remove the owl:imports

Removing the triples  (s, owl:imports, o). Since ontoenv did the importation process, it doesn't make sense for potentially another program (like shacl  ) to also do it.


Would a Zipkin contrib module be interesting?

I've had some informal interest in a Zipkin support for this. Such would make it easy to test, as Zipkin can even run as a junit rule. Also, it could help with sites who already run Zipkin (as traces could enter the same depot). Finally, it could help familiarize folks with this project.
Such an integration would likely be an exporter and possibly a pluggable means to control (or append) trace identifiers in B3 format. The latter could be helpful as existing gRPC integration is done via B3 headers. Zipkin support should plug-in nicely to existing hooks in this project.
Generally speaking, I don't work until users are interested in it. If you are interested in this, please click thumbsup or otherwise note how it would be helpful to you. If you think this shouldn't be here, or shouldn't exist at all, you can also mention this.

I think it would be great to have Zipkin as one of the exporting options.


PHP on demand

This allows on-demand installation of existing archives when the requested version is not available via phpenv global ….
Tested in staging: https://staging.travis-ci.org/BanzaiMan/travis_staging_test/builds/434566
Currently the only special ones are nightly (a.k.a. 7/7.0) and 7.0.0beta2 (https://staging.travis-ci.org/BanzaiMan/travis_staging_test/jobs/434571#L84). All others should fail (e.g., https://staging.travis-ci.org/BanzaiMan/travis_staging_test/jobs/434572).

:ship: :it:


#7227: Unet Inference

setting up inference pipeline with available PCC (In Progress) - PCC (~0.0) Debugging

@saichandax please add a README to include instructions on how to run the demo/inference pipeline and where to download model weights from and where to save them.


Ensure that the entire chat request is cancellable

Description
The main goal of this PR is to make entire chat request cancellable. Currently, if user cancels before the response streaming starts, the request will still go through. For the fqn piece, we can use Workerpool's "cancel" feature. Otherwise, we just need to early terminate and return a ResponseError with RequestCancelled code.
I tried to make this reusable by creating a wrapper function that creates a promise for cancellation that will "race" against the core logic: the value that is resolved first will be returned.
The other two changes:

Combined DocumentContext and TriggerContext into a single TriggerContextExtractor as the separation offer no benefits
Removed unneeded start trigger information

Testing

Regression test in VS  ✅
Also tested the end chat flow with temporary UI implementation (not included in this PR)

Cancelling during FQN execution ✅
Cancelling during outgoing request ✅
Cancelling during response streaming ✅

License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

I tested this change locally and it works, the changes in this PR LGTM.
However currently the backend doesn't support cancellations and returns an improperly formed request error when you cancel a request and make a new request on the same chat afterwards. Therefore we should not merge this PR yet.
I will update this PR with the related changes on the chat client as well for completeness