[WEB] Remove live preview and disable resnet|albert_maskfill

This commit removes live preview feature for now as it's not functional. This feature will be added in the next patch.
Signed-Off-by: Gaurav Shukla<EMAIL_ADDRESS>

@qedawkins all the comments have been addressed, please re-review. Thanks!


Will this work with webpack as well?

I see that this module is supposed to be used with browserify, but will it work with webpack as well?

no.
for webpack you should use webworkify-webpack.


[BUG] (Drawer) Instant appearance on first render

Describe the bug
Drawer appears without transition when opened for the first time.
To Reproduce
Steps to reproduce the behavior:

Reload page
Open Drawer

Expected behavior
Transition should be consistent and not dependent on the first rendering.
Desktop (please complete the following information):

OS: macOS Mojave 10.14.5
Browser chrome
Version 80

UPD: Disappearance is broken too, but it remains almost consistently broken.
Mostly it is visible with left or right Drawer positions.


font_name not working

Versions

Python: 3.8
OS: Windows
Kivy:
Kivy installation method:

Description
I'm trying to show messege in hebrew font.
the thing is i can display in hebrew while im using python code, but its not working with in kv file..
i guess i do somthing wrong with the kv file, can u help me plz
Code and Logs
file.kv
WindowManager:
MainWindow:
secondWindow:
:
name: "main"
GridLayout:
    cols:1
    GridLayout:
        cols:2

        Label:
            text: "password: "

        TextInput:
            id: passw
            multiline: False

    Button:
        font_name: "VarelaRound-Regular.ttf"
        text:"עמית"
        on_release:
            app.root.current = "second" if passw.text == "amit" else "main"
            root.manager.transition.direction = "left"

:
name: "second"
Button:
    text: "Go Back"
    on_release:
        app.root.current = "main"
        root.manager.transition.direction = "right"

main.py
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager,Screen
class MainWindow(Screen):
pass
class secondWindow(Screen):
pass
class WindowManager(ScreenManager):
pass
kv = Builder.load_file("my.kv")
class MyMainApp(App):
def build(self):
return kv
if name == "main":
MyMainApp().run()
code working without ky file
import kivy
from kivy.app import App
from kivy.uix.textinput import TextInput
class TestApp(App):
def build(self):
return TextInput(text='עמית',font_name="VarelaRound-Regular.ttf")
myapp=TestApp()
myapp.run()

Please be more specific about "what's" not working. Is there a a error? Please provide the full log.

I just tested and it works for me.


Heighlighted text in the terminal

Issue Type: Bug
I don't know why but everything in my Vscode powershell terminal is heighlighted.

A screenshot might help too

This looks like an issue with our old terminal backend "winpty", going forward we are focusing our efforts on the new backend "conpty" which is build by the Console team at Microsoft and should fix many issues with the terminal under Windows. You can read more about getting ConPTY here.
/duplicate https://github.com/Microsoft/vscode/issues/45693
You might be able to fix this issue by removing customizations to cmd.exe's theme.

I have attached the screenshot here.
[image: image.png]
I don't understand the solution you provided. Can you please explain in
simple language?
Dev
On Wed, 26 Feb 2020 at 06:46, Daniel Imms<EMAIL_ADDRESS>wrote:

Closed #91489 https://github.com/microsoft/vscode/issues/91489.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vscode/issues/91489?email_source=notifications&email_token=AKXG3URXDM2EIPFCCIMQLULREZ6ETA5CNFSM4K3UVVOKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOW45AZSI#event-3074034889,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKXG3UVSZRGWBJB5D7MYOFTREZ6ETANCNFSM4K3UVVOA
.

@devd8292 the solution is to upgrade to Windows 10 v1903 to move to the new backend that is maintained by the Windows terminal team and fixes a bunch of issues.


Gh media

Paper that used this repo.
https://ieeexplore.ieee.org/document/9190040

Hi @mustafayildirim16 ,
I don't understand the purpose of this pull request (merging gh-media into master), nor the point of the paper that you mentioned.
Could you elaborate?


[WalletApp] Session requests handling

Description

Sessions
Requests

Due Dilligence

[ ] Breaking change
[ ] Requires a documentation update

@llbartekll swipe to delete


Clue Scroll: Clarifies Pointed Blue Snelm

Enhanced emote clue overlay to clarify pointed > rounded

Closes #7618
**This is an odd case where any() is being used for 1 item. This is the only way I could think to clarify a pointed blue snelm in the hint overlay.

Done

Requested changes have been addressed. This should be good to go!


Added ability to pass a compressed file instead of full APP_DIR

For a few reasons, I needed the ability to pass the compressed file instead of mounting the volume. When using a docker-compose and having multiple instances running, this avoids a lot of issues for me.

Sounds good to me.  Could we name the variable BUNDLE_FILE instead of COMPRESSED_APP_DIR?  That would keep consistency with the current BUNDLE_URL functionality.
Thanks!

I will change it now!

@CoolestNerdIII  Thanks for the submission!


Feature/prepare for wp submission

Renames plug-in and associated classes & methods to dxw-members-only
Adds .php_cs file and runs php-cs-fixer on current codebase
Adds a readme.txt file, as per WordPress submission rules
Amends existing readme.md

Oh. One important thing to do before publication on wordpress.org:
This plugin allows managing access to wp-content/uploads. But the README doesn't mention that. It involves adding rules to Apache.
I'm not entirely sure what those rules are.


[Bug]: Beam jars include many copied classes, break compilation of user code

What happened?
Several Beam 2.52.0 jars (as downloaded from maven) include unshaded classes copied from other projects. For example, beam-sdks-java-transform-service-launcher-2.52.0.jar includes annotation classes that appear to have been copied from old versions of error-prone and checker-qual, e.g. com.google.errorprone.annotations.CanIgnoreReturnValue and org.checkerframework.checker.builder.qual.CalledMethods. When this jar appears on the classpath, it can shadow the actual error-prone and checker-qual jars, potentially causing compilation errors in user code.
Similarly, beam-sdks-java-harness-2.52.0.jar includes classes copied from outdated versions of JUnit and Hamcrest. It's unclear why this jar would need to vendor unit testing classes. The same jar appear to also include a near(?)-complete copy of classgraph.
Most confusingly, beam-runners-direct-java-2.52.0.jar appears to include duplicates of most or all of the classes from beam-sdks-java-extensions-avro-2.52.0.jar, but not exactly the same classes, as the classfile CRCs differ. It's not at all clear why one Beam jar needs classes vendored from another jar within the same project.
I suspect the copied annotation classes aren't needed in the jars at all--anyone using error-prone or checker-qual can provide their own jar explicitly and it should be relatively harmless to compile against the jar with the annotation classes missing completely. (Although some non-Java compilers such as scalac may not handle this as well as javac.) The other classes should be provided as dependencies, allowing users to upgrade them, if necessary, and avoiding confusing errors caused by shadowing.
These copied classes appear to have been introduced sometime after version 2.37.0, which did not have these copied classes. This may be related to Issue 19846
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components

[ ] Component: Python SDK
[X] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam YAML
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

I think at least those shadowed classes should be relocated.

beam-sdks-java-transform-service-launcher also include slf4j, which makes things even worse, because it doesn't play well with later version of slf4j where implementation loading is service provider based. If in classpath there is later version of slf4j-api and corresponding implementation, logging might not work at all depending on which slf4j classes get loaded first.


DEPR: remove k=None from KDTree.query

Deprecated since https://github.com/scipy/scipy/pull/12382, contains still-extant announcement of removal in 1.8

Hello,
I would like to make my first contribution open source software.
Can I try to solve this issue? How does it work? Can I just start working on it, and then at some point make a pull request, or should I be assigned to this issue somehow?

@h-vetinari Thanks a lot!
So far, I have removed the few lines pasted below (in scipy/scipy/spatial/_kdtree.py):

Should the lines below also be removed, even though they are part of a comment?

If the tests are not running, should I adapt them as well as part of the same PR?

Yeah exactly; we should remove all things related to the behaviour of k=None (including documentation!), and then raise an error in the if k is None branch.


Scene Depth node with Sampling Eye throws shader error

When I use Scene Depth node and set Sampling to Eye I've got shader errors. The shader does not work and turns into pink color.
Errors do not occur when Sampling is set to Raw or Linear01.

Example shader:

Fresh World project created with VRChat Creator Companion.
Unity version: 2022.3.22f
Shader Graph package: 14.0.10
Shader Graph Target (z3y): 1.0.3

Certainly not an expert in C#/Shaders but it seems to stem from the Orthographic branch ("unity_OrthoParams.w is 1.0 when camera is orthographic, 0.0 when perspective.") of this if/else statement.

VR should always be in perspective mode anyways so I just deleted it from SceneDepthNode.cs in the ShaderGraph package and it worked for me. (alternatively maybe you could patch UNITY_MATRIX_I_VP to be UNITY_MATRIX_I_V * UNITY_MATRIX_P to stop  the orthographic section without throwing an error)

Previews with no error and seems to work correctly in scene view

Im glad that you figured it out! I was afraid it would be something in the main package, I'll see if I can fix it still, thanks.

Thats fixed the error, but it still wasnt working properly. I've fixed this issue entirely it should be working now.


Mixed up the EventIDs 4624/4625

Minimal - This set is intended to cover only events that might indicate a successful breach and important events with low volume. Most of the data volume of this set is successful user logon (event ID 4625), failed user logon events (event ID 4624), and process creation events (event ID 4688). Sign out events are important for auditing only and have relatively high volume, so they aren't included in this event set.
You mixed up successful with failed EventIDs
Failed: https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4625
Succesful: https://learn.microsoft.com/en-us/windows/security/threat-protection/auditing/event-4624
2 Questions:

is this info also valid for Defender for Endpoint?
Are all Failed Logons  collected or are some dropped during a bruteforce, as I see less events in DeviceLogonEvents than i have EventID 4625

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

ID: 90bcf3a5-063b-3581-173b-50f1d5be0df9
Version Independent ID: e73871d6-a39d-6595-76d3-041542333b31
Content: Collect data from your workloads with the Log Analytics agent
Content Source: articles/defender-for-cloud/working-with-log-analytics-agent.md
Service: defender-for-cloud
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

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

#reassign:dcurwin

#reassign:dcurwin

#assign:dcurwin

#reassign:dcurwin

#label:"backlog-item-created"

@PehDeh
Thanks for bringing this to our attention.
I'm going to assign this to the document author so they can take a look at it accordingly.

#label:"backlog-item-created"

#label:"backlog-item-created"

#reassign:dcurwin

#label:"backlog-item-created"

Salut

@PehDeh  - Thanks for bringing this to our attention. We've fixed the Event IDs.
Regarding your two questions, we suggest opening a support case.
#please-close


NIFI-12185 Add nifi-bom Bill of Materials

Summary
NIFI-12185 Adds a nifi-bom Bill of Materials module at the root level containing a Maven configuration with shared dependencies.
The nifi-bom defines a limited set of dependencies with specific scopes designed for extension components. The purpose of nifi-bom is to support both internal and external extensions with consistent versioning for shared interfaces.
This pull request applies the nifi-bom to the nifi-commons and nifi-nar-bundles parent projects. This approach uncovered a number of implicit transitive dependencies on nifi-property-utils, containing the StringUtils class, and nifi-utils, which provides common validators and other utilities. The nifi-property-utils module is available to all components based on its presence in the lib directory, and nifi-standard-services-api-nar already bundles nifi-utils. Inheriting the defined scope and version from nifi-bom provided the opportunity to surface these dependencies explicitly in a number of extension Maven configurations.
The introduction of nifi-bom also provided the opportunity to remove explicit version numbers and scopes from most referencing modules. This reduces the number of changes required when releasing new project versions.
The initial scope of nifi-bom is limited to public and framework API modules, as well as a subset of modules under the nifi-commons directory. For nifi-commons in particular, there is a smaller subset of modules with wider usage and greater stability, providing sufficient reason to include them in nifi-bom.
The nature of this new nifi-bom module limits the scope to the main branch, targeted for NiFi 2.0.
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[X] Apache NiFi Jira issue created

Pull Request Tracking

[X] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[X] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[X] Pull Request based on current revision of the main branch
[X] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[X] Build completed using mvn clean install -P contrib-check

[X] JDK 21

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

Thanks @exceptionfactory I think this is a good idea, using a separate bom module instead of putting huge numbers of dependency versions in dependency management. This way, others can depend on that instead of having to add nifi as a parent. The cleanup that you did here, eliminating unnecessary versions in pom's and explicitly declaring the otherwise-implicit dependencies is very helpful! +1 merged to main. Thanks!


SelectListOver Content / zIndex

Is there a way to have the SelectList display over content? When the SelectList is closed, the content below it is correctly placed. But when I select the SelectBox, the content below it scrolls down. Is there a way to display to dropdown over content, rather than moving it? I've tried setting the zIndex of the View container, using the style attribute, the dropdownStyles attribute etc. but not luck.
<SelectList
  placeholder="Select a Category"
  setSelected={(val) => setCurrentCategoryId(val)}
  data={gearCategories}
  save="key"
  search={false}
  maxHeight="175"
  dropdownStyles={{ zIndex: 5}}
/>

same issue

Having the same issue, I give the dropdownStyle position absolute, top 100% left 0, Now it's not moving next element to it. Now the issue is it's not visible over the element, I tried zIndex to show it on top. but not working.

Note: Avoid height for parent view which wrap selectList
eg:

to,

Note: Avoid height for parent view which wrap selectList
eg:
<View style={{height:100}}>                <SelectList />             </View>
to,
<View>                <SelectList />        </View>

I'm having the same issue, anyone have a workaround ?

On iOS, wrap SelectList in a view and provide higher zIndex to that view than the other content.


Barbarian with Dragon Instinct deals double Rage damage to targets immune to Critical Hits on crit

This might extend to other rule elements but I observed it on barbarian.
Example to reproduce:
Red dragon barbarian with +4 fire Rage damage critically damages Black Pudding.
The actual applied Rage damage is +8 (doubled due to crit). The immunity to critical hits is ignored here.
The normal Rage deals the expected non-double damage.

@avagdumortesin
There is nothing special about Rage damage, its just doubles on critical hit like regular damage does. So the crit immunity should apply to it as usual.

I've updated to 5.10.5 and something is still incorrect.
Not only is the Rage damage doubled, but the normal weapon damage is doubled as well. That is, immunity to critical damage doesn't work at all


"View as..." page context menu item

It should be possible to force a page to be interpreted in a specific format: plain text, gemtext, Atom XML, or some other supported format, regardless of what the media type or file extension are.
This is useful for example when viewing local files that may not have the expected file extension, when a misbehaving server sends an incorrect media type, to see the plain-text source version of a gemtext page, or to get an untranslated Gopher source.
In practice, this could be an item in the page context menu.
This could also be a solution for #338, allowing access to the original fetched page source.

Version 1.13 makes it possible to toggle between plain text and styled Gemtext views.


typo: enviroment -> environment

Add code fence langages as well

@nschonni : Thanks for your contribution! The author, @MightyPen, has been notified to review your proposed change.

@nschonni Thanks Nick, these are good changes and fixes.  I will Merge this PR 1178 now.
(GeneMi)


feat: add stop Api for AutoOps

This pull request introduces a new feature to stop auto operation rules in the system. The most important changes include the addition of a new method to stop auto operation rules, corresponding error handling, and test cases for the new feature. The changes also include modifications to the proto files to support the new feature and updates to the existing test cases to accommodate the new changes.
Part of https://github.com/bucketeer-io/bucketeer/issues/885.
New feature and error handling:

pkg/autoops/api/api.go: Added a new method StopAutoOpsRule to stop auto operation rules in the system. Also added a new function validateStopAutoOpsRuleRequest to validate the request for stopping auto operation rules.

pkg/autoops/api/error.go: Added a new status statusAutoOpsRuleFinished to handle the case when an auto operation rule is already finished.

pkg/autoops/command/auto_ops_rule.go: Added a new method stop in the autoOpsRuleCommandHandler to handle the stop command for auto operation rules. [1] [2]

pkg/domainevent/domain/message.go: Added a new case proto.Event_AUTOOPS_RULE_STOPPED in the LocalizedMessage function to handle the event when an auto operation rule is stopped.

Test cases:

pkg/autoops/api/api_test.go: Added a new test function TestStopAutoOpsRuleMySQL to test the new StopAutoOpsRule method.

Proto files:

proto/autoops/command.proto: Added a new message StopAutoOpsRuleCommand to represent the command to stop auto operation rules.

proto/autoops/service.proto: Added new messages StopAutoOpsRuleRequest and StopAutoOpsRuleResponse and a new RPC StopAutoOpsRule to support the new feature. [1] [2]

proto/event/domain/event.proto: Added a new event AUTOOPS_RULE_STOPPED and a new message AutoOpsRuleStoppedEvent to represent the event when an auto operation rule is stopped. [1] [2]

Existing test cases:

test/e2e/autoops/auto_ops_test.go: Updated the existing test cases to accommodate the new changes. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Thank you!


Add CodeCov YAML file

The exclusions in the lcov don't seem to filter the files properly.  This explicitly tells CodeCov to ignore paths that shouldn't be tested through a YAML file.

Codecov Report

Merging #4 into master will increase coverage by 41.24%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master       #4       +/-   ##
===========================================
+ Coverage   53.59%   94.83%   +41.24%
===========================================
  Files          24       22        -2
  Lines        6109     1723     -4386
===========================================
- Hits         3274     1634     -1640
+ Misses       2835       89     -2746

Impacted Files
Coverage Δ

single_include/helpme_standalone.h

external/Catch2/single_include/catch.hpp

Continue to review full report at Codecov.

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


Validation error during uploading

import pandas as pd
import notion_df
csv_file_path = "/Users/badwolf/Downloads/output_table_df.csv"
env_vars_path = "env_vars.txt"
table_df = pd.read_csv(csv_file_path)
new_page_id, new_page_url = get_env_vars_from_text_file(env_vars_path)
notion_df.config(api_key='secret_qPKn')
notion_df.upload(table_df,new_page_url, title="Misclassified Intent count")
above is my code for which i am getting this error
pydantic_self.pydantic_validator.validate_python(data, self_instance=pydantic_self)
pydantic_core._pydantic_core.ValidationError: 2 validation errors for NumberConfig
id
Field required [type=missing, input_value={'number': NumberFormat(format='number')}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing
type
Field required [type=missing, input_value={'number': NumberFormat(format='number')}, input_type=dict]
For further information visit https://errors.pydantic.dev/2.4/v/missing
but this was working file on my local, after i deployed i started getting error, i updated the versions also

@lolipopshock kindly guide

pydantic and notion_df Version issue


FEAT: Token usage flag

Feature
Added the feature to include a --token_usage flag option for the user.
This option gives the user the information of how many tokens were used for the prompt and generated completion.
Implementation
The solution I came up with based on the code design is to check for the existence of the token_usage flag.
I do not want the code to check any unnecessary if statements  if the token_usage flag was not used, so I made two separate identical loop logic, with the difference of checking the the existence of usage_metadata inside chunk.
if token_usage:
    for chunk in runnable.stream({"input_text": input_text}):
        print(chunk.content, end="", flush=True)
        answer.append(chunk.content)

        if chunk.usage_metadata:
            completion_tokens = chunk.usage_metadata.get('output_tokens')
            prompt_tokens = chunk.usage_metadata.get('input_tokens')
else:
    for chunk in runnable.stream({"input_text": input_text}):
        print(chunk.content, end="", flush=True)
        answer.append(chunk.content)

Display
At the end of the execution of get_completions() method, a check for the flag token_usage is added, which then displays the token usage details to stderr if the flag was used.
if token_usage:
    logger.error(f"Tokens used for completion: {completion_tokens}")
    logger.error(f"Tokens used for prompt: {prompt_tokens}")

@cleobnvntra  FYI The build failed because on my main.yml is running on test cases and I have to fixed the flask8 linter for test file so it not related to your new feature at all.
BTW. Your code looks perfect thank you for contributed @cleobnvntra


Same URL's shortened into diffrent links

Great & Easy-to-use UI/UX! But when you try to shorten a URL for 2 times (2. time is after refreshing the page) app gives you a different link. I think it might be useful to give same link to same shortened URL such as Youtube links, github repository links etc.. I think it's more efficent.

Hi @snturk ,
First of all i want to thank you for that great feedbacks!
I agree! I think it's more useful and more database friend method :smile:
I will take care about this issue in my first free time :+1:
If everything okey, i will close this issue.


Workbench hover to align and correctly apply delay setting

This PR refactors the usage of the hover service across various components. Instead of directly using the hover service, a new WorkbenchHoverDelegate is created and used. This delegate encapsulates the hover service and provides a consistent interface for components to use. This change simplifies the code and makes it easier to manage hover behavior across the workbench. Compared to the previous implementation, the delay will adapt when the configuration is changed without having to reload.

Adopted it in further cases. I extended it to also be able to enable if the hover should instantly be shown after hovering over another element. Also the consumer can now add options to override the defaults.


Testing

Added test for Game and Author Classes

Status: Approved :100: :heavy_check_mark:
Hi @AhmedNazirMusah,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Kindly check an optional comment I left under the review:
Highlights

All requirements completed
Linters are passing

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


wrong prepare_image call in CPU mode

Hi,
In test.py in CPU mode the call to prepare_image line (178 and 179) returns wrong image shape due to wrong data_format.
To fix just pass the data_format para:
style_image = prepare_image(style_image, True, data_format)
content_image = prepare_image(content_image, True, data_format)

I have followed you but got this error
ValueError: Cannot feed value of shape (2, 3, 380, 600) for Tensor 'Placeholder:0', which has shape '(?, ?, ?, 3)'


[BUG] rancher provisioned rke2 control plane went down when adding a new cluster through rancher

Describe the bug
An rke2 cluster provisioned through rancher had been up for nearly 6 hours. I then provisioned a separate rke1 cluster through rancher, and about at the same time the control plane node of the rke2 cluster went down.
To Reproduce
Steps to reproduce the behavior:

provision a single node-per-role rke2 cluster through rancher using rke2
wait for nodes to become active
provision an rke1 cluster through rancher

Expected behavior
though rancher is reporting the control plane node down, (see screenshot) harvester shows the etcd node has restarted/is in a bad state
Support bundle

supportbundle_f97ef78f-9917-4e2e-bcec-e8cf206e1090_2022-04-07T06-10-02Z.zip
Environment:

Harvester ISO version:  1.0.1-rc2
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): dell poweredge r510

this setup has rancher running on one of the harvester VMs.

We can't reproduce this in the newer version (Rancher 2.6.9 + Harvester v1.1.0). Please reopen if see this again. Thanks.


Npgsql Client Certificates not working on Linux

Issue Title
Npgsql Client Certificates not working on Linux
General
.Net Core version: 2.1 & 2.2
When making a PostgreSQL connection, I need to use a Client Certificate generated by the DBA’s.
The connection works successfully when run on Windows and Mac, but not on Linux. The error in Linux is “connection requires a valid certificate”. Same code & pfx file on all 3 platforms.
I’ve tried it in Ubuntu 14 & 16 and I get the same results.
I will upload the code I used later today.
Thanks,
Bob

I’ve attached a small console app that helps to demonstrate the issue. Runs fine on Windows - fails on Linux.
Here is the log I kept from building the Ubuntu 16.04 image for testing:

Install Base OS + SSH Server + Postgres
Add the secondary NIC so that we can connect with SSH & Postgres
a. Use ifconfig -a to list out all the interfaces
b. Add missing interfaces to /etc/network/interfaces
Postgres Config & SSL Setup
a. su or sign in as the postgres user
b. Server Cert - (see https://www.postgresql.org/docs/9.5/ssl-tcp.html for this example)
i. cd /var/lib/postgresql/{postgres version number}/main
ii. openssl req -new -x509 -days 365 -nodes -text -out server.crt -keyout server.key -subj "/CN=hostname"
iii. chmod og-rwx server.key
iv. openssl req -new -nodes -text -out root.csr -keyout root.key -subj "/CN=root"
v. chmod og-rwx root.key
vi. openssl x509 -req -in root.csr -text -days 3650 -extfile /etc/ssl/openssl.cnf -extensions v3_ca -signkey root.key -out root.crt
vii. openssl req -new -nodes -text -out server.csr -keyout server.key -subj "/CN=ubuntu-16"
viii. openssl x509 -req -in server.csr -text -days 365 -CA root.crt -CAkey root.key -CAcreateserial -out server.crt
c. Server Config - check the following values to insure they are correct:
i. ssl_cert_file
ii. ssl_key_file
iii. ssl_ca_file
iv. ssl_crl_file
v. check the listen_addresses - needs to be '*'
d. Server Listener Config
i. Rem out the "host md5" entry
ii. Add a "hostssl md5 clientcert=1" entry
e. Client Cert
i. cd /var/lib/postgresql/{postgres version number}/main
ii. openssl genrsa -des3 -out /tmp/postgresql.key 1024
iii. openssl rsa -in /tmp/postgresql.key -out /tmp/postgresql.key
iv. openssl req -new -key /tmp/postgresql.key -out /tmp/postgresql.csr -subj '/C=US/ST=Wisconsin/L=De<EMAIL_ADDRESS><EMAIL_ADDRESS>'
v. openssl x509 -req -in /tmp/postgresql.csr -CA root.crt -CAkey root.key -out /tmp/postgresql.crt -CAcreateserial
vi. copy off the key & crt files from /tmp to another location - /tmp gets cleared on reboot
f. Create the Client pfx file from the cert - .Net Core uses certs in PFX format
i. openssl pkcs12 -export -out pg-client-cert-104.pfx -inkey postgresql.key -in postgresql.crt
.Net Core install
a. Check pre-requisites - https://docs.microsoft.com/en-us/dotnet/core/linux-prerequisites?tabs=netcore2x
b. Install per details by distro - https://dotnet.microsoft.com/download/linux-package-manager/rhel/sdk-current
Test DB
a. As the postgres user, run psql with the following commands:
i. CREATE USER simple WITH PASSWORD 'simon';
ii. CREATE DATABASE simple_db;
iii. GRANT ALL PRIVILEGES ON DATABASE simple_db TO simple;
iv. CREATE SCHEMA simple AUTHORIZATION simple;
v. CREATE TABLE simple.simple
(
id bigserial NOT NULL PRIMARY KEY,
name character varying(40) NOT NULL,
notes text
);
vi. INSERT INTO simple.simple (name, notes) VALUES ('test1', 'this is a note');
vii. INSERT INTO simple.simple (name, notes) VALUES ('test2', 'this is another note');
viii. \q to exit
Test App from Windows & Linux

pg-test-console.zip

Hello @rgause, thanks for taking the time to report this issue.
Would you mind sharing the exception your code is throwing?
I suspect this issue is caused by missing configuration for PostgreSQL or for the npgsql library you are using to connect to the database.
I found this link with the same error message and a provided solution. Maybe you have the same issue? Can you see if this helps?
https://stackoverflow.com/questions/18497299/psql-fatal-connection-requires-a-valid-client-certificate

Adding @divega who owns the System.Data area in case this is an actual issue on the .NET side.

Here is the stack trace:
6/20/2019 12:45:21 PM [APP/PROC/WEB/0] at Npgsql.NpgsqlConnector.<>c__DisplayClass161_0.<g__ReadMessageLong|0>d.MoveNext()
6/20/2019 12:45:21 PM [APP/PROC/WEB/0] Npgsql.PostgresException (0x80004005): 28000: connection requires a valid client certificate
6/20/2019 12:45:21 PM [APP/PROC/WEB/0] Connection id "0HLNLKPS5O2BT", Request id "0HLNLKPS5O2BT:00000001": An unhandled exception was thrown by the application.
6/20/2019 12:45:21 PM [APP/PROC/WEB/0] [41m[30mfail[39m[22m[49m: Microsoft.AspNetCore.Server.Kestrel[13]

The stackoverflow link references an issue with psql - psql actually works fine, as does a Java app hitting the same database from all 3 platforms.
Again, the code attached runs fine on Windows & Mac, but fails on Linux. Exact same code, exact same config.
My guess is that it is either a bug, or that it was not implemented on Linux.

cc @roji who is the Npgsql lead. Shay, does this ring any bells?

Hmm, not really... Npgsql doesn't actually do much here - it simply passes the user-provided delegate to SslStream.AuthenticateAsClient(), the code can be seen here.
If this exact same code does work against the same database when running on Windows/MacOS, and only fails on Linux, then there's a chance we have an issue... I can try to repro sometime next week but won't have much added value beyond the PostgreSQL setup steps.

Just had a successful run on OpenSuse Tumbleweed.
I’m going to try several others and see what I get - I thinking Ubuntu 18, then CentOS.
Ubuntu 16 is the latest I have available in the problem environment, but thinking 18 is coming down the road. I know we have some Red Hat, too, so trying Cent to get an idea on that.....

Thanks for testing and for the updates @rgause, please keep this issue up to date with your findings!

Sorry, OpenSuse Tumbleweed did not work. I had had issues with its local firewall and had added a line in pg_hba.conf to help with debugging that. Once I removed that line, the Linux run failed while the Windows run succeeded.
I also finished testing Ubuntu 18 today - it also fails on the Linux run.
CentOS 7 image build is in progress......

Post back on the CentOS situation, but the tendancy seems clear :) I'll try to make time to repro this myself and investigate.

CentOS also has a similar failure. Only difference was that CentOS7 could not seem to install lttng-ust. It only seems to be for user space tracing & I've had similar results with or without that lib on other distros, so I kept going.
Stacktrace is similar:
[rgause@centos-7 pg-test-console]$ dotnet run
Unhandled Exception: Npgsql.PostgresException: 28000: connection requires a valid client certificate
at Npgsql.NpgsqlConnector.<>c__DisplayClass161_0.<g__ReadMessageLong|0>d.MoveNext() in C:\projects\npgsql\src\Npgsql\NpgsqlConnector.cs:line 1003

Npgsql is third party, we don't own it. @rgause please share a small repro that does not go through a 3rd party library.
cc @roji

@roji if you think this issue is on our side, please reopen it. Otherwise, a bug should be opened for npgsql.


[IMPROVEMENT] Adding exclamations on the result page

Suggested improvement :
If the user scored more than 50% marks exclamations should be added below the result to motivate the user .
Outcome of this improvement :
Adding exclamations like Hurray , Bravo , etc  on a result page can help convey a sense of excitement, enthusiasm, or positivity. They can be used to engage the reader, create a more dynamic tone, and enhance the overall user experience
This improvement can be added using HTML and CSS .

Do we need to create a new page of Result or add a gif
or do we need to update the result heading

to something  like Hurray , Bravo , etc

Do we need to create a new page of Result or add a gif
or do we need to update the result heading  to something like Hurray , Bravo , etc

update the result heading

please assign me this on behalf of GSSoC23


Bridge.cast() should support casting of plain JavaScript objects to Bridge objects to support AJAX JSON API.

Expected

No run-time error.
obj contains property Id instead of id

I see two issues with this sample:

Dynamic objects should respect preserveMemberCase configuration property. Sorry to report this together with the other issue but is minor for me and a found it while reproducing the other.
First of all: I used dynamic object to demonstrate the issue but the actual problem I have is when I receive some data from AJAX JSON API using jQuery in JavaScript code and using the dynamic is just a way how to create plain JavaScript object. Now the issue: Does Bridge.cast() method support plain JavaScript object casting? If not it is an issue together with the new long support in 1.12 because if you use [ObjectLiteral] for Foo's declaration, you end up with issue that you cannot (for example) compare value of long attribute of Foo class with value of long attribute of Bar class when commented out code in the demo is active.

BTW Is there an option to disable new long support?
Actual
bridge.js:356 Uncaught Unable to cast type Object to type Foo

Main: function () {
  var obj = { id: 1 };
  var foo = Bridge.cast(obj, Foo);
}

Steps To Reproduce
public class App {

  //[ObjectLiteral]
  public class Foo {

    //[Name("Id")]
    public long Id;
  }

  public class Bar {

    public long Id;
  }

  public static void Main() {
      var obj = new { Id = 1 };
      var foo = obj.Cast<Foo>();
  }
}

{
    "outputBy": "Project",
    "fileNameCasing": "CamelCase",
    "autoPropertyToField": false,
    "preserveMemberCase": true
}

About "preserveMemberCase", i do not recommend to use that option. We can remove support of that option
https://github.com/bridgedotnet/Bridge/issues/819#issuecomment-181498703
About Cast, if you want just interprete variable as different type then use "As" method
obj.As<Foo>(). It is only interpriting in C#. Javascript object will not be changed/updated, so you should use As only if ensure that object is valid for that type. For example, your obj has Id Int32 field. If you call obj.As<Foo>() then Id will not changed and will be Int32 still but Foo.Id should be long. So, can be errors in Javascript
I am ot sure that I correctly understood your note about comparing Foo.Id and Bar.Id
Here is live sample and it works fine
http://live.bridge.net/#d4afcf1db2f8a228e1efaaaea78ea5db

BTW Is there an option to disable new long support?
No, why do you use long if no need that functionality?

I know, I'm just asking if it woudn't be better if Bridge.Cast() would try to make a deep copy of a passed plain JavaScript object to target class instance while converting number fields to Bridge.Long fields if defined so in the target class? If I use Bridge.As() on object with long field then the following produces run time error: http://live.bridge.net/#5831a2cc9eb5c3ec3cb8e4da5bc0ccfa because foo is still plain JavaScript object without Bridge.Long field. The same code worked in 1.11 without the long support. That's why disabling long support would be another solution to the problem. Now I have to implement deep copy constructors for every received API object which converts plain JavaScript object to Bridge.define() generated object (which is lot of work) or implement such automatic conversion of plain JavaScript objects to Bridge objects in JavaScript code.

The long type in Bridge 1.11 had the inconsistent and erratic behavior. You are lucky that it somehow worked for you:) Though, it was a time bomb.
I'd like to clarify on the .As<> feature. It cannot and is not meant to covert a plain new { Id = 1 } object to a Foo class instance.
A helper utility method to parse a Foo class instance from a plain object can be a solution:
Full Live Sample
public class Foo
{
    public long Id;

    public static Foo Parse(object obj)
    {
        var f = new Foo();
        var idObj = obj["Id"];

        if (idObj != null && idObj is int)
        {
            f.Id = idObj.As<int>();
        }

        idObj = obj["id"];

        if (idObj != null && idObj is int)
        {
            f.Id = idObj.As<int>();
        }

        return f;
    }
}

The preserveMemberCase config is being removed in Bridge 16.0.
Please see Issues #2476 and #2477 for further details.


Add the package util-linux to the base image

Sometimes it is necessary to override the command of a stacklet with a custom script, or it is convenient to use the Stackable image for a custom Job. This is easier if more "standard" tools are installed, e.g. the util-linux package.
In a concrete case, a customer wanted a side-car container in the OPA pod which forwards the decision logs to a SIEM tool via syslog. A proper solution would be to configure the Vector aggregator accordingly, but on the one hand, the extra step with the aggregator was not desired, and on the other hand, Vector does not yet support syslog sinks (vectordev/vector#6863). So the implemented solution was to use the logger command to forward these logs. Unfortunately, this command is not available in the OPA image because the util-linux package is not installed. Therefore, a custom image had to be built.
Suggested change:
RUN microdnf install \
    # util-linux contains the command logger which allows to enter messages into the system log.
    # cpe:2.3:a:kernel:util-linux:*:*:*:*:*:*:*:*
    # https://nvd.nist.gov/vuln/search/results?isCpeNameSearch=true&query=cpe%3A2.3%3Aa%3Akernel%3Autil-linux%3A*%3A*%3A*%3A*%3A*%3A*%3A*%3A
    util-linux

util-linux contains su and a few other binaries that I'd prefer not to include.
If this is only about the logger command we can at least narrow this down to the util-linux-core package I believe.
And could you please explain to me the exact chain of how logs have been moved? I don't fully understand it yet.

If this is only about the logger command we can at least narrow this down to the util-linux-core package I believe.

util-linux-core would be sufficient.

And could you please explain to me the exact chain of how logs have been moved? I don't fully understand it yet.

The logs of OPA are written as JSON into the log volume at /stackable/log/opa/current. The log entries which contain the property logger: decision should be forwarded to a SIEM solution, in this case Logpoint. Logpoint uses a syslog connector to collect the logs. So the logs must be read from the log file, filtered and sent via syslog. This is achieved by creating a sidecar container to the OPA pod which reads the logs, filters them and sends them with the logger command:
---
apiVersion: opa.stackable.tech/v1alpha1
kind: OpaCluster
spec:
  servers:
    podOverrides:
      spec:
        containers:
          - name: syslog
            image: <image containing the logger command>
            command:
              - /bin/sh
              - -c
            args:
              - >-
                tail
                --follow=name
                --retry
                /stackable/log/opa/current
                | grep '"logger"\s*:\s*"decision"'
                | logger
                --udp
                --server syslog-udp.siem.svc.cluster.local
                --port 5410
                --size 4096
                --priority authpriv.info
                --rfc5424
            volumeMounts:
              - mountPath: /stackable/log
                name: log

Actually, the OPA image was used for the sidecar container. This worked until we started to remove packages from all images to reduce the number of CVEs. This made the images more secure but also made it more uncomfortable to customize the deployment. With re-adding util-linux or util-linux-core to the image, I hope to get a little bit of comfort back.

I'm a bit hesistant to add it to our base image because it still contains pretty low level tools but for the tools image I'm fine with it. Thanks for checking/asking.


Register observer on NSWorkspace notificationCenter.

According to Apple's document about didLaunchApplicationNotification, the NSWorkspace notifications can only be received when use NSWorkspace notificationCenter to register for it.

Hey thanks for the info. I thought NotificationCenter.default was part of the NSWorkspace by default?
Does the app not update with the old code and why does this change need not be applied to the other conditions changing?

I didn't use the App Store version, but compile the source code myself. Just found the newApplicationLaunched method not called. And I try to use the NSWorkspace notificationCenter, it works fine.
BTW, the localization of InfoPlist seems wrong. The picture below expect the app's name, not the translation of 'Bundle Display Name'.

Yeah that was an issue I had with the localization script I wrote. The really should have been more careful with that. I should have some time this afternoon to look at this and so I will try and fix these issues

@LZhenHong Thank you so much for this change.


Command+Q does not work

VSCode Version: Code 1.11.1 (d9484d12b38879b7f4cdd1150efeb2fd2c1fbf39, 2017-04-06T14:00:34.044Z)
OS Version: Darwin x64 16.5.0
Extensions: the listing exceeds the lower minimum of browsers' URL characters limit

Steps to Reproduce:

Open Visual studio code
Press Command + Q
Visual studio code does not close

Which keyboard layout are you using?

@pvmhoang Please let us know what your keyboard layout is.

I am sorry for late, please refer to attachment file. Thank you

I have just tried using the US International - PC keyboard layout on both an ANSI and an ISO physical keyboard and cmd+q quits VS Code for me.

1. What does VS Code detect when you press the desired key combination? Please hover over the input box and take a screenshot:

2. Which commands are bound to the desired key combination?

We've had reports of the Live HTML Previewer extension overwriting cmd+q - https://github.com/Microsoft/vscode/issues/26195#issuecomment-300720089
So that might have been the root cause here.
Closing after a number of days without a response.


issue with spec.forProvider.addonsConfig.networkPolicyConfig when using provider-gcp

Environment:

Cluster version: 1.20.9-gke.1001
Using gcloud binary in Google Cloud Shell.
Crossplane version 1.4.1.
Crossplane provider-gcp version 0.18.0.

Description of problem:

Create a nodepool + GKE cluster using the following YAML manifests:

apiVersion: container.gcp.crossplane.io/v1beta2
kind: Cluster
metadata:
  name: gke-crossplane-cluster4
spec:
  providerConfigRef:
    name: default
  forProvider:
    networkConfig:
      enableIntraNodeVisibility: true
    loggingService: logging.googleapis.com/kubernetes
    monitoringService: monitoring.googleapis.com/kubernetes
    network: "xxxxxxxxx"
    subnetwork: "xxxxxxxx"
    addonsConfig:
      gcePersistentDiskCsiDriverConfig:
        enabled: true
      dnsCacheConfig:
        enabled: false
      horizontalPodAutoscaling:
        disabled: true
      httpLoadBalancing:
        disabled: false
      networkPolicyConfig:
        disabled: false
    location: asia-southeast1
    binaryAuthorization:
      enabled: false
    legacyAbac:
      enabled: false
    masterAuth:
      clientCertificateConfig:
        issueClientCertificate: false
---
apiVersion: container.gcp.crossplane.io/v1beta1
kind: NodePool
metadata:
  name: gke-crossplane-nodepool4
spec:
  providerConfigRef:
    name: default
  forProvider:
    autoscaling:
      autoprovisioned: false
      enabled: true
      maxNodeCount: 2
      minNodeCount: 1
    clusterRef:
      name: gke-crossplane-cluster4
    config:
      diskSizeGb: 100
      diskType: pd-standard
      imageType: cos_containerd
      labels:
        test-label: crossplane-created
      machineType: e2-medium
      oauthScopes:
        - "https://www.googleapis.com/auth/devstorage.read_only"
        - "https://www.googleapis.com/auth/logging.write"
        - "https://www.googleapis.com/auth/monitoring"
        - "https://www.googleapis.com/auth/servicecontrol"
        - "https://www.googleapis.com/auth/service.management.readonly"
        - "https://www.googleapis.com/auth/trace.append"
    initialNodeCount: 2
    locations:
      - xxxxxxxxxx
    management:
      autoRepair: true
      autoUpgrade: true

Cluster and nodepool creation are successful. However, cluster status is stuck at "RECONCILING" for a very long time (did not test how long, I let it stay this way for > 30minutes before I abandoned the test).

If I modify the cluster manifest and change spec.forProvider.addonsConfig.networkPolicyConfig.disabled = true, and recreate the cluster + nodepool, the problem goes away. Cluster becomes normal after approximately 6-7minutes.

Next, I tried creating the cluster with spec.forProvider.addonsConfig.networkPolicyConfig.disabled = true and wait till the cluster is healthy.

I then manually tried to enable networkPolicyConfig via:
gcloud container clusters update gke-crossplane-cluster4 --update-addons=NetworkPolicy=ENABLED --zone xxxxxx
as per instructions at https://cloud.google.com/kubernetes-engine/docs/how-to/network-policy

the command did not return for a very long time, and I hit ctrl-c.

Upon running kubectl describe cluster gke-crossplane-cluster4, I noticed the problem returns. The cluster is once again in a constant state of being reconciled.

It appears as though GCP is accepting networkPolicyConfig being enabled and this is causing the cluster to be stuck in a constant state of being reconciled. Is this a provider-gcp issue or a GCP issue?

@jesumyip thanks a lot for reporting and the detailed steps!
Since it is also happening with gcloud cli I would suspect this to be GCP issue. I am wondering if this is specific to a k8s version?

Repeated the test with spec.forProvider.initialCluster = 1.18, and spec.forProvider.addonsConfig.networkPolicyConfig.disabled = true
apiVersion: container.gcp.crossplane.io/v1beta2
kind: Cluster
metadata:
  name: gke-crossplane-cluster4
spec:
  providerConfigRef:
    name: default
  forProvider:
    initialClusterVersion: "1.18"
    networkConfig:
      enableIntraNodeVisibility: true
    loggingService: logging.googleapis.com/kubernetes
    monitoringService: monitoring.googleapis.com/kubernetes
    network: "xxxxxxxxxxxx"
    subnetwork: "xxxxxxxxxxxxxx"
    addonsConfig:
      gcePersistentDiskCsiDriverConfig:
        enabled: true
      dnsCacheConfig:
        enabled: false
      horizontalPodAutoscaling:
        disabled: true
      httpLoadBalancing:
        disabled: false
      networkPolicyConfig:
        disabled: true
    location: xxxxxxxx
    binaryAuthorization:
      enabled: false
    legacyAbac:
      enabled: false
    masterAuth:
      clientCertificateConfig:
        issueClientCertificate: false

Cluster becomes normal after about 6minutes:

Then, execute gcloud container clusters update gke-crossplane-cluster4 --update-addons=NetworkPolicy=ENABLED --zone xxxxxxx and left this running for 9 minutes. It never returned.

At this point, cluster is stuck in "RECONCILING" state. Also, I cannot enable network policy on the nodes because you first have to enable it on the cluster.

In conclusion, v1.20 and 1.18 of K8s = same result.

Enabling the network policy using GCP's web GUI also produces the same result.


A single ParameterExpression can be used multiple times within an expression tree

Object.ReferenceEquals returns true when comparing both ParameterExpression objects that refer to the same parameter.
We were originally using an Dictionary<object, (int start, int length)> to hold the span corresponding to the Expression or other part of the expression tree. ParameterExpression instances will only exist in the dictionary once, even though they may be used multiple times in the expression tree; the ParameterExpression would return the same (start, length) anywhere it was used in the expression tree.
The current workaround is to using a Dictionary<object, List<(int start, int length)>; only for ParameterExpression is there more than one item in the list. And we're figuring out which (start, length) is the right one, by passing in the parent (start, length) and finding the (start, length) that fall's within the parent's (start, length).
But this falls down if the same ParameterExpression is set as two of the direct children of the node.
A solution to this would be to define the order of properties traversed in the formatter for a given node, and to follow that order when generating the visualizer data; thus we could know "this is the first instance of ParameterExpression as a child of the current node; this is the second` and match them up to the appropriate properties. (I prefer this because it means we're using a simpler data structure.)
Some other possible solutions:

The key of the dictionary should be the path to the expression, instead of the expression itself -- Body.Call.Argument1. This assumes the formatter is walking the expression tree just like the visualizer data generation is; probably a valid assumption, but we'd have to verify it.
The List<(start, length)> should become a Dictionary<string, (start, length)>, and instead of passing the parent (start, length), we could pass in the parent's property which is the path to the current node -- Dictionary<string, (start, length)>.

Having a fixed traversal order of child properties would also mean that child properties are displayed in an appropriate order, instead of alphabetically by name.
For instance, the natural order of properties of BlockExpression would be Variables, then Expressions, then Result; but currently it is displayed in alphabetical order.

This logic works for the visualizer, but it should really be a part of the formatter itself.


[Debian 13 trixie/sid] libtool required to build libxml2

john@crunchbox:/ahgamut/superconfigure$ make o/lib/libxml2/built.fat

You must have libtool installed to compile libxml.
Download the appropriate package for your distribution,
or see http://www.gnu.org/software/libtool
make: *** [config/common.mk:91: o/lib/libxml2/configured.x86_64] Error 1

###

john@crunchbox:/ahgamut/superconfigure$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Ran into this trying to build emacs on Debian 13, apt install libtool fixes this. (just a script that's needed by libxml2's build process)
I know it's a pretty simple thing, but wanted to make note of it here incase anyone else runs into it. Was difficult tracking this down purely from the output of make o/editor/emacs/built.fat

Yeah tracking down errors can be improved -- I usually retry with make -j1.


test: wait for media fetch requests to finish

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR type

[x] Bugfix
[ ] Feature
[ ] Refactoring

What's new?

[x] PR closes #3812
[ ] Requires deployment <rubick/magick_issue>
[x] use intercept/wait pattern to wait for fetch requests to finish

Before submitting Pull Request, please make sure:

[ ] My contribution builds clean without any errors or warnings
[ ] I've merged recent default branch -- main and I've no conflicts
[ ] I've tried to respect high code quality standards
[ ] I've didn't break any original functionality
[ ] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[ ] I've tested PR on mobile and everything seems works
[ ] I found edge cases
[ ] I've written some unit tests 🧪

Had issue bounty label?

[x] Fill up your KSM address: Payout

Community participation

[ ] Are you at KodaDot Discord?

Screenshot

[ ] My fix has changed something on UI; a screenshot is best to understand changes for others.

still be flakin' 😭

Seems that the test still timed out

pay 50

😍 Perfect, I’ve sent the payout
💵 $50 @ 48.68 USD/KSM ~ 1.027 $KSM
🧗 EqdyzrzVmeHwMdMwvPeCMnNdbuQDbD3YrjY93xq9Ln3jUGW
🔗 0xb03d1405159fe345104e9ebd78279d910a7b0d3644f08aeba87e3d975ec59288
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


[FSDE-17383] Backstop visual tests for carousel component

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

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

@jllr I have updated this with newly approved images. The pipleine is still getting failed. Can you let me know the reason of the failure?

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

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

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

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

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

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

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


download data problem

Hello, when I download data with the script download_alphafold.sh,  files are 404 NOT FOUND
and the script download_cath.sh, md5sum: cath/cath-dataset-nonredundant-S40.pdb.tgz: no properly formatted MD5 checksum lines found
Coud you please fix it? Thanks.

The issue with the CATH download script has been fixed in https://github.com/microsoft/foldingdiff/commit/658de68a49979cb21a627ab3bb440f467a824661 - the error did not affect actual file download.
We do not support alphafold dataset or its download at this time. The script is simply there as a leftover file from initial development.


Kuromoji on Android

Hello and thank you for your library.
I tried to use Kuromoji on Android (actually it's a bit overkill for me, I only try to convert Japanese text to romaji for pronounciation).
I encountered this error:
java.lang.IllegalArgumentException: capacity < 0: -4
  at java.nio.ByteBuffer.allocate(ByteBuffer.java:54)
  at com.atilika.kuromoji.io.IntegerArrayIO.readArray(IntegerArrayIO.java:38)
  at com.atilika.kuromoji.buffer.WordIdMap.<init>(WordIdMap.java:35)
  at com.atilika.kuromoji.dict.TokenInfoDictionary.setup(TokenInfoDictionary.java:168)
  at com.atilika.kuromoji.dict.TokenInfoDictionary.newInstance(TokenInfoDictionary.java:160)
  at com.atilika.kuromoji.ipadic.Tokenizer$Builder.loadDictionaries(Tokenizer.java:219)

I guessed I hit a memory limit and this is not the library I'm looking for.
Can you confirm? And do you have a better idea to extract romaji from japanese text?
Thanks a lot.

On 01/02/2016 12:45 AM, Benjamin Gamard wrote:

Hello and thank you for your library
I tried to use Kuromoji on Android (actually it's a bit overkill for
me, I only try to convert Japanese text to romaji for pronounciation)

I'm using the JapaneseTokenizer from Lucene 4.7.2 (the last lucene
release that is usable on android because starting from lucene 4.8, they
started using try with resources). It comes from an earlier version of
Kuromoji and works just fine (it's awesome actually).
It's usefull for japanese text to romaji (I'm using it in the Tenjin
Dictionary), but also for glossing, grammar parsing, etc...(really awesome)
You'll need around 10/16 Mb of Mmaped bytebuffer (-> native memory
doesn't count for your app limit) to use it...

I encountered this error:
|javalangIllegalArgumentException: capacity < 0: -4 at
javanioByteBufferallocate(ByteBufferjava:54) at
comatilikakuromojiioIntegerArrayIOreadArray(IntegerArrayIOjava:38) at
comatilikakuromojibufferWordIdMap(WordIdMapjava:35) at
comatilikakuromojidictTokenInfoDictionarysetup(TokenInfoDictionaryjava:168)
at
comatilikakuromojidictTokenInfoDictionarynewInstance(TokenInfoDictionaryjava:160)
at
comatilikakuromojiipadicTokenizer$BuilderloadDictionaries(Tokenizerjava:219)
|
I guessed I hit a memory limit and this is not the library I'm looking for
Can you confirm? And do you have a better idea to extract romaji from
japanese text?

If your text has kanji, Kuromoji is your best tool for the job
If your text only has kana, you can write a simple class that converts
kana to romaji

Thanks a lot
—
Reply to this email directly or view it on GitHub
https://github.com/atilika/kuromoji/issues/96.

Great answer, thanks a lot! I will try using the Lucene package.
I'm closing this non-issue.

Hello, I got the same problem here on Android.

java.lang.IllegalArgumentException: capacity < 0: -4

Using JapaneseTokenizer from Lucene 4.7.2 is workaround, not a fix.
I guess the library can't load the library (probably because of the try with resources as mentioned above?).
Does anyone has a solution or a fix?

I was using the JapaneseTokenizer on Android GingerBread (that was severely limited by memory).
The way I got it to work was :

use ipadic (it's the most compact dictionary for Kuromoji)
load the ConnectionCost matrix and the TokenInfo data through mmap and a direct Byte Buffer (native memory doesn't count, not an allocating byteBuffer)
modify the JapaneseTokenizer classes (with custom IntSlice) so they work with a ByteBuffer instead of loading resource files
you have to provide the byteBuffers to the singletons before you use them

dict.zip
Here are some of my modifications (based on Lucene 4.7.0)
I use this (in Kotlin, not java, java sucks) like this
fun ZipsFolder.buildDictionaries3() {
val readOnlyZipEntry = readOnlyZipEntry(TOKEN_INFO_BUFFER)?: throw Exception("missing File $TOKEN_INFO_BUFFER")
val readOnlyZipEntryB = readOnlyZipEntry(TOKEN_INFO_FST)?: throw Exception("missing File $TOKEN_INFO_FST")
val byteBuffer = (readOnlyZipEntry.zipFile.inputStream() as FileInputStream).channel.use {
    it.map(FileChannel.MapMode.READ_ONLY, readOnlyZipEntry.offset, readOnlyZipEntry.mUncompressedLength)
}

GZIPInputStream(readOnlyZipEntryB.zipFile.inputStream().apply{skip(readOnlyZipEntryB.offset)}).use {
    TokenInfoDictionary.build(it, readOnlyZipEntry.extra, byteBuffer)
}
UnknownDictionary.build(null as InputStream?)

}
fun ZipsFolder.buildConnectionCosts3() {
val readOnlyZipEntry = readOnlyZipEntry(CONNECTION_COSTS)?: throw Exception("missing File $CONNECTION_COSTS")
val byteBuffer = (readOnlyZipEntry.zipFile.inputStream() as FileInputStream).channel.use {
    it.map(FileChannel.MapMode.READ_ONLY, readOnlyZipEntry.offset, readOnlyZipEntry.mUncompressedLength)
}
SpartanConnectionCosts.build(readOnlyZipEntry.extra, byteBuffer)

}
You'll probably have to adapt my code a bit

Thank you for your help!
You should release on GitHub an example of project that makes JapaneseTokenizer working on Android! I'm sure it would be helpful for a lot of people!

On 02/10/2016 10:11 AM, Jonathan Odul wrote:

Thank you for your help!
You should release on GitHub an example of project that makes
JapaneseTokenizer working on Android! I'm sure it would be helpful for
a lot of people!

sure, but I don't have the time to do that. This was the best I could do

—
Reply to this email directly or view it on GitHub
https://github.com/atilika/kuromoji/issues/96#issuecomment-182267283.

I had the same problem as the OP, and found another workaround.
The reason why the capacity argument is <0, is because WordIdMap uses IntegerArrayIO#readArray, which reads the capacity from the data stream (see IntegerArrayIO.java#L36).
Digging deeper, WordIdMap calls readArray twice on the same stream, and it turns out that  during the first call, the part
ByteBuffer tmpBuffer = ByteBuffer.allocate(length * INT_BYTES);
ReadableByteChannel channel = Channels.newChannel(dataInput);
channel.read(tmpBuffer);

in readArray reads less than length * INT_BYTES bytes from the stream. On the second call, the capacity is therefore read from the wrong location, and the capacity arbitrarily becomes -1.
Going even further, the instance I get as a Channel is a InputStreamChannel, which uses
    byte[] buffer = new byte [dst.remaining()];
    int readBytes = in.read (buffer);

to read from the stream. According to the Java doc, read may read less then the whole array's length of bytes. So instead of using a Channel, I directly filled a byte array using readFully on the DataInputStream, which fixed the problem.
See commitc496e0 in my fork.

@sdcr Thank you for the fix, works like a charm.

So what can we do to solve this problem?


Banjos are better with butter

11 new emojis
🪕🧈🙀📠🪢📟📜🧑🎤🏋♂🌞🔓

I approve of this alliterative PR title ✅


Updated to 4.22

changed Possess to OnPossess in agent controller classes
fixed task default values initialization order

Needs to be tested before merging


Menu Entry Swapper - Teleport Item Skull Sceptre(i) request

I just enabled my Menu Entry Swapper and I still can't believe this is not bannable!
Problem description
The only thing that is not satisfying is that the Skull Sceptre(i) does not have his options switched. Maybe it is because the teleport option is called "Invoke". Probably the unimbued version has the same problem.
Solution: Add the Menu Entry Swapper support for the Skull Sceptre(i) (and unimbued version).

Use Shift click configuration

[QUESTION] What is the decision making process for how developers decide which teleport items whether receive toggle versus using shift click configuration?

In the past the way the configuration menu worked & the way the swapper worked meant adding more things to it became sort of troublesome. Now it is less of a problem so we can probably revisit stuff like this.

Should this issue be re-opened, or should I raise a new issue?

I can reopen it.

ill fix this in a few hours

sorry for sniping, was already looking @Mrnice98

I'm glad to see this getting solved. Tyvm!
Now I gotta learn to click it without shift pressed xD


Use core 2.25.0-rc0 [WIP]

This PR is not ready for review.
Please do not review it.

Abandoned; #2813 has been merged to main


Toggle comparison style

It appears the the comparison tool is based on git log ref1...ref2. It would be nice to toggle between ref1...ref2 and ref1..ref2.

@jshall Any thoughts on where/how to toggle that? Like a menu option similar to Follow Renames? A config setting? Something else?

Also how would you best explain the difference in the title of a menu choice?

This was addressed in v9.8.0 -- see the gitlens.advanced.useSymmetricDifferenceNotation setting


Handover report. Update with latest working preferences

We have enabled SETs to view working preferences answers in the application view.
The handover report now needs updating to correctly present the new working preferences answers.

[ ] Update handover report on screen (if needed?)
[ ] Update handover report download

Hey team! Please add your planning poker estimate with Zenhub @drieJAC @HalcyonJAC @tomlovesgithub

@warrensearle Deleting this ticket as the handover report is changing and I have added a line to the new deployment report to pick up these changes there.


Add ElasticSearchPrefix for Staging / Production Cluster

Description
Set  ELASTIC_SEARCH_PREFIX: miru_production
In ConfigMap for Miru Production / Staging Accordingly

ConfigMap means add this as env variable, right?


HOL 4 Exercise 5

In the DevCamp HOL 4 Exercise 5-Step 7 onwards, the GitHub documentation and the actual VisualStudio process is different.

Would it be possible for you to provide current screenshots of all steps in the new design here so that we can update the content quickly?

The VSTS team is moving very fast, especially with UI changes. We are trying to keep up.

The HOL has been updated.


Draft CONTRIBUTING.md

Add Introduction, Our Standards, and Attribution to CONTRIBUTING.md

Issue #5

Hey @htjjen, could you make this small change? Thanks again!

Thank you for reviewing it! I've made the change and submit a new PR.

Looks good, merging!

Thank you for the opportunity!


Issue with content pushed by IncludeProcessor with version 2.4.2

When I have have tried to migrate to version 2.4.2 of asciidoctorj, I am experiencing following issue.$
The issue does not occur with version 2.4.1.
I am using a custom IncludeProcessor called dynamic-include, but I have simplified the problem:
Given this LoremIncludeProcessor that just push some content to replace include::lorem[] :
import java.util.Map;

import org.asciidoctor.ast.Document;
import org.asciidoctor.extension.IncludeProcessor;
import org.asciidoctor.extension.PreprocessorReader;

public class LoremIncludeProcessor extends IncludeProcessor {
    private static final String LOREM = "lorem";

    public LoremIncludeProcessor() {
        super();
    }

    public LoremIncludeProcessor(Map<String, Object> config) {
        super(config);
    }

    @Override
    public boolean handles(String target) {
        return LOREM.equals(target);
    }

    @Override
    public void process(Document document, PreprocessorReader reader, String target, Map<String, Object> attributes) {

        String data2 = "\n"
                + "== Elit ullamcorper\n"
                + "\n"
                + "Dignissim cras tincidunt lobortis feugiat vivamus.\n"
                + "Dui accumsan sit amet nulla facilisi.\n"
                + "\n"
                + "\n";
        reader.push_include(data2, "file2.txt", "some/path/file2.txt", 0, attributes);

        String data1 = "\n"
                + "== Lorem ipsum dolor sit amet\n"
                + "\n"
                + "consectetur adipiscing elit\n"
                + "\n"
                + "* sed do eiusmod \n"
                + "* tempor incididunt \n"
                + "* labore et dolore\n"
                + "\n"
                + "\n";
        reader.push_include(data1, "file1.txt", "some/path/file1.txt", 0, attributes);

    }
}

I expect this asciidoctor source:
This is a test.
include::lorem[]

To be transformed to:

This is a test.

Lorem ipsum dolor sit amet

consectetur adipiscing elit

sed do eiusmod

tempor incididunt

labore et dolore

Elit ullamcorper

Dignissim cras tincidunt lobortis feugiat vivamus.

Dui accumsan sit amet nulla facilisi.

The diff:

As you can see the titles are not processed.
The source code to run the test:
import static org.junit.jupiter.api.Assertions.assertEquals;

import java.util.HashMap;

import org.asciidoctor.Asciidoctor;
import org.asciidoctor.Asciidoctor.Factory;
import org.asciidoctor.AttributesBuilder;
import org.asciidoctor.OptionsBuilder;
import org.asciidoctor.SafeMode;
import org.asciidoctor.extension.JavaExtensionRegistry;
import org.junit.jupiter.api.Test;

public class SomeTest {
    @Test
    public void test() {
        Asciidoctor asciidoctor = Factory.create();

        JavaExtensionRegistry javaExtensionRegistry = asciidoctor.javaExtensionRegistry();
        javaExtensionRegistry.includeProcessor(new LoremIncludeProcessor(new HashMap<>()));

        AttributesBuilder attributesBuilder = AttributesBuilder.attributes()
                .setAnchors(false)
                .sectionNumbers(false)
                .attribute("nofooter", true);

        OptionsBuilder optionsBuilder = OptionsBuilder.options()
                .attributes(attributesBuilder)
                .docType("book")
                .safe(SafeMode.UNSAFE);

        String adoc = "This is a test.\n"
                + "include::lorem[]\n"
                + "\n";
        String html = asciidoctor.convert(adoc, optionsBuilder);

        String expected = "
\n"
                + "
\n"
                + "
\n"
                + "
This is a test.
\n"
                + "
\n"
                + "
\n"
                + "
\n"
                + "
\n"
                + "
Lorem ipsum dolor sit amet
\n"
                + "
\n"
                + "
\n"
                + "
consectetur adipiscing elit
\n"
                + "
\n"
                + "
\n"
                + "
\n"
                + "
\n"
                + "
sed do eiusmod
\n"
                + "
\n"
                + "
\n"
                + "
tempor incididunt
\n"
                + "
\n"
                + "
\n"
                + "
labore et dolore
\n"
                + "
\n"
                + "
\n"
                + "
\n"
                + "
\n"
                + "
\n"
                + "
\n"
                + "
Elit ullamcorper
\n"
                + "
\n"
                + "
\n"
                + "
Dignissim cras tincidunt lobortis feugiat vivamus.\n"
                + "Dui accumsan sit amet nulla facilisi.
\n"
                + "
\n"
                + "
\n"
                + "
";
        assertEquals(expected, html);

    }
}

This could be due to a change in Asciidoctor 2.0.12, but I'm having difficulty seeing what that change is.
As a side note, why is the method named push_include instead of pushInclude?

Aha. I think I know what it is. When you push an include, it removes leading and trailing blank lines. A quick fix is to use a comment line to force the two blocks apart.
I'll see if I can think of a better approach.

Another approach to disable this behavior is to change the file extension on the name of the file you are pushing (2 and 3 arguments) to something other than an AsciiDoc file extension. .txt is an AsciiDoc file extension (according to the parser), so use something like .text.

Thank you a lot for this feedback, I will try the workaround with the comment you have suggested.

change the file extension on the name of the file you are pushing (2nd and 3rd arguments) to something other than an AsciiDoc file extension

For my dynamic include macro this is not an option, because I collect all the files bases on a globbing expression (folder/*.adoc).
Side note: I just looked at my readme and I am surprise to see it empty. I thought I wrote some explanations.
The main idea is that instead of:
= My book

include::content/chapter01.adoc[]

include::content/chapter02.adoc[]

include::content/chapter03.adoc[]

You can do:
= My book

include::dynamic:content/*.adoc[]

The macro has some configuration possibilities to control stuff like the include order and is doing some additional content manipulation. The content of the file is read in Java content/chapterXX.adoc and before pushing it to the asciidoctor engine it does some changes (adding line breaks, transforming internal cross references, adding a link to the file, ...).

As a side note, why is the method named push_include() instead of pushInclude()?

I have opened #980 to discuss that.

About https://github.com/asciidoctor/asciidoctor/issues/3470 :
I read the issue trying to understand if the approach of my macro is not valid at all…
I think I will continue the discussion on that issue.

I collect all the files bases on a globbing expression (folder/*.adoc).

I'm not suggesting the input files need to change, but rather how you identify them to push_include. And that's just an option.
The idea for your macro is sound. You're just being bitten by a change that fixed a bug internally, but has proven to create an incompatibility externally.

I think I will continue the discussion on that issue.

It would be best to open a new issue. There needs to be a way to specify that you don't want to compress the lines of the input. We could make this the default when push_include is called from an extension. Regardless of what we decide, it will require a change (unless you use the line comment workaround I mentioned, which I understand does not feel nice).

I don't think this issue needs to stay open because, as we have discovered, this has nothing to do with AsciidcotorJ.

this has nothing to do with AsciidcotorJ

Yes sorry I come to the project that I use (I never use the asciidoctor ruby directly).

This issue can be closed and replaced by https://github.com/asciidoctor/asciidoctor/issues/3875

You followed the correct path. We just determined where the relevant code is located and thus have to relocate the conversation to where it can be addressed.


use_args decorators now support callables in the first argument.

Any callable supplied should take the request as an argument and return a marshmallow schema instance.

Thanks for the PR! Looks like the build is failing due to a flake8 error. Can you please address this?

Some modifications made during merge to allow parse to receive a factory.
Thanks again for the PR!

No thank you @sloria for producing such a great package.


Error: Protocol "blob:" not supported. Expected "https:" could not be cloned.

Fails to open drag&dropped file when running in NW.js. This is regression from version 1.8.581 where the file could be opened.
Configuration:

Web browser and its version:  NW.js (0.26.0)
Operating system and its version: Windows 10
PDF.js version: 1.10.86 (worked before with version 1.8.581)
Is a browser extension: yes (I think NW.js runs it internally as an extension)

Steps to reproduce the problem:

Create a NW.js application:
1a: Create package.json:

{
	"name": "pdfjs-bug",
	"version": "1.0.0",
	"dependencies": {
		"nw": "0.26.0-sdk",
		"pdfjs-dist": "1.10.86",
		"copyfiles": "1.2.0"
	},
	"scripts": {
		"start": "copyfiles -f node_modules/pdfjs-dist/build/pdf.js node_modules/pdfjs-dist/build/pdf.worker.js src && nw src"
	}
}

1b. Create src/package.json:
{
	"name": "PDFJS",
	"main": "index.html"
}

1c. Create src/index.html:
<!DOCTYPE html>

		<meta charset="utf-8" />
		<title>Test</title>

		DROP

Install and run the NW.js application.
2a. Install the application with npm install.
2b. Run the application with npm start.
Drag&drop any PDF file from filesystem to the application.

What is the expected behavior? (add screenshot)
The number of pages is shown on the page.
What went wrong? (add screenshot)
The number of pages is not shown. Exception is logged into the console:
Uncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Worker': Error: Protocol "blob:" not supported. Expected "https:" could not be cloned.
    at MessageHandler.postMessage (chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:1390:19)
    at sendStreamRequest (chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:1207:14)
    at chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:1272:7
    at <anonymous>
index.html:1 Uncaught (in promise) UnknownErrorExceptiondetails: "UnknownErrorException: Cannot read property 'headersReady' of null"message: "Cannot read property 'headersReady' of null"name: "UnknownErrorException"__proto__: Error
    at UnknownErrorExceptionClosure (chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:443:37)
    at Object.<anonymous> (chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:446:2)
    at __w_pdfjs_require__ (chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:45:30)
    at Object._typeof (chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:8064:23)
    at __w_pdfjs_require__ (chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:45:30)
    at Object.defineProperty.value (chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:88:18)
    at chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:91:10
    at webpackUniversalModuleDefinition (chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:24:59)
    at chrome-extension://abnijbeggncckhejmpopebkmidpfinlj/pdf.js:25:3

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Can NW.js support fetch() or XHR with blob: url? Can you reduce your example to use fetch() ?
fetch(url).then(req => req.arrayBuffer()).then(pdf => document.body.insertAdjacentHTML('beforeend', pdf.byteLength + '
'));
};

Yes, it can. After altering the code, the length of the dropped file is being shown on drop.

I get the same thing in Electron.

Tested locally and @corwin-of-amber is right.
#10228 fixes this.

Thanks for the fix. I would like to correct my previous statement that fetch_stream works well in NW.js, I was able to open PDF files using the file:// protocol on my Mac, but on a Windows machine it failed with
Fetch API cannot load file:///... URL scheme must be "http" or "https" for CORS request.

Don't know if the problem is within fetch_stream or the choice between the different streams.

It's still much safer to consider NW.js as a browser, as it just copies some object from nodejs, as explained in their doc.

Closing since this is fixed by the pull request above. If any issues remain after this, please open a new issue.

Hi @burtonator !
I m using Electron too for our application and we have got an error related to PDFjs and blob data.
The generated pathToData which is used later to call getDocument() is generating an

UnknownErrorException

Is it related to the protocole used by Electron ? have you found a solution for your issue?

Opening a file:// resource still results in UnknownErrorException because PDFjs tries to use the fetch API. Setting window.Response = null forces it to use network.js.


Feature Request: Show messages that caused alert in Slack

Thanks for building this plugin.  Very useful.
I have configured the stream alert in Graylog as follows: Alert is triggered when there are more than 3 messages in the last minute. Grace period: 30 minutes. Including last 3 messages in alert notification.
When the alert triggers, I get a message in Slack but it does not include any of the messages that triggered the alert.  That means we need to click on the embedded link to see the search results.  If we could view the triggering messages in the Slack alert itself, that might keep us from having to connect to our VPN to see what caused the trigger.
Hopefully that makes sense.
Thanks,
Steve.

This should also support truncating, ideally via a configurable amount.  E.g. my Tomcat messages have the potential to span many lines, and I wouldn't want all those in a Slack message.

Thank you! Scheduled for v1.3.

Thanks for the updated Slack plugin V2.01 this week Lennart.
Installed it this morning and redid the callback as instructed in the README.
When I trigger an alert, I get the alert in Slack but I don't see the message that triggered the alert.  Should that be in the Slack message?  Do I need to do anything to enable that?
Thanks again for your work on this.
Steve.

Yes, please add the ability to add backlogged messages in the alert stream attachment

Never mind.  I missed this configuration step when I originally set this up:
The same applies for message outputs which you can configure in Stream - > Manage Outputs.
Once you setup an Output for sending messages to Slack, the alert will include the message(s) that caused the alert.
Woo hoo!

Never mind.  I missed this configuration step when I originally set this up:
The same applies for message outputs which you can configure in Stream - > Manage Outputs.
Once you setup an Output for sending messages to Slack, the alert will include the message(s) that caused the alert.
Woo hoo!


Listen own message

Is it possible to add a function ( maybe just in api.listen ) to read user's own message ( send from web ) , this way , it's easier to make a chat assistant , thanks

Working on this now.  You're going to want to be careful with this feature...

@Tingyus does this help your problem?
You can set the api to listen to itself with this command:
api.setOptions({
  selflisten: true
});

thanks , it works perfectly , I am going to make my chat assistant :)


Add MDC Snackbar as service

[x] Re-architect MDC Snackbar into a service
[ ] Write documentation and examples
[ ] Write unit tests

PR incoming.


remove dead code: ShaderDefs derive

Objective

remove some dead code and see if someone isn't happy about it

bors r+


(MH Rise) Crash On Startup

Reinstalled MHRise and added reframework back along with mods. Doing so will crash the game on the "compiling shaders" screen. Removing framework causes the game to startup. Removing mods but keeping framework still causes the crash. Game will load up when you're tabbed out but when you tab back into Rise, the game will crash.
Here are the crash files and framework files:
reframework_crash.dmp
re2_framework_log.txt
Version used is the latest nightly version and also tried to rollback to the previous version before that(both causing a crash)

How to reproduce:
Have reframework installed and attempt to boot up the game.
I expected the game to load without issue but I'm unsure what would be causing it.
SPECS:
CPU: ryzen 7 5800x3d
GPU: 6700 XT
990 Pro SSD
48GB RAM
Additional Mods used were:
-RiseTweaks
-Better Matchmaking v2.4
-Custom In Game Mod Menu API

This isn't being caused by reframework, a large number of people have said it happens on clean never-modded installs. Capcom's DRM update is breaking the game.

not sure if this helps but I also get this popup with reframework

reframework_crash.dmp
re2_framework_log.txt
I 'm not sure it's the same issue with me, I'm trying using RE together with VRto3D + the MH Rise Demo, however, the game will crash on startup and no stereo-3d content can be seen inside of the steamvr window.


You are trying to sign in from a browser or app that doesn't allow us to keep your account secure

PLEASE READ THE POSTING GUIDELINES AND ANSWER THE QUESTION BEFORE POSTING, OTHERWISE ISSUE WILL BE CLOSED AND MARKED AS INVALID

I hereby declare the following issue is a [tool specific question/bug report] and it is NOT a help request about creating a phishlet.
I am fully aware that this is not a customer support portal, I can't demand answers and I'm aware I am using a free tool.
I am not going to use Evilginx to hax my girlfriend's account or use it for any other illegal purpose.
I am not trying to set up a domain on FreeNOM (also read the sentence above again).
I am not a robot.

Please type in "I CONFIRM" below if you confirm the sentences above or otherwise make some funny remark:
<type_in_here>
Thanks!
You are trying to sign in from a browser or app that doesn't allow us to keep your account secure

I am working on the same problem for the next week. If anyone wants to compare notes, please drop me a line at<EMAIL_ADDRESS>

Any solutions ?

i have solution contact<EMAIL_ADDRESS>


Implement ChromeIPass and PassIFox compatibility

Using the specs best described here https://github.com/pfn/keepasshttp/blob/master/test/tests/test-kph.js implement a KeepassHTTP compatible interface to work with Chrome and Firefox Keepass integrations.
I am ready to work on this

I have already cloned and installed the repo. So the next step for me is some time and understanding the keepasshttp protocol. I will let you know as soon as I do something.

great :)
I guess you don't necessarily need to understand the keepasshttp protocol, but more important would be to understand how the Chrome/Firefox plugins work. I would hope that the plugins could directly talk to the keepass-node backend, just like the angular frontend does.

@fabriceb Hey, did you have some time to work on this? If not: I'll soon try to implement a React based ui as Chrome extension. This is more or less some kind of playground, though, so no pressure :-)

@gesellix Will the Chrome extension you planned still need Node.js on a server?
I'm interested in making this works in a standalone Chrome Packaged App (need to port keepass.io without Node.js).

@zohead I personally don't have an idea how one could store the keepass file safely without a secure backend (in this case implemented in node.js). So I would prefer to still use a node.js backend. I also don't want to be dependent on a dedicated device where the keepass file is saved.
If it isn't too much hassle including other "backends", like node.js, Google Drive, Dropbox, etc, I'd be glad if you started with your standalone variant and I could extend it to use the node.js backend. I would beg you to keep this in mind when implementing the Chrome extension. If you don't like to reinvent the wheel, you can have a look at the BrowsePass Chrome extension.

@zohead If you need any help or assistance with porting keepass.io so that it doesn't use Node.js, feel free to contact me. I had that actually planned for the future (including rewriting a few bits of the code), but didn't find the time to do so yet.
@gesellix Sorry for intervening here :)
A chrome extension / packaged app would be really cool though - I even started on doing so once, but I hate frontend coding, heh. I also tried to use those new HTML5 crypto libraries, but they kinda sucked last time I tested them, unfortunately.

@gesellix Your are right, while a Chrome packaged app with read/write access to keepass database would be really useful for Chromebook users. Keepass database can be stored locally or on Google Drive via Chrome's Filesystem API.
Chrome OS user can only run Node.js in Crouton chroot environment (it's also inconvenient to use Node.js on ARM Chromebook).
BrowsePass app is really a good start, just lack write support for now.
@NeoXiD It will be quite helpful if you make keepass.io works for Chrome without Node.js. ^_^

hey, now I guess all relevant people are talking to each other :-)
I'm also willing to help, for frontend stuff or even "boring" user testing as well, so just leave a note here!
Am 29.07.2015 11:29 vorm. schrieb Pascal Mathis notifications@github.com:@zohead If you need any help or assistance with porting keepass.io so that it doesn't use Node.js, feel free to contact me. I had that actually planned for the future (including rewriting a few bits of the code), but didn't find the time to do so yet.
@gesellix Sorry for intervening here :)
A chrome extension / packaged app would be really cool though - I even started on doing so once, but I hate frontend coding, heh. I also tried to use those new HTML5 crypto libraries, but they kinda sucked last time I tested them, unfortunately.
—Reply to this email directly or view it on GitHub.

ah, yes I didn't have Chromebooks in mind. There's also some offline mode relevant, where a standalone extension would help. so, don't get me wrong when I'd also like a node backend on top of that :-)
Am 29.07.2015 12:15 nachm. schrieb Uranus Zhou notifications@github.com:@gesellix Your are right, while a Chrome packaged app with read/write access to keepass database would be really useful for Chromebook users. Keepass database can be stored locally or on Google Drive via Chrome's Filesystem API.
Chrome OS user can only run Node.js in Crouton chroot environment (it's also inconvenient to use Node.js on ARM Chromebook).
BrowsePass app is really a good start, just lack write support for now.
@NeoXiD It will be quite helpful if you make keepass.io works for Chrome without Node.js. ^_^
—Reply to this email directly or view it on GitHub.

... and why looks answering via mail so shitty?

@zohead @NeoXiD there's a new branch https://github.com/gesellix/keepass-node/tree/chrome-extension where I'd like to work on the Chrome extension. It should already be installable in a normal Chrome, I didn't have a chance to check it with ChromeOS - most important would be to add a permission to upload files, I guess.
If you don't like to work on personal forks, you may add PRs to that branch and I'll merge them more or less without checking your changes.

Apart from making it work on ChromeOS or in offline mode, we should have a look at the ChromeIPass features to recognize URLs, password fields to enable the extension to conveniently suggest the best KeePass entry.

@gesellix Is it possible to make this chrome extension simple as KeePass desktop program and only implement as a KeePassHttp server, then let ChromeIPass do the "dirty" work with URLs/username/Password fields?

@zohead I'm not sure how the KeePassHttp protocol looks like, so I have to check it first. I'd also have a look at the ChromeIPass implementation to find out if we could talk to them and let them extract the relevant code parts in a reusable module/package/whatever.
I must admit that I don't like to be too dependent on any KeePass specific concept or tool like KeePassHttp, because I prefer to only rely on the data format. I see a valid point in reusing existing tools, though :-)

@zohead @gesellix I'll start working soon on a new release which should work in every browser (and therefore in Chrome Packaged Apps aswell). Goal would be to provide several crypto-backends - the new HTML5 one as soon as it is usable, the Node.js Crypto Framework, plain javascript implementation, the Node.js Crypto Framework + Extension for Key Transformation (Crypto++) and so on. Then it should be usable almost everywhere.

@NeoXiD sounds great, thanks for notifying us! If you want us to test something, just tell me/us.


Fixed accessType Option Support, to support refresh token for Google

Tested, locally It worked for me to generate refresh_token for google api

Can you run pnpm format to format the files?

Can you also create a new changeset?
package: "@lucia-auth/oauth"
type: "patch"

Hey, let me know if there is anything left

Thanks!


KukLBRiiwaROSPlugin.hpp initialize spdlog

Initialize spdlog loggger if it does not yet exist.

I think its better to initialize the logger properly in
https://github.com/ahundt/grl/blob/master/include/grl/kuka/KukaJAVAdriver.hpp#L146
than add a new logger in ROS plugin. Same issue will arise if any other plugin creates an instance of KukaJAVAdriver.

@tdinesh you're right, missed that! https://github.com/ahundt/grl/pull/124 is a new one that should be better.


Question regarding ImageProcessingModule, LocalFileImageService and HttpExceptions

Hi James,
Many thanks for your package. It has saved me countless hours of development and I, along with countless other developers, owe you many beers. My issue is more of a question rather an issue. I'll try to explain my scenario as best as I can.
I have an Umbraco site with multiple sites (languages variations). Each site requires their own apple-touch-icon-precomposed.png image which can be accessed at the root of each site's domain. My solution for this was to implement a HttpHandler which serves a media item from Umbraco, selected by each site. Therefore, a physical apple-touch-icon-precomposed.png file never exists.
My problem is that before the HttpHandler can find and serve the correct image from Umbraco, the ImageProcessingModule runs and tries to find the requested image. As it never exists, the LocalFileImageService throws a HttpException. Removing the ImageProcessingModule fixes the issue and allows the HttpHandler to serve the image it finds within Umbraco.
My questions are:

Do you know of anyway around this issue?
Should the LocalFileSystemService throw an exception if a physical file cannot be found?
Should the ImageProcessingModule catch the HttpException from the LocalFileSystemService and ignore any processing to be completed, allowing the request to be executed as normal? Either resulting in a 404 if the file doesn't exist or being served by a HttpHandler.
Could there be a config setting to determine how missing physical files are handled?

I hope that all makes sense.
Thanks,
Dan.

Hi Dan,
No worries! I'll take you up n that beer offer next time I'm in the northern hemisphere :beers:
Yeah that all makes sense.
A HttpHandler won't help you in this scenario as it is processed far too late in the page lifecycle. ImageProcessor will always beat it to the punch.
Your scenario is quite special and I would solve it by replacing the LocalFileImageService with your own IImageService implementation based on it that runs a special case for touch-icon-precomposed.png and defaults back to the standard behaviour for other image requests. Basically a copy/paste of the original code plus the logic you have in your HttpHandler.
If you install the configuration package you can replace LocalFileImageService in the security.config file.
In answer to your question about the thrown exception. The HttpException is a 404.
throw new HttpException((int)HttpStatusCode.NotFound, "No image exists at " + path);

I'm not sure whether the ImageProcessingModule should do anything special when that exception is thrown as it could cause unexpected behaviour. As soon as I throw that exception IIS kicks in with its default behaviour and any handling can be dealt with outside of ImageProcessor with whatever you specify in the web.config etc.
There's no harm however in me (or someone else :wink:) experimenting to see what happens if I handle the error and return out of the HttpModule. My inkling is that it would actually end up with a better workflow in that your handler would be able to take over and 404's etc would also naturally be handled by the application. If that is the case there would be no need for additional configuration.
I'm going to look at reverting the behaviour I added in 4.4.0 that intercepts images with no querystring parameters also as that is causing confusion for some developers.
Hope that is useful
Cheers
James

Thanks James for your helpful answer! You beat me to it with regards to the pass through change. For the meantime, I'll install the the config package as you suggested and implement my own LocalFileImageService.

No worries :smile:
I should get an update out soonish. Any issues give me a shout.

Fixed this in v4.5.0


Make required changes to get ready to start releasing packages

Issue: #4
These are required changes to prepare for building NuGet packages
Opted to use MinVer to manage versions based on git tags. Will start the counter at 0.1.0 as discussed in https://github.com/open-feature/spec/issues/109

Codecov Report

Merging #17 (d2ce74f) into main (9c48091) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #17   +/-   ##
=======================================
  Coverage   81.09%   81.09%
=======================================
  Files          14       14
  Lines         275      275
  Branches       14       14
=======================================
  Hits          223      223
  Misses         45       45
  Partials        7        7

Continue to review full report at Codecov.

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