Introduce a StreamingBuffer

This streams an object file to the given writer without keeping it all in memory at once. This avoids an unnecessary copy of all data when you want to write the object file to the disk immediately afterwards anyway. I also made the api contract of WritableBuffer a bit stricter to for example allow writing to a file using memory mapping by requiring that the size given to .reserve() matches matches the final size of the object file. Finally I pre-allocated a couple of vecs with the final size to prevent re-allocations.

As for the rationale for this change, a non-trivial portion of the time necessary to create the metadata object file in rustc is spent during memcpy. A bigger portion of the time is spent in copying the data into the Object during append_section_data though, which is probably harder to avoid.

I don't see the reason for all of these API changes. Although it isn't documented well, I believe the current API already does what you want. So all that is needed is a StreamingBuffer implementation.

The change from the resize to align method is necessary to be able to implement it using a single write call per 1024 alignment bytes instead of one write call for each alignment byte.
The exact allocation of several vecs is just a perf optimization to avoid unnecessary reallocations that copy the full contents of the vec over to the new allocation, which is expensive for bigger vecs.
The stricter api contract is not necessary for StreamingBuffer, but it is necessary if you want to implement say an mmap based writer.

The change from the resize to align method is necessary to be able to implement it using a single write call per 1024 alignment bytes instead of one write call for each alignment byte.

I don't see why that optimisation can't be done with the old resize. The first thing you do is calculate the new length, which is effectively the same as having the caller pass in the new length to resize. The reason I prefer to not have this change is because it requires the implementation to do the alignment calculation.

The exact allocation of several vecs is just a perf optimization to avoid unnecessary reallocations that copy the full contents of the vec over to the new allocation, which is expensive for bigger vecs.

Those changes are fine.

The stricter api contract is not necessary for StreamingBuffer, but it is necessary if you want to implement say an mmap based writer.

yurydelendik already used it for something like this in wasmtime (although I'm not sure that those changes ever landed). It was the reason this trait was added.  It isn't documented properly, but the contract always was the we do a single reserve before writing.

I don't see why that optimisation can't be done with the old resize. The first thing you do is calculate the new length, which is effectively the same as having the caller pass in the new length to resize. The reason I prefer to not have this change is because it requires the implementation to do the alignment calculation.

How do you then cheaply create a slice to write? You can't slice a promoted &'static [u8; 1024] as the caller may pass in any byte value, not just 0. Pretty much the only option is to put it on the stack and memset it to the required size which is more expensive than a single slice operation.

How do you then cheaply create a slice to write? You can't slice a promoted &'static [u8; 1024] as the caller may pass in any byte value, not just 0. Pretty much the only option is to put it on the stack and memset it to the required size which is more expensive than a single slice operation.

Ok, so delete the value parameter to resize, since nothing used it.

Ok, so delete the value parameter to resize, since nothing used it.

Done

Pretty much the only option is to put it on the stack and memset it to the required size which is more expensive than a single slice operation.

By the way, it becomes a memset anyway when using a BufWriter.

By the way, it becomes a memset anyway when using a BufWriter.

In the &[0; 1024][..write_amt] the [0; 1024] should be promoted to a global I think, so the slice references memory part of the .bss section.

In the &[0; 1024][..write_amt] the [0; 1024] should be promoted to a global I think, so the slice references memory part of the .bss section.

Yes, but if that is then immediately copied into a BufWriter's buffer, it optimises that memcpy into a memset, so the .bss is unused. It doesn't matter, I just wasn't aware of the .bss optimisation so I went exploring.

This will probably conflict with #350 (please don't do the write result change until after it is merged).


Add logo variant featuring both text and the house

I downloaded the Montserrat font and tried to reproduce the logo as it is on the website, but in Inkscape so it can be featured as a standalone SVG logo.

Hmm, in the preview here I noticed the SVG isn't cropped for some reason. I'll try to fix that.

Wohoo, thank you for this work!
Not sure if I'm seeing it right. Maybe I miss some local fonts...
Here:

On website:

Huh, I see it right, probably because I have the font installed now :) I’ll
see if I can force Inkscape to include the letters as curves instead, so
it's independent on system fonts.
On Thu, 3 Sep 2020 at 19:02, Tomas Votruba<EMAIL_ADDRESS>wrote:

Wohoo, thank you for this work Honza!
Not sure if I'm seeing the font right. Maybe I miss some local fonts...
Here:
[image: image]
https://user-images.githubusercontent.com/924196/92144989-d39a8880-ee17-11ea-8f07-34b5d4b26c5a.png
On website:
[image: image]
https://user-images.githubusercontent.com/924196/92145080-fa58bf00-ee17-11ea-9b82-350fa76d5274.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rectorphp/getrector.org/pull/173#issuecomment-686626998,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACFGMN53CYN55UWROCZPF3SD7D2RANCNFSM4QU4L2JA
.

If it's a problem to include the font and it helps you solve the missing logo, I can merge it.

Dont merge yet, I’ll update the PR with the letters as curves. It must have
solution, its a common practice. I just thought Inkscape did it
automatically as I couldn’t notice it did not :))
On Thu, 3 Sep 2020 at 19:49, Tomas Votruba<EMAIL_ADDRESS>wrote:

If it's a problem to include the font and it helps you solve the missing
logo, I can merge it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rectorphp/getrector.org/pull/173#issuecomment-686650998,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACFGMKL2KVBOEEQ3OBYLWTSD7JKTANCNFSM4QU4L2JA
.

All right, just ping me when it's ready :)

Does it display better now?

I think it should be easy-ish, another 15mins of work at maximum.
On Fri, 4 Sep 2020 at 01:17, Tomas Votruba<EMAIL_ADDRESS>wrote:

Better 👍
https://github.com/rectorphp/getrector.org/pull/173/files?short_path=8b10bce#diff-8b10bcefa798e66cf68ef789312f007a
[image: image]
https://user-images.githubusercontent.com/924196/92182575-4e7d9680-ee4c-11ea-896f-07707714f200.png
👏
How difficult is to make also white variant? So we can use it instead of
current text-picture mixed logo in the future
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rectorphp/getrector.org/pull/173#issuecomment-686811442,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACFGMOKE2EP2LNGJHOC3B3SEAPY7ANCNFSM4QU4L2JA
.

Could you verify if works correctly? (As you don't have Montserrat font installed, I'd have to uninstall it first to verify.)

Pufrect! Now we're a serious company :), thanks :+1:

🚀


feat(KONFLUX-3187): adding test selection logic for repo infra-deploy…

Add Rules for the infra-deployments so changes in a specific component in infra-deployments runs it's suite
If changes are out of components it runs the default konflux-demo suite
Fixed the getChangedFiles to look into infra-deployments adding to the e2e-tests

1- Examples from local Run :
in the tmp/infra-deployments created a new branch , edited README of components/integration  , added committed
ran the DryRun , so we expect that the LabelFilter have both "integration-service" and "konflux-demo":
exec: git "-C" "/home/kasemalem/integration-project/e2e-tests/tmp/infra-deployments" "diff" "--name-status" "main..HEAD"
I0815 15:47:48.094713  520112 utils.go:474] The following files, components/integration/README.md, were changed!
I0815 15:47:48.094747  520112 types.go:72] Loading the catalog for, infra-deployments, from category, tests
I0815 15:47:48.094759  520112 types.go:144] The following rules have matched Infra-deployments PR Components File Diff Execution.

exec: ginkgo "--seed=1723726067" "--timeout=1h30m0s" "--grace-period=30s" "--output-interceptor-mode=none" "--label-filter=,integration-service,konflux-demo" "--junit-report=e2e-report.xml" "--p" "--output-dir=." "./cmd" "--"

2- Example of local Run :
Changing only the README.md file in Infra-deployments folder so we expect that only the konflux-demo  run
exec: git "-C" "/home/kasemalem/integration-project/e2e-tests/tmp/infra-deployments" "diff" "--name-status" "main..HEAD"
I0815 16:01:32.736127  526636 utils.go:474] The following files, README.md, were changed!
I0815 16:01:32.736182  526636 types.go:72] Loading the catalog for, infra-deployments, from category, tests
I0815 16:01:32.736198  526636 types.go:144] The following rules have matched Infra Deployments Default Test Execution.
I0815 16:01:32.736203  526636 types.go:169] Will apply rules
exec: ginkgo "--seed=1723726891" "--timeout=1h30m0s" "--grace-period=30s" "--output-interceptor-mode=none" "--label-filter=konflux-demo" "--junit-report=e2e-report.xml" "--p" "--output-dir=." "./cmd" "--"

3- Example when no file was changed:
exec: git "-C" "/home/kasemalem/integration-project/e2e-tests/tmp/infra-deployments" "diff" "--name-status" "main..HEAD"
I0815 16:16:29.763682  534150 utils.go:461] Found no changed files.
I0815 16:16:29.763749  534150 types.go:72] Loading the catalog for, infra-deployments, from category, tests
I0815 16:16:29.763766  534150 types.go:144] The following rules have matched .
I0815 16:16:29.763772  534150 types.go:169] Will apply rules

Description
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
KONFLUX-3187
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:

[ ] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added meaningful description with JIRA/GitHub issue key(if applicable), for example HASSuiteDescribe("STONE-123456789 devfile source")
[ ] I have updated labels (if needed)

I think the only thing missing to be able to test this is the change in the magefile so that we can test/use against infra-deployments, right? Similar to this one
https://github.com/konflux-ci/e2e-tests/blob/b6d9fa1b514f05df2107e61326687fe2f570e1cb/magefiles/magefile.go#L328

agree,
I had this part , but for some reason after a rebase it was removed
I've added it back

@kasemAlem didn't you get any error when testing it?
➜  e2e-tests git:(KONFLUX-3187) ginkgo version
Ginkgo Version 2.17.3
➜  e2e-tests git:(KONFLUX-3187) ./mage -v local:runruledemo
Running target: Local:RunRuleDemo
exec: git "-C" "/Users/psturc/work/konflux-ci/e2e-tests/tmp/infra-deployments" "diff" "--name-status" "main..HEAD"
I0815 16:03:26.060423   28229 utils.go:474] The following files, components/build-service/README.md, were changed!
I0815 16:03:26.060714   28229 types.go:72] Loading the catalog for, infra-deployments, from category, tests
I0815 16:03:26.060733   28229 types.go:144] The following rules have matched Infra-deployments PR Components File Diff Execution.
I0815 16:03:26.060744   28229 types.go:169] Will apply rules
E0815 16:03:26.061081   28229 common.go:30] failed with [Syntax Error Parsing Label Filter
  ,build-service,konflux-demo
  Operator '||' missing left hand operand.

  Learn more at: http://onsi.github.io/ginkgo/#spec-labels
]
exec: ginkgo "--seed=1723730605" "--timeout=1h30m0s" "--grace-period=30s" "--output-interceptor-mode=none" "--label-filter=,build-service,konflux-demo" "--junit-report=e2e-report.xml" "--p" "--output-dir=." "./cmd" "--"

when I ran it, the comma at the beginning of the label filter expression caused a failure ^

@kasemAlem didn't you get any error when testing it?
➜  e2e-tests git:(KONFLUX-3187) ginkgo version
Ginkgo Version 2.17.3
➜  e2e-tests git:(KONFLUX-3187) ./mage -v local:runruledemo
Running target: Local:RunRuleDemo
exec: git "-C" "/Users/psturc/work/konflux-ci/e2e-tests/tmp/infra-deployments" "diff" "--name-status" "main..HEAD"
I0815 16:03:26.060423   28229 utils.go:474] The following files, components/build-service/README.md, were changed!
I0815 16:03:26.060714   28229 types.go:72] Loading the catalog for, infra-deployments, from category, tests
I0815 16:03:26.060733   28229 types.go:144] The following rules have matched Infra-deployments PR Components File Diff Execution.
I0815 16:03:26.060744   28229 types.go:169] Will apply rules
E0815 16:03:26.061081   28229 common.go:30] failed with [Syntax Error Parsing Label Filter
  ,build-service,konflux-demo
  Operator '||' missing left hand operand.

  Learn more at: http://onsi.github.io/ginkgo/#spec-labels
]
exec: ginkgo "--seed=1723730605" "--timeout=1h30m0s" "--grace-period=30s" "--output-interceptor-mode=none" "--label-filter=,build-service,konflux-demo" "--junit-report=e2e-report.xml" "--p" "--output-dir=." "./cmd" "--"

when I ran it, the comma at the beginning of the label filter expression caused a failure ^

fixed :
exec: ginkgo "--seed=1723739862" "--timeout=1h30m0s" "--grace-period=30s" "--output-interceptor-mode=none" "--label-filter=integration-service,konflux" "--junit-report=e2e-report.xml" "--p" "--output-dir=." "./cmd" "--"
exec: ginkgo "--seed=1723740122" "--timeout=1h30m0s" "--grace-period=30s" "--output-interceptor-mode=none" "--label-filter=konflux" "--junit-report=e2e-report.xml" "--p" "--output-dir=." "./cmd" "--"

@kasemAlem can you please also create a draft PR on infra-deployments side to pair it with this PR and basically validate this change with it?

created the draft PR https://github.com/redhat-appstudio/infra-deployments/pull/4351

Hey @psturc , could be that I'm doing it in a wrong way testing the changes of build service only ?
so what I did is to create locally in tmp/infra-deployments a new branch , then
performed two changes for two files each in different folder :
➜  infra-deployments git:(infra-test-selection) vim components/build-service/base/kustomization.yaml
➜  infra-deployments git:(infra-test-selection) ✗ vim components/build-service/README.md
➜  infra-deployments git:(infra-test-selection) ✗ git status
On branch infra-test-selection
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   components/build-service/README.md
	modified:   components/build-service/base/kustomization.yaml

no changes added to commit (use "git add" and/or "git commit -a")
➜  infra-deployments git:(infra-test-selection) ✗ git add components/build-service/README.md components/build-service/base/kustomization.yaml
➜  infra-deployments git:(infra-test-selection) ✗ git commit -m "hhx"
[infra-test-selection 2adafb42] hhx
 2 files changed, 2 insertions(+), 1 deletion(-)

after that I ran the  demo mage file :
➜  e2e-tests git:(KONFLUX-3187) ✗ ./mage -v local:runruledemo
Running target: Local:RunRuleDemo
exec: git "-C" "/home/kasemalem/integration-project/e2e-tests/tmp/infra-deployments" "diff" "--name-status" "upstream/main"
I0818 18:39:43.508994 2434013 utils.go:473] The following files, components/build-service/README.md, components/build-service/base/kustomization.yaml, were changed!
I0818 18:39:43.509036 2434013 types.go:72] Loading the catalog for, infra-deployments, from category, tests
I0818 18:39:43.509051 2434013 types.go:144] The following rules have matched Infra-deployments PR Components File Diff Execution.
I0818 18:39:43.509055 2434013 types.go:157] DryRun has been enabled will apply them in dry run mode
exec: ginkgo "--seed=1723995582" "--dry-run" "--timeout=1h30m0s" "--grace-period=30s" "--output-interceptor-mode=none" "--label-filter=build-service,konflux" "--junit-report=e2e-report.xml" "--p" "--output-dir=." "./cmd" "--"

Hey @psturc , could be that I'm doing it in a wrong way testing the changes of build service only ?
so what I did is to create locally in tmp/infra-deployments a new branch , then
performed two changes for two files each in different folder :
...

@kasemAlem  I was updating only components/build-service/base/kustomization.yaml, then I saw the issue

Hey @psturc , could be that I'm doing it in a wrong way testing the changes of build service only ?
so what I did is to create locally in tmp/infra-deployments a new branch , then
performed two changes for two files each in different folder :
...

@kasemAlem I was updating only components/build-service/base/kustomization.yaml, then I saw the issue

let me try to run same scenario in the infra-deployments PR I've created https://github.com/redhat-appstudio/infra-deployments/pull/4351

/unhold


Import Atlantis as a module in Objective-C

Update README.

Thanks @zhangqifan looks good to me 👍


Traccar demo server configuration

hi,
Is it possible to get some idea of the hardware configuration of the demo servers used by traccar at the moment with an approximate idea of the number of devices/user accounts currently on the server? This will greatly help in choosing hardware for bigger deployments. Thanks

Main demo server
4 Cores, 7 GB memory

15k registered users
9.5k registered devices

Second demo server
2 Cores, 4 GB memory

1.5k registered users
1k registered devices

Number of active users and device is unknown.

Fantastic. Thanks :+1:


Api Limit Request

Just to let you know that having a delay of 2 seconds or less that 1 time on 3 we get an error that the api exceed the limit.
I'm currently using a delay of 3000 and it seems to be good!
Pretty use Nvidia put that limit yesterday with their new reCaptcha.

I haven't notice any of these errors myself which version are you running and what region?

I just updated to the last version like 10 minutes ago, and I'm currently using the region CAN .
It's more like 1 time on 20 now (with 2000ms)
Here is the error: https://i.imgur.com/3o8zUlh.png

Same error

More info here: https://www.reddit.com/r/nvidia/comments/iyaa48/captcha_will_not_help_mitigate_against_bots_as/

I mean you'll see these no matter what, you're getting rate limited globally with all other NVIDIA users. We don't use bakeoff/retry logic because frankly nobody else is going to which is going to leave our users at a disadvantage if we implement it.


[docs] add typings for __TAURI_ISOLATION_HOOK__.

Currently it's suggested to use untyped JavaScript for implementing the __TAURI_ISOLATION_HOOK__.
Recently I tried to implement the hook in TypeScript with Vite, but I recieve type errors. There doesn't seem to be official typings for __TAURI_ISOLATION_HOOK__. What is the general structure of an isolation payload? Does it change often, or is it always the same structure?

Yes, I have encountered the same situation. It seems that currently using JavaScript instead of TypeScript for __TAURI_ISOLATION_HOOK__ works.


Create operation to return all elements

This could be implemented in Accumulo using a Range with infinite start and end keys.
This should probably be a core operation.

The accumulo store inserts all edges both ways round so we need to make sure that when all the elements are returned via the new operation we don't return these extra flipped edges. In order to differentiate the flipped undirected edges we need to add an additional flag to the edge key bytes.

Pull request approved and merged in to develop branch.


Navbar update for the search-bar

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---
Not ready to be merged.

📦 Published PR as canary version: 20.16.8--canary.465.3a0a03911e3b65cf7ed894498a01ba708707ccda.0

:sparkles: Test out this PR locally via:
npm install<EMAIL_ADDRESS># or
yarn add<EMAIL_ADDRESS>

if the navbar is supposed to stretch across the whole screen, then everything is fine from my side


Favorite nodes in create node window not being saved

Godot version:
3.1.alpha
When I select a node as favorite in the create node window and reboot the editor it won't be in the favorites list anymore. It seems they aren't saved.

@avencherus Sadly that is not the cause, I actually fixed that bug yesterday and it still didn't work.


tree_transpose now checks treedef vs expected_treedef

Fixes https://github.com/google/jax/issues/19810
Description:

tree_transpose now checks treedef vs expected_treedef

However, structures with custom nodes can lead to expected_treedef != treedef situations, in this case an additional step is done: flatten(unflatten(expected_treedef, flat)) to updated expected_treedef before raising an error.
Maybe, we can achieve the same results in a more efficient way, i'll be happy to implement it, instead of doing flatten(unflatten(...)).
cc @jakevdp

Thanks for this – I'm going to have to think on whether this is the right approach. If we end up adding this validation, I think we should start with a deprecation warning because the current behavior has existed for so long.
I'm going to assign to @mattjj to get his thoughts here.

@mattjj existing tests like testTranspose21, testTransposeWithCustomObject, testTranspose22 using FlatCache were failing with the first expected_treedef != treedef check.
Here is more info from testTransposeWithCustomObject:
we have the following test code: https://github.com/google/jax/blob/632e92d085806cea48afb2d821dceb7f9cf87b16/tests/tree_util_test.py#L620-L626
The object FlatCache({"a": [3, 4], "b": [5, 6]}) has the following treedef returned by tree_flatten:
PyTreeDef(CustomNode(FlatCache[PyTreeDef({'a': [*, *], 'b': [*, *]})], [*, *, *, *]))

whereas outer_treedef and inner_treedef have the following treedefs:
outer_treedef:  PyTreeDef(CustomNode(FlatCache[PyTreeDef({'a': *, 'b': *})], [*, *]))
inner_treedef:  PyTreeDef([*, *])

so this leads to:
outer_treedef.compose(inner_treedef):  # expected_treedef
PyTreeDef(CustomNode(FlatCache[PyTreeDef({'a': *, 'b': *})], [[*, *], [*, *]]))
# vs
# PyTreeDef(CustomNode(FlatCache[PyTreeDef({'a': [*, *], 'b': [*, *]})], [*, *, *, *]))

So, expected_treedef is different from treedef of the pytree_to_transpose in tree_transpose:
https://github.com/google/jax/pull/22340/files#diff-535cc9185ca10bcb06b3dd63d1a214d4e3e2058048717edbc8df2abfb913c49cR389
Hope this better shows the problem I tried to solve with flatten(unflatten(expected_treedef, flat)).

@mattjj do you have any comments on this PR? Thanks


Issues

[ ] PHP Unit Test Cases
[ ] Typo: Installation in README.md

README Ref: https://github.com/vinta/paranoid-auto-spacing/blob/master/README.md


NIH-UIUC RIFTcov model

Description
Submitting first disparities round projections from the NIH-UIUC team.
Checklist

[X ] Specify a proper PR title with your team name.
[x] All validation checks ran successfully on your branch. Instructions to run the tests locally is present here.

Hi @BarnabyLlama ,
Thank you for your submission, I just wanted to verify that I understand correctly the sample ID numbering: there is no stochasticity, every models runs has a different run_grouping "grouped" by race_ethnicity, location, horizon, and, target. Is that correct?
Please let me know if any issues or questions,
Best, Lucie

Hi @LucieContamin ,
The model is deterministic, no stochasticity - every run_grouping should match a single run that included all values for race_ethnicity, horizon, and target. I think I might have included location, but I realize pairing run_grouping == 1 for 06 with run_grouping == 1 for 37 is meaningless; I will fix this today and resubmit.
Sophie

@LucieContamin Should be current now. I have updated run_grouping so that each value represents a unique, location-specific run containing a set of all race_ethnicity, target, and horizon values.

Hi @BarnabyLlama ,
Thank you for the update! It looks all good!
Best, Lucie


Add missing hystrix field

Without this, Turbine throws: ReferenceError: rollingCountBadRequests is not defined(…)
https://github.com/Netflix/Hystrix/wiki/Metrics-and-Monitoring#cumulative-and-rolling-event-counts

@silent I haven't had a chance to merge these PTS, but I will soon. Out of curiosity what version of turbine are you seeing this issue in?

Whatever that's in this docker image: fabric8/turbine-server:1.0.17


Implement the functionnality which allows the admin to add pictures from USB device/remote server.

todo :

[ ] make the front send the images as base64 to websocket
[ ] store images on backend


how to use it as lib

i want to use it as a lib in my project.
my app is in qt .
i want to make a function that will use a path and return the file info.
but how i do that?

There are several examples in the Windows library archive.
Also available in Example directory in source code (.h).


Memleak in clang::Index

clang::Index creates an instance of CXIndex in its constructor.
However, it will never be freed.
Suggested fix:
Add a denstructor and call clang_disposeIndex(cx_index) in it.

Thank you, I'll fix it Tomorrow morning


Why or what is different from gridmanager.js?

Why or what is different from gridmanager.js?
Thanks

Good question.
I wrote this because I started out using gridmanager.js, but got frustrated with the source-code.
As far as I can tell, these are the differences:
Advantages over gridmanager.js

Simplified visual layout, using only rows of buttons.
Row adding buttons show a visual preview of the layout that will be added.
Source code is about half shorter, and IMHO easier to read, and as such, easier to modify.
Dragging columns to different rows works.
Editing 'tablet' or 'phone' columns shows a preview of the page width.
Controls are sticky at the top of the window.

Disadvantages over gridmanager.js

Only extensively tested in google Chrome so far.
Multiple "editable regions" in a column not supported. This could also be seen as an advantage, as it makes thing simpler, and most people won't need it.

That sounds great!
Can we replace the div content and update grid editor?
Would be nice to register to events like on change, save... Don't get the saveremote as being the only saving option.
I'll definitely take a look at your version of it.
Sent from Type Mail
On 04:10, 2015-03-04, at 04:10, Epskampie<EMAIL_ADDRESS>wrote:

Good question.
I wrote this because I started out using gridmanager.js, but got
frustrated with the source-code.
As far as I can tell, these are the differences:
Advantages over gridmanager.js

Simplified visual layout, using only rows of buttons.
Row adding buttons show a visual preview of the layout that will be
added.
Source code is about half shorter, and IMHO easier to read, and as
such, easier to modify.
Dragging columns to different rows works.
Editing 'tablet' or 'phone' columns shows a preview of the page
width.
Controls are sticky at the top of the window.

Disadvantages over gridmanager.js

Only extensively tested in google Chrome so far.
Multiple "editable regions" in a column not supported. This could
also be seen as an advantage, as it makes thing simpler, and most
people won't need it.

Reply to this email directly or view it on GitHub:
https://github.com/Frontwise/grid-editor/issues/1#issuecomment-77120804

So, did you look into it? If desired, I could add some events, but please explain more clearly the functionality you want.

I did! I'm offering both options at the moment but prefer yours. Indeed your code was easier to manage and adapt. I added a save button next to the desktop button. It deinit, settings.onSave() and init. So on initialization of the grid i pass an onSave function.
I think this is a simple and good way for user to override default behaviors of the grid-editor.
I dont know the easy way of sending you a push request. Is there an easier way to send you my mod by email?

U see i wrote push request and it was pull LOL

Cool, if you want, just zip it up, upload it on https://www.wetransfer.com/ , and post the link here. I'll take a look at it.

Also, out of curiosity, can you tell me what project are you using it for?

I am making a form editor/viewer. I'll be able to give you a preview soon. Optionally, the user would use it to create a template for a page or group or element layout.
here's the link
http://we.tl/Vqg7VCJSuP

Works fine in Firefox 40.

Are there a simple way to use CKEditor instead tinyMCE? thanks

Yes it is possible.

Thanks! Let me ask before I try: you didn't touch the gridmanager.js? the line
 'content_types' : ['tinymce'],"
stays or now you use  something like 'content_types': ['tinymce', 'summernote' ]?
thanks

You are refering to this line :
https://github.com/Frontwise/grid-editor/blob/master/src/js/jquery.grideditor.js#L58 ?
That is just the default value of the settings as far as I understand the code.
You can overwrite those default value in teh decalration of grideditor:
        $('#myGrid').gridEditor({
                new_row_layouts: [[12], [6,6], [9,3]],
                content_types: ['summernote'],
        });


[v2-branch only] Require Python 3.7+

Supported by setuptools since v24.2.0 (commit) and pip since v9.0.0 (commit).
See also PR boto/botocore#2170 and PEP 345.

Codecov Report

Merging #2182 into v2 will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##               v2    #2182      +/-   ##
==========================================
- Coverage   97.60%   97.59%   -0.01%
==========================================
  Files          56       56
  Lines       10424    10424
==========================================
- Hits        10174    10173       -1
- Misses        250      251       +1

Impacted Files
Coverage Δ

botocore/credentials.py
98.54% <0.00%> (-0.11%)
: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 84a07b1...c7a8cda. Read the comment docs.

Hi @michael-k, Botocore v2 isn't managed from this repository. It looks like this did make it into the relevant repo though.

Botocore v2 isn't managed from this repository

Any more I suppose.  Otherwise https://github.com/boto/botocore/pull/2170 wouldn't make sense :shrug:


some tiles not refresh after zoom

the version of osmdroid  is 4.3. I run the project on the Samsung  t520, which the version of android is 4.4.2
mapView.getController().setZoom(5), then I wait for seconds, some tiles is not show, then i move the map,  all tiles show.
someone meet this problems?

I have the same problem. My problem is that when add another TilesOverlay, then when zoom in or zoom out, the map is incomplete. I move the map then all tile is shown.

i've noticed that behavior too. maybe need to manually call refresh on secondary tile ovelrays

@spyhunter99, do you know how to refresh the secondary tile ovelray manually?

try mapview.invalidate

@spyhunter99 ,I modify the source code, add mapview.invalidate() at the end of  DefaultOverlayManager.onDraw()  method, and solved my problem, thanks.

although that solution may work, essentially, it should end up calling the
ondraw method again. It may be better to do an overlay scan and look for
overlays that extend tilesoverlay, then force a redraw on those
On Thu, Jan 28, 2016 at 11:04 PM, secondflying<EMAIL_ADDRESS>wrote:

@spyhunter99 https://github.com/spyhunter99 ,I modify the source code,
add mapview.invalidate() at the end of DefaultOverlayManager.onDraw()
method, and solved my problem, thanks.
—
Reply to this email directly or view it on GitHub
https://github.com/osmdroid/osmdroid/issues/52#issuecomment-176563651.

Is there any solution provided for this problem? Because I propably encountered similar problem and I don't know if I should open new issue. I wrote it on described it on stackoverflow. http://stackoverflow.com/questions/35393295/zooming-in-out-some-tiles-not-rendering-osmdroid-offline-maps

Having the same issue with MBTiles layers. I can try to solve this as you describe with a mapview.invalidate but I have a related issue where onZoom is not being fired if you do a double or a  2 finger pinch to zoom.

please retry with 5.4.1

#496 related

please retry with the latest version (after reading that related ticket). it may be related to threading and queue sizes. Since this ticket is now very old with no feedback. I'm going to close it. Reopen or comment back if  this is still an issue for you @hlaurent

same to me using 5.6.5. zoom, then move and have a lot gray area. zoon out and in...and shows.using  offline map tiles


Tint color

I know this may not be an issue but more like a suggestion.
I have this orange background when I click on the item selected. Does anyone maybe know why? Could I change this to some ripple effect with custom color?
Thanks.

Could you please provide some more information? What Android version? Can you please post your XML? Have you changed the background for the spinner? By default, a ripple drawable is used on Android 5.0+.

I imported the NiceSpinner directly and made some configurations in code to change the background color, but I used the standard xml format and only changed the ms:background_color or something like that. The color was set to @color/green and not any drawable so I could not find what was causing the orange background. I still have the same problem when clicking on the calendar items, so I guess the problem is not in the library itself, but I do suggest you add some sort of setTintColor or something like that, to override the background color on click?
I was testing on Nexus 10 which has Android version 5.1.2 I think.

spinner.setBackgroundColor(int) does what you are looking for.


Please add fullscreen button option "fs" to IFramePlayerOptions

When useWebUi is true, the fullscreen button is hidden by default.
I think it is better to provide an method for passing custom flag when building IFramePlayerOptions.
Thank you for your consideration.

The point of using web ui is that there is not UI overlay over the YouTube player. Adding a full screen button would go against this idea.
Your problem can be easily solved by building your own custom UI.


Fratture request: css loader

Make a custom CSS loader so we can make custom themes that we can easly share with other comunity members (also you could make a category for the chats about your projects on your Ds server)

Added in d552a95


Support credential profiles

I just had some difficulty getting the Daemon running locally due to the way I have my credentials configured.  To get things to work, I ultimately had to change my [default] credentials.  This request is to add support for credential profiles.  It's possible this can work another way, I just couldn't find it documented.
For reference, here is a sample credentials file.
[mike]
aws_access_key_id = AKIAZZZZZZZZZZZZ1234
aws_secret_access_key = abcdefghiljekls+JB2AupNJKv9
[corp]
aws_access_key_id = AKIAXXXXXXXXXXX5678
aws_secret_access_key = zyxwvutsrqponm+1CPiUFxYw
[default]
aws_access_key_id = AKIAZZZZZZZZZZZZ1234
aws_secret_access_key = abcdefghiljekls+JB2AupNJKv9

And here is the sample config file to go with that:
[profile mike]
region = us-east-1
[profile corp]
output = json
region = us-east-1
[profile corpdev]
output = json
region = us-east-1
role_arn = arn:aws:iam::123412341234:role/corp-dev-account-role
source_profile = corp
[default]
output = json
region = us-east-1

I would like to set an environment variable of AWS_PROFILE=corpdev or pass a command-line argument and have the Daemon use the specified profile's configuration/credentials.
I was able to confirm that the corpdev profile permissions were sufficient by running the following CLI:
aws xray put-trace-segments --trace-segment-documents "{\"trace_id\": \"1-5f84854a-b250fd33b4dd6208733a59df\", \"id\": \"ebd6c854cd28bca2\", \"start_time\":<PHONE_NUMBER>, \"in_progress\": true, \"name\": \"Scorekeep-build\"}" --profile corpdev
I tried passing the role directly like -r  "arn:aws:iam::123412341234:role/corp-dev-account-role" but that resulted in an AccessDenied error indicating the user from my [mike] (same as [default]) profile did not have permsission to assume that role (which is accurate).
In order to move on, I simply changed by [default] profile to be the [corp] profile and I pass the corp-dev-account-role ARN in as a -r command line option and it works.
This was pretty difficult to diagnose due to the default logging information available:

Without changing the log level, all of the credential errors are absorbed and the messages seem to indicate everything was sent fine but nothing appears in the console.
With logging set to dev, there are a number of JSON parsing errors that seem to indicate an error but they're apparently expected (#22).

Hi @mousedownmike ,
Thanks for the feedback
X-Ray Daemon is using AWS SDK Go to send requests to AWS service endpoint and based on AWS Go's documentation, you can specify which profile to use by setting AWS_PROFILE as an environment variable. That way AWS_PROFILE will be applied by AWS Go (and Daemon that is running locally).
We're planning to support passing a command-line argument when running Daemon locally and we'll put this in our backlog. Also you're always welcome to submit a PR to contribute.
Thanks

@lupengamzn, I did try setting the AWS_PROFILE environment variable and it had no effect on running the daemon with the profile as I described it above (i.e. a profile that uses a source_profile).

The curious thing is that I develop in Go and use the aws-sdk-go for my projects.  In those projects, the AWS_PROFILE environment variable is respected and works for the profile configuration I defined above.  Assuming the daemon is using a recent version of the SDK, this seems like a strange issue.
I will try to find some time to dig a little deeper into this and report back.

Hey @mousedownmike ,
I just tried this on my end with X-Ray Daemon v3.2.0 that is using AWS SDK Go v1.25.42 and I can send traces to X-Ray through AWS Cli with the existence of source_file similar to your config file, but getting errors when running the Daemon. Can you provide some error logs here? I assume this may be due to the AWS SDK Go version, let me try this with an updated AWS Go version and get back to you soon.
Thanks

Hi @mousedownmike ,
Thanks for the feedback
X-Ray Daemon is using AWS SDK Go to send requests to AWS service endpoint and based on AWS Go's documentation, you can specify which profile to use by setting AWS_PROFILE as an environment variable. That way AWS_PROFILE will be applied by AWS Go (and Daemon that is running locally).
We're planning to support passing a command-line argument when running Daemon locally and we'll put this in our backlog. Also you're always welcome to submit a PR to contribute.
Thanks

Created a pull request for this. Could you please review?

@lupengamzn I'm using the Docker image with the following Dockerfile.
FROM amazonlinux
RUN yum install -y unzip
RUN curl -o daemon.zip https://s3.dualstack.us-east-2.amazonaws.com/aws-xray-assets.us-east-2/xray-daemon/aws-xray-daemon-linux-3.x.zip
RUN unzip daemon.zip && cp xray /usr/bin/xray
ENTRYPOINT ["/usr/bin/xray", "-t", "<IP_ADDRESS>:2000", "-b", "<IP_ADDRESS>:2000"]
EXPOSE 2000/udp
EXPOSE 2000/tcp

This is the run configuration:
docker build -t xray-daemon .
&& docker run
-p 2000:2000/udp
--env AWS_REGION=us-east-1
--env AWS_PROFILE=myprofile
-v /home/mike/.aws:/root/.aws:ro
--net host
xray-daemon -l dev -o

Here is the output I'm getting:
2020-10-29T22:02:21Z [Info] Initializing AWS X-Ray daemon 3.2.0
2020-10-29T22:02:21Z [Debug] Listening on UDP <IP_ADDRESS>:2000
2020-10-29T22:02:21Z [Info] Using buffer memory limit of 156 MB
2020-10-29T22:02:21Z [Info] 2496 segment buffers allocated
2020-10-29T22:02:21Z [Debug] Using proxy address:
2020-10-29T22:02:21Z [Debug] Fetch region us-east-1 from environment variables
2020-10-29T22:02:21Z [Info] Using region: us-east-1
2020-10-29T22:02:21Z [Debug] ARN of the AWS resource running the daemon:
2020-10-29T22:02:21Z [Debug] No Metadata set for telemetry records
2020-10-29T22:02:21Z [Debug] Using Endpoint: https://xray.us-east-1.amazonaws.com
2020-10-29T22:02:21Z [Debug] Telemetry initiated
2020-10-29T22:02:21Z [Info] HTTP Proxy server using X-Ray Endpoint : https://xray.us-east-1.amazonaws.com
2020-10-29T22:02:21Z [Debug] Using Endpoint: https://xray.us-east-1.amazonaws.com
2020-10-29T22:02:21Z [Debug] Batch size: 50
2020-10-29T22:02:21Z [Info] Starting proxy http server on <IP_ADDRESS>:2000
2020-10-29T22:02:38Z [Debug] Received request on HTTP Proxy server : /GetSamplingRules
2020-10-29T22:02:38Z [Debug] processor: sending partial batch
2020-10-29T22:02:38Z [Debug] processor: segment batch size: 1. capacity: 50
2020-10-29T22:03:02Z [Error] Unable to sign request: NoCredentialProviders: no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors
2020/10/29 22:03:02 http: proxy error: context canceled
2020-10-29T22:03:15Z [Error] Sending segment batch failed with: NoCredentialProviders: no valid providers in chain. Deprecated.
	For verbose messaging see aws.Config.CredentialsChainVerboseErrors
2020-10-29T22:03:15Z [Warn] Delaying sending of additional batches by 0 seconds

@mousedownmike  NoCredentialProviders means AWS SDK cannot find the profile defined in environment variable AWS_PROFILE.
Please check your credential, does it contain [corpdev] ？
For reference, here is a sample credentials file.

[mike]
aws_access_key_id = AKIAZZZZZZZZZZZZ1234
aws_secret_access_key = abcdefghiljekls+JB2AupNJKv9
[corp]
aws_access_key_id = AKIAXXXXXXXXXXX5678
aws_secret_access_key = zyxwvutsrqponm+1CPiUFxYw
[default]
aws_access_key_id = AKIAZZZZZZZZZZZZ1234
aws_secret_access_key = abcdefghiljekls+JB2AupNJKv9

And here is the sample config file to go with that:

[profile mike]
region = us-east-1
[profile corp]
output = json
region = us-east-1
[profile corpdev]
output = json
region = us-east-1
role_arn = arn:aws:iam::123412341234:role/corp-dev-account-role
source_profile = corp
[default]
output = json
region = us-east-1

@wangzlei yes, my credentials are set up like that.  I was able to verify that the profiles work using the AWS CLI and I use them in my own Go code.  I'm going to try building and running the daemon from the source when I have a spare moment. Would you recommend using the 3.2.0 tag to emulate the version that's being distributed?

Hey @mousedownmike ,
Seems like it's an issue with AWS SDK Go, and we're contacting them for more information.
May I know why you're using source_profile and role_arn in config file? Are you trying to grant specific permissions to role_arn using credentials from source_profile? If so, we do provide configuration option for you to do that and you may try adding -r --role-arn when you configure Daemon, see link

Lanks @lupengamzn , I have tried the --role-arn option but that still requires that my profile have use of that role.  My scenario is brought up by my use of an Organization with multiple accounts.  I have been able to remove discreet users from the sub accounts and instead use an assumed role from the "parent" account.  It took a while to figure out the details but I have found that I can have a profile that uses my parent account credentials from a (non-default) named key and then assume the role for the sub-account.  This way I can choose to use either my parent account profile to access resources in the parent account or I can use the sub-account role via the parent account credentials.
It works great with the cli and with my local Go programs that use the AWS SDK..  The daemon is the only tool where I've had issues which still makes me suspect I'm doing something wrong.  When I have a moment I'll try running it from source to see if I can help discover the issue.

@mousedownmike Have you ever tried AWS_SDK_LOAD_CONFIG=1 before launching xray daemon?

When I set AWS_SDK_LOAD_CONFIG=1 the daemon doesn't start and I get the following output:
$ export AWS_SDK_LOAD_CONFIG=1
$ export AWS_PROFILE=corpdev
$ ./xray -l dev -o
2020-11-05T07:18:27-08:00 [Info] Initializing AWS X-Ray daemon 3.2.0
2020-11-05T07:18:27-08:00 [Debug] Listening on UDP <IP_ADDRESS>:2000
2020-11-05T07:18:27-08:00 [Info] Using buffer memory limit of 156 MB
2020-11-05T07:18:27-08:00 [Info] 2496 segment buffers allocated
2020-11-05T07:18:27-08:00 [Debug] Using proxy address:
2020-11-05T07:18:27-08:00 [Error] Cannot fetch region variable from config file, environment variables and ec2 metadata.

@mousedownmike
Can you confirm your corpdev profile specifies the region? Would you mind PMing or posting a redacted file, so we can repro this?
Thanks!

@mousedownmike yeah, that means your profile takes effect, but might forget to set export AWS_REGION=us-east-1

@wangzlei you are correct, I did not have AWS_REGION set.  Here's what I get with it set:
$ export AWS_PROFILE=corpdev
$ export AWS_REGION=us-east-1
$ export AWS_SDK_LOAD_CONFIG=1
$ ./xray -l dev -o
2020-11-09T16:30:05-08:00 [Info] Initializing AWS X-Ray daemon 3.2.0
2020-11-09T16:30:05-08:00 [Debug] Listening on UDP <IP_ADDRESS>:2000
2020-11-09T16:30:05-08:00 [Info] Using buffer memory limit of 156 MB
2020-11-09T16:30:05-08:00 [Info] 2496 segment buffers allocated
2020-11-09T16:30:05-08:00 [Debug] Using proxy address:
2020-11-09T16:30:05-08:00 [Debug] Fetch region us-east-1 from environment variables
2020-11-09T16:30:05-08:00 [Info] Using region: us-east-1
2020-11-09T16:30:05-08:00 [Debug] ARN of the AWS resource running the daemon:
2020-11-09T16:30:05-08:00 [Debug] No Metadata set for telemetry records
2020-11-09T16:30:05-08:00 [Debug] Using Endpoint: https://xray.us-east-1.amazonaws.com
2020-11-09T16:30:05-08:00 [Debug] Telemetry initiated
2020-11-09T16:30:05-08:00 [Info] HTTP Proxy server using X-Ray Endpoint : https://xray.us-east-1.amazonaws.com
2020-11-09T16:30:05-08:00 [Debug] Using Endpoint: https://xray.us-east-1.amazonaws.com
2020-11-09T16:30:05-08:00 [Debug] Batch size: 50
2020-11-09T16:30:05-08:00 [Info] Starting proxy http server on <IP_ADDRESS>:2000
2020-11-09T16:31:05-08:00 [Debug] Skipped telemetry data as no segments found
2020-11-09T16:31:09-08:00 [Debug] Received request on HTTP Proxy server : /GetSamplingRules
2020/11/09 16:31:10 http: proxy error: context canceled
2020-11-09T16:31:42-08:00 [Debug] Received request on HTTP Proxy server : /GetSamplingRules
2020/11/09 16:31:42 http: proxy error: context canceled

I finally found some time to dig into the code here and discovered that getDefaultSession() wasn't enabling the SharedConfigState option.  When I change it to:
result, serr := session.NewSessionWithOptions(session.Options{SharedConfigState: session.SharedConfigEnable})

My profile is loaded (assuming I have AWS_PROFILE set to what I want).  Additionally, I don't have set the AWS_REGION environment variable because that is available in the session using:
es := getDefaultSession()
awsRegion = *es.Config.Region
if awsRegion == "" {
	_ = log.Error("Unable to fetch region from session config")
} else {
	log.Debugf("Fetched region %v from session config", awsRegion)
}

These changes are isolated to conn.go so I'll open a PR.

This works now? Close this issue?


Adding job summary to Reusable Workflow

Added markdown job summary output, consuming workflows will now get a nice cost summary in their workflow run.

I may need to add rounding to the estimate :)

Love it!

I may need to add rounding to the estimate :)

I was going to round in the bash script, but felt like the proper option was to delay what was in the json.
Adding a currency symbol might also be useful 😄

Adding a currency symbol might also be useful 😄

You mean like $ or €?


Add more verified icons

Idea
I think there should be more verified icons in the Multiplayer screen, but not only secure. In this case, you can see the server status in the Multiplayers screen.
Reasoning
I want to see the server status in the Multiplayers screen.
Other Information
No response

That's good, but I think I can edit server safety manually, such as mark a server as safe.

In that case, why add this to NCR at all? You could just rename the server as you like.

I think an "insecure" icon could be considered when #296 is implemented, but any manual editing per-server is not only inaccurate but also serves very niche use cases in general.

Yeah, so can NCR cache it?


Small fixing

Follow this checklist for submitting a pull request (PR):

[X] Your branch is up-to-date with the main branch.
[X] You are submitting your PR against the main branch of the repository you are contributing to from your fork.
[X] You have linked your GitHub issue at the Resolves Issue section if it exists.
[X] You have provided a brief description of the issue.

Description

Field validation module;
Comments can be posted using crtl + Enter;
Smaller alt text when image doesnt load;

Send comment shortcut and and field validations can be easily implemented using what is already done;
As I have to finish the network. page, I'll leave it undone and create an issue to encourage new contributors.

@Ronnie018 You know you don't need my review on these things right? If it works push it and merge it. This is just as much your baby as it is mine. But the code looks good to me. Does the site still launched with this unfinished?

You know, I'm not sure if my code can break anything, so I ask for code review.

You know, I'm not sure if my code can break anything, so I ask for code review.

sometimes i fix a bug but i don't know exactly how, and i'm afraid that it wasn't really fixed

I just gave you admin access to firebase I'm going to give you admin access to everything as soon as I remember how to!
I figured out the security warning and I updated the rule.
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if
          request.time < timestamp.date(2023, 2, 1);
    }
  }
}

sometimes i fix a bug but i don't know exactly how, and i'm afraid that it wasn't really fixed

if someone else merges it, it gives me a little more security

sometimes i fix a bug but i don't know exactly how, and i'm afraid that it wasn't really fixed

if someone else merges it, it gives me a little more confidence

So I thought it was the firewall making your picture black but it is actually your image. You should make it your sisters batty jr. LOL :laughing:

So I thought it was the firewall making your picture black but it is actually your image. You should make it your sisters batty jr. LOL 😆

I tried to change it once, i'll make it later if i can remember

I figured out the security warning and I updated the rule.

great, was it to hidden?

I just gave you admin access to firebase I'm going to give you admin access to everything as soon as I remember how to!

thank you so much

I merge my stuff all the time. If the sites still working and I made some kind of progress in the right direction even if it's not finished I push it that way when I'm finished my work is still up to date with the main
Everyone on github uses fake pictures.  Why is that? Is it an alias thing to hide real identity's ?

No it was  request.time < timestamp.date(2023, 2, 1);  I had it set to 2023, 1, 12 . I forgot about setting it when I made the firebase

if it's not finished I push it that way when I'm finished my work is still up to date with the main

good to know

fake photos: Is it like some top secret hacker stuff? Because one of my mentors is a sketch ball with security and he uses a completely fake github account. He would shut it right down if he knew I knew it was his.

Everyone on github uses fake pictures. Why is that? Is it an alias thing to hide real identity's ?

I don't know about the others, but I always think about putting them on, but I forget.

if it's not finished I push it that way when I'm finished my work is still up to date with the main

Oh man you think I've been turning in crappy work this whole time, I'm heart broken Ronnie.  But I don't have much in the cloud  and please be careful with the cloud because I haven't set up payments. I'm trying to save the free credits for when I'm released.

No, if you know it's all right, as i said i just choose to wait for review because of this feeling that if i merge it and break something, i can not remember that it was me, and upset someone. its a confidence thing

😉 I figured out the firebase permissions you know have access to all firebase and cloud resources for this site. But I don't have much in the cloud and please be careful with the cloud because I haven't set up payments. I'm trying to save the free credits for when I'm free to use them.

got it, i'll be carefull

the cloud is a different platform so you'll immediately know when you navigated to the other site. I have earned a certificate  for google cloud and can't wait to be able to set some stuff up on it. put my training to good use.

i can not remember that it was me, and upset someone. its a confidence thing

what I do is make my merge, fetch the repository to the main on my editor, and run the site. If it is working then, I'm good to go and if it is not I go back to github and reverse the merge. Try to test it between each merge. You could not upset me unless you erased the repository. Everything else is reversible. Like I said this is just as much yours as it is mine. And Confidence, :raised_eyebrow: Your better at this then me and I'm killing it. Winning so hard! So I'll have none of that talk mister. We are amazing. We are Unicorns in the making


Error with MathProgBase.getconstrmatrix

I got an error when accessing the constraint matrix of an LP through MathProgBase.getconstrmatrix (see code below). The error appears in Julia 0.6 and 0.7.
import Mosek
import MathProgBase
const MPB = MathProgBase

A = sparse([
    [1.0 1.0];
    [0.0 1.0]
])

c = [0.0, 0.0]

collb = [0.0, 0.0]
colub = [Inf, Inf]
rowlb = [1.0, 1.0]
rowub = [1.0, 1.0]

m = MPB.LinearQuadraticModel(Mosek.MosekSolver())
MPB.loadproblem!(m, A, collb, colub, c, rowlb, rowub, :Min)

MPB.getconstrmatrix(m)

The last line will raise the error
ERROR: DimensionMismatch("tried to assign 2 elements to 1 destinations")
Stacktrace:
 [1] throw_setindex_mismatch(::Array{Int64,1}, ::Tuple{Int64}) at ./indices.jl:92
 [2] setindex_shape_check(::Array{Int64,1}, ::Int64) at ./indices.jl:143
 [3] setindex!(::Array{Float64,1}, ::Array{Int64,1}, ::UnitRange{Int64}) at ./array.jl:597
 [4] getconstrmatrix(::Mosek.MosekMathProgSolverInterface.MosekLinearQuadraticModel) at /home/mathieu/.julia/v0.6/Mosek/src/MosekLPQCQPInterface.jl:414

I think this is due to the fact that Mosek.getarow(m.task, i) (at l.393 of MosekLPQCQPInterface.jl) returns a 3-tuple, which is unpacked as a 2-tuple:
subj,valj = Mosek.getarow(m.task,i)     # current
_, subj,valj = Mosek.getarow(m.task,i)  # fix

subj ends up being the index of the constraint, and valj ends up being the array of column indices.
[Edit] Running the same code as above, but with
A = sparse([
    [1.0 1.0];
    [0.0 1.0]
])

will not raise any error, but returns a wrong matrix:
2×2 SparseMatrixCSC{Float64,Int32} with 2 stored entries:
  [1, 1]  =  1.0
  [2, 1]  =  2.0

I have fixed some problems related to this. The latest branch "b0.9" should fix it - if not, please reopen this issue.


[Feature][Zeta][REST-API]Get system monitoring information.

Get cluster metrics to rest api. Link to #4139

please assign to me; thx。


Codeunit 10 - Change .NET Interop to native functions

Codeunit 10 currently contains functions for encoding and decoding HTML. These are based on .NET Interop. Is it planned to provide the corresponding functions as native functions so that they can be developed without including .NET Interop?

Hi! This issue is beyond the scope of the AL language and development tools. Please go ahead and post this to our Ideas forum at https://aka.ms/BusinessCentralideas, or vote up the idea if its already there. We're constantly monitoring top Ideas and will consider them for a future release.


417 - Remove SpeciesRow sub-component from DatasetSummary

Issue Number
Closes #417
(After David completes the first round of the PR review, I’ll also add Avrohom as a reviewer. Thank you!)
Purpose/Implementation Notes
I've removed the SpeciesRow sub-component and moved its logic into the parent DatasetSummary component.
Changes include:

Removed DatasetSummary/SpeciesRow
Moved the logic from SpeciesRow to DatasetSummary/index
Utilized useMemo hook for optimization in both DatasetSummary and DatasetSummary/TotalRow (was added for consistency)

Types of changes

Refactor (addresses code organization and design mentioned in corresponding issue)

Functional tests
N/A
Checklist

[x] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Screenshots
N/A

This PR has passed the first review and is ready for your feedback. Thank you @avrohomgottlieb!


AI Search Features to Improve Access to the Design System

Explore practical ways to integrate AI-driven features, such as search or chatbot functionality, to improve access to the design system. The focus will be on gathering existing insights, sketch ideas, and create concepts aiming to enhance the system’s usability. This will be an exploratory task, using existing feedback from slack and other sources (?) and examples from similar systems.
Take a peek in the Figma file (Arbeidsområde: Felles komponenter / KI-Features - Utforsking (Simon))
Goals:

Explore how AI can enhance accessibility and usability in the design system by referencing existing documentation.
Create sketches for AI-driven features like search or chatbot interactions.
Use insights from Slack, Figma, meetings, and Menti polls to inform concepts.

Tasks

[x] Collect and review user feedback to pinpoint specific challenges or needs AI could address.
[x] Synthesize user-feedback into problem/hypothesis pairs
[x] Explore UI creation with Windsurf IDE (Check out results here)
[x] Gather examples of simple, practical AI features (e.g., search suggestions, FAQs).
[x] Sketch concepts using design components for AI features
[x] Combine Search and Chat feature.
[x] Document findings to guide future discussions or refinements.

Two proposals - video demonstration underneath.
The 'search' field will understand if it should do just a contextual search and show preview and links of relevant source, or generate an answer using the various sources. Providing follow-up questions will be possible for both modes.
Chat-demo
https://github.com/user-attachments/assets/9a96809d-c31a-4e19-b8d7-dc3feb64bdbe
Search-demo
https://github.com/user-attachments/assets/d26eb59d-1c37-4465-a9ca-ee4f7ecf5076


Update site settings

Not sure if this was what was meant by issue #58

Codecov Report

Merging #77 (e172736) into master (f5be13b) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #77   +/-   ##
=========================================
  Coverage     72.41%   72.41%
  Complexity      408      408
=========================================
  Files            71       71
  Lines          1265     1265
  Branches        130      130
=========================================
  Hits            916      916
  Misses          313      313
  Partials         36       36

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 f5be13b...e172736. Read the comment docs.

@angkoonhwee can change the repository in config.yml to AY2122S1-CS2103T-F13-3/tp


Added btn to handle force modifier

Added button to handle adding force to multiple steps. Basically a copy of no-order.
I won't use to much time on making the code pretty now as i believe most of it is going to change soon.

Why is this needed?

I personally don't like it either. However Zaspar begged for it, so i made it.

For some reason I don't remember what force is - is it override? Why does Zaspar want a button instead of the check box?

Yes, it skips the reach verification which means that there are no intermediate walks steps. It might also skip the verification that a step is connected to a building that exists.
He prefers just having a start & end point, instead of having to walk steps between them. For building larger structures. So he started putting force on 50+ steps in a row.

I feel like that is his own problem (at least for now)
Yes, the checkbox holds the state of the current step. Which is useful if the user doesn't click the force button, for instance if they click Add step.


Bump kubeyaml to version 0.5.2

Needed for https://github.com/weaveworks/flux/issues/1925

I think https://github.com/weaveworks/flux/blob/master/bin/kubeyaml also needs an update.

Yep, I will rebuild once that's done

Oh, true

I will rebuild once that's done

The script in bin/kubeyaml needs the version updated as well


Add Image Uploads

Add capabilities to post images.

Done:
https://github.com/PHCNetworks/phc-press/tree/50b8a56b54b1bbcb818c30f88bccf41fb57ef411


driver.connect() not working

tHi there! I hope you are having a nice day.
I have been trying to use @rocket.chat/sdk in my react app.
I have been able to interact with the REST-api with { api } but the driver doesn't work.
`import {
driver,
api
} from<EMAIL_ADDRESS>api.login({username: USER, password: PASS}).then(info => {
api.get('subscriptions.get')
}) // THIS WORKS
driver.connect() // THIS DOESN'T WORK
`
ERROR
Uncaught (in promise) TypeError: net.connect is not a function
at new Client (client.js:43)
at DDP.connect (ddp.js:61)
at new DDP (ddp.js:54)
at Asteroid.push../node_modules/asteroid/dist/asteroid.node.js.Asteroid._init (asteroid.node.js:366)
at new Asteroid (asteroid.node.js:26)
at driver.ts:107
at new Promise ()
at Object.connect (driver.ts:103)
at App (App.js:21)
at renderWithHooks (react-dom.development.js:14985)
at mountIndeterminateComponent (react-dom.development.js:17811)
at beginWork (react-dom.development.js:19049)
at beginWork$1 (react-dom.development.js:23940)
at performUnitOfWork (react-dom.development.js:22776)
at workLoopSync (react-dom.development.js:22707)
at renderRootSync (react-dom.development.js:22670)
at performSyncWorkOnRoot (react-dom.development.js:22293)
at scheduleUpdateOnFiber (react-dom.development.js:21881)
at updateContainer (react-dom.development.js:25482)
at react-dom.development.js:26021
at unbatchedUpdates (react-dom.development.js:22431)
at legacyRenderSubtreeIntoContainer (react-dom.development.js:26020)
at Object.render (react-dom.development.js:26103)
at Module. (index.js:7)
at Module../src/index.js (index.js:18)
at webpack_require (bootstrap:856)
at fn (bootstrap:150)
at Object.1 (reportWebVitals.js:14)
at webpack_require (bootstrap:856)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback [as push] (bootstrap:32)

@officialabdulrehman can you mention the server version and the sdk version that you are using. this seems to be a problem while using it in React.


NO-ISSUE: Fix dockerhub images names

This PR fixes the images names by appending the prefix incubator-kie so them can be pushed to dockerhub.

PR job #5 was: UNSTABLE
Possible explanation: This should be test failures
Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/5/display/redirect
See console log:

Console Logs
Starting building: KIE » kogito » main » pullrequest » kogito-images.build-image #3Starting building: KIE » kogito » main » pullrequest » kogito-images.build-image #5Starting building: KIE » kogito » main » pullrequest » kogito-images.build-image #6Starting building: KIE » kogito » main » pullrequest » kogito-images.build-image #4Starting building: KIE » kogito » main » pullrequest » kogito-images.build-image #1Build KIE » kogito » main » pullrequest » kogito-images.build-image PR #1774 - kogito-base-builder: https://github.com/apache/incubator-kie-kogito-images/pull/1774 completed: SUCCESS[Pipeline] }[Pipeline] // stage[Pipeline] }Build KIE » kogito » main » pullrequest » kogito-images.build-image PR #1774 - kogito-jit-runner: https://github.com/apache/incubator-kie-kogito-images/pull/1774 completed: SUCCESS[Pipeline] }[Pipeline] // stage[Pipeline] }Build KIE » kogito » main » pullrequest » kogito-images.build-image PR #1774 - kogito-jobs-service-postgresql: https://github.com/apache/incubator-kie-kogito-images/pull/1774 completed: SUCCESS[Pipeline] }[Pipeline] // stage[Pipeline] }Build KIE » kogito » main » pullrequest » kogito-images.build-image PR #1774 - kogito-data-index-postgresql: https://github.com/apache/incubator-kie-kogito-images/pull/1774 completed: SUCCESS[Pipeline] }[Pipeline] // stage[Pipeline] }Build KIE » kogito » main » pullrequest » kogito-images.build-image PR #1774 - kogito-jobs-service-ephemeral: https://github.com/apache/incubator-kie-kogito-images/pull/1774 completed: SUCCESS[Pipeline] }[Pipeline] // stage[Pipeline] }Build KIE » kogito » main » pullrequest » kogito-images.build-image PR #1774 - kogito-data-index-ephemeral: https://github.com/apache/incubator-kie-kogito-images/pull/1774 completed: UNSTABLE[Pipeline] unstableWARNING: Tests on kogito-data-index-ephemeral seems to have failed[Pipeline] }[Pipeline] // stage[Pipeline] }Build KIE » kogito » main » pullrequest » kogito-images.build-image PR #1774 - kogito-jobs-service-allinone: https://github.com/apache/incubator-kie-kogito-images/pull/1774 completed: SUCCESS[Pipeline] }[Pipeline] // stage[Pipeline] }[Pipeline] // parallel[Pipeline] }[Pipeline] // dir[Pipeline] }[Pipeline] // script[Pipeline] }[Pipeline] // stage[Pipeline] stage[Pipeline] { (Declarative: Post Actions)[Pipeline] script[Pipeline] {[Pipeline] sh+ wget --no-check-certificate -qO - 'https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/5/api/json?depth=0'[Pipeline] readJSON[Pipeline] sh


Add canvas for minimap

I would like to have the ability to draw on the minimap using CanvasAPI.
MinimapCanvas.getCanvas()

the canvas should have the dimensions of the arena so we dont have to convert the coordinates.

this function will translate arenaPosition to canvasPosition so that it will be inside the minimap
function toMinimapPosition(vector) {
    const unscale = diepAPI.arena.unscale(vector);

    const minimapPos = diepAPI.Vector.multiply(diepAPI.minimap.minimapDim, unscale);

    return diepAPI.Vector.add(diepAPI.minimap.minimapPos, minimapPos);
}


Passing client options

These hooks use the the module node_redis
Is it possible to configure the client by passing options as in the underlying module?
redis.createClient([options])
Thanks

I am off on vacation. But as a short answer yes, you can put a redis object
in the feathers conf.
On Thu, Nov 8, 2018, 15:55 kokujin<EMAIL_ADDRESS>wrote:

These hooks use the the module node_redis
https://github.com/NodeRedis/node_redis
Is it possible to configure the client by passing options as in the
underlying module?
redis.createClient([options])
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/idealley/feathers-hooks-rediscache/issues/57, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA3-Dqv7rpdoj3f7cVtHAd9WCQrP0GWYks5utEXGgaJpZM4YU1Na
.


feat(ui): display console error when wrong files are source

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 #49492

I did my best to pick up from the old attempt to solve this problem and apply everything needed so it would work and meet our standards.  For hours I tried to figure out why, until I finally found that our Gatsby 404 page was being picked up instead of getting a notification about the actual missing resource. I decided the best thing to do was test if the linked resource was one of our pages which would be completely unexpected if a stylesheet or script was loaded.

As it turns out, sometimes the behavior on the local computer and Github runner can vary. Good to know.

Right. It doesn't seem to automatically run the code on Chrome or display the error there. How strange.

I know we've been kicking this idea around for a long time, but the more I think about it, the less viable it seems. One of the only times we've had performance issues with the client is when we bombarded it with requests for script.js/styles.css and that's exactly what this approach will do.
Thing is, we know which files the learner should be looking for: /script.js, /styles.css and /cats.json. So, while we're building the preview, we can look to see if they've included scripts or links with relative urls that don't match the expected ones and warn them if we find something unexpected. No fetch requests required.
The wrinkle is that we don't currently support warnings during the build, only errors, and errors prevent the preview from building entirely (which is a touch drastic).

Here's what I think the solution should look like:

Move cats.json to the CDN and then update the lessons to use the CDN links
Support warnings (shown in the console, but not preventing the build)
Produce warnings when attempting to source something other than /script.js or /styles.css (absolute urls are fine, of course)

I'll check with the curriculum team about the warnings, though, since supporting them is fiddly and likely adds a fair bit of complexity. If they think preventing the build is fine, everything gets simpler.


UNKNOWN METHOD Showing in Metamask Wallet Mobile App

While request eth_sendTransaction along my contract data to metamask wallet .
my contract method name not showing instead of its showing UNKNOWN METHOD
flutter version :  3.10.6
dart version : 3.0.6
iam using walletconnect_flutter_v2: ^2.1.4
// reference image

facing same issue

Is the contract source published so that it shows up on https://mumbai.polygonscan.com/address with the function names intact?
I don't believe the name of the function actually goes into the transaction request submitted to the wallet.

Is the contract source published so that it shows up on https://mumbai.polygonscan.com/address with the function names intact?
I don't believe the name of the function actually goes into the transaction request submitted to the wallet. https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendtransaction

Hey bob,
My contract method name showing on web extension  perfectly and also good at mumbai polygon contract ,
i am facing this issue only on mobile app ,even my contract hitting perfectly as expected

Hi there, any updates ? @TheQueenCho

Nope, Still stuck on same problem  @Walter-White-atoms
don't know why its not showing on mobile app

No insights here besides the common developer comment: "I don't have the problem on my box/" (code) with Android Metamask.  Have you also asked on the Metamask mobile issues? https://github.com/MetaMask/metamask-mobile/issues
Given your able to call the contract successfully, and the spec doesn't include the name of the function in the transaction request sent via walletconnect - I have little faith using my code will make a difference.
That said - if it helps to have a working example my code is public:

https://gitlab.com/graflr/flutter_web3_demo
I call web3dart without creating the transaction manually.  See https://gitlab.com/graflr/flutter_web3_demo/-/wikis/web3dart-and-walletconnect_flutter_v2

Curious what the WalletConnect folks have to say.

Ok bob i will try there ,
thanks for support
https://github.com/MetaMask/metamask-mobile/issues/7199

are you able to fixed this issue ? @TheQueenCho

Hey walter ,

This is not walletConnect issue , This unknown method could be fixed by metamask side
Already there was an open issue related this ,check out link below
So i am closing this as an invalid
https://github.com/MetaMask/metamask-mobile/issues/5929
Thanks for quick response guys

I had the same issue, and what helped me was including method data among other parameters.
You can get yours in the ABI of the token you are interacting with (in your case you go to https://etherscan.io/ and find your method's description) and insert it into you transaction parameters as data, so it will look like this:
yourTransferMethod()       .send({         from: senderAddress,         gasPrice,         data: {     "constant": false,     "inputs": [       {         "name": "to",         "type": "address"       },       {         "name": "value",         "type": "uint256"       }     ],     "name": "transfer",     "outputs": [       {         "name": "",         "type": "bool"       }     ],     "payable": false,     "stateMutability": "nonpayable",     "type": "function"   }, });
Don't forget to add parameters in input! If you are not sure how to do it, try to test writing the contract on https://etherscan.io/ and extracting transaction data in hex from there, as shown in the image http://joxi.ru/xAepNGqCVWqdK2. To decode hex to the data you need use https://lab.miguelmota.com/ethereum-input-data-decoder/example/
I hope it works for you 👍


sql: database is closed while connection works with sqlx

Your issue may already be reported! Please search on the issue track before creating one.
Everything works fine when running locally but when I run a dockerized program on Kuberentes and I get the following error:
dial tcp <IP_ADDRESS>:5432: connect: connection refused
(/app/main.go:39)
[2019-12-29 18:52:56]  sql: database is closed

When I add sqlx (https://github.com/jmoiron/sqlx) as dependency and open a connection as well everything is working fine.
So there must be something wrong with the connection to postgresql that Gorm is using.
(/app/main.go:39)
What version of Go are you using (go version)?
go version go1.13.5 linux/amd64
Which database and its version are you using?
postgresql 11
Please provide a complete runnable program to reproduce your issue. IMPORTANT
Need to runnable with GORM's docker compose config or please provides your config.
package main

import (
	"net/http"

	"fmt"

	"github.com/gin-gonic/gin"

	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/postgres"
	// "github.com/jmoiron/sqlx"
)

var db *gorm.DB

func Healthz(c *gin.Context) {
	c.PureJSON(http.StatusOK, gin.H{})
}

func setupRouter() *gin.Engine {
	r := gin.Default()

	r.GET("/healthz", Healthz)
	return r
}

func GetDB() *gorm.DB {
	return db
}

func Setup() {
	var err error
	cfg := "postgresql://foo:bar@localhost:5432/postgres?sslmode=disable"

	// if I uncomment the following everything works fine
	// _, err = sqlx.Connect("postgres", cfg)
	// if err != nil {
	// 	  log.Fatalln(err)
	// }
	db, err = gorm.Open("postgres", cfg)
	db.LogMode(true)

	if err != nil {
		fmt.Print(err)
	}
}

func main() {
	Setup()
	GetDB()

	r := setupRouter()
	r.Run(":5000")
}

How come you don't just put the connection into the main function? You also need to do a defer db.Close() at the end of where ever you create the db connection.

@DFrancis84 Does not work, tried to add defer. I have the connection in a global variable so I can access it from anywhere

@sevaho have you found the reason?  The weirdest thing that this works fine under the docker on the Windows machine. I have absolutely the same issue.

No not yet :/


Update deprecated package

Checklist for submitting a pull request to Terminals Are Sexy:

[x] I have carefully read and comply with the Contributing Guidelines of this repo.

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

getnews.tech:

**https://github.com/omgimanerd/getnews.tech**:

Tools and Plugins:

Checking the latest news headlines from various news outlets on the web:

Important note: I am the author of nycurl and I am no longer maintaining since it will be replaced with getnews.tech. I would like for the entry to be replaced accordingly. Thanks

Hmm, this CI breakage seems unrelated to my package. It seems like bpkg.io is down for the moment, which is causing the CI check to break.


SmartSelect display value is not updated if it is changed outside control

Framework7 version: 5.x.x
React.js version: 16.x.x
Platform and Target: browser
JSFiddle

Describe the bug
Say we have list with SmartSelect and it's value is stored in state. Our ss opens in Page. It works normally if user clicks on smartselect and selects different value.
But if we have some other logic that modifies the state including this smartselect value, then the display value of smartselect in list is not updated.
To Reproduce
Steps to reproduce the behavior:

Go to JSFiddle
Select something except 'Banana' in Fruit selector. - works fine
Now click blue button - display value in list is not changed. While if you click on SmartSelect you will see radiobutton at correct value

My current workaround is to reinit all smart-selects on page on componentdidupdate which is too much straight forward 😊
Please fix this at least in v6

Because it is not possible to detect changes from outside on nested Select, just output value text manually like here https://jsfiddle.net/q56rpvgz/

Thanks! Would be great to have your example in docs!


ENH: add global optimizer Shuffled Complex Evolution (SCE) to SciPy.optimize.

What does this implement/fix?
This adds the global optimizer Shuffled Complex Evolution (SCE) to scipy.optimize:

Duan, Sorooshian and Gupta (1992) Effective and efficient global optimization for conceptual rainfall-runoff models, Water Resour Res 28, 1015-1031, doi: 10.1029/91WR02985

SCE is very popular in the hydrologic community and had performed well in Andrea Gavana's Global Optimization Benchmarks (https://infinity77.net/global_optimization/).
Additional information
The current implementation has some nice features that are missing from other optimizers in scipy.optimize:

It can write out restart files so that one can continue an optimisation if the original run was interrupted. This happens, for example, on compute clusters where a job has an allocated run time.
Parameters can be sampled in different ways (open and closed intervals, logarithmic). Sampling a parameter with a normal distribution if it can vary orders of magnitude gives suboptimal solutions. It is much better to sample the parameter in log-space (e.g. Mai, J Hydrolo 2023, 10.1016/j.jhydrol.2023.129414).
It is also practical that one can pass args and kwargs to the objective function.

The practical coding (function, class, OptimizeResult) follows closely the implementation of the differential evolution code in scipy.optimize.

Thank you for this contribution @mcuntz. When introducing functionality of this kind we ask that you bring it up for discussion on the scipy-dev mailing list first, this is to ensure that it has greater visibility in the project. It also reduces work, because the maintainer team can advise on how to go about the PR - we've had misguided PRs be submitted that were not going to be merged (for one reason or another), which is a waste of time for the author.
Before adding new global optimisers we ask that the functionality goes through the benchmark process first. I see from the changeset that you've modified the global optimiser benchmark. Can you run sce against the benchmarks and report back with the stats please? Please do 100 repeats.
The review process for adding a new minimiser can be drawn out. This is because ongoing maintenance cost needs to be low, which means that code-style, structure, etc, needs to be really good. If you feel as if the review is never ending please don't get down heartened - 1200 lines of code takes a while to get through.

Lastly, there is code here that has been committed by accident, namely the  PROPACK and boost files

Thanks @andyfaff for the encouraging words.
I renamed it from sce to shuffled_complex_evolution.
I ran the global benchmark suite. That was not obvious given that the docs and readme are out of date. I had to set export SCIPY_XSLOW=1 on the command line, otherwise it would not work. I finally ran python dev.py bench -t optimize.BenchGlobal. I (try to) attach the output to this comment.
BenchGlobal.txt
While investigating why shuffled_complex_evolution did not work with the function Deb03, I found that its bounds are wrong. They were set to self._bounds = list(zip([-1.0] * self.N, [1.0] * self.N)). But there is x**0.75 in the function so that does not work with x<0. Setting self._bounds = list(zip([0.0] * self.N, [1.0] * self.N)) works.
I also came across that the testsuite stopped at Mishra10. The output was of type int64 and json did not like that to dump that. So setting newres.max_obj = np.max(funs).astype(float) (same for min_obj) solved that.
The PROPACK and boost_math must have been update when I rebased with scipy. I am sorry but I do not know how to remove these again. (I cannot simply delete them, isn't it?) git submodule update --init given in forums did not work. I also tried git submodule deinit -f . ; git submodule update --init (which did a lot of things) but to no avail. It check out the new version again, e.g. 109a814... for boost_math:
+++ b/scipy/_lib/boost_math
@@ -1 +1 @@
-Subproject commit 298a243ccd3639b6eaa59bcdab7ab9d5f008fb36
+Subproject commit 109a814e89f77ff8a3fc8f0391f6b35a12640669

Lastly, I will write an e-mail to the scipy-dev mailing list now.

First of all, thanks for this promising PR!

I ran the global benchmark suite. That was not obvious given that the docs and readme are out of date. I had to set export SCIPY_XSLOW=1 on the command line, otherwise it would not work. I finally ran python dev.py bench -t optimize.BenchGlobal. I (try to) attach the output to this comment. BenchGlobal.txt While investigating why shuffled_complex_evolution did not work with the function Deb03, I found that its bounds are wrong. They were set to self._bounds = list(zip([-1.0] * self.N, [1.0] * self.N)). But there is x**0.75 in the function so that does not work with x<0. Setting self._bounds = list(zip([0.0] * self.N, [1.0] * self.N)) works. I also came across that the testsuite stopped at Mishra10. The output was of type int64 and json did not like that to dump that. So setting newres.max_obj = np.max(funs).astype(float) (same for min_obj) solved that.

Another thanks for fixing those issues in the testsuite. It's quite encouraging that benchmarks run succesfully.
To make the benchmark output more easy to digest, could you reuse the plotting script we used for benchmarking DIRECT here?

The PROPACK and boost_math must have been update when I rebased with scipy. I am sorry but I do not know how to remove these again. (I cannot simply delete them, isn't it?) git submodule update --init given in forums did not work. I also tried git submodule deinit -f . ; git submodule update --init (which did a lot of things) but to no avail. It check out the new version again, e.g. 109a814... for boost_math:
+++ b/scipy/_lib/boost_math
@@ -1 +1 @@
-Subproject commit 298a243ccd3639b6eaa59bcdab7ab9d5f008fb36
+Subproject commit 109a814e89f77ff8a3fc8f0391f6b35a12640669

I ran into that multiple times as well. Merging main and then using git submodule update --init usually fixed it for me.

I would probably drop the restart facility for the first PR (or release). Restarting is something that, in principle, could be added onto many, if not all, of the optimizers. If we're going to add such capabilities to one, I think it behooves us to at least think about the interface such that can be reused for those others ones, too, at least in terms of the call signature. We don't want to get into the position of having slightly different conventions and argument names for each one. We could definitely add the restart facility just to this one at first, but we should first think about a design that would be likely to work for all of them.
For example, I would probably enforce the use of only one file. Exposing two filenames in the signature is a quirk of this particular implementation that wouldn't be needed for other optimizers. For that matter, there isn't a strict need for 2 files even for this optimizer; you can add non-.npy files like JSON-formatted files to an .npz just fine.

@rkern, thanks for the comments. During the review process we'll definitely get to that. At the moment I'd like to know if you think we should add the minimiser to the global optimizer stable. There's a post on scipy-dev that is testing the waters for this (it contains the benchmark results)

Yeah, I mentioned it just because it was listed as a feature over the existing solvers. I'd propose setting those aside for evaluation purposes.
Looking at the benchmark results, I'm not seeing a strong standout role for it given SHGO. Maybe it shines against SHGO on the ND=50 problems, though.

@dschmitz89 I could not find the script that you used for DIRECT. Here my script to plot mean_nfev and nsuccess (i.e. nsuccess/ntrials*100) from global-bench-results.json:
#!/usr/bin/env python
import json
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt

# read output from
#     export SCIPY_XSLOW=1 ; python dev.py bench -t optimize.BenchGlobal
# in subdirectory benchmarks/
ifile = 'global-bench-results.json'
with open(ifile, 'r') as f:
    res = json.load(f)

# pandas DataFrame with global optimizer as column 'go'
# and function as column 'func'
res2 = {k: pd.DataFrame(v).T.reset_index(names=['go']) for k, v in res.items()}
df = pd.concat(res2, axis=0).reset_index(level=0, names='func')

# mean per optimizer
dfm = df.groupby('go').mean()
dfm.reset_index(inplace=True, names='go')

# plot bar chart
ngo = dfm.shape[0]
xticks = np.arange(ngo)

fig = plt.figure()

metric1 = 'mean_nfev'
ax = fig.subplots()
b1 = ax.bar(xticks, height=dfm[metric1], width=-0.4, align='edge',
            tick_label=dfm['go'], label=metric1)
ax.set_ylabel(metric1)

metric2 = 'nsuccess'
ax2 = plt.twinx()
b2 = ax2.bar(xticks, height=dfm[metric2] / dfm['ntrials'] * 100., width=0.4,
             align='edge', color='red', label=metric2)
ax2.set_ylabel(metric2 + ' (%)')

plt.legend([b1, b2], [metric1, metric2], loc='upper center')

fig.savefig('global-bench-results.png')

giving:

One can see that SCE has few function evaluations with a rather high success rate. However, SHGO has even less function evaluations.
@rkern So I looked for high-dimensional problems. There is only one 9- and one 10-dimensional problem in the benchmarks.
print(df[df['ndim'] == 9].groupby('go').mean()) gives
          mean_nfev  ndim  nfail  nsuccess  ntrials
go
DA      18382.5   9.0   67.0      33.0    100.0
DE       1514.5   9.0   91.0       9.0    100.0
DIRECT  1778.0   9.0    1.0       0.0      1.0
SCE      1225.1   9.0   84.0      16.0    100.0
SHGO     1434.0   9.0    1.0       0.0      1.0
basinh.  5452.3   9.0  100.0       0.0    100.0

and print(df[df['ndim'] == 10].groupby('go').mean()) gives
           mean_nfev ndim  nfail  nsuccess  ntrials
go
DA      20284.92  10.0    0.0     100.0    100.0
DE      6194.80  10.0    0.0     100.0    100.0
DIRECT  534.00  10.0    1.0       0.0      1.0
SCE     1086.64  10.0    0.0     100.0    100.0
SHGO    1240.00  10.0    0.0       1.0      1.0
basinh. 14402.86  10.0    0.0     100.0    100.0

(Note that SHGO and DIRECT are no stochastic optimizers (according to the benchmark) and make only one run per benchmark function.) SCE needs less function evaluations than SHGO in this case. But SHGO also fails for ndim=9 so it might stop from some criteria.
I also rebased with scipy main and did git submodule update --init but the PROPACK files are still there :-(

I pushed an update that removed the PROPACK and boost-math submodule updates.

My impression is that the benchmark results do make a case for inclusion of the SCE solver in scipy.optimize. It improves on DIRECT overall, and has a higher success rate than SHGO.

Apologies I haven't been able to look at the benchmark suite, but shgo is buggy when used with the default sampling method. If you are not already using halton or sobol instead of simplicial they might work better .

@lesshaste I ran the testsuite for SHGO with sobol and halton. Both sampling methods fail as well with Cola. Halton gave similar success rates as simplicial but Sobol was much better, 83% vs. 63%, needing much more function evaluations, though. You can try the cola function with the following script:
#!/usr/bin/env python
import numpy as np
import scipy.optimize as opt

def cola(x):
    '''
        global_optimum = [[0.651906, 1.30194, 0.099242, -0.883791,
                           -0.8796, 0.204651, -3.28414, 0.851188,
                           -3.46245, 2.53245, -0.895246, 1.40992,
                           -3.07367, 1.96257, -2.97872, -0.807849,
                           -1.68978]]
        fglob = 11.7464

    '''
    d = np.asarray(
        [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
         [1.27, 0, 0, 0, 0, 0, 0, 0, 0, 0],
         [1.69, 1.43, 0, 0, 0, 0, 0, 0, 0, 0],
         [2.04, 2.35, 2.43, 0, 0, 0, 0, 0, 0, 0],
         [3.09, 3.18, 3.26, 2.85, 0, 0, 0, 0, 0, 0],
         [3.20, 3.22, 3.27, 2.88, 1.55, 0, 0, 0, 0, 0],
         [2.86, 2.56, 2.58, 2.59, 3.12, 3.06, 0, 0, 0, 0],
         [3.17, 3.18, 3.18, 3.12, 1.31, 1.64, 3.00, 0, 0, 0],
         [3.21, 3.18, 3.18, 3.17, 1.70, 1.36, 2.95, 1.32, 0, 0],
         [2.38, 2.31, 2.42, 1.94, 2.85, 2.81, 2.56, 2.91, 2.97, 0.]] )

    xi = np.atleast_2d(np.asarray([0.0, x[0]] + list(x[1::2])))
    xj = np.repeat(xi, np.size(xi, 1), axis=0)
    xi = xi.T

    yi = np.atleast_2d(np.asarray([0.0, 0.0] + list(x[2::2])))
    yj = np.repeat(yi, np.size(yi, 1), axis=0)
    yi = yi.T

    inner = (np.sqrt(((xi - xj) ** 2 + (yi - yj) ** 2)) - d) ** 2
    inner = np.tril(inner, -1)

    return np.sum(np.sum(inner, axis=1))

N = 17
bounds = [[0.0, 4.0]] + list(zip([-4.0] * (N - 1),
                                 [4.0] * (N - 1)))

# DE for reference
res = opt.differential_evolution(cola, bounds)
print('DE', res)

# SHGO
sampling = 'halton'  # 'sobol', 'halton', 'simplicial'
res = opt.shgo(cola, bounds, sampling_method=sampling)
print('SHGO', sampling, res)

It always stops in Qhull, eventually.

@dschmitz89 thanks for looking at the code. I addresses (almost) all concerns of you and others:

I reinstated the floats in the benchmark suite.
I renamed the keywords to more talkative names.
I removed the restart capability, sigh :-(.
I require keyword arguments after mask.
I also added a more sensible default for the maximum number of function evaluations based on my experience.
I test for the matching error message. Note, however, that np.seterr is set now to raise errors on all invalid numbers. I deal with NaN and Inf in SCE but I cannot test this because the testing raises RuntimeWarning as an error.
I use assert_allclose instead of assert_almost_equal in the tests.

Thanks!

I did not change two things:

I left the mask keyword because it is just too useful to me (but you do not have to use it ;-). I almost always do not want to optimise all parameters of my models but I want to exclude a few. For example, I do not want to optimise insensitive parameters, which wastes computing time and only gives equifinality. Or I want to fix some parameters after having found strong correlations with other parameters.

I understand that this is a useful feature. For MILP, a similar approach is used to indicate whether a parameter is boolean or not. My comments about dropping it still also come from the experience that such API changes make the PR reviews much harder as they often cause widespread debates. That said, if there are no objections, we can leave this functionality in but should agree on the API details. Opinions @andyfaff @tupui @mdhaber ?

I left polish=True as default. I tested the benchmark suite with and without polish. It dropped from 75% to 50% success rate without polishing. I checked that the drop in differential evolution is even larger from more than 85% to 55%. On the other hand, polishing did not add a lot of function evaluations in these cases. From my experience, most users work with the default values (that;s what I do with differential evolution, for example). Because polishing is a good choice in most cases I think it improves the user experience setting it to True as default. You can always switch it off if it does not fit your problem.

This is a very interesting observation. I guess that we should not expect global optimizers to come arbitrarily close to the optimum. I should test out how much better DIRECT becomes with such a polish option as all the other optimizers use local optimizers under the hood.

Note that the benchmark suite has its quirks. SHGO simply hangs in the problem Cola (leading to timeout) so badly that the benchmark suite cannot even write out the rest of the json file afterwards. I simply commented the class for the benchmarking. There are other timeouts by other optimizers but they lead only to a 'failed' in the output. These are:

differential evolution (DE) times out in the functions DeVilliersGlasser02, Dolan, Mishra09, Powell, and PowerSum
basinhopping and SHGO time out in Thurber

This makes the runtime of benchmark painfully slow.

The benchmark suite is not in a good shape. I worked on it once and had a similar experience. I will open another issue about these functions to discuss what we can do about them. Thanks a lot for letting us know!

I will merge all the commit messages at the end of the process. In the mean time just ignore the individual sub-commits.

Usually, PRs get squash-merged by a maintainer. Depending on the complexity, git history is rewritten or not. You do not need to worry about that for now :).


Is this fork still necessary, or does main btcd work now?

Quite a few tutorials still point to this fork as being necessary to run lnd, is that still true?
Would be awesome if you could direct people back to main btcd if it's no longer the case.
Thanks!

@paulfurley This fork has been retired for a long time now. To run btcd with lnd we now use the main site https://github.com/btcsuite/btcd .
You probably can close this thread.

Thanks, at the time I wrote this there were several tutorials online pointing to this repo. No idea if this is still the case.
Happy to close this once the README is updated to tell people not to use this. Save the next person the time I wasted!

@Roasbeef  Is it possible to close this repo and make a link to point to https://github.com/btcsuite/btcd so users don't get confused?


New API for topology reliability modes

Currently Heron topologies can run in either atmost_once, atleast_once(and in the upcoming change exactly_once or stateful) modes. The way you specify the mode is not very obvious. For instance, in order to run in atmost once, you need to setEnableAcking(false), and for atleast once, setEnableAcking(true). This way of specifying actually attaches acking(which is the Heron;'s way of tracking tuples) with the semantics of atleast/atmost once. Further more, newer mode like exactly once cause more confusion with more flags that are added and one now needs to worry about which flags are set and which are unset to be really sure of whats going on.
This change introduces TopologyReliabilityMode which is an enum of the various different modes that Heron supports. This is a one stop and intuitive way of specifying the reliability mode that you want to run the topology in.
Legacy setEnableAcking is now deprecated and will be removed in future releases.

Fixes #1904

👍


better documentation

Hi, please make a litte better documentation
i had to dig into the code.
please add  some examples like this:
echo    MultiSelect::widget([
'id'=>"multiXX",
"options"=>['multiple'=>"multiple"], // for the actual multiselect
'data' => [0=>'super', 2=>'natural'], // data as array
'name' => 'multti', // name for the form
"clientOptions"=>["includeSelectAllOption"=>true,'numberDisplayed'=>2], // js options
]);
also refear that if a model is provided, the model is used;
i asume with option "model"=>$model (did not try it)

To get the value working and get pre-selected items I had to put it into options
"options" => ['multiple'=>"multiple",  "value"=>[0,2] ]

how to multiple selected many object?
actionUpdate
$cat = Category::find()->all();
    $categoryEmploye = CategoryEmploye::find()->where(['employe_id' => $model->id])->a;;();

view


Bug in interest calculator.

Describe the bug
It's rounding up the simple interest to ones .
Like if simple interest is 30.4 it is showing 30 only.

Please assign this to me.

Go ahead!
Deadline 27 March,2021 (11:59 PM IST)