a basic implementation how we can create login tokens

Summary
This PR is made to test out a basic version of a token generator for the login to the game. Participants can create their user to get a token to log in to the game. Later on, we can have more logic added to have it also save the player's progress that they can log in with their token after saving.
I made it work locally with flask and SQL Alchemy.
Extra:

I put the flask_app.py next to the main.py because I thought it would be helpful to have this separate from the src directory.
The way I used Flask is that it works with HTML, so I made a new directory called templates. These are referred in the flask_app.py file too. These are simple forms to ask the user their login.

Checklist

[ ] I have tested this change locally and it works as expected.
Yes, it works as intended.
[ ] I have made sure that the code follows the formatting and style guidelines of the project.
I used ruff check and format and checked myself if there were any mistakes the code formatter could not directly fix.

Labels
size: S, area: publishing, area: analytics

Before the review I need to make some other changes. Now when I create the site.db it stores it in the same directory as where the main.py is located. I want to make this to the data directory where other databases are stored.
Also for some minor changes add a dotenv where the future api key can be stored in and not stored in the actual code publicly. For now it is for local use so it doesn't matter that much, but if we alter the code to have a real api key we may want to have this already implemented before hand.

Thanks for the review, I will change the things you mentioned and make it more understandable! @Mega-JC

Hey I haven't had time to implement a better idea and I lack the experience with this. I don't have much time lately so I'm post poning this PR. Thanks for the review!


Feature/logo

Description
Adds the Energinet logo above the navigation on the "logged in area of the application"
References
https://github.com/Energinet-DataHub/energy-origin/issues/397

The spacing in the layout of the logo in the navigation drawer does not look correct, at least not on my machine 🤷♂
Current implementation
Figma

Hi @LayZeeDK Can you try and look again? I'm not sure if something has been partly cached or what has happened. When I look local and on the feature env it seems to be aligned.

@Klemmensen
I see the issue right there in your screenshot


Support FUSE SDK + Alluxio cluster for testing

Support connecting FUSE SDK with original Alluxio cluster for testing.
integration/fuse/bin/alluxio-fuse mount ufs_path mount_point
ufs_path can be s3://bucket/path, or alluxio:///path

alluxio-bot, merge this please


Add item in select and select multiple

Is your feature request related to a problem? Please describe.
I want a select or select multiple with possobility by the user to create items like type text

Describe the solution you'd like
Support tag addItems in input type select an select multiple.
The value written by the user is the value and the visualizated text
Describe alternatives you've considered
A botton near to che arrow-down to add value if addItems  is true
Additional context

This feature has been previously addressed in !525.

Duplicate issue, main issue #525


Center node position is not correct with Custom Node

Describe the Bug
While using custom node with custom styling the center node position is not at correct place. It is little bit different then normal node position.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue

Create Custom Node
Add Custom Styling for Parent Node and different styling for all the children node
Add One Parent and add their three children
Center one position is little bit slide to left side it is not in exact centre.

Expected behavior
Expected behaviour should be centre node position needs to be in exact center.
Screenshots or Videos
No response
Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 11.9.3]

Additional context
No response

A sandbox demonstrating the issue would be helpful, as I for one can't really tell what the problem is supposed to be just from this description.
A sandbox template can be found here: https://new.reactflow.dev/react-ts

A sandbox demonstrating the issue would be helpful, as I for one can't really tell what the problem is supposed to be just from this description.
A sandbox template can be found here: https://new.reactflow.dev/react-ts

Okay @bcakmakoglu I will add one example

Please re-open with a codesandbox.

Excuse me for digging this up, I thought I ran into this issue as well. Turns out I just needed to make use of origin in Svelte or nodeOrigin in React. Here's a sandbox showing centered nodes with custom nodes: https://codesandbox.io/p/sandbox/great-voice-v74nmh


Add rkglChainLinkSelect()

Added a function similar to rkglFrameHandleSelect() into rkglChain API.
With this addition, updating sample example/chain/select_test.c.
Please check it.

I ask you again not to modify the library code but suggest your new function(s) in your example code.
rkglChainLinkSelect() seems convenient.

@zhidao
I moved a new function rkglChainLinkSelect() from library code rkgl_chain.h(,c) into sample select_test.c for suggesction.
Please see it & concern whether to add it into the library.

I'm sorry, but I found that it is not preferable to merge your rkglChainLinkSelect() into the library.
A typical process of object selection and manipulation is something like the following.

Click a canvas.
Check if there is something at the clicked point by using rkglSelectionFindNearest().
Figure out what is selected by using rkglSelectionName().
Apply a defined manipulation to the selected object.
Though your rkglChainLinkSelect() does the above process from 1 to 3, something else might be selected in general. Actually, the rkglChainLinkSelect() is not available for select_multi_test.c. It means that the function is not a general operation but rather application-specific.

Hmm.. I agree.
But I feel like the same thing can be said for FrameHandle.
How does FrameHandleSelect()  handle this?

True. An idea is to exclude rkglSelectionFindNearest() from rkglFrameHandleSelect(). Probably, it makes the situation straightened.
A difference from rkglChainLinkSelect() is that rkglFrameHandle is basically expected to have a unique instance in an application, and rkglFrameHandleSelect() checks if the handle is selected or not. On the other hand, applications might have multiple instances of rkglChain just as shown in select_multi_test.c. In such a case, it is not sufficient to find a link but needs to find a combination of a link and a chain. Since the selection buffer manages objects only by numbers, I think it is hard to pick up both a link and a chain inside of rkglChainLinkSelect().

Hmm...
Sorry for the confirmation,
but In other words, when there are multiple chains (like select_multi_test.c) if I want to use something like rkglChainLinkSelect(), do I need to assign a unique number to each chain ?
However, there are clearly two problems, and that's what you're talking about, right ?

Is it possible to assign a unique number ?
Is it possible to manage the number chain ?
The problem is that these things depend on the application situation and are not necessarily guaranteed, right?

You are right. As you recognize, how to manage objects by names is application programmers' responsibility. And, it is the reason why I hesitate to include rkglChainLinkSelect() (and something like rkglChainLink()) to the library.

Hmm.. OK. I understood.
I try to write a function like rkglChainLinkSelect() on the application side.
(It may be used a lot of similar code, and It may become a long and redundant line..)
It's okay to close this PR.

I added rkglChainLinkFindSelected() in the latest version of main branch, which is almost identical with your rkChainLinkSelect(). An example is found in example/chain/select_multi_test.c in addition to example/chain/select_test.c.

@kdaic Is it OK for you to close this PR?


New version: Google.Chrome.Beta version 106.0.5249.61 [FP-O]

Result: Installation Failed

Manifest
Add/Remove Programs

Name
Google Chrome Beta

Version
106.0.5249.61

Publisher
Google LLC

ProductCode

Auto-updated by vedantmgoyal2009/winget-pkgs-automation in workflow run 3242

@wingetbot run


Add support for multiple terms query

boolean query is implemented
https://github.com/k-yomo/ostrich/commit/6f6475114a1d4c30d39cc00f5463d338ce65436b


ability to remove events

Hello,
Is there a way to remove events with the script getEventListeners.js? This would be useful as a Greasemonkey script that loads before the website content.
Some websites prevent copy-pasting or add other validation restrictions. So I reproduced a paste restriction by adding an event on a text input with Firefox:
document.getElementById("test").addEventListener("paste", function(e) {e.preventDefault()})
Then I tried to bypass this restriction by removing the event, based on this code that uses the default getEventListeners function of Chrome / Chromium (https://stackoverflow.com/questions/4386300/javascript-dom-how-to-remove-all-events-of-a-dom-object/40448083#40448083):
document.getElementById("test").getEventListeners().paste.forEach((e)=>{e.remove()})
But I get the error TypeError: e.remove is not a function.
I also tried a solution based on another code (https://stackoverflow.com/questions/4386300/javascript-dom-how-to-remove-all-events-of-a-dom-object/41877059#41877059):
document.removeEventListener("paste", document.getElementById("test").getEventListeners().paste[0].listener)
But it is still not possible to paste in the text input.
Thanks.

No, it's not possible using getEventListeners....at least automatically.
However, because getEventListeners keeps track of all assigned event listeners, you can, ( after the page has been loaded, and the listeners have been assigned ), retrieve the list of listeners of an element, and remove it/them from the element using  a conventional .removeEventListener( type, listener, useCapture)
In this example, the 'paste' event listener assigned to the element #myElement, should be removed...
// select the element
let el = document.getElementById( '#myElement' );
// retrieve the first "paste" event listener
let event = el.getEventListeners( 'paste' )[0];
// remove the listener
el.removeEventListener( event.type , event.listener, event.useCapture );

I hope it helps

Thanks! My second example was not working because I made a mistake by using document.removeEventListener instead of document.getElementById("test").removeEventListener.
Your example works also but you have to remove the "#" for the getElementById function.
In also noticed that document.getElementById("test").removeEventListener("paste", document.getElementById("test").getEventListeners().paste[0].listener) works but if use getEventListeners.paste[0] instead of .getEventListeners("paste")[0] in your example, it fails. Do you know why?
By the way, did you write this script yourself or you took it from a Chromium / Chrome or Firebug implementation?

Both getEventListeners().paste[0] and of getEventListeners("paste")[0]  are exactly tyhe same. Same results, and same performance.
This is my own getEventListeners implementation, no code from Chromium or Firebug code has been used at all.

An alternative solution to listener management in JS is to extend the EventTarget class from the JS Web API, overriding the addEventListener and removeEventListener methods to maintain a data structure containing the listener function references.
I follow this approach in the Gist below, where I also have a few unit tests. You can run the tests in the browser JS console by copying the code from the Gist to your clipboard, pasting it into the browser JS console, and pressing enter. Please read strange JS from the internet before running it in your JS browser console.
Fork and make a pull request if you think you made improvements.
https://gist.github.com/angstyloop/504414aba95b61b98be0db580cb2a3b0
Hope this helped at all

@angstyloop What is the difference with your script?
@colxi For information, I was able to use successfully your script with Greasemonkey to bypass a paste event restriction on a website, very useful. Basically I used the Content Script Injection method from Greasemonkey (https://wiki.greasespot.net/Content_Script_Injection) to inject the getEventListeners function on page load by creating a Greasemonkey script with the code window.eval(...); where ... is the code of getEventListeners.js between the backticks to support multiline.
Then I executed the JavaScript code from my previous comment in the web console to remove the paste event.
It could also probably be done with a tool like mitmproxy to inject the code in existing JavaScript files if there are CSP restrictions forbidding inline JavaScript (or we could get rid of CSP if we don't care about this protection, by editing HTTP headers with an addon like Header Editor).


Multiple opened files

Currently I'm unable to neither open second file in parallel (without closing the first), nor opening second instance of Rained.
This makes me use other leditors to open second file in parallel.
I need to open second file as a reference for myself.

Oh, I didn't realize that opening more than one instance of Rained was impossible. It looks like it's due to the fact that it can't open the log file since it's already in use by the first instance.

This feature is now on the nightly release. Will make a proper release sometime soon, as I still have a few features I'd like to implement before then.


Please invite me to the GitHub Community Organization

Name
Nayan
Discord Username (if applicable)
nayanm9
Additional Context
I recently completed the free course.

Is your other GitHub account @VFXGamer?

Yes 😅, I don't use that account anymore.

😅 due to multiple devices I often make this mistake. Sorry if it caused any sort of trouble.

Pleased to be here 😁


can i get some help please hahaha struggling

ts-node' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: ts-node ./src/index.ts
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:

you need to run ''npm install' or ''yarn install'' before running it

how sorry drawing a blank here
thanks

so i open the file path then type cmd then npm run start
i have npm install done threw cmd
also have ts-node
and node js

solved


Latest API versions not available

I've update all my bicep resources to the latest API versions, according to what's documented in Azure templates reference.
But one resource provider Microsoft.Authorization/roleAssignments only goes up to 2020-04-01-preview in bicep, while the roleAssignments documentation also defines 2020-08-01-preview and 2020-10-01-preview.
If using latest version I get:
Resource type "Microsoft.Authorization/roleAssignments@2020-10-01-preview" does not have types available.bicep(BCP081)

I expect the latest and greatest API versions to be always available, since it's stated: Day 0 resource provider support. Any Azure resource — whether in private or public preview or GA — can be provisioned using Bicep.
It it not clear to me, If I need to upgrade Bicep version to get latest API versions. Do they ship with Bicep? Do they ship with VS Code extension? Or are they looked up dynamically at runtime?
If this is working as intended, please consider clarifying the documentation, as I could not find anything on this subject.

The types get updated with new releases of the bicep extension (and CLI). We are planning to separate this so we can ship types more frequently separate from bicep releases.
I'm surprised these types are missing since they are not recent. @anthony-c-martin - is our type gen missing these? @th0ger - do you mind adding these missing types to #784?
Even if a type is missing, it is still possible to provision that resource with bicep. If a type is missing, there is less validation that we can do, but it won't block deployment. That's what we mean by Day 0 support. It's probably worth clarifying this in docs - we will take care of this.

@alex-frankel thanks for the quick reply.
I'm on the latest Bicep version v.0.3.539 (both VSCode & CLI).
This is not critical, I just updated the versions to make sure Intellisense list all the latest properties.
Anyway, it's good to know that Bicep/az won't block unknown types. Especially in CI/CD context where the build server/docker image may not be fully up to date.

I have a question about private resource types. I am trying to create 1es cloud image and a 1es hosted pool but bicep is complaining. How does support for private resource types work?
╰ bicep --version                                                                                   12:34:56 
Bicep CLI version 0.3.1 (d0f5c9b164)

If it does not have a public swagger spec, we will not generate a type for it. It should not block deployment though.

k i havent tried a deployment yet but these are the errors/warnings im getting when i decompiled the arm template -
Error BCP017: Expected a resource identifier at this location.
Warning BCP081: Resource type "Microsoft.CloudTest/hostedpools@2020-05-07" does not have types available.
and it definitely screws up syntax highlighting in vscode because it cant find the resource type.

Can you share the code sample? The warning shouldn't cause a highlighting error, but that error might be. Curious to see what is happening.

resource agent_pool_image 'Microsoft.CloudTest/images@2020-05-07' = {
  name: 'agent-pool-image'
  location: 'southcentralus'
  properties: {
    imageType: 'SharedGallery'
    baseImage: '/subscriptions/subid/resourceGroups/upstream-ado-agent-pool/providers/Microsoft.Compute/galleries/upstream_ado_agent_sig/images/upstreamAgentImage/versions/latest'
  }
}

resource hosted-agent-pool 'Microsoft.CloudTest/hostedpools@2020-05-07' = {
  name: 'test-pool'
  location: 'southcentralus'
  properties: {
    organization: 'https://dev.azure.com/ourorg'
    sku: {
      name: 'Standard_D4s_v3'
      tier: 'Premium'
    }
    images: [
      {
        imageName: 'agent-pool-image'
        poolBufferPercentage: '100'
      }
    ]
    maxPoolSize: '2'
    agentProfile: {
      type: 'Stateful'
    }
  }
  dependsOn: [
    agent_pool_image
  ]
}

you are not allowed to have hyphens (-) in identifier names in bicep. Ideally the decompiler would catch this and change it, but in the meantime you can change hosted-agent-pool -> hostedAgentPool and you should be good to go.
You can also change imageName: 'agent-pool-image' -> imageName: agent_pool_image.name and get rid of the dependsOn property since there will be an implied dependency.

Going to close this one since the original missing type info is now captured in #784

@alex-frankel does #784 also cover the documentation update?

Nope - thank you for the reminder :)


Tuning for specific bodies of text

First off, very cool work!  I spent this morning spinning up a clientside demo to show some friends.
Second, I'm hoping to use this library to compress english text messages.  Given that most text messages are short phrases (e.g., "Be there soon", "How are you", "Where are you"), I thought I could feed these common phrases into the algorithm. I noticed this line in the docs:

Please refer to unishox_compress_lines and unishox_decompress_lines functions in the library to make use of these. However in most cases, the default Simple API provides optimimum compression.

These functions don't appear to exist.  Any tips for me?

Hi, Thank you for sharing this. I am glad that you find it useful!
I am sorry if it is a bit misleading but the documentation refers to the C API and the _lines part of it refers to compression of a C Array and not about compressing common lines.
However, Unishox2 allows for 6 strings such as those you have mentioned using the usx_freq_seq parameter:
function unishox2_compress(input, len, out, usx_hcodes, usx_hcode_lens, usx_freq_seq, usx_templates)

Even without defining such common phrases, Unishox2 will compress them to the extent possible.
Unishox2 is designed for low memory systems such as Microcontrollers and does not use a codebook like smaz, but I hope to do so in Unishox3 to achieve the best compression possible.


Forcing generation is too memory hungry again

Using the #97 branch, I can't generate even 50 time points during forcing generation without OOMing.
python src/gz21_ocean_momentum/cli/data.py \
--config-file resources/cli-configs/data-paper.yaml --verbose

On my machine with ~20GB RAM available:

--ntimes 50 gets about 15% through and OOMs
--ntimes 25 executes with peak memory usage ~15 GB

Using the previous xr.map_blocks method for computing forcings doesn't work either. It seems to function, but spends a minute at 40% and eats all my memory.
t = surface_fields.coarsen({"xu_ocean": options.factor, "yu_ocean": options.factor}, boundary="trim").mean()
t2 = t.copy()
t2 = t2.rename({"usurf": "S_x", "vsurf": "S_y"})
t = xr.merge((t, t2))
forcings = xr.map_blocks(lambda x: lib.compute_forcings_and_coarsen_cm2_6(x, grid, options.factor), surface_fields, template=t)

This has to be some Dask chunking issue. An xarray doc page gives some tips: https://xarray.pydata.org/en/v0.9.3/dask.html . It has me wondering if some small change to building the array calculations might be breaking performance.

With more fiddling (refreshing dependencies, using 1 Dask worker, paranoid chunking tweaks), I've succesfully generated forcings using map_blocks. Indeed map_blocks is usually present to ensure good Dask scheduling, rather than obstructing it like we thought in #47 . --ntimes 50 with paper spatial domain had me use max ~4GB RAM -- much more reasonable.

Dask seems to scale its workers with number of detected cores. My poor laptop then gets hammered by 16 parallel threads, each apparently needing 4GB RAM (?). This would explain the crashing on CSD3: adding cores adds RAM but also adds more parallel workers, so Dask continues OOMing itself.


[5.1-04-24] Parser: avoid skipping inactive code if we are building syntax trees.

If syntax trees are requested, we shouldn't skip inactive code. Notice the
inactive code won't be skipped in SwiftSyntax because we always set
PerformConditionEvaluation false for the in-process parser.
This is mostly needed for testing purposes where we add -verify-syntax-tree
to regular compiler invocations.
rdar://50837165

@swift-ci please test

This is not necessary for this branch.

Build failed
Swift Test Linux Platform
Git Sha - 84a63bb983d59065647e1302bda9eab945166e80

Build failed
Swift Test OS X Platform
Git Sha - 84a63bb983d59065647e1302bda9eab945166e80


Missing quotes on save

Hi,
When saving a .env, i noticed quotes around variables with spaces are missing. This leads to an
PHP Fatal error:  Uncaught ReflectionException: Class config does not exist in...
I think the writer should quote variables with spaces, and maybe respect blank lines (to keep readability)

I agree that strings should be quoted - but keeping variables isn't easy. 😕


Use PUT when the agent deregisters a service

According to Consul's documentation, when deregestering a service, a PUT request should be used while in the code GET is used. This commit fixes that.

Caused the build to fail as I changed the wrong test. Will fix.


Laravem Multiple Dynamic Mail configuration from database not working for Laravel Queue

Laravel Version: #.#.#
PHP Version: 7.4.2
Database Driver & Version:

Description:
If i set multiple mail configuration from database instead of from env file it's not use dynamic mail configuration but taking default env file.
i used below code:
    Config::set('mail', $config);

before sending mail i want to set dynamic mail config. based on condition but for queue it takes default from env file.
Steps To Reproduce:

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.


Added gitignore for Django

See this: http://stackoverflow.com/a/3719679/5752691

Closing this,  as I think [this] (https://github.com/github/gitignore/blob/master/Python.gitignore) would take care of it.

@yask123 there's a section for Django-based rules in that file, feel free to add anything there that's not already covered by the other sections...


Diary empty state

Description
Create the component as shown in the video attached below.
Animation Preview

Screenshot/Video:

https://github.com/user-attachments/assets/d23d6ae7-f2d1-4705-a4ff-b6488c48f217

[!NOTE]
Please refer to the Animata contributing guidelines available here for rules on how to contribute to the project. Let us know in the comments if you’re working on this issue, and feel free to ask any questions!

Requirements

Create a new animated component that matches the provided design.
Add example usage of the component in the documentation or storybook.
Add credits for any resources, references, or assets used, as specified in the Additional Resources section.

 Guidelines & Best Practices

Write reusable and clean code following the project’s style guide.
The component should be fully customizable. The user should be able to modify props such as duration, easing, color, and size where applicable.
Follow the Contributing Guidelines before submitting your pull request.

[!IMPORTANT]
To ensure more contributors have the opportunity to participate, we kindly request that:

Each contributor submits only one pull request related to this issue.
If you're interested in working on this issue, please comment below. We will assign the issue on a first-come, first-served basis.

Additional Resources
Interaction by Nitish Khagwal

[!Tip]
Join our Discord community if you need help or have any questions. We're here to help you get started and guide you through the process. Join now

hey can you assign to me? i like to work on this

Hi @Arun-cn
I hope you're doing well! Since it's been a while since this issue was assigned, I wanted to check in and see if you're still planning to work on it. If so, could you kindly share an update by tomorrow?
If I don't hear back by then, I’ll unassign the issue to allow others to take it up.
Thanks for your understanding!

i'm working on it. expected to pr tomorrow

@Arun-cn Thanks for the update! Looking forward to seeing what you come up with.


Merge branch 'upload_springboot' of https://github.com/heojungseok/heojungseok.github.io (#8)

Summary

Context

여섯번째


Fix: wxWidgets is not found when built by TDM64 MinGW or similar comp…

…ilers
Thanks for your interest in contributing to CMake!  The GitHub repository
is a mirror provided for convenience, but CMake does not use GitHub pull
requests for contribution.  Please see
https://gitlab.kitware.com/cmake/cmake/-/tree/master/CONTRIBUTING.rst
for contribution instructions.  GitHub OAuth may be used to sign in.

Thanks!  I moved this to GitLab MR 7882.
For future contributions, please see CONTRIBUTING.rst and open a merge request on our gitlab.

Noted


the following code can't be compiled

let called = false;

function may_throw(a = 0) {
    if (a > 100) throw 1;
}

class TempFile {
    #path: string;
    #handle: number;
    constructor(path: string) {
        this.#path = path;
        this.#handle = 1;
    }
    // other methods
    [Symbol.dispose]() {
        // Close the file and delete it.
        this.#handle = 0;
        print("dispose");
    }
}

function func1() {
    try {
	using file = new TempFile(".some_temp_file");
        print("In try");
        may_throw(1000);
    }
    catch (e: TypeOf<1>)
    {
	print("catch");
	return;
    }
    finally {
        print("finally");
        called = true;
    }

    called = false;
    print("end");
}

function main() {
    func1();
    assert(called, "finally is not called");
    print("done.");
}

fixed, will be in main branch soon


Switch to Less + shared style lib

Follow-up #463
The plan is to get a stable and published version of this package: https://github.com/jxtx/galaxy-bootstrap (will likely move to another namespace) and to pull it into this repo, leveraging a uniform/consistent Galaxy style.

The linked repository is quite out of date relative to hub and to current styling of Galaxy, unfortunately. I guess they have abandoned that effort as well. If it gets renewed, then maybe it becomes interesting again to look into doing this, otherwise maybe it is OK for the training material's styling to deviate in places from Galaxy's? So maybe we also give up on this for now? Let's re-open if galaxy looks like they're moving in this direction.


Browser crashes after 25 requests

Which package is this bug report for? If unsure which one to select, leave blank
@crawlee/puppeteer (PuppeteerCrawler)
Issue description
I'm trying to scrap duckduckgo search results using puppeteer crawler, chromium browser and a user profile config. It suddenly just crashes after certain number of requests. I've set the maxConcurrency to 1
EDIT: It only crashes when i specify the user config for the chromium instance like this
   launchContext: {       launchOptions: {         userDataDir: '/home/aman/.config/chromium',         executablePath: '/usr/bin/chromium',         args: ['--no-sandbox', '--disable-setuid-sandbox'],       },     },

Code sample
No response
Package version
3.0.0
Node.js version
21.5.0
Operating system
linux
Apify platform

[ ] Tick me if you encountered this issue on the Apify platform

I have tested this on the next release
No response
Other context
No response

This seems to be caused by the custom user profile configuration (see the same issue here).
It seems that it should be fixed in the latest versions of Puppeteer and Chromium. Can you share the Puppeteer / Chromium versions you're using (and try to update them to the latest?)

hey @barjin thanks
i'm using the respective versions
chromium: Chromium 125.0.6422.141 built on Debian 12.5, running on Debian 12.5
puppeteer-core: 22.11.0


Upgrade to pytorch 1.5.0

First of all thank you for this great project.
But do you think there is any chance to get distiller, especially the quantization aware trainingm, running on pytorch 1.5.0.
My first tries on the all failed on the onnx based jit trace. Do you know if one should be able to use the torch.jit.trace based torch modules directly?

I gave it a try myself: #518


PSR-17 compatibility ?

Q
A

Bug?
no (not really)

New Feature?
yes (kinda ?)

Version
latest

Actual Behavior
Seems that this package doesn't implement the psr/http-factory interfaces, and thus does not provide psr/http-factory-implementation.
Expected Behavior
To implement psr-17 interfaces instead of php-http's
Possible Solutions
Use the new interfaces from PSR-17, but as it would probably introduce BC breaks (as the psr are php 7.0+, and uses return typehints), it should be on a new major.

Most probably message factories in this package will be deprecated in favor of official, PSR-17 ones provided by the original PSR-7 packages.

If we can make out factories implement PSR-17 that would be the best. Current consuming code wouldn't break and we can move to PSR-17 factories in our code. I'm not sure though if we can implement PSR-17.
In any case, I think every 2.x package should switch to PSR-17 factories.
As for 1.x packages: we should improve discovery so that it can detect PSR-17 implementations and return a factory with our compatibility layer added in php-http/message-factory#38. That removes the need for installing the message package for the sake of having a message factory. But I consider that a low priority given we want everyone use 2.x code and we can't remove factories from the message package without a major version bump anyway.
Eventually we should deprecate our factory interfaces and implementations entirely.

Note: We don't provide psr/http-factory-implementation. We provide php-http/http-factory-implementation.
We cannot be compatible with PSR-17 because of PHP7 return types. We could:
A) Bump to version 2.0 and drop PHP5 in order to make our factories compatible with PSR17
B) Deprecate them and dont plan for a 2.0 release.
I vote for B because our factories does not serve great purpose anymore. They have been for 4 years but we succeeded and fig has created PSR-17.

okay, then lets deprecate our factories completely and remove them in 2.0.
for discovery, there is https://github.com/php-http/discovery/issues/116 btw


Pull Luca's https django code to master

We need Luca's code (https) to test the GUI inside the Brain Simulation Platform. Vafa, can you check that the django magic here is OK? After successful merge, you should be able to view your locally running GUI in https://collab.humanbrainproject.eu/#/collab/66649/nav/454427

manually merged in a9c74711c3a4fce848dd87703ae2a118bbb464e3 due to change in folder structure


replace Relation#uniq with Relation#distinct

Relation#uniq has been deprecated in Rails 5. One should use Relation#distinct now.

@cantonic Your change is already there, you can close this and the related issue! :wink:


DHCPD6 Auto Prefix change handling

This Commit replaces #2620 which has so many conflicts now that it needed re-working. This commit still requires the updated https://github.com/opnsense/dhcp6c/pull/4 - as it uses the new envvar created by the client to feedback the PD length to the GUI.
This commit is somewhat reduced in complexity as much of what was in the original commit has been adopted in one form or another.

@fichtner - If this is going to be ignored then I'll not bother. I have modded this twice now along with #2633 and the bug is back. I've raised the issue. I'll leave it to you to fix.

Closed.. re-working


Update config.yml

Modify Build phase

Codecov Report

Merging #2 (497ea60) into main (e9fc682) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main        #2   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            5         5
  Lines           93        93
=========================================
  Hits            93        93

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


After Load Hook

This would be a nice way to couple related things. For example, if I have a theme that depends on something:
zplug "lib/theme-and-appearance", \
	from:oh-my-zsh, \
	after-load:"source /path/to/my/theme"

For this example, I could also use the dependency example and use zplug to load my theme with from:local.  However, this could also be used for running a command required to start a plugin:
zplug "tarruda/zsh-autosuggestions", \
	of:"dist/autosuggestions.zsh", \
	after-load:"autosuggest_start"

This is more of a visual benefit of being able to put the autosuggest_start right with the zplug command instead of having to put it after the zplug load.

Hmm, okay. It seems to be useful. Will implement.

We are developing zplug version 2.0.0 aiming to release this spring. In zplug v2, hook-load tag you want will be implemented.

Awesome! I'm looking forward to 2.0.

@noctuid zplug v2 is on the main repository now, and it has the hook-load tag. Could you try it out and see if it meets your needs?
https://github.com/b4b4r07/zplug/tree/v2

Closing this issue since the hook-load and hook-build tags are implemented in v2. Feel free to reopen if they are not working as expected.

Thank you.


Implement fileAffectsSwiftOrClangBuildSettings with the logic from LLBuildManifestBuilder

Instead of inspecting file extensions to decide whether a file might affect build settings, check which files are in directories that are affecting compilation. This is the same logic that LLBuildManifestBuilder uses and should be more stable. In particular, this stops us from reloading the package manifest in SourceKit-LSP when a header file is written to a .build directory.
rdar://128573306

https://github.com/apple/sourcekit-lsp/pull/1508
@swift-ci Please test

@swift-ci test

@swift-ci test windows

https://github.com/apple/sourcekit-lsp/pull/1508
@swift-ci Please test

https://github.com/apple/sourcekit-lsp/pull/1508
@swift-ci Please test

https://github.com/apple/sourcekit-lsp/pull/1508
@swift-ci test windows


Chrome Canary jss-plugin-default-unit issue Failed to execute 'px' on 'CSS': The provided double value is non-finite.

I'm seeing an issue with Material-UI v5 alpha on chrome canary.  Not sure the scope meaning which material-ui versions, user error, or browser bug, but I figured I would throw the issue here for SEO purposes at the very least.
On most browsers I don't see any issues.  But for Canary I see:
jss-plugin-default-unit.esm.js:208
react-dom.production.min.js:216 TypeError: Failed to execute 'px' on 'CSS': The provided double value is non-finite.
    at l (jss-plugin-default-unit.esm.js:208)
    at Array.onProcessStyle (jss-plugin-default-unit.esm.js:232)
    at e.t.onProcessStyle (jss.esm.js:1257)
    at e.t.onProcessRule (jss.esm.js:1246)
    at Array.forEach (<anonymous>)
    at e.t.process (jss.esm.js:871)
    at new e (jss.esm.js:1039)
    at e.t.createStyleSheet (jss.esm.js:2030)
    at I (makeStyles.js:97)
    at makeStyles.js:236

I understand it may be hard to recreate this if it is not pervasive (not cause by my poor user behavior)

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
It is causing my site to crash
Expected Behavior 🤔
Should render my site 👍
Steps to Reproduce 🕹
const styles = (theme) => ({
  fancyClass: {
    marginLeft: -theme.spacing(1)
  }
})

Context 🔦
I'm using gatsby (latest), material-ui (next)
Your Environment 🌎
  System:
    OS: macOS 11.1
    CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
    Memory: 683.53 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.1.0 - ~/.nvm/versions/node/v14.1.0/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.7 - ~/.nvm/versions/node/v14.1.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.0 - /usr/local/bin/pod
    Homebrew: 2.6.1 - /usr/local/bin/brew
    pip2: 19.3.1 - /usr/local/bin/pip2
    pip3: 20.2.1 - ~/.pyenv/shims/pip3
    RubyGems: 3.0.3 - /usr/bin/gem
  Utilities:
    CMake: 3.19.1 - /usr/local/bin/cmake
    Make: 3.81 - /usr/bin/make
    GCC: 4.2.1 - /usr/bin/gcc
    Git: 2.20.1 - /usr/local/bin/git
    Clang: 1<IP_ADDRESS> - /usr/bin/clang
    FFmpeg: 4.3.1 - /usr/local/bin/ffmpeg
  Servers:
    Apache: 2.4.46 - /usr/sbin/apachectl
  Virtualization:
    Docker: 20.10.0 - /usr/local/bin/docker
  SDKs:
    iOS SDK:
      Platforms: iOS 14.3, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
  IDEs:
    Android Studio: 4.1 AI-201.87<IP_ADDRESS>53283
    Nano: 2.0.6 - /usr/bin/nano
    Sublime Text: 3176 - /usr/local/bin/subl
    VSCode: 1.52.1 - /usr/local/bin/code
    Vim: 8.2 - /usr/bin/vim
    Xcode: 12.3/12C33 - /usr/bin/xcodebuild
  Languages:
    Bash: 3.2.57 - /bin/bash
    Go: 1.12.5 - /usr/local/bin/go
    Java: 11.0.2 - /usr/bin/javac
    Perl: 5.28.2 - /usr/bin/perl
    PHP: 7.3.24 - /usr/bin/php
    Protoc: 3.14.0 - /usr/local/bin/protoc
    Python: 3.8.6 - /Users/bneigher/.pyenv/shims/python
    Python3: 3.8.6 - /Users/bneigher/.pyenv/shims/python3
    R: 4.0.3 - /usr/local/bin/R
    Ruby: 2.6.3 - /usr/bin/ruby
  Databases:
    MySQL: 10.14 - /usr/local/mysql/bin/mysql
    PostgreSQL: 13.1 - /usr/local/bin/postgres
    SQLite: 3.32.3 - /usr/bin/sqlite3
  Browsers:
    Chrome: 87.0.4280.88
    Chrome Canary: 89.0.4371.0
    Firefox: 70.0.1
    Firefox Developer Edition: 72.0
    Safari: 14.0.2

Perhaps something weird with the jss plugin is noncombat with something on deck for Chrome? Could be an issue

Now for my hypothesis.  If I can't use floats on 'px' values with makeStyles, I believe this is going to affect many people who calculate positions... probably an anti-pattern, but must be pervasive nonetheless

How can we reproduce?

Okay. The reproduction was due to how negative spacing works.  This is probably operator error, but its strange that this only crashes on Canary (and maybe other browsers)
Essentially this breaks:
marginLeft: -theme.spacing(1)

It needs to be changed to:
marginLeft: theme.spacing(-1)

This goes for any calculation with this

Related to #24519.

Related to #24519.

I have opened https://github.com/cssinjs/jss/issues/1445 on JSS to track the issue.

I have opened https://github.com/cssinjs/jss/issues/1445 on JSS to track the issue.

I'll found my problem. JSS trying to calculate with NaN which can be set in some custom styles. But my problem was with custom breakpoints (https://material-ui.com/customization/breakpoints/#custom-breakpoints). When I disable "xs" and "xl" breakpoints, Material-UI still trying to generate styles for these breakpoints, but these breakpoints didn't have value. So I fixed my problem with adding value to custom breakpoints even I don't use them:
export const breakpoints: BreakpointsOptions = {
  keys: ["sm", "md", "lg"],
  values: {
    // @ts-ignore
    xs: 0, // <-- I have added value to xs here
    sm: 0,
    md: 764,
    lg: 1366,
  },
};

declare module "@material-ui/core/styles/createBreakpoints" {
  interface BreakpointOverrides {
    xs: false; //<-- but it's disabled here
    xl: false;
  }
}

I'll found my problem. JSS trying to calculate with NaN which can be set in some custom styles. But my problem was with custom breakpoints (https://material-ui.com/customization/breakpoints/#custom-breakpoints). When I disable "xs" and "xl" breakpoints, Material-UI still trying to generate styles for these breakpoints, but these breakpoints didn't have value. So I fixed my problem with adding value to custom breakpoints even I don't use them:
export const breakpoints: BreakpointsOptions = {
  keys: ["sm", "md", "lg"],
  values: {
    // @ts-ignore
    xs: 0, // <-- I have added value to xs here
    sm: 0,
    md: 764,
    lg: 1366,
  },
};

declare module "@material-ui/core/styles/createBreakpoints" {
  interface BreakpointOverrides {
    xs: false; //<-- but it's disabled here
    xl: false;
  }
}


error no working

lxml.etree.XMLSyntaxError: Document is empty, line 1, column 1

What is in the Powerpoint file you are attempting to convert to SVG?


Finished benchmark fix

Thanks @bartosh for this PR.
For the record: This PR moves from Yahoo based ^GSPC benchmark to Google based SPY benchmarking. This change is required due to the recent unadopted Yahoo Finance API change which breaks the downloads through Pandas.

Thanks for this fix, Ed!


angular js 1.6

Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.6/$injector/modulerr?p0=try&p1=Error%3A [%24injector%3Anomod] http%3A%2F%2Ferrors.angularjs.org%2F1.6.6%2F%24injector%2Fnomod%3Fp0%3Dtry
    at http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A7%3A76
    at http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A26%3A408
    at b (http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A25%3A439)
    at http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A26%3A182
    at http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A42%3A290
    at p (http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A8%3A7)
    at g (http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A42%3A138)
    at hb (http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A46%3A250)
    at c (http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A22%3A19)
    at Uc (http%3A%2F%2Flocalhost%3A8000%2Fsrc%2Fjs%2Fangular.min.js%3A22%3A332)
at angular.min.js:7
at angular.min.js:43
at p (angular.min.js:8)
at g (angular.min.js:42)
at hb (angular.min.js:46)
at c (angular.min.js:22)
at Uc (angular.min.js:22)
at we (angular.min.js:21)
at angular.min.js:334
at HTMLDocument.b (angular.min.js:38)

I'm submitting a ...

[ ] bug report
[ ] feature request
[ ] other (Please do not submit support requests here (see above))

Current behavior:

Expected / new behavior:

Minimal reproduction of the problem with instructions:

AngularJS version: 1.6.6
[$injector:modulerr]

This sounds like a general support question. Please, use one of the appropriate support channels for these types of questions.
GitHub issues are reserved for bug reports and feature requests.
Thx!


Script & Record Schema Design Lesson

[x] Draft Script
[ ] Script in Review
[x] Set up Recording Studio at Home
[ ] Create diagrams for recording
[ ] ~Record w/ Recording Studio~
[ ] Record w/ Loom

Training issues are now in Jira. Closing this.


resources: 1.7.0 -> 1.7.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for resources is: Monitor your system resources and processes
meta.homepage for resources is: https://github.com/nokyan/resources
meta.changelog for resources is: https://github.com/nokyan/resources/releases/tag/1.7.1
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.7.1 with grep in /nix/store/psxa6knacgd96nihf97did11c85xyyf8-resources-1.7.1
found 1.7.1 in filename of file in /nix/store/psxa6knacgd96nihf97did11c85xyyf8-resources-1.7.1

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

resources

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/psxa6knacgd96nihf97did11c85xyyf8-resources-1.7.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A resources https://github.com/r-ryantm/nixpkgs/archive/45d879b3a69310ddbbb8d5d5cef078c3b3ae55d3.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/45d879b3a69310ddbbb8d5d5cef078c3b3ae55d3#resources

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/psxa6knacgd96nihf97did11c85xyyf8-resources-1.7.1
ls -la /nix/store/psxa6knacgd96nihf97did11c85xyyf8-resources-1.7.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

resources

Maintainer pings
cc @lukas-heiligenbrunner @EwuUwe for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

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

The changelog link is missing a v prefix.


Get rid of bookmarks and saved searches

Are we generally against these features in blacklight?

In Pom, yes, but not Orangelight


Blocks was broken by my deploy-hash change

The result format of /compile in the server changed due to my deploy hash changes in commit 4c95b471d1f45b34edf686bed407979784e14de8  I forgot to update the blocks UI.  Need to fix that ASAP

@stefan-j FYI, hold off before merging current upstream changes, to avoid interrupting your work.

Yeah I noticed this on code.world/blocks. I haven't yet taken a look at the new hashing system, but I can probably update the blocks UI accordingly this weekend.

I'll fix it.  Just wanted to bring this up so you didn't merge in changes and then get interrupted to sort out the mess.

@stefan-j In case you didn't see it, I did fix this.  It's now safe to pull from upstream.


go live option not showing

there was a go live option just after CRLF written but now it is showing there and i am not able to go live . Kindly help
hope you will help.

This option is contributed by the LiveServer extension and I suspect you might no longer have installed this extension.


Error when deploying master

This is the current error message:
/usr/bin/env: 'node': No such file or directory

make: *** [web/dist] Error 127

Makefile:4: recipe for target 'web/dist' failed
{"code":2,"message":"The command '/bin/sh -c make web/dist' returned a non-zero code: 2"}
The command '/bin/sh -c make web/dist' returned a non-zero code: 2
----------------------
Deploy failed!
Error: {"code":2,"message":"The command '/bin/sh -c make web/dist' returned a non-zero code: 2"}
The command '/bin/sh -c make web/dist' returned a non-zero code: 2

Something bad happened. Cannot deploy "nowcode"

Fixed when upgrading to gulp 4 and other dependencies.


Dev build broken in Travis on Linux (from 17 Nov 2016)

First failed in Commit 1fc1fba 'Improve reliability of reloadOnChange tests', on 2016-11-17.
Error logs in Travis (only failing on Linux):
info:   Discovered:  Microsoft.Extensions.Configuration.FunctionalTests
info:   Starting:    Microsoft.Extensions.Configuration.FunctionalTests
fail:     Microsoft.Extensions.Configuration.Test.ConfigurationTests.CreatingOptionalFileInNonExistentDirectoryWillReload [FAIL]
info:       Assert.Equal() Failure
info:       Expected: JsonValue1
info:       Actual:   (null)
info:       Stack Trace:
info:         /home/travis/build/aspnet/Configuration/test/Microsoft.Extensions.Configuration.FunctionalTests/ConfigurationTests.cs(612,0): at Microsoft.Extensions.Configuration.Test.ConfigurationTests.d__33.MoveNext()
Note that the Commit included changes to the file test\Microsoft.Extensions.Configuration.FunctionalTests\ConfigurationTests.cs, so is almost certainly related.
The broken Dev build is affecting pull request validation (that branched from later versions of Dev).

This test has actually been failing sporadically (30-40% of the time) for a very long time only on Linux on our internal CI.  Feel free to continue to help investigate, this issue is being tracked by https://github.com/aspnet/Configuration/issues/468


Use Redis 6.0

https://github.com/pydanny/cookiecutter-django/blob/6f02a737bdf7b6bfaca94511587e30e7e6cfa344/{{cookiecutter.project_slug}}/local.yml#L67
Redis 6.0 had some nice features added. I'm not sure about stability of those features, but for the most part, for web devs, Redis shouldn't have changed to much between major versions to be unstable. So should cookiecutter-django upgrade Redis?

I think the Redis-py library supports it, but it doesn't seem widely available on hosting platforms, in case people want to use it outside of Docker:

Heroku offers Redis 4.0 and 5.0 at the moment: https://devcenter.heroku.com/articles/heroku-redis#version-support-and-legacy-infrastructure
AWS Elasticache offers 2 up to 5.0.6 (as far as I can tell)
Google memorystore seems to support only up Redis 5.0

Ah ok, I'll ping once the hosting platforms have them upgraded. In the meantime, here's a task list:

[ ] GCP
[ ] AWS
[ ] Heroku

Out of curiosity, I wonder how many people still use Heroku. I've just been hearing it's been dying down quite a bit in the Django community with integration become a little more difficult over the years.

Heroku support version 6 by default.
AWS Elasticache offers 6 already.
Google memorystore is just support up to version 5.0.7

Heroku support version 6 by default.
AWS Elasticache offers 6 already.
Google memorystore is just support up to version 5.0.7

@browniebroke GCP finally supports 6.X


Is it possible to extend the packing_rectangles.ipynb to support multiple bins

Is it possible to extend packing_rectangles.ipynb example in a such way where the items would be packed into multiple bins. Or how should I go about implementing the support for multiple bins.
Those bins might even have varying size and the goal is to select those bins, which minimize the used bin area.

Are these also 2D bins? if only 1D, then you have a typical bin packing problem, see for example this model from Hakan Kjellerstrand:
http://www.hakank.org/cpmpy/bin_packing.py
http://www.hakank.org/cpmpy/bin_packing_laurent.py
The second one might be more readable. This could be extended to the 2D case too I expect. It might not be very scalable, but there are tricks for that too.
Does this help?

This helps a bit. I've come to the conclusion that my problem is more complex than I realized, so I'm still not sure how I will actually solve it.
Shortly, I have n number of circle reel objects that need to be packed onto pallets. Both the reels and pallets can have varying sizes and the reels need to be packed so that the combined area of the pallets is minimal. But the number of pallets required, the size of those pallets and the circular objects make this problem a very complex combination.


"sign_and_send_pubkey: signing failed: agent refused operation" when waking the PC from sleep

Hello,
I am using your tool since I discovered it without any big issues. However, because I am always putting my PC to sleep when I'm done for the day I have noticed something which I didn't report yet (See reason below). After waking up the PC from sleep, the program is still running and working but the first ssh session I am trying to open afterwards always fails with this error message:

sign_and_send_pubkey: signing failed: agent refused operation

If I retry connecting, then the pinentry dialog pops up and after entering my master password I can connect to ssh just fine, every other session also works without any error (side question: Is it supposed to never ask for my pin even though I have set

default-cache-ttl 7200
max-cache-ttl 28800

in my gpg-agent.conf? If not, I'll open another report to track.)
I don't know exactly if it's due to your tool or something within gnupg, that's why I haven't reported it although I encountered that problem for weeks now.
Thanks for your answer in advance

Hi - I also always putting my PC to sleep and it works OK after waking up, so it may be a bit difficult for me to answer. The only thing I added to the "protocol" is the gui.ignore_session_lock configuration and it deals with locking a session, not sleeping, so you may want to run win-gpg-agent with debug switch and use Sysinternals DebugView to collect the logs to see what is going on. Not really sure what else we could do here.
If it supposed to ask for you for password or not may be dependent on did you stored credentials in Windows Credential Manager or not. If you did - you are not supposed to see password ever again because it will be inputted for you silently.

Thanks for the feedback, I'll definitely check with DebugView to see what's happening. To be fair, I opened this report out of my memory - I recently switched to win 11 and haven't used ssh enough times to remember whether the issue currently persists.
As for the password: No, I haven't stored it, I don't even see the "remember me" option when using your pinentry dialog. All I did was unzipping the package and starting the exe. It asks for the password to my keys exactly once and then reuses it until I either put the pc to sleep (which caused the issue to appear, at the second try it asks for my password then) or restart the tool which also asks then for the password for the very first session I try to open.

Okay, now that I woke my PC from sleep I tried again to connect while having DebugView open and the debug flag enabled. This is what I got:

The next connection attempt requests the password for my private key and I can successfully connect. Retrying the connection and checking the log shows that those two messages appear every time I try to connect, even though the connection doesn't fail anymore. Is this helpful or do you need more information?

SSH handler returned EOF is absolutely normal - that is how pipe is being closed :) Try to run ssh jellyfin -vvv to see what is actually going on. I have a feeling you are looking in the wrong place - you may actually have gpg-agent running in Debian of something similar.

Please, feel free to re-open this if you have found the reason or have any additional information. For me it looks like there is an "extra" gpg-agent running somewhere which takes the first hit and denies access. Meantime proper chain takes over as the result of startup, overwrites environment pointing to the right place and second hit works.

It took me a few days to collect more information because first I thought it was simply RTFM (I honestly didn't ever disable the ssh-agent that came with windows) and to be really sure I wanted to reboot but as I am lazy to reboot it didn't happen until yesterday.
I tried it a few times again and most of the time it fails so here's the log of ssh -vvv $_HOST (tried with different hosts). I am not really used to ssh operations so maybe you can spot something that's wrong. Sensitive information is made unreadable but aside from that the log is untouched:
PS C:\Users\inter> ssh -vvv rp-home
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug1: Reading configuration data C:\\Users\\inter/.ssh/config
debug1: C:\\Users\\inter/.ssh/config line 54: Applying options for rp-home
debug1: C:\\Users\\inter/.ssh/config line 87: Applying options for *
debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
debug2: resolve_canonicalize: hostname *.*.*.* is address
debug2: ssh_connect_direct
debug1: Connecting to rp-home [****] port 22.
debug1: Connection established.
debug3: Failed to open file:C:/Users/inter/.ssh/id_rsa error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_rsa.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_rsa type -1
debug3: Failed to open file:C:/Users/inter/.ssh/id_rsa-cert error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_rsa-cert.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_rsa-cert type -1
debug3: Failed to open file:C:/Users/inter/.ssh/id_dsa error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_dsa.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_dsa type -1
debug3: Failed to open file:C:/Users/inter/.ssh/id_dsa-cert error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_dsa-cert.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_dsa-cert type -1
debug3: Failed to open file:C:/Users/inter/.ssh/id_ecdsa error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_ecdsa.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_ecdsa type -1
debug3: Failed to open file:C:/Users/inter/.ssh/id_ecdsa-cert error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_ecdsa-cert.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_ecdsa-cert type -1
debug3: Failed to open file:C:/Users/inter/.ssh/id_ed25519 error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_ed25519.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_ed25519 type -1
debug3: Failed to open file:C:/Users/inter/.ssh/id_ed25519-cert error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_ed25519-cert.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_ed25519-cert type -1
debug3: Failed to open file:C:/Users/inter/.ssh/id_xmss error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_xmss.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_xmss type -1
debug3: Failed to open file:C:/Users/inter/.ssh/id_xmss-cert error:2
debug3: Failed to open file:C:/Users/inter/.ssh/id_xmss-cert.pub error:2
debug1: identity file C:\\Users\\inter/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.4p1 Debian-5
debug1: match: OpenSSH_8.4p1 Debian-5 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to ***** as '*****'
debug3: hostkeys_foreach: reading file "C:\\Users\\inter/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file C:\\Users\\inter/.ssh/known_hosts:16
debug3: load_hostkeys: loaded 1 keys from ****
debug3: Failed to open file:C:/Users/inter/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm<EMAIL_ADDRESS>debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos<EMAIL_ADDRESS>debug2: compression stoc<EMAIL_ADDRESS>debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher<EMAIL_ADDRESS>MAC: <implicit> compression: none
debug1: kex: client->server cipher<EMAIL_ADDRESS>MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:HP8**********************
debug3: hostkeys_foreach: reading file "C:\\Users\\inter/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file C:\\Users\\inter/.ssh/known_hosts:16
debug3: load_hostkeys: loaded 1 keys from ****
debug3: Failed to open file:C:/Users/inter/.ssh/known_hosts2 error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
debug1: Host '****' is known and matches the ECDSA host key.
debug1: Found key in C:\\Users\\inter/.ssh/known_hosts:16
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: cardno:FF** 4***** ED25519 SHA256:zGYqOY****************** agent
debug1: Will attempt key: C:\\Users\\inter/.ssh/id_rsa
debug1: Will attempt key: C:\\Users\\inter/.ssh/id_dsa
debug1: Will attempt key: C:\\Users\\inter/.ssh/id_ecdsa
debug1: Will attempt key: C:\\Users\\inter/.ssh/id_ed25519
debug1: Will attempt key: C:\\Users\\inter/.ssh/id_xmss
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256<EMAIL_ADDRESS>debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: cardno:FF** 4******* ED25519 SHA256:zGYqOY*********************** agent
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: cardno:FF** 4******** ED25519 SHA256:zGYqOY7************************* agent
debug3: sign_and_send_pubkey: ED25519 SHA256:zGYqOY7******************************
debug3: sign_and_send_pubkey: signing using ssh-ed25519
sign_and_send_pubkey: signing failed: agent refused operation
debug1: Trying private key: C:\\Users\\inter/.ssh/id_rsa
debug3: no such identity: C:\\Users\\inter/.ssh/id_rsa: No such file or directory
debug1: Trying private key: C:\\Users\\inter/.ssh/id_dsa
debug3: no such identity: C:\\Users\\inter/.ssh/id_dsa: No such file or directory
debug1: Trying private key: C:\\Users\\inter/.ssh/id_ecdsa
debug3: no such identity: C:\\Users\\inter/.ssh/id_ecdsa: No such file or directory
debug1: Trying private key: C:\\Users\\inter/.ssh/id_ed25519
debug3: no such identity: C:\\Users\\inter/.ssh/id_ed25519: No such file or directory
debug1: Trying private key: C:\\Users\\inter/.ssh/id_xmss
debug3: no such identity: C:\\Users\\inter/.ssh/id_xmss: No such file or directory
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
****@*****: Permission denied (publickey).

My system was freshly installed a few weeks ago, I only installed gnupg (via chocolatey; not gpg4win, only gpg alone) and your tool and imported my public key into gpg while my private key is kept on a Nitrokey Start which is always connected to my PC. So unless I miss something there should be no extra agent running which could interfere, I am connecting right to my ssh hosts via openSSH coming with Windows (11), not via WSL or something else as middle man

I do not really have much to offer here, sorry. This tool is only as good as underlying GnuPG tools are. So it looks to me like your computer wakes up, you are trying to connect, everything is OK, key is found but sign_and_send_pubkey: signing failed: agent refused operation. This to me, judging by the absence of errors in win-gpg-agent debug output, it looks like request reached gpg-agent and get refused there. So if you really want to get to the bottom of it next step would be to turn on gpg-agent's debug log in gpg-agent configuration by setting various debug level and log-file flags. I would not be surprised if you'd have to learn how to get debug output from scdaemon.exe which in GnuPG is actually working with hardware cards...


Other DQMC efforts

Hi, great to see more Julia DQMC stuff! Just to make sure you haven't missed it, are you aware of the other efforts over at StableDQMC.jl, MonteCarlo.jl, and my original DQMC code in https://github.com/carstenbauer/dqmc ? Would be great to make clear how they relate to each other.

Your packages look really awesome and cool! Not just your DQMC ones either, a lot of them are very handy!
For instance, your BinningAnalysis.jl package is very nice! And the discussion in your docs for ThreadPinning.jl regarding the threading issues with using OpenBLAS vs MKL are super helpful! I wasted a week of my life on that problem in grad school...
Thank you for reaching out! I have been slammed during the first year of my postdoc, but I was actually planning on reaching out to you myself in a few months once things calmed down a bit for me, and some projects with collaborators started getting off the ground.
Your scipost article that goes along with your StableDQMC.jl package is a really useful resource! I plan on citing that paper (and your actual dissertation) in basically every future DQMC related paper I write, as they are both very valuable resources for people trying to understand the nuts and bolts of DQMC 😅

Glad you find some of my/our work useful! While I'm not directly in physics anymore, we can definitely chat more about what your plans are and if there's room for collaboration (in whatever form).
Regarding the Scipost article, I'm really happy that you find it useful! I wrote it during my PhD because I spent soo much time on this stuff and thought that future PhD students shouldn't have to suffer as much as I did. So, it's close to my heart :D
Most of the papers about these stabilization techniques were rather math focused and, in some sense, "unpractical" if you understand what I mean. Ironically, my paper was almost rejected for exactly this reason (because it wasn't math heavy enough, i.e. no real proofs).


Option to display operationId

A lot of code generators use this as the function name for the method. It would be very useful if there was a toggle to show this on the docs.

I am also interested in that option, any news ?


Use latest fancybox version

This is significantly better for viewing images, especially on mobile. It can also be used to better display YouTube, Vimeo, and MP4 links.

CDN uses it, this has been resolved.


python310Packages.griffe: 0.22.2 -> 0.23.0

Description of changes
https://github.com/mkdocstrings/griffe/blob/master/CHANGELOG.md#0230---2022-10-26

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 198832 run on x86_64-linux 1

5 packages built:

griffe (python310Packages.griffe)
netbox
python310Packages.mkdocstrings-python
python39Packages.griffe
python39Packages.mkdocstrings-python


Replace abandoned, buggy dependency Downsize

Issue Summary
Casper, along with any other theme that uses post excerpts, will fail to render the front page when an excerpt ends in a < (less-than sign), due to an index-out-of-range error that exists in the downsize  dependency.
Development on Downsize is effectively abandoned as of 2014. A pull request that I submitted in 2021  has not been reviewed, nor have other issues and pull requests about other bugs. I recommend replacing this dependency as soon as possible.
There does exist an actively maintained fork by mansona with the npm package name downsize-cjs, with a few changes, notably removal of the XRegExp dependency to make it a pure Javascript package, although it requires Node 10+ for Unicode support. I have submitted the same bugfix as a pull request on that fork as well.
Steps to Reproduce

Create a Ghost blog with the default Casper theme.
Create and publish a post where the 50th "word" is a less-than sign (<), or otherwise results in that character being the last character in the excerpt.
Attempt to view the front page.

Ghost Version
5.24.2
Node.js Version
14.20.0
How did you install Ghost?
DigitalOcean droplet
Database type
MySQL 8
Browser & OS version
No response
Relevant log / error output
No response
Code of Conduct

[X] I agree to be friendly and polite to people in this repository

Hey @bugQ thanks for the suggestion - I wasn't aware of the fork. A PR would be very welcome here.

Hi @bugQ! Any updates on PR? Will it be merged?

Hi @bugQ! Any updates on PR? Will it be merged?

I have no idea.  I may have been incorrect in saying that the fork is actively maintained, since it has been 8 months with no activity.

Hey sorry I missed your PR on the fork, it is actively being maintained 😂 is this something you still want to move along?

Yes! We got the patch in! I will make a PR here to change the dependency.


[BUG] liblonghorn sends integer fields in longhorn protocol as host endianness and longhorn-engine always expects litte endian

Describe the bug
liblonghorn transmits messages in the longhorn protocol with the integer fields using the host system's endianness.
The longhorn-engine used little endian explicitly for the longhorn protocol.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Perform '....'
See error

Expected behavior
Longhorn uses the same protocol regardless of the endianness of the systems running it.
Log or Support bundle
If applicable, add the Longhorn managers' log or support bundle when the issue happens.
You can generate a Support Bundle using the link at the footer of the Longhorn UI.
Environment

Longhorn version:
Installation method (e.g. Rancher Catalog App/Helm/Kubectl):
Kubernetes distro (e.g. RKE/K3s/EKS/OpenShift) and version:

Number of management node in the cluster:
Number of worker node in the cluster:

Node config

OS type and version:
CPU per node:
Memory per node:
Disk type(e.g. SSD/NVMe):
Network bandwidth between the nodes:

Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VMWare/KVM, Baremetal):
Number of Longhorn volumes in the cluster:

Additional context
Add any other context about the problem here.

Adding to the current sprint.

@keithalucas the liblonghorn PR merged, need to update instance-manager and engine repos as well.

@keithalucas the liblonghorn PR merged, need to update instance-manager and engine repos as well.
We don't need to backport this, because this will be regarded as a new change starting from 1.3.

The engine is done here:  https://github.com/longhorn/longhorn-engine/commit/979658dd158f845d8afba2321dc909dc4f640895


Fix typo in comment

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

@bors: r+
Thanks!

:pushpin: Commit da445b9 has been approved by alexcrichton

:hourglass: Testing commit da445b9 with merge 2593182...

:boom: Test timed out

Failures look unrelated, merging!


Symfony 2.7 is min requirements

https://github.com/GeniusesOfSymfony/WebSocketBundle/blob/master/DependencyInjection/CompilerPass/DataCollectorCompilerPass.php#L33 doesn't exist in Symfony 2.3
Call to undefined method Symfony\Component\DependencyInjection\Definition::setDecoratedService()

Decorated services were introduced in Symfony 2.5 ;)


Flickering when mouse hovers button

It flickers much faster, its just the screen-recording that makes it look slow.
When it flickers, I don't move the mouse at all.

/duplicate

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Extension is not working for individual problems

Not working, Not showing the tag of the problems

it does for me, please give me more detailed issue, with screenshots @UmeshKaushik16

@31b4

There is no error, if you see the company tag is green, also not showing the information

@UmeshKaushik16 it's working for me even inside of the problems. Im gonna be online in 20 min and we can look into this issue deeper to fix it.

@31b4 Sure, let me know where i can help you.

Good News, It is working for me now, I think might be a cache problem, I removed all cache and it started working.

It is only working on new Dynamic view.

It is only working on new Dynamic view.
Not working for normal view .

@UmeshKaushik16 Here is how to solve it:
The window has to be wide enough to fit the icons for editorial, here is a video solution:
https://github.com/31b4/Leetcode-Premium-Bypass/assets/75566095/db5b56d2-84c0-4bca-9acf-724c55795934

@31b4 Thanks

Hey @31b4 , I have one question, Just curious
How do you manage to update data, eg- Problems have updated companies' tag and related stuff? Or it not updated ?

I would have to create a new https://github.com/Edwardsoen/LeetcodeScrapper to make a completely new database @UmeshKaushik16


Ability to provide scopes from the request into the security backends

While we cleaned up the fork repository, we loose the delivered pull request. This is just a cleaner pull request with exact same content for the new feature.
As mentioned here, here's the first part of implementing the mentioned feature, so that if the AdditionalScopes flag is enabled in PolicyConfig, Authcrunch will forward the additional scopes provided by the client and append those to the ones already set on the identity provider.
We have on a caddy-security fork the second part ready, which is a flag on Caddyfile which allows for this functionality to be enabled, however we need a new release prior to doing this change since we cannot do a replace in the go.mod file to our fork 😀.
After this is merged and released we will do a pull request for the second part.

@dbranco-sdc , for licensing purposes. Each person on the Co-authored-by must create its own PR with commit on consent.yaml. After they consented by creating the commits, I will accept this PR.

@greenpau. Hello, I have seen that you have already added Paula and Sergiu consent into your branch repo.

@dbranco-sdc , was not able to get to it over the weekend. Will try finding time on weekdays.

@dbranco-sdc , I just finished with my current work on UI. Please rebase and re-test.

@dbranco-sdc , I just finished with my current work on UI. Please rebase and re-test.

It has been merge the latest changes from main into the pull request, and test still green

@dbranco-sdc , please address my comments 👍

Please check the latest changes implementing your suggestions, thanks in advance

Thank you all for contributing! 👍

@dbranco-sdc , please help with https://github.com/greenpau/caddy-security/issues/108
It might be related to the redirect changes.


Strange cypher query for order by descending

Hello.
When I create order by descending, then DESC clause generates only for last field. Sample:
// http://docs.neo4j.org/chunked/stable/query-order.html#order-by-order-nodes-in-descending-order
// START n=node(3,1,2)
// RETURN n
// ORDER BY n.age, n.name DESC

But for that query, DESC affected only last field, not all fields. Is it bug?

BTW: I check that query. And results for 'ORDER BY n.age, n.name DESC' and 'ORDER BY n.age DESC, n.name DESC' are different. Second query 'ORDER BY n.age DESC, n.name DESC' works correctly. But OrderByDescending function generates first query.

Hullo - What does your C# code look like?

So, I can share test from neo test:
public void OrderNodesByMultiplePropertiesDescending()
        {
            // http://docs.neo4j.org/chunked/stable/query-order.html#order-by-order-nodes-in-descending-order
            // START n=node(3,1,2)
            // RETURN n
            // ORDER BY n.age, n.name DESC

            var client = Substitute.For<IRawGraphClient>();
            var query = new CypherFluentQuery(client)
                .Return<object>("n")
                .OrderByDescending("n.age", "n.name")
                .Query;

            Assert.AreEqual("RETURN n\r\nORDER BY n.age, n.name DESC", query.QueryText);
            Assert.AreEqual(0, query.QueryParameters.Count);
        }

So you need to do something more like:
.OrderByDescending("n.age")
.OrderByDescending("n.name")

With that code I catch one more strange generation of cypher query.
Sample of test:
public void OrderNodesByMultiplePropertiesDescending()
        {
            // http://docs.neo4j.org/chunked/stable/query-order.html#order-by-order-nodes-in-descending-order
            // START n=node(3,1,2)
            // RETURN n
            // ORDER BY n.age, n.name DESC

            var client = Substitute.For<IRawGraphClient>();
            var query = new CypherFluentQuery(client)
                .Return<object>("n")
                .OrderByDescending("n.age")
                .OrderByDescending("n.name")
                .Query;

            Assert.AreEqual("RETURN n\r\nORDER BY n.age DESC\r\nORDER BY n.name DESC", query.QueryText); //generates two order by
            Assert.AreEqual(0, query.QueryParameters.Count);
        }

Cypher query generates on runtime, therefore two ORDER BY statement will be generates. And that problem, because we can't use asc and desc orders in one query.
May be should implement some query container which will store expressions and generate query only then result needed, not on runtime? That solution nice, because we may use different sequence of  method executing in CypherFluentQuery and when query will be generates we can combine stored expression very well.But now methods skip, take, orderby must be executed after return method. What do you think about that? We may try to implement that container.

Sorry - what are you trying to actually generate?

I think, that that fluent api:
query.OrderBy('n.age').OrderByDesc('n.name', 'n.Some')

should generate that query:
RETURN n
ORDER BY n.Age, n.Name DESC, n.Some DESC

But now will generates that query:
RETURN n
ORDER BY n.Age
ORDER BY n.Name, n.Some DESC

Test:
[Test]
        public void OrderNodesByMultiplePropertiesDescending()
        {
            // http://docs.neo4j.org/chunked/stable/query-order.html#order-by-order-nodes-in-descending-order
            // START n=node(3,1,2)
            // RETURN n
            // ORDER BY n.age, n.name DESC

            var client = Substitute.For<IRawGraphClient>();
            var query = new CypherFluentQuery(client)
                .Return<object>("n")
                .OrderBy("n.age")
                .OrderByDescending("n.name", "n.some")
                .Query;

            Assert.AreEqual("RETURN n\r\nORDER BY n.age, n.name DESC, n.some DESC", query.QueryText);
            Assert.AreEqual(0, query.QueryParameters.Count);
        }

OK gotcha, well, I think (think) it should be a relatively easy fix - do you fancy doing a pull request for it?
I can try to help if you need any help?

Ok, we are try to fix that. If will be some problems, I will contact with you in that issue. Thanks. :)

No! Thank you!!
On 19 January 2016 at 15:54, KupVadim<EMAIL_ADDRESS>wrote:

Ok, we are try to fix that. If will be some problems, I will contact with
you in that issue. Thanks. :)
—
Reply to this email directly or view it on GitHub
https://github.com/Readify/Neo4jClient/issues/145#issuecomment-172896434
.

Fix for that problem:
query.OrderByDescending('first', 'secod')
ORDER BY first, second DESC

is simple.
But for that problem:
query.OrderBy('n.age').OrderByDesc('n.name', 'n.Some')
RETURN n
ORDER BY n.Age
ORDER BY n.Name, n.Some DESC

We have 3 solutions, which we can implement:

Solution with changing interface after executing OrderBy to the IQueryOrdered interfaces, such as in LINQ, which contains ThenBy and ThenByDescending. But big refactoring needed for implement that.
Using flag in OrderBy and OrderByDescending:

if(orderWas)
{
 Mutate(w =>
                w.AppendClause(string.Format("ORDER BY {0}", string.Join(", ", properties))))
}
else
{
 Mutate(w =>
                w.AppendClause(string.Format(" {0}", string.Join(", ", properties))))
}
orderWas = true;

But that solution not pretty.
3. Adding methods ThenBy, ThenByDescending to ICypherFluentQuery interfaces:
 Mutate(w =>
                w.AppendClause(string.Format(" {0}", string.Join(", ", properties))))

that solution simple and in current style. But user should remember, that methods must be executed after OrderBy or OrderByDescending only. But now some restrictions already contains, for example OrderBy, Skip, Take should executed after Return method only.
What do you think about that? Which solution is better?

The best solution is the first one, as it most tightly matches the LINQ structure that .net devs are used to.
From a refactoring point of view, I would probably do a pull request for the OrderByDescending('first', 'second') issue as that solves your problem, and raise a new issue for the other, and if you want to do the pull request for that, do it then.
Splitting the pull requests makes it a bit easier to keep track of.
What do you think?

Yes, you can create new issue.
Yes, I think that 1 solution is good. But big refactoring needed. I prepare some pull request, after that we can discuss about implementation. May be you will have some ideas.

So, I prepare simple fix for problem with OrderByDescending('first', 'second'). You can closed that issue and create new for big problem. :)

I'm sorry, but may be prepare temp solution from 3 case? After that we can start implement first solution. We needed functional with both clauses, ASC and DESC, right now. That you think about that? Can we implement temp solution from 3 case and publish them to NuGet?

I don't want to publish a version with a temporary fix, I actually think the fix is probably not as bad as you think, in fact it should be relatively simple.
I would add another interface like:
public interface IOrderedCypherFluentQuery : ICypherFluentQuery {
   IOrderedCypherFluentQuery ThenBy(/**/);
   IOrderedCypherFluentQuery ThenByDescending(/**/);
}

and make OrderBy and OrderByDescending return that, and make the CypherFluentQuery implement IOrdereredCypherFluentQuery
So you'll only see when using OrderBy etc, but no massive refactoring...

Yes, you are right. That solution will work correctly.
I don't know, why I thinking that new interface IOrderedCypherFluentQuery must not contains methods OrderBy and OrderByDescending. It's my mistake of course.
So, I impelemet that fix right now and prepare pull request.

Ace!

So, you can close issue. I'm waiting NuGet package. Thank you for help with that problem. :)


Updated binaries to 2017.02.10

@sapslaj  can you merge this PR ?
there is a problem with some youtube urls and there is a fix that is part of the new binaries.


SAX parser with escaped characters

I am in a situation where I am consuming xml data via a Net HTTP stream.
First, I am writing this stream to a file as it comes in. The response body is in the following form:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <RetrieveImagesResponse xmlns="NWMLS:EverNet">
      <RetrieveImagesResult>
        <?xml version="1.0" encoding="utf-8"?>
        <Results xmlns="NWMLS:EverNet:ImageData:1.0">
          <ImagesListingNumber="874586">
            <Image>
              <ImageId>
                75624114
              </ImageId>
              <ImageOrder>
                0
              </ImageOrder>
              <UploadDt>
                2015-12-02T23:36:06.437
              </UploadDt>
              <BLOB>
                [Base64 Encoded Image]
              </BLOB>
            </Image>
          </Images>
        </Results>
    </RetrieveImagesResponse>
  </soap:Body>
</soap:Envelope>

You'll notice that the inner nodes are html encoded and there are two XML declarations. In order to read the file written to, I am using Nokogiri::HTML::SAX::Parser. The XML SAX parser did not like that there were two xml declarations.
When I attempt to read this back out with the SAX parser, it does not decode the inner nodes. It thinks that the inner nodes (starting with <?xml version="1.0" encoding="utf-8"?> and ending with </Results>) is one big text value for the RetrieveImagesResult node.
My current solution is to CGI.unescapeHTML each chunk that comes in through the Net HTTP stream when writing to the file. However, this is not reliable since, as far as I know, there is no guarantee that the chunk obeys the boundaries of where characters are escaped, i.e. it's possible for the first chunk to have &lt and the next chunk to contain the following ;.
Any idea how to handle this reliably and why this may be happening? Another thing of note is that if I grab the inner decoded nodes and call xml = Nokogiri::XML(raw_response), it does parse it correctly.
Thanks!

Hi,
Thanks for asking this question.
You say above:

It thinks that the inner nodes (starting with <?xml version="1.0" encoding="utf-8"?> and ending with </Results>) is one big text value for the RetrieveImagesResult node.

To be clear, this is exactly what your document is: the RetrieveImagesResult contains a string which happens to be escaped markup.
My advice is to grab that string from the parsed document, unescape it, and then parse it as a new document. Good luck!

@flavorjones thanks for the response. This is actually what I am currently doing, but is not the most memory efficient.
Is it possible to treat the escaped markup just like unescaped markup during SAX parsing?
The problem with unescaping the string from the parsed document all at once is that this string is quite large, containing a lot of binary data. My main objective is to avoid having the whole string in memory at any point in time.

No, unfortunately, this is a limitation to the XML representation you're dealing with. You may want to experiment with unescaping the original document and seeing if that works.
Alternatively, you could take the escaped string presented to your SAX handler and stream that into the push parser to be a bit more memory-efficient.

Ahh. Darn!
Does nokogiri set the tokens which determine when an element starts/ends for a Nokogiri::XML::SAX::Document firing off the start_element/end_element events, or is this buried inside libxml2 somewhere?

The tokenization of XML/HTML is buried inside libxml, unfortunately.
Again, how I would solve the problem is by doing two passes through the document.:

First to parse the "envelope" and extract the escaped XML contents (likely into a temporary file if the content is large). You can use the SAX parser for this if you like, as it sounds like you already have code to do this, and it is more memory-efficient to do so.
Second to unescape and parse the temporary file (the envelope's contents).

Any reason why this isn't a reasonable situation for your case?

Ok. Thanks for the help! I am doing something very similar. But, instead of doing #1, I am unescaping the whole thing, including the envelope, to a temporary file. Then reading the temp file with the SAX parser to do my processing of the binary data.
It definitely works, but I was looking for a way to either avoid unescaping or to do my unescaping during streaming to a temp file. As far as I know, if I need to escape the envelope's contents, I will need to have all of the contents in memory at once. Is this correct?


disable javadoc for modules which don’t have a public or protected cl…

javadoc fails with:

error: No public or protected classes found to document.

Even javadoc is disabled for micronaut-langchain-jlama modules which is compatible only with 21, running global javadoc fails with:
./gradlew javadoc
Type-safe project accessors is an incubating feature.
Project accessors enabled, but root project name not explicitly set for 'buildSrc'. Checking out the project in different folders will impact the generated code and implicitly the buildscript classpath, breaking caching.

> Task :javadoc FAILED
/Users/sdelamo/github/micronaut-projects/micronaut-langchain4j/micronaut-langchain4j-jlama/build/aggregation/javadoc/io/micronaut/langchain4j/jlama/JlamaModule.java:21: error: cannot access JlamaChatModel
import dev.langchain4j.model.jlama.JlamaChatModel;
                                  ^
  bad class file: /Users/sdelamo/.gradle/caches/modules-2/files-2.1/dev.langchain4j/langchain4j-jlama/0.35.0/81c627ec5dfca426264627c3b9b04167b20688ee/langchain4j-jlama-0.35.0.jar(/dev/langchain4j/model/jlama/JlamaChatModel.class)
    class file has wrong version 65.0, should be 61.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
/Users/sdelamo/github/micronaut-projects/micronaut-langchain4j/micronaut-langchain4j-jlama/build/aggregation/javadoc/io/micronaut/langchain4j/jlama/JlamaModule.java:22: error: cannot access JlamaEmbeddingModel
import dev.langchain4j.model.jlama.JlamaEmbeddingModel;
                                  ^
  bad class file: /Users/sdelamo/.gradle/caches/modules-2/files-2.1/dev.langchain4j/langchain4j-jlama/0.35.0/81c627ec5dfca426264627c3b9b04167b20688ee/langchain4j-jlama-0.35.0.jar(/dev/langchain4j/model/jlama/JlamaEmbeddingModel.class)
    class file has wrong version 65.0, should be 61.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
/Users/sdelamo/github/micronaut-projects/micronaut-langchain4j/micronaut-langchain4j-jlama/build/aggregation/javadoc/io/micronaut/langchain4j/jlama/JlamaModule.java:23: error: cannot access JlamaStreamingChatModel
import dev.langchain4j.model.jlama.JlamaStreamingChatModel;
                                  ^
  bad class file: /Users/sdelamo/.gradle/caches/modules-2/files-2.1/dev.langchain4j/langchain4j-jlama/0.35.0/81c627ec5dfca426264627c3b9b04167b20688ee/langchain4j-jlama-0.35.0.jar(/dev/langchain4j/model/jlama/JlamaStreamingChatModel.class)
    class file has wrong version 65.0, should be 61.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
/Users/sdelamo/github/micronaut-projects/micronaut-langchain4j/micronaut-langchain4j-jlama/build/aggregation/javadoc/io/micronaut/langchain4j/jlama/JlamaModule.java:35: error: cannot find symbol
            impl = JlamaChatModel.class)
                   ^
  symbol: class JlamaChatModel
/Users/sdelamo/github/micronaut-projects/micronaut-langchain4j/micronaut-langchain4j-jlama/build/aggregation/javadoc/io/micronaut/langchain4j/jlama/JlamaModule.java:39: error: cannot find symbol
            impl = JlamaStreamingChatModel.class
                   ^
  symbol: class JlamaStreamingChatModel
/Users/sdelamo/github/micronaut-projects/micronaut-langchain4j/micronaut-langchain4j-jlama/build/aggregation/javadoc/io/micronaut/langchain4j/jlama/JlamaModule.java:43: error: cannot find symbol
            impl = JlamaEmbeddingModel.class
                   ^
  symbol: class JlamaEmbeddingModel
6 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/Users/sdelamo/github/micronaut-projects/micronaut-langchain4j/build/tmp/javadoc/javadoc.options'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 1s

@melix any idea what we could do to workaround this?

Let me take a look at the Java 21 issue, but I think the initial problem, which is disabling javadoc for some modules, will not work when publishing to Maven Central, because javadocs are mandatory.

Issue should be fixed now. The empty javadocs are not a problem. Should they be, a better solution than disabling the javadocs would be to create a package-info.java file.


Allowed None log verbosity

Allowing None log verbosity so we can avoid setting a log verbosity for PaperQA logs entirely

Decided this was a bad idea, and I have extracted some of the value-add changes here into https://github.com/Future-House/paper-qa/pull/554