[BUG] Address resolution failed while creating pot with flavours

Describe the bug
I can't create a pot using flavours. Creating a pot normally does work.
To Reproduce
Consider these files:

test

set-attr -A no-rc-script -V YES
set-attr -A persisten -V NO
set-rss -C 1

test-cmd

set-cmd -c "python -m http.server"

test.sh

#!/bin/sh

[ -w /etc/pkg/FreeBSD.conf ] && sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
ASSUME_ALWAYS_YES=yes pkg bootstrap
touch /etc/rc.conf
sysrc sendmail_enable="NONE"
pkg install -y python
pkg clean -y

Now running pot create -p test1 -b 14.1 -N public-bridge -t single -f test -f test-cmd will result in the following error message:
Mon Sep 23 15:59:40 UTC 2024
test.sh -> /opt/pot/jails/test1/m/tmp/test.sh
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait...
pkg: Error fetching https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/Latest/pkg.txz: Host does not resolve
Address resolution failed for https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest.
Consider changing PACKAGESITE.
sendmail_enable: NONE -> NONE
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait...
pkg: Error fetching https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/Latest/pkg.txz: Host does not resolve
Address resolution failed for https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest.
Consider changing PACKAGESITE.
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest, please wait...
pkg: Error fetching https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest/Latest/pkg.txz: Host does not resolve
Address resolution failed for https://pkg.FreeBSD.org/FreeBSD:14:amd64/latest.
Consider changing PACKAGESITE.
###>  create: flavour test failed (script)

Expected behavior
Not expecting any errors.
System configuration - if possible

/usr/local/etc/pot/pot.conf

# pot configuration file

# All datasets related to pot use the some zfs dataset as parent
# With this variable, you can choose which dataset has to be used
POT_ZFS_ROOT=sys/pot

# It is also important to know where the root dataset is mounted
POT_FS_ROOT=/opt/pot

# This is the cache used to import/export pots
POT_CACHE=/var/cache/pot

# This is where pot is going to store temporary files
POT_TMP=/tmp

# This is the group owning POT_FS_ROOT
# POT_GROUP=pot

# This is the suffix added to temporary files created using mktemp,
# X is a placeholder for a random character, see mktemp(1)
# POT_MKTEMP_SUFFIX=.XXXXXXXX

# Define the max length of the hostname inside the pot
# POT_HOSTNAME_MAX_LENGTH=64

# Internal Virtual Network configuration

# IPv4 Internal Virtual network
# POT_NETWORK=<IP_ADDRESS>/10

# Internal Virtual Network netmask
# POT_NETMASK=<IP_ADDRESS>

# The default gateway of the Internal Virtual Network
# POT_GATEWAY=<IP_ADDRESS>

# The name of the network physical interface, to be used as default gateway
POT_EXTIF=vtnet0

# The list of extra network interface, to make other network segments accessible
# POT_EXTRA_EXTIF=vlan20 vlan50
# for each extra interface, a variable is used to sepcify its network segment
# POT_NETWORK_vlan20=<IP_ADDRESS>/24
# POT_NETWORK_vlan50=<IP_ADDRESS>/24

# Do not allow bridge-based pots to forward traffic to each other
# POT_ISOLATE_VNET_POTS=true

# DNS on the Internal Virtual Network

# name of the pot running the DNS
# POT_DNS_NAME=dns

# IP of the DNS
# POT_DNS_IP=<IP_ADDRESS>

# VPN support

# name of the tunnel network interface
# POT_VPN_EXTIF=tun0
# POT_VPN_NETWORKS=<IP_ADDRESS>/24 <IP_ADDRESS>/24

System

```                        `<EMAIL_ADDRESS>  ` `.....---.......--.```   -/    -------------
  +o   .--`         /y:`      +.   OS: FreeBSD 14.1-RELEASE amd64
   yo`:.            :o      `+-    Uptime: 5 days, 21 hours, 39 mins
    y/               -/`   -o/     Packages: 128 (pkg)
   .-                  ::/sy+:.    Shell: zsh 5.9
   /                     `--  /    Terminal: /dev/pts/0
  `:                          :`   CPU: Intel Xeon (Skylake, IBRS, no TSX) (2) @ 2.294GHz
  `:                          :`   GPU: Virtio 1.0 GPU
   /                          /    Memory: 3571MiB / 3957MiB
   .-                        -.
    --                      -.
     `:`                  `:`
       .--             `--.
          .---.....----.

This is an instance running on a Hetzner VPS.
** If network related **

cat /etc/pf.conf

# Firewall
# /etc/pf.conf
# vim: set ft=pf

##########
# Macros #
##########

### PODMAN ###
# Change these to the interface(s) with the default route
v4egress_if = "vtnet0"
v6egress_if = "vtnet0"
#v4egress_if = "ix0"
#v6egress_if = "ix0"
### END PODMAN ###

## Set public interface ##
ext_if = "vtnet0"

## Set server public IP address
ext_if_ip = "<server-ip>"

## Set and drop IP ranges on public interface ##
martians = "{ <IP_ADDRESS>/8, <IP_ADDRESS>/16, <IP_ADDRESS>/12, \
	      <IP_ADDRESS>/8, <IP_ADDRESS>/16, <IP_ADDRESS>/24, \
	      <IP_ADDRESS>/8, <IP_ADDRESS>/4 }"

## Set http (80) and https (443) ports ##
webports = "{http, https}"

## enable services ##
int_tcp_services = "{domain, ntp, smtp, www, https, ftp, ssh}" # mail also goes here
int_udp_services = "{domain, ntp}"

##########
# Tables #
##########

### PODMAN ###
table <cni-nat>
### END PODMAND ###

###########
# Options #
###########

## Skip loop back interface ##
set skip on lo

## Sets the interface for which PF should gather statistics such as bytes in/out and packets passed/blocked ##
set loginterface $ext_if

######################
# Ethernet filtering #
######################

#########################
# Traffic normalization #
#########################

# Deal with attacks based on incorrect handling of packet fragments
scrub in all

############
# Queueing #
############

###############
# Translation #
###############

### PODMAN ###
nat on $v4egress_if inet from <cni-nat> to any -> ($v4egress_if)
nat on $v6egress_if inet6 from <cni-nat> to !ff00::/8 -> ($v6egress_if)

rdr-anchor "cni-rdr/*"
nat-anchor "cni-rdr/*"
### END PODMAN ###

### POT ###
nat-anchor pot-nat
rdr-anchor "pot-rdr/*"
### END POT ###

####################
# Packet Filtering #
####################

# action [direction] [log] [quick] [on interface] [af] [proto protocol]
#        [from src_addr [port src_port]] [to dst_addr [port dst_port]]
#        [flags tcp_flags] [state]

## Set default policy ##
block return in log all
block out all

# Drop all Non-Routable Addresses
block drop in quick on $ext_if from $martians to any
block drop out quick on $ext_if from any to $martians

## Blocking spoofed packets
antispoof quick for $ext_if

# Allow SSH from any IP address
pass in inet proto tcp to $ext_if port ssh

# allow tcp and udp traffic from <IP_ADDRESS>/16
pass in inet proto tcp from <IP_ADDRESS>/16 to $ext_if
pass in inet proto udp from <IP_ADDRESS>/16 to $ext_if

# Allow Ping-Pong stuff. Be a good sysadmin
pass inet proto icmp icmp-type echoreq

# All access to our Nginx/Apache/Lighttpd Webserver ports
pass proto tcp from any to $ext_if port $webports

# Allow essential outgoing traffic
pass out quick on $ext_if proto tcp to any port $int_tcp_services
pass out quick on $ext_if proto udp to any port $int_udp_services

# Podman dns
pass in on cni-podman0

potnet show -v

16:09:46 [ INFO] Insert network <IP_ADDRESS>/10
16:09:46 [ INFO] Insert broadcast <IP_ADDRESS>/10
16:09:46 [ INFO] Insert gateway <IP_ADDRESS>
16:09:46 [ INFO] Insert dns <IP_ADDRESS>
Network topology:
	network : <IP_ADDRESS>/10
	min addr: <IP_ADDRESS>
	max addr: <IP_ADDRESS>

Addresses already taken:
	<IP_ADDRESS>
	<IP_ADDRESS>	default gateway
	<IP_ADDRESS>	dns
	<IP_ADDRESS>

Debug information
PotSystemConfig {
    zfs_root: "sys/pot",
    fs_root: "/opt/pot",
    network: <IP_ADDRESS>/10,
    netmask: <IP_ADDRESS>,
    gateway: <IP_ADDRESS>,
    ext_if: "vtnet0",
    dns: Some(
        PotDnsConfig {
            pot_name: "dns",
            ip: <IP_ADDRESS>,
        },
    ),
}

Additional context
The system is running on a Hetzner VPS.

Hi,
What‘s in your jailhosts /etc/resolv.conf?
By default, pot inherits this setting from the jailhost. You can override it, see pot help create (or pot create help?).
I see that you have pot anchors in your pf.conf, but didn’t study it in detail if there might be a nat issue. So if the dns setting doesn’t solve it, place something like sleep 1000 in the flavor script and then jexec into the jail to debug nat (run something like host google.com <IP_ADDRESS> and seeing that works).

@grembo /etc/resolv.conf is:
# Generated by resolvconf
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>

The weird thing is that creating a pot without a flavour does work (for instance pot create -p test -b 14.1 -t single). When I go into the pot, I can install packages, so internet access does work.
I will see if I can debug any possible nat issues.

I went into the jail as you suggested. I looked at the pf logs and saw a block on bridge1. So I added pass in on bridge1 to pf.conf. Now it works.

Based on your description it seems like no NAT rules are placed in the anchor while creating a flavor. This could be considered both a bug or a feature - it's certainly unexpected and should be addressed IMHO. Probably would make sense to have a flag to control behavior.


Generation fixes

Results in 18.7 TriviaQA accuracy for a 1B model, compared to ~0% earlier due to the lack of attention_mask support.

thanks @jmercat!


"来園者" needs to be replaced with "ゲスト"

https://docs.microsoft.com/ja-jp/microsoftteams/teams-adoption-define-outcomes

ドキュメントの詳細
⚠ このセクションを編集しないでください。 docs.microsoft.com で必須です ➟ GitHub の問題のリンク。

ID: a3382a91-be9f-bfab-d91f-3197a6655b97
Version Independent ID: 51459c35-8bb3-1aaa-0da0-2128d29251ea
Content: Microsoft Teams の導入の結果と成功を定義する
Content Source: Teams/teams-adoption-define-outcomes.md
Service: msteams
GitHub Login: @karuanag
Microsoft Alias: karuanag

@officedocsbot assign @scanum

@hyoshioka0128 Thanks for submitting feedback. We will get this investigated.

translation: "Guests" needs to be replaced with "guest."

Strongly recommend to replace "来園者" with "ゲスト" , I can see "来園者" is used as a localized Japanese word of "guest" in English, however, it should be "ゲスト" which stands for guest user of Microsoft Teams.

OfficeGlobal

@OfficeGlobal following up on this issue? Could you please update status? Thanks

@hyoshioka0128 , @scanum string was updated and published live. The issue is fixed

@hyoshioka0128 Thank you for submitting feedback. We understand that this issue has been resolved.
Please feel free to re-open this issue if there is a specific area of the docs that we can improve or make better. Thank you.

@officedocsbot close


dart2js: initialize dispatch records on isolate startup where possible - preemptive patching

The dispatch property is currently initialized with the appropriate dispatch record on demand.
In V8 there would be fewer map transitions if it was initialized in advance for constructors available from [window].
This would also fix some problems:

Issue #13190, where installing the dispatch record would side-step a Firefox bug

Uint8ClampedList no longer inherits from Uint8List but some browsers do inplement with inheritance.  Preemptive patching would avoid the need for the ugly hack in https://chromiumcodereview.appspot.com/23464052

Fixed.  initNativeDispatchContinue () loops over known tags.


minio: 2019-01-31 -> 2019-02-26

https://github.com/minio/minio/releases/tag/RELEASE.2019-02-26T19-51-46Z
https://github.com/minio/minio/releases/tag/RELEASE.2019-02-20T22-44-29Z (security)
https://github.com/minio/minio/releases/tag/RELEASE.2019-02-14T00-21-45Z
https://github.com/minio/minio/releases/tag/RELEASE.2019-02-12T21-58-47Z (critical)
https://github.com/minio/minio/releases/tag/RELEASE.2019-02-06T21-16-36Z
Motivation for this change
Critical and security updates, see list of release notes above.
Should check at least NixOS minio test.
Things done

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

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

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

@GrahamcOfBorg test minio

Darwin failure looks unrelated.

If you merge updates that fix security issues like this please either backport them yourself or label is as security and let the security team deal with it. Only found this by chance. Backported now.

Yes, will do o7.  Will do so, thank you.
On Fri, 01 Mar 2019 16:36:28 -0800, Franz Pletz<EMAIL_ADDRESS>wrote:

If you merge updates that fix security issues like this please either backport them yourself or label is as security and let the security team deal with it. Only found this by chance. Backported now.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/NixOS/nixpkgs/pull/56475#issuecomment-468860265Non-text part: text/html


Adding message Logger

Message logger will output to text file (combine_logger.out) and print that log at the end of the run if verbosity is set > 0. A summary of the number of messages of each type is also provided.
Calling pattern for Logger is
Logger::instance().log(string, logLevel)
where logLevel = Logger::kLogLevel[Info,Debug,Error]

I wonder if its enough to add a specific reference to the text.
On Tue, Jun 13, 2017 at 1:41 PM, Giovanni Petrucciani <
<EMAIL_ADDRESS>wrote:

@gpetruc commented on this pull request.
In interface/Logger.h
https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/pull/384#discussion_r121665051
:

@@ -0,0 +1,66 @@
+// Logger taken from http://www.wiley.com/WileyCDA/WileyTitle/productCd-0470932449.html

could we get into licence issues?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/pull/384#pullrequestreview-43709018,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABhK20jIlzoy2VaKnpvzvTZ2urrSDan6ks5sDoN0gaJpZM4N4UVZ
.

Modified to include full reference for Logger.h
/*
  * Logger adapted from
  * Professional C++, 2nd Edition, Oct 2011
  * Marc Gregoire, Nicholas A. Solter, Scott J. Kleper
  * ISBN: 978-0-470-93244-5
  * http://www.wiley.com/WileyCDA/WileyTitle/productCd-0470932449.html
*/


Add Pixie UI support for script bundle env var

Problem
When installing Pixie in an air gap environment , the Pixie UI will fail to load, unless you set up the script dev environment:

Feature request
The UI should honor an env variable at build time to point somewhere else for the bundle. The UI should also provide a more useful error message when it fails to load a bundle.

Done in this commit.
Here's what changed:

Two new env vars, in script_bundles_config.yaml for each environment in k8s/cloud/*:

SCRIPT_BUNDLE_URLS: A JSON-stringified array of URL strings. Defaults to the OSS bundle.
Pixie's UI tries to load a JSON document from each URL in this array. User can override, see below.

SCRIPT_BUNDLE_DEV: A JSON-stringified boolean. Defaults to "false".
If "true", bundles are queried with a cache-busting timestamp parameter to make script development a bit easier.
The instructions as-is still work, it's only the defaults that work differently.

There's a new localStorage key, px-custom-script-bundle-paths.

If set, it replaces the value of SCRIPT_BUNDLE_URLS and forces SCRIPT_BUNDLE_DEV on.
If it isn't set, the old localStorage keys are checked like before.

If Pixie's UI fails to load a script bundle, it now shows an error view linking to these instructions.

@NickLanam I ran into the new UI error when following the self-hosted install guide using a minikube test cluster.

I was using the default yamls (I didn't change SCRIPT_BUNDLE_URLS or SCRIPT_BUNDLE_DEV), so I wasn't expecting to see this error.
It looks isDev is getting set to true in script-bundle.tsx, given that I get the SCRIPT_BUNDLES_OVERRIDDEN error. Yet, pl-script-bundles-config shows
Name:         pl-script-bundles-config
Namespace:    plc
Labels:       app=pl-cloud
Annotations:  <none>

Data
====
SCRIPT_BUNDLE_DEV:
----
false
SCRIPT_BUNDLE_URLS:
----
[ "https://storage.googleapis.com/pixie-prod-artifacts/script-bundles/bundle-oss.json" ]

BinaryData
====

Events:  <none>

Closing this because I have not been able to reproduce this bug.


Two new fields for Snapshot restore jobs options

Added new two fields for Snapshot restore jobs called oplogTs and pointInTimeUTCSeconds and its test

@gssbzn added you for a review as an FYI and check in case it's something you can use for mCLI.


lazy merge

Needed for all "normal" loading, as merge is implicit (and currently uses biggus)
Accept:

replicate existing cubelist merge
test where combining cubes have lazy data : all ; some ; or none of them
whether results have lazy data must match existing behaviour

Note: Review existing test strategies carefully FIRST + augment if it seems necessary

Previous effort at this : #2305
May be sufficient, but needs review.

Relevant code sections
(from https://github.com/SciTools/iris/issues/2302#issuecomment-273061295)
_merge
    ProtoCube.merge : NumpyArrayAdapter, ArrayStack

Dead : was part of original Dask refactor


diw at the end of a file with a new line throws an error

See title. Repro is pretty straightfoward, simply move your cursor to the last line and type diw while in normal mode.
This will result in a type error from accessing a null variable being thrown in the console rather than the line being deleted which is what's expected.
See repro below:

@nightwing btw this fixes the crash but it seems to not match the expected behavior of deleting the line on the last line. looks like in vim and neovim by default, entering diw on just any empty line is a no-op except for the very last line which deletes will delete that line. Not a huge deal but probably worth updating for feature parity's sake


AllowInput Implementation

Implementation of AllowInput for calendar

Thanks,  will that be generating a new update for the  nuget package?

No. We will release a new version by the end of the week.


Need more details on how to set the webinar configuration for On24

Hi,
The point 4 of webinar configuration above states that "If you're setting up a new configuration, or if you need to update your account credentials for an existing configuration, open the Credentials tab and set Update credentials? to Yes and then enter your sign-in credentials for the account."
I am unable to find the update credentials field.  Also I am being asked for Client Id, Access Token Key, Access Token secret.  An explanation on where and how to obtain these and set the webinar configuration will be useful in save lot of research.
Also it will be helpful if the feedback system allows to send the captured images for additional clarity.

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

ID: 9bc05677-3604-3520-96fd-9df221cb8f37
Version Independent ID: c8c1b205-7d6d-f355-eaab-f772159eaa8e
Content: Set up event administration options and webinar provider accounts (Dynamics 365 for Marketing)
Content Source: ce/marketing/events-settings.md
Service: dynamics-365-marketing
GitHub Login: @kamaybac
Microsoft Alias: kamaybac

Thank you for your feedback, Sam. We are working to clarify this topic now, and an updated version will be published soon. In the meantime, here are some answers for you:

The "Update credentials" setting only appears when you are editing an existing config record; it hides the 3 credentials fields unless you set it to "Yes". When creating a new config record, it just skips the "Update credentials?" setting and shows the 3 credentials fields right away (which is what you experienced).

The credentials that you need to finish the configuration (Client Id, Access Token Key, Access Token secret) will be provided to you when you sign up for an account with a webinar provider, such as On24 (the only supported provider as of this writing). You can't get these values (and therefore can't run webinars) without having a webinar-provider account. If you already have an account, then please contact your provider to get your credentials. For On24, see also http://apidoc.on24.com/authentication-authorization.

This topic is now updated.


[Azure Maps] - Onboarding for Search, Route, Render SDKs.

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

/azp run java - azure-maps-route - tests

/azp run prepare-pipelines

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-maps-render

Closing pr since future changes will be made from a different fork


Add IoT Hub System Properties

See #160

@gavinfish any news on when this might be merged? I'd like to incorporate the iot hub system properties in an plugin I've created: https://github.com/influxdata/telegraf/pull/6928 (the milestone is due for March 16, 2020).

Assign @jhendrixMSFT who is the owner of this repo.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: fischor sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

@fischor can you please sign the CLA?  Once that's complete I can merge and tag this.

@jhendrixMSFT signed


The program crushes when i click on any drive on my pc

Describe the bug
when i click on my c drive or any other drive the application crushes
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS Version: [e.g. Windows 10 1903 18362.175]
App version: [v0.11.0]

Additional context
Add any other context about the problem here. Does this problem occur again after restarting the app?
Log file
Please upload the log file here so that we can understand your issue better. You can access it from Settings->About->Open log location. You can also find this file by going to %localappdata%\Packages\49306atecsolution.FilesUWP_et10x9a9vyk8t\LocalState, you should see a file in this directory called debug.txt or/and debug_fulltrust.txt.

Please add Files app version and the log files to the issue description

Please add Files app version and the log files to the issue description

@AbdoLaatiba We are having a little trouble investigating this issue, please reopen this issue when you have filled out the issue template.

@AbdoLaatiba We are having a little trouble investigating this issue, please reopen this issue when you have filled out the issue template.


Aether mob spawning?

I am currently at "Don't Lick the Lead" in the Quest book and i believe there is a progression block. It seems that Aether mobs aren't spawning (except for bosses and valkyries) and as such, Aechor Plants don't spawn, which are needed to make lead. May have to reenable that unless there's another way to get Aechor Petals.

known bug already fixed for next update

coolio


Simplify documentation management and directory structure

This decouples the structure of the directories from the documentation files generation. We can go from the current
dynamiqs/utils
├── __init__.py
├── jax_utils.py
├── operators.py
├── optimal_control.py
├── quantum_utils
│   ├── __init__.py
│   ├── general.py
│   └── wigner.py
├── states.py
└── vectorization.py

to
dynamiqs/utils
├── __init__.py
├── general.py
├── jax_utils.py
├── operators.py
├── optimal_control.py
├── states.py
├── vectorization.py
└── wigner.py

This is also needed in dev-qarray (for isqarraylike that is defined in the core qarray.py file but that we want to expose in the doc in qarray utils). There is a remaining issue: in index.md it forces us to use different tables. @gautierronan any idea for a clean fix?

Right now the call to ::: dynamiqs.utils.general generates the HTML for both tables using module.html.jinja + table.html.jinja which gives:

          <colgroup>
            <col span="1" style="width: 30%;">
            <col span="1" style="width: 70%;">
          </colgroup>

          <colgroup>
            <col span="1" style="width: 30%;">
            <col span="1" style="width: 70%;">
          </colgroup>

What we can do is modify module.html.jinja such that it directly redirects to table.html.jinja and such that we only generate the table content, e.g.:

Then, we would need to write the rest of the divs directly inside index.md, e.g. something like:

          <colgroup>
            <col span="1" style="width: 30%;">
            <col span="1" style="width: 70%;">
          </colgroup>

::: dynamiqs.utils.general
    options:
        table: true
        members:
        - dag
        - ...

::: dynamiqs.utils.wigner_utils
    options:
        table: true
        members:
        - wigner

This is rather easy to do, but we need to add this HTML structure throughout index.md which is kinda annoying. Another solution is to hard code the whole table directly in markdown, without even using the mkdocs helpers ::: module. There are maybe cleaner solutions, but can't think of any from the top of my head.

Actually scratch that, bb058e983d34d2be4dca4577b28d95400e7d165e works in terms of appearance. We simply need to fix the links, which might be less trivial. Looking if that can be done.

Ok, with 9527bc398bb267c4fdcbd03079d0601b56129df9, it seems to work as intended. I added the possibility to specify a namespace option in the mkdocstrings autodoc call, which will override the assumed link extracted from the code structure.

Ha, that's beautiful! Thanks a bunch!


FP for Class name and Package name casing

Not reported in SQ on the server or in PDSOE, but in VSCode:

Found a new case - not reported in Sonarlint in PDSOE:

Fixed. Will be available in the next version.


How to "Raw" Index using Anserini?

To make sure I understand and master the full pipeline I want to create the tokens from the documents myself (i.e. skipping the built-in stemming and tokenization) and index the generated tokens using the Lucene index.
My questions:

What is the best example to follow?
Is there any support in python?
Any gotchas to be aware in using the Lucene index? (i.e. some inner optimization that prevents arbitrary sequence of characters to be valid terms).
Can I directly specify the weight of each term or has to be the TF-IDF?

Hi @Mistobaan see https://github.com/castorini/pyserini/#how-do-i-search-my-own-documents
You'll need to disable stopword removal and stemming, and tokenize only on spaces. This is doable in Lucene but I'm not sure the right hooks are exposed in Python.
No, you cannot specify the weight of each term.
Hope this helps!

Thank @lintool. Yes definitely helped in finding this document:

https://github.com/castorini/pyserini/blob/master/docs/usage-analyzer.md
The core of the logic in breaking up the text is inside the Lucene Analyzer.
I found these analyzers:
DefaultEnglishAnalyzer
LSHAnalyzer
Freebase
FakeWordsEncoderAnalyzer
TweetAnalyzer

With the new keyword/term (Lucene Analyzer) I was able to find out the Lucene feature to make the custom term frequency: https://issues.apache.org/jira/browse/LUCENE-7854

https://lucene.apache.org/core/7_4_0/core/org/apache/lucene/analysis/tokenattributes/TermFrequencyAttribute.html
and a good document that explains more of the internal objects:
https://lucene.apache.org/core/4_0_0/core/org/apache/lucene/search/package-summary.html#scoring

Now the follow-up question is: If I create the custom/index in anserini/lucene how does it translate to ElasticSearch (to have distributed computing)?
I see that there is some sort of support for elastic search but does it just send the raw JSON document through ElasticSearch' API and let ES re-create the index? or does it send chunks of the serialized index?
I see:

the various options for elastic search
then seems it create a simple rest client
connects to the collection
creates a bulk index request
IndexRequest is an ES Type
Create and populate the ES XContentBuilder
So if I can read the code well, to answer my own question, the ES indexer sends only some of the fields and only string/int or arrays. Now I am still not sure if ES will re-tokenize those and how I will have to read the code on that side to find out how those objects are stored/indexed. It seems that the XContentBuilder has a lot of capabilities and switches to populate the fields.

@Mistobaan

I see that there is some sort of support for elastic search but does it just send the raw JSON document through ElasticSearch' API and let ES re-create the index?

This ^^^^ There's no way for ES to "import" a Lucene index directly. It needs to re-index from scratch.
So, you'll need to set the tokenizer appropriately from the ES end, by twiddling with the ES configs, like here: https://github.com/castorini/anserini/blob/2d8359c917c0a54d2b239cd02e289b3b4790a6bb/src/main/resources/elasticsearch/index-config.cord19.json

Thanks!


RasterJoin df.toLayer etc fail on non-standard CRS / Extent col names

This code:
val df = spark.read.raster //....
          .select(rf_tile($"red"), rf_extent($"red") as "red_extent", rf_crs($"red") as "red_crs")
          .toLayer(tlm)

Fails with error about column crs as crs not found. Pinpointed this to https://github.com/locationtech/rasterframes/blob/develop/core/src/main/scala/org/locationtech/rasterframes/extensions/RasterJoin.scala#L44
I believe in this case since there is no projected raster tile column (note use of rf_tile), it is trying to select crs and extent by name.
Should look for columns by type instead.

A highlight from the stack trace:
	at org.apache.spark.sql.Dataset.withColumn(Dataset.scala:2225)
	at org.locationtech.rasterframes.extensions.RasterJoin$$anonfun$usePRT$1$3.apply(RasterJoin.scala:46)
	at org.locationtech.rasterframes.extensions.RasterJoin$$anonfun$usePRT$1$3.apply(RasterJoin.scala:45)
	at scala.Option.map(Option.scala:146)
	at org.locationtech.rasterframes.extensions.RasterJoin$.usePRT$1(RasterJoin.scala:45)
	at org.locationtech.rasterframes.extensions.RasterJoin$.apply(RasterJoin.scala:52)
	at org.locationtech.rasterframes.extensions.ReprojectToLayer$.apply(ReprojectToLayer.scala:52)
	at org.locationtech.rasterframes.extensions.DataFrameMethods$class.toLayer(DataFrameMethods.scala:215)


deletion by marks supported

Support deletion by adding a "deleted" mark to the elements.
The higher 8 bits of the list link size at level 0 will be used the store the mark, therefore, the link size has to be limited to the lower 24 bits, however, still large enough for almost all cases.

There are some lines with commented code left, but overall seems good to me.
I can merge it.
Thank you so much!

Hi @yurymalkov
We have some projects depending on your repo, please let me know when it is merged into master, so that we can update the dependency and provide feature of deletion.

@ctero-graham Sure!
I'll merge it by the end of the next week (few other changes are needed to be done, I am working on them right now).
Thanks again for the PR!


Change target from 'aws-ec2' to 'ec2' in partials

When target name was changed from 'aws-ec2' to 'ec2' in https://github.com/ManageIQ/manageiq-appliance-build/pull/161, 2 files got missed.
Also fixed README.

Euwe Backport details:
$ git log -1
commit 8bf27e66bb4750a3ced487f80cd23b1485a5bf62
Author: Nick Carboni<EMAIL_ADDRESS>Date:   Tue Nov 8 10:06:48 2016 -0500

    Merge pull request #182 from simaishi/fix_ec2_partial

    Change target from 'aws-ec2' to 'ec2' in partials
    (cherry picked from commit 1f8c12f13839a7f7d471a2b11cbbf933cd73f862)


MAX32672 Evaluation Kit - LP Example - Current Consumption

Hi,
I'm trying to achieve the low power consumption of the MAX32672 in the EV kit.
I uploaded the LP example code and followed the steps from the EV Kit Datasheet to measure the current.
The lowest measured power consumption at deepsleep mode was 470uA @3.3V at VDD, but the DataSheet states 4.4uA @3.3V at VDD.
Is there some  modification to the LP example code to lower even more the power consumption?

@leoreyesth Which rail are you measuring current on?

@leoreyesth Sorry for the delay, but I got it figured out this morning. The steps I followed were:

Remove jumpers JP2 through JP11
Disconnect LCD
Set all GPIO pins low except for SWD pins (P0.0/P0.1), push button (P0.18), and P0.10.
Set GPIO pin P0.10 high. (It is connected to a pullup resistor that can't be disabled.)

This the function I used to set the GPIO pins to the appropriate state:
#include "gpio.h"
void configure_gpios(void)
{
	mxc_gpio_cfg_t out_clr;
	mxc_gpio_cfg_t out_set;

	// Set all GPIO pins low except for SWD, push button, and P0.10
	out_clr.port = MXC_GPIO0;
	out_clr.mask = 0xFFFBFBFC;
	out_clr.func = MXC_GPIO_FUNC_OUT;
	out_clr.pad = MXC_GPIO_PAD_NONE;
	out_clr.vssel = MXC_GPIO_VSSEL_VDDIOH;
	MXC_GPIO_Config(&out_clr);
	MXC_GPIO_OutClr(out_clr.port, out_clr.mask);

	//Set GPIO P0.10 high
	out_set.port = MXC_GPIO0;
	out_set.mask = MXC_GPIO_PIN_10;
	out_set.func = MXC_GPIO_FUNC_OUT;
	out_set.pad = MXC_GPIO_PAD_NONE;
	out_set.vssel = MXC_GPIO_VSSEL_VDDIOH;
	MXC_GPIO_Config(&out_set);
	MXC_GPIO_OutSet(out_set.port, out_set.mask);
}

With these configurations I was able to get a Deep Sleep current of 3.1uA and Backup current of 0.62uA. Also, you may have had a typo, but the VDD jumpers is actually JP13. Hope this helps!

Thanks @Jacob-Scheiffler. I will try the example.
I dont know if a real problem but the function MXC_GPIO_Confing sets the padctrl1 register that is reserved and read only, and also sets the vssel register that is reserved DN

Closing issue as #519 is merged.  GPIO drivers will be modified in a separate PR


Fix generate:types bug when slug has underscore prefix

Description
generateEntityDeclarations function creates mismatched type names. We'll simply use the existing Config type instead.
Closes #3697

[x] I have read and understand the CONTRIBUTING.md document in this repository.

Type of change

[x] Bug fix (non-breaking change which fixes an issue)

Checklist:

[x] Existing test suite passes locally with my changes

Will validate this tomorrow.

Just published a beta to test this. The typing is working as expected.

Thanks for the code review!

Thanks for the PR @xHomu !


Not clear how to [patch] sources other than crates-io

So I think this might be a documentation bug rather than anything else. On the page: http://doc.crates.io/manifest.html#the-patch-section
Each key after [patch] is a URL of the source that's being patched, or crates-io if you're modifying the https://crates.io registry. In the example above crates-io could be replaced with a git URL such as https://github.com/rust-lang-nursery/log.
So after reading this, there are two thing you might try. If you're not that familiar with toml, then you might try the following:
[patch.https://github.com/rust-lang-nursery/log]
...

This is not valid toml. Another thing you might try is
[patch]
"https://github.com/rust-lang-nursery/log" = { log = { path = "/path/to/log/" } }

But this is ignored ("warning: unused manifest key: patch")
Ideally there would be a working example in the docs.

I was able to get this feature working by putting the URL in quotes:
[dependencies]
codecophony = {git = "https://github.com/elidupree/codecophony.git"}

...

[patch."https://github.com/elidupree/codecophony.git"]
codecophony = {path="/n/codecophony-share-build/codecophony"}

With something like https://github.com/rust-lang/rfcs/pull/1133 on the horizon, we will also have standard library deps. Eventually Cargo and the provided compiler will somehow negotiate to get Cargo any compiler-specific sources for standard library crates. But, figuring that out will involve many people and grind things to a halt. So the stop-gap solution in https://github.com/rust-lang/rfcs/pull/1133 was to allow the user to [patch]-in standard library deps so that users can continue without this.

https://doc.rust-lang.org/cargo/reference/manifest.html#the-patch-section doesn't yet contain this?

Patching dependencies does not work if it's for the same location but a different branch

See https://github.com/rust-lang/cargo/issues/5478


\n in mermaid text renders as \n instead of newline

A \n in Mermaid code isnt converted to an actual newline when converted to an Excalidraw diagram
For example:
classDiagram
    note "test 123\ntest 456"

Is converted to:

I expect test 456 to be on a new line.

@ad1992 wee have anything equivalent in the codebase to convert these escape sequences?
{
  "type": "class",
  "nodes": [
    [
      {
        "type": "rectangle",
        "id": "note0",
        "label": {
          "text": "test 123\\ttest 456",
          "fontSize": 16
        },
        "x": 8,
        "y": 8,
        "width":<PHONE_NUMBER>0234375,
        "height": 44.5,
        "subtype": "note",
        "strokeStyle": "dashed"
      }
    ]
  ],
  "lines": [],
  "arrows": [],
  "text": [],
  "namespaces": {}
}


"UseMonitor" description needs clarification

Currently the description for UseMonitor includes:
"If not set explicitly, the default is true for schedules that have a recurrence interval greater than 1 minute. For schedules that trigger more than once per minute, the default is false."
This makes it unclear what the default will be if the interval is exactly 1 minute.

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

ID: b5527c3b-a5da-c73d-66c2-20d96003ff7c
Version Independent ID: 42154c7b-b0e0-26db-79bc-3f1673c48e40
Content: Timer trigger for Azure Functions
Content Source: articles/azure-functions/functions-bindings-timer.md
Service: azure-functions
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

@mikegoatly Looking at the code, for exactly 1 minute, its true.
We will work up a PR to update the doc accordingly.


[#5019] don't query nameField for every feature

Resolves #5019

Pull Request Checklist:

[x] Positive Test Case Written by Dev

[ ] Automated Testing

[ ] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

On a resource, open browser console and select a Geoconnex collection to search
Note that there are at most 3 requests sent to the Geoconnex API, instead of a separate request for every single feature in the collection

@devincowan I'm noticing a couple of issues:

After loading a collection and clearing the field, no more collections can be loaded.

There seems to be a race condition causing the map to load and stay disabled:

thanks @Maurier the map remains disabled until a collection is selected (in step #1) and the map returns to disabled when collection is cleared from the #1 autocomplete. I remember this was a "feature" that someone requested, I believe Martin.
The "collections toward the bottom of the list not loading" issue is because those collections are exceeding the 1000 feature limit. To return features, one would have to add spatial extent or "search via map bounds"


Fix new message shows for message sent from another user

Explanation of Change

Fixed Issues

$ https://github.com/Expensify/App/issues/54611
$ https://github.com/Expensify/App/issues/54504
$ https://github.com/Expensify/App/issues/53830
PROPOSAL:
Tests

Same as QA Steps

[x] Verify that no errors appear in the JS console

Offline tests

Same as QA Steps
QA Steps

[User A] Open chat with user B
[User B] Send a message to user A
[User A] Verify there is no new message gree line on the new message
[User A] Start a new chat with a user you never chat before
[User A] Send a few attachments (or messages) so the chat is scrollable
[User A] Scroll to the top
[User A] Verify there is no New message green pill

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

https://github.com/user-attachments/assets/58820775-5731-47fc-b206-1dd0bec2d373

Android: mWeb Chrome

https://github.com/user-attachments/assets/1c8a7b41-c1a7-4ba4-b9ee-98f23daad199

iOS: Native

https://github.com/user-attachments/assets/a0b06844-718c-41cb-8990-808915a74a09

iOS: mWeb Safari

https://github.com/user-attachments/assets/031fef80-a5cb-45be-8fc8-869c6133cee0

MacOS: Chrome / Safari

https://github.com/user-attachments/assets/840f0f12-196b-4d46-b86a-5e130ae9e52f

MacOS: Desktop

https://github.com/user-attachments/assets/fa409dee-9290-4f5a-a03e-e0532f03ab2b

Handled this one too: https://github.com/Expensify/App/issues/54504

Reviewer Checklist

[ ] I have verified the author checklist is complete (all boxes are checked off).
[ ] I verified the correct issue is linked in the ### Fixed Issues section above
[ ] I verified testing steps are clear and they cover the changes made in this PR

[ ] I verified the steps for local testing are in the Tests section
[ ] I verified the steps for Staging and/or Production testing are in the QA steps section
[ ] I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[ ] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)

[ ] I checked that screenshots or videos are included for tests on all platforms
[ ] I included screenshots or videos for tests on all platforms
[ ] I verified tests pass on all platforms & I tested again on:

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

[ ] If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
[ ] I verified proper code patterns were followed (see Reviewing the code)

[ ] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
[ ] I verified that comments were added to code that is not self explanatory
[ ] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[ ] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
[ ] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[ ] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[ ] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[ ] I verified the JSDocs style guidelines (in STYLE.md) were followed

[ ] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[ ] I verified that this PR follows the guidelines as stated in the Review Guidelines
[ ] I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
[ ] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[ ] I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
[ ] If a new component is created I verified that:

[ ] A similar component doesn't exist in the codebase
[ ] All props are defined accurately and each prop has a /** comment above it */
[ ] The file is named correctly
[ ] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[ ] The only data being stored in the state is data necessary for rendering and nothing else
[ ] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[ ] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[ ] All JSX used for rendering exists in the render method
[ ] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[ ] If any new file was added I verified that:

[ ] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[ ] If a new CSS style is added I verified that:

[ ] A similar style doesn't already exist
[ ] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)

[ ] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[ ] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[ ] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[ ] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[ ] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[ ] I verified that all the inputs inside a form are aligned with each other.
[ ] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[ ] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[ ] For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
[ ] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[ ] I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

iOS: Native

iOS: mWeb Safari

MacOS: Chrome / Safari

MacOS: Desktop

Handled this one too: https://github.com/Expensify/App/issues/54504

@bernhardoj why you handled it here? I think it is not a regression from the main PR.
Also, it hasn't fixed
https://github.com/user-attachments/assets/34df1832-af1e-4124-ba3a-d99c9dad1910

why you handled it here? I think it is not a regression from the main PR.

It's a regression from our PR too. The root cause of the issue is basically the CREATED action of the new chat is marked as unread.
The video you show looks like a different issue. I'll check it.

I can't reproduce the other issue.
https://github.com/user-attachments/assets/c20eafb8-60b7-4867-acc2-ee0f1dd2b53b

@ahmedGaber93 I remember we used to show unread marker if the user has scrolled up above some threshold amount which the main pr removed please consider that too. Tagging @MonilBhavsar for context.

to show unread marker if the user has scrolled up above some threshold amount which the main pr removed

This behavior was still supported after that pr, but it breaks now here.
@bernhardoj could you check why this behavior break here?

before
https://github.com/user-attachments/assets/787d4690-753e-4716-8a65-5ec073107e9b

After
https://github.com/user-attachments/assets/4d3700ea-4e7b-4402-9e13-e78afbfeb1b4


Beacon install missing router

When running the install mix task the router is missing preventing the application from starting up.
To reproduce use the following mix task followed by mix setup.
mix beacon.install --site my_site --path /
mix setup

** (Mix) Could not start application site: Site.Application.start(:normal, []) returned an error: shutdown: failed to start child: Beacon
    ** (EXIT) an exception was raised:
        ** (RuntimeError) missing required option :router
            (beacon 0.1.0-dev) lib/beacon/config.ex:376: Beacon.Config.new/1
            (beacon 0.1.0-dev) lib/beacon/beacon.ex:103: Beacon.site_child_spec/1
            (elixir 1.17.1) lib/enum.ex:1703: Enum."-map/2-lists^map/1-1-"/2
            (beacon 0.1.0-dev) lib/beacon/beacon.ex:91: Beacon.init/1
            (stdlib 5.2.3) supervisor.erl:330: :supervisor.init/1
            (stdlib 5.2.3) gen_server.erl:980: :gen_server.init_it/2
            (stdlib 5.2.3) gen_server.erl:935: :gen_server.init_it/6
            (stdlib 5.2.3) proc_lib.erl:241: :proc_lib.init_p_do_apply/3

fixed the test, if this is not desired behavior then consider removing this check (https://github.com/BeaconCMS/beacon/blob/main/lib/beacon/config.ex#L376)

Fixed by https://github.com/BeaconCMS/beacon/pull/539


fixed(guide): grammar flow issue

Grammar flow issue in opening paragraph

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


my building is stuck on " [CP-User]\ Generate\ app.config\ for\ prebuilt\ Constants.manifest"

Description
when i ran "npm run ios", it was still stuck on this spot.

then, i used xcode to build it. it was still so.

Steps to reproduce
pls read my code.
https://github.com/qzw881130/tv-demo
➜  tv-demo git:(master) ✗ node -v
v20.14.0
Xcode Version 15.4 (15F31d)
MacBook Pro m1 16G
Simulator Apple TV tvos 17.5
i have tried many ways,
React Native Version
"react-native": "npm:react-native-tvos@latest",
Affected Platforms
Build - MacOS
Output of npx react-native info
➜  tv-demo git:(master) ✗ npx react-native info
info Fetching system and libraries information...
System:
  OS: macOS 14.6.1
  CPU: (8) arm64 Apple M1 Pro
  Memory: 249.94 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.14.0
    path: ~/.nvm/versions/node/v20.14.0/bin/node
  Yarn:
    version: 1.22.19
    path: ~/.nvm/versions/node/v14.14.0/bin/yarn
  npm:
    version: 10.7.0
    path: ~/.nvm/versions/node/v20.14.0/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods: Not Found
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.5
      - iOS 17.5
      - macOS 14.5
      - tvOS 17.5
      - visionOS 1.2
      - watchOS 10.5
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 15.4/15F31d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.10
    path: /usr/bin/javac
  Ruby:
    version: 3.2.0
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native: Not Found
  react-native-macos: Not Found
  react-native-tvos:
    installed: 0.74.2-0
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: false

info React Native v0.75.1 is now available (your project is running on v0.74.2-0).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.75.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.2-0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".

Stacktrace or Logs
pls readme this log file.
https://raw.githubusercontent.com/qzw881130/tv-demo/main/issue.txt
Reproducer
https://github.com/qzw881130/tv-demo
Screenshots and Videos

I made some breakpoints, it can output.

No response

oh my god!
i solved it finally.
https://github.com/expo/expo/issues/15809
it was caused by .bash_profile
i don't know why.
i just did so.
mv ~/.bash_profile ~/.bash_profile.bak
touch ~/.bash_profile
chmod a+x ~/.bash_profile

then, npm run ios.
it works.

another solved way.
search "bash " and "\n/bin/sh " in ./ios
then, replace
bash  => bash --noprofile
and
\n/bin/sh => \n/bin/bash --noprofile
so, executing shell won't load ~/.bash_profile

Thanks @qzw881130 I really appreciate your updates with the solutions you found!


Oqc ps

Issue #, if available:
Description of changes:
Testing done:
Merge Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.
General

[ ] I have read the CONTRIBUTING doc
[ ] I used the commit message format described in CONTRIBUTING
[ ] I have updated any necessary documentation, including READMEs and API docs (if appropriate)

Tests

[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[ ] I have checked that my tests are not configured for a specific region or account (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Closed PR on AWS side with additional comments.
https://github.com/aws/amazon-braket-pennylane-plugin-python/pull/165


ReferenceError: mimes is not defined

Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch<EMAIL_ADDRESS>for the project I'm working on.
TypeScript is returning this error: ReferenceError: mimes is not defined
This is because export default does not need a named export.
Here is the diff that solved my problem:
diff --git a/node_modules/react-native-receive-sharing-intent/mimeType.js b/node_modules/react-native-receive-sharing-intent/mimeType.js
index 58958f4..6779df0 100644
--- a/node_modules/react-native-receive-sharing-intent/mimeType.js
+++ b/node_modules/react-native-receive-sharing-intent/mimeType.js
@@ -1,4 +1,4 @@
-export default  mimes = {
+export default {
     ".323": "text/h323",
     ".3g2": "video/3gpp2",
     ".3gp": "video/3gpp",

This issue body was partially generated by patch-package.

New Version it would be fixed now.
Thanks,
Ajith A B


Video using StageGL does not behave correctly

When using StageGL, video (mp4) is requested to play using a Bitmap as defined (and working) for Stage.
Deppending on the setup, either passing the file path directly or via an HTML element, it fails to render giving a different error.
When passed directly it only gives a "wrong image data"
When using HTML: "Invalid image provided as source. Please ensure source is a correct DOM element."
Tested in Chrome (72.0.3626.96) 64 bits
We found a solution to this problem by adding a non GL canvas and rendering the video there but i would like to know if there are plans for solving this issue in the future.

We maybe should add a couple of notes about this. The technique you're using is the same  technique that 3D engines like Three.js use in order to display video in WebGL. WebGL does not like to display video content because video requires processing to uncompress it each frame, processing that isn't built into the WebGL pipeline. The only way we could add this feature would be to automate the exact solution you have right now.
Given the groundwork we've laid with cacheless filters we might have a model we could use to automate this process, but there's no plans to implement it currently sorry. If you didn't want to manually make your own Canvas you can put a display element on the StageGL and give it a regular cache. That mechanism would basically create and manage another canvas behind the scenes for you.
Glad your workaround is doing well, and as it's the best exact approach to take I'll close this for now.

I haven't had a chance to really think it through, but I believe you may be able to use the VideoBuffer class to solve this issue (as well as seeking issues you'll also encounter).
https://createjs.com/docs/easeljs/classes/VideoBuffer.html
If you try this, please report back here to let us know if it worked, and we can update the documentation appropriately.

I looked into this, and it looks like VideoBuffer currently will not work as a Bitmap source in StageGL (ex. new Bitmap(myVideoBuffer)). I just pushed an update to StageGL that will fix that.
In the meantime, you should still be able to use it with a bit of code to call getImage each tick. Something like:
myBitmap.on("tick", function() {
  this.image = myVideoBuffer.getImage();
})

Has this ever been fixed? The best I can get with StageGL is the first frame of the video. Here's the code I am using:
let myVideo = document.createElement('video');
myVideo.src = "test.webm";
myVideo.autoplay = true;
myVideo.muted = true;
let myBuffer = new createjs.VideoBuffer(myVideo);
let myBitmap = new createjs.Bitmap(myBuffer);
this.stage.addChild(myBitmap);
myVideo.play();
myBitmap.on("tick", () => myBitmap.image = myBuffer.getImage());

When I use Stage instead of StageGL, it works fine. By the way, it also does not work without a Buffer. So, for instance, the code below works with Stage but not with StageGL:
let myVideo = document.createElement('video');
myVideo.src = "test.webm";
myVideo.autoplay = true;
myVideo.muted = true;
let myBitmap = new createjs.Bitmap(myVideo);
this.stage.addChild(myBitmap);
myVideo.play();

I am using easeljs-NEXT.js.


Sum-product message passing marginal query run time

The notes say this can be completed in constant time, but there are N(i)  multiplications, which would actually make it linear with respect to the degree of the vertex.

Since the messages from node l to node i don't change once the BP algorithm terminates, you can precompute the product of messages from the neighbours of node i when you receive them during the BP algorithm. During inference, you can just look up this precomputed value rather than performing this product.

Got it, thanks!


Batch size

Hello!
@githubharald
In main.py the Batch value=100 by default but I train without changing any variable
the Batch =1095
""Epoch: 1 Batch: 174/1095 Loss: 13.035996437072754
Epoch: 1 Batch: 175/1095 Loss: 12.717321395874023
Epoch: 1 Batch: 176/1095 Loss: 12.920287132263184
Epoch: 1 Batch: 177/1095 Loss: 11.725905418395996
Epoch: 1 Batch: 178/1095 Loss: 10.567584037780762
Epoch: 1 Batch: 179/1095 Loss: 10.853200912475586
Epoch: 1 Batch: 180/1095 Loss: 10.717955589294434
Epoch: 1 Batch: 181/1095 Loss: 12.011331558227539
Epoch: 1 Batch: 182/1095 Loss: 12.022170066833496
"""
Where it takes this value?
Thanks a lot for your help

number of images per batch != number of batches per epoch.


⚠ Bofrost.de has degraded performance

In 0c061f3, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 833 ms

Resolved: Bofrost.de performance has improved in 7664525.


AGE Onboarding - Setup Developer Environment Group 1

Install Postgres from Source Code
Install AGE from Source Code
Install a Debugger
Learn Basic Git Commands
Read Regression Tests

Hi! this is good, excited to start on AGE project

To debug a PostgreSQL session -
Have Postgres configured with debugging flags enable and have a Postgres instance running.
An open session running.
Know the process of the session that you will be debugging (ps -C postgres).
Execute the command gdb -p
The basic GDB commands are -
b for breakpoint, fx, b exec_simple_query or b 930
c for continue - continues to the next breakpoint
n for next line
s for step into
p for print, fx, p *node
d for delete all breakpoints
q for quit

The Basic Git commands are:
git apply
git add
git commit
git branch
git checkout

Install Postgres from Source Code:
https://www.postgresql.org/docs/current/install-procedure.html
Enable Debugging Flags

Install AGE From Source Code:
https://age.apache.org/age-manual/master/intro/setup.html

Run the Regression Tests:
https://age.apache.org/age-manual/master/contributing/run_tests.html
Then please read through regress/sql/* and regress/expected/*
To learn what the regression tests are

Acknowleged.

Hi! this is good, excited to start on AGE project

I am excited to start working on the AGE project!

acknowledged

Hi! looking forward to start working on the project.

Noted.

I am excited to start work.

Hi! I'm eager to participate in this project!

Hello everyone! excited to start working with the AGE project.

Hi, I am excited to work on this project

Hello everyone! I’m happy to be a part of this team and looking forward to getting started with this project.

Glad to be a part of this amazing team!

Glad to be part of this amazing team. Excited to start on AGE project

Glad to be a part of AGE, Excited to work on new project.

Good day everyone! Excited to be a part of this team and contribute to this project.


Try to find hidden words

It's a known fact that there are some terrible developers out there who will add offensive words for a joke. Sometimes they hide these words behind different symbols, for example:
“__” in the ‘__igger’ variable can be either ‘tr’ or ‘_n’.
I find this outrageous. You should find these veiled acts of rudeness.

I accept PRs ;-)


add overlay with image tag override for cluster scoped test

What this PR does:
Which issue(s) this PR fixes:
Fixes #547
Checklist

[x] Changes manually tested
[x] Automated Tests added/updated
[ ] Documentation added/updated
[x] CHANGELOG.md updated (not required for documentation PRs)
[x] CLA Signed:  DataStax CLA

Wouldn't it be simpler to just load the generated image to kind before testing? Then the v1.0.0 for example would be available.

Wouldn't it be simpler to just load the generated image to kind before testing?

We would need to update the GHA workflow to determine the version. That can't be done just by looking at the branch name since we can release multiple versions from the branch. Alternatively, I suppose we could parse config/deployments/default/kustomization.yaml to determine the version. This should be pretty easy with yq which in turn keeps the test code simpler overall. I will submit a different PR with that approach.


Continuation of Ctx semantic improvements

This incorporates the changes in #3 and #5 and adds further usability enhancements, including:

Contexts are no longer immutable.  Although the API hasn't changed and there is still no locking for reads, there is no longer a need to worry about Ctx references changing every time a value gets added.
Add Ctx#cancel(Throwable) to cancel with a cause
Add Ctx#detach to replace Ctx#close for detaching a Ctx
Add Ctx.Key#get and Ctx.Key#set convenience operations
Add Ctx#with(Map<String, T>, Class<T>) for quickly setting values from a map
Add Ctx#add(Map<String, T>, Class<T>) alias to Ctx#with(Map<String, T>, Class<T>) for more elegant Fluent phrasing
Add Ctx#isEmpty to determine if a context has any values set
Add Ctx#create alias to Ctx#empty for more elegant Fluent phrasing
Add Ctx#add(Key<T>, T) alias to Ctx#with for more elegant Fluent phrasing

I am very uncomfortable with having a mutable ctx shareable across threads.


R 3.6.1

Checklist

[x] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Linux builds, so that's something.

BTW, this is very much WIP, I blindly copied over patches from the defaults channel and the changes in these need to be reviewed before merging.

Wow, windows even builds. Just need to figure out OSX. I'll be offline for a few days, so if any one wants to take a stab at that it'd be most appreciated :)

Success! Someone want to hit rerun on windows? There was a networking issue.

BTW, should conda-forge/r be added as a maintainer?

@conda-forge-admin, please rerender

Grr, CRAN networking problems again. Anyway, this will build once that's resolved.

Also, remember to pull in changes from https://github.com/conda-forge/r-base-feedstock/pull/80. (It's still WIP, but I'll have it ready today. That PR has to be merged in a new version to avoid breaking packages.)

@isuruf can you point your #80 against this branch?
Thanks for working on it!

@conda-forge-admin, rerender

Is this waiting on anything else?

LGTM. @isuruf are you planning on any extra commits or is this ready to be merged?

Ready to merge

Thanks for the awesome work on this PR @dpryan79 and @isuruf!


Grafana Plugin CrateDB deprecated

Hello,
Thanks, for all this brilliant tutorials. However, as far as I know the crateDB plugin for grafana is longer listed as official plugin. Hence, this should be updated according to https://github.com/smartsdk/ngsi-timeseries-api/issues/166
Thanks,
Thomas

@taliaga - what do you think? Does this tutorial need to switch to use PostGres when it is updated for the 0.6.1 release?

thanks for the heads-up, I'll that this in this tutorial

@taliaga - I have updated the YAML config whilst fixing another issue, the latest version successfully persists data into Crate-DB 3.1.2 - 7804e00
However I have not had time to check or amend the Grafana section -could you check and amend as necessary.


Create a PR with Cartography to pass specific regions in config

We are migrating to CloudQuery which supports this


Add a way to get the TPS

Add a way to get the TPS (Ticks Per Second) of the server.
Server#getTPS()?

Can't you just use the scheduler to call a 1-tick interval repeating task and measure the difference between System.nanoTime() calls, multiply by 20 to get the number of ticks per second? For more accuracy use a longer interval like 20 ticks between updates and multiply by (20/number of ticks per interval). Shouldn't be too hard. It would be easy to add, but there are multiple ways to do this already at varying precisions and accuracies.

I know it is possible on such a way, but I think it is better to add the method to the api.
It's an api and I think such methods should be in the api instead of every plugin having to make their own task etc.

Except the number can mean a lot of different things.

Tps of the server or per world?

On Aug 17, 2015, at 12:51 PM, Starbuck Johnson<EMAIL_ADDRESS>wrote:
Except the number can mean a lot of different things.
—
Reply to this email directly or view it on GitHub.

@progwml6 They're the same. There's only one server thread, and each world gets one tick for each server tick.


Segmentation issue keeps crashing the kernel

issue.csv
The AutoMLSearch keeps crashing with the simple dataset. Running the code in terminal gives segmentation error. If run in Jupyter Notebook, the notebook crashes and gets restarted.
import pandas as pd
import evalml

fm = pd.read_csv('issue.csv')
fm.ww.init()

fm.ww.describe()

y = fm.ww.pop('label')

automl = evalml.AutoMLSearch(
    X_train=fm,
    y_train=y,
    problem_type='binary',
    random_seed=3,
    max_batches=5
)
automl.search()

The data doesn't have infinity or null values. In principle, it shouldn't crash the kernel even though it won't get an amazing model.

The search went through once the search scope is limited to random forest and linear_model:
allowed_model_families=["random_forest", "linear_model"].

Thanks for reporting and investigating @enfeizhan. Could you share what evalml and lightgbm versions you're running with, as well as a bit more information about your data (types, size, etc)?


iOS 9 and JVFloatLabeledTextField

Hello, I am not sure if it is related to iOS 9 but when I try out the JVFloatLabeledTextField in my project, the text jumps down a bit when I start editing the text field.

@tomvanzummeren have you set keepBaseline to YES? The default behavior is as you describe, and keepBaseline provides a way to keep the value in the same position as the placeholder

Oh, yes that's it. Didn't know that. Thanks!

I tried the above code but in my case the frame of _UITextFieldCanvasView is different...Please check out the screenshot below.

I don't know why this is happening.


Bug: Audio skips while playing youtube video

Describe the bug
While paying youtube (Brave, chromium) audio often skips. Sometimes the video refuses to start paying or plays the audio (skipping and popping) with loading animation on the black video. The problem is inconsistent. Sometimes it does not happen for hours but sometimes it happens every 10 - 30 seconds.
Steps to Reproduce
Steps to reproduce the behaviour (feel free to change the placeholder as you need):

Launch eqMac
Go to youtube.com
Play a video

Expected behaviour
smooth playback
Setup information:

Audio device used for playback: External speaker
Audio transmission interface: 3.5mm Jack
macOS Version: 10.15.7
eqMac Version: 0.3.6
eqMac UI Version: 1.2.2

Additional information
It was fine 2 updates back

same problem
2019 16 inch Macbook Pro internal speakers
macOS 11.0.1
eqmac version: 0.3.6
eqmac UI: 1.2.2.
eqmac driver: 1.2

Same.
2017 15 inch Macbook Pro
OSX 10.15.7
eqmac version - 0.3.6

Duplicate of #268, #373


Infer XML string from homepage's input box and convert to JSON

https://user-images.githubusercontent.com/8944795/189931018-2d319e9c-91c9-4b99-90ea-d737a4ec6fa7.mov
Test Cloudflare Worker for this PR:
https://jsonhero-io-production.kvooak.workers.dev
CURRENT STATE

Users do not have an option to use our tool if their data is in XML format instead of JSON.
There are external libraries to parse XML to JSON that users can use to pre-process their data before using our tool, however this is a blocker of usage.
We cannot control the quality of output of external XML-to-JSON parser libraries.

This PR aims to set the foundation to integrate XML data format into the tool seamlessly.
PROPOSALS
New files:

Added function convertFromRawXml() to parse XML string to JSON string.
Added wrapper function createFromRawXml() to wrap the existing method createFromRawJson(), taking the output of convertFromRawXml as the input of createFromRawJson().
Added checking function isXML() with similar behaviour to the existing isJSON() to infer XML string format.
Added tests for 3 new functions above.

Dependency:

Added xmldom as a dependency to be able to use DOMParser() feature which is available on native jsdom environment, but not available in Node / Cloudflare environment. This is to parse XML string to a XMLDocument as pre-process.

What is not covered:

This PR does not cover the use case when users upload XML files.

DESIRED STATE

Users can paste XML string directly to the input box without having to pre-process it.
JSON viewer reflects truthfully the XML structure. If an XML tag has attributes, they are stored in $attributes property of the respective JSON object, as normal values are stored in $values property.
Video attached.

@ericallam I added a test CF Worker for this PR. It seems to run alright.

If this PR is merged, we may or may not need to change the wording of input box placeholder to indicate that pasting XML string is now possible.


I want to encapsulate a function that executes a transaction, and the transaction execution body is passed in as a closure, but an error is reported, ask for help

async fn execute_transaction<F, Fut>(
    conn: Pool<MySql>,
    f: F,
) -> Result<(), Box<dyn std::error::Error>>
where
    F: FnOnce(&mut Transaction<'_, MySql>) -> Fut,
    Fut: Future<Output = Result<(), Box<dyn std::error::Error>>>,
{
    let mut txn = conn.begin().await?;

    f(&mut txn).await?;

    txn.commit().await?;

    Ok(())
}

async fn test_fn() -> Result<(), Box<dyn std::error::Error>> {
    let conn = get_mysql_pool() .await;

    execute_transaction(conn, |txn| async {
        let r1 = sqlx::query("DELETE FROM blog WHERE id = ?")
            .bind("aaa")
            .execute(txn)
            .await?
            .rows_affected();

        let r2 = sqlx::query("DELETE FROM book WHERE id = ?")
            .bind("bbb")
            .execute(txn)
            .await?
            .rows_affected();

        Ok(())
    })
    .await?;

    Ok(())
}

Report an error：

error[E0277]: the trait bound `&mut Transaction<'_, MySql>: Executor<'_>` is not satisfied
   --> src\units\model\tidb\mod.rs:446:18
    |
446 |           let r1 = sqlx::query("DELETE FROM bolg WHERE id = ?")
    |  __________________^
447 | |             .bind("aaa")
448 | |             .execute(txn)
    | |_________________________^ the trait `Executor<'_>` is not implemented for `&mut Transaction<'_, MySql>`
    |
    = help: the following other types implement trait `Executor<'c>`:
              `&'c mut AnyConnection` implements `Executor<'c>`
              `&'c mut MySqlConnection` implements `Executor<'c>`
              `&sqlx::Pool<DB>` implements `Executor<'p>`
note: required by a bound in `sqlx::query::Query::<'q, DB, A>::execute`
   --> C:\Users\Administrator\.cargo\registry\src\rsproxy.cn-0dccff568467c15b\sqlx-core-0.8.2\src\query.rs:188:12
    |
184 |     pub async fn execute<'e, 'c: 'e, E>(self, executor: E) -> Result<DB::QueryResult, Error>
    |                  ------- required by a bound in this associated function
...
188 |         E: Executor<'c, Database = DB>,
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Query::<'q, DB, A>::execute`

the lifetime issue that I am hitting after fixing the dereferencing issue (.execute(&mut *txn)) in your example is a bit tricky and I have not really found a way to tell the borrow checker that the lifetimes are actually fine.
The following would be how I could get around this
#[cfg(test)]
mod tests {
    use sqlx::MySql;
    use sqlx::MySqlPool;
    use sqlx::Transaction;
    use std::future::Future;
    use sqlx::Error;

    async fn execute_transaction<'a,'tx:'a,F, Fut>(
        conn: MySqlPool,
        f: F,
    ) -> Result<(), Error>
    where
        F: FnOnce(Transaction<'tx, MySql>) -> Fut,
        Fut: Future<Output = Result<(), Error>> {
        let txn = conn.begin().await?;
        f(txn).await
    }

    #[tokio::test]
    async fn test_fn() -> anyhow::Result<()> {
        let conn = MySqlPool::connect("url").await?;

        execute_transaction(conn, |mut txn| async move {
            let _r1 = sqlx::query("DELETE FROM blog WHERE id = ?")
                .bind("aaa")
                .execute(&mut *txn)
                .await?
                .rows_affected();

            txn.commit().await
        })
        .await?;
        Ok(())
    }
}

In the end, I don't think this looks like a better API => you are likely better off by just doing it explcitely
https://github.com/launchbadge/sqlx/blob/19f40d87a669e41081a629a469359d341c9223d6/examples/postgres/transaction/src/main.rs#L56-L60

Issues are not for asking for support with your own code. Please use Discussions or Discord.


tooltip: Improve tooltip visibility for message control buttons.

This change ensures that the tooltip doesn't hide by the
selected message blue border.
GIFs or screenshots:

Before
After

Merged, thanks @akshatdalton!


missing Loco and a missing Engine House

Dark Skyes RR.zip

shows up as a blank.

just totaly missing for railroad.studio

yes ... a lot of the new stuff that came out is missing...new industries engine etc... hoping it will all get updated ...it is the holiday season so it might be awhile

The attached save should work following #99. This save file does not contain any new locos, but feel free to open a new issue with any new rolling stock.


chore(deps): Update peer dependencies

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


creating branches and draft for CICD

1 - branches.
branches = environment
MAIN = production
DEVELOP = development

https://github.com/iPlayed-games/backend/pull/8

Great.


Backfill CHANGELOG.md for 4.0.4 -> 4.1.7

Thanks for all the work @aFarkas I did my best to backfill the Changelog and hope I did not miss anything vital. Hope you can make use of it.

you are awesome!


How to run multiple tasks sync/async?

Say I have these tasks: clean, compile:ts, compile:scss, min:js, min:css, copy:bower
The should be run in this order:

clean runs first.
Then, compile:ts and min:js run in sequence while compile:scss and min:css run in sequence.
Then, once all of that is done, copy:bower is run.

So basically, clean, do JS-stuff while doing CSS-stuff, then finally do bower stuff.
Couldn't see how to do this using run-sequence, is it possible?

You can only have one set of sequenced items per run-sequence, but each step can have multiple parallel steps.  See Usage.
You can also use sub tasks to group run-sequence steps.  Honestly, though, I'd just run ('clean', ['compile:ts', 'min:js'], ['comile:scss', 'min:css'], 'copy:bower'), and not worry about running JS parallel to the styles, since you won't gain much.  Or even better, use gulp's native task-dependencies to handle some of this.  There's no reason you need to use run-sequence for standard dependencies, only steps that aren't always dependent.
In your example above, you shouldn't even be running a separate min step, you should be piping the output from your compile process straight into the minification, so you don't have to hit the disk at all.  You can use simple functions, or something like lazypipe, to reuse build steps for both development and production.  If you do this, then you can do something like ('clean', ['js-prod', 'css-prod'], 'copy:bower')

Thanks for responding, appreciate it. But I disagree that, for example, min:js is dependent on compile:ts. Yes, at some point it is, but not always. And I get the sense that that is why this package exists.
In my case, which I think would be very normal, compile:ts happens whenever some TS file changes. And min:js happens during build/test/deployment (not with every change to TS files). In theory, the JS files are up to date by the time build/test/deployment happens, so minification can continue w/out depending on compilation (it's already done). In theory. In practice, things are rebuilt anyway and you're point is correct that I should just setup the dependency.
I was asking more philosophically, I suppose.
I'll continue w/the dependency route for now! Appreciate your time.

I didn't mean as a dependency—I mean there shouldn't be separate tasks at all.  A separate task implies that something was written to disk and is being read back in—that's not really the gulp way.
Rather, you create a single task which passes code directly from compile to minification, but only for production.  To reuse code, you don't wrap it in tasks, you wrap it in functions.
For example, you might have a function like:
function compileTS() {
    return gulp.src(...).pipe(...);
}

gulp.task('compile-dev', function() {
    return compileTS().pipe(gulp.dest(...));
});
gulp.task('compile-prod', function() {
    return compileTS().pipe(minificationFunction()).pipe(gulp.dest(...));
});

You can even pipe to gulp.dest() twice in the prod function if you want both the minified and unminified files, since it's a pass-through.

Also: lazypipe (linked above) makes it even easier to build up reusable pipe streams.

Makes sense, thanks.


Consider building container images for pre-releases

Tell us about your request
I'm very interested in some alpha features, but I'd still like to not have to build/store copies of the Karpenter image. Would it be possible for you to build alpha images as well, so that folks could manually override the image value in the Helm chart if they want to test bleeding edge stuff? The list of tags is already available at https://gallery.ecr.aws/karpenter/controller so there's no need to create github tags or anything, I'd just like to have alpha/beta bits easily accessible for testing

We build nightlies and snapshots for every commit now.  You can find these at https://gallery.ecr.aws/karpenter/karpenter along with instructions on using them.


Make Meshes from extrusions

Hi Sebastian,
First of all, thank you for already posting this library, it might be exactly what I was looking for. However, I seem to struggling with another issue. If I try to do the subtraction from Solids I generated myself, I have strange results. I try to do something like this:

protected Solid Extrude_Element_List_To_Net3DBoolSolid(CS2DElmList povElmList, double ldvZ_Start, double ldvZ_End)
        {
            var lovNewCollection = ConvertToCCWPointList(povElmList);

            var lovTuple = Convert_From_Point_Collection_To_Triangles_And_Vertices(lovNewCollection);

            int livNmb_Of_Vertices = lovNewCollection.Count();
            Vector3d[] lovVertices = new Vector3d[livNmb_Of_Vertices * 2];

            List<CSBG_Triangle> lovTriangles = lovTuple.Item1;
            List<CSBG_Vertex> lovCSBG_Vertices = lovTuple.Item2;

            var lovList_Of_Indices = new List<int>();

            foreach (var lovTriangle in lovTriangles)
            {
                double ldvA = lovTriangle.Vertex_B.X * lovTriangle.Vertex_A.Y + lovTriangle.Vertex_C.X * lovTriangle.Vertex_B.Y + lovTriangle.Vertex_A.X * lovTriangle.Vertex_C.Y;
                double ldvB = lovTriangle.Vertex_A.X * lovTriangle.Vertex_B.Y + lovTriangle.Vertex_B.X * lovTriangle.Vertex_C.Y + lovTriangle.Vertex_C.X * lovTriangle.Vertex_A.Y;

                //A = x2y1 + x3y2 + x1y3 and B = x1y2 + x2y3 + x3y1

                if (ldvA < ldvB)
                {
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_C));
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_B));
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_A));

                }
                else
                {
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_A));
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_B));
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_C));

                }

                _ = 5;
            }

            for (int i = 0; i < livNmb_Of_Vertices; i++)
            {
                lovVertices[i] = Convert_From_CSG_Vertex_To_OpenTKVector(lovCSBG_Vertices[i], ldvZ_Start);
                lovVertices[i + livNmb_Of_Vertices] = Convert_From_CSG_Vertex_To_OpenTKVector(lovCSBG_Vertices[i], ldvZ_End);

                lovList_Of_Indices.Add((i + 1) % livNmb_Of_Vertices);
                lovList_Of_Indices.Add(i);
                lovList_Of_Indices.Add(i + livNmb_Of_Vertices);

                lovList_Of_Indices.Add((i + 1) % livNmb_Of_Vertices);
                lovList_Of_Indices.Add(i + livNmb_Of_Vertices);
                lovList_Of_Indices.Add(((i + 1) % livNmb_Of_Vertices) + livNmb_Of_Vertices);
            }

            int livCounter_AWins = 0;
            int livCounter_BWins = 0;

            foreach (var lovTriangle in lovTriangles)
            {
                double ldvA = lovTriangle.Vertex_B.X * lovTriangle.Vertex_A.Y + lovTriangle.Vertex_C.X * lovTriangle.Vertex_B.Y + lovTriangle.Vertex_A.X * lovTriangle.Vertex_C.Y;
                double ldvB = lovTriangle.Vertex_A.X * lovTriangle.Vertex_B.Y + lovTriangle.Vertex_B.X * lovTriangle.Vertex_C.Y + lovTriangle.Vertex_C.X * lovTriangle.Vertex_A.Y;

                //A = x2y1 + x3y2 + x1y3 and B = x1y2 + x2y3 + x3y1

                if (ldvA < ldvB)
                {

                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_A) + livNmb_Of_Vertices);
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_B) + livNmb_Of_Vertices);
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_C) + livNmb_Of_Vertices);
                    livCounter_AWins++;
                }
                else
                {

                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_C) + livNmb_Of_Vertices);
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_B) + livNmb_Of_Vertices);
                    lovList_Of_Indices.Add(lovCSBG_Vertices.IndexOf(lovTriangle.Vertex_A) + livNmb_Of_Vertices);
                    livCounter_BWins++;
                }

                _ = 5;
            }

            return new Solid(lovVertices, lovList_Of_Indices.ToArray());
        } ```

and yes, if I draw with Helix toolkit I have the correct drawing, but I think there is something wrong with my orientation and it would be nice if in the library there is a method to generate solids from polygons, just like I described in my StackOverflow Question from a few days ago: [ https://stackoverflow.com/questions/66646403/how-can-i-extrude-a-list-of-2dpoints-to-a-mesh-and-subtract-these-extrusions-in ](this link). Can you please help me out?

If we find it, I am of course willing to contribute further and also on StackOverflow mention that this library and its possible improvements helped me to solve the problem. :)

Regards,
Joachim

@arakis  Hi Sebastian,
Please do not spend time for the moment on my issue. After searching, I think I finally found my problem.


ValueError when closing a file whose folder changed name in File Explorer

Description
What steps will reproduce the problem?

Open files in the editor.
Rename folders containing the files in File Explorer.
When a dialog box asks "Do you want to close ...?", select "Yes".

What is the expected output? What do you see instead?
I expect the files to be closed. (Or even better, the relocation inside File Explorer to be recognized so that I don't need to close and open the files again manually.)
Files are closed, but Spyder raised an exception. It didn't crash though.
Please provide any additional information below
File "/Users/yulkang/anaconda/envs/python3/lib/python3.5/site-packages/spyder/plugins/editor.py", line 1364, in close_file_in_all_editorstacks
index = editorstack.get_index_from_filename(filename)
File "/Users/yulkang/anaconda/envs/python3/lib/python3.5/site-packages/spyder/widgets/editor.py", line 1384, in get_index_from_filename
return filenames.index(filename)
ValueError: '/Users/yulkang/PATH_BEFORE_RENAMING/main_est_p.py' is not in list
Version and main components

Spyder Version: 3.2.6
Python Version: 3.5.2
Qt Versions: 5.6.2, PyQt5 5.6 on Darwin

Dependencies
pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  None (NOK)
numpy >=1.7      :  1.13.3 (OK)
sphinx >=0.6.6   :  1.6.4 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.9.0     :  0.10.2 (OK)
psutil >=0.3     :  5.3.1 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  None (NOK)
cython >=0.21    :  None (NOK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.2.1 (OK)
pylint >=0.25    :  1.7.1 (OK)

Thanks for reporting. We'll try to fix this problem in a future release.

The issue with this is that rename was only defined for files and not directories.  The pull request corrects that by iterating over all open files to check if they are in the renamed directory.


Added SplineCurve

Added SplineCurve to the Repo. See Page6 for a demo

I've committed production js bundle


ModuleNotFoundError: No module named "PIL"

trying to run this program and keep getting this :

Unpacking textures ...
Traceback (most recent call last):
File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\USER\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\pzmap2dzi-main\pzmap2dzi\texture.py", line 2, in
from PIL import Image
ModuleNotFoundError: No module named 'PIL'
Unpacking textures done
Copy html files ...
47 File(s) copied
Copy html files done
Render top view pz map ...
Traceback (most recent call last):
File "D:\pzmap2dzi-main\render_base_top.py", line 1, in
from PIL import Image, ImageDraw, ImageFont
ModuleNotFoundError: No module named 'PIL'
Render top view pz map done
Render top view zombie ...
Traceback (most recent call last):
File "D:\pzmap2dzi-main\render_zombie_top.py", line 1, in
from PIL import Image, ImageDraw, ImageFont
ModuleNotFoundError: No module named 'PIL'
Render top view zombie done
Render top view foraging ...
Traceback (most recent call last):
File "D:\pzmap2dzi-main\render_foraging_top.py", line 1, in
from PIL import Image, ImageDraw, ImageFont
ModuleNotFoundError: No module named 'PIL'
Render top view foraging done
All done

Not sure what I'm doing wrong, I have Python 3.10.5 installed, and ran the install_requirements.bat like instructed.

Update: While using Python 3.10.5, PIL is no longer supported out of the box, fixed the issue by installing Pillow.

I have updated the requirements.txt to include pillow for Python 3.10.5+.