[pilot] Transporter error output

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
Hello,
I tried to use fastlane pilot and i have an issue when pilot try to upload the ipa.
I check my password, no special characters.
Thanks for your help :)
Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

fastlane update available
Please update fastlane by downloading an updated bundle from
https://download.fastlane.tools
[16:57:02]: -------------------------------------------------
[16:57:02]: --- Step: Verifying required fastlane version ---
[16:57:02]: -------------------------------------------------
[16:57:02]: Your fastlane version 2.30.2 matches the minimum requirement of 1.29.2  ✅
[16:57:02]: ------------------------------
[16:57:02]: --- Step: default_platform ---
[16:57:02]: ------------------------------
[16:57:02]: Loading from './fastlane/.env.distribution'
[16:57:02]: Driving the lane 'ios upload_basic_to_testflight' 🚀
[16:57:02]: --------------------------------
[16:57:02]: --- Step: get_version_number ---
[16:57:02]: --------------------------------
[16:57:02]: $ cd /Users/s.duchesne/workspaces/trunk/CollectionIOS && agvtool what-marketing-version -terse
[16:57:03]: ▸ "LectraCatalog.xcodeproj/../InfoAdvanced.plist"=2.3
[16:57:03]: ▸ "LectraCatalog.xcodeproj/../LectraCatalog/Info.plist"=2.3
[16:57:03]: ▸ "LectraCatalog.xcodeproj/../LectraCatalogSnapshotsUITests/Info.plist"=1.0
[16:57:03]: ▸ "LectraCatalog.xcodeproj/../LectraCatalogTests/Info.plist"=2.3
[16:57:03]: ▸ "LectraCatalog.xcodeproj/../LectraCatalogUITests/Info.plist"=2.3
[16:57:03]: 2.3
[16:57:03]: /Users/s.duchesne/workspaces/trunk/CollectionIOS/fastlane/../Build/ipa-appstore-2.3.ipa
[16:57:03]: -------------------
[16:57:03]: --- Step: pilot ---
[16:57:03]: -------------------
[16:57:03]: Login to iTunes Connect<EMAIL_ADDRESS>[16:57:06]: Login successful
[16:57:07]: Ready to upload new build to TestFlight (App:<PHONE_NUMBER>)...
[16:57:07]: Going to upload updated app to iTunes Connect
[16:57:07]: This might take a few minutes. Please don't interrupt the script.
[16:57:11]: [Transporter Error Output]: Your Apple ID or password was entered incorrectly. (-20101)
The login credentials for<EMAIL_ADDRESS>seem to be wrong
The password was taken from the environment variable
Please make sure it is correct
[16:57:11]: Please run this tool again to apply the new password
[16:57:12]: Transporter transfer failed.
[16:57:12]:
[16:57:12]: Your Apple ID or password was entered incorrectly. (-20101)
[16:57:12]: Your Apple ID or password was entered incorrectly. (-20101)
Return status of iTunes Transporter was 1: Your Apple ID or password was entered incorrectly. (-20101)
The call to the iTMSTransporter completed with a non-zero exit status: 1. This indicates a failure.
+------------------+--------------------------------+
|                   Lane Context                    |
+------------------+--------------------------------+
| DEFAULT_PLATFORM | ios                            |
| ENVIRONMENT      | distribution                   |
| PLATFORM_NAME    | ios                            |
| LANE_NAME        | ios upload_basic_to_testflight |
| VERSION_NUMBER   | 2.3                            |
+------------------+--------------------------------+
[16:57:13]: Error uploading ipa file, for more information see above
+------+---------------------+-------------+
|             fastlane summary             |
+------+---------------------+-------------+
| Step | Action              | Time (in s) |
+------+---------------------+-------------+
| 1    | Verifying required  | 0           |
|      | fastlane version    |             |
| 2    | default_platform    | 0           |
| 3    | get_version_number  | 0           |
| 💥   | pilot               | 8           |
+------+---------------------+-------------+
[16:57:13]: fastlane finished with errors
[!] Error uploading ipa file, for more information see above
Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
If you used --capture_output option please remove this block - as it is already included there.
fastlane update available
Please update fastlane by downloading an updated bundle from
https://download.fastlane.tools
[16:57:52]: Generating fastlane environment output, this might take a few seconds...
✅ fastlane environment ✅
Stack

Key
Value

OS
10.12.1

Ruby
2.2.4

Bundler?
false

Git
git version 2.10.1

Installation Source
~/.fastlane/bin/bundle/bin/fastlane

Host
Mac OS X 10.12.1 (16B2659)

Ruby Lib Dir
~/.fastlane/bin/bundle/lib

OpenSSL Version
OpenSSL 1.0.2g  1 Mar 2016

Is contained
true

Is homebrew
false

Is installed via Fabric.app
false

Xcode Path
/Applications/Xcode.app/Contents/Developer/

Xcode Version
8.2.1

System Locale

Variable
Value

LANG
en_US.UTF-8
✅

LC_ALL
en_US.UTF-8
✅

LANGUAGE
en_US.UTF-8
✅

fastlane files:
`./fastlane/Fastfile`
# Customise this file, documentation can be found here:
# https://github.com/KrauseFx/fastlane/tree/master/docs
# All available actions: https://github.com/KrauseFx/fastlane/blob/master/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# By default, fastlane will send which actions are used
# No personal data is shared, more information on https://github.com/fastlane/enhancer
# Uncomment the following line to opt out
# opt_out_usage

# If you want to automatically update fastlane if a new version is available:
# update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.29.2"

default_platform :ios

def download_certificate_and_profile(readonly = true)

  match(
      git_url: "git@srdspgit1.eu.lectra.com:mobilite/Certificates.git",
      git_branch: ENV["SIGH_TEAM_ID"],
      type: ENV["PROV_TYPE"],
      app_identifier: [ENV["BUNDLE_IDENTIFIER"],ENV["BUNDLE_IDENTIFIER_ADV"]],
      username: ENV["MATCH_USERNAME"],
      team_id: ENV["SIGH_TEAM_ID"],
      team_name: ENV["SIGH_TEAM_NAME"],
      force_for_new_devices: true,
      readonly: readonly,
      force: !readonly
    )
end

def check_parameters

  if !ENV["SIGH_TEAM_ID"]
    ENV["SIGH_TEAM_ID"] = prompt(text: "Set team id (9UMQT8VR3U)")
  end

  if !ENV["BUNDLE_IDENTIFIER"]
    ENV["BUNDLE_IDENTIFIER"] = prompt(text: "Set bundle identifier")
  end

  if !ENV["PROV_TYPE"]
    ENV["PROV_TYPE"] = prompt(text: "Set provisioning type (development, adhoc or appstore)")
  end

  if ENV["DELIVER_APP_ID"] && !ENV["DELIVER_USERNAME"]
    puts "Please check to use DELIVER_USERNAME instead of DELIVER_APP_ID"
    ENV["DELIVER_USERNAME"] = ENV["DELIVER_APP_ID"]
  elsif !ENV["DELIVER_APP_ID"] && !ENV["DELIVER_USERNAME"]
    ENV["DELIVER_USERNAME"] = prompt(text: "Set user to connect to apple developer portal (lectra.devices@gmail.com)")
  end

  if ENV["DELIVER_USERNAME"] && !ENV["MATCH_USERNAME"]
    ENV["MATCH_USERNAME"] = ENV["DELIVER_USERNAME"]
  end

end

platform :ios do
  before_all do

    check_parameters

  end

  #
  # Lanes for Certificates
  #
  lane :clean do
    sh "pwd"

    identity = "iOS Distribution"
    if ENV["PROV_TYPE"] == "development"
      identity = "iOS Developer"
    end

    sh "./remove_code-sign_provisioning.sh"

    sh "ruby ./fastlane_guard.rb ../#{ENV["PROJECT_FILE"]}/project.pbxproj '#{identity}' '#{ENV["BUNDLE_IDENTIFIER"]}' '#{ENV["PROV_TYPE"]}'"

  end

  lane :forcematch do
    download_certificate_and_profile(false)
  end

  lane :get_prov do
    download_certificate_and_profile
  end

  #
  # Choose xcode if multiple version on mac
  #
  lane :xcodeselect do |options|

    puts "parameters available : "
    puts "- path (xcode path : Xcode | Xcode7 | Xcode8)"

    xcode = options[:path]
    if !xcode
      xcode = prompt(text: "Xcode path (Xcode | Xcode7 | Xcode8) :")
    end

    sh "sudo xcode-select -switch /Applications/#{xcode}.app/Contents/Developer/"

  end

  #
  # Set the version
  #
  lane :set_version do |options|

    puts "parameters available : "
    puts "- version"
    puts "- build (build number)"

    version = options[:version]
    if !version
      version = prompt(text: "Version (1.0.0) ?")
    end

    sh "cd ../ && agvtool new-marketing-version #{version}"

    begin
      build = options[:build]
      if !build
        puts "no build in parameter, auto increment build number"
        increment_build_number
      else
        increment_build_number(build_number:build)
      end
    rescue => ex
      UI.error(ex)
    end

  end

  #
  # Lanes for build
  #
  private_lane :build do |options|

    puts "parameters available : "
    puts "- mode (basic|advanced)"

    mode = options[:mode]
    if !mode
      mode = prompt(text: "Mode (basic|advanced) ?")
    end

    if mode == "basic"
      scheme = ENV["GYM_SCHEME"]
    else
      scheme = ENV["GYM_SCHEME_ADV"]
    end

    update_project_team(
      path: ENV["PROJECT_FILE"],
      teamid: ENV["SIGH_TEAM_ID"]
    )

    download_certificate_and_profile

    version = get_version_number(xcodeproj: ENV["PROJECT_FILE"])

    filename = "#{scheme}-#{ENV["PROV_TYPE"]}-#{version}.ipa"
    puts "FILENAME : "
    puts filename
    #gym(
    #  output_name: filename
    #  scheme:scheme,
    #  use_legacy_build_api: false
    #)
  end

  lane :build_basic do
    build mode:"basic"
  end

  lane :build_advanced do
    build mode:"advanced"
  end

  #
  # Lanes for Tests
  #
  private_lane :tests do |options|
    puts "parameters available : "
    puts "- mode (basic|advanced)"

    mode = options[:mode]
    if !mode
      mode = prompt(text: "Mode (basic|advanced) ?")
    end

    if mode == "basic"
      scheme = ENV["GYM_SCHEME"]
      scanOutputDirectory = ENV["SCAN_OUTPUT_DIRECTORY"]
    else
      scheme = ENV["GYM_SCHEME_ADV"]
      scanOutputDirectory = ENV["SCAN_OUTPUT_DIRECTORY_ADV"]
    end

    scan(
      workspace:ENV["GYM_WORKSPACE"],
      scheme:scheme,
      output_directory: scanOutputDirectory,
      devices:["iPhone 7"],
      skip_build:false
    )
  end

  desc "Launch tests basic"
  lane :tests_basic do
    tests mode:"basic"
  end

  desc "Launch tests advanced"
  lane :tests_advanced do
    tests mode:"advanced"
  end

  #
  # Lanes for snapshot
  #
  private_lane :screenshots do |options|
    puts "parameters available : "
    puts "- mode (basic|advanced)"

    mode = options[:mode]
    if !mode
      mode = prompt(text: "Mode (basic|advanced) ?")
    end

    if mode == "basic"
      scheme = ENV["SNAPSHOT_SCHEME"]
    else
      scheme = ENV["SNAPSHOT_SCHEME_ADV"]
    end

    snapshot(
      devices:["iPhone 6"],
      languages:["fr-FR"],
      skip_open_summary:false,
      clear_previous_screenshots:true,
      scheme: scheme,
      number_of_retries:1,
      ios_version:"10.2",
      buildlog_path:"fastlane/logs",
      derived_data_path:"fastlane/derivedData"
    )
  end

  lane :screenshots_basic do
    screenshots mode:"basic"
  end

  lane :screenshots_advanced do
    screenshots mode:"advanced"
  end

  #
  # Lanes for post on appstore
  #
  lane :post do

     if ENV["PROV_TYPE"] == "appstore"
       ipa_file_path = Dir["#{`pwd`.strip}/../#{ENV["GYM_OUTPUT_DIRECTORY"]}/#{ENV["GYM_SCHEME"]}-#{ENV["PROV_TYPE"]}-#{version}.ipa"].sort_by{ |f|  File.mtime( f ) }.reverse[0]

      deliver(
        ipa: ipa_file_path,
        team_name: ENV["SIGH_TEAM_NAME"],
        skip_metadata: true,
        skip_screenshots: true,
        force: true
      )

    end
  end

  #
  # Lanes for post on TestFlight
  #
  desc "Upload ipa to TestFlight"
  lane :upload_basic_to_testflight do
    if ENV["PROV_TYPE"] == "appstore"
      version = get_version_number(xcodeproj: ENV["PROJECT_FILE"])
      puts version
      ipa_file_path = Dir["#{`pwd`.strip}/../#{ENV["GYM_OUTPUT_DIRECTORY"]}/#{ENV["GYM_SCHEME"]}-#{ENV["PROV_TYPE"]}-#{version}.ipa"].sort_by{ |f|  File.mtime( f ) }.reverse[0]
      puts ipa_file_path
      pilot(
        ipa:ipa_file_path,
        skip_submission: true,
        username:ENV["PILOT_USERNAME"]
      )
    end
  end

  #
  # Lanes for multiples actions
  #
  desc "Set the xcode version, set the version and build number, build and upload"
  lane :build_and_post do |options|

    puts "parameters available : "
    puts "- path (xcode path)"
    puts "- version"
    puts "- build (build number)"

    xcodeselect options

    set_version options

    build

    upload

  end

  lane :upload do

    if(ENV["PROV_TYPE"] == "appstore")
      post
    else
      upload_to_testflight
    end

  end

  lane :register do
    register_devices(
      devices_file: "./fastlane/devices.txt",
      team_id: ENV["SIGH_TEAM_ID"],
      username: ENV["MATCH_USERNAME"]
    )

    forcematch
  end

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    # slack(
    #   message: "Successfully deployed new App Update."
    # )
  end

  error do |lane, exception|
    # slack(
    #   message: exception.message,
    #   success: false
    # )
  end
end

# More information about multiple platforms in fastlane:
# https://github.com/KrauseFx/fastlane/blob/master/docs/Platforms.md

No Appfile found
fastlane gems

Gem
Version
Update-Status

fastlane
2.30.2
✅ Up-To-Date

Loaded fastlane plugins:
No plugins Loaded
Loaded gems

Gem
Version

CFPropertyList
2.3.5

activesupport
<IP_ADDRESS>

addressable
2.5.0

babosa
1.0.2

bigdecimal
1.2.6

bundler
1.14.3

claide
1.0.1

colored
1.2

colored2
3.1.2

commander
4.4.3

commander-fastlane
4.4.4

domain_name
0.5.20161129

dotenv
2.2.0

excon
0.54.0

faraday
0.11.0

faraday-cookie_jar
0.0.6

faraday_middleware
<IP_ADDRESS>

fastimage
2.0.1

gh_inspector
1.0.3

google-api-client
0.9.26

googleauth
0.5.1

highline
1.7.8

http-cookie
1.0.3

httpclient
2.8.3

hurley
0.2

i18n
0.7.0

io-console
0.4.3

json
1.8.1

jwt
1.5.6

libxml-ruby
2.9.0

little-plugger
1.1.4

logging
2.1.0

memoist
0.15.0

mime-types
3.1

mime-types-data
3.2016.0521

mini_magick
4.5.1

minitest
5.4.3

multi_json
1.12.1

multi_xml
0.6.0

multipart-post
2.0.0

nanaimo
0.2.3

nokogiri
1.5.6

os
0.9.6

plist
3.2.0

power_assert
0.2.2

psych
2.0.8

public_suffix
2.0.5

rake
10.4.2

rdoc
4.2.0

representable
2.3.0

retriable
2.1.0

rouge
1.11.1

rubygems-update
2.5.2

rubyzip
1.2.0

security
0.1.3

signet
0.7.3

slack-notifier
1.5.1

sqlite3
1.3.13

terminal-notifier
1.7.1

terminal-table
1.7.3

test-unit
3.0.8

thread_safe
0.3.5

tty-screen
0.5.0

tzinfo
1.2.2

uber
0.0.15

unf
0.1.4

unf_ext
<IP_ADDRESS>

unicode-display_width
1.1.3

word_wrap
1.0.0

xcodeproj
1.4.4

xcpretty
0.2.4

xcpretty-travis-formatter
0.0.4

generated on: 2017-05-17

I'm using match for my provisionning profile and gym for build my ipa. I try to upload it with Application Manager and there is no problem.

Found !!! Old password in my keychain. clean it and all works fine.


Laravel mail produces ugly error on failure to send to an active domain

https://github.com/laravel/framework/issues/33018
This can be useful on registration to prevent issues like

This might however make testing a little bit more difficult but ensures non existent emails cannot sign up

This also affects student creation as it involves db transactions which is not committed if the message isn't sent successfully

Caught all exceptions but continued execution silently, this would still haunt me one day


Puppeteer options setup through CLI won't apply!

I have a Docker Container that uses convert-svg-to-png, the issue is that this package doesn't put options to the Puppeteer.launch() which since the Docker Container is running in /root, Puppeteer errors with Running as root without --no-sandbox is not supported I saw pull request #29 which mention this issue especially so I add RUN apt-get update && npm install -g convert-svg-to-png && npm install --save convert-svg-to-png and RUN convert-svg-to-png --puppeteer='{ "headless": true, "args": ["--no-sandbox"] }' *.svg into my Dockerfile, but yet It still errors with a same exact error when trying to use the converting module, Puppeteer itself works in the Docker Container and I even tried raw of it, the reason I use this package is that when I use raw puppeteer it seems to render the SVG wrongly like having a weird white outline on the left and this package seems to solve that issue somehow, a fix for neither of those can help.

+1


[BUG]: Drizzle differentiates between the return types of node-postgres and pg-proxy

What version of drizzle-orm are you using?
0.29.3
What version of drizzle-kit are you using?
0.20.14
Describe the Bug
When connecting to a PostgreSQL instance, the docs state that it is possible to use an HTTP proxy to fulfill the request for you. Needless to say, proxying SQL requests can be helpful in a lot of situations. There is, however, a problem with the types returned by the two different adapters.
See for yourself:
const query = async(db: DrizzleDirect | DrizzleProxy /* Abstracted for showcase */): Promise<void> => {
    const queryRes = await db.execute(sql`SELECT item`)
}

This code, when run with either a direct PostgreSQL connection or an HTTP proxy, should return the same type/interface, but it doesn't: queryRes in this instance can be either of the type Record<string, unknown>[] or QueryResult<Record<string, unknown>>.
This differentiation happens in the respective session.ts files:
https://github.com/drizzle-team/drizzle-orm/blob/3216719740fd90b633283886f46221ed9d7791fb/drizzle-orm/src/node-postgres/session.ts#L190-L192
https://github.com/drizzle-team/drizzle-orm/blob/3216719740fd90b633283886f46221ed9d7791fb/drizzle-orm/src/pg-proxy/session.ts#L138-L142
This seems unintentional, as the result returned by the two adapters should be the same no matter what. To add to this, the QueryResult type used by the drizzle-orm/node-postgres adapter (Which comes from the @types/pg package itself) basically does the same thing as the typed-out version in the drizzle-orm/pg-proxy adapter:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/88abfe7f1fca835cd7f7cbc8389f4b640c72ae43/types/pg/index.d.ts#L94-L96
Because TypeScript is TypeScript, although the two types basically refer to the same thing, it throws an error and thus prevents any builds relying on either one of the adapters on the same time to compile.
Expected behavior
The two adapters (drizzle-orm/pg-proxy and drizzle-orm/node-postgres should rely on the same / similar types, so they can be used in conjunction.
Environment & setup
Using drizzle-orm, create two drizzle instances, one with drizzle-orm/node-postgres and one with drizzle-orm/pg-proxy:
import { pgTable, serial, text, varchar } from 'drizzle-orm/pg-core';
import { drizzle as drizzle_direct } from 'drizzle-orm/node-postgres';
import { drizzle as drizzle_proxy } from 'drizzle-orm/pg-proxy';
import { Client } from 'pg';
import { sql } from 'drizzle-orm';

const client = new Client({
    connectionString: "postgres://user:password@host:port/db",
});

await client.connect();

const db_direct = drizzle_direct(client);

const db_proxy = drizzle(async (sql, params, method) => {
    try {
        const rows = await axios.post('http://localhost:3000/query', { sql, params, method })

        return { rows: rows.data };
    } catch(e: any) {
        console.error('Error from pg proxy server: ', e.response.data);
        return { rows: [] };
});

const executeQuery = async(db: typeof db_direct || typeof db_proxy): Promise<void> => {
    const queryRes = await db.execute(sql`SELECT item`);

    // Error can be seen here
    console.log(queryRes.rows?.[0]);
}

executeQuery();

facing same issue with the drizzle type map issue lead to 0: undefined


Transportation Chaos Simulation - Fault Injection

Fault Injection
Background
Currently the SDK does not have a way to simulate network issues. This makes it difficult to test the SDK's behavior when there are network issues. The goal of this feature is to allow customers to configure rules that specify how and when the SDK fails requests. This will allow customers to test the SDK's behavior when there are network issues. Additionally, this will help customers test their own retry policies.
Design
FaultInjectionRule
To induce faults, we will introduce a new type FaultInjectionRule. This type will allow customers to configure how the SDK fails requests. Once created, FaultInjectionRules can be added to specific containers.
The FaultInjectionRule has three major components, result, condition, and
result
The result component of the FaultInjectionRule specifies what the result of the fault that is to be injected will be. The result component can be one of two types, FaultInjectionServerErrorResult or FaultInjectionConnectionErrorResult.
FaultInjectionServerErrorResult
Rule will return a server error to the customer. FaultInjectionServerErrorResult has three properties: errorType, times, and delay.

Property
Description

errorType
Required. The type of server error that the SDK will return to the customer.

times
An optional parameter that limits how many times the same rule can be applied on the operation. If times is not specified, the rule will be applied on the operation until the rule is removed or disabled from the container.

delay
Required for RESPONSE_DELAY and CONNECTION_DELAY error types. The delay is the amount of time the SDK will wait before returning the error to the customer.

Supported server error types
GONE
RETRY_WITH
INTERNAL_SERVER_ERROR
TOO_MANY_REQUESTS
READ_SESSION_NOT_AVAILABLE
TIMEOUT
PARTITION_IS_MIGRATING
RESPONSE_DELAY // used to simulate transient timeout/broken connections
CONNECTION_DELAY // used to simulate high channel acquisition.

FaultInjectionConnectionErrorResult
Rule will return a connection error to the customer. FaultInjectionConnectionErrorResult has three properties: errorType, interval, and threshold.

Property
Description

errorType
Required. The type of connection error that the SDK will return to the customer.

interval
Required. The interval is the amount of time the SDK will wait before returning the error to the customer.

threshold
Optional. double with value: (0-1]. Default value is 1. Percentage of established connections that will be impacted when connection error is injected.

Suported connection error types
CONNECTION_CLOSE
CONNECTION_RESET

condition
The condition property of the FaultInjectionRule acts like a rule filter. A FaultInjectionRule will only be applied to a request if all the necessary conditions match. When a rule is configured, the SDK will pre-process the rule resolving the physical address if configured. The condition property is of type FaultInjectionCondition and has the following properties:

Property
Default
Description

OperationType
null
Optional. For FaultInjectionServerErrorResult, SERVER_GONE, SERVER_CONNECTION_DELAY, and FaultInjectionConnectionErrorResult, ignore after resolving address.

ConnectionType
null
Optional. Specifies the connection type to which the rule will be applied: Direct_Mode or Gateway_Mode

Region
null
Optional. Specifies the region to which the rule will be applied.

Endpoint
null
Optional. Type of FaultInjectionEndpoint. Specifies the endpoint to which the rule will be applied. Use when filtering down to a subset of physical addresses.

id
Each FaultInjectionRule has a unique id. This id is used to identify the rule when disabling or removing the rule from the container.
Other components

Property
Description

duration
Optional. Defines how long the rule will be effective. If not specified, the rule will be effective until the rule is removed or disabled from the container.

startDelay
Optional. Defines how long the rule will wait before being effective. If not specified, the rule will be effective immediately.

hitLimit
Optional. Defines how many times the rule can be applied. If not specified, the rule will be applied to the request until the rule is removed or disabled from the container.

Multiple FaultInjectionRules on a container
Each container can have multiple rules however, only one rule will be applied to a request. If a container has multiple rules applied to it, the first rule that matches the request will be applied. So even if multiple rules are defined, they many not see the effects happen at the same time.
Additionally, it is important to note that becaue server error type rules are applied to the request while connection error type rules are happening on the background, the rule that is actually applied to the request will be determined by a time race condition.
How to add a FaultInjectionRule
To add FaultInjectionRules to a container, a customer will use a new class CosmosFaultInjectorHelper and call the configFaultInjectionRules method which takes a container and a list of FaultInjectionRules.
CosmosFaultInjectorHelper.configFaultInjectionRules(CosmosContainer container, List<FaultInjectionRule> rules)

After configuting the rules, regionEndpoints and addresses can be obtained from the rules.
serverErrorRule.getRegionEndpoint();
serverErrorRule.getAddresses();

How to disable a FaultInjectionRule
To disable a FaultInjectionRule, a customer will call the disable method on the rule.
serverErrorRule.disable();

Get hit count of a FaultInjectionRule
To get the hit count of a FaultInjectionRule, a customer will call the getHitCount method on the rule.
serverErrorRule.getHitCount();

Note on CosmosDiagnostics
Changes will need to be made to CosmosDiagnostics to include information about the fault injection rules that were applied to the request. This will allow customers to see what rule is applied to the request and make it easy to diagnose when a rule was accidently left enabled during production.
For FaultInjectionServerErrorResult where rules are applied per request the CosmosDiagnostics will include a faultInjectionRuleId field.
For FaultInjectionConnectionErrorResult where the rules run in the background, the CosmosDiagnostics will include two new feilds: faultInjectionRuleId and lastFaultInjectionTimestamp in the serviceEndpointStatistics. This will allow customers to see when the last time a rule was applied to the request and what that rule was.

Hotfix release for Direct package


Scalar: Update widgets whitelist

Riot-web uses:

https://scalar-staging.riot.im/scalar/ap
https://scalar-staging.vector.im/api
https://scalar.vector.im/api

Riot mobile apps use only 2.

Kamino cloned this issue to vector-im/riot-ios


A contract is removed in two steps. Firstly, it disappears from contract lookup (its info is gone). This phase is cheap and thus immediately performed. However, cleaning a storage may be an expensive operation, hence it is done lazily. We keep a (bounded) queue of the contracts to be removed and in the beginning of each block we try to remove as many as possible. The method process_deletion_queue_batch in frame/contracts/src/storage.rs is supposed to do so. However, PR #9669 has changed semantics a little bit (while -> if), which resulted in removing at most one contract at a time.

/benchmark runtime pallet pallet_contracts

/benchmark runtime pallet pallet_contracts

bot merge


Implement helm caching and fix previously skipped tests

implementation of #301

/test all

Updated module-manager lib with the latest commit

/test pull-lifecycle-mgr-tests


ExecutablePreparedStatementBase java.io.IOException: Resetting to invalid mark

Search first

[X] I searched and no similar issues were found

Description
The error was found by accident when trying to put a file exactly 100_000 bytes in the database in migration.
In this case, when calculating the size of the stream inside the ExecutablePreparedStatementBase class, the condition for resetting the mark is not calculated correctly.
Problem line: https://github.com/liquibase/liquibase/blob/master/liquibase-standard/src/main/java/liquibase/statement/ExecutablePreparedStatementBase.java#L417
Possible fixed condition: in.markSupported() && (length < IN_MEMORY_THRESHOLD) less instead of less or equal

Caused by: liquibase.exception.DatabaseException: Resetting to invalid mark
at liquibase.statement.ExecutablePreparedStatementBase.applyColumnParameter(ExecutablePreparedStatementBase.java:335)
at liquibase.statement.ExecutablePreparedStatementBase.attachParams(ExecutablePreparedStatementBase.java:218)
at liquibase.statement.ExecutablePreparedStatementBase.execute(ExecutablePreparedStatementBase.java:118)
at liquibase.executor.jvm.JdbcExecutor.execute(JdbcExecutor.java:175)
at liquibase.executor.AbstractExecutor.execute(AbstractExecutor.java:141)
at liquibase.database.AbstractJdbcDatabase.executeStatements(AbstractJdbcDatabase.java:1189)
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:775)
... 123 more
Caused by: java.io.IOException: Resetting to invalid mark
at java.base/java.io.BufferedInputStream.reset(BufferedInputStream.java:446)
at liquibase.statement.ExecutablePreparedStatementBase.toBinaryStream(ExecutablePreparedStatementBase.java:415)
at liquibase.statement.ExecutablePreparedStatementBase.applyColumnParameter(ExecutablePreparedStatementBase.java:308)
... 129 more

Steps To Reproduce
Create migration and changeSet to try put a file (valueClobFile="data/somefile.dat") exactly equal to 100_000 bytes.
Test illustrating the problem:
    @Test
    @SneakyThrows
    void test() {
        // BufferedInputStream.DEFAULT_BUFFER_SIZE = 8192
        var bufferSize = new Random().nextInt(10000);
        var size =  new Random().nextInt(bufferSize, bufferSize * 2);

        var data = new byte[size];

        var is = new BufferedInputStream(new ByteArrayInputStream(data), bufferSize);

        is.mark(size);

        var length = getContentLength(is);

        if (length <= size) { // <- invalid condition
            is.reset();
        }

    }

    protected static long getContentLength(InputStream in) throws IOException {
        long length = 0;
        byte[] buf = new byte[4096];
        int bytesRead = in.read(buf);
        while (bytesRead > 0) {
            length += bytesRead;
            bytesRead = in.read(buf);
        }
        return length;
    }

Expected/Desired Behavior
A file of 100_000 bytes is inserted into the table without errors
Liquibase Version
latest
Database Vendor & Version
No response
Liquibase Integration
No response
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
No response
Additional Context
No response
Are you willing to submit a PR?

[X] I'm willing to submit a PR (Thank you!)

Hi @sshuvalov, thank you for reporting this issue. I agree with you regarding the condition for resetting the input stream.
Feel free to submit your PR, our development team will be available to provide guidance if needed.
Thank you!


Stop Azure Data Studio from launching automatically after installation

Type: Bug
I have just created a distribution for our users of the latest Azure Data Studio v1.48.1 (Released 18th June 2024)
N.B. This issue has been submitted via another Azure Data Studio v1.48.0 installation
We deploy software to all our users via Intune, the Application is installed as a System application
The command line I used to silently install the software was:
Execute-Process -Path ".\azuredatastudio-windows-setup.exe" -Parameters '/SP- /VERYSILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS /NORESTART /NORESTARTAPPLICATIONS  /LOG="C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\AzureDataStudio_Install.log"'

Upon completion of the install Azure Data Studio automatically launches - unfortunately as the install was performed using the System account, the application assumes it should be launched using the same account - From a security perspective launching the newly installed app as System is not a good move. Personally, I feel that launching the application at the end of the install is completely unnecessary.
Please can you provide a method where by we can prevent Azure Data Studio from launching after install - Preferably a via command line switch we can use with the install.
Azure Data Studio version: azuredatastudio 1.48.0<PHONE_NUMBER>ef8254b7c22a5dc55af7f8a1dea93f, 2024-02-27T00:05:08.293Z)
OS version: Windows_NT x64 10.0.19045
Restricted Mode: No
Preview Features: Disabled
Modes:

System Info

Item
Value

CPUs
AMD Ryzen 7 PRO 4750U with Radeon Graphics (16 x 1697)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
undefined

Memory (System)
15.33GB (2.14GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions: none

You should be able to use the /MERGETASKS=!runcode parameter to have it not launch ADS automatically after an installation.


Tag attributes value must be "string forced"

This should be possible:
%div{ class: @item.name }

but to make it work, I must done:
%div{ class<EMAIL_ADDRESS>}

Otherwise, it works super great. Thanks a lot!

This is possible! Even more complex functions can be called.
$ echo "%div{ class: @item.name }" > test.hamlc
$ ./bin/haml-coffee -i test.hamlc
[Haml Coffee] Compiling file test.hamlc to test.jst
$ cat test.jst
(function() {
  var _base, _ref;

  if ((_ref = window.HAML) == null) window.HAML = {};

  (_base = window.HAML).htmlEscape || (_base.htmlEscape = function(text) {
    return ("" + text).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/'/g, ''').replace(/"/g, '"');
  });

  window.HAML['test'] = function(context) {
    var fn;
    fn = function(context) {
      var e, o;
      o = [];
      e = window.HAML.htmlEscape;
      o.push("

");
      return o.join("\n");
    };
    return fn.call(context);
  };

}).call(this);

Is there more context in that template?
As you have found out by yourself, enforcing interpolation by quoting the expression enables much robust parsing and is always a handy fallback when something does not work.

The previous test was with haml-coffe. To also verify haml_coffee_assets, I took the example from #2 and modified it a bit:
#cart
  %h2= I18n.t('js.cart.title')

  - if @cart.length == 0
    %p.empty= I18n.t('js.cart.empty')

  - else
    %ul
      - for item in @cart
        %li
          .item
            = item.name
            %a{ href: item.id }
              = I18n.t('js.cart.item.remove')

Also in this case I got a template:
function (context) {
    var fn;
    fn = function(context) {
      var e, item, o, _i, _len, _ref2;
      o = [];
      e = HAML.escape;
      o.push("
");
      o.push("
" + (e(I18n.t('js.cart.title'))) + "
");
      if (this.cart.length === 0) {
        o.push("
" + (e(I18n.t('js.cart.empty'))) + "
");
      } else {
        o.push("
");
        _ref2 = this.cart;
        for (_i = 0, _len = _ref2.length; _i < _len; _i++) {
          item = _ref2[_i];
          o.push("
");
          o.push("
");
          o.push(e("        " + item.name));
          o.push("        ");
          o.push(e("          " + I18n.t('js.cart.item.remove')));
          o.push("        ");
          o.push("
");
          o.push("
");
        }
        o.push("
");
      }
      o.push("
");
      return o.join("\n");
    };
    return fn.call(App.application.globalTemplateContext(context));
  }

And item.id works fine as attribute:
o.push("        ");

Ok, I'll give it a try again.

Make sure to use the haml_coffee_assets gem and not haml-coffee-rails or ruby-haml-coffe, because they don't use my enhanced haml-coffee fork.

Ok so with haml_coffee_assets when I got something like:
- square = (i) -> "#{i * i}"
- for i in [[1, 2],[3, 4]]
  %span{ class: square(i[0]) }= square(i[0])

it brokes, with something like:
- square = (i) -> "#{i * i}"
- for i in [1..4]
  %span{ class: square(i) }= square(i)

it's fine. Normal? :)

This is a bug and has been fixed with the 0.2.3 release.
The lexer handles attributes in different ways:

Quoted attributes are more simple, because I can detect when a quote ends (even when it has escaped quotes in between), and everything in between is simple string where you can use interpolations.
code like test: @model.get('name') is more comples, because I can not surely say where it ends, so I have to positively match all the allowed characters.

I'm really like such feedback, it helps tweak the lexer regular expressions for things I have forgotten.

Works like a charm now. Thanks Micheal!


WIP: flash message styling

styling for "flash" style messages in public app
includes example alert in marital status view (to be removed)

Thank you @axemonkey. I've cherry picked this to my branch and I'll close the PR now.


Add pyproject.toml for Custom Node Registry

Hey! My name is HaoHao and I'm from comfy-org! We would love to have you join the Comfy Registry, a public collection of custom nodes which lets authors publish nodes by version and automate testing against existing workflows.
Eventually, the registry will be integrated as a backend for the UI-manager where all nodes will go through a security scan. Nodes that pass these checks will have a verification flag (✅) beside their name on the UI-manager. Feel free to read up more on the registry here
Action Required:

[ ] Go to the registry. Login and create a publisher id (everything after the @ sign on your registry profile).
[ ] Add the publisher id into the pyproject.toml file.
[ ] Merge the separate Github Actions PR, then merge this PR.

If you want to publish the node manually, install the cli by running pip install comfy-cli, then run comfy node publish
Otherwise, if you have any questions, please message me on discord at haohao_81202 or join our server!

@haohaocreates your thing is sending the wrong messages lol

Awe yeah Sno and I found out this bug yesterday, we’re going to try and
update all templates real quick, seems like it’s using the wrong
title/header.
Thanks for double flagging it though 🥹
On Mon, Jul 29, 2024 at 10:51 PM mcmonkey4eva @.***>
wrote:

Merged #100
https://github.com/mcmonkeyprojects/sd-dynamic-thresholding/pull/100
into master.
—
Reply to this email directly, view it on GitHub
https://github.com/mcmonkeyprojects/sd-dynamic-thresholding/pull/100#event-13689120730,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BG3AD2JQ3GOGY2EBGEHLJCTZO35TBAVCNFSM6AAAAABLSCRPHKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGY4DSMJSGA3TGMA
.
You are receiving this because you were mentioned.Message ID:
<mcmonkeyprojects/sd-dynamic-thresholding/pull/100/issue_event/13689120730
@github.com>


Andi/farmprofiledata

What's new in this PR?
Implemented the TopItemsGraph and RecentHarvestsGraph.
https://www.notion.so/calblueprint/Data-into-Top-5-Items-Recent-Harvests-Graphs-87da0fabb1324f0f933e14bedc5f7125
They are functional as shown in http://localhost:3000/farm/recYZO7NOT3NSGKCC (Nick's farm) !!

TopItems groups all harvest logs together by item, sorts them all and finds the top 5. Displays them in descending order as well.
RecentHarvests takes the last 9 months and displays their total pounds per month in a graph in order from 9 months ago to the current month.

I tested some more on another farm and found issues with this farm. http://localhost:3000/farm/ecddezeBohwFjyuK

it has something to do with not deleting an index of the list if it is a duplicate? though it doesn't have problems in Nick's farm.
additionally if I console.log, the same sized "dictionary" always outputs through each iteration which is confusing.

See https://airtable.com/tblvHdssj1Nh7iMKe/viwJDFBMSq10iR4ad?blocks=hide for the airtable.
How to Review
A farm prop is passed down from FarmProfile -> FarmGraphsTable -> Graph -> RecentHarvestsGraph/TopItemsGraph files.
All code for the graphs are in RecentHarvestsGraph.js and TopItemsGraph.js
Related PRs
Next steps
Debugging.
Working on filtering with the graphs. Should be relatively easy for RecentHarvest and rather a bit difficult for Top Items.
Screenshots

Design Status
CC: @phoebeli23

Super thorough work Andi! Could you briefly document your code in RecentHarvestsGraph.js and TopItemsGraph.js? A high level overview of your algorithm would be very helpful for future reference.
I am unable to see the farm you said was having issues. But here are the bugs that I found:

Nick's Corn Farm: console error

Sandra's Farm: error upon page load

Sweet Tomatoes: error upon page load

Issues that I see (not from code in this PR, but instead the VictoryGraph implementation):

If there are no harvest logs at all, the empty TopItems graph is a bit buggy in that it shows text when it shouldn't.

When there are <5 unique crops, the graph is pretty poor in that it is not evenly spaced out and proportional.

Issues that I see (not from code in this PR, but instead the VictoryGraph implementation):

If there are no harvest logs at all, the empty TopItems graph is a bit buggy in that it shows text when it shouldn't.

When there are <5 unique crops, the graph is pretty poor in that it is not evenly spaced out and proportional.

Render Empty Graph graphic by putting a boolean prop for IsEmpty in FarmProfileGraph component.
Try to fill in the empty values of the top 5 List with empty strings and 0 to try to make the graph more proportional.

looks much better but victorygraphs still iffy on that proportionality. Just render N/A with a bit of a trick.

Since categories can't have the same name (or else their values are just summed and combined), I added an additional whitespace at the end of the "N/A" for every N/A value.

WOW you really outdid yourself here Andi :)

The "N/A trick" is a really interesting solution for balancing the graph, would be worth documenting in the code why it's needed -- but the output is beautiful

EmptyGraph appears when needed

Will give a more in-depth review tomorrow double-checking the numbers and code


Grab icons from SimpleIcons too?

I'd love to be able to grab icons from simpleicons along with font-awesome. Would you be open to that?

No, because of unclear licensing. From their docs:

Simple Icons is released under CC0 - though that doesn't mean to imply that all icons within the project are also CC0. Please see individual licenses where available.

Additionally I see not much gain in having a huge set of brand icons that will only sparsly been used but complicating the icon implementation.

Makes sense, thanks for the response. Is there a way I can supply the icon via icon= if I save it locally?

Not at the moment. The implementation currently generates the HTML strucutre specific to Font Awesome's requirements.


Eliminate Compilation Warnings

There are apparently a few unused variables and an implicitly defined nanosleep().
Its an easy fix of including <time.h>, removing unsigned x, y from initpie(), and removing struct Slice *prevslice from main()
I don't know if these are intended for future use, but after some cursory pmenu usage it doesn't seem to break anything. I can make a PR with the changes, but its 5 line deletions and one include addition.
*accidentally posted to https://github.com/phillbush/xmenu/issues/13

The variables in initpie() were used in a previous version, but I removed their code and forgot to remove the variables.
The prevslice (which is in run(), not in main()) were for a experiment I did on the develop branch, but for some reason I merged the variables into the master branch...
Strangely, I do not get compilation warnings with <time.h> in my system so that's why I have not noticed this problem.


mac_tool_integrations_tests_4_4 is flaky

Noticed on more than one occasion this test has flaked today. The flaky test is the same on multiple runs:
17:37 +45 ~3: test/integration.shard/overall_experience_test.dart: flutter error messages include a DevTools link
Test is taking a long time.
Expected state transitions:
    0 NOW WAITING FOR> /^An Observatory debugger and profiler on Flutter test device is available at: /
    1                  /^The Flutter DevTools debugger and profiler on Flutter test device is available at: /
    2                  "Performing hot reload...                                        "
    3                  /^Reloaded 0 libraries in [0-9]+ms./
So far nothing has been logged; use debug:true to print all output.
(streaming all logs from this point on...)
stdout: Syncing files to device Flutter test device...                     124ms
stdout:
stdout: Flutter run key commands.
stdout: r Hot reload. 🔥🔥🔥
stdout: R Hot restart.
stdout: h List all available interactive commands.
stdout: d Detach (terminate "flutter run" but leave application running).
stdout: c Clear the screen
stdout: q Quit (terminate the application on the device).
stdout:
stdout: 💪 Running with sound null safety 💪
stdout:
stdout: An Observatory debugger and profiler on Flutter test device is available at: http://<IP_ADDRESS>:51550/iKQ3K6hjRQg=/
(matched /^An Observatory debugger and profiler on Flutter test device is available at: /)
(process is not quitting, trying to send a "q" just in case that helps)
(a functional test should never reach this point)
stdout: Activating Dart DevTools...
stdout:
stdout: Application finished.
(process terminated with exit code 0)
The subprocess terminated before all the expected transitions had been matched.
The transition that we were hoping to see next but that we never saw was:
    1 NOW WAITING FOR> /^The Flutter DevTools debugger and profiler on Flutter test device is available at: /

17:50 +45 ~3 -1: test/integration.shard/overall_experience_test.dart: flutter error messages include a DevTools link [E]
  Missed some expected transitions.
  test/integration.shard/overall_experience_test.dart 275:5  runFlutter

Here are builds where this has happened today:
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac tool_integration_tests_4_4/222/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac tool_integration_tests_4_4/217/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Mac tool_integration_tests_4_4/216/overview

FYI @Hixie as test author

I wonder if this is related to #81556  and/or #81486

Looks like it's the same but on Mac, yeah.

luci.flutter.prod contains mac machines with 4 and 12 cores. The ones failing are running on 4 core VMs.

Fix on review.

Actually I got this problem wrong, it is CPU related but not a timeout in the test.

I'm moving the test to use only 12 core machines but we may need to find out why this started to happen. Tests were passing consistently before: https://chromium.googlesource.com/external/github.com/flutter/flutter/+/93242d7548f2ee8070cb932ec3826512b94d1356

The addition of DevTools to this test is pretty recent (last week).

This is fixed.


Delayed acceleration even with full throttle

CARLA version: <IP_ADDRESS>
Platform/OS: ubuntu 20.04
Description:
I am currently utilizing the Tesla Model 3 blueprint in Carla and have encountered an issue related to delayed acceleration. Despite setting the throttle to its maximum value of 1 (full), there is a noticeable delay of approximately 2 seconds before the car starts accelerating.
Steps to Reproduce:

Launch Carla with the Tesla Model 3 blueprint.
Set the throttle input to its maximum value of 1 (full).
Observe the car's behavior and note the delay before acceleration kicks in.

Expected Behavior:
The Tesla Model 3 blueprint should initiate acceleration promptly upon receiving a throttle input of 1 (full).
Actual Behavior:
The car experiences a delay of approximately 2 seconds before it starts accelerating, despite the throttle being set to its maximum value.

From my experience, I noticed that the moment a vehicle spawns (I have mostly used Tesla Model 3) it's like the vehicle is stuck to the ground, and it takes some time for a vehicle to get “unstuck”. Once it does, then it's much more responsive to the acceleration. I guess it's just a nature of Carla.

@ivevasiljevic  @SailorBrandon  Hey, I'm experiencing this problem too(I'm using carla 0.9.13), I found a solution here:
https://github.com/carla-simulator/carla/issues/1640
but it did not work me, still getting half second of delay no matter what

let me know if you guys find a way to cancel that delay

Hi Guys, I actually got the same issue with most of the vehicles in the blueprint library.
First workaround I used was choosing the first gear with apply_control(). That decreased the response time, but still there was delay.
It was quiet obvious that the vehicle dynamics are not simulated correctly. So I have changed Physics substepping settings as increase # max_substeps and decrease max_substep_delta_time.
The code below shows my current settings for physics substepping and I can see that the vehicle dynamics are simulated more precisely, and the delay was gone.
settings = world.get_settings()
settings.substepping = True
settings.max_substep_delta_time = 0.001
settings.max_substeps = 100
world.apply_settings(settings)

Hope this helps :)

@CodeTornato Are you running on synchronous mode and fixed time step ?

@kaynaremre well i did not set it to synchronous mode explicitly, I'm just knowing it right know after you told me it can be run on different mode

@CodeTornato Hi, can you please explain how did you get the gradual increase in the speed? I'm also using Tesla3. But i cant control the acceleration, it accelerates with the max throttle, and decelerates with the max too.
This can help me so much, if you share.

@VidaAPI hey,in my case,I have a planning and control algorithms, so control decide how much throttle it should apply base on the desired speed.
and can you provide me with your source code so I could take a look on why it's being decelerating.
And Also By The Way,I have updated my carla to the newest version(0.9.14), because in newest version there is a new api for giving a ackermman control,so you could control speed and acceleration directly,cuz using throttle is hard to reach a given speed.

Hi, I encountered the same problem, Could you give me some advices? Thx : )


Configuration to allow overwriting files

As the title says. I believe this should be a configurable option, instead of a fixed error.

Thanks for the issue. Do you mean that when saving a file you can overwrite an existing one?

Yes, currently it says something along the lines of "file already exists" when trying to select a file that already exists to overwrite.

Ideally it should ask in a modal dialog "The file already exists. Do you want to overwrite?"

I have now implemented the modal. Do you have any suggestions for improvement?
https://github.com/fluxxcode/egui-file-dialog/assets/55352293/a1f4aa30-3e4c-44b8-8378-3f8c57002498

That looks good, thank you! I'm gonna give it a test in my application.
One suggestion that comes to mind. Maybe "Abort" sounds a little dramatic. "Cancel" might be a better word to use.

Changed and merged into develop 👍🏻


feat(cat-voices): Date & Time input widget

Description
This is a new component that uses two standard text-fields bonded together to provide a date/time selection widgets to setup the most important campaign dates.
Related Issue(s)
Resolves #1181
Description of Changes
Adding new widget with controllers to select date and time.
https://github.com/user-attachments/assets/12334d27-8db4-4f68-a58e-21ebd02eaffc
Requirements
Manual input requirements / date

[x] Text field behaviour is the same as text-fields.
[x] manual input validation follows dd/mm/yyyy
[x] During input show: Format: "dd/mm/yyyy" in red
[x] Dates cannot be saved when validation does not resolve.

Manual input requirements / time

[x] Text field behaviour is the same as text-fields.
[x] manual input validation follows 00:00 (1-00, 24h / 1-00m, 60min)
[x] During input show: Format: "00:00" in red
[x] Time cannot be saved when validation does not resolve.

Widget guided select date

[x] Pressing date icon, opens date select widget
[x] Data range is today + 1yr
[x] If user cancels out of widget, current date is set.
[ ] clear, set date to current date
[x] month <> jumps one month back/forth
[x] year dropdown shows years, current date + 1yr
[x] On 'OK' date is filled in the text-field

Widget guided select time

[x] Pressing time icon, opens time select widget
[x] Show time with increments of 30min,
[x] Show 9 timeslots + scroll
[x] On select time is filled in the text-field

Screenshots
If applicable, add screenshots to help explain your changes.
Please confirm the following checks

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

One more thing, make sure to you can jump focus from one text field to next with tab, probably exclude calendar/clock from focus or implement focus travel


Down-casted Array element failed to match the target type

Getting error on swift
    var set1: BarChartDataSet = BarChartDataSet(yVals: yVals, label: "")

while setting dataSet and its redirected to class BarChartDataSet in below function
/// calculates the maximum stacksize that occurs in the Entries array of this DataSet
private func calcStackSize(yVals: [BarChartDataEntry]!)
{
    for (var i = 0; i < yVals.count; i++)
    {
        var vals = yVals[i].values; // Error here

        if (vals != nil && vals.count > _stackSize)
        {
            _stackSize = vals.count;
        }
    }
}

So your array contains element of the wrong type...
בתאריך יום שני, 1 ביוני 2015, nhjariwala<EMAIL_ADDRESS>כתב:

Getting error on swift
var set1: BarChartDataSet = BarChartDataSet(yVals: yVals, label: "")

while setting dataSet and its redirected to class BarChartDataSet in below
function
/// calculates the maximum stacksize that occurs in the Entries array of this DataSet
private func calcStackSize(yVals: [BarChartDataEntry]!)
{
for (var i = 0; i < yVals.count; i++)
{
var vals = yVals[i].values; // Error here
    if (vals != nil && vals.count > _stackSize)
    {
        _stackSize = vals.count;
    }
}

}
—
Reply to this email directly or view it on GitHub
https://github.com/danielgindi/ios-charts/issues/121.

here is the code
let months =
[
    "19/03/2015", "18/03/2015", "17/03/2015", "16/03/2015"
]

    var xVals = Array<String>()
    xVals.append(months[0])
    xVals.append(months[1])
    xVals.append(months[2])
    xVals.append(months[3])

    var yVals = Array<ChartDataEntry>();
    yVals.append(ChartDataEntry(value: 10.0, xIndex: 0))
    yVals.append(ChartDataEntry(value: 20.0, xIndex: 1))
    yVals.append(ChartDataEntry(value: 30.0, xIndex: 2))
    yVals.append(ChartDataEntry(value: 15.0, xIndex: 3))

    var set1: BarChartDataSet = BarChartDataSet(yVals: yVals, label: "")

    var data: BarChartData = BarChartData(xVals: xVals, dataSet: set1)
    mBarChart.data = data
}

Can you please point out the error ?

בתאריך יום שני, 1 ביוני 2015, nhjariwala<EMAIL_ADDRESS>כתב:

here is the code
let months =
[
"19/03/2015", "18/03/2015", "17/03/2015", "16/03/2015"
]
var xVals = Array<String>()
xVals.append(months[0])
xVals.append(months[1])
xVals.append(months[2])
xVals.append(months[3])

var yVals = Array<ChartDataEntry>();
yVals.append(ChartDataEntry(value: 10.0, xIndex: 0))
yVals.append(ChartDataEntry(value: 20.0, xIndex: 1))
yVals.append(ChartDataEntry(value: 30.0, xIndex: 2))
yVals.append(ChartDataEntry(value: 15.0, xIndex: 3))

var set1: BarChartDataSet = BarChartDataSet(yVals: yVals, label: "")

var data: BarChartData = BarChartData(xVals: xVals, dataSet: set1)
mBarChart.data = data

}
Can you please point out the error ?
Thnx
—
Reply to this email directly or view it on GitHub
https://github.com/danielgindi/ios-charts/issues/121#issuecomment-107311218
.

I have tried several thing from Objective-C demo but not getting success So I have found the LineChart Samples on https://github.com/danielgindi/ios-charts/issues/29 So I have tried same thing on BarChart.

You should really read the code at the point where it expects a
BarChartDataEntry
בתאריך יום שני, 1 ביוני 2015, nhjariwala<EMAIL_ADDRESS>כתב:

I have tried several thing from Objective-C demo but not getting success
So I have found the LineChart Samples on #29
https://github.com/danielgindi/ios-charts/issues/29 So I have tried
same thing on BarChart.
—
Reply to this email directly or view it on GitHub
https://github.com/danielgindi/ios-charts/issues/121#issuecomment-107312906
.

Opps extremely silly mistake I haven't figured out it .. Thanks you so much for point out this .

Hi @nhjariwala, can you say what was the mistake? Thanks

Hi @sodeve19 ,
Earlier I was used the
    var yVals = Array<ChartDataEntry>();

but need to change DataEntry as per the chart in my case I used BarChart so
    var yVals = Array<BarChartDataEntry>();

and it was resolved the issue. Thanks ;)


ModelResolver: How to ref enum type with enum as schema component?

In the ModelResolver, there is this piece of code.
Given an enum property and model class
public class Test {
    public State state;
    public enum State { UP, DOWN }
}

This generates a string property with the enum values exploded out.
      "Test" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "type" : "string",
            "enum" : [ "UP", "DOWN" ]
          }
        }
      }

According to the Enums documentation, under the section Reusable Enums, it could instead be formatted like so:
      "Test" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "$ref": "#/components/schemas/State"
          }
        }
      },
      "State" : {
        "type" : "string",
        "enum" : [ "UP", "DOWN" ]
      }

How does one achieve this?

I tried the following variants:
1
public class Test {
    public State state;

    @Schema
    public enum State { UP, DOWN }
}

      "Test" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "type" : "string",
            "enum" : [ "UP", "DOWN" ]
          }
        }
      }

2
public class Test {
    public State state;

    @Schema(
        type = "string",
        implementation = String.class,
        allowableValues = ["UP", "DOWN"]
    )
    public enum State { UP, DOWN }
}

      "Test" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "type" : "string",
            "enum" : [ "UP", "DOWN" ]
          }
        }
      }

3
public class Test {
    public State state;

    @Schema(
        type = "string",
        implementation = String.class,
        allowableValues = ["UP", "DOWN"],
        ref = "#/components/schemas/State"
    )
    public enum State { UP, DOWN }
}

      "Test" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "$ref" : "#/components/schemas/State"
          }
        }
      },
      "State" : {
        "$ref" : "#/components/schemas/State"
      }

4
public class Test {
    @Schema(ref = "#/components/schemas/State")
    public State state;

    @Schema(
        type = "string",
        implementation = String.class,
        allowableValues = ["UP", "DOWN"]
    )
    public enum State { UP, DOWN }
}

      "Test" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "type" : "string"
          }
        }
      }

5
public class Test {
    @Schema(ref = "#/components/schemas/State")
    public State state;

    @Schema(
        type = "string",
        allowableValues = ["UP", "DOWN"]
    )
    public enum State { UP, DOWN }
}

      "Test" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "type" : "string",
            "enum" : [ "UP", "DOWN" ]
          }
        }
      }

6
public class Test {
    @Schema(ref = "#/components/schemas/State")
    public State state;

    @Schema(
        implementation = String.class,
        allowableValues = ["UP", "DOWN"]
    )
    public enum State { UP, DOWN }
}

      "Test" : {
        "type" : "object",
        "properties" : {
          "state" : {
            "type" : "string"
          }
        }
      }

I just ran into the same problem. This is especially bad for classes that expose access rights, e.g. read / readwrite. Then you get X repetitions of the same enum, which is rather cumbersome to use.

@frantuma Is there any progress in this feature? 😊

I was taking a look through the open PRs, I think #2996 handles this (original issue reported with #2994).
Changes are performed on the following lines:
https://github.com/swagger-api/swagger-core/pull/2996/files#diff-d4e9202b05579faab0e8109441f491cfR243
https://github.com/swagger-api/swagger-core/pull/2996/files#diff-098e4372496f1a4de0a865a99aafdad8R75

Thanks for reporting and analyzing, and for the PR; this is fixed in #3352 which includes and replaces #3294

public class Test {
    public State state;

    @Schema(enumAsRef=true)
    public enum State { UP, DOWN }
}


MenuEnterySwapper Dark Mage

closes #2806
closes #3464
#5900 accident repair

I thought they are organized by alphabet now?

I have to submit a fresh one since I've deleted that repository. Or is there an another way?

I'm not sure there's an easier way if you've deleted your fork.

Closing this PR and opening a new one.


 It takes 330ms to process a frame of 640 * 480 * 1 image. I use imx8 development board with 4 processors<EMAIL_ADDRESS>And 2<EMAIL_ADDRESS>。 Is there any acceleration scheme available? I compiled the desktop version of face mesh in example

I too, need to compile the GPU version of the function on ARM-based on C++. What should I do?

Hi @wuheng0711 ,
Did you get a chance to check this official document face mesh.

I too, need to compile the GPU version of the function on ARM-based on C++. What should I do?

You can try to use docker to compile the version on arm, which will improve the speed a lot. In addition, calling the lightweight model will also improve the speed.


Add ability to hide Date and show only Time field in PropertyFieldDateTimePicker

Category

[x] Enhancement
[ ] Bug
[ ] Question

Version: [1.16.0]
It would be great if we can have Time only field for PropertyFieldDateTimePicker control and add Time enum in DateConvention.
Cheers,
Hasan.

Hi @AJIXuMuK
I can take this up!

Hi @AJIXuMuK,
I have submitted PR https://github.com/SharePoint/sp-dev-fx-property-controls/pull/244 for this. Please review and let me know for any changes needed.
Thank you!

Hi @hasannaqvi83!
This has been implemented (thanks @nanddeepn) and will be available in the next release.
In a meanwhile you can test the functionality in beta version


What is the state of the ecosystem for proof engineering?

Describe the feature you'd like
A unified workflow for proving properties about contracts and dapps.
Suppose I'm a proof engineer tasked with formally verifying dozens of formulae about a cardano dapp and it's underlying contract. How do I reason about:

selecting a proof assistant
ingesting plutus and haskell code that my team has written as terms in that proof assistant
if the project is at a different stage, maybe translating the spec into such a proof assistant, (as a bonus, in such away that the proof assistant -represented spec can be leveraged by the implementation engineers).
other considerations that might be at play designing specs to prove the onchain and offchain code's adherence to, such as common failure modes or blindspots.

Is there some major hyperlink I haven't found that explains this?
Describe alternatives you've considered
Here are some options.
Proof assistants

Agda 2 to leverage the plutus-metatheory labor? What are the gains here? here is a 2005 citation on translating haskell expressions into agda 2.
hs-to-coq offers an axiomatize feature, which might make it possible to work with a critical subset of plutus in the event that coqization of all of plutus is intractable, which it should be because plutus is turing complete and hs-to-coq is restricted to total haskell.
Revive/update K's plutus core semantics, which is currently listed as "archived"
Right now, I can only imagine nomos being useful validating specs, I don't yet see how we would use it to validate running code. Here's a good citation regarding the overall session types / plutus interaction
I'm vaguely aware of some production code verification done in isabelle, so I briefly duckduckwent to a paper called Translating haskell to isabelle

Did I miss any candidates?
pipelines/workflows
Something inspired by the hs-to-coq tutorial would look like

perhaps using git-submodules, place dapp and contract code in src-haskell/
codegen from haskell to a proof assistant and dump it in src-myproofassistant/
write your formulae, specs, and their proofs in a theories/ subdir

nix code ought to be leveraged to make this look like

contents of src-haskell is input to the .nix file, perhaps read directly from a github commit.
contents of src-myproofassistant perhaps read-only to the user, write access is restricted only to the codegen tool
i.e. the step from having a contract or dapp I want to prove stuff about to working in my theories/ subdir should be nix-build with some arguments, modulo the near certainty of the codegen tool not working on the whole codebase on the first try.
Some debugging capabilities for when the codegen tool's behavior isn't exactly what you want at first.

What sort of pipeline or workflow would other proof engineers like to have?

Thanks for the questions and links!
Unfortunately there is no any major hyperlink that may help at this point. I want to recommend to post this to https://cardano.stackexchange.com/ or somewhere else to get more attention and discussion, so it won't get lost here among other issues. And because it's more about the community and collaboration of users rather than the developers yet.
I'm closing this as there is no technical issue on plutus side to resolve.

I think this question provided the conversation starter I'd be looking for, but it's been largely ignored. I'll try /r/CardanoDevelopers. Thanks!


Documentation for /plug-ins/sorting/numeric-comma

On this page:
replace

Sort numbers correctly which use a common as the decimal place.

with

Sort numbers correctly which use a comma as the decimal place.

Thank you. Fixed here.


Module concatenation bug in destructuring assignment with default value

Bug report

What is the current behavior?
When using destructuring assignment in a module, in combination with a default assignment, it can cause the property looked up in the generated code to be different than the one in the source code (it uses newName) if there's a identifier collision.
// index.js
import modA from "./module-a";
import modB from "./config";

const { testProp = "defaultValue" } = modB;

modA();
console.log(testProp);

// module-a.js

// In the real code, `stats` is read from another Webpack build
// for the client bundle, generated by `@loadable/webpack-plugin`
const stats = { testProp: 'valueFromSomeFile' };

const { testProp } = stats;

export default function printModuleAProp() {
  console.log(testProp);
}

// config.js
export default {
  testProp: "configuredValue",
};

Generated code:

/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
var __webpack_exports__ = {};

;// CONCATENATED MODULE: ./src/module-a.js
// In the real code, `stats` is read from another Webpack build
// for the client bundle, generated by `@loadable/webpack-plugin`
const stats = { testProp: 'valueFromSomeFile' };

const { testProp } = stats;

function printModuleAProp() {
  console.log(testProp);
}

;// CONCATENATED MODULE: ./src/config.js
/* harmony default export */ const config = ({
	testProp: "configuredValue",
});

;// CONCATENATED MODULE: ./src/index.js

const { src_testProp = "defaultValue" } = config;

printModuleAProp();
console.log(src_testProp);

/******/ })()
;

The incorrect part is this line:
const { src_testProp = "defaultValue" } = config;

If the current behavior is a bug, please provide the steps to reproduce.
https://github.com/PAkerstrand/webpack-concatenation-bug

What is the expected behavior?
The generated line should be along the lines of
const { testProp: src_testProp = "defaultValue" } = config;

We think we've narrowed down the bug to this part in lib/optimize/ConcatenatedModule.js:
for (const identifier of allIdentifiers) {
	const r = identifier.range;
	const path = getPathInAst(info.ast, identifier);
	if (
		path &&
		path.length > 1 &&
		path[1].type === "Property" &&
		path[1].shorthand
	) {
		source.insert(r[1], `: ${newName}`);
	} else {
		source.replace(r[0], r[1] - 1, newName);
	}
}

For the code in our example, the path taken is the else-branch, which replaces the name with a new
one, rather than aliasing the variable name

Other relevant information:
webpack version:  ^5.22.0
Node.js version: v14.15.4
Operating System:
ProductName:	Mac OS X
ProductVersion:	10.15.7
BuildVersion:	19H114

Additional tools: –

Thanks

Send a PR.
The AST is a bit different in this case because of the default value. There is a AssignmentPattern in between that need to be handled.

Yeah, I saw that... I’ll try to create a PR


Missing space between "else" and "if".

Description
I use emscripten and binaryen to produce a js file that includes an interpreter for WebAssembly for testing WebAssembly code in node.js. When beautifying the generated JavaScript file with js-beautify, an else if construct in the code is rendered as elseif in the output.
Using js-beautify version 1.6.8.
Input
The code looked like this before beautification:
function f(a) {c: do if (x) {} else if (y) {} while(0); return 0;}

Expected Output
The code should have looked like this after beautification:
function f(a) {
    c: do
        if (x) {}
        else if (y) {}
    while (0);
    return 0;
}

Actual Output
The  code actually looked like this after beautification:
function f(a) {
    c: do
        if (x) {} elseif (y) {}
    while (0);
    return 0;
}

Steps to Reproduce
Environment
OS: Ubuntu 16.04
Settings
Default settings

A couple problems:

I don't the same output using the website.

function f(a) {
    c: do
            if(x) {}
        else
        if(y) {}while(0);
    return 0;
}

Is this valid javascript? That c: looks out of place.

When copying my code from above to http://jsbeautifier.org/, I actually see the incorrect output, not the one you posted. What could be different?

The c: is a label, used for jumping out of nested loops.

Label, got it.  In this case that label is never used, but okay.
I can reproduce this now, so that's good.  Thanks!
Added to the next release.

The label was used in the larger context, but I simplified the code down so it was more easily readable. Sorry about the confusion.

@marinabilles - no problem.  Thanks for the simpler example.  😄


Keboola\Csv\Exception: Cannot write resource into a column

https://connection.keboola.com/admin/utils/logs?file=2019/01/29/10/2019-01-29-10-37-56-5c501ef4f2e59-exception
https://connection.keboola.com/admin/utils/logs?file=2019/01/29/10/2019-01-29-10-37-57-5c501ef513821-log

Happens again:

https://keboola.slack.com/archives/C09U3R1J4/p1551651552000100
https://keboola.slack.com/archives/C09U3R1J4/p1551653346000200
https://keboola.slack.com/archives/C09U3R1J4/p1551682510001100

https://keboola.slack.com/archives/C09U3R1J4/p1554855965020500

Again, it is really strange issue.
https://keboola.slack.com/archives/C09U3R1J4/p1555971642020900
thrown here https://github.com/keboola/php-csv/blob/eb77f51e22d3e13a8e14a5d5a0b588cf9e8c56c5/src/CsvFile.php#L355


View Item comment count from new search page

#1306
Checklist

[x] the [contributor license agreement][] is signed
[x] commit message follows [commit guidelines][]
[ ] tests are included
[x] screenshots are included showing significant UI changes
[ ] documentation is changed or added

Description of change
Show the number of Comments as a link. Clicking the link will open Item Summary page with #comments-list anchor.
The link is hidden if users don't have permission to view comment or the number is 0.

Screenshots from Storybook:
Show comment count:

Hide comment count:

GHA failed to install OS tools so I restarted it again.


distro/rhel/edge: add greenboot support

This is a copy of #893 and #955. Trying to figure out the changes to schutzbot.

@teg, Thanks for doing this. :+1:

fedora 31 and rhel 8.2 does not support ostree image from code. I'll add exit 0 to bypass ostree test on fedora 31 and rhel 8.2 scenarios. Does that make sense for you?
I got WARNING  KVM acceleration not available, using 'qemu' from log. It seems VM does not support nested?
I got another log error: Cannot run interactive console without a controlling TTY. That means I have to add --noautoconsole and --wait=-1 as args of virt-install. That'll miss all installation and boot logs. If something wrong, like can't boot, we have to run it again manually to find out root cause.


Adding support for Slice sorting (Asc & Desc)

Adding support to sort any slice type using sort.SliceStable.

@0syntrax0 Thank you for the contribution 💪


⚠ Processors has degraded performance

In 966888c, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 95 ms

Resolved: Processors performance has improved in e254e97.


strongtyping reimplementation

Overriding StrongTyping is troublesome for users who actually using it cause a) Ruby implementation is slower than original, b) it's not compatible with original (compare expect signatures) and c) it simply does not work properly with Sequel models:
[1] pry(main)> expect(User.new, User)
TypeError: class or module required
from /usr/local/share/gems/gems/html-table-1.6.0/lib/strongtyping.rb:10:in `kind_of?'
[2] pry(main)>

In general, changing other gems it's not good practice in my opinion. Would you consider removing this override? If so, I could prepare PR for this.

Hm, I should probably both fix it to be compatible and namespace it properly to avoid future conflicts. If you have a PR, I'll certain take a look.

No, I haven't PR (I just downgraded to prev version), so feel free to do this ;)

@mistoo How's it look? https://github.com/djberg96/html-table/pull/5

Merged and released in 1.6.1. Thanks for the report!

Great, thank you!


Run Codeceptjs in TeamCity

Hello,
I'm noob in CI. Somebody can help me setup codeceptjs run with TeamCity?

@filosoff88 Seems that the best way is to ask help from your system administrators. You have to solve these questions:

Where will be you browsers: on agents or in Docker
Launch flow. You have to download your repo with tests, run npm to install dependencies and run tests.

There is a lot of information about TeamCity setup and configuration, so try to find information in Google.


Nothing happens on Android 7

Hi,
I'm almost sure I read something about my issue before, but here it is:

on React Native 0.43.3
using last react-native-image-picker version
on my Android devices (Nexus 5x, Android 7 and Nexus 7, Android 6)
I can open the "Select a Photo" modal
whether a touch Take photo... or Choose from Library, it closes the modal but triggers no callback.

ImagePicker.showImagePicker(options, (response) => {

  let responseObj = {};
  console.log(response);
  if (response.didCancel || response.error) {
      responseObj = {
        success: false,
        errorMessage: response.error,
        uri: response.uri,
        data: response.data,
        path: response.path
      };
      dispatch(receiveImageFromLibraryErr(responseObj));
  }

  else {

    responseObj = {
      success: true,
      uri: response.uri,
      data: response.data,
      path: response.path
    };
    dispatch(receiveImageFromLibrary(responseObj));
    // let source = { uri: 'data:image/jpeg;base64,' + response.data };

  }

});

Here's how I did that, it works well in iOs, not on my Android (physical) device. My console.log() returns nothing when I click on Take photo... or Choose from Library, but it returns {didCancel: true} when I choose Cancel on the modal.
Any idea on what's happening here?

For the record, I solved it using: https://github.com/react-community/react-native-image-picker/issues/373#issuecomment-257964787
I was missing:
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>

In AndroidManifest.xml

Should those two lines be added to the documentation (Android>Manual installation)?

Not working for me, same android versions, did link and manual installation and still no callback and app crashes after a few seconds.

Me to,Select the camera or library, and do not trigger the callback method,Have you solved it?
@dasm30

@LongYue9608 I Can't remember if I found a solution or ended up using another library /:

@LongYue9608 I solved it using https://docs.expo.io/versions/latest/sdk/imagepicker


Can't use ICloudBlob or CloudBlockBlob for output bindings

I'm trying to use ICloudBlob or CloudBlockBlob for blob output bindings. According to docs this should be supported.
I get the error:
Cannot bind blob to CloudBlockBlob using access Write

or
Cannot bind blob to ICloudBlob using access Write

My function is in F#, but I've tried C# as well and got the same error. Possibly related to this issue
Example C# repro:
#r "Microsoft.WindowsAzure.Storage"
using Microsoft.WindowsAzure.Storage.Blob;

public static void Run(Stream myBlob, string name, TraceWriter log, CloudBlockBlob outputBlob)
{
    log.Info($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
}

{
  "bindings": [
    {
      "name": "myBlob",
      "type": "blobTrigger",
      "direction": "in",
      "path": "samples-workitems/{name}",
      "connection": "AzureWebJobsDashboard"
    },
    {
      "type": "blob",
      "name": "outputBlob",
      "path": "outcontainer/{rand-guid}",
      "connection": "AzureWebJobsDashboard",
      "direction": "out"
    }
  ],
  "disabled": false
}

Workaround: If you set direction for the "outputBlob" binding to "inout", this should be enabled. We'll be working to make it easier to add inout via the UX to prevent these issues.

Related: https://github.com/Azure/azure-webjobs-sdk-script/issues/49
Closing this as workaround provided.

thanks. A little unintuitive, but working now.

How to achieve the same with the new Visual Studio 2017 Preview (2) API? How do I mark CloudBlockBlob parameter as inout with attributes?

@mikhailshilkov the binding attribute exposes a constructor that accepts a FileAccess value, for inout bindings, you just need to pass FileAccess.ReadWrite using that constructor.

@fabiocav Thanks. I was confused because cheat sheet mentions Read/Write as default mod for CloudBlockBlob, so I thought it wasn't enough.

I'm still getting the error..
 Microsoft.Azure.WebJobs.Host: Only the 'Read' FileAccess mode is supported for blob container bindings.

The parameter  I have is
Blob("x", FileAccess.ReadWrite)] CloudBlobContainer resizedBlob

@leolorenzoluis maybe the container name "x" is too short and you don't have a markup for the blob name
[Blob("outputcontainer/{name}", FileAccess.ReadWrite, Connection = "AzureWebJobsStorage")]CloudBlockBlob outputBlob
worked for me


Adds new url for old future-of-art page

Changes /future-of-art to /the-future-of-art. We need this change to make /future-of-art available as a Vanity url for this article: https://www.artsy.net/article/artsy-editors-future-art

Aaand the reason we can't change the other way around is because the video has an intro card with "artsy.net/future-of-art" 🙃

Lol, I'd recommend adding a redirect, but I guess we can't cause of ^ 😅

😿


Investigate how to save configs to DB and validate

Technical Story

Description

Requirements

Blocked by

Acceptance criteria

We should also investigate the level of validation on fields such as phone numbers.


Login Error  cognito.validation.auth.failed

@amitdhongde
after execute login
if ($claim = $this->attemptLogin($collection1, 'api', 'email', 'password', true)) {
  if ($claim instanceof AwsCognitoClaim) {
	  return $claim->getData();
  } else {
	  return response()->json(['status' => 'error', 'message' => $claim], 400);
} //End if

i get this output
{
    "status": "error",
    "message": {
        "headers": {},
        "original": {
            "error": "cognito.validation.auth.failed",
            "message": "Required parameter $user follows optional parameter $challenge"
        },
        "exception": null
    }
}

@ashishimple Thank you for highlighting this. We shall review this and have it fixed asap.

@ashishimple Can you share the composer.lock? or update the library to latest version. We tried replicating the issue but everything worked well for us.

This issue stands closed as,

We are not able to reproduce the issue, and
no response from the user.

Feel free to reopen or create a new issue in case of more details.


use with worker_threads

Hi,
I found some workaround to use worker threads in ts-node, but in conjunction with ts-node-dev it will throw errors like:
error TS2695: Left side of comma operator is unused and has no side effects.\r\n'
Now the code I use is this:.
const stream = new Worker(`
    require('ts-node/register'); // <<< i guess here must be the problem
    require(require('worker_threads').workerData.path);`, {
    eval: true,
    workerData: { path:'./worker.ts' }
})

Should I be using something like ts-node-register to fix?
Update:
used
require('ts-node-dev')

and it worked. not sure if its bad practice.

This is how I've accomplished this:
  new Worker(require.resolve(`./worker`), {
    execArgv:
      process.env.NODE_ENV === 'development'
        ? ['-r', 'ts-node/register/transpile-only']
        : undefined,
  });

To run production I use typescript dist output, so that worker is available there and no need for additional args.
For dev environment I am requiring ts-node/register/transpile-only, so that nodejs knows how to import .ts file.
transpile-only is used for faster build. You can use default ts-node/register.
If you run production using ts-node, then you should set execArgv: ['-r', 'ts-node/register/transpile-only']

@yuriyyakym Thank you. 👍

@yuriyyakym thanks so much, saved me a ton of headache


Fixes #1262

Description
Fixes #1262
Fixed upload count to show correct number of pictures upload by user in beta version of app.
Instead of fetching it from sever, it is now set to number of items in ContributionListFragment's adapter.getCount(), since it equals number of pictures upload by the user.
Screenshots showing what changed
Before:

After:

Codecov Report

Merging #1265 into master will increase coverage by <.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #1265      +/-   ##
=========================================
+ Coverage    3.78%   3.78%   +<.01%
=========================================
  Files         125     125
  Lines        5866    5860       -6
  Branches      578     578
=========================================
  Hits          222     222
+ Misses       5629    5623       -6
  Partials       15      15

Impacted Files
Coverage Δ

...w/commons/contributions/ContributionsActivity.java
0% <0%> (ø)
:arrow_up:

...mmons/contributions/ContributionsListFragment.java
0% <0%> (ø)
: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 51221f6...7c32f57. Read the comment docs.

@misaochan Modified the code to only function in beta build variant. :smile:

Thanks @knight-shade it works as expected


409 add cameraconnect mqtt message

Fixes #409

added image_id to mqtt message
adjusted docs

Serial number of cameras will not be used anymore, only mac 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.JonathanVo 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.


[WIP]added compression and range column based FT for SI

Why is this PR needed?
What changes were proposed in this PR?
Does this PR introduce any user interface change?

No
Yes. (please explain the change and update document)

Is any new testcase added?

No
Yes

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/3172/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/4926/

@nihal0107 : I think all the SI related testcases you can add in your existing #4023 itself.

Added in #4023


Xbox Live - Gamertags with spaces break the component

**Home Assistant release (hass --version): 0.28.1
**Python release (python3 --version): Python 3.4.2
**Component/platform: xbox_live
Description of problem:
If the gamertag has a space in it then it will fail and stop executing the rest of the component.
Expected:
I expect that it would automatically insert an underscore or dash (hyphen) in the name so that it will continue to work with HA.
Problem-relevant configuration.yaml entries and steps to reproduce:
- platform: xbox_live
  api_key: SECRET
  xuid:
    -<PHONE_NUMBER>815138

Set up your xbox live config in the configuration.yaml
Start HA
Check the logs for the crash

Traceback (if applicable):
16-09-12 21:10:44 homeassistant.components.sensor: Error while setting up platform xbox_live
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 107, in _setup_platform
    discovery_info)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/xbox_live.py", line 42, in setup_platform
    add_devices(devices)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 198, in add_entities
    if self.component.add_entity(entity, self):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 134, in add_entity
    entity.update_ha_state()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity.py", line 196, in update_ha_state
    self.entity_id, state, attr, self.force_update)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 547, in set
    state = State(entity_id, new_state, attributes, last_changed)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 377, in __init__
    "Format should be <domain>.<object_id>").format(entity_id))
homeassistant.exceptions.InvalidEntityFormatError: Invalid entity id encountered: sensor.xbox_phc apex. Format should be <domain>.<object_id>

Additional info:

I guess that was fixed with #3318.


Simplify WORKSPACE and remove old third_party files.

What do these changes do?
This PR updates the WORKSPACE file to more closely match the TensorFlow WORKSPACE file. It also removes a lot of of legacy code from the third_party directory that was inherited from the original TensorFlow custom-op configuration but that we don't use anymore (it is mostly build configurations for GPU kernels and for dynamic linking against libtensorflow, neither of which is relevant to us). Finally, it removes the LCE core bitpacking and bgemm benchmarking utilities which are no longer used (I'm happy to add either or both of those back in if they're still considered useful).
How Has This Been Tested?
CI.
Benchmark Results
N/A.
Related issue number
N/A.

In a future PR I think we should also adopt the way TensorFlow handles their .bazelrc and check it into git. Dynamic configuration can then be managed using something like this, which would make user specific bazel configurations easier to maintain (e.g. when using different locations for the Android SDK).

We should definitely do this, I've wanted to for a while too.


Childrens count

Is there any method to count the number of node childrens ?

No; tinyxml-1 was cursed by client code like this:
for(int i=0; i<node->NumChildren(); i++) {
   XMLNode* child = node->GetChild(i);
  // etc
}

which causes a huge performance issue. Both NumChildren() and GetChild() are loops.


Permissions are the wrong case

Hiya,
When I tried this with all lowercase permissions (get list) it didn't seem to work.
I updated through the portal and noticed that the casing changed to Get List.
Adding another policy I used Get and List and that worked fine so I guess the docs might need changing to reflect that.
az keyvault set-policy --name                        [--certificate-permissions {backup, create, delete, deleteissuers, get, getissuers, import, list, listissuers, managecontacts, manageissuers, purge, recover, restore, setissuers, update}]                        [--key-permissions {backup, create, decrypt, delete, encrypt, get, import, list, purge, recover, restore, sign, unwrapKey, update, verify, wrapKey}]                        [--no-wait]                        [--object-id]                        [--resource-group]                        [--secret-permissions {backup, delete, get, list, purge, recover, restore, set}]                        [--spn]                        [--storage-permissions {backup, delete, deletesas, get, getsas, list, listsas, purge, recover, regeneratekey, restore, set, setsas, update}]                        [--subscription]                        [--upn]

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

ID: 226e5769-f6c8-a480-db78-727fb96348ec
Version Independent ID: 8ee06a2a-6eda-11be-3c8e-6ad948be207e
Content: az keyvault
Content Source: latest/docs-ref-autogen/keyvault.yml
Service: key-vault
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

hi @bim-msft could you pls help to have a look?

hi @robs which CLI version you're using? With latest 2.19.1, the lowercase permissions works fine, I cannot repo the issue
catherine@Azure:~$ az keyvault set-policy -n testmyvault21 --key-permissions get list import --object-id xxxxxxxxxxxxxxxxxxxxxxxxxxxx
{- Finished ..
  "id": "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/yungez-test1/providers/Microsoft.KeyVault/vaults/testmyvault21",
  "location": "eastus",
  "name": "testmyvault21",
  "properties": {
    "accessPolicies": [
.....

Hiya,
Hmm, I was on 2.11.1 so I guess that may have been it.
I rather stupidly upgraded before checking to see if I could repro it.
Can you see Get, List and Import as selected in the portal UI for that access policy?

yes. Portal can show the access policy based on their convention.

Thanks for looking, sorry I didn't check which version of the CLI tools I had.
I guess it's either fixed now or was something else, no idea what though.
I don't think I'll be changing our deployments to all lowercase though, just in case :)


Open Issue 7: search parameters

Should there be additional required search parameters? Should
we also require any reverse chaining (_has) options for the search?
Should we require any reverse includes (_revinclude)? These would add
complexity to the server and most will have similar options through
include and normal chaining.

it is not forbidden, and a server can advertise support in their CapabilityStatement... so what would be the use-case to mandate it in mCSD?

Combined from now closed issue 22: In ITI-90, we've added a number of required search parameters to support
queries for OrganizationAffiliation and Endpoint. Is it sustainable to require this many
search parameters? Should we move some to SHOULDs or MAYs? Note that the main use case
is locating an Organization based on its business, not network, attributes (already
covered elsewhere in mCSD), then checking its Endpoints. Further, recursively searching
parents and affiliations for Endpoints is likely an edge case, not one we need to try to do
in a single request.


Bluetooth file transfer Windows to Android

Firstly, thank you for the work you have put into this project, great job.
I am working on a C# .Net 7 Maui Blazor app that needs to transfer files from Windows and Android. Currently testing on Windows 10, Android 9, 10 and 11 using InTheHand libraries .
Android to Android works fine and transfer using Windows built in Bluetooth file transfer works fine.
Windows to Android works fine for a 30 kb but fails for an 83 kb file with "RequestedUrlTooLarge|Final"
This error appears to be thrown by ObexWebRequest.cs->AddBody.
I have included my code below.
Any help with resolving this issue would be much appreciated.
Thanks
David
private async void sendFile()
{
ObexWebResponse response = null;
try
{
var result = await FilePicker.PickAsync();
if (result != null)
{
            string strDeviceAddress = selectedDevice.DeviceAddress;

            System.Uri uri = new Uri("obex://" + strDeviceAddress + "/" + System.IO.Path.GetFileName(result.FileName));
            ObexWebRequest request = new ObexWebRequest(uri);
            request.ReadFile(result.FullPath);
            response = (ObexWebResponse)request.GetResponse();
            progressMessage = response.StatusCode.ToString() ;
            response.Close();
        }
    }
    catch (Exception ex)
    {
        progressMessage = ex.Message;
        response.Close();
    }
}

Hi Peter,
In ObexParser.cs, line 64 sets remoteMazPacket to 0 causing line 66 to set remoteMaxPacket = ushort.MaxValue; which is 65535 which causes the error.
remoteMaxPacket = (ushort)IPAddress.NetworkToHostOrder(BitConverter.ToUInt16(packet, pos + 2));
if (remoteMaxPacket == 0)
remoteMaxPacket = ushort.MaxValue;
If I set remoteMaxPacket to 0x800 here the file transfer works fine.
remoteMaxPacket = (ushort)IPAddress.NetworkToHostOrder(BitConverter.ToUInt16(packet, pos + 2));
if (remoteMaxPacket == 0)
//remoteMaxPacket = ushort.MaxValue;
remoteMaxPacket = 0x800;
I will continue to look at why line 64 is not working and let you know if I can work it out. This is new to me so I am learning as I go.
David

remoteMaxPacket = (ushort)(packet[pos + 2] << 8 + packet[pos + 3]); // works remoteMaxPacket 8192
Works for me from Windows to Android but will this break Windows to Windows which worked previously. Don't have a second Windows computer with me at present to test this.

Does it need something like:
if (BitConverter.IsLittleEndian)
{
remoteMaxPacket = (ushort)(packet[pos + 2] << 8 + packet[pos + 3]); // works remoteMaxPacket 8192
}
else
{
remoteMaxPacket = (ushort)IPAddress.NetworkToHostOrder(BitConverter.ToUInt16(packet, pos + 2));
}

Hi Peter,
So far I have tested the above changes with:
Windows 11 to Windows 11
Android 9 to Windows 11
Android 9 to Android 10
It worked fine in each of these scenarios.
Cheers,
David

Thanks for taking the time to investigate this and provide detailed feedback. This looks like a good solution to the problem. Would you like to submit a pull request?

Hi Peter,
I will get one of my colleagues to test on MAC first.
David
From: Peter Foot @.>
Sent: Saturday, June 24, 2023 9:11 PM
To: inthehand/32feet @.>
Cc: David Rodgers @.>; Author @.>
Subject: Re: [inthehand/32feet] Bluetooth file transfer Windows to Android (Issue #304)
Thanks for taking the time to investigate this and provide detailed feedback. This looks like a good solution to the problem. Would you like to submit a pull request?
—
Reply to this email directly, view it on GitHubhttps://github.com/inthehand/32feet/issues/304#issuecomment-1605397129, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AY6BX3LVCA6CN27G4HVIWH3XM3DM3ANCNFSM6AAAAAAYMRLZBQ.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>


Create a way to blow away the build environment

When I change the source repository (either edit project or through the /admin-interface) and I ask it to re-build, it doesn't do a new checkout. It rather seem to run the very same sequence of GIT commands as with every other update.

I have added this ability here: 857624c664a916d2c1cf40827a48250fd071c943
It's currently only exposed in the URLs and backend, not in the UI. I need to figure out a way to expose this, but keep it delicate so that we don't just hammer the build server pulling down new versions.


Live

Test PR

Docs Build status updates of commit d1d1143:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

test PR