Encapsulated subtitle content sorted incorrectly

The packaged subtitles are sorted incorrectly, some software cannot read them normally
Here is the subtitle for https://www.crunchyroll.com/watch/G8WUN0V8V/the-trump-card-aboard-the-science-vessel
Subtitles downloaded using yt-dlp:
[Events]
Format: Layer,Start,End,Style,Name,MarginL,MarginR,MarginV,Effect,Text
Dialogue: 0,0:00:01.82,0:00:03.27,Main,Villager A,0000,0000,0000,,Riot!
Dialogue: 0,0:00:08.63,0:00:11.70,Main,Senku,0000,0000,0000,,Science's own suppression \Ndevice: chloroacetone.
Dialogue: 0,0:00:12.39,0:00:14.74,Main,Senku,0000,0000,0000,,Basically, it's tear gas.
Dialogue: 0,0:00:15.37,0:00:17.83,Main,Senku,0000,0000,0000,,This'll calm you down!
Dialogue: 0,0:00:25.58,0:00:26.86,Main,Amaryllis,0000,0000,0000,,Wow...

Subtitles extracted from crunchy-cli downloaded files:
[Events]
Format: Layer,Start,End,Style,Name,MarginL,MarginR,MarginV,Effect,Text
Dialogue: 00:23:54.00,00:23:59.98,Disclaimer,Terxt,0000,0000,0000,,This is a work of fiction, but the plants, \Nanimals, and production methods described are based on reality.\NForaging and making things on your own accord is extremely dangerous\Nand, in some cases, illegal. Please do not imitate without expertise.
Dialogue: 0,0:00:01.82,0:00:03.27,Main,Villager A,0000,0000,0000,,Riot!
Dialogue: 0,0:00:08.63,0:00:11.70,Main,Senku,0000,0000,0000,,Science's own suppression \Ndevice: chloroacetone.
Dialogue: 0,0:00:12.39,0:00:14.74,Main,Senku,0000,0000,0000,,Basically, it's tear gas.
Dialogue: 0,0:00:15.37,0:00:17.83,Main,Senku,0000,0000,0000,,This'll calm you down!
Dialogue: 0,0:00:25.58,0:00:26.86,Main,Amaryllis,0000,0000,0000,,Wow...

Fixed in v3.0.0-dev.14


Have a text template fitter in TextFields

If text input needs to fit a pattern like phone numbers or credit card, it would be nice to have an API to automatically fill in the parentheses, dashes and spaces as the user types in digits.

Thinking add to EditableText a this.formatter of type abstract TextInputFormatter.
It has abstract method TextEditValue formatEditUpdate(TextEditValue oldValue, TextEditValue newValue).
We provide 2 batteries-included implementations WhitelistingTextInputFormatter and BlacklistingTextInputFormatter.
Users can roll their own by subclassing. Check in updateEditingValue and call _updateRemoteEditingValueIfNeeded.
Solves also #9515 with the same API.
FYI @abarth

M2 since it blocks multiple M2 issues

There's some indirections but I think EditableText will handle copy pasting properly too if the formatters are called after _handleSelectionOverlayChanged.
Though I wonder if calling _updateRemoteEditingValueIfNeeded is really needed.

You need to call _updateRemoteEditingValueIfNeeded otherwise the IME will get out-of-sync with the value the user sees.  That will mess up things like selections.

Cool thanks. Should we call it today on _handleSelectionOverlayChanged? I suspect it's not called now after copy pasting.

Unless there is a customer blocked on this, I don't think this needs to block M2?

If you found this ticket wanting this feature you can now specify inputFormatters as an argument to TextFormField and TextField, as well as EditableText.
The https://flutter.io/text-input/ docs should be updated to include a bit on this and an example.


feat(slider): enable click on track to update value

Describe pull-request
Enables ability to click on the track in tds-slider to update its value
Issue Linking:

Jira: CDEP-3599

How to test

Go to http://localhost:6006/?path=/story/components-slider--default
Test clicking anywhere on the track and the value of the slider should update

Checklist before submission

[ ] I have added unit tests for my changes (if applicable)
[ ] All existing tests pass
[ ] I have updated the documentation (if applicable)
[ ] Not breaking production behavior
[ ] Behavior available in storybook with documented descriptions (if applicable)
[x] npm run build-all without errors

Suggested test steps

[x] Browser testing (Chrome, Safari, Firefox)
[ ] Keyboard operability
[ ] Interactive elements have labels.
[ ] Storybook controls
[ ] Design/controls/props is aligned with other components
[ ] Dark/light mode and variants
[ ] Input fields – values should be displayed properly
[ ] Events

Screenshots
Not applicable
Additional context

Not sure if it's possible or necessary to add unit tests for this feature
Not sure if documentation should be updated for this
The height of the track is quite small, so it's not super easy to manage to click on it, unless you're really paying attention. For this reason I think it's appropriate to increase the "clickable height" of the track, but I would like someone else to comment on this first.

In the first commit, I got these errors in sonarcloud:

Visible, non-interactive elements with click handlers must have at least one keyboard listener.
Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element.

To address this, I added this commit,
where I changed this:

 {
    this.trackElement = el as HTMLElement;
  }}
  tabindex={this.disabled ? '-1' : '0'}
  onClick={(event) => this.thumbCore(event)}
>

to this:

 {
    this.trackElement = el as HTMLElement;
  }}
  tabindex={this.disabled ? '-1' : '0'}
  onClick={(event) => this.thumbCore(event)}
  onKeyDown={(event) => this.handleKeydown(event)}
  role="slider"
>

The thing is that the onKeyDown was already working for this slider, so with this change it now goes two steps instead of one with each key press (because handleKeydown is called twice), which is not what we want.
This change gave these errors in sonarcloud:

Use  instead of the "slider" role to ensure accessibility across all devices.
Elements with the ARIA role "slider" must have the following attributes defined: aria-valuenow

And regarding the first of these two errors, it doesn't work if we change it to an input element. One of this element's parent elements is already an input with type="range". Also, if I move the onClick={(event) => this.thumbCore(event)} to that input element, the "click on track to update value" functionality stops working.
What should I do here? And is there a way to get these warning messages on my computer without having to commit and push first?

Use instead of the "slider" role to ensure accessibility across all devices.
I can't find a way to get rid of this error and still have a working solution

Replacing this PR with https://github.com/scania-digital-design-system/tegel/pull/885


Inability to match exact metadata values in specific fields via advanced search

Describe the bug
It is not possible to match metadata values in specific fields using advanced search. In my case I noticed it while trying to find several items containing the exact metadata value CC-BY-NC-SA/3.0 (note the literal forward slash) and I was getting results for items matching CC-BY-NC-SA-3.0 instead.
To Reproduce
Steps to reproduce the behavior:

Add the following metadata value to an item in any metadata field, for example the license field: CC-BY-NC-SA/3.0
Add the following metadata value to another item in the same metadata field as above: CC-BY-NC-SA-3.0
Try to search for the first value above using the specific field in an advanced search, for example: dcterms.license:CC-BY-NC-SA/3.0 or dcterms.license:CC-BY-NC-SA\/3.0
Both items above are returned in search results

Reproduced on demo.dspace.org (DSpace 7.6):

Expected behavior
I was expecting that only items with metadata matching the exact search terms would be returned.
Related work
Note that, even when querying Solr directly in my test instance, I was also unable write a query that returned the exact metadata value CC-BY-NC-SA/3.0 in a specific field. I tried escaping dashes and slashes, quoting, etc, but still was not able to match the exact value.
What is interesting is that we have a Discovery filter configured for that field and it is possible to match that exact value using the filter via the Angular frontend. Screenshot from DSpace 7.6:

Therefore, I'm not sure if this is related to Solr query syntax or the way we are indexing metadata values.

Moving this to the 7.6.x board in search of a volunteer.  I agree this seems like a bug.  Needs more investigation though as to the cause of the bug (it could be on the indexing side or on the searching side).


Remove duplicated node dependencies

Signed-off-by: Joshua Li<EMAIL_ADDRESS>Description
enzyme-adapter-react-16 and eslint are dependencies of core dashboards, removing them to avoid possible conflicts
Issues Resolved
[List any issues this PR will resolve]
Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #620 (95254fa) into main (fbab17e) will increase coverage by 21.88%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #620       +/-   ##
=============================================
+ Coverage     54.71%   76.60%   +21.88%
  Complexity      283      283
=============================================
  Files           240       38      -202
  Lines          7777     2154     -5623
  Branches       1633      228     -1405
=============================================
- Hits           4255     1650     -2605
+ Misses         3348      363     -2985
+ Partials        174      141       -33

Flag
Coverage Δ

dashboards-observability
?

opensearch-observability
76.60% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...onents/common/helpers/ppl_docs/functions/string.ts

...e_analytics/components/common/helper_functions.tsx

...ace_analytics/requests/queries/services_queries.ts

...tics/components/common/plots/service_map_scale.tsx

...ig_editor/config_controls/config_chart_options.tsx

...ts/explorer/visualizations/drag_drop/drag_drop.tsx

...components/common/helpers/ppl_docs/commands/top.ts

...cs/components/config_components/service_config.tsx

...common/debounced_component/debounced_component.tsx

...-observability/common/constants/trace_analytics.ts

... and 192 more

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 fbab17e...95254fa. Read the comment docs.


Replace placeholder name with applicant name

Changes in this PR

Replace placeholder name with applicant name on exclusion zones page

Screenshots of UI changes
Before

After

Release checklist
As part of our continuous deployment strategy we must ensure that this work is
ready to be released at any point. Before merging to main we must first
confirm:
Pre merge checklist

[ ] Are any changes required to the e2e tests?
[ ] If you've added a new route, have you added a new
auditEvent? (see server/routes/apply.ts for examples)
[ ] Are there environment variables or other infrastructure configuration which needs to be included in this release?
[ ] Are there any data migrations required. Automatic or manual?
[ ] Does this rely on changes being deployed to the CAS API?

Post merge checklist
Once we've merged it will be auto-deployed to the dev environment.
Find the build-and-deploy job in CircleCI.
Should a release fail at any step, you as the author should now lead the work to
fix it as soon as possible.

 Area - Exclusion zones


Added data prop for super slot

Added ability to get item data from super slot so you can customise button appearance according to current visible item info. I did add it only for "super" button since this was the one I myself had to change appearance on.

On hold... Do not work as expected ☹


[bug fix] fix hive partition cannot overwrite

when we set the HiveCatalogParams.OVERWRITE_SINK = true, It doesn't work. This PR fix it. We can set HiveCatalogParams.OVERWRITE_SINK = true to overwrite the partition.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


add condition for DO_SLA=.true. here and subsequent line

https://github.com/UMD-AOSC/Ocean-LETKF/blob/a0217bd77b21a0aa829ec0c027238f2666548e9f/src/model_specific/mom6/common_mom6.f90#L555

This issue is resolved in the current version
https://github.com/UMD-AOSC/Ocean-LETKF/blob/c0ac0187f1ff22719484235b043980483e39b09f/src/model_specific/mom6/common_mom6.f90#L579


Paper on abuse of Period Sync

Looks like a paper is making the rounds and triggered a news article on ZDNet about abusing the periodicSync API to allow malware stealth and persistence.
There seem to be a lot of misinformation through both the paper and news article, but someone might want to get ahead of it now.
It seems that the paper was also presented this morning at a security symposium , but without a video, I don't know what exactly was said.

The periodic sync API didn't get beyond a sketch. It isn't in any browser.

I know that, but that paper and article claim to be using it to achieve persistence. There is no sample code so I don't know what they're actually doing. IMO it's spreading FUD on ServiceWorker in general which may be damaging to the technology.

Also the MDN documentation claims it's actually shipped in Chrome.

I've posted https://twitter.com/jaffathecake/status/1100319347304734721 to try and clear things up.


fixed ipostorder traversal and speed up tests

Current coverage is 100.00%

Merging #7 into master will not affect coverage as of 76062f4

@@            master      #7   diff @@
======================================
  Files           26      26
  Stmts          896     896
  Branches         0       0
  Methods
======================================
  Hit            896     896
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of 76062f4

Powered by Codecov. Updated on successful CI builds.


do my wheel !

python setup.py sdist bdist_wheel

Don't mean to be ignorant, but what does this do?

It's for building a "pure-wheel" python distribution.
If all packages I used are "wheel" , then I can build winpython by pointing all dependancies resolution to a local directory.
Today I can't, because an update from pypi can create unpredictable results.
==> so missing dependancies are discovered per users.
Tomorrow, if all packages used are wheels, I'll be able to let the build process check and resolve dependancies on the 'controled' set of wheels, and raise an issue if I missed one.

As a workaround, I downloaded tdqm from pip and did a manual
python setup.py sdist bdist_wheel --universal


VS Code runs python code not in the default terminal

VS Code Version: 1.60.0
OS Version: Windows 10

Steps to Reproduce:

Open any Python script
Run
The code is executed in the PS terminal, but not in the default terminal.

I have the following settings:
    "terminal.integrated.profiles.windows": {
      "Command Prompt MinGW": {
        "path": "C:\\WINDOWS\\System32\\cmd.exe",
        "args": [
          "/K", "C:\\Dev\\Env\\vars-python39-mingw.bat"
        ]
      }
    },
    "terminal.integrated.defaultProfile.windows": "Command Prompt MinGW",

Before the release 1.60.0 the code runs in the my default CMD terminal. In the new 1.60.0 release VS Code ignores the default terminal settings and run the code in the PS terminal.

/duplicate of #132149


Added Bulgarian Language.

The command: npm run update-language-files changed double quotes with single quotes in all language files. Have no idea if this is OK.

Thanks for the translation.

changed double quotes with single quotes in all language files.

Not ok, please stick to our eslint rule, double quote is preferred:
https://github.com/louislam/uptime-kuma/blob/master/.eslintrc.js

You can also check GitHub add new/upload file buttons - IMO this will help you without knowing git commands
After creating your fork for Pull Request, you can add changes (commits) by editing src/i18n.js and src/pages/Settings.vue in web browser in your fork GitHub page.


Delete incorrect properties file

fixes https://github.com/luca992/multiplatform-swiftpackage/issues/6

Thanks! I'm going to make a staging build, just lmk if it solves your issue and I'll publish a new normal version


Can't access internet

A container created using this Dockerfile can't access internet:
root@cf81115deee8:~# ping google.com
bash: ping: command not found
root@cf81115deee8:~# apt-get install ping
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ping

whereas other docker containers I have on the same physical machine successfully use apt-get.
Is there anything else one should do to get online from within this container?

idk bruh

@apaj
https://help.ubuntu.com/stable/ubuntu-help/net-wireless-connect.html.en


Uploaded app_de.arb file for German Language

app_de.arb.txt
app_de.arb.zip

Thanks for doing this! We're looking at them now.


Response Body not rendering

Describe the bug

When launching the network debug and clicking onto a request, it does not show the response body even though the request was successful.
However, it does show a large chunk of space where the response would have been.

Expected behavior

Should show the response body

Screenshots

Platform:

[x] iOS
[ ] Android

Additional context

Hi @micnguyen, thanks for the report! I'm assuming the response body is very large, and that is causing a rendering issue?
I will probably need to find a way to efficiently render the text, as at the moment it all just goes straight into a Text component.

@micnguyen it should be fixed in 1.3.2 by #9. If it's is still an issue the feel free to reopen this.

Thanks for he prompt fix in this. I can confirm on the latest version that my response body is rendering.


aur-vercmp-db

Preparatory work for #283. Todo:

Option names aren't decided yet
Improve formatters
Man page updates

Note that this is somewhat different to aur-fetch and aur-fetch-snapshot, where latter is a specialization of former. Here aur-vercmp-db is a wrapper for aur-vercmp for pacman db operations. Not sure this is the best way to proceed, but changing it should be trivial.

I've moved database-related functionality to aur-sync, as it makes more sense there: https://github.com/AladW/aurutils/commit/153b507c1ae21fab795cd162f66d1462c71db575
Sample output of the new --list switch: https://paste.xinu.at/LfMNj/
The remaining functionality of aur-vercmp-db has been moved to aur-checkupdates, which may be later extended to include some requests (checking foreign packages and any sync package for updates)


Relocatable packages

https://github.com/RadeonOpenCompute/rocm-cmake/blob/9205ef475d23eb9a8c3e5990cc76a98378a21a1e/share/rocm/cmake/ROCMCreatePackage.cmake#L30
CPackRPM:Warning: CPACK_SET_DESTDIR is set (=ON) while requesting a relocatable package (CPACK_RPM_PACKAGE_RELOCATABLE is set): this is not supported, the package won't be relocatable.
Can we look at supporting relocatable packages by default? Do we need this value set?

Hi @saadrahim, is there any further work required for this ticket?  Can I close it?  Thanks.

This doesn't need to be tracked here.


Missing type LibC::UIntptrT

lib FooLib
  fun bar(baz: UIntptrT*) : Void
end

The LibC library does not have a mapping for the C type uintptr_t. I came across it when mapping OpenGL types.

LibC bindings in stdlib are not a complete representation of all libc features. It only includes what's used in stdlib. The entire LibC bindings are also undocumented, so not part of the public API.
If you want to libc bindings you should declare them yourself.


Name Reuse Errors when spawning many containers

Once you begin spawning large (~1000) numbers of containers, we begin to encounter name collisions with autogenerated names resulting in container creation failures. We should handle this sort of name collision gracefully, generating new candidate names until we find an unused one.

Fixed by #517


preResolveTypes refers to wrong type (missing array)

Describe the bug

When using the new preResolveTypes config option, the generated types lose their Array in fragments.
To Reproduce
Steps to reproduce the behavior:
https://codesandbox.io/embed/graphql-codegen-preresolvetypes-bug-5c821
Expected behavior

export type ThingItemFragment = {
  __typename?: 'Thing';
  requirements: { __typename?: 'Requirements'; unmetRequirements: Array<Requirement> };
};

Environment:

OS: macOS
@graphql-codegen/...: 1.4.0
NodeJS: 10.16.0

Additional context

Fixed in https://github.com/dotansimha/graphql-code-generator/pull/2270

Fixed in 1.5.0 🎉


Confusing Error Reproduction

Note: This PR is only to reproduce the error for https://github.com/paritytech/substrate/issues/6379
Add duplicate dispatchable to trigger confusing error:
error: Implicit conversion to privileged function has been removed. First parameter of dispatch should be marked `origin`. For root-matching dispatch, also add `ensure_root(origin)?`.
   --> pallets/template/src/lib.rs:63:1
    |
63  | / decl_module! {
64  | |     /// The module declaration.
65  | |     pub struct Module<T: Trait> for enum Call where origin: T::Origin {
66  | |         // Initializing errors
...   |
116 | |     }
117 | | }
    | |_^
    |
    = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

@apopiak is this specific to on_intialize or can you repro this for other such functions?
In the case of on_initialize this is a macro matching issue.
The first on_initialize() function is captured using our macro and is expected. The next one goes through our normal dispatch function logic, which does not allow any dispatchable that does not contain origin as the first parameter.
I would guess this problem only occurs with "reserved functions" like on_initialize, on_finalize, on_runtime_upgrade, etc...
Not a macro god, so idk the fix. :P

I triggered it with on_runtime_upgrade, so I guess it's likely that it's only the "reserved functions"

Yeah. So the root of the issue is as I described. We expect one instance of on_runtime_upgrade()
This instance is handled special in our macro parsing logic.
After the first instance, the function is treated like any arbitrary function, so the name is not considered for the parsing. At this point we only consider the function parameters, and we see that this dispatchable function is missing origin, so we complain.
Its a valid issue, hopefully someone knows a fix.

Verified that this is not reproducible via duplicating a "regular dispatchable", so it's an issue with the "reserved functions".

Will be fixed by: https://github.com/paritytech/substrate/pull/6384


Defect dojo throwing the 500 error showing “well this was unexpected

1.Installed the defect dojo over the docker in the Vm in the GCP
2.port forwarded and mapped ip to the external up and forwarded the host to that ip
3.Allowed in firewall rules as well
4.After running the defect dojo using the docker I am getting the above error I.e; error 500
well this was unexpected
even tried the solution provided over the internet
Tried with the clean start and removed the volumes. Restarted the docker but still the same issue
could you please help me with the above issue

Hi @Nsai1997, could you please ask in the OWASP Slack channel this question or use the official support. This is not an issue.
@mtesauro I guess this can be closed.

Did you wait until the initializer was done?

Yes after doing that I am able to access the dashboard but the. Problem here is
API configuration is saying we have access to projects
engagement is also showing you have access to the projects
but I am not able to see the vulnerabilities in the product from the sonarqube
I have given the correct project key as well.

Hi team, when click on import vulnerabilities while i am importing the vulnerabilites from the sonarqube to defect dojo I am getting the below error.  An exception error occurred during the report import: api_scan_configuration of type <class 'dojo.models.Product_API_Scan_Configuration'> is not one of [<class 'dojo.models.Tool_Configuration'>] Here are all the options submitted: None


Does istio support cutomized load balance mechnism?

Hi folks,
I want to use istio in game server developments.
I am wondering if istio provides an admin API for developers to control or update the existing routing rules for load balance?
for example, a game player teleports from Map Server A to Map Server B. The load balancer should expose an admin api to a caller who can change the current map server where the player locates currently from map server A to map server B.
I also investigated Kong who provides quite poerful js and lua plugins that expose admin APIs for dynamic updatings on the routing rules. It satisfies all my needs except of not supporting UDP packet forwarding.
Looking forward any reply.
Thanks.

Related: https://github.com/istio/istio/issues/13859

@Kiddinglife take a look at https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/#HTTPRoute. You can determine where you want to route to based on matching various things like headers, etc specified at https://istio.io/docs/reference/config/networking/v1alpha3/virtual-service/#HTTPMatchRequest
In terms of fully custom lua/js, I am not sure this is possible today.

It satisfies all my needs except of not supporting UDP packet forwarding.

Istio doesn't yet support UDP either. I think there is some ongoing work in this area though, see https://github.com/istio/istio/issues/1430 for more details

I see envoy has implemented UFO protocol to support quic 4 months ago. I believe adding that to Istio should not be hard task.

There is interest in doing so, but I am sure its easy. I think @rlenglet is working on it/familiar with it

I didn't look into the details of Quic, but I believe there's any general UDP support in Envoy.
And wok is not only required in Envoy. There's work required in the CNI. When using iptables REDIRECT (the default) for redirection, we can't redirect UDP traffic. This requires using the iptables TPROXY mode. Using TPROXY requires running the Envoy sidecar proxy with CAP_NET_ADMIN, which is not acceptable for many users. So to make UDP redirection viable, we'll have to run Envoy sidecar proxies outside of the application pod, which is something we plan to do as part of Istio CNI, but we've just started that work. That's not an easy task.

@rlenglet thanks, I never quite got the CNI/UDP/TPROXY connection until now.

@Kiddinglife is there any additiona work/questions here? UDP support is tracked in another issue

all good. close it.


IP CIDR support in NSM_FORWARDER_SRC_IP

The forwarder daemonset configuration actually takes /32 ip address
in NSM_FORWARDER_SRC_IP to configure the tunnel endpoint in case of
remote vWire connection. But this would work on single node if we use
forwarding-plane.tpl with only changing the NSM_FORWARDER_SRC_IP to
different interface ip address.
This fix allows to support CIDR format (ex: <IP_ADDRESS>/24) for the above
parameter so that forwarder pod on different node would choose corresponding
interface ip address on this network for vxlan local tunnel endpoint.
Signed-off-by: Periyasamy Palanisamy<EMAIL_ADDRESS>Description

This change detects the interface IP address for the given IP CIDR mentioned in the
NSM_FORWARDER_SRC_IP parameter and uses that as an Egress Interface IP address
for remote vWire connection between client and endpoint.
Motivation and Context

This is useful incase of forwarder is deployed in multiple k8s worker nodes and would
want to choose particular network interface as its egress interface IP address (other
than k8s primary network interface IP address)
How Has This Been Tested?

[ ] Covered by existing integration testing
[ ] Added integration testing to cover
[x] Tested locally
[ ] Have not tested

Types of changes

[x] 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)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

@edwarnicke I think it could be interesting to incorporate to cmd-vppagent-forwarder?

Hmm.. @pperiyasamy I'm still trying to fully wrap my head around this... usually the SRC_IP is acquired via the downward API for the Pod IP (which if in host:network is the Node IP).  It sounds like you are wanting to set things up for a cluster with a different setup... using a single subnet that is supposed to contain all of the Node IPs... am I understanding you correctly?

Hmm.. @pperiyasamy I'm still trying to fully wrap my head around this... usually the SRC_IP is acquired via the downward API for the Pod IP (which if in host:network is the Node IP). It sounds like you are wanting to set things up for a cluster with a different setup... using a single subnet that is supposed to contain all of the Node IPs... am I understanding you correctly?

@edwarnicke Yes, NSM have provision to choose Node IP (via downward API for the Pod IP) which actually belongs to the interface used for k8s primary networking like Calico, But this use case (the page 8 in the slide provided here) needs another interface in the host as termination end point for NSM data plane. Looks this is not possible unless we introduce some logic into forwarding-plane.tpl to choose different IP address for NSM_FORWARDER_SRC_IP on each node (may be forwarder daemon set/deployment config per node).
I can understand your concern that this PR won't work if there are multiple interfaces with ip addresses on the same subnet. Please let me know your thoughts.

Hmm.. @pperiyasamy I'm still trying to fully wrap my head around this... usually the SRC_IP is acquired via the downward API for the Pod IP (which if in host:network is the Node IP). It sounds like you are wanting to set things up for a cluster with a different setup... using a single subnet that is supposed to contain all of the Node IPs... am I understanding you correctly?

@edwarnicke Yes, NSM have provision to choose Node IP (via downward API for the Pod IP) which actually belongs to the interface used for k8s primary networking like Calico, But this use case (the page 8 in the slide provided here) needs another interface in the host as termination end point for NSM data plane. Looks this is not possible unless we introduce some logic into forwarding-plane.tpl to choose different IP address for NSM_FORWARDER_SRC_IP on each node (may be forwarder daemon set/deployment config per node).
I can understand your concern that this PR won't work if there are multiple interfaces with ip addresses on the same subnet. Please let me know your thoughts.

I'm actually mostly concerned with getting the most elegant generalization that would meet you needs and the needs of folks like you :)
What I noted is that you have basically taken things from a "Look from an interface with this IP" regime to a "Look for an interface on this subnet" regime.
Overall I'm super supportive of being able to support more than the K8s downward API here... just wanted to make sure we got the best generalization :)
So is it correct to say that your basic use case is: I want to be able to use as a management interface something different than the single IP coming from the downward API, in a DaemonSet (meaning I can't just specify it as a particular IP)?
My gut is telling me that whatever we do is likely to involve what you are suggesting here (also supporting "Look for an IP on this subnet"... but it might be the case that someone has a more sophisticated case as well... perhaps involving multiple possible subnets for example?  What would your thoughts be on that?

@edwarnicke For our use cases a single IP subnet would suffice. It has the advantage of uniqueness as typical hosts would not have more than one interface with an IP address in a subnet. With a list of IP subnets, uniqueness would depend more on correct host network configuration. On the other hand, there may be valid use cases where the relevant host IPs are from different, non-contiguous subnets, which might be difficult to handle with a single IP subnet parameter (a K8s cluster distributed over multiple DCs?).

@edwarnicke I think this PR is still valid as it supports to choose an interface for local tunnel endpoint from a subnet on each worker node. This would be just an add-on to the existing functionality i.e. choosing the interface using /32 IP address.


Feat: Multiple Inheritance

Hi 👋!
I think this project is really interesting and I was wondering, why is it that I can only extend a block once? I'm in a situation where I want to import 2 blocks.
@block-reference buttons from "../../styles/blocks/buttons.block.css";
@block-reference loading from "../../styles/blocks/loading.block.css";

:scope {
  extends: buttons;
  extends: loading;
}
...

Generates Error:

{ Error: [css-blocks] BlockSyntaxError: A block can only be extended once. (tmp/broccoli_css_blocks_analyze-output_path-Co5Mjhle.tmp/src/ui/components/.../stylesheet.css:6:3)

I think the guide may be a bit confusing because I just want to use classes from 2 different files in one file and I really don't know any way of doing that.
Here's my package.json (the relevant parts [I think?]):
    "@css-blocks/ember-cli": "^0.20.0-beta.3",
    "@glimmer/application": "^0.9.1",

Hi,
I'm just a beginner (and have temporarily abandoned css-blocks, after trying to get it to work for 3 days), but since I think the entire dev team is on vacation (or is otherwise unable to answer) I try to put forward a theory:
If you are simply trying to use classes from other blocks (in a given component) then please take a look at:
https://github.com/linkedin/css-blocks#composition-in-templates
Otherwise it just back to the old question of multiple-inheritance vs single inheritance (meaning inheritance of implementation).  Last I checked (which was a while back), single inheritance won pretty much in every modern high-use language (for various good reasons, mostly is easier to reason about).   Of course those languages also support multiple interface inheritance and that also appears to be true in css-blocks (though I haven't tried):
https://github.com/linkedin/css-blocks#block-implementation
Thanks, :)

Hey Robert, I believe the reason is because multiple inheritance makes everything trickier and we wanted to get v1 of CSS Blocks out!
There are three ways afaik to resolve the "diamond inheritance" naming conflicts that inevitably come up when you discuss multiple inheritance. Either:

Make order matter, effectively providing syntactic sugar over prototypical inheritance concepts (a la Python);
Require a scope resolution syntax for ambiguous member access (a la C++), or;
Require explicit resolution / renaming in the inheriting class definition (a la Eiffel).

(Fun fact, we effectively take approach number three when it comes to property conflicts when composing multiple Block styles in the DOM where any given element may "inherit" the styles from N number of Block styles.)
But for the case of Block drafting, we also want to accommodate for the audience we're targeting. Most engineers using CSS Blocks will primarily have a JavaScript background and may be fairly unfamiliar with some of the pitfalls of multiple inheritance. Because of this, and because of the time it would take to implement well, it seemed easier to just adopt the same prototypical inheritance model as JavaScript for CSS Blocks v1.
That being said, I can see utility in taking an approach like Python where its linearized multiple inheritance tree is basically just syntactic sugar over prototypical inheritance concepts. I seem to remember we discussed the possibility of layering multiple inheritance later on if we decided it was prudent. Its easier to add features later than to miss the mark early and re-design them after launch! I'm interested in exploring this again now – I'd like to make sure we take the time to design it well first though.
@chriseppstein thoughts on evaluating MI as a language feature?

In the very near term, we're going to add a block syntax for composing styles. Once we have that, you'd be able to have a block extend one of the several blocks and then implements the others. The styles for the implemented blocks would require some boilerplate code, but the compiler will yell at you if there's any unimplemented styles.
Example:
@block-reference buttons from "../../styles/blocks/buttons.block.css";
@block-reference loading from "../../styles/blocks/loading.block.css";

:scope {
  extends: buttons;
  implements: loading;
  @compose loading:scope;
}

.spinner {
  @compose loading.spinner;
}
.spinner[state|paused] {
  @compose loading.spinner[state|paused];
}

Because our composition is modeled as style inheritance + resolution order, there's very little functional difference between this and multiple inheritance. As @amiller-gh noted, it's really just about making sure the developers understand how naming conflicts are handled. As adam notes, how to resolve conflicts when a name is being merged from two implementations is one tricky aspect.
But the other tricky aspect is if those names have different semantics and you want to have a single block that is both of them. For instance, in this case, if both blocks have an active state on the :scope element, those have very different meanings. For a spinner, it probably means it's spinning and for a button it probably means it's being pressed and the lifecycle of those states isn't linked. If this block is to be both of these things, it probably doesn't make sense to have the active state shared in the block that unifies them. This problem exists for both extends and implements. In the case of this type of naming collision, I think we'll want to introduce a way to rename a style in the sub-block so that if it's invoked by the base context it picks the right name and any style overrides in the sub-block.
Of course, as @russoturisto mentioned above, the design for template composition currently handles this very well. I know it's annoying to use two classes instead of one, but it does keep things simpler. 🤔

Hmm this is all very interesting - I didn't think I would consider multiple inheritance models when thinking about building CSS :laughing:
All I wanted was the import from SCSS, which I understand as concatenation of source files together. Basically there's this pattern that's very common where there will be a root stylesheet that contains classes that are used universally, as well as keyframes for animations, etc. Now, in the beginning, this might just be one SCSS file, but then you have mixing of different kinds of SCSS and it gets unwieldly, so devs will opt to split it up into many files, like animations.scss, blocks.scss, etc. and then import all of them into a main.scss. Generally people resolved naming collisions that may occur with a prefix like main__ or something.
I don't think I could do that with extends! Excited to see the update.

@robert-j-webb yeah, naming conflicts are the exception, rather than the rule, but not ever having to worry about them is one of css-blocks' best features.


Gap on tab bar

On top right corner, below the hamburger menu, there's a gap

Weird, can't reproduce this. Uhm are you on private window?

I'm using KDE's Kwin, in regular mode

Okay, thanks.  Can you please check it again? On your other post, there's no gap, and I can't really reproduce this. I'm using Mozilla Firefox 76.0.1

I've performed an update and it doesn't happen anymore. It was probably my out of date Firefox


Opt out of auto creating index variables

Tries fixing #8704 by cherry-picking from #8124 as @benbovy suggested in https://github.com/pydata/xarray/issues/8704#issuecomment-1926868422

[x] Closes #8704
[ ] Tests added
[ ] User visible changes (including notable bug fixes) are documented in whats-new.rst
[ ] New functions/methods are listed in api.rst

Sorry the two commits picked from #8124 where done before #8107 and messed up things a bit. I also picked and added the last merge commit from #8124, which should hopefully make things better (coordinate tests are all running fine locally at least).

Why is as_variable public API?

why is as_variable public API?

More context in #1303

I mean I don't think that's a huge deal

Me neither (I wanted to see what others think).
@TomNicholas have you tried running your notebook mentioned in https://github.com/pydata/xarray/issues/8704#issuecomment-1927264039 with this PR? Does it fix the errors raised?

@TomNicholas have you tried running your notebook mentioned in https://github.com/pydata/xarray/issues/8704#issuecomment-1927264039 with this PR? Does it fix the errors raised?

Yes I did, and I think it does! I still can't do a full xr.concat on Dataset objects because of a different bug (see https://github.com/pydata/xarray/pull/8714), but with this PR gets to the same point as v2023.08.0 does at least. 😀

Can we catch these warnings if they are expected?

xarray/tests/test_variable.py::TestVariable::test_as_variable
  /home/runner/work/xarray/xarray/xarray/tests/test_variable.py:1219: FutureWarning: variable 'x' with name matching its dimension will not be automatically converted into an `IndexVariable` object in the future.
    actual = as_variable(data, name="x")

xarray/tests/test_variable.py::TestVariable::test_as_variable
  /home/runner/work/xarray/xarray/xarray/tests/test_variable.py:1237: FutureWarning: variable 'time' with name matching its dimension will not be automatically converted into an `IndexVariable` object in the future.
    assert as_variable(dt, "time").dtype.kind == "M"

xarray/tests/test_variable.py::TestVariable::test_as_variable
  /home/runner/work/xarray/xarray/xarray/tests/test_variable.py:1239: FutureWarning: variable 'time' with name matching its dimension will not be automatically converted into an `IndexVariable` object in the future.
    assert as_variable(td, "time").dtype.kind == "m"

This should be done now!

Can we catch these warnings if they are expected?

Done


Add support for Clojure 1.12 vector metadata

Contributes to #279

@borkdude, this might (or might not) be interesting for your clj-kondo rewrite-clj fork.

with clj-kondo I haven't noticed any problems, but I'll read through this PR now

So this mostly affects sexpr right? Then I think this PR looks good to me.

Yes, the change affects sexpr only.
Thanks for the review!


Bug Report Issue Template

Description
[Briefly describe the issue, including when it happens and its impact. Keep it general without specifics.]
Steps to Reproduce
[Step 1 of the process to trigger the bug]
[Step 2 of the process to trigger the bug]
[Step 3 or more steps until the issue occurs]
Expected Behavior
[Describe what should happen when the steps are followed correctly.]
Actual Behavior
[Describe what actually happens when the steps are followed, including the bug or issue.]
Environment
Browser: [Specify the browsers or leave as 'All browsers' if applicable]
OS: [Specify operating systems or leave as 'All OS' if applicable]
Game Version: [Specify the version or leave as 'Any version' if applicable]
Possible Related Code
[Optional: Mention any code or system that might be involved in the issue, such as timers, event handlers, or specific game logic.]
Additional Context
[Optional: Provide any other relevant details or context about the bug.]
Severity
[Specify the severity level: Low, Medium, High, etc. and explain the impact on gameplay or functionality.]

## Description
[Briefly describe the issue, including when it happens and its impact. Keep it general without specifics.]

## Steps to Reproduce
[Step 1 of the process to trigger the bug]
[Step 2 of the process to trigger the bug]
[Step 3 or more steps until the issue occurs]

## Expected Behavior
[Describe what should happen when the steps are followed correctly.]

## Actual Behavior
[Describe what actually happens when the steps are followed, including the bug or issue.]

## Environment
Browser: [Specify the browsers or leave as 'All browsers' if applicable]
OS: [Specify operating systems or leave as 'All OS' if applicable]
Game Version: [Specify the version or leave as 'Any version' if applicable]

## Possible Related Code
[Optional: Mention any code or system that might be involved in the issue, such as timers, event handlers, or specific game logic.]

## Additional Context
[Optional: Provide any other relevant details or context about the bug.]

## Severity
[Specify the severity level: Low, Medium, High, etc. and explain the impact on gameplay or functionality.]


Fix logout button in admin pages

Currently, when the admin clicks on logout, the site redirects to the login.html file which is a template file just for reference (as mentioned in the README.md.
The ideal behaviour is that the page should call admin-logout.php which will unset session variables and logout admin.
Files where changes are required:

admin-home.php
admin-centre.php
admin-approve.php
admin-slots.php

I want to work on this issue. Please assign it to me.


[Feature Request] Action-bar messages when the player RTPs.

Request:

It would be convenient if, as well as a chat and title message, the plugin could also show an actionbar message when the player does /wild.
How/Why:

I personally would use the actionbar message to give players tips like this.
    Title: '&d/wild'
    Subtitle: '&7Do &f/spawn&7 to go back to spawn'
    ActionBar: '&7Do &e/commands &7or &c/guide &7for help'
    SendMessage: true # Allow the teleport success message in chat```

Action bar was supported for a little while, but we wanted 1.8 support so it was dropped, might get this functionality back if I can find a way to do this while still supporting 1.8


Update log file grammar

I have updated the grammar for log files in my extension: https://github.com/emilast/vscode-logfile-highlighter
You might want to update the built-in version (https://github.com/microsoft/vscode/tree/master/extensions/log) to get better highlighting of MAC addresses and Android logcat single-character log levels.
Cheers,
Emil

Thanks for the heads up!


Fixes issue with Chessnut game engine where only king was able to mov…

…e when in check. Issue came up when importing Chessnut as module, but fixed when souce code was implemented directly into the project.

nice


[Hubzilla] Pictures in posts are not displayed

I currently use Hubzilla on a self-hosted instance, and use AndStatus using Hubzilla's StatusNet compatibility layer. When browsing my timeline, none of the images appear, instead being consistently replaced by a small teal-colored square. Attempting to use the "view in browser" option as a workaround redirects to an invalid page (probably the fault of the compatibility layer, and that merits its own issue). Profile pictures are loaded without issue however, which leads me to think the problem resides on the way AndStatus renders the posts.

AndStatus doesn't parse HTML content for embedded images. Nothing specific to Hubzilla here, I suspect.
Anyway, I think that using ActivityPub Client to Server protocol is the way to go.
I've heard Hubzilla devs are doing this?!
...But you are we!come to provide your PR for this feature in AndStatus


message edit: Topic edit box should have typeahead.

Often when you're changing the topic, you're changing the topic to an existing one.
We just need to add the typeahead we use in compose.

As followup, we should then remove this typeahead from the compose box.
The context is at https://chat.zulip.org/#narrow/stream/137-feedback/topic/github.20auth/near/757778

btw, @YashRE42 this could be a good small project for you, as you look at other typeahead stuff. (Small but high impact.)
Just to clarify, there are two parts -- adding the typeahead to the message edit topic field, and removing the typeahead from the compose topic field.

I'll put this on my list but I'll work on it after getting a bit of progress on that stream-member-list.
@zulipbot claim

@timabbott Could you recommend some commits or documentation for how I could do this?
Right now I'm looking at composebox_typeahead.js but not exactly sure of what do to..

@YashRE42 there's two files that define the typeahead; that one and typeahead_helper.py.  I think you should ask on #frontend -- there's several folks who have worked on the typeahead in your time zone who can likely help give pointers.

@aero31aero has this been resolved?

I think #14033 is the PR. I didn't know there was an issue open for this.

I added a commit to close this issue in that PR.

Closing as dup—we created a newer issue.


Updated style for Python 'open'

Codecov Report

Merging #380 (ba917a0) into main (121ab51) will decrease coverage by 4.90%.
The diff coverage is 78.04%.

@@             Coverage Diff             @@
##              main     #380      +/-   ##
===========================================
- Coverage   100.00%   95.09%   -4.91%
===========================================
  Files           55       55
  Lines         3139     3141       +2
===========================================
- Hits          3139     2987     -152
- Misses           0      154     +154

Impacted Files
Coverage Δ

...tick_tool/plugins/tool/clang_format_tool_plugin.py
90.16% <0.00%> (-9.84%)
:arrow_down:

...tatick_tool/plugins/tool/clang_tidy_tool_plugin.py
87.32% <0.00%> (-12.68%)
:arrow_down:

statick_tool/plugins/tool/cppcheck_tool_plugin.py
85.10% <0.00%> (-14.90%)
:arrow_down:

statick_tool/plugins/tool/cpplint_tool_plugin.py
90.32% <0.00%> (-9.68%)
:arrow_down:

statick_tool/plugins/tool/make_tool_plugin.py
91.95% <0.00%> (-8.05%)
:arrow_down:

...tatick_tool/plugins/tool/perlcritic_tool_plugin.py
87.03% <0.00%> (-12.97%)
:arrow_down:

...tatick_tool/plugins/tool/shellcheck_tool_plugin.py
53.33% <0.00%> (-46.67%)
:arrow_down:

...tatick_tool/plugins/tool/uncrustify_tool_plugin.py
66.66% <0.00%> (-33.34%)
:arrow_down:

statick_tool/plugins/tool/cccc_tool_plugin.py
91.71% <50.00%> (-8.29%)
:arrow_down:

statick_tool/config.py
100.00% <100.00%> (ø)

... and 41 more

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 121ab51...ba917a0. Read the comment docs.


Connection state change is always reported as false on some devices

Describe the bug
On some devices, the connection state is constantly reported as false - even though the user has an internet connection.
SDK Version

Client: Android BOM
Version 1.0.1

To Reproduce
Steps to reproduce the behavior:

Setup a device with at least 2 active networks e.g. Bluetooth and LTE
Try to initialize the SDK

Expected behavior
A user is able to interact with SDK when in reality he can't do anything
Device (please complete the following information):

Device: Samsung Galaxy S10
OS: Android 12
Browser: Chrome

Additional context
As a result in the logs we can constantly see onConnectionStateChange(ConnectionState(isAvailable=false))
The logic in ConnectivityState to check the network connectivity is not covering all cases.
It is common for the user to have multiple active networks, e.g. when plugging in Bluetooth headphones on Samsung devices. Sometimes it can even happen that there are multiple networks with internet capabilities. Because of that iterating over all networks is necessary to check internet capabilities.
The isConnected could be modified to sth like this:
    private fun isConnected(): Boolean = connectivityManager.run {
        allNetworks.any { network ->
            getNetworkCapabilities(network)?.run {
                hasCapability(NetworkCapabilities.NET_CAPABILITY_INTERNET) && hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED)
            } ?: false
        }
    }

This is just an example: the allNetworks is deprecated since API 31 since it's not efficient - it can be achieved in multiple ways using data reported by network callback.
PS. The NetworkRequest can be improved by listening to only networks that have internet capabilities - it should have better performance.

Hey, @kamilargent thanks for reporting.
I did some digging and I was indeed at some point able to reproduce your issue on the Samsung device, however, my conclusions are slightly different though.
On Samsung devices whenever you enable the Bluetooth connection, the Samsung's Bluetooth features dialog pops up, which causes the current application to be backgrounded, which is the reason of receiving the onConnectionStateChange(ConnectionState(isAvailable=false)) because SDK closes the wss connection in AUTOMATIC when that happens.
However, every time when I closed the Samsung's Bluetooth dialog the wss connection where opened again.
For more context, you can have a look on the video included below.
It'd be great if you could attached a video from your side where I can see the app and logs from logcat at the same time.
https://user-images.githubusercontent.com/23366251/211790427-dc6619e5-755a-4c13-957d-4ea8615127c2.mp4

That is not the use case I am describing. I am aware of the WebSocket closing when the app is in the background (which is what happens when the system activity is shown).
When I plug in my headphones first and then enable LTE/Wi-Fi, the headphones are treated as an activeNetwork on my Samsung - not the LTE/Wi-Fi.
The app logs just constantly spew out onConnectionStateChange(ConnectionState(isAvailable=false)) so it won't be of much help.

Thanks for the better reproduction steps. However, using the same device and replicating your steps I was not able to reproduce it.
What we can do though, I can do code changes based on your suggestions and send you a SNAPSHOT build so that you can test on your side if it resolves your issue.

Sounds good. You can also mark me for the PR review - I was fixing similar issue in the past so I should be able to provide some feedback before manually testing. Thanks!


Question: Is it possible to use this formatter without including it in dependancies/dev dependancies?

Hello!
Thank you for this nice formatter! We have been using it in our team but do so rather rarely (it is not part of CI/CD or anything). As part of an effort of cleaning our deps, I was moving some of them from package.json to npx. What I mean by that is for some dependancies used by certain deps it doesn't make sense to have them installed on every build (even though they are in devDeps).
Do you know if one could have a package.json "script" that would install eslint-formatter-summary via e.g. npx (or in other words just-in-time) when it is actually being used?

I can't say that I follow the reasoning behind avoiding this in devDependencies, but this works:
  "scripts": {
        "lint": "npx -p eslint-formatter-summary -c 'eslint --format summary . --ext .js,.jsx,.ts,.tsx,.yaml,.yml'"
  }

See: Execute a full shell command using one npx call w/ multiple packages.


Fixed wording typo in faq

I thought i should remove the repeated is and changed the wording a bit. Please lemme know if it was unneeded.

thanks.

thanks.

You're welcome


Use much more memory with codes than with Jar file.

Not sure if it is a bug.
We are using okhttp 2.3.0 in Androidas our client which has stable connection than 3.5.0. Firstly we use the jar file directly in our project, the memory usage is normal. But we need change some codes and therefore we use source codes. Unfortunately, using source codes makes memory consumption much higher, even outofmemory. Can you give some suggestions on using codes in Android? Needs some configuration to avoid using too much memory?

Not sure what action to take on this. If you could do further investigation that’d be helpful.


PersistenceModelFindStub.php

namespace Verem\Persistence\Test;
use Mockery;
use Verem\persistence\Base\Model;
class PersistenceModelFindStub extends Model
{
	public static function find($id)
	{
		return 'foo';
	}
}

What's the meaning of this copy and paste you did here? :angry:

Deleted


added llama3 prompt

I was picking up issue #1889 , but had to change it a bit. meta documentation is here https://llama.meta.com/docs/model-cards-and-prompt-formats/meta-llama-3/.
Also some issues with double BOS tokens, so no BOS tokens here, see https://github.com/abetlen/llama-cpp-python/pull/1439.

Hey @imartinez , is it possible to change the pull request rules so that workflows are run without approval. What is the reason for it?  This should also speed up things. Many thanks!

We have just changed how workflows are executed. Hopefully there won't be any more problems in the future :)

Updated PR with requested changes!


Improve conn handling and limit RAM use

Add support for LINE_LOOP, LINE_STRIP, TRIANGLE_FAN and TRIANGLE_STRIP connectivity. Include GLB non-indexed primitive support.
Place a cap on the maximum number of protobuffer messages that can be "read ahead" into the processing queue.

TestPrimitiveTypes.zip
Example file with the various element connectivity types.  This is from the GLTFWriter 'test' directory.


[Fetcher] Lots of deprecated methods

In the Fetcher code (SimpleHttpFetcher) we are using lots of deprecated methods from HttpClient.
We should upgrade them to the right methods

I'm going to close this, since we're deprecating SimpleHttpFetcher.


isInitialFirstResponder on TextView

First, thank you for you great library! It's great to have a way to have a TextEditor for iOS 13 with the TextView. But I'm wondering how I can display the keyboard automatically when I display this view. I saw that CocoaView has an attribute isInitialFirstResponder. Is it something which can be possible with TextView?

I have be able to do that with https://github.com/siteline/SwiftUI-Introspect (which is a great library too :) ). But I think it's good if we dont need to depend on another library to do that?

Thank you 👍


Unsupported macOS version

MythX CLI version: 0.2.1
Python version: 3.7.5
Operating System: 10.15.1 Catalina

Description
mythx analyze --mode quick contracts/**/*.sol
Unsupported macOS version.
We only support Mavericks, Yosemite, El Capitan, Sierra, High Sierra and Mojave.
Usage: mythx analyze [OPTIONS] [TARGET]...

Error: Error installing solc version v0.5.10: Command '['sh', '/var/folders/vk/01zl87497jx6bq66fhhhd9zm0000gn/T/py-solc-x-tmp/solidity_0.5.10/scripts/install_deps.sh']' returned non-zero exit status 1.

This is an issue with the py-solc-x dependency. Could you open up the issue there? I'll notify the developers that I can also make a PR to add support if necessary :+1:

I'm currently getting the same issue:
mythx analyze contracts/ContractName.sol
Unsupported macOS version.
We only support Mavericks, Yosemite, El Capitan, Sierra, High Sierra and Mojave.
WARNING:solcx:Command '['sh', '/var/folders/12/7t1jw7md6tl7l0bn5k7qm3fc0000gn/T/solcx-tmp-66983/so
lidity_0.5.0/scripts/install_deps.sh']' returned non-zero exit status 1.

Using

Python version: 3.7.7
Operating System: 10.15.1 Catalina

Below is the output from mythx version
╒═════════╤══════════════════════════════════╕
│ Api     │ v1.6.0                           │
├─────────┼──────────────────────────────────┤
│ Maru    │ 0.7.4                            │
├─────────┼──────────────────────────────────┤
│ Mythril │ 0.22.1                           │
├─────────┼──────────────────────────────────┤
│ Harvey  │ 0.0.41                           │
├─────────┼──────────────────────────────────┤
│ Hash    │ df2ac71c075a98d70dddb7d0a30b9f79 │
╘═════════╧══════════════════════════════════╛

However, it does seem like things are currently running. Current status is [ 82%] Building CXX object test/CMakeFiles/soltest.dir/libsolidity/AnalysisFramework.cpp.o.
From this comment in the issue created by @maurelian, it seems this is actually a warning that can be ignored. However, that's not clear from the error message so I'm not totally sure if everything is running as expected.


Cursor Pointer on ActionButton

Expected Behaviour
Need the ability to have cursor pointer to  component
Actual Behaviour
inline style added to have cursor : pointer is overridden
Reproduce Scenario (including but not limited to)
We are using Sampler icon inside action button and want cursor pointer style
Steps to Reproduce
Use sampler icon inside action button component
Platform and Version
React spectrum V3, macos, chrome v95.x
Sample Code that illustrates the problem
<ActionButton
        right="0px"
        top="0px"
        position="absolute"
        onPress={handleClick}
        isQuiet
    >
        <Sampler aria-label={props.buttonAriaLabel} size="S"/>
    </ActionButton>

Logs taken while reproducing problem
N/A

Not using a pointer cursor for buttons is intentional. Check out the discussion as to why in https://github.com/adobe/react-spectrum/pull/449.


Fileupload doesn't work with PDF file (probably all other non image files)

I reopen issue related to this one cause it has probably been closed too fast #220
I want to precise that I have several pretty blocks setup, lot of them with image upload, and it works well.
But I have a block where I need to upload a PDF, but when the uploaded file is not image one, I get an error (see the loom link below to see the problem).
https://www.loom.com/share/72b7ce07bb4547ca874bbf8bcbdfda18
I'm on 3.7

can you please tell me the details of the error on the javascript console please ?
The upload folder exists ?

The upload folder didn't exists, that was the reason of the error.
In a perfect world, the module should create the folder if doesn't exist, but it's not a critical issue, can be closed


[Q] Multiple scalars same plot

Hi guys,
I have a dictionary with multiple scalars computed every epoch rewards = {'x': 0.1, 'y': 0.4, 'z': 0.5, ...}, I'd like to log all of them in the same figure as a "multiple" line plot.
Do you have any suggestion? I tried with wandb.plot.line_series, but I didn't manage to achieve a behaviour similar to tensorboard's SummaryWriter.add_scalar('Rewards', rewards (dict above), epoch (int)).
Thank you in advance!

Hey @luigicampanaro
I have tried describing a solution to your ticket 👇
Code
run = wandb.init(entity="repro", project="GH-2138")
with run:
    a = 0
    b = 0
    c = 0
    d = 0
    for i in range(1,100):
        a = a + random.randint(0,10)
        b = b + random.randint(0,10)
        c = c + random.randint(0,10)
        d = d + random.randint(0,10)
        reward = {
            "a": a/i,
            "b": b/i,
            "c": c/i,
            "d": d/i,
        }
        run.log(reward)

Screenshot
The UI we see

Multiplot UI
We can change the y_axis of a single line plot to take all the metrics together. After we do that we can find the UI to look something like this.

Hope this helps 😄

Hey @ariG23498,
thx for replying!
How can I generate the plot automatically, without having to do it by hand? This way every time I run the script and for everyone else using it, the rewards will be displayed and organised in the same way.

Hey @luigicampanaro
I don't think that there is an automatic generation of plot workaround for the problem. Once you make the chart with all the metrics, the same setting will be used for future runs.


Add new cosmo version c2sm-features

launch jenkins spack installcosmo --test=root cosmo@c2sm-features%pgi

launch jenkins spack installcosmo --test=root cosmo@c2sm-features%pgi

@lxavier This new version will contain features not present in COSMO 6.0 like the OASIS coupling or the port of loldtur = .false.
Are you ok with that additional version in the package?

launch jenkins spack installcosmo --test=root cosmo@c2sm-features%pgi

I changed the branch name. Looks good now 👍


No identifiers allowed directly after numeric literal

In safari and IOS device, I received No identifiers allowed directly after numeric literal error in FNV_PRIMES

This package uses BigInt literals, which I guess iOS Safari doesn't support.


fix(debug): add missing parentheses in ternary expression

Fixes #711

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b172be9) 59.18% compared to head (3a79a41) 59.54%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1035      +/-   ##
==========================================
+ Coverage   59.18%   59.54%   +0.35%
==========================================
  Files          19       19
  Lines        2541     2541
  Branches      908      908
==========================================
+ Hits         1504     1513       +9
+ Misses        693      686       -7
+ Partials      344      342       -2

Files
Coverage Δ

src/glog/logging.h
72.85% <ø> (ø)

... and 3 files with indirect coverage changes


Mark should not get notified about this opportunity because he unsubscribed

Value: $500.00Closes: Tuesday, April 17, 2018Location: 100 Mile House In-person work requiredOpportunity DescriptionadfAcceptance CriteriaasfdHow to ApplyGo to the Opportunity Page, click the Apply button above and submit your proposal by 16:00 PST on Tuesday, April 17, 2018.We plan to assign this opportunity by Tuesday, April 17, 2018 with work to start on Tuesday, April 17, 2018.Proposal Evaluation Criteriaasdf

This was a test.


[Feature] Add dao create test

Pull request type

Please check the type of change your PR introduces:

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Other information

@yubing744


Better styling + experimental light-mode support, node/link sharing via hashes, and more.

Better looks for the overlaying UI

Use variables for colors and other things

Better loading screen

Yes I duplicated the loading screen element because I think it'd make not much sense to throw it into its own component since it's so small.

Experimental light mode, probably doesn't look that neat. but hey it's something.

Sharing functionality via hashes. (e.g https://eightyeightthirty.one/#neocities.org), and a copy button.

Changing the hash in the url also acts the same as using the search box in the controls

Reset view button
"Go!" button next to the search bar

Nice work - thank you!


'AlertToast' initializer is inaccessible due to 'internal' protection level

After updating to package version. 1.3.1 i'm getting the following error in Xcode 13
''AlertToast' initializer is inaccessible due to 'internal' protection level'
Please advise.

In progress I'll update shortly

Fixed on version 1.3.5


testify testsuite test functions marked as unused

Hi
It would be good to be able to specify more functions as root than the default ones. Relevant location, I think, is here:
https://github.com/dominikh/go-unused/blob/9057d575b3bb51f1e1251088a8b8196f4226f936/unused.go#L803
Reason:
I am using testify to test my code.
They have testsuites where methods (not functions) starting with Test are run (with the help of reflection, I assume).
Example from the testify readme:
// Basic imports
import (
    "testing"
    "github.com/stretchr/testify/assert"
    "github.com/stretchr/testify/suite"
)

// Define the suite, and absorb the built-in basic suite
// functionality from testify - including a T() method which
// returns the current testing context
type ExampleTestSuite struct {
    suite.Suite
    VariableThatShouldStartAtFive int
}

// Make sure that VariableThatShouldStartAtFive is set to five
// before each test
func (suite *ExampleTestSuite) SetupTest() {
    suite.VariableThatShouldStartAtFive = 5
}

// All methods that begin with "Test" are run as tests within a
// suite.
func (suite *ExampleTestSuite) TestExample() {
    assert.Equal(suite.T(), 5, suite.VariableThatShouldStartAtFive)
}

// In order for 'go test' to run this suite, we need to create
// a normal test function and pass our suite to suite.Run
func TestExampleTestSuite(t *testing.T) {
    suite.Run(t, new(ExampleTestSuite))
}

All those Test* methods and all transitively called functions are marked as unused by the tool, even though they are used.
I see three solutions:

add a way to configure custom roots (difficult)
add a flag "-testify-tests" which, when enabled, adds those methods as roots (extend the isRoot() method). This is the easiest and my preferred solution.
Automatically deduce if the method is on a struct that embeds testify's testsuites. This would be the most covenient, but probably overkill in terms of complexity.

If you agree to this change, I can prepare a PR. What are your thoughts?

Option 1 is indeed difficult, and probably not worth the effort. I'm not sure how option 2 and 3 differ, but I'm opposed to adding special handling for testify. If we did that, we'd also need special handling for other testing frameworks.
I am much more inclined to propose the following solution: Add the following to your test file, for each test:
var _ = (*suite)(nil).TestExample

Thanks for the quick response.
I understand that special casing a lib is great, but if it is hidden behind a flag, all testify users will be made happy.

If we did that, we'd also need special handling for other testing frameworks.

If other frameworks suffer the same problem and their solution is as easy, why not? A good tool should be convenient and integrate well.
I would not want to clutter all the test files with this workaround and teach my team to do the same, it would add a significant burden. We write a lot of tests everyday, and adding this for every test would not be welcome.

If other frameworks suffer the same problem and their solution is as easy, why not

Because someone (me) has to maintain that code. More code, especially special handling, has the potential to introduce more bugs. It's also code that needs to be adjusted when other parts of the system change. Writing the code itself isn't what introduces the cost.
It might make more sense to maintain a company-internal fork of the tool, with the patches required to make it work as required by the team.

Hmm, an addition: I just noticed that not all Test* methods are marked as unused, but only those that are not inside _test.go files. I can work around that maybe, but it's a bit suprising.

Okay, I understand. Thanks anyway.

Hmm, an addition: I just noticed that not all Test* methods are marked as unused, but only those that > are not inside _test.go files. I can work around that maybe, but it's a bit suprising.

Oh yeah, it's quite possible that we currently (incorrectly) ignore Test* methods in addition to functions. If that's the case, I could be convinced to not fix that bug. And yes, we only ignore tests in _test.go files, as that's where tests should be defined.

I could be convinced to not fix that bug.

Yes, please :dancers:

as that's where tests should be defined.

I wholeheartedly agree, but unfortunately, there is an edge case where you cannot easily get around defining it outside a _test.go package. If you are interested: if is if you have an interface and multiple implementations, each living in a different package. You want to test all the backends but only write the testing code once (not wrapping each Test*() function in each implementation's _test.go). We're not happy about it but it's the best we could come up with that ensures you don't forget a test in some implementation of the interface.


Visible error..

Hi, i did some test on the ChromiumWebBrowser which is..
i would to load the in ChromiumWebBrowser  and place a loading picturebox above it.
After it finished. set the picturebox visible to false then the program will force close.
Is it any possible way to achieve my thought ?
thanks in advance

Please post on the main project site.


Enhance standalone script installation

Issue
I have a script which I would like to be able to directly install using the Install-Script from a (PowerShell Gallery) repository. The way it was setup is to download the script and dot-source the script.
As recommended by @mklement0, I should actually create *.ps1 file instead of embedded script.
My current script looks like:
<#PSScriptInfo
.VERSION 3.3.6
.GUID 5f167621-6abe-4153-a26c-f643e1716720
.AUTHOR Ronald Bode (iRon)
.DESCRIPTION Stringifys an object to a PowerShell expression (PSON,  PowerShell Object Notation).
.COMPANYNAME
.COPYRIGHT
.TAGS PSON PowerShell Object Notation Expression Serialize Stringify
.LICENSE https://github.com/iRon7/ConvertTo-Expression/LICENSE.txt
.PROJECTURI https://github.com/iRon7/ConvertTo-Expression
.ICON https://raw.githubusercontent.com/iRon7/ConvertTo-Expression/master/ConvertTo-Expression.png
.EXTERNALMODULEDEPENDENCIES
.REQUIREDSCRIPTS
.EXTERNALSCRIPTDEPENDENCIES
.RELEASENOTES
.PRIVATEDATA
#>
function ConvertTo-Expression {
    [CmdletBinding()][OutputType([scriptblock])] param()
    begin {}
    process {}
}; Set-Alias ctex ConvertTo-Expression

If I change the current script to just a *.ps1 script (preserving the metadata and only the inner script body), I will lose the alias (Set-Alias ctex ConvertTo-Expression).
Also noted by @mklement0: another problem with using *.ps1 files directly as commands is that on case-sensitive file-systems - notably on Linux by default - you'll only be able to invoke the script if you match the file name's case exactly - which is both inconvenient and unexpected.
And I noticed that I do not see information like Version in the Get-Command ConvertTo-Expression (although it is shown in the Get-InstalledScript ConvertTo-Expression)
Summary of the new feature/enhancement

Automatically build a manifest from the script's metadata required for publishing
Add aliases information to new-scriptfileinfo/new-scriptfileinfo cmdlets
Possibly let the Install-Script cmdlet automatically transform a script into a simplified module using its metadata of the script
I see no reason why the the manual steps provided in How to Write a PowerShell Script Module couldn't be automated (all mandatory steps are straight forward and optional configuration data is already available in the metadata)

We discussed previously adding version info in scripts and this was rejected in favor of modules. I think any suggestions for adding meta information to script files will be rejected in favor of modules.
I believe we have a better chance of moving forward if we consider a single file modules.

Please either mark this issue with something like Resolution-Declined or put it on a kind of wishlist "Issue we would like to prioritize, but we can't commit we will get to it yet

Please either mark this issue with something like Resolution-Declined or put it on a kind of wishlist "Issue we would like to prioritize, but we can't commit we will get to it yet

Please either mark this issue with something like Resolution-Declined or put it on a kind of wishlist "Issue we would like to prioritize, but we can't commit we will get to it yet
(For the Alias part, it would probably make more sense to use the [Alias] type rather than the Set-Alias cmdlet)


Added "recover_reduce" pass to extract reduce_* cells from a primitive cell-level netlist

Thanks for the patience guys. There are some things that need discussing with this PR imo:

Let's start with the simple things: First Yosys C++ files are called .cc, not .cpp.

Next: Coding style. I might need to write a style guide to clarify the details of the coding style used in Yosys, but the most obvious thing is this: I indent with tabs, and continuations of previous lines are indented with double tabs. I'm not so strict about that in stuff in techlibs/<....>/ because I consider that code more loosely connected to the rest of Yosys and kind-of isolated projects. But for everything in the "general" source directories I'd like to keep a consistent coding style.

Now the real issue: I think the "recover_reduce" as proposed in this patch should be removed and "recover_reduce_core" should be renamed to "recover_reduce". The documentation to that command should mention that it operates on $_AND_, $_OR_, and $_XOR_ cells and might contain a hint that more reduce cells can be extracted by first mapping all logic to this cell types using abc -g AND,OR,XOR.

Rebased, and updated coding style.
Sorry for blindly hitting "new file" in my text editor without checking the formatting settings :P

Merged with changes. Among other things I've renamed it to extract_reduce.
Btw jfyi regarding this:
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
{
    (void)args;

Two problems with this: (1) You should of course use at least extra_args(...) on args so that the pass can be used with a selection and (2) if you really have unused parameters in C++ code, simply omit the parameter name in the function header like this:
virtual void execute(std::vector<std::string>, RTLIL::Design *design)


MHD: Provide Document Bundle - clarify replaceTo behaviour with transaction

Section Number
https://profiles.ihe.net/ITI/MHD/ITI-65.html#2365413-expected-actions
2:<IP_ADDRESS>.3 Expected Actions
Issue
The Document Recipient shall process the bundle atomically, analogous to both the Provide and Register Document Set-b [ITI-41] transaction and FHIR “transaction” as specified in http://hl7.org/fhir/R4/http.html#transaction.

If a new document is provided which replaces a previous document, the new DocumentReference is added in the Bundle with a reference to the to be replaced DocumentReference.
ITI-41 with RPLC requires that the replaced DocumentReference will be in 'deprecated' (eq to 'superseded') state. However you need know this 'hidden' behaviour, it is not clear from the FHIR Bundle transaction semantics.
See also discussion on Zulip
Proposed Change
Explicitly add a remark that for replacing a document that the to be replaced DocumentReference has to be added to the transaction bundle with an Update Entry:
The Document Recipient shall process the bundle atomically, analogous to both the Provide and Register Document Set-b [ITI-41] transaction and FHIR “transaction” as specified in http://hl7.org/fhir/R4/http.html#transaction. Note: If a DocumentReference will be replaced, the to be replaced DocumentReference needs to be added and updated to 'superseeded' within the transaction bundle.
Priority:

Medium: Significant issue or clarification. Requires discussion, but should not lead to long debate.

is this preferable to moving to a transaction? It has the downside of requiring the Document Source to provide the to-be-replaced Resource, which XDS did not require. It would certainly be more obvious that this is required.
I think in the case of signs, and appends; this would not be a problem since the new DocumentReference simply points at the previous, there is no change to the previous.

IMO, the only sustainable solution is to move to Operation and define the replaces-behaviour as part of the expected business logic. The problem is this: a transaction is a generic thing. It processes whatever is in the bundle in a transactional manner. All implementations must be generic because transactions are not named, we cannot assign a special meaning to one transaction above the others based on a specific constellation of the Bundle's content.
This only works, if the MHD-transaction is the ONLY transaction, the server ever implements and the client ever uses. But how sustainable is that?
How can a server that implements multiple transactions convey to a client which interactions inside a transaction are allowed and which aren't? My assumption has alway been that a client can post any and all permutations of individual REST interactions a server supports (according to their CapabilityStatment) as a transaction. But that is not the case in MHD.
I believe that forcing servers to use the transaction in this very particular manner, prevents them from implementing generic transactions in the future and therefore these server can never be anything but an MHD Endoint.

@simoneOnFhir I think I agree with you. Can you propose what the change to ITI-65 would look like, including the definition of the operation? (create a pull-request that we could review at an upcoming call)

@JohnMoehrke @simoneOnFhir the original proposal was, that the replaceTo functionality is added in a 'restful' way and in a non XDS grouping this would just work fine with the transaction api and no need to know any semantics behind it. if it would be grouped with an xds system, the implementation could also communicate any conditions not satisfied within the xds environment.
I'm not against defining an operation, but the operation should cover then the replaceTo functionality and not the regular provide and register functionality which can be handled just with the standard fhir transaction semantics.

I would like to have some alternative pull-requests we can look at.

@oliveregger Yes, the replaceTo issue was the original trigger that started this discussion, but in the meantime I found additional problems described above. Mainly: A transaction is a (random) aggregeation of available RESTful Interactions on a server. However MHD does not define CREATE of DocumentReference, Binary etc. as individually available interactions. They just 'magically' appear inside the transaction, which is a feature for which FHIR has no means of defining this in a CapabilityStatement, unless client and server simply agree on the fact that "the server does whatever MHD says and nothing more". This approach however breaks as soon as the server's functionality goes beyond MHD.

We are currently developing the Operation approach for the German 'ISiK' project: https://simplifier.net/isik-dokumentenaustausch/submit-document
The documentation also describes the expected relatesTo behaviour.
However, for this to work in an MHD context, the Operation would need to be expanded to include Lists(SubmissionSet).
Side note: we have found it to be a bit more challenging to express references between parameters, since we do not have a fullUrl property in the Parameter resource...
In our context this isn't much of an issue, since the reference between metadata and pyload can be assumed to be implicit, but as soon as the possibility of submitting multiple documents at once is introduced, this needs to be addressed.

Currently discussing best practice for references between Parameters: https://chat.fhir.org/#narrow/stream/179177-conformance/topic/References.20between.20parameters

discussion at f2f of variations:

existing iti-65 should be converted to an operation (1)
existing iti-65 should be a transaction with replaceTo DocumentReference in the bundle (2): an invariant could be added that a DocumentReference with a superseeded state needs to be referenced in the bundle
addon replaceTo operation and remove replaceTo behaviour from iti-65 transaction
undecided or no preference (2)

Although we have accepted one solution, other alternative solutions can be presented accepted. Where multiple alternatives can be presented in Public-Comment for decision. @simoneOnFhir please submit a pull request of your solution.


first data model for collaboraton model

implement data obj for specs/data_formats/schemas in crystal (use json serialization)
the data on filesystem (examples) are in yaml
with some test data, walk over fs (toll) and load in mem (yaml to json, then json deserialize)
can we show decent error when yaml not well formatted
create a tool to use cjinja2 to create markdown pages per relevant item, basically a human readable export of the data (link stories to circles, ...)
create examples for all, subdir is not relevant, the name as used of file also not relevant

start with person/circle just to see how it would work


WIP: add ovn ui

Signed-off-by: Adrian Moreno<EMAIL_ADDRESS>

Still need to figure out:

How to show more information in the right hand side panel (OVN metadata)
Why are my sample pods not showing up
Do i need to add ownership links (as discussed yerstarday)?
Is there a better way to show StaticRoutes, ACLs, etc? E.g: in the right hand side panel?
How can I show all the switches (only 3 are shown when the "group" is expanded)
How do I fit the node/host (Chassis in OVN parlance) in the picture?

Any help is appreciated


TextBox PasswordChar

Add the possibility to set in TextBox a password char to use textbox as password box

But you have a PasswordBox control


Incorrect default parameter value in Riesz energy reference direction?

Hello everyone.
In the class RieszEnergyReferenceDirectionFactory, it is said that a good value for d is the number of dimensions squared:
https://github.com/msu-coinlab/pymoo/blob/567901c0681081e7e928ccc51c0ec6c7a3e32edd/pymoo/util/ref_dirs/energy.py#L49
However the actual computation for d is multiplying the number of dimensions by two:
https://github.com/msu-coinlab/pymoo/blob/567901c0681081e7e928ccc51c0ec6c7a3e32edd/pymoo/util/ref_dirs/energy.py#L51
According to the comment it should be
self.d = n_dim ** 2

Is that a mistake in the comment or in the code?

Not really a typo, but we have realized the square has issues in larger dimensions because of precision issues.
Because for 10 dimensions, a number is taken to the power of 100 already. For smaller dimensions that is not a problem though.
Please let me know if your experiments show a better recommendation for d.
We provide some empirical results in the supplementary material of the paper:
https://ieeexplore.ieee.org/ielx7/4235/9340033/9086772/supp1-2992387.pdf?tp=&arnumber=9086772

I suggest updating the comment to avoid future confusion if someone look at the code.
I read this while I was investigating unusually very long computation times when generating 10 000 reference directions, but that's another issue. I will investigate and open another github issue if necessary, unless maybe both issues are linked somehow.

Yes, thanks for letting me know.
Since most MOEAs use not more than 1000 reference directions (keep in mind this is often equal to your population size) scaling the number of reference directions played only a minor role in our study.

I am generating this much reference directions because I use them to get points on the true Pareto front on some problems. According to a recent paper, IGD+ works better with something like 10 000+ points.
When generating reference directions for heuristics like NSGA-III, I am indeed generating as much points as the population size setting, ~200 individuals and everything works well and fast in this case.


plot_cfg not working

I am not able to plot graphs. Even the example files that you have given are not working.
`/home/siddhu/.virtualenvs/angr/lib/python2.7/site-packages/bingraphvis/angr/factory.pyc in default_cfg_pipeline(self, cfg, asminst, vexinst, remove_path_terminator, color_edges, comments)
19             vis.add_content(AngrAsm(project))
20             if comments:
---> 21                 if cfg.sort == 'fast':
22                     if project.arch.name in ('X86', 'AMD64'):
23                         vis.add_content_annotator(AngrX86CommentsAsm(project))
AttributeError: 'CFGAccurate' object has no attribute 'sort'
`

Hi! Thanks for the report. Most probably CFGBase was changed in the latest angr relase.
I will not have time to look into this deeper during this week.
As a workaround, you could try to call it with 'comments=False' parameter, or modify https://github.com/axt/bingraphvis/blob/master/bingraphvis/angr/factory.py to solve the error, by keeping only these lines
if comments:
    vis.add_content_annotator(AngrCommentsAsm(project))

I can't promise that if you try these workarounds, they will help. The latest angr release was a big ones, maybe there are some other broken dependencies. I will fix it on next week.

I did try it with 'comments = False' but there are other errors.

Which version are you using? I've updated my env to the latest angr, and except that the node colorings are wrong, I don't get any errors.


Credits

Model Sources
info
github.com/AleksandrRazhev/ortu_stella_fortunata
github.com/35jakesmith/social-time
github.com/smdann/socialize-api
github.com/JonSpircoff7/Social_Network
github.com/Z9tails/SociallyAPI
github.com/kurtbixby/literate-pancake-social-media subject to license (MIT)
github.com/3roses/social-network-api_no-sql subject to license (MIT)
github.com/Unicorn-Barf/Social_Network_API
github.com/LonelyOrphan/social-network-api
github.com/scottybuoy/social-network-api
github.com/CaseySMiller/socialNetworkAPI subject to license (MIT)

Routes Sources
github.com/HillaShx/spectracker-api
github.com/gauravdas014/api_404-css_hacks1.0
github.com/Sujay99999/natours---backend
github.com/shnala/social-network-api-bcs
github.com/AnneLivia/SimpleTwitter subject to license (MIT)
github.com/Khanh-T-Tran/Social-network-API-NoSQL
github.com/RaiderNationBuilder/NOSQL-Media

Check


Add onShouldQuit

The code is mostly copied from UiWindow::onClosing.
I have no idea if this is the correct way to implement it, but now the "Quit" menu and Cmd+Q works on macOS (not tested on other platforms).
I didn't add anything about the new function to the documentation (not sure if the node callback is correct). You can try it out with control-gallery.js and node-pad.js.
Fixes #4

Now that I think about it, onClosing is a callback for a specific window, while onShouldQuit is for the whole application. But my changes add it to the UiWindow, so I guess it should rather be in here:
https://github.com/parro-it/libui-node/blob/4ab86489c80dbfc5ac90d720771c4f27fe6c7fd0/src/Ui.cc#L5-L10
This difference should also be mentioned in the docs.

onClosing is a callback for a specific window, while onShouldQuit is for the whole application

Yes, I agree with you, the Ui class is the right place to add the new method.

I updated the code.
I guess this should be documented in initialization.md?

Build is failing on macOS because of
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.
Also happens on my mac.
Works when commenting out (libui.startLoop() doesn't return/blocks)
test.before(() => {
	libui.startLoop();
});

test.after(() => {
	libui.stopLoop();
});

Seems to work well on mac


Renaming EV for Chat and Identity

Changes for Chat and Identity package to rename environment variables.

/azp run js - communication-identity - tests

/azp run js - communication-chat - tests

/azp run js - communication-chat - tests

/azp run js - communication-identity - tests

/azp run js - communication-chat - tests

/azp run js - communication-identity - tests

/azp run js - communication-chat - tests

/azp run js - communication-identity - tests


Read timed out

Hello,
I try to index in SOLR
I have a problem with the first run of mongo-connector.
I use the mongo-connector 1.3.1, mongoDB 2.4.9 and SOLR 4.6
Solr run with 8Go RAM
And I've finally setted the DEFAULT_MAX_BULK to 5
Each time I run:
mongo-connector --auto-commit-interval=0 -m mongodb://:@:/ -t http://:/solr/ -d /path/to/solr_doc_manager_131.py -n . --unique-key=id -o /path/to/config.txt -v
I have:
.
.
.
2014-12-22 17:29:40,897 - DEBUG - Starting to build add request...
2014-12-22 17:29:43,779 - DEBUG - Built add request of 5 docs in 2.88 seconds.
2014-12-22 17:29:43,891 - DEBUG - Starting request to 'http://host:port/solr/core/update/?commit=true' (post) with body 'u'<add com'...
2014-12-22 17:29:51,829 - DEBUG - "POST /solr/core/update/?commit=true HTTP/1.1" 200 None
2014-12-22 17:29:51,830 - INFO - Finished 'http://host:port/solr/core/update/?commit=true' (post) with body 'u'<add com' in 7.939 seconds.
2014-12-22 17:29:57,601 - DEBUG - Starting to build add request...
2014-12-22 17:30:05,727 - DEBUG - Built add request of 5 docs in 8.12 seconds.
2014-12-22 17:30:06,163 - DEBUG - Starting request to 'http://host:port/solr/core/update/?commit=true' (post) with body 'u'<add com'...
2014-12-22 17:31:15,189 - ERROR - Connection to server 'http://host:port/solr/core/update/?commit=true' timed out: HTTPConnectionPool(host='host', port=port): Read timed out. (read timeout=60)
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/pysolr.py", line 302, in _send_request
timeout=self.timeout)
File "/usr/local/lib64/python2.6/site-packages/requests-2.5.0-py2.6.egg/requests/sessions.py", line 504, in post
return self.request('POST', url, data=data, json=json, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/requests-2.5.0-py2.6.egg/requests/sessions.py", line 461, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib64/python2.6/site-packages/requests-2.5.0-py2.6.egg/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib64/python2.6/site-packages/requests-2.5.0-py2.6.egg/requests/adapters.py", line 433, in send
raise ReadTimeout(e, request=request)
ReadTimeout: HTTPConnectionPool(host='host', port=port): Read timed out. (read timeout=60)
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/mongo_connector/oplog_manager.py", line 464, in do_dump
upsert_all(dm)
File "build/bdist.linux-x86_64/egg/mongo_connector/oplog_manager.py", line 448, in upsert_all
dm.bulk_upsert(docs_to_dump())
File "build/bdist.linux-x86_64/egg/mongo_connector/doc_managers/init.py", line 35, in wrapped
reraise(new_type, exc_value, exc_tb)
File "build/bdist.linux-x86_64/egg/mongo_connector/doc_managers/init.py", line 24, in wrapped
return f(*args, **kwargs)
File "/root/solr_doc_manager_131.py", line 241, in bulk_upsert
self.solr.add(batch, **add_kwargs)
File "build/bdist.linux-x86_64/egg/pysolr.py", line 779, in add
return self._update(m, commit=commit, waitFlush=waitFlush, waitSearcher=waitSearcher)
File "build/bdist.linux-x86_64/egg/pysolr.py", line 387, in _update
return self._send_request('post', path, message, {'Content-type': 'text/xml; charset=utf-8'})
File "build/bdist.linux-x86_64/egg/pysolr.py", line 306, in _send_request
raise SolrError(error_message % (url, err))
OperationFailed: Connection to server 'http://host:port/solr/core/update/?commit=true' timed out: HTTPConnectionPool(host='host', port=port): Read timed out. (read timeout=60)
2014-12-22 17:31:15,191 - ERROR - OplogThread: Failed during dump collection cannot recover! Collection(Database(MongoClient([u'prj-lb2mongosdr:9999', u'prj-clmdbsdr01:9999']), u'local'), u'oplog.rs')
2014-12-22 17:31:15,191 - DEBUG - OplogThread: Last entry is the one we already processed.  Up to date.  Sleeping.
2014-12-22 17:31:15,810 - ERROR - MongoConnector: OplogThread <OplogThread(Thread-2, started<PHONE_NUMBER>93664)> unexpectedly stopped! Shutting down
2014-12-22 17:31:15,810 - INFO - MongoConnector: Stopping all OplogThreads
2014-12-22 17:31:15,810 - DEBUG - OplogThread: exiting due to join call.
So that run just few minutes and crash
But when I crawl with LucidWorks that works perfectly
Thank you for your help

Hi @crashbtz
Are you still able to connect to Solr at all after the read timeout reported by Mongo Connector? Could you please provide the relevant logs from Solr as well? Thanks.

Hi,
Thank you for your response.
I found what was wrong. The mongo documents I tried to index were too large and the logs from Solr said something like "OutMemoryException".
Now I only index the fields I need and that works fine.
And to answer your question, I was not able to connect solr after the read timout cause solr has crashed, so I had to restart it.
sorry for the inconvenience

No worries. Glad you got your problem solved!

Thanks for the hint @crashbtz. Increasing Solr heap and memory size seems to fixe my issue too.
I changed solr.in.sh script
SOLR_HEAP="16g" SOLR_JAVA_MEM="-Xms512m -Xmx16g"


Theming option tab not showing

Was the theming option removed recently? Im having the same issue as https://github.com/react-theming/storybook-addon/issues/28
My setup looks like this:
import { createTheme, ThemeProvider } from '@material-ui/core';
import { withThemes  } from '@react-theming/storybook-addon';
import themes from '../src/themes';

import { red } from '@material-ui/core/colors';

export const parameters = {
  actions: { argTypesRegex: "^on[A-Z].*" },
  controls: {
    matchers: {
      color: /(background|color)$/i,
      date: /Date$/,
    },
  },
};

// A custom theme for this app
const theme = {
  palette: {
    primary: {
      main: '#556cd6',
    },
    secondary: {
      main: '#19857b',
    },
    error: {
      main: red.A400,
    },
    background: {
      default: '#fff',
    },
  },
};

const providerFn = ({ theme, children }) => {
  const muiTheme = createTheme(theme);
  return (
    <ThemeProvider theme={muiTheme}>{children}</ThemeProvider>
  );
};

const themingDecorator = withThemes(null, [ themes.new, theme ], { providerFn });

export const decorators = [
  themingDecorator,
];

Hey @RHeynsZa
Could you please clarify what exactly is missing in your storybook? Did you specify this addon in main.js -> addons section?

Really weird. After disabling all other addons but this one and then progressively bringing them back, everything's working again.


New Post: Push API Basics (in Java)

I have committed updates for all of your comments so far.  Thanks!
I wanted to briefly comment that I like this process - at my previous company there was only one person that would review the posts, and it was typically after they were posted.  I like the collaborative nature here.  And they would never catch a missing semicolon in source code.  ; )


Provide better help with zopen-xxx utilities

@peter-sylvester has pointed out that curl has a variety of ways to describe help: #666  and also git does too

Previous comments were:
IMHO, there are ways: compare 'curl --help' to 'man curl' , 'curl --verbose help' and 'curl --help all'


Error response from daemon: driver failed programming external connectivity on endpoint nginx-proxy

Error response from daemon: driver failed programming external connectivity on endpoint nginx-proxy
need help~~

Error response from daemon: driver failed programming external connectivity on endpoint nginx-proxy (669659d666e6b6164716c6009cc1f1b413f2130e8d6238db341769bce23620fa): Error starting userland proxy: Bind for <IP_ADDRESS>:80: unexpected error (Failure EADDRINUSE)
Error: failed to start containers: nginx-proxy

Error response from daemon: driver failed programming external connectivity on endpoint nginx-proxy (669659d666e6b6164716c6009cc1f1b413f2130e8d6238db341769bce23620fa): Error starting userland proxy: Bind for <IP_ADDRESS>:80: unexpected error (Failure EADDRINUSE)
Error: failed to start containers: nginx-proxy