Is there a Resful api which can be used to upload PDF or textfile ?

Is there a Resful api which can be used to upload PDF or textfile?

Yes, on a running instance or even on Desktop you can go to "API Keys" and you can generate an API key and also view the docs and endpoints for uploading documents.
HTTP://localhost:3001/api/docs is usually the endpoint


somtimes syncAddObject not working

Sometimes this function works fine but sometimes there is no update to database.

Hello!
Could you please provide some more information regarding the issue (such as stack trace or example code)? It would make it much easier to identify the problem :)

What does the method return? Does it say that the update was successful?

I don't know how to say for you easily fix it but basically I created an object, updated a value of an integer variable. Sometimes the value is updated, but sometimes there is no thing. I have to use the method: database.addObject(template, update: true), it works fine then.

Thanks for the response :)
Ok. If an object with the same primary key already exists, you have to use update = true, or you will get a constraint violation error from SQLite. I believe true is the default value, so I'll have a look at it.


how to extract certain page from the whole document?

I want to extract some pages from the whole document. For example, the total page number is 100. I want to make a new document with page 70~90.  I used delete paragraphs, but it deletes the contents of paragraph. it doesn't delete the page entirely. and other problem is that tables are treated in different structure. so it doesn't work. what is the solution?

Please use StackOverflow for support questions, using the 'python-docx' tag.
The short answer is page boundaries aren't stored in the Word file, their position is determined by the renderer (Word application) which "flows" the document onto pages.
I suspect what you want is iter_block_items, if you search on 'python-docx iter_block_items' you'll find more on that.


Android build failure due to Build Tools revision mismatch

I'm presently unable to build the Android project with react-native-config integrated, with the following error:

The SDK Build Tools revision (23.0.1) is too low for project ':react-native-config'. Minimum required is 25.0.0

the main Android app's build.gradle is configured thusly (with irrelevant bits trimmed for brevity):
android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
}

the app is configured to use gradle v2.3.2.

Same issue here
ext {
    buildToolsVersion = "26.0.3"
    minSdkVersion = 16
    compileSdkVersion = 26
    targetSdkVersion = 26
    supportLibVersion = "26.1.0"
}

same issue doesn't seem like this package is maintained.

sorry guys for not having replied earlier, I did indeed find a solution to this; essentially you add a snippet to your build.gradle file to force android projects to use the sdk and build tools version that your main project uses.
in my case, this takes the form of the following block added to the <PROJECT_ROOT>/android/build.gradle file:
buildscript {
  ...
}
allprojects {
  ...
}

// add the snippet below this line (merging with any nodes you might already have in your file)
subprojects {
    afterEvaluate { project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion 27
                buildToolsVersion '27.0.3'
            }
        }
    }
}

this will target every android subproject included in the gradle config; if you just want to target react-native-config, you can alter the if condition to be if (project.name.contains("react-native-config")).
good luck & happy coding!


Automatic PR of restapi_auto_jhendrixMSFT_compute into master

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/2409

Codecov Report

Merging #1893 into master will increase coverage by <.01%.
The diff coverage is 56.61%.

@@            Coverage Diff             @@
##           master    #1893      +/-   ##
==========================================
+ Coverage   52.55%   52.56%   +<.01%
==========================================
  Files        4647     4654       +7
  Lines      114592   114828     +236
==========================================
+ Hits        60229    60360     +131
- Misses      54363    54468     +105

Impacted Files
Coverage Δ

...compute/v2017_03_30/operations/disks_operations.py
38.42% <ø> (ø)
:arrow_up:

...gmt/compute/v2017_12_01/models/hardware_profile.py
100% <ø> (ø)
:arrow_up:

...ute/v2017_03_30/operations/snapshots_operations.py
23.96% <ø> (ø)
:arrow_up:

.../azure/mgmt/compute/v2017_12_01/models/__init__.py
100% <100%> (ø)
:arrow_up:

...e/azure/mgmt/compute/v2017_12_01/models/os_disk.py
100% <100%> (ø)
:arrow_up:

...17_12_01/models/compute_management_client_enums.py
100% <100%> (ø)
:arrow_up:

..._12_01/models/virtual_machine_scale_set_os_disk.py
100% <100%> (ø)
:arrow_up:

...2017_12_01/models/virtual_machine_instance_view.py
100% <100%> (ø)
:arrow_up:

...re/mgmt/compute/v2017_12_01/operations/__init__.py
100% <100%> (ø)
:arrow_up:

...azure/mgmt/compute/v2017_12_01/models/data_disk.py
100% <100%> (ø)
:arrow_up:

... and 18 more

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 a4c5b9d...61a60a0. Read the comment docs.

Not Python related


Configuration Option - VARCHAR/NVARCHAR

I just migrated a rather large project from PetaPoco to NPoco . Then I quickly remembered (when all the errors starting coming in) that I had changed PetPoco to use VARCHAR instead of NVARCHAR by default since all columns were VARCHAR . Otherwise, indexes are not used and we have a bad situation.
I am working on a fork to do the same in NPoco for my project. Would there be interest to include in NPoco an option to use VARCHAR instead of NVARCHAR for all strings as a flag or configuration option?
I think it's definitely a handy option for those projects that use varchar exclusively.

I think as long as the default is NVARCHAR that'd be cool.
On Mon, Feb 6, 2017 at 2:19 PM, tbasallo<EMAIL_ADDRESS>wrote:

I just migrated a rather large project from PetaPoco to NPoco . Then I
quickl remebered (when all the errors starting coming in) that I had
changed PetPoco to use VARCHAR instead of NVARCHAR by default since all
columns were VARCHAR . Otherwise, indexes are not used and we have a bad
situation.
I am working on a fork to do the same in NPoco for my project. Would there
be interest to include in NPoco an option to use VARCHAR instead of
NVARCHAR for all strings as a flag or configuration option?
I think it's definitely a handy option for those projects that use varchar
exclusively.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/schotime/NPoco/issues/368, or mute the thread
https://github.com/notifications/unsubscribe-auth/AQAmlmAQNdcoVLeD1URwf4J0VU1taj0fks5rZ3JRgaJpZM4L4mp1
.

I agree, I would not want to change the expected behavior.
Ideally, it would either be a property on Database or a constructor option that would configure a flag to use VARCHAR instead of NVARCHAR for that Database instance.

You can override the type by creating your own database type instance like so.
    public class MySqlServerDbType : SqlServer2012DatabaseType
    {
        public MySqlServerDbType()
        {
            AddTypeMap(typeof(string), DbType.AnsiString);
        }
    }

Then pass this instance into the constructor of Database when you new it up.

This is perfect. I didn't see this in the docs, guess I need to search better :)
Thanks


REFRESH

[ ] Redmine Issue: https://redmine.pfsense.org/issues/NNNN
[ ] Ready for review

CLOSED

FIxing conflicts


SPARQL Support Issues

I noticed that (COUNT(*) as ?cnt) is invalid in the SELECT clause.

@AndreaWesterinen Yes, that is one of the several details, which are easy to implement, but are currently still missing. This one is particularly easy because the number of rows of the result is already contained in the output (both in the QLever UI and in the result JSON).
We are adding these one by one and we are making very good progress. For example, QLever now also supports the iconic ?s ?p ?o query and all kinds of variants. And in a QLever-like fashion, the support is very efficient. For example, the following simple query times out on both the Wikidata Query Service and on Virtuoso, but Qlever processes it very fast:
SELECT * WHERE {  ?s ?p ?o }
ORDER BY ?p
LIMIT 1000

Click here to try the query live

Thank you for the reply.  I was just doing as you suggested ... to enter
bugs as I encounter them.
Andrea Westerinen
T:<PHONE_NUMBER>
@.*** or @.***
https://organizingknowledge.blogspot.com
https://hearing-all-voices.blogspot.com
On Tue, Mar 15, 2022 at 7:50 PM Hannah Bast @.***>
wrote:

@AndreaWesterinen https://github.com/AndreaWesterinen Yes, that is one
of the several details, which are easy to implement, but are currently
still missing. This one is particularly easy because the number of rows of
the result is already contained in the output (both in the QLever UI and in
the result JSON).
We are adding these one by one and we are making very good progress. For
example, QLever now also supports the iconic ?s ?p ?o query and all kinds
of variants. And in a QLever-like fashion, the support is very efficient.
For example, the following simple query times out on both the Wikidata
Query Service and on Virtuoso, but Qlever processes it very fast:
SELECT * WHERE {  ?s ?p ?o }
ORDER BY ?p
LIMIT 1000
Click here to try the query live
https://qlever.cs.uni-freiburg.de/wikidata/ABNSsH
—
Reply to this email directly, view it on GitHub
https://github.com/ad-freiburg/qlever/issues/633#issuecomment-1068575968,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABTDPUJ6CKKL4SUJJEQLTVTVAEO3ZANCNFSM5Q2FLEQQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

@AndreaWesterinen Thanks, Andrea.

QLever now also supports the iconic ?s ?p ?o query and all kinds of variants. And in a QLever-like fashion, the support is very efficient. For example, the following simple query times out on both the Wikidata Query Service and on Virtuoso, but Qlever processes it very fast:
https://qlever.cs.uni-freiburg.de/wikidata/ABNSsH

Sorry to jump on an old thread here, but I noticed that this is no longer working and now gives an error: "Error processing query: Tried to allocate 139279MB, but only 33872MB were available."
Is this a known issue or a new bug?

I don't think this query ever worked in conjunction with an ORDER BY.
This query works just fine: https://qlever.cs.uni-freiburg.de/wikidata/Atwmc0
Out of curiosity: why would you want an ORDER BY for this query?

@hannahbast  Thanks for the explanation. I was just using the sample query that you provided in your comment above, and the link which you also provided. Since you said it was working with an ORDER BY at the time, and it's not working now, I thought it might be a regression.


Bug Report: Problem setting up haxelflixel for the first time, with KadeEngine. Webmhandler.hx is not working

My friend was helping me set up Haxelflixel as i am not that tech savvy.
Everything was going well i had downloaded all the necessary resources for modding fnf with KadeEngine. we were just compiling the files when we ran into an error with the webmhandler.hx file   "C:\Users\USER1\Desktop\fnf modding\Kade-Engine-stable\source". I was having problems and my friend said not o worry as he encountered the same problem with the webmhandler.hx . i deleted the unnecasarry code KadeDev said wasnt need as a bug was patched. it didnt work. my friend sent over his working webmhandler.hx to replace it in its file location "C:\Users\USER1\Desktop\fnf modding\Kade-Engine-stable\source" i reran powershell useing "lime test windows" but it didnt work. can anybody help
Many Thanks,
Neo

use the build guide not ur friend also are you trying to edit the website or the engine?

and your friend's webmhandler is old

use the build guide not ur friend also are you trying to edit the website or the engine?

I'm making a mod


The logback log always outputs four variables to the log by default.

spring boot 1.5 + spring clund sleuth 1.3.6
Not using spring clound other features
I don't want to use sleuth to add to the four variable log formats in the logback. No matter how it is configured, the four variables will be added to the log.
It is also useless to configure the console pattern in logback-spring.xml, or there will be four variables by default.
[sinogear,5bee636f0addecfec1199dd15e0bddae,c1199dd15e0bddae,false]
use yml config

Just set spring.sleuth.enabled=false to disable setting any entries to MDC. Configure the logging pattern as you wish to disable the default logging setup.


Alert when performance is improved

Note this is a feature request.
When configuring the action, it would be nice to have the ability specify an option that shows an alert if the performance is improved by the defined threshold.
Also, thanks for this action—it's great!

Would putting the alert-threshold to "90%" work? 😊


Add Stride latest

This pr add a the cask for the new atlassian chat application Stride.
After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[x] Named the cask according to the token reference.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.
[x] Checked there are no open pull requests for the same cask.
[x] Checked the cask was not already refused in closed issues.
[x] Checked the cask is submitted to the correct repo.

@commitay This is my first cask, thanks for your help!
I've cleanend up my branch history / commit.

No problem, thanks for the quick response on the url!

I've cleanend up my branch history / commit.

GitHub allows us to squash when merging, we prefer that contributors don't squash commits so we can see changes that have been made.

GitHub allows us to squash when merging, we prefer that contributors don't squash commits so we can see changes that have been made.

Ah okay. Habit from other projects.


STT DEMO KWS -- Text normalization is needed for all models; all keywords are erroneously not spotted for all non-US English models

Re: STT DEMO KWS -- Text normalization is needed for all models; all keywords are erroneously not spotted for all non-US English models. Currently, all keywords are spotted for only US English models.
When testing STT demo, via this link --> https://speech-to-text-demo-june20th.mybluemix.net/, I sighted this issue.
For all models, (except US Engish broadband and narrowband models), when more than one keyword is entered with different casings (lowercase vs. uppercase) of the same keyword, (i.e., para, PARA) in the key word spotting box, erroneously, not all of these words are spotted.
For this example, where text is..
"PERO QUIERO PREGUNTARLE SI SOLO EXISTEN PRODUCTOS. PARA LA PIEL PARA TRATAR EL ACNE. OH HAY OTRA FORMA DE TRATARLO. "
Expected:

para (2)
Start:  5.89    End:    6.12    Confidence: 100.0%
Start:  6.77    End:    7.02    Confidence: 99.9%
PARA (2)
Start:  5.89    End:    6.12    Confidence: 100.0%
Start:  6.77    End:    7.02    Confidence: 99.9%

Actual:
para

PARA (2)
Start:  5.89    End:    6.12    Confidence: 100.0%
Start:  6.77    End:    7.02    Confidence: 99.9%

Please let me know if you have any questions or comments.
Alexandra

Hi @Atreilly , thanks again.
I don't think there's a distinction between upper case and lower case for keyword spotting, so that's probably part of the issue. That said, I think the service should return all occurences of the keyword. @daniel-bolanos ?

Looking at this again, I think I understand better. For English, keyword casing is normalized and the keyword is still spotted if the casing is different; whereas, for e.g. Spanish, keyword casing is not normalized and must match the output casing.
I'm going to notify the service team and close this, as the issue is not really specific to the demo.


SQL queries don't like double-quotes or backticks

Backticks and/or double quotes (in this case, to escape a keyword as a column name) in an SQL query causes this error to be thrown:
unknown error (code 0): Queries can be performed using SQLiteDatabase query or rawQuery methods only.

Nevermind, it appears the problem is somewhere else in my query (it's rather complex).


Update Readme file & add Learn.md

A README file is essential in any given repository because it serves as the primary source of information about the project. It provides an overview of the project's purpose, how to install and use it, and any necessary prerequisites. Additionally, the README often includes guidelines for contributing, links to documentation, and contact information for the maintainers. This file ensures that both new and returning users can easily understand the project's scope, setup, and usage, thereby enhancing the project's accessibility and fostering collaboration. By consolidating all critical information in one place, a README file significantly improves the user experience and facilitates effective project management.
Kindly assign this issue to me under GSSoC'24

Hi .I am interested .Please assign me this issue Under GSSOC'24


[Event Request] Table 12175 "Customer Bill Line" - Trigger OnValidate field "Cumulative Bank Receipts" - New Event OnBeforeTestFieldDirectDebitMandateID (Italian Localization)

Hello, we need the possibility to extend the trigger OnValidate (field "Cumulative Bank Receipts") on "Customer Bill Line" Table (T 12175) as follows:
        field(35; "Cumulative Bank Receipts"; Boolean)
        {
            Caption = 'Cumulative Bank Receipts';

            trigger OnValidate()
            begin

                //new-s
                IsHandled := false;
                OnBeforeTestFieldDirectDebitMandateID(Rec, IsHandled);
                if not IsHandled then
                //new-e
                    TestField("Direct Debit Mandate ID", '');
            end;
        }

    [IntegrationEvent(false, false)]
    local procedure OnBeforeTestFieldDirectDebitMandateID(var CustBillLine: Record "Customer Bill Line"; var IsHandled: Boolean)
    begin
    end;

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.
Build ID: 42232.


[SR-10971] SwiftShims pulls in visualc

Previous ID
SR-10971

Radar
None

Original Reporter
@compnerd

Type
Bug

Additional Detail from JIRA

Votes
0

Component/s
Standard Library

Labels
Bug, Windows

Assignee
None

Priority
Medium

md5: 69028200e3f5dd0a198cc39bd329c626

Issue Description:
The SwiftShims module pulls in the visualc module which is less than ideal.  The SwiftShims module is meant to be used to break the circular dependency.

I'm going to close this off for now.  Some more details on the nature of the issue:
Windows SDK is the core bit of interface to the Windows API surface.  This depends on UCRT, which is distributed as part of the Windows SDK.  However, ucrt itself depends on VCRuntime, which is part of the VisualC++ toolset.  This is the route to the dependency and there is no clear path to dropping that at this time.


change so scope name saved for custom scope

The OidcProfileScopeToAttributesFilter class uses the scope name to link a particular OidcCustomScopeAttributeReleasePolicy to a custom scope name. The scope name is not really useful for the standard scope types so it isn't written out to json (annotated JsonIgnore). This pull request changes the existing scopeName to scopeType and adds scopeName to OidcCustomScopeAttributeReleasePolicy. If the service definition doesn't include a scope name in the block for the OidcCustomScopeAttributeReleasePolicy then it will not be matched with a the custom scope listed in the "scopes" hashset and it will not be persisted when the OidcProfileScopeToAttributesFilter saves the service at end of its reconcile method. (In other words, scopeName should be required for OidcCustomScopeAttributeReleasePolicy, in the service defintion).

I think this is good. Could you share a few examples on how you'd define a custom scope with this patch? Does anything change?
For instance, I have the following:
cas.authn.oidc.scopes=openid,profile,email,address,phone,offline_access,MyCustomScope
...
cas.authn.oidc.userDefinedScopes.MyCustomScope=cn,givenName,employeeNumber,sAMAccountName,department,phone

And then the service would simply have MyCustomScope as its release policy. Does this patch affect this configuration in any way?

Those configs wouldn't change. The service json would need to include scopeName in these two sections:
  attributeReleasePolicy:
  {
    @class: org.apereo.cas.services.ChainingAttributeReleasePolicy
    policies:
    [
      java.util.ArrayList
      [
        {
          @class: org.apereo.cas.oidc.claims.OidcCustomScopeAttributeReleasePolicy
          principalAttributesRepository:
          {
            @class: org.apereo.cas.authentication.principal.DefaultPrincipalAttributesRepository
            mergingStrategy: MULTIVALUED
            ignoreResolvedAttributes: false
          }
          consentPolicy:
          {
            @class: org.apereo.cas.services.consent.DefaultRegisteredServiceConsentPolicy
            enabled: true
          }
          authorizedToReleaseCredentialPassword: false
          authorizedToReleaseProxyGrantingTicket: false
          excludeDefaultAttributes: false
          authorizedToReleaseAuthenticationAttributes: true
          order: 0
          allowedAttributes:
          [
            java.util.ArrayList
            [
              linkuriousemail
              someotherttribute
            ]
          ]
	  scopeName: MyCustomScope
        }

and
  scopes:
  [
    java.util.HashSet
    [
      MyCustomScope
      profile
      email
    ]
  ]

If the scopeName was missing from the service config for OidcCustomScopeAttributeReleasePolicy, then the OidcCustomScopeAttributeReleasePolicy would be deleted from the chain. Maybe if there was only one custom scope in userScopes then it could be used as the default scopeName for any custom policies that were found? If there were multiple scopes and none matched the custom scope then maybe it could log a warning and avoid doing the this.servicesManager.save(oidcService);
I don't really have a good example of where I need a custom scope. I was trying to use one awhile ago and I am trying to upgrade to a recent snapshot before I revisit an issue I was having that involved getting an attribute from a groovy attribute repository passed back as an e-mail address (and I should be able to use standard email scope for that). I was fixing this b/c I noticed CAS deleting stuff from oidc services when I upgraded.


Implement decode/encode method.

Implement decode/encode method to change data into numpy array.

Implement decode/encode method to change data into numpy array.

What data to you want to change here?

It's just a general concept to remind what should I do while building a new data type.
From now, the data may be pnls.


PLAT-29677: Create/update Resolution Independence doc for Enact

Issue Resolved / Feature Added
Added resolution_independence doc
Additional Considerations
Needs close review, especially for the Writing CSS for Specific Resolutions section.
Links
PLAT-29677
Enyo-DCO-1.1-Signed-off-by: Dave Freeman<EMAIL_ADDRESS>

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Dave Freeman seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Dave Freeman seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Question: Is it possible to reference cookie?

Using links we can refer to header, path, query, body. Is this possible to refer cookie?
$request.cookie.cookie_name

Yeah, just like any parameter type.


Amplify stuck at deploy step

App Id
d1j578lqqx5u9d
Region
eu-central-1
Describe the bug
My Next.js SSR app deployment is currently stuck at the Deploy Step with these logs:
2021-06-15T12:52:00 [INFO]: Starting Deployment 2021-06-15T12:52:00 [INFO]: Updating Edge config
Reproduction steps
The Deployment is triggered from Gitlab push event.
Build Settings
version: 1
frontend:
  phases:
    preBuild:
      commands:
        - npm ci
    build:
      commands:
        - npm run build
  artifacts:
    baseDirectory: .next
    files:
      - '**/*'
  cache:
    paths:
      - node_modules/**/*

I'm having the same issue, more info in https://github.com/aws-amplify/amplify-console/issues/1960

I had the same issue when my repo was nested inside the groups..what worked for me was moving the repo inside the group to the root level of the group..
My issue was #1941

Any updates on this one?

The deployment eventually succeed. I don't know how nor why.

@asungomez having same issue please any help would be much appreciated.. My app id=d1lxz7k7qngoq2 and region=eu-central-1(frankfurt)


Enabling compression sets Transfer-Encoding chunked

When I call web.Response.enable_compression it adds TRANSFER-ENCODING: chunked to the response.
It looks like it causes autochunked to be true since the length is set to None.

Is it close to #690 ?

I don't see the connection between these, is that the right link?

it is related to #672

Superseded by #672


Internal transform error

I get an internal transform error when trying to deploy this template. I use a Mapping to transform dev and prod settings. This works for single values but SAM is choking on trying to transform the Events config, whats wrong with my config?:
AWSTemplateFormatVersion: '2010-09-09'
Transform: 'AWS::Serverless-2016-10-31'

Parameters:
  env:
    Description: Config map for transforming template with dev or prod values
    Type: String
    Default: dev

# Template uses !FindInMap along with env parameter to reference dev or prod values defined here
Mappings:
  ConfigMap:
    dev:
      awsAccount: 'dev'
      configFile: 'dev_config.yaml'
      cloudwatchEvents: !Ref "AWS::NoValue"
    prod:
      awsAccount: 'prod'
      configFile: 'prod_config.yaml'
      cloudwatchEvents:
        Schedule1:
          Type: Schedule
          Properties:
            Schedule: rate(3 minutes)

Resources:
  myfunction:
    Type: 'AWS::Serverless::Function'
    Properties:
      CodeUri: ../build
      Handler: lambda_function.lambda_handler
      Runtime: python3.6
      MemorySize: 128
      Timeout: 30
      Events:
        !FindInMap
            - ConfigMap
            - !Ref env
            - cloudwatchEvents

      Environment:
        Variables:
          config_file: !FindInMap
            - ConfigMap
            - !Ref env
            - configFile

      Tags:
        account: !FindInMap
          - ConfigMap
          - !Ref env
          - awsAccount
        blah: derp

Looking through the code, it seems like SAM only supports Ref, Sub, and GetAtt for values that are unique to SAM (that is, that SAM doesn't pass on directly to CFN). From this, it looks like FindInMap should work for both Environment and Tags, but not for Events since Events is a property that only exists in SAM.

What workarounds are there for this? Events doesnt even support !Ref "AWS::NoValue" either.


contact 2

hi,
i'm working on a python midi script of x-touch as you made. the difference is that my script is designed for the Xctl mode of the x-touch. this mode allow you to use color of the screens and all the others functions of the controller.
i've use this documentation for coding my script : http://www.budgetfeatures.com/XctlDOC/Xctl Protocol for X-Touch V1.0.pdf
i contact you because i've got a probleme with my script, it makes fl studio crash randomly or during huge project loading.
you can see my code on my github : https://github.com/djnaoki-mrn/Behringer_X-Touch_for_FL_Studio_20/blob/main/Xctrl/device_Xctrl.py
i hope we talk soon<EMAIL_ADDRESS>have a good day, aurelien.

I've checked out your script, and I'm wondering if it's not due to too much print messages? I've noticed FL studio really slows down when there are a lot of print messages in the script output.
Perhaps this might also help?
http://www.budgetfeatures.com/XctlDOC/Xctl Protocol for X-Touch V1.0.pdf

hi,
i've solved my issue some month ago.
i've dont updated my github yet but it work prety fine now !
the software was crashing because in this mode (Xctl) the controller just flood FL Studio with SysEx messages.
FL studio was crashing mainly during project loading because during this time it not supose to receive SysEx mesages.
for solv my issue i've build up my own Midi > USB interface. This interface catch all the SysEx mesages form the controller and simply delete them befor they come to the PC and let the Midi message pass thrugh. She also let the midi and SysEx messages from the PC come to the controller.
When i will get a little moment of time i will upload on github the new code for FL, the code for the Midi interface, the shematics of the midi interface, the 3d model for the 3d printed enclosure and some pictures.
thank you, have a good time.

Hey! Nice to hear you're making your own version. Now I've updated mine to be based on the very nicely done Bram's version! Thank you @bramdebouvere


[broker][monitoring][fix] fix pulsar_subscription_msg_ack_rate

Motivation
Currently, in branch 2.9, when set exposeTopicLevelMetricsInPrometheus=true and exposeConsumerLevelMetricsInPrometheus=true,  the value of pulsar_subscription_msg_ack_rate is always 0.0. The PR is supposed to fix it.
Documentation
Check the box below or label this PR directly.
Need to update docs?

[ ] doc-required
(Your PR needs to update docs and you will update later)

[x] doc-not-needed
(Please explain why)

[ ] doc
(Your PR contains doc changes)

[ ] doc-complete
(Docs have been already added)

Why not cherry pick from master ?

Why not cherry pick from master ?

Toooooo many conflicts to cherry-pick

/pulsarbot run-failure-checks

@mattisonchao PTAL


Add spec of thread-safety accessing zero-arg method

See discussion in #224

cc @JacobEvelyn @jemmaissroff this is a pending spec for the thread-safety issue identified and fixed by @jeremyevans in #224 -- appreciate your review, so we can merge this pending spec before the fix?


Fix DatePickerAndroid error when passing "minDate: null"

Fixes #21253
It avoids an error when passing an options object with minDate: null. (see #21253)
Inspired by isObjectLike from Loadash.
Test Plan:
This jsbin allow to test the old and the new _toMillis function.
You can observe that _toMillis doesn't throw error (fixed) and that if you decomment the _toMillis_before_pr call, it will generate an error as before.
Release Notes:
[ANDROID] [BUGFIX] [DatePickerAndroid] fix error when passing "minDate: null"

@rsnara reviewer?


[es] localize content/en/docs/tasks/tools/included/optional-kubectl-configs-pwsh.md to Spanish

This is a Feature Request
What would you like to be added
Localize content/en/docs/tasks/tools/included/optional-kubectl-configs-pwsh.md to Spanish
Why is this needed
There is no Spanish localization for this file.
Comments
/triage accepted
/kind feature
/language es
/sig docs
/area localization

/assign

/unassign @Lesly-Yosselin-Cabral

/close


Split JDBC Driver into it's own repository

Is your feature request related to a problem? Please describe
As mentioned under #2692, the JDBC Driver is deployed alongside the SQL plugin in the SQL plugin repo.  However, the JDBC driver should follow its own CI/CD process and release versioning instead of depending on the SQL plugin.  These are separate release artefacts and they should have their own separate repository project.
Describe the solution you'd like
Move SQL-JDBC folder into it's own project repository under the OpenSearch project.
Describe alternatives you've considered
Alternatives (such as the status quo) means that repositories will be responsible for multiple release artefacts, which is less ideal.
Additional context
Additional Discussion under: https://github.com/opensearch-project/opensearch-build/issues/2188
Releasing artefacts to Maven: https://github.com/opensearch-project/opensearch-build/issues/2692

@anirudha can you please help with this request?


There should be link to other posts at the bottom of the blog post. just like all blogging tools for better SEO cross linking.

I second this for better reach and organic traffic flow.

Thank you for your suggestion!
The starter-kit currently supports three themes: personal, enterprise, and hashnode. At present, the hashnode theme includes a MORE ARTICLES section that facilitates cross-linking between posts, which can help with user engagement and SEO.
However, the personal and enterprise themes do not have this feature by default. This design choice allows users who prefer these themes the flexibility to customize their blog as they see fit. If someone wants to add a More Posts section to the personal or enterprise themes, they can easily do so by utilizing our GraphQL APIs to fetch and display related posts in their desired format.
For users who specifically want built-in cross-linking functionality, we recommend using the hashnode theme. This way, we provide flexibility and options for different use cases and preferences.
We appreciate your feedback and are always open to further discussions on how to enhance our themes. Please let us know if you have any other suggestions or questions!
Best regards,
Harsh

@Harsh062 where do we find the settings to change from personal to hashnode theme?


vscode: use mirrord ls

wip

Lets include in this change to only include the cli, and use extract to create the so.

bors r+

bors r+


Prepare release 0.16.1

Summary
It's been too long since I've done a release and I forgot to move the release notes before tagging 0.16.0. This will become 0.16.1.
Details and comments
Fixes #

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 46.395%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2323

Relevant Lines:
5007

💛  - Coveralls


setup some github bots

[ ] github action for building
[ ] github action for testing
[ ] github action for coverage

a basic_check has been added which could as an example.

action, a headache...:)


Add workflows to test manually

This implementation is outdated. This is a good improvement, but it should be rewritten to fit the current implementation. Closing for now. In case we want to implement this feature again, we will reference this PR.


"Current session is missing data" when restoring a phone user

Bug report
Describe the bug
When attempting to restore the session, the user object is is returning null which causes the session to not be loaded.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

Log in with a phone number user, using verifyOTP
Refresh the screen
Error should be printed when referencing recoverSession directly

Expected behavior
The user information should be returned when a user has successfully logged in using an SMS token.  I noticed that this is not the case, when trying to print out the user info after a login, but I ignored it.
Screenshots
n/a
System information

OS: Linux
Browser (if applies): Chrome

Version of supabase: 0.1.0

Additional context
n/a

Can you try to call SupabaseAuth.instance.auth.user?

Thank you @chimon2000 for reporting this issue.
This bug seems to be related to https://github.com/supabase/gotrue/issues/141, where upon verifying via OTP, user object is not being returned from the server.

Can you try to call SupabaseAuth.instance.auth.user?

When attempting to reference the user value either from the auth instance or the session it was coming back as null.

@chimon2000
Yeah, this is not a bug on the client side, but on the server side. Unfortunately at the moment, it looks like we would have to wait for the issue on the server side to get resolved.

any update on this ??

@NeerajDana
This issue is cause by https://github.com/supabase/gotrue/issues/141 so unfortunately no updates at the moment.

https://github.com/supabase/gotrue/issues/141#issuecomment-983637810

So based on the last comment linked above, should the Supabase clients internally call GET /user in verifyOTP so the users of the client libraries don't need to work around the issue?

According to https://github.com/supabase/gotrue/issues/141#issuecomment-983637810, https://github.com/supabase-community/gotrue-dart/pull/53 should fix this issue, no?


is removeScriptElement included package

Seems that removeScriptElement it isn't in the package published on npm

9f05ac8 has been pushed on March 23 and the npm package is based on releases. The last one is v0.7.2 released on 29 January.

yup seems to be included in ^1.0 versions


from_json for std::array

Hi, I'm realising that for an std::array, I can pass in the array as in into json and the library will convert it for me automatically, whereas when I'm trying to create an std::array from json, the conversion doesn't occur automatically, giving me an error saying that 'array doesn't have an insert function'.
This might seem small, but can get very inconvenient - it would be great if we could also get auto conversion of json arrays into arrays without having to explicitly create one element by element.

Duplicate: #553.

With #624, the library now also supports the conversion from/to std::pair, std::tuple, and std::array.


Dependency compilation tests should run in a docker container

Currently dependency compilation tests are run directly on the github actions virtual environment by running make test.
This means that any compilation or dynamic linking that is incompatible with the virtual environment will fail.
One solution is to run the dependency tests in the same way that the dependency compilation is run: As an action. It would be up to the buildpack authors to determine whether the compile and test steps should share dockerfiles. It's quite likely that the test dockerfile could be simpler than the compile docker file.
Another approach is for the workflow to run the docker build and docker run steps so that the buildpack author only need specify dockerfile and entrypoint. This could look like so:
  - name: docker build
    shell: bash
    run: |
      docker build \
        --tag test \
        --file dependency/actions/compile/${{ <some.step.outputs>.target }}.Dockerfile \
        dependency/actions/compile

  - name: docker run
    shell: bash
    run: |
      docker run \
        --volume ${{ <some.step.outputs>.outputDir }}:/home \
        test \
        --version ${{ <some.step.outputs>.version }} \
        --outputDir /home \
        --target ${{ <some.step.outputs>.target }}

See https://github.com/paketo-buildpacks/cpython/pull/450 for context.

Personally, I'd rather see the test step defined as a Github Action in each dependency repo. One fewer bespoke interface to manage!

I think we'd want the test Dockerfile to base itself off of the most minimal stack run image we support since that's how it might appear in an actual application. Does this seem right?

@ryanmoran that definitely makes sense to me. At the workflow level we may still require the buildpack author to specify how the tests are run, but it sounds like we do need the workflow to allow that to happen. Likely the most flexible way is through the actions interface.

If/when we move to this model, should we remove the make test requirement all together and just have test be a standalone dependency-specific action like compile is? This would be a breaking change for the workflow and we'd need to update the RFC?
The alternative is to leave the make test requirement in the RFC and implementers can just decide how to implement testing, still adhering to a Makefile target.

I'm currently working on bundler, and about to start on the tests. In this case, my compile step only has one target, since I have reason to believe the same dependency will work well for both bionic and jammy. But I want to validate that in the test phase. Ideally, I want a way for the workflow to run my tests for both bionic and jammy stacks.

@fg-j right I think so, it would be smart to test against multiple stacks.
I think we just need to align on whether we want to change how the test code is set up, or we want to support using an action-style test code as well as the strategy we have laid out now. I want it to be clear for people what their choices are

If given the choice between a Github Action and a make target that runs locally, I think I'd always opt for the Github Action. But am I missing relevant cases? When would it be better to  not run a dependency's tests in containers?

I think mostly it's just ever so slightly easier to write a make target than an action - but everyone on our team has experience writing actions so probably not that much of a big deal. It might be a pain to mandate an action specifically though since all the dependencies that have already been implemented will have to change.

Since I haven't yet implemented any dependency tests, happy to hear from folks who have on this! Probably @TisVictress, @joshuatcasey, @robdimsdale and @ForestEckhardt?

Setting aside the question of adhering to the RFC because we can edit it after the fact if we find we don't like the direction we originally proposed, I honestly don't have strong opinions either way.
I'd lean slightly towards GitHub Actions over make for two reasons:

It's more idiomatic for what the Paketo org currently does (i.e. we use GHA, we don't use make)
I am unlikely to ever want to run the compilation/test steps locally. I'd generally always run the action from a branch

2. I am unlikely to ever want to run the compilation/test steps locally. I'd generally always run the action from a branch

@robdimsdale That's interesting. I find testing locally makes things easier for debugging. This could also be my bias against github in general 😆

That's interesting. I find testing locally makes things easier for debugging. This could also be my bias against github in general 😆

Great point @TisVictress - I haven't actually iterated much on the new dependency workflow - I've just tried to run it to get the new versions of a dependency.
Do you think clear instructions in a README (e.g. docker run ...) would be sufficient for your local debugging?

Do you think clear instructions in a README (e.g. docker run ...) would be sufficient for your local debugging?

Yea I think a good README will suffice.

Alright, it sounds like the general consensus is that moving to an actions-based approach for the tests would be favourable in solving this issue if:

its well documented about how to run locally in a README
Dockerfile is based on the most minimal stack run image allowed

Implementing this for our dependencies will include:

Modifying RFC to specify that we will take an actions-based approach
Modifications to the workflow to accommodate for looking for/running test code as an action instead of a make target
Updating any already-implemented dependencies to use the new actions approach

While this change will be breaking for dependency code  that has already been implemented, I don't think its worth supporting both options just for consistency's sake and keeping things simple to maintain. Happy to concede this point if people feel strongly about supporting both. Give me a 👍 if you're good with this proposal and we can get the ball rolling.

Update on this: we will eventually do this, but at this point our first priority will be rolling out the original dependency workflows/approach to all of the dependencies so that we can enable Jammy stack support ASAP. The changes outlined here are useful but will be breaking.
In the meantime, if anyone needs to test against multiple stack images, you can still do this with the existing set-up, sort of like what @joshuatcasey did in https://github.com/paketo-buildpacks/passenger/pull/296


Improve the note stealing

Use the power history to kill the quietest note if below some threshold.

@Paul Fd a major heuristic would be to increase the kill probability of repeated notes (the same key repeated) as opposed to unique notes. As repeated notes are not going to be adding to the harmonic structure, as that tone is already present. No point killing off c2, when c3 is being played constantly. Look at the Chopin spectrum! In that example there is a repeated chord in the middle that is using up all the poly for no good reason.

Other possible improvements and things to try:

[ ] Implement a "real" fast release and use this instead of the ad-hoc ramping done in the render block.
[ ] Have a "dying" voice pool that are fast-released, which could allow for multi-block decay (or block-size independent decay)
[ ] Maintain a state of voices started on a given number as high candidates for stealing. In general, maybe move to a score-based approach.
[ ] Consider honoring note_selfmask even outside of the note polyphony context

Some background on the spectrogram image:

sfizz #214
Chopin Piano concerto No. 1 in e minor, Op. 11 1. Allegro maestosohttp://www.kunstderfuge.com/chopin.htm
top 8 note polyphony
bottom 256 note polyphony

Some remark: the recent change of default maximum voices to 256 means that by default sfizz uses much more DSP, especially in SFZ instruments like drums that do not cater specifically for polyphony or buildup reduction. Same for instruments with long decay/sustain. At low periods/latencies that can make sfizz unusable "by default".
Somebody explicitely increasing the polyphony can expect sfizz to consume more, and know which setting did that. Somebody just instancing an SFZ and getting xruns might just conclude that sfizz is broken and move on.
Especially with better voice stealing, using a default of 256 is not really needed.

Also, score based stealing is probably the way, because you shouldn't prioritize "same note" stealing over "other note stealing" for arbitrary volumes. With roughly similar volumes of all currently playing voices, stealing an old voice of the just played note can be a good idea, but if every "old voices of the current note" still have strong volume compared to other notes voices that's not so. The question is where to draw the line.
Also, beware that stealing a currently playing "old voice" for the current note might sound very bad if the new note played is very low velocity (imagine a very light ride pattern played just after two or three bigger hits, and the ringing stops abruptly).

Should not polyphony opcode be used in drums?

@alcomposer I think that's orthogonal. No matter what polyphony setting is used, if voice stealing mutes some still loud ringing of the current note instead of stealing near-silent tail of another note, that's bad.
Of course I am describing the kind of voice stealing that is needed when reaching the maximum configured voice count, which is a performance parameter, and depends on the current usage (live with very low latency, offline, etc.), not on the instrument itself (so should not be increased by an override in the SFZ file, as was suggested in another issue).
When stealing voices due to polyphony opcodes, this is similar, but if the opcodes only allow to steal from the same note (because it is the only one in its group), then sfizz would of course do so (same as if the only samples playing currently are a single note and you reach the global maximum).

There is an upcoming stealing behavior runtime selection through hint_ opcodes. This setup also makes it easier to implement different type of stealing and possibly to experiment. I'll close this for now as we're basically matching ARIA's behavior by default, with the possibility of finer control on the stealing.


Hello, what's the difference between mysql and mysql2? Are they all on the NPM website?

Hello, what's the difference between MySQL and mysql2? Are they all on the NPM website?

https://github.com/sidorares/node-mysql2/blob/master/README.md#history-and-why-mysql2

Both are on npm, yes.


Filter pane visibility

Filters disabled:

Filters enabled and visible:

Filters enabled and hidden:

Closes https://github.com/nanoPayinc/NANOPAY/issues/3208

How do you toggle filters?

Clicking the "Toggle Filters" button hides or shows ReciprocalSearch. It doesn't allow you to show or hide individual property filters in the ReciprocalSearch view.


Is it possible to add support for the DSC-HX99?

This software is awesome, I've already used it to change my FDR-AX33 to NTSC from PAL and extend the recording time for my DSC-RX100. I just got a DSC-HX99 and the five-minute limit for 4K is killing me! Is it possible to add it to the list of supported cameras? I'd be more than willing to help extract firmware and so on, like someone did in another thread.

Would love this! The HX99 is a great camera, but the 5 minute 4k limit is realy terribel


Add ability to connect "virtual" interfaces

Environment

Python version: 3.7.3
Nautobot version: 1.0.0b2

Proposed Functionality
I'd like to propose relaxing the current requirements on connecting two interfaces within Nautobot, allowing connecting two virtual interfaces to each other.
Currently, this can be achieved with this one-line diff, we haven't experienced any negative side-effects after we applied this patch (we've tested this in NetBox, up to version 2.9.0).
diff --git a/nautobot/dcim/constants.py b/nautobot/dcim/constants.py
index dce0b060..a6af02a0 100644
--- a/nautobot/dcim/constants.py
+++ b/nautobot/dcim/constants.py
@@ -41,7 +41,7 @@ WIRELESS_IFACE_TYPES = [
     InterfaceTypeChoices.TYPE_80211AD,
 ]

-NONCONNECTABLE_IFACE_TYPES = VIRTUAL_IFACE_TYPES + WIRELESS_IFACE_TYPES
+NONCONNECTABLE_IFACE_TYPES = WIRELESS_IFACE_TYPES

 #

Just thinking a bit ahead here, but I'd also like to throw in the suggestion to abstract connections away from cables to simply be what they are, connections, and to, at some point, support point-to-multipoint (or 1-to-N, perhaps N-to-N) connections. Please let me know if I should create a separate issue for the discussion on this.

Use Case
This would enable connecting logical interfaces to each other, which would help in modelling different services, such as logical tunnels (thinking GRE, IPsec), pseudowires, etc. Additionally, having the ability to connect two LAG interfaces would also help in modelling logical connectivity between devices.

Database Changes
No database changes required, this can be modelled as a regular connection/cable (perhaps the addition of a 'virtual'/'logical' cable type, or further abstracting 'cables' away).

External Dependencies
None.

Thanks for the suggestion @ggidofalvy-tc.
At a glance this seems like a logical change, but we also have to consider deliberately augmenting the automated testing if we were to do this. This vibes with some other conversations that have been ongoing about modeling logical circuits (like IPSec as you mentioned).

Just thinking a bit ahead here, but I'd also like to throw in the suggestion to abstract connections away from cables to simply be what they are, connections, and to, at some point, support point-to-multipoint (or 1-to-N, perhaps N-to-N) connections. Please let me know if I should create a separate issue for the discussion on this.

You stated you've tested on NetBox 2.9.0, and Nautobot was forked from NetBox 2.10.4. There was a massive overhaul of the cable and path tracing in NetBox 2.10 that addressed pretty much all of your suggestions, and so that's the data model we have in Nautobot. I think it would be good for you to start there before we ventured into any discussions on what to change.
So my suggestion would be

Upgrade a copy of your NetBox 2.9.0 instance to NetBox 2.10 and compare your notes against the current cable path modeling
Create a new test instance of Nautobot 1.0.0b3 and compare the functionality

We just dropped Nautobot 1.0.0b3 yesterday that includes a ton of updates, but you'll need to use our nautobot-netbox-importer plugin to migrate anything from NetBox 2.10.x over to Nautobot 1.0.0b3.

For now, I'd like to keep the topic on easy pickings, that is, enabling virtual interfaces and LAGs to be logically connected in NetBox.
I've applied the patch to NetBox v2.10.5 and to the latest commit on the develop branch of Nautobot (https://github.com/nautobot/nautobot/commit/c96b3d085ca03127ec165f8015416154b6fa9c92); I was able to create connections between circuits in both, haven't experienced any issues in either. Furthermore, I was successfully able to import the data with connected virtual interfaces from NetBox via the importer plugin after I applied the patch to Nautobot.

Circling back to this, I wanted to reiterate that this is a great idea, but it's also not as easy as just removing VIRTUAL_IFACE_TYPES from the list of NONCONNECTABLE_IFACE_TYPES, because that opens the door to connect virtual interfaces to any other interface type, and it is overloading the use of models designed for physical objects (like cables and circuits).
As I mentioned, we've had ongoing discussions about how to model logical objects like virtual/tunnel interfaces, pseudo-cables, and tunnels, but have not yet gotten to that.
As for easy pickings, if we were to add some guardrails around asserting that only virtual interfaces can connect to virtual interfaces, this would be acceptable, but it's not something we can commit to right now.


vagrant: 2.1.1 -> 2.1.2

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

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

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

@GrahamcOfBorg build vagrant

Success on aarch64-linux (full log)
Attempted: vagrant
Partial log (click to expand)
/nix/store/6xzs8qvg0l3ac8b1ak0gzas75r5apm9d-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/scripts/sign.sh: interpreter directive changed from "/bin/bash" to "/nix/store/p0vy17dp9jk2mvqsxsqnb14s3797lay7-bash-4.4-p23/bin/bash"
/nix/store/6xzs8qvg0l3ac8b1ak0gzas75r5apm9d-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/plugins/provisioners/salt/bootstrap-salt.sh: interpreter directive changed from "/bin/sh -" to "/nix/store/p0vy17dp9jk2mvqsxsqnb14s3797lay7-bash-4.4-p23/bin/sh -"
/nix/store/6xzs8qvg0l3ac8b1ak0gzas75r5apm9d-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/plugins/hosts/darwin/scripts/install_virtualbox.sh: interpreter directive changed from "/bin/bash" to "/nix/store/p0vy17dp9jk2mvqsxsqnb14s3797lay7-bash-4.4-p23/bin/bash"
/nix/store/6xzs8qvg0l3ac8b1ak0gzas75r5apm9d-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/bin/vagrant.orig: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/ra2wzisr8lkvgkkvlx4sfrd0q9dqn9k5-ruby-2.4.4/bin/ruby"
/nix/store/6xzs8qvg0l3ac8b1ak0gzas75r5apm9d-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/bin/vagrant: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/ra2wzisr8lkvgkkvlx4sfrd0q9dqn9k5-ruby-2.4.4/bin/ruby"
/nix/store/6xzs8qvg0l3ac8b1ak0gzas75r5apm9d-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/.runner.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/p0vy17dp9jk2mvqsxsqnb14s3797lay7-bash-4.4-p23/bin/bash"
checking for references to /build in /nix/store/6xzs8qvg0l3ac8b1ak0gzas75r5apm9d-vagrant-2.1.2...
running install tests
Vagrant smoke check passed
/nix/store/6xzs8qvg0l3ac8b1ak0gzas75r5apm9d-vagrant-2.1.2

Success on x86_64-darwin (full log)
Attempted: vagrant
Partial log (click to expand)
/nix/store/8ay25mcmw1fmdvz5sahq14qljxf15ydm-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/bin/vagrant: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/i0kmp30s644ayglfzwchm2x1i5arwxjs-ruby-2.4.4/bin/ruby"
/nix/store/8ay25mcmw1fmdvz5sahq14qljxf15ydm-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/bin/vagrant.orig: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/i0kmp30s644ayglfzwchm2x1i5arwxjs-ruby-2.4.4/bin/ruby"
/nix/store/8ay25mcmw1fmdvz5sahq14qljxf15ydm-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/plugins/hosts/darwin/scripts/install_virtualbox.sh: interpreter directive changed from "/bin/bash" to "/nix/store/q2wqq1k20v8kc3vckapqf5nws30brnni-bash-4.4-p23/bin/bash"
/nix/store/8ay25mcmw1fmdvz5sahq14qljxf15ydm-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/plugins/provisioners/salt/bootstrap-salt.sh: interpreter directive changed from "/bin/sh -" to "/nix/store/q2wqq1k20v8kc3vckapqf5nws30brnni-bash-4.4-p23/bin/sh -"
/nix/store/8ay25mcmw1fmdvz5sahq14qljxf15ydm-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/scripts/sign.sh: interpreter directive changed from "/bin/bash" to "/nix/store/q2wqq1k20v8kc3vckapqf5nws30brnni-bash-4.4-p23/bin/bash"
/nix/store/8ay25mcmw1fmdvz5sahq14qljxf15ydm-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/scripts/website_push_docs.sh: interpreter directive changed from "/bin/bash" to "/nix/store/q2wqq1k20v8kc3vckapqf5nws30brnni-bash-4.4-p23/bin/bash"
/nix/store/8ay25mcmw1fmdvz5sahq14qljxf15ydm-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/scripts/website_push_www.sh: interpreter directive changed from "/bin/bash" to "/nix/store/q2wqq1k20v8kc3vckapqf5nws30brnni-bash-4.4-p23/bin/bash"
running install tests
Vagrant smoke check passed
/nix/store/8ay25mcmw1fmdvz5sahq14qljxf15ydm-vagrant-2.1.2

Success on x86_64-linux (full log)
Attempted: vagrant
Partial log (click to expand)
/nix/store/qn72wagnvf26kapn92salfj9fhb72r9b-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/scripts/sign.sh: interpreter directive changed from "/bin/bash" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/bash"
/nix/store/qn72wagnvf26kapn92salfj9fhb72r9b-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/plugins/provisioners/salt/bootstrap-salt.sh: interpreter directive changed from "/bin/sh -" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/sh -"
/nix/store/qn72wagnvf26kapn92salfj9fhb72r9b-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/plugins/hosts/darwin/scripts/install_virtualbox.sh: interpreter directive changed from "/bin/bash" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/bash"
/nix/store/qn72wagnvf26kapn92salfj9fhb72r9b-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/bin/vagrant.orig: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/f3svdpbdciz3c91nc8bj8qi0adc6p5zl-ruby-2.4.4/bin/ruby"
/nix/store/qn72wagnvf26kapn92salfj9fhb72r9b-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/bin/vagrant: interpreter directive changed from "/usr/bin/env ruby" to "/nix/store/f3svdpbdciz3c91nc8bj8qi0adc6p5zl-ruby-2.4.4/bin/ruby"
/nix/store/qn72wagnvf26kapn92salfj9fhb72r9b-vagrant-2.1.2/lib/ruby/gems/2.4.0/gems/vagrant-2.1.2/.runner.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/8zkg9ac4s4alzyf4a8kfrig1j73z66dw-bash-4.4-p23/bin/bash"
checking for references to /build in /nix/store/qn72wagnvf26kapn92salfj9fhb72r9b-vagrant-2.1.2...
running install tests
Vagrant smoke check passed
/nix/store/qn72wagnvf26kapn92salfj9fhb72r9b-vagrant-2.1.2

cc @aneeshusa


Replace the deprecated setLayers call with setFileEntriesLayers

Also update the jib-core version to 0.18.0

thanks for your contribution!


How to add ssh-copy-id

hello,
i like cmder,much better than putty.great work.
i would want to know how to add ssh-copy-id on cmder.
i have try some script that i found on internet but that don't working.
is there a solution to get ssh-copy-id?
thank you very much.

I know it's not perfect, but this is the alias I have been using to fill the gap a little:
ssh-copy-id=cat ~/.ssh/id_rsa.pub | ssh $1 "[ ! -d ~/.ssh ] && mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"

And here is the command:
ssh-copy-id [user@]machine

I use id_rsa.pub, but you could add a second argument for the alias if you needed to specify that too.
This command will attempt to SSH into the provided machine ($1), and execute commands that will create the .ssh folder if necessary, and then append the contents of id_rsa.pub into the authorized_keys file.
Note: This will not check to see if the key is already trusted, so it is possible to get multiple entries in the authorized_keys file.
Its good enough for my needs right now, but if it isn't for yours I may have ideas on how to improve it, so let me know.

If you wanted to remove duplicates, here's an example of a way to do that from the remote machine:
sort -u ~/.ssh/authorized_keys -o ~/.ssh/authorized_keys

You could also add this to the ssh-copy-id alias. Then every time you run ssh-copy-id it will remove duplicates on the remote machine. like this:
ssh-copy-id=cat ~/.ssh/id_rsa.pub | ssh $1 "[ ! -d ~/.ssh ] && mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys && sort -u ~/.ssh/authorized_keys -o ~/.ssh/authorized_keys"

I have added the command above to the aliases file but it doens't work.
Every time i try it, only the cat command is executed but not the pipe.
Any idea why??
Thx in advance

Still don't know why it didn't work but now its working.
Only thing is that the permissions are not correct when making the .ssh folder.
I changed the command to this:
ssh-copy-id=cat ~/.ssh/id_rsa.pub | ssh $1 "[ ! -d ~/.ssh ] && mkdir ~/.ssh && chmod 700 ~/.ssh; cat >> ~/.ssh/authorized_keys && sort -u ~/.ssh/authorized_keys -o ~/.ssh/authorized_keys && chmod 700 ~/.ssh/authorized_keys"

Good catch on the permissions. Its been a while since I worked on that alias, and I think all of my machines I had been interacting with already had the directory, but I remember I threw in the mkdir just in case. Very good to have the permissions setup correctly though.

Asked and answered.


As a task creator, when I submit a task it should be in draft state...

This depends on
https://github.com/18F/midas/issues/465 When I submit a new opportunity, I should be able to save as draft..
https://github.com/18F/midas/issues/467 As a task creator, I should be able to see draft tasks in "card" view
https://github.com/18F/midas/issues/508 As a task creator, when I submit a task it should be in draft state...

Last steps here are to set up the infrastructure. @ultrasaurus would you mind reviewing / testing these?

https://github.com/18F/cloud-cutter/pull/36
https://github.com/18F/midas-cookbook/pull/12

Leaving this open until we finish up the remaining related UI:

https://github.com/18F/midas/issues/536
https://github.com/18F/midas/issues/537


Not showing exceptions

Debugger stops alright, but it just shows the current context as if the execution was interrupted by a breakpoint. The actual Exception stays somwhere in the background

This should be fixed now.

Thank you.
This is certainly a way to go, but other debuggers show Exceptions in their own scope above the current one. Chrome Debugger for example:

I'm not insisting (it is ok this way also), just pointing out...


Update role names

Description
Update app role names to avoid collision with other 'global' role types. (i.e. AAD GlobalAdmin, etc.)
Related issues
Addresses #1421.
Testing

@pjirsa - I'm so sorry for the timespan between my two comments but for now, we would not like to bring this change into our repo.

@pjirsa per the issue, we won't make this change to the repo for now to avoid breaking changes and based on future plans we have for RBAC.


docs : fixed readme to include "how to" use the DNS Challenge. (Ref issue #2)

docs : fixed readme to include "how to" use the DNS Challenge.
fix : replaced the "Where().. First()" with a simple call to First() on getting the challenge

I'm not sure why a change to a .md files failed AppVeyor. Let me know if there is something more I need to do.

It’s fine. It fails because AppVeyor secret variables aren’t available for pull requests. I have added a check to hopefully address this.


Feature/remove hardcoded lease saver.

AzCopy should not be aware of any external files/folder which it needs to preserve.
This code deletes the hard-coded movers lease blob protetion

wrong target fork


Export useUploadThing hook

To be able to create our "own" UploadButton or UploadDropzone component, the hook useUploadThing is needed.

No it is not, you can use the generateReactHelpers hook to access it as intended :)


Add results to xugrid

Part of #969
We cannot fully test this since we don't yet support testing results from Python.
import ribasim_testmodels
import subprocess

model = ribasim_testmodels.basic_model()
toml_path = "basic/ribasim.toml"
model.write(toml_path)
subprocess.call(["ribasim.cmd", toml_path], check=True)

uds = model.to_xugrid()
uds.ugrid.to_netcdf("basic.nc")

This results in the following netCDF: basic.zip
It has flow_rate on the edges, and all variables from basin.arrow on the nodes.
The edge visualization is fine, and it supports the QGIS temporal controller:

I'm not yet happy with the visualization on nodes. Maybe @Huite has ideas on how to improve this?

The problem is that the uds has all nodes, but we only have Basin results on Basins, so the rest is NaN. If there is a NaN in between QGIS doesn't draw the line. If instead we put uds[var_name] = da.reindex_like(uds, fill_value=0.0) then it looks more like the flow_rate image, though that isn't what we want.
Ideally we get some nice clear points. Also it would be nice to support displaying 'Basin / area' polygons over time instead of nodes. @Huite is that something that UGRID supports?

I think this comes down to the choice that QGIS has made when it comes to visualizing data located on vertices.
If the flow network is spatially meaningfull, it makes sense to plot the edges, then color the edges interpolating from vertex to vertex. That makes perfect sense for e.g. water height or something.
It's not obvious what the right choice is, in xugrid, I've chosen points:
uds["storage"].max("time").ugrid.plot()

You can get something weird in QGIS if you set a really thick line thickness...

Polygon support is tricky. UGRID won't support it, unless you convert the polygons to a mesh topology. You can do this cheaply: https://github.com/skogler/mapbox_earcut_python
But it will require adding a 2d topology to your output, and coloring all the generated triangles with the relevant variables.
Thinking along these lines: what's also possible is to generate a 2D mesh with one face per node. So you generate e.g. a hexagon for each basin, and assign the vertex data to those faces. If you want to be cute, you can even reflect the shape of the QGIS plugin nodes in the output 2D topology...
Stuff like timeseries support in the imod plugin would work out of the box too, in that case.
Having actual polygons requires geoarrow / geopackage etc. And unless they changed how QGIS works, it's not a great match for the temporal controller, because it ends up filtering all rows instead of using an Index like it does for MDAL datasets.

It's not obvious what the right choice is, in xugrid, I've chosen points

Ideally both would be options in QGIS. At least we can use xugrid for this analysis :). I feels like the way we store the data here is correct, it is just a pity that it is not yet possible to visualize this nicely in QGIS. But to_xugrid is not only for QGIS visualization, so perhaps this should be merged anyway.
I feel like the 2D mesh with one face per node idea is not really an option, since we don't know how large to make the faces. You want this to be a fixed size on screen such that it is properly visible on different zoom levels.
For polygons I feel like it's worth double checking the performance for a real model now that we only saveat daily frequency by default.

Hehe too clever, may as well require 'Basin / area' polygons then.
But thanks for the suggestions, I will try some. I think this can be merged like this.


Add JSQMessagesComposerTextView delegate

Hi, I want to catch JSQMessagesComposerTextView return-key event. so I add UITextViewDelegate in JSQMessagesToolbarContentView like this:

add UITextViewDelegate in interface.
add  "self.textView.delegate = self;" in awakeFromNib method.
add UITextViewDelegate method in JSQMessagesToolbarContentView

(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range    replacementText:(NSString *)text {
return YES;
}

I think the UITextViewDelegate method will be called. but it's not working.
I don't known why not work.
I write a simple demo about UITextViewDelegate. it works.

@gzw - If you have time, please share your solution in case others have the same question in the future. :smile:


Is there a new status?

Is there a new status? I would be happy if it should be possible to switch the outputs.

See forum, the api from ecoflow is limited


Fix component replacement with a composable that has layout and DesignCompose children

When performing a component replacement on a node with a composable that has layout such as Row() or Column(), and the children of the Row() or Column() are DesignCompose generated composables, those children have the wrong layout. The children take the LocalCompositionParentLayout info from the replacement node, causing them all to resize to the size of that node.

Unfortunately we currently don't have a good solution to this, but will work on a fix in a future release. The problem is that DesignCompose calculates layout for all nodes, and replacing a component with a custom composable that does its own layout such as a Row or Column will conflict with the DesignCompose calculated layout. We support Row and Column custom content using our list widget.

This issue should be addressed by squoosh, which has a better integration between DesignCompose layout and regular Compose layout.

This is done in squoosh


installing sqlite3 module on mac

npm ERR<EMAIL_ADDRESS>install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build

That error message is not enough - I would need all the errors that happened above it to know exactly the cause. However my guess is that you need to upgrade to node-sqlite3 v3.0.5 because you are running node v0.12.x.


Bring everything across from master fumieval/thyme

Sync the state of https://github.com/fumieval/thyme back into this main repository. These changes represent the last 2 released versions of Thyme:

https://github.com/fumieval/thyme/releases/tag/v0.4
https://hackage.haskell.org/package/thyme-0.3.6

thx @tmcgilchrist !


[REQUEST] Add validation to prevent duplicate reference URLs

Is your feature request related to a problem? Please describe.
Currently, users can create multiple reference objects with the same url, leading to duplicate entries in the database with varying source names.
Describe the solution you'd like
Add validation that checks if the entered reference url already exists before saving it to the database. The save button should be disabled and an error message displayed if the url is a duplicate. Additionally, provide a link to the existing reference or an option to copy its in-text citation.

Staged on develop


invalid_grant is being handled by calling ssoSilent which relies on ITP

Library

[ ]<EMAIL_ADDRESS>or<EMAIL_ADDRESS>[x]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>
Description
When a refresh token is expired and we try to acquireTokenSilent, it will throw a invalid_grant error which is currently being handled by calling ssoSilent https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/2c75dcfdc3af95ce942433d950ceb95de085c3da/lib/msal-browser/src/app/ClientApplication.ts#L402
However, documentation for ssoSilent says that it relies on using an iframe to get a new refresh token. This relies on the browser allowing 3rd party cookies
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/2c75dcfdc3af95ce942433d950ceb95de085c3da/lib/msal-browser/src/app/ClientApplication.ts#L319
What happens if the user is using safari? This will fail right? What error will it fail with and is there a way to get a new refresh token for browsers that don't support 3rd party cookies like safari? This is one of the main reasons we want to switch to msal-browser is the support for safari's ITP.
I think this might be related to #2219? Not sure

This is by design. We attempt to get a new RT/auth code in an iframe, and if that fails the error will be thrown to the app where you should be invoking an interactive call. So yes, this is expected to fail in Safari with ITP--nonetheless, even in other browsers, you should have that fallback logic in place.

@jmckennon thanks for the quick response
Nice that makes sense! I'm wondering what error it will throw? We already handle InteractionRequiredAuthError and call acquireTokenRedirect.

@jmckennon and a follow up, does this mean to make an interactive call (acquireTokenRedirect) if the iframe times out as well? Because you mentioned "nonetheless, even in other browsers, you should have that fallback logic in place."

I'm wondering what error it will throw?

Yes, it will throw InteractionRequiredAuthError.

does this mean to make an interactive call (acquireTokenRedirect) if the iframe times out as well?

It depends on what's causing the timeouts, but calling an interactive method can be a good fallback for timeouts.

@jmckennon for monitor_timeout_errors, they areBrowserAuthErrors instead of InteractionRequiredAuthErrors, just want to make sure if this is expected?
If so, I'll update our code to call interactive methods as a fallback for these monitor_timeout_errors as well (as right now we only do so for InteractionRequiredAuthErrors

You are correct--I was mistaken, I just double checked and it it most definitely a BrowserAuthError. The actual error code is monitor_window_timeout, if we are talking about the same error. Can be seen here.


Removed the duplicate value 'researcher' for Roles table

Changed the valueSequenceNext to valueNumeric with sequence value.
getting error with valueSequenceNext

We still want to use the UT_SEQ sequence to number the user template. The specific id number does not matter. Please modify the pull request. Thanks!

Modified the pull request


Don't patch NVDAStartupWeb.kext?

Rather than patching nVidia's Info.plist, we may be able to distribute our own signed codeless kext that forwards onto NVDAStartupWeb.kext, in a similar fashion to what I do with Heimdall.
The installer would still need to be patched, but it means NVDAStartupWeb.kext is totally unpatched.
This has pros and cons... just thinking at this point.

This is perhaps also similar to what NVDAEGPUSupport does as it leaves the Web Drivers untouched, yes? Patching the installer is still a lot better than patching kexts and repairing its permissions I would presume.
PS: Great work on the script 👍


Oc 31 cleaning response data

This pull request makes the build fail.

SonarQube analysis reported 5 issues

 3 minor
 2 info

Watch the comments in this conversation to review them.
4 extra issues
Note: The following issues were found on lines that were not modified in the pull request. Because these issues can't be reported as line comments, they are summarized here:

 PersistenceConfigCore.java#L135: Remove the declaration of thrown exception 'java.lang.ClassNotFoundException', as it cannot be thrown from method's body.
 PersistenceConfigWs.java#L157: Remove the declaration of thrown exception 'java.lang.ClassNotFoundException', as it cannot be thrown from method's body.
 SmartMeteringManagementEndpoint.java#L328: Complete the task associated to this TODO comment.
 SmartMeteringManagementEndpoint.java#L374: Complete the task associated to this TODO comment.

All is well.


Clear All Videos doesn't do anything

Videos come back when you reload page, this needs an update.

Unfortunately, this is a common problem on YouTube's end. Please see the notes section of the ReadMe.


add output option

Add TSV output option to obtain a connection string only. Many user set Azure CLI output option as table in default settings($HOME/.azure) to simplify output, so they get unwanted strings without explicit output format option. TSV or JSON, either is good.

This will actually make the create command for the queue to fail.


[patch] fix-pipeline + update dependency

as title

lestrrat-go/jwx after 1.0.0

jwk.Materialize has been renamed to Raw()

close https://github.com/yahoojapan/athenz-authorizer/issues/62

Codecov Report

Merging #66 into master will increase coverage by 0.24%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #66      +/-   ##
==========================================
+ Coverage   93.70%   93.95%   +0.24%
==========================================
  Files          18       18
  Lines        1207     1207
==========================================
+ Hits         1131     1134       +3
+ Misses         52       49       -3
  Partials       24       24

Impacted Files
Coverage Δ

policy/daemon.go
93.12% <0.00%> (+1.58%)
:arrow_up:

Continue to review full report at Codecov.

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

Other than this, I think it's OK.

@wfan
The additional documentation is LGTM.
Resolve CI errors.
Indentation and file name errors, but I think you can disable them.


fully typed responses and requests

Hi @nunomaduro
First of all, thank you for reviewing and merging my previous PRs so quickly! 👍
It's a pleasure to help you with this package. Learned already a lot about (Open)AI and even more from your way how to build a clean package.
I am a huge fan of using fully typed responses and requests. Therefore I gave it a try with the moderations endpoint to see how it could work.
What I ended up with is the following:
$client = OpenAI::client('TOKEN');

$request = new ModerationCreateRequest(input: 'I want to kill them.', model: ModerationModel::TextModerationLatest);

$response = $client->moderations()->create($request);

dump($response->id); // modr-5vvCuUd3dRjgIumIZIu0yBepv5qwL
dump($response->model); // text-moderation-003
dump($response->results[0]->flagged); // true
dump($response->results[0]->categories[0]->toArray()); // ["category" => "hate", "violated" => true, "score" => 0.40681719779968 ]

In my opinion this gives the developers the better UX than plain arrays.
More or less I took the approach Steve McDougall described here: https://laravel-news.com/working-with-data-in-api-integrations
I also implemented request factories to give the user various options how to create the request instance:
// create the request directly
$request = new ModerationCreateRequest(
    input: 'I want to kill them.',
    model: ModerationModel::TextModerationLatest,
);

// pass an array to a factory instance
$request = (new ModerationCreateRequestFactory)->make([
    'input' => 'I want to kill them.',
    'model' => ModerationModel::TextModerationLatest,
]);

// pass an array to a static factory method
$request = ModerationCreateRequestFactory::new([
    'input' => 'I want to kill them.',
    'model' => ModerationModel::TextModerationLatest,
]);

If you want to have a look, I pushed the POC here: https://github.com/gehrisandro/openai-php-client/tree/poc-strong-typed-requests-and-responses

I am in favour of typing responses. Can you make a regular pull request and we work from there?


Cost notebook debugging with minimal (Run-by-line-only) debugger

This is a different beast altogether. Basically side step VS code's debugging. No stack frames.

Monaco breakpoint glyphs - 2 days
Start debugger and attach - requires us to implement debug client. Already partially implemented in the test code - 2 days
Track IP as break events come in - 3 days (same as regular)
Hover support - (requires custom hover provider and evaling) - 5 days
Variable explorer using the debugger for variables - (could piggy back on the hover support) - 2 days
Toolbar on the cell - 1 day

I'd argue datatip support isn't necessary for this experience. Nice, but not necessary.

Costing is done, so validated.


Fix: XRay propagator null exception

This is in reference to:
https://github.com/open-telemetry/opentelemetry-ruby/issues/832

Added a test.

Done.


"Did not expect server HTML to contain [..]" during dynamic import

Bug report
Describe the bug
Dynamic import of components with "re-export" by index.js file leads to following warnings:
Warning: Did not expect server HTML to contain a <h2> in <div>.
To Reproduce

Create a file which will export many dynamically imported components, i.e.:

Import one component directly.
Import other component through index.js with export { default } from './World'

export const Hello = dynamic(import('./Hello/Hello'));
export const World = dynamic(import('./World'));

Use both components on page.
Run application in development mode with yarn dev / npm run dev.
In the browser console there will be mentioned warning.

Here is example repository: https://github.com/oMatej/next-dynamic-import-issue
Expected behavior
Both types of imports should behave the same.
System information

OS: Ubuntu 18.04.1 LTS
Version of Next.js: 8.0.4

Having the same issue. Hard to pinpoint the problem but it looks like it fails when trying to import something outside its bundle. ¯_(ツ)_/¯

Same issue on Next.js: 8.1.1

Note that it's a bad idea to supress hydration warnings. It will hide problems in your application.

I'm having the same issue, is this something new to next 8?

Just tried downgrading my project to next 7, and it fixes the issue.
This is happening to me in dev mode, in production seems to be working fine on both 7 and 8.

Can you try next@canary?

I have done that previously, is something recently released?

Yep I think @Timer landed a patch for next/dynamic, not entirely sure if it's directly related, but doesn't hurt to try.

I confirmed this was fixed by my PR, upgrading to the latest canary will fix this.


Upgrade to openssh v0.9.0 with native-mux feature?

openssh v0.9.0-rc1 is released with a new feature native-mux.
It provides new functions like Session::connect_mux and SessionBuilder::connect_mux which communicates with the ssh multiplex master directly, through the control socket, instead of spawning a new process to communicate with it.
The advantage of this is more robust error reporting, better performance and less memory usage.
The old implementation (process-mux) checks the exit status of ssh for indication of error, then parse the output of it and the output of the ssh multiplex master to return an error.
This method is obviously not so robust as native-mux, which directly communicates with ssh multiplex master through its multiplex protocol.
The better performance and less memory usage part is mostly because we avoid creating a new process for every command you spawned on remote, every Session::check and every Session::request_port_forwarding.
The new release also add new function Session::request_port_forwarding, which supports local/remote forwarding of tcp and unix socket stream.
There are also other changes to API:

A new type Stdio is used for setting stdin/stdout/stderr.
ChildStd* types are now alias for tokio_pipe::{PipeRead, PipeWrite}.
Command::spawn and Command::status now confirms to std::process::Command and tokio::process::Command, in which stdin, stdout and stderr are inherit by default.
Command::spawn is now an async method.
RemoteChild::wait now takes self by value.
Error is now marked #[non_exhaustive] and new variants is added.

I know this is a huge release and upgrading it is going to be quite difficult, but I sincerely want you to try it out, as the new implementation requires feedback.

Thanks for the suggestion! Not needing to spawn new ssh processes seems very attractive. I definitely anticipate performance and memory enhancements improving usability, and robust error reporting is good to have.
One small thing on my end is that I'm a grad student who can't really allocate a lot of time for development. So I need to spend time when urgent need arises and in general be efficient in using time. To that end, I think I'll do it one day if nobody does it before me, but not until 1) 0.9.0 becomes the latest stable version (so that things don't break when I'm running experiments and I don't have to invest more time adapting things when the stable version is released) and 2) I actually feel the need for better performance and/or memory (for error reporting, I usually run experiments via a LAN connecting a cluster of nodes so connection is usually stable, and the source of application error is usually evident from stdout + stderr in my case).
Anyway thanks! I'll definitely keep this in mind as a good pathway to take when Pegasus lacks performance.

That is totally understandable!
I am also a student in my fourth year in the university, so I understand how busy the school can be.

Thanks for understanding!
Actually, I'd like to keep this open so that I don't forget and keep it as a TODO. I'll be adding a few potential TODOs as issues, too.

openssh v0.9.0-rc-2 has just released!

@jaywonchung 0.9.0 has finally released!

Nice! Actually the timing is pretty good. I'm facing a paper deadline on April 20th, and after that, I'm going to resolve the issues posted on Pegasus. Thanks for letting me know!

Pinging this issue

Thanks for the reminder, @NobodyXu. However please note that I do not owe you the resolution of this issue. I resolve this if and when I see fit.

Thanks for the reminder, @NobodyXu. However please note that I do not owe you the resolution of this issue. I resolve this if and when I see fit.

I am sorry, I don't meant to sound authoritative.
I am really looking forward to see use of openssh in real world, if you are busy, then maybe I can help submit a PR.

All good 👍 I (sadly) am not yet free from stuff to do, so if I am to work on this, it'll be some time during May. Always appreciate your help and interest!


feat: Add stdin param and auto-select output file

Currently, the optimizer will only select stdin if no file is specified, which takes special effort to script around, and does not support stdout. This adds - input and output 'paths', which explicitly read from stdin and write to stdout respectively, following unix command conentions.
The interface also requires an output parameter, even though its primary usage is to overwrite the original file. This changes that so the output, if unspecified, will default to the input.

Could you update the changelog accordingly?


posix: getentropy: portability.posix.getentropy.newlib, portability.posix.getentropy.picolibc and portability.posix.getentropy fail

Describe the bug
Tests:

posix/getentropy/portability.posix.getentropy.newlib
posix/getentropy/portability.posix.getentropy.picolibc
posix/getentropy/portability.posix.getentropy
fail.

Observed for:

nrf5340dk/nrf5340/cpuapp/ns
nrf9160dk/nrf9160/ns.

To Reproduce
Steps to reproduce the behavior:

have nrf9160dk/nrf9160 connected
go to your zephyr dir
call ./scripts/twister -T tests/posix/getentropy/ -p nrf9160dk/nrf9160/ns --device-testing --device-serial /dev/ttyACM0 -v --inline-logs
See console output with error

Expected behavior
Valid console output
Impact
Not clear
Logs and console output
*** Booting Zephyr OS build v3.6.0-5099-g127cb9edb6c6 ***
Running TESTSUITE getentropy_test_suite
===================================================================
START - test_getentropy
Assertion failed at zephyr/tests/posix/getentropy/src/main.c:47: getentropy_test_suite_test_getentropy: ret not equal to 0
FAIL - test_getentropy in 0.014 seconds
===================================================================
START - test_getentropy_max_size
Assertion failed at zephyr/tests/posix/getentropy/src/main.c:36: getentropy_test_suite_test_getentropy_max_size: ret not equal to 0
FAIL - test_getentropy_max_size in 0.014 seconds
===================================================================
START - test_getentropy_null_buffer
PASS - test_getentropy_null_buffer in 0.001 seconds
===================================================================
START - test_getentropy_too_large
PASS - test_getentropy_too_large in 0.001 seconds
===================================================================
TESTSUITE getentropy_test_suite failed.
------ TESTSUITE SUMMARY START ------
SUITE FAIL -  50.00% [getentropy_test_suite]: pass = 2, fail = 2, skip = 0, total = 4 duration = 0.030 seconds
- FAIL - [getentropy_test_suite.test_getentropy] duration = 0.014 seconds
- FAIL - [getentropy_test_suite.test_getentropy_max_size] duration = 0.014 seconds
- PASS - [getentropy_test_suite.test_getentropy_null_buffer] duration = 0.001 seconds
- PASS - [getentropy_test_suite.test_getentropy_too_large] duration = 0.001 seconds
------ TESTSUITE SUMMARY END ------
===================================================================
RunID: 390a18c3022454a1b8c52b5dedeab941
PROJECT EXECUTION FAILED

Environment (please complete the following information):

OS: Ubuntu 20.04.1 LTS
Toolchain: Zephyr SDK 0.16.5-1
Commit SHA or Version used: v3.6.0-5099-g127cb9edb6c6

I'm unable to reproduce this actually, but I also don't have the nrf53840. @katgiadla - do you have an upstream simulation platform that you can reproduce the problem on?
Feel free to add some printf debugging for more detail (e.g. in getentropy.c)

Just tested on latest main (35391f3d349935d3a5454ba42990dc586ef8a80f), passes on nRF9160 and builds on nRF5340 (I don't have that board).
$ twister -T tests/posix/getentropy -p nrf9160dk/nrf9160/ns -v -i --device-testing --device-serial /dev/ttyACM0
Renaming output directory to /home/tomi/workspace/ncs/zephyr/twister-out.92
INFO    - Using Ninja..
INFO    - Zephyr version: v3.7.0-rc2-337-g35391f3d3499
INFO    - Using 'zephyr' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report /home/tomi/workspace/ncs/zephyr/twister-out/testplan.json

Device testing on:

| Platform             | ID   | Serial device   |
|----------------------|------|-----------------|
| nrf9160dk/nrf9160/ns |      | /dev/ttyACM0    |

INFO    - JOBS: 8
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
INFO    - 1/3 nrf9160dk/nrf9160/ns      tests/posix/getentropy/portability.posix.getentropy.picolibc PASSED (device 22.865s)
INFO    - 2/3 nrf9160dk/nrf9160/ns      tests/posix/getentropy/portability.posix.getentropy PASSED (device 16.403s)
INFO    - 3/3 nrf9160dk/nrf9160/ns      tests/posix/getentropy/portability.posix.getentropy.newlib PASSED (device 16.456s)

INFO    - 3 test scenarios (3 test instances) selected, 0 configurations skipped (0 by static filter, 0 at runtime).
INFO    - 3 of 3 test configurations passed (100.00%), 0 failed, 0 errored, 0 skipped with 0 warnings in 99.54 seconds
INFO    - In total 12 test cases were executed, 0 skipped on 1 out of total 6 platforms (16.67%)
INFO    - 3 test configurations executed on platforms, 0 test configurations were only built.

Hardware distribution summary:

| Board                | ID   |   Counter |
|----------------------|------|-----------|
| nrf9160dk/nrf9160/ns |      |         3 |
INFO    - Saving reports...
INFO    - Writing JSON report /home/tomi/workspace/ncs/zephyr/twister-out/twister.json
INFO    - Writing xunit report /home/tomi/workspace/ncs/zephyr/twister-out/twister.xml...
INFO    - Writing xunit report /home/tomi/workspace/ncs/zephyr/twister-out/twister_report.xml...
INFO    - Run completed

$ twister -T tests/posix/getentropy -p nrf5340dk/nrf5340/cpuapp/ns -v -i
Renaming output directory to /home/tomi/workspace/ncs/zephyr/twister-out.93
INFO    - Using Ninja..
INFO    - Zephyr version: v3.7.0-rc2-337-g35391f3d3499
INFO    - Using 'zephyr' toolchain.
INFO    - Building initial testsuite list...
INFO    - Writing JSON report /home/tomi/workspace/ncs/zephyr/twister-out/testplan.json
INFO    - JOBS: 8
INFO    - Adding tasks to the queue...
INFO    - Added initial list of jobs to queue
INFO    - 1/3 nrf5340dk/nrf5340/cpuapp/ns tests/posix/getentropy/portability.posix.getentropy PASSED (build)
INFO    - 2/3 nrf5340dk/nrf5340/cpuapp/ns tests/posix/getentropy/portability.posix.getentropy.newlib PASSED (build)
INFO    - 3/3 nrf5340dk/nrf5340/cpuapp/ns tests/posix/getentropy/portability.posix.getentropy.picolibc PASSED (build)

INFO    - 3 test scenarios (3 test instances) selected, 0 configurations skipped (0 by static filter, 0 at runtime).
INFO    - 3 of 3 test configurations passed (100.00%), 0 failed, 0 errored, 0 skipped with 0 warnings in 53.50 seconds
INFO    - In total 12 test cases were executed, 0 skipped on 1 out of total 3 platforms (33.33%)
INFO    - 0 test configurations executed on platforms, 3 test configurations were only built.
INFO    - Saving reports...
INFO    - Writing JSON report /home/tomi/workspace/ncs/zephyr/twister-out/twister.json
INFO    - Writing xunit report /home/tomi/workspace/ncs/zephyr/twister-out/twister.xml...
INFO    - Writing xunit report /home/tomi/workspace/ncs/zephyr/twister-out/twister_report.xml...
INFO    - Run completed


SQL Error - Specified Cast is not valid (Object Explorer)

I could connect to the server using SSMS, but while expanding the Databases I was getting this error "Specified Cast is not valid (Object Explorer)".

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

ID: 60540f3d-b959-2daa-23a1-2938de01919d
Version Independent ID: 07b12c3a-a0db-47f1-1aca-04008c9efca9
Content: Use SQL to query data (Common Data Service) - Power Apps
Content Source: powerapps-docs/developer/common-data-service/cds-sql-query.md
Service: powerapps
GitHub Login: @mayadumesh
Microsoft Alias: pehecke

we are looking into it, but have no updates at the moment.

@Sudheerreddyn14
Thanks for your feedback. We are closing this issue because we are either unable to find relevant information or reproduce this. If you're still experiencing the issue described here, please reopen or create a new issue


Proposal -- No more setup

@VarLad has proposed another idea I really like. As of right now, Olive has free mode but otherwise requires a setup. Instead of this, we should just have path denote the location of an Olive setup, and the default Olive.start simply commit to a setup under the julia directory. This way, development of Olive extensions can easily be done by developing them and using them but we are still able to have a global olive setup.

done !


Un-orphan the Text instances

At the moment, Text's instances live in Data.Text, whereas the implementation of the Text type is in Data.Text.Internals. This means that all of these instances are orphaned. That's not great. Would be better to avoid orphanhood. Among other difficulties, orphan instances means that Haddock is unable to report instances for the type; see https://www.stackage.org/haddock/lts-7.12/text-<IP_ADDRESS>/Data-Text.html#t:Text for an example.

See also #60.

Closing as dupe.


fix state and width of projectionlayer

Oops, I reviewed with the wrong github account...Either way, I'm happy to merge these in and create a new version.


No more dev mode

This more has to do with the updated firmware, but has anyone used mrchromebox to update their firmware and run into issues? It was working just fine until I ran the script to use the latest firmware.
I updated my chromebox firmware with mrchromebox and now I am having issues getting into dev mode. I can get to the recovery screen but CTRL-D does nothing. I can get into chromeos but the whole point of this machine was to tinker around...so from my point of view it is bricked. Is there anyway to get into dev mode if ctrl-d is not working?

It seems if you are in dev mode already you do not have to press ctrl-d on the recovery screen. From the chrome login screen you can press ctrl-alt-f2 to pull up a shell.
https://www.reddit.com/r/chromeos/comments/66xc0c/cannot_get_into_dev_mode/dgm82dm/?context=3&st=j1tv4fa1&sh=7d7845ec