examples: add cluster resource example for serverless

blocked by https://github.com/scylladb/terraform-provider-scylladbcloud/issues/56

Here's an example for creating a serverless cluster with scylladbcloud_serverless_cluster resource:
https://registry.terraform.io/providers/scylladb/scylladbcloud/latest/docs/resources/serverless_cluster
And here's an example for obtaining a connection bundle file for such cluster:
https://registry.terraform.io/providers/scylladb/scylladbcloud/latest/docs/data-sources/serverless_bundle


Document how to determine the right value to pass for pages argument

Hi there,
Thanks for this awesome crate!  I was wondering if you could document how to find the right value to pass for the pages argument for clear_stack_on_return, clear_stack_on_return_fnonce.

I encountered this issue too when I was trying to zeroize the stack and general purpose registers of a sensitive function, and my thought was to keep the code of the sensitive function tight and concise.
The value of page is directly linked to the maximum stack usage of the closure. I am afraid that it is very awkward to determine the size of page correctly when using static analysis because the original code can be compiled differently based on compiler versions and platforms; therefore the stack layout may vary significantly too. In my opinion, it is better to check the stack usage of a function by its runtime profile, but this could introduce extra labor because we have to run the binary first and then find the precise value for page.
Another way to do this at the source code level may be the inline assembly by which one gets the stack pointer and then estimates the current stack size, which could be imprecise, but this may be the most convenient approach.
fn get_stack_pointer() -> usize {
    let sp: usize;
    unsafe {
        asm!("mov {:r}, rsp", out(reg) x);
    }
    sp
}

I am not sure the following link would help because it only provides a rudimentary solution, and it cannot work with no_std, but I hope it may be enlightening.
https://stackoverflow.com/a/38953349/14875612


[Protocol Change] SPEC change proposal for managed-commits

Which Delta project/connector is this regarding?

[ ] Spark
[ ] Standalone
[ ] Flink
[ ] Kernel
[ ] Other (fill in here)

Description
Adds the proposal for spec change for Managed-Commits (see https://github.com/delta-io/delta/issues/2598) to the RFC folder.
How was this patch tested?
NA
Does this PR introduce any user-facing changes?
NA

Can you update the descriptoin to match the github issue template.


[Feature] add a new move generator to @nx-dotnet/core

Is your feature request related to a problem? Please describe.
.csproj files contain relative paths to any other projects in the repo that they reference
Describe the solution you'd like
These paths are updated during the move generator such that you can move a project from the command line without breaking other projects.
Additional context
dotnet doesn't support any kind of path aliases, so these have to be relative.

Thinking out loud here: the generator would need to do the following.

Move the project's files to the new directory
Update the .csproj of every project that references the moved project.
Update the root/sourceRoot properties project.json/workspace.json of the moved project
Update the path within workspace.json (if using separate project.json files)
Update the .csproj name to match the new directory
Update the namespace of every .cs file in the moved project
Update the usings of every .cs file that references the now-renamed namespaces

Steps 1-4 seem simple enough. Steps 5-7 are much harder, and would normally be accomplished through refactoring tools like Visual Studio or ReSharper.

A minimalist version of the generator could only do steps 1-4 and be "done", later we could enhance it with the refactoring / ast work.
For steps 1-4, you'd just call through to the regular Nx move and then after calling it youd need to handle the csproj name changes

I don't think so, since the regular Nx move generator doesn't. It could be added perhaps, but I'm not sure how I'd design it in terms of schema

Two other things this generator might need to do

Update the solution folder path (when used with a Visual Studio solution)
Update the Nx project name (which currently contains the relative path of the project). For example, moving a project from libs/billing/api to libs/shipping/shared would rename the project from billing-api to shipping-shared.

2 should be done when invoking nrwl/workspace:move, so I wouldn't worry about it. 1 is definitely something we'd need to handle.

So you plan on using @nrwl/workspace:move do some of the heavy lifting? I wasn't sure if we could re-use the logic from that generator.

I'd let it do as much as possible. The only parts we should be doing is updating file contents after the relocation

The existing @nrwl/workspace:move generator crashes when used with an nx-dotnet project.
> Executing task: npx nx generate @nrwl/workspace:move new --projectName=old-common --no-updateImportPath --no-interactive --dry-run <

>  NX  Generating @nrwl/workspace:move

 >  NX   unable to find "@etogy-test/old/common" in tsconfig.base.json compilerOptions.paths

   Pass --verbose to see the stacktrace.

The terminal process "C:\Program Files\Git\bin\bash.exe '-c', 'npx nx generate @nrwl/workspace:move new --projectName=old-common --no-updateImportPath --no-interactive --dry-run'" terminated with exit code: 1.

I tried with and without the --no-updateImportPath flag. If I add the following to tsconfig.base.json, then the generator completes as normal.
"paths": {
  "@etogy-test/old/common": []
}

That's interesting 🤔, on the Nx side we should update that then... I'll add a backlog item, should be a quick change to make it work without tsconfig path

Feel free to deep import the utils that the workspace move generator uses in the meantime

For reference I settled on a simple generator for now that handles some, but not all of this.
Currently the generator:

moves files
renames the nx project
updates any strings in the project configuration that contained the old path (e.g. sourceRoot)
updates any project or solution files that contained a reference to it

Notably, the current implementation does not rename namespaces


Use GitHub Issue/PR Template Feature

Motivation:
GitHub recently added the ability to setup PR and Issue templates https://github.com/blog/2111-issue-and-pull-request-templates. We should take advantage of this feature to ensure Issues / PRs are properly formed.
Modifications:

add a .github directory with a CONTRIBUTING.md, ISSUE_TEMPLATE.md, and PULL_REQUEST_TEMPLATE.md file

Result:
Fixes https://github.com/netty/netty/issues/6074.

@maseev - thanks again for the heads up
@normanmaurer - FYI

build failure is related to setup timeout. I will increase the timeout in another PR.

any followup comments?

@Scottmitch go for it.

4.1 (3539ba6) 4.0 (f342ab4)


GEOMESA-1636 generate separate module for accumulo spark runtime

Create accumulo spark assembly as geomesa-accumulo-spark-runtime-<version>

do we need to update docs?
do we want to shade in the geotools and converter rdd providers?

@tkunicki Yes!  We need to add some documentation to explain that the accumulo-spark-runtime is the One Jar You Need!  @mdzimmerman can you help identify where that should go?
For my money, I'd argue that the GTRDD Provider should be separate (you have to grab it AND your GT datastore(s), so I'm not worried about getting it down to the One Jar).
I am not sure about the converter RDD Provider.  Thoughts?

Do we need license headers in these poms?

@aheyne Nope, no need to put license headers in pom.xml's.

Cool, just wondering since a bunch of ours have it.


Slash before full stop in headings

Issue  -  If there is a dot in headings, then Pandoc is not handling it correctly.
MPE vs. Stackelberg   --------->  is reflected as --------->   MPE vs.~Stackelberg
Solution  (as suggested by Matt)  -  Adding a slash in front of  "."
For example - in .ipynb file
Current -  "MPE vs. Stackelberg"  can be fixed if it can be written as -  "MPE vs\. Stackelberg"  (only for headings)

@AakashGfude does this help with the edge cases we looked at this afternoon re titles?

@mmcky this was handled with the allowing of ascii characters, and adjusting the hyperlink.


type of generic enum

Hi,
I would like to create a master class which will help to display list and avoid repetitive code.
export enum NotificationSorting {
    SortByAction = "SortByAction",
    SortByCreatedAt = "SortByCreatedAt",
    SortByCreatedBy = "SortByCreatedBy",
}

If i do this in my child class, I can see that notificationSorting is typeof NotificationSorting
public notificationSorting = NotificationSorting;

But if i decide to do that in a master class, i have an error:
export abstract class ListComponent<T>
  public sorting = T;

T only refers to a type but it uses as a value.

Is there a way to do that?
Thanks

You want a : and not an = - in the first example, you're setting the notificationSorting member equal to the object containing all the enum members, not declaring it as having a type of the enum.

hi,
i really want to use =, : is completely different. try you will see :).

You want public sorting : T;
Then, instantiate with this,
ListComponent<typeof NotificationSorting>
Because this should work,
const t : typeof NotificationSorting = NotificationSorting;

I’m going to go out on a limb here and guess that he wants to extract the enum as a value from it being passed in as a type parameter.  In which case... I don’t think that’s possible?

Yes this works:

Now try to do that:
export class MyComponent extends MyBaseComponent<SampleSorting>{

}

export abstract class MyBaseComponent<T>{

  public t = T;
}

And you will have:
it could be nice to have:
export abstract class MyBaseComponent<T extends enum>{ }
But this is not possible ...
So, I m looking for an alternative way to do it.
Do you have an idea?

Yeah, you can't "extract" the value from the type like that.
That would require something akin to reflection.


Update knuth-morris-pratt using ES6

Description:
Current Behavior:
The current implementation of the Knuth-Morris-Pratt (KMP) algorithm is written in a mix of ES5 and older JavaScript syntax. It consists of a function that efficiently searches for the position of the first occurrence of a specified value in a string.
Proposed Changes:
I propose updating the code to use ES6 features and syntax. This includes leveraging arrow functions, template literals, and other modern JavaScript constructs to enhance readability and maintainability.
Benefits:

Improved code readability and maintainability due to the use of modern JavaScript syntax.
Potential performance enhancements through optimized ES6 constructs.

Additional Information:
The updated code will maintain the functionality of the KMP algorithm while utilizing ES6 features to enhance its codebase. This update aims to align the algorithm with modern JavaScript practices.

@amansaurabh please assign the issue to me.I have written the code in es6.


assignment_2.ipynb

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
added some code
What did you learn from the changes you have made?
linear regression concept
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
n/a
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
n/a
How were these changes tested?
n/a
A reference to a related issue in your repository (if applicable)
n/a
Checklist

[x] I can confirm that my changes are working as intended

A2: Incomplete
Q1 Part(ii) More specifically what variable tyoe is float64 (e.g., 'integer', 'category', etc.) ?
Q1 part (iii) .nlargest () will allow you to select the n largest number of a certain column of interest
Q2 part (i) can you comment on each of the plots and whether they have a positive, negative or no association ?
Q2 part (ii) More specifically represents the line of best fit. This minimizes the squared distance between the observations and the fitted line
Q4 I would suggest using the session material to help you find the right code. I would look to utilize mean_squared_error

A2: Incomplete
Q1 Part(ii) More specifically what variable tyoe is float64 (e.g., 'integer', 'category', etc.) ? Q1 part (iii) .nlargest () will allow you to select the n largest number of a certain column of interest Q2 part (i) can you comment on each of the plots and whether they have a positive, negative or no association ? Q2 part (ii) More specifically represents the line of best fit. This minimizes the squared distance between the observations and the fitted line Q4 I would suggest using the session material to help you find the right code. I would look to utilize mean_squared_error

Hello,
Done.
Thanks a lot!
sorry for inconvenience.

A2: Complete
Great work making the changes noted above


Extra markers text style

Hi @farhoudshapouran Thanks for the great library.
I have a query regarding highlight text props for extraMarkers, how do I also change the text style like for the below code, I also change the text color from black to white.
const extraMarkers = new Highlight({     keywords: ['user interface', 'highlight'],     style: { backgroundColor: '#F7DB6A' },   });

Hi @deepakkumardk you can use it like this:
const extraMarkers = new Highlight({      keywords: ['user interface', 'highlight'],      style: { backgroundColor: '#F7DB6A', color: '#FFFFFF' }, });


feat: added Opai logo

fix: corrected Osedea URL
feat: added Opai logo

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


On highlight/select text - cannot unhighlight/deselect text on click - need to do ESC

VSCode Version: Code 1.13.0 (376c52b955428d205459bea6619fc161fc8faacf, 2017-06-08T16:43:13.058Z)
OS Version: Windows_NT ia32 6.1.7601
Extensions:

Extension
Author
Version

git-easy
bibhasdn
1.9.1

file-icons
file-icons
1.0.3

auto-close-tag
formulahendry
0.4.2

auto-rename-tag
formulahendry
0.0.12

minify
HookyQR
0.3.0

Angular2
johnpapa
2.3.2

vscode-github
KnisterPeter
0.16.2

vs-deploy
mkloubert
9.25.0

prettify-json
mohsen1
0.0.3

debugger-for-chrome
msjsdiag
3.1.3

vscode-run-git-difftool
narekmal
0.0.4

gitblame
waderyan
1.11.2

bootstrap-3-snippets
wcwhitehead
0.0.9

Steps to Reproduce:

Open a file
Click Ctrl+A
Click anywhere - highlight still stays and can't do anything else

@redapplewithleaves Do you any kind of codelens on your file?
I can repro this only when clicking on the line occupied by the codelens
Clicking anywhere else removes the selection.

I haven't used code lens. Not quite sure its on...
Here is a screencast -> Each time the cursor change, I'm clicking on the the mouse. It takes about 7 or 8 times to clear the select.

@redapplewithleaves Can you share your settings?

@redapplewithleaves could you please try disable drag and drop in the editor by setting editor.dragAndDrop to false and see if it happens still? Our mouse target detecting seems not smart enough.

@rebornix   editor.dragAndDrop: false did the trick.
Thank you so much!
This is my overwrite for default settings:

// Place your settings in this file to overwrite the default settings
{
"typescript.tsdk": "node_modules/typescript/lib",
"workbench.iconTheme": "file-icons",
"window.zoomLevel": -1,
"editor.dragAndDrop": false
}

This appears to be happening on Mac as well:

VSCode Version: Code 1.13.0 (376c52b, 2017-06-08T16:34:53.678Z)
OS Version: Darwin x64 16.6.0

Same problem

VSCode 1.13.1
MacOS Sierra 10.12.5

editor.dragAndDrop: false fixed it for me too

Same here, same solution on Linux (ubuntu 16.04)

VSCode Version: Code 1.13.1 (379d2efb5539b09112c793d3d9a413017d736f89, 2017-06-14T18:18:03.540Z)
OS Version: Linux x64 4.4.0-83-generic
Extensions:

Extension
Author
Version

matlab
Gimly81
0.5.0

latex-workshop
James-Yu
2.9.1

python
donjayamanne
0.6.7

code-spell-checker
streetsidesoftware
1.2.1

i am having same issue on multiple OS!!!!

Windows 10
Windows 7
Ubuntu 14.04
Ubuntu 16.04 with Budgie Desktop (Ubuntu budgie-remix)

Same issue. Same solution.

Hi all, sorry for coming back to it too late, and thank you for your patience. I've tried hard to reproduce this issue but failed. I tested with latest Stable/Insider on three different platforms
1.18.1 on Ubuntu 16.04

1.19-insiders on macOS High Sierra

1.18.1 on Windows 10

I tried to drag and drop then click, select all then click, drag and hold then click, click on selection, click on end of line (which is not on selection but on selected lines), etc but can't reproduce. I have a feeling it might be a problem with Chromium where the drag/drop/click event sequence is not guaranteed but it's just my wild guess. Can anyone help me with troubleshooting by

Update to latest version (I suppose most of you already did)
Some gif like @redapplewithleaves did
Provide specific platform/version info
Launch without extensions
Not too complicated user setting

I may ask for too much but appreciate any help from you.

As far as I can tell, it's no longer an issue in the latest stable version: 1.18.1 (MacOS)

in version 1.18.1 (Windows 10)

Screen 1:

select, drag and drop, right click, then click. takes two clicks to deselect if right click occurs first.

2. select, drag and drop, click. deselect as expected without much lag(granted i am on extremely highend ~$2000 laptop)
you can see in both screen caps, when drag and drop css with a color box, the color box is left behind. very ugly.

I'm using Ubuntu 16.04.3 LTS 64-bit and VSCode 1.18.1. I've removed all my user settings and started VSCode with --disable-extensions. The bug still occurs:

First I try single clicks on selected lines. Then I click on an unselected line which deselects the text. The 2nd time I do a fast double click on a selected line which also deselects the text successfully.
I've added event listeners too but could witness anything unusual except that a normal speed double click triggers the dblclick event but doesn't trigger a deselect. To deselect I have to double click even faster. Seems like it's handled in VSCode.

It would be useful to decrease drag sensitivity (or increase distance moved before a click is detected as a drag, however you wish to phrase it). Right now, if I click inside a selection with a 0px move, it's a click and deselects the selection. However, if I move horizontally or vertically by even 1 pixel (which it would appear my standard click on my magic mouse tends to do) it's a drag so no deselection happens.

In fact I have a feeling my mouse isn't even moving by 1 pixel (though I still think changing the drag distance will be useful for people), I have a gif here of me selecting and click within the selection (and to the right of but 'within' the selection) and I can't see the cursor move. However, every time it doesn't deselect, the cursor turns from a text caret to a normal arrow (which is indicative of a drag, among other thing admittedly), so I still think that somehow it's going into "drag mode", albeit not necessarily due to the cursor having moved.

💯 i agree that would be useful. this is an extremely annoying problem
On Mar 1, 2018 6:16 AM, Alex Russell<EMAIL_ADDRESS>wrote:
It would be useful to decrease drag sensitivity (or increase distance moved before a click is detected as a drag, however you wish to phrase it). Right now, if I click inside a selection with a 0px move, it's a click and deselects the selection. However, if I move horizontally or vertically by even 1 pixel (which it would appear my standard click on my magic mouse tends to do) it's a drag so no deselection happens.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscode/issues/28636#issuecomment-369573769, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AERo_VJ72Hjk30Qt4mhhIL5ggiw_l7cQks5tZ-ahgaJpZM4N4tw_.

alexrussell is correct, the issue here is with drag sensitivity. I just tested this and if I am very careful to not move the mouse, deselect works. If I work normally though, my mouse usually moves a tiny bit and so drag and drop is activated rather than the desired result of deselecting.

bug still occuring for me on latest build as well. i thought it had been fixed, but i was mistaken. they just got a little bit better at making it not happen, but it still happens.

@timdmackey Yeah I think specifically it's the use of a magic mouse. Because the whole mouse clicks when you click, it appears to be easier to accidentally "move" it in the process (especially if you have your general mouse moving sensitivity turned up like I do).
I see similar issues with Firefox (click on a <select> element and a fair amount of the time it "selects" the value and closes straight away, because I moved 1 pixel and am now in drag-to-select-an-option mode, or right click to bring up context menu and accidentally go back in the page for the same reason). I don't use Sublime but I also see people in the office have issues with deselecting a selection (this exact issue), and it's quite possible it's the same thing - any amount of movement = drag.
But yeah, the magic mouse/drag thing is really just anecdotal. I can't say with certainty this is the culprit.

@alexrussell I also use a Magic Mouse, so I tried using a regular logitech mouse and was able to replicate the issue with that mouse too. If I'm working really quickly I tend to move my mouse a bit sometimes when I click, which causes the drag and drop to activate.
I think the drag and drop activation just needs to have a couple pixels of movement allowance before it activates.
I ended up disabling drag and drop in my settings because I don't like using the feature anyways.

@timdmackey yeah I guess it's not just a Magic Mouse that'll have the issue, but is certainly seems worse on a Magic Mouse than a touchpad for example. but, as I say, it's pretty anecdotal and definitely not mouse specific.

Would appreciate this getting fixed, sacrificing drag'n'drop to fix this is not that great of a solution.
This happens even with 1 line/block being fully selected, not just when the entire file is, which makes it that much more annoying.

Why would you not want to deselect something when clicking inside the selection? This seems nothing to do with a bug but by some bizarre UX decision? It still exists in 1.25.

I personally have only had this issue with a Magic Mouse so far. I'll update if it happens with my Razer mouse.

Happens to me on a Windows 7 machine with some generic windows mouse, almost never unselects when clicking in a selected area really annoying.

To echo what @garrettw  said, on MacOS I've seen this behavior with the Magic Mouse and Track Pad, but not with the Mighty Mouse.

setting "editor.dragAndDrop": false "fixed" the issue for me. I agree with what was said above about decreasing the sensitivity of editor drag and drop as a more permanent fix. It seems the mouse moving ever-so-slightly causes the drag and drop functionality to be triggered.
I was seeing this behavior on MacOS with my Magic Mouse and built in trackpad. I was not seeing this behavior with my Mighty Mouse.

I don't think it's because of sensitivity of drag n drop.
Even when the mouse is not moving AT ALL, the text still doesn't get deselected.
For now, what I do is: (without using "editor.dragAndDrop": false)

press Esc key to deselect
click at lines where text not selected (except case when whole document is highlighted)

Yes but are you 100% the cursor doesn't move even one pixel? Because this happens for me when using the magic mouse a lot more than the trackpad (I haven't tried a "traditional" mouse as I don't have one) I feel that it's that my cursor is moving an undetectable (by eye) amount when the click happens, which makes Code think it's a drag.
I imagine setting drag sensitivity to even 2 pixels would fix this. But I unfortunately can't prove this.

The drag event was sent out when the mouse moves without releasing, but we didn't throttle or had any sensitivity adjustment. Sounds like that's what we should do, especially for Magic Mouse or any pointer device which is more likely to move a little bit when we click (it's hard to click without any movement at all by using fingers IMO).
One thing I'm not sure about if that would lead to any problem once we decrease the sensitivity, like if users fail to drag and drop anymore (for example, drag a single character which is probably single digit pixels.)

I wonder if waiting for just 2 or 3 pixels of movement before starting the drag action would be sufficient.

Or delaying the drag and drop event only if the mouse has been held down > 100ms?

I'm glad to now I'm not crazy...
Just to add my $0.02 to the conversation, if you set the trackpad to tap-to-click and put the mouse pointer over the middle of a block of selected text and tap... it always delects... I have a Magic Mouse and it pretty much never works, even if I move my hand off the mouse and just activate the click with my fingertip. I can 99% guarantee you that the mouse itself did not move. I wonder if the mechanical click in the microswitch is enough to jostle the laser enough to give a false motion signal?

This is 100% not a solution to the issue, but as a suggestion to work out whether it's what you say, try turning the mouse upside down so the laser isn't doing its job and then click with your nail (so the swipe-scrolling mechanism has a minimal change of kicking in).
When I do that, it deselects 100% of the time, so I maintain that the magic mouse is just prone to a 1px (and apparently visually undetectable) movement during a click much of the time as we're all starting to agree.
And just going back to my earlier point, I know it's not exactly Code's place to fix the issues with certain mice, but I can't see not detecting a drag until the mouse has moved at least 2 pixels as being a thing that'd break anything.

FWIW I'm using a Logitech 403 mouse. I can say with almost 100% certainty it is the inadvertant moving of the mouse at least 1px whilst clicking that causes this issue.

I use an external trackpad on OS X and use Emacs navigation in the editor pane. Until the latest update the editor.dragAndDrop fix worked for me. Now the problem is back. Whenever I use keyboard navigation the cursor selects every character I navigate past. Obviously this isn't really a dragging issue since the trackpad doesn't move during keyboard navigation.

This error still happening on 2022 Windows 11  22000.556 with latest VScode version 1.65.2, on same computer I tried install VSCode on HyperV machine and all working fine.
So I think because of old setting, tried Complete Uninstall, delete %AppData%\Code, .vscode,...restart computer then install again. VScode now complete new install but still not working, and dont know what is reason.
So final I go with setting editor.dragAndDrop to false and forgot about it. Hope it save time of someone want to try re-install solution.


fix(curriculum): mention browser console

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #55848

Hi @renoseHarsh. Congrats on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 📝


zfsUnstable: 2.0.0-rc5 -> 2.0.0-rc6

Motivation for this change
https://github.com/openzfs/zfs/releases/tag/zfs-2.0.0-rc6
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg test zfs.unstable


VOC12

Hi Subhabrata,
Thanks for this wonderful work. Are you planning to update your repo adding the full support for VOC12 dataset? Some parts have the possibility to configure it(for COCO), some others not(VOC), i.e. get_dataset().
Thanks

Thank you for your interest. The code is generalized and supports both the datasets. Please use run_pascal.sh - it's configured to run all the experiments on voc12.

@subhc These is no code for loading the voc images, so could you please upload this part of code?


flutter_web flutter create . error

@xiebanglong Please don't post code/logs in the form of screenshots, it prevents them from being copied.
Why would you want to create a project in the same folder? Please try to do it flutter create <projectname> so it will be created in the specified folder.

because i want use flutter_web, so i use flutter create . ,but I didn't succeed

@xiebanglong Please don't post code/logs in the form of screenshots, it prevents them from being copied.
Why would you want to create a project in the same folder? Please try to do it flutter create <projectname> so it will be created in the specified folder.

because i want use flutter_web, so i use flutter create . ,but I didn't succeed

If you created your flutter app with an --org, you need to use that some org to add web support

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of ' flutter doctor -v'  please.
All system setups can be slightly different so its always better to open new issues and reference related issues.


Select-tag displays an empty item list for hidden tags

Newsboat version (copy the output of newsboat -v or the first line of git show):
newsboat 2.18.0 - https://newsboat.org/
Copyright (C) 2006-2015 Andreas Krennmair
Copyright (C) 2015-2019 Alexander Batischev
Copyright (C) 2006-2017 Newsbeuter contributors
Copyright (C) 2017-2019 Newsboat contributors

Newsboat is free software licensed under the MIT License. (Type `newsboat -vv' to see the full text.)
It bundles JSON for Modern C++ library, licensed under the MIT License: https://github.com/nlohmann/json

newsboat 2.18.0
System: Darwin 19.0.0 (x86_64)
Compiler: g++ 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1<IP_ADDRESS>)
ncurses: ncurses 5.7.20081102 (compiled with 5.7)
libcurl: libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.39.2 (compiled with 7.64.1)
SQLite: 3.28.0 (compiled with 3.28.0)
libxml2: compiled with 2.9.4

Config file (copy from ~/.newsboat/config or ~/.config/newsboat/config):
#auto-reload yes
external-url-viewer "urlview"

bind-key j down
bind-key k up
bind-key j next articlelist
bind-key k prev articlelist
bind-key J next-feed articlelist
bind-key K prev-feed articlelist
bind-key G end
bind-key g home
bind-key d pagedown
bind-key u pageup

bind-key U show-urls

browser linkhandler
macro . open-in-browser
macro y set browser "youtube-dl"; open-in-browser ; set browser linkhandler
macro s set browser "open -a mpv"; open-in-browser ; set browser linkhandler

Steps to reproduce the issue:

Add a new source with a hidden tag to the urls file, e.g. https://rss.orf.at/news.xml !sometag

Reload newsboat

Press t and select the hidden tag e.g. !sometag

newsboat will display an empty page. Headline: newsboat 2.18.0 - Your feeds (0 unread, 0 total) - tag '!sometag'.

I guess the tag-selection works more like a "filter" of shown content (from that perspective it would make sense not to display previously hidden items) but my intuition for this case would be different: the hidden posts of that tags should become visible when ever that tag is selected.
I guess this also comes from the ambiguous wording (set-tag, select-tag, etc.)
The "lazy" option would be to exclude hidden tags from the select-tags menu as well. But I would very much prefer being able to select hidden tags as it would give much more flexibility.
Other info you think is relevant:
I am not familiar with the codebase or anything, but I have a hunch that this might be related to #33 because in both cases posts from hidden tags are not displayed when they should be.
Cheers & a happy new year :)

Hi! Yeah, this problem exists since Newsbeuter days (https://github.com/akrennmair/newsbeuter/issues/538). That repo is archived now, so let's keep this issue open as a stand-in for further discussion.
I actually think that hiding and tagging were lumped together for no good reason: https://github.com/newsboat/newsboat/issues/500 Still need to figure out how exactly the new design should work.


Lumen support

Hi!
Would it be possible to have support for the Lumen framework?
Currently, it is possible to require this package in a Lumen project.
The problem is, it requires the entire laravel/framework as a dependency. This breaks composer if some illuminate/* package is also required.
For example, i required illuminate/mail to have mailing functionality in my project.
If i then try to install this package, sometimes composer breaks up, other times it lets me install it.
But even the few times it installs, other things break. An example:
PHP Fatal error:  Uncaught ReflectionException: Class path.storage does not exist in A:\projects\_tmp\lumen\vendor\laravel\framework\src\Illuminate\Container\Container.php:805
Stack trace:
#0 A:\projects\_tmp\lumen\vendor\laravel\framework\src\Illuminate\Container\Container.php(805): ReflectionClass->__construct('path.storage')
#1 A:\projects\_tmp\lumen\vendor\laravel\framework\src\Illuminate\Container\Container.php(687): Illuminate\Container\Container->build('path.storage')
#2 A:\projects\_tmp\lumen\vendor\laravel\framework\src\Illuminate\Container\Container.php(633): Illuminate\Container\Container->resolve('path.storage', Array)
#3 A:\projects\_tmp\lumen\vendor\laravel\lumen-framework\src\Application.php(267): Illuminate\Container\Container->make('path.storage', Array)
#4 A:\projects\_tmp\lumen\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(119): Laravel\Lumen\Application->make('path.storage', Array)
#5 A:\projects\_tmp\lumen\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php(832): app('path.stora in A:\projects\_tmp\lumen\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 807

Fatal error: Uncaught ReflectionException: Class path.storage does not exist in A:\projects\_tmp\lumen\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 807

Illuminate\Contracts\Container\BindingResolutionException: Target class [path.storage] does not exist. in A:\projects\_tmp\lumen\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 807

...

It seems like this mess happens whenever a package has the entire Laravel framework as a dependency: laravel/lumen-framework/issues/870#issuecomment-516780947 (see also laravel/lumen-framework#798 , laravel/lumen-framework#504).
So, i'm asking if it would be possible to include just the bare necessary illuminate, symfony, ecc submodules instead of the entire framework, so that it would work even with Lumen.
As an example, check out flipbox/lumen-generator's requires.

Thank you for your time,
Have a nice day

It makes very little sense to me why you would want to generate views in Lumen, seeing as it's a microframework intended to be used for making APIs. I think it would be hard to justify the effort (+ maintenance burden) to support something that's not useful in my mind.
If you really wanted this (or similar) functionality in Lumen, you're better off writing a custom artisan command and doing it in there to be honest 🤷

Hi, thanks for your reply.
I didn't think i would need views in Lumen until today, when i discovered that the Lumen façade Mail is the same as Laravel's, and this means generating (Illuminate\Mail\)Mailable objects via artisan make:mail. These Mailables use blade templates as body for the emails to send.
Quoting from here:

The Lumen mail drivers utilize the same code as the Laravel mail drivers. Beyond configuration, there are no differences between sending mail in Lumen and sending mail in Laravel; therefore, please consult the full Laravel documentation for usage examples.

And both the ->view() and ->text() methods for setting the email body require a path.to.a.blade.view (ref here).
If it's too cumbersome to adapt the code for Lumen, nevermind, don't worry. I fully understand.
Have a nice day/evening

Hmm that's fair, I didn't think about mails! Honestly I still think the usecase is a bit too narrow. Lumen is kind of neglected in the ecosystem already (I do realize I'm contributing to that neglicence by not adding support 😅 ), so I wonder how big an impact it would have to add Lumen support here.
I would consider a PR that adds support for Lumen though, so feel free if you want!

Closing this issue now, feel free to re-open or open a new one if it's still something you're interested in.


⚠ Samsung has degraded performance

In 687c535, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2818 ms

Resolved: Samsung performance has improved in dbf0baa.


Test clean up

This is a simple pull request that removes some old un-used stuff.
First and foremost it removes all the tests for the old data structures. It seems pretty clear that the new data structures are much better and they already have full test coverage, so there really is no reason to keep them around, and I was getting annoyed with all those XFAIL in the test output.
The second removal is the old hand written test execution script that I wrote before learning about pytest and likes. This has not been used in ages and should be thrown out.
Let me know what you think.
Regards Kenneth

+1

I'll assume that a single +1 in 3 days is enough for this simple cleanup and merge. If anyone disagrees just shout out.


Drag And Drop Task Workspace

It will be a workspace/dashboard for users to create various to-dos and move them from one list to another with drag and drop.
Could you assign this to me?

Hey @yagyesh-bobde , can you please give rough figma image of your work.


tests: add GVNIC and VIRTIO_SCSI_MULTIQUEUE to GCP tests

What this PR does / why we need it:
Add GVNIC and SCSI_MULTIQUEUE guestOS features to platform tests.
see #2002 + fixed typo type should be type_, see https://cloud.google.com/python/docs/reference/compute/latest/google.cloud.compute_v1.types.GuestOsFeature
Special notes for your reviewer:
Once this is merged and had a successful run, consider merging https://github.com/gardenlinux/glci/pull/50.
Release note:

Adds `GVNIC` and `VIRTIO_SCSI_MULTIQUEUE` guestOsFeatures to images for GCP platform tests.

Tested with a local run of a GCP platform test:

Ready to be reviewed and merged.


forge viewer empty  is duplicated

since we will empty forge viewer when loadViewer, this line is duplicated, and will cause error on console:
https://github.com/augustogoncalves/data.management-csharp-bim360.issues/blob/master/bim360issues/wwwroot/js/ForgeTree.js#L133

fixed on PR #4


Include cleaning tasks when checking for SEPARATE placement

Allows us to do a bounce without having the cleaning and starting tasks on the same host

Hmm, this change also makes them affect rack placements, which doesn't seem right.

It also changes the counting mechanism.
Also, any change like this should include specific tests showing the functionality we've added now works as designed, and that other functionality we specifically decided not to change works as designed.

@wsorenson updated so that it should not impact rack sensitive or OPTIMISTIC placement

@tpetr
Want you opinion on this. This SEPARATE placement currently wasn't working for a new deploy because we are only checking against tasks from the same deploy (which is why it worked fine for a bounce). I've altered the code at the moment to check against all tasks for the request and additionally keep track of other deploys still on the same machine (only taking it into account for separate placement).
Do you think that warrants another slave placement category or do you think separate should work this way and imply that essentially no two tasks will ever come in contact? I bring that up because you would then need a count of slaves double your instances to deploy (granted it is that way now with bounces)

:+1: we will totally use this feature
Another option, if we do not want different SEPARATE_BY_REQUEST vs SEPARATE_BY_DEPLOY, would be a different configuration option placementConsidersTasksFromAllDeploys or the like.  Then you could have both flavors for SEPARATE as well as both flavors for OPTIMISTIC.

We would want to be able to use SEPARATE_BY_REQUEST and SEPARATE_BY_DEPLOY side by side for our puposes. I'm happy to add the other flavor for OPTIMISTIC, but I think I'd lean towards having everything available per request rather than a more global config setting.

FWIW, adding a new Enum value to the task placement breaks old SingularityClient versions:
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of com.hubspot.singularity.SlavePlacement from String value 'SEPARATE_BY_REQUEST': value not one of declared Enum instance names: [SEPARATE, OPTIMISTIC, GREEDY]
at [Source: org.jboss.netty.buffer.ChannelBufferInputStream@17f2b076; line: 1, column: 77424] (through reference chain: java.util.ArrayList[21])

This may be unavoidable -- but we may wish to improve the client by having the placement type fail deserialization gracefully.  Maybe making it an Optional<SlavePlacement> in case we don't know the placement strategy?

Any idea of whether this PR will move forward?  We have been trying it out with success locally, but I'm worried to commit to it too much until it hits master.

@tpetr this has been running fine for us in hs_stable, any problem merging to master?

@stevenschlansker Would you have a use for adding BY_REQUEST/BY_DEPLOY for OPTIMISTIC placement as well? It would be easy to implement, I just couldn't think of a use case for it at the time since it's just a slightly more picky optimistic placement.
As for the enum piece, the field should already be an Optional<SlavePlacement>, falling back to the default placement strategy from the SingularityConfiguration if it isn't set.
/cc @tpetr

Not really -- the only time we use this is if the instances actually cannot co-exist (need a 1-per-machine resource, for example) and as such OPTIMISTIC isn't helpful anyway.
Re: enum, I think it is inappropriate to default the client; I think it is more appropriate to have an "I don't know" response, rather than silently substituting an incorrect default.


Please add proguard rules

For today i wrote only one dontwarn rule for release build
-dontwarn durdinapps.rxfirebase2.**

I added a proguard rules in the latest release, after research. You doesnt need any kind of obfuscation unless you are using FirebaseDatabase, in which case you should add :
-keepattributes Signature
Gson uses generic type information stored in a class file when working with fields, and Firebase use it by default. Anyway, the rest of the library doesnt need to be obfuscate.
If you wanna avoid warns, I suggest the users to add the same line that you added in your code(There is no point to avoid the warning of all the library, or it will not be able to detect a problem in a future).


Add parallel pod management

Part of #491 (Prometheus only)

cc @brancz @julianvmodesto

I haven't yet verified this works for us. (Though since all the tests pass, and this is a strongly typed api, I don't see why it wouldn't..)
I'm hoping the existing integration tests will validate this for me :p

@coreosbot test this please.
Thanks for taking care of this!
I think we're actually ok with just doing this by default and removing all the version compatibility checks, as starting with v0.12.0 we only supported v1.7.0+, and the PodManagementPolicy feature was introduced with 1.7.0.

@brancz Ah, ok. Shall I take care of removing the StatefulSetUpdatesAvailable flag too then? :)

Shall I take care of removing the StatefulSetUpdatesAvailable flag too then? :)

That would be great if you're already at it :)

Didn't realise 1.6 support had been dropped

We mentioned it in the release notes, but it wasn't visible enough and multiple people didn't realize it, so we also added a header to all docs pointing this out (unfortunately this header has not landed on coreos.com yet, but is on all docs in the repo).

Done in #666
This PR is now very simple :)

As mentioned in my last comment on #666, this will need a rebase so we can run the tests successfully again. Thanks!

@brancz done :)

Wow, thanks for the quick action!
@coreosbot test this please.

It seems, that with the Alertmanager we can't quite do the parallel strategy yet.
Excerpt from the logs:
--- FAIL: TestMeshInitialization (27.36s)
	alertmanager_test.go:152: timed out waiting for the condition
--- PASS: TestAlertmanagerVersionMigration (23.62s)
--- PASS: TestExposingPrometheusWithKubernetesAPI (6.31s)
2017/10/05 11:49:24 Expected Targets: []string{"http://<IP_ADDRESS>:9090/metrics"}
--- PASS: TestPrometheusDiscoverTargetPort (12.98s)
2017/10/05 11:49:32 retrieving stateful set failed: statefulsets.apps "prometheus-test" not found
2017/10/05 11:49:34 retrieving stateful set failed: statefulsets.apps "prometheus-test" not found
--- PASS: TestAlertmanagerScaling (41.81s)
2017/10/05 11:49:36 retrieving stateful set failed: statefulsets.apps "prometheus-test" not found
--- FAIL: TestAlertmanagerZeroDowntimeRollingDeployment (86.47s)
	alertmanager_test.go:394: One notification expected, but 2 received.

		Alertmanager Notification Payload Received
		Alertmanager Notification Payload Received

Let's revert to the default strategy for Alertmanager clusters for now and just use it for the Prometheus clusters.

@brancz Sure, done :)

@coreosbot test this please

Thanks a lot for the contributions!


Add brain.fm

Please add brain.fm into the list.
Thanks

@marekdedic this repository is not maintained anymore. We keep the fork alive on https://github.com/jdm-contrib/jdm

Hi, @tupaschoal, yeah, but the webpage still runs from this repo, right?

If you mean https://backgroundchecks.org/justdeleteme/ yes, it reads from this repo, but then, they haven't pushed any change since 2017.
If you meant https://justdeleteme.xyz/ then it's read from the fork I mentioned and it's been constantly updated.


Fix warnings in MSVC

A pass to fix warnings in raygui.
One big signed/unsigned thing, and a switch without any cases.
For the unsigned signed issue, I made the global be signed because it's compared signed values.
For the switch, I added in some cases from a comment that just fall through and moved the comment into the case, so at least it'll be easy to add special handling for those cases if/when the time comes, and it gets rid of the warning.

@JeffM2501 thanks for the review!


building the initial bundle

fix #1
feedback highly welcome @sagikazarmark @egeloen
my idea is to get this running when i return from holidays in 2 weeks and then contribute the bundle to the php-http organization. then we can work on porting more features from ivory into the new structure.

:+1: Added a "few" comments, mainly about standards.

thanks. i will clean that up, but won't get to it before my holidays.
will do in 2 weeks.

No problem. I will try to prepare the terminology PR until then so you can also review it before merging. (BTW, if you can quickly review the exception branch before going on holiday, I would be very thankful).
Enjoy your holiday. :sunglasses:


Hide user searches from websites?

Google (by default?) and DuckDuckGo (optionally?) seem to do this with a redirect.
Should we do this by default as well? (At the moment we don't have any way of storing user settings.)
My own opinion is that it breaks the web a little bit, and if users are particularly worried about that they can install browser extensions to hide referrers completely. Open for debate!

It seems that adding <meta name="referrer" content="origin"> may be a solution: https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-state-origin

The Referrer Policy looks like a good solution to me. It seems to be supported in the "important" browsers: http://caniuse.com/#feat=referrer-policy

I think it's important to default not showing search terms to the destination. That's what the overwhelming majority of search clicks are like today. Referer policy is a way to do that. Isn't that what DDG is currently doing? I'm not sure if that can ever leak, although of course less popular browsers may not have it implemented.

Yes, DDG is doing that. Users with older browsers will have much more serious privacy issues than this one anyway so adding the tag should be enough indeed!


Updating a specific list item by key rather than whole list rerender

Lets say i have a vec of data i want to render and each item has it's own unique key:
Item{key:"k0", data: item.clone()}
Item{key:"k1", data: item.clone()}
Item{key:"k2", data: item.clone()}

The Item component:
fn Item(cx:Scope) -> Element {
    cx.render(rsx!(
        div{id:"d0","value0"}
        div{id:"d1","value1"}
        div{id:"d2","value2"}
        div{id:"d3","value3"}
        div{id:"d4","value4"}
    ))
}

The whole list is not updating a lot, except of one field.
Now i want to update this one field inside Itemdiv#d0, which is updated very frequently.
How would i do it without rerendering whole list? Is there a 'legal' way?
P.S.: Updates come from the very root

Note: In this code the Item component will never rerun because it is always memorized and if it did rerun it would just be a pointer comparison because all of the data is static:
fn Item(cx:Scope) -> Element {
    cx.render(rsx!(
        div{id:"d0","value0"}
        div{id:"d1","value1"}
        div{id:"d2","value2"}
        div{id:"d3","value3"}
        div{id:"d4","value4"}
    ))
}

I assume you are talking about a component more similar to this with props and something dynamic happening, so that is what I will be talking about bellow
fn Item(cx:Scope<ItemProps>) -> Element {
    cx.render(rsx!(
        (0..cx.props.count).map(|i| rsx! { div { id: "d{i}", "value{d}" } } )
    ))
}

If updates come from the root there are a few different ways you can make this preformant:

Make data implement PartialEq and avoid lifetimes in components (borrowing data prevents memorization)
Components will be automatically memorized in Dioxus if the old and new props are the same. When the root component runs, only the components that received different props will rerun.

Dioxus allows you to specify what component are marked to rerun with the schedule update function. If you want to, you can use something like this code to create a local subscription for each Item component. This would allow you to only rerun the children when the data they read from is changed without changing the parent:

#![allow(non_snake_case)]
use dioxus::prelude::*;
use std::cell::{Ref, RefCell, RefMut};
use std::collections::HashSet;
use std::fmt::Display;
use std::rc::Rc;

fn main() {
    dioxus_desktop::launch(app);
}

fn app(cx: Scope) -> Element {
    println!("app rendered");

    let raw = cx.use_hook(|| {
        LocalSubscription::create(
            cx,
            (0..10)
                .map(|i| LocalSubscription::create(&cx, i))
                .collect::<Vec<_>>(),
        )
    });

    // Subscribes to changes to the array
    let state = raw.use_state(cx);

    cx.render(rsx! {
        button {
            onclick: move |_| {
                *state.read()[0].write() += 1;
            },
            "Increment first"
        }
        for count in &*state.read() {
            Comp {
                count: count.clone()
            }
        }
    })
}

#[inline_props]
fn Comp(cx: Scope, count: LocalSubscription<i32>) -> Element {
    println!("comp rendered");

    // Subscribes to changes to this specific count
    let count = count.use_state(cx);

    cx.render(rsx! {
        for i in 0..*count.read() {
            "{i}"
        }
    })
}

#[derive(Clone)]
pub struct LocalSubscription<T> {
    inner: Rc<RefCell<T>>,
    subscribed: Rc<RefCell<HashSet<ScopeId>>>,
    update: Rc<dyn Fn()>,
}

impl<T> PartialEq for LocalSubscription<T> {
    fn eq(&self, other: &Self) -> bool {
        Rc::ptr_eq(&self.inner, &other.inner)
    }
}

impl<T: 'static> LocalSubscription<T> {
    pub fn create(cx: &ScopeState, inner: T) -> Self {
        let inner = Rc::new(RefCell::new(inner));
        let update_any = cx.schedule_update_any();
        let subscribed: Rc<RefCell<HashSet<ScopeId>>> = Default::default();
        let update = Rc::new({
            to_owned![subscribed];
            move || {
                for id in subscribed.borrow().iter() {
                    update_any(*id);
                }
            }
        });
        Self {
            inner,
            subscribed,
            update,
        }
    }

    pub fn use_state<'a>(&self, cx: &'a ScopeState) -> &'a UseLocal<T> {
        cx.use_hook(|| {
            let id = cx.scope_id();
            self.subscribed.borrow_mut().insert(id);

            UseLocal {
                inner: self.inner.clone(),
                update: self.update.clone(),
            }
        })
    }

    pub fn use_write_only<'a>(&self, cx: &'a ScopeState) -> &'a LocalWrite<T> {
        cx.use_hook(|| LocalWrite {
            inner: self.inner.clone(),
            update: self.update.clone(),
        })
    }

    // This should only be used outside of components. This will not subscribe to any state.
    pub fn write(&self) -> RefMut<T> {
        (self.update)();
        self.inner.borrow_mut()
    }

    // This should only be used outside of components. This will not subscribe to any state.
    pub fn read(&self) -> Ref<T> {
        self.inner.borrow()
    }
}

/// A read/write version of the local state. This allows mutating the state and reading state.
pub struct UseLocal<T> {
    inner: Rc<RefCell<T>>,
    update: Rc<dyn Fn()>,
}

impl<T> UseLocal<T> {
    pub fn read(&self) -> Ref<T> {
        self.inner.borrow()
    }

    pub fn write(&self) -> RefMut<T> {
        (self.update)();
        self.inner.borrow_mut()
    }
}

impl<T: Display> Display for UseLocal<T> {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        self.inner.borrow().fmt(f)
    }
}

/// A write only version of the local state. This only allows mutating the state, not reading state because you can only access the inner type in a impl Fn(&mut T) closure.
pub struct LocalWrite<T> {
    inner: Rc<RefCell<T>>,
    update: Rc<dyn Fn()>,
}

impl<T> LocalWrite<T> {
    pub fn with_mut(&self, f: impl Fn(&mut T)) {
        f(&mut *self.inner.borrow_mut());
        (self.update)();
    }
}

This update model is more complicated than the simple use_state or use_ref hooks, but it can prevent some unnecessary rerunning of components.

Wow... just for one value, so much code!
Used js_sys::eval("document.getElementById('id').innetHtml='value';")
Will try maybe next time.


Support startActivityForResult from Host to Plugin

Support startActivityForResult from Host to Plugin。

@jiongxuan Source Updated.

Good！


Custom fields or config context on Peering Manager routers

Environment

Python version:  3.x
Peering Manager version: 1.2.

Proposed Functionality
Ability to add arbitrary data for a router in peering-manager that can be used in a configuration template.

Use Case
We currently use BGP region coding and hence auto generate per-region (per device) unique BGP communities. This does not currently seem possible in Peering Manager as there's no way to pass additional data to jinja.
In our use case, we have a 3 digit numeric code. The most basic functionality, which is an arbitrary custom field would work fine. We would use functions in Jinja to split it up properly. '
For those unaware of this style of config, we use is a tic-tac-toe board covering our region, where each area of this is a number, 1-9. the 2nd and 3rd digits is an arbitrary code for the device in that region, so 1-99. This is fairly common.
Even better however, would be either of these, my preference in this order

Pass the configuration context from Netbox to Peering Manager
have a local configuration context field, mirroring exactly what Netbox does - arbitrary Json.

There are probably other uses for this as well, but this would satisfy our needs and appears to be the only thing preventing us from using Peering manager in production.
An example of 'configuration context' in netbox would be just json, our use case would be something like:
{
    "autocommunity": {
        "popcode": "06",
        "region": "8"
    }
 }

@respawner Could we allow the user to add a new field type to the Router model from the UI, similar to https://stackoverflow.com/a/34907395/11588748 ?

+1, I'd be really happy to see even an additional simple JSONField on the router and policy models. For the policy models, the use-case would be something like a list of prefixes to de-preference, applicable for a specific BGP session / (type).

Lets add a new JSON field to routing policies and routers for now. If we were to bring custom fields, I'd like to make them available globally to any models in the code base.

Somewhat similar request in #97


refactor: moving public inputs back to instance

Previously I moved the verifier public inputs from the verifier instance to the verification key since I was mirroring the Prover side. However, this asymmetry is what we actually want. The verification key should store only circuit related data, and the verifier should receive the public inputs through the proof.
Please read contributing guidelines and remove this line.

Benchmark results
Metrics with a significant change:

note_trial_decrypting_time_in_ms (8): 94.1 (+120%)
note_trial_decrypting_time_in_ms (64): 101 (+80%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit 640c89a0 and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
5,668
18,820
36,356

l1_rollup_calldata_gas
66,208
239,104
469,808

l1_rollup_execution_gas
647,306
929,462
1,305,988

l2_block_processing_time_in_ms
1,287 (-3%)
4,793 (+1%)
9,285 (+2%)

note_successful_decrypting_time_in_ms
188 (-20%)
575 (+4%)
969 (-5%)

note_trial_decrypting_time_in_ms
:warning: 94.1 (+120%)
88.6 (+23%)
:warning: 101 (+80%)

l2_block_building_time_in_ms
18,023 (-3%)
67,867 (-2%)
134,613 (-3%)

l2_block_rollup_simulation_time_in_ms
8,051 (-2%)
28,415 (-2%)
55,840 (-2%)

l2_block_public_tx_process_time_in_ms
9,952 (-4%)
39,396 (-2%)
78,678 (-3%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
13,901 (-2%)
27,544 (+1%)

note_history_successful_decrypting_time_in_ms
1,284 (+2%)
2,529 (-2%)

note_history_trial_decrypting_time_in_ms
105 (+5%)
128

node_database_size_in_bytes
18,636,880
35,098,704

pxe_database_size_in_bytes
29,859
59,414

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
278 (-2%)
44,366
28,244

private-kernel-ordering
213 (-2%)
52,868
14,326

base-parity
1,853
128
311

base-rollup
718 (-1%)
165,787
925

root-parity
1,504 (-4%)
1,244
311

root-rollup
52.2 (+1%)
4,487
725

private-kernel-inner
641 (-1%)
73,771
28,244

public-kernel-app-logic
444 (-2%)
35,260
28,215

public-kernel-tail
172 (-2%)
40,926
28,215

merge-rollup
8.35 (-1%)
2,696
925

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
9.99 (-1%)
15.9 (-1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.6
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.582 (-1%)
0.493 (-1%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
45.6
72.0 (-1%)
229 (-2%)
445
862 (-3%)
1,709 (-2%)
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
96.0
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.468
0.445 (-1%)
0.419 (-2%)
0.416
0.411 (-2%)
0.410 (-1%)
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
53.6 (-1%)
106 (-3%)
334 (-1%)
662
1,305 (-1%)
2,597 (-1%)
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
104
207
691
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.477
0.479 (-2%)
0.456 (-1%)
0.455
0.453 (-1%)
0.452 (-1%)
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
61.3

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
109

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.536

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes

tx_size_in_bytes
22,012

Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes

tx_pxe_processing_time_ms
3,223 (-4%)
1,747 (-2%)

Metric
0 public data writes
1 public data writes

tx_sequencer_processing_time_ms
12.6 (+18%)
1,239 (-2%)


Pod network is unavailable, and mac is not available

Expected Behavior

Pod can access other pod or node，On the node, you can see the mac of the pod corresponding to the network card

Current Behavior

Pod can not  access other pod or node，On the node, you can not  see the mac of the pod corresponding to the network card

Possible Solution

Delete the pod and let the pod recreate
Has this problem been resolved in later versions of calico？
Steps to Reproduce (for bugs)

Context

Your Environment

Calico version   ：3.8.2
kubernetes version (e.g. kubernetes, mesos, rkt):   1.17.8
Operating System and version:  centos 7.6
Link to your project (optional):

@BedivereZero

I'm not sure I understand what the problem you're seeing is.

Pods on the same node can access each other,The pod on different nodes cannot be accessed.Not all pods are like this, only the pods on a node are like this.
I found that the Cali network card corresponding to the pod in question does not have a MAC address
After I upgraded calico to version 3.16.4, the problem disappeared


Unable to view or edit any resource/entity in Lens Desktop after opening and closing it once

Describe the bug
A clear and concise description of what the bug is.
Once any entity in lens is opened in the editor and closed, it cannot be opened again
To Reproduce
Steps to reproduce the behavior:

Click on any item in any category and select the edit icon

After entity is opened in the terminal/editor window, close it

Entity is closed, and all that remains is the terminal

Click on the same item and hit the edit icon again

Editor window just minimizes to the bottom of the screen, and the entity is not opened

Expected behavior
A clear and concise description of what you expected to happen.
Entity would re-open for editing/reading again
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

Lens Version: 2023.8.31525
OS: Windows 11 Pro
Installation method: Windows Installer (Lens Setup 2023.8.31525-latest.exe)

Logs:
When you run the application executable from command line you will see some logging output. Please paste them here:
Your logs go here...

I am not running it from the command line, I am running the executable within a windows environment
Kubeconfig:
Quite often the problems are caused by malformed kubeconfig which the application tries to load. Please share your kubeconfig, remember to remove any secret and sensitive information.
your kubeconfig here

This does not appear to be cause by a malformed kubeconfig, as I am connecting fine and have been using the same kubeconfig without issue for sometime
Additional context
This problem just started happening right now randomly. I have been editing/viewing, closing, and re-opening entities for a couple weeks since I started with no problems.
What I was doing when it started happening:
I was learning how to work with IngressRoutes in Traefik, and I was opening different CRD's to read how they were structured. after attemting to glance at the traefik dashboard ingressroute CRD again to check something, it would not open again, and the behavior described here began to happen. I then checked other entities in different areas, and found the same behavior to be happening with everything.
What I have tried doing to fix the issue:

First I was wondering if somehow Traefik on my cluster became corrupted due to my tinkering and caused the issue. I uninstalled Traefik via Lens (it was originally installed with lens), and then re-installed it. After the re-install I could open the resources that wouldn't re-open again, but only once before the behavior continued.
Completely exited out of Lens desktop, including taskbar, and restarted, behavior still persists
I rebooted my PC, no luck, behavior continues
I uninstalled Lens desktop, rebooted my PC, and re-installed Lens desktop with a newer version 2023.8.231521, still no luck, behavior continues

I also checked if I could open and read the entities via command line on my control nodes to see if there was something hung on my nodes preventing the entities from being read again, and I was able to describe the contents of everything multiple times just fine.
My cluster is showing no errors, and everything is working properly. This appears to be a random issue that the Lens desktop application just decided to start having. It seems as if after the entity editor window is closed, the application believes it is still open, so after I attempt to re-open it again, it attempts to pull focus onto it, but with it not being there anymore, it just causes the editor/terminal window to minimize instead.

Facing same issue.

Same here

Same here, using kubectl edit from terminal in the meanwhile

You can use Monokle in meanwhile.

I have started having same issue since upgrading to latest version yesterday Lens: 2023.8.291046-latest

same here
Lens: 2023.8.291046-latest
Extension API: 6.20.0
Electron: 25.3.0
Chrome: 114.0.5735.199
Node: 18.15.0
© 2023 Mirantis, Inc.

on macbook
Chip: M1 pro
Mem 16 GB
MacOS 13.4.1 (c)

did somebody get a solution ?

I experienced the same issue with 2023.8.291046-latest on Windows 11. The workaround I have found to be working is deinstall Lens, remove any configuration in your home directories:

C:\Users\<user>\AppData\Local\Programs\Lens
C:\Users\<user>\AppData\Roaming\Programs\Lens

Then download the last working version again:
https://downloads.k8slens.dev/ide/Lens Setup 2023.8.31525-latest.exe
They are still available on the download location. After reinstalling I was able to edit resources again multiple times.

This bug is probably related to "lens-local-storage" folder. When I just installed the 31525 version it did not help. Then I noticed this folder. When you edit a resource it creates a file there. I killed the latest files, and restarted Lens and now it works fine.
On my ubuntu it is located here:
~/.config/Lens/lens-local-storage

Any workaround for M1 Mac Machines?

Any workaround for M1 Mac Machines?

try the Boris-Plato workaround: worked on Windows for me, on Mac I suppose you should have the same directory structure as Ubuntu

For MacOS path is  ~/Library/Application\ Support/Lens/lens-local-storage/ I just wiped all files and it's working.


match plugins, add yum config

support config and related auth options in yum, matching dnf

/hold
we will want to merge this after packaging, as it will have packaging-related updates (share the conf file)


Fix iOS Yellow box warning RNCallKit requires main queue setup since it overrides init

When using the master branch I get this warning in my emulator:

By implementing this requiresMainQueueSetup method in RNCallKit the warning disappears.

@ianlin Could you merge this?


No resource identifier found for attribute 'roundIcon' in package 'android'

I have dowload the : "arcgis-runtime-samples-android.zip",then I decompression the arcgis-runtime-samples-android.zip, then in the Android Studio ：File -> Open。
The gradle finished with 3error in55s。
The error is ：
No resource identifier found for attribute 'roundIcon' in package 'android'
No resource identifier found for attribute 'roundIcon' in package 'android'
Execution failed for task ':attribution-view-change:processDebugResources'.

com.android.ide.common.process.ProcessException:Failed to execute aapt

Hi JavaBoy,
While we normally recommend cloning rather than downloading the samples as a .zip, downloading as a zip should work fine.
Here's what I just did:
Downloaded .zip file and unzip it.
Open Android Studio and Click 'Import Project'
Select the folder 'arcgis-runtime-samples-android-master'
Let gradle run (will take 1+ minutes depending on the specs of your computer).
Should be good to go. (This was on Android Studio 2.3.3 by the way)


suggestion: output as SVG

It would be great if the library would support output of the barcode in SVG format by using e.g. Fabric.js http://fabricjs.com/

The project should not be dependent on any libraries. JsBarcode supports that it is used with jQuery but it's not required. This could of course be done with vanilla js but there are currently no plans to do this.


feat/activation: allow CUDA activation to work with 1D/2D tensors

@homu r+

:pushpin: Commit f4effe7 has been approved by hobofan

:hourglass: Testing commit f4effe7 with merge 3a48d61...

:sunny: Test successful - status


Infrastructure: Configure nigiri with a "registry" so the registry endpoint returns ticker labels & precisions

One can fetch tickers via the ESPLORA_URL/registry endpoint, thanks to nigiri's chopsticks.
By sending a POST request to ESPLORA_URL/registry with the JSON body {"assets": <array-of-asset-ids>}, we get back the information related to all the asset IDs provided.
If instead we send {"assets": []} we get back information for all registered assets (except for L-BTC, presumably because it was not minted via nigiri mint).

If instead we send {"assets": []} we get back information for all registered assets (except for L-BTC, presumably because it was not minted via nigiri mint).

If we manage to use a more recent docker image, this should be fixed: https://github.com/Blockstream/esplora/issues/154

Another issue here is that the registry doesn't return a precision.

Another issue here is that the registry doesn't return a precision.

I think esplora can return a precision: https://github.com/blockstream/esplora/blob/master/API.md#get-assetasset_id. But in the test environment we use nigiri-chopsticks'  registry, which does not support precision.

Another issue here is that the registry doesn't return a precision.

I think esplora can return a precision: https://github.com/blockstream/esplora/blob/master/API.md#get-assetasset_id. But in the test environment we use nigiri-chopsticks' registry, which does not support precision.

How hard would it be to patch nigiri-chopsticks to support this?

Another issue here is that the registry doesn't return a precision.

I think esplora can return a precision: https://github.com/blockstream/esplora/blob/master/API.md#get-assetasset_id. But in the test environment we use nigiri-chopsticks' registry, which does not support precision.

How hard would it be to patch nigiri-chopsticks to support this?

How's your Go?

Another issue here is that the registry doesn't return a precision.

I think esplora can return a precision: https://github.com/blockstream/esplora/blob/master/API.md#get-assetasset_id. But in the test environment we use nigiri-chopsticks' registry, which does not support precision.

How hard would it be to patch nigiri-chopsticks to support this?

How's your Go?

I haven't programmed Go since Uni, so I would say it is a bit ... rusty?

Closed in favor of https://github.com/comit-network/droplet/issues/106 because using the registry would never guarantee the use of the "correct" assets. Even in production the asset label can easily be spoofed. Hence we definitely want to hardcode the asset ID at build-time.

Closed in favor of https://github.com/comit-network/droplet/issues/106 because using the registry would never guarantee the use of the "correct" assets. Even in production the asset label can easily be spoofed. Hence we definitely want to hardcode the asset ID at build-time.


Crash on tab context menu after a few mouse right-clicks

Environment
PS C:\Users\Ich> [Environment]::OSVersion

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.19042.0 Microsoft Windows NT 10.0.19042.0

Windows Terminal Preview
Version: 1.6.10272.0

Steps to reproduce

Start terminal
Mouse right-click on a tab
A few mouse right-clicks on a different context menu entries

Expected behavior
Don't crash (silent)
Actual behavior
unlimited of this:

When you tell me how can I get a better debug about this crash, I want to given you a better error report

Shit. This is the context menu crash from over in #8238. @DHowett we held the nested menu back from 1.5 because of this crash, but it looks like we didn't hold it back from 1.6 too. This is the second report since we shipped - I bet we're gonna see a few more of these too.
I'm gonna re-purpose this to make sure we push a hotfix to revert than ASAP.

Shit. This is the context menu crash from over in #8238. @DHowett we held the nested menu back from 1.5 because of this crash, but it looks like we didn't hold it back from 1.6 too. This is the second report since we shipped - I bet we're gonna see a few more of these too.
I'm gonna re-purpose this to make sure we push a hotfix to revert than ASAP.

I'm only holding this back from 1.5 -- it's "stable" afterall.

Ugh, okay, I'll cherry-pick it to 1.6.


fix make protogen_docker old command to help resolve protogen issues on L

Description
Updates the Dockerfile and the commands to make make protogen_docker functional.
Type of change
Please mark the options that are relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[x] Local infrastructure tooling

How Has This Been Tested?
By running:
Destroy your existing protobuff generated files by running:
$ make protogen_clean

Then run:
$ CWD=$(pwd) make protogen_docker

Then check if protobuff files are generated under their respective directories (check shared/types/ for instance)
Owners
@derrandz

Code LGTM. Leaving to @phthan0 for confirmation of functionality and approval.

I can confirm this fixes at least several things on Linux amd64.

All thanks to you @phthan0 !


Fix CI.

Consolidates https://github.com/rust-embedded/cross/pull/395 and https://github.com/rust-embedded/cross/pull/394.

bors try

bors r+


clean grid masking a bit

Codecov Report

Merging #69 into master will decrease coverage by 0.5%.
The diff coverage is 61.9%.

@@            Coverage Diff             @@
##           master      #69      +/-   ##
==========================================
- Coverage   89.02%   88.51%   -0.51%
==========================================
  Files           8        8
  Lines         656      662       +6
  Branches      112      112
==========================================
+ Hits          584      586       +2
- Misses         47       51       +4
  Partials       25       25

Impacted Files
Coverage Δ

pygridtools/misc.py
95.57% <100%> (ø)
:arrow_up:

pygridtools/core.py
88.32% <55.55%> (-1.32%)
:arrow_down:

Continue to review full report at Codecov.

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


Discussion - Best practices for testing?

Tests are a major part of my development workflow. I want my development with Redux-ORM to be as well-tested as anything else. I spoke briefly with Mark and he suggested I open a discussion issue about the best ways of testing Redux-ORM logic. Here are a few of the points I'm thinking of in no particular order:

The one test example in the redux-orm-primer is kind of confusing. For one, I'm not even sure I could reproduce the test locally. It references some methods from a ./utils, including a ReduxORMAdapter and applyActionAndGetNextSession stuff. If bits like this are required for testing, they should come stock with Redux-ORM.

Vanilla Redux offers easy testing: whip up a state & an action, run 'em through a reducer, and expect an outcome. With immutable state, no beforeEach or decorators are needed; you can just test the same state in each case. It'd be nice if any recipes we come up with for testing Redux-ORM logic can keep that level of ease & speed.

What're the best practices for testing models & their reducers? Can I simply instantiate a Book, call Book.reducer with some state + action, and...then what? expect some Redux-ORM API function to have been called? What's the best way to look at the state before and after?

These are just some initial questions, but I'd be happy to hear about your Redux-ORM testing patterns or your own questions.

For what it's worth, I think that ReduxORMAdapter is solely related to the use of the factory-girl library for generating some test data.


pass cliOptions to config file

This would enable the user to have access to cli options. Currently there is no way you can send extra params to config, this would atleast help in setting custom configs based on params.

You can parse CLI arguments yourself, in your config file. It's not as nice, I know. Unless there is a good use case (that many people neeed), I don't think it's worthy making the API more complex...
Please re-open if you think there is a good use case.


✨ Ability to constrain min/max date range

Is your feature request related to a problem? Please describe.
I'm date selection feature where the user can select a range of available data. Currently we use <input type="date"> with min and max properties.
Describe the solution you'd like
minDate and maxDate properties would be very helpful. Then when a user is picking a range, dates outside of the min/max would be disabled.
Describe alternatives you've considered
I considered making an array of all available dates and feeding them into the enabledDates property. But when we're dealing with potential multi-year periods, loading in 700+ dates seemed a bit clunky.

Turns out I missed this from the REPL link: enabledDates={["2023-02-01:2023-03-01"]}
Works perfectly, cheers for all the hard work!


[BUG] ProcessNodeTest is flaky on CI

What is the bug?
The below test passes on local but fails on CI.
org.opensearch.flowframework.template.ProcessNodeTests > testNode FAILED
    java.lang.AssertionError
        at __randomizedtesting.SeedInfo.seed([9B313DC0540DBCB3:C8934CDC5B151A88]:0)
        at org.junit.Assert.fail(Assert.java:87)
        at org.junit.Assert.assertTrue(Assert.java:42)
        at org.junit.Assert.assertTrue(Assert.java:53)
        at org.opensearch.flowframework.template.ProcessNodeTests.testNode(ProcessNodeTests.java:56)
  1> [2023-09-22T00:46:59,576][INFO ][o.o.f.t.ProcessNodeTests ] [testNode] before test
  1> [2023-09-22T00:46:59,767][INFO ][o.o.f.t.ProcessNode      ] [[Thread-6]] >>> Starting A.
  1> [2023-09-22T00:46:59,805][INFO ][o.o.f.t.ProcessNodeTests ] [testNode] after test
        at __randomizedtesting.SeedInfo.seed([9B313DC0540DBCB3:C8934CDC5B151A88]:0)

This fails on CI when checking whether future is complete on
        assertTrue(f.isDone());

How can one reproduce the bug?

Run tests on Github CI

./gradlew ':test' --tests "org.opensearch.flowframework.template.ProcessNodeTests.testNode" -Dtests.seed=9B313DC0540DBCB3 -Dtests.security.manager=false -Dtests.locale=en-US -Dtests.timezone=Europe/Moscow -Druntime.java=17

What is the expected behavior?
Test should pass

This test should probably be removed from ProcessNode.  As noted in comments, it is more properly tested by a IT.
Also, I expect I will be able to make the test pass when #42 is implemented, which requires one of the multiple PRs implementing createComponents() to get merged.
Recommend commenting it out and tagging either this issue or #42 to re-enable it.

So implementing #42 didn't fix this, but it turns out using orTimeout() on a future in the test class is somehow incompatible with the randomized testing we use.


Time in the chats missing AM/PM, creating confusion !

Timestamp in Message lists is only hour and Minutes(for same day) and Month and day for previous other days.
In the case of same-day chat, it creates confusion whether it is AM/PM.
For example, Person A sent chat at morning 1:00 (AM), it shows just "1:00",  it displays the same for afternoon 1:00(PM).

Fixed with the 24-hr timestamp.


stuck reading hdf5 3D f32 points

I'm guessing this is almost as simple as the material in the documentation but I can't get the "no conversion path" error to go away. My hdf5 files are in this format

and each one is formatted in this shape

given this info can anyone say why this rust code fails to read into a 2d array?
#[derive(hdf5::H5Type, Clone, PartialEq, Debug)]
#[repr(C)]
pub struct Point {
    x:f32,
    y:f32,
    z:f32
}

fn main() {
    let hfile = hdf5::File::open("./positions_chunk1.hdf5").unwrap();
    let names = hfile.member_names().unwrap();
    let data = hfile.dataset(&names[0]).unwrap();
    let data_array = data.read_2d::<Point>().unwrap();
}

Your snapshots are 2-D f32.
Your data_array is 2-D Point.
Even if data_array was 1-D, there's no direct conversion between 1-D structured arrays and 2-D scalar ones.

Thanks for providing some extra info, I think I understand why the conversion error arises now. So is there a better way to read a dataset when my data is 2-D collection of f32? I'm not tied to using the Point struct, that was just my first guess when looking at the examples on crates.io.
Would a read_raw::<f32> be a better approach?
Sorry to ask you to spell things out for me.

Well, yea - you can read_2d::<f32>(), that should work.
If you really want an x/y/z struct, you can probably pull the data out of ndarray as a vec and unsafely transmute it into a vec of points. This is something that is technically doable at the library level but I guess there haven't been enough use cases (or contributors) to implement it.

oh wow nvm, just using

    let mut f = hdf5::File::open("./positions_chunk0.hdf5").unwrap();
    let mut dataset = f.dataset("snapshot_000").unwrap();
    let data = dataset.read_2d::<f32>().unwrap();
    println!("data read is {:?}",data);

did the trick. Thanks for the package!


Fix formatting of socket_addr! macro

Originally posted in https://github.com/hyperledger/iroha/pull/3675#issuecomment-1621571329
When the necessary rustfmt changes land in the ci toolchain, rustfmt configuration should be changed to not format the body of socket_addr! macro.

Not applicable anymore, rustfmt seems to format it nicely without additionally flipping any switches


Add an option to use emoji for icon like check, lock, and x

🚀 Feature Proposal
Add an option to use emoji instead of check.png (✅), x.png(❌), lock.png(🔒), blank().png.
Motivation
Currently if using code-server to host VSCode in cloud and open in web browser, the problem list won't display the status icons cause the URL is blocked.
And open the browser console, will see some errors like that:
Not allowed to load local resource: file:///opt/app/code-server/user_data/extensions/shengchen.vscode-leetcode-0.15.1/resources/check.png
Not allowed to load local resource: file:///opt/app/code-server/user_data/extensions/shengchen.vscode-leetcode-0.15.1/resources/x.png
Not allowed to load local resource: file:///opt/app/code-server/user_data/extensions/shengchen.vscode-leetcode-0.15.1/resources/lock.png
Not allowed to load local resource: file:///opt/app/code-server/user_data/extensions/shengchen.vscode-leetcode-0.15.1/resources/blank.png

Contribution
IMHO, add an option to use emoji instead of the png files can bring maximum compatibility.

@zenof As far as I know, the VS Code does not expose any API to support setting the explorer node icon to an emoji or even octicons. I'm afraid this is not achievable so far.


create-claims-based-web-applications.md has instructions to create a classic

SharePoint/SharePointServer/security-for-sharepoint-server/create-claims-based-web-applications.md
This article is titled "Create claims-based web applications in SharePoint Server" but has instructions to create a classic web application, which is in a separate document.  This should be removed from this document.
Here is the other document: https://docs.microsoft.com/en-us/sharepoint/security-for-sharepoint-server/create-web-applications-that-use-classic-mode-authentication.
Also, creating a classic mode web application does not apply to "Subscription Edition.

Hello @mikelee1313
How are you?
I understand what you say, however, the article is already letting us know that it is also including a small set of instructions to create a classic, and the reason for that

However, this article also provides guidance for using PowerShell to create classic-mode web applications if you have a specific scenario that cannot support claims-based authentication.

And it is also including a link to the other, more extended, instructions that you also included in your message.
I'll check what you say about SE.
Thanks for your feedback!


Addess error initialization from incompatible pointer type [-Wincompatible-pointer-types]

https://github.com/va3wam/hexBot/blob/0f974f4970df91e9a6a5f9d082d167453b35ee18/src/main.cpp#L43-L43

This error comes up at compile time. It always has a similar message for another line near by:
initialization from incompatible pointer type [-Wincompatible-pointer-types]. Both of these messages are somehow linked to the file esp32-hal-spi.c.

Error has gone now. Got an update to the ESP32 libraries recently which may have addressed this. Closing for now as the issue is gone though we did nothing to address it.


Confirmed working with Costco Winix Air Purifiers

Just installed in my Home Assistant and can confirm this integration is compatible with the Winix purifiers sold at Costco: model c909

Than you for confirming that. I have added it to the Readme.


Timeline page results are wrong for Edge 12

Some of the results on the Timeline pages appear to be wrong. For example, the info on Edge 12 and Chrome 16 appear to be in "reverse" indicating support being dropped instead of being added as it should be.

The data on Chrome is correct. In early versions some features were shipped, deemed not ready yet and removed again.
Edge is a known issue that I'm working on. The timeline contains an experimental build with all flags enabled all the way at the bottom which shouldn't be there.

Fixed

This problem is now showing up again for Internet Explorer 6.

I'm not seeing this anymore, can you retest?

Yes, it's gone now.


Add ability to replace control plane node with a new node

User Story
If something happens to a control plane node, there should be a functionality that allows the operator to replace it with a new one.
Acceptance criteria
There is replace control plane node command/functionality.
Implementation
The workflow for this command would be:

The operator creates a new node using their preferred approach, for example, Terraform
The operator updates the KubeOne configuration file to drop a node that is to be replaced and add a new node (this is not required for operators using the Terraform integration)
KubeOne ensures the cluster is healthy
KubeOne removes the old node from the Kubernetes and etcd clusters
KubeOne installs Kubernetes on the new node and joins it a cluster

To find out what node should be removed from the cluster, we can compare the KubeOne configuration to the kubeadm ConfigMap in the kube-system namespace.

It was documented how to proceed in such case in https://github.com/kubermatic/kubeone/pull/794


Jump Search In Julia | Search | GSSoC'21

💥 Proposal
Jump Search In Julia
Have you read the Contributing Guidelines on Pull Requests?
YES

/assign


Bug report: Possible change needed to verbage/setting on tsconfig.json update

Description
When recently doing an SPFX update from 1.10 -> 1.11 the notification said:

Update tsconfig.json include property:
{
 "include": [
   "src/**/*.tsx"
 ]
}

Without thinking enough about the ramifications, it I changed my existing line from *.ts to *.tsx as instructed. What I have since realized is that I have updated my localization to use .ts files instead of .js files (because it's easier to see issues with string names and inclusion) and all the sudden all that code wasn't working. Since I had done a lot of other package updates it took me a while to track down but in retrospect what I should have done was either added *.tsx (given it's an array) or changed *.ts to *.ts*.  However, since I don't exactly know why the change was being suggested in the first place, I'm not entirely sure that covers it so maybe the wording needs to be updated, or maybe just use the wildcard?
Steps to reproduce
N/A
Expected result
N/A
Actual result
N/A
Environment
Windows 10 - 3.1.0

Thanks for reporting @juliemturner. We'll have a look at it and see how we can clarify it 👍

@juliemturner would it be clearer if we said: Update tsconfig.json 'include' property to include:?

Yeah, I think that could work... or leave the wording and change it to .ts*

In our recommendations we follow the structure you get when creating a new SPFx project using Microsoft's tooling. This allows us to easier check for changes between versions and suggest required and recommended updates for future versions. Since the tooling uses .ts and .tsx we'll stay with the same approach and rephrase our suggestion.

Just stumbled to this issue.

Couldn't we not just change the code to get this structure (like a new SPFx project)?
 "include": [
    "src/**/*.ts",
    "src/**/*.tsx"
  ],

upgrade-1.11.0.ts
 new FN012012_TSC_include([
    'src/**/*.tsx'
  ])

Our resolutions are meant to show only the difference (what's missing) not the end state. If we were to change this rule, we'd need to update all of them to stay consistent.

Most people (and me 😄 ) are used to copy and paste. The "missing" "src/**/*.ts"-line can cause problems.
But I understand your point of view.

The problem with showing complete solutions is that we'd need to take into account what you already have and merge it with what's missing. If we could do this in a fool-proof way, we could go all the way down to automating the upgrade 😁

We've rephrased the message. Let's see if it's clearer now. Thanks again! 👍


Cluster API init

Builds and runs fine. I'll add a README file tomorrow.

This change is

That's a whole lot of vendoring. Do you think you could break it into two commits: one to pull in all of the vendor code, and the other for just the code you wrote? That would make it much easier to review.

@pipejakob I believe we are not doing actual review. This is just a namesake PR.

@pipejakob I believe we are not doing actual review. This is just a namesake PR.

So do you just want to merge it then, or are you staging this until you have the README done?

Merging. Will add a README tomorrow.

I am curious, does the cluster init command work at this point or are you committing a work-in-progress?

cluster-api create test.yaml works.
On Oct 19, 2017 2:47 PM, "jessicaochen"<EMAIL_ADDRESS>wrote:

I am curious, does the cluster init command work at this point or are you
committing a work-in-progress?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/kubernetes/kube-deploy/pull/299#issuecomment-338047433,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABTYI1QJA2ruxX7A4xIvkhc1qRKZmt4zks5st8NrgaJpZM4P_nOe
.

Sorry - why aren't we doing reviews?

For velocity while we prototype against the proposed api.


How to do multiple inserts in one query?

var Promise = require('bluebird');

Bookshelf.transaction(function(t) {
  return new Library({name: 'Old Books'})
    .save(null, {transacting: t})
    .tap(function(model) {
      return Promise.map([
        {title: 'Canterbury Tales'},
        {title: 'Moby Dick'},
        {title: 'Hamlet'}
      ], function(model) {

        // Some validation could take place here.
        return new Book(info).save('shelf_id', model.id, {transacting: t});
      }));
    });
})

Instead of Promise.map([obj1, obj2, ob3]), is it possible to do them in one insert. In other words, Bookshelf.js is doing this:
INSERT INTO book VALUES ('Canterbury Tales');
INSERT INTO book VALUES ('Moby Dick');
INSERT INTO book VALUES ('Hamlet');

But a faster solution might be:
INSERT INTO book VALUES ('Canterbury Tales'), ('Moby Dick'), ('Hamlet');

Is it possible to extend this into bookshelf.Collection for example?
PS:
I see knex already supports this pretty well:
http://knexjs.org/#Builder-insert
knex.insert([{title: 'Great Gatsby'}, {title: 'Fahrenheit 451'}], 'id').into('books')

/*
Outputs:
insert into `books` (`title`) values ('Great Gatsby'), ('Fahrenheit 451')
*/

@bendrucker what does this actually do (i know it's for multiple insert and get ids and assoiciate it with the rows)
Bookshelf.Collection.prototype.insert = function () {
return Promise
  .......
  .......
  .return(this);
};

and where do i put this common code

@awebdeveloper ben is not active on Bookshelf anymore. The idea behind that code is you can do this:
var models = [{ name: 'bob' }, /* ... */ ];
Collection.forge(models).insert().then(function (collection) {
});

Since this is extending Bookshelf, you should call it before doing anything else. Typically I'd have a file called bookshelf.js or similar in which Bookshelf and Knex are imported and initialized, any configuration (including the above extension) are performed, and then the bookshelf instance is exported.

@rhys-vdw thanks for the reply
does this look good
var db_config       = require('../../../config/db');
var knex            = require('knee');
var bookshelf_cf    = require('bookshelf')(db_config.commonfloor);
var bookshelf_ams   = require('bookshelf')(db_config.ams);

var insert = function () {
    return Promise
        .bind(this)
        .then(function(models) {
            return knex.insert(this.toJSON({
                shallow: true
            })).into(this.tableName()).returning(this.idAttribute());
        })
        .map(function(id, index) {
            this.at(index).set(this.idAttribute(), id);
        })
        .return(this);
};

bookshelf_cf.Collection.prototype.insert = insert;
bookshelf_ams.Collection.prototype.insert = insert;

exports.db = {
    cf: bookshelf_cf,
    ams: bookshelf_ams
};

exports.knex = knex;

totally and painstaking .. much better to pick easier life and use node mysql or any other ORM.  The question is whether you want to complain about it or add the feature...

weirdly complex and painstaking .. much better to pick easier life and use node mysql or any other ORM.

node mysql

An build sql strings manually, OK

ORM

which?


Flaky Thanos Bucket Store E2E test

See https://circleci.com/gh/thanos-io/thanos/6803, for this error, we don't need to check the number of chunks of series response for each testcase, we just need to make sure the number of chunks is 0 when skipChunks option set to true.

https://circleci.com/gh/thanos-io/thanos/7056

if you want to help @daixiang0  this is affecting us a lot. It is super flaky nowadays, probably due to CircleCI slowness. Either we need to increase timeout.. or move to GithubActions: https://github.com/thanos-io/thanos/issues/1704
I would start by moving only e2e tests to https://github.com/thanos-io/thanos/issues/1704 and see how it goes. What do you think @daixiang0

Maybe in the wrong issue? Should it be https://github.com/thanos-io/thanos/issues/2045 ?
Anyway, this bucket e2e test error is quite strange but seems not happened these 10 days. Maybe it is OK to close this. If I see the same error again, them I can reopen this issue.

Why closing this issue is fair? If it's impacting us?

@bwplotka  Are you mentioning #2045  or this issue?
If it is this issue, I haven't seen a similar error reproduced in CI in about 10 days. Seems all thing work properly in bucket e2e test

Yea, I mean overall e2e

I am sorry, my bad. I am okay to keep it open and watch a long time until we all agree it is resolved