k3s v1.25 -> v1.26 failed to start due to missing zfs snapshotter

Environmental Info:
K3s Version:

k3s version v1.26.5+k3s1 (7cefebea)
go version go1.19.9

Node(s) CPU architecture, OS, and Version:  x86_64, alpine

Cluster Configuration:

disable:
- servicelb
- traefik

prefer-bundled-bin: true
snapshotter: zfs

kubelet-arg:
#- maxPods=250
- config=/etc/rancher/k3s/kubelet.config

Describe the bug:
1.25 enabled snapshotter: zfs, works fine, upgrade to 1.26 by replace binary,
k3s
Waiting for containerd startup: rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService

/k3s/agent/containerd/containerd.log
time="2023-06-04T16:17:14.398351570+08:00" level=info msg="Connect containerd service"
time="2023-06-04T16:17:14.398408099+08:00" level=info msg="using legacy CRI server"
time="2023-06-04T16:17:14.398418537+08:00" level=info msg="using experimental NRI integration - disable nri plugin to prevent this"
time="2023-06-04T16:17:14.398549887+08:00" level=warning msg="failed to load plugin io.containerd.grpc.v1.cri" error="failed to create CRI service: failed to find snapshotter \"zfs\""
time="2023-06-04T16:17:14.398913047+08:00" level=info msg=serving... address=/run/k3s/containerd/containerd.sock.ttrpc
time="2023-06-04T16:17:14.398971211+08:00" level=info msg=serving... address=/run/k3s/containerd/containerd.sock
time="2023-06-04T16:17:14.398989382+08:00" level=info msg="containerd successfully booted in 0.430664s"

Steps To Reproduce:
with snapshotter: zfs
Expected behavior:

works
Actual behavior:

failed to start
Additional context / logs:

data/current/bin/ctr plugin ls | grep snapshotte

1.26
io.containerd.snapshotter.v1           btrfs                    linux/amd64    skip
io.containerd.snapshotter.v1           native                   linux/amd64    ok
io.containerd.snapshotter.v1           overlayfs                linux/amd64    ok
io.containerd.snapshotter.v1           fuse-overlayfs           linux/amd64    ok
io.containerd.snapshotter.v1           stargz                   linux/amd64    ok

1.25
io.containerd.snapshotter.v1           aufs                     linux/amd64    skip
io.containerd.snapshotter.v1           btrfs                    linux/amd64    skip
io.containerd.snapshotter.v1           native                   linux/amd64    ok
io.containerd.snapshotter.v1           overlayfs                linux/amd64    ok
io.containerd.snapshotter.v1           fuse-overlayfs           linux/amd64    ok
io.containerd.snapshotter.v1           stargz                   linux/amd64    ok
io.containerd.snapshotter.v1           devmapper                linux/amd64    error
io.containerd.snapshotter.v1           zfs                      linux/amd64    ok

Looks like this should fix this issue: https://github.com/k3s-io/k3s/pull/7661

Should I close this prefer #7661

Should I close this prefer #7661

I don't think so as that is a PR whereas this is an issue.


feat/redis_db

allow several database backends

Summary by CodeRabbit

New Features

Enhanced command-line interface with options for specifying database backends and Redis connection parameters.
Updated documentation to provide detailed command usage for hivemind-core.

Bug Fixes

Improved error handling for client addition failures in the command-line interface.

Refactor

Restructured client management and database interactions for better organization and clarity.
Centralized database access logic in client connection validation.

Documentation

Significant enhancements to the README, including a "Getting Started" section and detailed command descriptions.

Tests

Overhauled test suite for comprehensive coverage of client and database functionalities across different backends.

@coderabbitai review

closes #3


removing experimental attribute from connection entity

Description
-removing experimental attribute from connection entity. connections entity was already made GA and now removing experimental attribute from entity
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-ai-ml


clean slate

i think release/2.0 should start with very little

the only reason this is failing is because of test coverage, which doesn't matter because it will get passed as we add more implementations.


Storing/Loading  trained model and Obtaining unscaled predictions

Hi! First of all, thanks for the amazing work done on this paper and implementation!
I have two questions I haven't been able to obtain the answer so far:

It is possible to save the model once trained so that later I can load it?
When inspecting the true/predicted series with preds = np.load('./results/'+setting+'/pred.npy')... a scaled version of both the predictions and the ground truth target is obtained. Is it possible to obtain the original (unscaled) ones? (in other words, where can I obtain the mean/std values for doing the inverse transformation?

Thanks in advance!

Hi,

The model will be saved in folder {args.checkpoints}/{setting}/, you can use --checkpoints XXX to set args.checkpoints and setting is generated according to your experiment setting. You can refer to code exp/exp_informer.py line 245 to get more information about loading model

https://github.com/zhouhaoyi/Informer2020/blob/410535ebeb59e526a7402e0454235fe1cab83605/exp/exp_informer.py#L245-L246

You can use dataset.inverse_transform(data) to inverse transform scaled data, or you can use --inverse to run an unscaled data training experiment. Please refer to code data/data_loader.py and utils/tools.py to get more information.

https://github.com/zhouhaoyi/Informer2020/blob/410535ebeb59e526a7402e0454235fe1cab83605/data/data_loader.py#L95-L96
https://github.com/zhouhaoyi/Informer2020/blob/410535ebeb59e526a7402e0454235fe1cab83605/utils/tools.py#L56-L73

Suppose there is no more discussion. I will close this issue now.


Nothing working

Everything not working enabling/disabling anything in the app does nothing
Oppo reno5 4g - Android 13

there is a fork at https://codeberg.org/s1m/savertuner that adds support for newer androids and is actively mantained


Adding Custom Canvas on top of each pdf.JS page does not get included in Print Preview

in viewer.js this line of code
canvases = document.querySelectorAll('canvas');
gets all canvases for print preview. when i add a custom canvas beside each pdf.js canvas page, it does not get included in the print preview.

It is located in web/mozPrintCallback_polyfill.js, so that is only done for browsers other than Firefox, meaning that it will probably work differently in Firefox. There is no use-case for us for adding more canvases and from the issue it's not clear/reproducible what the problem is, so I'm closing this for now.

hi tim. thank you for the feedback. yes you are right, that is where i checked the code. in my use case, i added another canvas layer on top of the pdf.js page canvas because i display my own custom annotations.
i would like to have those same annotations get printed but they do not seem to get included. in the canvases variable, they are part of it but somehow like in chrome, i checked the print preview and the annotations do not get shown. only the pdf.js canvas pages are shown.
any ideas?

The only thing I can think of is that the PDF.js canvas layer is placed on top of your annotation canvas layer, but it's not possible to say for sure without seeing your code.

PDF.js does not print the canvases that are visible in the viewer, but rather renders to printing-specific canvases during the print process; please refer to this code: https://github.com/mozilla/pdf.js/blob/d2a4974785ac7ed199fa25b62903ebbed63bd882/web/pdf_page_view.js#L544.
Hence if you want to print the contents of other canvases as well, you will have to implement that yourself (perhaps in the PDFPageView_beforePrint method), since it's out of scope for the PDF.js viewer.

thank you for the tips. i will check it out!

Hi Chitgoks
How about your solution to resolve this issues ?
I am having the same issues than you at the moment. Thank you

hello dacsy.
i dont understand pdf.js code deep within so I ended up using the pdf.js canvas since there is no way to force pdf.js  to include your custom canvas without having to modify it.

Oh, okie I got it. Thank you for your answering my question

@Snuffleupagus hi, this is an old post, but i thought the need to revisit and ask if you have an idea
on how to get references to this "but rather renders to printing-specific canvases"?

hi chitgoks,
How about your solution to resolve this issues ?
I have create pdf annotated using pdf.js and viewer.js
but canvas not print and download ... if you have solution pl,,,  help


Has anything changed withing source file ?

I got this error message :
KeyError                                  Traceback (most recent call last)
 in ()
10     reader = csv.DictReader(csvfile, delimiter='\t')
11     for row in reader:
---> 12         question1.append(row['text1'])
13         question2.append(row['text2'])
14         is_duplicate.append(row['duplicate'])
KeyError: 'text1'

The use of text1, text2 and dupicate, as opposed to the correct question1, question2 and is_duplicate were due to a temporary change in the state of the source Quora data file early on in February. Fixed.


When a parent component is wrapped with Observer, the child components will be re-rendered when data changes.

如题，求教这个问题如何解决

I have a problem, when state chanegd if a parent vue component use Observer to wrap it, the child component will rerender.
How to memo the child vue component so that it can render once.

@1eeing we need a reproduce online demo to check your issue (codesandbox or whatever) , thanks.

@wobsoriano Any idea ?

I have no idea yet of a way to only apply changes to elements that have been updated and are using an observable.
For now, it's best to use useLocalObservable composable, or only wrap the components that needs to be observed:

<template>
  <Observer>

Name: {{ data.name }}

    <button @click="changeName">Change name</button>

Name: {{ data.name }}

  </Observer>
  <AnotherComponent />
</template>

They are very simple components, if we binding an array to complex component, it will be reset and lost all state (input, checkbox, ...) each time array changed.
  <Observer>

Name: {{ data.name }}

    <button @click="changeName">Change name</button>

Name: {{ data.name }}

  </Observer>

@huybuidac I agree. Do you have a solution in mind?

@wobsoriano

render() {         return h(this.$slots.default!, { key: this.key })     }
forceUpdate causes key change, which will cause all components wrapped in Observer Component to be re mounted and have their lifecycle restarted. Normally, the parent component will update the child components and they will also be re mounted instead of re-mounted. Can we consider replacing the prop injection of the key.
h(this.$slots.default!, { extraMobxVueKey: this.key }) like this.

@bdwenxi I just released a new version with that request. It passed the tests, which is interesting. Would you mind explaining it to me? Why does using a different key fix it? Thank you!

Feel free to reopen!


Network Watcher: rename PcProtocol to PacketCaptureProtocol, PcStatus to PacketCaptureStatus and PcError to PacketCaptureError

Would be nice to rename these fields in NetworkWatcher swagger to make names more readable and consistent with the rest of swagger spec:

PcProtocol to PacketCaptureProtocol
PcStatus to PacketCaptureStatus
PcError to PacketCaptureError

Assigning to Network Watcher team.


Slack invite on demo page is not working

Would you prefer I ask a question here or there?
I'm getting a 404

I guess it's an issue with slackin. But post your email address here or DM it to @nzgb on Twitter and I'll invite you.

See #248.


Need to review Hypertext application language processing

This hasn't been updated to work with EventLoopFutures. It does some nasty stuff when it needs to load link map entries. It stalls in a while loop repeatedly sending requests to the http client while polling to see if the request has succeeded.
Haven't found any AWS services that actually require the loading of link map entries so it's kinda hard to test any fixes.

Haven't found any AWS services that actually require the loading of link map entries so it's kinda hard to test any fixes.

May I ask what is it used for then?

There are 200 odd aws services. The fact that I haven’t found one doesn’t mean it doesn’t exist. @jonnymacs may have a better idea but he didn't seem to last time we spoke about it.
The HAL stuff was implemented for some reason and Hal+Json is returned by some services eg apigateway. It just seems it doesn’t provide any extra data we need to decide a response.

Just did a search in aws-sdk-go and aws-sdk-js repositories for ‘hypertext application language’ and ‘hal+json’. Neither of these keywords come up. I’m wondering if we need this code at all.

Verified we do need some of the HAL support as the api response is hidden inside the Hal json.


Update readme?

"See the issues tab for all known issues. This project is actively maintained by HPE, so you should see a reasonably quick response if you identify a gap."
Is this actively maintained by HPE any more really?

@sknolin Not as actively as it should be, clearly. I'll wrap back on this and chew through as time allows. All sorts of other work has gotten in the way (not that it's a good enough excuse).

@sknolin Objectionable text removed, and a better faith effort will be made to work through the outstanding requests here. Sincere apologies.


Take the lead on TensorFlow relationship

Take the lead on TensorFlow relationship

Waiting for @fg-mindee to introduce me

Just did it :+1:

@fg-mindee : thanks


fix: circuit relay v2 follow up items

Code sanitation:

splits code and config into transport and server
updates docs
consolidates relay and circuit tests
updates relay discovery to use topology
increases test coverage
reuses connection gater for acl instead of introducing a new acl mechanism
adds migration guide

Bug fixes:

if multiple relays are discovered simultaneously, try to reserve a slot in them in series, otherwise we can end up listening on multiple relays by accident
relay server tags the reserving peer instead of tagging itself
incoming remote address was missing p2p-circuit tuple so we were allowing relay to relay forwarding
relay client tags outgoing relay connections
limit data transfer as total in both directions instead of apply limit to both sides of the relayed stream separately
allow client to refuse incoming relayed connections

fixes: #1608
refs: #1610

I'm going to merge this to unblock the other PRs.  We should hold off release until the multiaddr/webrtc naming thing is resolved.
Adding metrics is a good idea, this can be done as a follow up.


Hello, I encountered with following error code at the step of installing pinnochio

I typed the following command in order to install,
sudo apt install -qqy robotpkg-py27-pinocchio
and got this message
E: Unable to locate package robotpkg-py27-pinocchio.
There is any package or program should I prepare preliminary?

Hi,
Actually, we still support python 2.7, at least on 18.04, because our robots are stuck there…
What are your OS and version ? Did you add robotpkg in your apt lists ? Did you add robotpkg key to apt keys ? Did you run apt update afterwards ?


Could you please specify next example "Import from bacpac file located in Azure Blob Storage".

When I tried 'sqlpackage /a:import' command and specified  URL of bacpaqc file like '/sf:https://somepath.bacpac' I got an error "The given path's format is not supported". Thanks.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 65a16702-87ad-4801-5171-f5e629661cb4
Version Independent ID: bdd076dd-9b65-4054-b7f8-16e12e6a6f99
Content: Import a BACPAC file to create an Azure SQL database
Content Source: articles/sql-database/sql-database-import.md
Service: sql-database
Sub-service: migration
GitHub Login: @stevestein
Microsoft Alias: sstein

@NavtejSaini-MSFT thanks for response, but portal is not my case. My database is more then 200 GB.

@NavtejSaini-MSFT Today I was trying powershell cmdlet that was mentioned in the article, and got the error ->
" ParentResourceNotFound: Can not perform requested operation on nested resource. Parent resource 'MyTargetServerName' not found."
Couldnt understand why server not found, it is already exist.

@stevestein Please let us know if any other information is required in this regard.

@KatiukOleg - thanks for opening this issue.
The PowerShell example should import your bacpac from Azure Storage. Are you encountering an issue while using the exact example, or have you modified the code?
Another example can be found in the cmdlet reference article: https://docs.microsoft.com/en-us/powershell/module/az.sql/new-azsqldatabaseimport?view=azps-2.6.0#examples


[ACS - Chat] Add Attachments to ChatMessage

Data Plane API - Pull Request

API Info: The Basics
Most of the information about your service should be captured in the issue that serves as your engagement record.

Link to engagement record issue:

Is this review for (select one):

[ ] a private preview
[x] a public preview
[ ] GA release

Change Scope
This section will help us focus on the specific parts of your API that are new or have been modified. Please share a link to the design document for the new APIs, a link to the previous Open API document (swagger) if applicable, and the root paths that have been updated.

Design Document:
Previous Open API Doc:
Updated paths:

❔Got questions? Need additional info?? We are here to help!

 Contact us!
The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

💬 Teams Channel
💌 email

Click here for links to tools, specs, guidelines & other good stuff
Tooling

Open API validation tools were run on this PR. Go here to see how to fix errors
Spectral Linting
Open API Hub

Guidelines & Specifications

Azure REST API Guidelines
OpenAPI Style Guidelines
Azure Breaking Change Policy

Helpful Links

Azure DevTools Wiki

fix https://github.com/Azure/azure-rest-api-specs/issues/22374

/azp run

Please consider fixing these next preview:

maxPageSize should be maxpagesize
operation should use default response for common errors, lots of places
Support x-ms-error-code header in error response
post with application/merge-patch+json seems wrong


Netlify build: select a newer build image

Netlify build logs now contain the following notice:

DEPRECATION NOTICE: Builds using the Xenial build image will fail after November 15th, 2022.
The build image for this site uses Ubuntu 16.04 Xenial Xerus, which is no longer supported.
All Netlify builds using the Xenial build image will begin failing in the week of November 15th, 2022.
To avoid service disruption, please select a newer build image at the following link:
https://app.netlify.com/sites/docsydocs/settings/deploys#build-image-selection
For more details, visit the build image migration guide:
https://answers.netlify.com/t/please-read-end-of-support-for-xenial-build-image-everything-you-need-to-know/68239

Build image changed to: Ubuntu Focal 20.04 (default).

No build errors reported.


Show tooltips based on cursors x position in line charts

Hi,
I'm working with scatter charts and a large amount of points which results in an overlapping of the hover areas while trying to trigger the tooltips. I would like to bypass this mechanism and use the current x position of the mouse cursor instead to show the corresponding tooltip on the line chart. Here is an example of what I'm trying to describe in flotcharts:
http://www.flotcharts.org/flot/examples/tracking/index.html
It looks like this was the normal behavior of line charts in v1 to trigger the tooltips, but is it still possible to do this with v2?

Facing the same challenge...I'd love to know how to approach implementing this too.

I highly doubt the core devs will respond as their rules clearly state that we should not be asking support questions in the issue tracker ( use stackoverflow with the appropriate tag ).
 I couldn't figure out how to properly extend the Chart.elements.Point:inRange() properly to be used by the Chart.line so I ended up monkey patching the library >_<.

@mdh-cc @hoboman313 I think you need to use the inLabelRange function of the point elements.
What you could do is replace the getElementAtEvent and getElementsAtEvent functions with versions that use inLabelRange instead of inRange. You should be able to do this after charts are created.
I'd be happy to merge a PR adding a new tooltip mode that added this functionality. I can give you some direction in implementing it if necessary

@etimberg I would love to see how to implement this also for a Line chart. Any example code would be great. Thanks!

@ericcirone I created a fiddle for you. In it I hotpatch the getElementsAtEvent method on the main chart controller to use inLabelRange.
https://jsfiddle.net/a077grhm/

@etimberg Thanks so much! Hopefully this is can be implemented as a new tooltip mode. Side note, on a bar chart, when you are on top of the bar the bar goes into hover mode, but doesn't display the tooltip. Any idea?

@ericcirone It'd make a great mode. To anyone who comes across this, I'd be happy to accept a PR for this.
is the tooltip mode set to label?
config = {
  tooltip: {
    mode: 'label'
  }
}

@etimberg You got it. I forgot to set those to label. Thanks a bunch.

@etimberg Thank you for the fiddle, this should solve my current problem.

isDatasetVisible does not seem to be a part of helpers at this time in 2.1.3. I noticed you're using 2.0.2 in the fiddle @etimberg.
I found this.isDatasetVisible to be valid but now its dataset is undefined. Could you point me in the right direction? or should I SO this question?
It would be great if this functionality can become a standard option again (it was in 1.x)

@ThaJay here's an updated version of the fiddle: https://jsfiddle.net/a077grhm/3/
This is on our radar to add back. If someone wants to PR it I'd happily merge it. They'd need a new mode string to set the tooltip to this mode, and a new function to that does what the fiddle does. I'd be happy to discuss refactoring this. I think that these functions should be stored somewhere else so they're easier to patch and extend

Nice thanks!
It would have taken me days to figure out all those small api changes, but your fiddle works for us.
So far, you guys have impressed me with your fast and high quality responses on here, very good work.

Glad it works for your use case. I'll try and add this back before the next release so that you don't need any hacks to make it work :smiley:

I've built a plugin for this which we use on PriceSpy (https://m.pricespy.co.uk/product/3499390/statistics)
The difference is that we show a tooltip until we reach a new one (we have so many data points it will be a lot of "blinking" otherwise)
Would be nice to have in core.
If it might be of any help this is the function that's called on onclick, onmousemove and ontouchmove.
I guess it need some minor tuning to work with multiple datasets.

let activeTooltip = null;

function showTooltipForPointEvenIfNotHoveringExactlyOverIt(chartInstance, evt) {
  const helpers = Chart.helpers;
  const eventPosition = helpers.getRelativePosition(evt, chartInstance.chart);

  helpers.each(chartInstance.data.datasets, (dataset, datasetIndex) => {
    if (chartInstance.isDatasetVisible(datasetIndex)) {
      helpers.each(chartInstance.getDatasetMeta(datasetIndex).data, element => {
        if (element.inLabelRange(eventPosition.x, eventPosition.y)) {
          activeTooltip = element;
          return;
        }
      });
    }
  });

  if (activeTooltip) {
    chartInstance.tooltipActive.push(activeTooltip);
    chartInstance.tooltip.update(true);
    chartInstance.render(0, true);
  }
}

This is exactly what I was looking for -- I'll give it a shot and report back.
Thanks!

@etimberg: Just tried your hotfix with the 1.0.0 beta, but it's giving me an error:
Uncaught TypeError: helpers.isDatasetVisible is not a function
Any idea what could be causing this?

@adamtLICOR isDatasetVisible is now a method on the core chart instance.https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L481

Yup, I figured that part out. I tried copying the getElementsAtEvent method and just swapping in inLabelRange, but that doesn't seem to do the trick (still only highlights on the literal dot).
Here's my new code, maybe I'm missing something:
    getElementsAtXAxis: function(e){
        var me = this;
        var eventPosition = helpers.getRelativePosition(e, me.chart);
        var elementsArray = [];

        var found = (function() {
            if (me.data.datasets) {
                for (var i = 0; i < me.data.datasets.length; i++) {
                    var meta = me.getDatasetMeta(i);
                    if (me.isDatasetVisible(i)) {
                        for (var j = 0; j < meta.data.length; j++) {
                            if (meta.data[j].inLabelRange(eventPosition.x, eventPosition.y)) {
                                return meta.data[j];
                            }
                        }
                    }
                }
            }
        }).call(me);

        if (!found) {
            return elementsArray;
        }

        helpers.each(me.data.datasets, function(dataset, datasetIndex) {
            if (me.isDatasetVisible(datasetIndex)) {
                var meta = me.getDatasetMeta(datasetIndex);
                elementsArray.push(meta.data[found._index]);
            }
        }, me);

        return elementsArray;
    }

Annnnd, I'm dumb -- I was setting the hover mode on the chart hover, but not on the tooltip. :)
It seems to work now, just fine.
If you're still looking for someone to PR the fix, I'd be more than happy to make one!

@adamtLICOR please feel free to PR this. I think we should add a new mode for this (since it is different than the current label model which some may want).

@etimberg: Okay, great! Working on it now!
(I'm the same dude -- @adamtLICOR -- just on my personal account, instead of my work account)

Thanks for all your help!

Hi Friends,
I am trying to get that thick vertical line as  cursor point to display this label ass show in initial request
http://www.flotcharts.org/flot/examples/tracking/index.html
What should I add to etimberg method to make the line visible ? any help will be appreciated

@lakjakmr  from reading this board, I think you need to update to the latest version and set the tooltip mode in your configuration to 'label' or 'x-axis'
config = {
  tooltip: {
    mode: 'label'
  }
}

The docs now say that x-axis mode is deprecated (change made by @etimberg), and suggests using index mode with intersect = false, but that doesn't seem to replicate this functionality.
Is this a bug, or was x-axis mode just marked deprecated by mistake?

@jdudley1123 the docs have an error. It should read intersect = true.

@etimberg Actually it intersect = false is right, it was my error. Fiddle shows it working: https://jsfiddle.net/o30ne2w9/
Sorry to have bothered you!

hi!

hi,
sorry to post this question but, i was trying to set a vertical line folowing the mouse like @hoboman313 did in his example here http://hoboman313.github.io/chartsjs-demo/, is it possible?
Thanks.

hi, sorry, but i can't find how do the same in 2.8.0 (https://jsfiddle.net/a077grhm/3/)

@hoboman313  can you show me the code of your  http://hoboman313.github.io/chartsjs-demo/, to be honest i am trying to build the same in ANGULAR, face lots of problems now.

The source for that is here: https://github.com/hoboman313/chartsjs-demo/blob/master/app/components/chartjs-demo.js


Cherry pick #873 into release-1.0

Cherrypick #873
Signed-off-by: Yanqiang Miao<EMAIL_ADDRESS>

The test failure is a flake in the test-infra.
/test pull-cri-containerd-node-e2e


Ensure windows paths are converted to the correct format for blaze

I was having issues using this on Windows. It seems to simply append the relative target path to the workspace - which works fine on Linux and MacOS but on Windows due to the different file separators means the target paths are invalid.
This takes any windows file path separators in the targetPattern and replaces it with the blaze separator.
The error I was seeing without this fix:
ERROR: Skipping '//main\java\example\example:all': Invalid package name 'main\java\example\example:all': package names may contain A-Z, a-z, 0-9, or any of ' !"#$%&'()*+,-./;<=>?[]^_`{|}~' (most 127-bit ascii characters except 0-31, 127, ':', or '\').
WARNING: Target pattern parsing failed.

Hi there! Thank you for contributing to the IntelliJ repository. We appreciate your time and effort. We're doing a clean up of old PRs and will be closing this one since it seems to have stalled. Please feel free to reopen/let us know if you’re still interested in pursuing this or if you'd like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.


Commit compile_for_mac.sh

I wrote this script to make the work of compiling imgbrd-grabber on mac
easier to do and wanted to share it back to the project. Hopefully it's something you fine folks feel would be helpful.
The script itself takes out a lot of the manual labor found in the compile doc:
https://github.com/Bionus/imgbrd-grabber/wiki/Compilation#macos
Instead, it attempts to do the following, covering off as many prereqs
and bases as I could think:

If HomeBrew isn't installed, run the ruby script to install it

Install prerequisites
cmake,
gcc,
qt5
NOTE: The default qt5 does not have mysql libs compiled into it.
If you need mysql, dialogues allow you to trigger brew into
doing a full build of Qt...after a warning that this can take up to
an hour or more to complete just on it's own.

It also installs a script dependency: jq(1). It's a light-weight
commandline json parsing utility, and is used to parse Brew package
information cleanly.

Since imgbrd-grabber needs https, and build depends on openssl libs,
this script checks to see if any version of openssl has been installed
with brew, and if not it also pulls in a bottled version with brew that
//shouldn't//
clobber other openssl environments on the machine. I dont think it will
at least.

With all those prerequisites out of the way, it does a git pull to
update the gir repository.

If the script is not actually WITH the git repository, the script clones
the repo from github into the location the script was executed from.

After that, the script finally starts doing the compile, mostly
according to the instructions at wiki/Compilation#macos

cmake has dependencies for OpenSSL though, so the script hooks it into
the bottle it downloaded or any other preexisting brew-installed openssl
libs it found before.

One difference the script does however is sort and move finished assets
around into a mac .app folder so it can be run from the GUI.

Next to last is the script checks if there's a previous install of
imgbrd-grabber at ${HOME}/Applications/Grabber.app

If there IS an old version there, and the user says ok, then it starts
pulling user configuration data out of
${HOME}/Applications/Grabber.app/Contents/MacOS
	/*.txt
	/*.ini
	/*.log
	/*.igl
	/thumbs/

and putting it all into the new build.

Finally the script lets the user put the new application into
${HOME}/Applications and launch it, with the preserved session from the
old app intact.

One of the things the script does not do is install any of the xcode/git fundamental packages. I just didn't want to get that deep into the weeds where the script is provisioning an entire end-to-end build environment all in one shot;) I figure brew through gcc to app is enough to help smooth the way for most techie mac users out there.

Hello!
Sorry for not answering earlier, I'm out of internet, and for still 2 weeks!
After a quick look however, your review looks good, I can see it must have taken a while to do it, so thanks! 👍
Just a few remarks before I go internet-less again:

Shouldn't it overwrite build-mac.sh though, instead of creating a new file?
Is the last line # vim:ts=4:sw=4... supposed to be there?

I'll merge it when I come back home and can take a better look 😄

Hi back!:D

Shouldn't it overwrite build-mac.sh though, instead of creating a new file?

Technically, yes it should depreciate that file. I didn't overwrite it because...it seemed rude to blatantly obliterate the original.
That's a silly answer, and I can re-name to build-mac.sh and re-commit the pull request if you'd prefer!

Is the last line # vim:ts=4:sw=4... supposed to be there?

That's a Vim style comment called a modeline
It's cosmetic and can be removed, but it will do the following if the script is viewed within vim:
ts=4 - Sets TabStop to 4, which replaces tab chars with 4 space chars if 'expandtab' is enabled

sw=4 - Sets ShiftWidth to number of space characters inserted for indentation

tw=0 - Sets TextWidth to 0, disabling the word-wrapping at 80 columns

noexpandtab - Disables conversion of tabs to spaces (despite the ts=4 value)

autoindent - copies the indentation from the previous line, when starting a new line

foldmethod=marker - Tells Vim to fold text when it finds a {{{X marker

foldcolumn=4 - Prints a 4-column wide 'graph' of fold depth

LGTM!
Thanks for the script, I guess most MacOS users will find it easier to use an interactive install script rather than debugging some obscure build failures :smile:

That's my hope too! I hope it helps and thank you for a really stupendous app dude!


Remove "Unsupported non-ASCII character" if inputenc is loaded

If the package inputenc is loaded, most likely the non ascii characters inserted
will be converted correct. I find it a bit annoying especially for the German letters äüöÄÜÖß.

Isn't this already the case?

Thanks for the picture. You are requiring fontenc. This package is not needed, afaik. Only inputenc is the dependency. At least on my tests äüöÄÜÖß are ok without fontenc and only with inputenc.

@tim-st It is true that LaTeX will compile with these characters when only inputenc is loaded. However it is advised to use fontenc as well, to make sure words with accents are hyphenated correctly in the PDF output (see also (this question on TeX StackEchange)[https://tex.stackexchange.com/questions/44694/fontenc-vs-inputenc]. Therefore, will only mark the unicode characters as fully supported when both packages are loaded.

Alright, thanks for the feedback!


Document Kernel specific settings

Would you envision more information for our current kernel settings? As it is my first public doc, I do not know if I should be adding more content

@pipo02mix I just updated the doc
@cornelius-keller would you change kernel parameters description?

I am fine with the descriptions. As this is also my first contact with the documentation I'm not sure who else we should ask for review.

I would imagine we need approval from @giantswarm/sig-ux ?

Published at https://docs.giantswarm.io/reference/kernel-settings/


Bug

When you play music for the first time and after that you want to play a playlist the playlist does not start.

Can you attach a gif or video of what you mean?

it was just me who made the mistake by modifying something in the code. sorry


which xcode12 version are you using?

Hello @vgorloff
I compile the swift-5.3-Release today, but got the error:
$  node main.js swift:make

output:

# ... other log

/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:317:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:318:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:319:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)

# ... other log

so i think my xcode 12 version is different from your's.
Could you give me your xcode 12 version's detail info?
Here is my xcode12 snapshot:

xcode Version 12.2 beta 3 (12B5035g)
which recommend in apple's doc

I am using Version 12.1 (12A7403).
On which build step it fails? On llvm, swift, stdlib ...?
What is a shown on full error log?
Btw: This is from Readme.md file for this Swift toolchain:

Toolchain build may fail if the command line tools are present in /Library/Developer/CommandLineTools. Remove them if you are not using them. See: macos - How do I uninstall the command line tools for Xcode? - Ask Different

I see (in error log above) this line:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/math.h:749:12: note: 'finite' declared here extern int finite(double)
The CommandLineTools often can became outdated. Better to remove them. Xcode.app contains same tools, libs, headers which are provided by CommandLineTools.

On which build step it fails? On llvm, swift, stdlib ...?

$  node main.js swift:make

thanks your reply.

How about removing or temporary renaming CommandLineTools folder /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk?
Is it helps?

How about removing or temporary renaming CommandLineTools folder /Library/Developer/CommandLineTools?
Is it helps?

sudo rm -rf /Library/Developer/CommandLineTools

It works, thanks.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.

  Not building docs

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/swiftSPM
"swiftSPM" Configure [host] is completed.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"swiftSPM" Build [host] is started.
mkdir -p "/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/swiftSPM"
cd /Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/swiftSPM && ninja -j3
ninja: error: '/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/llvm-project/bin/clang-10', needed by 'stdlib/public/core/OSX/arm64/Swift.o', missing and no known rule to make it
Execution of command is failed:
cd /Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/swiftSPM && ninja -j3

If error was due Memory, CPU, or Disk peak resource usage (i.e. missed file while file exists),
then try to run previous command again. Build process will perform "configure" step again,
but most of compilation steps will be skipped.

/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/lib/Tool.js:82
      throw error;
      ^

Error: Command failed: cd /Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/swiftSPM && ninja -j3
    at checkExecSyncError (child_process.js:621:11)
    at Object.execSync (child_process.js:657:15)
    at SwiftSPMBuilder.execute (/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/lib/Tool.js:72:10)
    at SwiftSPMBuilder.executeBuild (/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/lib/Builders/SwiftSPMBuilder.js:106:10)
    at SwiftSPMBuilder.build (/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/lib/Builder.js:86:10)
    at SwiftSPMBuilder.make (/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/lib/Builder.js:97:10)
    at SwiftSPMBuilder.runAction (/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/lib/Builder.js:62:12)
    at Automation.runComponentAction (/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/Automation.js:125:29)
    at Automation.run (/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/Automation.js:65:14)
    at Object.<anonymous> (/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/main.js:26:18) {
  status: 1,
  signal: null,
  output: [ null, null, null ],
  pid: 64662,
  stdout: null,
  stderr: null
}

The error:
ninja: error: '/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/llvm-project/bin/clang-10', needed by 'stdlib/public/core/OSX/arm64/Swift.o', missing and no known rule to make it
Execution of command is failed:
cd /Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/swiftSPM && ninja -j3

Uploading SwiftSPMBuilder.js.zip…
Could you give me some help, thanks.

ninja: error: '/Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/llvm-project/bin/clang-10',
needed by 'stdlib/public/core/OSX/arm64/Swift.o', missing and no known rule to make it

Execution of command is failed:
cd /Users/lihanguang/dev_kit/sdk/swift_source/swift-everywhere-toolchain/ToolChain/Build/darwin-host/swiftSPM && ninja -j3

already fix it (missing clang-10). just
var Builder = require("../Builder");
var Component = require("../Components");
var Archs = require("../Archs");

module.exports = class LLVMBuilder extends Builder {
  constructor() {
    super(Component.llvm, Archs.host);
  }

  executeBuild() {
    this.execute(`cd ${this.paths.builds} && ninja -C ${this.paths.builds} -j${this.numberOfJobs} clang llvm-tblgen clang-tblgen llvm-libraries clang-libraries`);
  }
};

// fix missing `clang-10`
// ninja -C ${this.paths.builds} -j${this.numberOfJobs} clang
this.execute(`cd ${this.paths.builds} && ninja -C ${this.paths.builds} -j${this.numberOfJobs} clang llvm-tblgen clang-tblgen llvm-libraries clang-libraries`);

Ah. I excluded clang just to make toolchain build faster .)
I will gather your SPM fixes and LLVMBuilder fix and will make a new toolchain release.
To have possibility to use debug configuration when using swift build.

Ok. The issue with SPM Debug Builds now fixed in https://github.com/vgorloff/swift-everywhere-toolchain/releases/tag/1.0.57.
Closing issue.


add firstBrokerLoginFlow to authenticationFlow handling

a follow up for #134
this PR adds firstbrokerlogin support to the authentication flow handling.

Thanks


Issue integrating mautic-rails into app

Hi,
Thanks for putting together this fantastic gem. I have been trying to integrate the gem into my app.
In rails console, I try to run the following command but receive the following error message.
>>> m.contacts.all
LoadError: Unable to autoload constant Proxy, expected /home/ubuntu/workspace/lib/mautic/proxy.rb to define it
from /usr/local/rvm/gems/ruby-2.4.0/gems/activesupport-5.1.5/lib/active_support/dependencies.rb:512:in `load_missing_constant'

However my lib/mautic/proxy.rb file is present in the relevant directory, i.e. this file is present in my directory. Would you know how I should go about trouble-shooting this?

Hello,
can you give more information - how is gem mounted in your app ? For example did you put into your Gemfile
gem "mautic", path: "/home/ubuntu/workspace"

or in some other way? For me is confused that error show "workspace" as a main directory of gem.
I'd like to reproduce it. Thank you

Hi,
The reason why it shows workspace as the main directory of the gem may be because I have actually copied over your files manually into my directories - I did not use the gem. I did so as I did not need the views. It may also be because I'm developing on the Cloud 9 workspace instead of my local machine.
your repo -> my directories:
app/models/mautic/ -> app/models/mautic/
app/controllers/concerns/mautic/connections_controller_concern.rb content into -> app/controllers/connections_controller.rb
lib/mautic/ -> lib/mautic/
lib/mautic.rb -> lib/mautic.rb
I've also updated the locales text and added the relevant routes into my app:
# routes.rb
  namespace :api do
    resources :mautic do
      member do
        get :authorize
        get :oauth2
      end
    end
  end

I've also added the autoload path:
# application.rb
config.eager_load_paths << Rails.root.join('lib/mautic')

Thanks very much for your kind assistance.

I think thats a reason, you try to copy some file from engine to your app, but you did not  setup it correctly. I suppose that correct eager_load_paths is just lib folder.
Anyway I recommend you gem "as is", or fork it, but still use it as a engine. So in your app you can clone whole repositoro lets say to "vendor" directory and to Gemfile put
gem "mautic", path: "./vendor/mautic-rails"

If you need replace views, its no problem, because rails use your app paths firstly instead engine paths, so if you create app/views/mautic/connections/_form.html.erb, rails should use your view instead of engine.
Another point - I have created controller as a concern, because I also need in my other project overwrite views - you can create own controller, include conecrn and copy (and update) routes in your routes.rb.
I have intergration with Redmine - you can use it as a working example - https://github.com/luk4s/redmine_mautic .
I hope thats help, of not let me know 🙂


SGSSB: Remove demoted staffs + AB's Custom Ability

This needs to be redone so it dosent screw up the git repo history.
Also Hurricaned can stay in, he requested Reg over Voice

Oh ok


torch.aten.resize_as

@kobeliu85  is working on aten.resize in https://github.com/nod-ai/SHARK-Turbine/issues/663
@kobeliu85 once you're done with implementing resize, it might be a good idea to tack this onto the same PR - - this seems like the same op, except instead of specifying a shape, the shape is acquired from another tensor.

@renxida @bangtianliu What's the current status of this issue?

During my onboarding, I initially selected this task but was later asked to switch to a different one, specifically implementing layouts for the conv op from the codegen team targeting the AMD MI300 GPU. So you can remove me from the assignees list now.


[BUG] Prevent user from sending empty comments in live stream inputs

Describe the bug
The input form in the live stream comments section allows users to send comments even without anything entered inside the textbox. Add a prevention logic to disable form submit if the input/value for comment is empty.
Expected behavior
Should prevent the user from allowing to send empty comment text requests,

Is this issue already fixed here in /src/Pages/Comments/index.jsx?
 const addComment = async () => {
    console.log("adding comments...");
    const comment = userComment;
    // do not comment, if there is no comment text available
    if (!(comment && comment.length > 0)) return;
    setUserComment('')
    setCommenting(true);
    await client.live.comment(broadcastId, comment);
  }

@ChoukseyKhushbu Yeah, that should have fixed it.


Add VFS type mapping for new jar mime type

Add VFS type mapping for the new jar mime type added in newer versions of Java 11 and 17, application/java-archive, to ensure it is associated with the "jar" scheme in VFS. This ensures VFS loads jars correctly when run on a newer version of Java.
This fixes #3068
Commit cherry-picked and updated from #2683

Awesome. It looks like they backported this change from JDK 17. I was wondering what would have motivated us to fix it in the newer branch... I guess it was testing with JDK 17.

Yeah, glad it was an easy fix. It didn't take too long to track down, I just created a unit test to replicate the issue with our classloader and just put a bunch of break points to compare what was happening in the working JDK vs new JDK and finally hit the part where it was returning the new mime type.


[Container Registry] Initial project structure

Add the initial project for Container Registry.  This is mostly a copy of the template project with some find-and-replace.

@chradek can you take point on this?


implement face feature vector extractor

implemented via https://github.com/vladmandic/human/commit/8d38c977be3de68df6a2f5cf12e289683a2c4522


Bumped base golang version to 1.8

:shipit:

Final image size did not change - 340 MB

That seems high, probably we're missing an && rm -rf /var/cache/apk/* somewhere @vgarvardt

Most likely we're not removing installed deps - will check this


Add v20.2.4 to sidebar.

Related to #8550

This change is

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/449e9c99a018b9722aff4765e2bb41b379e21f21/

Online preview: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/d64a95f6b412d0e120ad38851ab7bc8176017704/


CLOUDP-133383: fix repo tests

Proposed changes
fix tests to verify pkgs were uploaded to repos

Jira ticket: CLOUDP-133383

Closes #[issue number]
Checklist

[ ] I have signed the MongoDB CLA
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
[ ] I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
[ ] I have updated test/README.md (if an e2e test has been added)
[ ] I have run make fmt and formatted my code

Further comments

unfortunately these tests are expected to run during a release so we can only check them during a release

evergreen retry

evergreen retry

evergreen retry


Downloading starts immediately after CachingPlayerItem created

Hey. I'm pretty new to iOS development so I probably misunderstand something.
What I see is CachingPlayerItem starts downloading right after I create a new instance of it.
What I expect is that it starts downloading either after play() is called for AVPlayer or download() for CachingPlayerItem. In this case, it's not very clear what the purpose of download() is.

I can confirm the same behaviour

I've taken a look at this issue again and figured out that it's instantiating AVPlayer with an item that triggers the download. This wasn't the case before, apparently Apple has changed the implementation slightly at some point.


Before Unload

How to insert the "window.beforeunload" or any other way to execute something before closing the browser or reloading it?

This question is available on Nuxt.js community (#c6914)

Can we please resolve this as it is a duplicate. :cheese:

@egoist can you point to the duplicate post?  Nothing shows when I search for window.beforeunload on the forums.


Safe?

Did you read the instructions?

[X] I have read the README, including the known-limitations section.

The problem
Hi,
Yesterday there was code yellow and orange.
In previous versions the status "safe" status changed. To my surprise this did not happen. Was I the only one with this observation?
I wonder weather this was expected behavior or did KNMI itself did not "toggle" a status somewhere?
Best regards,
Haaino
Integration version
1.5.0
Home Assistant version
HA <IP_ADDRESS>
Python version
3.11
Home Assistant log
Hi,

Yesterday there was code yellow and orange.

In previous versions the status "safe" status changed. To my surprise this did not happen. Was I the only one with this observation?

I wonder weather this was expected behavior or did KNMI itself did not "toggle" a status somewhere?

Best regards,
Haaino

Diagnostics
No response
Additional information
No response

Hi, I noticed this as well during the thunderstorm on Tuesday.
At the moment I do have a warning. You can verify that by downloading your diagnostics file (which is also asked to share in the issue template). In that json file, under data -> data you can see the values from weerlive. If it states "alarm": "0" and/or "alarmtxt": "", there is nothing I can do and not a bug pf this component, in that case, the API isn't sharing it, bests to contact the supplier<EMAIL_ADDRESS>(note, I'm not affiliated with them).

Also got a warning today. Let assume it wad a glitch for the moment and monitor if this happens again.


Is the Mining Reward constant between Peers?

Hello,
at the moment i code at a electron gui for that and following questions are coming in mind while that coding:).

Was if another Client code another MinigReward? Is that checked? I mean if another user connect to the main-peer and mining and replace the Variable Reward?

Is it possible to split the mining and the check transactions process? I mean Miners became the Reword for the Difficulty and normal User became only the transaction fee for an simple check the transactions?

thx

Hey!
The idea is that the node should check everything, so if the miner creates a block with the wrong data/specification (mining reward or block size for example) the node will not accept the block as the next one to be added to the blockchain.
The block that survives is the block accepted by more than 51% of the nodes.
It's already kinda of separated, the miner mines the node checks and distributes.
Best

Hi,
ah okay thx, then i can completly brak down this to an blockchain-only app when i want and deactivate the mining modul and replace the amount data with other data that will be hashed and checked. thx.


dom-module not working in body tags in Firefox

I'd like to define a dom-module in body tag and the code works fine in Chrome. However this error shows up when I'm testing it in Firefox.
ReferenceError: Polymer is not defined

The elements I defined in the htmls that get imported work fine though.

In order to call Polymer from the main document, please wrap it in a call to HTMLImports.whenReady, as in the following JSBin:
http://jsbin.com/pucome/1/edit?html,output

Oh, can this be found in the documentation? Because I didn't know that. :-/
Thanks for your help.


Can’t override App Language anymore

My OS/Browser language is German, but for some reason I prefer to use Bluesky in English.
https://main.bsky.dev/settings/language -> set App Language to English, everything  stays German.
Works fine on https://bsky.app btw.
main.bsky.dev

bsky.app

Details

Platform: iPad Pro 11, iPadOS 17.6.1

I can confirm this too.

Probably broke in #5040, thanks for the report 👍 we'll get it fixed.
In general, we recommend using bsky.app for the most stable experience 😉


Bump version through build script

Need to increment the version through the build script- maybe a good point to move to maven or grunt?

+1


Disable MidnightControls Auto Switch mode

What config to change
Auto Switch Mode

Why should it be changed
Because if i have a controller plugged-in my pc it auto switch to it and show the HUD while unnecessary.
Because it has caused issues in the past like if you have Joy-Cons with Joy-Con drift issue it'll constantly send input to the game even if you play keyboard.
It will also create problem if you have a wireless controller in a case where some button or joystic is pressed by inadvertance.
https://discord.com/channels/859124104644788234/922363933980000286/1000701966147661914
https://discord.com/channels/859124104644788234/859124571005648946/1000617259548557442
Category
Mod config option
Additional details
Auto Switch can be useful but it's prone to cause problems like this

Because the controller keybinds button is found next to normal keybinds button, this could be done while still being obvious that users can use a controller. Still, looking for feedback on this.

I believe that Auto Switch is very useful + BE parity feature. I usually swap from my controller to my keyboard at certain times and it would be very annoying to change the controller mode manually every time I use my controller. You can make an issue in MidnightControls to disable the controller HUD after a customizable controller inactivity time.

I believe that Auto Switch is very useful + BE parity feature. I usually swap from my controller to my keyboard at certain times and it would be very annoying to change the controller mode manually every time I use my controller. You can make an issue in MidnightControls to disable the controller HUD after a customizable controller inactivity time.

What about the Joy-Con drift problems, etc ? Because they drift, they make activity.

What about the Joy-Con drift problems, etc ? Because they drift, they make activity.

Make an issue about it too :ioa:

What about the Joy-Con drift problems, etc ? Because they drift, they make activity.

Make an issue about it too :ioa:

No this is a Nintendo issue you can't fix that 🤣
You can only make it not being problematic by making it not do inputs.

What about the Joy-Con drift problems, etc ? Because they drift, they make activity.

Make an issue about it too :ioa:

No this is a Nintendo issue you can't fix that 🤣
You can only make it not being problematic by making it not do inputs.

technically you can fix it - https://youtu.be/JluAuIJ-tSY

What about the Joy-Con drift problems, etc ? Because they drift, they make activity.

Make an issue about it too :ioa:

No this is a Nintendo issue you can't fix that 🤣
You can only make it not being problematic by making it not do inputs.

technically you can fix it - https://youtu.be/JluAuIJ-tSY

Technically yes but in reality well...
It's more up to the contructor than you

https://github.com/TeamMidnightDust/MidnightControls/issues/81 is now implemented

https://github.com/TeamMidnightDust/MidnightControls/issues/81 is now implemented, so unless anyone has counter-arguments, this is what I will do with the next version.
You might want to test it as well to be sure how it works though.

So now by default Auto-Switch will be disabled and a pop-up will appear to tell the user they can use a controller ?

In FO, yes.

In FO, yes.

Perfect thanks 👍

Implemented in 3.12.2 and 4.2.0-beta.1


Quickstart: better errors

[ ] If a user tries to create a custom directory with the same name as an already copied example, we should warn them. Currently it just barfs a stack trace

also we should make sure we exit early if the user does NOT want to create a custom network:

looks like #563 indeed fixes my error in the screenshot, what about Josie's in the OP though?

what about Josie's in the OP though?

this still needs fixed

This appears fixed to me. Am I missing an edge case?


Development

0.0.4 release

Coverage remained the same at 100.0% when pulling 3a539ae596bea1fbb08b39a77cf9d47ea4cb180c on development into e505d262cfc313decf864a829eb3e568b07edcda on master.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-source-version-target/pull/78 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-source-version-target.git

Docs Build status updates of commit 6471779:
Pending

Docs Build status updates of commit 6471779:
Processing

Docs Build status updates of commit 6471779:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

versioningArchiveSourceFolder/TOC.yml
:white_check_mark:Succeeded
View (sql-server-2014 || azuresqldb-current || azuresqldb-mi-current || azure-sqldw-latest || >= aps-pdw-2016 || >= sql-server-2016 || >= sql-server-linux-2017 || sql-server-previousversions || sqlallproducts-allversions)

versioningArchiveSourceFolder/docfx.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Upgrade TDI to Java8

I tried to update TDI to Java 8, but the used package default name can't be found anywhere.
https://github.com/HCL-TECH-SOFTWARE/connections-automation/blob/64b6dd9c6e5589cae05fb61b7dca715ecd09b779/roles/third_party/ibm/tdi-install/vars/main.yml#L12
I checked IBM and Flexnet for this file, but I can't find it. Any hint where I can find this package?
Thanks
Christoph

It's on FlexNet named Service Refresh 6 Fix Pack 25 for IBM Java Runtime Technology version 8.0 - Linux in the HCL_Connections_7.0 list.  I see a newer version is used there ibm-java-jre-8.0-6.25-linux-x86_64.tgz so please override the var.  We'll adjust in the next push.

Thanks @sabrina-yee, found the package in Connections 7.0 Folder, I searched in 7.0-Upates.


Ensure proper wrapping of errors throughout

Follow-on to PR #6477

add wrappedErrorTypes prop to wrapError to log errorType of wrapped error(s)
createProcessorError should probably unconditionally wrap
Find other places to use wrapError (See #6468)

This will encompass incorporating the new design proposal for wrapping errors here.
Related to #1920 in that if we do a better job annotating our errors (especially ones we throw ourselves), we can be less dependent on error message and if/when we need to scrub it we can do so.

Nothing specific to do here.  Will not be an issue as #6676 is implemented, and I think I found most places where #6468 was in play already.


int: reduce allocation by representing small ints as pointers

I'm still stuck in the dark ages of 32-bit where virtual address space was a scarce resource. :)

It turns out there's quite a lot of spare address space just sitting there awaiting one's creativity. This change only squandered 1 part in 2^32 of it. :)

@alandonovan This is fun! Out of interest, do you have performance numbers on how much this helped on the targeted platforms? (at least for the microbenchmarks you wrote)

do you have performance numbers on how much this helped

Take a look at the commit message: https://github.com/google/starlark-go/pull/280/commits/29194bd0bceafc55570d60844d1410a2e1065ec0

Aha, of course -- I was being too PR-centric. Thanks!


set_objective from iterables

Application
add_constraint and set_objective should work in a consistent way.
Proposed Solution
Support the Iterable type for .set_objective
import dimod

n = 10
cqm = dimod.CQM()
for i in range(n):
    cqm.add_variable(i, vartype='BINARY')

cqm.add_constraint([(i, 1.0) for i in range(n)],
                   sense='<=', rhs=5)
cqm.set_objective([(i, 1.0) for i in range(n)])

The first method .add_constraint works, but there is no support for the second method using iterables.

Looks like this one fell off the radar


Creating a module for a single page, and linking to it in the navigation

Hi,
I want to create a CRUD module for a specific page, called (eg) "homepage", of which there will only ever be one instance, with a "homepage" link in the navigation that links to that instance's form- so, it shouldn't be possible to create or delete "homepage" instances. How do I go about doing this?
Thanks for all your help.

Will do- thanks again.


Shared workflow: issue labels

Add customer submission and triage labels as shared workflow.
https://github.com/Senzing/build-resources/blob/main/.github/workflows/identify-customer.yaml
https://github.com/Senzing/build-resources/blob/main/.github/workflows/add-triage-label.yaml

Closing as completed. Tested via #31 and #18.
Verified customer sub label not added to senzing members and added for all else. Verified triage always added (new and reopened).


Fix lsp_derive_paths: wrong argument passed to vim.list_slice

fix #25

this looks good @nghialm269 thanks for finding the issue, completely missed that 👍🏿


use recursive arrays instead of multi_array

I think we should be able to describe a coord_array that is arbitrarily nested instead of having a separate multi_array construct.

Handled with flat coordinates + flat lengths array for rebuilding structure in #29


requires-python set incorrectly

Describe the Bug
When a maximum python version is specified when running the cookiecutter, requires-python in pyproject.toml is set incorrectly.
To Reproduce
Run the cookiecutter and select min python = 3.11, max python = 3.11.
Expected Behaviour
In pyproject.toml, requires-python = "==3.11".
Actual Behaviour
In pyproject.toml, requires-python = ">=3.11".
Additional Context
- Cookiecutter version:
- Operating system:
- Python version:

Should probably be changed to something like ">={{cookiecutter.min_python_version}}; <={{cookiecutter.max_python_version}}". Obviously >=3.11; <=3.11` is a bit silly, but I don't think this is a big issue.

(Assuming my code actually works) what do we think of this relatively elaborate if statement version...
{%- if cookiecutter.max_version == cookiecutter.min_version -%}
requires-python == {{cookiecutter.max_python_version}}
{%- else -%}
requires-python >= {{cookiecutter.min_python_version}}
{%- endif -%}

I've looked into this, and realise that what we currently have is correct. So will close this issue.
For reference, to "fix" this we could do something like
requires-python = {% if cookiecutter.min_python_version == cookiecutter.max_python_version %}"=={{cookiecutter.max_python_version}}"{% else %}">={{cookiecutter.min_python_version}}, <={{cookiecutter.max_python_version}}"{% endif %}

The problem is, when you have requires-python = "==3.12", you get this error when trying to install it
ERROR: Package 'python-template' requires a different Python: 3.12.1 not in '==3.12'

When you have requires-python = ">=3.9, <=3.12" you get
ERROR: Package 'python-template' requires a different Python: 3.12.1 not in '<=3.12,>=3.9'

If you look at the packaging docs it says

This lets you declare the minimum version of Python that you support

Think twice before applying an upper bound like requires-python = "<= 3.10" here. This blog post contains some information regarding possible problems.

I think the right fix is requires-python=~=3.12? This should allow any version that's compatible with 3.12, which includes any bugfix releases.

I don't think we should go against the PPA

Isn't that just a blog post, not official advice from the PPA? Anyway, I had a read and I buy the argument that:

“Scrolling back” through older releases to find the newest version that does not restrict the version of Python being used is exactly the wrong behavior for an upper cap, and that is what the purpose of this field is

So instead can we implement a check on the Python version in __init__.py in the package, and raise an error if it's not an allowed version of Python?

Isn't that just a blog post, not official advice from the PPA? Anyway, I had a read and I buy the argument that:

Welcome to the Python Packaging User Guide, a collection of tutorials and references to help you distribute and install Python packages with modern tools.
This guide is maintained on GitHub by the Python Packaging Authority. We happily accept contributions and feedback. 😊

So instead can we implement a check on the Python version in __init__.py in the package, and raise an error if it's not an allowed version of Python?

That could be a better idea.


Recoil Control

Was RCS removed? Because I am unable to find the RCS Option in the aimbot tab or any other tabs

Plus, i think this is not a good idea!!!

I use the old version of osiris due to the fact that in the new one the recoil control was removed I have a very powerful and legit configuration, but I can not use it on the new version due to the lack of control of the return

I use the old version of osiris due to the fact that in the new one the recoil control was removed I have a very powerful and legit configuration, but I can not use it on the new version due to the lack of control of the return

instead of recoil control you have recoil compensation, recoil control is basically always on

I use the old version of osiris due to the fact that in the new one the recoil control was removed I have a very powerful and legit configuration, but I can not use it on the new version due to the lack of control of the return

How can I find the old version and I thought that you had to update with the csgo updates? and also auto strafe does not work how can i fix that.

Osiris.zip
I don’t know what version it is, but it suits me best because there I can set up my recoil control for each weapon

You can add it back with this pull, I got it working on the latest version.
https://github.com/danielkrupinski/Osiris/pull/1277


Change BudgetList Data Structure

This is a memory/time inefficient data structure. Here is the data access pattern for a budget list:

Slow modify to a single expense
Fast append to head
Fast check for duplicates between a given set of dates

Therefore a data structure that chunks the expenses with regard to time would be best.

The best data structure for the db I've found is [IxSet][http://hackage.haskell.org/package/ixset-1.0.7]


Add image load and container run quiet mode

Issue
Split from https://github.com/containerd/nerdctl/pull/3537
Description
This change adds -q|--quiet flag on nerdctl load, nerdctl container create, and nerdctl container run commands to suppress image pull and load output.
Testing

Manual tested behavior aligned with Docker 25.

$ docker load -q -i alpine-latest.tar
Loaded image: alpine:latest
$ _output/nerdctl load -q -i alpine-latest.tar
Loaded image: alpine:latest
$

$ docker run --rm --quiet alpine:latest echo "test run quiet"
test run quiet
$ _output/nerdctl run --rm --quiet alpine:latest echo "test run quiet"
test run quiet
$

Added integration tests

Not necessarily in this PR, but I am wondering if --quiet should be a global flag - given the fact we do need to pull missing content on many operations (convert, tag, commit, push) (containerd/containerd#8973)

Probably this is safe, but Docker didn't do this

Not necessarily in this PR, but I am wondering if --quiet should be a global flag - given the fact we do need to pull missing content on many operations (convert, tag, commit, push) (containerd/containerd#8973)

Probably this is safe, but Docker didn't do this

I guess containerd lazy pulling / remote snapshotters does not apply for Docker, which is why they do not have this class of problem.


Add Spark cluster management to jupyter, zeppelin, CLI ("+1, -1" Spark worker widget)

http://blog.kubernetes.io/2016/03/using-Spark-and-Zeppelin-to-process-Big-Data-on-Kubernetes.html

in the short term, a CLI script to add/remove spark workers would be ideal
longer term, we'll make it a REST endpoint callable from anywhere (zeppelin/jupyter notebooks etc)

the solution should be cloud-vendor neutral

http://limdauto.github.io/posts/2015-12-24-spark-ipython-notebook.html

http://thepowerofdata.io/configuring-jupyteripython-notebook-to-work-with-pyspark-1-4-0/

CLI is currently supported in this repo.  Moving Jupyter integration to [PipelineAI Advanced/Enterprise Edition]{http://pipeline.ai/products).


Diadromous Fish Line Not Clickable

When hovering over the diadromous fish line (and the tooltip is not showing), you cannot click on the line to update the graph.

Resolved!


Address that light() function is not usable in Godot 4:

related to other PRs
https://github.com/godotengine/godot/pull/51155
As an example: you cannot implement the default specular and diffuse modes precisely in a custom light() function.
Proposal: expose all variables used by the default light() function.
Ideally, we would also provide reference code for users to copy the default specular / diffuse implementation and modify it (major usability problem)
Result: if light() function is not improved for 4.0, and if GLSL materials are not implement in 4.0, the VRM MToon shader will be forced to entirely ignore the engine lighting model and hardcode a light direction

Not vr locomotion or networked object picking. Postponing. Needs to be tracked on Godot Engine org as a proposal or a bug report.

See also https://github.com/V-Sekai/V-Sekai.github.io/issues/164.


fix(example:with-prisma): Fixed a breaking bug in with-prisma example

The app was breaking because we needed to pass db as well as request object to the getUser function called in login.tsx.
I updated the file and now the app starts without any bug!

Thanks


Limit For .osm End Point

Create a limit query parameter limits how many OSM XML files make it to the response. Using this a long side with the blacklist checksum patching mechanism, we can paginate through all of the OSM in chunks we feel comfortable with.

I think that'll do it.


Add return type hints

This patch builds on #27 and requires a release of <IP_ADDRESS>.0 before merging.
The patch adds a return type hint to ContainerInterface::has(), per the already documented specification, in preparation for a v3v2 release. No other methods were eligible, as they specified mixed.
See https://www.php-fig.org/blog/2019/10/upgrading-psr-interfaces/

This patch will require a 3.0.0 release.

Ping @moufmouf — are you okay with this?

@moufmouf Now that #27 is merged, we need a release of 1.1.0, and then we can merge this PR and do a 2.0.0 release. My understanding is that you need to do this, as editor of the spec, and/or you need to specify a new editor/proxy (I think you mentioned @mnapoli at some point?)

@moufmouf Now that #27 is merged, we need a release of 1.1.0, and then we can merge this PR and do a 2.0.0 release. My understanding is that you need to do this, as editor of the spec, and/or you need to specify a new editor/proxy (I think you mentioned @mnapoli at some point?)

@weierophinney : @mnapoli and I are both co-editor (I think PSR-11 is the only PSR that has co-editors and it is probably not possible anymore due to the new bylaws).
Before we tag 1.1.0, there is another improvement we could do. Since v1.1 targets PHP 7.2+, we could make sure ContainerExceptionInterface extends Throwable.
This would close #21 .
Not sure if this was discussed on the mailing list earlier. What do you think?

@weierophinney : @mnapoli and I are both co-editor (I think PSR-11 is the only PSR that has co-editors and it is probably not possible anymore due to the new bylaws).
Before we tag 1.1.0, there is another improvement we could do. Since v1.1 targets PHP 7.2+, we could make sure ContainerExceptionInterface extends Throwable.
This would close #21 .
Not sure if this was discussed on the mailing list earlier. What do you think?

@moufmouf and @mnapoli Makes sense; go for it!

@moufmouf and @mnapoli Makes sense; go for it!

@weierophinney gentle reminder that we need a CC vote to push this trough, as explained in https://github.com/php-fig/container/pull/27#issuecomment-707549684

@weierophinney gentle reminder that we need a CC vote to push this trough, as explained in https://github.com/php-fig/container/pull/27#issuecomment-707549684

@Jean85 Ah, right...
And that's up to the editors... paging @moufmouf and @mnapoli ...

@Jean85 Ah, right...
And that's up to the editors... paging @moufmouf and @mnapoli ...

Vote is a blocker only for tagging, you could/should do all the code work up front, but you also need a PR ready with the needed amendments to the PSR (which should reference the code), which is basically what the CC should vote on.

Vote is a blocker only for tagging, you could/should do all the code work up front, but you also need a PR ready with the needed amendments to the PSR (which should reference the code), which is basically what the CC should vote on.

Hi! On my end, I unfortunately don't have the bandwidth right now for the whole vote, but I'm able to tag.
So I'll let this discussion continue, but if you need someone to tag a release at some point, let me know!
(and for what it's worth I'm completely 👍  with extending throwable.)

Hi! On my end, I unfortunately don't have the bandwidth right now for the whole vote, but I'm able to tag.
So I'll let this discussion continue, but if you need someone to tag a release at some point, let me know!
(and for what it's worth I'm completely 👍  with extending throwable.)

@XedinUnknown —

This is a BC-breaking change, as descendant signature must be identical, but it will not be because it would be missing the typehint, @weierophinney. Therefore, this should be in a new major version. Besides the fact that a previously supported PHP version was dropped.

When I first saw this and commented last night, I was unaware the commit was part of this particular PR.
Please READ THE PATCH SUMMARY:

in preparation for a v2 release

In other words, the intention for this patch is for a new major version, which allows for BC breaks!

So what happened to your reservations about "splitting the PHP community"?
Upgrading to this is going to be a ginormous clusterfudge for the entire community - anyone using more than one package with a dependency on this interface is in trouble, more so if they're using other packages that depend on it.
Until literally every project and package moves to version 2 of this, package availability will be split down the middle, locking people out of updates, or forcing maintainers to maintain two release lines in parallel.
With version 3.0 of my own DI container being almost ready for release, I'm now torn between locking out existing users or blocking their update path to other libraries. Or maintaining parallel 3.x and 4.x release, with the 4.x line using version 2 of this interface.
Is a simple, non-functional change really worth this kind of havoc? 😕

@mindplay-dk please read https://www.php-fig.org/bylaws/psr-evolution/ There is a smooth upgrade path for the community.

@mindplay-dk TL;DR of that bylaw: you can support ^1.1|^2.0 and be fine.
Or even better ``^1.1.1|^2.0.1` to push your users away from issue in #30.

Ah, so my package should support both versions perpetually. Got it. I was assuming one would eventually move away from 1.x and require 2.x, but I don't suppose there's any reason to do that ever?

You can require 2 only, no one is stopping you, the point is requiring a smooth upgrade path, so you must be in the position to support at least two contiguous version from two different majors.
The bylaw is written in a generic way, who knows if in the future we will have a 3.0...

@weierophinney, the commit that I commented on is part of 1.1.0, and that's a non-BC-breaking release. But also I concede that this isn't actually a BC break. Due to the PHP bug, it was a hassle, but it's done now, so no problem. Thanks!


feat: allow service without authproxy

I want to be able to access the service without using the authproxy.
Moreover I added the way to put some custom labels and annotations on it

@afreyermuth98, thanks for the PR! We don't have an issue for this yet, so could you please describe more precisely the use cases you're facing?
FYI, there are rather large structural changes in manifests happening as part of #235, and authentication and metrics will be impacted as well. So this PR can be considered only after that work is done. Given the holidays, that'll probably be in the next year. Meanwhile, if you have the time to consider how your proposal will fit in into the new structure and updated manifests, I'd appreciate it greatly! (ref. PR: https://github.com/grafana/k6-operator/pull/512, also https://github.com/kubernetes-sigs/kubebuilder/discussions/3907)


Improve code coverage for expense related classes

Codecov Report

Merging #377 (8fe1f10) into master (114bc08) will increase coverage by 0.56%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #377      +/-   ##
============================================
+ Coverage     74.87%   75.43%   +0.56%
- Complexity     1004     1011       +7
============================================
  Files           136      136
  Lines          3204     3204
  Branches        431      431
============================================
+ Hits           2399     2417      +18
+ Misses          730      716      -14
+ Partials         75       71       -4

Impacted Files
Coverage Δ

...java/seedu/awe/storage/JsonAddressBookStorage.java

src/main/java/seedu/awe/model/AddressBook.java

src/main/java/seedu/awe/model/Awe.java
94.87% <0.00%> (ø)

...rc/main/java/seedu/awe/storage/JsonAweStorage.java
85.71% <0.00%> (ø)

...main/java/seedu/awe/model/expense/ExpenseList.java
100.00% <0.00%> (+4.65%)
:arrow_up:

src/main/java/seedu/awe/model/expense/Cost.java
82.22% <0.00%> (+8.88%)
:arrow_up:

...main/java/seedu/awe/model/expense/Description.java
100.00% <0.00%> (+9.09%)
:arrow_up:

...java/seedu/awe/model/expense/IndividualAmount.java
100.00% <0.00%> (+13.33%)
:arrow_up:

src/main/java/seedu/awe/model/expense/Expense.java
93.93% <0.00%> (+13.63%)
:arrow_up:

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 114bc08...8fe1f10. Read the comment docs.


How to deploy

How to deploy on server with nodejs installed? Access to admin is required.
I just created a project, then launched enduro start and I can't access the page.
Terminal output:
[20:16:58 | +    2.44] Production server started at port 5000
[20:16:58 | +    0.09] Render started
[20:16:58 | +    0.01] js compiling not enabled, add babel options to enduro.json to enable
[20:16:58 | +       0] Sass compiling started
[20:16:58 | +    0.14] Sass compiling finished

Can you share more details? If you have a server(your own dedicated one) with node.js, just running enduro start will do the job. Beware it will serve everything on port 5000. If it's your server you might try to serve it on port 80 (sudo enduro start -p=80).

I got this problem now

And page will not work permanently, only when enduro start is working.


QUANTCONNECT DRL deployment

Hi,
has anyone implemented a FinRL model in Quantconnect/Binance platform?
If already done, could someone share the framework please?
Thanks

For binance, pls check here: https://github.com/AI4Finance-Foundation/FinRL-Meta/tree/master/finrl_meta/data_processors


How to detect links pasted or written?

I need detect this scenario in order to fetch info about the link. Just like Facebook does.

`import linkifyIt from 'linkify-it';
import tlds from 'tlds';
const linkify = linkifyIt();
linkify.tlds(tlds);`
`_onChange = (editorState) => {
editorState.getCurrentContent().getBlockMap().forEach((block) => {
const links = linkify.match(block.get('text'));
  if (typeof links !== 'undefined' && links !== null) {
    for (let i = 0; i < links.length; i++) {
      THIS_IS_THE_LINK(links[i].url);  // could be more than one
    }
  }
});

this.setState({editorState});

};`

@albertomr86, I'm curios if you've faced same problem as I do right now. I'm using similar approach to detect links but using regex instead of linkify module. The problem is when link entity gets created it continues to more characters if user keeps typing. And it makes sense in some cases because the link could be www.google.c, or www.google.co, or www.google.com. But what to do if user types a space or any other non link related character, how to stop the link entity and fallback to plain text?

The logic I use and the problem is in if (!entityKeyStart) { but how would you do it otherwise, recreate entities all over again on each onChange doesn't seem like a good idea:
const RE_URL = new RegExp(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);

editorState
  .getCurrentContent()
  .getBlockMap()
  .map((block) => {
    let contentState = editorState.getCurrentContent();
    const blockKey = block.getKey();
    const blockText = block.getText();

    let match = null;
    while (match = RE_URL.exec(blockText)) {
      const start = match.index;
      const entityKeyStart = block.getEntityAt(start);
      if (!entityKeyStart) {
        contentState = contentState.createEntity('LINK', 'MUTABLE', { href: match[0] });
        const entityKey = contentState.getLastCreatedEntityKey();
        const contentStateWithEntity = Modifier.applyEntity(
          contentState,
          new SelectionState({
            anchorKey: blockKey,
            anchorOffset: start,
            focusKey: blockKey,
            focusOffset: match.index + match[0].length
          }),
          entityKey
        );
        editorState = EditorState.push(editorState, contentStateWithEntity, 'apply-entity');
      }
    }
  });

this.setState({ editorState });

HI @jo-asakura
I'm using DraftJSPlugins which abstracts me from having to create the entities manually. It has one plugin for links.
I share a snippet of code in case it helps.
import React from 'react';
import { EditorState, ContentState } from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createLinkifyPlugin from 'draft-js-linkify-plugin';

state = {
  editorState: EditorState.createEmpty()
};

const linkPlugin = createLinkifyPlugin({
  target: '_blank',
  theme: {
    link: 'link'
  }
});

onEditorChange = (editorState) => {
  this.setState({ editorState }, () => {
    this.loadLink(parseLinksContent(editorState));
  });
};

<Editor
  editorState={this.state.editorState}
  plugins={[linkPlugin]}
  onChange={this.onEditorChange}
  placeholder="" />

parseLinksContent.js
'use strict';

import _ from 'lodash';
import React from 'react';
import linkifyIt from 'linkify-it';
import tlds from 'tlds';

const linkify = linkifyIt();
linkify.tlds(tlds);

export default (editorState) => {
  let links = [];

  editorState.getCurrentContent().getBlockMap().forEach(block => {
    const matches = linkify.match(block.get('text'));

    if (typeof matches !== 'undefined' && matches !== null) {
      for (let i = 0; i < matches.length; i++) {
        links.push(_.trimEnd(matches[i].url, '/'));
      }
    }
  });

  return links;
}

@albertomr86, thank you for sharing! I was going to use linkify from DraftJSPlugins but what stopped me is it uses decorators to visually decorate links and there are no entities I can export/import. Without entities I don't know how to make sure that editable content looks similar on the web and mobile platforms.

@jo-asakura Check the example of custom rendering to apply themes.
const linkifyPlugin = createLinkifyPlugin({
  component: (props) => (
    // eslint-disable-next-line no-alert, jsx-a11y/anchor-has-content
    <a {...props} onClick={() => alert('Clicked on Link!')} />
  )
});
const plugins = [linkifyPlugin];

Maybe you could provide your own class (React.Component) and decide the behavior depending on the device.

@albertomr86, yeah this works great on the web but not on mobile because we don't use draft on mobile. The flow we use is:
Web:
  * on create, Draft AST -> custom AST;
  * on edit, custom AST -> Draft AST (actual edit) -> custom AST
Mobile:
  * custom AST

I see at least two issues with using linkify:

On export (Draft AST -> custom AST) I'll have to manually scan the content and extract links and their positions.
On import (custom AST -> Draft AST) linkify might detect links that are different from what was created before. This is why having properly defined ranges and entities is much better solution.

@jo-asakura So what is the code you've ended up with? I have similar issue and what I tried to do is to watch on state changes, detect patterns and create or remove link (or autolink) after each change. But it was quite heavy and complicated in logic (it have to work seamlessly with links created manually). Did you find more elegant approach?

@erykpiast, unfortunately, this is exactly what I did. I watch for all the changes in several places and manually construct/modify/destroy links (initially I did all the processing inside of onChange but the performance was awful).
To simplify things it looks like this:

In handleBeforeInput I watch for new characters and check if the cursor position falls inside of the already created link entity range. If there is no entity then simply check if focus word + new characters make a link, if so create a new link entity. If there is an existing entity check if entity + new characters make a link, if so append to the existing link, if not break the link and append plain text characters to it.
In handleKeyCommand I handle backspaces and deletes. Similar functionality to the one I have for handleBeforeInput but instead of adding text I remove it. Don't forget to check the cursor position because it can be in the end, in the start, or in the middle 😄
In handlePastedText I create content state out of pasted text (ContentState.createFromText) and merge it with the current state using Modifier.replaceWithFragment. Also, before I merge blocks I save original block keys, so I can get the keys diff and process just newly created blocks (some sort of a speed improvement). Then I run links detection algorithm on the block keys I need.

It's not heavily tested yet and I'll have more changes coming in but for now that's what I have.

Hey @jo-asakura, those are exactly the things I'm trying to do in my linkify plugin. However, it's turning out to be a non-trivial plugin :), do you have this plugin code published somewhere that's free to use?

@albertomr86, I'm curios if you've faced same problem as I do right now. I'm using similar approach to detect links but using regex instead of linkify module. The problem is when link entity gets created it continues to more characters if user keeps typing. And it makes sense in some cases because the link could be www.google.c, or www.google.co, or www.google.com. But what to do if user types a space or any other non link related character, how to stop the link entity and fallback to plain text?

The logic I use and the problem is in if (!entityKeyStart) { but how would you do it otherwise, recreate entities all over again on each onChange doesn't seem like a good idea:
const RE_URL = new RegExp(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);

editorState
  .getCurrentContent()
  .getBlockMap()
  .map((block) => {
    let contentState = editorState.getCurrentContent();
    const blockKey = block.getKey();
    const blockText = block.getText();

    let match = null;
    while (match = RE_URL.exec(blockText)) {
      const start = match.index;
      const entityKeyStart = block.getEntityAt(start);
      if (!entityKeyStart) {
        contentState = contentState.createEntity('LINK', 'MUTABLE', { href: match[0] });
        const entityKey = contentState.getLastCreatedEntityKey();
        const contentStateWithEntity = Modifier.applyEntity(
          contentState,
          new SelectionState({
            anchorKey: blockKey,
            anchorOffset: start,
            focusKey: blockKey,
            focusOffset: match.index + match[0].length
          }),
          entityKey
        );
        editorState = EditorState.push(editorState, contentStateWithEntity, 'apply-entity');
      }
    }
  });

this.setState({ editorState });

@albertomr86, I'm curios if you've faced same problem as I do right now. I'm using similar approach to detect links but using regex instead of linkify module. The problem is when link entity gets created it continues to more characters if user keeps typing. And it makes sense in some cases because the link could be www.google.c, or www.google.co, or www.google.com. But what to do if user types a space or any other non link related character, how to stop the link entity and fallback to plain text?

The logic I use and the problem is in if (!entityKeyStart) { but how would you do it otherwise, recreate entities all over again on each onChange doesn't seem like a good idea:
const RE_URL = new RegExp(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);

editorState
  .getCurrentContent()
  .getBlockMap()
  .map((block) => {
    let contentState = editorState.getCurrentContent();
    const blockKey = block.getKey();
    const blockText = block.getText();

    let match = null;
    while (match = RE_URL.exec(blockText)) {
      const start = match.index;
      const entityKeyStart = block.getEntityAt(start);
      if (!entityKeyStart) {
        contentState = contentState.createEntity('LINK', 'MUTABLE', { href: match[0] });
        const entityKey = contentState.getLastCreatedEntityKey();
        const contentStateWithEntity = Modifier.applyEntity(
          contentState,
          new SelectionState({
            anchorKey: blockKey,
            anchorOffset: start,
            focusKey: blockKey,
            focusOffset: match.index + match[0].length
          }),
          entityKey
        );
        editorState = EditorState.push(editorState, contentStateWithEntity, 'apply-entity');
      }
    }
  });

this.setState({ editorState });

@jo-asakura
Hi there... 4 years later! Any updates on this? Thanks =)

Double ping @jo-asakura! :)

Here's a package that creates entities from auto-detected links: https://www.npmjs.com/package/draft-js-link-detection-plugin


[W-4] missing Olga Kovaleva pre-recorded talk

Olga Kovaleva recorded her BioNLP talk (#16 Towards Visual Dialogue for Radiology), but it is not on the workshop page.

We didn't get Olga's talk ID from slideslive. Please check tab W4 in this spreadsheet
Can you contact slideslive and ask why Olga's talk is missing from this sheet?

Note from Olga about this in relevant email thread:
Thanks for trying to look into the issue, I am not sure what exactly happened, I will just present live.
I appreciate your time!
Closing this.


Memory leak: linter retains every text-editor that is created.

Steps to reproduce:

Enable the linter package
Open a single file in Atom
Take a heap snapshot (Profiles > Take Heap Snapshot in the dev tools)
Close and re-open the file 3 times.
Just to be sure, force garbage collection (Profiles > Timeline > trash-can-icon)
Take a second heap snapshot
View the Comparison between the two snapshots, search for TextEditor
See that there are 4 extra TextEditor instances on the heap

They are being retained by the CompositeDisposable in init.coffee. For each text-editor added to the workspace, a Disposable is added that destroys the LinterView for that editor. These Disposables are never removed, so every LinterView (and its text-editor) are retained forever.

vim-mode used to have a similar problem. See the way that package manages the set of VimState objects for each editor: https://github.com/atom/vim-mode/blob/d44e967f9faeac700673f89e7fcc2751463c5d84/lib/vim-mode.coffee#L18.

This has already been fixed in plus, github.com/AtomLinter/linter-plus


Fix and optimize handling of vectorized memory accesses (#17767)

Vectorized loads for binary elemwise kernel

More generalization

Add backwardusenone

Remove the unused _backward_add op

Add vectorized backwardusein

Extending vectorization to more binary ops, binary ops with scalar and
unary ops

Handling ElementwiseSum

Get rid of half2 in mshadow

Remove backward_elemwiseaddex

Revert "Remove the unused _backward_add op"

This reverts commit f86da86f809c8cbad07db76a3554f23890fe05a3.

Revert "Remove backward_elemwiseaddex"

This reverts commit 7729114caf6a1718c08ce1f35529d2267057d515.

Add back the backward_add since C++ test relies on it

Test bcast implementations

First version of vecotrized bcast

Adding single side vectorized bcast kernel

Removing debug prints

Actually run the single side kernel

Move the default implementation of bcast to the vectorized one

Limit the new implementation to GPU only

Enabling vectorization when broadcast does not actually do broadcast

Cleaning

Cleaning part 2

Fix for numpy ops using stuff from broadcast

Fix

Fix lint

Try to debug pinv numpy test

Fix

Fix the vectorized broadcast implementation for misaligned input
pointers

Added tests

Added docs to cuda_vectorization.cuh

Another fix for broadcast and fix INT64 compilation

Optimize for aligned=true

1 more addition to test

Reverting the change to Numpy op test

Trying mcmodel=medium to fix the failure in CMake static build

Revert "Trying mcmodel=medium to fix the failure in CMake static build"

This reverts commit 1af684c507dd5b2c7ab7ffe89d21799320e3d9c6.

Limiting the PR to just elementwise ops

Description
Cherry pick #17767 to v1.x branch. @ciyongch

Adding this PR to 1.7.0 roadmap https://github.com/apache/incubator-mxnet/issues/16864.

@mxnet-bot run ci [windows-gpu]

@ciyongch This PR is now merged to v1.x branch, please cherry pick it to v1.7.

@ptrendx as the v1.7.x is already rebased, could you please submit it to v1.7.x, then we can get it merged once the CI pass? Thanks.


Discuss/Decide whether to combine queries C.2 & C.3

In the July 29 hackathon, this was discussed. Creating issue to pin it down.

See issue #34 for a schematic showing the three separate queries for workflow C. Below is a revised schematic illustrating how queries 2 and 3 could be combined.

The three dashed lines, above, represent published research "evidence" links between the original disease and three hypothetical results within the chemical substance results. Technically, the actual query structure is better represented below.

No real movement, @rtroper to follow up with team

Given issues we're having, generally, getting results back for query C.3 (two curie-specified nodes and related_to for the predicate), I suggest we consider not adding query C.3 to the workflow. Instead, I propose relying on normalized google distance edges (and future similar edges that come from overlay operations) for published research evidence. For example, see below:

Having these kinds of edges with PubMed links to research evidence is, I think, a nice feature of Translator that we should showcase.

After further discussion, we plan to drop query C.3 (as described in the comment above) and rely on overlay edges (e.g. normalized google distance edges currently provided by expander agent). This provides links to published research results supporting the associations.