Print iframe fix

This PR includes the following fixes

[x] Fixed the print for iframes with Treeview document to show the tree hierarchy during print.

[x] Persisted scrolling during print

[x] Parsing the URL to check if there is an embedded YouTube video. If yes, then add a class to apply the above discussed custom styles.

[x] The same has been processed for the  markdown pattern as well.

Applying the thumbnail to the YouTube video on print was complicated as the styles are applied via YouTube and we have limited access to it. Hence, the alternative was to display a note informing the user that the video is hidden during print and possibly provide the URL of the hidden video.

@RFSH / @jrchudy , it took me quite sometime to figure out but I finally understood why the test cases were failing. So from what I observed, add a .className to the attribute list in the mark down results in created a double class name in the result of the markdown.
E.g.  '::: video [caption](http://techslides.com/demos/sample-videos/small.mp4){width=800 height=200 loop muted .someClass} \n:::';
Resulted in : captionNote: Video (http://techslides.com/demos/sample-videos/small.mp4) is hidden in print '
This is because in the code where I have defined how the video markdown should be interpreted and rendered, I have added the "hide-in-print" class by default to it.
helper.js
videoClass='class="' + module._classNames.postLoad + " " + module._classNames.hideInPrintMode.
expect(<CALL THE API THAT YOU WANT TO TEST>).toBe(<EXPECTED VALUE>, <ERROR MESSAGE>);
Thus for the above line, the  is interpreted and rendered according to the code in helper.js file. It then checks if that output matches with the  in the test case.
I also noticed that in case there is no class passed to the iframe, there still happens to be an extra space for it which is failing in the test cases. I tried to re-write the code but there were way too many changes so I decided to just go ahead and add the spaces. Now all test cases for the video and iframe markdowns have passed.
Executed 53 of 53 specs SUCCESS in 6 secs.
Test suite passed

However, on running make test, one test case failed. This refers to the iframe markdown defined in some other file which I was unable to find out. If you could tell me how I can go about finding it, that would be great. Please review my changes and let me know if there are is an issue.

@RFSH / @jrchudy : I also tried to check if I could bypass the browser settings to always display the background images but I was unable to. I tried the following options as suggested in this post but had no luck!

Added the changes to <body>

body {
    content:url(32px.png) !important;
    -webkit-print-color-adjust: exact !important;   /* Chrome, Safari */
    color-adjust: exact !important;                 /*Firefox*/
  }

Added it to the universal selector *

/*To force the browser to print background images and colors*/
  * {
    -webkit-print-color-adjust: exact !important;   /* Chrome, Safari */
    color-adjust: exact !important;                 /*Firefox*/
  }

Since nothing worked, I haven't committed the changes. I also ready a couple of articles and in most of them, the discussion say we have very little control over the browser's printing capabilities. However, I found this post which explains how we can turn on the settings in all major browsers to have the background images printed.

@DamCousik You should be able to merge all of your PRs. After you're done with the merge, make sure it's working properly on dev.facebase and dev.rbk (you need to wait for hourly update). When you verified that it your changes were working properly, announce the change in the issues that are related to the changes.

Hi Aref, regarding your comment. I did understand why the old ones were failing. It is because of the newClass I added. I did so because you said it should be applied to all. The reason I did not correct you is because we have scenarios where we are expected to add class to the iframes in those cases it will not add since while rendering the iframe, the class element is missing. That’s why I went ahead and made those changes.
So just to point it out again, there is no "class" element attached to the iframe markdown now apart from the ones having a youtube video. So if a class needs to be defined , we may have to remake those changes.


add svelte + bundler

Add svelte with a bundle (roll up?) to support dividing code into few files.
Something like it's done here https://github.com/wrex/ganbarometer-svelte

Using https://github.com/lpshanley/tampermonkey-svelte as a base for code.

To fix dependencies, I removed jquery methods from the code: https://github.com/Nefere256/mfc-tagger-plus/commit/51e2d9921265314b45bdb83ecdd7efd928736eee
It's already imported by MFC, but I couldn't config rollup to work not only during bundling but also on client side.


Prepare on base raspbian

I wanted to run this on a base raspbian 64 bit lite install, but there is no prepare specifically for it and the ones for Ubuntu/Mint do not work, apt suggests using libjpeg62-turbo-dev instead  of libjpeg8-dev.
Once I installed the dependencies manually and picked one of the existing OSs, because it continues even if it fails to install, it did work just fine, but I feel like this might be a valid OS option to add

Thanks. I will take a look shortly.


Add: Community Resources

Subspace is the first protocol to completely resolve the blockchain trilemma without compromise. written by @solgas
[FAQ translated to Russian](https://docs.google.com/document/d/17LwoBVP6POgaI18oajyI9xsi3nSJDtS7O-TvKSoHQwo/edit) by Artem Frolow
[How to get started farming in Russian](https://vmelbit.medium.com/%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D0%BC%D1%81%D1%8F-%D1%84%D0%B5%D1%80%D0%BC%D0%B5%D1%80%D0%B0%D0%BC%D0%B8-subspace-network-5bacab106755) by vmelbit

Thank you 💯
Note: you doubled your markdown so when its copied theres issues.


Remove flake8 usage, use ruff in CI, fix ruff warnings

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 47.616%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
495

Relevant Lines:
970

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 47.616%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
495

Relevant Lines:
970

💛  - Coveralls


Recreate Auth-Server. Create a empty skeleton

AB#72

I did in other issue

I did in other issue


Support Ghost v1

Announcing of v1 at Ghost blog. Ghost v1 has a bit different db structure.
I also updated codeclimate badge. You can see it here: fork’s readme

@isqua looks good to me! Just to confirm, this will break compatibility with older ghost versions, right? (that's fine with me, just want to know so I can bump the version appropriately)

will break compatibility with older ghost versions

Yep, right. It is major changes.

Thanks for your contribution!


docs: output files within output directories is an error (#2848)

Provides the documentation suggested in issue #2848, and fixes a bug found while investigating:
The check_directory_outputs() function relies on the sorting of file paths to detect nested outputs. This breaks on windows as file paths are separated with \\ rather than /, which is sorted after alphanumeric characters, rather than before.
I've fixed this, and provided a test case, but as there's not currently a mechanism for distinguishing failures before/during execution (before being the intended behavior, as this provides better feedback to the user), it would pass either way. A better test would be the code below, but I don't want to stray from the use of run() in the other test cases. It may also be possible to extend run with an expected_exception parameter for non-shell execution.
def test_github_issue2848():
    # Should fail on parsing with ChildIOException, on Windows previously failed during execution
    with api.SnakemakeApi() as snakemake_api:

        workflow_api = snakemake_api.workflow(
            resource_settings=settings.ResourceSettings(cores=1),
            snakefile=Path(dpath("test_github_issue2848/Snakefile")),
            workdir=Path(dpath("test_github_issue2848")),
        )

        dag_api = workflow_api.dag(dag_settings=settings.DAGSettings(targets={"output/c.txt", "output/dir2/d.txt"}))

        with pytest.raises(ChildIOException):
            dag_api.execute_workflow()

QC

[x] The PR contains a test case for the changes or the changes are already covered by an existing test case.
[x] The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

There is shouldfail=True as a parameter in the run function. Would that help?

shouldfail doesn't specify when it should fail - the old behavior (passing parsing, failing during execution) and the desired behavior (failing during parsing, and displaying a useful error message) can't be distinguished this way, i.e.: the test included in the PR (below) passes either way:
def test_github_issue2848():
    # Should fail on parsing with ChildIOException, on Windows previously failed during execution
    run(
        dpath("test_github_issue2848"),
        targets=["output/c.txt", "output/dir2/d.txt"],
        shouldfail=True,
    )

I see. So let's be happy with the kind of test we have for now, and happy to take a separate PR that refines the testing in the future.

Mhm, sorry, did I break something with my little change?


DOMException: Failed to execute 'add' on 'DOMTokenList':

Getting this error - not really sure where this module is used in my project atm but its this module causing the error in my system.
The token provided ('[object Object]-appear') contains HTML space characters, which are not valid in tokens.
-appear makes me think it is the react addon for css transition...

The problem is you are passing an object instead of a string somewhere, The issue isn't here tho, the error you'r getting is correct, you'll need to fix it further up the stack


Remove the docs folder

Since this fork will mostly follow the source repository with just a few changes and given that on the readme we advise readers to read the original documentation, perhaps we should remove the docs folder and any related files/configurations.

What if we'll add our own features or modify some of the existing ones? We'll need to document it then.


How to unify the Asian font and Latin font?

I followed the build script provided in langage-chinese/build.sh with CJKmainfont="Noto Sans SC.
# No lang option (-V lang=zh) here because Chinese is unsupported in polyglossia and babel.
pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --listings --pdf-engine "xelatex" -V CJKmainfont="Noto Sans SC"

The output is great overall! But the English char is a little bigger than the Chinese char. I'm wondering about how to unify the Latin font and Asian font. Thanks!

Same issue, how do you solve it? Thanks.

@raiots Try to use another font such as Noto Sans Serif

fixed it, thanks a lot! I was thought there is someway to specific set fonts for English lol.

Same as your thoughts.


Extension dependencies

Fix ev, event, pq package dependencies
Add testapp for basic extension testing.

It correctly fails as pq doesn't yet depend on raphf package and event doesn't install libevent runtime. I will push these fixed packages, then re-run these tests.


refactor(docker): Clean up build process

Replace the 'debian:bullseye' to the Node's official image.
Adapt for Yarn, and copy the correct lockfile.
Copy only the needed files.
Add the trailing space to Dockerfile.

Hi @pan93412,
Please update to newest package.json

Thanks for your contributing!


WebCard to Not Reload Default URL

To explore options and see why the default URL is reloading.
ITS-Pro category: https://its-pro.ucsd.edu/browse/MA-66
This is complete when:

[ ] The WebCard does not reload the default URL when submitting the web form, e.g. https://eforms.ucsd.edu/view.php?id=537412
[ ] Testing PASS on iOS
[ ] Testing PASS on Android

It seems that listening to a URL change is not possible, looked at quite a few things online (ex: https://github.com/flutter/flutter/issues/27729). Instead, I have an implementation where redirects are accomplished via a JS channel and actually executed on the flutter side (via WebViewController). The reload url is also set to the new url, so tapping 'reload' will not revert to the initial URL. I'm not sure if this is an adequate solution to the issue.


Bug: cannot write more than 32 bytes to tables with tableIdArgument

To replicate:
Declare a table with tableIdArgument, any primary keys, and a bytes field.
TestTable: {
    primaryKeys: {},
    schema: "bytes",
    tableIdArgument: true,
},

Writing 32 bytes is okay:
TestTable.set(world, RangeTableId, bytes("1234"));
But writing more, like:
TestTable.set(world, RangeTableId, bytes("12345"));
results in StoreCore_InvalidDataLength(4, 5) error.

I think the problem is with where RangeTableId comes from, and how the schema at that location is registered, so I need that context too

ooc what does the TestTable generated code/function signatures look like?

@dk1a I think the table should be registered as I'm using this in a test (but I don't have the best understand of how schemas work). The full context is like:
contract MyTest is MudV2Test {
  IWorld world;

  function setUp() public override {
    super.setUp();
    world = IWorld(worldAddress);
  }

  function testBytes() public {
    vm.startPrank(address(world));

    TestTable.set(world, RangeTableId, bytes("12345"));
  }
}

@holic sure, and I will create a minimal repo to demo this. The set function is like:
function set(bytes32 _tableId, bytes memory value) internal {
  bytes32[] memory _primaryKeys = new bytes32[](0);

  StoreSwitch.setField(_tableId, _primaryKeys, 0, bytes((value)));
}

@dk1a I think the table should be registered as I'm using this in a test (but I don't have the best understand of how schemas work). I've not had issues with Table.set() in any other tests.

I kinda forgot test-v2 existed, you need .registerSchema if you're running pure forge test, or deploying stuff dynamically during tests (which is what my minimal example was, I just registered a new schema during forge test)

Range has two int32 fields. If I use a single uint256 field, I get StoreCore_InvalidDataLength(4, 32). Am I just misunderstanding how tableIdArgument works and it is writing to the Range table?

yeah it is writing to the Range table. Which has an underlying immutable schema (in your case it's 2 int32s), and no matter which lib you use it all goes through StoreCore, which checks the data against the schema. And your schema doesn't allow more than 4 bytes (2 for each int32), so the error is expected.
Gave the skystrife's convert-mudv2 branch a look. I think your use of StoreSwitch directly is the right way to go about this. And to initially set factory data you'd use the appropriate table's encode to get the correct tightly encoded bytes

Okay great, thanks for clearing this all up. This is definitely NOT a bug. I just made tableIdArgument into a footgun by not really understanding what it does.
Glad the Factories implementation check out. I will just use a bytes32 primaryKey to represent the tableId.
Closing this issue, thanks all!


Importing origami-predef package

https://github.com/gregsexton/origami.el/issues/95#issuecomment-678760015
I have changed the prefix origami-predef to origami-auto to avoid conflicts.

Thanks! :)


Zoom not working in FullScreen Mode (iOS and Android)

If using something like:
<ImageCarousel
  renderHeader={renderHeader}
  renderContent={renderImage}
  onIdxChange={onChange}
  zoomEnabled={true}>
  { children }
</ImageCarousel>

zoom feature is not working.
If not using custom renderContent, zoom is working but the images are small and pull to exit is not working.
RN version: 0.61.5

Anybody found solution? Not working for me either.


An existing connection was forcibly closed by the remote host

We are using redis-server.exe (v3.0.501) in our unit tests for some test scenarios. We're random failures with this error message:
SocketFailure on <IP_ADDRESS>:6388/Subscription, origin: Read, input-buffer: 0, outstanding: 0, last-read: 5s ago, last-write: 5s ago, unanswered-write: 1228466s ago, keep-alive: 60s, pending: 0, state: ConnectedEstablished, in: 0, ar: 1, last-heartbeat: 0s ago, last-mbeat: 0s ago, global: 0s ago, mgr: ProcessReadQueue, err: never
StackExchange.Redis.RedisConnectionException: SocketFailure on <IP_ADDRESS>:6388/Subscription, origin: Read, input-buffer: 0, outstanding: 0, last-read: 5s ago, last-write: 5s ago, unanswered-write: 1228466s ago, keep-alive: 60s, pending: 0, state: ConnectedEstablished, in: 0, ar: 1, last-heartbeat: 0s ago, last-mbeat: 0s ago, global: 0s ago, mgr: ProcessReadQueue, err: never ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at StackExchange.Redis.PhysicalConnection.StackExchange.Redis.ISocketCallback.Read() in C:\TeamCity\buildAgent\work\3ae0647004edff78\StackExchange.Redis\StackExchange\Redis\PhysicalConnection.cs:line 1003
--- End of inner exception stack trace ---
The redis-server.exe is passed in following arguments:
--port  --bind <IP_ADDRESS> --persistence-available no
Random port number between 6380 - 6390.
At the end of each test the process is killed. Now these tests are always running.. just every once in a while we see the above failures. Any ideas/help would be appreciated.

I also get a similar problem. Errors arise "accidentally".


Error when serialize a dynamically created BaseModel (using method create_model)

Bug
When to try to serialize a BaseModel dynamically created with create_model this error raises:
TypeError: Object of type ModelMetaclass is not JSON serializable

pydantic version: 1.7.3
python version: 3.8.6
ps: I found this when using a dynamically created BaseModel on the parameter response_model of FastAPI method.
A way to reproduce:
In [1]: from pydantic import create_model

In [2]: import json

In [3]: json.dumps(create_model('BarModel', a='b', c='d'))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-6ee0185028c0> in <module>
----> 1 json.dumps(create_model('BarModel', a='b', c='d'))

/usr/lib/python3.8/json/__init__.py in dumps(obj, skipkeys, ensure_ascii, check_circular, allow_nan, cls, indent, separators, default, sort_keys, **kw)
    229         cls is None and indent is None and separators is None and
    230         default is None and not sort_keys and not kw):
--> 231         return _default_encoder.encode(obj)
    232     if cls is None:
    233         cls = JSONEncoder

/usr/lib/python3.8/json/encoder.py in encode(self, o)
    197         # exceptions aren't as detailed.  The list call should be roughly
    198         # equivalent to the PySequence_Fast that ''.join() would do.
--> 199         chunks = self.iterencode(o, _one_shot=True)
    200         if not isinstance(chunks, (list, tuple)):
    201             chunks = list(chunks)

/usr/lib/python3.8/json/encoder.py in iterencode(self, o, _one_shot)
    255                 self.key_separator, self.item_separator, self.sort_keys,
    256                 self.skipkeys, _one_shot)
--> 257         return _iterencode(o, 0)
    258
    259 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,

/usr/lib/python3.8/json/encoder.py in default(self, o)
    177
    178         """
--> 179         raise TypeError(f'Object of type {o.__class__.__name__} '
    180                         f'is not JSON serializable')
    181

TypeError: Object of type ModelMetaclass is not JSON serializable

In [4]:

...

Hi @berlotto
When you define a model, you need to use the json method on an instance (not the class!)
class BarModel(BaseModel):
    a = 'b'
    c = 'd'

print(BarModel().json())
# {"a": "b", "c": "d"}

So when you define you class dynamically, remember that create_model('BarModel', a='b', c='d') returns the class!
You hence need to do create_model('BarModel', a='b', c='d')().json()
Hope it helps!

I would like to add a case when an instance of a class is passed to external library and this library uses json package to serialize data, then we can not using #json() method.
For example, I got a case when using celery, if I pass pydatic model Event to a celery task, error message like Object of type Event is not JSON serializable will appear.

I would like to add a case when an instance of a class is passed to external library and this library uses json package to serialize data, then we can not using #json() method.
For example, I got a case when using celery, if I pass pydatic model Event to a celery task, error message like Object of type Event is not JSON serializable will appear.

Hi @trongbq and happy new year!
In this case it's beyond pydantic scope. I also use celery for data pipelines and it's quite common to use a custom encoder for json for example.
In your case you could go with something like this
import json
from pydantic import BaseModel

class BarModel(BaseModel):
    a = 'b'
    c = 'd'

class CustomEncoder(json.JSONEncoder):
    def default(self, obj):
        if isinstance(obj, BaseModel):
            return obj.dict()
        return super().default(obj)

print(json.dumps(BarModel(), cls=CustomEncoder))
# {"a": "b", "c": "d"}

Hope it helps

Hi @trongbq and happy new year!
In this case it's beyond pydantic scope. I also use celery for data pipelines and it's quite common to use a custom encoder for json for example.
In your case you could go with something like this
import json
from pydantic import BaseModel

class BarModel(BaseModel):
    a = 'b'
    c = 'd'

class CustomEncoder(json.JSONEncoder):
    def default(self, obj):
        if isinstance(obj, BaseModel):
            return obj.dict()
        return super().default(obj)

print(json.dumps(BarModel(), cls=CustomEncoder))
# {"a": "b", "c": "d"}

Hope it helps


help！When translating dialogue text, an issue appears indicated by "<color=#FFFFFF00>", which causes the dialogue box to freeze.

When I am translating the dialogue text, the code "<color=#FFFFFF00>" appears and causes the dialogue box to freeze. Switching back to the original text does not resolve the issue; I have to exit the game completely. Only by deleting the translated text (reverting to the original text) can I continue playing the game.

change the PersistRichTextMode settings in your config from Final to Fragment
or just disable the rich text handling HandleRichText=True to false

It's been modified, but it still shows <color=#FFFFFF00> in the game, and it seems like it's not the normal color code, lacking a \ (<color=#FFFFFF00>), and adding  at the end of the text doesn't work either.

Another game's translation issue.
When translating, two lines of results are generated, with the second line having a lot of extra spaces.

I understand that during the conversation, the game will set the font color to white. After translation, it seems that the game cannot detect the font and will directly report an error "<color=#FFFFFF00>". I tried to modify it according to the method above, but the game still doesn't work properly. I can only change it to Hello?=Hello?\n（你好？）. It retains the original text and will change it to white, while the translations will be preserved. This approach can be used, but it doesn't solve the fundamental problem.

I understand that during the conversation, the game will set the font color to white. After translation, it seems that the game cannot detect the font and will directly report an error "<color=#FFFFFF00>". I tried to modify it according to the method above, but the game still doesn't work properly. I can only change it to Hello?=Hello?\n（你好？）. It retains the original text and will change it to white, while the translations will be preserved. This approach can be used, but it doesn't solve the fundamental problem.

tell me the name of the game? or upload the game to the cloud. I'll take a look and try to help you

Game《LoK-Rebirth <IP_ADDRESS> Test》
You may need to set it to translate to Chinese (en=zh). The game supports Chinese, so you don't need to add any fonts.
To fast-forward through the conversation, after entering the game, choose [Play] - [New Game] - [Select your style] - [Create a character] - [Skip the tutorial] to go to the left (follow the image below to go to the Village). I apologize for being so wordy.  ：)

Game《LoK-Rebirth <IP_ADDRESS> Test》

you version win32 /64 ?

_AutoGeneratedTranslations.txt
the game is configured on a custom node js local server
before start game run "game\node_GoogleTranslator_server\start.cmd"

Game《LoK-Rebirth <IP_ADDRESS> Test》
bug

for game 1.8.0 you can use the same archive on the screen, but in the translator settings you need to replace the text
!!!!!--fix-- !!!
TextGetterCompatibilityMode=False
on
TextGetterCompatibilityMode=True

because at the moment on the screen (the game is either visiting or the text is buggy)
this is because
in the game, the effect of highlighting individual words through search
and the backlight functions work and the keyboard cannot find the translated text and is dependent on it.
because
TextGetterCompatibilityMode=True
the option will show the original text while this mechanic is running and at the end it will be translated as nada here are the next 2 screens
original text with animation

end animation

Very good, after changing to TextGetterCompatibilityMode=True, the game has not crashed.
(Although some overlay translated text, it does not affect normal gameplay.)
Thank you：）


Dreame L10s Could not login, check the credentials.

I have tried to login with the Dreame Home user but it says either "Could not login, check the credentials.
" or "No supported devices found in this account on selected country." if i change the country to anything except cn . i did initially setup the account via google login but have since set a username and password. i have tested the login via the app multiple times and can confirm the credentials are correct. Am i doing something wrong possibly ?

I have now also tried creating a completely new profile and then re linking the device to the new account and still get the same error

The model is L10s Ultra. il see if i can get the model number

Dreame L10s Ultra
Robot Model RLS6LADC
Base station model RCS9

Ok on the bottom of the unit it says this
Model number :RLS6LADC
Last 6 numbers of the serial: 082601

Apologies here is the first 6 characters
R2228Z

Ok i see, i will wait for support thanks. I do think there is a separate issue with the authentication though as i cant login with my account even if there is no device linked to the account it always says check credentials. i have reset my credentials multiple times now

i tried with 2 different accounts, one was not a google login it was email and password. same issue occurred. i tried with the email, username and account number as the username all of them did the same thing.

I have a Dreame L10s Ultra using the Dreame App from the US. However, I cannot login with my credentials. I am using the latest beta version - v2.0.016b. Any help would be appreciated.


feat(prettier): support endOfLine option

Current dependencies on/for this PR:

main

PR #1377   👈

This stack of pull requests is managed by Graphite.

Merge activity

Nov 17, 7:50 AM: @Boshen merged this pull request with Graphite.


add-loggerProvider-to-create-loggers

add-loggerProvider-to-create-loggers
Added documentation

#128  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @evanlauer1 and the rest of your teammates on  Graphite


How to test?

Is there a way I can just run the code on the CLI to test, rather than pushing new copies to HA, restarting the whole HA server etc?

Not currently, but I'll leave this open as a request


refactor-p1

Updating test harness to use serverspec rather than minitest-chef-handler

:+1: :+LONGINT: :+1: :cake: :ice_cream: :icecream:

Closed by #107


Epom Ad Provider: Remove "zoneId"

zoneId is only used for GA tracking in epom provider.
How about replacing it by using the zone's name (e.g. square-medium)?

@njam please review. I guess the changes are breaking.

CM/AdproviderAdapter/Abstract.php: apply formatting

rest looks good!

@njam please review.

lgtm

@njam Do you agree that the changes are breaking ?


Fix Adding invalid user to include-GROUPINGS-910

GROUPINGS-910)

Closing because dev-2-1-1 branch is defunct.


Upgrading to EE 2.3x gives error

I've seen this now on 3 different setups using Dev Docs, happens when upgrading EE2.2.2 to EE2.3, and EE2.3 to EE2.3.1:
An Error Was Encountered
Unable to locate the model you have specified: dev_docs_setup_model
Not sure what's causing it, would help debug but I'm mad up against it....
Cheers,
John

same problem here, any help?
Cheers

Thanks for the report. Sorry for the delayed response. I didn't have a notification for the issue.
I'll take a look at this and see what's up. Perhaps a missing add_package_path().

Hey guys
I'm not done investigating the problem yet, but I have a temporary patch if you're interested. It seems that the add_package_path() method isn't doing what it's supposed to during the install wizard.
I'll continue to dig around and see if this is an issue with my add-on or with EE in general. When applying the patch below I started seeing CI error messages from other 3rd party add-ons, so I suspect it's EE and not me.
Until I get a final solution, open third_party/dev_docs/upd.dev_docs.php and look for line 39 and replace it with the following:
$this->_EE->load->add_package_path(APPPATH . '../expressionengine/third_party/dev_docs');


Fix CliIT thread leak

updated commit message. Attached to https://issues.redhat.com/browse/ISPN-11700 since it started failing in master after it was merged (although, I'm pretty sure it isn't the cause)

Integrated into master, thanks @pruivo !


Possibility to use more than one tracker

Until now, it was possible to start only one tracker, and
it was global. Now, it is possible to start one tracker per
process, which will be saved in process dictionary.
Change HashSet to MapSet, because first one is deprecated.

Thank you very much!

Oh, we forgot to change HashSet.put :smile:
I updated travis to check for both!
https://github.com/tuvistavie/elixir-temp/commit/4f397c3c6c6f88aedaf9fdac575c3ab9785804b5

@tuvistavie Thanks!


Autolink

Autolink is supported by RedCarpet:
https://github.com/vmg/redcarpet
but how to enable it with Nanoc?

See the Redcarpet filter documentation: you can pass options through to Redcarpet via the options hash:
filter :redcarpet, options: { autolink: true }

For questions, it is best to ask the Nanoc discussion group rather than opening an issue here — you’ll get better feedback there, and GitHub issues is focused on issues rather than support.
Hope this helps!


Lua script does not use the KEYS table to pass the Hash key names

The current implementation that packs everything into MessagePacked arguments will not work properly in a Redis Cluster deployment.

thanks for pointing this out! Will investigate and found a solution soon...


Push complex expression filters into Glue metastore

Previously, only single value equality filters were pushed down.

Fix #5567


Improve logging, metrics and error handling

Signed-off-by: Nana-EC<EMAIL_ADDRESS>Description:
Improve logging metrics and error handling

Update balance metric to show operator id
Fix some logging issues
Add api callerName to sdkClient metrics to allow for cost per API analysis
Fix issues around contract results revert and empty results scenarios from mirror node

Related issue(s):
Fixes #272
Notes for reviewer:
Checklist

[ ] Documented (Code comments, README, etc.)
[ ] Tested (unit, integration, etc.)

Codecov Report

Merging #297 (364ec8c) into main (b1a9155) will decrease coverage by 45.63%.
The diff coverage is 19.56%.

@@             Coverage Diff             @@
##             main     #297       +/-   ##
===========================================
- Coverage   56.31%   10.67%   -45.64%
===========================================
  Files           9        9
  Lines         824      824
  Branches      130      130
===========================================
- Hits          464       88      -376
- Misses        334      736      +402
+ Partials       26        0       -26

Impacted Files
Coverage Δ

packages/relay/src/lib/clients/sdkClient.ts
6.93% <0.00%> (+0.62%)
:arrow_up:

packages/relay/src/lib/precheck.ts
9.52% <0.00%> (-40.48%)
:arrow_down:

packages/relay/src/lib/eth.ts
8.13% <30.00%> (-50.09%)
:arrow_down:

packages/relay/src/lib/model.ts
6.06% <0.00%> (-76.77%)
:arrow_down:

packages/relay/src/lib/clients/mirrorNodeClient.ts
16.17% <0.00%> (-64.71%)
:arrow_down:

packages/relay/src/lib/mirrorNode.ts
8.16% <0.00%> (-18.37%)
:arrow_down:

packages/relay/src/lib/errors.ts
71.42% <0.00%> (-14.29%)
:arrow_down:

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 b1a9155...364ec8c. Read the comment docs.


RuntimeError: Expected a_in <= b_in to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)

/opt/anaconda/bin/python /home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/exp_main.py
gpu_id: 0 , [['input', 0, 0], ['S_ResBlock_128_1', 0, 0], ['S_ResBlock_64_5', 1, 1], ['S_ResBlock_32_3', 2, 1], ['S_ConvBlock_128_3', 3, 1], ['S_ConvBlock_32_1', 4, 4], ['S_ResBlock_32_5', 5, 4], ['S_ResBlock_128_3', 6, 5], ['full', 7, 7]]
Files already downloaded and verified
Files already downloaded and verified
train num     50000
GPUID     : 0
epoch_num : 50
batch_size: 128
/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py:67: UserWarning: nn.init.kaiming_normal is now deprecated in favor of nn.init.kaiming_normal_.
init.kaiming_normal(m.weight.data, a=0, mode='fan_in')
/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py:71: UserWarning: nn.init.uniform is now deprecated in favor of nn.init.uniform_.
init.uniform(m.weight.data, 1.0, 0.02)
initialization method [kaiming]
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/opt/anaconda/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/opt/anaconda/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp_config.py", line 12, in arg_wrapper_mp
return args0
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp_config.py", line 33, in cnn_eval
evaluation = train(net, gpu_id, epoch_num=epoch_num, out_model=None)
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py", line 154, in call
init_weights(model, 'kaiming')
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py", line 92, in init_weights
net.apply(weights_init_kaiming)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 293, in apply
module.apply(fn)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 293, in apply
module.apply(fn)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 293, in apply
module.apply(fn)
[Previous line repeated 1 more time]
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 294, in apply
fn(self)
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py", line 71, in weights_init_kaiming
init.uniform(m.weight.data, 1.0, 0.02)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/init.py", line 436, in deprecated_init
return meth(*args, **kwargs)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/init.py", line 88, in uniform_
return no_grad_uniform(tensor, a, b)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/init.py", line 14, in no_grad_uniform
return tensor.uniform_(a, b)
RuntimeError: Expected a_in <= b_in to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/exp_main.py", line 36, in
cgp.modified_evolution(max_eval=250, mutation_rate=0.1, log_file=args.log_file)
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp.py", line 288, in modified_evolution
self._evaluation([self.pop[0]], np.array([True]))
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp.py", line 231, in _evaluation
fp = self.eval_func(net_lists)
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp_config.py", line 53, in call
evaluations[i:i+process_num] = pool.map(arg_wrapper_mp, arg_data)
File "/opt/anaconda/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/opt/anaconda/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
RuntimeError: Expected a_in <= b_in to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)
Can you help me see what the problem is, author@sg-nm

This issue probably is caused by the difference of PyTorch version we are using. Please refer to this.
https://discuss.pytorch.org/t/expected-a-in-b-in-to-be-true-but-got-false/54025

@sg-nm Thank you for your quick response. I'll take a closer look at the link you gave me

@sg-nm I solved the above problem, did not change the version, Why is the accuracy of training all 0?

I would like to ask my data set is like this, the image is a slab image with a slab number, the label is the slab number , like this,9M5381L510 ,can i use your model to identify it?

@sg-nm Excuse me, the code I have been running on a single 1080t gpu for five or six days, but there is no result, the accuracy is still very unstable, when should I stop running?

/opt/anaconda/bin/python /home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/exp_main.py
gpu_id: 0 , [['input', 0, 0], ['S_ResBlock_128_1', 0, 0], ['S_ResBlock_64_5', 1, 1], ['S_ResBlock_32_3', 2, 1], ['S_ConvBlock_128_3', 3, 1], ['S_ConvBlock_32_1', 4, 4], ['S_ResBlock_32_5', 5, 4], ['S_ResBlock_128_3', 6, 5], ['full', 7, 7]]
Files already downloaded and verified
Files already downloaded and verified
train num 50000
GPUID : 0
epoch_num : 50
batch_size: 128
/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py:67: UserWarning: nn.init.kaiming_normal is now deprecated in favor of nn.init.kaiming_normal_.
init.kaiming_normal(m.weight.data, a=0, mode='fan_in')
/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py:71: UserWarning: nn.init.uniform is now deprecated in favor of nn.init.uniform_.
init.uniform(m.weight.data, 1.0, 0.02)
initialization method [kaiming]
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/opt/anaconda/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/opt/anaconda/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp_config.py", line 12, in arg_wrapper_mp
return args0
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp_config.py", line 33, in cnn_eval
evaluation = train(net, gpu_id, epoch_num=epoch_num, out_model=None)
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py", line 154, in call
init_weights(model, 'kaiming')
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py", line 92, in init_weights
net.apply(weights_init_kaiming)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 293, in apply
module.apply(fn)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 293, in apply
module.apply(fn)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 293, in apply
module.apply(fn)
[Previous line repeated 1 more time]
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 294, in apply
fn(self)
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cnn_train.py", line 71, in weights_init_kaiming
init.uniform(m.weight.data, 1.0, 0.02)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/init.py", line 436, in deprecated_init
return meth(*args, **kwargs)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/init.py", line 88, in uniform_
return no_grad_uniform(tensor, a, b)
File "/opt/anaconda/lib/python3.7/site-packages/torch/nn/init.py", line 14, in no_grad_uniform
return tensor.uniform_(a, b)
RuntimeError: Expected a_in <= b_in to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/exp_main.py", line 36, in
cgp.modified_evolution(max_eval=250, mutation_rate=0.1, log_file=args.log_file)
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp.py", line 288, in modified_evolution
self._evaluation([self.pop[0]], np.array([True]))
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp.py", line 231, in _evaluation
fp = self.eval_func(net_lists)
File "/home/yyk/PycharmProjects/untitled1/cgp-cnn-PyTorch-master/cgp_config.py", line 53, in call
evaluations[i:i+process_num] = pool.map(arg_wrapper_mp, arg_data)
File "/opt/anaconda/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/opt/anaconda/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
RuntimeError: Expected a_in <= b_in to be true, but got false. (Could this error message be improved? If so, please report an enhancement request to PyTorch.)
Can you help me see what the problem is, author@sg-nm

hi, I have got the same mistake. So, have you address this problem without substituting the torch version?
look forward your reply


Feature/hipchat notification

Stubbed out notificationService methods for email and HipChat.
Completed HipChat notification implementation so that a HipChat room will be notified whenever a device is checked in, checked out, created, or removed from the CheckIT database.
@tinoweiss The HipChat roomID and auth token both need to be added to the server-side build scripts with the notification method set to 'hipchat'.

Closing PR to pull out the usersService.js changes. The usersService code is need for issues #47 and #46


Android injector documentation teaches wrong

I was having a lot of trouble trying to figure why Kodein was having problems on my app, turns out the docs are telling different things than the correct.
https://github.com/SalomonBrys/Kodein#using-an-injector
Here you say to use = but the correct way to get the instance is using by - as used on the Android Demo.

Soooo sorry about that :flushed:.


Type declarations out of date

Can you please update the npm package types
Types such are disableIfShiftIsPressed on ContextMenuTriggerProps while updated in the source are not updated in the live package.

closing issue see #339


Module parse failed: Unexpected character '�' (1:2) You may need an appropriate loader....

I added sharp package. But I am not able to utilize it:
(undefined) ./node_modules/sharp/build/Release/sharp.node
Module parse failed: Unexpected character '�' (1:2)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
 @ ./node_modules/sharp/lib/constructor.js 9:14-52
 @ ./node_modules/sharp/lib/index.js
 @ ./kit/lib/sharp.js
 @ ./src/app.js
 @ ./kit/entry/browser.js
 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server react-hot-loader/patch webpack-dev-server/client?http://localhost:8080/ webpack/hot/only-dev-server ./kit/entry/browser.js

What's the possible fix for this? I googled and got 1-2 answers for this, but I'm not aware of where and how correct changes should be made in reactql's existing webpack config.

You'll need to use this solely on the server, since it's a Node binary. Looking at your stack trace, it seems that you're trying to use it in src/app.js, which is loaded by kit/entry/browser.
To use it in a 'safe' server-only block, wrap it in:
if (SERVER) {
  // stuff you want to only want to `require` / run on the server
}

@leebenson Ok thanks. How can I fix the linting issue:

ESLint: Promise is not supported in Opera Mobile 12, Opera Mini all, IE Mobile 10, IE 9, Blackberry Browser 7 (compat/compat)

I am using promise for implementing sharp. Should I add a polyfill?

I'm not familiar with Sharp, and can't offer any specific advice on implementing non-ReactQL parts of your stack. Questions are better suited for stackoverflow.com - this issue board is for reporting bugs / discussing features of ReactQL specifically.

The same problem with opencv4nodejs.
[ng] WARNING in ./node_modules/opencv4nodejs/lib/cv.js 15:7-68
[ng] Critical dependency: the request of a dependency is an expression
[ng] WARNING in ./node_modules/opencv4nodejs/lib/cv.js 17:7-70
[ng] Critical dependency: the request of a dependency is an expression
[ng]
[ng] ERROR in ./node_modules/opencv4nodejs/build/Release/opencv4nodejs.node 1:2
[ng] Module parse failed: Unexpected character '�' (1:2)
[ng] You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
[ng] (Source code omitted for this binary file)

@Heveraldoo - did you try the advice in this comment?
It sounds like you might need to forego using this as a top-level import and instead use a conditional require or async import inside an if SERVER {..} block.

I'm developing a ionic app with typescript:
import { Component } from '@angular/core';
import * as cv from 'opencv4nodejs';
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
constructor() {}
teste(){
var imageMAT = cv.imread("teste.jpg");
}
}
So, I means SERVER not exist.

This is a very old repo - ReactQL has moved to https://github.com/leebenson/reactql
ReactQL is built for React -- if you're trying to use Angular with it, this isn't the right starter kit for your project.


patchelf: 0.13 -> 0.14.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/NixOS/patchelf/releases.
meta.description for patchelf is: "A small utility to modify the dynamic linker and RPATH of ELF executables"
meta.homepage for patchelf is: "https://github.com/NixOS/patchelf"
meta.changelog for patchelf is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/nix/store/i48fwa0zzir8znxszni6lpmaqv1j3h71-patchelf-0.14.3/bin/patchelf passed the binary check.
1 of 1 passed binary check by having a zero exit code.
1 of 1 passed binary check by having the new version present in output.
found 0.14.3 with grep in /nix/store/i48fwa0zzir8znxszni6lpmaqv1j3h71-patchelf-0.14.3
found 0.14.3 in filename of file in /nix/store/i48fwa0zzir8znxszni6lpmaqv1j3h71-patchelf-0.14.3

Rebuild report (if merged into master) (click to expand)

46485 total rebuild path(s)

46364 package rebuild(s)

46363 x86_64-linux rebuild(s)
121 x86_64-darwin rebuild(s)

First fifty rebuilds by attrpath

AMB-plugins
ArchiSteamFarm
AusweisApp2
CHOWTapeModel
ChowKick
CoinMP
CuboCore.coreaction
CuboCore.corearchiver
CuboCore.corefm
CuboCore.coregarage
CuboCore.corehunt
CuboCore.coreimage
CuboCore.coreinfo
CuboCore.corekeyboard
CuboCore.corepad
CuboCore.corepaint
CuboCore.corepdf
CuboCore.corepins
CuboCore.corerenamer
CuboCore.coreshot
CuboCore.corestats
CuboCore.corestuff
CuboCore.coreterminal
CuboCore.coretime
CuboCore.coretoppings
CuboCore.coreuniverse
CuboCore.libcprime
CuboCore.libcsys
DisnixWebService
EBTKS
EmptyEpsilon
FIL-plugins
Fabric
LAStools
LASzip
LASzip2
Literate
MACS2
MIDIVisualizer
MMA
NSPlist
OSCAR
OVMF
OVMFFull
PlistCpp
QuadProgpp
R
SDL
SDL2

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/i48fwa0zzir8znxszni6lpmaqv1j3h71-patchelf-0.14.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A patchelf https://github.com/r-ryantm/nixpkgs/archive/8020e619bdd917f09cb5f056a0844ccb65381fd6.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/i48fwa0zzir8znxszni6lpmaqv1j3h71-patchelf-0.14.3
ls -la /nix/store/i48fwa0zzir8znxszni6lpmaqv1j3h71-patchelf-0.14.3/bin

Pre-merge build results
NixPkgs review skipped

Maintainer pings
cc @edolstra for testing.

@jonringer Are you sure about that?

The changelog only mentions bugfixes and new features https://github.com/NixOS/patchelf#release-history

I can't be sure it didn't cause a regression across our 80k+ packages, but that's what staging-next is for.

The regressions for unfree packages will not show up on the Hydra.
cc @Mic92 as upstream dev

Also, for once, patchelf is newer than patchelfUnstable :)


Support pipelining

For example:
Get-Secret -Name foo -Vault OtherVault  | Set-Secret -Vault SecretStore

Should be just a matter of adding the pipeline options to the parameter attribute.

Good point.  I agree this should be supported.

Closing this as a duplicate of https://github.com/PowerShell/SecretManagement/issues/36


add new relic monitoring

What's this PR do?
Followed these directions to get New Relic reporting for the app up and running.
Added a new key-value pair to keys.plist, newRelicAppToken. Will email out the new keys.plist file.
How should this be manually tested?
New Relic is able to report from the simulator. Tested by running on multiple devices on the simulator, each which counts as a unique device to New Relic. Checked this panel to make sure the hits showed up.
What are the relevant tickets?
Closes #568.

Things are looking good. I see activity in New Relic and the Archive works ok too.
I'm seeing this message when the app starts up:

2015-11-20 12:23:49.578 Lets Do This[2805:22065] NewRelic(5.3.4,0x7f9fe8e1dff0):	NRMAUncaughtExceptionHandler.m:88	__37-[NRMAUncaughtExceptionHandler start]_block_invoke
New Relic Crash Reporting is DISABLED because it has detected the debugger is enabled.

Which has a related thread here: https://discuss.newrelic.com/t/setting-up-sdk-in-xcode/15512/3. Think we're ok to leave for now though (or could [NRLogger setLogLevels:NRLogLevelNone];) as the thread suggests.. but not sure what else that would affect. Not really a biggie though.
:+1:

Debug levels are worth keeping in the back of the mind, thanks!


hg-crecord: add curses to propagatedBuildInputs

Actually this isn't quite right - hold back on it.


[stable/sentry] sentry 10 support

Can we please have helm charts for sentry 10
Thanks.

Duplicate of #19981


PDFCIDFont can't handle FontFile3

I have pdf files that has  PDFCIDFont with 'FontFile3' in descriptor. The PDFCIDFont class doesn't have an option to handle FontFile3

Yes, that's correct.
The implementation is specified in Section 5.8 (Embedded Font Programs) in the PDF reference.


The callback of the filter() method receives a plain object

The documentation says that the method filter of QuerySet class can take a callback function which in its turn takes the instance of the model as its sole argument, but in fact the function gets a plain object:
Post.all().filter(post => {
    post // is a plain object
})

So instead of the code above I have to write the following:
Post.all().toModelArray.filter(post => {
    post // is a model instance
})

And other question (maybe its not the right place to write about it, but i find it relevant to the topic). Somehow the method filter() could be used directly on models:
Post.filter(post => {
    post // is a plain object
})

Yes, exactly right. Because filter() operates at the database level it receives a reference, not a Model instance. Would happily accept a PR :slightly_smiling_face:


"labelClass" seems unused

might be forgotten to be deleted or forgotten to be used ;)

labelClass was changed to nameClass but didn't get changed in one place.  This is corrected in 8.0.1.

This has beencorrected in 8.1.0 which was just released.


feat: add docker image for api

🤖 Linear
Closes ZKS-209
Description

Add Dockerfile

not sure if turbo deploy is a command 🤣


Console command

Describe the feature
A default command console provided by Scion. Each output should be read from a topic and each input sent should be sent to another topic.
Each game would be able to read command from this topic and do whatever they want from commands.
Why do you need this feature ?
It's a common feature to help to debug or have a god mode in game. It can also help to move entities, or make things that could not be achieved without inputs

I need to implement input text first


lib: fix app_limited to allow cwnd growth

There is a problem when sender has some leftover data cannot be
sent as a QUIC packet, app_limited is true so cwnd doesn't
grow well, especially during congestion avoidance.
Let's think the following scenario:

max_packet_size=1200
at send(): cwnd=1220, flight_size=0, send a full packet, 1200 bytes
at send(): cwnd=1220, flight_size=1200
we are only able to send 20 bytes, but it does't fit even for
QUIC headers (usually larger than 20 bytes) and
send() returns Error::Done.
In this case, flight_size < cwnd so app_limited is still true.

However the app already send as much as possible to cwnd and
can't send more. This case should be considered
as app_limited=false.
The fix is to check and update app_limited when we return Error::Done
from send(). If still considered limited by cwnd, app_limited
will be false.

I did some minor tweaks:

Use match instead of if.
Rename PktNumSpace::overhead() -> crypto_overhead() to be be consistent.
Slightly tweaked some comments.
there is no functional change.


-last not returning the last restored file correctly

Before submitting a bug report:

[X] Ensure you are able to reproduce it on the latest released version (we release often)
[X] Verified this bug is not already reported in an issue
[X] Verified errors are not related to permissions
[X] Can reproduce in a clean PowerShell session (clean = powershell -NoProfile)

Steps to Reproduce
Restore a full and a diff then some logs, when testing for next log to restore using Get-DbaDbRestoreHistory the last restored file isn't always shown. This means the last diff or last log can be restored again and again.
The following change to the T-SQL seems to fix the problem as it returns the max last_lsn
/*
    bs.last_lsn in  (SELECT max(last_lsn)
									FROM msdb.dbo.restorehistory rsh
									 INNER JOIN msdb.dbo.backupset bs
									 ON rsh.backup_set_id = bs.backup_set_id
									Group By rsh.destination_database_name )
*/

<#
   $DBsSorted = (Get-DbaDbRestoreHistory -SqlInstance myinstance -Database $DBs -Last | Sort-Object BackupFinishDate -Desc).Database
#>

Expected Behavior
List of dbs in the order of last restored
Actual Behavior
list is not in the correct order
Environmental data

Name                           Value

PSVersion                      5.1.14393.2608
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.2608
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
Microsoft SQL Server 2014 (SP2-CU11) (KB4077063) - 12.0.5579.0 (X64)   Feb 21 2018 12:19:47   Copyright (c) Microsoft Corporation  Standard Edition (64-bit) on Windows NT 6.3  (Build 9600: ) (Hypervisor)

For additional info, when the SQL in the function is run it returns the full list of restored files, as expected, but the order is odd, it's not by LSN so I understand why I'm getting the results I am, hence the tweak to use the highest lsn for the latest restored file.

I'm trying to test the changes to the function in my local module but it doesn't seem to load the new function, what do I need to do to force it? I've tried unloading and reloading the module, logging off and one... feeling dumb :D

Just a quicky, in the command list on the web site it's still down as Get-DbaRestoreHistory not Get-DbaDbRestoreHistory :)

Thank you! website has been fixed 👍

Testing the SQL seems to return the desired results and I've now updated my dbatools module and it works a treat.
I'm wondering weather a combination of the last lsn with the last backup set id could be the way forward.?
More testing needed for performance too, but it seems to do the trick.

Excellent news! I will close the issue  and let stuart or niph respond since they are the smes 💯

Thanks Chrissy - There so many cool tools in this module, has to be the the most useful thing I got out of SQLBits, and that's saying something :) I'll read up on how to get a little more involved with the project. Thanks again, Martyn

That means the world to me, @devondba, what an honor. I love SQL Bits. Thank you 🤗

Hi Guys
Think this one needs to be reopened I'm afraid.
Get-DbaDbRestoreHistory -SqlInstance $SqlInstance -Database $Database -last
Returns
BackupFinishDate : 03/03/2020 07:01:45
ComputerName     :
Database         :
Date             : 03/03/2020 12:52:37
From             : \\SQLBackups\Diff_DIFF_20200303_070123.bak
InstanceName     : MSSQLSERVER
RestoreType      : Differential
...
Get-DbaDbRestoreHistory -SqlInstance $SqlInstance -Database $Database -since (Get-Date).AddDays(-1)
...
Username         : username
BackupFinishDate : 03/03/2020 07:21:01
ComputerName     : computer
Database         : db
Date             : 03/03/2020 13:22:03
From             : B:\SQLBackups\inst\db\LOG\db_20200303072101.trn
InstanceName     : MSSQLSERVER
RestoreType      : Log
SqlInstance      : computer
To               : D:\SQLLogs\db_Primary.ldf
Username         : username
BackupFinishDate : 03/03/2020 07:22:02
ComputerName     : computer
Database         : db
Date             : 03/03/2020 13:22:11
From             : B:\SQLBackups\inst\db\LOG\db_20200303072201.trn
InstanceName     : MSSQLSERVER
RestoreType      : Log
SqlInstance      : computer
To               : D:\SQLLogs\db_Primary.ldf
Username         : username
but to spin it a bit more, if we look at the last 7 days then the diff comes out last in the list, which is odd as it was restored today :D
Get-DbaDbRestoreHistory -SqlInstance $SqlInstance -Database $Database -since (Get-Date).AddDays(-7)
...
SqlInstance      : inst
To               : D:\SQLLogs\db_Primary.ldf
Username         : user
BackupFinishDate : 03/03/2020 07:22:02
ComputerName     : inst
Database         : db
Date             : 03/03/2020 13:22:11
From             : B:\SQLBackups\isnt\db\LOG\db_20200303072201.trn
InstanceName     : MSSQLSERVER
RestoreType      : Log
SqlInstance      : inst
To               : D:\SQLLogs\db_Primary.ldf
Username         : user
BackupFinishDate : 03/03/2020 07:01:45
ComputerName     : inst
Database         : db
Date             : 03/03/2020 12:52:37
From             : \inst\SQLBackups\isnt\db\Diff\isnt_db_DIFF_20200303_070123.bak
InstanceName     : MSSQLSERVER
RestoreType      : Differential
SqlInstance      : inst
To               : D:\SQLData\db_Primary.mdf, D:\SQLData\db2.ndf, D:\SQLLogs\db_Primary.ldf
Username         : user
for now, to get the latest, I'm using:
Get-DbaDbRestoreHistory -SqlInstance $SqlInstance -Database $Database -since (Get-Date).AddDays(-7) | Sort-Object Date | Select -Last 1 #-Last
which gives me the correct results :)
I'll have a look at the function once I've finished what I'm doing ;)

Please open a new issue.


:memo: Describe repo organization and processes

This PR adds a new TGIS specific readme with some docs about what this repo is, the diffs it contains from vLLM, and instructions on how to manage our contributions.

snuck in some formatting fixes so we can have some ✅ s on main :D
Thanks for the review @njhill!

(jk, running the format.sh script doesn't magically solve al the format errors)

just gonna go ahead and merge so we have it, we can always update formatting more later


New contributor : Varshith Kumar

added varshith_kumar.json

Thanks for your PR @VK243 , welcome to the community!!

Thanks for your PR @VK243 , welcome to the community!!


Update documented version of kafka-clients

It looks like this has been incorrect for a few versions. The main branch is currently pulling in 3.1.0
https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/blob/main/pom.xml#L26

@jaylindquist Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@pivotal-cla This is an Obvious Fix

@jaylindquist This Pull Request contains an obvious fix. Signing the Contributor License Agreement is not necessary.

Thank you for the PR. Merged upstream.


fix barbed wire

Implements the Quake III algorithm for the inverse square root and fixes barbed wire so it actually pushes mobs away from it.
You can play around with the settings if you don't like them.
Hope to see this added :)

i dont also understand about vectors but it looks kinda good to me

Implements the Quake III algorithm for the inverse square root and fixes barbed wire so it actually pushes mobs away from it. You can play around with the settings if you don't like them. Hope to see this added :)

Auxority forgot to add this: The push power of the barbed wire now decreases the further away the mobs are.
Also some extra explanation of what was wrong with it before; if you had multiple barbed wire, it sometimes occured that mobs got pulled to the barbed wire but also pushed away from it which was really buggy. The mobs also got launched to the south east if you had multiple barbed wire instead of where they were actually supposed to go according to physics

Looks good, can you make both PUSH_POWER and MAX_RANGE ItemSetting with the current values as default?

Yess, will do that!

@Auxority is this Pull Request Stale or are you still working on it.

@Auxority is this Pull Request Stale or are you still working on it.

I realized this did not really fix it either, and I haven’t been able to fully fix it yet. You may close this PR for now.

@Auxority is this Pull Request Stale or are you still working on it.

I realized this did not really fix it either, and I haven’t been able to fully fix it yet. You may close this PR for now.

Are you going to continue working on it? If so it can stay open until you're ready


Components without ChildContent dont throw exception when used with contents if shown conditionally

Consider this component:
<div>
    @Test
</div>

@functions
{
    public string Test { get; set; } = "Testing";

}

Works fine if you use it like this somewhere in a page:
<MyComponent></MyComponent>

But if you (accidently) add content to it, like this:
<MyComponent>Do not do this</MyComponent>

It will throw a nice exception, something like: 'Object of type 'Components.MyComponent' does not have a property matching the name 'ChildContent'.
Fine
Now, when I want to show this component conditionally, like so:
@if (show)
{
    <MyComponent>Do not do this</MyComponent>
}

And make a button to set 'show = true' then nothing happens. No component is shown which is maybe to be expected, but there is also no exception, which I do expect.

I think you might have to call StateHasChanged() when you set show=true

Nope.. does not help.

Oh wait.. you are right..
My bad.
This StateHasChanged thing keeps biting me..


MF-1254 - Create universal JSON writer

What does this do?
This pull request adds a universal JSON Normalizer and support for it in Mainflux Writers. Universal JSON writer enables storing arbitrary JSON data as a Mainflux message payload. This means that the user will be able to store any JSON object as a Mainflux message payload. Mainflux JSON Transformer parses Mainflux message and transforms its payload to the generic map[string]interface{}. How the message is stored depends on the Writer's implementation and the underlying technology. For example, for PostgreSQL the message is stored like the following:
      id            UUID,
      channel       UUID,
      subtopic      VARCHAR(254),
      publisher     UUID,
      protocol      TEXT,
      payload       JSONB,
      PRIMARY KEY   (id)

An example row for PostgreSQL looks like:

time
channel
protocol
publisher
subtopic
payload

1603274654745903159
d5c0dd88-0f8c-4e66-aec6-795ced81504b
http
909a84e9-135b-4f60-b934-1c74165831ab
sub.topic
{"a":1, "a.b":"c"}

For InfluxDB, an example measurement would look like:

time
channel
protocol
publisher
subtopic
a
a.b

1603274654745903159
d5c0dd88-0f8c-4e66-aec6-795ced81504b
http
909a84e9-135b-4f60-b934-1c74165831ab
sub.topic
1
"c"

For MnogoDB, an example document looks like:
{
"_id":{"$oid":"5f8f7117b26e1ce5692ce47b"},
"channel":"d5c0dd88-0f8c-4e66-aec6-795ced81504b",
"subtopic":"sub.topic",
"publisher":"909a84e9-135b-4f60-b934-1c74165831ab",
"protocol":"HTTP",
"payload":{
    "a":1,
    "a.b": "c"
    }
}

There are a few drawbacks to this implementation:

Only an object can be payload - no arrays allowed.
Storing many different formats of payload in some time-series DB (such as an InfluxDB) can cause a lot of empty values.
Potentially limits querying data and performance.

Which issue(s) does this PR fix/relate to?
This pull request resolves #1254.
List any changes that modify/break current functionality
InfluxDB measurement naming is changed due to added separate measurements for SenML and generic JSON messages.
Have you included tests for your changes?
Yes.
Did you document any new/modified functionality?
No.

Great contribution. Thanks a lot @dusanb94.


Support for git refs in poetry add

[x] I have searched the issues of this repo and believe that this is not a duplicate.

Hi!
Thanks for the tool. Migrating from pipenv to poetry.
It would be great to see git refs support in poetry add. Every so often I install packages from Git branches/pull requests. Currently this syntax does not work:
-> % poetry add nornir --git<EMAIL_ADDRESS>
Updating dependencies
Resolving dependencies... (0.6s)

[CalledProcessError]
Command '['git', 'clone'<EMAIL_ADDRESS>'/var/folders/js/jzwkkbb53nd7ns_53g069nlr0000gn/T/pyp
oetry-git-norniryq5f776b']' returned non-zero exit status 128.

add [-D|--dev] [--git GIT] [--path PATH] [-E|--extras EXTRAS] [--optional] [--python PYTHON] [--platform PLATFORM] [--allow-prereleases] [--dry-run] [--] <name> (<name>)...

I have to add it manually in pyproject.toml, but I would love to avoid that:
[tool.poetry.dependencies]
python = "*"
nornir = { git = "https://github.com/nornir-automation/nornir.git", branch = "2.0" }

I don't exclude that requested functionality is already available, but I could find it in the docs.
Thanks!

@agronholm yes it seems there are a number of features which are not supported on the command-line add, I'm personally not clear whether it's by design or just awaiting implementation

Just ran into this. This needs to be documented asap - it's really hard to figure out how to add your github repo fork. Please give it a few minutes and update the docs.

Does git dependency support exist in the current stable release or is it being rewritten?

This has been added in #1221 and is currently available in the latest prereleases of the 1.0.0 version.


Consistent names between bindings

Currently there's several ways the binding functions are named:

Starting with c: cgetmouse, cispressed...
Starting with module name: imggetdims, imgcrop...
Ending with module name: loadimg, flipvimg...
No convention at all: drawText drawLine...
Full armour namespacing: umth_hsv2rgb_uint32, umth_rgb_uint32, umth_sound_copy, umth_window_end_scissor...

There should be some consistency, my personal favourite is 5.

5 is also my favorite. All bindings should be rewritten, but it will be a lot of work.


CLOUD-52916: generate all image descriptor yaml from azure

@akanto
Single command to regenerate all image yml:
make generate-image-yamls

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/2142/


Windows build-release --local error

command: go run ./script/build-release --local
error: duplicate suffix

This has been fixed,  see https://github.com/xhd2015/xgo/commit/ecb6a7c6a0855b8487cd8fdbea771ff7adf7d31d.
Thanks for your feedback.


FATAL: role nhost_hasura does not exist prevents nhost to start locally

Describe the bug
graphql service times out locally when I run nhost up
To Reproduce
Steps to reproduce the behavior:

Install nhost CLI
Install Postgres
Install Docker
Run nhost up

Expected behavior
nhost up should run all services locally successfully.
Screenshots
/
Desktop (please complete the following information):

OS: macOS 12.6.2 21G320
Docker Docker version 20.10.22, build 3a2c30b
Postgres postgres (PostgreSQL) 14.6 (Homebrew)

Additional context
Logs from the failing graphql docker container 👇
2023-02-07 16:06:26 {"detail":{"info":{"admin_secret_set":true,"auth_hook":null,"auth_hook_mode":null,"console_assets_dir":null,"console_sentry_dsn":null,"cors_config":{"allowed_origins":"*","disabled":false,"ws_read_cookie":null},"enable_allowlist":false,"enable_console":false,"enable_maintenance_mode":false,"enable_metadata_query_logging":false,"enable_telemetry":false,"enabled_apis":["config","pgdump","metadata","graphql"],"enabled_log_types":["startup","webhook-log","http-log","websocket-log"],"events_fetch_batch_size":100,"experimental_features":[],"graceful_shutdown_timeout":60,"infer_function_permissions":true,"jwt_secret":[{"audience":null,"claims_format":"json","claims_namespace":"https://hasura.io/jwt/claims","header":null,"issuer":null,"key":"<JWK REDACTED>","type":"<TYPE REDACTED>"}],"live_query_options":{"batch_size":100,"refetch_delay":1},"log_level":"debug","port":8080,"remote_schema_permissions":false,"server_host":"HostAny","stringify_numeric_types":false,"transaction_isolation":"ISOLATION LEVEL READ COMMITTED","unauth_role":"public","use_prepared_statements":true,"v1-boolean-null-collapse":false,"websocket_compression_options":"NoCompression","websocket_connection_init_timeout":"Refined (Seconds {seconds = 3s})","websocket_keep_alive":"KeepAliveDelay {unKeepAliveDelay = Refined (Seconds {seconds = 5s})}"},"kind":"server_configuration"},"level":"info","timestamp":"2023-02-07T15:06:26.391+0000","type":"startup"}
2023-02-07 16:06:26 {"detail":{"info":{"database_url":"postgres://nhost_hasura@postgres:5432/postgres","retries":20},"kind":"postgres_connection"},"level":"info","timestamp":"2023-02-07T15:06:26.391+0000","type":"startup"}
2023-02-07 16:06:27 {"detail":{"message":"postgres connection failed, retrying(0)."},"level":"warn","timestamp":"2023-02-07T15:06:26.391+0000","type":"pg-client"}
2023-02-07 16:06:27 {"detail":{"message":"postgres connection failed, retrying(1)."},"level":"warn","timestamp":"2023-02-07T15:06:26.391+0000","type":"pg-client"}
2023-02-07 16:06:27 {"detail":{"message":"postgres connection failed, retrying(2)."},"level":"warn","timestamp":"2023-02-07T15:06:26.391+0000","type":"pg-client"}
2023-02-07 16:06:27 {"detail":{"message":"postgres connection failed, retrying(3)."},"level":"warn","timestamp":"2023-02-07T15:06:26.391+0000","type":"pg-client"}
2023-02-07 16:06:28 {"detail":{"message":"postgres connection failed, retrying(4)."},"level":"warn","timestamp":"2023-02-07T15:06:27.985+0000","type":"pg-client"}
2023-02-07 16:06:29 {"detail":{"message":"postgres connection failed, retrying(5)."},"level":"warn","timestamp":"2023-02-07T15:06:29.599+0000","type":"pg-client"}
2023-02-07 16:06:32 {"detail":{"message":"postgres connection failed, retrying(6)."},"level":"warn","timestamp":"2023-02-07T15:06:32.824+0000","type":"pg-client"}
2023-02-07 16:06:32 {"detail":{"info":{"code":"postgres-error","error":"connection error","internal":"connection to server at \"postgres\" (<IP_ADDRESS>), port 5432 failed: FATAL:  role \"nhost_hasura\" does not exist\n","path":"$"},"kind":"catalog_migrate"},"level":"error","timestamp":"2023-02-07T15:06:32.824+0000","type":"startup"}
2023-02-07 16:06:32 {"code":"postgres-error","error":"connection error","internal":"connection to server at \"postgres\" (<IP_ADDRESS>), port 5432 failed: FATAL:  role \"nhost_hasura\" does not exist\n","path":"$"}

Solved.
I had to run nhost uninstall and then re-install it.
I might have interrupted the initial nhost up command.
The initial nhost up command seems to apply some pretty important things and should not be interrupted.


[SPARK-19185][DStream] Add more clear hint for 'ConcurrentModificationExceptions'

What changes were proposed in this pull request?
When same kafka partition is consumed from multiple threads, task will fail with ConcurrentModificationExceptions. KafkaConsumer is not safe for multi-threaded access. So, we may give a more clear hint for users when encounter such problems. Besides, a new config spark.streaming.kafka.consumer.cache.enabled is added for users to enable consumer cache or not
How was this patch tested?
existing ut

cc @zsxwing and @koeninger

Test build #71562 has started for PR 16629 at commit b8b44ef.

Test build #71562 has finished for PR 16629 at commit b8b44ef.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/71562/
Test PASSed.

I don't think this resolves the problem?

@srowen Yes, this pr does not provide a way to support ConsumerCache in multi-thread, but give users a more clear hint to this issue. I think it may be more complex before we achieve a better solution.

I don't think it's a problem to make disabling the cache configurable, as long as it's on by default. I don't think the additional static constructors in kafka utils are necessary, are they?
I'm not sure it's a good idea to just blindly recommend people turn it off it they get that exception though, it's not that simple.

actually if u turn it off then for each batch new consumer will be created. For me the solution is to introduce pool of consumers equal to the total count of concurrent job for example


NLog, EF and MVC

I am trying to use Nlog.  I have the config and I don't get any errors when it hits the logger.  Should be going to the db but it is not.
Nlog.config
<target xsi:type="Database" name="dbTarget"
                connectionStringName="MainWebsiteEntities"
                commandText="INSERT INTO dbo.NLog (
                  [refGrant], [TimeStamp], [Uri], [UserAgent], [UserName], [IpAddress],
                  [Level], [Message], [Data], [Logger], [Callsite], [Exception])
                  VALUES (
                  @refGrant, @timeStamp, @uri, @userAgent, @userName, @ipAddress,
                  @level, @message, @data, @logger, @callSite, @exception
                );">
      <parameter name="@refGrant" layout="${event-properties:item=RefGrant}" />
      <parameter name="@timeStamp" layout="${date}" />
      <parameter name="@uri" layout="${aspnet-Request-Url}" />
      <parameter name="@userAgent" layout="${aspnet-Request-UserAgent}" />

      <parameter name="@userName" layout="${aspnet-User-Identity}" />
      <parameter name="@ipAddress" layout="${aspnet-Request-Ip}" />

      <parameter name="@level" layout="${level}" />
      <parameter name="@message" layout="${message}" />
      <!--This message may be seen by a user, so make it friendly!! i.e. "Policy Number was invalid."-->
      <parameter name="@data" layout="${event-properties:item=Data}" />
      <!--Use this for dumping debug data i.e. "{PolicyNumber:null, .......}-->

      <parameter name="@logger" layout="${logger}" />
      <parameter name="@callSite" layout="${callsite}" />
      <parameter name="@exception" layout="${exception:format=toString}" />
      <!-- repeated -->
    </target>

MainWebsiteEntitiesis in the web.config and works with any other db call - except NLog
This is in a helper class (Util)
internal static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger();
Util.Logger.Info("Worked");
No error on the above line.  Hopefully I have enough.  Please let me know if i need to add more

Think you will have better luck on StackOverflow.com as there are no experts on EF or MVC here.

ok.  they dont like me over there lol

Cool thanks

Closing issue as resolved, due to inactivity.


atom windows seems to close tag twice..

For some reason, this started happening to me today after an update rolled precisely today also. Any ideas what might be causing this?

Here's an example of it


add option to override phoenixwallet.me bip353 address

I just messed around with the new bolt12 support and it's awesome! I dug into the bip a bit more and found out how to create my own address with my domain DNS that I own.
I'm hoping that we can add an option to override the @phoenixwallet.me address if we have our our domain that we added a valid DNS entry for. That way it will show our own custom address / domain in the receive tab instead of the auto generated one
Not sure how the ux for this should look, maybe a user will enable the custom address and on adding one it should verify that the address does actually resolve to the users bolt12 offer before saving it!

Good idea, that's something we could add in the experimental feature section for now.

it should verify that the address does actually resolve to the users bolt12 offer before saving it!

good point!


team's vision on the mini map?

Hi, I have a question about team's vision on mini map.
Is there a entity tells the vision of a team on mini map?

Afaik, visibility is computed client side.
There are some entities related to fog of war, CDOTAFogOfWarTempViewers, seems like there's one for each team. I've never researched what they do and how they work, though, and their data changes are much too coarse to reflect the vision.
So, to sum up, it seems that the server does vision computation as well as the client, but there's not much (if any) transmitted in the replay.

Thanks for your answer,  I also found CDOTAFogOfWarTempViewers,  but it's properties like X,Y, radias don't match mini map.
So, I have another question,  no entity for trees in the dem files?

There are, named CDOTA_DataRadiant, CDOTA_DataDire, CDOTA_DataSpectator.
Those contain bitfields m_bWorldTreeState.XXXX, which I assume have a bit for each tree there is on the map.
Now, the problem is to find the mapping from tree to bit, for which you have to load the map data and find the mapping.  If you ever succeed in doing so, I would appreciate some code that demonstrates this, and I would like to add that functionality to clarity.
Btw: Do you know clarity-analyzer? It's a great tool to browse the data that's available.

The count of TreeState is 256,  but count of trees on the map is over 3000!  So the bitfields you said may not represent each tree.
I used "clarity-example" and it help me a lot in parsing replays. hah

But there's 64 bits in every entry, so you have 256*64 = 16384 bits?

I see, you are right!
Thanks for your help again, I'll try to find the mapping

        val entities = entitiesProvider.entities ?: return
        for (entity in entities.getAllByPredicate { e -> isEntityProvidingVision(e) }) {
            val team = Team.fromInt(entity.getEntityProperty<Int>("m_iTeamNum") ?: 2)
            val position = entity.getPosition() ?: continue
            val dayVision = entity.getEntityProperty<Int>("m_iDayTimeVisionRange") ?: 0
            val nightVision = entity.getEntityProperty<Int>("m_iNightTimeVisionRange") ?: 0
            val vision = if (isDayTime()) dayVision else nightVision
            val visionRange = vision.toFloat()
            val visionRangeSquared = visionRange * visionRange
            for (heroComponent in heroComponentFactory.retrieveHeroComponents()) {
                val otherTeam = heroComponent.heroModel.team
                if (team == otherTeam) continue
                val otherPosition = heroComponent.heroEntity.getPosition() ?: continue
                if (position.z < otherPosition.z) continue
                val distanceSquared = position.sqrDistance(otherPosition)
                if (distanceSquared <= visionRangeSquared) {
                    heroComponent.heroModel.seenAgo = 0
                    println(
                        "Hero ${stringTableProvider.getEntityName(heroComponent.heroEntity)},pos:${otherPosition} seen by ${
                            stringTableProvider.getEntityName(
                                entity
                            )
                        } (${position})"
                    )
                }
            }
        }
    }```

    Sorry for Kotlin, and sorry for some unknown functions, but you can get an idea.

private fun onSecond(time: Int) {
        val entities = entitiesProvider.entities ?: return
        for (entity in entities.getAllByPredicate { e -> isEntityProvidingVision(e) }) {
            val team = Team.fromInt(entity.getEntityProperty<Int>("m_iTeamNum") ?: 2)
            val position = entity.getPosition() ?: continue
            val dayVision = entity.getEntityProperty<Int>("m_iDayTimeVisionRange") ?: 0
            val nightVision = entity.getEntityProperty<Int>("m_iNightTimeVisionRange") ?: 0
            val vision = if (isDayTime()) dayVision else nightVision
            val visionRange = vision.toFloat()
            val visionRangeSquared = visionRange * visionRange
            for (heroComponent in heroComponentFactory.retrieveHeroComponents()) {
                val otherTeam = heroComponent.heroModel.team
                if (team == otherTeam) continue
                val otherPosition = heroComponent.heroEntity.getPosition() ?: continue
                if (position.z < otherPosition.z) continue
                val distanceSquared = position.sqrDistance(otherPosition)
                if (distanceSquared <= visionRangeSquared) {
                    heroComponent.heroModel.seenAgo = 0
                    println(
                        "Hero ${stringTableProvider.getEntityName(heroComponent.heroEntity)},pos:${otherPosition} seen by ${
                            stringTableProvider.getEntityName(
                                entity
                            )
                        } (${position})"
                    )
                }
            }
        }
    }

Sorry for Kotlin, and sorry for some unknown functions, but you can get an idea.


PQ tagged BT.2020nc matrix AVIF are not correctly opened

In fact almost the same happens in firefox. Chrome does it okay with HDR. So does mpv, it even triggers HDR on vulkan.
Rename to avif.
File created from video and is not RGB, but lossless YCbCr 420 bitperfect with the PQ movie. So limited range, Bt.2020nc matrix, bt.2020 primaries and PQ transfer.

Sorry for the delay and thanks for reporting this. I've started looking into this, and from my initial investigation this appears to be a bug in the underlying OS AVIF Windows Imaging Component codec. I've filed a Microsoft-internal bug with the team that owns this codec. I don't have a timeline for a possible fix but AFAIK usage of this type of image is relatively low, so it may take until the next major OS platform release.
Can you share the tool/process you used to generate this image?

For reference, debug/dump code is in:
https://github.com/13thsymphony/HDRImageViewer/commit/803a639f9920ef9701f4599d305b6db6d94e4076

That uses ffmpeg. I agree, for example this image opened in photoviewer has some strange artefacts (rename to avif).
Still, if it is an issue with OS AVIF codec why is that not present in official photo app?

Thanks for the pointer, didn't realize ffmpeg offers this export.
Good question about the Photos app. There are two codepaths that the AVIF and HEIC codecs offer for image decoding. For compatibility purposes, by default it will only expose 8-bit SDR pixel data to apps (including Photos) - the codec internally will perform tone mapping to convert the image to an SDR equivalent. An HDR-aware app has to explicitly request the (non-tone mapped) 10-bit HDR10 data, this is what the HDR Image Viewer app does. That HDR-specific codec codepath appears to not be doing the right color matrix conversion. However, this is my preliminary conclusion which could be wrong - I'll need to followup with the codec team.

HDR-specific codec codepath appears to not be doing the right color matrix conversion.

Well, it needs to upsample chroma from 420 to 444, use limited BT.2020 matrix to decode to R'G'B' and present that on PQ surface, since ' there is PQ.
The tulips has a lot of data outide P3. Maybe Microsoft cannot handle that, including un SDR mode.
There is also an issue with that these two images are not tagged as top-left chroma sitting, which they should be, bug in ffmpeg.

The codec needs to do all those operations in the SDR compatibility codepath as well - it does a full decode and then has to do the HDR to SDR conversion (tone mapping).
I didn't have a chance to see the tulips image until now, you're right that this looks like gamut mapping is not happening as expected.  To confirm, there are few real cameras that capture colors significantly out of P3 gamut, is this image "real" i.e. the encoded colors are accurately representing the real-world scene, or was some processing like a gamut expansion done on it?

there are few real cameras that capture colors significantly out of P3 gamut

There are many such cemaras, and this was mastered on laser full BT.2020 projector, that is indeed very rare.

Have you checked whether your AVIF is 10-bit or 12-bit?
I see similar issue when opening 12-bit AVIF files.
(But I currently don’t own an HDR Windows machine any more so I can’t confirm what I’ve just written here.)

There are no hevc on Blu-ray that is 12 bit. I said lossless, did I not?

There are no hevc on Blu-ray that is 12 bit. I said lossless, did I not?

Actually Dolby Vision is 12-bit. You can use mediainfo to check the file format if you want to.
But, no matter whether it is 10-bit or 12-bit, as long as it can’t decode, I would agree it’s a bug.

Actually Dolby Vision is 12-bit.

Actually FEL is two 10 bit 420 streams.

I've filed a Microsoft-internal bug with the team that owns this codec

Any updates? I still think that may be a bug in ffmpeg cause it does not tag chroma as top-left, WHICH it must be for HDR Blu-rays, per BT.2100. In fact that makes the image not lossless, even if 420 samples are lossless with Blu-ray, the problem is convertion from 420 to 444 tp then convert to rgb uses different math if top-left is used...


Fix up-to-date check for output files of Sign task

Fixes #4980.

An other way how to fix this would be to annotate Signature with the right input and output annotations and then add this as a @Nested input. I don't understand enough to know if this is the right modelling or not. This would also get rid of getInputFiles.

That's a really good idea! However, I want to keep changes to these classes to a minimum in this PR since I'm working on them on a feature branch (to add support for publications) as well. I propose to revisit the idea after that work is done if that's okay with you.

Moreover, we now allow arbitrary names for input/output properties, so the whole name replacing part is not necessary anymore.

Ditto.

I've deprecated setFile() in db9546d03b54250951d7013f0b36b1731a9a6eee.
@wolfs Please take another look.

I added an integration test for the deprecation message.
@wolfs Please take another look.

Both fixed in 55bebb88d9327e06cf8b26bba38e2b40b63ef911.
@wolfs Please take one more look.


Cannot execute motion_event.sh

I am having some problems running the motion_event macro. I have followed the docs (https://elinux.org/RPi-Cam-Web-Interface#Job_Macros) and this tutorial (https://quavoce.wordpress.com/2017/06/04/pushover-alerts-for-motion-detection-with-rpi-web-cam-interface/). The logs say that the macro is being executed, but nothing results from it.  I have tested running the bash script on the command line and it works fine, but not when rpi_cam_web_interface tries to run it. I am posting a snippet from the log, and then also my steps to get there.
Any ideas are appreciated! Thanks!
LOG SNIPPET:
{2018/05/21 06:17:23} Set up internal detect width=121 height=68
[2018/05/21 06:17:38] Logged in user::
[2018/05/21 06:17:38] UserLevel 6
{2018/05/21 06:17:41} Executing macro /var/www/html/macros/motion_event.sh "1"
{2018/05/21 06:17:41} send smd 1
[2018/05/21 06:17:41] Start capture requested from Pipe
[2018/05/21 06:17:41] Send ca 1
{2018/05/21 06:17:41} Capturing started
{2018/05/21 06:17:49} Executing macro /var/www/html/macros/motion_event.sh "0"
{2018/05/21 06:17:49} send smd 0
[2018/05/21 06:17:49] Stop capture requested
[2018/05/21 06:17:49] Send ca 0
{2018/05/21 06:17:49} Capturing stopped
{2018/05/21 06:17:49} Add /var/www/html/media/vi_0002_20180521_061741.mp4 to Box Queue at pos 15
{2018/05/21 06:17:50} Start boxing /var/www/html/media/vi_0002_20180521_061741.h264 to /var/www/html/media/vi_0002_20180521_061741.mp4 Queue pos 15
{2018/05/21 06:17:51} Finished boxing /var/www/html/media/vi_0002_20180521_061741.mp4 from Box Queue at pos 15
{2018/05/21 06:17:51} Removed item from Box

MY STEPS TO REPRODUCE:
sudo nano /var/www/html/macros/motion_event.sh
added the following code to the script:
#!/bin/bash
echo "some data for the file" >> testmacro.txt

please note that what I actually want to do is use aplay to play a sound and then send some pipe commands to change the look of the video - it is for an art performance, just keeping it simple for test purposes. Regardless, even this simple doesn't work, although the script works when run from the terminal as pi user
sudo chmod -x /var/www/html/macros/motion_event.sh
sudo chown www-data:www-data /var/www/html/macros/motion_event.sh
sudo chmod 764 /var/www/html/macros/motion_event.sh

The log says the macro executes, so it is likely that the script is not doing what you think it should.
I would put the full path in the macro so you know exactly where the file goes.
echo "some data for the file" >> /var/www/html/testmacro.txt
I just did exactly that and got the file as expected when motion was triggered.
Note that when you get this working then any commands you use in the macro must be permitted for user www-data. If not then you need to give that user permission to do so.

Thank you! I am trying that on a fresh install right now - a quick follow up question: I need the script to run aplay so I can play a sound through the headphone jack. I have managed to do that through the command line, but I assume that to run that in the script, www-data would need some permission. How can I give it permission to run aplay for a wav file? and should I place that wav file in the macros folder? do I need to give permissions to the file itself?
Thank you so much for your help!!! I spent a very frustrating full day on this!

YES! I can't believe it was that simple. I managed to create the file with echo.
So, I am proceeding with the next thing, which is to play the sound. I did two things:

Changed the script to this:

#!/bin/bash
aplay /var/www/html/macros/beep.wav
echo "played sound" >> /var/www/html/macros/testmacro.txt

Gave ownership of beep.wav to www-data
sudo chown www-data:www-data /var/www/html/macros/beep.wav

Still didn't work, so also tried this:
sudo chmod 764 /var/www/html/macros/beep.wav

Any ideas? it seems maybe I need to give www-data the ability to run aplay, but not sure how to do it... visudo something?

Not sure about the crash which sounds strange.
I think you may be able to allow user www-data to play sounds by adding the user to the audio group
usermod -a -G audio www-data

I think a possible reason for the crash is that the motion script is not set up to run asynchronously so if it stalls then it will stop the main program.
One can fix that by changing the config file /etc/raspimjpeg so the motion_event is defined like
motion_event &motion_event.sh
I will change the install to make that the default.

I think the crash might have been due to other changes I had attempted -  I think it was I was trying to play the sound file while it was located in /home/pi/.
Adding to the audio group did not work,, but I really appreciate your help and you have gotten me to where I am running the script and sending pipe commands to change the images and all that is working!
I also tried separating the aplay command into a different a script, that did not work.
I am going to investigate other solutions like adding www-data to other groups and maybe also giving it permissions - maybe specific one or even full root (i know that's unsafe, but it's in a closed, unconnected network and being used for a few hours for an art performance event, where a video projection is gamefied so that when users move out of the motion mask all of these things happen)
In any case - please let me know if you have any other ideas I can try. Robert - I really appreciate your help!

If the group method doesn't work then you can give www-data specific permission to use aplay via the sudoers facility. This is already used to allow www-data to use the shutdown command.
Basically you need to have a line in the /etc/sudoers.d/RPI_Cam_Web_Interface set up which permits www-data to run the /usr/bin/aplay command

SUCCESS! That worked. Thanks for all the help Robert, I really appreciate you working through this with me... now to all the new things I will play/tinker with using this! Certainly an upgrade to the RPI-Cam-Web-Interface running my front door camera :)