Any specifications on uploading an image for interpolation?

While I was running your notebook for interpolation, I encountered this issue:
I uploaded this image as the target image and selected the default image for source image:

After performing interpolation, this happened:

No errors were reported throughout the process, and a similar result was produced upon trying different png files.
Any idea on what went wrong?

This is the failure case caused by the face detector.

@JettChenT , could you please show the aligned target images?

@shyanguan thank you for responding. I'm new to this so could you please tell me how to do that?

The input image should be aligned first. Have you done this step?

@shyanguan No. How do I align the input image?

Refer to another repo, named StyleGAN-encoder.

@ShenYujun Should the aligned image look like this?

OMG, it should not look like this. Is your image with three channels? I think it happens because the pixels misalign across channels.

Thanks a lot for the support! It really helped.


npm install -g @capacitor/assets not working

If i try to npm install -g @capacitor/assets i get following error message:

I'm a bit confused here since on the main branch npm install -g cordova-res is referenced.
Which version should i use?

It's not ready to use yet, stick to cordova-res for now. Had to take a break from this project but will be coming back to it soon


cannot import tasks (and commands)

Summary
cannot import tasks from discord.ext
Reproduction Steps
imported tasks from discord.ext (same with commands)
Code
import discord, asyncio, os
from discord.ext import tasks, commands

Expected Results
importing tasks and commands
Actual Results

System Information

Checklist

[X] I have searched the open issues for duplicates.
[X] I have shared the entire traceback.
[X] I am using a user token (and it isn't visible in the code).

Additional Information
It might be cause I'm testing with replit. I installed discord.py-self, uninstalled discord.py

You may have a file named discord.py. This doesn't seem to be a library bug. Either way, don't use repl.it.


[Text Fields] No min / max character count implemented

While viewing the site, the user notices that there is no min / max character count implemented.
This could cause issues with a large amount of copy.
Seen on the following:

Title
Subtitle
Alert Message

I don't think I will be implementing this, as of now the title, subtitle, and alert message all wrap when they reach the end of a line, allowing for text that is quite long.


Crash with Illegal Instruction under Rosetta2 emulation in remote container

Type: Bug
I'm running a x64 container on my M2 MacBook.
The entire container seems to randomly crash with Illegal Instruction:
2024-12-22 15:38:44 Container started
2024-12-22 16:27:41 Container started
2024-12-22 16:46:43 Container started
2024-12-22 16:27:27 Illegal instruction
2024-12-22 16:46:32 Illegal instruction
2024-12-22 17:09:36 Illegal instruction
2024-12-22 17:47:34 Illegal instruction
2024-12-22 17:49:43 Illegal instruction
2024-12-22 18:05:51 Illegal instruction
2024-12-22 18:37:52 Illegal instruction
2024-12-22 19:11:42 Illegal instruction
2024-12-22 17:15:07 Container started
2024-12-22 17:45:01 Container started
2024-12-22 17:47:53 Container started
2024-12-22 17:50:00 Container started
2024-12-22 17:53:28 Container started
2024-12-22 18:06:40 Container started
2024-12-22 18:23:54 Container started
2024-12-22 18:37:08 Container started
2024-12-22 18:38:00 Container started
2024-12-22 18:46:27 Container started
2024-12-22 19:40:52 Container started

This usually means something is trying to use AVX2 instructions which can't be emulated by Rosetta.
The crashes seem to be somehow related to Jupyter Notebooks: The crashes seem to occur more frequently when I search for a Jupyter Kernel.
Sometimes the container also crashes when it is idle for 1h.
I don't know if the issue is related to an extension or not because the remote extension host also seems to randomly crash, but it doesn't take the entire container down.
I didn't experience crashes when running the container without vscode.
I also found #214630 but I'm not sure if this is related because the extension host starts most of the time without any crashes.
VS Code version: Code 1.96.2 (Universal) (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Darwin arm64 24.2.0
Modes:
Remote OS version: Linux x64 6.10.14-linuxkit

System Info

Item
Value

CPUs
Apple M2 (8 x 2400)

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: enabledwebnn: disabled_off

Load (avg)
5, 4, 3

Memory (System)
8.00GB (0.08GB free)

Process Argv

Screen Reader
no

VM
0%

Item
Value

Remote
Entwicklungscontainer: Anaconda (Python 3) @ desktop-linux

OS
Linux x64 6.10.14-linuxkit

CPUs
unknown (8 x 0)

Memory (System)
3.83GB (2.33GB free)

VM
0%

Extensions (11)

Extension
Author (truncated)
Version

jupyter-keymap
ms-
1.1.2

remote-containers
ms-
0.394.0

vscode-language-pack-de
MS-
1.96.2024121109

debugpy
ms-
2024.14.0

python
ms-
2024.22.0

vscode-pylance
ms-
2024.12.1

jupyter
ms-
2024.11.0

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.21

vscode-jupyter-cell-tags
ms-
0.1.9

vscode-jupyter-slideshow
ms-
0.1.6

For some reason I can't get any core dumps following these steps.

For some reason I can't get any core dumps following

Can you confirm if the ulimit values are configured correctly in the container ?
If you have a sample container and some steps to repro, it would be helpful.

Can you confirm if the ulimit values are configured correctly in the container ?

The issue was that I couldn't configure ulimit correctly but I finally got it to work by setting "runArgs": ["--init", "--ulimit", "core=-1"] in devcontainer.json.
I will provide the core dump once I get another crash.

If you have a sample container and some steps to repro, it would be helpful.

I think the meaningful parts of the Dockerfile are
FROM mcr.microsoft.com/devcontainers/anaconda:1-3

SHELL ["/bin/bash", "-c"]

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
    && apt-get -y install --no-install-recommends software-properties-common screen cmake autoconf libxslt-dev \
    libfontconfig1-dev pkg-config liblapack-dev libblas-dev gfortran libxml2-dev liblzma-dev libbz2-dev libjpeg-dev \
    libexpat1-dev libxml-parser-perl ghostscript

# Install R from CRAN
RUN gpg --keyserver hkp://keyserver.ubuntu.com:80 \
    --recv-key '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7' \
    && gpg --armor --export '95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7' | \
    tee /etc/apt/trusted.gpg.d/cran_debian_key.asc \
    && add-apt-repository 'deb http://cloud.r-project.org/bin/linux/debian bookworm-cran40/' \
    && apt-get update && apt-get -y install --no-install-recommends r-base

USER vscode
RUN conda init bash && source ~/.bashrc && source activate base

I found that using the Jupyter Notebooks and the Python extensions increases the chances for a crash (although I didn't try it for long without extensions).
I think to trigger a crash it should be enough to build the container as x86, open a folder with Jupyter Notebooks and Python code (not sure if strictly necessary), select a Kernel for the Notebook and run it, and let it sit in the background for a couple of hours.


hackathon form page

https://github.com/user-attachments/assets/0a7a0a9c-0c89-43af-9634-b794d9698df4
@rishicds Have a look

This is in response to the issue #167


unsupported c++ 2015

hello in the new beta build visual c++ 2015 bug
status
unsupported version
why ?

Hi, I'm not sure what went wrong but you can pass it with F12, test build from today explicitly states the F12 trick. Most recent VC++ 2015 is Update 3, not sure if that's what the vapoursynth installer installs.
https://www.microsoft.com/en-us/download/details.aspx?id=53587

OK World with f12 edit

Thanks


One Problem About mut

The following code is work.
  // let mut numbers : Array[Int] = []; // Warning message: mutability is never used
  let numbers : Array[Int] = [];
  numbers.push(1)
  numbers.push(2)
  numbers.push(3)
  println(numbers)

numbers is not marked by mut, but we still could push elements into it. It is different with rust.
I wonder if it is ok in moonbit. However, if it is ok, why we need mut keyword？

The concept of mutability in MoonBit is simpler than in Rust. When you have declaration
let mut numbers : Array[Int] = []

it means that the variable numbers is a reference to an array, and you can mutate what numbers refers to like:
numbers = [1, 2, 3]

The concept of mutability in MoonBit is simpler than in Rust. When you have declaration
let mut numbers : Array[Int] = []

it means that the variable numbers is a reference to an array, and you can mutate what numbers refers to like:
numbers = [1, 2, 3]

When you do the push, it changes the contents of the array but doesn't change the value of numbers, which is still the reference that points to the original array.

I think it's weird, because if so, why we need mut?
look at the following code:
  // let i = 0
  // i = 1 // Error: i is not mutable
  let w = [0]
  w[0] = 1 // Ok
  println(w[0])

You are right because the mut keyword is not strictly required for the expressiveness of MoonBit. You can always use an array or the Ref type for mutability, for example:
fn main {
  let x: Ref[Int] = { val: 1 }
  x.val = 2
}

But it's cumbersome, so we provide the mut keyword to make it simpler.

You are right because the mut keyword is not strictly required for the expressiveness of MoonBit. You can always use an array or the Ref type for mutability, for example:
fn main {
  let x: Ref[Int] = { val: 1 }
  x.val = 2
}

But it's cumbersome, so we provide the mut keyword to make it simpler for creating, updating, and accessing the mutable variable.

Haha, I understand, Thank you for your response. ^^


[FEATURE REQUEST] Detect when cookies are disabled in browser via navigator.cookieEnabled, hide banner automatically

If the user disables cookies the banner still appears saying the website uses cookies. Either the banner should not appear or it should say the website cannot be used (as a developer option). Disabled cookies can be tested with navigator.cookieEnabled

Makes sense, we'll take a look at this.

Thanks to this suggestion, CookieConsent V3 does not initialise if consent can be implied in other ways. E.G. If cookieEnabled or CookiesOK exists


Can we exclude files?

Just wondering if there is a way to exclude files?  the sources property in the options only allows for which files to include.  This can get messy if I have to include all the files since there are only a few i want to exclude.

I tried sonar.exclusions within the options, however, report still picks up those files.

@britztopher you can do it, but it different from source param. You must specify like that:
somePath/**

Can we have a nice solution here ? I would like to exclude a folders, but as wildcards. I mean by this i would like to have excluded, all folders with 'tests' for instance. How can we do that ?
Thanks

We are using exclusions with wildcards and have no issues. I'm unable to reproduce.
exclusions: '**/*.test.js,**/*.spec.js,**/*.driver.js,**/functional-test/**,**/webpack.*,src/index.js',


Fixing WebUI Logging

I added websocket start_embedded_server and address to config files. With this I'm opening websocket.
Web UI will push log toasts.

👍


Impact of developer turnover on quality in open-source software

http://dl.acm.org/citation.cfm?id=2786870&CFID=542094983&CFTOKEN=45327393

Summarized


ZeroDivisionError: integer division or modulo by zero

Hi  thanks for share the code, i got some problem plz help me.
i have only one GPU
my mmcv and pytorch version is the same as the readme.md.

(base) root@Pub:/mnt/c/Users/Pub/SETR# ./tools/dist_test.sh configs/SETR/SETR_PUP_768x768_40k_cityscapes_bs_8.py work_dirs/SETR_PUP_768x768_40k_cityscapes_bs_8/iter_40000.pth 1 --eval mIoU
Traceback (most recent call last):
File "./tools/test.py", line 144, in
main()
File "./tools/test.py", line 100, in main
init_dist(args.launcher, **cfg.dist_params)
File "/root/miniconda3/lib/python3.7/site-packages/mmcv/runner/dist_utils.py", line 20, in init_dist
_init_dist_pytorch(backend, **kwargs)
File "/root/miniconda3/lib/python3.7/site-packages/mmcv/runner/dist_utils.py", line 33, in _init_dist_pytorch
torch.cuda.set_device(rank % num_gpus)
ZeroDivisionError: integer division or modulo by zero
Traceback (most recent call last):
File "/root/miniconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/root/miniconda3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 261, in
main()
File "/root/miniconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 257, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/root/miniconda3/bin/python', '-u', './tools/test.py', '--local_rank=0', 'configs/SETR/SETR_PUP_768x768_40k_cityscapes_bs_8.py', 'work_dirs/SETR_PUP_768x768_40k_cityscapes_bs_8/iter_40000.pth', '--launcher', 'pytorch', '--eval', 'mIoU']' returned non-zero exit status 1.

#19  I see, so my problem is i have only one GPU.


Update Discourse email templates to adhere to Content Guide

[x] I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I’ve read and agree to the Code of Conduct.
[x] I’ve searched for any related issues and avoided creating a duplicate issue.

What happened
The automatic emails sent from Discourse don't adhere to the DTA's content guide
What I expected to happen
Each of the 57 email templates in Discourse should adhere to the content guide.
Some specific examples of things we should look to update:

Removing ! from subject lines
Ensure hyperlinks aren't using terms such as "click here" or "read more"
Make it clear that the community is whole of government, ideally in the subject line
Use AU spelling (for example, s instead of z, adding u where appropriate)

Reproducing

Website URL: https://community.digital.gov.au/admin/customize/email_templates

RE: Ensure hyperlinks aren't using terms such as "click here" or "read more"

Some emails have "Click the following link:" so that text-only email clients can still copy-paste the URL. However no emails have link-text like "click here" or "read more"


Update GitHub Actions output syntax

This PR updates the syntax used to create a GitHub Actions output.
Fixes #53

Hello @miguelaferreira, thanks for this PR, will make sure to take a look asap! One question though, have you practically tested this?
ps: asking bc a lot of people use this GA with @master instead of a tag and if it's untested and breaking, it might cause them issues

Ran some successful tests so merging. Fixes #48 #53


Gcc precompiled headers

This issue was originally created at: 2009-09-23 12:43:58.
This issue was reported by: overmind.
overmind said at 2009-09-23 12:43:58

The basic SCons package supports only the MSVC precompiled packages; however, there is a tool named 'Gch' that does the same thing for GCC-based compilers.  Both have a very similar syntax. Could't they be merged into one standard tool?
This would imrove SCons portability. Also, if such a tool would be created, it would be better to force the precompiled header pre-inclusion in the source files (like GCC's '-include' option); this would simplify porting the Qt programs to SCons, for example, because its MetaObject Compiler don't include the PCH into the generated source (the only option now is using '-include' directly, but this makes the build script GCC-bound).

gregnoel said at 2009-12-09 14:58:14

Bug party triage.  Good idea, but it's very unlikely that core developer time will be available to work on it in the near term.

weegreenblobbie said at 2013-03-29 09:46:30

Created an attachment (id=917)
GCH tool, pulled from scons-users discussion topic

weegreenblobbie said at 2013-03-29 09:48:09

Attached the GCH tool pulled from the scons-users discussion topic.

Votes for this issue: 2.
weegreenblobbie attached gch.py at 2013-03-29 09:46:30.

GCH tool, pulled from scons-users discussion topic

Sorry, hit wrong button in github app, didn't mean to close

Minimally updated version of attachment (2to3/black). Funky naming because github is fussy about allowed file suffixes for uploads.
tools-gch-2489.txt

See also #3064 (for the -include topic)

@bdbaddog should we consider dropping this onto contrib?

@bdbaddog should we consider dropping this onto contrib?

Hrm. We have PCH for MSVC, but not for gcc?


samples: sensors: drop some redundant code samples

Drops several code sample that are generic and redundant with sensor_shell or other existing sensor samples (ex. dht_polling)
There will probably be more in a follow-up PR but starting "small" to make sure I didn't miss something obvious

No objection to dropping the samples, but the justification should be that they are not generic.

Ah, right - brain fart :)
Should be better now, thanks @MaureenHelm.


Few improvements

Few improvements
This PR aims to fix small issues and add code improvements, in order to improve quality and maintainability.
CHANGES

[x] Add final attribute to fields, to better see what changes and what doesn't
[x] Improve update sight shops performance using vectors
[x] Avoid creating async tasks in already async thread
[x] Refactor method/variables order
[x] Fix for hologram not disappearing when reloading
[x] Fix ConcurrentModificationException when iterating over getShops()
[x] Fix hologram being shown/hidden incorrectly

TODO

[x] Make all changes
[x] Ensure it compiles
[x] Test it on local server
[x] Test it on real server

It should work now, I tested it locally, I'll test on my real server tomorrow.
You can download pre-release 1.12.4 here or build it from sources.

When to expect 1.12.4?

The last commit improves drastically performance for conditions with only one operator, such as:
true // in case of: ADMIN_SHOP
100.0 >= 50.0 // in case of: BUY_PRICE > 50
"STONE" == "DIAMOND_SWORD" // in case of: ITEM_TYPE == "DIAMOND_SWORD"

It doesn't handle complex comparison such as (...) && (...), but I do think that simple conditions are used the most.
For the benchmark:
INPUT: 100.0 >= 50.0
RESULT SIMPLE: true, in 3 ms
RESULT JAVASCRIPT: true, in 452 ms

Also, it adds almost zero overhead, as it performs the regex only if first char matches, and performs the comparison only if regex matches.

Can I merge this?

Yes :)


Feature/melodic rebase again

Rebasing feature/melodic on new changes in master including some that should fix the Kinetic and Melodic CI builds.

@amc-nu - Please review. I'm still working on getting the cross-builds working (lots of hang-ups) but should be done within the next few days.

@JWhitleyAStuff thanks
@sgermanserrano found the root of the problem. We’ll have a fix soon for those.

@amc-nu Do you know which problem he found a fix to? I've found fixes for problems with Qt, ocoros, and others.

Seems it’s just the Gitlab CI script that needs to be updated. (Industrial_CI is passing without any problem on both kinetic and melodic)

I was building the Docker container from source when I found the problems on the cross-build
Guess we'll see what happens when this PR gets merged!


Change existing bit.ly links

Is your proposal related to a problem?

Currently, when I use service-workers, there are 2 to 3 instances of explanation directed at the site https://bit.ly/CRA-PWA . On clicking,

I am redirected to https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app (ideal).
I need to go to https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/README.md .
This is where I end :- https://create-react-app.dev/docs/making-a-progressive-web-app/

Quite a long journey for learning about service workers and PWA, ain't it ?
Describe the solution you'd like

Just have a new link that gets redirected there. Plain and easy.
Describe alternatives you've considered

Only thought about the previous part to be honest.
Additional context

I know this is not quite much, but every site redirection adds to the frustration levels, sometimes, especially in regions where the connectivity isn't good. Please let me know if I can help out.

I wonder if whoever created the bit.ly link has an account and can update it to go somewhere else. It still links to the facebookincubator org: https://bitly.com/CRA-PWA+
Otherwise we can just create a new shortened link... maybe a fb.me link like React itself uses.

Yes. That's what even I suggested. Like update the PWA links. If the owner isn't active, we can have a new one.

Looks like the PWA stuff was moved to a separate repo (#9349), and the link in the new repo (https://cra.link/PWA) goes to the right place. Closing this out.


settings[iframeID] is undefined

Hi there,
I'm getting an error in iframeResizer.js on line 352 - settings[iframeID] is undefined.
The script still seems to work as expected however.
I'll dig around a bit and submit a pull request if I work it out.
Thanks and keep up to good work. It's a life saver for us.

Found the issue and it was nothing to do with iframe-resizer.
I was including the script in the page twice (once in ASP.NET layout and the second time in the razor view).


Tekton piepelineruns should support on-demand cleanup

When publishing low-code applications, PipelineRuns and PVCs are generated, and they need to be cleaned up on demand.

related: #162

fixed as we can use  volume claim template to claim a volume and remove it when pipelinerun removed.


Release version for production env

Hey, this sample you created is fantastic. I am developing something similar to this. I tried your sample app too. Can you please suggest me what alteration I must do to deploy this sample on production environment?
It would be really helpful.
Thankyou in advance.

If you just want to deploy the sample in a prod env, you don't need to do anything. You can publish into an Azure App Service from VS for example.
If you want to integrate Microsoft Graph into your solution, you'll need to do something similar to this sample, but the code here should be prod ready.
Please keep in mind, that we are upgrading this sample right now, you should be able to see improvements in a few weeks.

Actually I am developing a single sign on functionality with AzureAD, I was
able to create it successfully but later on I encountered 'The Owin bug' in
the authentication lib used and MS themselves suggested to avoid using ADAL
library(which I have used in my app) So I was looking with the MSAL
approach and found your sample. And now I am trying to deploy it on
production server and if it works out fine I'm looking forward to mimic
those functionalities in my app.
Thankyou for your earliest response.
On Tue, May 19, 2020 at 4:48 PM Mark Szabo<EMAIL_ADDRESS>wrote:

If you just want to deploy the sample in a prod env, you don't need to do
anything. You can publish into an Azure App Service from VS for example.
If you want to integrate Microsoft Graph into your solution, you'll need
to do something similar to this sample, but the code here should be prod
ready.
Please keep in mind, that we are upgrading this sample right now, you
should be able to see improvements in a few weeks.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoftgraph/aspnetcore-connect-sample/issues/61#issuecomment-630754233,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKTAZBBBFDE2O2WJ7VWQHM3RSJTIXANCNFSM4NEGC4WA
.

Great, so you are actually having success using the sample. Glad to hear that! 😊
Do you have any specific question we can help you with or can I close this ticket?


Flexible task definitions

This is a draft PR for prototyping and discussing the redesign that was initially brought here. As of right now most of the new classes are unimplemented, but I think it's worth discussing the proposed APIs sooner rather than later. I'm still very open to renaming or reorganizing the API names/structures. Since all the interfaces are still very abstract, it may be difficult to understand, but I'll attempt to have some example classes implemented early next week to make this proposal more clear.
Most of the changes are based on this discussion, but I'll highlight some aspects where this PR diverges a bit from what was originally proposed:
A Task is an object that generates phases
In the original discussion I proposed that a Task should be a sequence of phases. After some more thinking and conversations, I concluded that this is too rigid of a definition. Instead I'm proposing an API where a Task is an object that generates phases. The way a Task generates phases is completely up to the implementer. This allows more complex Task behavior than we were originally targeting, including the possibility of implementing behavior trees which was proposed by @aarushg22.
For developer convenience, we will be providing a Task implementation called rmf_task::sequence::Task which is a Task that is defined by a sequence of phases. This is what was originally proposed, but now it's simply one way to define a task, not the only way.
Planning is effectively the same
Besides some refactoring/renaming, all the APIs for task planning remain effectively the same. The new phase sequence task type has its own implementation of the Request::Description interface. Other task types can implement their own Request::Description interfaces with no regard for the phase sequence task type.
Tasks are generated by factories
The new class rmf_task::execute::TaskFactory is able to convert a rmf_task::Request into an active, running Task object. A phase sequence task will be generated by this factory whenever such a task is requested. Downstream developers can inject their own custom task types into this factory.
The new class rmf_task::sequence::PhaseFactory is able to convert from a phase description into an active, running phase for the new rmf_task::sequence::Task class. Downstream developers can inject their own custom phase types into this factory.

I noticed that there is an Activator Class: https://github.com/open-rmf/rmf_task/blob/redesign_v2/rmf_task/include/rmf_task/Activator.hpp#L27
but also a Activator alias to rmf_task::Activator::Activate<Description>: https://github.com/open-rmf/rmf_task/blob/redesign_v2/rmf_task/test/mock/MockDelivery.hpp#L36
Would it be confusing?

@cnboonhan, great point. Perhaps that alias inside of MockDelivery should be Activate instead? So we'd have rmf_task::Activator::Activate<T> is the generic template for a function that activates a T while MockDelivery::Activate is the Activate<T> that's instantiated for T = MockDelivery.


Integrate ODF Validator using Maven

Hi!
I am having trouble integrating the ODF Validator through Maven in my Java project.
I can't find the proper import option as part of org.odftoolkit.
I also had to add <type>pom</type> to the pom.xml dependency configuration. See issue: https://github.com/tdf/odftoolkit/issues/212
This is the code I am using, which in theory should work (I think):
import org.odftoolkit.odfdom.doc.OdfSpreadsheetDocument;
import org.odftoolkit.odfvalidator.ODFValidator;
import org.odftoolkit.odfvalidator.result.ValidationResult;

public class validate {
    // Validate OpenDocument Spreadsheets using ODF Validator
    public boolean Validate_ODFValidator(String filepath)  throws Exception {
        boolean valid = false;

        OdfSpreadsheetDocument spreadsheet = OdfSpreadsheetDocument.loadDocument(filepath);
        ODFValidator validator = new ODFValidator();
        ValidationResult result = validator.validate(spreadsheet);

        // Inform user and return boolean
        if (result.hasErrors()) {
            System.out.println("VALIDATE: The spreadsheet file is invalid.");
            System.out.println("VALIDATE: " + result.toString());
        } else {
            valid = true;
            System.out.println("VALIDATE: The spreadsheet file is valid.");
        }
        return valid;
    }
}

Can you help me?

so apparently the binary files in the maven repository are:
odfvalidator-0.11.0.war
odfvalidator-0.11.0-jar-with-dependencies.jar
the .war file is built because validator/pom.xml specifies "war".
the -with-dependencies.jar file is built with some "maven-assembly-plugin" based on src/main/assembly/src.xml.
i'm afraid none of these is designed to be used as a library jar file, these are intended for use as a web application or a command line application.
in contrast in odfdom/pom.xml there is an ordinary "jar".
perhaps it will "work" to manually download -with-dependencies.jar and put
system
somewhere/odfvalidator-0.11.0-jar-with-dependencies.jar
into the  element but clearly that's awful and i don't know what all the classes from all of the dependencies that are bundled in the jar file are going to do to your application.
now it's not clear to me how to add a plain jar file to be built by validator/pom.xml; is that even possible or should there be an additional pom.xml to build the plain jar file and another to build the .war file?
hmm... apparently there's an  element:
https://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#attachClasses
if i add this i get one new file, and it appears to have the appropriate content:
validator/target/odfvalidator-0.12.0-SNAPSHOT/WEB-INF/lib/odfvalidator-0.12.0-SNAPSHOT.jar
a special syntax is required to reference it as a dependency via "classes", see above link.
what i don't know, will "mvn deploy" upload this file or not?

@Asbjoedt
The automatic close of this issue by merging the first pull request https://github.com/tdf/odftoolkit/pull/221
was a bit optimistic.
We needed two further iterations
https://github.com/tdf/odftoolkit/pull/227
https://github.com/tdf/odftoolkit/pull/228
but now the latest SNAPSHOT release
https://oss.sonatype.org/content/repositories/snapshots/org/odftoolkit/oWdfvalidator/0.12.0-SNAPSHOT/
should finally fix this issue!
Could you please test it with Maven and give feedback using the following configuration:
org.odftoolkit
odfvalidator
0.12.0-SNAPSHOT

according to https://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#attachClasses that's not complete, you need to use:

org.odftoolkit
odfvalidator
0.12.0-SNAPSHOT
classes

please try and report if this actually works.

Hi
I tried to test this (spent quite some time) but I cannot resolve the dependency. I think it is my own problems with using Idea to import the jar file into the external libraries. I hope you can find other help on how to test if this fix now works.

@Asbjoedt
Do you find the latest Maven JARs on your disk?
Windows:
C:\Users<YOUR_USER_NAME>.m2\repository\org\odftoolkit\odfvalidator\0.12.0-SNAPSHOT
Linux:
/home/<YOUR_USER_NAME>/.m2/repository/org/odftoolkit/odfvalidator/0.12.0-SNAPSHOT
I have aside of Netbeans as well IntelliJ, what is your scenario? Anything you might provide and I download to verify?
In any case, good luck! :-) @Asbjoedt

@svanteschubert
Thanks for the reply.
I don't see that file/folder.
I have this folder
C:\Users\USERNAME.m2\repository\org\odftoolkit\odfvalidator\0.12.0
It contains these two files
C:\Users\USERNAME.m2\repository\org\odftoolkit\odfvalidator\0.12.0\odfvalidator-0.12.0.pom.lastUpdated
C:\Users\USERNAME.m2\repository\org\odftoolkit\odfvalidator\0.12.0\odfvalidator-0.12.0-classes.jar.lastUpdated


NPM errors

Running npm install eventually starts spamming errors and when I try node bootstrap.js it says I'm missing discord.js.

Please send me the log file, and make sure to send it from; C:\Users<yourname>\AppData\Local\npm-cache_logs
Thank you!

The issue has been resolved. Please try cloning the repository again and running npm install. Let me know if you encounter any further problems!

I no longer need the template, but thanks for working on it!


Update to the Air-Sea CO2 Flux ECCO Darwin User Notebook

Note to reviewers: Please review the changes applied to the notebook. I was not able to run the code in VS. Please run it with a fresh kernel so the numbers, maps, etc. will appear appropriately.
Checklist
The following checklist ensures that our notebooks are internally consistent (read more)

[ ] The first cell contains the rendering information with author and data
[ ] The notebook has an Approach section
[ ] All the packages that are imported in the notebooks are used within the notebook
[ ] Dependency installs are in a non-executable cell (Markdown with a code block) as a single-line %pip install abc def statement
[ ] All imports are at the top of the notebook
[ ] Any complex geometries are accessed from remote storage
[ ] Each code cell comes after a markdown cell containing explantory text
[ ] All cells in the notebook book have been run in order with a fresh kernel (cell numbers should be 1, 2, 3, 4, ...)

Unassigned myself - looks good in terms of format, but I am no the right one to review the content. I hope @SwordSaintLancelot can review and/or advise who else should look at this.


wip: vault key split

Implements https://github.com/interlay/interbtc/issues/599. The migration still needs to be added, but I'm opening this to get some early feedback.

Closing this in favour of the operator / delegator model


singularity: add checkPhase

added correct checkPhase, but fails to run correctly in nixpkgs
Motivation for this change
Currently singularity checks aren't run when doCheck=true is specified since we need to run make test, and because some aspects of singularity require many system tools, SUID, etc, it will be good to test.
Things done
Currently, there is an issue; when checkPhase is run, it appears to be trying to look into a directory in the /nix/store that may not exist yet. Can I have confirmation on if this is the likely problem, and suggestions for possible workarounds? It may require fixes on the Singularity code base, but i'll try to get them in.
nix-build -I nixpkgs=/home/brandon/workspace/nixpkgs -E '(import <nixpkgs>{}).singularity.overrideAttrs (oldAttrs: { doCheck=true; })' --pure

eventually resulted in:
 -Wl,-rpath -Wl,/nix/store/fjwqxfxqjnva7880vwisd3780vnaaz5n-singularity-2.5.1/lib -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/start-suid
start_suid-start.o util/start_suid-util.o util/start_suid-file.o util/start_suid-registry.o util/start_suid-privilege.o util/start_sui
d-sessiondir.o util/start_suid-suid.o util/start_suid-cleanupd.o util/start_suid-fork.o util/start_suid-daemon.o util/start_suid-signa
l.o util/start_suid-mount.o  lib/image/.libs/libsingularity-image.so lib/runtime/.libs/libsingularity-runtime.so action-lib/.libs/libi
nternal.a -Wl,-rpath -Wl,/nix/store/fjwqxfxqjnva7880vwisd3780vnaaz5n-singularity-2.5.1/lib/singularity
libtool: link: gcc -Wall -fpie -fPIC -g -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -fstack-protector --param ssp-buffer-size=4
 -Wl,-rpath -Wl,/nix/store/fjwqxfxqjnva7880vwisd3780vnaaz5n-singularity-2.5.1/lib -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/mount-suid
mount_suid-mount.o util/mount_suid-util.o util/mount_suid-file.o util/mount_suid-registry.o util/mount_suid-suid.o util/mount_suid-pri
vilege.o util/mount_suid-mount.o  lib/image/.libs/libsingularity-image.so lib/runtime/.libs/libsingularity-runtime.so -Wl,-rpath -Wl,/
nix/store/fjwqxfxqjnva7880vwisd3780vnaaz5n-singularity-2.5.1/lib/singularity
make[3]: Leaving directory '/tmp/nix-build-singularity-2.5.1.drv-0/source/src'
make[2]: Leaving directory '/tmp/nix-build-singularity-2.5.1.drv-0/source/src'
make[1]: Leaving directory '/tmp/nix-build-singularity-2.5.1.drv-0/source/src'
make[1]: Entering directory '/tmp/nix-build-singularity-2.5.1.drv-0/source'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/tmp/nix-build-singularity-2.5.1.drv-0/source'
running tests
sh ./test.sh
Building/Installing Singularity to temporary directory
Reinvoking in a clean shell
ERROR: Could not locate singularity program at: /nix/store/fjwqxfxqjnva7880vwisd3780vnaaz5n-singularity-2.5.1/bin/singularity
make: *** [Makefile:832: test] Error 1
builder for '/nix/store/wy87hm0vrfzh20gv0ai5pz24n5alxqxv-singularity-2.5.1.drv' failed with exit code 2
error: build of '/nix/store/wy87hm0vrfzh20gv0ai5pz24n5alxqxv-singularity-2.5.1.drv' failed

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

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

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

You can use checkTarget = "test". Also since it looks like it requires the files to be installed, checkPhase will not work since it runs before installPhase. You can use doInstallCheck = true, though. Then you will have to use installCheckTarget = "test".

@jtojnar excellent, but I am getting some somewhat expected problems do to some suid issues:
running install tests
installcheck flags: -j8 -l8 SHELL=/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/bash test
sh ./test.sh
Building/Installing Singularity to temporary directory
Reinvoking in a clean shell

################################################################################
Checking environment (script: 01-sanity.sh, testdir: /tmp/stest.kh2LCh)

 + sudo true                                                                                (retval=1) ERROR
sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
Full output in: /tmp/stest.kh2LCh
ERROR: Failed running test: 01-sanity.sh
make: *** [Makefile:832: test] Error 1
builder for '/nix/store/bgfgdji4hz5fp22p0pwp829hrmibd1hv-singularity-2.5.1.drv' failed with exit code 2

And output of the tmp directory:
brandon@beb82dell0-DevContainer:/tmp/stest.kh2LCh
$ grep "" *
cmd:sudo true
output:sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges?
pwd:/tmp/nix-build-singularity-2.5.1.drv-0/source/tests
brandon@beb82dell0-DevContainer:/tmp/stest.kh2LCh

But, I'm running this in a slightly odd environment (a container that uses sudo from the base OS image), so maybe it works for others on NixOS...

@jtojnar I'm at a bit of a loss still - can you easily confirm if the issue exists on NixOS, or can we ask @GrahamcOfBorg to do a build with  { doInstallCheck=true; })?

I do not think builders should ever run sudo. Not even sure what would the expected behaviour be.

How does one run tests that require the suid bit set, then? I wonder if
there is a precedent.
On Mon, Jul 2, 2018, 4:36 PM Jan Tojnar<EMAIL_ADDRESS>wrote:

I do not think builders should ever run sudo. Not even sure what would the
expected behaviour be.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/42374#issuecomment-401926665, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AgI-Cwt_yUIUGQytSGNhv7nW2MTS6jB9ks5uCoRMgaJpZM4Uz17H
.

You should be able to do so in NixOS tests, see nixos/tests directory.

@GrahamcOfBorg build singularity

Success on aarch64-linux (full log)
Attempted: singularity
Partial log (click to expand)
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0/libexec/singularity/bootstrap-scripts/deffile-driver-localimage.sh: interpreter directive changed from "/bin/bash" to "/nix/store/bpspdmsl0yys24gs70flsvcw3wcnl7lx-bash-4.4-p23/bin/bash"
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0/libexec/singularity/bootstrap-scripts/deffile-driver-docker.sh: interpreter directive changed from "/bin/bash" to "/nix/store/bpspdmsl0yys24gs70flsvcw3wcnl7lx-bash-4.4-p23/bin/bash"
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0/libexec/singularity/bootstrap-scripts/deffile-driver-debootstrap.sh: interpreter directive changed from "/bin/bash" to "/nix/store/bpspdmsl0yys24gs70flsvcw3wcnl7lx-bash-4.4-p23/bin/bash"
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0/libexec/singularity/bootstrap-scripts/deffile-driver-busybox.sh: interpreter directive changed from "/bin/bash" to "/nix/store/bpspdmsl0yys24gs70flsvcw3wcnl7lx-bash-4.4-p23/bin/bash"
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0/libexec/singularity/bootstrap-scripts/deffile-driver-arch.sh: interpreter directive changed from "/bin/bash" to "/nix/store/bpspdmsl0yys24gs70flsvcw3wcnl7lx-bash-4.4-p23/bin/bash"
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0/libexec/singularity/bootstrap-scripts/checks.sh: interpreter directive changed from "/bin/bash" to "/nix/store/bpspdmsl0yys24gs70flsvcw3wcnl7lx-bash-4.4-p23/bin/bash"
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0/libexec/singularity/bootstrap-scripts/functions: interpreter directive changed from "/bin/bash" to "/nix/store/bpspdmsl0yys24gs70flsvcw3wcnl7lx-bash-4.4-p23/bin/bash"
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0/bin/run-singularity: interpreter directive changed from "/bin/sh" to "/nix/store/bpspdmsl0yys24gs70flsvcw3wcnl7lx-bash-4.4-p23/bin/sh"
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0/bin/singularity: interpreter directive changed from "/bin/bash" to "/nix/store/bpspdmsl0yys24gs70flsvcw3wcnl7lx-bash-4.4-p23/bin/bash"
/nix/store/gjqxp8h1r33mkb83hfwx0yw6ls0h5043-singularity-2.6.0

Our build sandbox does not allow to create setuid binaries.

Success on x86_64-linux (full log)
Attempted: singularity
Partial log (click to expand)
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/libexec/singularity/handlers/archive-cpio.sh: interpreter directive changed from "/bin/bash" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/bash"
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/libexec/singularity/handlers/image-http.sh: interpreter directive changed from "/bin/bash" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/bash"
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/libexec/singularity/handlers/archive-tar.sh: interpreter directive changed from "/bin/bash" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/bash"
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/libexec/singularity/helpers/image.sh: interpreter directive changed from "/bin/bash" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/bash"
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/libexec/singularity/helpers/apps/list.sh: interpreter directive changed from "/bin/bash" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/bash"
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/libexec/singularity/helpers/help.sh: interpreter directive changed from "/bin/bash" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/bash"
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/libexec/singularity/helpers/check.sh: interpreter directive changed from "/bin/bash" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/bash"
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/libexec/singularity/helpers/inspect.sh: interpreter directive changed from "/bin/bash" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/bash"
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/bin/run-singularity: interpreter directive changed from "/bin/sh" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/sh"
/nix/store/6h4x7nx6jm98nfadzbzbr9ab7b9kgqx4-singularity-2.6.0/bin/singularity: interpreter directive changed from "/bin/bash" to "/nix/store/yal8k8rgbaj8p9vi08q1kh21ls0ndq95-bash-4.4-p23/bin/bash"

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: singularity
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Approach with checkPhase seems to not work, this might need to become a nixos test instead. We also have singularity updated to 3.x branch by now. Closing this unless anyone has objections.


[BUG] Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory

Describe the bug
Updated to 1.0 beta 4, after the 1st restart, plugin will work, but there's a error message
Error - Error retrieving info from hub : Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 90c82d4d-acdb-4de3-a00f-f0c0e2d3c12e-(1)

/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:266
  throw new Error("Cannot add a bridged Accessory with the same UUID as another bridged Accessory: " + existing.UUID);

Plugin will continue to work without problem. Shutdown homebridge and try to start homebridge again,  got this error message at startup and homebridge won't continue to work
Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 90c82d4d-acdb-4de3-a00f-f0c0e2d3c12e
    at Bridge.Accessory.addBridgedAccessory (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:266:13)
    at Server._configCachedPlatformAccessories (/usr/lib/node_modules/homebridge/lib/server.js:380:18)
    at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:89:8)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:45:10)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:799:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:810:10)
    at Module.load (internal/modules/cjs/loader.js:666:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:606:12)
    at Function.Module._load (internal/modules/cjs/loader.js:598:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:862:12)
    at internal/main/run_main_module.js:21:11

Manfully deleting accessories folder solve the problem for a while, but the error loop continue if restarting homebridge
Rolling back to 0.5.5 solve the problem permanently

Hi, Yes, I mentioned this limitation in the release note. You can only have one platform section with dynamic mode in this beta
Sent with GitHawk

Will need significant work to make this possible again in dynamic platform mode
Sent with GitHawk

Hi, Yes, I mentioned this limitation in the release note. You can only have one platform section with dynamic mode in this beta

Sorry didn't read the note carefully, I updated to 1.0 beta again and run two instances of homebridge using pm2,  they are working fine now

No problem :) glad to know it is working with 2 homebridge instances . I will see if I can work on this however for final version but if you encounter any other problem feel free to say ! Thank you for testing
Sent with GitHawk

Bêta updated , config changed ne careful, should support multiple hubs or same hub declared multiple times
Sent with GitHawk


Update package.json

Add eleventy-plugin keyword.
What I did

Added 11ty suggested "eleventy-plugin" keyword to package.json (ref: https://www.11ty.dev/docs/plugins/#community-contributed-plugins)

development moved to https://github.com/modernweb-dev/rocket

development moved to https://github.com/modernweb-dev/rocket


Remove Simla India entry from Gazetteer

Simla India has been added as a place in theh Gazetteer. It is incorrect.
Please move the search records from Simla India to India Simla and remove the incorrect entry.
Geoff

Done


401 Not Authorised responses  CURLAUTH_BASIC / CURLAUTH_NTLM

Talking to an Exchange 2007 server, it would alwys return 401 not authorised, until I removed / changed the
CURL_HTTPAUTH, CURLAUTH_BASIC | CURLAUTH_NTLM
to
CURL_HTTPAUTH, CURLAUTH_NTLM
at NTLMSoapClient ~ line 78.
perhaps a method to select the auth type for the class?

I have this same issue with curl 7.22.0, but not with 7.35.0
Also see #67

With the latest version in master, you can override most of the existing cURL options (including CURLOPT_HTTPAUTH) or supply your own by calling setCurlOptions() on the Client.


HBASE-24049 use hadoop-2.10.0 for "packaging and integration" check

We only run this check on nightly, so pushed a feature branch, https://builds.apache.org/job/HBase Nightly/job/HBASE-24049-packaging-integration-hadoop-2.10.0/

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 28s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ master Compile Tests _

+0 :ok:
mvndep
0m 36s
Maven dependency ordering for branch

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 10s
Maven dependency ordering for patch

+1 :green_heart:
shellcheck
0m  0s
There were no new shellcheck issues.

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

No, I'm testing via the nightly job.

has this been tested locally already?

No, I'm testing via the nightly job.

Okay cool. I'd like to see it pass prior to merge.
did run #2 time out or did someone abort it? I can't tell from the jenkins UI.

did jenkins run number 2 time out or did someone abort it? I can't tell from the jenkins UI.

2 was manually killed due to someone doing some aggressive pruning. It's easier to tell from the jenkins console than from BlueOcean.

This is still broken. "packaging & integration" took 3.5 mins on master/1620, this one is been running for hours...

From the log, I see
Exception in thread "main" java.lang.NoClassDefFoundError: com/ctc/wstx/io/InputBootstrapper
	at org.apache.hadoop.hbase.util.HBaseConfTool.main(HBaseConfTool.java:39)
Caused by: java.lang.ClassNotFoundException: com.ctc.wstx.io.InputBootstrapper
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	... 1 more

Are we getting that in a loop? Oof.

Okay, unpacked all this to run locally.
Now looking in outputput-integration/hadoop-2/hadoop_cluster_command.err is see a stack looped over
20/03/27 16:30:08 ERROR delegation.AbstractDelegationTokenSecretManager: ExpiredTokenRemover received java.lang.InterruptedException: sleep interrupted
org.apache.hadoop.yarn.exceptions.YarnRuntimeException: java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/server/timelineservice/collector/TimelineCollectorManager
	at org.apache.hadoop.yarn.server.MiniYARNCluster.startResourceManager(MiniYARNCluster.java:372)
	at org.apache.hadoop.yarn.server.MiniYARNCluster.access$300(MiniYARNCluster.java:128)
	at org.apache.hadoop.yarn.server.MiniYARNCluster$ResourceManagerWrapper.serviceStart(MiniYARNCluster.java:502)
	at org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
	at org.apache.hadoop.service.CompositeService.serviceStart(CompositeService.java:121)
	at org.apache.hadoop.yarn.server.MiniYARNCluster.serviceStart(MiniYARNCluster.java:321)
	at org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
	at org.apache.hadoop.mapred.MiniMRClientClusterFactory.create(MiniMRClientClusterFactory.java:80)
	at org.apache.hadoop.mapred.MiniMRClientClusterFactory.create(MiniMRClientClusterFactory.java:41)
	at org.apache.hadoop.mapreduce.MiniHadoopClusterManager.start(MiniHadoopClusterManager.java:179)
	at org.apache.hadoop.mapreduce.MiniHadoopClusterManager.run(MiniHadoopClusterManager.java:132)
	at org.apache.hadoop.mapreduce.MiniHadoopClusterManager.main(MiniHadoopClusterManager.java:320)

I didn't launch with -x, but i guess this comes from
sleep_time=2
until [ -s "${working_dir}/hbase-conf/core-site.xml" ]; do
  printf '\twaiting for Hadoop to finish starting up.\n'
  sleep "${sleep_time}"
  sleep_time="$((sleep_time*2))"
done

Seems there's no check that the timeout was not triggered, so the script progresses after this point into a an untimed wait that locks up the jekinks worker until the 8hr fail-safe is triggered.

This matches what I see locally, https://builds.apache.org/job/HBase Nightly/job/HBASE-24049-packaging-integration-hadoop-2.10.0/3//artifact/output-integration/hadoop-2/hadoop_cluster_command.err/view/

How easy is wrapping a single set of steps in their own timeout? Presuming we have enough historical run information to make a good guess on a better time.

Making progress. Now getting
$ cat ~/tmp/packaging_and_integration/output-integration/hadoop-2/waiting_hbase_startup.log
NameError: missing class name (`org.apache.hadoop.hbase.HColumnDescriptor')
           method_missing at org/jruby/javasupport/JavaPackage.java:259
  <module:HBaseConstants> at /Users/ndimiduk/tmp/packaging_and_integration/hbase-install/lib/ruby/hbase_constants.rb:42
                   <main> at /Users/ndimiduk/tmp/packaging_and_integration/hbase-install/lib/ruby/hbase_constants.rb:34
                  require at org/jruby/RubyKernel.java:956
                   (root) at uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
                   <main> at /Users/ndimiduk/tmp/packaging_and_integration/hbase-install/bin/../bin/hirb.rb:131

Bit rot on master...
https://issues.apache.org/jira/browse/HBASE-24084
https://issues.apache.org/jira/browse/HBASE-24085

Pushed the automation script changes that were necessary to launch a minicluster.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 34s
Docker mode activated.

-0 :warning:
yetus
0m  3s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ master Compile Tests _

+0 :ok:
mvndep
0m 35s
Maven dependency ordering for branch

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 10s
Maven dependency ordering for patch

_ Other Tests _

2m 13s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/2/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1368

Optional Tests

uname
Linux e9c7f56bf799 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / 3d4124c92a

Max. process+thread count
62 (vs. ulimit of 10000)

modules
C:  U:

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/2/console

versions
git=2.17.1 maven=2018-06-17T18:33:14Z)

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 31s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ master Compile Tests _

+0 :ok:
mvndep
0m 35s
Maven dependency ordering for branch

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 10s
Maven dependency ordering for patch

+1 :green_heart:
shellcheck
0m  2s
There were no new shellcheck issues.

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

_ Other Tests _

+0 :ok:
asflicense
0m  0s
ASF License check generated no output?

2m 24s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/2/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1368

Optional Tests
dupname asflicense shellcheck shelldocs

uname
Linux df13e689bfdd 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / 3d4124c92a

Max. process+thread count
52 (vs. ulimit of 10000)

modules
C:  U:

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/2/console

versions
git=2.17.1 maven=2018-06-17T18:33:14Z) shellcheck=0.4.6

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
1m  8s
Docker mode activated.

-0 :warning:
yetus
0m  2s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ master Compile Tests _

+0 :ok:
mvndep
0m 32s
Maven dependency ordering for branch

_ Patch Compile Tests _

+0 :ok:
mvndep
0m  9s
Maven dependency ordering for patch

_ Other Tests _

2m 41s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/2/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1368

Optional Tests

uname
Linux b5e1ebbf8ca7 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / 3d4124c92a

Max. process+thread count
47 (vs. ulimit of 10000)

modules
C:  U:

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/2/console

versions
git=2.17.1 maven=2018-06-17T18:33:14Z)

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 32s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ master Compile Tests _

+0 :ok:
mvndep
0m 36s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
5m 18s
master passed

+1 :green_heart:
checkstyle
0m 36s
master passed

+1 :green_heart:
spotbugs
0m 43s
master passed

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 13s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
5m  8s
the patch passed

+1 :green_heart:
checkstyle
0m 35s
the patch passed

+1 :green_heart:
shellcheck
0m  2s
There were no new shellcheck issues.

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

+1 :green_heart:
xml
0m  2s
The patch has no ill-formed XML file.

+1 :green_heart:
hadoopcheck
10m 22s
Patch does not cause any errors with Hadoop 2.10.0 or 3.1.2.

+1 :green_heart:
spotbugs
0m 50s
the patch passed

_ Other Tests _

+1 :green_heart:
asflicense
0m 24s
The patch does not generate ASF License warnings.

32m 13s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/3/artifact/yetus-general-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1368

Optional Tests
dupname asflicense shellcheck shelldocs xml spotbugs hadoopcheck hbaseanti checkstyle

uname
Linux 2c8add5d9b94 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / 040a0a7ac5

Max. process+thread count
93 (vs. ulimit of 10000)

modules
C: hbase-common hbase-assembly U: .

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/3/console

versions
git=2.17.1 maven=2018-06-17T18:33:14Z) shellcheck=0.4.6 spotbugs=3.1.12

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
2m 16s
Docker mode activated.

-0 :warning:
yetus
0m  3s
Unprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck

_ Prechecks _

_ master Compile Tests _

+0 :ok:
mvndep
0m 18s
Maven dependency ordering for branch

+1 :green_heart:
mvninstall
5m 47s
master passed

+1 :green_heart:
compile
0m 55s
master passed

+1 :green_heart:
shadedjars
5m 10s
branch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 34s
master passed

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 16s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
5m  5s
the patch passed

+1 :green_heart:
compile
0m 52s
the patch passed

+1 :green_heart:
javac
0m 52s
the patch passed

+1 :green_heart:
shadedjars
4m 41s
patch has no errors when building our shaded downstream artifacts.

+1 :green_heart:
javadoc
0m 33s
the patch passed

_ Other Tests _

+1 :green_heart:
unit
1m  6s
hbase-common in the patch passed.

+1 :green_heart:
unit
0m 29s
hbase-assembly in the patch passed.

+1 :green_heart:
unit
63m  1s
hbase-server in the patch passed.

93m 25s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/3/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1368

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux b990cf5a9495 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / 040a0a7ac5

Default Java
1.8.0_232

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/3/testReport/

Max. process+thread count
5683 (vs. ulimit of 10000)

modules
C: hbase-common hbase-assembly U: .

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 15s
Maven dependency ordering for patch

+1 :green_heart:
mvninstall
6m 41s
the patch passed

+1 :green_heart:
compile
1m  2s
the patch passed

+1 :green_heart:
javac
1m  2s
the patch passed

+1 :green_heart:
shadedjars
6m 17s
patch has no errors when building our shaded downstream artifacts.

-0 :warning:
javadoc
0m 15s
hbase-common in the patch failed.

_ Other Tests _

+1 :green_heart:
unit
1m 18s
hbase-common in the patch passed.

+1 :green_heart:
unit
0m 37s
hbase-assembly in the patch passed.

+1 :green_heart:
unit
100m 43s
hbase-server in the patch passed.

135m 29s

Subsystem
Report/Notes

Docker
Client=19.03.8 Server=19.03.8 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/3/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/1368

Optional Tests
javac javadoc unit shadedjars compile

uname
Linux 6fe64dc3f74c 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/hbase-personality.sh

git revision
master / 040a0a7ac5

Default Java
2020-01-14

javadoc
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/3/artifact/yetus-jdk11-hadoop3-check/output/branch-javadoc-hbase-common.txt

javadoc
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/3/artifact/yetus-jdk11-hadoop3-check/output/patch-javadoc-hbase-common.txt

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/3/testReport/

Max. process+thread count
4119 (vs. ulimit of 10000)

modules
C: hbase-common hbase-assembly U: .

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-1368/3/console

versions
git=2.17.1 maven=2018-06-17T18:33:14Z)

Powered by
Apache Yetus 0.11.1 https://yetus.apache.org

This message was automatically generated.

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 32s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ master Compile Tests _

+0 :ok:
mvndep
0m 24s
Maven dependency ordering for branch

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 13s
Maven dependency ordering for patch

+1 :green_heart:
shellcheck
0m  2s
There were no new shellcheck issues.

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

Okay we have progress here. After HBASE-24084 and HBASE-24086, we now have this stage completing its Hadoop2 component. Now to see what's going on with Hadoop3.
https://builds.apache.org/blue/organizations/jenkins/HBase Nightly/detail/HBASE-24049-packaging-integration-hadoop-2.10.0/5/pipeline/103

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m 32s
Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s
No case conflicting files found.

+0 :ok:
shelldocs
0m  0s
Shelldocs was not available.

+1 :green_heart:
@author
0m  0s
The patch does not contain any @author tags.

_ master Compile Tests _

+0 :ok:
mvndep
0m 16s
Maven dependency ordering for branch

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 10s
Maven dependency ordering for patch

+1 :green_heart:
shellcheck
0m  2s
There were no new shellcheck issues.

+1 :green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

Okay, the fix is demonstrated in https://builds.apache.org/blue/organizations/jenkins/HBase Nightly/detail/HBASE-24049-packaging-integration-hadoop-2.10.0/6/pipeline/103/


Error PostnlApi object has no attribute 'is_letters_activated'

Tried to intergrate the component but i'm seeing the following error in the logging:

It's stating that is_letters_activated has no attribute. Receiving letters is enabled in the app and i'm able to see the letters from the app. Because of this error it's not creating the sensor.postnl_letters
Therefore i'm only seeing these 2 views:

I think your custom component is out of date.
https://gist.github.com/peternijssen/155c9060923adbc08d0998bbd8ed44bf
Please check both manifest.json and sensor.py have postnlpy==0.4.1. If not, make sure they have and restart HA.

 I followed your post on the HA forums and copied the code shown in the link.
All is working properly now :)
Thanks!


API key is not displayed when creating a new one

Blank page until you go back

Body of read API key was not being parsed as JSON so accessing .id returned undefined and the page was empty.


Data Builder Record Abstraction

will take a look, thanks for the RFC

also the DCO fails as well

also could you create the pr with your branch? thanks a lot

Pr: https://github.com/amundsen-io/amundsendatabuilder/pull/380

do you see any backward compatibility issue?

I am not sure if its a bug or a typo but some of the timestamps were not unquoted. I currently have it so it is unquoted let me know if that is unwanted.

@AndrewCiambrone I just merged the change. Could you update this rfc and move it under rfcs folder and name it 002-xxx.md? thanks.


guides: make installing-go-programs-directly reproducible

Specify the version of mkcert we want to go get; add a comment
explaining why we need to do that.

FYI @mvdan


Credential Manifest & Presentation Exchange Schema Validation

Fixes https://github.com/TBD54566975/did-sdk/issues/58

This change relies on some fixed bugs in PE, which I've opened PRs for: https://github.com/decentralized-identity/presentation-exchange/pull/314


feat(client): turn nav-links component functional

This pr is a prerequisite for the growthbook AB testing pr as a react hook needs to be called in this component.
Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

second

full free to merge after removing as, and if you think as are need you can ingnore my request

ran through Bruce accessibility list and found no issue 👍

[ ] When the main navigation menu is expanded and keyboard focus is on an item in main menu, the Esc key should close the menu and put keyboard focus on the Menu button.
[ ] When focus is on the Change Language item in the main menu, the up arrow should open the lang menu and place focus on the last item in the lang menu.
[ ] When focus is on the Change Language item in the main menu, the down arrow should open the lang menu and place focus on the first item in the lang menu.
[ ] When lang menu is opened and keyboard focus is automatically moved into lang menu, the up and down arrow keys should move the keyboard focus up/down one menu item.
[ ] In the lang menu, when focus is on the last item, arrow down should move focus to first item. Similarly, when focus is on the first item, arrow up should move focus to last item.
[ ] When focus is on an item in the language menu, Shift + Tab should close the lang menu and put focus on the item immediately above the Change Language item.
[ ] When focus is on an item in the language menu, Tab should close the lang menu and put focus on item immediately after the Change Language item, or if no such item exists then put focus on the next element that can receive focus on the page (which is the Sign In button at this time).
[ ] When focus is on any item in lang menu, the Esc key should close the lang menu and put focus back on the Change Language menu item.

When keyboard focus is on "Sign out", Shift+Tab takes you to "Night Mode", skipping "Change Language" completely.
When keyboard focus is on "Sign out", Esc moves the focus to "Change Language" instead of closing the menu and moving the focus to the "Menu" button.
[ ] If keyboard focus is on the last item in the nav menu, using the tab key should move focus to the next active element on the page (this part works) AND the nav menu should close automatically (this part does not work). This bug is only happening when the user is logged in.


A temporary treatment of unable to open file error

Now if an error is encountered the script will raise a message box showing the error instead of just collapsing. I will add an issue later explaining the details.

Thank you for your PR and sorry for this late merge.


Fix wire_holograms_block_client when not given input

Fixes #2382

Trim check should be removed imo

Yeah wasn't sure if that'd be possible, w/e


Snapshot key material before publishing ECDSA DKG result on-chain

https://github.com/keep-network/keep-core/blob/bcc5684094a39682ab5ed52ffebbd2db24b8e80c/pkg/tbtc/node.go#L326-L327

Solved by #3426.


when hiding a full paragraph, paragraph mark (line break) remains visible ... Bug?

Let's say I have three paragraphs in my document:
Visible paragraph.
I want to hide this paragraph.
Visible paragraph.

and I want to hide the middle one, like this:
Visible paragraph.
Visible paragraph.

With MS-Word, I achieve this by simply selecting the whole middle paragraph (including end of paragraph mark), then going to font settings and selecting "hidden". This hides the full paragraph text, including the paragraph mark .
With python-docx I was able to do it, but only the text (not the end of paragraph mark, so there is an unwanted line break between the two remaining visible paragraphs). This is my result:
Visible paragraph.

Visible paragraph.

This is my code:
def hiddenParagraphTest():
	from docx import Document
	d = Document()
	p = d.add_paragraph("Visible paragraph.")
	p = d.add_paragraph()
	r = p.add_run()
	r.text = "I want to hide this paragraph."
	r.font.hidden = True
	p = d.add_paragraph("Visible paragraph.")
	d.save("hiddenparagraphtest.docx")

hiddenParagraphTest()

I have the impression that this happens because the paragraph mark is not part of any runs.
So how should achieve this using python-docx?
Is there a .hidden attribute for the paragraphs somewhere? I couldn't find it in the documentation.
Thanks a lot in advance for your help
EDIT:
I opened an issue because I felt this was a bug or lack of documentation, but just in case I asked in StackOverflow as well.
My sample code intends to generate a new document using python-docx ... but I think the same question applies if I try to open a pre-existing .docx file in order to completely hide a certain paragraph.

Perhaps nobody answers because I forgot to mention my operating system?
Windows 7, Python 3.8
It looks a simple issue to me (compared to others which are getting answers).
Please @scanny , could you give me a hint on this?
Thanks

The "paragraph mark" of a paragraph is not part of any run. So the behavior you're seeing is what I would expect.
Compare the XML generated by Word when you hide the paragraph "by hand" using the WordUI to the XML generated by python-pptx. I expect you'll find something like w:p/w:pPr/w:vanish{val=1} in the XML generated by Word.
If you can confirm that's what's giving the behavior you're looking for then all you have to do is figure out how to set that value.

Thanks a lot for the detailed explanations, @scanny
If I understood correctly, python-docx library alone is not enough for what I try to do, so my only option is to re-open the XML generated by python-docx and modifying it using other Python methods?
Sounds pretty beyond my programming skills.
Perhaps you can advice me in other way?
What I am trying to do is generating hidden marks after certain paragraphs of my document, like this (all {{}} items would be hidden):
Paragraph with many lines.
{{mark_5021}}
Paragraph with many lines.
{{mark_0287}}
Paragraph with many lines.
{{mark_7034}}
... and so on.
Basically, these paragraphs describe items in a museum collection. And the marks are items identificators.
For some items, I have one to many images in a local folder, named "item_0311_img1.jpg", "item_0311_img2.jpg", "item_0834_img1.jpg", ... and so on.
So my plan was to check this folder contents, parse all filenames to locate item ids inside, and then parse my .docx to find the places where those images should be inserted.
Only when the corresponding mark is located in the document, the image should be inserted and that paragraph should become "visible".
But for all the remaining marks, the paragraph should stay "invisible" (in the sense that no additional paragraph mark should exist there, because there are no images in that run).
Can you suggest another way to achive this using python-docx only approach?
Perhaps I could somehow delete those paragraphs instead of "trying to hide" them?

There is a solution in StackOverflow:
how-to-hide-a-full-paragraph-in-word-docx-file-using-python-docx
I provide here the code posted by skyway (aka @dothinking). Thanks!:

You are almost there. Hide paragraph as you did in MS-Word and check the source xml, it looks like:
<w:p>
    <w:pPr>
        <w:rPr>
            <w:vanish/>
        </w:rPr>
    </w:pPr>
    <w:r>
        <w:rPr>
            <w:vanish/>
        </w:rPr>
        <w:t>Hidden</w:t>
    </w:r>
</w:p>

Compared to your code generated docx, you should find that the additional w:pPr node, i.e., paragraph property, does the trick.
So, let's add this property manually.
from docx.oxml import OxmlElement

def setHiddenProperty(p):
    pPr = OxmlElement('w:pPr') # paragraph property
    rPr = OxmlElement('w:rPr') # run property
    v = OxmlElement('w:vanish') # hidden
    rPr.append(v)
    pPr.append(rPr)
    p._p.append(pPr)

Finally, apply it to your code.
def hiddenParagraphTest():
    from docx import Document
    d = Document()
    p = d.add_paragraph("Visible")

    p = d.add_paragraph()
    setHiddenProperty(p)  # set paragraph hidden property
    r = p.add_run()
    r.text = "Hidden"
    r.font.hidden = True

    p = d.add_paragraph("Visible")
    d.save("hiddenparagraphtest.docx")

hiddenParagraphTest()

@abubelinha


fix: fixed support for groq (and deepseek?)

This also potentially unblocks: https://github.com/ErikBjare/gptme/pull/180

[!IMPORTANT]
Refactored provider handling in msgs2dicts and related functions to improve support for different providers in llm_anthropic.py, llm_openai.py, and message.py.

Behavior:

Updated msgs2dicts function in message.py to use provider parameter instead of openai and anthropic boolean flags.
Added get_provider function in llm_openai.py to determine the provider based on base_url.
Modified chat and stream functions in llm_anthropic.py and llm_openai.py to use provider parameter.

Models:

Added ProvidersWithFiles list in message.py to specify providers supporting files.
Updated _content_files_list and to_dict methods in Message class to handle providers using ProvidersWithFiles.

Misc:

Removed openai and anthropic flags from msgs2dicts calls in llm_anthropic.py and llm_openai.py.

This description was created by  for 909d08a0b4d8fcbf24108476d2ca7377e250189f. It will automatically update as commits are pushed.

Codecov Report
Attention: Patch coverage is 50.00000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 74.30%. Comparing base (65bdb8a) to head (909d08a).

:white_check_mark: All tests successful. No failed tests found.

Files with missing lines
Patch %
Lines

gptme/llm_openai.py
8.33%
11 Missing :warning:

gptme/message.py
90.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #231      +/-   ##
==========================================
- Coverage   75.48%   74.30%   -1.19%
==========================================
  Files          57       57
  Lines        3590     3604      +14
==========================================
- Hits         2710     2678      -32
- Misses        880      926      +46

Flag
Coverage Δ

anthropic/claude-3-haiku-20240307
74.30% <50.00%> (-0.21%)
:arrow_down:

openai/gpt-4o-mini
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Add command updateImage for updating a container image via revision draft

Part 2
Partially addresses #426
This is the new updateImage command implementation.  It can be executed on the ContainerAppItem level or on the RevisionItem level to update the container image.  Any changes will be made to the revision draft instead of automatically executing a deployment like before.
A few things to note:

I've also added a new thing where I append a short random hex value to the container name on draft update.  This is because if you are re-deploying using the exact same image values, the extension will have no easy way to detect that there are changes to deploy.  This was an easy way to fix that and get it to play nicely with our current setup.

One other noteworthy area is the new UpdateRegistryAndSecretsStep.  I've added some deep copy comparison logic to try and see if we can skip credential updates since updating the container app's secrets before deployment can trigger a bit of a wait which feels bad to always do unless we absolutely need it.

Todo:  In a follow-up PR I'm going to build out some sort of draft command information pop-up.  Right now updating the image does get a little lost because we don't yet have the containers section of the tree implemented.  Having a pop-up should help the results appear a bit more prominently and I think will be a nice addition.
Update: Here's the demo
This PR doesn't cover the pop-up part shown in the demo

Just approving ahead of time to not block you


Adding all DLP v2 samples

Currently tests are disabled. We will re-enable once all test issues are addressed.

Even though Windows build is failing, it's failing on spanner tests which are not related to this change in any way:
\spanner\api\SpannerTest\runTests.ps1
1 FAILED
At T:\src\github\dotnet-docs-samples\BuildTools.psm1:465 char:9

    throw "$failureCount FAILED"

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : OperationStopped: (1 FAILED:String) [], RuntimeE
xception
FullyQualifiedErrorId : 1 FAILED


All Resource Types Gallery, Log Analytics At Resource Template

Add special case all resource types gallery + Log analytics at resource template

amazing work! thanks Erica


MAINTAINERS: Devicetree: Exclude test bindings

Devicetree maintainers probably do not need to be pulled in for dts/bindings/ folders that are found in various tests and samples directories, the purpose of these lines was only for the top level dts/bindings/ folder. Fix the regex to be more specific.

I'm concerned that we might miss some reviews. Will users incorrectly change the binding rules? And we didn't notice? I don't know.
(But, I think this is very good, as it will make Declan and my inbox quieter. I'm serious about this.)

I'm concerned that we might miss some reviews. Will users incorrectly change the binding rules? And we didn't notice? I don't know. (But, I think this is very good, as it will make Declan and my inbox quieter. I'm serious about this.)

The test bindings are not of any concern to me because they are just something specific for that test, it's not really affecting anything user facing. There's basically almost no rules in the land of app-specific things when they are contained to that app. Although I'm not sure what you meant by "changing the binding rules".

changing the binding rules

I see those yaml as a rule, which seems a bit confusing, this is my personal habit, but it doesn't matter ;)

The test bindings are not of any concern to me because they are just something specific for that test, it's not really affecting anything user facing.

I agree. We shouldn't focus on testing. This change seems to be well suited to the needs.


[Netlify] added changes to use new color schema

Added new colour schema to fix netlify service badge.

Warnings

:warning:
This PR modified service code for netlify but not its test code. That's okay so long as it's refactoring existing code.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @tarun7singh!

  Generated by :no_entry_sign: dangerJS against 05295d5a3bce8de87c1e26e2310179518c0f0359


Cannot see microsoft.web/sites/basicPublishingCredentialsPolicies/scm

I cannot find out microsoft.web/sites/basicPublishingCredentialsPolicies/scm when creating a custom role

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

ID: 9e63c057-bb63-1b34-d01e-da48cd023850
Version Independent ID: acd0b1d1-774d-ebf3-7b7b-ef5ba1ef3362
Content: Disable basic authentication for deployment - Azure App Service
Content Source: articles/app-service/configure-basic-auth-disable.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@nghianguyen09
Thanks for your feedback! We will investigate and update as appropriate.

@nghianguyen09, I verified the steps outlined in  does indeed work. When select either Add or Exclude permission, and enter microsoft.web/sites/basicPublishingCredentialsPolicies/scm, that filters the permissions down to Microsoft Web Apps.
Select that box and the Read/Write policies for scm are shown.


feat(enum): u16/u32 discriminants

Added support for tag_width to support u16/u32 enums.
tag_width requires use_discriminant = true and repr(u8/u16/u32) to ensure backward and forward compatiblity.
See https://github.com/near/borsh-rs/pull/315#issuecomment-2453457181 for full design

@frol @dzmitry-lahoda - i have added u16 enum discriminant.
As for EnumExt  I retained ability to compile against without change if code of caller.
But as you can observer generate code is ugly.
Alternative is delete EnumExt, so it would not make assumption about  discriminant size (compatible with u32 in future).

Seems all tests work except snaps, do not change snaps until have some decision about EnumExt

@dzmitry-lahoda , actually , as https://docs.rs/borsh/1.5.1/borsh/schema/enum.Definition.html has tag_width but doesn't have signed: bool field for Enum variant, and we do not want to break public api for this,
the number of variants should be narrowed: EnumExt (u8), EnumExtI16 (i16), EnumExtI32 (i32), EnumExtI64 (i64),
which should cover most, if not all, practical cases for ser/de of enums with borsh.

EnumExt (u8), EnumExtI16 (i16), EnumExtI32 (i32), EnumExtI64 (i64)

What is reason have signed instead of unsigned? Can we have all UNsigned? We can convert all singed to "singed" byte by byte.
I am concerned because I do not recall cases when needed negative variants. We have errors enum in protobuf(blockchain domain) - only unsigned, windows winapi/COM return codes - unsigned, http codes - unsigned.
Do not recall places where need singed enums?

Well, if signed discriminants had been useless, rust wouldn't have added support for them.
Doing it better really calls for adding that tag_signed field into Enum schema definition, but that's a breaking change we don't want to do (now). u8 -> i16 -> i32 -> i64 should cover most if not all use cases one might need in practice.
Adding tag_signed and i8/u16/u32/u64 support may be deffered to a later breakage.

Alternatively ,existing  tag_width can be used to encode sign without breakage: 1 means u8, 1 + 128 would mean i8, 2 would mean u16, 2 + 128 would mean i16, 4 would mean u32, 4 + 128 would mean i32, 8 + 128 would mean i64 . The derived implementation wouldn't accept u64 as it would be problematic to do Into<i64>  (DiscriminantValue) in derive proc-macro, unlike other variants, but manual implementation would still be allowed, should someone absolutely need it.
@dzmitry-lahoda what do you think? This looks generic enough and achievable without breakage.

Alternatively ,existing tag_width can be used to encode sign without breakage

giving an example in runnable playground , in case above phrasing was too confusing
fn main() {
    for int_type in ["u8", "i8", "i16", "u16", "i32", "u32", "i64"] {
        println!("int_type: {}", int_type);
        let tag_width_encoded = forward(int_type);

        let (width, signed) = reverse(tag_width_encoded);

        println!("tag_width: {}, signed: {}", width, signed);
        println!("########");
    }
}

fn forward(int_type: &str) -> u8 {
    let (width, signed): (u8, bool) = match int_type {
        "u8" => (1, false),
        "i8" => (1, true),
        "u16" => (2, false),
        "i16" => (2, true),
        "u32" => (4, false),
        "i32" => (4, true),
        "i64" => (8, true),
        "u64" | _ => panic!("unsupported"),
    };

    let signed_bit = if signed { 2u8.pow(7) } else { 0u8 };

    let tag_width_encoded = width | signed_bit;
    println!("width {}, tag_width_encoded {}", width, tag_width_encoded);
    tag_width_encoded
}

fn reverse(tag_width_encoded: u8) -> (u8, bool) {
    // ############### reverse direction for https://docs.rs/borsh/latest/borsh/schema/struct.BorshSchemaContainer.html#method.validate
    let signed = tag_width_encoded.leading_ones() > 0;

    let width = tag_width_encoded & !(2u8.pow(7));

    (width, signed)
}

Seems OK, supports unsigned and signed and handles backward compatibility. Will  update PR to described pattern. Thank you

couple observations,

on current master negative discriminant nor more than 256 discriminates are supported
rust discriminant values are tightly coupled with repr. specifically default value for big numbers is isize. if I want u32 for example, I had to set repr(u32).

on current master negative discriminant nor more than 256 discriminates are supported

negative discriminants are not supported at all on current master (with use_discriminant = true). Only consts/literals, that can be interpreted as u8.
i didn't really get the meaning of points 2. and 3. of the first numbered bullets block, but i created a playground https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=60fcba754c164f666dc3fc2e678d9bd6 to illustrate that same literal can be interpreted as different types depending on containing struct.

No ext impl for non u8.
i'll take a look at your implementation, and maybe scratch up an alternative one, and we'll choose a simpler one

No support for negative.
why not?

Deep integration with repr as it was.

i've created a playground to showcase that repr may be u8 and borsh(enum_tag) - i16, and while the latter may be ineffient if there are no discriminants larger than u8, it may be a forward-looking choice, that accounts for appearance of variant XLater::D later, when repr changes to i16, but serialization of XEarlier::A, XEarlier::B, XEarlier::C doesn't change. All in all, it's a design decision, that i want to do, to stress that borsh(enum_tag) has a different meaning than repr, though both will be in sync in most of the cases.

proposed design with many traits per type

see above. there's no need to rush this, it'a complex feature

suggested hack to support for negative

hack is to express sign without breaking the schema, a separate tag_signed: bool field is clearcly a better choice
for when  2.0 borsh is done, or if we need to do a pre<2.0 breakage for another, more important reason

@dj8yfo thank you for response.

, that i want to do, to stress that borsh(enum_tag) has a different meaning than repr, though both will be in sync in most of the cases.

I do not feel this is fully reasonable, i think in some cases, specifically in my case, they are tightly coupled and cannot be decoupled because of how rust works with enums. i feel that better statement is different meaning but overlapping-conflicting meaning.
In general,
seems things are complicated, specifically when doing backward compatible things.
Current, specifically case of repr(u16) and use_discriminant = true. I cannot interpret it as that borsh must serde into 2 bytes as is, because previous interpretation was u8, until some const A: u16 = 666; ... A = SOME_VALUE added - in this case borsh failed to compile.
So I cannot start from small values like 0,1,2 and assume I can gracefully go to values 256, 257,....
So I think that introducing tag_with in very limited narrow form seems will be backward, forward compatible and be human understandable. And covering cases I have outlined for positive errors/return/version flags.
Specifically,  rule to be:
if tag_with added, then repr must be same size and unsigned type and use discriminant to be true.
This rule is backward and forward compatible as I think, so severely limiting, with possible behaviors to be allowed later.
So:
#[borsh(use_discriminant = true)]
#[repr(u16)]

will serde into 1 byte.
But
#[borsh(use_discriminant = true, tag_width = 2)]
#[repr(u16)]

into 2 bytes.
Next will be errors (new tag_width meta added, leads to new checks - fine) (some of them may be just for now), build fail test cases:
#[borsh(use_discriminant = true, tag_width = 2)]
#[repr(i16)]

#[borsh(use_discriminant = false, tag_width = 2)]
#[repr(u16)]

#[borsh(use_discriminant = true, tag_width = 2)]
#[repr(u8)]

#[borsh(use_discriminant = true, tag_width = 2)]
#[repr(u32)]

#[repr(C)]
#[repr(transparent)]
#[repr(usize)]
#[repr(isize)]

@dzmitry-lahoda
pleaze update pr from master branch

I do not feel this is fully reasonable, i think in some cases, specifically in my case, they are tightly coupled and cannot be decoupled because of how rust works with enums. i feel that better statement is different meaning but overlapping-conflicting meaning.

i don't won't to reuse rust's repr attribute, which was made for other purpose by other people. it has a ton of other suboptions, which have no relation to current use case in borsh with enums.
please, do this as a separate attribute [borsh(enum_tag = i16)] there's no need whatsoever to mix it with repr(i16) logic.
if you managed to get it working with [borsh(tag_width = 2)] there's only a small step left to get it working
with [borsh(enum_tag = ...)]

I find enum_tag = i16 confusing. And need more specification to understand it.

that will be documented

@dzmitry-lahoda  may i add fast-forward additions to this pr? changing the implementation as i see fit and (likely) adding some tests, as new features are rarely covered with tests sufficiently


[torch-frontend] add elided stablehlo IR for a single Mixtral decoder layer

In this PR, we provide stablehlo IR of a single Mixtral decoder layer using ByteIR stack. The IR is elided by --mlir-elide-resource-strings-if-larger=1000 option, so not all dialect resources storing the model weights are displayed in the IR.
Note: we have some local patches to make the compilation succeed.

We eliminate torch.runtime.assert in stablehlo conversion, as we haven't decided how to handle it.
We need patches of PR 3322 and PR 3085 in torch-mlir

Update at 2024.05.31. We add a stablehlo IR of a whole Mixtral 8x7B model. Note, to save compilation time and memory consumption, we convert the large weights into splat DenseElementsAttrs. See frontends/torch-frontend/examples/inference/mixtral/infer_single_mixtral.py for how to run.


lvm2: 2.03.28 -> 2.03.29

Changes: https://gitlab.com/lvmteam/lvm2/-/tags/v2_03_29

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Typo in commit message (transposition of 30 to 03)

Good catch! Fixed (the upstream spelling is 03).


Null component generation

I have a component named BattleComponent in a pool named Battle. I've decided to remove the component, and as I always do I removed the component, its generated extension and deleted the related line in BattleComponentIds. When I regenerate, Entitas adds null fields and also the totalComponents is wrong. If I create another component and remove it, there is no problem. Is there a cache somewhere that causes this issue?
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by Entitas.CodeGenerator.ComponentIndicesGenerator.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public static class BattleComponentIds {

    public const int BattleFinished = 0;
    public const int GS_Battle = 1;
    public const int Hero = 2;
    public const int Village = 3;
    public const int Timer = 5;

    public const int TotalComponents = 6;

    public static readonly string[] componentNames = {
        "BattleFinished",
        "GS_Battle",
        "Hero",
        "Village",
        null,
        "Timer"
    };

    public static readonly System.Type[] componentTypes = {
        typeof(BattleFinishedComponent),
        typeof(GS_BattleComponent),
        typeof(HeroComponent),
        typeof(VillageComponent),
        null,
        typeof(TimerComponent)
    };
}

Hm, never heard that before. There's no caching going on, the code generator always inspects the dll and generates.

I'm using 0.35.0 by the way. Yes it is really weird.

oh, that might explain a lot :) I improved a lot in the last few releases. 0.35.0 comes with sources instead of dll, so you might be able to debug a little but. I never saw sth like that before and I cannot recall lot of the details of the previous generation of the code generator.
I wrote down a note for my Video Tutorials :) Entitas Shmup is 0.35.0 too. Maybe I should to a "how to upgrade from 0.35.0" Video.


[Navigation Refactor] Pronouns page has no animation when opening

Problem
The pronouns page in settings has no animation when opening which is inconsistent with other pages (tested on web)
https://user-images.githubusercontent.com/36083550/234960374-fee44512-d077-4743-bb92-1aa94006954c.mov
Solution
Ensure all he pages in RHP have the same animation when closing nad opening.

Triggered auto assignment to @kadiealexander (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero process steps for feature requests for more details.

No need to act here @kadiealexander its a part of a new feature refactor. We will see if there will be anyone to pay at the end

Roger that, thanks Vit!

@staszekscp can you comment on this issue so I can assign you? thanks!

Sure, thanks!

thanks!

@staszekscp not overdue just need to test it with the UP implementation

Hey, the fix has been included into this PR!

Ok lets always link it in the PR withth $ https://github.com/Expensify/App/issues/18092

PR done, nothing to pay here


Convert the tabs to bottom navigation on mobile devices.

Create bottom navigation with icons instead of tabs in mobile devices.
Remove the fixed top navbar for more space in small screens.

Hello, can I work on this one?

Sure, Go ahead :+1: don't forget to use some cool icons instead of texts 😉

Hello, I fixed the issue, I created new branch, but I am not able push to my changes into my new created branch. Maybe I don`t have privileges? Thanks :)

Fork this repository to your account and add the git url of your repository.
First remove the current remote origin.
git remote rm origin

Then
git remote add origin https://github.com/YOURUSERNAME/sosc-website.git