Provide possibility to configure the top displayed label in outline view for Language Servers

When there are several language servers contributing an outline for a file. They are both displayed. They are grouped in separate trees. The top level display name seems to use the extension name used.
It would be nice to allow customizing this naming.
for instance, when installing "XML" and "Language Support for Apache Camel", the "Language Support of Apache Camel" naming is used and it is truncated:

for information i tried to ask if it is already possible but got no answer so I guess it is not https://stackoverflow.com/questions/52816836/specify-oultine-title-when-several-language-servers-are-present

I would like to work on this please.

@apupier can you give another example of a language that has two outline providers?

@YisraelV sorry, I don't know any others

@YisraelV get this extension https://marketplace.visualstudio.com/items?itemName=roblourens.unittest-navigate and open TypeScript test files. That will show this.

Most of the required code is already there but the default label is the extension name. That happens here:
https://github.com/Microsoft/vscode/blob/e839e4560c19ce53c717d6f3078fd01e35c737a2/src/vs/workbench/api/node/extHostLanguageFeatures.ts#L964
We need some new API that allows to provide a name when calling registerDocumentSymbolProvider. We usually do that as extra argument to that call, e.g
export function registerDocumentSymbolProvider(selector: DocumentSelector, provider: DocumentSymbolProvider, metadata?: XXXX): Disposable; similar to registerCodeActionProvider

@jrieken thank you very much for the guidance! You've saved me a few hours.
I thought the OP had in mind a way for the user to set the name displayed with no change in the extension code. But what you say - making this part of the api for extensions - makes more sense and is much easier to implement.

👏 @YisraelV

@jrieken thank you very much for the tips and for taking the time to review and merge it.

Can you explain how to use this new configuration?
With my Language Server Extension I'm not calling explicitly the registerDocumentOutline https://github.com/Microsoft/vscode/pull/63150/files#diff-6ed04bc0a0e32b52bb98d493792f857eR976 How should specify the specific name?

this needs LSP support first, cc @dbaeumer

Created https://github.com/Microsoft/language-server-protocol/issues/617. A PR to add this to LSP and the node libraries is highly appreciated.

@jrieken @dbaeumer  I would like to help but could you please explain to me:

what has it got to do with the language server protocol? the display name is something the extension (the language client) is supposed to decide and it's not part of the protocol.

just to be sure the node clients you are talking about are actually wrappers around the api found in vscode.d.ts (the vscode namespace) right?

verify by opening the outline and/or breadcrumbs for launch.json, one provider should be called 'Launch Targets'

@jrieken because this issue is closed I assume the work was finished by someone else? I did not quite understand what happened.


Database is deleted when deploying new commits

I used this boilerplate to setup strapi on render But when deploying new commits from my strapi repo. The sql lite database gets reset and strapi promts my to create a new admin user.
When deploying a snapshot the database gets as well deleted while deploying.
My first guess was that it is the build command yarn build but when excluding the command i get csp violations when visiting https://strapi-xxx.onrender.com/admin
My prod db with lots of content is gone and the disk restore wont work..
render.yml
services:
  - type: web
    name: strapi
    region: frankfurt
    env: node
    plan: starter
    buildCommand: yarn install && yarn build
    startCommand: rsync -a public/ /data/public/ && yarn start
    healthCheckPath: /_health
    autoDeploy: false
    disk:
      name: foo-data
      mountPath: /data
      sizeGB: 2
    envVars:
      - key: NODE_VERSION
        value: ~16.13.0
      - key: NODE_ENV
        value: production
      - key: DATABASE_FILENAME
        value: /data/strapi.db
      - key: JWT_SECRET
        generateValue: true
      - key: ADMIN_JWT_SECRET
        generateValue: true
      - key: APP_KEYS
        generateValue: true
      - key: API_TOKEN_SALT
        generateValue: true

package.json
{
  "name": "xxx-cms",
  "private": true,
  "version": "0.1.0",
  "description": "A Strapi application",
  "scripts": {
    "develop": "strapi develop",
    "start": "strapi start",
    "build": "strapi build",
    "strapi": "strapi"
  },
  "devDependencies": {},
  "dependencies": {
    "@strapi/plugin-i18n": "4.3.8",
    "@strapi/plugin-users-permissions": "4.3.8",
    "@strapi/strapi": "4.3.8",
    "better-sqlite3": "7.4.6",
    "strapi-plugin-populate-deep": "^0.1.2",
    "strapi-tiptap-editor": "^0.9.1"
  },
  "author": {
    "name": "A Strapi developer"
  },
  "strapi": {
    "uuid": "8eecc22d-4d63-4696-b0bf-b28c6ffd4d45"
  },
  "engines": {
    "node": ">=14.19.1 <=16.x.x",
    "npm": ">=6.0.0"
  },
  "license": "MIT"
}

config/database.js
const path = require('path');

module.exports = ({ env }) => ({
  connection: {
    client: 'sqlite',
    connection: {
      filename: path.join(__dirname, '..', env('DATABASE_FILENAME', '.tmp/data.db')),
    },
    useNullAsDefault: true,
  },
});

config/env/production/server.js
module.exports = ({ env }) => ({
  url: env("RENDER_EXTERNAL_URL"),
  dirs: {
    public: "/data/public"
  },
});

Found the problem in my database.js. The path for the database was setup wrong by me. With the current style of document its really easy to miss this small changes to the default config. A small guide where changes have to be applied would be very useful to not make mistakes like I did.


remove late normalization

Proposed changes:

renormalization in ensemble is an artifact
fixes #3344

Status (please check what you already did):

[x] made PR ready for code review
[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog
[x] reformat files using black (please check Readme for instructions)

I'll label it as a bug, because it is an artifact from old priority multipliers


snowflake_roles (Data Source)

Is your feature request related to a problem? Please describe.
Data source snowflake_roles as snowflake_users (Data Source) - which will help to pool all roles from snowflake. Also very useful data source can be snowflake_roles_hierarchy - which will give as output role hierarchy info - https://community.snowflake.com/s/article/Quickly-Visualize-Snowflake-s-Roles-Grants-and-Privileges
By the way it is already in new web ui.
But any case - snowflake_roles data source will be very usefull

This was resolved with https://github.com/Snowflake-Labs/terraform-provider-snowflake/pull/1309 so it should be marked as resolved/closed

Closing because done in #1309


CSRF tokens cause breakage on build using serverless environments due to incompatible exports of Node Crypto

Version
nuxt-security: v0.13.1
nuxt: v3.6.0
nuxt-csrf: v1.2.0
Reproduction Link
https://github.com/69u/NS-Serverless-Reproduction
Steps to reproduce

Build the project using yarn build

What is Expected?

App should return a heading that contains a generated CSRF token

What is actually happening?

The app displays the CSRF token perfectly when in development
Upon building the app, Nuxt-CSRF cannot find some exports of crypto as they do not exist in serverless environments

Possible Solution?
@zsilbi has created a fork of Nuxt-CSRF supporting serverless environments, potentially create a configuration for these serverless environments and use this forked version of the module instead: https://github.com/zsilbi/nuxt-csurf

Hey, thanks for reporting this issue.
Related to https://github.com/Baroshem/nuxt-security/issues/150
I think, we can replace the existing module with the one you linked. I would just need to test it properly if it works the same way as the original one.

Hey there, I have fixed up the previously mentioned module a little, its available here - I am happy to have a crack at integrating it into this module when I get the chance to :)

I think, we can replace the existing module with the one you linked. I would just need to test it properly if it works the same way as the original one.

The only problem is that Nuxt 3 currently supports Node.js - v16.10.0 or newer.
This package uses the Web Crypto API which is supported only since v19.

I think, we can replace the existing module with the one you linked. I would just need to test it properly if it works the same way as the original one.

The only problem is that Nuxt 3 currently supports Node.js - v16.10.0 or newer. This fork uses the Web Crypto API which is supported only since v19.

There is partial support for Web Crypto API for Node.JS v15.0.0 - v18.0.0 as mentioned here  but it was released fully with Node.JS v19.0.0, I am not sure if this PR works with Node versions < v19.0.0

Hey folks,
For anyone here experiencing the same issue. There is a PR where nuxt-csurf is migrated to support serverless environments but there a beta is used.
I will wait until the proper stable version of nuxt-csurf will be released and then merge this PR to not cause issues for users.
If you want to make this work, you can always use certain version of the underlying module (the beta version).
I messaged the package author to ask when the stable version will be released.


Change {{ end }} to {{ endif }}, {{ endrange }} or {{ endwith }}

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
Hugo 0.22
What operating system and processor architecture are you using (go env)?
macOS Sierra
What do I wish?
Don't know if this is an easy thing but it would make coding life much easier. If you have an if statement with another if statement inside and a range or two inside as well it can get weird with all those {{ end }}. Advantage also would be that you can search for all e.g. {{ endif }} in the code for commenting further.

We can't change the text/template or html/template package per https://golang.org/doc/go1compat

Sorry for the confusion - no bug report. I posted this already in hugo but they redirected me to you. It’s just the idea/question to rename the different {{ end }} to better differentiate them (like {{ endif }}, {{ endwith }} or {{ endrange }}). I used to work with Jekyll and in Liquid this is solved with {% endif %} and {% endfor %}.
Best regards,
Leo
Leo Merkel
Buchhorststr. 13 | 31860 Emmerthal
T +49 5286 990922 | M +49 176 248 248 48
<EMAIL_ADDRESS><EMAIL_ADDRESS>| www.confidea.de http://www.confidea.de/
Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten.  Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und vernichten diese Mail. Vielen Dank.
This e-mail, including attachments, is intended for the person(s) or company named and may contain confidential and/or legally privileged information. Unauthorized use, disclosure or copying of this information may be unlawful and is prohibited. If you are not the intended recipient, please delete this message and notify the sender. Thank you for your cooperation.

We can't change the text/template or html/template package per https://golang.org/doc/go1compat https://golang.org/doc/go1compat
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/golang/go/issues/20658#issuecomment-308216398, or mute the thread https://github.com/notifications/unsubscribe-auth/ACW3xdHbg80Shr10U4acVoOCoge7UqIiks5sDt1AgaJpZM4N47eg.

This isn't something we can change in the standard library. But tools built on top of Go can do whatever they want and fork the template package at will.


WIP: Update repo versions, and push to NPM

Context

To automate updating the keg-hub repos

Goal

Automate updating the keg-hub repos

Updates

TODO

Testing

TODO

closing to make a new PR so i can add you as a reviewer


Unit tests pass automatically on any error

For Java, JUnit4 tests pass automatically when error is launched even with trycatch. You can take for example [this Kata] (http://www.codewars.com/kata/proficient-classic-hello-world/solutions) where Merlyn solution should not pass at all.
The testing pattern that if launches any exception fails the tests can't be used.

Thanks. Please re-file this issue and optional submit a PR to https://github.com/Codewars/codewars-runner-cli


Add godoc badge to README

Changes Unknown when pulling 925b6c4e14631817b2f05ee983e0364458affedf on godoc-badge into ** on master**.

Changes Unknown when pulling d4004c68eb48516ebb647eb427f71345fee51b4d on godoc-badge into ** on master**.


README.md file needs improvement

Although I eventually managed to get the CUPS connector working for a headless (text only) Ubuntu 14.04 LTS server, I was not able to do it by strictly following the README.md file. I had to do a fair amount of troubleshooting along the way. I have made a record of what I did available here:
https://drive.google.com/folderview?id=0B7SVWXy2l0CLfmlhVk8xb0Ricy11WlB4TVNqaUt3S1h0c3JVUGZud09MTDhvZnpMV3lseDQ&usp=sharing

Hi KJS18! You clearly spent a lot of time on this, so thank you. I'll get around to integrating your feedback in a couple of days; in the meantime you're welcome to submit a pull request.

I think a penny finally dropped somewhere. I just hope it's not a bad penny. The "go/bin/connector" path mentioned in README.md suggests to me that the author probably tested the CUPS connector using Windows but not Linux. I have updated/refined the content of everything at the above hyperlink accordingly.

Hi Jacob! I have tidied the main document a little and updated my analysis (see readme_2nd.pdf).

@KJS18 I have deleted most of the README, in favor of the wiki. Also, releases now include binaries, which should help some of the confusion.

I am a newbie, and I have read the documents in this thread, but I am having difficulty getting the CUPS connector loaded and functional.  I have a Ubuntu 14.04 CUPS server installed and I have shared printers out and they are accessible from an individual Google account, but that's it.  I want to use and share classic google cloud printers out to chromebooks without dedicating a computer to being logged into the Google printer account.  I've downloaded the binaries and created a client.conf file, but I receive the following error message:
Google Cloud Print CUPS Connector version 2015.10.05-linux
no tool specified
I need cups-connector for dummies!  Is it something simple I am doing wrong?  Should I wait until the WIKI is updated further to try again?  Thanks for your help and let me know if I should wait for this tool get further along in development.

I have shared printers out and they are accessible from an individual Google account
What does that mean? Shared via Chrome or the CUPS Connector or ??

I've downloaded the binaries and created a client.conf
You must have created gcp-cups-connector.config.json as described here, is that right?

When you run gcp-cups-connector-util, you're using a tool. Without a flag, it does nothing, hence the error. If you want to run the CUPS Connector, the command is gcp-cups-connector.

Thank you for your prompt response!  I was able to share a printer via CUPS and print to it from Chrome.  You are correct, I did not generate my .json file.  I just did and the gcp-cups-connector is running with my printer account.  Looking at the instructions on the wiki for running at boot for rasberryPI, I will add similar instructions under /etc/init.d.  Is there better way?

For a simple RPi setup, I usually recommend the last section here:
https://github.com/google/cups-connector/wiki/Install

I added the code and rebooted my server, how do I determine if the cups-connector is running?  My GCP printers are showing up as offline.  I add the printers to my CUPS server, connect the printers to my printer google acount (chrome:\devices) and then share printers in the Google console with my chromebooks.  It works when the computer I used to connect the printers to my google account is on, but once I shut my computer off, it seems like the GCP go off line.  I think I am missing a configuration step somewhere.  I want to share the classic printers on my CUPS server with my Google printers account and in turn my chromebooks.  Thanks again for your time.

chrome://devices sets up the Chrome connector, which is builtin to Chrome. You'll need to undo that if you want to use the CUPS Connector.
After that, run gcp-cups-connector on the Pi, just to see if it works. I'm not sure you needed that config file; did you enable local or cloud or both when you ran gcp-cups-connector-util -init?

I only enabled cloud when I ran gcp-cups-connector-util -init.  Do you think it would be cleaner for me to start over with a clean install?  Just so I understand, when I add network printers to my CUPS installation and then use my google printer account to 'authorize' the json file, all the printers on CUPS are available for me to use/share?  TIA

No need for a clean install, I just need to know what's going on.
When you add or remove printers from the CUPS server, the CUPS Connector will automatically add or remove those printers from Cloud Print. So all of your CUPS printers are "synchronized" with Cloud Print.
You can manage sharing at google.com/cloudprint

It's like magic :) Thank you for all your help, there is NO WAY I could have figured this out on my own.  The only thing I have left to figure out is how to automatically start the cups-connector when the Ubuntu server starts up.  Thanks again!

I have noticed on the server that I am receiving a "17189 xmpp.go:114] XMPP conversation died" error, but it restarts.  The documents are printing, is this a normal informational error? Thanks!

Glad to hear that things are working.
Yes, the XMPP error is normal, as long as it restarts. I should reduce the severity of that so that it doesn't log every time (it used to be a big problem, but the bug is fixed).

I locked this conversation because it was resurrected for a different issue. If you're having a problem related to things discussed in this issue, please open a new issue (and feel free to reference this one).


Fix quoting nil

If quote is called with nil value, it raises ArgumentError for calling nil.to_s(:db).
Below is head of backtraces.
/Users/a2ikm/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/activerecord-mysql-awesome-0.0.5/lib/activerecord-mysql-awesome/active_record/connection_adapters/abstract_mysql_adapter.rb:152:in `to_s': wrong number of arguments (1 for 0) (ArgumentError)
	from /Users/a2ikm/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/activerecord-mysql-awesome-0.0.5/lib/activerecord-mysql-awesome/active_record/connection_adapters/abstract_mysql_adapter.rb:152:in `quote'

Thank you for the pull request.
If passed nil value, no need microsecond precision handling. Could you immediately return please?

Thank you for your reviewing.
I fixed it. Should I squash them?

Squashed :smile:

Great! :metal:

Thank you! This gem is awesome :crown:

v0.0.6 released!

superfast!


Add CakePHP adapter documentation. Fixes #155

I came across this great project and saw the CakePHP adapter was released just a short while ago as 0.1.
As we plan on using it in a project and the documentation had a big TODO, I wrote a bit of it. It is mainly a copy-paste of the Guzzle5 docs, but adapted for the CakePHP adapter.

Good for me thanks !


Architecture diagram shows incorrect language icons for cart and order services

Please update this architecture diagram: https://docs.microsoft.com/en-us/azure/spring-apps/media/quickstart-sample-app-acme-fitness-store-introduction/architecture.png
It shows that the Cart service is written in C# and Order service is written in Python (using the corresponding logo icons).
This is incorrect.  Cart should be Python and Order  should be C#.

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

ID: 9d1c5ca3-bb66-2a15-8d41-8d2da4d69f85
Version Independent ID: 0858b008-e7b1-36af-6afe-d2ea19ec680b
Content: Introduction to the Fitness Store sample app - Azure Spring Apps Enterprise tier
Content Source: articles/spring-apps/quickstart-sample-app-acme-fitness-store-introduction.md
Service: spring-apps
GitHub Login: @KarlErickson
Microsoft Alias: asirveda

@clarenceb
Thanks for your feedback! We have assigned the issue to author and will provide further updates.

Thanks @clarenceb - we'll get that fixed.


error in bxtools convert

Hello,
I used the following command to sort the bam file by 'BX' tag.
bxtools convert $bam -v -k | samtools sort - -o bx_sorted.bam
But I got an error after running about 30 mins.
.....
...at read 853,000,000 at pos 0:-1(+)
...at read 854,000,000 at pos 0:-1(+)
...starting second pass to flip chr and BX
terminate called after throwing an instance of 'std::out_of_range'
  what():  BamHeader::IDtoName - Requested ID is higher than number of sequences

For some reason, it is having a hard time with unmapped reads. A workaround
would be to filter these out with samtools and pipe the filtered reads into
bxtools. Not a great permanent solutions. @tkamath1, do you know what is
going on here?
On Tue, Jul 18, 2017 at 4:27 PM, Chen Sun<EMAIL_ADDRESS>wrote:

Hello,
I used the following command to sort the bam file by 'BX' tag.
bxtools convert $bam -v -k | samtools sort - -o bx_sorted.bam
But I got an error after running about 30 mins.
.... ...at read 853,000,000 at pos 0:-1(+) ...at read 854,000,000 at pos
0:-1(+) ...starting second pass to flip chr and BX terminate called after
throwing an instance of 'std::out_of_range' what(): BamHeader::IDtoName -
Requested ID is higher than number of sequences
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/walaj/bxtools/issues/17, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGmfiPXSDyny58J-KjK_BXICmNQ8HZXKks5sPRVDgaJpZM4Ob4TM
.

Hi @verne91, thanks for bringing this up. Unfortunately I agree this may be an issue with unmapped reads. Another solution would be to drop tags when converting your BAM file (i.e. don't add the -k/keep-tags option when running convert). Hopefully this will resolve the issue albeit not being the perfect solution.

Hello @tkamath1 , thank you for your suggestion. But the purpose I use this program is getting a sorted bam file and then I can get the fragments for each barcode. If I don't keep the tags of chromosomes. I will lose the coordinates. Do you have any idea for my problem?

Right, you'll definitely need the tags. This is a bug in "convert",
although it may take me a few days to address. @tkamath1, are you able to
see where the bug is?
On Thu, Jul 20, 2017 at 9:20 AM, Chen Sun<EMAIL_ADDRESS>wrote:

Hello @tkamath1 https://github.com/tkamath1 , thank you for your
suggestion. But the purpose I use this program is getting a sorted bam file
and then I can get the fragments for each barcode. If I don't keep the tags
of chromosomes. I will lose the coordinates. Do you have any idea for my
problem?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/walaj/bxtools/issues/17#issuecomment-316700809, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGmfiIrG_1YtJw3UeN6D1vR6OEhoIMgCks5sP1Q2gaJpZM4Ob4TM
.

Any updates on this? I'm encountering the same issue.

Thank you for your long patience with this. I have fixed this issue with the latest commit and convert is now working.


[Transactions] Sender and receiver should show nickname instead of account number if available

Bug Description
When viewing transactions, the account number of sender and receiver is shown. However, it might be more convenient for the user to glance through sender/receiver if their nickname is shown instead. (no need to click into the account)
Steps to Reproduce
Steps to reproduce the behavior:

Go to My Account
Click on Transactions
View that all sender/receiver shows account number

Expected behavior
If the sender/receiver is your own account or friend's account, their nickname should be shown.
Actual behavior
All sender/receiver shows their account number
Screenshots/Recordings
If applicable, add screenshots to help explain your problem.
OS and Browser

OS: Mac, Chrome

Additional context
Add any other context about the problem here.
Account Number
c54c04774efaae20746fd3f29cdd619fea512e119bc1082b863572b2e8844104

I'll send this over to design to get some mocks. They may want to display something like Bucky (2aa63...)


fix #9431 show edit block link when block is editable

fixes issue #9431 I check to see if we have a original block and if we do if its editable and then show the link or if we don't have an original object it will show it too

This is great – one thing though, can you open this PR against the develop branch instead of the master branch?

thats done; https://github.com/concrete5/concrete5/pull/9437 happy to close this PR if required?


Unexpected result when load new model versions

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Centos 3.1.0
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 1.4
Python version:  2.7
Bazel version (if compiling from source): 0.7.0
GCC/Compiler version (if compiling from source):  4.8.5
CUDA/cuDNN version: 5.1.10
GPU model and memory: p40 etc
Exact command to reproduce:

Describe the problem
Using tensorflow serving with hdfs and serving automatic loading new versions based on 1 second interval. Due to the load of hdfs, variables.index file may appeared later than saved_model.pb.
So, the unexpected things appeard, you can see the log in the next few lines.
Source code / logs
when predict serving returns :
Attempting to use uninitialized value conv1d_1_1/kernel
[[Node: conv1d_1_1/kernel/read = IdentityT=DT_FLOAT, _class=["loc:@conv1d_1_1/kernel"], _device="/job:localhost/replica:0/task:0/device:GPU:0"]]
[[Node: dense_1_1/BiasAdd/_31 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_178_dense_1_1/BiasAdd", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]]
when load new version, serving print :
2018-06-25 16:56:40.483957: I external/org_tensorflow/tensorflow/cc/saved_model/loader.cc:165] The specified SavedModel has no variables; no checkpoints were restored.
Some thoughts
It's hard to say who is wrong, but should tensorflow consider and prevent this inconsistency?

@nfiedel I can't assign this to you (could you join the TF org?) but what do you think?

Based on the problem description, it sounds like you are writing the model directly to the directory that TensorFlow Serving is polling for new model versions. Instead, please export (or copy/upload if that is your workflow) to a temporary directory, and then use one of the atomic file operations such as move, to move the saved model directory into place.

@nfiedel yes, thanks for your reply, your suggestions can avoid this problem. But should we prevent this problem from the code? Or should we make obvious instructions for the user to see?

@weberxie preventing this in code is particularly challenging across many distributed/inconsistent filesystems. Making this more obvious in the instructions is a great idea – I'll see if we can do this either now or in coming doc refreshes. Thanks!

I'll close this for now, thanks @nfiedel.


xbps: init at 0.52

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

[x] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

Failure on x86_64-darwin (full log)
Attempted: xbps
Partial log (click to expand)
portableproplib/prop_object.c:877:6: error: implicit declaration of function 'fdatasync' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        if (fdatasync(fd) == -1)
            ^
1 error generated.
make[1]: *** [Makefile:67: portableproplib/prop_object.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/private/tmp/nix-build-xbps-0.52.drv-0/source/lib'
make: *** [Makefile:15: all] Error 1
builder for '/nix/store/5apndpw2j0jn0ani33s9r1cfk4qgs101-xbps-0.52.drv' failed with exit code 2
error: build of '/nix/store/5apndpw2j0jn0ani33s9r1cfk4qgs101-xbps-0.52.drv' failed

Success on x86_64-linux (full log)
Attempted: xbps
Partial log (click to expand)
shrinking /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52/bin/xbps-uhelper
shrinking /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52/bin/xbps-checkvers
shrinking /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52/bin/xbps-fbulk
shrinking /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52/bin/xbps-uchroot
shrinking /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52/bin/xbps-uunshare
gzipping man pages under /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52/share/man/
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52/lib  /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52/bin
patching script interpreter paths in /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52
checking for references to /build in /nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52...

Success on aarch64-linux (full log)
Attempted: xbps
Partial log (click to expand)
shrinking /nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52/bin/xbps-dgraph
shrinking /nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52/bin/xbps-create
shrinking /nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52/bin/xbps-alternatives
shrinking /nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52/lib/libxbps.so.2.0.0
gzipping man pages under /nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52/share/man/
strip is /nix/store/jk6j4lh9v5mvjdbdc35sj0zffhhf6s56-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52/lib  /nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52/bin
patching script interpreter paths in /nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52
checking for references to /build in /nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52...
/nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52

Darwin build seems to require a -Wno-error=...

Darwin build seems to require a -Wno-error=...

Hmm, googling around turned up various things suggesting that fdatasync is not actually supported (which is why it's not declared) but it does exist as a symbol in libSystem?

https://bugs.freedesktop.org/show_bug.cgi?id=74873
https://cmake.org/Bug/print_bug_page.php?bug_id=10044

So my idea was to avoid it on Darwin regardless of what the configure check reports (perhaps the check needs -Werror or something?)....
Does that sound good to you?

Failure on x86_64-darwin (full log)
Attempted: xbps
Partial log (click to expand)
package_unpack.c:425:8: error: implicit declaration of function 'utimensat' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                        if (utimensat(AT_FDCWD, entry_pname, ts,
                            ^
5 errors generated.
make[1]: *** [Makefile:72: package_unpack.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/private/tmp/nix-build-xbps-0.52.drv-0/source/lib'
make: *** [Makefile:15: all] Error 1
builder for '/nix/store/g2zhz73c1dslrpgnh9lmgwsrin9qzm55-xbps-0.52.drv' failed with exit code 2
error: build of '/nix/store/g2zhz73c1dslrpgnh9lmgwsrin9qzm55-xbps-0.52.drv' failed

Success on x86_64-linux (full log)
Attempted: xbps
Partial log (click to expand)
shrinking /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52/bin/xbps-uhelper
shrinking /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52/bin/xbps-checkvers
shrinking /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52/bin/xbps-fbulk
shrinking /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52/bin/xbps-uchroot
shrinking /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52/bin/xbps-uunshare
gzipping man pages under /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52/share/man/
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52/lib  /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52/bin
patching script interpreter paths in /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52
checking for references to /build in /nix/store/80xm16jcm4chavd91z4515gdwb90slc7-xbps-0.52...

Success on aarch64-linux (full log)
Attempted: xbps
Partial log (click to expand)
shrinking /nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52/bin/xbps-dgraph
shrinking /nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52/bin/xbps-create
shrinking /nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52/bin/xbps-alternatives
shrinking /nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52/lib/libxbps.so.2.0.0
gzipping man pages under /nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52/share/man/
strip is /nix/store/jk6j4lh9v5mvjdbdc35sj0zffhhf6s56-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52/lib  /nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52/bin
patching script interpreter paths in /nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52
checking for references to /build in /nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52...
/nix/store/i90anmxyaw84pz97d2gdsgw7sha4nsb0-xbps-0.52

I found similar comments - but of course nothing official by Apple.
Your fix looks good - better not use fdatasync at all.

Google sez utimensat  doesn't exist on Darwin either...

Okay, great.
Unfortunately maybe disabling -Werror is needed regardless?
FWIW others seem to do this, but I was inclined to wait until we had problems to do so ourselves...

https://git.alpinelinux.org/cgit/aports/tree/community/xbps/disable-Werror.patch
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=xbps#n24

I have no idea if xbps is "supposed" to work on Darwin at all anyway, hmm...

Well, if -Werror gets it to build , why no let people try it. Should crash pretty soon if there's a missing system call.

Success on aarch64-linux (full log)
Attempted: xbps
Partial log (click to expand)
/nix/store/7qwb7cfzbhbl6fg4lkja06lazjncqpxg-xbps-0.52

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: xbps
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: xbps
Partial log (click to expand)
/nix/store/r1wsgjycdda2l1qrsrjk8igina8j6ag7-xbps-0.52


add AzureArcManagedIdentityCredential

Here it is in C#:
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/identity/Azure.Identity/src/AzureArcManagedIdentitySource.cs
Please let us know if this is something you need.
Like AppServiceManagedIdentityCredential and VirtualMachineManagedIdentityCredential, this would use the ImdsManagedIdentityCredential.

This should not be exposed publicly, but only through #1536.


PR template edits

Purpose of this pull request
This pull request updates and streamlines PR template.
Select the type of change:

[ ] Minor Changes - Typos, formatting, slight revisions, .clabot
[x] Update Content - Revisions, updating sections
[ ] New Content - New features, sections, pages, tutorials
[ ] Site and Tools - Updates, maintenance, dependencies, new packages for the site (Docusaurus, Gatsby, React, etc.)

@kimsauce, I have just a couple of comments.

thank u!


Version 2 pre-release / release master ticket

2.0a.1 - 2020/03/19
I believe #154 is in a good place right now, so I'll cut an alpha release.
This is a MAJOR release and will break everything, I've started a doc explaining most of the important change and how to switch from version 1.3.1 to 2.0 https://github.com/cogeotiff/rio-tiler/blob/v2/docs/v2_migration.md
I'll update couple rio-tiler based projects (rio-viz, rio-tiler-mosaic) when the alpha is in pypi

🎉 https://pypi.org/project/rio-tiler/2.0a1/

2.0a.2 - 2020/03/20
I've added a fix to #164 and created a new alpha release which should be up in pypi now

2.0a.3 - 2020/03/25
fix #164 and #166

2.0a.4 - 2020/04/08
https://github.com/cogeotiff/rio-tiler/blob/eacf16acd109e76bba92380c2d2096b75528d290/CHANGES.txt#L2-L6
This version adds a simple cogeo.info method to return non image statistic metadata and a ìo.stac` submodule to make handling STAC item easier.

2.0a5 - 2020/05/06
https://github.com/cogeotiff/rio-tiler/blob/08e352a1539a8bfbedd07382c11bacfdcace787d/CHANGES.txt#L1-L5

2.0a6 - 2020/05/06
Sorry about the breaking change introduced in 2.0a5, it should be fixed by https://github.com/cogeotiff/rio-tiler/pull/180 and released on pypi as I write this

FYI, to ease the transition and ongoing development toward a release of Version 2 we are going to merge the v2 branch in Master

2.0a7 - 2020/05/17
https://github.com/cogeotiff/rio-tiler/blob/aa07d976f0ba67f754776c2af662e766b29506d6/CHANGES.txt#L1-L9

⚠ ⚠ ⚠ ⚠  BETA Release ⚠ ⚠ ⚠ ⚠
2.0b1 - 2020/07/22
https://github.com/cogeotiff/rio-tiler/blob/72ddff276388f89915000930c4d77c8d45ca9eac/CHANGES.txt#L1-L11
This release brings a lot of changes ☝, please checkout https://github.com/cogeotiff/rio-tiler#cogreader to see how to use the new COGReader.

2.0b2 - 2020/07/23
https://github.com/cogeotiff/rio-tiler/blob/94e55538c5ff8e8e70ffd38b8011f471ec870d1c/CHANGES.txt#L1-L3

Road to 2.0

[ ] Add Notebooks #76
[ ] Update docs to mkdocs (@kylebarron)

2.0b3 - 2020/07/27
https://github.com/cogeotiff/rio-tiler/blob/aa58b04baf1726cad49f743f79f8c7adf995c758/CHANGES.txt#L1-L3
Because rio-tiler-mosaic was a no requirements plugin we moved it here ;-)
thanks @kylebarron and @geospatial-jeff

2.0b4 - 2020/07/30
https://github.com/cogeotiff/rio-tiler/blob/ce156bc5aaa52c579ee0891998eef7a97e44469c/CHANGES.txt#L1-L9

2.0b5 - 2020/07/31
https://github.com/cogeotiff/rio-tiler/blob/5da61965c198907fc92508214c871485609c22ae/CHANGES.txt#L1-L7

2.0b6 - 2020/08/04
https://github.com/cogeotiff/rio-tiler/blob/065e9d6079e651a1488709a0df6db849374f39c6/CHANGES.txt#L1-L7

2.0b8 - 2020/08/24
https://github.com/cogeotiff/rio-tiler/blob/588e512b1d3b5767b02aa391666677f91cb5533e/CHANGES.txt#L1-L3

2.0b14 - 2020/10/02
We have made couple releases since 2.0b8 🤦
## 2.0b14 (2020-10-02)

* Added back the Conctext Manager methods in `rio_tiler.io.base.BaseReader` but not as<EMAIL_ADDRESS>(ref: https://github.com/cogeotiff/rio-tiler/pull/273#discussion_r498937943)
* Move `rio_tiler_pds.reader.MultiBandReader` and `rio_tiler_pds.reader.GCPCOGReader` to rio-tiler (https://github.com/cogeotiff/rio-tiler/pull/273)

## 2.0b13 (2020-10-01)

* remove ContextManager requirement for `rio_tiler.io.base.BaseReader` and `rio_tiler.io.base.MultiBaseReader` base classes.
* move ContextManager properties definition to `__attrs_post_init__` method in `rio_tiler.io.STACReader` and `rio_tiler.io.COGReader` (ref: https://github.com/cogeotiff/rio-tiler-pds/issues/21)

## 2.0b12 (2020-09-28)

* Make sure Alpha band isn't considered as an internal mask by `utils.has_mask_band`

## 2.0b11 (2020-09-24)

* reduce verbosity in `rio_tiler.tasks.filter_tasks` exception logging (#266).

2.0b10 (2020-09-15)
------------------
- add `post_process` callback to `rio_tiler.render._read` and `rio_tiler.render.point` to apply
specific operation ouput arrays.

2.0b9 (2020-09-09)
------------------
- restore Mkdocs search bar (#255)
- Allow class (not just instance) to be passed to pixel_selection (#250)
- Add Binder link/badge to README (#254)
- Add mkdocs-jupyter to show notebooks in website (#253)
- Remove deprecated functions (#247)
- Export modules from top-level package (#246)
- Allow overwriting colormap with force=True (#249)
- Pin black version (#251)
- Add contributing.md (#242)
- Add mkdocs config (#240)
- Add `NPY` support in `rio_tiler.utils.render` to save tile in numpy binary format (#256)
- Remove bare `Exception` and add more detailed errors (#248)

2.0b15 - 2020/10/05
https://github.com/cogeotiff/rio-tiler/blob/5cd3ab81a056c68da25d9dc78c966971e44032fb/CHANGES.md#20b15-2020-10-05
- Fix missing Exception catching when running task outside threads (ref: https://github.com/developmentseed/titiler/issues/130).
- add rio-tiler logger (https://github.com/cogeotiff/rio-tiler/issues/277).

2.0.0b17
https://github.com/cogeotiff/rio-tiler/blob/master/CHANGES.md#200b17-2020-10-13

switch to morecantile for TMS definition (ref: https://github.com/cogeotiff/rio-tiler/issues/283)
add tms options in Readers (breaking change if you create custom Reader from BaseReader)
add tile_bounds vs bounds check in tile methods for MultiBands and MultiBase classes
add tile_exists method in BaseReader (take tms in account)
adapt zooms calculation in COGReader
add LastBandHigh and LastBandLow pixel selection (ref: https://github.com/cogeotiff/rio-tiler/pull/270)

Deprecated function

rio_tiler.reader.tile
rio_tiler.utils.geotiff_options
rio_tiler.utils.tile_exists
rio_tiler.io.multi_*

⚠ ⚠ ⚠ This is a major update (and hope will be the last one). This version could break some user code if you were creating custom Reader using rio_tiler.io.BaseReader which now requirement a tms option.
FYI: I'm targetting end of october for rio-tiler 2.0.0 final

2.0.0b18 (2020-10-22)

surface dataset.nodata in COGReader.nodata property (https://github.com/cogeotiff/rio-tiler/pull/292)
fix non-threaded tasks scheduler/filter (https://github.com/cogeotiff/rio-tiler/pull/291)


Use case: assessing goodness of fit between two PyKEEN models

If I have two different embedding spaces describing the same entities, like if I train two models on the same dataset in PyKEEN, how can I use Kiez to assess how good they correspond? Or maybe there's a notion of how "good" the Kiez fit is?
A naive idea is I could I iterate through each entity and calculate the overlap coefficient of the nearest neighbors in both embedding spaces, then maybe report the average overlap coefficient. I'm sure I could come up with a few things like this, but I bet you know better! Any ideas appreciated.
I would start with code like this:
from pykeen.pipeline import pipeline
from pykeen.datasets import Nations

dataset = Nations()

# Train the same dataset with two different models
r1 = pipeline(
    model='TransE',
    dataset=dataset,
    epochs=1,  # change this to ~25 for real usage on Nations
)

r2 = pipeline(
    model='PairRE',
    dataset=dataset,
    epochs=1,  # change this to ~25 for real usage on Nations
)

from kiez import Kiez

k_inst = Kiez()
k_inst.fit(
    r1.model.entity_representations[0]().detach().numpy(),
    r2.model.entity_representations[0]().detach().numpy(),
)

# How do I assess how well these spaces correspond? Is there a metric for how "good" the fit is?

I'm afraid this would not really work properly, because Kiez assumes that the two embeddings are in the same space and based on that performs the hubness reduction and returns the k nearest neighbors of the source entities in the target entity space.
The embedding approaches for these types of problems rely on training data via known entity duplicates between data sources and during training try to embed these known duplicates closely in the space.
For an overview of the entity alignment setting Kiez was built for see e.g. this paper: OpenEA Benchmark
However what you are proposing is a really interesting investigation to determine how similar the results of different embedding approaches are.
The simplest implementation would maybe be something like this:
from kiez import Kiez
from pykeen.datasets import Nations
from pykeen.pipeline import pipeline

dataset = Nations()
r1 = pipeline(model="TransE", dataset=dataset)
r2 = pipeline(model="PairRE", dataset=dataset)

k_inst_transe = Kiez()
k_inst_transe.fit(
    r1.model.entity_representations[0]().detach().numpy(),
    r1.model.entity_representations[0]().detach().numpy(),
)
k_inst_pairre = Kiez()
k_inst_pairre.fit(
    r2.model.entity_representations[0]().detach().numpy(),
    r2.model.entity_representations[0]().detach().numpy(),
)

transe_k_neighbors = k_inst_transe.kneighbors(return_distance=False)
pairre_k_neighbors = k_inst_pairre.kneighbors(return_distance=False)

def overlap(left_neighbors, right_neighbors):
    perfect_matching_rolling_percentage_sum = 0
    for l_ent_neighbors, r_ent_neighbors in zip(left_neighbors, right_neighbors):
        matching = 0
        for l, r in zip(l_ent_neighbors, r_ent_neighbors):
            if l == r:
                matching += 1

        perfect_matching_rolling_percentage_sum += matching / len(l_ent_neighbors)
    return perfect_matching_rolling_percentage_sum / len(left_neighbors)

print(overlap(transe_k_neighbors, pairre_k_neighbors))

But I think there should be a more clever metric, that takes into account how distantly the respective neighbors are ranked. I'd have to think about that one...


Update sdk version

Closes #1.
I am not sure how to test this, as dart test fails with thousands of compilation errors in seemingly unrelated packages. However, it does look like the code itself is fine.
Let me know if anything is missing.

@edgarfroes any updates?

@KnorpelSenf sorry for the delay. Merged into main. I'm not the owner of the package on pub.dev thou, so you may need to reference this package via Git dependency directly in your pubspec.

Do you know who is the owner?

I tried communication with him, unsuccessfully. He went ghost.
I can create a new package on pub.dev if you like. Can you help me with the
naming? I'm bad at naming. Since "age" was taken (it's actually the
original one), it's out of the table.
Em ter., 19 de abr. de 2022 às 17:20, KnorpelSenf @.***>
escreveu:

Do you know who is the owner?
—
Reply to this email directly, view it on GitHub
https://github.com/edgarfroes/age/pull/2#issuecomment-1103097005, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABAXWPY374VALDZ6TGQJCRTVF4IRVANCNFSM5S45G6QQ
.
You are receiving this because you modified the open/close state.Message
ID: @.***>

--
Atenciosamente,
EDGAR FROES BRITO LEAL
Flutter Specialist Developer
MVP startup mentor
http://www.orkut.com.br/Main#Profile?uid=10773256823096553288

I tried communication with him, unsuccessfully. He went ghost.

I see.

I can create a new package on pub.dev if you like.

That would be great!

Can you help me with the naming? I'm bad at naming. Since "age" was taken (it's actually the original one), it's out of the table.

Absolutely! The package computes the difference between two dates (getting the age is just a special case of that) so personally I'd go with datediff. Anyway, if you prefer a different name, here are some more suggestions:

date_difference
diffdates
age2
timespan
tone_period
interval
combinations of the above.

I didn't check if any of those maybe already exits.

@edgarfroes did you publish anything?


Resend Gift: If the status of the gift hasn't changed we can resend it to multiple people.

If I have sent a gift but it is not accepted on the other side, then I can resend that gift.In this case if the user has accepted this gift but the status of the gift has not changed.
So I can send this same gift to other people also and they are able to accept it.

Verified this issue on dev app v2.0.67(408)

Pending:
Scenario: When the sender has already entered into the resend flow and the previous link has been used and the gift has been accepted.
Issue: If the sender then resends the gift, the channel won't be created on the server(therefore the new link is not gonna lead to a gift acceptance from the new recipient), however, the status of the gift would be sent to recipient on the sender's end.


Change 3 icons and adjust the color for the theme + Russian localization

Pull Request Template
before

after

before

after

As I understand it, in some icons, such a structure is not mandatory:
className={cn('h-4 w-4', className)}
Because the class is inherited from above.
⚠ Before Submitting a PR, read the Contributing Docs in full!
Summary
Please provide a brief summary of your changes and the related issue. Include any motivation and context that is relevant to your changes. If there are any dependencies necessary for your changes, please list them here.
Change Type
Please delete any irrelevant options.

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

Testing
Please describe your test process and include instructions so that we can reproduce your test. If there are any important variables for your testing configuration, list them here.
Test Configuration:
Checklist

[ ] My code adheres to this project's style guidelines
[x] I have performed a self-review of my own code
[ ] I have commented in any complex areas of my code
[ ] I have made pertinent documentation changes
[x] My changes do not introduce new warnings
[ ] I have written tests demonstrating that my changes are effective or that my feature works
[x] Local unit tests pass with my changes
[ ] Any changes dependent on mine have been merged and published in downstream modules.

The decision to merge the Pull Request took a long time; if anything needs to be added from it, do so manually.

I would have merged this but the code block change was not welcome and ran out of the scope of your original intent. Please narrow your PR scope next time


DarkSky API key

Any plans to change the Weather API calls to something else since Apple bought DarkSky and aren't offering API keys any longer?

Yep. I haven’t settled on another default provider yet, but for a while now I’ve been mulling over an overhaul of WB-weather to make it more modular and able to accept multiple weather providers. Apple’s acquisition has certainly made that the priority for the next release.
Once I get around to my next ticket clean up I’ll be creating an issue for choosing/implementing a new default weather provider for WB-Weather, but if you want to leave comments or suggestions for a specific provider feel free to leave them here for now :)

Thanks. I've finally made the switch over from DakBoard to the actual MM2 software and was looking for something to change the MM2 display to look more like the DakBoard.  Your module had it all - except for the darksky weather issue.
I'll be watching this closely.  Thanks, ahead of time.

Any update?

@arcangeloerrico You can subscribe to #24 for updates on this. I've finally had some time to work on this over the last week and unless some new disaster strikes I might even have the new version pushed to the dev branch some time this weekend :)

@delightedCrow That's great news.


Feat/infinite allowance

Time spent on this PR: 1h
Pull request type

Please check the type of change your PR introduces:

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

What is the current behavior?
Currently Kakarot cannot transfer ETH on behalf of the EOAs or contract accounts.

Resolves #464
What is the new behavior?

EOA and contract_account give infinite allowance to Kakarot

Other information

@ClementWalter
Should I create a unit test for this?
Alternatively we can just create tests for #466 and #465 which should also cover this feature.


Ch2 Understanding difference between sampling random() and mcmc.sample()

Hello,
first thanks a lot to Cameron to bring us such a nice book on MCMC.
Can anyone please tell me if I'm understanding correctly about  Parent and Child relationships and distribution sampling.
Let me do the following (from Ch2 example) :
parameter = pm.Exponential("poisson_param", 1)
data_generator = pm.Poisson("data_generator", parameter)

if I do now :
samples1 = [data_generator.random() for i in range(2000)]

I'm taking 2000 random values from data_generator Poisson distribution, but with a constant parameter (initially random chosen from Exponential distribution, but the same for all 2000 sample).
I'm telling this following this sentence from PyMC Documentation § 3.4.1 :

Whenever a variable is used as a parent for a child variable, PyMC replaces it with its value attribute when the child’s value or log-probability is computed.

After all, samples1 follows a Poisson distribution. With some parameter, but a Poisson distribution.
If I do now :
model = pm.Model([data_generator,parameter]);
mcmc = pm.MCMC(model)
mcmc.sample(2000);
samples2 = mcmc.trace('data_generator')[:];

Here parameter is drawn each time data_generator is sampled.
Now samples2 has no more anything to do with a Poisson distribution. We really mixed the parent random parameter with the child distribution sampling.
So I'd be glad to hear if I'm right or wrong...
Thanks in advance,
Robert

I believe you are correct: the former is just Poisson with a fixed parameter, the latter is a compound distribution of a Exponential and a Poisson.
Perhaps the best way to see this is to plot the samples (using your code, and calling hist on them)

We can see the differences in the distributions quite clearly.


Change logging lookup to use Xxxx_getLastExceptionCode

Change logging to get integer value from Xxxx_getLastExceptionCode to determine the type of error to be returned.

Delivered via https://github.com/senzing-garage/sz-sdk-go-core/pull/199


Possible to send SMS by API ?

Yes, the Pushbullet API allows sending SMS texts. This feature however is not documented in the official API reference.
I've found a way to send SMS messages and implemented it in the sendSms() method in this library. Have a look at it here:
https://github.com/ivkos/PushBullet-for-PHP/blob/master/src/Pushbullet.php#L438
As far as I know, only Android is supported.
Let me know if you have any troubles using this functionality.


improve script creation and fix linux

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

supersedes #4 (maybe 🤔)

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

@lebedov let me know if this fixes linux builds


Torrent Data Refresh Button

Finally added a working refresh seed/peer data button, but gonna need to fix the branding as well as re-add "books" to the category list on en/view/torrent.php before merging. If you could suggest edit those changes when you get the chance @KevinJDurant that would be cool.
Just need to add a category view and things are starting to look pretty good.

I think to start workin on the template on localhost soon to give it more nice view but yeah the basic is there and working :) I was searchin for a monts how to create a torrent website and there's nothin on the internet. Later wil add backend admin template with all admin functions like new users, torrents, etc.

Where you hosting your website ? How you deal with the law issues ? Here tis is veri tight.


Blank tiles and optional doors

Min room size +2 (4), Wall the inside tiles

Regions logic
Add junction with door


Guidance on adding additional linters

I'm having an issue setting up shadow detection. I've installed the shadow tool locally, and can use it from the command line to see that I have a shadowed variable in the file I'm currently looking at. It produces output like other go linters:
/path/to/file.go:52:8: declaration of "err" shadows declaration at line 49
I added this line to my margo.go file:
&golang.Linter{Name: "shadow", Label: "Go/Shadow"},
When I save, I see margo restarting in the logs. When I save my other file, though, nothing happens. There's no red underlining and the new message doesn't appear in the "GoSublime: Show Issues" view. If I change shadow to hadow, an error message appears in the logs each time I save, but when it's spelled correctly, nothing appears, which I took to mean that GoSublime is successfully finding and starting the shadow executable.
Is golang.Linter the correct reducer to use here? Is there additional work that needs to be done to make sure that the messages from shadow are funneled into the "Show Issues" view? Thanks for your help!

Note: literally seconds after posting this, I realized that I can do this instead:
golang.GoVet("-vettool=/Users/newuser/go/bin/shadow"),
and it works perfectly. Still curious if this is the best way or if I was just missing something with the other approach.

Assuming you mean golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow: I think you need to pass the package path. When I run it via the usercmd palette (ctrl+.,ctrl+c and type shadow) it prints a help message.
This works for me:
&golang.Linter{Name: "shadow", Args: []string{"."}, Label: "Go/Shadow"},

That works perfectly, thanks! And I didn't know about the command pallette, so that's a big help as well.


Rabbit MQ connection lost leads to application shutown

When the connection to RabbitMQ is lost, my application is shutting down with the error: "CONNECTION_FORCED - broker forced connection closure with reason 'shutdown'". However, it seems that if I first publish a message to a publication, the application will stay alive and try to reconnect.
My configuration is:
const config: rascal.BrokerConfig = {
  vhosts: {
    shovel: {
      connection: {
        url: 'amqp://localhost:5672/shovel?hearbeat=5'
      },
      queues: ['testQueue'],
      publications: {
        demoPub: {
          queue: 'testQueue'
        }
      },
      subscriptions: {
        demoSub: {
          queue: 'testQueue',
          prefetch: 3
        }
      }
    }
  }
};

Example code:
const broker = await rascal.BrokerAsPromised.create(rascal.withDefaultConfig(config));
    broker.on('error', (err) => {
      console.log('error on broker!', err);
    });

    // Publish a message
    const publication = await broker.publish('demoPub', 'Hello World!'); // required to keep connection alive it seems
    publication.on('error', () => console.error('error on publication!'));

    // Consume a message
    const subscription = await broker.subscribe('demoSub', { prefetch: 10, retry: false });
    subscription
      .on('message', (message: rascal.Message, content: Buffer, ackOrNack: rascal.AckOrNackFn) => {
        console.log('Received...', content.toString());
        ackOrNack();
      })
      .on('error', (err) => console.error('error on subscription!', err));
`

Hi @adunne-resilient,
I suspect the problem is that there's nothing to keep the node process alive once the connection has closed. As a quick test can you try adding the following code to your application.
setInterval(() => {}, 60000);

Some alternative methods are suggested here

Yes, that keeps the node process alive, but when the rabbitMQ server comes back up the connection is not reestablished, and messages are not processed until I restart the application. This is the case even if  I have previously published to a publication, as mentioned above.
Is there something missing from my config above relating to reconnecting?

const subscription = await broker.subscribe('demoSub', { prefetch: 10, retry: false });

You're overriding the configuration with { prefetch: 10, retry: false } for this subscription. This will prevent retrying the subscription following an error.

Yes, this works if I remove the "retry: false". Am I missing a similar option on the broker connection? Or do I need to handle 'shutdown' events in some way?
It works if I include "setInterval(() => null, 60000);", I'm just wondering if this is necessary because my other config is incorrect.
Thank you for the help.

Am I missing a similar option on the broker connection? Or do I need to handle 'shutdown' events in some way?

There's nothing in the rascal config for keeping your process busy, so you will need to keep the process active in some way, although I'm a little surprised this hasn't come up before. I recently noticed that I wasn't always calling unref() after setTimeout(), so it's possible fixing this has introduced the problem. It's not something I would notice normally, as all the apps I write include an http server for reporting application health, and this would keep the process alive.
I think it's reasonable for rascal to do something like
setInterval(noop, A_VERY_LARGE_NUMBER)

And unref this when the broker is explicitly shutdown. I try to make this change over the weekend.

Ah yes, I see. I am just running this as a single function in a typescript file. I've seen it used previously as part of an http server, so, as you say, it wouldn't become an issue there.
Thanks again for the very useful information.

Published as<EMAIL_ADDRESS>


Create card component to display ambassadors and organizers

Refer to the about page of the design and create a card that contains:

Person's image
Occupation
Social links

@Idadelveloper please I wish to work on this issue.

@shenyuygoodness you can start working


Docs Gen Pulls Tools from Tag

I want to update the build that generates this release to update the tag in place, but I need to run down the location.

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow

The following pipelines have been queued for testing:java - templatejava - template - testsjs - templatenet - templatenet - template - testspython - templatepython - template - tests You can sign off on the approval gate to test the release stage of each pipeline. See eng/common workflow


Can't resolve 'next-international/middleware'

Describe the bug
Clone repo, go to example, next-app, pnpm i, then pnpm dev met Can't resolve 'next-international/middleware'
To Reproduce
Steps to reproduce the behavior:

Go toexample/next-app/
pnpm i
pnpm dev
See error

Expected behavior
No error
Screenshots

About (please complete the following information):
main branch on 2023-11-02

You have to build both packages/next-international & packages/international-types first - I'll open another issue to add a proper CONTRIBUTING.md documentation.


Not resolving promises due to promises/asap length conditional

I opened an issue over on mozilla/localforage.js in its distribution build that relates to the asap function: https://github.com/mozilla/localForage/issues/338#issuecomment-69931444
The potential issue is around the conditional found here:
  if (len === 2) {
    // If len is 1, that means that we need to schedule an async flush.
    // If additional callbacks are queued before the queue is flushed, they
    // will be processed by this flush that we are scheduling.
    scheduleFlush();
  }

It looks like the code here changed because the comment is now out of sync with the conditional, but the conditional I believe is a bug.
The issue we're running into is that there are situations where iOS 7 will re-launch an app with previously defined callbacks/promises in the queue and a flush is never scheduled because the len === n check doesn't match.
By changing the conditional (or removing it altogether) everything continues to work. I'm not sure why the current length check exists, but it seems like an issue that shouldn't happen under normal conditions, but does happen in certain edge cases.

is ios7 the one that replays the last 10 seconds when resumed? or was that ios6

comment fixed, this unfortunately is unlikely a bug in our code...


🐛 BUG: TLS peer's certificate is not trusted for GlobalSign GCC R3 DV TLS CA 2020

Which Cloudflare product(s) does this pertain to?
Workers Runtime
What version(s) of the tool(s) are you using?
wrangler 3.10.1
What version of Node are you using?
v19.1.0
What operating system are you using?
macOS
Describe the Bug
SSL certificate verification will fail for this URL https://www.qbhouse.co.jp/search/514
The workaround is use NODE_EXTRA_CA_CERTS=certfile, which is downloaded from https://support.globalsign.com/ca-certificates/intermediate-certificates/domainssl-intermediate-certificates
I hope workerd will include such the certificates by default
Please provide a link to a minimal reproduction
https://gist.github.com/kyouheicf/f302607ee65eabf7a1525ed56efaed23
Please provide any relevant error logs
workerd/jsg/util.c++:275: error: e = kj/compat/tls.c++:221: failed: TLS peer's certificate is not trusted; reason = unable to get local issuer certificate

hi @kyouheicf , this is more of a feature request for https://github.com/cloudflare/workerd, but my understanding is that it is unlikely that there are plans to support this. we use node's certificate store (https://nodejs.org/api/tls.html#tlsrootcertificates) -- if the desired certificate is not available there, the workaround is to use the NODE_EXTRA_CA_CERTS environment variable as you've noted. given this, there is not much else we can do here, so i'll go ahead and close the issue.


Main field is missing from package.json

I install lightslider using npm since I used browserify.
I don't know if this is intentional or not, but "main" field is missing from package.json thus "require-ing" it would return module not found.
Adding it manually will work thou
"main":"dist/js/lightslider.js"
It will look like this
{
  "name": "lightslider",
  "main": "dist/js/lightslider.js",
  "description": "jQuery lightSlider is a lightweight responsive content slider - carousel with animated thumbnails navigation",
...
}

or
require('../node_modules/lightslider/dist/js/lightslider.js');

also works.
But would it be nicer if it's included already?
Thanks.

Sorry for the delayed response..
I have added main field..


tamara_flutter_sdk

[!] No podspec found for tamara_flutter_sdk in .symlinks/plugins/tamara_flutter_sdk/ios

Where is your support team?

Hi Osama,
There's mismatched when we publish to pub.dev. We're fixing it and release soon

مرحبا عفوا لم افهم ؟
في أربعاء، 6 سبتمبر، 2023 في 3:22 م، كتب osama @.***>:

Where is your support team?
—
Reply to this email directly, view it on GitHub
https://github.com/tamara-solution/ios-sdk/issues/20#issuecomment-1708243252,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BAQFAYLBXOPXRZXNZVZUK2DXZBTGPANCNFSM6AAAAAA4KAUW6Q
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

توجد عندي مشكلة في ios
عند عمل
pod update || pod install
[!] No podspec found for tamara_flutter_sdk in .symlinks/plugins/tamara_flutter_sdk/ios
يظهر هذا الخلل
ربما لان جهازي mac m1

ايضا اريد ان اعرف على اي بيئة يعمل ال sdk الخاص ب فلاتر
ios 11 || 12 ||13
ربما الخلل مرتبط بها

Hi Osama,
There's mismatched when we publish to pub.dev. We're fixing it and release soon

ok  i'll wait you

Hi Osama,
We just released a new version for flutter SDK at https://pub.dev/packages/tamara_flutter_sdk. Please check.

Because tamara_flutter_sdk >=1.0.4 depends on webview_flutter ^3.0.0 and sixam_mart depends on webview_flutter ^4.2.2, tamara_flutter_sdk >=1.0.4 is forbidden.
So, because sixam_mart depends on tamara_flutter_sdk ^1.0.4, version solving failed.

you maybe need to upgrade webview_flutter

if you want i can make pull request on the code and upgrade it

i do that for UrWay plugin

Well, now it is working well. Thank you for your good cooperation and dealing, and I appreciate your efforts. All hail to you

؟؟؟؟؟؟؟؟؟
في خميس، 7 سبتمبر، 2023 في 11:05 ص، كتب osama @.***>:

Closed #20 https://github.com/tamara-solution/ios-sdk/issues/20 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/tamara-solution/ios-sdk/issues/20#event-10304141761,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BAQFAYLXJSKRGXYQNJIVEULXZF525ANCNFSM6AAAAAA4KAUW6Q
.
You are receiving this because you commented.Message ID:
@.***>

i try this
tamara_flutter_sdk: ^1.0.5
and
tamara_flutter_sdk: ^1.0.4

Also the library does not work on this version of Flutter (3.7.9)

Hi Osama,
Let me check and get back to you

Hi Osama,
Let me check and get back to you

ok thanks for you

any update ?

Hi Osama, please give me some time to check this

ok i'll with you

Hi Osama,
Our team tried but can't reproduce your issue, could you please share with me more details?

Which Xcode version you're using or you're using any tools to build?
For "pod install", which SwiftDate version you're using, we're currently using 6.3.1 and all is good.

Thanks

I could not determine the “ SwiftDate” and I do not have a library for this

hi
any update

Hi Osama, seems there's an issue with the version supported for our current SDK, we may release this kind of issue tomorrow

Well thank you for your efforts

Hi Osama, could you please try now?

i try pod update and install  it works good but when i run on simulator this happen

are it need real device

Hi Osama, please try to remove symplinks + podfile.lock in iOS folder
After that

Flutter clean
Flutter pub get
Cd iOS: + pod install

ok i'll do now

//
//  SwiftDate
//  Parse, validate, manipulate, and display dates, time and timezones in Swift
//
//  Created by Daniele Margutti
//   - Web: https://www.danielemargutti.com
//   - Twitter: https://twitter.com/danielemargutti
//   - Mail<EMAIL_ADDRESS>//
//  Copyright © 2019 Daniele Margutti. Licensed under MIT License.
//
import Foundation
public protocol DateRepresentable {
// MARK: - Date Components
var year: Int { get }

/// Represented month
var month: Int { get }

/// Represented month name with given style.
///
/// - Parameter style: style in which the name must be formatted.
/// - Returns: name of the month
func monthName(_ style: SymbolFormatStyle) -> String

/// Number of the days in the receiver.
var monthDays: Int { get }

/// Day unit of the receiver.
var day: Int { get }

/// Day of year unit of the receiver
var dayOfYear: Int { get }

/// The number of day in ordinal style format for the receiver in current locale.
/// For example, in the en_US locale, the number 3 is represented as 3rd;
/// in the fr_FR locale, the number 3 is represented as 3e.
@available(iOS 9.0, macOS 10.11, *)
var ordinalDay: String { get }

/// Hour unit of the receiver.
var hour: Int { get }

/// Nearest rounded hour from the date
var nearestHour: Int { get }

/// Minute unit of the receiver.
var minute: Int { get }

/// Second unit of the receiver.
var second: Int { get }

/// Nanosecond unit of the receiver.
var nanosecond: Int { get }

/// Milliseconds in day of the receiver
/// This field behaves exactly like a composite of all time-related fields, not including the zone fields.
/// As such, it also reflects discontinuities of those fields on DST transition days.
/// On a day of DST onset, it will jump forward. On a day of DST cessation, it will jump backward.
/// This reflects the fact that is must be combined with the offset field to obtain a unique local time value.
var msInDay: Int { get }

/// Weekday unit of the receiver.
/// The weekday units are the numbers 1-N (where for the Gregorian calendar N=7 and 1 is Sunday).
var weekday: Int { get }

/// Name of the weekday expressed in given format style.
///
/// - Parameter style: style to express the value.
/// - Parameter locale: locale to use; ignore it to use default's region locale.
/// - Returns: weekday name
func weekdayName(_ style: SymbolFormatStyle, locale: LocaleConvertible?) -> String

/// Week of a year of the receiver.
var weekOfYear: Int { get }

/// Week of a month of the receiver.
var weekOfMonth: Int { get }

/// Ordinal position within the month unit of the corresponding weekday unit.
/// For example, in the Gregorian calendar a weekday ordinal unit of 2 for a
/// weekday unit 3 indicates "the second Tuesday in the month".
var weekdayOrdinal: Int { get }

/// Return the first day number of the week where the receiver date is located.
var firstDayOfWeek: Int { get }

/// Return the last day number of the week where the receiver date is located.
var lastDayOfWeek: Int { get }

/// Relative year for a week within a year calendar unit.
var yearForWeekOfYear: Int { get }

/// Quarter value of the receiver.
var quarter: Int { get }

/// Quarter name expressed in given format style.
///
/// - Parameter style: style to express the value.
/// - Parameter locale: locale to use; ignore it to use default's region locale.
/// - Returns: quarter name
func quarterName(_ style: SymbolFormatStyle, locale: LocaleConvertible?) -> String

/// Era value of the receiver.
var era: Int { get }

/// Name of the era expressed in given format style.
///
/// - Parameter style: style to express the value.
/// - Parameter locale: locale to use; ignore it to use default's region locale.
/// - Returns: era
func eraName(_ style: SymbolFormatStyle, locale: LocaleConvertible?) -> String

/// The current daylight saving time offset of the represented date.
var DSTOffset: TimeInterval { get }

// MARK: - Common Properties

/// Absolute representation of the date
var date: Date { get }

/// Associated region
var region: Region { get }

/// Associated calendar
var calendar: Calendar { get }

/// Extract the date components from the date
var dateComponents: DateComponents { get }

/// Returns whether the given date is in today as boolean.
var isToday: Bool { get }

/// Returns whether the given date is in yesterday.
var isYesterday: Bool { get }

/// Returns whether the given date is in tomorrow.
var isTomorrow: Bool { get }

/// Returns whether the given date is in the weekend.
var isInWeekend: Bool { get }

/// Return true if given date represent a passed date
var isInPast: Bool { get }

/// Return true if given date represent a future date
var isInFuture: Bool { get }

/// Use this object to format the date object.
/// By default this object return the `customFormatter` instance (if set) or the
/// local thread shared formatter (via `sharedFormatter()` func; this is the most typical scenario).
///
/// - Parameters:
///   - format: format string to set.
///   - configuration: optional callback used to configure the object inline.
/// - Returns: formatter instance
func formatter(format: String?, configuration: ((DateFormatter) -> Void)?) -> DateFormatter

/// User this object to get an DateFormatter already configured to format the data object with the associated region.
/// By default this object return the `customFormatter` instance (if set) configured for region or the
/// local thread shared formatter even configured for region (via `sharedFormatter()` func; this is the most typical scenario).
///
///   - format: format string to set.
///   - configuration: optional callback used to configure the object inline.
/// - Returns: formatter instance
func formatterForRegion(format: String?, configuration: ((inout DateFormatter) -> Void)?) -> DateFormatter

/// Set a custom formatter for this object.
/// Typically you should not need to set a value for this property.
/// With a `nil` value SwiftDate will uses the threa shared formatter returned by `sharedFormatter()` function.
/// In case you need to a custom formatter instance you can override the default behaviour by setting a value here.
var customFormatter: DateFormatter? { get set }

/// Return a formatter instance created as singleton into the current caller's thread.
/// This object is used for formatting when no `dateFormatter` is set for the object
/// (this is the common scenario where you want to avoid multiple formatter instances to
/// parse dates; instances of DateFormatter are very expensive to create and you should
/// use a single instance in each thread to perform this kind of tasks).
///
/// - Returns: formatter instance
var sharedFormatter: DateFormatter { get }

// MARK: - Init

/// Initialize a new date by parsing a string.
///
/// - Parameters:
///   - string: string with the date.
///   - format: format used to parse date. Pass `nil` to use built-in formats
///				(if you know you should pass it to optimize the parsing process)
///   - region: region in which the date in `string` is expressed.
init?(_ string: String, format: String?, region: Region)

/// Initialize a new date from a number of seconds since the Unix Epoch.
///
/// - Parameters:
///   - interval: seconds since the Unix Epoch timestamp.
///   - region: region in which the date must be expressed.
init(seconds interval: TimeInterval, region: Region)

/// Initialize a new date corresponding to the number of milliseconds since the Unix Epoch.
///
/// - Parameters:
///   - interval: seconds since the Unix Epoch timestamp.
///   - region: region in which the date must be expressed.
init(milliseconds interval: Int, region: Region)

/// Initialize a new date with the opportunity to configure single date components via builder pattern.
/// Date is therfore expressed in passed region (`DateComponents`'s `timezone`,`calendar` and `locale` are ignored
/// and overwritten by the region if not `nil`).
///
/// - Parameters:
///   - configuration: configuration callback
///   - region: region in which the date is expressed. Ignore to use `SwiftDate.defaultRegion`,
///				`nil` to use `DateComponents` data.
init?(components configuration: ((inout DateComponents) -> Void), region: Region?)

/// Initialize a new date with time components passed.
///
/// - Parameters:
///   - components: date components
///   - region: region in which the date is expressed. Ignore to use `SwiftDate.defaultRegion`,
///				`nil` to use `DateComponents` data.
init?(components: DateComponents, region: Region?)

/// Initialize a new date with given components.
init(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int, nanosecond: Int, region: Region)

// MARK: - Conversion

/// Convert a date to another region.
///
/// - Parameter region: destination region in which the date must be represented.
/// - Returns: converted date
func convertTo(region: Region) -> DateInRegion

// MARK: - To String Formatting

/// Convert date to a string using passed pre-defined style.
///
/// - Parameter style: formatter style, `nil` to use `standard` style
/// - Returns: string representation of the date
func toString(_ style: DateToStringStyles?) -> String

/// Convert date to a string using custom date format.
///
/// - Parameters:
/// 	- format: format of the string representation
///		- locale: locale to fix a custom locale, `nil` to use associated region's locale
/// - Returns: string representation of the date
func toFormat(_ format: String, locale: LocaleConvertible?) -> String

/// Convert a date to a string representation relative to another reference date (or current
/// if not passed).
func toRelative(since: DateInRegion?,
                dateTimeStyle: RelativeDateTimeFormatter.DateTimeStyle,
                unitsStyle: RelativeDateTimeFormatter.UnitsStyle) -> String

/// Return ISO8601 representation of the date
///
/// - Parameter options: optional options, if nil extended iso format is used
func toISO(_ options: ISOFormatter.Options?) -> String

/// Return DOTNET compatible representation of the date.
///
/// - Returns: string representation of the date
func toDotNET() -> String

/// Return SQL compatible representation of the date.
///
/// - Returns: string represenation of the date
func toSQL() -> String

/// Return RSS compatible representation of the date
///
/// - Parameter alt: `true` to return altRSS version, `false` to return the standard RSS representation
/// - Returns: string representation of the date
func toRSS(alt: Bool) -> String

// MARK: - Extract Components

/// Extract time components for elapsed interval between the receiver date
/// and a reference date.
///
/// - Parameters:
///   - units: units to extract.
///   - refDate: reference date
/// - Returns: extracted time units
func toUnits(_ units: Set<Calendar.Component>, to refDate: DateRepresentable) -> [Calendar.Component: Int]

/// Extract time unit component from given date.
///
/// - Parameters:
///   - unit: time component to extract
///   - refDate: reference date
/// - Returns: extracted time unit value
func toUnit(_ unit: Calendar.Component, to refDate: DateRepresentable) -> Int

}
public extension DateRepresentable {
// MARK: - Common Properties

var calendar: Calendar {
	return region.calendar
}

// MARK: - Date Components Properties

var year: Int {
	return dateComponents.year!
}

var month: Int {
	return dateComponents.month!
}

var monthDays: Int {
	return calendar.range(of: .day, in: .month, for: date)!.count
}

func monthName(_ style: SymbolFormatStyle) -> String {
	let formatter = self.formatter(format: nil)
	let idx = (month - 1)
	switch style {
	case .default:				return formatter.monthSymbols[idx]
	case .defaultStandalone:	return formatter.standaloneMonthSymbols[idx]
	case .short:				return formatter.shortMonthSymbols[idx]
	case .standaloneShort:		return formatter.shortStandaloneMonthSymbols[idx]
	case .veryShort:			return formatter.veryShortMonthSymbols[idx]
	case .standaloneVeryShort:	return formatter.veryShortStandaloneMonthSymbols[idx]
	}
}

var day: Int {
	return dateComponents.day!
}

var dayOfYear: Int {
	return calendar.ordinality(of: .day, in: .year, for: date)!
}

@available(iOS 9.0, macOS 10.11, *)
var ordinalDay: String {
	let day = self.day
	return DateFormatter.sharedOrdinalNumberFormatter(locale: region.locale).string(from: day as NSNumber) ?? "\(day)"
}

var hour: Int {
	return dateComponents.hour!
}

var nearestHour: Int {
	let newDate = (date + (date.minute >= 30 ? 60 - date.minute : -date.minute).minutes)
	return newDate.in(region: region).hour
}

var minute: Int {
	return dateComponents.minute!
}

var second: Int {
	return dateComponents.second!
}

var nanosecond: Int {
	return dateComponents.nanosecond!
}

var msInDay: Int {
	return (calendar.ordinality(of: .second, in: .day, for: date)! * 1000)
}

var weekday: Int {
	return dateComponents.weekday!
}

func weekdayName(_ style: SymbolFormatStyle, locale: LocaleConvertible? = nil) -> String {
	let formatter = self.formatter(format: nil) {
		$0.locale = (locale ?? self.region.locale).toLocale()
	}
	let idx = (weekday - 1)
	switch style {
	case .default:				return formatter.weekdaySymbols[idx]
	case .defaultStandalone:	return formatter.standaloneWeekdaySymbols[idx]
	case .short:				return formatter.shortWeekdaySymbols[idx]
	case .standaloneShort:		return formatter.shortStandaloneWeekdaySymbols[idx]
	case .veryShort:			return formatter.veryShortWeekdaySymbols[idx]
	case .standaloneVeryShort:	return formatter.veryShortStandaloneWeekdaySymbols[idx]
	}
}

var weekOfYear: Int {
	return dateComponents.weekOfYear!
}

var weekOfMonth: Int {
	return dateComponents.weekOfMonth!
}

var weekdayOrdinal: Int {
	return dateComponents.weekdayOrdinal!
}

var yearForWeekOfYear: Int {
	return dateComponents.yearForWeekOfYear!
}

var firstDayOfWeek: Int {
	return date.dateAt(.startOfWeek).day
}

var lastDayOfWeek: Int {
	return date.dateAt(.endOfWeek).day
}

var quarter: Int {
	let monthsInQuarter = Double(Calendar.current.monthSymbols.count) / 4.0
	return Int(ceil( Double(month) / monthsInQuarter))
}

var isToday: Bool {
	return calendar.isDateInToday(date)
}

var isYesterday: Bool {
	return calendar.isDateInYesterday(date)
}

var isTomorrow: Bool {
	return calendar.isDateInTomorrow(date)
}

var isInWeekend: Bool {
	return calendar.isDateInWeekend(date)
}

var isInPast: Bool {
	return date < Date()
}

var isInFuture: Bool {
	return date > Date()
}

func quarterName(_ style: SymbolFormatStyle, locale: LocaleConvertible? = nil) -> String {
	let formatter = self.formatter(format: nil) {
		$0.locale = (locale ?? self.region.locale).toLocale()
	}
	let idx = (quarter - 1)
	switch style {
	case .default:									return formatter.quarterSymbols[idx]
	case .defaultStandalone:						return formatter.standaloneQuarterSymbols[idx]
	case .short, .veryShort:						return formatter.shortQuarterSymbols[idx]
	case .standaloneShort, .standaloneVeryShort:	return formatter.shortStandaloneQuarterSymbols[idx]
	}
}

var era: Int {
	return dateComponents.era!
}

func eraName(_ style: SymbolFormatStyle, locale: LocaleConvertible? = nil) -> String {
	let formatter = self.formatter(format: nil) {
		$0.locale = (locale ?? self.region.locale).toLocale()
	}
	let idx = (era - 1)
	switch style {
	case .default, .defaultStandalone:								return formatter.longEraSymbols[idx]
	case .short, .standaloneShort, .veryShort, .standaloneVeryShort:	return formatter.eraSymbols[idx]
	}
}

var DSTOffset: TimeInterval {
	return region.timeZone.daylightSavingTimeOffset(for: date)
}

// MARK: - Date Formatters

func formatter(format: String? = nil, configuration: ((DateFormatter) -> Void)? = nil) -> DateFormatter {
	let formatter = (customFormatter ?? sharedFormatter)
	if let dFormat = format {
		formatter.dateFormat = dFormat
	}
	configuration?(formatter)
	return formatter
}

func formatterForRegion(format: String? = nil, configuration: ((inout DateFormatter) -> Void)? = nil) -> DateFormatter {
	var formatter = self.formatter(format: format, configuration: {
        $0.timeZone = self.region.timeZone
		$0.calendar = self.calendar
		$0.locale = self.region.locale
	})
	configuration?(&formatter)
	return formatter
}

var sharedFormatter: DateFormatter {
	return DateFormatter.sharedFormatter(forRegion: region)
}

func toString(_ style: DateToStringStyles? = nil) -> String {
	guard let style = style else {
		return DateToStringStyles.standard.toString(self)
	}
	return style.toString(self)
}

func toFormat(_ format: String, locale: LocaleConvertible? = nil) -> String {
	guard let fixedLocale = locale else {
		return DateToStringStyles.custom(format).toString(self)
	}
	let fixedRegion = Region(calendar: region.calendar, zone: region.timeZone, locale: fixedLocale)
	let fixedDate = DateInRegion(date.date, region: fixedRegion)
	return DateToStringStyles.custom(format).toString(fixedDate)
}

func toRelative(since: DateInRegion?,
                dateTimeStyle: RelativeDateTimeFormatter.DateTimeStyle = .named,
                unitsStyle: RelativeDateTimeFormatter.UnitsStyle = .short) -> String {
    let formatter = RelativeDateTimeFormatter()
    formatter.dateTimeStyle = dateTimeStyle
    formatter.unitsStyle = unitsStyle
    return formatter.localizedString(for: self.date, relativeTo: since?.date ?? Date())
}

func toISO(_ options: ISOFormatter.Options? = nil) -> String {
	return DateToStringStyles.iso( (options ?? ISOFormatter.Options([.withInternetDateTime])) ).toString(self)
}

func toDotNET() -> String {
	return DOTNETFormatter.format(self, options: nil)
}

func toRSS(alt: Bool) -> String {
	switch alt {
	case true: 		return DateToStringStyles.altRSS.toString(self)
	case false: 	return DateToStringStyles.rss.toString(self)
	}
}

func toSQL() -> String {
	return DateToStringStyles.sql.toString(self)
}

// MARK: - Conversion

func convertTo(region: Region) -> DateInRegion {
	return DateInRegion(date, region: region)
}

// MARK: - Extract Time Components

func toUnits(_ units: Set<Calendar.Component>, to refDate: DateRepresentable) -> [Calendar.Component: Int] {
	let cal = region.calendar
	let components = cal.dateComponents(units, from: date, to: refDate.date)
	return components.toDict()
}

func toUnit(_ unit: Calendar.Component, to refDate: DateRepresentable) -> Int {
	let cal = region.calendar
	let components = cal.dateComponents([unit], from: date, to: refDate.date)
	return components.value(for: unit)!
}

}

If you download the latest version of the xcode, it will work ?

Hi Osama, can you share with me dependence from your side?

it's work with 1.0.6 version
thank you


Adding xHostsFile resource to close issue #8

Hi @rchaganti, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

Nice work BTW - sorry to be nit picky about style. Thanks for working on this :+1:

Do you know why the last build failed? It took more than 7hrs to fail and I don't see anything in the logs. Could be a build system issue?

I've had this problem before (and so have others as well). It usually seems to occur during the PSScriptAnalyzer checks. No idea why it happens though.
I usually just commit a "dummy" change to trigger a rebuild and it works fine. Just add a space to the end of the one of the "Changes" lines in the # Unreleased section of the readme.md or something like that and commit it.

@PlagueHO that did the trick! :)

Just a reminder - Please resolve merge conflicts.  For more information see GitHowTo - 30. Resolving Conflicts
[Instructions to setup BC4](http://www.scootersoftware.com/support.php?zz=kb_vcs#gitwindows

I messed up my local repo while trying to resolve merge conflicts! A bit more of Github / Git expertise would have been helpful. I moved the HEAD to a well-known commit in my local repo however the pull request commit to the PowerShell/Dev is one commit ahead. I am unable to do a force merge.
What are the other options?

@rchaganti  you could delete you local branch and fetch and checkout the branch from github.  This should get you back to the state you PR is in.
Here are some notes I usually point to on how to merge:
GitHowTo - 30. Resolving Conflicts
Instructions to setup BC4, my favorite merge tool

Whatever I did! This thing resulted in a new PR! :( but a clean one.

Looks like this PR is replaced by:
https://github.com/PowerShell/xNetworking/pull/98

Addressed in PR #98


TEP-0090: Matrix - Consume Results

Changes

TEP-0090: Matrix proposed executing a PipelineTask in parallel TaskRuns and Runs with substitutions from combinations of Parameters in a Matrix.
In this change, we implement consuming Results in a Matrix. This was disallowed in previous iterations of Matrix - validation failed.
With this change, Matrix supports Results of type String. Results of type Array are not yet available at the Pipeline level - this will be handled when it's available.
Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[x] Docs included if any changes are user facing
[x] Tests included if any functionality added or changed
[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including
functionality, content, code)
[x] Release notes block below has been filled in (if there are no user facing changes, use release note "NONE")

Release Notes

`Matrix` supports Results of type String.

/kind feature
/retest

/test pull-tekton-pipeline-go-coverage

/retest

/test pull-tekton-pipeline-go-coverage

to clarify for reviewers, this change is implementing consuming results in a matrix - https://github.com/tektoncd/community/blob/main/teps/0090-matrix.md#specifying-results-in-the-matrix
producing results from fanned out pipelinetasks is out of scope for tep-0090 (waiting for tep-0075 & tep-0075) - https://github.com/tektoncd/community/blob/main/teps/0090-matrix.md#results-from-fanned-out-pipelinetasks

/test pull-pipeline-kind-k8s-v1-21-e2e

/test pull-tekton-pipeline-alpha-integration-tests


Raise an error if saved credentials do not have a known 'kind'

This fixes a problem with logging in to scalabrad-web v2 in a browser window that had previously been logged in to v1, since credentials were previously stored without a 'kind' property. These old credentials will now be rejected, so that the user will have to log in again when connecting to v2, but will at least be presented with a login box instead of a blank screen.
Fixes #299

@joshmutus, is this something you can try out?
To test this I did the following:

checkout v1.1.0, run it locally and log in to a browser window
checkout v2.0.0, run it locally, and try to load it in the same browser window. You should see a blank window. There is a "not connected" error in the javascript console.
checkout u/maffoo/v2-login-fix (this PR), run it locally, and load it in the same browser window. You should see a login box and be able to log in.

LGTM


2nd RPC Rework: Client

What is the goal of this PR?
Further refinement of the client-server architecture
What are the changes implemented in this PR?
TODO

This PR depends on https://github.com/graknlabs/grakn-2.0/pull/59 in order to build in CI, and should not be merged until this is done.


IllegalArgumentException from if commands with dashes

Getting a IllegalArgumentException: For input string: "18-05-2020"  when using <util.date.format[dd-MM-yyyy]> in the if command.
logs: https://one.denizenscript.com/paste/69158#38
script: https://one.denizenscript.com/haste/69160
Somewhat alternative solution to this is to change <util.date.format[dd-MM-yyyy]> into <util.date.format[dd/MM/yyyy]>

Has nothing to do with the tag, it's 1-2-3 format (dash in the middle of a number) being misrecognized as a number.