you should add --edge-hostname to iotedgectl setup to avoid error if you simulate device on Azure VM

If you run iotedgectl setup as it written here in documentation you get error
"Error parsing user input data: Invalid hostname. Hostname cannot be empty or greater than 64 characters: vmname.qsllsajjxokubljooaxmh3feyb.ax.internal.cloudapp.net."
To avoid this error you should execute
iotedgectl setup --connection-string "{device connection string}" --auto-cert-gen-force-no-passwords --edge-hostname "vmname.westeurope.cloudapp.azure.com"

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

ID: e354f151-d6a2-67d2-4ad0-2a30bbacdce1
Version Independent ID: 334ff4b5-d9fd-f690-14aa-6a4d01b63fe1
Content: Simulate Azure IoT Edge on Windows | Microsoft Docs
Content Source: articles/iot-edge/tutorial-simulate-device-windows.md
Service: iot-edge
GitHub Login: @kgremban
Microsoft Alias: kgremban

@dkatson Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

Hi @dkatson thanks for the input. For context, were you running iotedgectl setup in a VM? I did know that there's an issue with hostnames getting too long inside of VMs, but haven't ever experienced this issue running the commands on my physical machine. I like your solution, I just need to know what specific situations it applies to.

#in-process

Hi @kgremban
I run iotedgectl inside Azure VM  in CMD  (start -> cmd -> python path -> scripts-> iotedgectl setup )

@dkatson I'm looking at the docs, and I don't want to clutter the setup steps with additional details for people running VMs. I realize a lot of people are hitting this scenario, though, so I'm going to take this to the product team and see if it's something they can fix in the setup tool or improve the error message before making changes to the article.

@dkatson Keeping you updated with the progress on this issue. I filed a bug with the product team to improve their error message to include resolution steps, and that's being actively worked on. In the meantime, I added a section to https://docs.microsoft.com/en-us/azure/iot-edge/troubleshoot to explain this error message. I'm doing some testing with Azure VMs to make sure I understand what values can be used for --edge-hostname. There also may be a solution in the portal to configure the DNS name of the VM so that you don't get the error anymore. I'll be updating the troubleshoot article this week as I finalize these options.

Thank you! Like as usual - awesome team!

Hi again @dkatson
I finished my testing for a portal hostname configuration, and turns out it was a dead end. So I'm just adding info to the troubleshooting article about the root cause of this error. Those changes should be live at about 3:30 pacific time if you want to check them out.
Is there any other information that you think should be added, or can we call this issue resolved?

Thank you! I think everything is clear now
On Sat, Mar 24, 2018 at 1:34 AM, Kelly Gremban<EMAIL_ADDRESS>wrote:

Hi again @dkatson http:///dkatson
I finished my testing for a portal hostname configuration, and turns out
it was a dead end. So I'm just adding info to the troubleshooting article
about the root cause of this error. Those changes should be live at about
3:30 pacific time if you want to check them out.
Is there any other information that you think should be added, or can we
call this issue resolved?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/azure-docs/issues/5630#issuecomment-375761203,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AbwL2c0RmZzqFJ0j9kJRMZwYJh881uoqks5thUBMgaJpZM4SmYgB
.

Thanks for bringing this to our attention :)
@BryanTrach-MSFT would you #please-close this issue?

@dkatson
We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Fix code scanning alert - Log entries created from user input and incorrect conversion

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Problem:

https://github.com/harvester/harvester/security/code-scanning/15
https://github.com/harvester/harvester/security/code-scanning/22

Solution:

use strconv.ParseInt instead of strconv.Atoi
remove \n and '\r' from user input

Related Issue:
https://github.com/harvester/security/issues/20
Test plan:

build the latest Harvester API server.
replace with the custom image in any v1.1.2.x cluster.
make sure it runs correctly and contains no extra error logs.

@futuretea We need to backport this to the v1.1 branch as well.

@futuretea We need to backport this to the v1.1 branch as well.

@bk201 Thanks


How do I convert PIL python image to NSImage?

Hi
I'm getting value like "<PIL.PngImagePlugin.PngImageFile image mode=RGB size=349x500 at 0x103BB1390>". How do i convert this value to NSImage using swift language in Xcode tool ?

If you want to convert a PIL image to an NSImage in Python, you can use the Cocoa bindings library provided by PyObjC.
Here's an example code that shows how to convert a PIL image to an NSImage:
python
from PIL import Image
import io
from AppKit import NSImage, NSData, NSBitmapImageRep, NSPasteboard, NSTIFFPboardType
Load the image
pil_image = Image.open("my_image.png")
Convert the PIL image to a data buffer
with io.BytesIO() as buffer:
pil_image.save(buffer, format="PNG")
data = buffer.getvalue()
Create an NSImage from the data buffer
image_data = NSData.dataWithBytes_length_(data, len(data))
ns_image = NSImage.alloc().initWithData_(image_data)
In the above code, we first load the PIL image and save it to a data buffer in PNG format. We then create an NSData object from the data buffer and use it to initialize an NSImage object. The resulting NSImage object can be used to display the image in a macOS application.
Note that before you can use the PyObjC library, you need to install it using the following command:
bash
pip install pyobjc-framework-Cocoa
I hope this helps!
END
From chatgpt  https://chat.devsleep.com

If you want to convert a PIL image to an NSImage in Python, you can use the Cocoa bindings library provided by PyObjC.
Here's an example code that shows how to convert a PIL image to an NSImage:
python from PIL import Image import io from AppKit import NSImage, NSData, NSBitmapImageRep, NSPasteboard, NSTIFFPboardType
Load the image
pil_image = Image.open("my_image.png")
Convert the PIL image to a data buffer
with io.BytesIO() as buffer: pil_image.save(buffer, format="PNG") data = buffer.getvalue()
Create an NSImage from the data buffer
image_data = NSData.dataWithBytes_length_(data, len(data)) ns_image = NSImage.alloc().initWithData_(image_data)
In the above code, we first load the PIL image and save it to a data buffer in PNG format. We then create an NSData object from the data buffer and use it to initialize an NSImage object. The resulting NSImage object can be used to display the image in a macOS application.
Note that before you can use the PyObjC library, you need to install it using the following command:
bash pip install pyobjc-framework-Cocoa
I hope this helps! END
From chatgpt https://chat.devsleep.com

@codeskyblue Thank you


Kubefire can't connect to ignite vm

➜  ~  kubefire cluster create --bootstrapper=kubeadm openfaas
INFO[2020-07-31T10:58:40+02:00] initializing cluster configuration            cluster=openfaas
INFO[2020-07-31T10:58:40+02:00] saving cluster configurations                 cluster=openfaas
INFO[2020-07-31T10:58:40+02:00] creating cluster (openfaas)
INFO[2020-07-31T10:58:40+02:00] creating master nodes of cluster (openfaas)
INFO[2020-07-31T10:58:40+02:00] creating node (openfaas-master-1)
INFO[0014] Created VM with ID "b59cb57875bd2743" and name "openfaas-master-1"
ERRO[0017] failed to setup network for namespace "ignite-b59cb57875bd2743": unable to allocate IP address: Post http://<IP_ADDRESS>:6784/ip/ignite-b59cb57875bd2743: dial tcp <IP_ADDRESS>:6784: connect: connection refused
FATA[0017] unable to allocate IP address: Post http://<IP_ADDRESS>:6784/ip/ignite-b59cb57875bd2743: dial tcp <IP_ADDRESS>:6784: connect: connection refused
ERRO[2020-07-31T10:58:58+02:00] failed to create node (openfaas-master-1)     error="exit status 1"
INFO[2020-07-31T10:58:58+02:00] waiting nodes of cluster (openfaas) are running

I previously had an old ignite installation so I thought it maybe a compatibility issue and so I uninstalled it and let kubefire install do the work. Perhaps it's the CNI plugin cause uninstalling ignite doesn't seem to remove it. Here its a part of kubefire install:
+ TMP_DIR=/tmp/kubefire
++ go env GOARCH
++ echo amd64
+ GOARCH=amd64
+ CONTAINERD_VERSION=v1.3.4
+ IGNITE_VERION=v0.7.1
+ CNI_VERSION=v0.8.6
+ RUNC_VERSION=v1.0.0-rc91
+ mkdir -p /tmp/kubefire

It seems like the CNI issue like you said.
Please help check what the CNI config you used? I would assume you use the default one generated by ignite.
➜  ~ ll /etc/cni/net.d
total 8.0K
--w----r-- 1 root root 408 Jun 22 01:04 10-ignite.conflist
-rw-r--r-- 1 root root  54 Jan 13  2020 99-loopback.conf.sample

➜  ~ cat /etc/cni/net.d/10-ignite.conflist
{
	"cniVersion": "0.4.0",
	"name": "ignite-cni-bridge",
	"plugins": [
		{
			"type": "bridge",
			"bridge": "ignite0",
			"isGateway": true,
			"isDefaultGateway": true,
			"promiscMode": true,
			"ipMasq": true,
			"ipam": {
				"type": "host-local",
				"subnet": "<IP_ADDRESS>/16"
			}
		},
		{
			"type": "portmap",
			"capabilities": {
				"portMappings": true
			}
		},
		{
			"type": "firewall"
		}
	]
}

➜  ~  ll /etc/cni/net.d
total 4,0K
-rw-r--r-- 1 root root 318 Mut 24  2020 10-weave.conflist

Ok this is not the default one which is used by ignite.
I would suggest u delete the file (back up first if u use in other cases), then when rerunning kubefire command, the default CNI config will be regenerated by ignite.

Thank you it works like a charm


Bumps R to 4.2.0

NB: Devel is a 'relative' version - might cause confusion but hasn't come up yet.

Verified that R 4.2.0 works. Example: https://renkulab.io/projects/lee.gavin.k/reports-in-r-and-rstudio/sessions/new?autostart=1

I made an issue for the failing CUDA builds: https://github.com/SwissDataScienceCenter/renkulab-docker/issues/238
We can merge this PR but make sure to solve that before we make a release.


[WIP/TESTING] build(deps): bump sphinx from 4.1.0 to 4.1.1 in /tools/docs

Bumps sphinx from 4.1.0 to 4.1.1.

Release notes
Changelog
Commits

updated-dependencies:

dependency-name: sphinx
dependency-type: direct:production
update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot]<EMAIL_ADDRESS>Signed-off-by: Ryan Northey<EMAIL_ADDRESS>
Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]
[Optional API Considerations:]

docs rendered here https://storage.googleapis.com/envoy-pr/17405/docs/index.html

the claimed version compat is     'docutils>=0.14,<0.18', (https://github.com/sphinx-doc/sphinx/blob/f9941b9402821de2d60c1e94f9ac5cf0379640d0/setup.py#L26)
ill try bumping the docutils version - cc @mattklein123

I checked and it looks OK from a very quick view. We can try bumping docutils if you want, though I'm skeptical.


Issue with the function ServiceBus_CDMToSynapseView

I just updated the CDMUtil in Azure function to the latest version. I get error messages from ServiceBus_CDMToSynapseView saying that it is missing the ServiceBus ConnectionSting
I looked at the history and I could see that ServiceBus_CDMToSynapseView was not present in the previous release. When I roled it back to a previous version (May 23rd) it worked

Any new Info? I have the same problem.

Thanks @jspijkerboer. This seems to work great from preliminary testing


error

got this error while trying to run the code
All rights reserved
System >> Version 10.0.0 loaded
System >> Starting Shard #1 ...
node:internal/modules/cjs/loader:1361
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: The module '/Users/tysonfabrw/Documents/Discord-Bot-10.0.0/node_modules/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 102. This version of Node.js requires
NODE_MODULE_VERSION 111. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Module._extensions..node (node:internal/modules/cjs/loader:1361:18)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at Module.require (node:internal/modules/cjs/loader:1157:19)
at require (node:internal/modules/helpers:119:18)
at Object. (/Users/tysonfabrw/Documents/Discord-Bot-10.0.0/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1275:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v19.6.1
/Users/tysonfabrw/Documents/Discord-Bot-10.0.0/node_modules/discord.js/src/sharding/Shard.js:162
reject(new DiscordjsError(ErrorCodes.ShardingReadyDied, this.id));
^
Error [ShardingReadyDied]: Shard 0's process exited before its Client became ready.
at Shard.onDeath (/Users/tysonfabrw/Documents/Discord-Bot-10.0.0/node_modules/discord.js/src/sharding/Shard.js:162:16)
at Object.onceWrapper (node:events:627:26)
at Shard.emit (node:events:524:35)
at Shard._handleExit (/Users/tysonfabrw/Documents/Discord-Bot-10.0.0/node_modules/discord.js/src/sharding/Shard.js:412:10)
at ChildProcess.emit (node:events:512:28)
at ChildProcess._handle.onexit (node:internal/child_process:293:12) {
code: 'ShardingReadyDied'
}
Node.js v19.6.1
tysonfabrw@Tysons-MacBook-Pro Discord-Bot-10.0.0 % node:internal/modules/cjs/loader:1361
return process.dlopen(module, path.toNamespacedPath(filename));
^
Error: The module '/Users/tysonfabrw/Documents/Discord-Bot-10.0.0/node_modules/canvas/build/Release/canvas.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 102. This version of Node.js requires
NODE_MODULE_VERSION 111. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install).
at Module._extensions..node (node:internal/modules/cjs/loader:1361:18)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12)
at Module.require (node:internal/modules/cjs/loader:1157:19)
at require (node:internal/modules/helpers:119:18)
at Object. (/Users/tysonfabrw/Documents/Discord-Bot-10.0.0/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1275:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)
at Module.load (node:internal/modules/cjs/loader:1133:32)
at Module._load (node:internal/modules/cjs/loader:972:12) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v19.6.1

Run what it says: npm rebuild
Please refer to our discord where we bring support for setting up the bot.


Uncaught Error: ENOENT: no such file or directory, open '/home/despairblue/vcs/git/scegratoo3/app/scripts/services/treenodeattribute.js'

When changing branches in git while one of the files that are being rewritten (due to the branch switch) is open in atom this happens:
Atom Version: 0.199.0
System: linux 3.14.39-1-lts
Thrown From: Atom Core
Stack Trace
Uncaught Error: ENOENT: no such file or directory, open '/home/despairblue/vcs/git/scegratoo3/app/scripts/services/treenodeattribute.js'
At events.js:141

Error: ENOENT: no such file or directory, open '/home/despairblue/vcs/git/scegratoo3/app/scripts/services/treenodeattribute.js'
  at Error (native)

Commands
     -0:48.2.0 symbols-view:toggle-file-symbols (atom-text-editor.editor.is-focused)
     -0:47.5.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -0:47.5.0 core:cancel (atom-text-editor.editor.mini.is-focused)
     -0:46.1.0 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:43 core:backspace (atom-text-editor.editor.mini.is-focused)
     -0:40.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:40.9.0 git-plus:new-branch (atom-text-editor.editor)
  6x -0:36.8.0 core:backspace (atom-text-editor.editor.mini.is-focused)
  3x -0:27.5.0 editor:move-to-beginning-of-word (atom-text-editor.editor.mini.is-focused)
     -0:25 core:confirm (atom-text-editor.editor.mini.is-focused)

Config
{
  "core": {
    "excludeVcsIgnoredPaths": false,
    "disabledPackages": [
      "welcome",
      "metrics",
      "autocomplete",
      "incremental-search",
      "Tern",
      "grunt-runner",
      "tree-view-open-files",
      "tree-view-breadcrumb",
      "atomatigit",
      "themed-settings",
      "linter-scspell",
      "filetype-color",
      "atom-pair",
      "linter-eslint",
      "es-navigation",
      "autocomplete",
      "tab-smart-sort",
      "starred-package-installer",
      "zentabs",
      "linter-jshint",
      "block-cursor",
      "test-status",
      "minimap",
      "minimap-color-highlight",
      "minimap-find-and-replace",
      "minimap-git-diff",
      "minimap-highlight-selected",
      "travis-ci-status",
      "pane-layout-plus",
      "symbols-tree-view",
      "package-cop",
      "navigate"
    ],
    "projectHome": "/home/despairblue/vcs/git/",
    "destroyEmptyPanes": false,
    "themes": [
      "one-dark-ui",
      "solarized-dark-syntax"
    ],
    "autoHideMenuBar": true
  },
  "editor": {
    "fontFamily": "Source Code Pro, Symbola, Droid Sans Fallback",
    "lineHeight": 1.4,
    "showIndentGuide": true,
    "scrollPastEnd": true,
    "invisibles": {},
    "fontSize": 13,
    "softWrap": true
  }
}

Installed Packages
# User
angularjs, v0.1.0
atom-alignment, v0.12.1
atom-color-highlight, v3.0.9
atom-ternjs, v0.5.30
atom-zeal, v0.1.0
autocomplete-emojis, v2.2.2
autocomplete-paths, v1.0.2
block-travel, v1.0.2
bug-report, v0.7.0
color-picker, v1.7.0
compare-files, v0.4.1
docblockr, v0.7.1
editorconfig, v1.0.0
file-icons, v1.5.5
git-log, v0.3.0
git-plus, v4.5.0
go-plus, v3.3.11
grammar-token-limit, v0.1.1
highlight-selected, v0.9.3
indentation-indicator, v0.5.1
javascript-snippets, v1.0.0
keybinding-cheatsheet, v0.0.9
language-dockerfile, v0.1.0
language-dot, v1.6.0
language-fish-shell, v1.0.2
language-haskell, v1.0.0
language-javascript-better, v1.5.0
language-latex, v0.6.1
language-nimrod, v0.1.0
language-puppet, v0.12.0
language-tss, v0.1.0
latex, v0.23.4
linter, v0.12.2
linter-coffeelint, v0.2.3
linter-htmlhint, v0.0.15
linter-js-standard, v0.2.5
linter-js-yaml, v1.0.1
linter-puppet-lint, v0.2.9
linter-shellcheck, v0.0.7
markdown-scroll-sync, v0.3.3
open-last-project, v0.4.1
pdf-view, v0.22.0
project-manager, v1.15.5
regex-railroad-diagram, v0.7.4
tabs-to-spaces, v0.10.0

# Dev
No dev packages

Probably one of your packages causing this, but the stack trace doesn't say which one. This should be fixed by atom/notifications#62 which will be included in the next release.
/cc @kevinsawicki just in case I got this wrong.

@izuzak this is actually a duplicate of #6210.

@50Wliu Yeah, maybe. Have you been able to reliably reproduce that other issue? I remember trying a few times, on all OSes, and wasn't able to. Also noticed https://github.com/atom/atom/issues/6846 which was closed by atom/notifications#62, so that made me close this one as well :smile:.

yep, seems to be fixed :+1:


Enable support for gpt-4 models

It would be nice to have the ability to use the gpt-4 model for those who have access to the API.

I guess this issue may be closed, FYI.


Pass the identity to the error handler onNotAuthorized method

@see http://discourse.silhouette.rocks/t/preferred-way-to-get-identity-in-error-handler/293

@akkie any chance this is possible for a newbie? Looking to contribute to silhouette.

@nogurenn This functionality is already implemented in my local branch for https://github.com/akkie/play-silhouette/tree/silhouette-binding. It's not committed yet due the lack of time.


subgraph fails to render when subgraph ID starts with a number

Describe the bug
A subgraph id cannot start with a Number[0-9] - it needs to start with a letter [a-z][A-Z]
To Reproduce
Working
Not Working
Working Workaround
Not Working Workaround
Expected behavior
subgraph 1test
A-->B
end
should render
Desktop (please complete the following information):

Version 8.2.3

Additional context
Add any other context about the problem here.

It works if you set the subgraph title  in quotes:
subgraph "1test"
A-->B
end

If i quote it and want to add another text it fails:
subgraph "1test"[hello]
A-->B
end

Ah sorry, when I read it I missed that you want an ID to be named that way, so it's not about the title.


[Improvement-15707][Master] Work out the issue that the workflow with a task dependency couldn't work well.

Purpose of the pull request
This PR will close #15707 .
Brief change log
Verify this pull request
This change added tests and can be verified as follows:

Manually verified the change by testing locally.

Codecov Report
Attention: Patch coverage is 0% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 39.04%.  Consider uploading reports for the commit 8c37665 to get more accurate results

Files
Patch %
Lines

...cheduler/server/master/utils/DependentExecute.java
0.00%
3 Missing :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15712      +/-   ##
============================================
- Coverage     39.05%   39.04%   -0.01%
+ Complexity     4845     4844       -1
============================================
  Files          1316     1316
  Lines         45011    44976      -35
  Branches       4818     4794      -24
============================================
- Hits          17581    17563      -18
+ Misses        25524    25506      -18
- Partials       1906     1907       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Improve account creation/permission handling based on Azure oAuth group membership

This reduces the number of graph api's calls by only using one call for all the groups, instead of a call for each group, which massively improves login time.  It also fixes the iteration through the list of groups.

I've just noticed this isn't pulling all groups if the user is a member of too many, I'm working on paging through the results now

I've just noticed this isn't pulling all groups if the user is a member of too many, I'm working on paging through the results now

paging now works, I tested by going down to 20 results per page

paging now works, I tested by going down to 20 results per page

Merging. Thank you for your contribution.

Merging. Thank you for your contribution.


SOLID as a protocol to indentify researchers

In France there are discussions around the different protocols to be used to identify researchers on the web. See https://hyp.is/NvlrzjrgEeeYfC-NJAwf6w/association.dissem.in/files/pv-ag-2016.pdf for example
It may valuable to promote SOLID to dissem.in HAL.archives-ouvertes.fr etc

Blockcerts:

JSON-LD documents signed with [parametrized] ld-signatures stored in the Bitcoin blockchain (< 1MB).
Homepage: http://www.blockcerts.org/
Src: https://github.com/blockchain-certificates
Src: https://github.com/blockchain-certificates/cert-schema
Notes re: schema.org/Certificate, CTI, WebID and other existing linked data credential specs:

https://github.com/blockchain-certificates/cert-schema/issues/25#issuecomment-288611927 https://github.com/blockchain-certificates/cert-schema/issues/25#issuecomment-289006903

Keybase

Homepage: https://keybase.io/
Src: https://github.com/keybase
https://keybase.io/docs/server_security/merkle_root_in_bitcoin_blockchain

https://github.com/keybase/blockchain-tools

May I ask how you consider mixing Solid and a blockchain?

Credentials used to sign LDPRs in a SOLID LDPC would be stored in a
Blockchain (and so the trust root would then be resilient, distributed, and
validatable).
On Tuesday, May 23, 2017, jibe-b<EMAIL_ADDRESS>wrote:

May I ask how you consider mixing Solid and a blockchain?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/solid/solid-spec/issues/102#issuecomment-303471965,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADGy3xeeypChi7nFJYGlwmPTG91-Pl8ks5r8xVzgaJpZM4NdlHD
.

Clear, thank you.

IDK who's solved for the key lifecycle? As far as processes:

Create a new Credential (URI, keypair, [metadata])
Validate a Credential ld-signature with a trust chain (leading to a trust root)
Store a Credential for easy retrieval

DHT
Datastore

LDP (SOLID)

Retire expired/lost Credentials

How do key rotation and expiration work with: (CRL & OCSP, blockchain)
(or indeed with existing solutions for data-in-motion and data-at-rest)?

Because the blockchain solves the double-spending problem, an is8601 expireDate datetime (in a signed record) should be sufficient for expiry (if that's even relevant to academic credentials which link an individual to an organization over one or more segments of time)
IIUC, IDK, Revocation is harder with just a blockchain: who retains the ./#revokeCredential privilege for a Credential granted from which entity?

From http://www.blockcerts.org/guide/ :

These open-source repos form a working standard for blockchain certificates that may be utilized by other research projects and commercial developers. It contains components for creating, issuing, viewing, and verifying certificates using the Bitcoin blockchain. These components form all the parts needed for a complete ecosystem.
Please note that this standard is not attempting to solve identity. In other words, this solution does not certify the mapping of public keys to individuals or organizations. However, this ecosystem does form the basis for making strong proof of claims.

@jibe-b Perhaps more immediately practical:
The linked PDF mentions ORCID (for individuals, I assume). (Unfortunately, it's too difficult to translate a PDF):
https://en.wikipedia.org/wiki/ORCID

https://orcid.org/

http://orcid.org/0001-0001-0001-0001

https://schema.org/Person

https://schema.org/identifier ?

{"@context": "http://schema.org/",
 "@graph": [
     {"@type": "Person",
      "name": "firstname lastname"
      "identifier": {"@type": "PropertyValue",
          "propertyId": "ORCID",
          "value": "http://orcid.org/0001-0001-0001-0001"}}
 ]
}

And then there's DOI (Digital Object Identifier):

https://en.wikipedia.org/wiki/Digital_object_identifier
"How do I get a DOI for a dataset?"
https://academia.stackexchange.com/questions/52032/how-do-i-get-a-doi-for-a-dataset

{Figshare (free), Zenodo (free), Dryad}

And then, schema.org/CreativeWork :

https://schema.org/CreativeWork

https://schema.org/Article

https://schema.org/ScholarlyArticle

With the eventual goal of producing a citation graph from resources described with linked data and linked by reified edges with provenance information:
https://wrdrd.github.io/docs/consulting/linkedreproducibility#studygraph-document-nodes-and-link-edges
A practical concern:

How many credentials does a researcher accumulate over a given career?


Added front-end scss and starting home layout

I removed the boilerplate stuff and did some stuff on the Home page based on your design on Figma, nearly a one-to-one copy, but I tried my best at least!
Here's what I came up with:

Oh, and I fixed some README typos too.
Some suggestions

When users click on the search bar, a suggestions element with the "Popular", "New", "By Category", "By Species" items below it for faster search, which is something like this:

I should mention that "hot" can definitely mean something else, so I used "popular" instead lol

You can lazy-load components for better user experience for people with slow ass connections

I literally just woke up, didn't have my breakfast yet, and immediately worked on this, you're welcome btw!

OMG You're awesome Skep! Thank you for your contributions! :3


DB got corrupted

I got this bug after my pc restarted unexpectedly.
Details are here to be able to investigate.
[2018-05-11 11:41:04.9901 13] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext Consensus Loop stopping
[2018-05-11 11:41:04.9901 13] FATAL: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext Consensus Loop threw an unhandled exception
[2018-05-11 11:41:05.0049 13] ERROR: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext Consensus Loop threw an unhandled exception: System.IO.IOException: The requested operation could not be completed due to a file system limitation
   at DBreeze.LianaTrie.LTrie.Add(Byte[]& key, Byte[]& value, Boolean& WasUpdated, Boolean dontUpdateIfExists)
   at DBreeze.Transactions.Transaction.Insert[TKey,TValue](String tableName, TKey key, TValue value, Byte[]& refToInsertedValue, Boolean& WasUpdated, Boolean dontUpdateIfExists)
   at DBreeze.Transactions.Transaction.Insert[TKey,TValue](String tableName, TKey key, TValue value)
   at Stratis.Bitcoin.Features.Consensus.CoinViews.DBreezeCoinView.<>c__DisplayClass15_0.<SaveChangesAsync>b__0() in C:\Users\Dan\Documents\GitHub\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\CoinViews\DBreezeCoinView.cs:line 235
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Stratis.Bitcoin.Features.Consensus.CoinViews.CachedCoinView.<FlushAsync>d__29.MoveNext() in C:\Users\Dan\Documents\GitHub\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\CoinViews\CachedCoinView.cs:line 282
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Stratis.Bitcoin.Features.Consensus.ConsensusLoop.<FlushAsync>d__43.MoveNext() in C:\Users\Dan\Documents\GitHub\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\ConsensusLoop.cs:line 487
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Stratis.Bitcoin.Features.Consensus.ConsensusLoop.<AcceptBlockAsync>d__40.MoveNext() in C:\Users\Dan\Documents\GitHub\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\ConsensusLoop.cs:line 426
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Stratis.Bitcoin.Features.Consensus.ConsensusLoop.<PullerLoopAsync>d__38.MoveNext() in C:\Users\Dan\Documents\GitHub\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\ConsensusLoop.cs:line 305
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Stratis.Bitcoin.Features.Consensus.ConsensusLoop.<<StartAsync>b__36_0>d.MoveNext() in C:\Users\Dan\Documents\GitHub\StratisBitcoinFullNode\src\Stratis.Bitcoin.Features.Consensus\ConsensusLoop.cs:line 239
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Stratis.Bitcoin.Utilities.AsyncLoop.<>c__DisplayClass16_0.<<StartAsync>b__0>d.MoveNext() in C:\Users\Dan\Documents\GitHub\StratisBitcoinFullNode\src\Stratis.Bitcoin

I think it will be a good idea to add integration tests that would kill the node process at random times and then verify that node can recover on startup.
As of the logs: do you have logs at the moment of the PC restart?
This is an odd bug- dbreeze should be able to handle interrupted save operations pretty well.

I have logs yes but they are bug so please ask them form me and I will send directly.

Next step would be checking if DBreeze support DB splitting into several files based on max size of the db file.
The issue is OS specific and can occur when disk is heavily fragmented and target file is large.


Finish memification

I believe that this change is in line with the spirit of this project

Thanks for your contribution!


Very old dependencies for Dart version

When I try to use Angular Material with the newest Angular2 for Dart (beta 17), pub allows to work only with a very old alpha release of angular2_material.

@michalpie this repo of material2 doesn't support Dart anymore. See #37  for more information.


Unknown file type

I don't have any problems with the tool (It works like a charm). But i don't know what type the files in the dd-archive archives are.
I found some shader-files and some other plain-text files, but nothing more.
Did you find out how to edit or open them?

The dd file also contains all textures and models. Textures are probably very simple raw 8 bit RGB values with a width + height header on top from what I can remember, haven't looked at it yet though. There are 2 type flags stored with every subfile header, they should indicate which file it is (shader, sound, texture, model etc.), or you can just guess based on the contents because there is no mapping of flags to file types yet.
The game doesn't calculate a checksum for the two packages, so you can directly modify e.g. one of the GLSL shaders in plaintext if you open the entire package with a hex/text editor, and it will load it (I have tried, it does work). Seems 100% moddable.


Custom status feature

Summary

Mobile Custom User Statuses

Ticket Link

Development Spec - https://mattermost.atlassian.net/wiki/spaces/CS/pages/1096810497/Development+Spec
Figma design: https://www.figma.com/file/9OsvCq4z83xH0Vd6e68Ls9/MM-24340-Custom-Statuses?node-id=810%3A23968

Checklist

[x] Added or updated unit tests (required for all new features)
[x] Has UI changes
[x] Includes text changes and localization file updates

Device Information
This PR was tested on:

iPhone 11 Pro Simulator - iOS 14.4
Android Emulator - Pixel_3a_API_30_x86 - Android 10

Screenshots

Hello @chetanyakan,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Hi @chetanyakan thanks for this, I haven't really reviewed this but just by taking a glance at the code I see that there are no unit tests an end 2 end tests are also missing. Would you mind adding those as well.
Thanks.

@enahum The unit tests are added in the last commit.
I have one question about the e2e tests. Are there any specific scenarios that I should focus on?
For web-app e2e tests, @ogi-m provided steps and expectations in the following format:

https://automation-test-cases.vercel.app/test/MM-T3850

Is there something similar for the mobile-app e2e tests?

@saturninoabril, @josephbaylon is out today, would you mind answering @chetanyakan question?

@ogi-m as the QA on the feature, maybe you can also give us your thoughts :)

I'll defer to @ogi-m to provide the written test case (if any). If none yet, then I'd suggest to create one specific for mobile since MM-T3850 is tailored for the webapp.
@chetanyakan Once the test case is provided, you may look at https://github.com/mattermost/mattermost-mobile/blob/master/detox/e2e/test/smoke_test/user_status.e2e.js for related test flow of user status.

@chetanyakan Here are the mobile test cases:
https://automation-test-cases.vercel.app/test/MM-T3890
https://automation-test-cases.vercel.app/test/MM-T3891
https://automation-test-cases.vercel.app/test/MM-T3892
https://automation-test-cases.vercel.app/test/MM-T3893
I've based that on the designs which don't include some of the behaviours, so please let me know if something doesn't match the actual behaviour and I can update the test case.
Also, the test case that verifies the places where the custom status is displayed will probably need updating as the designs don't cover all the places we want to show it. I'm waiting for clarification on this (see here).

@enahum @anurag6713 This PR should be good for review.

Building app in separate branch.

Hi @chetanyakan Thanks for applying the changes! The suggestion clear button now appears. However, when I try to tap on it, it doesn't do anything (does not clear the suggestion). I tried on both Android and iOS and it doesn't seem to work. Does it work for you locally?
Also, I noticed when the user tries to set emoji status, when the emoji picker is shown, user is not able to close the emoji screen without selecting first. Not sure if this is intended behavior. @matthewbirtch might have a better idea. I kicked off a build so you can see the UI changes on Android and iOS.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14533
https://circleci.com/gh/mattermost/mattermost-mobile/14532

Artifact links:
https://14533-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://14532-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

Also, I noticed when the user tries to set emoji status, when the emoji picker is shown, user is not able to close the emoji screen without selecting first. Not sure if this is intended behavior. @matthewbirtch might have a better idea. I kicked off a build so you can see the UI changes on Android and iOS.

Good catch @josephbaylon. You're right, this isn't as intended. We should use the same emoji picker component that we're using on posts if we can. It has a header with the x button to close the emoji picker modal.

Hi @chetanyakan Thanks for applying the changes! The suggestion clear button now appears. However, when I try to tap on it, it doesn't do anything (does not clear the suggestion). I tried on both Android and iOS and it doesn't seem to work. Does it work for you locally?

@josephbaylon You need to switch the server branch https://github.com/mattermost/mattermost-server/pull/17122

@chetanyakan Thanks for the info. I added a Do Not Merge/Awaiting PR label as this PR depends on the server PR

@josephbaylon have you tested this against servers that do not have the feature (old server versions ex.: ESR) or that have the feature flag disabled? Not sure if the code is handling that as I haven't reviewed yet cause of all the changes bekng requested

@enahum Yeah, the option to set status does not appear when the feature is disabled or when using old server like ESR

@josephbaylon @matthewbirtch This PR should be good for re-review.

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14634
https://circleci.com/gh/mattermost/mattermost-mobile/14633

Artifact links:
https://14634-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://14633-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

@chetanyakan Thanks for the changes! One thing I noticed that's still not included is when emoji picker is shown it does not have a header like Add Reaction screen with close (x) button. User can dismiss the emoji picker by selecting an emoji or swiping down. But user should also be able to dismiss via close button.
@matthewbirtch What should be the header name for the emoji picker in this flow?

2. In the Right drawer, if I tap the x from here to clear my status, it works, but there seems to be a delayed response (seeing at least 1s delay). It doesn't clear it immediately. Any way to improve this delay?

Still seeing this problem. Any way to improve?

4. In the Set a status modal, I can't seem to remove any of the recent items. Tapping on the x on the right side of the row adds the item as my status instead of removing it. Also, what is the tap size set on these icons? It should at least be 40x40

Still can't seem to clear recents from the list
Also a few other notes:

When I clear my status from my profile screen, the same delay occurs here
When I clear my status, then set a new status and save it, then open the right drawer again, I sometimes see the status row flash from the empty state to the updated status state

@matthewbirtch

When I clear my status from my profile screen, the same delay occurs here
In the Right drawer, if I tap the x from here to clear my status, it works, but there seems to be a delayed response (seeing at least 1s delay). It doesn't clear it immediately. Any way to improve this delay?

I am not seeing any delay using the iOS simulator with mattermost running locally.
What device/server are you using? How long is the delay for you?

Still can't seem to clear recents from the list

For clearing the recent statuses, we need to wait for the server PR to be merged: https://github.com/mattermost/mattermost-server/pull/17122

I am not seeing any delay using the iOS simulator with mattermost running locally.
What device/server are you using? How long is the delay for you?

I'm testing on an iPhone 11 with iOS 14.4.1

I am not seeing any delay using the iOS simulator with mattermost running locally.
What device/server are you using? How long is the delay for you?

I'm testing on an iPhone 11 with iOS 14.4.1

@matthewbirtch This delay is because we wait for the API call to complete before updating the status.
We have a similar delay in the webapp, but it is not that noticeable.
We have 2 options to resolve this:

Set the status first and then perform the API call and revert if the API call fails.
Show some sort of loading indicator on the status when the API call is being made. (this could be similar to create-post retry/cancel options when API call fails)

What do you think we should do?

I would suggest we go with the optimistic route. Make the status change feel more responsive by immediately changing it on the client-side. I would imagine the chances of this failing are quite slim, so we should optimize for that. In the slim case that it fails or doesn't complete within a 2-second window, we revert the status change. To improve this error state, we could potentially show an error icon on the status row to signal to try again.
Maybe something as simple as this

@matthewbirtch How should we handle the error in clearing the status instead of setting status.
Should we just revert to show the previously set status or show an option to try again?

Should we just revert to show the previously set status or show an option to try again?

Yes, we should revert to the previous state. I'll mock something up for this case you've identified.

Should we just revert to show the previously set status or show an option to try again?

Yes, we should revert to the previous state. I'll mock something up for this case you've identified.

Sorry, rather than placing the error message to the right, let's actually put the error message below the status text so that it works in both cases.

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14952
https://circleci.com/gh/mattermost/mattermost-mobile/14951

Artifact links:
https://14952-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://14951-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

@chetanyakan I just noticed a couple issues:

In the Set a Status modal. When I focus on the input to change my status, extra space seems to get added to the top of the modal.

In the DM Channel Info screen, the status appears as bold, but should be regular font-weight
When I set my status in another client (webapp), the status appears everywhere except in the right drawer. See screen recording below

https://user-images.githubusercontent.com/2040554/114062392-76f7c400-9865-11eb-827d-61ccf3626329.MP4

@chetanyakan let us know if this is ready for a re-review

@esethna This should be good for re-review now.

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14952
https://circleci.com/gh/mattermost/mattermost-mobile/14951

Artifact links:
https://14952-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://14951-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

Thanks! cc// @matthewbirtch to do a re-review when you get a chance

In the Set a Status modal, we should be able to tap anywhere on the row (except for the clear icon) to start editing the status. Right now it looks like I have to tap right on the text

@matthewbirtch This should be fixed now.

@josephbaylon @ogi-m The server PR was merged. So, can you review this?
(cc: @enahum @anurag6713)

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14952
https://circleci.com/gh/mattermost/mattermost-mobile/14951

Artifact links:
https://14952-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.apk
https://14951-70265724-gh.circle-artifacts.com/0/tmp/artifacts/Mattermost_Beta.ipa

/update-branch

We don't have permissions to update this PR, please contact the submitter to apply the update.

Nice! @enahum if we can I'd like to get this PR in the June release (feature complete mid-May) cc// @amyblais

@esethna

We're getting quite a lot of negative app reviews because users aren't getting custom statuses on mobile yet

not a surprise.. who did the review for the feature on the webapp? they should probably review this thing as well.
consider adding the release notes in the PR description.
@chetanyakan you mentioned that a PR has been merge in the server that was needed for this? what server version is that PR landing on?

@enahum shouldn't we have mobile developers reviewing this PR? cc// @hmhealey @deanwhillier @michelengelen who reviewed the webapp PR

@esethna

shouldn't we have mobile developers reviewing this PR?

I will.. definitely will, specially cause in the first file I already saw some stuff that makes no sense. But we should be having someone who reviewed the feature review this as well..
is there anything mobile specific in this PR? cause I don't see anything really mobile specific.

@esethna @enahum i will review this one as well, if you want. I have been doing the review for the webapp (@hmhealey was also involved if I remember correctly)

Sure thanks @michelengelen
@enahum there's no "new" features in this PR compared to the webapp, but the UX for setting the status is of course done differently. See the designs: https://www.figma.com/file/9OsvCq4z83xH0Vd6e68Ls9/MM-24340-Custom-Statuses?node-id=810%3A23661

consider adding the release notes in the PR description.
Done.

@chetanyakan you mentioned that a PR has been merge in the server that was needed for this? what server version is that PR landing on?

@enahum It was this PR: https://github.com/mattermost/mattermost-server/pull/17122
I don't see a milestone added. Maybe we need to cherry-pick this to the next release?

Everything I would've commented on has been covered, and the rest looks good to me. Glad to see Elias is also making sure no one ever returns an empty object literal from mapStateToProps 😄

@enahum @chetanyakan please see this note regarding the server version that custom statuses are available in: https://github.com/mattermost/mattermost-server/pull/17122#issuecomment-829578392

@chetanyakan @manojmalik20 let us know when this is ready for a re-review, thanks!

@esethna Just waiting for replies to some questions on tracking the requests. Other than that, this is ready for a re-review.

Thanks! cc// @enahum @michelengelen ^

comments added since this morning, no new changes since.. will wait for the changes in order to re-review.
cc: @esethna

@enahum This is ready for a re-review.

@enahum can you expand on what you are referring to here? https://github.com/mattermost/mattermost-mobile/pull/5220#discussion_r631286475

@esethna lets say I use one of the suggestions to set my custom status, but then I switch my UI from english to another language, the suggested status won't be filtered as now the messages don't match

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14952
https://circleci.com/gh/mattermost/mattermost-mobile/14951

@matthewbirtch What we can do is we can remove the server version check from the code temporarily so that you can test it. Once you are done with the testing, we can add that check again. Let me know if it's okay.

@matthewbirtch What we can do is we can remove the server version check from the code temporarily so that you can test it. Once you are done with the testing, we can add that check again. Let me know if it's okay.

That's fine with me if it's fine with everyone else

@matthewbirtch It is ready.

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14952
https://circleci.com/gh/mattermost/mattermost-mobile/14951

@matthewbirtch Were you able to test it?

@matthewbirtch Were you able to test it?

No, I was waiting for the build process to finish, but I don't see that it successfully built

@matthewbirtch I think it's successfully built.

@matthewbirtch I think it's successfully built.

Strange, it should show in the QA: Builds channel on the community server when it's successfully built. (and it should post here in the PR).
I don't see any artifacts in Circle CI either

@chetanyakan I finally got it working locally in my iOS simulator, so I can review there for now

@matthewbirtch You can re-review this again.
Apart from your suggestion that we should truncate the recent statuses, I've done all the changes. Actually, I think that if we truncate the recent statuses the user won't be able to differentiate between two statuses which are both very long and are similar in the beginning. So I modified the styling a little bit instead.

@matthewbirtch I aligned the emoji and clear icon in the same way in the user profile screen. You can check that out. Also, let me know when to add the server version check again.

@matthewbirtch I aligned the emoji and clear icon in the same way in the user profile screen. You can check that out. Also, let me know when to add the server version check again.

Looks good @manojmalik20. I think you're good to add the server check back in

@enahum Can you please re-review this?

@enahum Ready for re-review.

@ogi-m Can you please review/test this PR?

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14952
https://circleci.com/gh/mattermost/mattermost-mobile/14951

@manojmalik20 I'm logged into daily with the iOS build - I only see the statuses in the user popover.
I don't see the it next usernames in posts and I don't see it in the drawer:

@ogi-m I removed the server version check temporarily and fixed showing custom status in user profile. So this is good for re-review.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14952
https://circleci.com/gh/mattermost/mattermost-mobile/14951

@enahum The conflicts have been resolved. Can you please remove the Awaiting Submitter Action label?

@manojmalik20 I added the label cause if the minimum server version check is needed before being able to merge this

@ogi-m Did you get a chance to review this?

@manojmalik20 Testing at the moment. One issue I've noticed so far is that I don't see the custom status on user profile for other people unless I have a custom status set.

Clear your custom status
Tap on another user that has a custom status set to open the profile popover - the user's custom status is not shown in the profile
Set a custom status for yourself
Tap on another user that has a custom status set to open the profile popover - the user's custom status is now displayed in the profile

@ogi-m That issue is fixed. Can you please re-review and tell if there are any other issues?

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14952
https://circleci.com/gh/mattermost/mattermost-mobile/14951

Re-reviewed changes.. they look good

@ogi-m Can I add the server version check again?

@matthewbirtch Is the sizing in the channel header ok or should the emoji be slightly smaller?

@enahum Is there a way to add the server version check so that it doesn't get blocked on master and cloud?

So far there is nothing, I believe the server version says cloud and the License also has a cloud identifier. We haven't added a helper for that.
Perhaps the Growth team should submit a PR for that helper.
As for master the onmy way is to bump the version

@ogi-m wants that if this PR is merged it should work on cloud and master, so that means we should not add server version check right? @enahum What do you think we should do?

@matthewbirtch Is the sizing in the channel header ok or should the emoji be slightly smaller?

Wow, good eye @ogi-m. It does appear to be very slightly larger than what is in the design. The design had the font-size set to 18, but it looks like it might be 20 here.

@ogi-m @matthewbirtch Changed the emoji size in the channel title. Good for re-review.

The PR won't be merge without the server check.. I rather be on the safe side.

@enahum I'll add the server check as soon as @ogi-m is finished with reviewing.

Building app in separate branch.

Successfully building:
https://circleci.com/gh/mattermost/mattermost-mobile/14952
https://circleci.com/gh/mattermost/mattermost-mobile/14951

I've resolved all the conflicts. @matthewbirtch and @ogi-m Do you want to review again or should I add the server version check?

@manojmalik20 I think we're good, please add the server version check 👍🏻

Cherry pick is scheduled.


cephfs: Enhance clusterAdditionalInfo states and resizeState

          not sure why this was int64 before, as we have minimal values we should have used uint32.

https://github.com/ceph/ceph-csi/pull/4163#discussion_r1348528732
          This should also go to the helper function like in metadata.go as an enhancement.

Originally posted by @Madhu-1 in https://github.com/ceph/ceph-csi/pull/4163#discussion_r1348531751

Everything is handled in that pr itself


Innate lymphoid cell missing

CL has no term for Innate lymphoid.  Please add it as a new term or synonym as appropriate.

I will be adding these terms on Monday, 30-01-17 -- did the research today, but out of time to add the terms.

Addressed in #456.  Upper level terms are all present now in cl-edit.owl


New package: AliasTables v0.1.0

Registering package: AliasTables
Repository: https://github.com/LilithHafner/AliasTables.jl
Created by: @LilithHafner
Version: v0.1.0
Commit: 23175c581e19de584eaaa00b02b94f42c30a136b
Reviewed by: @LilithHafner
Reference: https://github.com/LilithHafner/AliasTables.jl/commit/23175c581e19de584eaaa00b02b94f42c30a136b#commitcomment-140315731
Description: An efficient sampler for discrete random variables

I think name similarity is okay, but I'll wait for someone else to agree before tagging for manual merge to override the auto-merge failure due to needing Julia 1.11.


[Stepper] Expand all steps

Hey Guys,
I ran into an issue, that I am not able to display all steps at once.
I would like to introduce a flag at Stepper, which expands all steps at once.

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

Expected Behavior

There should be a flag, which can expand steps.
Current Behavior

There is no flag, which extends all steps.
Examples

I think, it should be clear, even without pictures.
Context
I try to accomplish displaying all steps for an overview. Someone else done the steps and entered data into forms. Afterwards, I want to display all steps at once to give an overview.
I would work on this issue by myself and will contribute this to upstream, if wanted.

I think, it should be clear, even without pictures.
Not everyone has an immediate picture in his head about how Stepper look and why they should be expanded all at once. At least I don't have.

The purpose of steppers is to limit the scope of some process so that users don't get overwhelmed. Displaying all at once goes against the very purpose of steppers. While one might think "this is just a flag" it does increase the API surface and doubles our test cases effectively.
As I understand it you want some sort of summary and I don't think just merging all steps into on view and calling it summary is a good idea.

You are entirely correct for the described case. It is quite hard to abstract a business use case for such an issue.
We will rethink this with our customer. Until then, I will provide a PR, which can be merged, if nessesary. Otherwise I have to maintain my fork.

I would like to introduce a flag at Stepper, which expands all steps at once.

@johannwagner I had such requirement at work two years ago. Any current step depends on its predecessor steps:

I wasn't thinking about the actual StepContent but about the associated view for a step so that's why this didn't sound that useful. The example convinced me that this might be indeed useful. Thanks for the clarification @oliviertassinari

Pre-3.2 we used to accomplish this with <Step key={id} active={true}> on each step. As of 3.2, this is no longer possible. In our case, we use the Stepper component perhaps in a somewhat unorthodox fashion. That is, we use it as a means to display a series of steps that the user can re-organize:

To no longer have the ability for all Steps to be active is a significant reduction in use case flexibility for this component.

+1 downgrading package for now

@bluepeter It was fixed in #13188.

The solution shared by @bluepeter in https://github.com/mui-org/material-ui/issues/12948#issuecomment-428772078 is the preferred approach to solve the initial request. However, I believe that we could add a new expanded prop to cover more use cases. If somebody is interested, a pull request could look something like this:
diff --git a/packages/material-ui/src/Step/Step.js b/packages/material-ui/src/Step/Step.js
index 5b362a2a4..b7324e300 100644
--- a/packages/material-ui/src/Step/Step.js
+++ b/packages/material-ui/src/Step/Step.js
@@ -33,6 +33,7 @@ const Step = React.forwardRef(function Step(props, ref) {
     completed = false,
     connector,
     disabled = false,
+    expanded = false,
     index,
     last,
     orientation,
@@ -85,6 +86,7 @@ const Step = React.forwardRef(function Step(props, ref) {
           alternativeLabel,
           completed,
           disabled,
+          expanded,
           last,
           icon: index + 1,
           orientation,
@@ -132,6 +134,10 @@ Step.propTypes = {
    * `StepButton` is a child of `Step`. Is passed to child components.
    */
   disabled: PropTypes.bool,
+  /**
+   * Expand the step.
+   */
+  expanded: PropTypes.bool,
   /**
    * @ignore
    * Used internally for numbering.
diff --git a/packages/material-ui/src/StepContent/StepContent.js b/packages/material-ui/src/StepContent/StepContent.js
index e86db9c7b..1f814d95a 100644
--- a/packages/material-ui/src/StepContent/StepContent.js
+++ b/packages/material-ui/src/StepContent/StepContent.js
@@ -31,6 +31,7 @@ const StepContent = React.forwardRef(function StepContent(props, ref) {
     classes,
     className,
     completed,
+    expanded,
     last,
     optional,
     orientation,
@@ -57,7 +58,7 @@ const StepContent = React.forwardRef(function StepContent(props, ref) {
   return (
     <div className={clsx(classes.root, { [classes.last]: last }, className)} ref={ref} {...other}>
       <TransitionComponent
-        in={active}
+        in={active || expanded}
         className={classes.transition}
         timeout={transitionDuration}
         unmountOnExit
@@ -97,6 +98,10 @@ StepContent.propTypes = {
    * @ignore
    */
   completed: PropTypes.bool,
+  /**
+   * @ignore
+   */
+  expanded: PropTypes.bool,
   /**
    * @ignore
    */
diff --git a/packages/material-ui/src/StepLabel/StepLabel.js b/packages/material-ui/src/StepLabel/StepLabel.js
index 15777411d..e8d06f5cd 100644
--- a/packages/material-ui/src/StepLabel/StepLabel.js
+++ b/packages/material-ui/src/StepLabel/StepLabel.js
@@ -75,6 +75,7 @@ const StepLabel = React.forwardRef(function StepLabel(props, ref) {
     completed = false,
     disabled = false,
     error = false,
+    expanded,
     icon,
     last,
     optional,
@@ -143,12 +144,10 @@ const StepLabel = React.forwardRef(function StepLabel(props, ref) {
 StepLabel.propTypes = {
   /**
    * @ignore
-   * Sets the step as active. Is passed to child components.
    */
   active: PropTypes.bool,
   /**
    * @ignore
-   * Set internally by Stepper when it's supplied with the alternativeLabel prop.
    */
   alternativeLabel: PropTypes.bool,
   /**
@@ -166,7 +165,6 @@ StepLabel.propTypes = {
   className: PropTypes.string,
   /**
    * @ignore
-   * Mark the step as completed. Is passed to child components.
    */
   completed: PropTypes.bool,
   /**
@@ -178,6 +176,10 @@ StepLabel.propTypes = {
    * Mark the step as failed.
    */
   error: PropTypes.bool,
+  /**
+   * @ignore
+   */
+  expanded: PropTypes.bool,
   /**
    * Override the default label of the step icon.
    */
diff --git a/packages/material-ui/src/Stepper/Stepper.js b/packages/material-ui/src/Stepper/Stepper.js
index 80abc493c..d16ec5a80 100644
--- a/packages/material-ui/src/Stepper/Stepper.js
+++ b/packages/material-ui/src/Stepper/Stepper.js
@@ -103,6 +103,7 @@ const Stepper = React.forwardRef(function Stepper(props, ref) {
 Stepper.propTypes = {
   /**
    * Set the active step (zero based index).
+   * Set to -1 to disable all the steps.
    */
   activeStep: PropTypes.number,
   /**

@oliviertassinari is it also possible to add a property that disables the unmounting of components inside the stepper like tabs does. Right now I am loosing state of the component in the steps after changing from step.


Add .js.map to textual types

I would like to sync the *.js.map files as well.
Since they are not recognized as textual files, I cannot add them with ignore_all_files_with_extension either.

After uploading the file manually, I noticed that PlayCanvas itself treats .js.map files as binary and prints the error message "Error loading binary resource: build.js.map [InvalidStateError: responseText is only available if responseType is '' or 'text'.]"

Side note on adding it manually, rename it to .txt, upload and rename to .map.

Thanks for the hint. I already tried this with .txt and .json, but then the file is treated as an Asset and is not reachable at the path referenced in the corresponding .js file.
When I create it manually as a .js file and then rename to .js.map it complains that the json content is apparently not valid js.
Now I wonder whether PlayCanvas supports .js.map files or if this should be an issue in that repo 🤔

Oh yes. You may be best off embedding the sourcemap into the build.js/output.js file rather than a .map as the folder structure you see in PlayCanvas isn't how it's laid out on the server. Each asset on the server is in it's own folder, including the script assets so relative paths don't work.

Thanks for pointing me in that direction, I didn't know source maps can be embedded.
For anyone with the same issue: I needed to set both inlineSourceMap and inlineSources in the tsconfig.json for this to work.

I'm closing this now as this is not relevant until PlayCanvas supports .js.map files.


allow to search by language and vuln type

One of the main problem of the NVD / CVE raw data is that they are not enough qualified so that SAST vendors can easily find vulnerabilities corresponding to a given language or type of vuln.
Having such information will really help and speed up the development of enhancements in SAST products. For example, I would like to get a full list of XSS vulnerabilities involving Python (*.py) files.

Thanks a lot for reaching out and for the valuable feedback agigleux!
I'll make sure to treat this as a higher priority item for upcoming changes and will post an update once this is live.


UI: Headline disappears

Avoid duplicates

[X] Bug is not mentioned in the FAQ
[X] Bug is specific for iOS only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
[X] Bug is not already reported in another issue

Technical details

Device name: iPhone XR
iOS version: 14.7.1
App version: 2.7.1

Describe the bug
When swiping back from the "My QR Codes" screen, the headline disappears:
https://user-images.githubusercontent.com/67682506/129716156-14b20983-b9e7-4c51-ac15-b90754d8e427.mov
Steps to reproduce the issue

Open the Corona-Warn-App
Scroll down to the "Planning an event?" box
Click on "Create QR Code"
Swipe back as shown in the video

Expected behaviour
The headline should not disappear

Internal Tracking ID: EXPOSUREAPP-9029

@Ein-Tim Thanks. Internal Tracking ID: EXPOSUREAPP-9029

UIKit provides the following elements for handling of large titles:

the navigation bar can be configured to support large titles (UINavigationBar.prefersLargeTitles).
Note that the navigation bar is shared between the sibling view controllers (these siblings are pushed in from the side).
each of these view controller has its own navigation item which it configures with its title and layout preferences (UINavigationItem.largeTitleDisplayMode).
in the current implementation the view controllers permanently re-configure the shared navigation bar to their own preferences in their viewWillAppear method.

A better solution seems to setup the navigation bar only from its owner (the navigation controller), and the view controllers don't fiddle with it and only setup their navigation item.
BUT: it seems that the UIKit API has a bug (or hard-to-understand usage) if this view controller is a UITableViewController
(if you google you find tons of Voodoo recipes and all seem to help in specific circumstances only)...
I continue to investigate this...

@ndegendogo forwarded all to internal ticket. Thanks.

@dsarkar I have played a bit with both tickets on the weekend. Currently I have no good solution, but I'll continue to investigate.

As the CWA project went into ramp-down mode & this is only a minor issue, I don't expect it to be addressed anymore. I'm therefore closing this issue.


ARROW-4769: [Rust] Improve array limit fn where max_records >= len

This yields a ~55% reduction in runtime.

@ntrinquier looks like we needed to take ArrayRef to make the copying work

Awesome @nevi-me !


Getting error :  Job Run_ML_Pipeline: Step  references task 'MLPublishedPipelineRestAPITask' at version '0.1.20' which is not valid for the given job target

Hi
I am getting following error when i run CI pipeline with file : /.pipelines/diabetes_regression-ci.yml
Error:
Job Run_ML_Pipeline: Step  references task 'MLPublishedPipelineRestAPITask' at version '0.1.20' which is not valid for the given job target.
Appreciate for any help.

this is resolved after i change the pool: server


feat: hot reload, fixes #82

Worth a look, github have a fork of the browser package imported in this PR that is actively maintained and updated:
https://github.com/cli/browser

I'm getting fairly happy with this now. I've been doing some work to reduce the CPU utilisation, since I noticed it was using a lot of CPU while watching.
I added profiling, and noted that walking the directory every 250ms caused a lot of syscalls, and switched to WalkDir.
However, I think it's still too much. Next, I thought that I'd try out a phased approach:

On start, walk all directories and compile a list of files.
Every 250ms, check the existing set of found files for changes, and maybe do a backoff so that it will wait for up to 1000ms (not sure on the right value yet) to check files that haven't changed recently.
Every 1000ms-2000ms, re-walk all directories and update the list of found files.

It would be more work to maintain, but you could use a separate technique for systems that support inotify rather than polling.
Or if you're willing to take on another dep:
https://github.com/fsnotify/fsnotify

I tried out using fsnotify and friends, but couldn't get it to work well on my machine.
Here's an abandoned branch - https://github.com/a-h/templ/tree/hot_reload_watcher
I'm not sure I want to support the weird errors I'll get with a filesystem watcher implementation, since it requires me to have a machine for each OS and to test it out.


request to add this mod to modrinth.com

better website overall and theres none like this one

done


Annotations

Great paper!
I can't find your MPII annotations - in which method did you use to annotate it?
Thank you.

Thanks! We used both EFT and SPIN fits for experiments in our paper.
The released code uses EFT fits as training with them performs slightly better. We did not release the EFT fits for MPII since training only with H36M, MPI-INF-3DPH and COCO had the same performance. See here for the datasets and their ratios used during training -- ratios are the ones proposed in PARE.
For experiments with SPIN fits we used the datasets (which include MPII) and ratios as seen here to fairly compare with ProHMR that also uses SPIN fits during training. You can get the SPIN fits for all datasets, including MPII by following the instructions here.

and where can I find the validation set for COCO-EFT?

We only used the 2D keypoints from the validation set of COCO for monitoring purposes during training, so I don't have an npz file with the COCO-val EFT fits.
You can check out the official EFT repo if you need the pseudo-GT for some reason.


2D coordinates to 3D coordinates

Hello, only know 2D coordinates in JSON, this program how to convert them to 3d coordinates, can you tell me the concrete formula？

Hi @JsonDiv,
coordinates for the 3d viewer are expressed in this way:
2DCoord(x,y) -> 3DCoords(x, + layer.altitude, y)


Made skipping files prefixed with an underscore optional

Self explanatory. I have several projects that start with an _filename.scss. This is a small update to make this optional so you can choose to use them or not. By default it skips them. If you set
{
  options: {
    underscore: true
  }
}

Then it will not skip the files.

@sindresorhus Why Not?
Some special files could have "_" prefix, like "_variables.scss", this will be really helpful, because FS will put them at the top of directory.

It's Sass convention. http://stackoverflow.com/a/31319300/64949


Formatted base json

Make it easier to edit and read

@MikolajK some online one, set to 2 space tabs. Only a little bit had got out of whack


Update README.md

Add latest papers on unikernels.

Hey @gaulthiergain thanks for adding the newest papers, much appreciated.
The inflating paper looks particularly interesting, is there somewhere I could access the whole paper? Did you give any talks about it?


ALVR not streaming

On my pc its all running fine, I can see the game and I can move the screen. It's just that my headset won't display what my pc is seeing. on my phone it just keeps saying "Stream will start shortly".  So somehow its not streaming to my headset. any way to fix this? I am using the GearVR btw.

what is your gpu?


Transfer domain servers from Namecheap/Cloudflare to Netlify

Ideally, the domain is handled entirely through Netlify to take advantage of their redirect domain features and it's easier in terms of permissions.

✅ By submitting this issue, I have verified the following

[x] Checked to see if the issue has already been discussed before 🤔
[x] Made sure enough details were provided if proposing a new feature 🔍

We will triage this in Slack instead

Would love to know what you figured out! If you could let me know what happened in the Slack discussion, much appreciated! I'm trying to use Netlify's DNS instead of Namecheap's DNS, but I can't get it to work. It appears that I'll have no choice but to use Namecheap's DNS and manually enter the records for my site and email, unless there's a better way. Thanks!!

@Calefornia You have to go into the domain settings and change the nameserves, is not in the DNS config.
https://www.namecheap.com/support/knowledgebase/article.aspx/767/10/how-to-change-dns-for-a-domain
Make sure all the DNS in netlify is configured correctly and so before you do the migration/change to minimize downtime.


Client Endpoints don't work as detailed in the README

The endpoints nested under Client aren't working properly in v0.5.5, invoking method calls on Array.  Ex:
client = tevo.clients.show(2351)
# => #<TicketEvolution::Client phone_numbers=[], url="/clients/2351", updated_at=2012-02-05 18:13:29 UTC, addresses=[], name="Couch Potato", id="2351", email_addresses=[], status_code=200, server_message="Generally returned by successful GET requests. ">
client.phone_numbers.list
# => NoMethodError: undefined method `list' for []:Array
client.email_addresses.list
# => NoMethodError: undefined method `list' for []:Array

That one took some thought. Thanks for the catch!


Extracting query builder to separate project

I recently had to make a more robust migration setup and because I'm using Gorm, I tried to be consistent in the query generation and dialects (my setup has to support SQLite, MySQL, and Postgres without too much hassle), so I hooked into the dialects of Gorm and copied a lot of schema generation code from the scope file.
In that context it would really be nice to be able to hook into the query builder directly and get both the schema generation and the dialect support, which would be very easy to do, if the query builder and dialect support was in a separate project.
As far as I could see, when a dove into the code, the query generation parts are already pretty isolated from the ORM part, so it shouldn't be an impossible project, and I'm interested in contributing some time to do this, but I would like to hear, whether @jinzhu is interested in having this separation.
Looking forward to hearing some feedback.

Hi @mex
Do you want to get the generated SQL? what's your expected API for this?

The parts I needed the most was the dialect transformations like quoting table names or fields and translating Go types to field types.
Extracting that specific functionality, so you had some kind of dialect transformer, would be the most interesting. Currently I've mimicked a lot of the internal Gorm stuff and then hooked deep into it some other places.

There are many functions already extracted to Dialect's method, will keep extracting more methods to Dialect in v2.


Command line lookupcompound & wordsegment with MaxEditDistance=0 does not perform any segmentation.

With this setting only the original word is returned in the output.
With MaxEditDistance = 1 the results are segmented but with results having an edit distance of 1.

can you confirm this?

No, I can't confirm this. The command line does segment with MaxEditDistance=0. But it does only segment if the words are already valid words and written correctly, and just the space between them is missing,
Perhaps you were expecting that with MaxEditDistance=0 it would still segment words that are not written correctly, just leaving the error in. That is impossible. To find the word boundaries we first need to find the correct word. And to find a correct word for an incorrecect input we need an MaxEditDistance>0.
MaxEditDistance=0
dotnet SymSpell.CommandLine.dll load frequency_dictionary_en_82_765.txt lookupcompound 0 < lookupcompound_input.txt > lookupcompound_output.txt
lookupcompound_input.txt:
expensivehouse
expensivahouse
lookupcompound_output.txt:
expensive house
expensivahouse
MaxEditDistance=1
dotnet SymSpell.CommandLine.dll load frequency_dictionary_en_82_765.txt lookupcompound 1 < lookupcompound_input.txt > lookupcompound_output.txt
lookupcompound_input.txt:
expensivehouse
expensivahouse
lookupcompound_output.txt:
expensive house
expensive house

For some reason it does not work with my dictionary of names+frequencies. I checked my dictionary to see if the compound names in my input file were listed "as-is" in the dictionary and therefore were assumed to be spelled correctly and no split was necessary. However, they were not in the dictionary. Examples would be "christinamaria" or "jamesmonroe".  BUT, these compound names were properly split using your default dictionary. So by using my dictionary the splitting of ANY compound name I try does not work. This is my dictionary txt file (zipped):
https://mega.nz/#!vBEC1YYS!oL0C9ZVLkvNHw8hoxzr9AO8-aX-5ggbG_KGKBH9wwy0
It is ~4M names delimited by  space along with the integer frequency
Can you confirm the issue or recommend a way forward?


exporter/datadog: doesn't support metrics and does not log this fact

For more details see: https://github.com/census-instrumentation/opencensus-service/issues/454

As stated here Datadog is not one of the core exporters, isn't it?

That is correct -- it will move to the contrib repo once created. Temporary move over to clean up OC issues.


Add documents for new feature of Gradle plugin

Related pull requests are as follows
https://github.com/komapper/komapper/pull/1003
https://github.com/komapper/komapper/pull/1012
https://github.com/komapper/komapper/pull/1018

@nakamura-to
If you would like, please confirm and merge them.

Thank you.
LGTM.


distributed computing

Hi, what do I need to change the code if I want to parallelize the computation with 8 gpu's

You only need to modify the GPU configuration in the DeepSpeed launch scripts for pretraining and finetuning. For example, change deepspeed --include localhost:4,5,6,7 in pretrain.sh to deepspeed --include localhost:0,1,2,3,4,5,6,7.


Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs

I tried to this component but end up with error:

Here is my code:
var Dropzone = require('react-dropzone');

var PfUpload = React.createClass({
	render: function () {

		var style = {
			backgroundImage: "url(" + this.props.img + ")",
			position: 'relative'
		};

		if(this.props.editing) {
			return (

					<Dropzone onDrop={this._onDrop} size={42}>
					</Dropzone>

			);
		}

		return (

		);
	},

	_onDrop: function(file) {
		console.log(file);
	}
});

module.exports = PfUpload;

I'm unclear about the issue you are facing. Can you try the suggestion in the error message?

i am having the same issue. i am running react 0.14.2 with react-dropzone 3.0.0. I am not adding any refs myself, and when I remove the Dropzone component the error goes away so its origin is the Dropzone component. i have checked for multiple versions of react using "npm ls react" and got
"`--<EMAIL_ADDRESS>i deleted node_modules folder and reinstalled as well but no luck. any suggestions would be awesome


History graph not loading

Home Assistant release (hass --version):
0.14.2
Python release (python3 --version):
Component/platform:
all
Description of problem:
I have problem with showing history on some sensors, HA and server is running for 9 days without reset of hass service, when I click on some of the sensors, it will not load the history graph. most of sensors are now not showing history, just 2 of 12 shows history on tab. I did not find anything special in log files, after restarting the history is not loading at all, it looks like the db file is somehow corrupted or something.
Expected:
Problem-relevant configuration.yaml entries and steps to reproduce:

Traceback (if applicable):
16-03-10 11:44:20 homeassistant.components.http: "GET /states HTTP/1.1" 200 -
16-03-10 11:44:22 homeassistant.components.http: "GET /static/favicon-192x192.png HTTP/1.1" 200 -
16-03-10 11:44:22 homeassistant.components.http: "GET /static/frontend-a4d021cb50ed079fcfda7369ed2f0d4a.html HTTP/1.1" 200 -
-------------------------------------------------------------------------------------------------------------2016/03/10 11:44:23-------------------------------------------------------------------------------------------------------------
16-03-10 11:44:29 homeassistant.components.http: "GET /api/bootstrap HTTP/1.1" 200 -
16-03-10 11:44:29 homeassistant.components.http: "GET /static/favicon.ico HTTP/1.1" 200 -
16-03-10 11:44:29 homeassistant.components.http: "GET /static/mdi-2f4adc5d3ad6d2f73bf69ed29b7594fd.html HTTP/1.1" 200 -
16-03-10 11:44:30 homeassistant.core: Bus:Handling <Event state_changed[L]: new_state=<state sensor.cpu_use=41; friendly_name=CPU Use, unit_of_measurement=%, icon=mdi:memory @ 11:44:30 10-03-2016>, entity_id=sensor.cpu_use, old_state=<st
ate sensor.cpu_use=30; friendly_name=CPU Use, unit_of_measurement=%, icon=mdi:memory @ 11:44:01 10-03-2016>>
16-03-10 11:44:30 requests.packages.urllib3.connectionpool: Starting new HTTPS connection (1): api.forecast.io
16-03-10 11:44:30 homeassistant.components.http: "GET /api/stream?api_password=*******&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 -
16-03-10 11:44:30 homeassistant.core: Bus:Handling <Event state_changed[L]: new_state=<state sensor.since_last_boot=9 days, 18:01:01.922193; friendly_name=Since Last Boot, icon=mdi:clock @ 11:44:30 10-03-2016>, entity_id=sensor.since_las
t_boot, old_state=<state sensor.since_last_boot=9 days, 18:00:32.355433; friendly_name=Since Last Boot, icon=mdi:clock @ 11:44:01 10-03-2016>>
16-03-10 11:44:32 homeassistant.core: Bus:Handling <Event state_changed[L]: new_state=<state sun.sun=above_horizon; friendly_name=Sun, next_setting=16:45:01 10-03-2016, next_rising=05:07:17 11-03-2016, elevation=37.12 @ 06:09:23 10-03-20
16>, entity_id=sun.sun, old_state=<state sun.sun=above_horizon; friendly_name=Sun, next_setting=16:45:01 10-03-2016, next_rising=05:07:17 11-03-2016, elevation=37.11 @ 06:09:23 10-03-2016>>

Additional info:
https://cloud.githubusercontent.com/assets/6381468/13667062/08cad6dc-e6b5-11e5-9a0e-8406b3ee8856.png

is this still an issue?

yup just checked , still the same

If the db file is corrupt, try removing it and try again.
Closing this issue as it is old. You can re-open it if you are able to reproduce it running the latest version.


Add OfflineManager::setMaximumAmbientCacheAge

Is your feature request related to a problem? Please describe.
In StreetComplete, when an area is downloaded for offline (editing), the vector map is also downloaded for that area. Both the OSM map data and the vector map data is guaranteed to be kept in cache for two weeks. After two weeks, downloaded regions are cleared (in a background worker).
The OfflineManager already offers settings to evict old cached tiles based on when a total certain size is exceeded and based on when a total certain count is exceeded. It does currently not offer a setting to evict old tiles based on age.
We need to be able to evict cached tiles based on age, rather than count or size, because we want to guarantee to the user that the downloaded data is good for two weeks. It would be quite annoying for the user if he downloaded the data (e.g. for an upcoming vacation) but due to him using the app too much in the meantime (= new tiles are downloaded elsewhere), his previously downloaded data is not available anymore when he needs it.
Describe the solution you'd like
A setting for the OfflineManager, e.g. OfflineManager::setMaximumAmbientCacheAge
Describe alternatives you've considered
It is theoretically possible to implement this behavior oneself, by attaching metadata that contain the download date to the downloaded offline regions and then iterating through all downloaded regions in a worker thread and evicting all that are older than X.
However, at least on Android, to access the offline storage via OfflineManager.getInstance(), it is necessary to first call MapLibre.getInstance(). The latter can only be done on the UI thread. This means, that it is not possible to do this in a Worker (when the app is not running), as there is no UI thread.
(To not slow down startup nor download, StreetComplete does not trigger a cleanup of old data on startup but instead defers it to later, when the smartphone has nothing else to do, via the WorkManager)
Additional context
https://github.com/Helium314/SCEE/pull/516#issuecomment-2061993628 crash issues when trying to manually clear old tiles in a worker.

Your use case seems to fall somewhere in between an offline database and a cache. The maximum age of a cached tile uses the HTPP header. It should not be set manually.
What I suggest you do is set the date of the offline region as part of the metadata when downloading it. You can periodically run listOfflineRegions and deleteOfflineRegion when the metadata indicates it is older than 2 weeks old.

What I suggest you do is set the date of the offline region as part of the metadata when downloading it. You can periodically run listOfflineRegions and deleteOfflineRegion when the metadata indicates it is older than 2 weeks old.

That's what I wrote under Describe alternatives you've considered

That's what I wrote under Describe alternatives you've considered. The problem is that I need to trigger that from the UI thread, but for workers, there is no ui thread.

Maybe it's possible to lift that limitation.

That would solve the use case. (But a setting like that would certainly be more convenient and useful for any library user that stores offline region in a managed manner)


Added typescript of each language

This resolves  issue #125 also removed some language which are not used .

Resolve conflicts please !!


only render a segment of the waveform

I'd like "to only render the part of the waveform showing along the horizontal scroll" as described by @ErikOmberg and @katspaugh in #672. I'm wondering if anyone has any insight for how to make it possible with wavesurfer?
I am working with long audio files (using MediaElement and pre-analyzed waveform .json). I don't need to show the entire file, I'm only trying to zoom in very close on one segment at a time. As I zoom, the main canvas exceeds the max number of pixels (as mentioned before https://github.com/katspaugh/wavesurfer.js/issues/458 https://github.com/katspaugh/wavesurfer.js/issues/692).
I can keep zooming with MultiCanvas (thanks for your work on this, @chrisparton1991). But I only need to show the zoomed in segment, and MultiCanvas is using up resources to draw canvases that aren't visible.
Would it make sense to adapt MultiCanvas, and tell it not to create/draw the extra canvases if scrollParent is false? Or does this call for a custom renderer, like SegmentRenderer? Is anybody else interested/working on this?

I like the approach that peaks.js has taken: they use only one canvas to render the currently visible segment. They redraw the canvas as the track is being navigated.

I've made some progress in this branch
For now, the drawer is called drawer.segment.
It depends on two new variables: segmentStart and segmentDuration. Using those, and the total duration, we can re-map the progress method and handleEvent (click event handler)
Next I'm thinking about:

how to handle the variables in the API since they only apply to this drawer. Should they stay in the drawer or move to wavesurfer? Should segmentDuration be based on / tied to zoom?
the other drawers depend on scrollLeft to determine position, so I think this one will need a new way to handle navigation / scroll events, recenter and centerOnPosition methods
how this can integrate with plugins, like the regions plugin

@therewasaguy Check the partialRender parameter.

@therewasaguy hey mate, how did you go with this? Any updates?

@rockyhuber see this about rendering custom peaks https://github.com/katspaugh/wavesurfer.js/issues/2058#issuecomment-761284236

@rockyhuber see this about rendering custom peaks https://github.com/katspaugh/wavesurfer.js/issues/2058#issuecomment-761284236


Add a download set.

WIP, cannot be tested because state changes broke the sync component.  Based on top of #1040.

Rebased onto main to pick up the state fixes and the improved message handling work.

Rebased onto main again and redid the cancellation handling in the Connection state machine to cancel pending requests (i.e., handle request cancellations that happen after the request arrives at the connection).

Could this PR fix the sync hang in #1181?

PR #1193 adds a limited sync test for the first large checkpoint, but it won't find later stalls or errors.

This includes the changes from #1089, in an effort to get the simplified sync logic done in one change.  The sync algorithm as designed had some invariants that the different parts were supposed to maintain together, and I think we ran into problems changing some of the parts one at a time.  So, this PR tries to clean up the sync algorithm in a coherent way.  I tested it on mainnet and testnet.  On testnet it makes progress but is very slow, on account of the bad condition of the testnet.
There are some ancillary changes made along the way while testing, mainly to the span and tracing handling. There's a new debug line added before queuing downloads that reveals that a big contributor to latency of the sync while checkpointing mainnet is the state service (checking that new hashes are not already part of the state).  I think that this could be safely omitted from the extendtips step, but not obtaintips.  (That was part of the original motivation for having those be two separate steps).

This code has some spurious error messages on slow networks, caused by https://github.com/tower-rs/tower/issues/475.  These errors are functionally unimportant and can be fixed upstream.

Rebased again because Dependabot caused a merge conflict.  The clippy errors are unrelated to this PR.


Why not use the pooler and the lm head initialized from the pretrained model?

Why not use the weight from the pre-trained model to initialize them?
https://github.com/princeton-nlp/SimCSE/blob/5005c3daab99cb9f6ff92c526ab751079a169826/simcse/models.py#L281
https://github.com/princeton-nlp/SimCSE/blob/5005c3daab99cb9f6ff92c526ab751079a169826/simcse/models.py#L284

Hi,
The BERT pooler layer was trained with the "next sentence prediction" task, which actually doesn't help with the sentence embedding task (we observed that in our preliminary experiments). So we just re-initialize it for clean setting.

Thanks~


Add capability for silent "content-available" push notifications

Makes notification property on FCMMessage optional to allow sending of silent notifications with content_available property.
See discussion here: https://stackoverflow.com/questions/40807397/firebase-fcm-silent-push-notifications-for-ios?rq=1

@simonmitchell Thank you 🙂

@MihaelIsaev sorry missed your comment! No worries ☺


Update contexts.js

Change _processV2InputContexts(v2InputContexts) function: Extract name not from fixed 6th position,
const name = context['name'].split('/')[6];
but from last in the split
let name = context['name'].split('/');
name = name[name.length-1];
In requests that come in to the draft version contain the context name on the 6th/last position
"name": "projects/project-name/agent/sessions/ABwppplpq8QomdH91Z8YeWbZM1vvK04Ty6-2NEwAe5-Ur3Nc9GUAt3fyguV0YavLfQBNlLhYUFGQY35Gxm913Iefk/contexts/userdata"
In alpha test it's not the 6th but it's still the last position.
"name": "projects/project-name/agent/environments/__aog-30/users/-/sessions/ABwppHERR9ORcqJ4vEVSu1XxN3xTolEN7Pq1fUXhOBNaker5yA8ljmI9Wnp8uOZ2rdVVAS4s9Twxa-tjAH45X495K/contexts/userdata"

@googlebot I signed it!

Any progress on this ?


wraith: 1.4.6 -> 1.4.7, fixes build

Motivation for this change

update to latest release
patch ./configure script for openssl multiple-outputs

Things done

[x] Tested using sandboxing
(nix.useChroot on NixOS,
or option build-use-chroot in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

One style-related mistake that I made in this package which I never corrected is that I used ${openssl.out} and ${openssl.dev} instead of ${getOutput "out" openssl} and ${getDev openssl}, respectively. These helper functions are defined in lib/attrsets.nix and will fallback to other outputs.
Otherwise everything looks fine.


建议增加一个数据库迁移的功能

1. What version of Go and system type/arch are you using?
go1.13.5 darwin/amd64

2. What version of GoFrame are you using?
v1.11.2

3. Can this issue be reproduced with the latest release?
4. What did you do?
代码操作数据库

5. What did you expect to see?
6. What did you see instead?

个人建议不要开这个坑， 费力不讨好。 可以采用成熟的三方框架来管理数据库模型。 比如python 的django框架的migrations就很完善。


Make the robot sing

Falcon 500's are a monophonic instrument which can play musical notes.
Not kidding
We will have at least four of them.
Pick your favorite music that can be played on a piano using only four really fast fingers.

Fun is a core value

how many different songs do you want


Delegate proxy handling to Requests

Proxy authentication was not working at all. The 'Proxy-Authentication' header was not being sent.
After fiddling with requests internals/debugging it seemed to me that the best way of handling the issue was delegating everything related to proxies to requests itself.
I don't know if the idea of stripping completely set_tunnel is feasible that way, or if it breaks other azure components.

Hey there, just wanted to mention I am looking at this but I haven't been able to get proxy auth working specifically with your code. This could very well be a specific issue with the proxy I'm using to test (Fiddler) so I'm investigating that now but it's taking some time. I will get back to you when I know more.

Just to update you with what I did get working, the below functions with the proxy I'm testing against. If you want you can give that a try and see what you think.
httpclient.py:
from requests.auth import HTTPProxyAuth
...
if self.proxy_host:
auth = None
if self.proxy_user and self.proxy_password:
auth = HTTPProxyAuth(self.proxy_user, self.proxy_password)
connection.set_tunnel(proxy_host, int(proxy_port), auth)
requestsclient.py:
def set_tunnel(self, host, port=None, auth=None):
self.session.proxies['http'] = 'http://{}:{}'.format(host, port)
self.session.proxies['https'] = 'https://{}:{}'.format(host, port)
self.session.auth = auth

Hi, I've tried your changes and still, does not send the Proxy-Auth headers as intended.
Here's a dump of a trace with your patch:
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): smidcloud.blob.core.windows.net
send: 'CONNECT smidcloud.blob.core.windows.net:443 HTTP/1.0\r\n'
send: '\r\n'
Traceback (most recent call last):
  File "testAzure.py", line 37, in <module>
    print  [x.name for x in blob_service.list_containers()]
  File "/home/tritt/proyectos/azure-storage-python/azure/storage/blob/blobservice.py", line 293, in list_containers
    response = self._perform_request(request)
  File "/home/tritt/proyectos/azure-storage-python/azure/storage/storageclient.py", line 171, in _perform_request
    resp = self._filter(request)
  File "/home/tritt/proyectos/azure-storage-python/azure/storage/storageclient.py", line 160, in _perform_request_worker
    return self._httpclient.perform_request(request)
  File "/home/tritt/proyectos/azure-storage-python/azure/storage/_http/httpclient.py", line 180, in perform_request
    self.send_request_body(connection, request.body)
  File "/home/tritt/proyectos/azure-storage-python/azure/storage/_http/httpclient.py", line 144, in send_request_body
    connection.send(None)
  File "/home/tritt/proyectos/azure-storage-python/azure/storage/_http/requestsclient.py", line 80, in send
    self.response = self.session.request(self.method, self.uri, data=request_body, headers=self.headers, timeout=self.timeout)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 424, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='smidcloud.blob.core.windows.net', port=443): Max retries exceeded with url: /?comp=list (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 407 Proxy Authentication Required',)))

and here how they are supposed to be:
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): smidcloud.blob.core.windows.net
send: 'CONNECT smidcloud.blob.core.windows.net:443 HTTP/1.0\r\n'
send: 'Proxy-Authorization: Basic dGVzdDoxMjM0\r\n'
send: '\r\n'
send: 'GET /?comp=list HTTP/1.1\r\nHost: smidcloud.blob.core.windows.net\r\nx-ms-version: 2014-02-14\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: pyazure/0.20.1\r\nConnection: keep-alive\r\nContent-Type: application/octet-stream Charset=UTF-8\r\nAuthorization: SharedKey fakeaccount:fakekey=\r\nx-ms-date: Tue, 29 Sep 2015 15:44:54 GMT\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Transfer-Encoding: chunked
header: Content-Type: application/xml
header: Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
header: x-ms-request-id: a2d86d53-0001-0094-2ccd-faa70d000000
header: x-ms-version: 2014-02-14
header: Date: Tue, 29 Sep 2015 15:44:55 GMT
DEBUG:requests.packages.urllib3.connectionpool:"GET /?comp=list HTTP/1.1" 200 None
[u'fakecontainer']

I'll take a further look through this week if I can get request to work with the HTTPProxyAuth.
Thanks!

It looks like we're running into differences in how our proxies function. The changes I posted definitively work on mine, while yours do not. So, we're in opposite situations. We're using Fiddler's proxy capability to test --- is there any more info about your proxy you could provide that would help us establish a repro?

It's a upstream Squid3 conf with enabled auth, that's it. I could send you the config if it's needed.

At this point we've done some refactoring of our proxy handling and I've tested on a few proxies which seem to be working including auth. I followed the guidance on using proxies with requests and even opened up an issue on requests. They had some confusing precedence order, but they'll fix that in 3.0 and I made the library work better given the oddity for now. Give it a try in the newest storage library version, and if it doesn't why don't we open up an issue with all the info on the proxy itself since that would be the odd factor.