Discrepancy between iOS and macOS swift plugin APIs

Steps to Reproduce

Run flutter create --template=plugin --platforms=ios,macos swiftpluginbug

Expected results:
Expected similar Swift templates and APIs for iOS and macOS respectively.
Actual results:
The iOS template consists of three files, *Plugin.h, Plugin.m and SwiftPlugin.swift.
The macOS template only has *Plugin.swift.
But more importantly the actual code for registering the plugin differs between the two platforms:
For iOS (Swift*Plugin.swift)
let channel = FlutterMethodChannel(name: "swiftpluginbug", binaryMessenger: registrar.messenger())
For macOS (*Plugin.swift)
let channel = FlutterMethodChannel(name: "swiftpluginbug", binaryMessenger: registrar.messenger)
The difference being the missing () at the end of registrar.messenger, which signifies that .messenger is a function on iOS and a property on macOS.
This issue makes it hard to share a Swift plugin between iOS and macOS.

Logs

[✓] Flutter (Channel dev, 1.22.0-12.0.pre, on Mac OS X 10.15.6 19G2021, locale en-DK)
    • Flutter version 1.22.0-12.0.pre at /Users/morten/developer/flutter
    • Framework revision a27c242b0e (12 days ago), 2020-09-11 17:46:57 -0400
    • Engine revision fee6f9e533
    • Dart version 2.10.0 (build 2.10.0-110.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/morten/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.9.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.1

[✓] Connected device (3 available)
    • macOS (desktop)  • macos      • darwin-x64     • Mac OS X 10.15.6 19G2021
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 85.0.4183.121
    ! Error: Invisible iPhone is not connected. Xcode will continue when Invisible iPhone is connected. (code -13)
    ! Error: Games Room (2) is not connected. Xcode will continue when Games Room (2) is connected. (code -13)

• No issues found!

flutter doctor -v
[✓] Flutter (Channel dev, 1.23.0-4.0.pre, on Mac OS X 10.15.6 19G2021 x86_64, locale en-GB)
    • Flutter version 1.23.0-4.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision 83dd176777 (2 days ago), 2020-09-22 12:04:44 -0700
    • Engine revision 2abe69c608
    • Dart version 2.10.0 (build 2.10.0-136.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.1

[✓] Connected device (3 available)
    • macOS (desktop)  • macos      • darwin-x64     • Mac OS X 10.15.6 19G2021 x86_64
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 85.0.4183.102

• No issues found!

flutter doctor -v
[✓] Flutter (Channel master, 1.22.0-10.0.pre.340, on Mac OS X 10.15.6 19G2021
    x86_64, locale en-GB)
    • Flutter version 1.22.0-10.0.pre.340 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision 1fef5912cf (3 hours ago), 2020-09-23 21:37:08 -0700
    • Engine revision dd35b5b659
    • Dart version 2.10.0 (build 2.10.0-156.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK
    version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google
      Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.1

[✓] Connected device (4 available)
    • iPhone 11 (mobile) • 9A8EFBFE-A806-4FF9-ACA5-F3F98D94979D • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
    • macOS (desktop)    • macos                                • darwin-x64     • Mac OS X
      10.15.6 19G2021 x86_64
    • Web Server (web)   • web-server                           • web-javascript • Flutter
      Tools
    • Chrome (web)       • chrome                               • web-javascript • Google
      Chrome 85.0.4183.102

• No issues found!

The iOS template consists of three files, *Plugin.h, Plugin.m and SwiftPlugin.swift.
The macOS template only has *Plugin.swift.

This is intentional. Flutter for iOS supports both ObjC and Swift as languages for both applications and plugins; there are complexities to using Swift plugins from ObjC applications so they are wrapped in an ObjC interface layer. Flutter for macOS, which has not been around for nearly as long, only supports Swift, so that wrapper would make no sense.

.messenger is a function on iOS and a property on macOS.

Making messenger and textures properties on the iOS registrar seems like a good idea (especially since more of that code could be directly shared over time). It wouldn't technically be a breaking change for ObjC, but it sounds like it would be for Swift.

This issue makes it hard to share a Swift plugin between iOS and macOS.

For the record, the workaround would be a one-line ifdef to switch between macOS and iOS, which isn't actually that hard. If you are trying to share the actual plugin code itself, rather than just extracting the bulk of the logic into shared code, you already need to ifdef at least the framework include due to the different framework names.

Thanks for clarifying @stuartmorgan. That answers my questions.


Updatedeps

Updated Dependencies and added $String and lowercase methods

There is still now issue using this package, Error: Module not found: Error: Can't resolve 'typescript-string-operations'.. investigating.

Maybe format isnt the best name

What do you think about the current solution @aequi42 ?
Basicallly i just added new methods to not break anythink.
there are the following new methods
formatString()
isNullOrWhiteSpace()
joinString()
emptyString

and

String.format()
String.join()
String.isNullOrWhiteSpace()
string.empty

the uppercase methods are marked deprecated

Looks good. The naming is clear and makes sense :+1:


MIC Failures during ISO streaming

Describe the bug
When starting to stream unicast audio on a audio shell test app the endpoint will get disconnected almost immediatly after reaching streaming state. The forwarded error code is 0x3d, or MIC Failure.
Looking at Ellisys traces the error is not sent from the Central, but generated inside the audio shell test app.
Changing the controller away from Zephyr solves the problem, even when running same application.
I have tried various commit between the tip of Zephyr back to commit bde663f4840f79601d10dd74a7d11ffc84e9c0a7, all fails consistently with the same issue.
Platform being used is a NRF53 Audio Dev Kit, and a Pixel 8 with Android 15 (AP31.240517.031) (although several models have been tested)
To Reproduce
On tip of Zephyr main:

Build controller and app as such:
west build -b nrf5340_audio_dk_nrf5340_cpuapp -d build/nrf5340audiodk/audio_shell tests/bluetooth/shell/ --pristine -- -DCONF_FILE=audio.conf -DOVERLAY_CONFIG=boards/nrf5340_audio_dk_nrf5340_cpuapp.conf

west build -b nrf5340_audio_dk_nrf5340_cpunet -d build/nrf5340audiodk/hci_ipc samples/bluetooth/hci_ipc --pristine -- -DCONF_FILE=nrf5340_cpunet_iso-bt_ll_sw_split.conf

Flash both controller and app.

Make sure the phone is not bonded with the target device

In shell application issue the following commands:
bt init
bt clear all
bap init
bt advertise on

On the phone
Connect to shell
Enable LE Audio
Start streaming through youtube

Notice that as soon as you enter streaming state, the endpoint will be disconnected due to reason 0x3d

Expected behavior
Streaming goes into streaming state, iso packets are received, perpetually until the stream is shut down by user.
Impact
Annoyance, and hindrance in development.
Logs and console output
Relevant log:
[00:03:16.477,478]  bt_bap_stream: bt_bap_stream_start: stream 0x2001e5a8 ep 0x2003b1fc
[00:03:17.074,707]  bt_ascs: ascs_iso_accept: conn 0x2000a948
[00:03:17.074,707]  bt_ascs: ascs_iso_accept: iso_chan 0x20043e0c
[00:03:17.216,033]  bt_ascs: ascs_ep_iso_connected: stream 0x2001e5a8 ep 0x2003b1fc dir sink
[00:03:17.216,094]  bt_ascs: ascs_ep_get_status: ep 0x2003b1fc id 0x01 state streaming
[00:03:17.216,125]  bt_ascs: ascs_ep_get_status_enable: dir sink cig 0x01 cis 0x00
[00:03:17.216,217]  bt_ascs: state_transition_work_handler: ase 0x2003b1f8 ep 0x2003b1fc id 0x01 enabling -> streaming
Stream 0x2001e5a8 started
[00:03:17.336,395]  bt_ascs: ascs_ep_iso_disconnected: stream 0x2001e5a8 ep 0x2003b1fc state streaming reason 0x3d
[00:03:17.336,456]  bt_ascs: ascs_ep_get_status: ep 0x2003b1fc id 0x01 state qos-configured
[00:03:17.336,486]  bt_ascs: ascs_ep_get_status_qos: dir sink codec id 0x06 interval 10000 framing 0x00 phy 0x02 rtn 0 latency 60 pd 10000
[00:03:17.336,578]  bt_ascs: state_transition_work_handler: ase 0x2003b1f8 ep 0x2003b1fc id 0x01 streaming -> qos-configured
Stream 0x2001e5a8 stopped with reason 0x3D
Release: stream 0x2001e5a8
Stream 0x2001e5a8 released

I am guessing the phone is using interleaved packing, and there is no support for it in Zephyr Controller.

@cvinayak, should this be a feature request instead of a bug?

@fredrikdanebjer could you please tag this as enhancement request if the failure is due to use of interleaved packing?

@cvinayak I will try to find out during the week if this actually is the case, and change accordingly then, if that's ok.

@cvinayak we are fairly certain that this issue is not due to interleaved packing. We see this issue using only a single one-way CIS, where interleaving should be irrelevant.
Actually I think that the above described steps will always produce a one-way CIS. However, it has also been tested with a shell app where the source ase has been removed, and it only exposes a single sink ase.


How to pass the Git Commit with every message

So I am here:
https://sentry.io/onboarding/channelmeter-k3/get-started/
I have this code in main():
  err := sentry.Init(sentry.ClientOptions{
    Dsn<EMAIL_ADDRESS>  })

  if err != nil {
    log.Fatalf("sentry.Init: %s", err)
  }

  defer sentry.Flush(2 * time.Second)

  sentry.CaptureMessage("It works!")

  time.Sleep(time.Second * 5)
  os.Exit(0)

my question is - how can I send the git commit for every message? I would have guessed it would have been like this:
  err := sentry.Init(sentry.ClientOptions{
    CommitId: os.GetEnv("my_git_commit_hash")
    Dsn<EMAIL_ADDRESS>  })

but that's not an option in sentry.ClientOptions :(  What's the right pattern to use? thanks

imo this is way overcomplicated:
https://docs.sentry.io/product/releases/#configure-sdk
why no just pass the repo url and commit id in the client config:
 err := sentry.Init(sentry.ClientOptions{
    CommitId: os.GetEnv("my_git_commit_hash"),
    RepoUrl:  "http://github.com/foo/bar",
    Dsn<EMAIL_ADDRESS>  })

or something like that?

https://docs.sentry.io/platforms/go/configuration/releases/
 err := sentry.Init(sentry.ClientOptions{
    Dsn<EMAIL_ADDRESS>    Release: "release-id",
  })

You can either compile that value into the binary or get it from the environment.
This value is also automatically picked up from the environment if you set the SENTRY_RELEASE environment variable.
If you prefer to compile it into the binary, this Go linker feature might come in handy: https://stackoverflow.com/a/11355611/963287


CosmosSerializer not honored in LINQ queries

It seems like LINQ queries use CosmosSerializationOptions for serialization of fields, but it does not supports ENUM to String conversion. And If i use CosmosSerilaizer then it is  not honored by LINQ queries, is there a workaround without decorating field with [JsonConverter(typeof(StringEnumconverter)] and make LINQ queries work for ENUM fields ?

@khdang Do you have any comment on this one?

This is a duplicate of https://github.com/Azure/azure-cosmos-dotnet-v3/issues/1782

@j82w  as mentioned in #1782 -  when i try to set both Serilazer and SerializerOption it throws ArgumentException -"'SerializerOptions is not compatible with Serializer. Only one can be set. "'

Please try the 3.17.0 nuget.

Sorry for closing this. I got the issues number mixed up. This could be address with a new linq serialization option.

Hi all, we've merged what we hope will be a solution to this thread by allowing the custom serializer to be used for LINQ translations. This also unblocks having System.Text.Json attributes applied in LINQ queries.
We plan to release this as part of the next preview package, but I also wanted to take this time to confirm these changes meet your needs before finalizing them as part of our public API.  If you try the changes out, please follow up in the thread if this update addresses your concerns. If it doesn't, please let us know why.
To use your own custom serializer for LINQ translations you must implement CosmosLinqSerializer and set it as a custom serializer on the CosmosClient. There is a sample of this for serialization with System.Text.Json in CosmosLinqSerializer.cs.


Update remove-pwa.md

https://github.com/vuepress/ecosystem/commit/3a6e00bd1e63ab69485ea996c603bb802d8baaa1


Using 'null' as ReadJsonOptions.inferSchemaLength produces Error

Have you tried latest version of polars?

[yes]

What version of polars are you using?
0.15.0
What operating system are you using polars on?
MacOS Sonoma Version 14.4 (23E214)
What node version are you using
node v20.17.0
Describe your bug.
Cannot use null as ReadJsonOptions.inferSchemaLength
What are the steps to reproduce the behavior?
import pl from 'nodejs-polars';
...
pl.readJSON(filePath, { format: "lines", inferSchemaLength: null });

What is the actual behavior?
Currently, setting inferSchemaLength to 'null' throws an error.
<path>/node_modules/nodejs-polars/bin/io.js:139
        return (0, dataframe_1._DataFrame)(method(pathOrBody, options));
                                           ^

Error: Failed to convert napi value Null into rust type `u32` on ReadJsonOptions.inferSchemaLength
    at Object.readJSON (<path>/node_modules/nodejs-polars/bin/io.js:139:44)

What is the expected behavior?
According to docs, it should be working with 'null'
https://github.com/pola-rs/nodejs-polars/blob/main/polars/io.ts#L287

This works of course:
pl.readJSON(filePath, { format: "lines", inferSchemaLength: 0 });
but still, the documentation is inconsistent with the behavior.

Have you tried?
import pl from 'nodejs-polars';
pl.readJSON(filePath, { format: "lines" });


how can I parse CloudFoundry Logs correctly?

I get logs like:
//////////////////////////////////////
{
  "_index": "logstash-2015.02.25",
  "_type": "syslog",
  "_id": "AUvBeTUFcI0w97WKMvxZ",
  "_score": null,
  "_source": {
    "@version": "1",
    "@timestamp": "2015-02-25T16:01:59.366+00:00",
    "host": "<IP_ADDRESS>",
    "@type": "syslog",
    "@message": "<14>2015-02-25T16:01:59.365253+00:00 <IP_ADDRESS> vcap.nats [job=nats_z1 index=0]  {\"timestamp\":1424880119.364806,\"source\":\"NatsStreamForwarder\",\"log_level\":\"info\",\"message\":\"vcap.component.announce\",\"data\":{\"nats_message\": \"{\\\"type\\\":\\\"MetronAgent\\\",\\\"index\\\":0,\\\"host\\\":\\\"<IP_ADDRESS>:53421\\\",\\\"uuid\\\":\\\"0-\\\",\\\"credentials\\\":[\\\"pYcLm2zL-c8haF3oxm5vEmGktiCVersWcOqLA-Prb-LIgpblNgjCPDhz\\\",\\\"Gd01fmiuDvOGJwyNASoGXQlBQu32cQfKnL-mC_upkAewnrjDb8go961G\\\"]}\",\"reply_inbox\":null}}",
    "tags": [
      "_grokparsefailure-syslog_standard"
    ]
  },
  "sort": [
<PHONE_NUMBER>366,
<PHONE_NUMBER>366
  ]

//////////////////////////////////////

How can I get the ingestor parse correctly the logs?
Do I have to use this config? http://scottfrederick.cfapps.io/blog/2014/02/20/cloud-foundry-and-logstash
If yes, how can I set that config with the Bosh(lite) deploy? Where I have to write it? What I have to change in the manifest?
I'm using the example deploy manifest https://github.com/logsearch/logsearch-boshrelease/blob/develop/examples
Thank you!
Michael

@tyyko - take a look at the https://github.com/logsearch/logsearch-filters-cf repo - it has as set of filters that you need to parsing CF logs

Thanks for your link, now I know how to add filters, but that cf-filters are outdated and seems to dont work anymore..
By the way, I have another related question, if I would like to have something like that on the logstash config file:
input {
file {
type => "syslog"
Wildcards work here :)
path => [ "/var/log/syslog" ]
}
tcp {
add_field => {
"cf_type" => "app"
}
port => 5000
type => syslog
}
to tag the logs into a specific port, how can I add it from the manifest?
Thank you again,
Michael

@tyyko - We've just become aware of https://github.com/cloudfoundry-community/logsearch-boshworkspace, which might help.
Concerning editing an ingestor's logstash config; we don't currently support customising that (mainly for performance reasons, as its more difficult to scale ingestors than parsers).
Could you give us an idea of your requirements; and perhaps we can find a way to do the customisations you require without needing to edit the ingestor config.
/cc @dpb587

I'm not using boshworkspace, because on my bosh-lite VirtualBoxVM, I get:
bosh prepare deployment
Unknown command: prepare deployment
Anyway, It looks like the same as following this guide http://www.cloudcredo.com/how-to-integrate-elasticsearch-logstash-and-kibana-elk-with-cloud-foundry/
My situation:
I get logs like:
{
  "_index": "logstash-2015.02.27",
  "_type": "syslog",
  "_id": "AUvKnFs3U3cCxXCSpD3T",
  "_score": null,
  "_source": {
    "@version": "1",
    "@timestamp": "2015-02-27T10:36:57.798+00:00",
    "host": "<IP_ADDRESS>",
    "@type": "syslog",
    "@message": "<14>2015-02-27T10:36:57.797676+00:00 <IP_ADDRESS> vcap.nats [job=nats_z1 index=0]  {\"timestamp\":1425033417.797424,\"source\":\"NatsStreamForwarder\",\"log_level\":\"info\",\"message\":\"router.register\",\"data\":{\"nats_message\": \"{\\\"host\\\":\\\"<IP_ADDRESS>\\\",\\\"port\\\":9022,\\\"uris\\\":[\\\"api.<IP_ADDRESS>.xip.io\\\"],\\\"tags\\\":{\\\"component\\\":\\\"CloudController\\\"},\\\"index\\\":0,\\\"private_instance_id\\\":null}\",\"reply_inbox\":null}}",
    "tags": [
      "_grokparsefailure-syslog_standard"
    ]
  },
  "sort": [
<PHONE_NUMBER>798,
<PHONE_NUMBER>798
  ]
}

If I try to use the logsearch-filters-cf, (http://pastebin.com/e5805Kcb ) they don't work.
My source host is ALWAYS <IP_ADDRESS> (the eth0 in the vagrantBox, connected to the NAT on VirtualBox) and I cant figure out how to get the correct ip address, with wireshark i managed to know:
<IP_ADDRESS>(nats cf component MAC ADD) send log to -> <IP_ADDRESS> (<IP_ADDRESS> vagrant MAC ADD)
~magic~
<IP_ADDRESS> (vagrant eth0 MAC ADD) -> <IP_ADDRESS> (ingestor MAC ADD)

I could not do anything with IP tables to edit that and maintain the original source IP
Anyway, my target is to obtain a dashboard like that https://www.youtube.com/watch?v=OV4NwFQ0BA4 with log parsed correctly
My idea was to use this configuration https://gist.github.com/prysmakou/38ec5b7fda9845b2feca from this post https://groups.google.com/a/cloudfoundry.org/forum/#!topic/vcap-dev/gqJGLtqGm-M

@tyyko 2 questions.

Which version of CF are you using?
Are you looking to parse the logs of CF; or the logs of an application running on CF?  (or both?)

D

https://github.com/cloudfoundry/bosh-lite
https://github.com/cloudfoundry/bosh-lite/blob/master/docs/deploy-cf.md
This is what I did to deploy cf, i delpoyed the latest, v200
I would like to parse both CF components and apps, and keep them well separated, like with a tag
Thank you for your help!

@tyyko Thanks.  We're quite a CF few versions behind you it seems.
I'm talking with the maintainers of https://github.com/cloudfoundry-community/logsearch-boshworkspace later today; I'll ask them how they're approaching this feed back to.

@tyyko After speaking with the https://github.com/cloudfoundry-community/logsearch-boshworkspace maintainers, it sounds like they are looking to implement exactly what you are after.
The Logsearch team will be collaborating with cloudfoundry-community/logsearch-boshworkspace to help them to achieve what you are after.
I'm going to close this issue in favour of that project.


CLOUDSTACK-10424:Potential sensitive information disclosure

Description
This PR fixing CLOUDSTACK-10424

Types of changes

[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Enhancement (improves an existing feature and functionality)
[ ] Cleanup (Code refactoring and cleanup, that may add test cases)

Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale

[x] Major
[ ] Minor

Bug Severity

[ ] BLOCKER
[ ] Critical
[x] Major
[ ] Minor
[ ] Trivial

@blueorangutan package

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2487

@blueorangutan test

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

Trillian test result (tid-3344)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 31001 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4537-t3344-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_privategw_acl.py
Smoke tests completed. 86 look OK, 0 have error(s)
Only failed tests results shown below:

Test
Result
Time (s)
Test File

I don't agree.

Hum, I give this patch for two reasons:

this log just indicate that "Unable to find a wakeup dispatcher from the joined job". I have check the code, it finds the dispatcher by jobId. so there's no need to print all detail of the job in this case, just jobID is ok, as other TRACE level log in this file,
if we enable TRACE level log for some reason, the password can be logged into files  which can then be propagated to other log systems, i.e Splunk where we can't make sure the log file are protected.

I know current change is bad for debugging, but i still think the sensitive information  is more important, and this case, password is not usefull to debug. In order to make the log be useful to debug, i will change the patch as:
s_logger.trace("Unable to find a wakeup dispatcher from the joined job:" + StringUtils.cleanString(job.toString()));
Hope for more discussion!

then trace logs are enabled, you'll even see SQL queries in the logs. Trace is supposed to show sensitive information and used for investigation/debugging when normal logs have failed and isn't enabled by default. I agree with Daan, -1.

When trace logs are enabled, you'll even see SQL queries in the logs. Trace is supposed to show sensitive information and used for investigation/debugging when normal logs have failed and isn't enabled by default. I agree with Daan, -1.

OK, but I still think we should document this to tell sysadmin that sensitive information are logged and need carefully handle.

@lujiefsi I thank you for your diligence and I can live with sanitised logs and I agree that a password is only useful when debugging the authentication. There are many things wrong with our logging and passwords being logged for the wrong reasons is one of them. If this change suits your need, i wont block it. cc @rhtyd

I still don't agree, we don't enable trace logs in production unless we're investigating something. It may be a useful property to see unmasked/unsanitised data. Instead if there's any specific VO or job or command parameter that shouldn't be logged, it should be fixed there than a general fix; for example explicit log off annoation for a command can be done like this: https://github.com/apache/cloudstack/blob/master/core/src/main/java/org/apache/cloudstack/ca/SetupKeyStoreCommand.java#L31

I still don't agree, we don't enable trace logs in production unless we're investigating something. It may be a useful property to see unmasked/unsanitised data. Instead if there's any specific VO or job or command parameter that shouldn't be logged, it should be fixed there than a general fix; for example explicit log off annoation for a command can be done like this: https://github.com/apache/cloudstack/blob/master/core/src/main/java/org/apache/cloudstack/ca/SetupKeyStoreCommand.java#L31
Let's revisit this towards 4.16.

It looks like a good solution!

Hi, the PR got auto-closed due to no known source repository or some other Github-specific issue during the recent renaming of the default branch to main. If you wish kindly submit a new PR.


There is already an ongoing transaction for this producer

I'm trying to manually commit each message I consume.
Here's my code..
import { Kafka } from 'kafkajs'

const kafka = new Kafka({
  clientId: 'my-app',
  brokers: ['system76-pc:9094']
})

const producer = kafka.producer()
const consumer = kafka.consumer({
  groupId: 'test-group',
})

const tProducer = kafka.producer({
  transactionalId: '1',
})

const run = async () => {
  // Producing
  await producer.connect()
  await tProducer.connect()

  let x: number = 0
  setInterval(
    async () => {
      // return
      console.log(`sending ${x}`)
      await producer.send({
        topic: 'test-topic',
        messages: [
          { value: Buffer.from(` ${new Date().getTime()}: Hello KafkaJS user!: ${x}`) },
        ],
      })
      console.log(`sent ${x}`)
      x += 1

    },
    100,
  )

  // Consuming
  await consumer.connect()
  console.log('consumer connected')
  await consumer.subscribe({
    topic: 'test-topic',
    fromBeginning: true,
  })
  console.log('consumer subscribed')

  await consumer.run({
    autoCommit: false,
    eachMessage: async ({ topic, partition, message }) => {
      console.log({
        date: new Date().getTime(),
        partition,
        offset: message.offset,
        value: message.value.toString(),
      })
      const transaction = await tProducer.transaction()
      await transaction
        .sendOffsets({
          consumerGroupId: 'test-group',
          topics: [{
            topic,
            partitions: [{
              partition,
              offset: message.offset,
            }]
          }]
        })
      await transaction.commit()
    },
  })
}

run()
  .catch(console.error)

This works to a point then I get the following error thrown...
{"level":"ERROR","timestamp":"2019-07-15T11:32:19.655Z","logger":"kafkajs","message":"[Consumer] Crash: KafkaJSNumberOfRetriesExceeded: There is already an ongoing transaction for this producer. Please end the transaction before beginning another.","groupId":"test-group","retryCount":1

so it seems to me that even once I have awaited for the transaction.commit() the transaction is actually still in progress and next time around this causes an error.
Is this right?  If so how can I await the transaction no longer being in progress
(I've "fixed" it by having two tProducers and rotating them which seems to give time for the previous tranasaction to complete after it'#s committed but that seems a bit naff)

Hi @gilesbradshaw, I have investigated this problem, and I can't reproduce it on the latest version. Can you try version 1.12.0-beta.0?

Hi nope I'm still getting it with 1.12.0-beta.2

however - if I create a new producer every time the problem does not occur...
import { Kafka } from 'kafkajs'

const kafka = new Kafka({
  clientId: 'my-app',
  brokers: ['system76-pc:9094']
})

const producer = kafka.producer()
const consumer = kafka.consumer({
  groupId: 'test-group',
})

const run = async () => {
  // Producing
  await producer.connect()

  let x: number = 0
  setInterval(
    async () => {
      // return
      console.log(`sending ${x}`)
      await producer.send({
        topic: 'test-topic',
        messages: [
          { value: Buffer.from(` ${new Date().getTime()}: Hello KafkaJS user!: ${x}`) },
        ],
      })
      console.log(`sent ${x}`)
      x += 1

    },
    100,
  )

  // Consuming
  await consumer.connect()
  console.log('consumer connected')
  await consumer.subscribe({
    topic: 'test-topic',
    fromBeginning: true,
  })
  console.log('consumer subscribed')

  await consumer.run({
    autoCommit: false,
    eachMessage: async ({ topic, partition, message }) => {
      console.log({
        date: new Date().getTime(),
        partition,
        offset: message.offset,
        value: message.value.toString(),
      })
     const tProducer = kafka.producer({
        transactionalId: '1',
     })
    await tProducer.connect()
      const transaction = await tProducer.transaction()
      await transaction
        .sendOffsets({
          consumerGroupId: 'test-group',
          topics: [{
            topic,
            partitions: [{
              partition,
              offset: message.offset,
            }]
          }]
        })
      await transaction.commit()
    },
  })
}

run()
  .catch(console.error)


label is not shown properly in unique value legend for vector

Closing this as it was already handled by 6703463e3ff71f982e6ef7088c3ef25b71bc5d30


How to transmit command parameters to my CMake-based project ?

Hi all,
I am pretty new to the VScode and CMkake tools.  My project is configured and generated by Cmake. Then,  the  VScode with Cmake tools integrated is employed to debug the project function. My main.cpp file has a main function like this:
int main(int argc, char** argv)  {     ...... }
So I try to add the parameters directly to the launch.json (parameters are added to the bracket after "args: " ):
{
"version": "0.2.0",
"configurations": [
{
 "name": "Launch Extension",
"type": "extensionHost",
 "request": "launch",
 "runtimeExecutable": "${execPath}",
 "args": [
 "--extensionDevelopmentPath=${workspaceRoot}",
  "build/glidar",
 "models/itokawa.ply",
 "-- scale 1",
  "--model-dr 0,0,0",
  "--model-r 0,50,30,1",
 "--camera-z 800",
 "-w 768",
 "-h 768",
  "--fov 20"
 ],
"sourceMaps": true,
"outFiles": [
"${workspaceRoot}/out/**/*.js"
 ],
"preLaunchTask": "npm"
}
]
}
But it didn't work.

Hi, @mingliangfu, I'm sorry this took so long to hear from me. I've been busy recently with the holidays and new year rolling around.
Are you using target debugging? In that case, the debug configuration goes in settings.json, as described here. Using target debugging and the Debug button provided by CMake tools will not make use of the content of launch.json.
Does this help? If not, feel free to ask any follow up questions. Thanks!

Due to lack of follow-up, I feel that I must close this issue.
Feel free to reopen to restart the discussion

Hi @vector-of-bool
I was pretty confused at first just like the OP, trying to figure out why program argument wasn't actually passed. And then I found out there is a difference between CMake Tools debug button and the built-in debug button. Because as stated in the documentation, the quick debugging button provided by CMake Tools does not pass program arguments. But can it be made to support passing arguments too?

Hello! While it's possible using settings.json, it is extremely fragile and I really don't like it. I'm looking into removing the option of using settings.json in this way in the future and deferring to the launch.json integration, which is actually easier and more powerful.
Read up here.


HTML & CSS (Home page) - Write Pseudo Code

Write pseudo code for HTML & CSS so we know roughly how the page will be laid out.
Research how to use Bulma API

Completed


clean up code from index.d.ts

export all types from 'dom-testing-library'
use getQueriesForElement to get all GetsAndQueries
remove duplicate code

Why: Prevents typings from breaking when 'dom-testing-library' is updated

Checklist:

[ ] Documentation
[ ] Tests
[x] Ready to be merged

[x] Added myself to contributors table

Thanks so much for your help! I've added you as a collaborator on the project. Please make sure that you review the other/MAINTAINING.md and CONTRIBUTING.md files (specifically the bit about the commit messages and the git hooks) and familiarize yourself with the code of conduct (we're using the contributor covenant). You might also want to watch the repo to be notified when someone files an issue/PR. Please continue to make PRs as you feel the need (you can make your branches directly on the repo rather than your fork if you want). Thanks! And welcome to the team :)

:tada: This PR is included in version 4.1.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Added pppc64le support for consul image

Description

Target

[x] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[x] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I formatted the code using mvn -Pformat,fastinstall install && mvn -Psourcecheck

Closing this PR, will raise another PR to provide ppc64le support to consul image.


isabelle: 2021-1 -> 2022

Description of changes
These are the changes necessary for Isabelle2022 that was just released
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

@SuperSandro2000 The new isabelle version was just released, I've been running the RC for the last few weeks and adjusted it now for the release. Tested it and it works just like the RC

@SuperSandro2000 I have done all changes now. I also dropped the null stuff, because one can simply do that with overrideAttrs anyways

messed up the rebase at first, but now everything builds and it works

All done

done

@SuperSandro2000 can this be merged?

@gebner maybe? It would be good to have this in 22.11

@SuperSandro2000 anything else that is left to do?


set the upstream branch

How to "set the upstream branch" ?

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

ID: 6d5ca6b5-523a-21d0-26f3-567846f7c298
Version Independent ID: c712c338-46d6-a70a-0ba1-0d1ec3cd6ac7
Content: Sync your changes to a remote Git repo - Azure Repos
Content Source: docs/repos/git/pushing.md
Product: devops
Technology: devops-code-git
GitHub Login: @apawast
Microsoft Alias: sdanie

@viktorisaev Please see Team Explorer > Settings > Repository Settings, under Remotes in Visual Studio.
A note is in the process of being added to the documentation.


No matching distribution found for mediapipe-silicon==0.8.11

When I run the command
"/Applications/Blender.app/Contents/Resources/3.5/python/bin/python3.10 -m pip install mediapipe-silicon==0.8.11 --target /Applications/Blender.app/Contents/Resources/3.5/python/lib/python3.10/site-packages", the errors that reported is as follows:
ERROR: Could not find a version that satisfies the requirement mediapipe-silicon==0.8.11 (from versions: none)
ERROR: No matching distribution found for mediapipe-silicon==0.8.11.
Is it because of my system version？
My MAC: macOS Big Sur 11.3.1, MacBook Pro (13-inch, M1, 2020), Apple M1

No, it is because there is no build for python version 3.5, which your blender installation is using.

Could it be that blender is using rosetta2? Otherwise this should be possible, but I never tried to install it into blender. I am going to try it out today.

Although I don't know the exact reason, I upgraded my macOS to version 12, and then it worked when I retried. Perhaps it's because the system update also cleared all my Python environments.

thanks for your patience~


Update CONTRIBUTING.md

🛠 Fixes issue(s)
Closes #120
👨💻 Change(s) proposed

✔ Checklist (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers

📷 Screenshots

@satyamgupta1495  I haven't had a response on this in 4 days. I'm waiting 24 hours to hear back from you, if nothing by then I'm closing the PR  and reassigning the issue

@satyamgupta1495 I'm closing this PR since I'm not getting any response.


Remove references to Google_Config

to prevent confusion

I signed it!
On 12 August 2016 at 11:24, googlebot<EMAIL_ADDRESS>wrote:

Thanks for your pull request. It looks like this may be your first
contribution to a Google open source project. Before we can look at your
pull request, you'll need to sign a Contributor License Agreement (CLA).
📝 Please visit https://cla.developers.google.com/
https://cla.developers.google.com/ to sign.
Once you've signed, please reply here (e.g. I signed it!) and we'll
verify. Thanks.

If you've already signed a CLA, it's possible we don't have your
GitHub username or you're using a different email address. Check your
existing CLA data https://cla.developers.google.com/clas and verify
that your email is set on your git commits
https://help.github.com/articles/setting-your-email-in-git/.
If you signed the CLA as a corporation, please let us know the
company's name.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/google/google-api-php-client/pull/1029#issuecomment-239401230,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAvY1cJdwSon_IiVLDqtcvynY8SWYlIuks5qfDvSgaJpZM4Ji6ky
.

good catch, thank you!


What if I wanted to arbitrarily pause execution?

Hello!
So, I'm fully prepared to have to code this one myself, I just need to know where I'd be starting!
How would I go about adding a means of pausing execution within the engine itself?
Simple implementations could even be a copy of RunContext called RunUntilContext which used the Deadline/Timeout of the passed Context as the pause trigger, where subsequent calls (of the same script/engine RunUntilContext method) would have the engine continue executing the script right from where it left off.
** renamed issue to differentiate from modifying the script itself to have pauses. I'm talking about externally pausing the engine's execution itself, not modifying the scripts to wait for a timer or call to return.

This loop iterates through every instruction so it’s where I’d start looking:
https://github.com/d5/tengo/blob/ac805806f801b985fd1a9ac1f9245a8890f2281e/vm.go#L98
I’m addition to aborting check there could also be a pause check.
Caveat: Because this is called on every instruction adding any more checks here will reduce runtime performance of tengo, so it needs to be thought through carefully.

This loop iterates through every instruction so it’s where I’d start looking:
https://github.com/d5/tengo/blob/ac805806f801b985fd1a9ac1f9245a8890f2281e/vm.go#L98
In addition to aborting check there could also be a pause check.
Caveat: Because this is called on every instruction adding any more checks here will reduce runtime performance of tengo, so it needs to be thought through carefully.

Wonderful, thank you! Adding one more atomic check shouldn't harm the execution time much for my requirement (in the scale of my requirement**) -- one last thing, do you know how this change (at or around that line of code) might change multiple scripts running in parallel (does each script get its own engine, or will making this change effect all scripts?)
** Noob question I know, just not familiar with the internal code yet :)

every script has its own state so it shouldn’t affect another script.

Almost have a concept working... will close this when I do (might have a PR too.)


External Providers And AspNet Identity

I was working through the Quick Start example for IdentityServer4  (Thank you!), and, I got to  6_aspnet_identity, and, got it working just fine.   I then tried to add the External Provider examples, Google and demo.identityserver.io, to the new IdentityServerWithAspNetIdentity project.  When I try to use either External Provider the call to _signInManager.GetExternalLoginInfoAsync() in AccountController.ExternalLoginCallback() always returns null.
I copied the code from the original IdentityServer project's AccountController.ExternalLoginCallback() to read the info and it is able to pull the information and it is working to get the login information from Google.
I've walked through the instructions on setting up the external providers from the QuickStart as well as from step 4 instructions.  I've tried changing the order of when things are registered in Startup.Configuration(), but, I just am not getting anywhere with this.
I know it's probably something I'm just not understanding, and, I am hoping someone can help me out.
The attached ZIP contains my Startup.cs, Config.cs, Program.cs, AccountController.cs and project.json.
It also contains a Word Document that I pasted screen shots from Firebug with the request/response headers from the google signon and ExternalCallback calls for both the original setup working with the InMemory IdentityServer Quick Start and the ASPNetIdentity version that is not working.
IdenityServerWithAspNetIdentity Setup.zip
Thanks for any help or advice you can give and I'm sorry If I posted this in the wrong place.
Jeff Chaney

I think you've created this issue in the wrong repository. Sounds like you want IdentityServer4.AspNetIdentity or the core repo.

Yea that's where I meant to create it.  Sorry.

Reopened in https://github.com/IdentityServer/IdentityServer4.AspNetIdentity/issues/18


Certificate signing request workflow: missing sanity checks

A RA Operator is able to modify the NotBefore/NotAfter date to useless combinations, in particular it is possible to set NotBefore > NotAfter which leads to completely useless certificates.
The problem gets worse if the NotBefore is in the future, due to a bug in the CRR workflow it is not possible to revoke these incorrect certificates.

OpenXPKI::Server::Workflow::Validator::InvalidityTime returns true if invalidity time is false or does not exist.
Maybe we should throw a validation error if the invalidity time is not defined.
`sub _validate {
my ( $self, $wf, $invalidity_time, $identifier, $flag_delayed_revoke ) = @_;

if (!$invalidity_time) {
    return 1;
}

`


feat: Add Official Account Module

I have to stop reviewing since your implementation has too many unverified parts. e.g., you created the BindAsync method but didn't implement the expected feature.
Please use unit tests to cover the application service methods and re-request my review. Anyway, thanks for creating this PR.


cannot change default host and port for es

I get the warning WARNING:elasticsearch:GET http://es:14900/ [status:N/A request:0.185s] when I use elastalert-test-rule.
It seems that I did not change the defaul host and port. But I have change them in  config.yaml and my rule yaml.
So, If any one could tell me how to correct it. Thank you very much.

I find that I should change the config in test_rule.....T T

for future ref the file is:
elastalert-master/tests/conftest.py

I also encountered the same problem, but did not find the problem piece corresponding to the change. Which specific configuration is it? I am using the latest version

You can pass the config file to use as a command line argument to Elastalert
elastalert-test-rule --config path/to/config.yaml path/to/rule.yaml


Use Aer package qiskit_aer

Summary
Following Aer 0.11.0 release, use is own package.
For MacOS python 3.10, mypy reports errors on numpy according to issue python/mypy#13627
CI pins python 3.10.6 for MacOS and will revert back once mypy releases.
Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
4290

Relevant Lines:
4692

💛  - Coveralls


Update to latest from perl

Coverage remained the same at 100.0% when pulling 2f5a79e89f2d027503e76a3648a5dfa64677b674 on Python1320:patch-1 into be13249c06f791bb1627e4158bd4d29d7bf8e209 on FourierTransformer:master.

Coverage remained the same at 100.0% when pulling 2f5a79e89f2d027503e76a3648a5dfa64677b674 on Python1320:patch-1 into be13249c06f791bb1627e4158bd4d29d7bf8e209 on FourierTransformer:master.

Coverage remained the same at 100.0% when pulling 2f5a79e89f2d027503e76a3648a5dfa64677b674 on Python1320:patch-1 into be13249c06f791bb1627e4158bd4d29d7bf8e209 on FourierTransformer:master.

Ahh, didn't even notice the perl version was updated days after the original release! Thanks for the contribution. I'll release 1.0.1 with the changes soon!


[MRG] Add to the CHANGELOG for v0.4

Housekeeping. Let me know what else I missed that we should highlight.

+1


HSR role improvements

Hi Markus,
please review and test the changes I have provided and tested on my side so far.
PKI files:
Only a secondary node will fetch (via control node /tmp) the files from the defined primary node. It also cleans up the PKI files from /tmp on the control node.
Tagging adjustments in main.yml:
A tag on an 'include_tasks' only executes that include-tasks, but the tag is not applied to the underlying included tasks themselves.

Merged updates from Janien


Update bylaws-plain-english.md

Minor changes for clarity.

Most of these changes are fine. However, the change to line 42 is problematic. The document intends to provide a plain-English version of the bylaws, not necessarily a description of what we actually do. In this case, what we do conflicts with the bylaws. I would prefer that the comment about using unsubscribe@ go in a parenthesis as a comment, rather than pose as part of the actual text.


web-codebook test page not working correctly in IE

The test page with this address: https://rawgit.com/RhoInc/web-codebook/refactor-summary-row/build/test-page/  opens in IE as expected.
The test page with this address: https://rawgit.com/RhoInc/web-codebook/refactor-summary-row/build/test-page/explorer.html  does not fully render. Only the title appears.

Going to call this a duplicate with #273


Automated PR from brain-bican/models: adding new version of pydantic model

This PR include changes to the models:library_generation

that was only for testing GA


Changes to GeoLite2 license and distribution require changes to how you download databases

The URL used to directly download GeoLite2 databases will no longer function after December 30th 2019.
Due to upcoming data privacy regulations, MaxMind are making significant changes to how users access free MaxMind GeoLite2 databases starting December 30, 2019. The databases will continue to be available without charge and for redistribution. However, you will be required to create an account and use a license key to download the databases, and agree to a new EULA that addresses applicable data privacy regulations.
Learn more on the MaxMind blog: https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/.
Mark Fowler
MaxMind

Thank you @2shortplanks, I have updated the tool - new scheme is available at version 1.1.4


Gw sprint 44

add scripts to refactor image buckets

I'm only looking mv_image_files.py, and I'm not very familiar with the S3 libraries. Given that, is the intent of line 139:
map_bucket_contents = s3_client.list_objects_v2(Bucket=map_bucket, Prefix=map_folder)['Contents']
to get a list of series? And which is then expanded in move_some_blobs() to a list of instances in the series?
If so, I'd have expected that you need something like a Delimiter='/' parameter to list_buckets_v2.
GCS, of course, has a similar function. In the GCS case, I think that if you do not specify a delimiter, you'd get all blob names that start with Prefix.
In other words, are you sure that you are distributing at series granularity to the workers?


Sprint 3 - Team 7 task ticket 3: Improve and Implement the prompt box

Description
Task: Improve and Implement the prompt box (including content display) and integrate it into the game environment
Feature:  Win/lose Condition for Selecting Traitor: Goal 3
The programmer will develop the UI based on the image of the improved win-lose prompt box and integrate it into the game. Before that, simple win-lose logic needs to be built to ensure that the prompt box interface corresponding to the user's selection is loaded in the appropriate situation.
Example

Win prompt box: After the user clicks to confirm to select a certain NPC, if he is a traitor, a win prompt box of "select correctly" will pop up, and the corresponding content will be displayed in it.
Lose prompt box: After the user clicks to confirm to select a certain NPC, if he is not a traitor, a lose prompt box of "wrong selection" will pop up, and the corresponding content will be displayed in it. The lose prompt box will pop up twice, telling the player "two/one chance left" respectively.

Additional Step (If have time)

After the user clicks the "confirm" button of the win prompt box, the image of the traitor telling how to save Atlantis will be loaded

Dependencies

Artistic design of prompt box (#133   ).
Information about basic win/lose condition relies on storyline (#64  ).
Display the game status according to game-end menu (#130  )

Milestones
Steps that need to be completed for this task:

[x] Step 1: Implement win prompt box and ready for use (Ignore logic and pop after selecting a certain npc to evict, e.g. Nereus or Zoe). (Sep. 23)
[x] Step 2: Implement lose prompt box and ready for use (Ignore logic and pop after selecting a certain npc to evict, e.g. Metis or Doris). (Sep. 24)
[x] Step 3: Create basic win/lose condition and ready for use (Better match the prompt box). (Sep. 25)

Completion Deadline: Sep. 25
Documentation

Eviction menu
Storyline
Sprint3 - Win/lose Condition: User survey (Team 7)

Member

Shaohui Wang (@Tonywangshaohui ) (shaohui wang)
Yingxin Liu (@LIU-Evelyn ) (Yingxin LIU)

Integrated prompt box with basic logic and ready for use: https://github.com/UQdeco2800/2022-ext-studio-1/commit/6f90260f35398f1b5c4abc9821eb28e7144fcbc9

The detailed process can be found in: Show corresponding game status after selecting traitor


Scrollspy unexpected behavior in v5.0.0-alpha1

Operating system and version: Windows
Browser and version: Chrome 83, Firefox 78, Microsoft New Edge 83
A [reduced test case]

        a
        b
        c

Problem: if the page scrolled to the bottom, and the page size changed (maybe maximized the window or open developer tools), causing the scrollspy not working or wrong behavior.

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen/JS Bin or Stackblitz and report back with your link, Bootstrap version, and specific browser and OS details.
This is an automated reply

Closing due to lack of response. You can comment here and we can re-open the issue.
This is an automated reply


update coredns to v1.8.0

Upgrading CoreDNS to v1.8.0
Please reference the issue this PR is fixing, or provide a description of the problem addressed.
Closes #2133
Also verify you have:

[X] Read the contributions page.
[X] Submitted the CLA form, if you are a first time contributor.

How to rerun the build?


Create non gcp secret auth

we should add a method for auth'ing with a secret json to gcp.
Maybe even auth to it if there's only one provided? Need to think about that

Correction: Add non-GCS GCP authentication. Set as default for all uses.

Correction: Add non-GCS GCP authentication. Set as default for all uses.


Various fixes (mostly broken image refs)

@Davidutro, @CPSTL
Some MIP39c2, MIP40c3, MIP41c4 subproposals had broken references. Created folders "supporting_materials" under the folders that host these subproposals, and then a subfolder for each with their supporting material, and made the references point there.
MIPs 53, 54: format fixes

Good stuff


Implement TypedReference

Very low priority. Required for ECMA-335 completeness, but not in the .NET Core profile (for now or forever).

@MichalStrehovsky I'd like to look into this. Is there any chance you can give me a starting point for this?

Thanks for volunteering!
I would defer to @jkotas whether it's worth investing into this right now though.

This is not needed for .NET Core. It would be only needed if we ever wanted to target full .NET Framework surface using the CoreRT compiler.

@AlexBHarley I have fixed up the UpForGrabs to make sure they are appropriate. Could you please take a look whether there is anything interesting? I would recommend starting with some items related to CppCodeGen because of it is easier to ramp up on it (e.g. #874 or #910 are good CppCodeGen workitems).

As per dotnet/standard#20 this will be part of the .NET Standard. Exact prioritization TBD, but reopening.

The type was recently added to CoreLib. What we'll need to do:

Move the type to the proper namespace under #if CORERT ifdef.
Update the compiler to parse ELEMENT_TYPE_TYPEDBYREF
Add a new rare flag to EEType (IsByRefLike) and set it for TypedReference
Block TypedReference from entering places where CoreCLR blocks byref-like types (e.g. Activator.CreateInstance, GetUninitializedObject, etc.)
Unblock the TypedReference tests in CoreCLR.issues.targets

Eh, I'll just do it now.


fix: using tombstones to account for rapid deletion

closes: #2314
uses pre/post calls, rather than time, to track tombstones. If you want to go this direction instead that seems fine, it will just push more up into the calling layers.

I see thx, tbh I would prefer the former one: https://github.com/operator-framework/java-operator-sdk/pull/2317


Update of build settings and its documentation

setup.py and CMakeLists.txt.conda were updated along with a documentation of how to build ALM. I hope that users can build ALM with less pain by this set of updates. The file name of CMakeLists.txt.conda and compile-with-conda-packages.rst would be changed at your convenience.
I tested this build procedure written in the documentation on macOS Mojave (clean installed) and Ubuntu 16.04.

Thanks a lot!


Mention LokiDB in readme...?

Is there any reason why LokiDB isn't mentioned in the readme? It presents itself as the official successor to LokiJS, so I wonder why I had to dig deep into old issues to randomly stumble upon it's existance. It would have been nice to know before I spent a whole day integrating LokiJS into a project..

@Viatorus hi, does LokiDB will have the same API as LokiJS ? I'm working hard on a lokijs server and client https://github.com/sloki-project/sloki

It would be nice if one compares between the two, and why you might consider switching (i.e. using prerelease TypeScript version).
What problems do it tried to solve, anyway, beyond full control over @types/lokijs?


Customize notya path

It's not able to customize the notya working directory path, (the folder where the notya saves notes as default), But it should be. 'cause we create a folder under the home directory, which isn't efficient actually, it should be customizable.
Sub features:

Configure settings command to display current config's data.
Add a view sub-command to open the settings "file" with the editor.
Add an edit sub-command to configure settings in a better way.

Resolved By: #41


Not working with WebStorm 2019.3.1, is it compatible?

The pluging is not working anymore on the latest upgrades, i tried on several ways
WebStorm 2019.3.1 Build #WS-193.5662.54, built on December 18, 2019 Runtime version: 11.0.5+10-b520.17 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.15.2 GC: ParNew, ConcurrentMarkSweep Memory: 1502M Cores: 4
this is my pc details if it helps on something...

try ctrl + space when you mark your emoji
Ex: :car and made ctrl + space ^^

try ctrl + space when you mark your emoji
Ex: :car and made ctrl + space ^^

@zechaos031 thanks a lot that did the trick!!


sensor.xxx_todays_school_end shows hours until event instead of time

The problem
If I show the sensor for today's school end in a card, it shows me how long until school end. (e.g. 7 hours)
But I would like to see at what time the school ends today. (e.g. 2:30pm) without the date.
Version of Home Assistant?
2024.9.1
What type of installation are you running?
Home Assistant Container
Version of WebUntis
v1.2.0
Last working WebUntis version
No response
Traceback/Error logs
No response
Additional information
No response

This is not an issue on my integration. You have to use a other card or a template to show the time. The normal entities card will show the Time untill. Use the entity card or get the time via a template.

type: entity
    entity: sensor.jonas_kuehn_today_school_end

type: entities
entities:
  - entity: sensor.jonas_kuehn_today_school_end

Thank you very much!!
Is it possible to show the time without the date?
As it is always today?

Thats it!!!
THANK YOU SO MUCH!!!
Also for your great work!!


Is it possible to start with one node and later on add more if needed?

I'm asking this just to make sure since the docs are not 100% clear on that.
If I run flynn-host bootstrap without running flynn-host init --init-discovery beforehand, will I be able to run this at a later time if needed?
Oh and, thanks for making this amazing software :+1:

Single node clusters can't be switched to multi-node clusters, if you want to add nodes in the future you'll need to start with a cluster of three or more nodes.

I assume that the best upgrade path would be to export the necessary apps and import them on the new cluster?

You can do that, or do a full cluster backup/restore to a multi-node cluster: https://flynn.io/docs/production#backup/restore

Sounds even better, thank you for you help :)


Add additional information (e.g. data packages or surrogates) to problems

Examples of potential data packages:

Unlabeled data,
Labeled data,
Available pre-trained surrogate models.
Available pre-trained latent variable models.


MMM-awesome-alexa error after installation

Fresh installation on RPI 3B, below error after installation, any fix, please..
0|mm  | [2020-07-26 01:41:26.915] [ERROR]
0|mm  | Whoops! There was an uncaught exception...
0|mm  | [2020-07-26 01:41:26.916] [ERROR]
0|mm  | Error: self signed certificate
0|mm  |     at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
0|mm  |     at TLSSocket.emit (events.js:200:13)
0|mm  |     at TLSSocket._finishInit (_tls_wrap.js:792:8)
0|mm  |     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12)
0|mm  |     at Socket.ondata (internal/js_stream_socket.js:64:22)
0|mm  |     at Socket.emit (events.js:200:13)
0|mm  |     at addChunk (_stream_readable.js:294:12)
0|mm  |     at readableAddChunk (_stream_readable.js:275:11)
0|mm  |     at Socket.Readable.push (_stream_readable.js:210:10)
0|mm  |     at TCP.onStreamRead (internal/stream_base_commons.js:166:17) {
0|mm  |   code: 'DEPTH_ZERO_SELF_SIGNED_CERT',
0|mm  |   source: 'socket'
0|mm  | }
0|mm  | [2020-07-26 01:41:26.919] [ERROR]  MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
0|mm  | [2020-07-26 01:41:26.925] [ERROR]
0|mm  | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
If you know how to fix the issue, make a pull request instead.

[ ] Before submitting your issue add logs from your MagicMirror by running command pm2 log MagicMirror

posted by mistake, its an error of email module


Explain generate full debug info

Can be merged when MR 26526 is merged.

@emirmx , thanks for the PR! Do you refer to an internal MR? Is it for 10.16.0?

@emirmx , thanks for the PR! Do you refer to an internal MR? Is it for 10.16.0?

Yes internal MR the implements the setting. It will probably included in 10.17.


Don't validate email

The email validator I choose originally is super, super old, apparently (hasn't been updated since 2015). I wanted to move up to a newer one to fix #7, but I've gotten an import error on the lambda side I don't get locally with the new library. Simply removing validation for now, it's low value anyway.

I'm seeing that the signature parts of the app still don't gracefully handle + in the email (they are treated like a space). So I'll have to work a bit more on this.


as="" attribute doesn't work

I made a component:
const Component = styled.div`
  ...
`

then I use it like
<Component as="a" />

in Chrome devtools I see

I expect to see

v3.4.10

Are you using v4?
On Thu, Oct 18, 2018 at 1:34 PM Joe Pea<EMAIL_ADDRESS>wrote:

I made a component:
const Component = styled.div  ...
then I use it like

in Chrome devtools I see

I was expecting:

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/styled-components/styled-components/issues/2123, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAiy1s3HRuynLC5Rn6xUe3v93OVGXwl2ks5umMmdgaJpZM4XuY81
.

Yeah it’s a new feature in v4
On Thu, Oct 18, 2018 at 1:34 PM Joe Pea<EMAIL_ADDRESS>wrote:

v3.4.10
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/styled-components/styled-components/issues/2123#issuecomment-431115657,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAiy1tcLDTbUM_FrXHb-7OyVUtfqi9A0ks5umMnQgaJpZM4XuY81
.

Ah, okay, sorry about that!

I was confused, because I'd just installed styled-components late last week, and I've been reading the docs without noticing that it updated to v4, so I didn't think within the week that the docs I was reading were for v4.


Throwing errors on PHP inside

<html>
  <body>
    <script>
      console.log(<?= json_encode('hi mom') ?>);
    </script>
  </body>
</html>

Maybe nothing can be done ... Maybe not ...

Sometimes putting php in quotes is not appropriate. For example, when there is a loop on php. Here is a screenshot of one case:

What should I do in order for the php code to not appear as error? I have SublimeLinter-jshint and SublimeLinter-php .

I also have many pieces of javascript with embedded php statements where it isn't appropriate to have quotes around the php statement. It would be a great benefit for jshint to handle embedded php, or at least just ignore it.

Has anyone found a solution to this yet?

The best solution I have found for this is surrounding your php code like this...
/* jshint ignore:start /
var jsVariable = ;
/ jshint ignore:end */
...but even this is not great because it causes the jsVariable to throw errors in jshint, so you also have to add them to jshint's predef array to ignore the errors, which is obviously not ideal.


Intense CPU usage by Poll function

First, thanks for your work, it has saved me time while integrating our application with ActiveJob
But, I've hit an issue with the lib...
Seems the Poll function that was added in the drivers by #6 is constantly looking for delayed jobs and consumes a full CPU in the async goroutine for every RedisEnqueuer that is created
Looking at how that code was made, only thing I could see would be to sleep 10ms in the Poll main for loop so that it allows the CPU to relax a bit. Obviously, main downside of this is if you enqueue a job to be done in less than 10ms or with a millisecond precision, then it might not happen when the user expects it.
I can provide a PR if the sleep option sounds valid to you

I guess I found my answer about the solution I have as its part of one of the drivers:
ee3a88e1f940f499e9e503e9a2ee467f36a016c3
Would be nice to have all drivers implement this fix, especially the godis driver as its the one used in the README example


Add typescript definition for isFileUploadSupported

This static async function was missing a type definition for typescript so I added one 😄
Before:

After:

Looks like we have some flowcheck errors?

The flow errors are unrelated -- I tested and we are having the same issues on master.

Flow errors are fixed in #395.


Ability to pass function to property defaults

Hello!
I'd wish to have a way to pass a function to default such as Date.now, so when the key is not set, Seraph fires it and set the key's value to its return value.
Thanks again,
Vinicius

Yes, if you look here, you'll see that you can set a default value within your schema.


add string types to cxxtype

Codecov Report

Merging #3 (37568a4) into main (94fe172) will decrease coverage by 8.87%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
- Coverage   70.64%   61.77%   -8.88%
==========================================
  Files           7        7
  Lines         293      225      -68
==========================================
- Hits          207      139      -68
  Misses         86       86

Impacted Files
Coverage Δ

src/CxxInterface.jl
39.58% <ø> (-24.21%)
:arrow_down:

src/interface-c.jl
53.33% <0.00%> (-6.32%)
:arrow_down:

src/interface-cxx.jl
53.33% <0.00%> (-6.32%)
:arrow_down:

src/interface-f90.jl
88.88% <0.00%> (-0.59%)
:arrow_down:

src/interface-rust.jl
88.88% <0.00%> (-0.59%)
:arrow_down:

src/interface-haskell.jl
88.88% <0.00%> (-0.59%)
:arrow_down:

src/GCs.jl
0.00% <0.00%> (ø)

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 94fe172...37568a4. Read the comment docs.

@eschnett are you open to tagging a release?

I am! Would this be a patch or a minor release?

Personally I would go with a patch release, but one can argue either way.


Fix import 'rxjs/observable' -> 'rxjs/Observable'

the import had incorrect casing

Coverage remained the same at 88.525% when pulling bfd7af16f1b530bb18386b7ab54fc4069cd99a6b on lhotari:lh-fix-import into d3d678159ddf39e0219394912445596547088023 on Lapanti:master.


Tweak probabilities for a fake match in lie mode

More chances to have 1 match, less chances to have 2 or 3 matches

preferrable match real chances to get 1, 2, or 3 matches


Update sample script to upload files and folders to fix issue

Fixed issue where item path was passed as parameter instead of item name, causing issues when uploading
Closes #5672

Thank you @joelfmrodrigues, we'll try to review it ASAP!


How to add markers to the days?

Hi on the examples there is some markers, but on the documentation i cant figured out the way to add this markers

same question here.

same here

Here

Same here

@AppliKey answeeer to this question please

same here


examples/tui-platform WIP

G'day Roc'sters,
I've been playing around with a tui platform which basically just wraps tui-rs. My goal here is not necessarily to merge this into main, although I'm happy to if this is useful and others might want to extend. I have been using this to learn more about Roc platform dev, and explore ideas for the editor.
I would appreciate any reviews or recommendations for how to improve this, as I'm pretty new to rust and Roc platform dev. I am particularly interested in feedback on how to do async rust and the event loop properly. Eventually I would like to support Action-State more fully. At the moment the loop should be pretty much instant for any events, with the ui drawn every tick (50ms). The Paragraph and Layout widgets are pretty much 95% supported, although I've only really tested it manually.
It doesn't support all of the tui widgets, but its a pretty straightforward process to add new features. My method so far has been to look at the rust docs, translate into a minimal Roc API, use roc glue to generate Rust bindings, fix glue issues manually, then wire into the host. This works really well and I've iterated through that a few times without any issues; although there are some minor things that would improve QoL for using glue... tbh I'm not sure where these issues end and my lack of Rust experience starts, so it is difficult to say which is which.
Note that I have a workaround for the Model as glue won't work if it is provided from the App. I've left any Effects for later when that is supported in glue. It would be nice to add Cmd/Subs equivalent as this unlocks more interesting applications and examples, but I'm not sure the best way to do that right now. I have made no effort to provide a nicer API other than just exposing the types. I'm interested to explore using opaque types here, and adding helper functions to see if this improves the experience.
Sample below from hello.roc

Closing to fix some things and continue working on this without triggering CI.


Ignore pagination when needed

Some customers running ryo internally would like to have a special use case where they want to receive an entire, paginated response from the backend.
Let's introduce a new header unpaginated that when set, the ryo will provide an entire blob response without pagination.

Some customers running ryo internally would like to have a special use case where they want to receive an entire, paginated response from the backend.

unpaginated, right?

Let's introduce a new header unpaginated that when set, the ryo will provide an entire blob response without pagination.

Would you mind calling it unpaged instead of unpaginated? It feels kind of cumbersome.


What's the best way to add configuration to this project?

I was hoping to add node-config as I've used it in other projects, but I'm running into errors:
https://github.com/lorenwest/node-config/issues/380
Is there a recommended library for configuration?

There errors mentioned there are all of dependencies missing. Have you tried running yarn? Are those dependencies of that package?
This does not appear to be related to slingshot.

Those are all of the dev dependencies of that package:
"devDependencies": {
    "coffee-script": ">=1.7.0",
    "cson": "^3.0.1",
    "hjson": "^1.2.0",
    "js-yaml": "^3.2.2",
    "properties": "~1.2.1",
    "toml": "^2.0.6",
    "underscore": "^1.8.3",
    "vows": ">=0.8.1",
    "x2js": "^2.0.1"
  }

I have tried running yarn but it only seems to resolve the non-dev dependencies.

And I agree that this bug isn't related to slingshot, I'm mostly curious if there's a slingshot-friendly alternative for setting up configuration.

Ah, after digging, this looks to be an ES6 issue with node-config. Once that's resolved, it'll work for me again :D

Another option might be dotenv. Hopefully that helps.


Can I implement swipe action on the items.

My items have click listeners embedded in them, so I want the cards to change on swipe instead of a click action. Is the functionality available in the current version?

It is not support for swipe actions, but you can implement it by extending InfiniteCardView and override onTouch method

I have integrated the library pretty good, it has solved 90% of my problem, the only issue I'm facing is that the swipe actions that I'm using by overriding the onTouchListener is working outside the bounds of the component and not on the card, I have put the listener on the library component.

Maybe you can try intercepting touch event on your adapter item

Yeah, I did that, it worked. Thanks!.

My current layout is currently like as shown in 1, but I want it to be like 2, can this be done.

This can be done by recalculating in AnimationTransformer, as shown in the customisation section (https://github.com/BakerJQ/Android-InfiniteCards#customisation) , you may try add setTranslationX

I want to show an automatic demo swipe every time my app launches. I'm currently using the following code:
cardStackView.bringCardToFront(1);
Error:
Attempt to invoke virtual method 'java.lang.Object java.util.LinkedList.getFirst()' on a null object reference
at com.bakerj.infinitecards.CardAnimationHelper.bringCardToFront(CardAnimationHelper.java:587)
at com.bakerj.infinitecards.InfiniteCardView.bringCardToFront(InfiniteCardView.java:159)

The list is not created yet, maybe you should do this after the view is fully attached

I'm calling this in onViewCreated()

The list is set after getting exact width and height in onMeasure

Thanks, I did it.


add a space if there is a name before a prefixed string

Hey man,
I noticed there is is problem minimizing code with prefixed strings in it (not sure if that's the right term for it, but what I mean by "prefixed" strings is strings like b"hello").
For example:
if b"hello" == a:
    pass

Will get minimized to
ifb"hello"==a:
    pass

I have my attempt at a fix so feel free to use it if you want.

This looks great - thank you! As always, your code is impeccable!


Implement Vertex AI Image Embedding MLTransform

Adds support for Vertex AI image embedding generation to the MLTransform suite along with a test.
Part of #31500

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

IIRC there's been some hand-wringing over committing images into the main repository since we do have licensing considerations.

IIRC there's been some hand-wringing over committing images into the main repository since we do have licensing considerations.

I think even to use a image that was hosted on GCS, it needs to be licensed to be used for open source. I have no strong preference anyway on keeping the image in a directory. Current impl works fine.


Issue 391

added license fi;e in every module
added 2021 copyright to every file
added @since annotations to open 3.1 fields
added @see annotations to modle files
removed commented code

included and replaced by https://github.com/swagger-api/swagger-core/pull/4153


Marker with text styling

With the new Marker things (I'm specifically looking in Android), Is it possible to add a point marker with a text style?
...

Marker marker = mapController.addMarker();
marker.setPoint(coords);
marker.setStyling("{ style: 'text', text_source: function() { return 'Test'; }, font: { size: 14px } }");

...

Currently Tangram crashes on the setStyling line, Taking out the function works but I can't think of a work around to put text in there without a function?
(On Android at least) any invalid yaml in setStyling kills the app with just which made playing with the new markers a little more tricky:
A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 31076 (id.tangramstest)
[17 13:50:05.517  3029: 3029 W/         ] debuggerd: handling request: pid=31076 uid=10224 gid=10224 tid=31076

I think the problem here is that the {} in the function definition look like YAML structures - so it can't be parsed. If you put the whole function string in quotes it may work:
marker.setStyling("{ style: 'text', text_source: \"function() { return 'Test'; }\", font: { size: 14px } }");

(you may also want to add collide: false to make sure that it isn't occluded by another label)
However, we should definitely not be crashing when invalid YAML is put in the styling string. That's a bug.

Ah, didn't think to try escaping it. That does indeed fix it for one marker...
If I add multiple markers with the same text, (aka the same function) they all appear
If I try to change the text by changing the style, none of them appear! I see the following appear in the log:
D/Tangram: ERROR styleContext.cpp:298: EvalFilterFn - function 59 not set
I assume there's some optimization going on taking out the near identical 'styles'?
private void markerTest() {
    mapController.setPosition(new LngLat(-122.422345, 37.826570)); // alcatraz
    mapController.setZoom(10);

    addLabelMarker("Cam 1", new LngLat(-122.422345, 37.826570));
    // if this line is uncommented neither marker appears
    //addLabelMarker("Cam 2", new LngLat(-122.422695, 37.826288));
}

private void addLabelMarker(String label, LngLat coords) {
    Marker marker = mapController.addMarker();
    marker.setPoint(coords);
    marker.setStyling(getTextStyle(label));
}

private String getTextStyle(String text) {
    return "{ style: 'text', text_source: \"function() { return '"+ text +"'; }\", collide: false, font: { size: 64px, fill: '#ffffff', stroke: { color: '#000000', width: 2px } } }";
}

There's no intentional 'optimization' that would have this effect, I don't know exactly what's going on there yet but I'll look more closely.

Thanks, would be good to have markers with text.
I believe the crash I'm seeing might be caused by the other issue #1078 as I still have invalid files being loaded and just trying to edit the main maps yaml style is causing odd crashes too. Reverting to 4.5 fixes these.

Just checked, a js function in any property for the marker style seems to cause this same bug, its not limited to text_source.

Thanks for the info!


Project Base Setup

Setup the project base with folders and some MD docs, as well as a monorepo style vsCode workspace to track each section.

Ready for review and merge. ::sunglasses::


Fix: Starts OAuth sign-in flow when clicked

When signIn function is used with id provider paramater it does not start the sign-in flow. The error is related with the CSRF request before sending POST to /signin endpoint.

Thanks @mgandara88 - the fix is merged - do you need a release soon? (:

It would be wonderful =)

Alrighto - it's live (: Use it as<EMAIL_ADDRESS>See: https://github.com/sidebase/nuxt-auth/releases/tag/0.0.1-beta.5 for the release
Thanks for your contribution - it has been wonderful ❤
cc @jorgevazquezS (your heart indicates interest, I assume :D)


Prune deps: six, future and mock

As I packaged gmusicapi for Debian, I noticed that there are quite a lot of dependencies. Since Python 2 support has recently been removed in the develop branch, this PR follows up by pruning three dependencies that are no longer needed in a pure Python 3 world: six, future, and mock.

@simon-weber Have you had a chance at looking at this? I'd like to follow up with a few more modernization PRs once this one has landed :-)

Sorry for the delay! I saw CI was failing and didn't get a notification about the update.
This looks good to me; thanks. I ran the full test suite locally after installing to a fresh 3.7 venv.


Update quicksilver-2 to v1.5.5

https://www.mintscan.io/quicksilver/proposals/37
https://www.mintscan.io/quicksilver/block/6926000

Yes, the hotfix was a fix to a single GRPC query that was affecting the front end. It is 100% consensus compatible.


Default to saying we are being talked to over https.

So when a reverse proxy is talking to us securely over port 443, we don't have to set WEB_REVERSE_PROXIED=true to stop secure traffic from being served over HTTP at the reverse proxy.
i.e. HTTP from client to reverse proxy, HTTPS from reverse proxy to container.
This makes for a more transparent developer experience as we didn't have to do anything special.

If talked to over HTTP with a reverse proxy in the middle, X-Forwarded-Proto will be "http" and a the $custom_scheme check will perform a 301 to https
If talked to over HTTPS with a reverse proxy in the middle, X-Forwarded-Proto will be "https", so no redirect will happen due to satisfying the $custom_scheme check and talking to port 443 vhost.
If talked to over HTTP without a reverse proxy in the middle, X-Forwarded-Proto will be empty, so $scheme will be used and will we "http", so the $custom_scheme check will perform a 301 to https.
If talked to over HTTPS without a reverse proxy in the middle, X-Forwarded-Proto will be empty, so $scheme will be used and will be "https", so no redirect will happen due to satisfying the $custom_scheme check and talking to port 443 vhost.
If X-Forwarded-Proto is spoofed to "https" without a reverse proxy in the middle when talking to HTTP, the port 80 vhost will perform a 301 to https.
If X-Forwarded-Proto is spoofed to "https" without a reverse proxy in the middle when talking to HTTPS, the port 443 host will be used so no redirect will happen (and that's okay!).
If X-Forwarded-Proto is spoofed to "http" without a reverse proxy in the middle when talking to HTTP, the $custom_scheme check will perform a 301 to https.
If X-Forwarded-Proto is spoofed to "http" without a reverse proxy in the middle when talking to HTTPS, the $custom_scheme check will perform a 301 to https.

🚀 👍

I'm not really convinced a backend should think it's being talked to via https if it doesn't get told. I'd prefer it to still think it was http

instead, it'd be acceptable to only do that if it's being talked to on the HTTPS port, not the HTTP port

I'd be talking about the case of if WEB_HTTP=true and WEB_HTTPS=true. The current settings would cause (I believe), http to think it's https

I think the only thing that is needed to do that (nothing from this PR) is in the flags file:
{{ if eq "true" (getenv "WEB_HTTPS_OFFLOADED") }}
if ($server_port = {{ getenv "WEB_HTTPS_PORT" }} ) {
   set $custom_https on;
   set $custom_schme https;
}
{{ end }}


Support default value for Byte column

This PR supports default value for Byte column.
Unit tests added.

Codecov Report

Merging #4583 into master will decrease coverage by <.01%.
The diff coverage is 80%.

@@             Coverage Diff              @@
##             master    #4583      +/-   ##
============================================
- Coverage     64.42%   64.41%   -0.01%
  Complexity       32       32
============================================
  Files          1072     1072
  Lines         55638    55706      +68
  Branches       8112     8131      +19
============================================
+ Hits          35842    35882      +40
- Misses        17142    17178      +36
+ Partials       2654     2646       -8

Impacted Files
Coverage Δ
Complexity Δ

...loader/defaultcolumn/BaseDefaultColumnHandler.java
92.05% <100%> (+0.16%)
0 <0> (ø)
:arrow_down:

...gment/index/readers/ImmutableDictionaryReader.java
90.55% <50%> (+0.07%)
0 <0> (ø)
:arrow_down:

...altime/ServerSegmentCompletionProtocolHandler.java
35.11% <0%> (-15.27%)
0% <0%> (ø)

...ore/query/scheduler/resources/ResourceManager.java
85.71% <0%> (-10.72%)
0% <0%> (ø)

...pache/pinot/core/util/SortedRangeIntersection.java
83.82% <0%> (-7.36%)
0% <0%> (ø)

...e/pinot/common/utils/FileUploadDownloadClient.java
71.68% <0%> (-6.63%)
0% <0%> (ø)

.../impl/dictionary/FloatOnHeapMutableDictionary.java
82.6% <0%> (-6.53%)
0% <0%> (ø)

...ot/common/protocols/SegmentCompletionProtocol.java
87.28% <0%> (-5.79%)
0% <0%> (ø)

...edicate/BaseDictionaryBasedPredicateEvaluator.java
60.71% <0%> (-4.68%)
0% <0%> (ø)

...mpl/dictionary/DoubleOffHeapMutableDictionary.java
66.07% <0%> (-3.58%)
0% <0%> (ø)

... and 35 more

Continue to review full report at Codecov.

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

@mayankshriv tests for both HLL and TDigest columns added.


Different class names are but Same obfuscated name

Version: v2.2.2 released
As the title:

I tried it twice so I think this is not a 1% random error case (cuz I don't know if this plugin supports making sure the class names won't overlap)
The .xjun0e class (aka .pr-[1.41dvw]) should be in <main> tag ✅:

Below, right where .side-box-line should be, there should be another obfuscated class name. But it has the same name as .pr-[1.41dvw] ⛔:

Note: .side-box-line is just a className, no direct styles were applied to it, it only gets styles through class like this [&_.side-box-line]:left-0 and this class is also not in <main> (I explain like this to avoid misunderstanding)
That causes .side-box-line, which should look like this ✅:

to look like this ⛔:

The green color is the padding-right effect:

https://github.com/soranoo/next-css-obfuscator/assets/147973044/7d2cff1c-413a-4db1-a846-38fe17b30d91
This feature doesn't seem really stable yet, although I see this as a feature that would be really great 🤩.
This is the seed I used in the video:
module.exports = {
   ...
    generatorSeed:<PHONE_NUMBER>89999,
   ...
}

A new issue was created.
https://github.com/soranoo/recoverable-random/issues/1

Perhaps for seeds with a large number of digits like I commented above, the error still occurs.

Is there a safety limit for the number of digits used in a fixed seed?

Is it true that every time you update a new version, if it's still the same seed, the obfuscated class name comes out different? I mean it's the same seed but after each update of this plugin the results will be different.

Hi @soranoo, just because I'm too lazy to create a new issue, I'm commenting on the old bug here.
I think it's very rare that this happens, but is there any way to be sure it doesn't overlap anymore?

Package version 2.2.6
I just hope this patch won't change the class name again, because it seems like you'll be editing the recovery-random package.

It is not necessary to comment on both issues.
Any issue with random generation may related to the underlay random generation algo if a new algo is introduced the rng behaviour will be changed and a new class name will be generated.
If you want to keep the old class name for some reason, you can simply modify the JSON manually.

Added ClassName Duplication Check & New Random

Sounds cool!
Have you had time to push it to npm yet, or is there still work to be done?
I still think it's a good idea that you can have it check if there is a duplicate class in conversion.json and replace it with another random string.
However, I still wonder if I'm that unlucky, in
$36^6 = 2,176,782,336$
possible cases, I have 2 overlapping classes... or is it called luck?

I found I forgot to pull it Sorry about that.
Do you mean the collision before the update?

Yes, in v2.2.6

🤔

You have to use string seed.

omg when did I remove the " from generatorSeed😂, sorry for the brainless question.

If it is no dulipcation report after 24hrs I will close this issue.
But plz feel free to comment here if it happened again.

It seems like this bug needs to wait until someone "lucky" encounters the same situation as I mentioned above to be sure it works haha

Yes, exactly. So I try my best to give response in any format to let the issue raiser know "someone" is care about it.


Implement logging style messages in the loading screen.

Dev Home version
No response
Windows build number
No response
Other software
No response
Steps to reproduce the bug
Action center text is tertiary color.
Tasks should scroll and add one at a time when the are started
Primary when they are running.
Add tasks as they start to the bottom of the list
All messages on the task side should be secondary color.
Expected result
No response
Actual result
No response
Included System Information
No response
Included Extensions Information
No response

This is not a bug, but rather an improvement feature.


Feature/custom xlsx writer

Description
Since OpenSpout XLSX writer is a little bit limited (eg. doesn't format currency cells) I've tried to use different writer. The problem was that whenever I've tried to launch my custom job with different writer it always failed because there was another XLSX job in the queue. So here is my proposition to implement customWriter() method so it will skip the original job and proceed with the rest of the queued tasks.
Visual changes

Functional changes

[X] Code style has been fixed by running the composer cs command.
[X] Changes have been tested to not break existing functionality.
[X] Documentation is up-to-date.

I recognize the issue for not (easily) being able to format cells. Wouldn't it be a better solution to include a write in Filament and add native support for formatting of cells and perhaps some simple styling (bold, italic).

The problem is that there is no perfect package. I've actually added styling to Filament exports and been working on conditional styling but dropped it since OpenSpout doesn't suit all my needs. The package I use now is SimpleXLSXGen but it does not support chunking. PHP_XLSXWriter looks promising but I think it's no longer maintained. That's why I came with solution above.

Personally, I don't think this is the right solution. The method doesn't really allow you override anything "custom", just disable the existing job. IMO, you just need to bind a new CreateXlsxFile class to the container to replace the existing one, no? Then you can implement any processing you want.
Please let me know if I am misunderstanding


bad request error

i keep getting this error when trying to send a webhook embed
Traceback (most recent call last):
  File "C:\Users\Daniel\Documents\python\hypemonitor\test.py", line 99, in <module>
    supreme_monitor.main_loop()
  File "C:\Users\Daniel\Documents\python\hypemonitor\test.py", line 86, in main_loop
    self.send_restock_discord_webhook(temp)
  File "C:\Users\Daniel\Documents\python\hypemonitor\test.py", line 60, in send_restock_discord_webhook
    webhook.send(embed=embed)
  File "C:\Users\Daniel\AppData\Local\Programs\Python\Python38\lib\site-packages\dhooks\client.py", line 275, in send
    return self._request('POST', payload, file=file)
  File "C:\Users\Daniel\AppData\Local\Programs\Python\Python38\lib\site-packages\dhooks\client.py", line 388, in _request
    resp.raise_for_status()
  File "C:\Users\Daniel\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://discord.com/api/webhooks/...

okay nvm its because of the image im trying to give it. for some reason it wont work


frontend in Go

Hello Andrew,
you said at dotGo that the JavaScript part is kind of diminishing the fun of working on sigourney and that GopherJS might be a solution to that. I took you by your word and wrote a Go version of the frontend. I applied some optimisations and the protocol is now shared between frontend and backend. There is still a lot of room for improvements, e.g. some libraries by the GopherJS community may be used to wrap the JavaScript calls in a type-safe fashion. I hope you like it!
Cheers,
Richard

I agree with moving away from the browser, we need a euro rack module programmed in Go :)

Whoa! This is awesome.

I just committed 3c2d0352804d22c3d1f9d8e90766f0b129dc1f74 announcing (very belatedly) that Sigourney is unmaintained, so I should probably close this PR now. Sorry for being so slack about this, and thanks for your interest in the project. <3


One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts

After upgrading android target sdk to 34, under OrientationModule.java file "activity.registerReceiver(receiver, new IntentFilter("onConfigurationChanged"));" line giving RECEIVER error.
It takes two days to find the cause and after commenting this line this error gone. But issue is I can't use onConfigurationChanged event receiver.
So any updates to this lib is required for target sdk to 34. Hope you will fix that so it can save some one time.
Thank you!

Hello. I has the same problem.
I found this possibly solution https://medium.com/@anaz_19473/react-native-app-crashes-on-upgrading-to-targetsdkversion-34-android-14-f8f575da6b45. Note that solution mentioned this lib on issue 429
Therefore, if this not resolve, we need to change to another lib, because this lib has the last update on 2017

Hello. I has a similar problem.
I found this possibly solution https://medium.com/@anaz_19473/react-native-app-crashes-on-upgrading-to-targetsdkversion-34-android-14-f8f575da6b45. Note that solution mentioned this lib on https://github.com/yamill/react-native-orientation/issues/429
Therefore, if this not resolve, we need to change to another lib, because this lib has the last update on 2017


Grimoire web app is showing outdated information for Settings and Bookmarks

Describe the bug
After deleting a bookmark or changing settings, the webapp does not update the view until the page is refreshed.
To Reproduce
Steps to reproduce the behavior:

Go to settings, toggle animations off.
Click on the "Back to Home" button
Go back to settings, animations are still toggled on
Refresh the page, animations are now toggled off.
Similarly after deleting a bookmark, it is still present on the view until the page is refreshed.

Expected behavior
The webapp should have the latest data. You should not have to refresh to see the up to data settings or bookmarks.
Screenshots
Before refresh:

After refresh:

Desktop (please complete the following information):

OS: Windows 11, Grimoire running on WSL
Browser Firefox
Version 120.0.1

Let me know if you need any more information

Hello @KevinXZX! Thank you for this great first issue :)
The state's management isn't functioning properly, which is the source of the issues you mentioned. I am aware (of most?) of them and will work towards fixing it.

Hi again @KevinXZX. Please check if the latest version fixes this issue for you.

just found the same problem, deleting a bookmark requires sometimes multiple delete clicks to show the green 'bookmark deleted in the lower middle" and after that requires a reload to take effect (show the bookmark as deleted)