PUT Request Issue with auto increment table

I'm trying to understand how the software works currently. I'm trying to make a put request to my database to store a user, and I have a column called is which is a auto incrementing sequence. When I try to do the put request without the id in the json it says must include all columns. When I make the put request I get the following error:
'''
{
"hint": null,
"details": null,
"code": "22P02",
"message": "array value must start with "{" or dimension information"
}
'''
I get this error even when I put a value in for id, the below request is left blank with the idea that it would create it with the auto increment.
my request:
'''
{
"id":"",
"username":"myusername",
"password":"password",
<EMAIL_ADDRESS>"first_name":"grant",
"last_name":"zukel"
}
'''
my header:
'''
Accept: application/<IP_ADDRESS>:3000+json; version=1
'''
Url
'''
http://<IP_ADDRESS>:3000/user
'''
database
'''
tablename: user
schemaname: 1
'''
Get request work fine.

Does the record already exist and you're trying to update it, or are you trying to create a new record? If you want to make a new one you can post rather than put. If you want to update the record then you need to include the pre-existing id value, not a blank string. If you want to update certain parts of the record but not all of it you can use an HTTP patch.

I am trying to create a new record, when I change it to post with
raw_data '''
{
"id":"",
"username":"zukeru",
"password":"gismogt",
<EMAIL_ADDRESS>"first_name":"grant",
"last_name":"zukel"
}
'''
it gives me '''
{
"hint": null,
"details": null,
"code": "22P02",
"message": "array value must start with "{" or dimension information"
}
'''

How about if you omit the id field when posting?

same thing without the id field

postgrest  --db-host localhost  --db-port 5432
--db-name thewaywardjourney     --db-user test
--db-pass passwprd     --db-pool 200
--anonymous postgres --port 3000

{
"username":"test",
"password":"test",
<EMAIL_ADDRESS>"first_name":"grant",
"last_name":"zukel"
}
{
"hint": null,
"details": null,
"code": "22P02",
"message": "array value must start with "{" or dimension information"
}

of note I have another table with data in it that returns data with get request. It is just the post request that aren't working on that table.

What is the definition of your table, and what route are you posting to?

I know I need to change the types but made it as easy as possible.
                                Table "1.user"

Column   |           Type            |                   Modifiers
------------+---------------------------+------------------------------------------------
id         | integer                   | not null default nextval('user_seq'::regclass)
username   | character varying(4000)[] |
email      | character varying(4000)[] |
first_name | character varying(4000)[] |
last_name  | character varying(4000)[] |
password   | character varying(4000)[] |
route url: http://<IP_ADDRESS>:3000/user
header: Accept:application/<IP_ADDRESS>:3000+json; version=1
raw:
{
"username":"test",
"password":"test",
<EMAIL_ADDRESS>"first_name":"grant",
"last_name":"zukel"
}
retrurn:
{
"hint": null,
"details": null,
"code": "22P02",
"message": "array value must start with "{" or dimension information"
}

I changed my table types to character varying(4000) instead of the character varying(4000)[] and now im getting malformed json.

the problem was the varying char [] i deleted the array [] and now it works but when it saves a record it doesn't return a value is that right?

is there a way to get it to not add the value if it exist?


Add feature Use std::chrono instead of clock_gettime

Description
Replaced the clock_gettime with std::chrono
Fixes #283
Type of change

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

How Has This Been Tested?

[ ] Test A
[ ] Test B

Test Configuration:
Checklist

[✅] My code follows the style guidelines of this project
[✅] I have performed a self-review of my own code
[✅] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[✅] I have checked my code and corrected any misspellings

Thank you!


Can't add Dual boot second drive with Windows 11 Pro

Hello,
There's an instruction how to dual boot on one drive. In my case I got separate drive for bazzite deck htpc edition and found out that I can add thru ujust command option to unhide-grub but still even after regenerate it doesn't see my second drive with Windows.
I've tired to install grub customizer but it can't be added only thru container so it failed (it needs grub2 which can't be added thru distrobox).
I've also tried to ujust regenerate-grub but still it didn't found drive. Any possible solutions?
Ps I would like also to remove 3 bazzite positions from my grub to leave only:
Bazzite OS (default)
Windows 11 Pro
UEFI Firmware Settings
Can someone help me out with that ?

Check if os-prober is installed, run it to see if it can detect your Windows drive, should output something like:

/dev/sda1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi

If it does, try to do sudo grub2-mkconfig -o /etc/grub2.cfg, and grub should add it to your entries, that worked for me.

Thank you for your answer. I get no output when I enter sudo os-prober. May I ask for further help?

Hm, there's your problem then, grub relies on os-probe to seek the Windows EFI partition and add the entry.
Can you identify your Windows EFI partition? I think you can troubleshoot by googling similar problems, but if it's not a setup issue you can still add the entry manually by following the steps in this guide: https://www.fosstools.net/fix-arch-os-prober-not-detecting-windows-how-to

Ok my windows 11 pro got bitlocker. I've found out that it probably impossible to set grub to lunch W11 with bitlocker (am I missing something) ? This I s why i didn't seen partition with efi also (to grub couldn't detect it neither). Is there any way to add bitlocker windows to grub ?
And a little OT1:  is there any discord/telegram channel to ask?
OT2: on desktop version of fedora I've revoked Firefox to work in background (there was small box in bottom left after opening every new program asking do I allow this program to work in background - related to kde plasma I guess). Now it always closees immediately after open and I cant find and settings to allow Firefox to work in background and even to manage those settings, can you guide me ?
OT3: if I add contenerised app will service form this app works automatically when it boots to desktop version? I mean rustdesk/anydesk? Will this app be persistent thru bazzite updates?
OT4: is there any way to make RazerGenie working also under gamepad mode ?

Bitlocker is not a good sign, I would reinstall Windows without it if I were you (or disable it if possible), and yes there is a Discord, there's an invitation link at the end of the Readme.

I'm not familiar with this Windows stuff, I would just avoid using bitlocker altogether for a simpler setup to be honest

Ok for now i see that on my Windows storage (even if i turn off BitLocker, theres only one partition (not EFI), only EFI partition is on storage with Bazzite but even if i point out it as in guide above it donest see mount point for windows...

That was my bad. Issue was not gpt but MBR partitioned windows drive. After full W11 reinstall with proper partition it work as it should.


Apps: Login Demo, Icons add brands core & react

This PR updates icons and some other small tweaks:

[x] New icons added on core
[x] New icons added and generated on react
[x] Core App updated and
[x] Renamed and added the brand icons and updated their paths in the repo.
[x] Storybook also updated to get all icons automatically so no need to update manually
[x] Group Form component stories
[x] Add back gds-badge story and update component

Badge updates:


Can't update to latest components

Description
It was working, not anymore
CodeSandbox/Snack link
No response
Steps to reproduce

gluestack-ui Version
latest
Platform

[ ] Android
[ ] Expo
[ ] iOS
[ ] Next

Other Platform
No response
Additional Information
I was using this command to keep using latest fixes; now it is giving me error
Component "--all" not found.

I can't even install using npx gluestack-ui@latest

Hey @jacargentina, @mfrfinbox, Thanks for reporting this issue. We will have a look.

@Viraj-10  tried again the update , and now it works.

@jacargentina
Hope this issue is resolved, we are closing this for now.
@mfrfinbox If the issue still persists, inform us and we will re-open the issue.


added german language

I have added the german translation to the demo of this plugin.

Thank you for contributing!


Problem to scan a terraform project

terrascan version: 1.12
Operating System: Windows 10

Description
After install terrascan on windows, when i try to scan a project i had the new error:
    2021-11-17T12:14:07.012+0100    warn    v1/load-dir.go:45       directory 'C:\Users\julio\Documents\terrafor_project' has no files named Dockerfile. Use -f flag if Dockerfiles follow a different naming convention.

     Summary -

    File/Folder         :   C:\Users\julio\Documents\terrafor_project
    IaC Type            :   all
    Scanned At          :   2021-11-17 11:15:00.2855148 +0000 UTC
    Policies Validated  :   0
    Violated Policies   :   0
    Low                 :   0
    Medium              :   0
    High                :   0

What should I Do
My project doesn't have a Dockerfile ... ¿?

Inside my project:
terrascan scan

Despite the documentation, I had to include this on the CLI -t azure -i terraform. Seems that the defaults are not being applied as checking terraform and then it fails that it can't find docker files to work with.


web demo

Describe the question

A clear and concise description of what the question is.

实体提取的可以在web端运行吗
Environment (please complete the following information):

OS: [e.g. mac / window]
Python Version [e.g. 3.6]

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

OneKE 实体抽取可以在web端运行吗？

您好，OneKE是大模型，我们没有计算资源部署在线web服务，抱歉。


convert func

Closes #

What has been done to verify that this works as intended?
Why is this the best possible solution? Were any other approaches considered?
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
Does this change require updates to documentation?
Before submitting this PR, please make sure you have:

[ ] run python -m pytest tests/ and confirmed all checks still pass.
[ ] verified that any code or assets from external sources are properly credited.

Fix the coding style first with some formatting in your IDE.
Learn some Git knowledge, first setup your git workspace in your local computer, and commit multiple files at once. Also, squash your minor modifications into one or few commits, and then force push to your branch.

I recommend you to use PyCharm (there is a free community version) for code formatting and Git GUI.

If it is too difficult to write a test file, leave it. You can at least provide some test files so that we can try them on our computer.

You cannot install tensorrt from pip. Pip does not provide the compiled wheel.
Leave the unit test for others, please try fix the coding style and re arrange the functions.

If it is too difficult to write a test file, leave it. You can at least provide some test files so that we can try them on our computer.

Thank you very much. I have learned about the runners of github action. And  if you hope to create a new workflow for gpu environment testing,  you could raise a new issue and i will try to fix it in the next 2 weeks. At present the test is run on vm while it seems that docker has api for nvidia cuda . Thus docker may be a better choice for the extending.

Fix the coding style first with some formatting in your IDE.
Learn some Git knowledge, first setup your git workspace in your local computer, and commit multiple files at once. Also, squash your minor modifications into one or few commits, and then force push to your branch.

I recommend you to use PyCharm (there is a free community version) for code formatting and Git GUI.

Awfully sorry for my disturbing pr. I am trying to learn more about git and will test codes in my fork repo before i make another pr.

Fix the coding style first with some formatting in your IDE.
Learn some Git knowledge, first setup your git workspace in your local computer, and commit multiple files at once. Also, squash your minor modifications into one or few commits, and then force push to your branch.

I recommend you to use PyCharm (there is a free community version) for code formatting and Git GUI.

Awfully sorry for my disturbing pr. I am trying to learn more about git and will test codes in my fork repo before i make another pr.

@STALLAAAA You don't have to make new pr,  new commits from your topic branch will be added to your existing pull request automatically. Besides, try to use command line to add new commits, and make a commit for a whole task instead of for a file.

Please squash your commits and leave only necessary ones. @STALLAAAA


As a GSA staff member, I want to know how to publish data

I was trying to publish the IT Standards Profile list (https://github.com/GSA/data/pull/37), and was surprised at how many places I had to jump around and people I needed to ask in order to figure out how to get something published "the right way"...and I'm technical and almost competent! Would be great to have a place to point people who have the question "I have some data that I want to make available...what do I do?" Basically, how do we remove the friction from publishing data (responsibly) at GSA?
https://github.com/GSA/open.gsa.gov/pull/48 started to address this, but I think we can go farther with it.

Copied this over to the redesign repo. Thanks!


Como integrar ng-cpf-cnpj com ngMessages?

Como usar algo do tipo:
div ng-message="ng-cpf" >CPF inválido !
Obrigado

We are using the available classes to display or hide error messages: ng-valid-cpf and ng-invalid-cpf.
Then use some css that could go like this:
.input-field
    &.ng-invalid-cpf
        &~.input-info-msg
            display: block

If it helps.

Is possible to use the ng-cnpj with angular-formly?
Are there some example?
Thanks so much

I resolved it... http://stackoverflow.com/questions/41128277/i-cant-add-ng-cnpj-directive-using-angular-formly/41148994#41148994
Thanks


Create a function to automate the camera & microphone permission from CLI

Create a function to automate the camera & microphone permission from CLI as they aren't stored in the TCC database.

duplicate of #4


[WASM] - Implement DepBlock templates for WASM code.

We should be able to "template" the chunk loading code generated by require.ensure/import() depending on the loaded chunk.
Don't need to worry about webpackMode().

done


Bulk Data $import and $export must inject the incomingURL to FHIRRequestContext

Bulk Data $import and $export must inject the incomingURL to FHIRRequestContext using
@Inject
@BatchProperty(name = Constants.INCOMING_URL)
String incomingUrl;

Awaiting Review QA


Fix readme

Fix readme

Sorry I just noticed that this is already fixed. Therefore I'm going to close this one. But still many thanks for your contribution!


Action Required: Configure CodeQL

Action Required!
Automated source code scanning for potential security issues using CodeQL, Dependabot, and Secret Scanning is required for all repositories in the VA GitHub Enterprise Cloud.
There are steps that you will need to take to configure your repository to enable CodeQL code scanning. Dependabot and Secret Scanning will be automatically configured.
Our automation has analyzed your repository and identified the following supported CodeQL languages.

typescript
javascript

The steps that you will need to take to configure your repository to enable CodeQL code scanning will be different depending on whether you are using GitHub CI tools or the external Jenkins CI tool:

Start here if you're using GitHub CI
Start here if you're using Jenkins CI

Additional resources that you will need when you are configuring your repository to enable CodeQL using the guidance provided in the above-linked technical notes include the following:

Software Assurance System ID Catalog
Edit CodeQL Analysis Workflow
Add Excluded Languages List
Update Production Branch
Remove Pull Request Trigger
Create Custom Build Script

To request technical support:

Please book a meeting with OIS ISO SAVD Software Assurance

Ticket is open with the VA codeql-tools repo re: the above failures: https://github.com/department-of-veterans-affairs/codeql-tools/issues/45


add ability to create an account password policy

This PR add a proxy to the resource aws_iam_account_password_policy.
Fixes:

https://github.com/nearform/covid-tracker-infrastructure/issues/367
https://github.com/nearform/covid-tracker-infrastructure/issues/366

where do you think we should test this? in nfcs-dev is tricky for the SSO setup available there

@daynelucas this one looks good to me but we need to test it in depth. Let's do some testing in QA (or dev) and check that it makes sense.

@rgormley You mentioned doing something similar in standup today


Move update-dependencies logic to shell scripts

This change aims to make the pipeline yaml more readable by abstracting the logic in scripts, as well as being able to apply the CI to the content of those scripts.
Signed-off-by: Romain Arnaud<EMAIL_ADDRESS>

/retest

LGTM


Name of the menu on the tool bar is not "Trigger" but "Add trigger"

Name of the menu on the tool bar is not "Trigger" but "Add trigger"
First, from https://docs.microsoft.com/en-us/azure/data-factory/tutorial-copy-data-portal#trigger-the-pipeline-manually
"1. Select Trigger on the toolbar" is wrong. "Trigger" should be replaced by "Add trigger".
Second, from https://docs.microsoft.com/en-us/azure/data-factory/tutorial-copy-data-portal#trigger-the-pipeline-on-a-schedule
"Go to your pipeline, click Trigger on the tool bar, and select New/Edit." "Trigger" should be replaced by "Add trigger".
Regards,
Jisun
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 92f23bdf-28be-1c14-f786-82ce78c60cfa
Version Independent ID: 522daede-91b2-9b09-17eb-791bd0dd9bce
Content: Use the Azure portal to create a data factory pipeline - Azure Data Factory
Content Source: articles/data-factory/tutorial-copy-data-portal.md
Service: data-factory
Sub-service: tutorials
GitHub Login: @jianleishen
Microsoft Alias: jianleishen

Thank you for reaching out. At this time we are reviewing the ask and will provide an update as appropriate

Hi @bigkangji - Please see below image for more clarification on which the document is referring to and let us know if you have further questions.

Hope this clarifies.
Thanks

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply and reopen the issue. We will gladly continue the discussion.
Thank you


Alert Rule (Un)expected behavior

Hi Team,
I have configured an alert rule based on "pipeline run ended" on Azure Synapse Pipeline.
As per the this page, " If you have configured action groups for this alert rule, you can add custom properties to the alert payload to add additional information to the payload. In the Custom properties section, add the property Name and Value for the custom property you want included in the payload."
I have an action group based on the "Email/SMS message/Push/Voice" notification, and I don't see (custom properties) payload delivered over email messages.
Is this an expected behavior?

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

ID: 7cef1802-fa02-da78-fc43-56ffb5e7306c
Version Independent ID: 6c3d5bb3-651b-cdc1-6599-8952880d6ca8
Content: Create Azure Monitor alert rules - Azure Monitor
Content Source: articles/azure-monitor/alerts/alerts-create-new-alert-rule.md
Service: azure-monitor
Sub-service: alerts
GitHub Login: @AbbyMSFT
Microsoft Alias: abbyweisberg

@rawatsudhir1
Thanks for your feedback! We will investigate and update as appropriate.

@rawatsudhir1, thank you for posting this question and apologies for the delayed response. I am reaching out to the product group for confirmation and will update here as soon as I get some information

@rawatsudhir1, I got an update that - Custom properties are meant for routing/enrichment in automation actions today and therefore don't appear in the email.
Hope this helps.


Add quads

adds support for quads. Quads are treated a bilinear patches (finite hyperbolic  patches). Intersect, and closest point all work, butt there seem to be some quirks with the closest point on silhouttes in this first version.

Thanks for the contribution, will check it out soon!


Fix change-case/keys types

I fixed the TypeScript for change-case-keys, so it allows to pass options.
Instead of this
export declare const camelCase: (object: unknown, depth?: number) => unknown;
export declare const capitalCase: (object: unknown, depth?: number) => unknown;
...

it produces now this:
export declare const camelCase: (object: unknown, depth?: number, options?: changeCase.PascalCaseOptions | undefined) => unknown;
export declare const capitalCase: (object: unknown, depth?: number, options?: changeCase.Options | undefined) => unknown;
...

Thanks for the catch!


Feature/symbol table

flows summarize

Hello, I am a code review bot on flows.network.
It could take a few minutes for me to analyze this PR. Relax, grab a cup of coffee and check back later. Thanks!


Remove failed task

Currently, we are keeping failed task indefinitely. We should probably handle it similarly to other statues.

finished / failed / stopped tasks are handled more/less the same way.


Create Minecraft

Minecraft base plugin

Your pull request needs further work because of the following reason(s):

You added/changed/deleted 1 files. You can only add three (3) files index.html main.js main.css.
You changed a file called Minecraft, this is not one of the three allowed names.
Your main.js file was not found, it is a requirement (even if empty)
Your main.css file was not found, it is a requirement (even if empty)
Your index.html file was not found, this one should exist and be nonempty

Once you have resolved the issues, comment on this request to be re-judged
This is an automated response, beep boop.
if you think there is a mistake, contact a maintainer

76f7edfdf99dec1af5efa2ea6b722bc42a46867a


One dag many tasks

@tayloramurphy @aaronsteers @pnadolny13 is this more inline with what y'all would like ?
One dag two tasks:

One dag, one task (because its flattened job):

That's based of this yaml:
schedules:
- name: daily-doit
  interval: '@daily'
  job: simple-demo
- name: nested-example
  interval: '@hourly'
  job: nested
jobs:
- name: simple-demo
  tasks:
  - tap-gitlab hide-gitlab-secrets target-jsonl
  - tap-gitlab target-csv
- name: nested
  tasks:
  - - tap-gitlab hide-gitlab-secrets target-jsonl
    - tap-gitlab target-csv

@pandemicsyn - Yes, I think this is correct. 👍
@tayloramurphy and @pandemicsyn - we want to be careful of illegal characters in task names but in future, we can update this to be some escaped version of the task's text string.

@tayloramurphy and @pandemicsyn - we want to be careful of illegal characters in task names but in future, we can update this to be some escaped version of the task's text string.

yea was just gonna ask, how do we signal to the user what part of the job or meltano run chain this actually is? Can I add labels to the task/operator invocations? Seems like description fields available on the DAG but not the BashOperators.

@pandemicsyn @aaronsteers looking at the screenshot and comparing it to the YAML this looks good. I don't know about the tagging question though.


Complete error refactor, performance optimization of multithreaded work

Errors are now handled in error.rs. I also slightly modified multi-threaded workflows in the two interested files.

Thanks for your help


Pydantic v2 Support

Creating this as a work in progress/draft PR to get the ball rolling on the pydanticv2 migrations.
There's potentially a breaking change (changing the model_orm argument for SQLRepo to just orm). Using "model_" now clashes with a pydantic protected Namespace.
We might be able to get round this using a Field alias, but it would require some testing to see if it would still cause the clash.
Tests are still failing at this point but Memory Repo and SQLRepo are running in a basic test.
Will continue to work on this over the weekend hopefully.

Hi @Miksus,
Just to let you know I've now marked this PR ready for review.
I've got rid of all failing tests and deprecation warnings (bar one, I have no idea where this is coming from).
There will also be some outstanding issues, this project uses pydantic-sqlalchemy, which ties pydantic to version 1. There is a PR which I have dropped a comment on to see if that can get pushed out.
Breaking changes
This PR contains breaking changes for anybody that consumes this, so you may have to version this appropriately.

'model_orm' has been changed to 'orm' in the SQLRepo. This is because 'model_' is now a protected namespace inside pydantic.
This is yet to be tested, but due to the way that pydantic now handles the Optional type and default arguments, I'm not sure if that will have a lasting affect on optional fields inside Repos

The rest are just migration pieces.
Please feel free to pull me up on anything in a review when you get chance.

@Jypear, thanks for your work on this, I've switched to your fork for my projects.  To avoid the model_orm breaking change, have you considered removing model_  from the set of Pydantic protected namespaces on the SQLRepo class?
https://github.com/pydantic/pydantic/discussions/7121#discussioncomment-6849030


website agent stopped generating new events

I have created a website agent to generate RSS. It was running OK for a few days, but today it stopped generating new events.
I have tried:

Manually run the agent
Dry run the agent and the result looks good
Delete all old events.
Change the agent from “on_change” to “All” and run the agent

However the events count stays at 0 and none of above works! Please help me to troubleshoot.

This is not good. I checked the "Background Jobs" and see a lot of them are in "queued" status.
So I stopped the docker container ( I run huginn in docker), and I restarted. But now I got an error message like this:
Docker API has failed. Please visit Docker Log for more information.
H.Error.txt

OK problem solved:

in Synology docker app, I choose huginn -> Action -> clear
After it is done, I start the container huginn again. No ERROR!

I went back to huginn web interface and see the "queued" jobs finished one by one!
I checked the docker log and found this:
Error,2019/12/09 13:42:50,shawn,Start container huginn failed: {"message":"error while mounting volume '': get d6cec351bc82fac7185f80ce1058452e3344fee4dd9d600a841986ed8186b56d: no such volume"}.
So it looks like the container's volume got corrupted somehow and the "clear" action rebuild the volume and fixed the issue!
Hope this can help someone in the same situation.


functionality for fixed navbar

This provides functionality for a fixed navbar, which can be enabled by using the stickyNav key in the siteMetadata.js file. The CSS implementation of locking the scroll (by setting the overflow property on the body element) when the mobile nav is open has been replaced with the use of the npm package body-scroll-lock. This allows for more consistent behavior across devices and prevents the page from scrolling to the top when the nav is closed.
https://github.com/user-attachments/assets/ed9042e7-cd93-43a0-b4b3-a6996b363631

Thanks for the feature contribution, code looks fine to me but appreciate it if you could run it through prettier and push back the changes. I am getting the following errors on vercel:
10:21  Error: Replace `"flex·items-center·bg-white·dark:bg-gray-950·justify-between·py-10"` with `'flex·items-center·bg-white·dark:bg-gray-950·justify-between·py-10'`  prettier/prettier
11:30  Error: Insert `·`  prettier/prettier
12:20  Error: Replace `"·sticky·top-0"` with `'·sticky·top-0'`  prettier/prettier

Hmm I get the following error in the console:
23-ee23754aea40848f.js:1 disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.

the issue with the targetElement has been fixed. Some of the nav components are not unmounted when navShow is false.
overflow functionality for the nav has been added. See the recordings as example (with placeholder links)
padding has been adding to the mobile nav buttons for bigger tap area

https://github.com/user-attachments/assets/f2a736bf-6d95-47b2-a028-322229278814
https://github.com/user-attachments/assets/5c0160aa-0110-45db-8528-57220e11c98a

I think we are almost there. There's a z-index issue with the code block and video element:

You can replicate it on the /blog/release-of-tailwind-nextjs-starter-blog-v2.0 path.
Otherwise, let's make stickyNav true by default and we can merge it in, thanks!

I couldn't recreate the issue with the video component but I fixed it for the code block. Hope this works!

This works, thanks for the contribution!


sql都能正确查询，但是添加orderBy之后，sql就错误了。

当前使用版本(必填,否则不予处理)
3.1.2
该问题是如何引起的？(确定最新版也有问题再提!!!)
SQL如下：
 select
        TEM.*,
        DETAIL.KeywordType as keywordType,
        DETAIL.Category as Category,
        DETAIL.IsDeleted as deleted,
        DETAIL.CreateTime as createTime,
        DETAIL.ClientId as clientId,
        DETAIL.ZipCode as zipCode,
        DETAIL.IsMonitored as monitored,
        DETAIL.Username as username
        from (
        select
        MKC.Id AS id,
        COUNT(MK.Id) as keywordCount,
        COUNT(MKR.Id) as retailerCount
        from MonitorKeywordCategory MKC
        left join MonitorKeyword MK on MKC.Id = MK.CategoryId
        left join MonitorKeywordCategoryRetailer MKCR on MKCR.CategoryId = MKC.Id
        left join MonitorKeywordRetailer MKR on MKCR.RetailerId = MKR.Id
        WHERE MKC.IsDeleted = 0
        AND MK.IsDeleted = 0
        AND MKCR.IsDeleted = 0
        <if test="params.searchedKeyword!=null and params.searchedKeyword!=''">
            AND MKC.Category LIKE CONCAT('%',#{params.searchedKeyword},'%')
            OR MKC.KeywordType LIKE CONCAT('%',#{params.searchedKeyword},'%')
            OR MK.KeywordText LIKE CONCAT('%',#{params.searchedKeyword},'%')
        </if>
        GROUP BY MKC.Id
        ) TEM left join MonitorKeywordCategory DETAIL
        ON TEM.Id = DETAIL.Id
        <if test="params.pageInfo.orderBy!=null and params.pageInfo.orderBy!=''">
            ORDER BY ${params.pageInfo.orderBy}
        </if>

排序信息是前端传过来的，没有排序传过来的字段是：
重现步骤(如果有就写完整)
不带排序查询的表字段：
id,keywordCount,retailerCount,Category,deleted createTime,clientId,zipCode,monitored,username
报错信息(但是id没有重复的)
{
"code": 405,
"data": null,
"msg": "\r\n### Error querying database.  Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Ambiguous column name 'id'.\r\n### The error may exist in file [D:\work_code\microservice-java\criteo\target\classes\mapper\MonitorKeywordCategoryMapper.xml]\r\n### The error may involve defaultParameterMap\r\n### The error occurred while setting parameters\r\n### SQL: WITH selectTemp AS (SELECT TOP 100 PERCENT  ROW_NUMBER() OVER (ORDER BY id desc) as row_number,          TEM.*,         DETAIL.KeywordType as keywordType,         DETAIL.Category as Category,         DETAIL.IsDeleted as deleted,         DETAIL.CreateTime as createTime,         DETAIL.ClientId as clientId,         DETAIL.ZipCode as zipCode,         DETAIL.IsMonitored as monitored,         DETAIL.Username as username         from (         select         MKC.Id AS id,         COUNT(MK.Id) as keywordCount,         COUNT(MKR.Id) as retailerCount         from MonitorKeywordCategory MKC         left join MonitorKeyword MK on MKC.Id = MK.CategoryId         left join MonitorKeywordCategoryRetailer MKCR on MKCR.CategoryId = MKC.Id         left join MonitorKeywordRetailer MKR on MKCR.RetailerId = MKR.Id         WHERE MKC.IsDeleted = 0         AND MK.IsDeleted = 0         AND MKCR.IsDeleted = 0                   GROUP BY MKC.Id         ) TEM left join MonitorKeywordCategory DETAIL         ON TEM.Id = DETAIL.Id                       ORDER BY id desc) SELECT * FROM selectTemp WHERE row_number BETWEEN 1 AND 10 ORDER BY row_number\r\n### Cause: com.microsoft.sqlserver.jdbc.SQLServerException: Ambiguous column name 'id'.\n; bad SQL grammar []; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Ambiguous column name 'id'."
}

感觉查完count 之后，又查询了一个sql
==>  Preparing: SELECT COUNT(1) FROM (SELECT MKC.Id AS id, COUNT(MK.Id) AS keywordCount, COUNT(MKR.Id) AS retailerCount FROM MonitorKeywordCategory MKC LEFT JOIN MonitorKeyword MK ON MKC.Id = MK.CategoryId LEFT JOIN MonitorKeywordCategoryRetailer MKCR ON MKCR.CategoryId = MKC.Id LEFT JOIN MonitorKeywordRetailer MKR ON MKCR.RetailerId = MKR.Id WHERE MKC.IsDeleted = 0 AND MK.IsDeleted = 0 AND MKCR.IsDeleted = 0 GROUP BY MKC.Id) TEM
==> Parameters:
<==    Columns:
<==        Row: 2
==>  Preparing: WITH selectTemp AS (SELECT TOP 100 PERCENT ROW_NUMBER() OVER (ORDER BY id desc) as row_number, TEM.*, DETAIL.KeywordType as keywordType, DETAIL.Category as Category, DETAIL.IsDeleted as deleted, DETAIL.CreateTime as createTime, DETAIL.ClientId as clientId, DETAIL.ZipCode as zipCode, DETAIL.IsMonitored as monitored, DETAIL.Username as username from ( select MKC.Id AS id, COUNT(MK.Id) as keywordCount, COUNT(MKR.Id) as retailerCount from MonitorKeywordCategory MKC left join MonitorKeyword MK on MKC.Id = MK.CategoryId left join MonitorKeywordCategoryRetailer MKCR on MKCR.CategoryId = MKC.Id left join MonitorKeywordRetailer MKR on MKCR.RetailerId = MKR.Id WHERE MKC.IsDeleted = 0 AND MK.IsDeleted = 0 AND MKCR.IsDeleted = 0 GROUP BY MKC.Id ) TEM left join MonitorKeywordCategory DETAIL ON TEM.Id = DETAIL.Id ORDER BY id desc) SELECT * FROM selectTemp WHERE row_number BETWEEN 1 AND 10 ORDER BY row_number
==> Parameters:


[Bug]: WandB Stuck When Fetching Artifacts

Description
The process becomes unresponsive while fetching artifacts using the WandB API. The issue occurs specifically during the api.artifact call.

Authentication has been successfully set up using the API token.
No error messages or timeouts are encountered.
The last observed output is:- Retrieving metadata for me/project/test-results:v{i}

indicating that it gets stuck during the api.artifact function. I let it run for 30+ minutes without any progress and no indication that it is downloading big files. The expected artifact is ~0.5MB

Code to Reproduce
from wandb import Api

api = Api()

for i in range(1, 5):
    print(f"- Retrieving metadata for me/project/test-results:v{i}")
    artifact = api.artifact(f'me/project/test-results:v{i}', type='test-results')
    print("- Metadata successfully retrieved")
    artifact_dir = artifact.download()
    print(f"- Artifact downloaded successfully to directory: {artifact_dir}")

Environment

WandB SDK version: 0.18.7
Python version: Python 3.8.20
Operating system: MB Pro M3, 15.1.1

Additional Notes
Any advice on what might be causing this issue or further debugging steps would be appreciated.

Hi @lumoe! Thank you for writing in!
Could you please send me a link to an artifact you are currently trying to retrieve?
Are you able to call use_artifact() on that artifact, and try downloading it in the middle of the run instead of the API? (docs)

Hi there, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

Hi, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!


The returned object has one element holding several objects

When returning an array of objects in a HTTP response, only one object is returned. The first element of this object contains the array of the objects expected as response.
When returning elements like this:
Write-host $Users.Count
101
$status = [HttpStatusCode]::OK
Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{
    StatusCode = $status
    Body = $Users
})

the following is received , when calling the webhook and storing the result in a variable called result:
$result.count
1

$result[0].count
101

Ideally result should contain the objects. Either way this should be proper documented here.

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

ID: efae763f-03a9-b3b0-e7ad-52f9b1559438
Version Independent ID: 2afd9c78-e5b0-5d34-b809-47d9576399d0
Content: PowerShell developer reference for Azure Functions
Content Source: articles/azure-functions/functions-reference-powershell.md
Service: azure-functions
GitHub Login: @TylerLeonhardt
Microsoft Alias: tyleonha, glenga

@Agazoth Thank you for your feedback! We will review and update as appropriate.

@TylerLeonhardt Any inputs regarding this.

We should move this over to Azure/azure-functions-powershell-worker

@Agazoth As suggested by TylerLeonhardt  open this issue in https://github.com/Azure/azure-functions-powershell-worker/issues and reference this thread. So for now I will proceed with closure of this and If there is anything, please tag me in your reply.


Encoded emoji in header anchor id (GitHub flavor)

I've stumbled upon a behaviour that at first I thought is fine (emoji FTW), but then someone pointed out that it doesn't match how it's done on GitHub.com, therefore I guess there's either something to fix, or to leave with some little explanation.
Problem:
This MD:
# 🤪Hello ?

Will result in this HTML:

Hello

I've found it while implementing a feature that copies a new url with an anchor when user clicks one of the <h*> elements.
The "new url" code is like this:
const u = new URL('https://example/com');
u.hash = '🤪hello-';
const newUrl = u.toString();
// "https://example/com#%F0%9F%A4%AAhello-"

Which... works fine on all the browsers I tested (Chrome, Safari, FF, Brave). However, as pointed out, Github does it differently: all emoji are converted into "-".
Also after giving extra thoughts I have some concerns regarding readability and possible use case when user needs to write this url down somewhere using analog tools (eye, hand and paper).
My config:
const converter = new showdown.Converter({
        ghCompatibleHeaderId: true,
        strikethrough: true,
        tables: true,
        tasklists: true,
        ghMentions: true,
        encodeEmails: false,
        metadata: true
    });
    converter.setFlavor('github');

    converter.setOption('simpleLineBreaks', false);

As far as I checked the showdown source code ghCompatibleHeaderId should end up doing similar h* to anchor id as on Github. It doesn't, so I thought it's worth the effort of posting this here.
Repro:
https://github.com/sznowicki/repro-showdown-github-anchors
PS. I am aware that my showdown initial config might be redundant or overwritten by .setFlavor.

I've the same problem, except that anchors with emojis doesn't work due to some encoding problems. Maybe adding an emojiAllowedInId option or so will help?

Yeah, emojis in headers might be problematic. Surprisingly, the solution is not trivial though. See this stackoverflow post.

I tackled this in the end by creating extension that replaces them. Code below:
const emojiRegex = require('emoji-regex');

const replaceEmojisWithDash = (text) => {
  return text
    .replace(emojiRegex(), '-')
    .replace(/^-+|-+$/g, '');
};

const EmojiHeadersExtension = {
  type: 'output',
  regex: /(<h[1-6].* id=")(.*)(".*>.*<\/h[1-6]>)/g,
  replace: (match, prefix, id, suffix) => prefix + replaceEmojisWithDash(id) + suffix,
};

module.exports = EmojiHeadersExtension;

thank you. That package, emoji-regex, lists every emoji in the regex. A bit of a brute force approach but I don't think there is a more elegant solution for this.
https://github.com/mathiasbynens/emoji-regex/blob/main/index.js


bug(Table): selectionModel problems then providing initiallySelectedValues

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
Table with selectionModel is not working correctly then you provide an initiallySelectedValues list.

isSelected() always returns false > checkbox isn't checked
if you toggle() an initially selected row it gets added another time to the selected list

Reproduction
Stackblitz from your example with an initiallySelectedValues set on the selectionModel.
I added the selection column to show isSelected() is returning false and the content of selectionModel.selected.
Stackblitz for 14.2.7 but same problem is in 15.0.2.
https://stackblitz.com/edit/angular-9wuv4y?file=src/app/table-selection-example.ts
Expected Behavior
isSelected() returns true for initiallySelectedValues.
Actual Behavior
isSelected() returns false for initiallySelectedValues.
Environment

Angular: 14.2.7 / 15.0.2
CDK/Material: 14.2.7 / 15.0.2
Browser(s): Chrome/FF
Operating System (e.g. Windows, macOS, Ubuntu):

Your example doesn't work, because you're providing an object literal in the initial values array. The selection model compares by reference which is why your value isn't being picked up.


Blazor Wasm, application doesn't launch if WebAssembly.Net.Http is a dependencies

Describe the bug
The application fail to launch with error :

Uncaught (in promise) Can't find method WebAssembly.Runtime:GetDateValue

To Reproduce

Add the package WebAssembly.Net.Http 3.0.2 as depency in your project.
Create a custom HttpMessageHandler deriving from WasmHttpMessageHandler

public class CustomHttpHandler: WasmHttpMessageHandler
{
}

Set up the DI to create a custom HttpClient using this custom HttpMessageHandler

services.AddTransient(p => new HttpClient(new CustomHttpHandler()));

Inject an HttpClient in the MainLayout.razor

@inject HttpClient _httpClient

Start the application

Further technical details

ASP.NET Core version 3.1-preview3

>dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.100-preview3-014645
 Commit:    b32d27f4b3

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17134
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.1.100-preview3-014645\

Host (useful for support):
  Version: 3.1.0-preview3.19553.2
  Commit:  13f35c3d86

.NET Core SDKs installed:
  1.0.0-preview2-003131 [C:\Program Files\dotnet\sdk]
  2.2.402 [C:\Program Files\dotnet\sdk]
  3.0.100 [C:\Program Files\dotnet\sdk]
  3.1.100-preview1-014459 [C:\Program Files\dotnet\sdk]
  3.1.100-preview2-014569 [C:\Program Files\dotnet\sdk]
  3.1.100-preview3-014645 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.0-preview3.19555.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 1.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.0-preview3.19553.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.0-preview3.19553.2 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Microsoft Visual Studio Community 2019 Preview
Version 16.4.0 Preview 5.0

@aguacongas thanks for contacting us.
We'll take a look at this issue and get back to you.

@SteveSandersonMS can you take a look?

@aguacongas I don't think this is an issue in Blazor but an issue with that package and Mono. I suggest you follow up with the mono folks for help.

Hum, I don't totaly agree as the error is throw in _framework/blazor.webassembly.js. Is this file come from mono ?

The API is from Mono and the last time that package was built was 6 months ago. I imagine it _blazor.webassembly.js shows there as it's the script that boots mono, but that has nothing to do iwth us afaik.
It is very likely we picked up a new version of mono that might not be compatible with that package. I don't know who builds or what its github repo is, but it is not something related to Blazor itself, but about the package being incompatible with the latest mono bits.

@javiercn, mono's guys respond this not their side. IMO it's an incompatibility issue between the public package and the last build package you use in blazor and it could be fixed by itself when a new version of mono wasm framework will be released. However it had to be tracked somewhere.


Refactor smaller services out of Distribution Service

[x] ActiveMemberService
[x] ActiveMemberCountService
[ ] DistributionDateService

Done


Improve node description of Geo View nodes

Ideally the different options of the view nodes (e.g. opacity etc. in the heatmap view) have some examples on how the settings will influence the graphic.

I added more descriptions for the nodes.


[Event Request] Codeunit 361 MoveEntries - OnBeforeCheckGLAccountEntries

Hi, would it be possible to get an event OnBeforeCheckGLAccountEntriesin codeunit 361, procedure MoveGLEntries, like this :
    procedure MoveGLEntries(GLAcc: Record "G/L Account")
    var
        GLSetup: Record "General Ledger Setup";
        CalcGLAccWhereUsed: Codeunit "Calc. G/L Acc. Where-Used";
        NewGLAccNo: Code[20];
        IsHandled: Boolean;
    begin
        OnBeforeMoveGLEntries(GLAcc, NewGLAccNo, GLEntry);

        GLSetup.Get();

        IsHandled := false;
        OnBeforeCheckGLAccountEntries(GLEntry, GLSetup, GLAcc, IsHandled);
        if not IsHandled then
            CheckGLAccountEntries(GLAcc, GLSetup);

        if GLSetup."Check G/L Account Usage" then
            CalcGLAccWhereUsed.DeleteGLNo(GLAcc."No.");

        GLEntry.Reset();
        GLEntry.SetCurrentKey("G/L Account No.");
        GLEntry.SetRange("G/L Account No.", GLAcc."No.");
        GLEntry.ModifyAll("G/L Account No.", NewGLAccNo);

        OnAfterMoveGLEntries(GLAcc, GLEntry);
    end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeCheckGLAccountEntries(var GLEntry: Record "G/L Entry"; var GLSetup: Record "General Ledger Setup"; var GLAccount: Record "G/L Account"; var IsHandled: Boolean )
    begin
    end;

Thanks

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Bug in the Powershell command

I followed the procedure described without any change.
I used Azure Cloud Shell (through the "Try It" button)
Everything is working except this piece of code:
$myRoleImageCreationUrl = 'https://raw.githubusercontent.com/danielsollondon/azvmimagebuilder/master/solutions/12_Creating_AIB_Security_Roles/aibRoleImageCreation.json'
$myRoleImageCreationPath = "$env:TEMP\myRoleImageCreation.json"
Invoke-WebRequest -Uri $myRoleImageCreationUrl -OutFile $myRoleImageCreationPath -UseBasicParsing
$Content = Get-Content -Path $myRoleImageCreationPath -Raw
$Content = $Content -replace '', $subscriptionID
$Content = $Content -replace '', $imageResourceGroup
$Content = $Content -replace 'Azure Image Builder Service Image Creation Role', $imageRoleDefName
$Content | Out-File -FilePath $myRoleImageCreationPath -Force
I received an access denied about the fact that it's not possible to access the \myRoleImageCreation.json file.
I solved substituting this command
$myRoleImageCreationPath = "$env:TEMP\myRoleImageCreation.json"
with this command
$myRoleImageCreationPath = "myRoleImageCreation.json"

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

ID: c0b40c35-05a3-a82d-a887-d393fff29536
Version Independent ID: 607c9388-c173-882c-cc45-bb0a8b5ac1ac
Content: Create a Windows VM with Azure Image Builder using PowerShell - Azure Windows Virtual Machines
Content Source: articles/virtual-machines/windows/image-builder-powershell.md
Service: virtual-machines-windows
Sub-service: imaging
GitHub Login: @cynthn
Microsoft Alias: cynthn

@mmoioli
Thanks for the feedback! We are currently investigating and will get back on this.

@mmoioli I have updated the document and changes will go live once the PR is approved.


Unable to upgrade to 0.28 using Carthage

I've been using Telegraph with Carthage, and when upgraded from 0.27 to 0.28 there was a compilation issue reported on the import Telegraph statement:
Missing required module 'HTTPParserC'

Reverting back to 0.27 again fixes the issue.

Thank you for reporting this.
I might have broken Carthage support for HTTPParserC.
I'll have a look at this tomorrow.

@iangmaia I believe I've fixed the issue.
You might not even need to include CocoaAsyncSocket and HTTPParserC into your project, if you only use those projects for Telegraph.
Please try out 0.28. You might have to clear your Carthage cache, or it won't download the updated HTTPParserC library:
rm -rf ~/Library/Caches/org.carthage.CarthageKit

I'll close the ticket, feel free to reopen it if you still encounter any issues.


fix: test_server_require_secure_client_secure

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
fix test case tls handshake eof bug
Please explain IN DETAIL what the changes are in this PR and why they are needed:
increase tokio test worker thread number
Checklist

[ ]  I have written the necessary rustdoc comments.
[x]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)
https://github.com/GreptimeTeam/greptimedb/issues/677

@sunng87 PTAL


Copy fails with LoadTree(xyz) returned error id xyz not found in repository

Output of restic version
restic 0.12.0 compiled with go1.15.8 on linux/amd64

How did you run restic exactly?
I'm syncing a local repository with a remote repository using sftp protocol:
export RESTIC_REPOSITORY=/backups"
export RESTIC_PASSWORD_FILE=/home/restic/.local_repo_pass"
export RESTIC_REPOSITORY2=sftp:user@host.example.org:./restic"
export RESTIC_PASSWORD_FILE2=/home/restic/.remote_repo_pass"
restic --verbose copy

What backend/server/service did you use to store the repository?
Rsync.net
Expected behavior
It works.
Actual behavior
LoadTree(a1cae849) returned error id a1cae84958e4c24e0aa731bf7efac1627ca891376ee2fe9dbb47b60eb08f6508 not found in repository

Steps to reproduce the behavior
No idea.
Do you have any idea what may have caused this?
No idea.
Do you have an idea how to solve the issue?
No idea. I tried removing the snapshot in question - a1cae849 - but in both repos I just get back:
 $ restic snapshots a1cae849
repository 123qwe123 opened successfully, password is correct
Ignoring "a1cae849", it is not a snapshot id

So I have no idea what I'm supposed to do.
Did restic help you today? Did it make you happy in any way?
What?

I might add that when I re-run the copy command sometimes it works fine without this error.

Okay. I think I know what's happening. I had another systemd timer running at the same time also doing restic copy.
Seems the issue is some kind of race condition when two instances of restic try to access the repo, one writing and one readin.

The id a1cae849 in the log snippet is a tree id, not a snapshot id. That's why there's no corresponding snapshot. Please run restic check to make sure that the repository is not damaged.
What did the other systemd timer do? Run a backup?

I might add that when I re-run the copy command sometimes it works fine without this error.

Is the error always the same or does it change?

What did the other systemd timer do? Run a backup?

They both run copy, but on copies into the repo, and the other out of it.

Is the error always the same or does it change?

The ID changes.

Yep, so I can confirm that changing timer schedules so they don't clash makes the error go away.

@jakubgs Does restic print for which snapshot it tried the failed LoadTree? My guess would be that that snapshot has just been copied by the other copy run.
What's probably happening here is the following: restic write pack files, indexes and snapshots in an order which ensures that all data on which a snapshot depends has been safely stored first. This essentially means that pack files are written first, then all indexes referencing the pack files and the snapshot is written last. The copy command now for copying snapshots loads the repository index first and the iterates over all existing snapshots. And here we have a race condition. Assume that two restic copy instances run in parallel:
restic A is already copying snapshots and currently writes a pack file, restic B starts and begins to load the repository index. restic A uploads a new index and snapshot. restic B finished reading the repository index without the new index from restic A. restic B now discovers the new snapshot from restic A and fails to find the snapshot's data in its repository index.
One way to fix this would be to retrieve the list of snapshots before loading the repository index. However, that would require rearchitecting the way snapshots are currently listed.

Does restic print for which snapshot it tried the failed LoadTree?

Sorry, I think I've already purged all logs from those failures.

If it's not too much work, then it would be useful to confirm whether my guess is correct. I'm quite confident that it is, but one never  knows. Although, if the cause is indeed the snapshot listing problem, then it will probably take quite some time until it can be fixed.

Okay, I switched the timers to run at the same time. We'll see if it happens again today at night.

I've reproduced the error again, but I'm not sure what you mean by

Does restic print for which snapshot it tried the failed LoadTree?

Do you want the log message before? It looks like this:
snapshot 15d04dd1 of [/docker/xyz/data] at 2021-07-09 01:00:04.546866181 +0000 UTC)
  copy started, this may take a while...
LoadTree(6bade011) returned error id 6bade011b16a6933207235612d049a6714715972c65a3974cae2c08f0eaba337 not found in repository

Could you check whether the output of restic cat snapshot 15d04dd1 includes the following line?
    "tree": "6bade011b16a6933207235612d049a6714715972c65a3974cae2c08f0eaba337 ",

Judging from the timing that snapshot was probably copied by the other concurrent copy run?

Yes it does.

I met the same problem when I use kubernetes to backup different PVC parallelly.
Here is the talk.


recommended way to send packets from hosts to controller

Hello,
What is the recommended way to send packets from the hosts to the controller?
I am working on an alternate architecture where the hosts gather some intelligence about the network and forward it to the controller. Is it possible for pox to accept messages from the hosts in the network. Could you please provide pointers on how to do this?
I currently tried creating a separate socket for host related data and added it as a pox component as given here. This setup seems to work well with non Mininet originated packets but I get the below error when trying to use a Mininet script.
Unable to contact the remote controller at <IP_ADDRESS>:6633

This is related to the issue of in-band and out-of-band control in SDNs.  I don't use Mininet anymore, but I think that in Mininet, the controller is generally not directly accessible via the Mininet data network (that is, I believe the default assumption is an out-of-band control network).  If that's inconsistent with what you're looking to do, you should see about configuring Mininet so that the controller is accessible to the data network.
If you are looking at cases where there's a separate control network, one way to do it would be to have switches send your packets from the host to the controller via OpenFlow packet-ins, but this approach has some pretty serious constraints... I wouldn't try to do it if there was more than a pretty small amount of such packets.

Could you provide any references/pointers as to how to make the host send packetins messages through the switches to the controller?
I do not envision too many messages from the host to the controller other than the occasional drop flow messages.

Got it to work after eventually understanding what you mentioned :)
I created packet-ins from the host to the controller using scapy originated packets with the payload having information on what action the controller must perform.

Hello,
Can you please tell me how did you create the packet-ins to the controller because I need to send a trigger to he controller in order to start an application.

In OpenFlow 1.0, any packet arriving at a switch which doesn't match a table entry will be sent to the controller as a packet-in.  The packet may be truncated to some maximum length, though you can control that by adjusting core.openflow.miss_send_len (or just loading the misc.full_payload component, which does exactly this).
You can also have table entries which explicitly send packets to the controller by using an output action where the output port is set to the special value OFPP_CONTROLLER.


Bump dependencies

That's really weird error. Just seems like that jest-playwright-preset using wrong jest version


Diagnostics on OWIN+IIS

I've just noticed that Nancy diagnostics doesn't work when hosted on IIS with OWIN. The diagnostics page throws a number od 404s for all the static content:

Apparently it is only a problem with Microsoft.Owin.Host.SystemWeb. Works fine on selfhost (both OWIN and Nancy) as well as Nancy.Hosting.Aspnet. Am I missing some package maybe?

What versions are you using? Can you show your web.config? This sounds like an IIS misconfiguration. It's probably trying to serve static files before Nancy gets the chance.

I think you might need to go through this step: https://github.com/NancyFx/Nancy/wiki/Managing-static-content#extra-steps-required-when-using-microsoftowinhostsystemweb

Ah yes that was it. Thank you. I missed the link on OWIN wiki page


[WIP] Add Signatures

This patch begins to add signatures to Daisy. This means that an account can prepare and then sign a transaction before submitting it to the blockchain. The hope, in the beginning, is that a user can do this through openssl directly. Here is an example:
(Note: the version of openssl that ships with macOS is about 6 years old, so we use a different version installed by homebrew but that is unlinked)
/usr/local/opt/openssl/bin/openssl ecparam -genkey -name secp256k1 -noout -out ./private_key.pem

/usr/local/opt/openssl/bin/openssl ec -in ./private_key.pem -pubout -outform DER -out ./public_key.der

public_key=$(cat ./public_key.der | base64)

signature=$(curl localhost:2335/prepare/spawn/15 -s | base64 -D | /usr/local/opt/openssl/bin/openssl dgst -sha256 -sign ./private_key.pem | base64)

curl -X POST http://localhost:2335/run/spawn/15 --data-urlencode "signature=$signature" --data-urlencode "public_key=$public_key"

ебнутые дикари


godotcpp4: fix python scripts

Was causing
NameError: name 'BoolVariable' is not defined:
  File "~/.xmake/cache/packages/2408/g/godotcpp4/4.2/source/godotcpp4/SConstruct", line 36:
    cpp_tool.options(opts, env)
  File "~/.xmake/cache/packages/2408/g/godotcpp4/4.2/source/godotcpp4/tools/godotcpp.py", line 325:
    tool.options(opts)
  File "~/.xmake/cache/packages/2408/g/godotcpp4/4.2/source/godotcpp4/tools/ios.py", line 24:
    opts.Add(BoolVariable("ios_simulator", "Target iOS Simulator", False))```

It looks like upstream has been fixed, maybe just need to update the commit hash?

You're right. It works just fine now 👍


Add ignoredFlavorDimensions

Proposed New Behavior
Would like to be able to ignore all flavors in a given dimension.
    // Android: Don't create tasks for the specified build flavor dimensions
    ignoredFlavorDimensions = ["mode"]

Current Behavior
I can ignore specific flavors, but not ignore a whole dimension unless I enumerate all the flavors in that dimension.
    // Android: Don't create tasks for the specified build types (e.g. "release")
    ignoredBuildTypes = ["release"]

    // Android: Don't create tasks for the specified build flavor (e.g. "production")
    ignoredFlavors = ["production"]

    // Android: Don't create tasks for the specified build variants (e.g. "productionRelease")
    ignoredVariants = ["productionRelease"]

Context
Sometimes we have a dimension that we always want detekt to ignore, without having to update detekt config every time we add a flavor to that dimension

Would it be acceptable if we expose a predicate BaseVariant -> Boolean and deprecate the existing ignoredBuildTypes, ignoredFlavors or ignoredVariants?

BaseVariant doesn't seem to be listed in their public API list
I think ComponentIdentity -> Boolean  could probably work.

Good call. ComponentIdentity/Variant is something we should consider.
https://issuetracker.google.com/issues/170650362 This is an issue that I found is missing in the AGP 7.0 public API. I would like to give it try to see if we can migrate to DetektAndroid to use AGP 7.0 API only. (https://developer.android.com/studio/releases/gradle-plugin-roadmap)

I would like to give it try to see if we can migrate to DetektAndroid to use AGP 7.0 API only

Ideally in the future, yes. Right now it's unfeasible imho. AGP 7.0 stable is not out yet, and we would cut out the majority of our users if we do that.

As far I as I know, we can't exclusively use AGP 7 API yet because of https://issuetracker.google.com/issues/170650362

Looks like we should wait for Google to provide their opinions with regards to this issue.
Alternatively, the direction would go towards detekt-compiler

Looks like we should wait for Google to provide their opinions with regards to this issue.

IMHO we should not implement ignoredFlavorDimensions but instead have something like:
var disableDetektForVariant: (BaseVariant) -> Boolean

Which allow users to specify a lambda where they can access the BaseVariant + have their own login. Moreover we could move to Variant API once we bump to AGP 7.x and hook inside the onVariants and so on.


fxload: updated to newer version from libusb1’s examples

the previous version used was quite old and not supporting USB3. This one is using an updated fxload binary from libusb1’s examples.
libusb1 approved PR: https://github.com/NixOS/nixpkgs/pull/207880

@AndersonTorres mind reviewing this PR as well? as you approved the libusb1 PR

@AndersonTorres mind approving?

@AndersonTorres  mind helping me with an issue? this PR is now on the unstable branch and it seems the fxload symlink was not created on /run/current-system/sw/sbin , what am I missing?

the fxload package is there with the symlink working...just didn't apear on the current-system links

Did you add the package to your environment.systemPackages config option? It definitely appears from latest nixos-unstable if I add it on my machine
Also support questions are probably better asked on Matrix (#nix:nixos.org) or Discourse (or the unofficial Discord)

I used nix-shell -p fxload . Thanks

the fxload package is there with the symlink working...just didn't apear on the current-system links

Did you add the package to your environment.systemPackages config option? It definitely appears from latest nixos-unstable if I add it on my machine
Also support questions are probably better asked on Matrix (#nix:nixos.org) or Discourse (or the unofficial Discord)

can you verify the fxload version? it should be 1.0.26

can you verify the fxload version? it should be 1.0.26

The version seems to be 1.0.26, but the self-reported version (i.e. fxload -V) seems to come from the date it was built by default (which is set to unix epoch in nix build environment): https://github.com/libusb/libusb/blob/e263e32f20b903ed1d2c68fe3d80b55d7cfae52e/examples/fxload.c#L45
Perhaps the libusb derivation could add a "-DFXLOAD_VERSION=${version}" to cppflags if withExamples is enabled, but it's cosmetic anyway so I'm not sure it matters much

@lilyinstarlight are you on the discord?


[Caffe Frontend] supporting group > 1 cases for Deconv op

Handling group > 1 cases, assuming group == output channels
Simply decomposed into Relay split, conv2d_transposed, and multi-leveled concatenate ops
Added some test cases

Signed-off-by: zotanika<EMAIL_ADDRESS>Thanks for contributing to TVM!   Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.

I want to try your PR.
Is there any pretrained models which contains Deconv with group > 1?

@zotanika please resolve the conflict.


Issue importing AzureIoTHubClient in Xcode (Could not build Objective-C module 'AzureIoTHubClient')

When running the sample code in Xcode (.xcworkspace), I get the error: Could not build Objective-C module 'AzureIoTHubClient'.
I am running Xcode 11.2.1 and Cocoapods 1.8.4.
Without this package, I cannot connect the IoT Hub at all
The Podfile defines iOS 9.0 but I have also tried uncommenting the line to default it to iOS 10.2.

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

ID: 7b66d527-9507-d8f7-297a-1e6743001e2d
Version Independent ID: 2f251826-74ea-f68f-d25c-75900949ac30
Content: Send telemetry to Azure IoT Hub quickstart
Content Source: articles/iot-hub/quickstart-send-telemetry-ios.md
Service: iot-hub
GitHub Login: @wesmc7777
Microsoft Alias: wesmc

Hi @bradmclaughlin sorry to hear that you are facing this issue. This issue was opened in the wrong document can you please share the link for the tutorial/doc that you were following? Also would you please open an issue on the SDK repository? https://github.com/Azure/azure-iot-sdk-c/blob/master/doc/sdk_cocoapods.md

Hi @Alberto-Vega-MSFT, oh it must've redirected!
I have created the issue in the SDK repository (#1314). Also, the guide I am following is: https://docs.microsoft.com/en-gb/azure/iot-hub/quickstart-send-telemetry-ios

Updated metadata to point to the right document/tutorial.


test cases for networking

when the network plugin is installed, we should deploy containers and make experiments...

Hi Stefano! I'm tracking this in #30 already :)


RAIN WATER SAVING-INTERVIEW QUESTION(FAANG)

AKSHITA has created an elevated roof. She wants to know how much water can she save during rain.
Given n non negative integers representing the elevation map where width of every bar is 1, Find the maximum water that she can save.
Explanation for the Sample input Testcase:

Elevation Map
Input Format
First line contains an integer n. Second line contains n space separated integers representing the elevation map.
Constraints
1 <= N <= 10^6
Output Format
Print a single integer containing the maximum unit of waters she can save.
Sample Input
10
0 2 1 3 0 1 2 1 2 1
Sample Output
5

ADD IN INTERVIEW QUESTION REPO

Hi, I'd like to work on this.

ok assigning to u

PROCESS OF CONTRIBUTION IN THIS REPOSITORY
FORK THIS REPOSITORY
ADD YOUR CODE IN RESPECTIVE FOLDER
CREATE A PULL REQUEST
AFTER A SIMPLE CHECK I WILL MERGE THE PR
HAPPY CODING AND CONTRIBUTING!!!!

Hey, I would Like to work on this


Network state not starting cleanly from hard coded param settings

There is a problem with VC and network state. Ive updated a few network params during a test which completed ok.
I then restarted the network (nomad clean restart and network all services restarted)
My params are still set to previous settings so I believe the state is still being picked up locally.

Well you have to destroy and bootstrap if you want to start network with new genesis.

how is it that we are able to change and reset params through system test runs without destroying the network?
only these two are not reset
    "limits.assets.proposeEnabledFrom": "2021-12-17T14:34:26Z",
    "limits.markets.proposeEnabledFrom": "2021-12-17T14:34:26Z"

@vega-paul How do you change them in system tests? Is it by modifying genesis or network param proposals?

Closing as there has been flags added that allows a new genesis file to be loaded into the network


[#126] feat: add setHeader alias for res.set

express has a setHeader alias used by many packages ie.
helmet
Issue
Fixes #126.
Details
Simply adds a res.setHeader method that passes through to res.set, functioning as an alias.
CheckList

[x] PR starts with [#ISSUE_ID].
[x] Has been tested (where required).

Hey @TillaTheHun0 :wave:
Thanks for the contribution! This was missed originally as it isn't an Express API per say, but rather inherited on the Response object which extends the Node HTTP std lib, see --> https://nodejs.org/api/http.html#http_response_setheader_name_value.
For compatibility with Node libs in Deno I'm all for adding some alias functions!
It looks like you're being picked up for formatting, if you could run make fmt to follow Deno formatting rules that would be awesome.
Please could you also add some tests for the setHeader method - you can use the existing tests for res.set() as a guide ( REF: https://github.com/asos-craigmorten/opine/blob/main/test/units/res.set.test.ts ), for instance feel free to copy pasta and replace .set with .setHeader where appropriate. Alternatively can likely get away with a single test that asserts on the golden path.

@asos-craigmorten thanks for the quick review and suggestions!
Docs updated ✅
Types updated ✅
Code formatted ✅
Tests added and passing ✅
commit message updated to reflect actual reason for adding this api ✅
For the tests, instead of copy/pasta-ing the tests for set and duping checks that would just have to then be updated in tandem any time set changed, I just wrote tests that assert that set is being called with args passed to setHeader, since setHeader is meant to be an alias and documented as such. As long as set does what it's supposed to do, asserted by its own tests, then so will setHeader :)
Let me know what you think and thanks again.


REKDAT-116: Hide user capacity in organization lists

Don't show user role (capacity) in organization listings even if asked to

Misunderstood task


Telegram Weather Bot added

Description
Telegram Weather BOt with the mentioned feature.

Get weather forecast for any city

Get weathe forecast for any city around the world

Get details like temperature, wind direction, wind speed, humidity,pressure, sunrise ,sunset time and day length

Please provide the "GSSOC" tag when merged.

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md
[x] My documentation follows Template for README.md

Category:

[ ] Calculators
[ ] AI/ML
[ ] Scrappers
[ ] Social_Media
[ ] PDF
[ ] Image_Processing
[ ] Video_Processing
[ ] Games
[ ] Networking
[ ] OS_Utilities
[x] Automation
[ ] Cryptography
[ ] Computer_Vision
[ ] Fun
[ ] Others

Title: <Telegram_Weather_Bot>
Folder: <Telegram-Weather-Bot>
Requirements: <none>
Script: <Enter the name of the .py file (The main entry point of the program)>
Arguments: <none>
Contributor: <alwenpy>
Description: <A telegram Weather Bot that tells weather details of the given city.Details include temperature ,pressure,wind speed,humidity etc>

Add issue no.

Added the issue number


Meta file missing

Hi Huijuan,
I find that your README has explained everything well. I really appreciate it!
However, when I generate the pickle data for training and testing R-C3D model, I checked everything in your repo, but can't find meta file like 'validation_set.mat' and the error is shown as follow:
IOError: [Errno 2] No such file or directory: '${DATA_PATH}/data/val/validation_set_meta/validation_set.mat'
Could you please upload it or tell me the hints to find it, or how to generate it? Thanks for your help! @huijuan88
Best,
June

Try to download it from THUMOS14 dataset website.
On Aug 16, 2018, at 00:18, JuneXie <notifications<EMAIL_ADDRESS>wrote:
Hi Huijuan,
I find that your README has explained everything well. I really appreciate it!
However, when I generate the pickle data for training and testing R-C3D model, I checked everything in your repo, but can't find meta file like 'validation_set.mat' and the error is shown as follow:
IOError: [Errno 2] No such file or directory: '${DATA_PATH}/data/val/validation_set_meta/validation_set.mat'
Could you please upload it or tell me the hints to find it, or how to generate it? Thanks for your help! @huijuan88https://github.com/huijuan88
Best,
June
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/VisionLearningGroup/R-C3D/issues/35, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFOa_zVlrhu2HuVZ03kOiSrozRYn9lrEks5uRPKdgaJpZM4V_LMM.


有没有计划支持AEC

1.非常好的项目，请问作者有没有计划支持GTCRN的回声消除模型。

你好，目前的计划是进一步优化该模型在SE中的性能，暂无拓展到AEC的计划~

@TungyuYoung Yes, it's a great direction. I have tried vanilla knowledge distillation but improved little. So you have done it successfully?

@Xiaobin-Rong what kind of teacher model have you tried? I tried to expand the GTCRN model changing the channels and so on but the teacher model doesn't converge really well.

@ercandogu-elevear Yes, I tried expanding GTCRN as teacher models. I also found similar phenomena of bad convergence when expanding GTCRN to a certain scale, for example, 6 GMacs. Actually, the phenomenon keeps the same when I change GTCRN to MTFAA. But if we modify the models from causal ones to non-causal ones, the convergence becomes normal.

@Xiaobin-Rong Is there any possibility you can share the teacher model? I am really interested in KD area, trying in for the first time,  but I couldn't create a teacher model that converges well.  Therefore I don't get any improvements.


Spelling mistake in splashes.txt

Windows 10 x64, 03c1ca0 x64
https://github.com/Encore-Developers/Encore/blob/ef25aa42a918a3bcaa05c08b66157b36bd1f3bad/Encore/Assets/ui/splashes.txt#L10
The canon spelling is "phoenix".

fixed


iOS: Instead of opening application directly, Branch.io takes me to safari

Hi, I just implemented branch in my ionic 1 application, but I have a problem with the deeplink "xxxx.app.link", in android it works perfect, in the click it opens the app, but in ios it takes me to safari - doesn't recognize the installed app (in both cases the app Is installed).
After opening safari, if I manually open the app it recognizes the link data.
config.xml
<plugin name="branch-cordova-sdk" spec="^2.5.0"/>     <branch-config>         <branch-key value="key_live_mdxxxxxxxxxxx"/>         <uri-scheme value="xxxxxx"/>         <link-domain value="xxxxx.app.link"/>         <ios-team-release value="........"/>     </branch-config>
I am completely sure that the branch-config data is correct.
i tried to reinstall the plugin but it doesn't work, i tried with old version but doesn't work.
I do not know what else to do to fix that issue.
Thanks for your help.

Hi @sebasnavarrete , I'm not a part of branch.io dev team, but I was also stuck while configuring, so got a little idea.
Have you tried removing ios platform from ionic app and adding it back?

cordova platform remove ios
cordova platform add ios
After doing this run cordova build ios, and check if xcode shows its configurations in info.plist. Also you will have to enable Associated Domain capability and add it to application identifier (developer.apple.com).

Hello razam217, thanks for your answer. Yes i have tried that and it does not work :(

Hello hello,
Ideally, you should not need to rebuild your platform (cordova platform remove ios && cordova platform add ios) for Branch to work. I wrote the scripts so it should work off a build (cordova build ios). It is concerning that you had to do this. I will create some sample apps to see if I can replicate that issue.
For the Ionic 1 issue, I created a quick sample app and was not able to replicate your issue. Typically for Universal Linking issues, you want to make sure you:

Make sure your app settings match your branch settings
Run your app through Xcode at least once (to set your developer team)
Test on a device (simulators behave finicky every now and then)
Go through this testing procedure to make sure your device is not caching an old state of your app

Thanks,


hpt-edge-1-5 use_cache error

Trying demo.py with hpt-edge-1-5 model I get the following error:
File "/opt/anaconda/envs/kosmos/lib/python3.11/site-packages/transformers/generation/utils.py", line 1322, in _get_initial_cache_position
past_length = model_kwargs["past_key_values"][0][0].shape[2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable
With some debugging it appears to be caused by "use_cache"  being True in the huggingface function mentioned in the error even though it's False in the model config. The model seems to run correctly if I force it to False (by overwriting the function).

Probably caused by huggingface issue:
https://github.com/huggingface/transformers/issues/31017
Adding check for past_key_values=None resolves the crash.


[Enhacement] Replace node-sass package with sass

Deliverables -

[ ] As sass-lang will no longer be giving updates to node-sass so we want to replace the node-sass package with sass
[ ] Update all the depricated npm packages

Doc Ref - https://www.npmjs.com/package/sass

@Kajol-Kumari  ok assign me this under GSSOC22 and i will try it


Link to cli binaries from UI

Is your feature request related to a problem? Please describe.
If a developer is just coming on board, it would be very helpful if an admin could give access to the UI then have a link there to pull the latest cli tooling. While it's definitely not hard to find with google, it's just one less potential source of frustration for a new user.
Describe the solution you'd like
On the UI, we should include a link somewhere to the right release for the targeted cluster

@richard-cox does this have a matching issue in the ui project?


Anytime Cautious Reasoning

Hi,
Is it possible to compute anytime cautious reasoning using clingo?

The solver reports a lower and upper bound on the cautious consequences whenever a model is found. You see Consequences: [l;u] in the output. Unfortunately, there is no easy way to check which atoms have already been shown to be cautious consequences. This is rather a problem with the API, which does not (conveniently) expose this information. One could still get this information but it would require using a propagator.

I see, thank you

If this is important for your application, it would probably be easy to extend the API to query whether an atom is a consequence.

I implemented a first draft in #423.


[ngtools] exported services/pipes are removed from AOT build

Versions
@angular/core: ^5.1.0
@ngtools/webpack: ^1.9.0

Repro steps

Code sample npm run build:aot

Step 1
Write a Pipe/Service and declare it in a module
Step 2
Export the Pipe/Service from the module
Step 3
Use the exported service anywhere else (ie: angularJS app through downgradeInjectable(HelloService))

Observed behavior
It's impossible to export a service and use it in an angularJS application through downgradeInjectable
// webpack output
Object.defineProperty(exports, "__esModule", { value: true });
var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    return AppModule;
}());
exports.AppModule = AppModule;

Desired behavior
The service should be exported.
// webpack output
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(0);
var core_1 = __webpack_require__(2);
var platform_browser_1 = __webpack_require__(18);
var AppPage_1 = __webpack_require__(50);
var HelloPipe_1 = __webpack_require__(51);
exports.HelloPipe = HelloPipe_1.HelloPipe;
var HelloService_1 = __webpack_require__(19);
exports.HelloService = HelloService_1.HelloService;
var AppModule = /** @class */ (function () {
    function AppModule() {
    }
    AppModule = tslib_1.__decorate([
        core_1.NgModule({
            imports: [platform_browser_1.BrowserModule],
            providers: [HelloService_1.HelloService],
            declarations: [AppPage_1.AppPage, HelloPipe_1.HelloPipe],
            exports: [HelloPipe_1.HelloPipe],
            bootstrap: [AppPage_1.AppPage]
        })
    ], AppModule);
    return AppModule;
}());
exports.AppModule = AppModule;

Mention any other details that might be useful (optional)
About pipes: I could not find any "best practice" on how to use pipes in code (community answer1, community answer2). This is not related to angular-cli but someone might have the answer here? To work around this issue (the pipe removal), for now I just use an intermediate function that I call in the pipe and that I import in my code. (But I cannot apply this hack to Injectables)
import { Pipe, PipeTransform } from '@angular/core';

export function hello(){ return 'Hello' }

@Pipe({ name: 'hello' })
export class HelloPipe implements PipeTransform {
    transform(val: string): string { return hello(); }
}

Hi @hansl sorry to bother you.
Would it be possible to tell me if it's a real issue within the @ngtools/webpack package? If it is, I might have the time to help fixing it.
Otherwise could you point me in the right direction to properly handle the use-cases I mentionned above (re-exported pipes/services)?
Thank you in advance 😊


FormattableString overload on ExecuteSqlCommand invites subtle SQL injection vulverability

This code is safe:
db.ExecuteSqlCommand($"delete from Log where Time<{time}");

But this is not:
db.ExecuteSqlCommand(useLogA ?
    $"delete from LogA where Time<{time}" :
    $"delete from LogB where Time<{time}");

Likewise, this is not:
db.ExecuteSqlCommand(
    $"delete from Log " +
    $"where Time<{time}");

In the first unsafe case, when two FormattableString operands are used with the conditional operator, the expression evaluates to a string, not another FormattableString. Unless you know this subtle (and I find rather unintuitive) rule, you might easily write code expecting the argument to be passed as a SQL parameter, only to find you've really dumped unsanitized user content into a SQL command.
In the second unsafe case, you're using multiple lines for readability.
In both unsafe cases the implicit conversion from string to RawSqlString causes the unintended overload to be invoked.
Proposed resolution:

Long term: Improve C# string interpolation.
Short term: Mark the FormattableString overload obsolete so that a warning alerts devs to the potential danger. Create a replacement that simply has a different name from the RawSqlString overload, perhaps ExecuteFormattedSqlCommand.

Both of your issues relate to how Roslyn implemented interpolation. Yes it causes a lot of headaches, and is non-intuitive, but they made the compiler prefer string over FormattableString. So any compile chain that could produce a string instead of a FormattableString will.
For your first issue, I think if you explicitly cast one or both (not sure off the top of my head which it must be) it should work.
for your second, you cannot concatenate Formattables out of the box and there is no built in formattable builder.

I don't question that there are reasonable ways to get EF Core to do what you want. Indeed, when I encountered this issue, once I discovered the parameters in my query weren't getting sent as SQL parameters, it was easy to fix.
My concern is discovery. In my experience that led to uncovering this issue, I was alerted to the problem when I was passing a string value that resulted in invalid SQL query since the string wasn't quoted. If a surprise absence of FormattableString always causes tests to fail, there's no problem. However, if there are scenarios where the SQL command would still work even without SQL parameters, that's when security holes can sneak in.
I think the key question - which I don't know the answer to - is whether there are types that are (1) open to SQL injection and (2) work with and without SQL parameterization. For example, strings are open to SQL injection, but would a string intended to be a parameter always fail if it ended up inline, due to lack of quoting?
In general, EF Core's design should account for rules of the major languages used to program with it. A good design avoids making it easy to write code that is insecure in a way likely to go unnoticed by the initial dev or a security code review.

@breyed @mrswain The issue was previously brought to our attention e.g. at https://github.com/aspnet/EntityFrameworkCore/issues/9734#issuecomment-328243741, but we appreciate the level headed explanation and the additional examples provided here.
We are currently evaluating/discussing options within reach of the EF team, mainly trying to understand if changing things would actually result in a net improvement.
The problem with deprecating an overload (either the one that takes FormattableString or the one that takes RawSqlString) is that it might affect the usability of the API differently across different tools and IDEs, but this is indeed one of the options on the table. We are also going to brainstorm with the language team to see if they can come up with anything better.

What I think the "ideal" solution would be, really is not ideal because it cannot be backported to prior compilers. I think this is an example of the need for custom pragma warnings, similar to obsolete but not so ominous, but can be disabled with pragma warn markers. This would allow notice that using either of these functions could have SQL injection vulnerabilities, and maybe a pointer to interpolation issues, and the developer can then suppress them as a form of compliance acceptance.
Just my thoughts.

@mrswain Such a pragma would have the same effect as marking the overload obsolete: It would mark existing use and discourage future use of the dangerous construct. The obsolete marker is much easier to implement. In either case, there still should be a safe, friction-free option for new code and for migration of existing code, such as a non-overloaded method that takes the FormattableString.

I had another thought, and this would not be a compiler change. Instead of RawSQLString, how about reversing it and making a wrapper called ParameterizedSqlString (or some such) that allows an explicit conversion from FormattableString. This would both signify that the formattable args will be processed as parameters and not break any 1.x migrated code..

As i work on my project I keep thinking about this and I have another thought as an addendum to my prior one.
Add a static public method to RawSqlString:
public static FormattableString Parameterized(FormattableString parameterizedSql)
{
    return parameterizedSql;
}

This can be used either via RawSqlString.Parameterized(...) or via just Parameterized(...) with a
using static Microsoft.EntityFrameworkCore.RawSqlString;

at the top.
Now you can obsolete the RawSqlString overload and re-add back a string overload. This would allow ported code to work, a warning for anybody compiled against the RawSqlString version, for explicit casting of FormattableString, and provide a helper to ease in explicit casting.

We will try to address this with an analyzer. Assigning to @anpete.

Analyzer will be in 2.1


Rework Travis CI script

Move all .travis/*.sh functionality directly into .travis.yml
Install Alex/Happy from PPA instead of compiling them by hand
Skip Shake progress indicators, as they're rather useless
on clean-slate Travis builds, and clutter up the log
Don't use a Cabal sandbox for building so Travis can share
$HOME/.cabal
boot/configure only after the Shake build system is in place,
otherwise some required *.in files are not converted, and
Shake fails

:+1:


Support for ThreeTenBp

relating to #7, would it make sense to also add support for https://github.com/ThreeTen/threetenbp?
It can be used as a drop-in replacement for android < API Level 26, allowing very smooth (package replace) migration once a project moves to >= 26.
Would you accept PR for this?

Sure, please PR

would you agree to improve packages for major future release? eg
com.github.debop.koda.time -> standard java.time
com.github.debop.koda.joda -> joda
com.github.debop.koda.threetenbp

Split module
java-time ( for standard java.time in jdk 8)
koda-time for joda
You can add threetenbp module


Integration with Auth0

Hi,
Anyone has implemented with Auth0 as backend?
Best regards.

any updates on this issue/implementation? @Aletz-Arce @st4lk

hello not yet I am stuck in other functions. I'll close this and reopen it when I've done the pull request