Cant open single page PDFs with size bigger than 1.5mb

Im trying to implement a custom pdf editor for tablets and ran into the following problem on my iPad.
It is not possible to render single page PDFs with a size bigger than 1.5mb.
When i try to open such a pdf it only displays a white page without displaying anything.
Is there a way to fix this problem without changing the resolution of the displayed pdf?
The app is html based and im using a pdf container (canvas) to render to PDF onto the page.
This is how i am rendering the pdf onto the given canvas.
HTML snippet:

    <div ref="pdfViewerBox" class="pdf-viewer">
        <div
            class="pdf-viewer-box"
            :class="{ empty: !base64Item || base64Item == '' }">
            <!-- canvas to show the pdf page  -->
            <canvas ref="pdfContainer"></canvas>
             .....
             ....
         </div>
    </div>

Typscript snippet:
    const pdfState: PdfCanvasInterface = reactive({
        scale: 1.25,
        rotation: 0,
        countPdfPages: 0,
        pageNumber: 1,
        pageIsRendering: false,
        pageNumberPending: null,
        pdfCanvas: null,
        pdfDocument: null,
    });
    const pdfDocumentWithNoAnnotations = shallowRef<PDFDocumentProxy>();

async function renderPage(): Promise<void> {
        pdfState.pageIsRendering = true;
        // Using promise to fetch the page

        const page = await pdfDocumentWithNoAnnotations.value?.getPage(
            Number(pdfState.pageNumber)
        );

        const viewport = page.getViewport({
            scale: pdfState.scale,
            rotation: pdfState.rotation,
        });
        pdfState.pdfCanvas.height = viewport.height;
        pdfState.pdfCanvas.width = viewport.width;
        const parentContainer = pdfState.pdfCanvas.parentElement;
        parentContainer.style.minWidth = `${viewport.width + 16}px`;
        parentContainer.style.minHeight = `${viewport.height + 16}px`;
        // Render PDF page into canvas context
        const renderTask = page.render({
            canvasContext: pdfState.pdfCanvas.getContext('2d'),
            viewport: viewport,
        });
        try {
            await renderTask.promise;
            if (pdfState.pageNumberPending !== null) {
                // New page rendering is pending
                pdfState.pageNumber = pdfState.pageNumberPending;
                renderPage();
                pdfState.pageNumberPending = null;
            }
        } catch (e) {
            console.error('fehlerhafte Seite' + e);
        }
        pdfState.pageIsRendering = false;

        // Wait for rendering to finish

        //move to the top of the page
        const pdfViewerBox = pdfState.pdfCanvas?.parentElement?.parentElement;
        if (pdfViewerBox) {
            pdfViewerBox.scrollTop = 0;
        }
    }

Im trying to implement a custom pdf editor for tablets and ran into the following problem on my iPad.
It is not possible to render single page PDFs with a size bigger than 1.5mb.
When i try to open such a pdf it only displays a white page without displaying anything.

This unfortunately sounds like you're running into platform/browser limitations of the iPad, and we've seen similar reports previously, since iOS apparently limits e.g. the allowed canvas-size.
There's not a lot that we can do about this generally, and please keep in mind that the Firefox built-in PDF Viewer is the primary development target here.

For future reference: Please remember to fill out the ISSUE_TEMPLATE when opening an issue and also that code-snippets unfortunately are of limited use (hence why we ask for complete runnable examples).


"play current scene" option no longer works while multiple tabs open after v2.3.8

In v2.3.8 and below, you were able to Alt P in the browser and it would play the scene from the first tab. You could reorder you tabs and just Alt P the newly dragged first tab.
Now it either just plays the original first tab even if it was moved, or if that tab was closed. It would crash Stash Helper (not SashApp though)
To me that's a feature that you should have even in your Read Me docs, almost as good as being able to Alt P whatever tab your on, but obviously adding that feature would be a lot harder than reimplementing what you had V2.3.8 and older.
Hopefully you'll find out what broke it, and I appreciate your work.
Tested with Firefox & Chrome

The multi-tab enumeration is tricky, and I thought I fixed it but obviously it's not. Yeah, I will check it out.

The new v.2.3.11 might finally fix the multi-tab problem. Please try it out, thank you !


I cannot upload pdf/files on live website

Hi guys! After I followed the upgrade guide, there's still no changes made. I still have this little bug, because when I'm trying to upload a PDF file in my localhost it works fine, but in live, it is not working, no file appears in the list of files. I can choose a file though, but I can't upload it. Why is that? Thanks!

Hi @jonjie0317
There must have some errors in PHP/laravel error logs or browser console.
Would you please paste these logs here?

@youchenlee Sorry for the late reply, I will try it now.

@youchenlee I got this response,

html
<table class="table table-resp…tr>

working_dir
/31

I think this is fixed in v2.0.0-alpha6. Please comment here if there is any further problem.


Add FPGA OWNERS to member list

Adding @eliaskoromilas and @jstamel to the Kubeflow member list. It helps us to define OWNERS file under FPGA examples in Katib repository.
Ref PR: https://github.com/kubeflow/katib/pull/1685.
/assign @Bobgy @zijianjoy
/cc @eliaskoromilas @jstamel @gaocegege @johnugeorge

/approve
Thank you for managing the owner scope on Katib!


Session verification wildly inconsistent

Disclaimer: I file this bug on the spec, because I, with a lot of support from various people from different rooms (Element-Web, Element-Android, and Matrix) have not been able to determine where or how exactly this goes so badly wrong over the course of an entire day. Since, using three clients (Devel Element Web, Stable Element Web, and Stable Element Android), there is no possible combination in which this works, I can only suspect there is something wrong on the server side or in the protocol.
Premise: User A, multiple sessions, all verified, cross-verification is confirmed to work by the clients. User B, one session, one device.
Behaviour: I will only give one example for how this does not work, as we have tried countless combinations and they all lead to some similarly broken result (i.e. one where User B is not verified across all sessions of User A and the verification state is strangely inconsistent within a single session/client, too), among which one scenario in which my own session claims that my own messages from another session could not be verified.
User A initiates a verification request using Element Android in session S, which prompts both parties for Emoji comparison. Verification is then (allegedly) successfully completed. The verification is not respected by any of the other sessions of User A (in these sessions User B still shows as unverified). Meanwhile, in S, the user still shows as Unverified ("Black Shield" icon) in the room's user list, while they appear as Verified ("Green Shield" icon) in their profile.

This sounds like a potential bug in Element Android based off the example. Unfortunately the sort of behaviour you're seeing is a client bug somewhere - I would encourage picking a platform and submitting a bug report to them.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-2.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 554

Questions ?
Please refer to the Backport tool documentation


X Imports

Where did you find
std.c.linux.X11.XLib
std.c.linux.X11.x
I have the latest Linux dmd, but no such files. Are you using GDC?

I know it took ages, but: Fixed


Error during connection

I see this error occasionally in the logs. I cannot reliably reproduce it. Using OH 4.2 with latest binding from the marketplace.
2024-07-23 09:39:12.689 [WARN ] [home.internal.handler.ESPHomeHandler] - [363e94a024] Error initial connection no.seime.openhab.binding.esphome.internal.comm.ProtocolAPIError: Failed to connect to '<IP_ADDRESS>' port 6053 	at no.seime.openhab.binding.esphome.internal.comm.ESPHomeConnection.connect(ESPHomeConnection.java:63) ~[?:?] 	at no.seime.openhab.binding.esphome.internal.comm.PlainTextFrameHelper.connect(PlainTextFrameHelper.java:37) ~[?:?] 	at no.seime.openhab.binding.esphome.internal.handler.ESPHomeHandler.connect(ESPHomeHandler.java:179) ~[?:?] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?] 	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) [?:?] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] 	at java.lang.Thread.run(Thread.java:840) [?:?] Caused by: java.net.NoRouteToHostException: No route to host 	at sun.nio.ch.Net.connect0(Native Method) ~[?:?] 	at sun.nio.ch.Net.connect(Net.java:579) ~[?:?] 	at sun.nio.ch.Net.connect(Net.java:586) ~[?:?] 	at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:853) ~[?:?] 	at java.nio.channels.SocketChannel.open(SocketChannel.java:285) ~[?:?] 	at no.seime.openhab.binding.esphome.internal.comm.ESPHomeConnection.connect(ESPHomeConnection.java:54) ~[?:?] 	... 8 more

It says "No route to host".
You seem to have some network instabilities?

I have been testing using this library https://github.com/peterkeen/aioesphomeserver/tree/bcc3ccd06eddcae6b469ec7ffd2ffc7d56bd53d2 to create ESPHome devices using python (PI application for me). So the errors happen when restarting the server(device) I am working on.

Hard to tell why the jvm cannot connect, but this does not seem like a binding specific problem, but that your pi isnt available on the network.
The binding tries to reconnect after 40 secs.

Agree, the problem is on the pi side - not sure if you want to handle the error more gracefully?

I could, but it would either require a more cluttered codebase - or it would make it harder for me to understand the issue report 😅


Add admin page

With lock icon in navbar and password access
Allow to change:

SPARQL endpoint URL
SPARQL query for full text search

Those variables are stored in the React Context API store

Add a feature allowing users to define prefixes from UI (central services or add manually?)


cmd/internal/gc, cmd/internal/ld: use new flag argument syntax

The usage messages for the flags in gc and ld are using the old
flag argument syntax from my C library - "arg: description using arg".
They need to be updated to the Go 1.5 flag package's syntax - "description using arg".

The backquotes were lost in the CL that was submitted. Needs to be redone.

Fixed by https://golang.org/cl/9652.


NC | Maintenance and Short Refactoring Tasks

This is a place for gathering short NC refactoring ideas coming from code reviews but out of the scope of the reviewed PR -

S3 Flow - remove "fs_root" from BucketSpaceFS & AccountSpaceFS -
Notice that on BucketspaceFS we use on various places but its value is always '' so its usage needs to be removed as well.
Reference - https://github.com/noobaa/noobaa-core/pull/8258#discussion_r1705096898

manage_nsfs.js Remove _.isUndefined() calls -
As mentioned in the attached comment -
"in general, there is no longer a need in js to use any function to check for undefined (not _.isUndefined and not util.isUndefined), and the best check is the trivial check - data.name === undefined. the need for functions was an old remain from back when undefined was not "well defined" in javascript but those times are long gone."
Reference - https://github.com/noobaa/noobaa-core/pull/8258#discussion_r1706077224

I assign myself to item number 2 (manage_nsfs.js Remove _.isUndefined() calls)

Adding to the list:
4. optimization in noobaa-cli - list with a filter of name call the account/bucket status (instead of listing all entries).


Changed TfLiteFusedActivation to TfLiteActivation

@rthadur Could you please kindly check this change for merge

@rthadur Could you please kindly check this change for merge

@jdduke can you please help merge this PR internally

Thanks for your patience, but these kinds of minor refactorings have quite a bit of downstream impact in our internal code, so it's not a straightforward pull request.

Can one of the admins verify this patch?

There was too much downstream impact, so let's just leave the name as-is. Apologies for the hassle.


TranslatedFieldWithFallback questions

I have two questions regarding translated_fields.utils.TranslatedFieldWithFallback:

class MyModel(models.Model):
    name = TranslatedFieldWithFallback(
        models.CharField(max_length=55, blank=True),
    )
    surname = TranslatedFieldWithFallback(
        models.CharField(max_length=55),
    )

If the default language is 'en' an error will raise when surname_en is empty.
However, if name_en (which can be blank) is empty and name_<another_language> is not empty, the fallback value will be None although  in another language, a value may exist.
Is this an intended behaviour?

https://github.com/matthiask/django-translated-fields/blob/07d0a7aac3b8df507ee19adf12ce16d211fcbf1c/translated_fields/utils.py#L10-L14
Instead of settings.LANGUAGES[0][0] LANGUAGE_CODE wouldn't it be more straightforward?
Update
LANGUAGE_CODE may not be the best option since it defaults to 'en-us' and not just 'en'.

Hi!
I'm answering regarding 1. because I had something similar. I just created my own fallback_to_default function and used that as attrgetter=fallback_to_default on the TranslatedField function that is defined on the ModelField. This fallback_to_default is equal to modeltranslations (go through all languages) in functionality:
def fallback_to_default(name):
    def getter(self):
        value = getattr(
            self,
            to_attribute(name),
        )
        if value:
            return value
        else:
            for language in settings.SELECTABLE_LANGUAGES:
                new_value = getattr(self, to_attribute(name, language))
                if new_value:
                    return new_value
        return value
    return getter

Hope it helps!

Thanks @gabn88!
Re 1.
At first I wasn't sure whether the concept of a default language even has its place in this library because it's a bit arbitrary. After copy-pasting the same fallback code into a handful of projects I remembered that practicality beats purity (https://www.python.org/dev/peps/pep-0020/)
It is the intended behavior to only fall back to the primary language, yes. If you require a value you should pass a field to the TranslatedFieldWithFallback constructor with blank=False. The first language's field will be required then and all other fields will be optional.
If the behavior of TranslatedFieldWithFallback is insufficient for your requirements I encourage you to implement your own getter (as @gabn88 did) and/or even add your own TranslatedField subclass in the spirit of TranslatedFieldWithFallback to your project. Or maybe contribute it back, but I'm not too fond of the fallback languages mechanism in django-modeltranslation -- it's a bit too flexible for my taste.
You write that errors are raised if surname_en is empty. I hope you mean validation errors and not other types of exceptions? But yes, if it's about validation errors then that's intentional (see above)
Re 2.
You wrote it yourself, in many projects LANGUAGES[0][0] != LANGUAGE_CODE (en-us vs en is a good example, we often have de-ch vs de in our projects). If we only use the LANGUAGES setting (or the languages argument to TranslatedField) then we have a single source of truth.

You write that errors are raised if surname_en is empty. I hope you mean validation errors and not other types of exceptions?

Yes indeed, they are validation errors, expected because the field is not supposed to be blank.
The solution provided by @gabn88 is a sweet spot because it springs from the main functionality of this library (no need to override any clean method), it is neat and simple!

If we only use the LANGUAGES setting (or the languages argument to TranslatedField) then we have a single source of truth.

Thank you!

Finally, I decided to give a shot to the first language before start looping around the remaining languages, as such:
def fallback_to_default(name):
    def getter(self):
        value = getattr(
            self,
            to_attribute(name),
        ) or getattr(
            self,
            to_attribute(name, settings.SELECTABLE_LANGUAGES[0]),
                                           # ^ Arbitrary setting like ['en', 'fr']
        )
        if value:
            return value
        else:
            for language in settings.SELECTABLE_LANGUAGES[1:]:
                value = getattr(self, to_attribute(name, language))
                if value:
                    return value
        return value
    return getter


Sprite.SetTexture() Mono hard crash on Windows, null exception object on MacOS.

Godot version:
7368a0e0f08ca60a8c503c2113bb5aa56fbc4208
OS/device including version:
Windows 10 Pro 64-bit, Mono 5.4.1
Issue description:
So... this is a weird one.
I have some C# code that sets the texture of a Sprite. Simple stuff. Except it hard crashes Godot on Windows, and on MacOS it makes Mono throw a null exception (not a null ref exception, the actual exception object thrown is null) into the C# code.
The Windows crash error handler seems to just abruptly abort instead of being able to show a stack trace. Attaching VS to the process reveals the crash is a stack overflow somewhere, but I doubt the hex code repeated in the stack trace is gonna be very useful, and VS reaches the limit of stack frames so I can't see what's invoking said infinite repeating stack frames.
I tried putting a break point into the icall method on the Mono glue. The specific icall being godot_icall_1_21 (might not be up to date with current repo version). Except VS doesn't seem to break on it (update: I inserted a print_line call into it and it's not printing anything, ruling this out even harder), so either the Mono JIT is crashing before the icall is even invoked, or VS isn't seeing the break point. Sadly something tells me it's the former. Mono's logs seems unhelpful. The icall behind SetTexture() isn't even being invoked. I inserted some debug printing into it, and it works for other icalls, but not this one. So the Mono JIT is almost certainly crashing before doing the icall.
 I tried reproducing it in a test project, but to no avail.
The project in which this is happening is open source but probably not ideal as a test project. Here it is anyways: https://github.com/space-wizards/space-station-14/commit/0a0792315f08e28c3c0709259cb8e936ba90b6b1. If you really wanna try building this, just build the main solution with VS (or msbuild /nologo /p:Configuration=Debug /p:Platform=x64 since the solution is messed up atm) and then run the Godot project under SS14.Client.Godot. I realize this really isn't helpful but I have nothing better.

public Texture Texture => Texture;

Well. I guess now the mystery is why Mono isn't throwing a StackOverflowException...


Add task sample data and change datafile name to yellowbook.json

Codecov Report

Merging #171 (b88af6f) into master (22d1e14) will decrease coverage by 0.18%.
The diff coverage is 4.54%.

@@             Coverage Diff              @@
##             master     #171      +/-   ##
============================================
- Coverage     49.42%   49.23%   -0.19%
  Complexity      555      555
============================================
  Files           118      118
  Lines          2355     2364       +9
  Branches        291      292       +1
============================================
  Hits           1164     1164
- Misses         1117     1126       +9
  Partials         74       74

Impacted Files
Coverage Δ

src/main/java/seedu/address/MainApp.java
0.00% <0.00%> (ø)

...in/java/seedu/address/commons/core/LogsCenter.java
78.37% <ø> (ø)

.../java/seedu/address/model/util/SampleDataUtil.java
12.50% <0.00%> (-7.50%)
:arrow_down:

src/main/java/seedu/address/model/UserPrefs.java
80.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

LGTM


[Feature Request]: Documentation of useage with ingress annotations

Describe why this change is needed
Hello aws-privateca-issier team,
I tried to use aws-privateca-issuer with annotations of ingress resources, but didn't find a documentation how to apply the appotations to issue certificates automatically.
I configured my issuer as follows:

apiVersion: awspca.cert-manager.io/v1beta1
metadata:
annotations:
name: my-root-ca
kind: AWSPCAClusterIssuer
spec:
arn: arn:aws:acm-pca:eu-central-1:XXXXXX:certificate-authority/XXXXXX
region: eu-central-1

I used following annotations in the ingress ressource:
cert-manager.io/cluster-issuer: my-root-ca
But no certificate is issued. When i create the certificatate and ingress ressources manually the the cluster gets the tls certificate provisioned by the private acm and everything is fine but with annotations I was not able to issue certificates.
Can you give me advice how to annotate the ingress to issue certificates automatically? Cert-manager annotation documentation has a view references to aws-privateca-issuer, but it is not clear how to use them.
using cert-manager version 1.11.0 and aws-privateca-issuer 1.2.4
Can you provide some documentation or any advices to make this work?
best regards,
Marco
Describe solutions and alternatives considered (optional)
No response
Is there anything else you would like to add?
No response

Updated the README to describe this issue and how to resolve it.
Resolving this issue.


Configure selection window width/size

Broken out from https://github.com/rgroli/other.nvim/pull/16#issuecomment-1282247670
--
Would it be possible to add configuration to make the selection window larger, so that one can see a bit more of the path?

Hi,
now the filename take up all available space. And there is a new config-option to set the window size as a number between 0 and 1.
Cheers!

@rgroli great thanks, it works!


Add support for istioctl logging flags to 'manifest generate' and 'apply'

Resolves https://github.com/istio/istio/issues/22956 and https://github.com/istio/istio/issues/22904
The istioctl manifest generate and apply create their own logger which did not follow the usual istioctl logging flags (see istioctl options for a list).
This causes those commands to use the istioctl root logging config.
Not part of this: Remove the code that recreates the logger out of the subcommands so it doesn't re-do the work the istioctl root does.  Also not part: deprecating --logtostderr, which is the operator version of --log_target=stderr.

@esnible: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
cd7acccc6dc941623adb0740db23a5368ef6e70f
link
/test lint_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@esnible: The following tests failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
cd7acccc6dc941623adb0740db23a5368ef6e70f
link
/test lint_istio

gencheck_istio
cd7acccc6dc941623adb0740db23a5368ef6e70f
link
/test gencheck_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Build in DevContainer fails

Hi all,
I am trying to get my ESP32-C3 programmed with zig. I wanted to start out from the DevContainer to minimize issues with my system setup. If I call:
zig build -Dtarget=riscv32-freestanding-none -Dcpu=generic_rv32+c+m+zicsr+zifencei from within the DevContainer this is what I get:
esp@2c44f4cee9f4:/workspaces/open-sensor-platform/firmware/blink$ zig build -Dtarget=riscv32-freestanding-none -Dcpu=generic_rv32+c+m+zicsr+zifencei
error: FileNotFound
/opt/zig-relsafe-espressif-x86_64-linux-musl-baseline/lib/std/posix.zig:1791:23: 0x148bd4d in openatZ (build)
            .NOENT => return error.FileNotFound,
                      ^
/opt/zig-relsafe-espressif-x86_64-linux-musl-baseline/lib/std/fs/Dir.zig:1567:21: 0x144afe6 in openDirFlagsZ (build)
        else => |e| return e,
                    ^
/opt/zig-relsafe-espressif-x86_64-linux-musl-baseline/lib/std/fs/Dir.zig:1531:5: 0x13fe502 in openDirZ (build)
    return self.openDirFlagsZ(sub_path_c, symlink_flags);
    ^
/opt/zig-relsafe-espressif-x86_64-linux-musl-baseline/lib/std/fs/Dir.zig:1475:5: 0x13f290e in openDir (build)
    return self.openDirZ(&sub_path_c, args);
    ^
/workspaces/open-sensor-platform/firmware/blink/build.zig:86:15: 0x1412a98 in searched_idf_libs (build)
    var dir = try std.fs.cwd().openDir("../build", .{
              ^
/workspaces/open-sensor-platform/firmware/blink/build.zig:35:9: 0x14132f3 in includeDeps (build)
        try searched_idf_libs(b, lib);
        ^
/workspaces/open-sensor-platform/firmware/blink/build.zig:19:5: 0x14141e9 in build (build)
    try includeDeps(b, lib);
    ^
/opt/zig-relsafe-espressif-x86_64-linux-musl-baseline/lib/std/Build.zig:2168:25: 0x13f6607 in runBuild__anon_4612 (build)
        .error_union => try build_zig.build(b),
                        ^
/opt/zig-relsafe-espressif-x86_64-linux-musl-baseline/lib/compiler/build_runner.zig:335:9: 0x13f135b in main (build)
        try builder.runBuild(root);
        ^
error: the following build command failed with exit code 1:
/workspaces/open-sensor-platform/firmware/blink/.zig-cache/o/2aed623c67fa95b300a7d5bd2356f4c0/build /opt/zig-relsafe-espressif-x86_64-linux-musl-baseline/zig /opt/zig-relsafe-espressif-x86_64-linux-musl-baseline/lib /workspaces/open-sensor-platform/firmware/blink /workspaces/open-sensor-platform/firmware/blink/.zig-cache /home/esp/.cache/zig --seed 0x15fba01 -Zbcbe1850831e84be -Dtarget=riscv32-freestanding-none -Dcpu=generic_rv32+c+m+zicsr+zifencei

What am I doing wrong?
Thanks for your help :-)

Hi @JanBeelte,
The error says file not found in your project.
You may need to check build.zig if it is missing user file.
Do you have any open project that can replicate this problem?

Thank you so much for the quick response!

Do you have any open project that can replicate this problem?

https://github.com/opendata-nuernberg/open-sensor-platform/tree/main/firmware/blink
We are trying to use your sample as a starting point for our firmware. If there is any better way to use your "toolchain" as a dependency (instead of copying it into our repo) advice is very welcome!

Update, I just discovered idf.py build
Is this the correct way to build the project? Why is it not mentioned in the readme?
This is the output I get:
esp@2c44f4cee9f4:/workspaces/open-sensor-platform/firmware/blink$ idf.py build
Executing action: all (aliases: build)
Running ninja in directory /workspaces/open-sensor-platform/firmware/blink/build
Executing "ninja all"...
[1/1] cd /workspaces/open-sensor-platform/firmware/blink/bu...sor-platform/firmware/blink/build/bootloader/bootloader.bin
Bootloader binary size 0x6590 bytes. 0xa70 bytes (9%) free.
[5/7] Linking CXX executable zig-sample-idf.elf
/opt/esp/tools/xtensa-esp-elf/esp-14.2.0_20240906/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: warning: /opt/esp/tools/xtensa-esp-elf/esp-14.2.0_20240906/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/esp32/no-rtti/crtn.o: missing .note.GNU-stack section implies executable stack
/opt/esp/tools/xtensa-esp-elf/esp-14.2.0_20240906/xtensa-esp-elf/bin/../lib/gcc/xtensa-esp-elf/14.2.0/../../../../xtensa-esp-elf/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
[6/7] Generating binary image from built executable
esptool.py v4.8.1
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Generated /workspaces/open-sensor-platform/firmware/blink/build/zig-sample-idf.bin
[7/7] cd /workspaces/open-sensor-platform/firmware/blink/bu...pen-sensor-platform/firmware/blink/build/zig-sample-idf.bin
zig-sample-idf.bin binary size 0x36210 bytes. Smallest app partition is 0x100000 bytes. 0xc9df0 bytes (79%) free.

Project build complete. To flash, run:
 idf.py flash
or
 idf.py -p PORT flash
or
 python -m esptool --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 2MB --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/zig-sample-idf.bin
or from the "/workspaces/open-sensor-platform/firmware/blink/build" directory
 python -m esptool --chip esp32 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"

zig build is giving the same error as before.

(instead of copying it into our repo) advice is very welcome!

Yes!😅 I haven't made the project an idf-component yet. PRs are welcome!!
Maybe help you using zon:
https://github.com/georgik/esp32-lang-lab/tree/main/examples/zig/esp-idf-v5/get-started/hello_world
However, need add CMake script.

Regarding the highlighted error, I need to test it. Unfortunately, I can't at this exact moment!!

Answer to another question about "my toolchain fork"...
First of all, feel free to use it.
However, the credit goes to Zig upstream. I just anticipated Xtensa's tests!
Recommended if xtensa target is needed, riscv32 usage may be optional (zig upstream already support).

The error says file not found in your project. You may need to check build.zig if it is missing user file.

I checked the build.zig file:

looks like it is searching for another build.zig file outside of the repository, or do I miss something here?

It's not another file it's CMake's view between src_dir and build_dir

See
https://github.com/kassane/zig-esp-idf-sample/blob/main/cmake%2Fzig-build.cmake#L89-L104

Thank you so much for all the input!
The current state is:
idf.py build
is generating a succesful build.
But still zig build is throwing the same error that we started with.
I did not find any mention of idf.py in your Readme, is this an "internal" tool or is it supposed to be used by "users"?
I would really appreciate if you could take a look why our zig build fails whenever you have time :-)

I did not find any mention of idf.py in your Readme, is this an "internal" tool or is it supposed to be used by "users"?

I assume you are esp-idf user.
build.zig is not the "protagonist" in the build, continuing the use of CMake.
CMake calls zig build during the build process.
Do not run Zig standalone. Except for zls/zigscient with idf EnvVar enabled to get imports.
Zig becomes secondary in library building by integrating app_main into the source.

This explains it very well, thank you very much :-)


Admin intervention flag url

Change the hard coded pypi url with the pyramid route_url method. Fix for #3185

@saxenanurag I think you've mixed up your branch for this and your branch for #3406. :) I think perhaps you force-pushed to the wrong branch.

Thanks, @saxenanurag! Would you like a suggestion for another issue to work on?

Sure @brainwane !


assert should be a highlighted keyword in javascript and typescript

Issue Type: Bug

should be

VS Code version: Code 1.67.2 (Universal) (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:20:57.384Z)
OS version: Darwin arm64 21.5.0
Restricted Mode: No

Looks like #893

Duplicate and already fixed #893


Unable to load HTML file in iframe within a notebook output

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: N/A
OS Version: N/A

Steps to Reproduce:

Open the below notebook in VS Code
The contents of the HTML are not displayed

IPYNB
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "# !pip install pyvis"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "from pyvis import network as net\n",
    "import networkx as nx"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Local cdn resources have problems on chrome/safari when used in jupyter-notebook. \n"
     ]
    },
    {
     "data": {
      "text/html": [
       "\n",
       "        <iframe\n",
       "            width=\"100%\"\n",
       "            height=\"600px\"\n",
       "            src=\"nx1.html\"\n",
       "            frameborder=\"0\"\n",
       "            allowfullscreen\n",
       "            \n",
       "        ></iframe>\n",
       "        "
      ],
      "text/plain": [
       "<IPython.lib.display.IFrame at 0x159461df0>"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "g = net.Network(notebook=True)\n",
    "nxg = nx.complete_graph(5)\n",
    "g.from_nx(nxg)\n",
    "g.show('nx1.html')"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": ".venvWidgets",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.15"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}

@mjbvz anything we can do here?
I can think of hacky work arounds to find the file and change the src in the iframe contents, though i'd prefer to leave that hack as a last resort.

@mjbvz I also found that this sample is documented on our VS Code docs (it used to work when using the webview based notebook, and we have at least one issue file in Jupyter ext for this same package)

iframes should work, but you cannot load local content inside of an iframe. See #154722 for the discussion of this
I'm not aware of any good workarounds


encapsulate compiler noise stream nil check

Going to work a little indent-sexp magic

Something more than whitespace weirdness going on, tests are failing, etc. Will take a closer look tomorrow.

It turns out the bad parenthesis that @stylewarning pointed out above was the result of the enclosing handler-case getting somehow mangled. Reverting then selectively re-applying the changes in that file appears to have sorted things.
I have a local copy with whitespace fixes and tests passing, but just realized this PR is based off eric's fork, hence I don't permission to push to the branch.
@erichulburd if you don't mind giving me permission on your quilc fork temporarily, I will push the updates there. Otherwise, I can create a new branch and PR, but then we'll lose the comment history here and I think we can all agree that it would be a real shame to lose @stylewarning's I CRI EVRYTIEM.

closing this in favor of #585


source_id registration of GISS-E2.1G/GISS-E2.1H

"GISS-E2.1G":{
aerosol = varies with physics-version. p==1 None, p==2 OMA, p==4 TOMAS, p==5 MATRIX )
atmosphere = GISS-E2.1(90 x 144  2x2.5; 40 levels; top level 0.1hPa)
atmospheric_chemistry = varies with physics-version. p==1 Non-interactive, p>1 GPUCCINI
institution_id = NASA-GISS
label = GISS-E2.1G
label_extended = GISS-E2.1G
land_ice = Fixed
land_surface = GISS LSM
ocean = GISS Ocean (1 deg latitude/longitude; 32 levels; top grid cell 10m)
ocean_biogeochemistry = None
release_year = 2016
sea_ice = GISS SI
source_id = GISS-E2.1G
}
"GISS-E2.1H":{
aerosol = varies with physics-version. p==1 None, p==2 OMA, p==4 TOMAS, p==5 MATRIX )
atmosphere = GISS-E2.1(90 x 144  2x2.5; 40 levels; top level 0.1hPa)
atmospheric_chemistry = varies with physics-version. p==1 Non-interactive, p>1 GPUCCINI
institution_id = NASA-GISS
label = GISS-E2.1H
label_extended = GISS-E2.1H
land_ice = Fixed
land_surface = GISS LSM
ocean = HYCOM Ocean (tripolar grid; ~1 deg latitude/longitude; 32 levels; top grid cell 0-10m)
ocean_biogeochemistry = None
release_year = 2016
sea_ice = GISS SI
source_id = GISS-E2.1H
}

@gavinny thanks for submitting, we're limiting the source_id keys to the values a-z, A-Z, 0-9, and "-", as these will be part of the DRS directory structure generated by CMOR so how do you like the following amendments? I've also added some queries (applicable to both models) using the #question notation (it would be good to gather these additional details, or clarify the query).
Also wondering if you're happy with the existing institution_id registration?
"GISS-E2-1G":{

aerosol = varies with physics-version (p==1 None, p==2 OMA, p==4 TOMAS, p==5 MATRIX) #Should there be an entry for p==3?

atmosphere = GISS-E2.1 (90 x 144 2x2.5; 40 levels; top level 0.1hPa)
atmospheric_chemistry = varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)
institution_id = NASA-GISS
label = GISS-E2.1G
label_extended = GISS-E2.1G
land_ice = Fixed

land_surface = GISS LSM #Is there a version number?

ocean = GISS Ocean (1 deg latitude/longitude; 32 levels; top grid cell 10m) #Is there a version number?

ocean_biogeochemistry = None
release_year = 2016

sea_ice = GISS SI #Is there a version number?

source_id = GISS-E2-1G
}

"GISS-E2-1H":{
aerosol = varies with physics-version (p==1 None, p==2 OMA, p==4 TOMAS, p==5 MATRIX)
atmosphere = GISS-E2.1 (90 x 144 2x2.5; 40 levels; top level 0.1hPa)
atmospheric_chemistry = varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)
institution_id = NASA-GISS
label = GISS-E2.1H
label_extended = GISS-E2.1H
land_ice = Fixed
land_surface = GISS LSM
ocean = HYCOM Ocean (tripolar grid; ~1 deg latitude/longitude; 32 levels; top grid cell 0-10m)
ocean_biogeochemistry = None
release_year = 2016
sea_ice = GISS SI
source_id = GISS-E2-1H
}

this is better:
"GISS-E2-1-G”:{
aerosol = varies with physics-version (p==1 None, p==3 OMA, p==4 TOMAS, p==5 MATRIX)
atmosphere = GISS-E2.1 (90 x 144 2x2.5; 40 levels; top level 0.1hPa)
atmospheric_chemistry = varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)
institution_id = NASA-GISS
label = GISS-E2.1G
label_extended = GISS-E2.1G
land_ice = Fixed
land_surface = GISS LSM #Is there a version number?
ocean = GISS Ocean (1 deg latitude/longitude; 32 levels; top grid cell 10m) #Is there a version number?
ocean_biogeochemistry = None
release_year = 2016
sea_ice = GISS SI
source_id = GISS-E2-1-G
}
Notes: p==2 is the one that should be missing - that was an intermediate version we used in CMIP5 but have discontinued).
No version numbers for sea ice or LSM since they really aren’t distinct - we are only naming them for this.
"GISS-E2-1-H":{
aerosol = varies with physics-version (p==1 None, p==3 OMA, p==4 TOMAS, p==5 MATRIX)
atmosphere = GISS-E2.1 (90 x 144 2x2.5; 40 levels; top level 0.1hPa)
atmospheric_chemistry = varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)
institution_id = NASA-GISS
label = GISS-E2.1H
label_extended = GISS-E2.1H
land_ice = Fixed
land_surface = GISS LSM
ocean = HYCOM Ocean (tripolar grid; ~1 deg latitude/longitude; 26 levels; top grid cell 0-10m)
ocean_biogeochemistry = None
release_year = 2016
sea_ice = GISS SI
source_id = GISS-E2-1-H
}
thanks
Gavin
==========
Gavin Schmidt
Director, NASA Goddard Institute for Space Studies
2880 Broadway
New York, NY 10025
Tel:<PHONE_NUMBER>
Email: Gavin.A.Schmidt<EMAIL_ADDRESS>URL: http://www.giss.nasa.gov/staff/gschmidt.html
On Dec 8, 2016, at 5:28 PM, Paul J. Durack <notifications<EMAIL_ADDRESS>wrote:
@gavinnyhttps://github.com/gavinny thanks for submitting, we're limiting the source_id keys to the values a-z, A-Z, 0-9, and "-", as these will be part of the DRS directory structure generated by CMOR so how do you like the following amendments? I've also added some queries (applicable to both models) using the #question notation (it would be good to gather these additional details, or clarify the query).
Also wondering if you're happy with the existing institution_id registrationhttps://github.com/WCRP-CMIP/CMIP6_CVs/blob/master/CMIP6_institution_id.json#L21?
"GISS-E2-1G":{
aerosol = varies with physics-version (p==1 None, p==2 OMA, p==4 TOMAS, p==5 MATRIX) #Should there be an entry for p==3?
atmosphere = GISS-E2.1 (90 x 144 2x2.5; 40 levels; top level 0.1hPa)
atmospheric_chemistry = varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)
institution_id = NASA-GISS
label = GISS-E2.1G
label_extended = GISS-E2.1G
land_ice = Fixed
land_surface = GISS LSM #Is there a version number?
ocean = GISS Ocean (1 deg latitude/longitude; 32 levels; top grid cell 10m) #Is there a version number?
ocean_biogeochemistry = None
release_year = 2016
sea_ice = GISS SI #Is there a version number?
source_id = GISS-E2-1G
}
"GISS-E2-1H":{
aerosol = varies with physics-version (p==1 None, p==2 OMA, p==4 TOMAS, p==5 MATRIX)
atmosphere = GISS-E2.1 (90 x 144 2x2.5; 40 levels; top level 0.1hPa)
atmospheric_chemistry = varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)
institution_id = NASA-GISS
label = GISS-E2.1H
label_extended = GISS-E2.1H
land_ice = Fixed
land_surface = GISS LSM
ocean = HYCOM Ocean (tripolar grid; ~1 deg latitude/longitude; 32 levels; top grid cell 0-10m)
ocean_biogeochemistry = None
release_year = 2016
sea_ice = GISS SI
source_id = GISS-E2-1H
}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/WCRP-CMIP/CMIP6_CVs/issues/177#issuecomment-265875049, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXVEXADldYP7aP3IbY2-TY-tHhCD37XJks5rGISTgaJpZM4LIPoc.

@gavinny take a peek at CMIP6_source_id.html and check the entries.. We can continue to tweak these until you start publishing..

@gavinny we have recently augmented the information we are collecting for registration, so we require some additional information from you (specifically the nominal_resolution attribute for each realm). I have made some amendments to the existing entries below (noted between the ### entry ### text), and will require you to fill out the fields with the ### informational text directing you to descriptive information about the request, or lists of potential entries (I have only included this for the first model GISS-E2-1G as an example)
"GISS-E2-1G":{
   "activity_participation":[
      "" ### See activity list at https://github.com/WCRP-CMIP/CMIP6_CVs/blob/master/CMIP6_activity_id.json
   ],
"model_component":
"aerosol":
   "description":"varies with physics-version (p==1 none, p==3 OMA, p==4 TOMAS, p==5 MATRIX)",
   "nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as atmos below)
"atmos":
   "description":"GISS-E2.1 (###2 x 2.5 degrees; 144 x 90 longitude/latitude; 40 levels; top level 0.1 hPa###)",
   "nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl
"atmosChem":
   "description":"varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)",
   "nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as atmos above)
"land":
   "description":"GISS LSM",
   "nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as atmos above)
"landIce":
   "description":"Fixed",
   "nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as atmos above)
"ocean":
   "description":"GISS Ocean (1 deg###; 360 x 180 longitude/latitude;### 32 levels; top grid cell 0-10m)",
   "nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl
"seaIce":
   "description":"GISS SI",
   "nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as ocean above)

"GISS-E2-1H":{
   "activity_participation":[
      ""
   ],
"model_component":
"aerosol":
   "description":"varies with physics-version (p==1 none, p==3 OMA, p==4 TOMAS, p==5 MATRIX)",
   "nominal_resolution":""
"atmos":
   "description":"GISS-E2.1 (###2 x 2.5 degrees; 144 x 90 longitude/latitude; 40 levels; top level 0.1 hPa###)",
   "nominal_resolution":""
"atmosChem":
   "description":"varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)",
   "nominal_resolution":""
"land":
   "description":"GISS LSM",
   "nominal_resolution":""
"landIce":
   "description":"Fixed",
   "nominal_resolution":""
"ocean":
   "description":"HYCOM Ocean (tripolar grid;### 360 x 180 longitude/latitude###; 26 levels; top grid cell 0-10m)",
   "nominal_resolution":""
"seaIce":
   "description":"GISS SI",
   "nominal_resolution":""

@gavinny have you had any luck collecting the information requested above?

Sorry - haven't got around to it yet.
Gavin

Gavin A. Schmidt
NASA Goddard Institute for Space Studies
2880 Broadway, New York
Tel:<PHONE_NUMBER>tel:212 677 5627
Email: gavin.a.schmidt<EMAIL_ADDRESS>URL: http://www.giss.nasa.gov/staff/gschmidt.html
On May 10, 2017, at 9:35 PM, Paul J. Durack <notifications<EMAIL_ADDRESS>wrote:
@gavinnyhttps://github.com/gavinny have you had any luck collecting the information requested above?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/WCRP-CMIP/CMIP6_CVs/issues/177#issuecomment-300589674, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXVEXIcbi9h1IspcfuJ2K_iC0pniNyK1ks5r4hF7gaJpZM4LIPoc.

@gavinny no problem, when you get it together please update this issue, I'll pull the info across and close it out

Hello,
My name is David Hassell and I am part of the ES-DOC team that is working on CMIP6 documentation. As a part of this process, we need a liaison at NASA-GISS who can act as the interface between the scientists who actually provide the documentation and the ES-DOC team. I was wondering if you are able to help with identifying such a person?
The documentation process has changed considerably since CMIP5 (in response to the feedback that we received), and you can now choose from a variety of documentation methods. Our aim is to train the ES-DOC liaison who can then work with people at NASA-GISS. No specialist knowledge about ES-DOC nor climate modelling is required, but neither would it be a problem, of course. Some institutes have appointed a member of the modelling team, others not.
I would be very grateful f you could let me know by e-mail (david.hassell at ncas.ac.uk) if you have any suggestions.
All the best,
David Hassell
National Centre for Atmospheric Science
University of Reading
UK

@gavinny have you had any luck collecting that additional info?

Hi Paul,

‘activity-participation’ is not a good field to be set in the documentation, since it will vary as a function of time. If we set it optimistically, we mislead people if the activity doesn’t happen (for whatever reason), if we set it conservatively, people will not find appropriate runs that do end up being done. Thus we will prefer to leave this blank (or to be filled in via some interactive search).

“nominal_resolution" for atmos is  “250km”, for ocean in GISS-E2.1G is “100km”, for ocean in GISS-E2.1H it is “100km” also.

“nominal_resolution” for aerosol/atmosChem/land/landIce/seaIce are all as for atmos, only ocean is different.

Gavin
==========
Gavin Schmidt
Director, NASA Goddard Institute for Space Studies
2880 Broadway
New York, NY 10025
Tel:<PHONE_NUMBER>
Email<EMAIL_ADDRESS>URL: http://www.giss.nasa.gov/staff/gschmidt.html

On Apr 26, 2017, at 12:09 PM, Paul J. Durack<EMAIL_ADDRESS>wrote:
@gavinny https://github.com/gavinny we have recently augmented the information we are collecting for registration, so we require some additional information from you (specifically the nominal_resolution attribute for each realm). I have made some amendments to the existing entries below (noted between the ### entry ### text), and will require you to fill out the fields with the ### informational text directing you to descriptive information about the request, or lists of potential entries (I have only included this for the first model GISS-E2-1G as an example)
"GISS-E2-1G":{
"activity_participation":[
"" ### See activity list at https://github.com/WCRP-CMIP/CMIP6_CVs/blob/master/CMIP6_activity_id.json
],
"model_component":
"aerosol":
"description":"varies with physics-version (p==1 none, p==3 OMA, p==4 TOMAS, p==5 MATRIX)",
"nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as atmos below)
"atmos":
"description":"GISS-E2.1 (###2 x 2.5 degrees; 144 x 90 longitude/latitude; 40 levels; top level 0.1 hPa###)",
"nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl
"atmosChem":
"description":"varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)",
"nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as atmos above)
"land":
"description":"GISS LSM",
"nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as atmos above)
"landIce":
"description":"Fixed",
"nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as atmos above)
"ocean":
"description":"GISS Ocean (1 deg###; 360 x 180 longitude/latitude;### 32 levels; top grid cell 0-10m)",
"nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl
"seaIce":
"description":"GISS SI",
"nominal_resolution":"" ### See Appendix 2 in https://goo.gl/v1drZl (likely same as ocean above)
"GISS-E2-1H":{
"activity_participation":[
""
],
"model_component":
"aerosol":
"description":"varies with physics-version (p==1 none, p==3 OMA, p==4 TOMAS, p==5 MATRIX)",
"nominal_resolution":""
"atmos":
"description":"GISS-E2.1 (###2 x 2.5 degrees; 144 x 90 longitude/latitude; 40 levels; top level 0.1 hPa###)",
"nominal_resolution":""
"atmosChem":
"description":"varies with physics-version (p==1 Non-interactive, p>1 GPUCCINI)",
"nominal_resolution":""
"land":
"description":"GISS LSM",
"nominal_resolution":""
"landIce":
"description":"Fixed",
"nominal_resolution":""
"ocean":
"description":"HYCOM Ocean (tripolar grid;### 360 x 180 longitude/latitude###; 26 levels; top grid cell 0-10m)",
"nominal_resolution":""
"seaIce":
"description":"GISS SI",
"nominal_resolution":""
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/WCRP-CMIP/CMIP6_CVs/issues/177#issuecomment-297461410, or mute the thread https://github.com/notifications/unsubscribe-auth/AXVEXNif2Cv12m5s2fHWs1XjQimV5oTqks5rz2xEgaJpZM4LIPoc.

@gavinny thanks for this, peek at CMIP6_source_id.html and let me know if any further tweaks are required. As I have noted earlier these entries can be amended up to the point that you start writing data, if you are using CMOR, the entries from this registration will be written as global attributes in your CMOR-written files.
I have added CMIP as the sole activity_participation as we require an entry for this field. The entry is being used as a MIP interest registry, I note that Anthony Leboissetier has also registered on the CMIP6-OMIP mailing list, so we could potentially add OMIP (along with any other MIP entries) to the list if there is the interest - if you check the CMIP6_source_id.html page, you'll see the "interest" noted by the other contributing (and registered) models.
I also set your seaIce nominal_resolution values to the same as the ocean grid, I am guessing that these are identical, rather than being on the atmos grid - if I am wrong let me know and I will amend (along with anything else that I have wrong - possibly also the 360 x 180 longitude/latitude values for the ocean components).

Thanks.

I also set your seaIce nominal_resolution values to the same as the ocean grid, I am guessing that these are identical, rather than being on the atmos grid - if I am wrong let me know and I will amend (along with anything else that I have wrong - possibly also the 360 x 180 longitude/latitude values for the ocean components).

No, the sea ice is actually on the atmospheric grid in these configurations. I’ll check with the ocean folks on the size of the arrays.
Gavin
==========
Gavin Schmidt
Director, NASA Goddard Institute for Space Studies
2880 Broadway
New York, NY 10025
Tel:<PHONE_NUMBER>
Email<EMAIL_ADDRESS>URL: http://www.giss.nasa.gov/staff/gschmidt.html

On Jun 15, 2017, at 2:43 PM, Paul J. Durack<EMAIL_ADDRESS>wrote:
@gavinny https://github.com/gavinny thanks for this, peek at CMIP6_source_id.html http://rawgit.com/WCRP-CMIP/CMIP6_CVs/master/src/CMIP6_source_id.html and let me know if any further tweaks are required. As I have noted earlier these entries can be amended up to the point that you start writing data, if you are using CMOR, the entries from this registration will be written as global attributes in your CMOR-written files.
I have added CMIP as the sole activity_participation as we require an entry for this field. The entry is being used as a MIP interest registry, I note that Anthony Leboissetier has also registered on the CMIP6-OMIP mailing list, so we could potentially add OMIP (along with any other MIP entries) to the list if there is the interest - if you check the CMIP6_source_id.html http://rawgit.com/WCRP-CMIP/CMIP6_CVs/master/src/CMIP6_source_id.html page, you'll see the "interest" noted by the other contributing (and registered) models.
I also set your seaIce nominal_resolution values to the same as the ocean grid, I am guessing that these are identical, rather than being on the atmos grid - if I am wrong let me know and I will amend (along with anything else that I have wrong - possibly also the 360 x 180 longitude/latitude values for the ocean components).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/WCRP-CMIP/CMIP6_CVs/issues/177#issuecomment-308832491, or mute the thread https://github.com/notifications/unsubscribe-auth/AXVEXMO6d6NuKFoq91GfuEsNDUlJ-dKMks5sEXtrgaJpZM4LIPoc.

@gavinny, no problem will change the seaIce.. Let me know if further tweaks to ocean array sizes are also required..

@gavinny don't forget to ask @durack1 to add PMIP to the activity participation field of GISS-E2-1G. Unless that's a problem, as I have read some arguments about this above. But I find it really useful to go to the models' CV page and get all the models involved in PMIP4, when I search for "PMIP"
You should also add a list of the other MIPs your group will be involved in. Same thing for the GISS-E2-1H model
I'm also wondering about the atmos resol. I have read in the discussion above "144 x 90 longitude/latitude", but in the official CMIP6 source_id values I find "90 x 144 longitude/latitude;". Which one is correct?

It should be 144 longitude/90 latitude. I’ll try and get it fixed

Gavin A. Schmidt
NASA Goddard Institute for Space Studies
2880 Broadway, New York
Tel:<PHONE_NUMBER>tel:212 677 5627
Email: gavin.a.schmidt<EMAIL_ADDRESS>URL: http://www.giss.nasa.gov/staff/gschmidt.html
On Mar 30, 2018, at 8:42 AM, Jean-Yves Peterschmitt <notifications<EMAIL_ADDRESS>wrote:
@gavinnyhttps://github.com/gavinny don't forget to ask @durack1https://github.com/durack1 to add PMIPto the activity participationfield of GISS-E2-1G. Unless that's a problem, as I have read some arguments about this above. But I find it really useful to go to the models' CV page and get all the models involved in PMIP4, when I search for "PMIP"
You should also add a list of the other MIPs your group will be involved in. Same thing for the GISS-E2-1H model
I'm also wondering about the atmos resol. I have read in the discussion above "144 x 90 longitude/latitude", but in the official CMIP6 source_id valueshttps://rawgit.com/WCRP-CMIP/CMIP6_CVs/master/src/CMIP6_source_id.html I find "90 x 144 longitude/latitude;". Which one is correct?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/WCRP-CMIP/CMIP6_CVs/issues/177#issuecomment-377516435, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXVEXCdPGTdeuO_agAed5AhEkc-emLFYks5tjigogaJpZM4LIPoc.

@gavinny, similar to https://github.com/WCRP-CMIP/CMIP6_CVs/issues/1018 GISS-E2-1-H ['r1i1p1f1'] also has 33 vertical levels in the output, whereas the reporting above says 32 - another typo to fix? If yes, did you want to reopen this and I'll make the tweak

Yes, both instances. Thanks
…
-- Gavin A. Schmidt Director, Goddard Institute for Space Studies 2880 Broadway, New York NY 10025 Cell:<PHONE_NUMBER> Email<EMAIL_ADDRESS>URL: https://www.giss.nasa.gov/staff/gschmidt From: Paul J. Durack @.> Date: Thursday, March 28, 2024 at 4:51 PM To: WCRP-CMIP/CMIP6_CVs @.> Cc: Schmidt, Gavin A. (GISS-6110) @.>, Mention @.> Subject: [EXTERNAL] [BULK] Re: [WCRP-CMIP/CMIP6_CVs] Add GISS-E2.2H as a model (#1018) CAUTION: This email originated from outside of NASA. Please take care when clicking links or opening attachments. Use the "Report Message" button to report suspicious messages to the NASA SOC. @gavinnyhttps://github.com/gavinny yep over to me for tweaks, BUT, it would be useful for me to know whether the same issue should be fixed for GISS-E2-1-H ['r1i1p1f1'] as well? (this issue is focused on GISS-E2-2-H ['r1i1p1f1']) — Reply to this email directly, view it on GitHub<#1018 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF2UIXGFUHBUGJZMPMOQ26DY2R7DVAVCNFSM43XJ7S7KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBSGYYDSMJZGYYQ. You are receiving this because you were mentioned.Message ID: @.***>

Reopening

@gavinny GISS-E2-1-H updated to reflect 33 (and not 32) vertical ocean levels, see CMIP6_source_id.html - similar to #1018


Make Shell-Completion.md clearer and update it

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.
[ ] Have you successfully run brew style with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

I made this change because the prompt in a new instance of bash had slowed down quite a bit after installing bash-completion (and following the installation instructions) while also having the Homebrew completion code in my ~/.bash_profile. I found that the formula's script also did the same thing as the Homebrew completion code. After commenting the Homebrew code out, the prompt became much faster! Finding and installing a newer version of that formula - bash-completion@2 made the prompt even faster.
So I added a clarification in the docs and changed mentions of bash-completion to bash-completion@2
This could help people have a performance boost and install a more updated version of a formula.
Thanks for having a look!
quackduck

I wonder why the test failed. What's spdx.json? That's unrelated to any changes I made, right?

At first glance it looks like the same error I got before in another PR, which means data/spdx.json needs an update such as with #8020

Yes, try rebase on master.

You mean I should make the same changes @Bo98 made to spdx.json in #8020?

The docs assume that users are on bash 3.2, the version that ships with macOS. It should continue to recommend bash-completion by default and note that anyone using Homebrew's bash should install bash-completion@2 instead.

The docs assume that users are on bash 3.2, the version that ships with macOS. It should continue to recommend bash-completion by default and note that anyone using Homebrew's bash should install bash-completion@2 instead.

Agreed. 👍 otherwise.

Done! I made the change.

Thanks so much for your contribution!  You rock, @quackduck!

Wow! Thanks, @MikeMcQuaid! Thanks, everyone else for guiding me!


Deprecate BIO_meth_get_*

Summary
The BIO_meth_get_* family of getter functions do not appear to be safely usable in a backwards-compatible way. They should be deprecated and callers pointed to alternate, more robust patterns (see below).
Problem
Based on Debian code search and my experience with existing callers, these getters seem to be used when a caller wants to take an existing OpenSSL BIO (so far always BIO_s_socket) and then customize its behavior in some way. The usual pattern is to make a new BIO_METHOD, copy over most of the base BIO_METHOD, but then supply custom versions of some functions. Sometimes these custom versions delegate back to the base function, and sometimes they apply their own.
Callers from Debian code search:

librabbitmq: https://sources.debian.org/src/librabbitmq/0.15.0-1/librabbitmq/amqp_openssl_bio.c/?hl=120#L120
postgresql: https://sources.debian.org/src/postgresql-17/17.2-1/src/backend/libpq/be-secure-openssl.c/?hl=966#L966
trafficserver: https://sources.debian.org/src/trafficserver/9.2.5+ds-1/iocore/net/BIO_fastopen.cc/?hl=103#L103
voms: https://sources.debian.org/src/voms/2.1.0-1/src/socklib/Server.cpp/?hl=329#L329

The problem with this pattern is that the base BIO_METHOD's function pointers may make assumptions about the other functions they call. For example:

The functions may rely on their BIO_meth_set_create callback to initialize some state
The functions may assume they have sole ownership of BIO_get_data and BIO_set_data
The functions may rely on a newly-added BIO_METHOD hook that the application did not know to copy

Some concrete failure modes:

OpenSSL 3.2 actually broke postgres because BIO_s_socket started storing the file descriptor in BIO_set_data instead of bio->num. They worked around it with https://github.com/postgres/postgres/commit/c82207a548db47623a2bfa2447babdaa630302b9, but this didn't address the root problem. I sent them https://github.com/postgres/postgres/commit/6f782a2a1738ab96ee948a4ab33ca3defd39327b to avoid this pattern.  It looks like trafficserver had the same issue: https://github.com/apache/trafficserver/commit/6bf342ba362a42786b9efcb0d4d554f725643a8d. This kind of breakage is particular insidious as it's actually a potentially exploitable memory error!

Suppose an application uses BIO_meth_get_read. Now BIO_s_socket internally becomes read_ex-based instead of read-based. read_ex's problems (#8208) aside, this would now break that application because now the read hook is actually read_ex and the old read callback is NULL! Conversely, if a BIO_METHOD switches from read_ex back to read, the read_ex hook is an internal bread_conv that requires the read function still exist. The downstream application instead copy over bread_conv without the dependency. Concretely, the Debian voms package is impacted by this (One could also imagine OpenSSL wanting to do something like this again. I dunno, maybe you all decide that you need a create_ex alternate to create.)

Aside: It may be tempting to justify this pattern as just subclassing in an OOP-based language, but this is very different from how subclassing works. When subclassing in an OOP-based language, the base class still retains a self-consistent copy of itself, deferring to the subclass in controlled points. This is reaching in and copying random vtable pointers without coordination with the BIO_METHOD.
Given this mess, I think we clearly need to deprecate these functions, and document the more robust patterns applications should instead. This allows for a future OpenSSL release to be able to evolve its BIO infrastructure with fewer downstream compatibility and memory safety risks.
Replacement
So, what should the applications do instead? Well, it depends on what they were getting out of the base BIO, but I think there are broadly two options:

Implement the interface yourself: If the application was replacing read and write entirely, it was never getting anything out of the base BIO. This is exemplified by the postgres fix. Not even the socket BIO's file descriptor storage was being used! In reality, postgres already had their own socket abstraction (Port and PGconn) and they simply wanted to bridge that to libssl. The socket BIO was only being used to provide a BIO_ctrl, and only BIO_CTRL_FLUSH is actually required by libssl. (As an aside: that libssl never documents its required operations on a BIO is unfortunate. Everyone making a custom BIO must discover the BIO_CTRL_FLUSH requirement themselves.)

Encapsulation/composition: If the application is meaningfully calling into the base BIO, OpenSSL already has a notion of filter BIOs. A good solution would be to either make a filter BIO and explicitly defer to BIO_next, or just encapsulate a BIO in your custom BIO's data yourself. This would make closely align with how OOP subclassing actually works.

Which is more appropriate depends on the application. The socket BIO is just a thin wrapper over send and recv, so I suspect option 1 is the more straightforward one most of the time. Option 1 is admittedly complicated by the ambiguity around BIO_CTRL_EOF, since OpenSSL opted not to address #8208. (If OpenSSL does not wish to fix the BIO_read_ex interface, I would suggest that a BIO_read-based BIO should automatically implement BIO_eof, to retain compatibility with the old EOF convention. Also might be good to expose a convenience place for BIO_read_ex to stash the EOF bit, as the new convention is much, much more tedious to implement. It requires the application maintain extra state, rather than just return EOF the normal way.)
Looking at the callers above:

postgresql: They've switched to option 1.
librabbitmq: This is like postgres in that it completely replaces BIO_read and BIO_write. The socket BIO is just being used to store the fd, which they could do themselves. (Though if OpenSSL had a way to set MSG_NOSIGNAL, this wouldn't be needed.)
trafficserver: Ditto.
voms: This is perhaps best done as option 2, a filter BIO, as they're ultimately using the original read and write hooks.

Fix in #26056


fix: updates to fix merge order issue

Description
It has been observed that after the last merge order style update PR some deeply nested styles were not working as expected. This ensures that a component will merge appropriately with it's prototype component.
References
Ticket
Testing
Merge Order

Add a selected mode to the ListItem story
Add a selected mode to the list item style file
Change some of the values in the selected mode
Select the selected radio button in the ListItem story and observe the change matches your updates

Removing old styles

Open the Tile component
Right click on the iframe window containing the component in storybook and open the webmaster tools
Observe that no image scale on artwork is present on focus.
window.CONTEXT.setTheme({componentConfig:{Tile:{artwork:{style:{imageScale:5,},},style:{paddingYProgress:10,paddingYBetweenContent:10,},},},});
After update when focused you should see an imageScale effect when focusing on the Tile
Any combination not including the scale property should clear it. window.CONTEXT.setTheme({componentConfig:{Tile:{artwork:{},style:{paddingYProgress:10,paddingYBetweenContent:10,},},},});
Setting any value on an instance of the component itself should not allow the componentConfig to overwrite it.

Test Execution Failed.

Blackduck scan failure details
Summary: 0 violations, 0 files pending approval, 1 file pending identification.

Protex Server Path: /home/blackduck/github/Lightning-UI-Components/413/rdkcentral/Lightning-UI-Components

Commit: 328e1114b523b93eb9e6080080f61cb8c56d83ee

Report detail: gist

Test Execution Failed.

Blackduck scan failure details
Summary: 0 violations, 0 files pending approval, 1 file pending identification.

Protex Server Path: /home/blackduck/github/Lightning-UI-Components/413/rdkcentral/Lightning-UI-Components

Commit: bbfa8a49ef7d383903b8d556853f3c70a9b1a90c

Report detail: gist

Test Execution Passed.

Blackduck scan failure details
Summary: 0 violations, 0 files pending approval, 1 file pending identification.

Protex Server Path: /home/blackduck/github/Lightning-UI-Components/413/rdkcentral/Lightning-UI-Components

Commit: fc009913e8422b92f8d219c4cd9c24a24d446500

Report detail: gist

Test Execution Passed.

Blackduck scan failure details
Summary: 0 violations, 0 files pending approval, 1 file pending identification.

Protex Server Path: /home/blackduck/github/Lightning-UI-Components/413/rdkcentral/Lightning-UI-Components

Commit: 1a5c57635a133ab6b097e551e374e7c4e4766d37

Report detail: gist

Test Execution Failed.

Test Execution Failed.

Blackduck scan failure details
Summary: 0 violations, 0 files pending approval, 1 file pending identification.

Protex Server Path: /home/blackduck/github/Lightning-UI-Components/413/rdkcentral/Lightning-UI-Components

Commit: ec97904d79b395b2e8ed22747d7825a191a2bd9e

Report detail: gist

Test Execution Failed.

Test Execution Failed.

Test Execution Failed.

Test Execution Passed.

Test Execution Failed.

Test Execution Failed.

:tada: This PR is included in version @lightningjs/ui-components-v2.18.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Grunt - Gulp for automation

I will be very interested in adding one of those to raneto. I got experience mostly with Grunt. Let me know if this could be interesting for you

This PR adds gulp if you're interested
https://github.com/gilbitron/Raneto/pull/64

@izifortune Yes, Gulp was added by @sbussard
Tagging because you might want to check out.
Closing issue.


How to prevent variable substitution

Using this puppet code, my goal is to preserve the variable $upstream that is written to the config file. However it is always substituted for the actual value. The reason for the substitution is detailed here
$upstream = "http://acme.unix.local"
nginx::resource::vhost { 'acme.co':
listen_port => 8080,
server_name => [
'www.acme.co'
],
proxy       => "$upstream",
}
This is intended ,
location / {
proxy_pass            $upstream;
}
Unfortunately I am getting this result ,
location / {
proxy_pass            http://acme.unix.local;
}
Any suggestions welome

This is Puppet interpolating the string. See https://docs.puppet.com/puppet/latest/reference/lang_variables.html#interpolation
If you don't want it to interpolate and pass $upstream as is then surround it with single quotes, i.e. proxy => '$upstream', or escape the dollar sign so the string isn't treated as a variable: proxy => "\$upstream"


Update publish-code-coverage-results-v1.md

I have appended a note to the 'pathToSources' option about how to specify multiple source paths, for users that implement Maven multi-module projects that depend on one another.

@ThaddeusTreloar Thank you, this will be live shortly.


SPFx WorkBench issues

Hello
I am having the issues with my workbench and its showing me the blank page with no errors on it.
Here is the console execution
gulp serve
Build target: DEBUG
[11:08:42] Using gulpfile C:\users\xxxxxx

\gulpfile.js
[11:08:42] Starting gulp
[11:08:42] Starting 'serve'...
[11:08:42] Starting subtask 'configure-sp-build-rig'...
[11:08:42] Finished subtask 'configure-sp-build-rig' after 9.51 ms
[11:08:42] Starting subtask 'spfx-serve'...
[11:08:43] Starting server...
Starting api server on port 5432.
Registring api: /getwebparts
Registring api: /.
Registring api: /workbench
[11:08:43] Finished subtask 'spfx-serve' after 787 ms
[11:08:43] Starting subtask 'pre-copy'...
[11:08:43] Finished subtask 'pre-copy' after 20 ms
[11:08:43] Starting subtask 'copy-static-assets'...
[11:08:43] Starting subtask 'sass'...
[11:08:44] Server started https://localhost:4321
[11:08:44] LiveReload started on port 35729
[11:08:44] Running server
[11:08:44] Opening https://localhost:5432/workbench using the default OS app
[11:08:44] Finished subtask 'sass' after 1.46 s
[11:08:44] Starting subtask 'tslint'...
[11:08:46] Starting subtask 'typescript'...
[11:08:46] [typescript] TypeScript version: 2.4.2
[11:08:46] Finished subtask 'copy-static-assets' after 2.53 s
Warning: no-duplicate-case rule is deprecated. Replace your usage with the TSLint no-duplicate-switch-case rule.
Warning: valid-typeof rule is deprecated. Replace your usage with the TSLint typeof-compare rule.
Request: [::1] '/workbench'
[11:08:46] Finished subtask 'tslint' after 1.47 s
Request: '/temp/workbench.html'
[11:08:47] Finished subtask 'typescript' after 1.51 s
[11:08:47] Starting subtask 'ts-npm-lint'...
[11:08:47] Finished subtask 'ts-npm-lint' after 12 ms
[11:08:47] Starting subtask 'api-extractor'...
[11:08:47] Finished subtask 'api-extractor' after 3.38 ms
[11:08:47] Starting subtask 'post-copy'...
[11:08:47] Finished subtask 'post-copy' after 603 μs
[11:08:47] Starting subtask 'collectLocalizedResources'...
Request: '/temp/manifests.js'
[11:08:47] Finished subtask 'collectLocalizedResources' after 8.56 ms
[11:08:47] Starting subtask 'configure-webpack'...
[11:08:48] Finished subtask 'configure-webpack' after 1.09 s
[11:08:48] Starting subtask 'webpack'...
Request<EMAIL_ADDRESS>Request<EMAIL_ADDRESS>[11:08:49] Finished subtask 'webpack' after 1.07 s
[11:08:49] Starting subtask 'configure-webpack-external-bundling'...
[11:08:49] Finished subtask 'configure-webpack-external-bundling' after 1.59 ms
[11:08:49] Starting subtask 'copy-assets'...
[11:08:49] Finished subtask 'copy-assets' after 13 ms
[11:08:49] Starting subtask 'write-manifests'...
[11:08:50] Finished subtask 'write-manifests' after 1.21 s
[11:08:50] Starting subtask 'reload'...
[11:08:50] Finished subtask 'reload' after 4.53 ms
Request: '/temp/workbench.html'
Request: '/temp/manifests.js'
Request<EMAIL_ADDRESS>Request: '/nod

You are currently using Node JS version 10.  SPFx currently doesn't work with Node JS v9 or higher.
The supported versions are LTS. So, you need to use the Node JS 8.11.3 version.
So, just uninstall your current NodeJS installation and install the 8.11.3 LTS version and then recreate the project and it will start working on your workbench.
Source - Setup your dev environment
Download Link - node v8.11.3 installer


Update the READMEs to Include Setup Instructions

Someone that looks at the repository should be able to easily recreate the environment needed for SmartHire to run.

#99

Oops


How can you add the sitename of the website to the title tag for every page?

I am searching for a way to add the sitename at the end of the page title for every page. I cannot find an easy way to do this.
Eg.
Current situation:
<title>My pagename</title>

wanted situation
<title>My pagename - The Best Builders</title>

There is a way to do this through code by using the AfterMetaTagsNotification (https://seotoolkit.gitbook.io/useotoolkit/extensions/notifications#aftermetatagsnotification). I'll see if I can create an example for you after my work today

Hi @dampee,
Sorry about the example being a bit later than expected. Using something like this in your code should give you the ability to add the sitename at the end of the title:
public class ExampleAfterMetaTagsNotification : INotificationHandler<AfterMetaTagsNotification>
    {
        public void Handle(AfterMetaTagsNotification notification)
        {
            notification.MetaTags.Title += "- The Best Builders";
        }
    }

Let me know if you have any more questions about this


🧑💻: Adding new Footer adding navigation links and icons

Title
New footer
Enhancement Aim
Icons and Navigation links and new footer
Changes
Icons and Navigation links and new footer
Screenshots 📷

N/A
Guidelines

[X] I have read the guidelines
[X] I have the link to my latest merged PR

Full Name
Mani
Participant Role
GSSOC ext 24

@devxMani how you gonna make the footer as there is no website code present in the repo?


Homepage is 404

The repository homepage on GitHub is rendered as follows:

The blue link is https://msdn.microsoft.com/commandline/wsl.
When clicking this link in Germany, following page appears:

This is a 404 page, isn't it?
I suggest to change the link to something more fitting or bring back the WSDL homepage on msdn.

The docs were moved, and are supposed to redirect but apparently not all are working properly. The new start page is here

I've updated the link to the new site.
@scooley Do you know why the redirect is apparently not working for our German users?

Thanks for point this out, @koppor.

Fixed!  Thank you again for reporting.


TS Language Server Crashes

Type: Bug
The JS/TS language service immediately crashed 5 times. The service will not be restarted. This may be caused by a plugin contributed by one of these extensions: Vue.volar. Please try disabling these extensions before filing an issue against VS Code.
Extension version: 2.0.6
VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:42:51.279Z)
OS version: Darwin arm64 23.3.0
Modes:

System Info

Item
Value

CPUs
Apple M2 Pro (10 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
4, 3, 2

Memory (System)
16.00GB (0.69GB free)

Process Argv
--crash-reporter-id 09a2a0f1-b696-4dbe-8c52-e7c49f11eaee

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:30899288
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
2e7ec940:30968132
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfcontrol:30979541
d34g3935:30971562
fegfb526:30981948
bg6jg535:30979843
8f97e687:30977000
dsvsc020:30976470

use 18.x plug-in

Have the same issues, can't use any versions starting from 2 major. Reverted setup to 1.8.27 + old TS plugin, otherwise It's impossible to work with vue projects

+1 I also encounter this issue with the new Vue.volar extension.

Have the same issues at 2.0.x. But work on 1.8.27

Guys, seriously, have you tried using vscode insiders edition? https://code.visualstudio.com/insiders/

@davidmatter, if you propose to use the insiders edition, does it mean there is a problem in the VS code itself? if so I can just wait the next release, because I prefer using stable edition instead of LTS insiders with possible other buggies.
Thanks for your answer!

Guys, seriously, have you tried using vscode insiders edition?

I won't switch to the Insiders version for this bugs. So I prefer to install 1.8.27.
Thanks for your answer!

@viktorkrepak yeah it's probably an issue with a specific Node version shipped with the current version of vscode. I'm running on insiders with vue-official 2 without any problems 🙂

2.0.7
not fix

Duplicate of https://github.com/vuejs/language-tools/issues/3962


Setup discord authentication

Possibly using https://www.npmjs.com/package/discord-oauth2

This is setup 👍🏻


[Question] [ws-bulk-report-generator] Question Topic

Question
Please help me with the command to get summary of each Organization and each product.
It should contain all these columns
'Organization name	Product name	Last updated	Security alerts HIGH	Security alerts MEDIUM	Security alerts LOW	New version alerts	Multiple versions alerts'
Environment Details

OS: [e.g. Ubuntu 18.04]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Hi @jm185435 ,
Please use the following cmd:
ws_bulk_report_generator -a saas (or -t saas-eu, app) -u <USER_KEY> -k <GlOBAL_ORG_TOKEN>  -y globalOrganization -r alerts -t json (or -t binary)
Thanks,
PS Mend Team

Hi @NatalyaDalid
I tried running this command and i see few json files generated under reports directory and later failed with the following errors attached.
Also how can i get the output in a single excel file ?
Best Regards,
Jagan

Hi @jm185435,
Could you please send me the output and your Mend Organization details to the email<EMAIL_ADDRESS>so I will be able to debug and assist you.
Thanks,
Mend PS Team


Allow finish_flow callback to change data entry result type

Description:
Allow finish_flow callback to change data entry result type. So that it is possible to redirect the finished flow back to additional data entry form.
This will be utilized in multi-factor authentication module.
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/developers.home-assistant#76
Example entry for configuration.yaml (if applicable):

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code does not interact with devices:

[x] Tests have been added to verify that the new code works.

Document updated in developer site.


document does not contain key clustertime

Getting this error, when i am trying to connect to Mongo Atlas. Please help.

Hello @MatellioBharatGupta ,
please can you provide a bit more information, such as:

error stack trace
Versions: Mongock, MongoDB, Spring

and anything it could be useful
I will try to have a look tomorrow

Versions:
Mongock : 3.2.4
MongoDB : Version 4.2.8(Atlas)
SpringBoot : 2.0.5.RELEAS
Building mongock :
@Bean
public SpringMongock springMongock(MongoTemplate mongoTemplate, Environment springEnvironment) {
return new SpringMongockBuilder(mongoTemplate, "changeLogScanPackage")
.setSpringEnvironment(springEnvironment)
.setLockQuickConfig()
.build();
}
Yes, it is giving in changelog . I have so many change logs in my project.
@ChangeSet(order = "01", author = "initiator", id = "01-addAuthorities")
public void addAuthorities(MongoTemplate mongoTemplate) {
Role adminAuthority = new Role();
adminAuthority.setId(AuthoritiesConstants.ADMIN);
adminAuthority.setName(AuthoritiesConstants.ADMIN_NAME);
mongoTemplate.save(adminAuthority);
A few days ago all was working fine. But on this last Friday, We faced this error. Then we moved from Mongobee to Mongock. Still we are facing the same error.
If i comment the mogock bean then all becomes ok, but i need the mongock into my project.
logs:
Caused by: org.bson.BsonInvalidOperationException: Document does not contain key clusterTime
at org.bson.BsonDocument.throwIfKeyAbsent(BsonDocument.java:859) ~[mongo-java-driver-3.6.4.jar:?]
at org.bson.BsonDocument.getTimestamp(BsonDocument.java:257) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.ClusterClock.greaterOf(ClusterClock.java:40) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.ClusterClock.advance(ClusterClock.java:31) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.ClusterClockAdvancingSessionContext.advanceClusterTime(ClusterClockAdvancingSessionContext.java:71) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.InternalStreamConnection.updateSessionContext(InternalStreamConnection.java:511) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:292) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:255) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.UsageTrackingInternalConnection.sendAndReceive(UsageTrackingInternalConnection.java:98) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.DefaultConnectionPool$PooledConnection.sendAndReceive(DefaultConnectionPool.java:441) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.CommandProtocolImpl.execute(CommandProtocolImpl.java:80) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:189) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:264) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.DefaultServerConnection.command(DefaultServerConnection.java:126) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.connection.DefaultServerConnection.command(DefaultServerConnection.java:118) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:226) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:217) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:120) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.operation.ListIndexesOperation$1.call(ListIndexesOperation.java:143) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.operation.ListIndexesOperation$1.call(ListIndexesOperation.java:138) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:471) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:415) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.operation.ListIndexesOperation.execute(ListIndexesOperation.java:138) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.operation.ListIndexesOperation.execute(ListIndexesOperation.java:69) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.Mongo$3.execute(Mongo.java:826) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.MongoIterableImpl.execute(MongoIterableImpl.java:130) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.MongoIterableImpl.iterator(MongoIterableImpl.java:77) ~[mongo-java-driver-3.6.4.jar:?]
at com.mongodb.MongoIterableImpl.iterator(MongoIterableImpl.java:32) ~[mongo-java-driver-3.6.4.jar:?]

Hello, I see a couple of things here, that not necessary are related to your issue, but it would be nice to discard first:

You say you're using MongoDB 4.x and this doc stands you should be using the driver version 3.8 or greater. However, I can see in your logs you're using 3.6.4

Is there any reason you are not using the last Mongock version? For version 3.x, the last one it's 3.3.2. However, we recommend you to use the version 4, although it's in beta. 4.1.0.beta. In this version you can use the last MongoDB driver version(mongodb-driver-sync:4.0.2) or the last Spring data for mongo(spring-data-mongodb:3.0.0.RELEASE). We haven't release the official documentation yet, but you can an example here, in my first comment.

Either if you opt for most updated Mongock version 3.x or the latest one(4.1.0.beta), you should be using MongockTemplare, instead MongoTemplate. It's just a wrapper, you won't notice a difference.

Please, update this and try again. Let me know how it goes and we take a proper look.

Hello @dieppa ,
If i use

org.mongodb
mongo-java-driver
3.8.2

then i got
java.lang.ClassNotFoundException: org.springframework.data.mongodb.core.ExecutableMapReduceOperation$MapReduceWithMapFunction
then i put

org.springframework.data
spring-data-mongodb
2.2.3.RELEASE

then i got
[ERROR] /home/cgt_jpr_lin_bharat/Documents/projects//-gateway/src/main/java/com//config/InheritanceAwareMongoRepositoryFactory.java:[76,24] cannot access org.springframework.data.repository.query.QueryMethodEvaluationContextProvider
[ERROR]   class file for org.springframework.data.repository.query.QueryMethodEvaluationContextProvider not found
[ERROR] /home/cgt_jpr_lin_bharat/Documents/projects//-gateway/src/main/java/com//config/InheritanceAwareMongoRepositoryFactory.java:[79,94] incompatible types: org.springframework.data.repository.query.EvaluationContextProvider cannot be converted to org.springframework.data.repository.query.QueryMethodEvaluationContextProvider
[ERROR] /home/cgt_jpr_lin_bharat/Documents/projects//-gateway/src/main/java/com//config/InheritanceAwarePartTreeMongoQuery.java:[18,9] constructor PartTreeMongoQuery in class org.springframework.data.mongodb.repository.query.PartTreeMongoQuery cannot be applied to given types;
[ERROR]   required: org.springframework.data.mongodb.repository.query.MongoQueryMethod,org.springframework.data.mongodb.core.MongoOperations,org.springframework.expression.spel.standard.SpelExpressionParser,org.springframework.data.repository.query.QueryMethodEvaluationContextProvider
[ERROR]   found: org.springframework.data.mongodb.repository.query.MongoQueryMethod,org.springframework.data.mongodb.core.MongoOperations
[ERROR]   reason: actual and formal argument lists differ in length
[ERROR] -> [Help 1]
[ERROR]
If i upgrade my InheritanceAwareMongoRepositoryFactory class according to above error, i need to change my repository and some queries also that i can not afford to do in project.
Please help me with some other way.

Hello  @MatellioBharatGupta ,
I am not sure I understand what you did, but I understand your MongoDB version is 4.x, so you should be using Java driver >3.8. More information here
I also understand you are using Spring data 2.x. So for that you need to use Mongock driver mongodb-springdata-v2-driver which uses Mongo Java driver 3.x.
Please follow this instructions(It's basically what I provided in the link above, but with the right artifacts for Spring data 2). Also make sure you provide the right MongoD and Spring Data as per step (3). As Example we use 3.11.0 and 2.2.4.RELASE, but you should be fine changing the minor and patch versions
Anyway I provide the basic steps you should follow:

Add Mongock bom to your pom:

<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.github.cloudyrock.mongock</groupId>
                <artifactId>mongock-bom</artifactId>
                <version>4.1.1.BETA</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

provide Mongock runner and Mongock Driver dependencies

        <dependency>
            <groupId>com.github.cloudyrock.mongock</groupId>
            <artifactId>mongock-spring-v5</artifactId>
        </dependency>
        <dependency>
            <groupId>com.github.cloudyrock.mongock</groupId>
            <artifactId>mongodb-springdata-v2-driver</artifactId>
        </dependency>

As these Mongock dependencies don't bring MongoDB driver nor Spring data dependencies, to avoid transitive dependencies, you need to import them. Serve as example:

    <dependency>
      <groupId>org.mongodb</groupId>
      <artifactId>mongo-java-driver</artifactId>
      <version>3.11.0</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.data</groupId>
      <artifactId>spring-data-mongodb</artifactId>
      <version>2.2.4.RELEASE</version>
      <scope>provided</scope>
    </dependency>

Add you changeLog package path to your property file. Please note that change-logs-scan-package is an array, so you can now provide several packages. Although everything you could set up before with the builder(and still now if you choose the builder approach) can be configured in properties file, if you find any issue or difficulty let us know. However, the minimal configuration require is at least a valid changeLog package path. Mongock provide default values for the the other properties. Worth mentioning the lock which is now enabled by default.

spring:
  mongock:
    change-logs-scan-package:
      - com.github.cloudyrock.mongock.integrationtests.spring5.springdata3.changelogs.client.initializer

Annotate your SpringBootApplication with @EnableMongock

@EnableMongock
@SpringBootApplication
public class App {

  public static void main(String[] args) {
    new SpringApplicationBuilder().sources(App.class).run(args);
  }
}

I had the same issue, fixed it by upgrading spring boot version from 2.0.1 to 2.2.7 (which updated the mongo driver to 3.11) and upgrading mongock from 2.0.2 to 3.3.2.


SphericalMercator.ToLonLat Accuracy loss

Hi,
I refer to this post Link, Mapsui is running under CRS EPSG:3857 and I required to do the conversion in order to use outside for my project that working under CRS EPSG: 4326.
double longt =<PHONE_NUMBER>9910427;
double lat = 3.1567427968766819;
var fromLatLng = SphericalMercator.FromLonLat(longt, lat);
var toLatLng = SphericalMercator.ToLonLat(fromLatLng.X, fromLatLng.Y);
Then the toLatLng outcome is<PHONE_NUMBER>7753906, 3.1567425727844238
both point accuracy error is 30 cm which is the decimal point changed 0.00000xxx onward
before:<PHONE_NUMBER>9910427, 3.1567427968766819
after:    101.71046[447753906], 3.156742[5727844238]
What should I do to make sure the conversion loss is less than 10 cm?

Do you have version 3.0.0 or later?

Do you have version 3.0.0 or later?

Hi @pauldendulk thanks for the answer!
It has been resolved after i upgraded to 3.0.0 onward
Thanks!