Guide Typescript & PNPM Updates

As I worked through the guide, I add notes and I also read the comments and adding any relevant notes I see as of May 18(ish).
Demo Repo: https://github.com/ChristineP2/demo_notes_app_v2
Site Wide
Changes

Added .idea to .gitignore
Added .idea to Jekyll Exclude list

Notes

[ ] Consider accessibility features

http://www.goring.org/resources/accessibility.html
https://github.com/benbalter/ra11y
adding an indicator for links that open in new tabs

[ ] Consider adding "Archived" banner to the top of any parts of the site that are kept but are not intended for current reference for example, all the pages in this section.

Guide
Changes

Updated External Links to open a new tab.
Updated SASS for blockquote within post-content to not be enormous.
Added a few classes for Notes and Asides

Notes

[ ] TODO: Resolve SST Console Warning See the migration guide
(node:85684) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
(Use `node --trace-warnings ...` to show where the warning was created)
16:14:43.391

[ ] TODO: Clean up legacy guide files so it doesn't clutter the current fileset.

[ ] TODO: Correctly manage the path_id variable in code examples to ensure they are present without code duplication.

[ ] TODO: Switch from Amplify API to RestApi or GraphQLAPI based on note in API.d.ts (See Warning in console.sst.dev)

[ ] Consider adding a chapter on accessibility in the frontend creation section.

React Accessibility - New Accessibility guides are still pending based on announcement on 3/16/2023
https://www.freecodecamp.org/news/react-accessibility-tools-build-accessible-react-apps/
https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_accessibility

Chapter Specific
What Does This Guide Cover
Notes (From Discourse comments)

[ ] Consider using Next.js for the guide
[ ] Consider switching example to React Native

How to Get Help?
no specific changes
What is Serverless?
Changes

Removed link to the What is AWS Lambda chapter as it encourages skipping the rest of the current page.

What is AWS Lambda?
Notes

[ ] Consider decreasing specificity in Lambda Spec Description - As AWS modifies its offerings, the description can be outdated.  By speaking in generalities and linking directly to AWS for specificity the document will be less fragile.

Why Create Serverless Apps?
Notes

[ ] Consider specifying a timeframe on the cost calculation to account for pricing changes over time.

Create an AWS Account
Changes

Tested steps with a new AWS Account.
Removed reference to specific language since they changed the call to action.  Also removed screenshot as it was outdated.

Create an IAM User
Changes

Updated chapter instructions & screenshots.
Updated screenshots at 1280x783.
Screenshots located in create-iam-user
Left old screenshots in iam-user for other languages as I couldn't update them to match the new instructions.

Configure the AWS CLI
Changes

Tested steps with a clean install on Mac.

Notes

[ ] Consider adding Chocolatey [instructions for Windows](https://discourse.sst.dev/t/configure-the-aws-cli/86/3?u=christinep2.
[ ] (Consider adding instructions for *NIX flavors.)[https://discourse.sst.dev/t/configure-the-aws-cli/86/5?u=christinep2]
[ ] Consider adding a link to the AWS instructions instead, in case that is easier.

What is SST?
Changes

Removed link to other chapters as it encourages skipping the current document
Added links for the specific IDE Instructions

Notes

[ ] Consider removing the penultimate sentence regarding the alternative guide since it is archived.

What is Infrastructure as Code?
Changes

Added "using CDK" into the first sentence based on the confusion mentioned in the chapter comments

What is AWS CDK?
Changes

Changed references to pnpm
Added question mark to title to match the other titles in the section and the title of the comments page.

Create an SST app
Changes

updated to pnpm

Notes

[ ] Need to update Next Steps command line output as follows

cd notes
pnpm add (or npm, or yarn)
pnpm exec sst dev

Create a Hello World API
Changes

updated to pnpm
Added instructions for Safari et. al. users found in this discord thread

Notes

[ ] Safari instructions for mkcert usage are not working.  Need to investigate further.

Initialize a Github Repo
no specific changes
Create a DynamoDB Table in SST
Changes

updated to pnpm
updated to typescript
Added clarification as specified in comment

Questions

Regarding the statement "There’s no specific reason why we are creating a separate stack for these resources." Would it be fair to say that the decision to have separate stacks increases application maintainability?  It seems like it could fall under the principle of "separation of concerns".
Why is the Hello World API still present in console after this step?

Create a S3 Bucket in SST
Changes

updated to pnpm
updated to typescript
small wording changes
moved bucket in return to above table instead of below, matching location in the stack file and alphabetically ordered.
git commit as a one line command to facilitate using the copy option for the code.

Review Our App Architecture
no specific changes
Add an API to Create a Note
Changes

updated to pnpm
updated to typescript
Added info about DRYness and maintainability to the refactor section.

Notes

Should we uninstall the aws-sdk (or @aws-sdk) from functions when we install it into core?
Should the user re-test after the refactor to ensure it still works?
Do we need to add this note for Windows users into the guide?
Referenced this error handling blog post for the error code in handler.
I'm seeing a delay as I add the API endpoints with seeing them in the console.  I experienced on two different run-throughs, is this expected? If so, can we add a note to that effect at this point so people don't try and debug?

Add an API to Get/Put/Patch/Delete a Note
Changes

updated to pnpm
updated to typescript

Adding Auth to Our Serverless App
Changes

Updated to typescript
Updated to use docs variable instead of hardcoded url

Secure Our Serverless APIs
Changes

Updated to typescript
Switched to PNPM
Used optional chaining operator for requestContext.authorizer. Should we have a different solution?

Setup a Stripe Account
Changes

Redo screenshots and update text to match new UI

Handling Secrets in SST
Changes

Rewrite to use the SST Secrets CLI based on the information found here: https://docs.sst.dev/config#should-i-use-configsecret-or-env-for-secrets

Add an API to Handle Billing
Changes

Updated to typescript
Switched to PNPM

Notes

[ ] Consider not using nested ternary operators.

Unit Tests in Serverless
Changes

Switch to Typescript for testing
Switch to PNPM
Add instructions to add Vite Test to workspace

Notes

[ ] Consider including tests as we build out the API instead of at the end, or at least adding a note that this is a preferred approach for ensuring properly tested code.

Handle CORS in Serverless APIs
Changes

Switch to Typescript
Switch to PNPM

Handle CORS in S3 for File Uploads
Changes

Switch to Typescript
Switch to PNPM

Create a New React.js App
Changes

Switch to Typescript
Switch to PNPM
Minor wording changes

Notes

[ ] Need to replace create-react-app with one of the recommended solutions as create-react-app is being deprecated.
[ ] Consider adding tests alongside new code from this point forward.

Set up Custom Fonts
Changes

Minor wording changes
Update final screenshot to show tsx file instead of js file

Set up Bootstrap
Changes

Switch to Typescript
Switch to PNPM
Minor wording changes

Handle Routes with React Router
Changes

Switch to Typescript
Switch to PNPM
Minor wording changes

Create Containers
Changes

Switch to Typescript
Switch to PNPM
Minor wording changes

Adding Links in the Navbar
Changes

Switch to PNPM
Switch to Typescript
Minor wording changes

Handle 404s
Changes

Switch to Typescript
Minor wording changes

Configure AWS Amplify
Changes

Switch to Typescript
Switch to PNPM
Minor wording changes

Create a Login Page
Changes

Switch to Typescript
Switch to PNPM
Minor wording changes

Login with AWS Cognito
Changes

Switch to Typescript
Switch to PNPM
Minor wording changes

Add the Session to the State
Changes

Switch to Typescript

Load the State from the Session
Changes

Switch to Typescript
Move import of UseEffect above explainer so that consumer is not sidetracked by the import not being present.

Clear the Session on Logout
Changes

Switch to Typescript

Redirect on Login and Logout
Changes

Switch to Typescript

Give Feedback While Logging In
Changes

Switch to Typescript

Create a Custom React Hook to Handle Form Fields
Changes

Switch to Typescript

Create a Signup Page
No Changes
Create the Signup Form
Changes

Switch to Typescript
Minor wording changes

Signup with AWS Cognito
Changes

Switch to Typescript
Minor wording changes

Notes

[ ] Do we want to add the handling for UserExists in? https://discourse.sst.dev/t/signup-with-aws-cognito/130/74?u=christinep2

Add the Create Note Page
Changes

Switch to Typescript
Minor wording changes

Call the Create API
Changes

Switch to Typescript
Minor wording changes

Upload a File to S3
Changes

Switch to Typescript

Upload a File to S3
Changes

Switch to Typescript
Added helpful note from @sometimescasey

Notes

[ ] Update troubleshooting tips if outdated.

List All the Notes
Changes

Switch to Typescript
Minor wording changes

Call the List API
Changes

Switch to Typescript
Move Import immediately after adding code so consumer is not distracted by errors

Display a Note
Changes

Switch to Typescript

Render the Note Form
Changes

Switch to Typescript
Minor wording changes
Move Import immediately after adding code so consumer is not distracted by errors

Save Changes to a Note
Changes

Switch to Typescript
Minor wording changes

Delete a Note
Changes

Switch to Typescript
Minor wording changes

Create a Settings Page
Changes

Switch to Typescript
Minor wording changes

Add Stripe Keys to Config
Changes

Switch to Typescript
Switch to PNPM
Minor wording changes

Create a Billing Form
Changes

Switch to Typescript
Switch to PNPM

Connect the Billing Form
Changes

Switch to Typescript
Switch to PNPM

Set up Secure Pages
No Changes
Create a Route That Redirects
Changes

Switch to Typescript

Use the Redirect Routes
Changes

Switch to Typescript

Redirect on Login
Changes

Switch to Typescript

Purchase a Domain with Route 53
Skipped.
Custom Domains in serverless APIs
Changes

Switch to Typescript
Minor wording changes

Custom Domains for React Apps on AWS
Changes

Switch to Typescript/PNPM
Minor wording changes

Notes

[ ] I tried switching the domain and the alias so that I could easily remove the domain alias and use it for my "real" app and leave the subdomain for this demo, but it erred with the message.  Error: Validation failed with the following errors:
  [prod-notes-FrontendStack/ReactSite/Redirect/RedirectCertificate] DNS zone www-notes.manuals4life.com is not authoritative for certificate domain name manuals4life.com

In orde to keep the statement "You can switch these around so that the root domain redirects to the www. version as well.", I believe we'd need additional information dealing with the CAA record or whatever tripped it up.

Getting Production Ready
No Changes
Creating a CI/CD Pipeline for serverless
No Changes (other than the global new tab for external links)
Setting up Your Project on Seed
Changes

Switch References to Typescript
Minor wording changes

Notes

[ ] Needs new Screenshots using serverless-stack demo notes app.
[ ] Might add a screenshot pointing at settings in the UI?

Configure Secrets in Seed
Changes

Switch References to sst secret instead of .env.local
Minor wording changes

Deploying Through Seed
Changes

minor wording changes

Debugging Full-Stack Serverless Apps
No Changes
Setup Error Reporting in React
Changes

Switch to Typescript
Switched to pnpm add @sentry/react from @sentry/browser
Added an ErrorInfoType

Notes

[ ] Needs new Screenshots

Report API Errors in React
Changes

Switch to Typescript

Setup an Error Boundary in React
Changes

Switch to Typescript
Change multiline ternary to if/else
Updated screenshot for react error

Notes

[ ] Needs new Screenshots for Sentry confirmations

Setup Error Logging in Serverless
Changes

Switch to Typescript

Logic Errors in Lambda Functions
Changes

Switch to Typescript

Notes

[ ] Logging extra information is incorrectly displaying [object Object]

Unexpected Errors in Lambda Functions
Changes

Switch references to Typescript

Errors Outside Lambda Functions
Changes

Switch references to Typescript

Errors in API Gateway
Changes

Switch references to Typescript

Wrapping Up
Changes

Switch references to PNPM

Additional Guide Information Pages still in use:
Auth In Serverless Apps
Changes

Updated to typescript
Updated referenced pages What is IAM and What is an ARN

What is IAM / What is an ARN
Changes

Updated text to remove wording implying it is a step in the guide

Mapping Cognito Identity Id and User Pool Id
Cognito User Pool vs Identity Pool
Setting serverless environment variables in a React app

Updated to pnpm
Updated to typescript

Outstanding Changes (I did not get these done in this pass)
Extra Credit series of chapters on user management

[ ] TODO: Update this section's chapters as they are referenced from "Give Feedback While Logging In" and user management pages

Appreciate this! I'm most likely going to go through your list and update it part by part when I do my next rewrite.

That's what I was expecting.  It was a great exercise for getting more into the hows and whys, I figured it might as well be an option for your next update.
If there is anything you want to change or add to save you time, let me know.


Added check for download quota exceeded

Signed-off-by: Anagh Kumar Baranwal<EMAIL_ADDRESS>

thanks!


Upload four impact stories to CMS

Here are the four stories for the CMS. Photos are included, let me know if you need any files or have any questions, and please ping me when they are up.
Story 1: Anschutz
Story 2: Boulder
Story 3: Denver
Story 4: UCCS

@Feissit I uploaded the four stories in the production instance of the CMS and they can be seen on https://essential-staging-cu.herokuapp.com/impact-reports/joy. I used the images in the story as placeholders.
Of course, there are still styling differences between the mock and the story page/cards output, but I noticed two content-related items while uploading stories.

The block quotes have quotes within them which makes it look weird surrounding the quoted content with larger quote marks. When I see block quotes in articles I think the attribution is assumed...or put after the quote with a hyphen - John Does.
Some images are longer than others making the aspect ratio inconsistent throughout the story. Images can be automatically cropped or manually done, but I think in general, the image should have widths greater than heights.

I can make issues out of those two things after gathering feedback.


kstars: 3.6.3 -> 3.6.4

Description of changes
Changelog: https://invent.kde.org/education/kstars/-/blob/85dfd8fb6e2777768d9992e75d075237da26fedc/ChangeLog
Things done

Built on platform(s)

[x] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Auto generated changelogs are really unhelpful.


Added finnish translation to convert_speed.json

Sorry, I am walking my dog rn

I want to quickly have something see what it returns back when translated back into english as a safety precaution

Looks good


Remove unneeded leading zeroes

Leading zeroes in numbers can be safely removed, might shave off a char here and there
> print(0000.123 == .123)
true

pseudo play (easy)
For each NumericLiteral node, if the value is within range [-1,+1].

Given that pattern is satisfied,

Remove leading zeros from the raw (string).

(No need to worry about the UnaryExpression with - operator, it is separated.)
nit: Perhaps also consider using hexadecimal format for non-floating-point numbers (if it produces nicer power-of-2 form, when either shorter or equal in output size):<PHONE_NUMBER> => 0x80000000.
Correct? 🤔

For each NumericLiteral node when the raw either: starts with leading zero or ends with trailing zero.

Given that pattern is satisfied,

Remove all leading and trailing zeros from the raw (string).

Example case: '123.0' remove everything past the . (including the dot) => '123'.
Another case: '0.0' do the same as above => '0'.

Lua 5.3 differentiates between floats and integers as far as I know, so removing trailing zeroes could result in changing the type from a float to an integer. Not sure how that would affect code though, but it could be something to keep in mind


0.23.1 appears to have bad build products

I have 0.23.1 and I got this when compiling a file:

Thanks, somehow I had a stale output file in the build that got released.
This should be resolved in 0.14.2 (vscode 0.23.2)


Example of usage?

Hi,
While the readme has documentation it lacks some basic usage example. Could you please share one simple example? here is an example of my code:
httpntlm.get(
            {
                url: URL,
                username: USERNAME,
                password: PASSWORD,
                domain: DOMAIN,
                ca: ca
            },
                function (err, res) {
                    if (err) console.log(err);
                    else console.log(res);
           });

Buy the library I'm using only supports NTLM v1 and I need NTLM v2.
Could you please help me with an example? thanks :)

Alright I figured it out. Maybe this example will help someone.
const request = require('request');
const ntlm = require('ntlm-client');
const https = require('https');
const keepAliveAgent = new https.Agent({ keepAlive: true });

const URL = 'your url';
const USERNAME = 'your username';
const PASSWORD = 'your password';

request(
       {
           url: URL,
           headers: { 'Authorization': type1msg },
           agent: keepaliveAgent,    //   I think this is required
           ca: ca        // I also need ca
       },
           function (error, response) {
               if (error) console.log(error);
               const type2msg = ntlm.decodeType2Message(response.headers['www-authenticate']);
               const type3msg = ntlm.createType3Message(type2msg, USERNAME, PASSWORD);

               request(
                           {
                               url: URL,
                               headers: { 'Authorization': type3msg },
                               agent: keepaliveAgent,
                               ca: ca
                           },
                               function (err, res, body) {
                                   if (err) console.log(err);
                                   console.log(body);
                          });
 });


Upgrade pydantic to 1.10.10

No rush on this but it is good to see that v2 is shipping now...

https://github.com/pydantic/pydantic/releases

@cclauss pydantic v2 will require pipenv to look deep within itself at how its bundling dependencies because of the rust binaries aspect.


Fix the permission problem of PR ci

What type of PR is this?
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target

/kind bug
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

/kind bug

/auto-cc

clusterpedia-io/gh-ci-bot need to sync again

/assign @Iceber

Verified on https://github.com/DaoCloud-OpenSource/ci-bot-playground/pull/34, LGTM

clusterpedia-io/gh-ci-bot need to sync again

synced


Tests failing on OS X

I assume the following test failure is due to OS X:
  1) Capybara::Webkit::Connection kills the process when the parent process dies
     Failure/Error: expect { Process.getpgid(webkit_pid) }.to raise_error Errno::ESRCH
       expected Errno::ESRCH but nothing was raised
     # ./spec/connection_spec.rb:23:in `block (2 levels) in <top (required)>'

@mhoran, has there been any updates in regards to this issue or can it be closed?

I haven't seen this failure in a long time. I'm going to close for now, but I'll reopen if I see it on CI.


Update kuma tutorial for flagger docs

sync changes made in https://github.com/fluxcd/flagger/pull/1402

Is this the only change to docs since the last sync?


Cleaned and normalized terms and language

Nice work, thanks :) Jupyter seems to have gone missing from the docs ToC, I'll add it back after the merge.


adding ipsas

this will be the second time that i try to add my school domain to you list.
attached to this request you'll find a document provided by the administration of my college to prove the authenticity of this domain.
I hope that my request well be accepted so we can start using your product.
CamScanner 26-10-2023 18.01.pdf

@Bounebkarim Thank you for the clarification and your patience while waiting for a review and processing your request. Pull request merged.


A7Rii Constant black Screen

Hi,
Out of nowhere and after 4 years without any issues my A7rii doesn't want to boot up normally anymore.
After searching this thread I realized the culprit was the tweak installed...
I have read and tried most of the suggested things in here but still with no luck. My camera now only wants to turn on while connecting via USB to my laptop. It is very frustrating... Nothing happens when it isn't connect to the laptop. Just the black screen...
If someone ever solved successfully this I would love to hear your story!
Here is what I tried so far:

Regained access to the camera via usb and disabled all the settings in the tweak app. (I was v.0.10)
reinstalled the tweak app and update it to v0.12
initialized the camera

So far nothing is happening. the camera still needs to be connected via USB in order to properly boot up.

dowloaded and installed latest v0.17.
open tweak app, it says in its meny it is tweak app v0.11
tried a couple more times, still says on camera its v0.11

Camera still needs USB to boot up.
Any help would be truly appreciated!
Many thanks!

Are we sure it's the tweak? I have the a7r2 as well and The tweak has been installed for years.
Sent from Yahoo Mail on Android
On Mon, Nov 15, 2021 at 7:03 PM, @.***> wrote:
Hi,
Out of nowhere and after 4 years without any issues my A7rii doesn't want to boot up normally anymore.
After searching this thread I realized the culprit was the tweak installed...
I have read and tried most of the suggested things in here but still with no luck. My camera now only wants to turn on while connecting via USB to my laptop. It is very frustrating... Nothing happens when it isn't connect to the laptop. Just the black screen...
If someone ever solved successfully this I would love to hear your story!
Here is what I tried so far:

Regained access to the camera via usb and disabled all the settings in the tweak app. (I was v.0.10)
reinstalled the tweak app and update it to v0.12
initialized the camera

So far nothing is happening. the camera still needs to be connected via USB in order to properly boot up.

dowloaded and installed latest v0.17.
open tweak app, it says in its meny it is tweak app v0.11
tried a couple more times, still says on camera its v0.11

Camera still needs USB to boot up.
Any help would be truly appreciated!
Many thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

Are we sure it's the tweak? I have the a7r2 as well and The tweak has been installed for years. Sent from Yahoo Mail on Android On Mon, Nov 15, 2021 at 7:03 PM, @.***> wrote: Hi, Out of nowhere and after 4 years without any issues my A7rii doesn't want to boot up normally anymore. After searching this thread I realized the culprit was the tweak installed... I have read and tried most of the suggested things in here but still with no luck. My camera now only wants to turn on while connecting via USB to my laptop. It is very frustrating... Nothing happens when it isn't connect to the laptop. Just the black screen... If someone ever solved successfully this I would love to hear your story! Here is what I tried so far: - Regained access to the camera via usb and disabled all the settings in the tweak app. (I was v.0.10) - reinstalled the tweak app and update it to v0.12 - initialized the camera So far nothing is happening. the camera still needs to be connected via USB in order to properly boot up. - dowloaded and installed latest v0.17. - open tweak app, it says in its meny it is tweak app v0.11 - tried a couple more times, still says on camera its v0.11 Camera still needs USB to boot up. Any help would be truly appreciated! Many thanks! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Pretty sure yes. The tweak were installed on mine for years as well. Then suddenly it is impossible to start the camera.
Today I was lucky through USB to regain control. It's been weeks that I was just prepared of getting rid of this body.
I tried to update to v0.17. nothing. I also tried v0.10 v0.11 and v.12.
The camera was fine so I let it charge the battery through the USB cable.
As I am writing this the battery is probably 100%. But the camera doesn't boot up again. Black screen, no LED lights, nothing. Tried to remove the battery and SD card, turn off/on, replug to USB...nothing...
I am now 100% sure it is software and not hardware.
I would love to just "flash" the body system to go back to it's initial factory settings/code but I find nothing online that would help with that except a $500 Sony repair that I desperately try to avoid...
Also, I tried to update the camera firmware to 4.01. Nothing...
Thanks again for the response, it is truly appreciated


(build) Adds TeamCity build definition

Description Of Changes
This commit adds a build definition to be used by the Chocolatey
internal TeamCity server.
This calls the build.official.bat script, as it will have access to the
required files in order to create an official signed version of
Chocolatey GUI.
Setup of this build uses the build of Chocolatey GUI Licensed Extension
as a template, and then modified the necessary portions to make it
specific to Chocolatey GUI.
Motivation and Context
All Chocolatey builds are going to happen on an internal TeamCity server, to allow for full signing of the generated assemblies.
Testing
The TeamCity build configuration has been tested on a previous TeamCity server, and brought over in the settings.kts file.
Change Types Made

[ ] Bug fix (non-breaking change)
[ ] Feature / Enhancement (non-breaking change)
[ ] Breaking change (fix or feature that could cause existing functionality to change)
[ ] PowerShell code changes.

Related Issue
N/A
Change Checklist

[ ] Requires a change to the documentation
[ ] Documentation has been updated
[ ] Tests to cover my changes, have been added
[x] All new and existing tests passed.
[ ] PowerShell v2 compatibility checked.

@JPRuskin I have updated the PR based on one of the suggestions that was made, however, there is another question that I have left on the other suggestion.  If you can let me know your thoughts on that one, it would be appreciated.  Happy to jump on a call if you wanted to talk through it.


IOS support as target

Now that the SDK allows us to build for IOS platforms, i guess adding it to the target list can be nice to push all the versions of our avatars at once.

I forget iOS supportness is related to this project. sorry.
basically we can use same avatar as android platform for iOS upload so it might be good to share upload checkbox I think. Could you let me know how do you think?
I think we should have separated setting for versioning system.

I would say that's a separate entry anyway as you have to switch the field in the SDK and maybe change some specifics.
I don't know if that's the case but we could have a avatar size limitation that is different between android and IOS.
I would say it's better to have a separate option for this.


Add snyk-operator v1.21.4

Signed-off-by: ivanstanev<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

New Submissions

[x] Has you operator nested directory structure?
[x] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
[x] Are you familiar with our contribution guidelines?
[x] Have you packaged and deployed your Operator for Operator Framework?

[x] Is your submission signed?

Updates to existing Operators

[ ] Is your new CSV pointing to the previous version with the replaces property?
[ ] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[ ] Have you tested an update to your Operator when deployed via OLM?
[ ] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file a PR against this repo and explain your need
2 For more information see here

Hi @ivanstanev, it is failing on "error":"snykmonitors.charts.helm.k8s.io "snyk-monitor" not found"
and maybe this:
helm.controller","msg":"Cannot watch cluster-scoped dependent resource for namespace-scoped owner. Changes to this dependent resource type will not be reconciled.

Hey @J0zi, perhaps the reason is that the CustomResource is dependent on a Kubernetes Secret to be created before the CR is applied. One of the items in the Secret gets mounted to the container. Do you have any advise how to deal with this dependency?

in this case, we can merge it


Can implement an component like notion database

This function solves the problem (这个功能解决的问题)
an table that can provide multiple view like notion database, which can provide more attractive to users
it provide kanban, table, gantt views, and also and it allow custom column such as date,link,selection type fields and so on.
Expected API (期望的 API)
<n-database :data= data />

This issue does not have any recent activity. If you are still experiencing similar problems, open a new error, including a minimal copy of the problem


Two instances with mqtt

Hi everyone,
first thank you for this awesome piece of software.
I started with one daemon an a pi zero and newer missed an update at the mqtt broker.
Now with a second instance setup, I lose a lot of updates on the mqtt broker.
Interval is set to 300s and it sometime takes 20min till something arrives.
If I disable one instance it is back to normal.
Is there something special to set, when using more than one daemon on the same mqtt broker?
Thank you for any advice.
Regards
Dennis

Second instance is on the same hardware? I would worry more about sharing bluetooth than sharing a broker?

Second instance is on different Hardware.
Range was a problem, so I set up a second one.

Are both working fine with json backend when observed over SSH?

You mean the output when running them not as a daemon?
Or is there some kind of verbose logging I have to look for?

In config you can select local std out printing and run not as a service,
so you can see if measurements are coming.
Also when running not as a deamon stdout is already very verbose. Do you
see measurements happening but just mqtt misses them?
On Fri, 29 May 2020, 17:14 Fragggy<EMAIL_ADDRESS>wrote:

You mean the output when running them not as a daemon?
Or is there some kind of verbose logging I have to look for?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ThomDietrich/miflora-mqtt-daemon/issues/121#issuecomment-636028630,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABNPW344SHK2YZTOWUKDOMTRT7GMBANCNFSM4NNJOGSA
.

Hi, I had time to dig into this a little more. Sorry it took so long.
The Problem seems to be, that both clients use the same (empty) name, when they connect to the server:

If I turn one Instance off, the reconnecting stops.
The Server now thinks it is one Client and switches between both.
Is there a way to change the Name?
Regards
Dennis

It's easy to provide a name in mqtt_client = mqtt.Client(), but that shouldn't be neccessary, because the broker (Mosquitto in my case) assigns a clientID automatically.
1604067158: mosquitto version 1.6.12 running
1604067164: New connection from <IP_ADDRESS> on port 1883.
1604067164: New client connected from <IP_ADDRESS> as Frederik (p2, c1, k60).
1604067176: Client Frederik disconnected.
1604067205: New connection from <IP_ADDRESS> on port 1883.
1604067205: New client connected from <IP_ADDRESS> as auto-3778535E-D001-177E-BF04-C0E98312E552 (p2, c1, k60).
1604067217: Client auto-3778535E-D001-177E-BF04-C0E98312E552 disconnected.

Which broker are you using?

I am using the mqtt Adapter in iobroker.
Do i have to set it in the Code or is there also a parameter in config.ini for this?

Ok i tested it.
Changed the Code to:
mqtt_client = mqtt.Client(client_id="FlowerPi2)
Now I hava a Name in the Log:

But the client crashed with the error below:
Adding sensor to device list and testing connection ...
Name:          "Garden_right"
Internal name: "Garden_right"
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/btlewrap/bluepy.py", line 27, in _func_wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.7/dist-packages/btlewrap/bluepy.py", line 56, in connect
    self._peripheral = Peripheral(mac, iface=iface, addrType=self.address_type)
  File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 391, in __init__
    self._connect(deviceAddr, addrType, iface)
  File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 439, in _connect
    raise BTLEDisconnectError("Failed to connect to peripheral %s, addr type: %s" % (addr, addrType), rsp)
bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral C4:7C:8D:67:B9:4F, addr type: public

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/miflora-mqtt-daemon/miflora-mqtt-daemon.py", line 216, in <module>
    print('Device name:   "{}"'.format(flora_poller.name()))
  File "/usr/local/lib/python3.7/dist-packages/miflora/miflora_poller.py", line 74, in name
    with self._bt_interface.connect(self._mac) as connection:
  File "/usr/local/lib/python3.7/dist-packages/btlewrap/base.py", line 45, in __enter__
    self._backend.connect(self._mac)
  File "/usr/local/lib/python3.7/dist-packages/btlewrap/bluepy.py", line 33, in _func_wrapper
    raise BluetoothBackendException() from last_error
btlewrap.base.BluetoothBackendException

That seems like another problem to me and is Bluetooth related. Your Pi can't reach the MiFlora C4:7C:8D:67:B9:4F. Battery low or a sensor reset needed?

I am using the mqtt Adapter in iobroker.
Do i have to set it in the Code or is there also a parameter in config.ini for this?

Would you mind providing a solution, as it seems you were able to figure this out? I have a similar problem. Thanks.


Relationship to asset references proposal

This seems like it could possibly subsume the asset references proposal: https://github.com/tc39/proposal-asset-references
Instead of a new keyword as in asset references:
asset Logo from "./logo.gif";

We could have a asset-reference type:
import Logo from "./logo.gif" as 'asset-reference';

cc @sebmarkbage

Technically either this or assert syntax could be repurposed for this syntax, but they’re not quite the same concept. It’s more of a hack.
These other has some interesting consequences on asset references. For example, when you do materialize the asset references do you have to provide the “as” and “assert” again?
An important consideration of asset references is that they should be able to express their eventual type.
Eg I should be able to define a function F(Reference): T and have the type be resolved from the module implicitly like other imports.
For that to be possible, you need to be able to know at the call site what as/assert will be used.
So I think asset references need to also be able to include “as” and “assert” in the syntax.
asset Foo from “foo” assert {} as “wasm-module”;

const M = import(Foo);

So I don’t think either of these syntax subsumes the need for a special asset syntax because all of them have to combine with asset references.

I agree with @sebmarkbage's thoughts here. How would get an asset reference for a WASM module? Something like the below seems very strange to me.
import module from "./foo.wasm" as "asset-reference:wasm-module";

The semantics of what an asset reference vs a "regular import" makes it pretty clear that these should be distinct: an asset reference fetches the underlying module on use (when it is passed to import()), where as import reflection attributes do not change when a module is fetched, but rather how it is exposed to the client.
From my understanding asset references are in their most basic form a static form of new URL(specifier, import.meta.url) with attached import assertions (I'm sorry for the egregious oversimplification). It allows for creating static references to assets that can be passed around and loaded at a later time.
TLDR: import assertion attributes change how the loaded asset is represented in JS, and asset references change when a module is loaded.

Regarding having import reflections inside of asset references: I don't think I agree with this. Asset references reference an asset (opaque, in the case of WASM it is WASM module). Import reflections just change how that asset is represented for the JS API.
A single asset can be loaded with different reflections. The code below would only fetch and parse the https://example.com/fibonacci.wasm module once:
import { fib } from "https://example.com/fibonacci.wasm";
import module from "https://example.com/fibonacci.wasm" as "wasm-module";

With asset references being a reference to the asset, not the module, the asset reference would not yet contain the reflection. The reflection would only be applied when actually performing the import:
asset fibonacci_wasm from "https://example.com/fibonacci.wasm";

const { fib } = await import(fibonacci_wasm);
const module = await import(fibonacci_wasm, { as: "wasm-module" });

I have multiple reasons for this:
a) the import reflection is something inherent to JS imports. It is not relevant when passing an asset reference to some other API like URL.createObjectURL().
b) asset references reference assets, not modules, or module bindings
c) as a user that passes an asset reference to some resource loader, I don't care or want to care what reflection of the module the resource loader ultimately uses to give me my desired output. I just give it a reference to the asset (a specifier in rough terms), and it then deals with loading that asset in the right format.

@lucacasonato I see. I buy that. Import reflections should be applied late, but import assertions would be applied early when combined with asset references.
The important thing is that then something like TypeScript needs to be able to encode the type for all possible import reflections. Otherwise you can't implement a generic version of a method that does that loading.
asset Foo from "module";
const foo: AParticularModuleInterface = instantiate(Foo);

This should be able to function instantiate<T>(reference: Reference<T>): Module<T> in a way that ensures that it correctly corresponds to the protocol.
That in turn puts certain constraints on what as can possibly be used for. I'd argue that the syntax is too generic for how it can be used then.
However, if that's satisfied, I retract my concern because as long as dynamic import(...) supports as on top of a reference you could still combine them.
Really I think the import reflection proposal's motivation is actually very close to asset references. Basically it wants to preload something without instantiating it so it's just an intermediate representation of it.
I've similarly wanted a reference to a JS module where I can synchronously execute its module body when needed instead of having that be done eagerly.

Can't you do that with an intermediate module (even a data URI) that does:
export default () => import('specifier')

?

Which part? The main things asset references provide is just formalizing the import('specifier') and new URL('specifier', import.meta.url) patterns into a standard syntax and make it nicer by avoiding intermediates.
However, there are a bunch of other features that we use in production environments that are not covered by ESM which makes it a partial story.

A smart Reference should contain a graph of modules so you can start fetching all of them without a waterfall.
Preloading all of them over the network without executing the module body graph.
Synchronous execution of the module body on demand. I.e. lazy execution without an async task/tick.
Serializing the Reference over the wire.

The way we use our references is we don't only use it with the built-in import(...) but also with user space bundler features. All of these other features should probably be added to the language as well. Once you do, it's not equivalent anymore.

Ah, i was responding to the last sentence in your comment about deferred execution.

Yea, the main thing is that import(...) is async. Not even a micro-task. Even if you preload into the HTTP cache, you need a macro-task to pull it up.
In React at least, if you render a tree of React.lazy components, that means that we have to unpop the stack and yield to the browser every time we hit one of these. Even if they're preloaded. That adds a ton of overhead. So the more we make things lazy, the worse the performance gets.
We work around this by using Webpack specific tricks to load all modules over the network into memory (lazy module initializer closures) and then call them synchronously on-demand.

What I really want is preload('specifier').then(module => execute(module).thisIsSynchronouslyAvailable);

I've similarly wanted a reference to a JS module where I can synchronously execute its module body when needed instead of having that be done eagerly.

What I really want is preload('specifier').then(module => execute(module).thisIsSynchronouslyAvailable);

There is already a separate proposal for lazily evaluating module bodies which seems to be what you're primarily wanting out of asset references.
And I don't see that asset references by themselves really address any of the points as to how such lazy evaluated modules would work, it's purely just a syntax for declaring one exists.

Regarding a different point:

A smart Reference should contain a graph of modules so you can start fetching all of them without a waterfall.

Like this is just what modulepreload (and preload) is for right?
Although there certainly could be an API for actually querying the status of a (module)preload as currently there doesn't seem to be a way to query the current state of preloads. Knowing the availability state of resources fetching/parsing would be a useful API even outside of the JS modules uses.
It might still be worth baking some of that directly into the JS spec though as it would allow you to detect network errors/parse errors long prior to attempting to evaluate. i.e. we could have something like:
await import.preload("some-specifier"); // This could still throw a parse/network error potentially
// Module is ready to evaluate whenever, actually importing the module can't
// fail with parse/network error anymore though

This would also fix your problem with HTTP cache load being a macrotask, as we could have import.preload even perform all linking and such (perhaps even call it import.link).

The important thing is that then something like TypeScript needs to be able to encode the type for all possible import reflections.

Because, as has been pointed out by others, setting as: "some-type" is likely to be done later anyway couldn't TypeScript use import Asset from "asset-specifier" as "asset"; just fine? Like TypeScript would just resolve "asset-specifier" as usual, and set the type of Asset to AssetReference<ModuleInfoForSpecifier>.
As a concrete example, suppose we had:
import WasmAsset from "./wasm-module.wasm" as "asset" assert { type: "webassembly" };

where ./wasm-module.wasm was detected to have single export compute : i32 -> i32 and an import log: (i32, i32) -> i32. Then TypeScript would set the type of WasmAsset to be AssetReference<WebAssemblyModule<{ imports: { log: (a: number, b: number) => number }, exports: { compute: (x: number) => number } }>> where WebAssemblyModule is some purely container type that allows types to work.
Userland code could easily use these types with TypeScript's rather powerful generics like:
async function instantiateModule<Imports, Exports>(
    ref: AssetReference<WebAssemblyModuleReference<{ imports: Imports, exports: Exports }>>,
    imports: Imports,
): Promise<WebAssembly.Instance<{ imports: Imports, exports: Exports }> {
    const module = await import(ref, { as: "wasm-module" }) as WebAssembly.Module<{ imports: Imports, exports: Exports }>;
    const instance = await WebAssembly.instantiate(module, imports) as WebAssembly.Instance<{ imports: Imports, exports: Exports }>;
}

And in practice this function would be unneccessary, as TypeScript could just type import() and WebAssembly.instantiate to have those types as neccessary i.e.:
interface ImportType {
    <Imports, Exports>(
        ref: AssetReference<WebAssemblyModuleReference<{ exports: Exports, imports: Imports }>,
        importOptions: { as: "wasm-module" },
    ): WebAssembly.Module<{ exports: Exports, imports: Imports }>;
}

interface WebAssembly {
    instantiate(
        module: BufferLike,
        imports: Record<string, any>,
    ): WebAssembly.Instance<{ imports: Record<any, , exports: any }>;
    // This would be new with asset references being well typed
    instantiate<Imports, Exports>(
        module: WebAssembly.Module<{ imports: Imports, exports: Exports }>,
        imports: Imports,
    ): WebAssembly.Instance<{ imports: Imports, exports: Exports }>;
}

Preloading locally is just one. Another use case is getting a reference on the server using server-side JS and then passing that reference along to trace where it's used and then use that as input to send an instruction to the client to preload.
The tricky part with addressing each part individually is that it's a long list of use cases. If there's no first-class concept of passing a reference around you can't build abstractions for those use cases programmatically in user space code.
The goal is also to do it with as little syntax as possible so that a local file can do it. This is not just for rare advanced cases but for very common cases.
E.g.
asset logo from "./logo.gif";
...
<img src={logo} />

This can ensure that the image is preloaded using early hints from the server, rendered as HTML with the correct URL, loaded and possibly preloaded as need client-side by the framework with hints it has.
Doing the same thing with one syntax for each feature would be way too much work for every image.

@sebmarkbage to clarify, both Luca and I actually support the principle of the asset references proposal even as a possible import reflection as described in this issue. The reference use case is the one I'm more familiar with and definitely agree with regards to static benefits for bundlers etc.
On the other hand would it be possible to obtain an asset reference for a resource that has not yet already been loaded? In this case, having a higher level preloader which can take the asset reference as an input may make more sense.
My point is more that preloading mechanics may be better separated from asset references as higher-level techniques on top of asset references.

I'm wondering if this can help TypeScript users.
Nowadays if you use an asset like this:

src/index.ts

const u = new URL('./x.png', import.meta.url)
await readFile(u)

And the file compiled into dist, will become a runtime error because x.png is not "compiled" or "copied" to the dist folder.
If we have this, maybe TypeScript knows it should also copy the asset files to the build target (but that depends on the TypeScript team, because theoretically they can also analyze new URL(..., import.meta.url)).
import u from './x.png' as 'asset-reference'
await readFile(u) // now OK because x.png is copied!

Not relevant to the refocused scope of this proposal. Please move any concerns about the asset references proposal to that proposal repo's discussion.


Remove usage of deprecated import "org.gradle.util.VersionNumber"

Since Gradle 7.6, we get a warning that this class will be removed in Gradle 9.0.
https://docs.gradle.org/current/javadoc/org/gradle/util/VersionNumber.html

@hverlin Thanks! Could you please you sign our CLA?

@Isammoc done

@hverlin Thank you!


Fixes issues during testing

Fixes #5.

Bug found:  as a node in the tree is deleted, the current algorithm will try to delete all the plots related to the workspaces with the node. There may be an exception from canvas as the algorithm does not try to identify whether the workspace is plot on canvas or not. The bookkeeping might also has defect.

Bug found: Original GSAS workspace is not deleted when a GSAS node is deleted.

Improvement 1: Auto re-scale on GSAS canvas

Improve 2: Generate G(r) for all the S(Q) displayed

Improvement 3: Expose 'Filter' and 'rho0' in PDFFourerTransform to S(Q) tab.


camera intrinsic for citywalk

Hi,
I appreciate your work. I find that camera intrinsic in citywalk.txt is [410, 410, 320, 180] (fx, fy, cx, cy). But the size of one processed image are [3, 528, 960] (c, h, w). To my knowledge,  (cx, cy) should be half of (h, w) of image. How to set the camera intrinsic for citywalk_2000hr dataset?

Thank you for your interest in our work.
The city walking videos should be of dimension 640x360.
If you want to use your own data, you should provide corresponding intrinsics.

Thanks for your reply. It has solved my concern about (cx, cy) settings. I still have the question about (fx, fy). Why is (410, 410)?

We get this value by running COLMAP coarsely on a short clip. We don't require the focal length to be metrically accurate as we only use the relative pose from VO as pseudo-labels.

Thanks a lot.


When I re-jailbreak sometimes, 17/31 purging software updates gets stuck and does not continue

Describe the bug
When rejailbreaking, step 17/31 purging software updates is stuck. Even after a few minutes of waiting it does not continue. When I kill the unc0ver app and then try to reopen the app it crashes. Only way to fix it is do a force restart.
To Reproduce
Steps to reproduce the behavior:
There is no specific time it can be reproduced.
Screenshots

Device (please complete the following information):

iOS Version: 13.5
iOS Device: 11 pro max
unc0ver Version: 5.0.1

Place an "x" between the brackets if true:

[ ] this is a bug others will be able to reproduce
[ ] this issue is present with all tweaks uninstalled(except for default packages) or disabled
[x] this issue is present after a rootfs restore
[x] this issue is present on the latest version of unc0ver

Logs
If applicable, add logs or error messages here.

Have you tried to backup and restore your iPhone via iTunes?

Have you tried to backup and restore your iPhone via iTunes?

Not yet because i have a 200gb backup. I don’t have a means of backing up my data. This happened for the first time in using the v5.0.0 version

How you updated to iOS 13.5? OTA or iTunes?

I updated via iTunes.

On May 25, 2020 at 7:53 PM,  <jirijanata (mailto:notifications@github.com)>  wrote:
How you updated to iOS 13.5? OTA or iTunes?
—
You are receiving this because you authored the thread.
Reply to this email directly,   view it on GitHub (https://github.com/pwn20wndstuff/Undecimus/issues/1999#issuecomment-633534843), or   unsubscribe (https://github.com/notifications/unsubscribe-auth/APWT5KF5H2L2ZDEB2W3SMWLRTJL2BANCNFSM4NJFCNZA).

Okay - there should be no updates, but you can try it - go to Settings -> General -> iPhone Storage and you can try to delete OTA updates, but there should be none.
Have you enough free space on your iPhone (1-10GB)? Was your iPhone Jailbroken before?
If you have SSD, than Backup and Restore should be done in 45-60 Minutes. Just make sure, that you have access to your Bank Application etc. They usually needs to be reactivated after Backup&Restore. I think, that in next few days there will be few more new builds, so you can wait a little bit, but for now is restore is the quickest method.

Thanks for the help.   I'll try it out.

On May 25, 2020 at 8:02 PM,  <jirijanata (mailto:notifications@github.com)>  wrote:
Okay - there should be no updates, but you can try it - go to Settings ->  General ->  iPhone Storage and you can try to delete OTA updates, but there should be none.
Have you enough free space on your iPhone (1-10GB)? Was your iPhone Jailbroken before?
If you have SSD, than Backup and Restore should be done in 45-60 Minutes. Just make sure, that you have access to your Bank Application etc. They usually needs to be reactivated after Backup&Restore. I think, that in next few days there will be few more new builds, so you can wait a little bit, but for now is restore is the quickest method.
—
You are receiving this because you authored the thread.
Reply to this email directly,   view it on GitHub (https://github.com/pwn20wndstuff/Undecimus/issues/1999#issuecomment-633538287), or   unsubscribe (https://github.com/notifications/unsubscribe-auth/APWT5KDZ7F2NM3ZFJSEN2E3RTJM43ANCNFSM4NJFCNZA).


[FEATURE]  Strip New Lines for Gemini and Vertex embedding

**Strip New Lines option for Gemini and Vertex embedding **
Because Input tokens of Gemini and Vertex very big. (about 16K token). Lead to low performance.

@kientv I am interested to work on this issue but having some doubts can you please tell more about the problem and steps to reproduce the issue.


⚠ Bofrost.at has degraded performance

In 4a748e7, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1186 ms

Resolved: Bofrost.at performance has improved in b99ee3b.


User experience

Can you change the icon to a fill showing that I have raised my hand?
Can I send a message?
if I press the home button at the top left whilst inside a room, does it leave the room

fixed
coming soon
no


pie chart

[Enter feedback here]

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

ID: da79f77c-99a2-2f45-027f-5460b64f6545
Version Independent ID: af5b7158-a1e1-3f78-2bb4-6b2571452334
Content: Create a chart in a canvas app - Power Apps
Content Source: powerapps-docs/maker/canvas-apps/use-line-pie-bar-chart.md
Service: powerapps
GitHub Login: @fikaradz
Microsoft Alias: fikaradz

how to add rows  for columns chart

Thank you for reaching out. Please add more rows to the table source for the chart.


Add declaration confirming mentor has been told their information will be shared

 User needs to confirm that mentors have been informed of how their data has been used and have been given a copy of the privacy notice


propose pending_window of 2

This change shortens the wait time to remove a stale transaction (validator rejected) from 100 to 2.
It matches this request:
Fixes: #1563

I ran this test 10 times to check for intermittent effects.
Side effect, this test is now "fast" because is generates fewer blocks:
 Nextest run ID ca63541f-2d8c-4840-b651-05ef6b14383b with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  40.004s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  40.005s] 1 test run: 1 passed, 367 skipped
    Finished `test` profile [optimized] target(s) in 0.14s
------------
 Nextest run ID a034782d-4a00-427b-bb93-4e8195ffadc9 with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  39.606s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  39.607s] 1 test run: 1 passed, 367 skipped
    Finished `test` profile [optimized] target(s) in 0.14s
------------
 Nextest run ID 45832779-7e19-4f09-a4eb-55fdf4270f00 with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  38.617s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  38.618s] 1 test run: 1 passed, 367 skipped
    Finished `test` profile [optimized] target(s) in 0.14s
------------
 Nextest run ID 0115f6b6-646f-4c66-8c40-c1a1fcf04aa1 with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  38.614s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  38.615s] 1 test run: 1 passed, 367 skipped
    Finished `test` profile [optimized] target(s) in 0.14s
------------
 Nextest run ID 1eca71bc-2fc5-443c-8292-25d63c21bdb0 with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  38.626s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  38.627s] 1 test run: 1 passed, 367 skipped
    Finished `test` profile [optimized] target(s) in 0.13s
------------
 Nextest run ID eabfdb3d-a261-46a6-81f3-59cfb0bdbb5e with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  38.615s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  38.615s] 1 test run: 1 passed, 367 skipped
    Finished `test` profile [optimized] target(s) in 0.14s
------------
 Nextest run ID 659c52b1-3d7b-45cd-8be3-01de62d5bbd6 with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  38.617s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  38.617s] 1 test run: 1 passed, 367 skipped
    Finished `test` profile [optimized] target(s) in 0.13s
------------
 Nextest run ID 81df5e2a-9910-4e7c-a9cb-def59f1ef60f with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  38.622s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  38.622s] 1 test run: 1 passed, 367 skipped
    Finished `test` profile [optimized] target(s) in 0.13s
------------
 Nextest run ID b6e7a757-8cf3-412c-9991-63993742582a with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  38.641s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  38.641s] 1 test run: 1 passed, 367 skipped
    Finished `test` profile [optimized] target(s) in 0.14s
------------
 Nextest run ID 854a783f-a3ac-44ae-aa03-0a82304faf89 with nextest profile: default
    Starting 1 test across 18 binaries (367 tests skipped)
        PASS [  38.616s] libtonode-tests::concrete fast::mempool_clearing_and_full_batch_syncs_correct_trees
------------
     Summary [  38.617s] 1 test run: 1 passed, 367 skipped

Please wait for CLT pass before merging.

CLT passes, this is review ready.


Non-nullable FK's get On Delete Behavior of ClientSetNull when scaffolding

Maybe I'm misunderstanding what ClientSetNull does, but when using dotnet ef dbcontext scaffold, if I have a required relationship from a child to a parent (non-nullable foreign key), scaffold always generates the modelBuilder with ClientSetNull behavior on delete.
I'm not sure why, the field in the database is not null, the property generated is not nullable.
The documentation (when hovering) states:
"This is the default for optional relationships. That is, relationships that have nullable foreign keys".
Expected behavior:
DeleteBehavior.Cascade is used instead. If a child has a non-nullable FK that indicates it cannot live without the parent. If the parent dies, so must the child.
Or maybe I'm misunderstanding something and need to quit coding after 2AM :>.
 The documentation describes the behavior of the EF Core runtime, but it seems in this case DbContext scaffolding is resulting in an explicit configuration so the defaults are not applied:
                    .OnDelete(DeleteBehavior.ClientSetNull)

I suspect we may be doing this on purpose because there is no ON DELETE CASCADE specified in the database, although I would like us to take a closer look (perhaps Restrict would have been more appropriate in this case).

Notes from triage: ClientSetNull for a required relationship (non-nullable FK) means that if an attempt is made to set the FK to null, then an exception will be thrown on SaveChanges. This is functionally correct for this case, but after the change to Restrict in #9703 it might be clearer to start reverse engineering to Restrict  at that time. Closing this as a dupe of #9703 with a note on #9703 to update reverse engineering.

Thanks for the triage and explanation of what exactly this does.
The documentation on the enum was confusing and I'm not sure if it ever just came out and said "ClientSetNull for a required relationship (non-nullable FK) means that if an attempt is made to set the FK to null, then an exception will be thrown on SaveChanges" ... Which I think relates to #9687.


Warning message for invalid key in configuration file

This is a fix that I was able to come up with!
It's hacky, but it works.

Hi @gloof11 can you write a cpp unit test? (probably in https://github.com/apache/incubator-kvrocks/blob/unstable/tests/cppunit/config_test.cc).

It seems the code is still not formatted properly.
And I think you need give a reason why you do not just check iter == fields_.end(). TBH I cannot understand your code.

Just made a commit. I read up on how maps actually work in Cpp. In the refactor, if the key that was passed to "iter" was not a valid key via "find()", then it would be equivalent to "past-the-end". It simply checks if both values are considered "past-the-end", and throws an error message if that's the case.

Also, I'm not familiar at all with writing unit tests in C++. I'm sorry :(

I don't know whether it needs a test because we can't get a log message in th test. I think the code is obvious.

@infdahai Yes, I also think that a test, in this case, is too fanatic.

You need to revert the change of src/common/status.h to make the CI pass.

Hi @gloof11 , any progress or problem here?


entering valid website gives "invalid url"

When www.teawithstrangers.com is entered, an incorrect "invalid url" error is shown.
This might be indicative of some random edge case involving the Tea With Strangers website.

Fixed :smiley:


fix: update customData attribute issues AB#8076

@elwinschmitz there were so many issues with this code... 3 independent errors (and 1 unnecessary line). This clearly was not tested properly by either of us..
PS: Let's use your work-around for now on production, and have this go in the next release.

The PR in which it happened was pretty big, so no real surprise it got overlooked there... ;)
https://github.com/global-121/121-platform/pull/2062/files

Sure, but then we need other checks and balances to catch something like this. That would be the feature test scenario's.
BTW: In our new way-of-working we would have defined during refinement this scenario as one that needed testing. So there is a plan/progress.


Enhancement: BetterUI Integration

Most notably, the Crit Chance stat isn't affected by Scratch Ticket.

Closing all suggestion/enhancement/balancing/feedback issues. A new, actual discussion board will be set up after the next mod update.
Yeah, I think this is doable. Will add in the next update.


chore: tell git that images are binary

Stop git from transmorphing newlines in the .png and .jpg files that we
have now.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.

Honestly I think of having the .gitattributes as a smell (not a great one), as it's so easy to shoot oneself in the foot with this. But yeah... okay.

I certainly agree, and I'm not sure why we have it. To appease editors on Windows that insist on changing all LFs to CRLFs on save? Do those still exist?
But anyway, we have it and ASSUMING it was added for a good reason, we'll have to contend with it.


Use a part object as the layout template's scope

Instead of using a struct with a page accessor as the layout's scope, use a Rodakase::View::Part` object like we already do for the non-layout templates.
This allows rendering of partials via == partial_name instead of having to chain them onto the page object (i.e. == page.partial_name).
The general upshot is that it makes authoring layouts much more consistent with authoring templates by making the same partial rendering behaviour apply everywhere.

Resolved in https://github.com/dry-rb/dry-view/pull/3


Fix issue119, restore cwd before saving the report

Codecov Report

Merging #122 (27ed9b2) into master (f6b7512) will decrease coverage by 1.40%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##            master     #122      +/-   ##
===========================================
- Coverage   100.00%   98.59%   -1.41%
===========================================
  Files           22       22
  Lines         2133     2135       +2
===========================================
- Hits          2133     2105      -28
- Misses           0       30      +30

Impacted Files
Coverage Δ

src/viztracer/main.py
98.47% <100.00%> (-1.53%)
:arrow_down:

src/viztracer/viztracer.py
94.77% <0.00%> (-5.23%)
:arrow_down:

src/viztracer/report_builder.py
95.04% <0.00%> (-4.96%)
:arrow_down:

src/viztracer/patch.py
95.28% <0.00%> (-4.72%)
:arrow_down:

src/viztracer/simulator.py
96.77% <0.00%> (-3.23%)
:arrow_down:

src/viztracer/flamegraph.py
97.64% <0.00%> (-2.36%)
:arrow_down:

src/viztracer/prog_snapshot.py
99.44% <0.00%> (-0.56%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6b7512...27ed9b2. Read the comment docs.


Support Ruby 2.2.0

We :heart: the edge!

Coverage increased (+0.44%) to 90.24% when pulling dda136d208aa785c3a4e922a09bad2280cee028d on mallowlabs:id/211 into e2d442b3634fe80b7f6bb0b6fd67a83d2a7c2a6a on codefirst:master.

Coverage increased (+0.44%) to 90.24% when pulling dda136d208aa785c3a4e922a09bad2280cee028d on mallowlabs:id/211 into e2d442b3634fe80b7f6bb0b6fd67a83d2a7c2a6a on codefirst:master.

Coverage increased (+0.44%) to 90.24% when pulling 13c24e1a10f5cc8362ff8e908f391c791772c333 on mallowlabs:id/211 into e2d442b3634fe80b7f6bb0b6fd67a83d2a7c2a6a on codefirst:master.

Coverage increased (+0.44%) to 90.24% when pulling 13c24e1a10f5cc8362ff8e908f391c791772c333 on mallowlabs:id/211 into e2d442b3634fe80b7f6bb0b6fd67a83d2a7c2a6a on codefirst:master.

LGTM


Attempted import error: 'fade' is not exported from<EMAIL_ADDRESS>

Full error:
Failed to compile
<EMAIL_ADDRESS>Attempted import error: 'fade' is not exported from '@material-ui/core/styles'.

[ ] The issue is present in the latest release.
[ x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
I get this error when loading a default create-react-app app with @material-ui/core@next
Expected Behavior 🤔
Should just work I think!
Steps to Reproduce 🕹
Steps:

create-react-app test
npm install @material-ui/core@next
npm start

Your Environment 🌎
System:
OS: Linux 5.11 Manjaro Linux
Binaries:
Node: 16.1.0 - /usr/bin/node
Yarn: 1.22.10 - /usr/bin/yarn
npm: 7.16.0 - /usr/bin/npm
Browsers:
Chrome: Not Found
Firefox: Not Found
npmPackages:
@material-ui/core: ^5.0.0-alpha.36 => 5.0.0-alpha.36
@material-ui/private-theming:  5.0.0-alpha.35
@material-ui/styled-engine:  5.0.0-alpha.34
@material-ui/system:  5.0.0-alpha.36
@material-ui/types:  6.0.1
@material-ui/unstyled:  5.0.0-alpha.35
@material-ui/utils:  5.0.0-alpha.35
@types/react:  17.0.11
react:  17.0.2
react-dom:  17.0.2
</details>

You should import it like this
import { fade } from "@material-ui/core/styles/colorManipulator"

@AlvesJorge thanks for reporting the issue, from what I look fade is changed to alpha in v5.0.0-alpha.12
If you can provide the repo, that would be great. I can take a look on it.

@siriwatknp  @SnappyWebDesign I meant to say, this is happening in a brand new create-react-app with core@new installad, with NO imports NO nothing.
I am simply getting this error even without changing the demo app.
This error is happening on my real project where I am using , or was trying to use some features from 5.0.0, but right now it's happening for no reason. I don't think I installed any package globally.

It doesn't look like this bug report has enough info for one of us to reproduce it.
Please provide a CodeSandbox (https://material-ui.com/r/issue-template-next), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve

Fortunately a fresh clean install resolved it for the new project.
As for the real project where this bug happened I was lucky I had a not too old snapshot I could go back to.
I still have no  idea what was causing this bug , I think I had issues with how I installed my packages.


Map opens "zoomed in" when app brought to foreground with metal-support -branch

Using iOS SDK built from the metal-support -branch, map opens "zoomed in" when bringing front from background, and then updates to correct zoom level. This causes visible flickering.
This doesn't happen with SDK built from master.
Steps to reproduce

Start iOS SDK demo application built from metal-support -branch
Move app to background (don't close it)
Click app icon to bring back to foreground

Expected behavior
Map opens to correct zoom level without flickering
Actual behavior
Map opens zoomed in, then quickly shows actual zoom level causing flicker.
Following is a video showing the issue with the iOS SDK Demo App, first in normal speed and then slowed down for better view:
https://user-images.githubusercontent.com/2369584/115957491-7e78c780-a50b-11eb-9589-ade706062091.mov
Configuration
Maplibre iOS SDK version: metal-support -branch commit bae8d18
iOS/macOS versions: iOS 14.4
Device/simulator models: iPhone 11 Simulator
Xcode version: 12.4

This problem can be fixed with PR #83

Was fixed with #83

Reopening until #83 is merged to metal branch

Reopening until #83 is merged to metal branch

@juhieta  I've merged #83 into metal branch, are we good to close this one?

Reopening until #83 is merged to metal branch

@juhieta I've merged #83 into metal branch, are we good to close this one?

Great, thanks and let's close! 👍


Styling in main page

Describe the issue
The main page is not looking good, can use better fonts and table to show the projects.
Screenshots

Desktop (please complete the following information):

OS: Windows
Browser Edge
Version 125.0.2535.92

Additional context
I can correct the style

Ya go for it make a PR doing changes according to You i will see it
Assigned @kom-senapati

ccompleted by #46


daphne_worker: Garbage collect AggregateStore instances we don't need anymore

Similar to ReportsProcessed, instances of AggregateStore can be garbage collected by setting an alarm to delete the instance when it is first touched.
Some requirements:

The lifetime should be configurable via an environment variable
We need to make sure to delete instances only after there not likely to be collected (this depends on SLAs)

Fixed by #554


Add License information to extension page

Would you please add licensing information as we're unable to complete review on the extension and then use it internally within our enterprise ADO instances.

The code is licensed under the MIT license, see https://github.com/cschleiden/azure-boards-estimate/blob/master/LICENSE.
Is that not enough?

Yes the MIT license is enough, but can you get that added to the marketplace extension page?  It will need to be on that page for our reviewers to pass the extension.


cl-font-lock now on Melpa (uses CL symbols)

https://github.com/equwal/cl-font-lock
Not sure what you might want to do about that. I used your code from emacs-settings and sent it up to Melpa.

Well, in the best case, it should be built-in, I suppose.


Do not use timer:sleep on tests

Implement a validator for inaka/erlang_guidelines#82

You can also go with no_common_caveats_call and a dirs targetting folder tests.


doc: status badges

Changes

:broom: Update Build status README.md badge to query CI action
:broom: Update all badges in README.md to knative-sandbox/kn-plugin-func

/kind chore

/lgtm
/approve


bug 2006945: extend hardcoded restmapper for cluster-bootstrap to avoid crashlooping bootstrap kube-apiserver

found on aws-ovn, 4.9 installation

bootstrap-kube-apiserver starts, readyz=false
cluster-bootstrap starts creating resources, but discovery does not return a full list
without a mapping for CRD, the rolebindingrestriction resource isn't created
without rolebindingrestrictions defined, the bootstrap-kube-apiserver poststarthook for initial rolebindings cannot create (blocked by admission)
the poststarthook fails, preventing initial rolebindings from being created causing a crashloop
additionally, permissions granted in our rendered artifacts are not added, this includes permissions for CSR creation for nodes
kubelets trying to join the cluster lack RBAC permissions for the initial CSR and anything before the kubelet client
pods trying to start may lack RBAC bound SCC permissions
operator pods that rely on visibility to config CRDs and CRs are delayed significantly by the lack of both

This avoids those conditions by hardcoding the RESTMappings that appeared to be missing and hopefully breaking the racy loop

/hold
needs proof PR in cluster-bootstrap

proof PR is https://github.com/openshift/cluster-bootstrap/pull/64

Possibly related to https://bugzilla.redhat.com/show_bug.cgi?id=2005967

Bug filed for this specific issue: https://bugzilla.redhat.com/show_bug.cgi?id=2006945

/bugzilla refresh

/cherrypick release-4.9

proof worked
/hold cancel

/lgtm


3D model black on certain Android devices since v1.9.0

Description
Astronaut model on modelviewer.dev and different models on other sites are completely black on certain Android devices when upgrading beyond v1.8.0. I.e. it works OK on 1.8.0 or lower but fails on 1.9.0 or higher on the same device / browser.
Console shows error: model-viewer.js:16340 THREE.WebGLRenderer: EXT_color_buffer_float extension not supported.
model-viewer.js:16340  (line number and snippet are from a later version - whatever is currently on modelviewer.dev but the error is the same on v1.9.0).
		init: function ( capabilities ) {

			if ( capabilities.isWebGL2 ) {
				getExtension( 'EXT_color_buffer_float' );
// it comes into this if, but getExtension returns null. This happens in both v1.8.0 and v1.9.0
			} else {

				getExtension( 'WEBGL_depth_texture' );
				getExtension( 'OES_texture_float' );
				getExtension( 'OES_texture_half_float' );
				getExtension( 'OES_texture_half_float_linear' );
				getExtension( 'OES_standard_derivatives' );
				getExtension( 'OES_element_index_uint' );
				getExtension( 'OES_vertex_array_object' );
				getExtension( 'ANGLE_instanced_arrays' );

			}

			getExtension( 'OES_texture_float_linear' );
			getExtension( 'EXT_color_buffer_half_float' );
			getExtension( 'WEBGL_multisampled_render_to_texture' );

		},

		get: function ( name ) {

			const extension = getExtension( name );

			if ( extension === null ) {
// This is output to console only on v1.9.0+
				console.warn( 'THREE.WebGLRenderer: ' + name + ' extension not supported.' );

			}

			return extension;

		}

	};

Stacktrace:
get (model-viewer.js:16340)
E (model-viewer.js:22375)
z (model-viewer.js:23430)
Tr.setupRenderTarget (model-viewer.js:23846)
Or.setRenderTarget (model-viewer.js:27783)
_textureToCubeUV (model-viewer.js:15652)
_fromTexture (model-viewer.js:15471)
fromEquirectangular (model-viewer.js:15366)
get (model-viewer.js:16178)
(anonymous) (model-viewer.js:27365)
Or.renderBufferDirect (model-viewer.js:26607)
Dt (model-viewer.js:27215)
Pt (model-viewer.js:27184)
Lt (model-viewer.js:27106)
Or.render (model-viewer.js:26926)
render (model-viewer.js:55383)
(anonymous) (model-viewer.js:55232)
(anonymous) (model-viewer.js:26799)
r (model-viewer.js:12599)
requestAnimationFrame (async)
r (model-viewer.js:12601)

call comes from the following code where internalFormat is 34842 on v1.9.0+
I think internalFormat is 32856 on v1.8.0 when it works OK but I'm debugging minified code so it's hard to tell for sure that it's the same function.
getInternalFormat
....
		if ( internalFormat === 33325 || internalFormat === 33326 ||
			internalFormat === 33327 || internalFormat === 33328 ||
			internalFormat === 34842 || internalFormat === 34836 ) {

			extensions.get( 'EXT_color_buffer_float' );

		}

Did the logic in getInternalFormat change in 1.9.0?
Is there a way to get the newer versions to work on these devices or is the only solution to stay on 1.8.0?
Live Demo
Can be seen on modelviewer.dev with the (later than 1.9.0) version deployed on there today. Screenshot on https://github.com/google/model-viewer/issues/2949 shows how it looks (but that is describing a different issue)
Version

model-viewer: v1.9.0 onwards

Browser Affected

[x] Chrome, version: 100.0.4896.127
[ ] Edge
[ ] Firefox
[ ] IE
[ ] Safari

OS

[x] Android
[ ] iOS
[ ] Linux
[ ] MacOS
[ ] Windows

AR
N/A

Yes, this logic changed and went back and forth a bit (have you tested all the versions beyond 1.9?). We upgraded to floating point textures internally for PMREM, which simplified the code and improved the speed quite a bit. We couldn't find any devices that didn't support the extension we needed, but it was pretty likely something existed somewhere. What device(s) have you found this problem on?

I've just tested on 1.11.0 and 1.12.0. It behaves the same as 1.9.0 on both of those. The only device I know of currently with this issue is Huawei P8 (quite an old device).

Well, that's good at least. It's just not possible for us to support every old device, though we make a best effort especially for the more common ones. At least the old library versions are always available if you really need it for that device.


ntr: intestinal hexose absorption

(This would be a generalization of the existing term GO:0001951 intestinal D-glucose absorption.)
GO:new intestinal hexose absorption. Uptake of hexoses, notably D-glucose, fructose, and galactose, into the blood by absorption from the small intestine.
Is_a child of  GO:0008645 hexose transport. and of  GO:0050892 intestinal absorption.
I guess GO:0001951 would become an is_a child of GO:new.
GO:new would have the same taxon constraints as GO:0001951 (at least - never in yeasts and only in eukaryotes looks like annotations to plants, protozoa, and multicellular invertebrates with no intestines would be permitted.)

We should make all kinds of intestinal absorbtion be the whole process from the intestinal lumen into the blood. Let's standardize the terms as part of this ticket.
Maybe even play around with logical defs specifying the substance and target start and end locations. Could become a design pattern if we think there will be enough of them.

The pattern we use for transport across membrane should work just fine if you can use Uberon or CL to specify the anatomical structure or cell type transported across.
'transports or maintains localization of' some {chemical}
and 'has target start location' some 'intestinal lumen'
and 'has target end location' some  blood??
and 'results in transport across' some ??

On second thought, I don't think this specification will work for all organisms. It depends on what GO means by intestine and blood. In UBERON:0000160 intestine is quite specific, but there are annotations to fly and worm. This doesn't affect the addition of the new subclasses.

Three comments.
Comment on David O-S pattern: absorption here means moving an entity across two membranes and one cytosol: from the gut lumen into the cytosol of a cell lining the gut, and from that cell into the organism's circulatory system.
Comment on David H's second thought: if sorting out the kinds of gut and whether they are equivalent for the purpose of amall-molecule absorption is tricky, can we start by using a taxon restriction - only in chordates? only in vertebrates? - to generate terms that are workable for the guts we're familiar with.
Finally, the "hexose" I have in mind is CHEBI:18133 - hexose "Any six-carbon monosaccharide which in its linear form contains either an aldehyde group at position 1 (aldohexose) or a ketone group at position 2 (ketohexose)." Note that this "hexose" is more general than the one described in a relevant current GO definition: GO:0008645 hexose transport "... Hexoses are any aldoses with a chain of six carbon atoms in the molecule." Excluding ketose sugars leaves out molecules including fructose, which definitely are substrates for mammalian intestinal absorption.

Hi Peter,
I don't think we need to add additional taxon constraints. I think the addition of the logical def would inadvertently add one if we are not careful about anatomical structures that are chosen and what they mean. I don't see any problem with simply having the term mean exactly what you suggest above, intesine (in its broadest sense) lumen to the circulatory system.
The equivalence axiom of the hexose transport term uses CHEBI:18133, so that is in fact what the term means and it is automatically characterized according to it. The textual def should be updated.

On Mar 4, 2017, at 9:45 AM, David Hill<EMAIL_ADDRESS>wrote:

On second thought, I don't think this specification will work for all organisms. It depends on what GO means by intestine and blood. In UBERON:0000160 intestine is quite specific, but there are annotations to fly and worm. This doesn't affect the addition of the new subclasses.

Uberon has more general classes to deal with this:
hemolymphatic fluid (UBERON_0000179)
lumen of intestine (UBERON_0018543) @cmungall - is this general enough? - if not we need a new term in Uberon.

intestine is intended to be generic
def: "Segment of the alimentary canal extending from the stomach to the anus and, in humans and other mammals, consists of two segments, the small intestine and the large intestine." [GOC:GO, Wikipedia:Intestine]

Comments welcome on the definition. It doesn't work well for species like zebrafish that lack a true stomach, but the intent is to represent the terminal portion.
The mammal part should really be gloss as it's of the form "an example is found in..."
I'm partially in favor of relabeling the class "last half of digestive tract" or similar, and having a mammal specific 'true intestine' that is part of this.

Maybe of relevance
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4458075/

Add term per request and altered def as requested.

But the new term  GO:0106001 intestinal hexose absorption is shown at quickGO as an is_a child of  GO:0001951 intestinal D-glucose absorption. SHould be the other way around.

fixed


Users groups api and permissions

Created permissions to different groups of users, all groups are automaticly creating after first migrations. Also added api, that shows all groups which realted with request user

Added folders and statistic


Updated Tesseract wrapper to support pdf write (render api)

Updated Tesseract wrapper to support pdf write (and therefore all of the rende api)
Based on pull request 269

Probably don't want anything but the first commit. Everything after that is going to likely be internal to this fork sorry.

Okay thanks for the heads up.
On Wed, 27 Jul 2016, 17:30 ghostbust555<EMAIL_ADDRESS>wrote:

Probably don't want anything but the first commit. Everything after that
is going to likely be internal to this fork sorry.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/charlesw/tesseract/pull/281#issuecomment-235623349,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPzyEhteH0z9V0x179jt0AI6MwDEvEkks5qZ3mvgaJpZM4JVXqV
.

Well I've finally started looking into this in particular I've been thinking about which external api would work best and reconciling the changes introduced by pull request #269 by @nguyenq. My current though is to design an api that meet the following requirements:

Should allow the user to specify one or more renders when processing an image.
Should have a C# styled API, that is shouldn't require the use of Intptr's etc.

A rough API that does a okay job, in my opinion, of meeting these constraints would be:
TesseractEngine.Process(Pix pix, String pageName, int pageNumber, IEnumerable<IResultRenderer> renderers): bool

class ResultRender {
       PdfResultRenderer CreatePdfRender(String outputDirectory, String fontDataDirectory)
}

Implementation wise the TesseractEngine.Process would create the actual native Result Renderer hierarchy before invoking the ProcessPages api call. The main benefit is that it gets around issues such as having to keep track of what the next renderer and mutable render hierarchies while also being more natural api for .net developers.
Any thoughts @ghostbust555  and @nguyenq?

Hi,
the PDFRendererCreate funktion in tesseract copies the string pointer of the data directory instead of the string instead. We need to keep the passed string alive as long as the renderer object exists.
Here is the patch:
--- tesseract.net\src\Tesseract\Interop\BaseApi.cs	Mon Sep 19 09:34:34 2016
+++ tesseract.net_bugfix\src\Tesseract\Interop\BaseApi.cs	Mon Sep 19 09:19:21 2016
@@ -236,7 +236,7 @@
         [RuntimeDllImport(Constants.TesseractDllName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "TessHOcrRendererCreate2")]
         IntPtr HOcrRendererCreate2(string outputbase, int font_info);
         [RuntimeDllImport(Constants.TesseractDllName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "TessPDFRendererCreate")]
-        IntPtr PDFRendererCreate(string outputbase, string datadir);
+        IntPtr PDFRendererCreate(string outputbase, IntPtr datadir);
         [RuntimeDllImport(Constants.TesseractDllName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "TessUnlvRendererCreate")]
         IntPtr UnlvRendererCreate(string outputbase);
         [RuntimeDllImport(Constants.TesseractDllName, CallingConvention = CallingConvention.Cdecl, EntryPoint = "TessBoxTextRendererCreate")]
--- tesseract.net\src\Tesseract\ResultRenderer.cs	Mon Sep 19 09:34:34 2016
+++ tesseract.net_bugfix\src\Tesseract\ResultRenderer.cs	Mon Sep 19 09:22:39 2016
@@ -30,9 +30,10 @@
         /// <returns></returns>
         public static IResultRenderer CreatePdfRenderer(string outputFilename, string fontDirectory)
         {
-            var rendererHandle = Interop.TessApi.Native.PDFRendererCreate(outputFilename, fontDirectory);
+            IntPtr fontDirPtr = Marshal.StringToHGlobalAnsi(fontDirectory);
+            var rendererHandle = Interop.TessApi.Native.PDFRendererCreate(outputFilename, fontDirPtr);

-            return new ResultRenderer(rendererHandle);
+            return new ResultRenderer(rendererHandle, fontDirPtr);
         }

         /// <summary>
@@ -112,12 +113,14 @@
         }

         private HandleRef _handle;
+        private IntPtr[] _globalRefs;

-        protected ResultRenderer(IntPtr handle)
+        protected ResultRenderer(IntPtr handle, params IntPtr[] globalRefs)
         {
             Guard.Require("handle", handle != IntPtr.Zero, "handle must be initialised.");

             _handle = new HandleRef(this, handle);
+            _globalRefs = globalRefs;
         }

         /// <summary>
@@ -167,6 +170,12 @@
             if (_handle.Handle != IntPtr.Zero) {
                 Interop.TessApi.Native.DeleteResultRenderer(_handle);
                 _handle = new HandleRef(this, IntPtr.Zero);
+            }
+            if (_globalRefs != null)
+            {
+                foreach (var ptr in _globalRefs)
+                    Marshal.FreeHGlobal(ptr);
+                _globalRefs = null;
             }
         }
     }

Good catch @denniskas, will merge your fix in and issue a new build (sorry for the delay!).

Closing functionality is covered by work done in issue #193.


Precompute contract address on ethers deployment

Description
On contract deployment, most of the tools pre-compute the contract address on the client-side, based on sender address and nonce. In the Hedera ecosystem, it's not like that, where it's just the next available id.
https://docs.ethers.io/v5/api/utils/address/#utils--contract-addresses
ethers.utils.getContractAddress( transaction )
from + nonce

In the end, the contract deployment is not 100% compatible with the Ethereum workflow.
Steps to reproduce
Deploy a contract with an ECDSA account and alias.
Additional context
No response
Hedera network
other
Version
v0.1.0
Operating system
No response

This issue cannot be resolved from our side. Unless a change is introduced in ethers, there is no workaround. My suggestion is to explicitly state in the developer documentation of the relay that this is one of the incompatibilities with existing web3 tooling. That being said, I do think that we might not have this issue with truffle/web3js

@Daniel-K-Ivanov let's spend some time on this and see what work around may be possible and what the final solution should be

Workaround add documentation to the etherjs tool dir with code snippet and workaround e.g reinitialization
Final solution. Explore PR on etherjs or open a local ticket with described fix steps


Convert get-workspaces to TypeScript

The first of likely many PRs, I just wanted to convert a small thing first.

If we could add a throw or more serious erroring when there is no packageName, then I think this would be good to merge.
This should probably have its own changeset as well.


Roll engine 015c0246aebc..4a4f1823eb5b (4 commits)

https://github.com/flutter/engine/compare/015c0246aebc...4a4f1823eb5b
git log 015c0246aebc6fc23f30004e3319b6d1e85a885a..4a4f1823eb5b3a08b703f0190ab309af8b65f721 --no-merges --oneline
4a4f1823e Roll src/third_party/skia 3d42a0521d12..f3f7059cb736 (6 commits) (flutter/engine#8188)
39fea5502 Roll src/third_party/skia f34d0c79dc6c..3d42a0521d12 (1 commits) (flutter/engine#8187)
926e65531 Roll src/third_party/skia d3cfbcae10eb..f34d0c79dc6c (2 commits) (flutter/engine#8186)
575d61f49 Roll src/third_party/skia 49ea3194535c..d3cfbcae10eb (9 commits) (flutter/engine#8184)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop
the roller if necessary.

Auto-roller completed checks. About to merge.


Refactor DB mapping relations

From the conversation:
我會找時間整理一下現在 DB mappings 之間的 relation。
之前為了要讓使用者可以比較好 filter 一些東西，所以 foreign key 擺放得有點奇怪（非傳統 RDBMS 的結構），但當初設計的 foreign key 擺放方式，對『按照「最後有人回報」的間來排序』沒有助益 orz

整理完 mapping 之後，一併整理 query 的需求（例如說要按照啥排序、要做出一個列表來列出「有 non-article」的文章等等），希望能與 @darkbtf 或 @sayuan  一起討論一下要怎麼調整 mapping 比較好 @@

[x] Update UML diagram
[x] Conduct discussions & reach concensus
[x] Implement as index
[ ] Change API server, make unit tests pass

filter 的需求：
https://github.com/cofacts/rumors-api/issues/35
另外，這次的 DB mapping relation 也可以加入 segment 設計。
http://beta.hackfoldr.org/cofacts/https%253A%252F%252Fhackmd.io%252Fs%252FrJQaJ9wwl

Segment 可以塞進 ReplyConnection

https://github.com/cofacts/rumors-api/issues/36 說 replyConnection 應該要加個 delete flag (status flag)

Proposal in: https://hackmd.io/MYBgHAjAJgzAhnAtATgGwDMCmiAsseIBGwcA7IhJulIXBOqgKwgBMQA=?view

Discussion initiated here:
https://g0v-tw.slackarchive.io/cofacts/page-3/ts-1492362028116218

DB Migration Process
Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html
1. Construct snapshots from legacy DB

Load DB from production site to local machine and spin it up inside elasticsearch:5.6.4 docker container
Add a snapshot repo for the legacy ES:

PUT /_snapshot/my_backup
{
  "type": "fs",
  "settings": {
    "location": "/usr/share/elasticsearch/data/bkup"
  }
}

Do backup

PUT /_snapshot/my_backup/snapshot_1?wait_for_completion=true

Upon complete, the DB backup should be within the bkup folder, along with elasticsearch's nodes directory.
We can then turn of the legacy ES server. It has no use now.
2. Restore the snapshot in new DB with renamed indexes

Spin up new DB with the new mapping
Move bkup alongside with the new elasticsearch's nodes directory
Add a snapshot repo for the new ES:

PUT /_snapshot/my_backup
{
  "type": "fs",
  "settings": {
    "location": "/usr/share/elasticsearch/data/bkup"
  }
}

Check the backup using:

GET /_snapshot/my_backup/snapshot_1

Execute restore process, renaming every old index to append _legacy

POST /_snapshot/my_backup/snapshot_1/_restore
{
  "rename_pattern": ".+",
  "rename_replacement": "$0_legacy"
}

3. re-index from legacy indexes to the new indexes
4. run migration script