Setting a type as design-time data context of a XAML control will cause issues in the code generator

Version of the Meziantou.Polyfill NuGet package
1.0.39
Description
Earlier today I faced a compilation issue, which I thought was related to upgrading .Net Framework to 4.8, but it turned out that it is related to this issue. In summary setting a type as design-time data context of a XAML control will cause issues in the code generator.
Reproduction Steps

Take the following repo: https://github.com/rezanid/xrmtools
Set the design-time data context of the AssemblySelectionDialog.xaml by adding the following line to the root element.

xmlns:ui="clr-namespace:XrmGen.UI" d:DataContext="{d:DesignInstance Type=ui:AssemblySelectionViewModel}"

Build.

Other information
You might need the Extensibility workload of VS to be able to build.

The linked project doesn't reference Meziantou.Polyfill. Could you provide a repro or the error message?

May bad, try this branch please: https://github.com/rezanid/xrmtools/tree/assembly-to-config-file
To reproduce you can replace line 10 of this file (currently empty):
https://github.com/rezanid/xrmtools/blob/assembly-to-config-file/UI/AssemblySelectionDialog.xaml
with this:
xmlns:ui="clr-namespace:XrmGen.UI" d:DataContext="{d:DesignInstance Type=ui:AssemblySelectionViewModel}"

I think this issue is because of the Design build, but I'm not an expert with this kind of special builds triggered by VS. This package is a standard source generator package. So, I don't know if there is something I can do to fix your issue. Maybe you can report the issue on VS to understand who can and how to fix that.

I didn't know there can be different kinds of builds. I will try to debug the generator to see if I can understand better.

You can use https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.ProjectSystemTools2022 to track all builds in VS.

👍🏼
Best regards,
Reza

From: Gérald Barré @.>
Sent: Friday, August 23, 2024 5:22:49 PM
To: meziantou/Meziantou.Polyfill @.>
Cc: Reza @.>; Author @.>
Subject: Re: [meziantou/Meziantou.Polyfill] Setting a type as design-time data context of a XAML control will cause issues in the code generator (Issue #42)
You can use https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.ProjectSystemTools2022 to track all builds in VS.
—
Reply to this email directly, view it on GitHubhttps://github.com/meziantou/Meziantou.Polyfill/issues/42#issuecomment-2307312045, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADLIVMGAQZWYRLIJND6I7N3ZS5HUTAVCNFSM6AAAAABM33MKGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBXGMYTEMBUGU.
You are receiving this because you authored the thread.Message ID: @.***>


Attempting to use the config-sample.json

Hello, I am getting an error, please see below
create config.json using the config-sample.json
cp config-sample.json config.json

Install gtfs-to-chart globally
npm install gtfs-to-chart -g

contents of config-sample.json
{
  "agencies": [
    {
      "agency_key": "bart",
      "url": "http://www.bart.gov/dev/schedules/google_transit.zip"
    }
  ],
  "sqlitePath": "/tmp/gtfs"
}

Running
gtfs-to-chart --configPath config.json

Output
Starting GTFS import for 1 file using SQLite database at /tmp/gtfs
Downloading GTFS from http://www.bart.gov/dev/schedules/google_transit.zip
Download successful
Importing GTFS from /tmp/tmp-141173-eank3fXmavG0/gtfs.zip
Importing - agency.txt - 1 lines imported
Importing - areas.txt - No file found
Importing - attributions.txt - No file found
Importing - calendar_dates.txt - 32 lines imported
Importing - calendar.txt - 13 lines imported
Importing - fare_attributes.txt - 2500 lines imported
Importing - fare_leg_rules.txt - No file found
Importing - fare_products.txt - No file found
Importing - fare_rules.txt - 2500 lines imported
Importing - fare_transfer_rules.txt - No file found
Importing - feed_info.txt - 1 lines imported
Importing - frequencies.txt - No file found
Importing - levels.txt - No file found
Importing - pathways.txt - No file found
Importing - routes.txt - 14 lines imported
Importing - shapes.txt - 38044 lines imported
Importing - stop_areas.txt - No file found
Importing - stop_times.txt - 61853 lines imported
Importing - stops.txt - 186 lines imported
Importing - transfers.txt - 41 lines imported
Importing - translations.txt - No file found
Importing - trips.txt - 4225 lines imported
Importing - calendar_attributes.txt - 11 lines imported
Importing - directions.txt - 14 lines imported
Importing - route_attributes.txt
Warning: Check route_attributes.txt for invalid data between lines 0 and 14.

file:///home/tmc/.nvm/versions/node/v16.19.1/lib/node_modules/gtfs-to-chart/node_modules/gtfs/lib/import.js:473
    throw error;
    ^
[  SqliteError: route_attributes.route_id

  - import.js:466 importLines
    [lib]/[gtfs-to-chart]/[gtfs]/lib/import.js:466:7

  - import.js:547 Parser.<anonymous>
    [lib]/[gtfs-to-chart]/[gtfs]/lib/import.js:547:11

  - node:events:513 Parser.emit
    node:events:513:28

  - readable:1358 endReadableNT
    node:internal/streams/readable:1358:12

  - task_queues:83 processTicksAndRejections
    node:internal/process/task_queues:83:21

] {
  code: 'SQLITE_CONSTRAINT_PRIMARYKEY'
}

Contents of route_attributes.txt
route_id,category,subcategory,running_way
1,2,201,1
2,2,201,1
3,2,201,1
4,2,201,1
5,2,201,1
6,2,201,1
7,2,201,1
8,2,201,1
11,2,201,1
12,2,201,1
19,3,301,1
20,3,301,1
2,2,201,1
1,2,201,1

Also, how would you recommend I get the data for Boston's MBTA?
I'm a little confused about sourcing that data
I see these data files https://transitfeeds.com/search?q=mbta
Thanks very much

Perhaps this is for Boston https://transitfeeds.com/p/mbta/64/latest

Not sure how to get MBTA data, this is my attempt:
Boston MBTA data
https://transitfeeds.com/p/mbta/64/latest
https://transitfeeds.com/p/mbta/64/latest/download
create config-mbta.json
{
  "agencies": [
    {
      "agency_key": "mbta",
      "url": "https://transitfeeds.com/p/mbta/64/latest/download/gtfs.zip"
    }
  ],
  "sqlitePath": "/tmp/gtfs"
}

Running
gtfs-to-chart --configPath config-mbta.json

Output
gtfs-to-chart --configPath config-mbta.json

Starting GTFS import for 1 file using SQLite database at /tmp/gtfs
Downloading GTFS from https://transitfeeds.com/p/mbta/64/latest/download/gtfs.zip
Error: Couldn’t download files
file:///home/tmc/.nvm/versions/node/v16.19.1/lib/node_modules/gtfs-to-chart/node_modules/gtfs/lib/import.js:41
    throw new Error('Couldn’t download files');
          ^

[  Error: Couldn’t download files

  - import.js:41 downloadFiles
    [lib]/[gtfs-to-chart]/[gtfs]/lib/import.js:41:11

  - task_queues:96 processTicksAndRejections
    node:internal/process/task_queues:96:5

  - import.js:597
    [lib]/[gtfs-to-chart]/[gtfs]/lib/import.js:597:9

  - index.js:7 async promiseMapSeries
    [lib]/[gtfs-to-chart]/[promise-map-series]/index.js:7:18

  - import.js:577 async importGtfs
    [lib]/[gtfs-to-chart]/[gtfs]/lib/import.js:577:5

  - gtfs-to-chart.js:43
    [lib]/[gtfs-to-chart]/lib/gtfs-to-chart.js:43:7

  - async Promise.all

  - gtfs-to-chart.js:66
    [lib]/[gtfs-to-chart]/bin/gtfs-to-chart.js:66:5

]

It looks like you can get MBTA's GTFS here: https://cdn.mbta.com/MBTA_GTFS.zip - try that URL

Also, try the gtfs-to-chart version 2.0.6 which was just released - this solves some issues with unzipping files in node.js v18 https://github.com/BlinkTagInc/gtfs-to-chart/releases/tag/2.0.6

I'm just noticing your reference to node v18, I am using v16
I will try node v18

Looks like it is still occurring even with node v18
nvm use v18

Output
Now using node v18.15.0 (npm v9.5.0)

Run
gtfs-to-chart --configPath config.json

Output
gtfs-to-chart: command not found

Install
npm install gtfs-to-chart -g

Output
added 319 packages in 14s

49 packages are looking for funding
  run `npm fund` for details

Run
gtfs-to-chart --configPath config.json

Output
Starting GTFS import for 1 file using SQLite database at /tmp/gtfs
Downloading GTFS from http://www.bart.gov/dev/schedules/google_transit.zip
Download successful
Importing GTFS from /tmp/tmp-181995-1WN38QCkMYFO/gtfs.zip
Importing - agency.txt - 1 lines imported
Importing - areas.txt - No file found
Importing - attributions.txt - No file found
Importing - calendar_dates.txt - 32 lines imported
Importing - calendar.txt - 13 lines imported
Importing - fare_attributes.txt - 2500 lines imported
Importing - fare_leg_rules.txt - No file found
Importing - fare_products.txt - No file found
Importing - fare_rules.txt - 2500 lines imported
Importing - fare_transfer_rules.txt - No file found
Importing - feed_info.txt - 1 lines imported
Importing - frequencies.txt - No file found
Importing - levels.txt - No file found
Importing - pathways.txt - No file found
Importing - routes.txt - 14 lines imported
Importing - shapes.txt - 38044 lines imported
Importing - stop_areas.txt - No file found
Importing - stop_times.txt - 61853 lines imported
Importing - stops.txt - 186 lines imported
Importing - transfers.txt - 41 lines imported
Importing - translations.txt - No file found
Importing - trips.txt - 4225 lines imported
Importing - calendar_attributes.txt - 11 lines imported
Importing - directions.txt - 14 lines imported
Importing - route_attributes.txt
Warning: Check route_attributes.txt for invalid data between lines 0 and 14.

file:///home/tmc/.nvm/versions/node/v18.15.0/lib/node_modules/gtfs-to-chart/node_modules/gtfs/lib/import.js:482
    throw error;
    ^
[  SqliteError: route_attributes.route_id

  - import.js:475 importLines
    [lib]/[gtfs-to-chart]/[gtfs]/lib/import.js:475:7

  - import.js:556 Parser.<anonymous>
    [lib]/[gtfs-to-chart]/[gtfs]/lib/import.js:556:11

  - node:events:513 Parser.emit
    node:events:513:28

  - readable:1359 endReadableNT
    node:internal/streams/readable:1359:12

  - task_queues:82 process.processTicksAndRejections
    node:internal/process/task_queues:82:21

] {
  code: 'SQLITE_CONSTRAINT_PRIMARYKEY'
}

Node.js v18.15.0

Great news - MBTA loads and makes charts - looks like the problem file route_attributes.txt does not exist in the MBTA file
big file with lots of rows
gtfs-to-chart --configPath config-mbta.json

Output
Starting GTFS import for 1 file using SQLite database at /tmp/gtfs
Downloading GTFS from https://cdn.mbta.com/MBTA_GTFS.zip
Download successful
Importing GTFS from /tmp/tmp-182845-5Sj01ZrXnN4T/gtfs.zip
Importing - agency.txt - 1 lines imported
Importing - areas.txt - 32 lines imported
Importing - attributions.txt - No file found
Importing - calendar_dates.txt - 54 lines imported
Importing - calendar.txt - 90 lines imported
Importing - fare_attributes.txt - No file found
Importing - fare_leg_rules.txt - 456 lines imported
Importing - fare_products.txt - 87 lines imported
Importing - fare_rules.txt - No file found
Importing - fare_transfer_rules.txt - 37 lines imported
Importing - feed_info.txt - 1 lines imported
Importing - frequencies.txt - No file found
Importing - levels.txt - 74 lines imported
Importing - pathways.txt - 7999 lines imported
Importing - routes.txt - 219 lines imported
Importing - shapes.txt - 258537 lines imported
Importing - stop_areas.txt - 758 lines imported
Importing - stop_times.txt - 1605036 lines imported
Importing - stops.txt - 9743 lines imported
Importing - transfers.txt - 5312 lines imported
Importing - translations.txt - No file found
Importing - trips.txt - 65139 lines imported
Importing - calendar_attributes.txt - 90 lines imported
Importing - directions.txt - 378 lines imported
Completed GTFS import for 1 agency
mbta: Generating charts [===================================----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 35/219
Warning: No trips found for route CR-Foxboro on May 5, 2023
mbta: Generating charts [============================================================================================================================-----------------------------------------------------------------------------------------------] 124/219
Warning: No trips found for route Shuttle-Generic-CommuterRail-South on May 5, 2023

Warning: No trips found for route Shuttle-Generic-CommuterRail-North on May 5, 2023

Warning: No trips found for route Shuttle-Generic-CommuterRail on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Blue on May 5, 2023

Warning: No trips found for route Shuttle-Generic on May 5, 2023
mbta: Generating charts [===============================================================================================================================================================================--------------------------------------------] 175/219
Warning: No trips found for route 195 on May 5, 2023
mbta: Generating charts [============================================================================================================================================================================================-------------------------------] 188/219
Warning: No trips found for route Shuttle-JFKPark on May 5, 2023
mbta: Generating charts [==============================================================================================================================================================================================-----------------------------] 190/219
Warning: No trips found for route Shuttle-JFKKendall on May 5, 2023
mbta: Generating charts [=================================================================================================================================================================================================--------------------------] 193/219
Warning: No trips found for route Shuttle-GovernmentCenterWonderland on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Worcester on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Red-Trunk on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Red-Braintree on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Red-Ashmont on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Red on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Providence on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Orange on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Newburyport on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Needham on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Middleborough on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Mattapan on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Lowell on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Kingston on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Haverhill on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Green-Trunk on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Green-E on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Green-D on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Green-C on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Greenbush on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Green-B on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Green on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Franklin on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Fitchburg on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Fairmount on May 5, 2023

Warning: No trips found for route Shuttle-Generic-Elevator on May 5, 2023
mbta: Generating charts [===========================================================================================================================================================================================================================] 219/219

mbta: charts created at /home/tmc/ap/vol6/gtfs-to-chart-stringlines/charts/mbta

I am wondering the best way to view the charts?
I can open the index file on my machine and browse each one, but I can't view them via GitHub at my repo
https://github.com/coding-to-music/gtfs-to-chart-stringlines/tree/main/charts/mbta
Is there an existing React or NextJS or Angular app that knows how to view the charts?
Also, when I look at a chart, it appears to only contain a single inbound and outbound row, perhaps from last night's last run of the day?

It does not show the trips throughout the day, such as this similar one I saw the other day on Twitter, not sure how it was generated https://twitter.com/ndhapple/status/1654169426944458773

I tried out https://github.com/brendannee/whereisbart.com  very cool
And magically was able to deploy my clone to vercel, works, amazing! https://whereisbart-leaflet-google-transit.vercel.app
I tried the same with this, I was able to deploy via  vercel --prod and specify the file locations are in charts/mbta
pretty cool, it works!!  https://gtfs-to-chart-stringlines.vercel.app
I wonder why only the last runs of the day are visible?
For example

Green-B https://gtfs-to-chart-stringlines.vercel.app/charts/B.html

Green-C https://gtfs-to-chart-stringlines.vercel.app/charts/C.html

Green-D https://gtfs-to-chart-stringlines.vercel.app/charts/D.html

Green-E https://gtfs-to-chart-stringlines.vercel.app/charts/E.html

Orange Line https://gtfs-to-chart-stringlines.vercel.app/charts/Orange Line.html

Blue https://gtfs-to-chart-stringlines.vercel.app/charts/Blue Line.html

Nothing for the Red Line https://gtfs-to-chart-stringlines.vercel.app/charts/Red Line.html


ISPN-10389 Clean up the test HTTP client

https://issues.jboss.org/browse/ISPN-10389

Superseded by https://github.com/infinispan/infinispan/pull/7126


[Usage] Unfixed Random Seed and Get the Different Result in each Experiments

Describe the issue
Hi,
I am trying to fine-tune ViP-LLaVA with my own dataset.
However, the performance of the model is different in each experiments, even though I fixed the random seed like below.
def set_global_seed(seed):
    os.environ['PYTHONHASHSEED'] = str(seed)
    random.seed(seed)
    np.random.seed(seed)
    torch.manual_seed(seed)
    torch.cuda.manual_seed(seed)
    torch.cuda.manual_seed_all(seed)
    set_seed(seed)
    torch.backends.cudnn.deterministic = True
    torch.backends.cudnn.benchmark = False

I found the same problem here, LLaVA 1.5, your basic model.
In your experiment, did you fix the random seed to get the same result in every experiment?
If so, I would like to know how to fix it.
Thanks in advance.

Thanks for your question,
No, I did not set the seed for my experiments.
I think given a trained checkpoint, at least for evaluation you can fix the seed.


Workflows that run on PRs should auto cancel runs on previous commits

Motivation:

Saves CI time (and maybe money)
No need to have outdated runs, especially if they fail and then erroneous notifications are sent.

ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency


ISLE: Allow redefining/shadowing variables inside of lets

Originally https://github.com/cfallin/isle/issues/9

This example redefines carry and hi_shifted:
(decl shl_i128 (ValueRegs Reg) ValueRegs)
(rule (shl_i128 src amt)
      ;; Unpack the registers that make up the 128-bit value being shifted.
      (let ((src_lo Reg (value_regs_get src 0))
            (src_hi Reg (value_regs_get src 1))
            ;; Do two 64-bit shifts.
            (lo_shifted Reg (shl $I64 src_lo (Imm8Reg.Reg amt)))
            (hi_shifted Reg (shl $I64 src_hi (Imm8Reg.Reg amt)))
            ;; `src_lo >> (64 - shift)` are the bits to carry over from the lo
            ;; into the hi.
            (carry Reg (shr $I64 src_lo (Imm8Reg.Reg (sub $I64 (imm $I64 64) (RegMemImm.Reg amt)))))
            (zero Reg (imm $I64 0))
            ;; Nullify the carry if we are shifting in by a multiple of 128.
            (carry Reg (with_flags_1 (test (OperandSize.Size64) (RegMemImm.Imm 127) amt)
                                     (cmove $I64 (CC.Z) (RegMem.Reg zero) carry)))
            ;; Add the carry into the high half.
            (hi_shifted Reg (or $I64 carry (RegMemImm.Reg hi_shifted))))
        ;; Combine the two shifted halves. However, if we are shifting by 64,
        ;; then the low bits are zero and the high bits are our low bits.
        (with_flags_2 (test (OperandSize.Size64) (RegMemImm.Imm 64) amt)
                      (cmove $I64 (CC.Z) (RegMem.Reg lo_shifted) zero)
                      (cmove $I64 (CC.Z) (RegMem.Reg hi_shifted) lo_shifted))))

Without the ability to redefine, we have to use names like carry2 and hi_shifted2 or something, like Erlang.

Fixed in #4562


Nexus - curl: (7) Failed to connect - error

Describe the bug
When deploying a new TRE Nexus does not work.

Connecting to a VM and accessing Nexus via Edge displays a refused to connect page.
Connecting to the Nexus VM via the portal and running curl https://nexus-trea44c387c.uksouth.cloudapp.azure.com gives the below error.

Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings

Last login: Tue Nov 15 09:02:20 2022 from <IP_ADDRESS>
adminuser@nexus-trejaimie01:~$ curl https://nexus-trejaimie01.uksouth.cloudapp.azure.com
curl: (7) Failed to connect to nexus-trejaimie01.uksouth.cloudapp.azure.com port 443: Connection refused

Nexus failing in all TREs, as seen by the variety of TRE_IDs
Steps to reproduce

Deploy a new TRE based on the most recent commit (#2858).
Deploy a base Workspace and Virtual Machine.
Deploy Nexus as a Shared Service.
Access Nexus from within the VM. refused to connect

Access the admin Nexus VM via the portal and curl the URL. Failed to connect.. connection refused

I am experiencing same issue for last 4 days Digging more in to Nexus VM, I discovered following errors in /var/log/cloud-init-output.log
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/gpg.py", line 101, in recv_key
naplen = next(sleeps)
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cloudinit/gpg.py", line 130, in getkeybyid
    recv_key(keyid, keyserver=keyserver)
  File "/usr/lib/python3/dist-packages/cloudinit/gpg.py", line 112, in recv_key
    ) from e
ValueError: Failed to import key 'BC528686B50D79E339D3721CEB3E94ADBE1229CF' from keyserver 'hkp://keyserver.ubuntu.com:80' after 3 tries: Unexpected error while running command.
Command: ['gpg', '--no-tty', '--keyserver=hkp://keyserver.ubuntu.com:80', '--recv-keys', 'BC528686B50D79E339D3721CEB3E94ADBE1229CF']
Exit code: 2
Reason: -
Stdout:
Stderr: gpg: keyserver receive failed: No data
2022-11-15 17:46:48,420 - gpg.py[WARNING]: Failed delete key "BC528686B50D79E339D3721CEB3E94ADBE1229CF": Unexpected error while running command.
Command: ['gpg', '--batch', '--yes', '--delete-keys', 'BC528686B50D79E339D3721CEB3E94ADBE1229CF']
Exit code: 2
Reason: -
Stdout:
Stderr: gpg: key "BC528686B50D79E339D3721CEB3E94ADBE1229CF" not found: Not found
gpg: BC528686B50D79E339D3721CEB3E94ADBE1229CF: delete key failed: Not found

Packages got failed to install

2022-11-15 17:46:50,246 - util.py[WARNING]: Failed to install packages: ['docker-ce', 'docker-ce-cli', 'containerd.io', 'docker-compose', 'gnupg2', 'pass', 'azure-cli', 'default-jre', 'xmlst
arlet', 'jq']
2022-11-15 17:46:50,248 - cc_package_update_upgrade_install.py[WARNING]: 2 failed with exceptions, re-raising the last one
2022-11-15 17:46:50,249 - util.py[WARNING]: Running module package-update-upgrade-install (<module 'cloudinit.config.cc_package_update_upgrade_install' from '/usr/lib/python3/dist-packages/c
loudinit/config/cc_package_update_upgrade_install.py'>) failed
/var/lib/cloud/instance/scripts/runcmd: 4: /var/lib/cloud/instance/scripts/runcmd: docker: not found
Checking for Nexus admin password file...
ERROR - Timeout while waiting for nexus-data/admin.password to be created
/etc/cron.daily/configure_nexus_ssl.sh: line 11: az: command not found
Checking for ./nexus_repos_config directory...
Found config file: /tmp/nexus_repos_config/almalinux_proxy_conf.json. Sending to Nexus...
/tmp/configure_nexus_repos.sh: line 27: jq: command not found

I believe this is fixed in #2818 - I have deployed and not seen the issue from the latest release (which does not have this fix) but others have.
@jjgriff93 can you confirm you agree?
As a workaround use the templates in main until the PR is included in the release.

Yes, this has been fixed and will be rolled out in the next release

Thanks @marrobi & @jjgriff93 , any expected timeframe for a new release having this fix? Since 0.6.0 is broken and I cannot proceed further without nexus. My other team members waiting to get TRE env up & running to carry on their Data related jobs.
Is there any other way I can get this working while new release is coming up?

@RIashfaqahmed you can be unblicked immediately by taking the directory at https://github.com/microsoft/AzureTRE/tree/main/templates/shared_services/sonatype-nexus-vm and register it instead of the bundle in the release - as per https://microsoft.github.io/AzureTRE/tre-admins/setup-instructions/cicd-deplyment/#publish-custom-templates-in-pipelines
Expect the release be done in the next week or so.
If you are working with/for a specific Microsoft customer, please feel free to drop me an email on marcus.robinson at microsoft.com and can see how we can support you further.

We're hoping to get a release through today, we're just waiting on a PR to go through. In the meantime, you can work around this issue by following the steps in my comment on the original bug: https://github.com/microsoft/AzureTRE/issues/2785. Let me know if you have any issues.

@RIashfaqahmed @jjgriff93 - yes forgot about that workaround too. Might be a quicker short term fix.

@jjgriff93 I assume you are talking about https://github.com/microsoft/AzureTRE/issues/2785#issuecomment-1293314470 for  a quick interim solution?

@RIashfaqahmed Yes that's the one, you'll need to SSH into the Nexus VM either using the serial console or Bastion (you can find the password in your TRE key vault, and the username will be 'adminuser')

@jjgriff93 you rock. Followed instructions and it worked like a charm. Thank you both @jjgriff93 & @marrobi

No problem! Glad you're unblocked :)

Hi @marrobi @jjgriff93. Sorry, that hasn't worked for me.
For an existing TRE I ran the steps in #2785. I can then see the Nexus UI from within the VM but with no repositories listed. When looking at the /var/log/cloud-init-output.logs file I see the below error:
Nexus ssl configuration completed.
Checking for ./nexus_repos_config directory...
ERROR - Timeout while waiting for nexus_repos_config directory
2022-11-16 11:50:47,955 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2022-11-16 11:50:47,955 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
Cloud-init v. 22.3.4-0ubuntu1~18.04.1 finished at Wed, 16 Nov 2022 11:50:48 +0000. Datasource DataSourceAzure [seed=/var/lib/waagent].  Up 516395.42 seconds

Also, I have deployed a brand new TRE based on the most recent commit in OSS #2873 and I see the same issue as stated in the original message. Looking at the cloud-init-output.logs, I see the error below:
E: Unable to locate package docker-compose
E: Package 'gnupg2' has no installation candidate
E: Unable to locate package pass
E: Unable to locate package xmlstarlet
E: Unable to locate package jq
Cloud-init v. 22.3.4-0ubuntu1~18.04.1 running 'modules:final' at Wed, 16 Nov 2022 11:13:50 +0000. Up 78.20 seconds.
2022-11-16 11:13:51,324 - util.py[WARNING]: Failed to install packages: ['docker-ce', 'docker-ce-cli', 'containerd.io', 'docker-compose', 'gnupg2', 'pass', 'azure-cli', 'default-jre', 'xmlstarlet', 'jq']
2022-11-16 11:13:51,387 - cc_package_update_upgrade_install.py[WARNING]: 1 failed with exceptions, re-raising the last one
2022-11-16 11:13:51,388 - util.py[WARNING]: Running module package-update-upgrade-install (<module 'cloudinit.config.cc_package_update_upgrade_install' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_packa
ge_update_upgrade_install.py'>) failed
/var/lib/cloud/instance/scripts/runcmd: 4: /var/lib/cloud/instance/scripts/runcmd: docker: not found
Checking for Nexus admin password file...
ERROR - Timeout while waiting for nexus-data/admin.password to be created
/etc/cron.daily/configure_nexus_ssl.sh: line 11: az: command not found
Checking for ./nexus_repos_config directory...
Found config file: /tmp/nexus_repos_config/almalinux_proxy_conf.json. Sending to Nexus...
/tmp/configure_nexus_repos.sh: line 27: jq: command not found
/tmp/configure_nexus_repos.sh: line 28: jq: command not found
/tmp/configure_nexus_repos.sh: line 29: jq: command not found
Response received from Nexus: 000
Response received from Nexus: 000
Response received from Nexus: 000
....
ERROR - Timeout while trying to configure
2022-11-16 11:23:56,756 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2022-11-16 11:23:56,756 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
Cloud-init v. 22.3.4-0ubuntu1~18.04.1 finished at Wed, 16 Nov 2022 11:23:56 +0000. Datasource DataSourceAzure [seed=/dev/sr0].  Up 684.49 seconds

cloud-init.logs
2022-11-16 11:44:12,102 - handlers.py[DEBUG]: start: modules-final/config-scripts-user: running config-scripts-user with frequency once-per-instance
2022-11-16 11:44:12,103 - util.py[DEBUG]: Writing to /var/lib/cloud/instances/0974f91e-e18c-4744-a903-ac799e358c1b/sem/config_scripts_user - wb: [644] 25 bytes
2022-11-16 11:44:12,103 - helpers.py[DEBUG]: Running config-scripts-user using lock (<FileLock using file '/var/lib/cloud/instances/0974f91e-e18c-4744-a903-ac799e358c1b/sem/config_scripts_user'>)
2022-11-16 11:44:12,103 - subp.py[DEBUG]: Running command ['/var/lib/cloud/instance/scripts/runcmd'] with allowed return codes [0] (shell=False, capture=False)
2022-11-16 11:50:47,955 - subp.py[DEBUG]: Unexpected error while running command.
Command: ['/var/lib/cloud/instance/scripts/runcmd']
Exit code: 1
Reason: -
Stdout: -
Stderr: -
2022-11-16 11:50:47,955 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2022-11-16 11:50:47,955 - handlers.py[DEBUG]: finish: modules-final/config-scripts-user: FAIL: running config-scripts-user with frequency once-per-instance
2022-11-16 11:50:47,955 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
2022-11-16 11:50:47,955 - util.py[DEBUG]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cloudinit/config/modules.py", line 247, in _run_modules
    run_name, mod.handle, func_args, freq=freq
  File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 67, in run
    return self._runners.run(name, functor, args, freq, clear_on_fail)
  File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 185, in run
    results = functor(*args)
  File "/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py", line 49, in handle
    subp.runparts(runparts_path)
  File "/usr/lib/python3/dist-packages/cloudinit/subp.py", line 429, in runparts
    % (len(failed), ",".join(failed), len(attempted))
RuntimeError: Runparts: 1 failures (runcmd) in 1 attempted commands

@JaimieWi Hmmm, could you check your firewall rules and see if there is an application rule group for nexus? Seems like it's a firewall issue as your Nexus VM is trying to get packages and failing. The change that you should have introduces a rule group that allows the package sources that Nexus needs within the core firewall deployment

@jjgriff93 I may have found the issue, it seems when trying to curl the docker URL I see this error:
 curl https://download.docker.com/linux/ubuntu

<title>302 Moved Temporarily</title>

302 Moved Temporarily

Code: Found

Message: Resource Found

RequestId: 80BJACHKWRFT2MZH

HostId: 7aLrPOKeqnQg7QxZctxrmpm1dzkvNiyl211lfzXN+JMcYiLNsXQxfrbde8MBjdETaQ+aIHeeoAE=

Looking at the firewall logs I can't see that any of the nexus-bootstrap Target FQDN's are being denied.

Hi @jjgriff93, We have found and solved the issue :D I am testing the full solution now but if it work would you like me to create a PR?
The issue came from none of the packages being outlined in the sonatype-nexus-vm/cloud-config.yaml being installed. Running sudo apt install update and then sudo apt install <list_of_packages> on the Nexus VM, allowed the runcmd script within /var/lib/cloud/instance/scripts/ to be run.
Therefore, I am going to add package_update: true to the cloud-config.yaml, alongside the package_upgrade: true which is already there. I will test that in our pipeline now.

Fantastic, yes please do PR it and I shall review. Thanks!

Hi @marrobi @jjgriff93 I have created a PR with the changes that were required and explained the issue. Please let me know if there is anything that you'd like changed. I will close this issue now! Thanks!


Update README.md - final spacing issue fix

Description
This PR includes the following proposed change(s):

DF-436 - spacing issue

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Refactoring / Documentation

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes

Sorry @shaunmillargov , one more attempt to fix spacing issue


The buttons: Open/Save/Reset in the Settings window should have the tooltips

Steps to Reproduce

Launch Ketcher
Open the Settings window
Move with a cursor over the buttons:

Open
Save
Reset

Expected behavior
The buttons have tooltips and show them after moving with a cursor over the buttons

Tooltip for the Open button -> Open From File
Tooltip for the Save button -> Save to File
Tooltip for the Reset button -> Reset

Actual behavior
The buttons don't have the tooltips
OS: [Windows NT 10.0 Win64; x64]
Browsers: Google Chrome: Version 100.0.4896.88/FireFox: Version 99.0.1 (64-bit)
Ketcher v2.4.2-345-gabb79b21

Verified as fixed on Release 2.5.0.


"draw_line" snaps positions to integer

Godot version:
3.2.beta1
OS/device including version:
Ubuntu
Issue description:
When calling draw_line() inside the CanvasItem it seems like the values are snapped to the next integer. The effect becomes very apparent when you use a Control with a rect_scale.
It's a regression from the previous version.
3.2.alpha3

3.2.beta1

My example uses a Control node with rect_scale set to (4, 4), this is probably the reason why each "angled" line is 4 pixels tall.
Steps to reproduce:

Create a Control node.
Set it's rect_scale to something bigger.
Call draw_line() inside of _draw() with floating point numbers.

Probably a consequence of #32657, CC @ptrojahn.


NodeJS induced install failed - how to revert?

I'm not going to stick to the proposed template for reporting issues, but please bear with me.
I installed NodeJS 8 for Windows, using their standard installer. It asked me if I wanted to also install Chocolatey/Boxstarter, in order to be able to build C/C++ packages. I checked "yes", naively not even looking up what these things are.
After the NodeJS installation finished, some script started installing Chocolatey and Boxstarter. After a couple of restarts and lots of scary messages about disabling Windows Update and UAC, the installation failed (I think) with the following message:
Chocolatey reported an unsuccessful exit code of 3010. See C:\Users\oskar\AppData\Local\Boxstarter\boxstarter.log for details.
+ Boxstarter finished Calling Chocolatey to install . This may take several minutes to complete... 00:08:56.0752760
+ Boxstarter finished Calling Chocolatey to install . This may take several minutes to complete... 00:08:56.0752760
Only an exit code of non-zero will fail the package by default. Set
 `--failonstderr` if you want error messages to also fail a script. See
 `choco -h` for details.
 The install of tmpd8eb.tmp was successful.
  Software installed to 'C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Phone Sirep\8.1\'

Chocolatey installed 1/1 packages. 0 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Chocolatey : Chocolatey reported an unsuccessful exit code of 3010. See
C:\Users\oskar\AppData\Local\Boxstarter\boxstarter.log for details.
At C:\ProgramData\boxstarter\BoxStarter.Chocolatey\Invoke-ChocolateyBoxstarter.ps1:199 char:5
+     Chocolatey install $bootstrapPackage -source $source -force:$forc ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,chocolatey

++ Boxstarter finished Calling Chocolatey to install tmpD8EB.tmp. This may take several minutes to complete... 00:09:05.8946195
True
Boxstarter: Restore Automatic Updates from Windows Update
Boxstarter: Enabling UAC

The log file (boxstarter.log) contains 600kb of uninteresting logs. The most relevant line, which is repeated a few times is:
Error getting parent process

Let me know if you need the full log.
Now, I can't help but to feel that my computer has been a bit violated, and my questions are:

What did the install script do, and where can I find it, to read it myself? All those restarts indicate that it did some low level system alterations.
What exactly did it install? Chocolatey, Boxstarter, VS modules, Python, what else?
How do I undo all the things it did? E.g. what files do I remove, do I need to restore BIOS virtualization settings, what environment variables do I need to remove/reset?

Related to #356 ?

I am fairly sure I know what was going on here. I have been collecting some information together and hoping to put it all together in a write up tonight.

Arrived here with same problem. My goal was to compile some apps, so I naively thought it will chain with downloading libraries and a few scripts. The messages in command line are way too long to be read. Remember it's just an update of nodejs. Windows rebooted without warning ( I had a project open and other things), and again rebooted. Finally failed as above. Messages are way too long and fast to be read.
This was for Nodejs 10.13.0 , on Windows 10 pro.
I think the checkbox was deceptive as per consequences. It should be a completely different package or with several messages box.
I felt trapped like in the times of old Microsoft cascades of updates, KB etc.

@BrunoWinck You might want to add your voice over at https://github.com/nodejs/node/issues/23838 to help those guys out.


Crashing with optifine

The game crashes when using this mod with Optifine
log: https://paste.ee/p/gtXfM

Seconded, it's happening with me in current version (1.4.3)

Same, crash if also using optifine with the last version of the mod in 1.18.
Crash report says it's a mixin failure of onApplyFogUnderWater function. This must be a conflict as it occurs only with optifine.
crash-2021-12-17_23.55.49-client.txt

Am not planning to add compatibility with OptiFine in the future--sorry!


Implicit match from the start.

{|,}1 would perform the same task as |,}1 (Output 1 if input is 0, else output 1 infinitely if input is 1).
Must work for lists and conditionals.

This might be a silly approach, but couldn't you just check the whole string for unpaired close brackets and prepend as many open brackets as necessary to match them?

Any takers? Would be useful if it's not too hard to implement

This would only be able to be implemented for ] and }, as ) has special meaning.

@Lyxal Does ; count?

There's no way to unambiguously tell what the matching opening bracket for a ; would be because it's used for multiple things

@Lyxal Then use flags for that.

mm yes, flags, the fix for everything

I don't think this seems to be a feasible thing to implement going forward. Definitely not in vyxal 3 where only } closes things, and vyxal 2 already has different meanings for closing brackets not associated with strutures.


hotfix(utils): fix drivable area expansion with intersection area

Description
related link: TIER IV INTERNAL LINK

https://github.com/autowarefoundation/autoware.universe/pull/5109
https://github.com/autowarefoundation/autoware.universe/pull/5198
https://github.com/autowarefoundation/autoware.universe/pull/5384

Tests performed

Effects on system behavior

Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@satoshi-ota
Please consider adding the comment in the PR

// If the angle between the points is sharper than 45 degrees, remove the middle point.

@satoshi-ota Please consider adding the comment in the PR

// If the angle between the points is sharper than 45 degrees, remove the middle point.

@kyoichi-sugahara Thanks for your comment! OK. I'll add comment in https://github.com/autowarefoundation/autoware.universe/pull/5384.

memo
squash mergeではなくmerge commitでマージする


Fix node artifact build on kokoro

The kokoro windows workers are using cygwin, so
%HOMEDRIVE%%HOMEPATH% resolves to C:\cygwin64\home\builder, while .node-gyp actually lives in C:\Users\builder\.node-gyp
Changed to %USERPROFILE% which seems to resolve to the correct path on both Jenkins and Kokoro.

Jenkins artifact build is here: https://grpc-testing.appspot.com/view/Artifacts/job/gRPC_build_artifacts/442/

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences

Known failures:
https://github.com/grpc/grpc/issues/11757
https://github.com/grpc/grpc/issues/11745
https://github.com/grpc/grpc/issues/11383


Spaces in path's name cause Too many arguments error in funcMRIQC.fMRI_HMC_afni.gen_ref

Version: MRIQC version 0.15.0.post1
As in object, 3dvolreg gives a FATAL ERROR: Too many arguments?! out if there are spaces in path.
A workaround is mounting with the option --bind the path somewhere else, linking the path doesn't work.
2019-07-02 17:18:07,670 nipype.workflow:WARNING [Node] Error on "workflow_enumerator.funcMRIQC.fMRI_HMC_afni.gen_ref" (/media/andreas/My Book/fMRIPrep/mriqc/tmp/workflow_enumerator/funcMRIQC/fMRI_HMC_afni/_in_file_..media..andreas..MyBook..fMRIPrep..bids-dset..sub-01..func..sub-01_task-formlang_run-01_bold.nii.gz/gen_ref)
190702-17:18:08,596 nipype.workflow ERROR:
     Node gen_ref.a0 failed to run on host dr-doom.
2019-07-02 17:18:08,596 nipype.workflow:ERROR Node gen_ref.a0 failed to run on host dr-doom.
190702-17:18:08,597 nipype.workflow ERROR:
     Saving crash info to /media/andreas/My Book/fMRIPrep/mriqc/Output/logs/crash-20190702-171808-andreas-gen_ref.a0-39cd8300-24bb-49f0-a806-932ae900569c.txt
Traceback (most recent call last):
  File "/home/andreas/.local/lib/python3.6/site-packages/nipype/pipeline/plugins/multiproc.py", line 69, in run_node
    result['result'] = node.run(updatehash=updatehash)
  File "/home/andreas/.local/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 472, in run
    result = self._run_interface(execute=True)
  File "/home/andreas/.local/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 563, in _run_interface
    return self._run_command(execute)
  File "/home/andreas/.local/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 643, in _run_command
    result = self._interface.run(cwd=outdir)
  File "/home/andreas/.local/lib/python3.6/site-packages/nipype/interfaces/base/core.py", line 375, in run
    runtime = self._run_interface(runtime)
  File "/home/andreas/.local/lib/python3.6/site-packages/niworkflows/interfaces/registration.py", line 399, in _run_interface
    zpad=4, outputtype='NIFTI_GZ').run()
  File "/home/andreas/.local/lib/python3.6/site-packages/nipype/interfaces/base/core.py", line 375, in run
    runtime = self._run_interface(runtime)
  File "/home/andreas/.local/lib/python3.6/site-packages/nipype/interfaces/afni/base.py", line 110, in _run_interface
    return super(AFNICommandBase, self)._run_interface(runtime)
  File "/home/andreas/.local/lib/python3.6/site-packages/nipype/interfaces/base/core.py", line 758, in _run_interface
    self.raise_exception(runtime)
  File "/home/andreas/.local/lib/python3.6/site-packages/nipype/interfaces/base/core.py", line 695, in raise_exception
    ).format(**runtime.dictcopy()))
RuntimeError: Command:
3dvolreg -Fourier -twopass -1Dfile slice.1D -1Dmatrix_save slice.aff12.1D -prefix slice_volreg.nii.gz -zpad 4 -maxdisp1D slice_md.1D /media/andreas/My Book/fMRIPrep/mriqc/tmp/workflow_enumerator/funcMRIQC/fMRI_HMC_afni/_in_file_..media..andreas..MyBook..fMRIPrep..bids-dset..sub-01..func..sub-01_task-formlang_run-01_bold.nii.gz/gen_ref/slice.nii.gz
Standard output:

Standard error:
++ 3dvolreg: AFNI version=AFNI_19.0.26 (Mar 20 2019) [64-bit]
++ Authored by: RW Cox
** FATAL ERROR: Too many arguments?!  Dataset=/media/andreas/My?
** Program compile date = Mar 20 2019
Return code: 1

This is more of an issue in nipype. Since the OP already provides a solution, I'll consider this "wontfix".


istioctl version -o json outputs invalid json

(NOTE: This is used to report product bugs:
To report a security vulnerability, please visit https://istio.io/about/security-vulnerabilities
To ask questions about how to use Istio, please visit https://discuss.istio.io)
Bug description
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
[ ] Upgrade
Expected behavior
Steps to reproduce the bug
Version (include the output of istioctl version --remote and kubectl version --short and helm version --short if you used Helm)
How was Istio installed?
Environment where the bug was observed (cloud vendor, OS, etc)
Additionally, please consider running istioctl bug-report and attach the generated cluster-state tarball to this issue.
Refer cluster state archive for more details.

Sorry, accidental submit before I filled out the description. Adding now.

Note: to reproduce on a cluster WITH Istio, istioctl version --revision invalid -o json | jq

Thanks for filing this.
Those error messages were being written to the same place the JSON was, making it impossible to parse the JSON.  I have created a small fix at https://github.com/istio/istio/pull/29397 feel free to let me know if you believe it would solve your issue.

Yes the fix looks good @esnible - thanks for the fix!


Added blank page at end when printing

Link to PDF file with normal A4 sizes:  https://yadi.sk/i/Q0Xf-tg43MUfQv
Link to PDF file with reduced height to 841pt:  https://yadi.sk/i/Lex0uk9g3MWAhX
Configuration:

Web browser and its version: Firefox 54.0(64-bit) for Ubuntu
Operating system and its version: ubuntu 16.04 LTS
PDF.js version: v1.9.426

Steps to reproduce the problem:

Open pdf document (A4, Portrait (210 × 297 mm)) with viewer.html
Click at viewer print button and print this document

Blank page will added at end when printing.
This trouble I think came from v1.7 when you began insert document pdf to img
instead of canvas for printing.
Interesting, if pdf height equals to 841pt Firefox will print it without added blank page,
but Chrome will add blank page at end when printing.
I attached tow links on pdf with normal A4 sizes and with reduced height to 841pt.

WFM, when testing in PDF.js version 2.9.94 (via https://github.com/mozilla/pdf.js#online-demo) in both Firefox Nightly 89 and Chrome Beta 90.0.4430.72; most likely this was fixed by the recent round of printing patches.


Firebase.framework-2.3.3.zip  create-dirs

pengtingdeMacBook-Pro:HackerNews patrick$ pod install
Updating local specs repositories
Analyzing dependencies
Downloading dependencies
Installing Firebase (2.3.3)
[!] Error installing Firebase
[!] /usr/bin/curl -f -L -o /var/folders/fz/k44v3dq925nb2f6vdklx6rw40000gn/T/d20151120-3687-kwt8qu/file.zip https://cdn.firebase.com/ObjC/Firebase.framework-2.3.3.zip --create-dirs
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
13 8155k   13 1087k    0     0   1687      0  1:22:30  0:10:59  1:11:31     0curl: (18) transfer closed with 7237202 bytes remaining to read

Hmm, pod install works just fine for me. Are you using an updated version of CocoaPods?

pengtingdeMacBook-Pro:HackerNews patrick$ pod --version
0.39.0

Save version as me... I pushed a new change yesterday which updates the Firebase dependency version, so try pulling in that change and see if pod install works after that.

same
[!] /usr/bin/curl -f -L -o /var/folders/fz/k44v3dq925nb2f6vdklx6rw40000gn/T/d20151123-1187-14fvdyl/file.zip https://cdn.firebase.com/ObjC/Firebase.framework-2.4.3.zip --create-dirs
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to cdn.firebase.com port 443: Connection reset by pee

That's a different error code (7). It looks like you can't connect to cdn.firebase.com. What happens if you try to download https://cdn.firebase.com/ObjC/Firebase.framework-2.4.3.zip directly?

I can download

Then this sounds like an issue with your curl or pod install. Try re-installing CocoaPods and curl (unless you're using the version that came with your OS), and if that doesn't work, I would file a bug against CocoaPods. Haven't seen this issue come up before myself and I haven't received any similar bug reports.

I'm gonna close this out for now, but feel free to re-open if you find that the issue is in this project.

Hi, I meet the problem
when run
pod install --verbose --no-repo-update
pod file
`latform :ios, '8.0'
use_frameworks!
target 'FirebaseJokes' do
pod 'Firebase', '>= 2.5.0'
end
target 'FirebaseJokesTests' do
pod 'Firebase', '>= 2.5.0'
end
target 'FirebaseJokesUITests' do
pod 'Firebase', '>= 2.5.0'
end`
The error msg
`-> Installing Firebase (2.5.0)

Http download
$ /usr/bin/curl -f -L -o
/var/folders/gg/3xhhqth56rzctt883bbmys300000gn/T/d20160210-1147-1uyxzzn/file.zip
https://cdn.firebase.com/ObjC/Firebase.framework-2.5.0.zip --create-dirs
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (35) Unknown SSL protocol error in connection to cdn.firebase.com:-36

[!] Error installing Firebase
[!] /usr/bin/curl -f -L -o /var/folders/gg/3xhhqth56rzctt883bbmys300000gn/T/d20160210-1147-1uyxzzn/file.zip https://cdn.firebase.com/ObjC/Firebase.framework-2.5.0.zip --create-dirs
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (35) Unknown SSL protocol error in connection to cdn.firebase.com:-36
`
pod version :
ios-dev/FirebaseJokesStarter$ pod --version
1.0.0.beta.3

I think you filed this in the wrong project.


Reading analog inputs

I'm looking for advice on reading analog inputs, fed through an ADC, then spi to rust-spidev.
I adapted the home page code, and am able to get a reading from the first analog input using tweaked full-duplex code. The half duplex code is outputting all 0s.
pub fn read_light(spi: &mut Spidev) -> io::Result<f32> {
    let tx_buf = [0x01, 0x02, 0x03, 0x04, 0x05];
    let mut rx_buf = [0; 5];
    {
        let mut transfer = SpidevTransfer::read_write(&tx_buf, &mut rx_buf);
        spi.transfer(&mut transfer)?;
    }

    let score =
        // rx_buf[4] as u32
        rx_buf[3] as u32
        + rx_buf[2] as u32 * 256_u32
        + rx_buf[1] as u32* 256_u32.pow(2);

    // val is the portion of the maximum score we could get using the bits included above.
    let val = score as f32 / 256_f32.powi(3);
    Ok(calibration::map_light(val))
}

1: What determines the length of tx_buf to use? From experimenting, it seems that the left bits are weighted more heavily than the rights, ie if there's very low input voltage, maybe the 4th bit goes up from 0. When it hits 256, it goes back to zero, and the bit to the left goes up. How should you map analog voltage to SPI bits?
2: How can you differentiate different inputs? When I connect a second analog input (channel 2 on the ADC), the bits all are dramatically lower, and I'm not sure how to differentiate the devices.
I appologize if this is more of an ADC than spidev question.

hiya, you may be interested in rust-embedded/embedded-hal which provides more general SPI (and other) interfaces, and rust-embedded/linux-embedded-hal  which provides implementations of these for linux, we would generally recommend using these abstractions rather than spidev directly.
the rest of these questions depend on your ADC (and to some extent an understanding SPI interfaces), you might find this blog post about an SPI ADC in rust useful, and it might be worth checking if there is already a driver for your adc, but other than that you're going to need to read up on SPI and the datasheet for the ADC you are using.
i'm going to close this as unrelated to spidev, if you have other embedded questions feel free to drop by the matrix chat and good luck!


SCP action fails when using it to download files

New Issue Checklist

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

Issue Description
The scp action fails, when it is being used to download files via scp, because of a typo (scp.rb:19).
Complete output when running fastlane, including the stack trace and command used
$ fastlane scp_test
[22:35:14]: Driving the lane 'scp_test' 🚀
[22:35:14]: -----------------
[22:35:14]: --- Step: scp ---
[22:35:14]: -----------------
+---------------+----------+
|       Lane Context       |
+---------------+----------+
| PLATFORM_NAME |          |
| LANE_NAME     | scp_test |
+---------------+----------+
[22:35:31]: undefined method `[]' for nil:NilClass

+------+--------+-------------+
|      fastlane summary       |
+------+--------+-------------+
| Step | Action | Time (in s) |
+------+--------+-------------+
| 💥   | scp    | 17          |
+------+--------+-------------+

[22:35:31]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

➡  Undefined method `fetch` for nil:NilClass (NoMethodError) again?
   https://github.com/fastlane/fastlane/issues/7307 [open] 2 💬
   2 weeks ago

➡  deliver fails with: [!] undefined method `description' for nil:NilClass
   https://github.com/fastlane/fastlane/issues/7356 [closed] 5 💬
   a week ago

➡  `supported_platforms': [!] undefined method `split' for nil:NilClass (NoMethodError)
   https://github.com/fastlane/fastlane/issues/7141 [closed] 43 💬
   a week ago

and 196 more at: https://github.com/fastlane/fastlane/search?q=undefined%20method%20%60[]'%20for%20nil&type=Issues&utf8=✓
/Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/actions/scp.rb:19:in `block in run': [!] undefined method `[]' for nil:NilClass (NoMethodError)
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/net-scp-1.2.1/lib/net/scp.rb:207:in `start'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/actions/scp.rb:11:in `run'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/runner.rb:227:in `block (2 levels) in execute_action'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/runner.rb:212:in `block in execute_action'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/runner.rb:211:in `chdir'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/runner.rb:211:in `execute_action'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/runner.rb:133:in `trigger_action_by_name'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
    from Fastfile:3:in `block in parsing_binding'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/lane.rb:33:in `call'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/runner.rb:45:in `chdir'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/runner.rb:45:in `execute'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/commands_generator.rb:96:in `block (2 levels) in run'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.1/lib/commander/command.rb:178:in `call'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.1/lib/commander/command.rb:153:in `run'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.1/lib/commander/runner.rb:444:in `run_active_command'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/commander-4.4.1/lib/commander/delegates.rb:15:in `run!'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/commands_generator.rb:293:in `run'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/commands_generator.rb:36:in `start'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/fastlane/lib/fastlane/cli_tools_distributor.rb:60:in `take_off'
    from /Users/<username>/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/fastlane-2.0.5/bin/fastlane:5:in `<top (required)>'
    from /Users/<username>/.rbenv/versions/2.3.1/bin/fastlane:23:in `load'
    from /Users/<username>/.rbenv/versions/2.3.1/bin/fastlane:23:in `<main>'

Hey, thanks for reporting this. Do you want to submit a pull request to fix this? 👍

Already created one #7569 😉. This issue is for Google and Danger 😄

Awesome, thank you :rocket;


Add support for accessing headers and trailers to streaming calls

This is done via a CompletableDeferred which is completed when the headers/trailers are received.
This is just a draft right now until I figure out the best way to test this.

@pkwarren, I added some assertions to existing test cases related to headers with streaming operations. PTAL


RemoveClaim causes validation exception.

When I try to remove a claim from a custom user account I get this:

The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable. When a change is made to a relationship, the related foreign-key property is set to a null value. If the foreign-key does not support null values, a new relationship must be defined, the foreign-key property must be assigned another non-null value, or the unrelated object must be deleted.

My user account does have a WarehouseId foreign key in it. Would this be the problem?
This is my c'tor:
        public MyContext(): base("ConStringName")
        {
            this.Configuration.LazyLoadingEnabled = true;
            this.RegisterUserAccountChildTablesForDelete<User>();
        }

I get the same error with or without those two lines of code in the c'tor.
My OnModelCreating looks like this:
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<OneToManyCascadeDeleteConvention>();
            modelBuilder.Conventions.Remove<ManyToManyCascadeDeleteConvention>();

            modelBuilder.Conventions.Add(new DecimalPrecisionAttributeConvention());

            //modelBuilder.ConfigureMembershipRebootUserAccounts<User>();
            base.OnModelCreating(modelBuilder);
        }

My User class looks like this:
    public class User : RelationalUserAccount
    {
        [MaxLength(50)]
        public virtual String FirstName { get; set; }

        [MaxLength(50)]
        public virtual String LastName { get; set; }

        [ForeignKey("WarehouseId")]
        public Warehouse DefaultWarehouse { get; set; }

        public Int32 WarehouseId { get; set; }
    }

I am on EF 6, .net 4.5.
Am I not allower to have Nav properties in my user account?

Ok, now I feel stupid... but hopefully this helps someone else. I forgot to make WarehouseId and DefaultWarehouse virtual property. Chaging to the following worked:
    public class User : RelationalUserAccount
    {
        [MaxLength(50)]
        public virtual String FirstName { get; set; }

        [MaxLength(50)]
        public virtual String LastName { get; set; }

        [ForeignKey("WarehouseId")]
        public virtual Warehouse DefaultWarehouse { get; set; }

        public virtual Int32 WarehouseId { get; set; }
    }

Sorry for commenting on a closed issue, but I thought this might help someone else. I had the same problem so I made a unit test to ensure custom properties were virtual.
[Test]
public void AllCustomPropertiesMustBeVirtualToSupportDeletingOfChildCollectionItems()
{
    var properties = typeof(MyCustomUserClass).GetProperties(BindingFlags.DeclaredOnly | .BindingFlags.Public | BindingFlags.Instance);

    foreach (var accessor in properties.Select(property => property.GetAccessors().First()))
    {
        Assert.IsTrue(accessor.IsVirtual, string.Format("{0}.{1} was expected to be virtual but was not.", accessor.DeclaringType.Name, accessor.Name));
    }
}


Fix minor typo in what-is-azure-databricks.md

Fix minor package name typo for ggplot

@theangellmethod : Thanks for your contribution to the Azure documentation! The author, @nitinme, has been notified to review your proposed change.

@theangellmethod - Thanks!


feat: add locale and guild_locale properties to interactions

Summary

Discord announced its release a few days ago.

locale will always be present (except PING, which is responded with pong).
guild_locale will only be present in guild context interactions, and defaults to en-US if the guild doesn't have COMMUNITY feature.

Checklist

[x] I have run nox and all the pipelines have passed.
[x] I have made unittests according to the code I have added/modified/deleted.

Related issues

Other than that, LGTM


NVIDIA Shield Plex Client no longer works properly

Hi -
Since my Nvidia Shield upgraded to Plex client <IP_ADDRESS>12 (e2fecda3) It doesn't seem to work properly with Synclounge.  When using it with a custom (my own with the docker image) or a US server - the Shield plays the selected video but video does not distribute to others in the room, nor does the synclounge app show that any video is selected by the room owner.   If I use the web player instead of the shield it works properly.  Please advise.
Thanks,
Rett Walters

A potential fix was recently merged & pushed to the docker image. Could you please try again with the updated version?

Having a similar issue here on a Nexus Player, also with both the official US servers and my own docker hosted server. I cannot even get the video to play however. Web player and roku work fine.

Nvidia Shield no longer works. I am using the regular docker container. SL connects fine but when I hit play, nothing happens for Shield clients.

This is the error in the nvidia shield network logging: https://pastebin.com/iwr5epng
I can send playback to the device maybe 20% of the time. But the current playback status/info is never retrieved by the synclounge webapp.

Still a problem for me as well. Can't get it work with the latest docker image.
Using an older docker image that I had works fine.

This is an issue on Plex's end and this forum post appears to be tracking the issue.


MicMute crashes if in update mode and it is blocked by firewall

I use a firewall software called simplewall  which block any process from outward communication unless I explicitly allow it. It seems MicMute crashes if it's trying to update itself and the process is blocked from outside communication.
---------------------------
MicMuteUpdater.exe
---------------------------
Error:  0x80072EFD -
Source:		WinHttp.WinHttpRequest
Description:	A connection with the server could not be established

HelpFile:		(null)
HelpContext:	0

Specifically: WaitForResponse

	Line#
--->	2173: http.WaitForResponse()

The current thread will exit.

Whops, forgot to mention (and check version) used when this happened. I think it was 1.2.4.

Maybe useless now that this ticket is already closed but I can confirm this works as expected now. Thanks!


[FSDE-11882] Add attribute to make printable version option

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-322/1/. :x:

The CI pipeline run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-322/2/. :white_check_mark:

You can check this PRs instance in https://4b0c39267000d5dd4b04c6a937db7c0c2badb347-chi-pr.enterprise.ctl.io (external) and in https://nginx-pr-322-ux-chi.kubeodc-test.corp.intranet/ (internal)

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-322/3/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-322/4/. :x:

The CI pipeline did not run successfully in https://jenkinsprod.corp.intranet:8443/job/UX-CHI/job/Productive/job/Chi/job/PR-322/5/. :x:

You can check this PRs instance in https://83ab48151c826bf2c6c477bedf8f27e7e76db993-chi-pr.enterprise.ctl.io (external) and in https://nginx-pr-322-ux-chi.kubeodc-test.corp.intranet/ (internal)


Rdf writer

Pull Request Test Coverage Report for Build 173766775

248 of 293 (84.64%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.3%) to 81.418%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

rdfloader/parser/parser.go
5
6
83.33%

rdfwriter/utils.go
143
158
90.51%

rdfwriter/rdfwriter.go
99
128
77.34%

Totals

Change from base Build 159455453:
1.3%

Covered Lines:
758

Relevant Lines:
931

💛  - Coveralls


Interactive and progress reporting omnibus

Here is a list of features

Turn on progress reporting for a running command (you hit enter 2 minutes ago, is it still going?)
Show elapsed time on the heartbeat
heartbeat should show number of operations running (if i start 4 vms with --progress, how many are left)
In --verbose mode, output start and total time of the deployment
Remove layout from F1 spot, and put Keys there instead, and call it help
fix all the reflow issues (jpterm handles this WAY better)
fix all the output errors (F3 makes the status bar move back and forth)
add examples to az interactive -h
we should cache outputs of --progress tasks and provide a progress history they can look at (create a vm with --progress, but get the IP address when it is done)
add a message carasol to the bottom where the heartbeat goes.

add feature request.


Swal with Custom HTML

In sample code we can found:
swal({   title: 'HTML example',   type: 'info',   html:     'You can use bold text, ' +     'links ' +     'and other HTML tags',   showCloseButton: true,   showCancelButton: true,   confirmButtonText:     ' Great!',   cancelButtonText:     '' })
But the correct use is:
swal({   title: 'HTML example',   type: 'info',   html: true,   text:     'You can use bold text, ' +     'links ' +     'and other HTML tags',   showCloseButton: true,   showCancelButton: true,   confirmButtonText:     ' Great!',   cancelButtonText:     '' })
html need to be true and the content is in text

html need to be true and the content is in text

This is true for the original SweetAlert plugin: https://github.com/t4t5/sweetalert
SweetAlert and SweetAlert2 are 2 different projects with slightlhy different API, see the migration guide: https://github.com/limonte/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2

But it says html is not in the SwalOptions..?
What should I do now?
I am using<EMAIL_ADDRESS>

Hi @KSahithyan I think you are using Sweetalert and not Sweetalert2. The repo for sweetalert is here. You are more than wellcome to move to Sweetalert2 using this guide

@gverni Sorry I am using Sweetalert2. But HTML is not in that, that was changed as content..
link :- https://sweetalert.js.org/guides/#upgrading-from-1x

@KSahithyan what you are using is Sweetalert version 2.x not Sweetalert2. I know, the names can be confusing, but Sweetalert2 (this repo) is a fork of Sweetalert. If you have problem with Sweetalert you need to use the other repo. Hope this clarify


Cannot return a future with a different error type by chaining calls with flatMap

To illustrate the problem I've modified one of the methods in the test suite, substituting NSError for NoError
	func testFlatMapByPassingFunction() {
		let e = self.expectation()

		func toString(n: Int) -> Future<String, NSError> {
			return Future<String, NSError>(value: "\(n)")
		}

		let n = 1
		let flatMapped = Future<Int, NoError>(value: n).flatMap(toString)

		flatMapped.onSuccess { s in
			XCTAssertEqual(s, "\(n)", "strings are not equal")
			e.fulfill()
		}

		self.waitForExpectationsWithTimeout(2, handler: nil)
	}

Which result in the error: Cannot invoke 'flatMap' with an argument list of type '((Int) -> Future<String, NSError>)'

My apologies, I now see why this isn't possible as the resultant future from one or more chained flatMap calls needs to have some kind of consistent error type to allow errors to propagate through the composition.
I stole the idea of a type erasure 'AnyError' type from #108 pull request:
public struct AnyError : ErrorType {
    public let cause:ErrorType

    public init(cause:ErrorType) {
        self.cause = cause
    }
}

Then previous example I gave becomes:
    func testFlatMapByPassingFunction() {
        let e = self.expectation()

        func toString(n: Int) -> Future<String, AnyError > {
            return Future<String, AnyError >(value: "\(n)")
        }

        let n = 1
        let flatMapped = Future<Int, AnyError >(value: n).flatMap(toString)

        flatMapped.onSuccess { s in
            XCTAssertEqual(s, "\(n)", "strings are not equal")
            e.fulfill()
        }

        self.waitForExpectationsWithTimeout(2, handler: nil)
    }

and all works as expected. If only Swift allowed protocol to be used as type parameters ... :

Using 'ErrorType' as a concrete type conforming to protocol 'ErrorType' is not allowed

Thanks again for a great framework - its dramatically simplified my code.


Enforce role lock

Max number of heroes per role is 2 by default, but this can be adjusted using the slider settings ui in workshop settings. For example, goats can be enforced by setting max tanks to 3, max damage to 0, and max supports to 3. Up to 3 heroes per role can be achieved using 3/3/3.
As soon as game starts, the "assemble your team" phase is skipped to force players to spawn as soon as they pick heroes.

fixes #262 #297


import ietfdata, compare working group activity with a mailing list

addresses #375 and some
This PR integrates the Glasgow IPL group's ietfdata datatracker with BigBang
https://github.com/glasgow-ipl/ietfdata
Included in a notebook comparing HRPC mailing list activity with drafts.

Latest push to the branch has:

checkers.is_url
vertical lines for the hrpc draft dates in the notebook visualization

Looks good to me. Thanks for those fixes.


feat: use api.akord.com/files for file uploads & read files from Akord gateway

closing in favour of https://github.com/Akord-com/akord-js/pull/174


Mapping 3D pose from cropped image patch to the original images!

To deal with multi-person 3d pose estimation, I've run the METRO to get 3d joints from smpl (use get_joints function) on the cropped patches of image. So now I have the joints with shape 1x24x3 for each patch. For a given cropped bounding box like [x, y, w, h]. How can I reverse to the original image 3d joints? Thanks

Could you elaborate a bit more about your question? What is "reverse to the original image 3d joints"?

The same question. I think he means how to plot the keypoints onto the image.
I found that the 3D joints contain negative numbers, so how could we transform the predicted 3D joints to 2D joints so that we can draw them onto the image?

@kevinlin311tw look at this line. the 3d result here is the final result of 3d Pose (for 14 joints). But these are the coordinates at 224x224 scale. So my question "reverse to the original image 3d joints"? is that suppose I crop from  the image of size (original_W, original_H)  with bounding box [x, y, w, h] then I get the image patch of size 224x224. I feed it into metro to retrieve the 14 joints 3d coordinates. So how can I convert the result back to the (original_W, original_H) image.

Thanks for the clarification! To render the 3D results in the original image coordinate, you will need to convert some coordinate systems.
I will add new code to do it. At the same time, if you are in a hurry, you may also like to check HMR for quick solutions as we use a very similar (almost the same) rendering tool.


Charts[Network]: upgrade Mirror Node chart to latest version (v0.107)

Steven Sheehy
2024-06-17 23:01
@here Mirror node v0.107 was released and rolled out to previewnet and testnet. https://github.com/hashgraph/hedera-mirror-node/releases/tag/v0.107.1

:tada: This issue has been resolved in version 0.28.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


nixos/homepage-dashboard: support structured config

Description of changes
This moves the homepage-dashboard configuration more toward the RFC42 approach. Until now, all configuration was initially generated and placed into /var/lib/homepage-dashboard, where users would be required to manually update the files, or place them there seperately in their nix config.
This allows for more "native" configuration.
There is some minor awkwardness here to avoid breaking people. This change shouldn't break anyone, but will display a deprecation warning about the upcoming change (which I've set at 24.05). The logic is that if you don't specify any of the new config options, the previous logic stays in play (homepage-dashboard is configured manually from /var/lib/homepage-dashboard), but if you adjust any of the sections, then it goes into "managed config" mode and starts writing the files to /etc/homepage-dashboard according to the native nix config.
For reference, this is what my server's dashboard config looks like: https://github.com/jnsgruk/nixos-config/blob/1f96734e905a2d2383e723f21f58059eacee3eda/host/common/services/homepage/thor.nix.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[x] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/3524

I'm not qualified to give any sort of review, but just wanted to voice my support for this change. Only a couple weeks ago I was experimenting with this package and it was clear pretty quickly that it would benefit from a more managed config regime.

@SuperSandro2000 @adamcstephens thanks for the review! I've addressed your comments, and in doing so ended up patching the package.
I also added an additional test to cover the behaviour.

@SuperSandro2000 I should add, I'll work on a patch upstream that will make the log file optional, which would remove the need for the patch, but in the mean time I think the patch is simple enough and shouldn't cause any issues.

 I originally opened a PR, but the project requires a feature request with at leat 10 upvotes (I've added the request here).
For now, I'm using fetchpatch to grab the patch from my branch. This simplifies the logging quite a bit.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/1500

Thanks @adamcstephens!


console?.log('') not dropped during minify

Describe the bug
When console is followed by optional chaining symbol ?, it will not be dropped during minify process.
Terser will remove it correctly.
Input code
console?.log('hello')

### Config

```json
{
  "jsc": {
    "parser": {
      "syntax": "typescript",
      "tsx": false
    },
    "target": "es2015",

    "loose": true,
    "minify": {
      "compress": {
        "arguments": false,
        "arrows": true,
        "booleans": true,
        "booleans_as_integers": false,
        "collapse_vars": true,
        "comparisons": true,
        "computed_props": true,
        "conditionals": true,
        "dead_code": true,
        "directives": true,
        "drop_console": true,
        "drop_debugger": true,
        "evaluate": true,
        "expression": false,
        "hoist_funs": false,
        "hoist_props": true,
        "hoist_vars": true,
        "if_return": true,
        "join_vars": true,
        "keep_classnames": false,
        "keep_fargs": true,
        "keep_fnames": false,
        "keep_infinity": false,
        "loops": true,
        "negate_iife": true,
        "properties": true,
        "reduce_funcs": false,
        "reduce_vars": false,
        "side_effects": true,
        "switches": true,
        "typeofs": true,
        "unsafe": false,
        "unsafe_arrows": false,
        "unsafe_comps": false,
        "unsafe_Function": false,
        "unsafe_math": false,
        "unsafe_symbols": false,
        "unsafe_methods": false,
        "unsafe_proto": false,
        "unsafe_regexp": false,
        "unsafe_undefined": false,
        "unused": true,
        "const_to_let": true,
        "pristine_globals": true
      },
      "mangle": false

    },
  },
  "module": {
    "type": "es6"
  },
  "minify": true,
  "isModule": true
}

Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.9.3&code=H4sIAAAAAAAAA0vOzyvOz0m118vJT9dQz0jNyclX1%2BQCAGlpgzUWAAAA&config=H4sIAAAAAAAAA32US47bMAxA9z1F4PUs2gLtogformcQFItyNJVFQ6QyMQa5e2nZTtKE9iaI%2Bfgnxc8vh0PzTm3z6%2FApf%2BVjsJkg375FQmNiexFJw%2BMA1OYwcPO2UqYJeRsJqug6k4Zt7oAnK6DvX7%2F9EIsZREQCkXMusOj2IQU%2FPsZssR8yED3IRCouSw%2BJaY349sgyftB%2Ffqv8iBjBph1iLJmQGDrImuMWY7QDgTnbrHiZMrU5EGohJlgYnBkyDipPLnDAJDFfqQPrTIsOFBQytBzOoJlJLDFLJOVtUAfH0nV1zE8YzjYWy4ohXOpEJFmlSScMxMaXpHVwhhstmKHe2%2BBNBi45vaJ3DGnD6i%2BA1B8tUbI9aAlVDS%2FbtGXtdy1D8rKwPCpcllsrMkEnPTUheKWxU2Mgc9BmmcGVFqbGtlo6C1768EwpODDgvWyK4po%2BArcnLej0zNErQMZrawXPkWZgbm9wg0%2FPYQf%2FlipZ369Fo7d82qY09keMOwF64BO6HQUZBeM2znIjLsM2L8mBrAY4VaVQBa8nQPaf0cR6LV92Q16HeDRdxOP9SCwK19sV7m3q4m0yi%2FR%2Bj%2BtP06MrVWk59dOc5wP9s7krrbd4zaQJ9Gc1rLGv%2FwAQOon3NQYAAA%3D%3D
SWC Info output
No response
Expected behavior
It should be dropped.
Actual behavior
var _console;null==(_console=console)||_console.log("hello");
Version
1.9.3
Additional context
No response

In cases where the console might not be available, the correct way to write it is:
if (typeof console !== 'undefined') {
    console.log('Hello, world!');
}

Using console?.log will throw an error if console is not declared.
If this syntax appears, my best guess is: to evade the detection of the compressor, this line is made an exception and the syntax is slightly altered.
When the compressor covers this syntax and users still have needs, they might opt for the following code:
console['log']('Hello, world!');

I hope this doesn't turn into a battle between the compressor and users.
CC @kdy1

In cases where the console might not be available, the correct way to write it is:
if (typeof console !== 'undefined') {
    console.log('Hello, world!');
}

Using console?.log will throw an error if console is not declared.
If this syntax appears, my best guess is: to evade the detection of the compressor, this line is made an exception and the syntax is slightly altered.
When the compressor covers this syntax and users still have needs, they might opt for the following code:
console['log']('Hello, world!');

I hope this doesn't turn into a battle between the compressor and users. CC @kdy1

You are right.
We may need more information and context about why the users write console?.log. But it's very contradictory that they want keep some consoles while enabling drop_console.
drop_console is actually unsafe but widely supported. I guess that's because it's too useful and the corner cases rarely happen. So we may also need to weigh (to be aggressive or conservative).
The console['log']('Hello, world!'); is also removed with swc. So the user should find another dirty way...

I think we can ignore the possibility of console being undeclared (or anything) if the user specified drop_console. IMHO, what they want is to ignore those possibilities. I used drop_conosle in the past because of IE, and the exact thinking was like,

Why do I need to check for the existence of a console? I wrote them for debugging. I don't care if an end-user looks at it.