Numpy does not support dtype "long" anymore in the latest version

I am using method stat and it raises an ERROR:  "AttributeError: module 'numpy' has no attribute 'long'. Did you mean: 'log'?".
My numpy version is 1.26.0
The error information is:
/home/cai/.local/lib/python3.10/site-packages/torchstat/model_hook.py:65: FutureWarning: In the future `np.long` will be defined as the corresponding NumPy scalar.
  np.array([parameter_quantity], dtype=np.long))
Traceback (most recent call last):
  File "/home/cai/ModelDemos/VGG/vgg19.py", line 18, in <module>
    stat(model, input_size)
  File "/home/cai/.local/lib/python3.10/site-packages/torchstat/statistics.py", line 71, in stat
    ms.show_report()
  File "/home/cai/.local/lib/python3.10/site-packages/torchstat/statistics.py", line 64, in show_report
    collected_nodes = self._analyze_model()
  File "/home/cai/.local/lib/python3.10/site-packages/torchstat/statistics.py", line 57, in _analyze_model
    model_hook = ModelHook(self._model, self._input_size)
  File "/home/cai/.local/lib/python3.10/site-packages/torchstat/model_hook.py", line 24, in __init__
    self._model(x)
  File "/home/cai/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/cai/.local/lib/python3.10/site-packages/torchvision/models/vgg.py", line 66, in forward
    x = self.features(x)
  File "/home/cai/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/cai/.local/lib/python3.10/site-packages/torch/nn/modules/container.py", line 217, in forward
    input = module(input)
  File "/home/cai/.local/lib/python3.10/site-packages/torchstat/model_hook.py", line 65, in wrap_call
    np.array([parameter_quantity], dtype=np.long))
  File "/home/cai/.local/lib/python3.10/site-packages/numpy/__init__.py", line 333, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'long'. Did you mean: 'log'?

I met the same problem.
My numpy version is 1.24.4.
The error information is: AttributeError: module 'numpy' has no attribute 'long'

same problem, it seams that you can solve it by downgrade numpy by 1.23.5. ( or maybe under 1.24)

You can find the File "/home/cai/.local/lib/python3.10/site-packages/torchstat/model_hook.py", line 65, in wrap_call and this line of code np.array([parameter_quantity], dtype=np.long)) change dtype=np.long to dtype=np.int64 or dtype=np.int32. I don't think changing this will cost any problem.

numpy.long was deprecated in numpy 1.20 and removed in numpy 1.24.
To resolve it, you can roll back to a previous version using the following command:
pip install numpy==1.23

ref


Keyvault Hub Update, Some Link Fixes

Docs Build status updates of commit ba6e085:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-conceptual/dotnet-howto-migrate-app-service.md
:warning:Warning
View
Details

api/overview/azure/key-vault.md
:white_check_mark:Succeeded
View

api/overview/azure/media-services.md
:white_check_mark:Succeeded
View

docs-ref-conceptual/dotnet-howto-migrate-app-service.md

Line 54: [Warning] Link 'http://technet.microsoft.com/library/cc735247(v=WS.10).aspx' is insecure. Links to Microsoft sites must use 'https' instead of 'http'.
Line 57: [Warning] Link 'http://azure.microsoft.com/documentation/articles/web-sites-transform-extend/' is insecure. Links to Microsoft sites must use 'https' instead of 'http'.
Line 81: [Warning] Link 'http://azure.microsoft.com/pricing/details/sql-database' is insecure. Links to Microsoft sites must use 'https' instead of 'http'.

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

Docs Build status updates of commit bab128f:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

.openpublishing.publish.config.json
:x:Error

Details

[Error]

Error occurred when restoring dependent repository from URL 'https://github.com/Microsoft/templates.docs.msft' branch 'master' into folder '_themes'. Please retry building your content again. If the issue persists, please open a ticket in https://SiteHelp and include exception details: ExternalGitAccessor: data access error to 'https://github.com/Microsoft/templates.docs.msft' (branch: master), argument: -c http.extraheader="Authorization: *****" pull origin --no-edit, workingDirectory: W:\l05d-s\_themes, error code: 1, details: fatal: could not read Username for 'https://github.com': terminal prompts disabled
.

.openpublishing.publish.config.json

Line 164: [Error] Initialization of cross repository dependencies failed. Please check your .openpublishing.publish.config.json on the configuration of the cross repository dependencies or ask for help in Docs Support teams channel. Please also include the following error code for our team to troubleshoot: 1

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

Docs Build status updates of commit 85d8c1a:
:clock10: Pending: waiting for processors (12 builds ahead of you)
:warning: Docs Build is busy, currently there are 12 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 85d8c1a:
:warning: Validation status: warnings

File
Status
Preview URL
Details

docs-ref-conceptual/dotnet-howto-migrate-app-service.md
:warning:Warning
View
Details

api/overview/azure/key-vault.md
:white_check_mark:Succeeded
View

api/overview/azure/media-services.md
:white_check_mark:Succeeded
View

docs-ref-conceptual/dotnet-howto-migrate-app-service.md

Line 54: [Warning] Link 'http://technet.microsoft.com/library/cc735247(v=WS.10).aspx' is insecure. Links to Microsoft sites must use 'https' instead of 'http'.
Line 57: [Warning] Link 'http://azure.microsoft.com/documentation/articles/web-sites-transform-extend/' is insecure. Links to Microsoft sites must use 'https' instead of 'http'.
Line 81: [Warning] Link 'http://azure.microsoft.com/pricing/details/sql-database' is insecure. Links to Microsoft sites must use 'https' instead of 'http'.

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


Expose half_pixel_center or anti-aliasing parameter in the keras resizing layer.

Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template
System information

TensorFlow version (you are using): TF 2.6
Are you willing to contribute it (Yes/No): Yes

Describe the feature and the current behavior/state.
The feature that I am proposing is basically a fix for the current resizing keras layer which sets the half_pixel_center to true by default which causes problem on nnapi (android) based platforms and also on snapdragon based platforms. There are 2 possible solution to this problem -

You expose the parameters antialias or half_pixel_center via the keras Resizing layer and let the user explicitly set either of the 2 properties. Better would be to expose antialias which can be defaulted to None or True since resizing is used mostly in later layers and not for downsampling it should be fine.
Add an automated check within the resize base function to check if the half_pixel_center is actually needed. From my understanding when you are resizing just check if the (inputsize -1)/(outputsize-1) when downsampling or vice versa when upsampling, is fractional or int. If fractional set half_pixel_center to true else set it to false.

Will this change the current api? How?
Yes this will change the current api by either exposing certain optional parameters or by adding an automated check.
Who will benefit with this feature?
Everyone running their NN on somekind of DSP.
Any Other info.

@bayesian-mind
Please post this issue on keras-team/keras repo.
To know more see;
https://discuss.tensorflow.org/t/keras-project-moved-to-new-repository-in-https-github-com-keras-team-keras/1999
Thank you!


Violation functions and duality tests

This PR changes the following items, none of which affect the values of minimum length scales and the description in the paper.

Three user functions length_violation_solid, length_violation_void, and length_violation are added for computing the patterns of violation at a given length scale. An option for ignoring or keeping interfacial pixels is provided.
Demonstration of these new functions is added in example.ipynb.
The function minimum_length_min (that uses the close-minus-open approach) is renamed as minimum_length. The previous version of minimum_length computes minimum solid and void length scales separately and then takes the minimum explicitly. This function was inefficient and redundant, and hence deleted.
New tests cases are added to check duality relations $\mathcal{E}_d(\bar\rho)=\overline{\mathcal{D}_d(\rho)}$, $\mathcal{D}_d(\bar\rho)=\overline{\mathcal{E}_d(\rho)}$, $\mathcal{O}_d(\bar\rho)=\overline{\mathcal{C}_d(\rho)}$, and $\mathcal{C}_d(\bar\rho)=\overline{\mathcal{O}_d(\rho)}$.
ruler.py is renamed as imageruler.py. Relevant places are changed accordingly.
Minor revisions in imageruler.py and README.md are made.

Do these new length_violation_solid() and length_violation_void() functions compute intermediate quantities used inside of minimum_length_solid() and minimum_length_void(), respectively? Is it possible to refactor the latter to utilize the former?

Do these new length_violation_solid() and length_violation_void() functions compute intermediate quantities used inside of minimum_length_solid() and minimum_length_void(), respectively?

Let us take the solid case as an example. The functions length_violation_solid() and minimum_length_solid() have some overlap, but the former is not entirely in latter.

Is it possible to refactor the latter to utilize the former?

I also thought about this. Refactoring can make the logic clearer, but in this case it may not seem worth doing. In minimum_length_solid(), violation is calculated multiple times because of binary search. Before that, an initialization step is performed by _ruler_initialize(). On the other hand, in length_violation_solid(), violation is calculated only once for a given input length scale, and the initialization _ruler_initialize() is also needed.
Therefore, if we put length_violation_solid() inside minimum_length_solid(), during binary search, _ruler_initialize() would be run multiple times, which is unnecessary and ineffective.
Another approach is that we isolate _ruler_initialize() from length_violation_solid() and write a simpler function for solid violation. However, such a function without initialization is not suitable for a user function. To prepare the user function, we still need another function that invokes both that simpler function and _ruler_initialize(). This approach results in more functions make makes the code longer. In the latest commit I made such revision, but we may not adopt it.


Use bootstrap

Thanks for your sleek date-picker.
Would you create a branch and use bootstrap as theme?

Hi @alidehghan, I think bootstrap's theme is not really that good. I would consider adding various beautiful themes for date picker though.

Yes, you are right. but bootstrap is main css-framework which widely used in many projects and is keystone of many infrastructures. By adapting bootstrap, your nice component would be more customizable and easier to utilize in projects.

@alidehghan I understand your case, but for now, this can't be implemented. There are a couple of things you can do to customize date picker:
1- Change primaryColor and secondaryColor props e.g to bootstrapy purple
2- As you might have noticed, when using this component you import component defined CSS file like import 'react-modern-calendar-datepicker/lib/DatePicker.css'; you can inspect elements and override any style you would like to make them look like more bootstrap theme.(though here are a couple of pre-defined props like calendarContainerClassName)


yarn should rebuild / check on a compile

If you change functions that affect ElixirScript.Core.Js, mix compile wont pick up on it. You need to force a recompile.
This is maybe wrong and I dont know mix, but going to leave it out there.

I agree there should be a better way. I'm afraid to do it with mix compile because of what might happen when others use ElixirScript as a dependency. Maybe we should use a makefile instead?

I know rebar3 has pre/post hooks. Maybe mix has equivalent, in the hook you can determine if it makes sense to recompile Core.Js, for example by checksumming the js files, and comparing it to the checksum you embed in the head of ElixiScript.Core.Js or similar.

Took a look at the documentation and didn't see anything.

Does mix compile call into the elixir_script compiler if executed from another project, if no source files changed? If not, indeed its a strange problem to have.  Looking at google I came to the conclusion post compile hooks are just not community approved.

This is only a problem during development. I'm fine with using a makefile until something better comes along.


Build to local disk first, flash USB afterwards

Awesome project, thanks a lot, hoping to get a gemini lake CB up and running with it soon. First attempts gave various errors and a lot of USB drive punishing. Next try will be from crostini.
Can you suggest a method to write to local disk first, before creating an .iso and flashing the USB disk? Or would that break thinks?
Not sure how to interpret the waitForUSB function:
https://github.com/MilkyDeveloper/cb-linux/blob/d67b7388931cde1084c055cb4ea5ffdda0d8666f/setup.sh#L53-L54
https://github.com/MilkyDeveloper/cb-linux/blob/39255612d4e4221675b024e9a09f9b420fabb147/utils/functions.sh#L37-L42
-but reckon there might be ways to mount a fake block device of sorts if needed.
*10 minutes after edit, found the https://milkydeveloper.github.io/cb-linux/docs.html#/kernel note, seems to be a workaround if I understand it correctly.

This already does directly write to a USB. It doesn't work within Crostini since you can't write to certain ext4 USBs.

Thanks for the quick reply - pardon my limited grasp of the code. What I am looking for is a way to write to local disk, ie. the same as the OS hosting the script and build process, and afterwards flash a USB disk with the req. filesystem and structure.
If kept inside setup.sh an option that allows a local folder instead of a USB lsblk device or separates build from USB prep and write.
Alternatively, instructions on how to manually complete the build and merge the compiled https://milkydeveloper.github.io/cb-linux/docs.html#/kernel.

What I did was to create a file of the appropriate size on disk (using fallocate -l [size]G breath.img), mount it as a loopback device (losetup -f --show breath.img) and use /dev/loop0 (or whatever the previous command outputs) in place of the flash drive's name. You'll have to modify a few hard coded things in setup.sh (everywhere it says ${USB}1 or ${USB}2 change to ${USB}p1 and ${USB}p2 respectively). Then after this you can simply dd the image to the flash drive.
It's hacky and not perfect but works. If I were to put more time into it, I would modify setup.sh to handle this for me, as well as writing it to the flash drive and then expanding the second partition once written.

I incorporated @daffy1234's changes into the script. Now, the script should build an IMG file by default. The docs have also been updated.


running lighting-pose on CalMS21 dataset

hello.
I'm trying to run lightning-pose for CalMS21 and test how it perfroms. I configured a new config .yaml file for this specific dataset, but the predictions on the video isn't really working. The new config file for the calm21 is mostly the same with crim13 config file, but added a video to leverage the unsupervised losses (pca_singleview & temporal), and also tested up to 1000 training epochs. The predicted keypoints stay at the top left corner of the video. Since, there was a crim13 config file as default, I wonder how the model performed on crim13 dataset, since these two datasets share a lot of features.
Below is the frame result of the predicted video, hoping it will help. Thank you in advance.
Best regards

Hi @egg-benedict, we should definitely be able to get this working on the CalMS dataset. Would you mind copy/pasting your config file here?

Also, it would be useful to use tensorboard to look at the training performance of your models. From the command line you just need to run (inside the LP conda env):
tensorboard --logdir=/path/to/your/models

Does the train/val RMSE go down to a reasonable number?

@egg-benedict just checking in on this again, would love to help you get up and running with this dataset


Plug idea: Side page

Allow an arbitrary page to be used in the left, or right hand side that persists when navigating through your space. Effectively allowing you to create a content menu.
Basically this can do exactly what the markdown preview RHS does right now, except it shouldn't update based on the currently open page. And probably should default to the left-hand side panel.
Page should be configurable, eg. Via a sidePage setting.

Is this by any chance still open? I'm interested in taking a crack at it; I might need some guidance on how to integrate a sidePage setting but I have a decent idea as to how to start with the rest.

Yep, go ahead!

Here's an example of how to read a setting from the SETTINGS page: https://github.com/silverbulletmd/silverbullet-mattermost/blob/7e5f9069fdd2194bd98eae30eb973a758c92d118/util.ts#L52

This is neat. An ideal might be like Obsidian's side panes, where you can have table of contents, file list, and other panes as well as just displaying files as you suggest, with a way to select which one or ones you want displayed at once. I know that's a lot bigger than you were suggesting here, though.

I'm taking a crack at this, fixed a half-implemented previewOnRHS setting in the meantime: Maarrk/silverbullet@dac7432f341ea6d41cdef24f6331bf820e755b64

I tried reusing the Markdown preview code for a page defined in SETTINGS, instead of the current one. Seemed the simplest way to get something into rhs or lhs in layout. My thoughts on it:

It's just ugly, since the fonts and other elements don't match. Especially hr with --- was doing strange things
Impressively, buttons and links work as they should
Queries don't refresh until you visit the side page, would be nice to have the refresh button here

Do you think that putting a read only editor there (like silverbullet.md) that can't have cursor moving through it (unlike silverbullet.md) would be a nice solution? That way everything looks familiar, but I don't know how feasible that'd be.

In a previous version of live queries and templates I managed to style the iframe that it used then (that's no longer in use) very similarly to the rest of the editor. Let me find that commit and point you to it. I think you can hack this to reasonable level with just HTML and CSS.

Ok found it: https://github.com/silverbulletmd/silverbullet/blob/a205178ff0a09f79aaa5cc2461a5bc324f2fc1c7/plugs/markdown/markdown_content_widget.ts
This is the old implementation of markdown widgets as iframes. They live inline, but effectively it's the same thing as using them in lhs or rhs panels. They were visually hard to distinguish from the code editor itself, so I think that makes sense to use here too.
They are styled with https://github.com/silverbulletmd/silverbullet/blob/a205178ff0a09f79aaa5cc2461a5bc324f2fc1c7/plugs/markdown/assets/markdown_widget.css and behaviors were mimicked with https://github.com/silverbulletmd/silverbullet/blob/a205178ff0a09f79aaa5cc2461a5bc324f2fc1c7/plugs/markdown/assets/markdown_widget.js
I hope that helps

Ah. That's not immediately obvious here, but in addition to this custom CSS. You also need to load SB's own main css file in the iframe: /.client/main.css


Update wasi-crypto

This has been discussed in issue #4610.
Update wasi-crypto
Test Wasm https://github.com/rjzak/wasi-crypto-example/releases/tag/v0.0.1

CC: @npmccallum, @sunfishcode

@rjzak -- Looking good now! Thanks!
Would you mind resolving the conflict so it can be merged?

@jedisct1 I'd like to resolve the conflict, but I changed the Cargo.toml file and need it to have my version, not what this thing is that Git seems to be trying to merge. How can I force it to be my version?

@jedisct1 I could use some advice regarding some of the CI errors. A lot of these are not related to wasi-crypto.

I added the nightly requirement for wasmtime-wasi-crypto since wasi-crypto uses Cargo's "per-package-target" https://github.com/WebAssembly/wasi-crypto/compare/67d9821f2763f4626a97c70c411ccb92a2047712...fa309ace2bb335bb08efc724a18721e8217d5977#diff-9c249d46387da48fcc9d73b78e7a99a00bb825ae6b5fa222b60f6b27f9a4d2a0. Is this ok @sunfishcode?

@rjzak I don't think nightly is required (at least I hope it's not...)
However, the errors about dead code were likely due to the example main.rs file in wasi-crypto/.../bindings/rust/src.
This has been fixed upstream, so an update to a more recent commit should fix the issues we are seeing here as well.

Nightly was only needed for running the test case for Wasi-Crypto, not for compiling the Wasmtime-Wasi-Crypto module.
I'll look at updating the Wasi-Crypto submodule.

Yes, but the test case depends on the Rust example bindings.

I've updated the Wasi-Crypto git submodule, may I have a re-run of CI? @sunfishcode or @jedisct1
This should fix one of the CI issues about unused import.

Abandoning in favour of future PR against the main branch.


improve draft up docker image build performance

Right now when draft up is called twice in a row with no changes in-between, draft will re-build and re-push the same docker image to the registry, which is unnecessary. We should perform a smarter verification that the incoming docker image and chart are the same as the last release so we can tighten the dev loop in these cases.

#573 significantly improved performance so now it's up to the docker layer caching to do its job. We can revisit this if there are certain edge cases around AKS/EKS/GKE deployments that need to be addressed. Closing!


Multiple values separated by space (not comma)

Hello,
Is it possible to use Multiple Value autcomplete without using commas, maybe with just a space?

Yes, but you'd need to modify the regexes in the code.


[Tracking - Fleet] Inconsistencies between Fleet docs in rancher/docs and fleet.rancher.io

From feedback:

There is inconsistent information on the Rancher docs site and https://fleet.rancher.io/

Exact inconsistencies have not been provided yet.
https://github.com/rancher/fleet/issues/829

Closing issue is tracked on the Fleet repo.


Update README.md : Fix typo

just fix a typo 👀

Warnings

:warning:

❌ An error occurred while validating your changelog, please make sure you provided a valid changelog.

  Generated by :no_entry_sign: dangerJS against 44a9bd1e743ce965ad488031caa007f9cffe8e92


The bond between two Functional Group abbreviations dissapears

Steps to Reproduce

Launch Ketcher
Paste this structure:

Ketcher<PHONE_NUMBER>2D 1   1.00000     0.00000     0

  8  8  0  0  0  0  0  0  0  0999 V2000
   10.3670   -6.7750    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   11.2330   -6.2750    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
    9.5008   -7.2755    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
    8.6340   -6.7753    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
    7.7639   -7.2781    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
    7.7703   -8.2780    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
    8.6336   -8.7739    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
    9.5001   -8.2732    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
  1  2  1  0     0  0
  3  4  2  0  0  0  0
  8  3  1  0  0  0  0
  7  8  2  0  0  0  0
  6  7  1  0  0  0  0
  5  6  2  0  0  0  0
  4  5  1  0  0  0  0
  3  1  1  0  0  0  0
M  STY  1   1 SUP
M  SLB  1   1   1
M  SAL   1  7   1   3   4   5   6   7   8
M  SBL   1  1   1
M  SMT   1 Bn
M  END

Select 'Bn' from the 'Custom Templates' -> 'Functional Groups' list, and click on the methyl group
Look to the bond between two Functional Group abbreviations
Note: If you expand the abbreviations, then the bond is in place. The bond disappears only when the abbreviations are collapsed. Visual problem.

Actual behavior
The bond between two Functional Group abbreviations dissapears
Expected behavior
The bond between two Functional Group abbreviations does not disappear
Screenshots
https://user-images.githubusercontent.com/62464241/208429817-390248ce-59f0-425a-bb7e-007efdb8910f.mp4
Desktop (please complete the following information):

OS: Windows 10
Browser Chrome
Version 108.0.5359.125 (Official Build) (64-bit)

Ketcher version
[v2.7.0]
Additional context
Related issue: https://github.com/epam/ketcher/issues/2269

reproduced in v2.7.0-rc.9, moving this to v2.9.0-rc.1

Also if you click FG on another FG connected with atom - dissapear atom with bond
https://user-images.githubusercontent.com/62464241/220962935-2f07b07e-f009-441b-88b6-9dc1db445f7d.mp4

Also if you click FG on another FG connected with atom - dissapear atom with bond

I guess this one will be done in scope of #2269

This issue is reproduced in v2.8.0-rc.4, but has been fixed on master branch


firebase().ui().show crashes on Android with Error: Cannot read properties of undefined (reading 'launch')

I'm trying to use @nativescript/firebase-ui for phone authentication.  I have a plain NativeScript Hello World project, and the only code it contains is the firebase core, messaging, auth, database, and UI plugins, code to initialize firebase and get the device token, and code to invoke firebase-ui for phone authentication:
  import { PhoneProvider } from '@nativescript/firebase-ui';

  firebase()
    .ui()
    .show({ providers: [new PhoneProvider()] })
    .then((result) => {
        console.log(result.user);
        console.log(result.hasCredentialForLinking);
        console.log(result.providerType);
    })
    .catch((error) => {
        console.error('show error:', error);
    });

On Android, I can build successfully, but on execution, receive this error
System.err: An uncaught Exception occurred on "main" thread.
  System.err: tech.govia.newdb: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
  System.err: Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

Edit 4/30/2023:  Edited to show current error
Here's the package.json contents:
{
  "name": "newdb",
  "main": "app/app.js",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@nativescript/core": "~8.5.0",
    "@nativescript/firebase-auth": "^3.1.0",
    "@nativescript/firebase-core": "^3.1.0",
    "@nativescript/firebase-database": "^3.1.0",
    "@nativescript/firebase-messaging": "^3.1.0",
    "@nativescript/firebase-ui": "^3.1.0",
    "@nativescript/theme": "~3.0.2"
  },
  "devDependencies": {
    "@nativescript/android": "8.5.0",
    "@nativescript/ios": "8.5.2",
    "@nativescript/webpack": "~5.0.14"
  }
}

And the app.gradle contents:
// You can add your native dependencies here
dependencies {
//  implementation 'androidx.multidex:multidex:2.0.1'
}

android {
  compileSdkVersion 33
  defaultConfig {
    generatedDensities = []
    applicationId = "tech.govia.newdb"
    multiDexEnabled true
    minSdkVersion 19
    targetSdkVersion 33
    versionCode 1
    versionName "1.0.0"
  }

  aaptOptions {
    additionalParameters "--no-version-vectors"
  }
}

The FLAG_IMMUTABLE or FLAG_MUTABLE error was resolved by adding this to app.gradle:
implementation 'com.google.android.gms:play-services-auth:20.5.0'
as per this SO post.  20.5.0 is the current latest version.
I get a subsequent "An unknown error occurred" error message on the Enter your phone number screen, but I'll investigate that separately and will close this issue.


KTO loss

Summary
This is the kto loss implemented by references from other projects
Details
I am not sure about the correctness (because this is my first PR) of the final results so I expect a lot of comments
Testing Done
I have done the basic testing inspired from cpo

Okay code formatted and comment about the source of the loss added

@ByronHsu @shivam15s could either of you please take over reviewing this PR, have to switch my focus to other stuff.


Feature/parking

This change is

Reviewed 10 of 11 files at r1, 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 5 unresolved discussions.

app/src/main/java/edu/byu/suite/features/parking/controller/EditVehicleDialog.java, line 45 at r2 (raw file):

	private static final String EDIT_VEHICLE_DIALOG_ERROR_MESSAGE = "There was an error processing your request";
	private Vehicle vehicle;
	private List<ParkingCode> stateCodesFromService = new ArrayList<>();

Remove this

app/src/main/java/edu/byu/suite/features/parking/controller/EditVehicleDialog.java, line 57 at r2 (raw file):

	@Override
	public void onCreate(Bundle savedInstanceState) {

Remove this

app/src/main/java/edu/byu/suite/features/parking/controller/VehicleActivity.java, line 181 at r2 (raw file):

		editButton.setOnClickListener(v -> {
			Bundle b = new Bundle();
			b.putParcelable("vehicle", vehicle);

Extract
private void setUpEditDialog() {
Bundle b = new Bundle();
b.putParcelable("vehicle", vehicle);
EditVehicleDialog editVehicleDialog = new EditVehicleDialog();
b.putParcelableArrayList("stateCodes", (ArrayList<? extends Parcelable>) stateCodesFromService);
editVehicleDialog.setArguments(b);
editVehicleDialog.show(getFragmentManager(), null);
}

app/src/main/java/edu/byu/suite/features/parking/controller/VehicleActivity.java, line 185 at r2 (raw file):

				final ByuProgressDialog progressDialog = ByuProgressDialog.createAndShowProgressDialog(this, "Loading data please wait...");
				final Call<List<ParkingCode>> parkingCodesCall = parkingApi.getParkingCodes(getResources().getString(R.string.vehicle_state_code_set_id));
				final ByuActivity activity = this;

Just use addCall(parkingCodesCall);

app/src/main/java/edu/byu/suite/features/parking/controller/VehicleActivity.java, line 197 at r2 (raw file):

						progressDialog.dismiss();
						EditVehicleDialog editVehicleDialog = new EditVehicleDialog();
						b.putParcelableArrayList("stateCodes", (ArrayList<? extends Parcelable>) stateCodesFromService);

psf

Comments from Reviewable

Review status: 8 of 11 files reviewed at latest revision, 5 unresolved discussions.

app/src/main/java/edu/byu/suite/features/parking/controller/EditVehicleDialog.java, line 45 at r2 (raw file):
Previously, romrell4 (Eric Romrell) wrote…
> Remove this

Done.

app/src/main/java/edu/byu/suite/features/parking/controller/EditVehicleDialog.java, line 57 at r2 (raw file):
Previously, romrell4 (Eric Romrell) wrote…
> Remove this

Done.

app/src/main/java/edu/byu/suite/features/parking/controller/VehicleActivity.java, line 181 at r2 (raw file):
Previously, romrell4 (Eric Romrell) wrote…
> Extract
> private void setUpEditDialog() {
> 		Bundle b = new Bundle();
> 		b.putParcelable("vehicle", vehicle);
> 		EditVehicleDialog editVehicleDialog = new EditVehicleDialog();
> 		b.putParcelableArrayList("stateCodes", (ArrayList) stateCodesFromService);
> 		editVehicleDialog.setArguments(b);
> 		editVehicleDialog.show(getFragmentManager(), null);
> 	}

Done.

app/src/main/java/edu/byu/suite/features/parking/controller/VehicleActivity.java, line 185 at r2 (raw file):
Previously, romrell4 (Eric Romrell) wrote…
> Just use addCall(parkingCodesCall);

Done.

app/src/main/java/edu/byu/suite/features/parking/controller/VehicleActivity.java, line 197 at r2 (raw file):
Previously, romrell4 (Eric Romrell) wrote…
> psf

Done.

Comments from Reviewable

Reviewed 3 of 3 files at r3.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable


Update maven plugins

2.21.0 -> Apache Maven Surefire Plugin 2.22.0 Released
3.0.2 -> Apache Maven Resources Plugin Version 3.1.0 Released
3.0.0 -> Apache Maven Javadoc Plugin 3.0.1 Released

Updated.


Add Series.from_pandas

This is on the DataFrame class but lacking on the Series class

Fixed in #262


Tall Matrix multiplication with a column matrix with CPU(FMat) vs GPU(GMat) : GPU not caching matrix

I am trying to identify the top 10 similar, say,
documents from a list of 2.7 Million documents for a new document that I get. Each document is represented as a vector of 500 doubles. The number of documents is 2,633,142. So, we have a matrix of size gc = (2633142 x 500) for all the processed documents. Whenever a new document arrives, we compute it's vector e = (500 x 1). Assuming that the vectors are normalized, we need to compute the dot product of e with each row of gc and pick the maximum value from the resulting matrix(2,633,142 x 1).
When I compute the dot product of a new document features with that of 2.7 million images' features using BIDMach matrix matrix multiplication, it takes 300 milliseconds using FMat and 1200 milliseonds using GMat. I am attaching the screenshot. I was expecting GMat to work faster than FMat. Another thing I observe is that the amount of GPU memory used while creating GMat is less than 100 MBs while I was expecting it to use 3 GB. Looks like it is not caching the Matrix in GPU memory which is leading to slower execution. Can you tell me if I am doing something wrong here or whether any kind of improvement can be done to cache the data properly in memory and reduce the time consumption of GMat based matrix multiplication?
The computation is a matrix multiplication of dimensions:
(2633142 x 500) * (500 x 1) = (2633142 x 1)
I don't understand why CPU is faster than GPU and how to obtain faster speed with GPU, say, in a few 100 milliseconds.
Notebook.pdf

Your matrix is more than a billion elements which is pushing the limits of what the GPU can handle. GMats can actually be stored in CPU memory, and we have a threshold which moves them to CPU memory when they're very big. Unfortunately this is much slower. However, your matrix can probably still fit in the memory of newer GPUs. The variable that controls this is Mat.hostAllocSize. I increased it so it will store matrices up to 2 billion elements on the GPU. 2 billion is the limit for Java and things get difficult if matrices have more than that. With that change, the time for your matrix operation drops to about 30 milliseconds on a K40 GPU.
btw, if you can manage to group a few of your vectors together it will be much faster. Matrix-vector multiply is memory bound (each matrix element is used only once) and doesnt allow the GPU to do much work. Matrix-matrix multiply operations are much faster since each matrix element is used many times.
Not sure you need caching. If you're reusing your large matrix it will just live in GPU memory. You would only need caching for the vectors. If you're running inside the Learner framework, it gets turned on and off automatically. Otherwise you need to set Mat.useCache = true.

Hi John,
Thanks for the quick response. I now understand the problem.
I was able to increase the hostAllocSize and I am able to cache data upto 2 Million rows with GPU0.
Thanks again.
Next part:
The host I am using is a g2.8large node on EC2 and has four GPUs. I want to cache 2 million * 4 = 8 million on these four GPUs by splitting the data into four equal chunks of 2 million rows. When I try to cache the next matrix of 2 million rows, it gives me an error saying:
java.lang.RuntimeException: CUDA alloc failed out of memory
BIDMat.GMat$.apply(GMat.scala:1713)
BIDMat.GMat$.newOrCheckGMat(GMat.scala:2482)
BIDMat.GMat$.newOrCheckGMat(GMat.scala:2523)
BIDMat.GMat$.apply(GMat.scala:1719)
Looks like it is trying to cache it again in GPU0 which is almost full, but, GPU1 has  a lot of free RAM.
How do I explicitly cache 4 different matrices on this single g2.8xlarge node on the four GPUs and then, compute the matrix multiplication of a single column matrix with all these four cached matrices? Also, can I perform these four matrix multiplications parallelly?
I want something like this -
a1 - FMat with size (2,000,000, 500)
a2 - FMat with size (2,000,000, 500)
a3 - FMat with size (2,000,000, 500)
a4 - FMat with size (2,000,000, 500)
g1 = GMat(a1) // to be cached on GPU 0
g2 = GMat(a2) // to be cached on GPU 1
g3 = GMat(a3) // to be cached on GPU 2
g4 = GMat(a4) // to be cached on GPU 3
val e1 = e
val e2 = e
val e3 = e
val e4 = e
(i.e. e1=e2=e3=e4 which are of size (500, 1))
In real time, we get a new vector, e of size (500,1)
we need to perform

g1*e1
g2*e2
g3*e3
g4*e4

My questions are:

How to ensure that g1 gets cached in GPU0, g2 gets cached in GPU1, g3 gets cached in GPU2 and g4 gets cached in GPU3 ?
How to perform parallel computation of g1e1, g2e2, g3e3 and g4e4 assuming that g1, g2, g3 and g4 are cached in four different GPUs by question 1 above

This is doable, but complicated. CUDA includes thread-local variables that affect the GPUs state. You can set the current working GPU with "setGPU(i)", with i in 0,..,3 on the g2.8xlarge instances. Then any data allocated from that point will be on that GPU. When you retrieve data from a GMat, you will also need to set the GPU to the one on which that matrix was allocated (there are some exceptions to this because you can "connect" two GPUs, but they're not connected by default). btw, each GPU matrix  carries around the identity of its GPU in mat.myGPU.
If you're using multiple GPUs from different threads, you wont need to do this. Each thread can be associated with just one GPU (do setGPU soon after you create the thread), and data sent from CPU to that GPU will be in its own GPU.
This is very similar to what the "ParLearner" classes do. Data comes in minibatches and is sent to all the GPUs, each of which is running on its own thread. The difference though is that ParLearner assumes data parallelism only, so each minibatch is sent to just one GPU.
btw, there is no need to cache g1...g4. Matrices allocated on GPUs are persisted there until you clear the GPU memory. You may want to cache the results of g * e1..e4, although they are very small and it may not matter. What caching does it to reuse the storage associated with a matrix. If you have a loop
for (i <- 0 until n) {
h1 = g1 * e1
}
Then by default a new h1 is generated on each iteration. But if caching is on and h1 points to the result of g1 * e1 from a previous iteration and g1 and e1 are the same matrices as in the previous iteration (the same containers, not the same contents), then h1 will be reused. Assuming your data is coming from a cpu vector u, then on the first iteration do:
val e1 = GMat(u)
and then
e1 <-- u
which guarantees that the same container is used for e1 each time, even if u points to a different matrix.

Hi John,
Thanks for the reply.
I tried caching and reusing the containers as you described above. It seems that there is still incremental memory consumption happening in each iteration at the Matrix multiplication step.
I am attaching the notebook I am using. We can clearly see at the end of the notebook, that GPU memory consumption is increasing in all the 4 GPUs for each iteration. I verified that this is happening at the matrix multiplication line : "mul_result0 = gmat0*vec_gpu0" for GPU0 and so on.
Can you let me know if I am doing some mistake while reusing containers with "<--" ?
How do I use this kind of system where it should be able to run for thousands or millions of iterations without incremental memory consumption?
Data and operations that need to be performed are:
Static data is "gmat0" of size (230,000,4096) which is read once from disk and cached in GPU
For each iteration, we get a new vector, "vec_gpu0" of size(4096,1) from filesystem
and we need to compute the matrix multiplication, gmat0*vec_gpu0 and sort the multiplication result to choose the largest 10 values
Notebook_bidm.pdf
Thanks and Regards,
Suraj Sheth

Caching works on computation DAGs when all the source nodes are the same between iterations.
In your code:
vec_cpu0 = FMat(4096,1,filedata)
this will be a new matrix (a new container) on each iteration. Its a source node (doesnt depend on any other nodes). You should not allocate new source nodes in a loop. When you do
vec_gpu0 = GMat(vec_cpu0)
you will also get a new container because it depends on vec_cpu0.
If you instead allocate vec_cpu0 outside the loop and do loadFMat(testfilename, vec_cpu0), the data would have been loaded straight into the same container.
You could have also done:
vec_cpu0(?) = FMat(4096,1,filedata)
or
vec_cpu0 <-- FMat(4096,1,filedata)
both of which copy a newly-created matrix in the vec_cpu0 container. The its dependency vec_gpu0 will be the same container as well.
You could have also allocated vec_gpu0 outside the loop and done:
vec_cpu0 = FMat(4096,1,filedata)
vec_gpu0 <-- vec_cpu0
which creates a new vec_cpu0 each time through the loop but copies its contents to the same vec_gpu0. The cpu matrices will be handled by the garbage collector, while the GPU matrices will be cached.

btw, you dont need to allocate cached values explicitly. i.e. your source matrices are vec_cpu0 and gmat0 but the others can be allocated inside the loop:
gpu_num=0;
setGPU(gpu_num)
loadFMat(mat_name, vec_cpu0)
val vec_gpu0 = GMat(vec_cpu0)
val mul_result0 = gmat0 * vec_gpu0
val (svals, inds) = sortdown2(mul_result0)
for (i <- 0 to 9)
results(i+gpu_num*10) = (svals(i,0), inds(i,0), text...

Hi John,
Thanks for the solution.
I confirmed that using
vec_cpu0(?) = FMat(4096,1,filedata)
instead of
vec_cpu0 = FMat(4096,1,filedata)
works.
It reuses the same container with this change and this solved the problem.
Thanks and Regards,
Suraj Sheth


Some icons are too small

When I input "frozen" to search bar, some icons become small.

In dev tools, it shows helper text like below:
The display: flex property on the parent element prevents grid-column from having an effect.
Try setting the display: flex property on the parent to display: grid.

fixed in 550252dacdde3e205d93f3e6d2819ace761f12c2


Fix hard-coded preflight origin

router::router::generate_preflight_response() currently uses a hardcoded value for Access-Control-Allow-Origin. This should be instead replaced by whatever configuration was passed to the controller:
https://github.com/Tectu/malloy/blob/beb0cc66de657187c52f3793694f657ebbcf3e8f/lib/malloy/server/routing/router.cpp#L169
This will require that we also add a scheme field to the controller's configuration as the value for this header field needs to include the scheme if an URL is supplied.
Thinking of it, we should also allow the user of the library to specify other values such as a wildcard.

I still haven't decided how to do this properly.
I was hoping that we could deduce the information from the controller's config somehow but that doesn't seem to be a very elegant solution given that the the Origin header field might have different information. For example, it needs to include the schema (eg. http:// or https://) and might also list a domain rather than just IP + port.
Currently I think that the best solution is to add a base_url field of type std::string to server::controller::config. This needs to be passed to server::router which would be a good time to create a server::router::config struct which will also hold the shared_ptr to the logger. Furthermore, the current m_generate_preflights field might also be added to that struct.
It might be worth considering having the base_url field in server::controller::config be of type std::shared_ptr<const std::string> instead to avoid unnecessary copies/duplicates. However, that would make filling the configuration struct less elegant.
One might instead go for adding std::enable_shared_from_this() to controller::config and pass an std::shared_ptr<const server::controller::config> to the router.
@0x00002a Thoughts?

From my perspective I need to be able to have CORS access for webui backends and such. Off the top of my head, naybe it could also be done like the current routes, with an add_preflight method that allowed generation of the preflight (essentially just add(...) but with method::options), and then m_generate_preflights could be used to automatically do it in the absence of a dedicated handler.
Currently I have to disable the automatic preflight stuff and handle options manually with my own response setup with the needed  Access-Control-Allow-Origin.

I think there might have been a slight misunderstanding. I am not proposing to drop this feature. I too need it for exactly the same reason :p
What I'd like to discuss is the design of how this should work - especially how the necessary information for filling the preflight response is passed into the router.
I agree that preflights should only be generated automatically if none was provided manually.

There might be a nice solution by having the existing http::generator generate the preflight responses. The function in question would need to get the endpoint passe

Yeah sorry, thats what I meant too. What I mean is, I need to have a way to specify the Access-Control-Allow-Origin and the current API doesn't provide it unless I disable part of it an do it by hand. So if the API is being improved I vote for allowing the user to specify any kind (so, what you said above :p).
I also have other custom setup for the preflight such as allowed headers, and methods. Speaking of which the methods should probably be filled automagically, since we have that information. Perhaps we could expose an object that allowed customising these things, exposing the set(http::field) methods from beast::http::header and providing QoL stuff like an "autogenerate allowed methods" switch or something. Then have a method in router that attached it to specific endpoints via regex (which would also allow the user to make it as specific or general as they like).
Just some ideas

Improving the API is the entire point of this discussion/issue 😝
So, how about creating struct preflight_config. The router will have an instance of that which will be used to automatically generate preflights (if supposed to).

Speaking of which the methods should probably be filled automagically, since we have that information.

That is already the (somewhat?) the case: https://github.com/Tectu/malloy/blob/8d0529b7060d6b2f8af9b16178e10dd10181d0f6/lib/malloy/server/routing/router.cpp#L170

That is already the (somewhat?) the case:

:woman_facepalming: can't believe I missed that

So, how about creating struct preflight_config. The router will have an instance of that which will be used to automatically generate preflights (if supposed to).

I agree but I think it would be helpful to have a per-route config rather than a global or nothing situation, since certain parts of an API may have different requirements but still be mostly the same. If we allow the user to set it via regex for which routes it covers, it could reduce boilerplate/pain for the user while still being flexible enough to be global if the user wants or pinpoint precise as well. I was thinking we could actually just do this as a wrapper on router::add, either wrapped in a lambda or give the config struct an operator().
Thoughts?

I agree but I think it would be helpful to have a per-route config rather than a global or nothing situation, since certain parts of an API may have different requirements but still be mostly the same.

Well, each (sub-)router would have its own instance of the preflight_config :p

If we allow the user to set it via regex for which routes it covers, it could reduce boilerplate/pain for the user while still being flexible enough to be global if the user wants or pinpoint precise as well.

+1

I was thinking we could actually just do this as a wrapper on router::add, either wrapped in a lambda or give the config struct an operator().

Sounds like a good plan.
Just thinking about it - why not just adding another endpoint that is specialized for preflight requests? We could have something like:
struct endpoint_http_preflight :
    endpoint,
    resource_matcher
{
    // ...
};

and
bool router::add_preflight(/* ... */);

That also works. I was thinking more like:
auto add_preflight(const std::string& resource, const preflight_config& handler) -> bool {
    return add(http::method::options, resource, [handler](const auto& req) { /* setup response based on handler */ return res; });
}

That way the user has a preflight config that can be copied and tweaked across multiple instances and isn't tied to a single endpoint. Also we could even add logic for capture group usage if we wanted to.

Today we are really good at talking about the same thing but still "disagreeing" :p

I'm trying to draft something up.

@0x00002a please have a look: 44970bcc5884a891355eeee5f664e1de4ee69305


Syntax error not detected referencing class when targeting ES6

TypeScript Version:  2.0.3
Code
var p = new Foo();
class Foo() {
}

Expected behavior:
Transpile error when targeting ES6. Because class declarations aren't hoisted this isn't valid and will fail at runtime.
Actual behavior:
No transpile error.

looks like there is something else going on. i do not see this locally:
c:\test\sandbox8>type a.tsx
var p = new Foo();
class Foo() {
}

c:\test\sandbox8>\tsc --v
Version 2.0.3

c:\test\sandbox8>tsc --t es6 a.tsx
a.tsx(2,10): error TS1005: '{' expected.
a.tsx(2,13): error TS1005: '=>' expected.

@mhegazy remove ()  from class Foo()

I can repro this, indeed no error is raised but it should be a static error.
The compiler does check class declaration order in other cases, like this:
class Derived extends Base {} // ERROR class must be declared after base class
class Base {};

See #5207.

Thanks @falsandtru


Small bug fix in net.py and added predict user data script to /scripts

Hey Teo, I think you can actually remove
    if hasattr(args, "h") or hasattr(args, "help"):
        parser.print_help()
        sys.exit()

and the code should still function (test to make sure -h and -help are recognized.
Sure
Also can you include the relevant change in td_net.py.
I think included them in a previous pull request, and td_net.py is updated.

As far as the script, it feels a little specific to the capstone groups, so I think it is more relevant in the capstone-SLAC repo, as opposed to resonet.. Can you move it there, maybe to capstone-SLAC/scripts ?

Oh yeah


Fix broken pushdown queries

Description
Under certain circumstances, pushdown queries using promscale-extension
aggregates fail.
The failure comes from the fact that the start and end parameters passed
to the aggregate don't correctly align with the actual data which is
aggregated over by the query.
A call to the prom_rate aggregate looks something like the following:
SELECT
    prom_rate(start, end, step_size, range, sample_time, sample_value)
FROM a_metric
WHERE a_metric.t >= data_start
  AND a_metric.t <= data_end

If the time span [data_start, data_end] delivers results which are
outside of the time span [start, end], the aggregate function errors.
In general, this bug appeared when an aggregate pushdown function (such
as PromQL rate) is used together with a vector selector, such that the
lookback of the vector selector is larger than that of the aggregate
pushdown.
The fix is to build the SQL query using the correct values for
data_start and data_end.
Merge requirements
Please take into account the following non-code changes that you may need to make with your PR:

[x] CHANGELOG entry for user-facing changes
[x] Updated the relevant documentation

This fixes https://github.com/timescale/promscale_extension/issues/72

FYI I've resolved conflicts and squashed.


Update region_isos to include new scenarios

The goal of this PR is to have the dataset region_isos gain region definitions for the following scenarios:

geco_2020
geco_2021
etp_2020
weo_2021

I suspect this is just the first commit of what will end up being a longer PR. If that is the case, I would leave the PR in draft mode.
In draft mode, you can still request my review of parts of the PR, especially if there are aspects you are uncertain about.

You can convert to draft in the top right of the PR, here:

@cjyetman yup I noticed immediately after posting that comment that & is actually ASCII, my mistake. I meant non-alphanumeric. It was sort of a design choice of the r2dii packages to format all input datasets (ABCD, scenarios, etc.) with only alphanumeric contents (notice that the sector Oil&Gas is oil and gas in the r2dii universe. The goal was to make the user journey as simple as possible for all external users (since the audience of these packages are likely R novices), we wanted to avoid as much struggle as possible with encoding hell/ computers with different language settings/ any issues with savings csvs from excel, and reading them in, etc.).
In hindsight, I think the & would actually probably have been fine, but I think for now I would prefer to stick with the current status quo that the rest of the datasets and r2dii packages follow. Restricting inputs to only being alphanumeric might have been too strict a stance, but I'd prefer not to revisit that choice right now :-) It's something we can re-consider during the refactor, or for a potential major version bump of r2dii (ie. towards version 1.0.0 of the r2dii suite).


Add API to unset shared memory in client library

Are you merging into the correct target branch? Or you need to rebase your working branch

@GuanLuo is right. I believe this needs to merged into master and then v2test needs to be rebased onto master.


Preview/live not aligned

From Slack
I just pushed an article (adoc) live using the REST API:
Preview:
curl -vi -XPOST 'https://admin.hlx.page/preview/hlxsites/prisma-cloud-docs/main/docs/en/enterprise-edition/rn/known-issues/known-issues'

Live:
curl -vi -XPOST 'https://admin.hlx.page/live/hlxsites/prisma-cloud-docs/main/docs/en/enterprise-edition/rn/known-issues/known-issues'

On the preview site, I see the fix Max made to address link text that said "undefined" (GH#168):
https://main--prisma-cloud-docs-website--hlxsites.hlx.page/en/enterprise-edition/rn/known-issues/known-issues
But on the live site, I don't see the fix.
https://main--prisma-cloud-docs-website--hlxsites.hlx.live/en/enterprise-edition/rn/known-issues/known-issues
I opened both pages in fresh new incognito windows.
Questions:

Is there a delay between hitting the publish REST endpoint, and the actual content going live?
How long should I expect to wait to see the new content?
Technically, what's going on under the covers?

answered questions on Slack, looks like this was a race condition on preview/publish


clarified logging options in Compose, fixed glaring note formats

Logging options on Compose

Clarified logging options on Compose per follow-up suggestions from @thaJeztah  on PR #3243

Notes and admonitions formats fixes

Fixed the most glaring problems with notes formats (double prefix words) in the files immediately relevant to this issue/PR as a result of the original CSS updates for admonitions (which automatically pre-pended a word to multi-line, untagged blockquote)

Added a new example to Admonitions topic in test.md

We should probably do a global scan of the docset to find any other admonitions which broke because of this one problem (automatically pre-pended words to multi-line, untagged blockquotes), and then further clarify note styles for all use cases, including one-liners and cases of multi note blocks that might benefit from a pre-pended word - this helps avoid stacked notes. See the Compose reference files for examples.

Direct preview links
https://deploy-preview-3272--docker-docs.netlify.com/compose/compose-file/#logging
https://deploy-preview-3272--docker-docs.netlify.com/test/#examples-with-both-prefixed-word-and-icon
Related
#3178, #3243 (logging related)
#2795 (original admonitions formats PR)
Reviewers
@thaJeztah @tgjamin @johndmulhausen @joaofnfernandes @mstanleyjones
Signed-off-by: Victoria Bialas<EMAIL_ADDRESS>

LGTM


Adding Users and Profiles test data and unit test with pytest

Adding Users and Profiles test data to be created when using migrate.
Creating superuser account on migrate commend.
Adding Users and Profiles unit test with pytest.

fixes #55

Any update on this? it's waiting for a long time

I deleted all these tests, I will upload a new PR


Undetected invalid script args

When calling daphne, users can provide named script arguments that are available inside the DaphneDSL script. For a very simple example, see test/api/cli/scriptargs/printSingleArg.daphne:
print($foo);

According to the DaphneDSL language reference, only literals may be passed as script arguments. For example:
bin/daphne test/api/cli/scriptargs/printSingleArg.daphne foo=10

10

However, the following calls of daphne with invalid script arguments all pass "successfully" (status code 0) and some don't even indicate any error. Note that none of them behaves as one might expect when passing the respective invalid argument:

# Unclear what the user may have wanted.
bin/daphne test/api/cli/scriptargs/printSingleArg.daphne foo=10xyz23

10

# Seems like the user wanted DAPHNE to evaluate the expression.
bin/daphne test/api/cli/scriptargs/printSingleArg.daphne foo="1.23*4.56"

1.23

# Seems like the user wanted DAPHNE to evaluate the expression.
bin/daphne test/api/cli/scriptargs/printSingleArg.daphne foo="sin(1.23)"

line 1:0 mismatched input 'sin' expecting {'true', 'false', INT_LITERAL, FLOAT_LITERAL, STRING_LITERAL}
1.23

Search for see #773 in the code base.

Hi, please assign me to this issue.


Could TypeScript allow the use of JS code as part of the type-checking process?

Acknowledgement

[X] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

Comment
I was essentially wondering about explicit choices that could have been made at some point regarding this question.

Extremely unlikely for a large number of reasons.
Code can't be reasoned about in the same way types can, e.g. you can't (in general) take a piece of JS code that returns true or false and say if it returns true for a subset or superset of the same inputs as some other piece of code, so any type-function couldn't have inferred subtyping rules.
Code can't be optimized with use of higher-level invariants like variance, so is likely to be slow in a lot of cases that should be fast
Security, of course - you can't just run this code natively or it's a security problem, so now you have to sandbox it (which slows it down further), define what's in and out of the sandbox, and then the things people typically want to make "code" for (files) are not something you want the sandbox to have access to.

Thank you very much for the insight :)

you can't (in general) take a piece of JS code that returns true or false and say if it returns true for a subset or superset of the same inputs as some other piece of code

Also known as the halting problem :wink:

Also known as the halting problem 😉

the halting problem Rice's Theorem

Rice's theorem states that all non-trivial semantic properties of programs are undecidable.

Rice's Theorem

Good to know there's a name for the more general statement - I realized quite a while ago that the recursive nature of the definition of "program" implied that all questions you can ask about the behavior of a program were as undecidable as the halting problem[^1], but didn't realize that fact had already been formalized.
[^1]: Since "program" is defined recursively, and there are subprograms for which an analyzer can never "find the end" (i.e. decide if it halts or not), then it follows that for any question you can ask, for at least one program, that information is completely inaccessible to the analyzer.


Caching/hashing

We should add some sort of "smart" caching support.
By default hashing should be false however when --hashing=true flag is set we should do the following:

Grab the existing files and parse their current hash values
Diff the new output JS with the existing JS
If the new file contains changes delete the existing file and replace it with the new one
Track file names and hash values

If the --hashMap flag is set we should generate a JSON hash map where the source file is the key and the hashed file name is the value. This will provide developers using server-side rendering the ability to map the source file names (like app.js) to the hashed file name while rendering.
[
    "source.js": "source.HASH.js",
    "app.js": "app.2JH483RR9G.js"
]

When the --spa flag is set we should NOT hash the bootstrap.js file. This will allow SPA developers to have a static entry point to their applications. The --hashMap value will be required when building SPAs. The bootstrap.js file could look like the following:
(async () => {
    const request = await fetch("/twistjs.ledger.json");
    const response = await request.json();
    import(response["app.js"]); // maps source file to hashed file
})();

The only downside I can see to reserving the bootstrap.js file is that it will most likely be cached for quick reboots meaning that the application's starting point (app.js in the example above) should never change.
This change will also require us to scrub dynamic import statements.
We should also create an example service worker that imports the hash map and dynamically updates the resource cache.
Proposed Flags

--hashing=true
--hashMap=./desired/output/path (required when hashing)
--spa=true (optional)

After having time to think about the underlying problem we are trying to solve I've decided to transfer this issue to this (asset-manager) library.
If a developer wants to use a file hashing caching strategy they will (most likely) want their CSS handled in a similar manner and handling CSS (or SASS) is outside the scope of the TwistJS project. Since I still want to develop this feature I think it would be best if it is developed as a new major feature for this library. The default functionally of this library should not change and we should support a new config setting: strategy. The default value will be "flat" and the new file based hashing will be available with "file" variant.


Weights Fine Tuning

Hi, I'd like to fine tune my model weights using my own dataset based on your pretrained weights, like dmn_referit_weights.pth, I don't know how to do that because I have no optimizer weights to resume the training. Any instruction or suggestion will be appreciated for that.

Thanks for your timely reply and I will try.

@13331112522 Any followup on this one?

We are working on processing our new dataset and I am going to report the result on this issue. Thanks for your consideration.

Hi, I have actually completed my model training as your instruction with my own tracking dataset. It has good performance on my dataset but poor performance on referit and UNC. I think it adjusted its weights to adapt the new task and hard to generalize multiple tasks or datasets. I had used 2 epoch on low resolution and 10 epoch on high resolution during my training, so I also suspected it might get overfitting. By the way, is there any updating on DMN structure, as the latest network like MattNet for object referring had much better performance?

By the way, is there any updating on DMN structure, as the latest network like MattNet for object referring had much better performance?

Mattnet and DMN have different natures, while ours is global and agnostic in the sense that we give the model an image and a referral expression and produce a probability map over all the image, Mattnet relies on MRCNN region features, here the objetive is to classify the regions rather than to produce a segmentation.

I had used 2 epoch on low resolution and 10 epoch on high resolution during my training, so I also suspected it might get overfitting

I agree with you on this affirmation. From our experience, too much training time on high resolution induces overfitting

Do you mean that if I training more on low resolution and then less on high one, I could get the model with more powerful generalization ability?

In addition, the latest model like Bert or GPT seems to have powerful feature representation on NLP, I was  wondering  whether DMN could take advantage of some of them.

Do you mean that if I training more on low resolution and then less on high one, I could get the model with more powerful generalization ability?

It is possible that this may happen

In addition, the latest model like Bert or GPT seems to have powerful feature representation on NLP, I was wondering whether DMN could take advantage of some of them.

From my experience using Transformers and BERT, in general, they are not able to surpass classical RNNs on this problem. i.e., They provide almost the same performance

I have tried different ways to train the model with my tracking datasets these days, I found the model has good learning and fitting performance, converged quickly and achieved very high score (over 0.96) on the training sets while very poor performance on other datasets, drop to 0.36. The best weights was from the mixed datasets training with high resolution. 10 low res epochs and 5 high epochs seems not to perform better than more high res training.

@13331112522 Have you tried reducing the total number of parameters by modifying the hidden state, embedding size and the number of filters?

No yet so far.

@13331112522 I am also trying to train on my custom dataset, can you tell me how were you able to train on high resolution as due to model non-parallelizibility and large gpu requirement, I couldn't train over 128x128 resolution?

@Shivanshmundra Try to tune down the para of --workers and --num-workers to 1. Notice training on high resolution need to be based on weights from low resolution as the author mentioned.

@andfoy Is it possible to speed up the process of DMN by replacing the LSTM by CNN?

@13331112522, We didn't tried the inclusion of language-level CNNs, as we used recurrent modules for both language and multimodality. Feel free to try them, however always into account that there's two RNNs that would need to be modified

@andfoy I was not able to reproduce results from referit dataset as mentioned in the paper. Maximum IoU observed was around 32% from pre-trained referit weights. Although, optimizer snapshot wasn't available so we just skipped that part and saw initial results. Can you suggest some pointers where we might bee going wrong. We already using SRU mentioned in README only.
Thanks

Maximum IoU observed was around 32% from pre-trained referit weights

Hi @Shivanshmundra, on which dataset are you trying to reproduce the results?  Also, which resolution are you using?

@andfoy Sorry for the late reply. I was trying on Refer it dataset. The resolution was 256x256.

Also. @andfoy is there anything I can do to make this code parallelizable? Like some changes in architecture or the pipeline in general which won't harm results much?

@andfoy Sorry for the late reply. I was trying on Refer it dataset. The resolution was 256x256.

To replicate the ReferIt results, you should first train on UNC, and then fine tune the weights on the former one.

Also. @andfoy is there anything I can do to make this code parallelizable? Like some changes in architecture or the pipeline in general which won't harm results much?

One of the main issues is related to the Batch Norm on the feature extractor (DPN-92), the dynamic filter computation, which would require a batched multifilter convolution, which it is not available on PyTorch. Also, the sentence length variability is a major factor that prevents DMN from being parallelized, if you could found a way to overcome the aforementioned issues, feel free to share them here

@andfoy I found inference process has been slow, especially for the higher resolution image. I am wondering whether there's solution to speed up the process?

@andfoy I found inference process has been slow, especially for the higher resolution image. I am wondering whether there's solution to speed up the process?

Maybe replacing DPN-92 by a newer and more efficient feature extractor?

@andfoy I have two questions. 1. what is the point of output of low-resolution, I have visualized the low resolution output with low-res training weights, it seems to have nothing to do with the ground-truth mask. 2. I tried to replace the DPN92 with Resnet, but got this when loading the dict:
size mismatch for fc.weight: copying a param with shape torch.Size([1000, 2048]) from checkpoint, the shape in current model is torch.Size([1, 2048]).
size mismatch for fc.bias: copying a param with shape torch.Size([1000]) from checkpoint, the shape in current model is torch.Size([1]).
Thanks!

Try to replace DPN with Resnet50, just find so many points (dimensions) to adjust, any instructions for that.

@13331112522 The drawback of using other feature extractor is that weights are not compatible anymore. To enable its operation, you should modify ResNet to return the full pyramid feature representations and also, update the vis_size from 2688 to 256 channels

what is the point of output of low-resolution, I have visualized the low resolution output with low-res training weights, it seems to have nothing to do with the ground-truth mask.

The low-resolution training phase is done in order to accelerate computation and also to constrain the representation space, which should be more easy to upsample during the high-res phase

@andfoy I have replaced backbone with Resnet50. As you mentioned, I used the pretained weights of resnet50 but change the num-class to 1000 to match with the parameters. I did make some changes for the resnet.py and extract 5 layers from resnet, and update vis_size to 2048. It works well and much faster. Thanks

I was thinking whether we could joint train both low resolution and high resolution simultaneously. The loss could be combined from both losses. Tried but seems it does not work well, easy to get out of memory.

I was thinking whether we could joint train both low resolution and high resolution simultaneously. The loss could be combined from both losses. Tried but seems it does not work well, easy to get out of memory.

Maybe you could reduce any of the num_filters or joint_size at the expense of non-comparability

Is the num_filters equal to the max lens of language query? if I reduce it, does it mean the lens of query have to be reduced?
2.Any ideas or instructions for adapting another kind of language instead of English, I wanna try change it to Chinese.

Thanks a lot.@andfoy.

What's the purpose to set the batch_size to 1? When I replace the backbone, some need to do BatchNorm, which needs more than 1 batch to calculate the mean value. In the end, I have to remove the BN to pass the issue.

What's the purpose to set the batch_size to 1? When I replace the backbone, some need to do BatchNorm, which needs more than 1 batch to calculate the mean value. In the end, I have to remove the BN to pass the issue.

Batch size was originally set to 1 in order to train the model, so we could fit it into memory

I am curious about the metrics of mIoU in the paper, is it max IoU or mean IoU? According to the source code, the output of the evaluation is the maximum IoU but popular method is to calculate the overall IoU, or mean IoU.

In addition, would you plz provide the results with resnet-50 as backbone? I wanna do some comparison study. Very appreciated for your help. @andfoy

I am curious about the metrics of mIoU in the paper, is it max IoU or mean IoU? According to the source code, the output of the evaluation is the maximum IoU but popular method is to calculate the overall IoU, or mean IoU.

@13331112522, sorry for the late reply! By mIoU we refer to the sum of the unions over the sum of the intersections, which is different from the mean IoU, which corresponds to the mean of the unions over the intersections. You should find that while mean IoU penalizes each object equally, mIoU is biased towards large objects.

In addition, would you plz provide the results with resnet-50 as backbone? I wanna do some comparison study. Very appreciated for your help. @andfoy

Sadly, we don't have Resnet-50 weights available, the only way of obtaining them is to retrain the model from scratch


Add NcIdentBeacon and update setPoint property

add implementation for NcIdentBeacon
rename setPoint to gainValue
offer descriptors for intermediate abstract classes (NcObject, NcWorker, NcSignalWorker, NcActuator, NcManager)
update NcReceiverMonitor class identity

Reviewed on the call on the 24th of January 2023


Added not allowed cursor in disable form

as per suggestion in #23460 i have added not allowed cursor.

I agree with @patrickhlauke and also not a fan of the cursor: not-allowed.  I only added it as an issue because the control had it.  In my opinion regardless of which way you go, the control and label should have the same cursor...
Greg

We'll pass on it for now then given @patrickhlauke's comment. Thanks though!

Just adding my experience on this. I did some UX testing with some partially sighted users who used a mixture of screen readers, braille keyboards and screen magnifiers.
I believe it was the users who were using screen magnifiers who gave the feedback that they found the not-allowed image on windows particularly useful as the opacity did not help them to distinguish that something was disabled.

i agree, cursor: not-allowed is useful as UX point of view. Believe me i am also not fan of cursor: not-allowed property.


Bug: 批量添加表单项时设置默认值defaultValue无效

Version
Vben Admin V5
Describe the bug?

Reproduction
从后端获取数据然后循环批量添加表单，defaultValue无论是取后端返回的值还是写死固定值都不生效
System Info
sec-ch-ua: "Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
sec-fetch-dest: empty
sec-fetch-mode: cors
sec-fetch-site: same-origin

Relevant log output
No response
Validations

[X] Read the docs
[X] Ensure the code is up to date. (Some issues have been fixed in the latest version)
[X] I have searched the existing issues and checked that my issue does not duplicate any existing issues.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

defaultValue只有useVbenForm第一次有效。其他情况下，需要动态更新 values 值就可以了


Specify allowable GHC_OPTIONS flags

Specifically a lot of people add -w, and it would be good to prevent that, so configure some way of banning specific flags.

In there using the restriction feature with a custom hlint.yaml.


Integrate openbmap/radiocells databases

Integrate openbmap.org/radiocells.org open source databases

I will consider merging a patch for this if presented, until then I am closing this issue.


sass support??

Great work, but unless I can use my sass mixins, this is a non-starter.
Also do you plan on adding handlebars or jsx?

@paulfalgout CJSS will work, and will work well in Sass.
And yes it should be relatively straightforward to add most templating languages like handlebars, JSX, pug, etc on top. I didn’t because I wanted to keep the initial release as light as possible. Other plugins like adding a Sass compiler, SQL parser, etc are also possible. Note the top level is CSS and parsed by the browser as such. Any Sass complication or language parsing will need to happen inside a CSS property.

Give us SAJSS

@paulfalgout using SASS will be awkward because of limited support for multi line strings, but you should be able to use CJSS code in your server-side-rendered SCSS just fine


steak-stats not updating regularly

Description
A brief description of the question or issue:
Hi, i am using your repo and the code to show my streak stats on my github. it was working perfectly until 22 Dec 2022. Now my stats are not updating

Thank you so Much for your response. Actually i was doing it wrong. Now it is working perfectly. Sorry for Raising Issue for just a simple problem.


[Custom toolbar] Tooltip z-index should be higher

Describe the bug
Toolbar tooltip has a lower z-index
To Reproduce
Implement the custom toolbar feature: https://github.com/ruilisi/fortune-sheet/issues/123
Expected behavior
Proper z-index
Screenshots
See the "Open" tooltip

Additional context
This is used in Pulsars: https://github.com/roniemartinez/pulsars/blob/master/src/App.jsx

@roniemartinez how to svg path at end of the toolbar or middle of the toolbar.
Means path tag of svg

@gudipudipradeep It is not supported. You should open a new issue for that. I think you should ask the maintainers.

@roniemartinez it has been fixed and will be released soon!


add feature gate for nightly and no_std

My goal is to use the VirtAddr and PhysAddr in other crates which are stable. With this PR this should be possible:
[target.'cfg(target_arch = "aarch64")'.dependencies]
aarch64 = { path = "../../rust-aarch64" , default-features = false}

Not 100% sure if this is all correct, as it is difficult to test without an aarch64 machine.

Oh, this is BTW heavily inspired by https://github.com/rust-osdev/x86_64


Remove (subjectively) superfluous colon

If anyone likes it, feel free to close this PR :)

Test failure seems unrelated:
FAILED ../tests/test_datalad_workflows/test_pipeline.py::test_pipeline - datalad.support.exceptions.IncompleteResultsError: Command did not complete successfully. 1 failed:
[{'action': 'get',
  'annexkey': 'MD5E-s4720640--dc6af77bd347c355763255e0d985b325.tar',
  'error_message': 'external special remote error: '
                   "HTTPSConnectionPool(host='data.inm-icf.de', port=443): Max "
                   'retries exceeded with url: /study_1/visit_a_dicom.tar '
                   '(Caused by '
                   "NewConnectionError('<urllib3.connection.HTTPSConnection "
                   'object at 0x7f09425e9e80>: Failed to establish a new '
                   "connection: [Errno 111] Connection refused'))",
  'path': '/tmp/pytest-of-appveyor/pytest-0/test_pipeline0/ds_study_1_visit_a/icf/visit_a_dicom.tar',
  'refds': '/tmp/pytest-of-appveyor/pytest-0/test_pipeline0/ds_study_1_visit_a',
  'status': 'error',
  'type': 'file'}]

I believe these tests are meant to fail. I disabled that part in my #26 to see whether the rest is working


bug when trigger the function in props

Vue version
3.3.4
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-qh2ne5?file=src%2FApp.tsx,package.json
Steps to reproduce
add 1 item then add 1 item then add 1 item then add 1 item
click the first delete-button and then click the first delete-button twice , and go on clicking it ,
you can see that the last item can't be deleted
What is expected?
last item can be deleted
What is actually happening?
the last one can't be deleted because the index in the onDelete function callback is not correct
System Info
No response
Any additional comments?
No response

The index is cached by the closure, which causes the index to still be the original value after deleting the element, resulting in a deletion error.

setup(props) {

    return () => {
    // when deconstructing props, move that into the render function. setup itself only runs once.
      const { item, onDelete } = props;
      return (<div>
        <input
          type="checkbox"

thank  you @LinusBorg


docker-compose最新版本部署seate无法读取到registry.conf

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

Ⅰ. Issue Description
seate的docker-compose.yaml内容如下:
version: "3"
services:
seata-server:
image: seataio/seata-server:latest
container_name: seata-server4tmd
environment:
- SEATA_CONFIG_NAME=file:/root/seata-config/registry
- STORE_MODE=db
volumes:
- ./conf:/root/seata-config
ports:
- "38091:8091"
restart: always
Ⅱ. Describe what happened
If there is an exception, please attach the exception trace:
启动docker后logs会打印出:load Configuration from :Spring Configuration
看2.0源码后发现这条日志在FileConfiguration类中打印,此处应该无法读取到registry这个文件
(前提)已将registry.conf正确映射到docker容器内,进入后能正常cat出内容

Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)

xxx
xxx
xxx

Ⅴ. Anything else we need to know?
Ⅵ. Environment:

JDK version : 11
Seata version:  latest
OS : deepin
Others:

@HydraWu-Spotec If you are using the latest version of server, the configuration file it reads is
https://github.com/seata/seata/blob/develop/server/src/main/resources/application.yml

@HydraWu-Spotec If you are using the latest version of server, the configuration file it reads is
https://github.com/seata/seata/blob/develop/server/src/main/resources/application.yml

所以我需要映射这个application.yml到容器吗

不要使用latest版本，请使用release的版本，之前的部署教程不兼容latest


Extract HTML into view file

Supersedes https://github.com/pxlrbt/filament-environment-indicator/pull/3

Thanks @vlados.


Fuzz wire package with recorded data

Description
This PR closes #1140.

Readiness checklist

[ ] I added tests for new functionality or bugfixes.
[ ] I ran task all, and it passed.
[ ] I added/updated comments for both exported and unexported top-level declarations (functions, types, etc).
[ ] I checked comments rendering with task godocs.
[ ] I ensured that the title is good enough for the changelog.
[ ] (for maintainers only) I set Reviewers (@FerretDB/core), Assignee, Labels, Project and project's Sprint fields.
[ ] I marked all done items in this checklist.

Should these tests be placed in seperate file like here, or I didn't catch something in issue?


poc no work for windows server 2012 r2

I inserted fragment code printk(KERN_ALERT "poc: trig vuln VmsIfrInfoParams_OID_SWITCH_NIC_REQUEST") into the rndis_filter.c (in func rndis_trigger_rndisquery before call rndis_filter_send_request()) for loggining. After execute poc,system no state dos,but dmesg output have string "poc: trig vuln VmsIfrInfoParams_OID_SWITCH_NIC_REQUEST"
I tried poc execute for different package updates:
1)
"windows server 2012 r2 installed updates":[     "KB5001382",     "KB2999226",     "KB2949621",     "KB2939471",     "KB2938772",     "KB2937220",     "KB2919355",     "KB2919442" ]
2)
"windows server 2012 r2 installed updates":[     "KB5000848",     "KB2999226",     "KB2949621",     "KB2939471",     "KB2938772",     "KB2937220",     "KB2919355",     "KB2919442" ]
3)
"windows server 2012 r2 installed updates":[     "KB2999226",     "KB2949621",     "KB2939471",     "KB2938772",     "KB2937220",     "KB2919355",     "KB2919442" ]
4)
"windows server 2012 r2 installed updates":[     "nil" ]
config guest vm hv:
"config":{     "guest hyper-v system":{     "os": ["ubuntu 20.01"]     "type vm": ["2(*supported vmbus and hvcalls*)"]         "network":[            "external virtual network":{                "SR-IOV":True,                "Allow management operation system to share this network adapter":True             }         ]     } }
I took the driver with vmswitch.sys from Windows 2012 r2 server, path: "/ SystemRoot / system32 / drivers / vmswitch.sys" and tried to find symbols
VmsIfrInfoParams_ * using ida. ida did not find symbols
what dependencies and nuances I did not take into account for successful execution poc?

I unfortunately have removed the VMs that I used for this - but based on your description your Windows Server 2012 R2 might be already fixed?
You should open vmswitch.sys in IDA and try to see if you have a path from RndisDevHostHandleSetMessage -> VmsIfrInfoParamsNdisOidRequestBuffer -> VmsIfrInfoParams_OID_SWITCH_NIC_REQUEST; if not it's probably fixed.
Cheers

RndisDevHostHandleSetMessage -> VmsIfrInfoParamsNdisOidRequestBuffer -> VmsIfrInfoParams_OID_SWITCH_NIC_REQUEST already tried the problem in the version, not everywhere there is WPP code in vmswitch, for win20h2 without updates it works

I am not too sure how to help you out at this point as I am also I am not sure I understand the issue you're facing; sorry 🙁
Cheers


Build script rework

Issue 1:
It's easy to accidentally release a new script. This can happen if a script that was previously included in another script is no longer included, or if a new script is added for testing or some other reason.
Fix 1:
This new build logic only publishes a script if one of the following is true:

\docs contains a *.md file matching the script name.
\docs contains a folder with an index.md file in it, where the folder name matches the script name.

Issue 2:
Build.ps1 performs repetitive disk-intensive work, which takes longer than necessary.
Fix 2:
The new logic scans the repo, building a hashtable of dependencies and commit times. These hashtables are then used within Build.ps1 itself, so that we don't have to go back to disk for the same information repeatedly.
Issue 3:
Build.ps1 is very quiet and doesn't give much information about what it's up to.
Fix 3:
The new logic produces a ton of output, including full dependency trees for each script, and the commit time on each of those files. It also calls out unreferenced scripts in the global Shared folder as well as scripts that are both undocumented and unreferenced in other folders.
Issue 4:
It is possible to merge a PR to main which has older timestamps than what is already in main. This causes a new script to release without a version number change, even though the script changed.
Fix 4:
Switch from author time to commit time for version numbers. Then, use the new ValidateMerge.ps1 in the pipeline for PRs to main. If it discovers commit times in the PR that are older than what is already in main, it will instruct the user to rebase, which will update the commit times in the PR. Fixes #1330.

Still troubleshooting a build issue. Do not approve.


Slow performance compared to https://github.com/0xrawsec/golang-evtx

I have a 100MB Security.evtx file and it took less than 20s to dump the data with https://github.com/0xrawsec/golang-evtx,
But evtx_dump.py too much longer and didn't finish in 5minutes (I killed it).

yes, the other project is written in a language that is much more suitable for parsing large amounts of binary data. this python library can parse the files but probably isn't suitable for high performance environments.
i'd probably suggest that new projects pick the following library instead of python-evtx:
https://github.com/omerbenamram/evtx


Schedule a job when Internet goes off!

Here is what I want to do :

Monitor network state in the background.
When the device doesn't have internet.
Trigger a Job.

Currently , there is no possibility to trigger a job when the device goes in "No Internet" state. Any workaround or solutions?

No, there's no workaround in the library, because that isn't its purpose. You still need a broadcast receiver to monitor network changes. Note that you can do this only in code since Android 7.0 (or 7.1, I'm not sure right now). So it's impossible to monitor the network state while your app process is dead.

OK. Thanks for the information.


Refactor Launchers with class methods

Updates the DenLauncher and LocalLauncher classes to use classmethods for up and teardown. This allows for moving more cluster updating logic into the launchers from the OnDemandCluster

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#1345  👈
#1343
#1336
main

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

Join @mkandler and the rest of your teammates on  Graphite

Maybe we consolidate the logic from the other PRs in the stack into this one? There's a bunch of irrelevant code now that has more to do with the old approach of using a separate logs endpoint


Fix video loop on Safari 10 on El Capitan.

Already Safari 9 failed to loop hls videos. While Safari 10 on Sierra
appears to be fixed, Safari 10 on El Capitan still has the
problem. Since there is no obvious way to detect El Capitan/Sierra,
apply the fix to both browser versions.

Coverage remained the same at 99.048% when pulling 51c78eeaec7573155b07f4bd0e85005c89c04ff0 on tf:safari-10-loop into cff261608be5511b47bb671f8b6e48b545357b0c on codevise:master.


HAPI doesn't set an accept header by default

By default, HAPI does't set an accept header by default. Also unless explicitly set, HAPI doesn't set the _format parameter.
As a result requests to a FHIR server by default don't specify an expected/required response format, yet HAPI expects to get application/xml-fhir or application/json-fhir or it will throw a ca.uhn.fhir.rest.client.exceptions.NonFhirResponseException. Some servers (like Ontoserver) will respond with text/html if format is not specified which is useful for naive clients or users pointing a browser at these REST urls.
A client should always specify the format it expects - please change HAPI to always specify the format it is expecting. I've created a ticket against the FHIR specification to add this clarification. http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=8978

I would further this comment in saying that the client should also be tolerant of servers that just respond with application/xml, text/xml, or application/json… all without the ‘-fhir’ or ‘+fhir’ part. Not all servers are going to be able to produce those non-conventional content-types especially with things like proxies and gateways in the middle.
From: dionmcm<EMAIL_ADDRESS>Sent: Wednesday, November 04, 2015 10:41 PM
To: jamesagnew/hapi-fhir
Subject: [hapi-fhir] HAPI doesn't set an accept header by default (#250)
By default, HAPI does't set an accept header by default. Also unless explicitly set, HAPI doesn't set the _format parameter.
As a result requests to a FHIR server by default don't specify an expected/required response format, yet HAPI expects to get application/xml-fhir or application/json-fhir or it will throw a ca.uhn.fhir.rest.client.exceptions.NonFhirResponseException. Some servers (like Ontoserver) will respond with text/html if format is not specified which is useful for naive clients or users pointing a browser at these REST urls.
A client should always specify the format it expects - please change HAPI to always specify the format it is expecting. I've created a ticket against the FHIR specification to add this clarification. http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=8978
—
Reply to this email directly or view it on GitHubhttps://github.com/jamesagnew/hapi-fhir/issues/250.

Hi @dionmcm , @bdenton ,
This issue is actually already fixed- but only in the 1.3-SNAPSHOT build. Someone else discovered it as a part of Argonauts testing about two weeks ago. You can see this in the request headers on a request on our demo site
And yup, we also accept application/xml and application/json and treat them the same way as the equivalent correct FHIR types. That part has been in more or less from the start. Thinking about this, we don't accept the text equivalents text/xml or text/json. I suppose we probably should just to be complete.

Thanks for responding so quickly @jamesagnew, great that it was already spotted and fixed.
@bdenton I agree that clients should probably be lenient and handle application/xml and application/json without the +fhir part.