mouse_entered signal is not working if mouse mode has been set to MOUSE_MODE_CAPTURED when mouse is outside the window

Godot version
4.0.dev 49ac05550e4ce3b3489fad0a2addd907af1f5898
System information
Ubuntu 22.04, 6700xt
Issue description
When mouse is outside the window when Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) is called, then after calling Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) GUI is not behaving properly (it has no idea that mouse is hovering over them) and some signals like mouse_entered/mouse_exited are not called.
https://user-images.githubusercontent.com/6129594/184652538-00145e90-497b-45bb-b7db-d221ba1b1517.mp4
Steps to reproduce

Create new project
In ready add

    await(get_tree().create_timer(5).timeout)
    Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)

Add also

func _input(event: InputEvent) -> void:
	if event.is_action_pressed("ui_cancel"):
		Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)

Add two buttons to the main scene of the project
Start the project, move your mouse outside the window
When mouse gets captured click 'escape'
Ensure to not move mouse outside the window at any point from now on
Click one of the buttons, note that they are not highlighting when mouse is hovering over them

Alternative is to get reproduction project and follow steps from video attached above
Minimal reproduction project
MouseOverIssue.zip
This investigation was kindly sponsored by The Mirror

I investigated it and I have a proposal for the fix
I will create PR soon

This problem (which doesn't happen on Windows) comes from the fact, that the linuxbsd- and windows-display-servers behave differently. I opened a PR, that solves this difference.


gnome settings

[ ] Network DNS (https://<IP_ADDRESS>/dns)

https://github.com/developomp/pompup/commit/a070e14e1ca11c7502f1fe823b85998093606866


Make field name restrictions be more flexible in DOCX templates

When someone uses a variable like i in a DOCX template, it shouldn't necessarily be an error. It might be safest to make it just a warning.
E.g.,
{%p if i == "final" %}
{{ users[0].signature }}
{%p endif %}

BUT the list of reserved field names should never be offered for the user to ask a question about them. They should be treated like the other built-in fields.

InterpreterNotice - with variables.docx

Is it safe to say that reserved variables / field names shouldn't ever be in a display block (i.e. {{ var_here }})? Can't find the list of reserved names to check this intuition.

That would be the most common kind of usage, but it's just a result of the fact that most reserved words are functions. E.g., today is a reserved word that you will commonly reference in a template, but {{ today() }} is fine.
I think going the warning route might make the most sense here. It should wait until after the major refactors that I'm working on now though.


[backport] Add NCCL v2.4 support to docs

Backport of #2065

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit da6f669b308859d56313634dcb9702760dc063ef, target branch v5) succeeded!

LGTM!


Remove type param on client::Config

Like the last PR, for expediency there are some types made public here that really shouldn't be.

Thanks!


[ISSUE #2370]【Code Clean】Remove warning codes in [shenyu-plugin-monitor] module

// Describe your PR here; eg. Fixes #issueNo
[ISSUE #2370]【Code Clean】Clean warning codes in [shenyu-plugin-monitor]
Clean warning codes [shenyu-plugin-monitor]

Codecov Report

Merging #2485 (75e848f) into master (11465fd) will decrease coverage by 0.35%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2485      +/-   ##
============================================
- Coverage     60.06%   59.71%   -0.36%
+ Complexity     4148     4118      -30
============================================
  Files           646      646
  Lines         18190    18190
  Branches       1690     1689       -1
============================================
- Hits          10926    10862      -64
- Misses         6417     6480      +63
- Partials        847      848       +1

Impacted Files
Coverage Δ

...che/shenyu/sync/data/http/HttpSyncDataService.java
61.38% <0.00%> (-19.81%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
51.57% <0.00%> (-11.58%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
67.85% <0.00%> (-10.72%)
:arrow_down:

...apache/shenyu/admin/utils/ShenyuDictH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

...ache/shenyu/admin/utils/PluginHandleH2Trigger.java
63.63% <0.00%> (-9.10%)
:arrow_down:

.../apache/shenyu/admin/model/dto/BatchCommonDTO.java
50.00% <0.00%> (-7.15%)
:arrow_down:

...apache/shenyu/admin/model/dto/AuthPathWarpDTO.java
57.14% <0.00%> (-7.15%)
:arrow_down:

...org/apache/shenyu/admin/model/dto/AuthPathDTO.java
58.82% <0.00%> (-5.89%)
:arrow_down:

...in/response/strategy/NettyClientMessageWriter.java
69.56% <0.00%> (-4.35%)
:arrow_down:

...che/shenyu/admin/model/vo/DashboardUserEditVO.java
62.50% <0.00%> (-4.17%)
:arrow_down:

... and 23 more

Continue to review full report at Codecov.

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


Autorest Regen Preview to 3.0.0-alpha.20240303.3 by Dapeng Zhang from refs/pull/4306/merge

Triggered from https://github.com/Azure/autorest.csharp/pull/4306

API change check
API changes are not detected in this pull request.


hummus package not working

After building and running the server, it complains it can't find barretenber.wasm file.
I built barretenber package and got the barretenber.wasm but I couldn't find the correct folder to add it so hummus PoC works.

I was able to build. I am using node 14.17.0

I copied all files from barretenberg.js folder to barretenberg/hummus/node_modules and renamed it to barretenberg-es.

Updated file index.js in hummus/node_modules/barretenberg-es/dest-es/wasm/index.js to have this structure:

wasi_snapshot_preview1: {
                fd_close: () => { },
                fd_read: () => { },
                fd_write: () => { },
                fd_seek: () => { },
                fd_fdstat_get: () => { },
                fd_fdstat_set_flags: () => { },
                proc_exit: () => { },
                path_open: () => { },
                path_filestat_get: () => { },
                environ_sizes_get: () => { },
                environ_get: () => { },
                random_get: (arr, length) => {
                    const heap = new Uint8Array(this.memory.buffer);
                    for (let i = arr; i < arr + length; ++i) {
                        heap[i] = Math.floor(Math.random() * 256);
                    }
                },
            },

After those changes, it build and runs the example.
but after clicking "The Button", I have this error message:
Uncaught (in promise) TypeError: wasm.exports(...)[name] is not a function when trying to call this function from WASM file: create_note__init_verification_key.
I cannot find create_note__init_verification_key from barretenberg library.

It has a new version and hummus package doesn't exist anymore


Feat: Add an Ice client to get reactions from Ice.

Feat: Add an Ice client to get reactions from Ice.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ef46a5c). Click here to learn what that means.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master       #5   +/-   ##
=========================================
  Coverage          ?   21.48%
=========================================
  Files             ?        6
  Lines             ?      121
  Branches          ?        0
=========================================
  Hits              ?       26
  Misses            ?       95
  Partials          ?        0

Impacted Files
Coverage Δ

genotype_to_model/app.py
0% <ø> (ø)

genotype_to_model/ice_client.py
0% <ø> (ø)

Continue to review full report at Codecov.

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


[PE-D][Tester E] User guide missing writeup for tagging students

UG missing information about the tag command, although it is already implemented in the app

Labels: severity.Medium type.DocumentationBug
original: riccqi/ped#2

#165

#165


Automatic Version Detection

when opening the application should check if there is a newer version available and prompt the user to encourage upgrading.

Included in 0.8.7


[5.0.0.RC4] Infinispan ticket registry not working for Service Tickets

I'm not having any luck with the Infinispan ticket registry with respect to Service Tickets. I'm getting back that the ticket is invalid. I'm having Infinispan dump to disk, and I can see that the ST string is in the file. It just isn't validating it. From testing, the SSO ticket is working and persisting through restarts, it's just the ST that isn't working.
I've been digging through the code, trying to figure out how it works. There appears to be potentially some inconsistency with the expiration policy, and that may be the issue. I'm trying to figure out intent to better understand where the bug may be.
ExpirationPolicy.getTimeToLive() and ExpirationPolicy.getTimeToIdle() both say that a zero value indicates the time duration is not supported or is inactive.
CasCoreTicketsConfiguration shows in serviceTicketExpirationPolicy() that it is most likely using MultiTimeUseOrTimeoutExpirationPolicy, which returns a zero for getTimeToIdle(). InfinispanTicketRegistry.addTicket() uses both the live and idle times without examination. However, I think Infinispan might have issues with the zero second idle value. https://docs.jboss.org/infinispan/8.2/apidocs/org/infinispan/commons/api/BasicCache.html#put-K-V-long-java.util.concurrent.TimeUnit-long-java.util.concurrent.TimeUnit-
I see that the Infinispan unit tests are using NeverExpiresExpirationPolicy, which returns max int for idle, so the test isn't necessarily correct for what I think standard STs are going to be, assuming that my understanding of how this is supposed to work is correct.
The other oddity I noticed when trying to track this all down is that EhCacheTicketRegistry is using the ExpirationPolicy.getTimeToIdle() as both the idle and live time when interacting with EHcache. If I'm understanding this all correctly, that means that both of those values would be 0 for standard ST, and the EHcach documentation states that a zero means forever. So I think there is a bug there as well.
Both couchbase and memcache seem to be using the live time instead of the idle time. The to live time makes more sense.

Can you try with the latest snapshot? RC5-SNAPSHOT that is.

That worked for Infinispan.

Very nice. Thanks for the update.


Move account related methods from singleton to Account class

There's a ton of test refactoring in here too. It's added a new set of Chai matchers (NexmoChai), a single place to configure Chai (NexmoTestUtils) and a place to configure repetative configs e.g. Credentials.

I'm not convinced on the property method myself. There aren't enough endpoints + they don't change frequently enough to warrant the extra layer of indirection for someone reading the code IMO

@AlexLakatos I'm going to merge this to get the NexmoChai changes in to the main branch. We can revisit PATH() at DevRelWeek when we put together a plan for the library


Tags and categories pagination are broken

I have tried setting max_pagination_items: 1 in both tags and categories templates in order to have pagination items generated. Those links are broken. For example, in category "features"
http://localhost:8000/blog/categories/features
"Next page" link is rendered, but it points to http://localhost:8000/blog/categories/2. Shouldn't it point to http://localhost:8000/blog/categories/features/2?

Correct, my temporary workaround is to increase the pagination size: https://github.com/WyriHaximus/blog.wyrihaximus.net/blob/master/app/config/sculpin_kernel.yml#L1-L2
I've tried to unraffle this issue in the past but I'll revisit it, maybe @simensen has an idea how to fix this?
FYI set my index to a different size though: https://github.com/WyriHaximus/blog.wyrihaximus.net/blob/master/source/index.html#L5-L6

Thank you. I'll stay tuned to this issue. I assume that the issue is related to the skeleton and not to sculpin kernel itself, isn't it?

@falvarez nope, definitelly an issue of the kernel.

Thanks for the update :)


Website lenoxbot.com is down

Just wanted to check out features and docs, noticed that website is down:

Hey our bot is currently offline because we are migrating the bot to another database.
You can find further information on our support Discord server or at status.lenoxbot.com

The bot is back again, the website will come online soon!


Version
MSFT way of doing security:
Banning .exe
Banning C++
Banning sideloading
Banning web browsers
Force Cloud: Windows 365 Link
DEATH TO MSFT
YOU WILL OWN NOTHING AND BE HAPPY.


How to Display Caller Id from Phone's Contacts?

I've noticed as calls come in, it doesn't matter if the caller is in my contacts list, they're not resolving to the correct contact and displaying, meaning that caller ID is essentially useless on the phone..
For example, if I call from phone number: "+1<PHONE_NUMBER>"
And that number is saved in my devices contacts as: "Bob"
It displays as: +1234567890
On the CallKit incoming call screen. If I call from that phone directly to my device (not through CallKit), then the contact shows "Bob" as it's ringing in.
Any thoughts why this might be? How closely must the number match on the contact to make it resolve?

I faced same problem, I don't know it's about CallKit itself or Twilio Voice SDK but  this is my hack to solve the problem:
Twilio uses twi_from parameter in Voip Push data to show the caller name in CallKit.
Step 1) When you initiate the outgoing call on your server side, add a custom parameter like this:
$client->parameter([
	"name" => "x_caller_e164",
	"value" => "".$caller_phone_number
]);

Step 2) On this line before Twilio SDK analyzing Voip data and triggers the callInviteReceived function, I am manipulating the incoming voip push data. Like:
func incomingPushReceived(payload: PKPushPayload, completion: @escaping () -> Void) {
    let modifiedPayload = self.changeUserNameFromContactsBeforeAnalyzing(payload: payload)

    // The Voice SDK will use main queue to invoke `cancelledCallInviteReceived:error:` when delegate queue is not passed
    TwilioVoiceSDK.handleNotification(modifiedPayload, delegate: self, delegateQueue: nil)

    if let version = Float(UIDevice.current.systemVersion), version < 13.0 {
        // Save for later when the notification is properly handled.
        incomingPushCompletionCallback = completion
    }
}
private func changeUserNameFromContactsBeforeAnalyzing(payload: PKPushPayload) -> [AnyHashable : Any] {
    let modifiedPayload = payload
    let temp = modifiedPayload.dictionaryPayload as NSDictionary
    let userInfo = temp.mutableCopy() as! NSMutableDictionary

    if let twi_from = userInfo["twi_from"] as? String , x_from.count > 0 {
        //in getContactNameFromContacts function, I am searching twi_from parameter in phone contacts list. code your logic here.
        if let contactName = ContactsPermissionManager.shared.getContactNameFromContacts(twi_from){
            if  contactName.count > 0 {
                userInfo["twi_from"] = contactName
            }
        }
    }

    return userInfo as! [AnyHashable : Any]
}

After making those changes, you will see the your contact name in CallKit screen.
Final note, if you are using callInvite.from object to show caller phone number in your App like this, you will lost the caller ID in this situation, because we have replaced it with the name of the contact, if you need caller phone number as well, that's why I have added x_caller_e164 custom parameter as well. You can fetch the caller phone number like that:
        let realCallerPhoneNumber = callInvite.customParameters?["x_caller_e164"] ?? ""

You are done.
One caveat about the hack: Because we change the phone number with the contact's name, if you are using INStartAudioCallIntent intent, it will not work anymore. (When you tap the call record on phone call history, nothing will be happen, normally, you can redirect user to your app with the phone number tapped.)

Thank you!


Error while trying to import mqtt_client

Hi,
I am trying to follow the example from the Readme file for Node.js but when i try to import the mqtt_client I get following error
import mqtt_client from 'u8-mqtt/esm/node/index.mjs'
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Object.compileFunction (node:vm:352:18)
    at wrapSafe (node:internal/modules/cjs/loader:1033:15)
    at Module._compile (node:internal/modules/cjs/loader:1069:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Module._load (node:internal/modules/cjs/loader:827:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47

The good news is this problem is common to NodeJS new style modules, so there are lots of google-able material on it available. The bad news is there are a myriad of different solutions.There are several ways to fix it — you can rename your file to have an ‘.mjs’ extension. You can change your ‘package.json’ to be a module. You can use ‘require()’.  And probably a few more. See the NodeJS official docs:Modules: Packages | Node.js v20.2.0 Documentationnodejs.orgAnd for some outside article context:How to Fix "SyntaxError: Cannot use import statement outside of a module" Error in Nodesabe.ioOn Jun 7, 2023, at 1:02 AM, Sourabh Mhaisekar @.***> wrote:
Hi,
I am trying to follow the example from the Readme file for Node.js but when i try to import the mqtt_client I get following error
import mqtt_client from 'u8-mqtt/esm/node/index.mjs'
^^^^^^
SyntaxError: Cannot use import statement outside a module
at Object.compileFunction (node:vm:352:18)
at wrapSafe (node:internal/modules/cjs/loader:1033:15)
at Module._compile (node:internal/modules/cjs/loader:1069:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:827:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

Did this resolve your question?

Hey @shanewholloway sorry.. I forgot to reply you back.. Yep... it did solve the problem. Thanks for help and keeping the library alive.


Duplicated code points for bell-slash and map

Describe the bug
The last release is using the same code for different icons
bell-slash,,EC05
map,,EC05

To Reproduce
on this commit sets bell-slash
on this commit sets map
Expected behavior
Both icons must have different code points
Screenshots

Environment

OS: Mac, Windows
VS Code Version not used

I'm checking on the terminal.
The other icons on this release are ok.

Thanks for filling the issue! A few questions:

The last release is using the same code for different icons

When you say last release, do you mean the codicons npm package or the VS Code release? What version are you on?
Also, when looking at our csv export, I am not seeing the same values as you are. Where are you seeing those icons?

sorry, my bad 🤦🏼 ...

No worries, often times when there is a mixup like that in a commit it's usually fixed in another commit. Always checkout the latest in dist to see what the real values point to.


could not change soft link from /lib to /usr/lib

Description
I pulled a image from debian:sid, and try to install xfslib-dev, then found, apt gonna install a same file both in /lib and /usr/lib, then I found docker image linked /lib -> /usr/lib, does anyone know how to separate these two folder in docker image? Thanks.

Steps to reproduce the issue:

docker pull debian:sid
apt-get install xfslibs-dev

Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
(paste your output here)

Output of docker info:
(paste your output here)

Additional environment details (AWS, VirtualBox, physical, etc.):

Since sid is unstable, I suggest using debian:jessie instead.
If you need to use sid,  I suggest reporting this issue to the maintainer of the corresponding package of Debian.
A workaround will be as follows, but NOT recommended:
$ apt-get install busybox-static
$ rm /lib
$ busybox cp -r /usr/lib /lib

Since this is not an issue of Docker, I suggest closing this issue

Agreed, this does not look like an issue related to docker itself. Please keep in mind that the GitHub issue tracker is not intended as a general support forum, but for reporting bugs and feature requests. For other type of questions, consider using one of;

https://forums.docker.com
the Docker community Slack channel
StackOverflow

I'm going to close this issue because this is not a bug, but feel free to continue the conversation 👍


put a link to the actual website somewhere in this repo

doing a quick search for cadcloud doesn't yield results for finding the actual website (internet) not local build (intranet) for even browsing the website
https://justyour.parts

github has a little URL thingy for repos, and you can insert that above ☝ URL into this repo for people like me 🙋♂ who'd actually like to click around on the actual website without having to clone, etc etc to started with this project.
also couldn't hurt to put that URL somewhere in the readme, maybe i overlooked it, but i had to dig around through the source just to find the URL 😬
seems like a really ambitious project none the less, and look forward to seeing it develop. 💪

I will update that asap. Thanks for the feedback. That is really a project I like, I am focused at enhancing the backend for the moment but you will see soon some good improvements.


Feature/hee 221 block links component

New Block Links document type
Which contains a new Link Block compound type
Created a common content area restricted to only Block Links
Added to Blogs and Guidance and content blocks
Added template

Hi @Raq-HEE - Thanks for the PR and it looks good 👍

Thanks for comments @smanivasag , agreed with all but changing description type. SHould be ready for re-review.

Hi @Raq-HEE - Thanks for the PR and it looks good 👍

Thanks for comments @smanivasag , agreed with all but changing description type. Should be ready for re-review.

Thanks @Raq-HEE. Could I suggest to reload the following content nodes via repository-data/development/src/main/resources/hcm-actions.yaml so as to reload documents with block links sample content (for dev env):
/content/documents/lks/common: reload
/content/documents/lks/guidance-pages: reload
/content/documents/lks/blogposts: reload

Thanks!

Hi @smanivasag - I've just applied a change based on an additional requirement of allowing authors to select one or two columns. I've also pulled masters changes into this. The front end is also updated on the prototype app https://github.com/Manifesto-Digital/hee-prototypes/pull/17. Please re-review and let me know if you'd like to discuss in more detail.

Hi @smanivasag - I've just applied a change based on an additional requirement of allowing authors to select one or two columns. I've also pulled masters changes into this. The front end is also updated on the prototype app Manifesto-Digital/hee-prototypes#17. Please re-review and let me know if you'd like to discuss in more detail.

Thanks @Raq-HEE, looks good 👍
Do you think, it will be good to start the blockLinks document with Number of Columns field (rather than the very last field at the moment) so as to let the author/editor to choose the columns first before entering the content for it ? Thanks!


Secure field not working true in populate and in foreignkey fields.

Hi ,
When I change the primary key field to secure , all related foreign key fields persisted encoded ID in database which  I can't run a query over database . although when  create , update or populate a field , if we used secure foreign key in our schema , incorrect functionality happened in mean time .
Also when we use secure ID in nested object there is no process and transform with nested data happened .
I guess there are a lot of missed  scenario implementation for secure field happened.
Also I opened a new discussion  that related to this issue that you can find it in #35

It depends on the use-case. In my projects, I use secure IDs, and I store the secure IDs as foreign keys.
By the way, Service A can't guarantee that it can encode the foreign key of IDs of Service B responses, because all services may use different encoding(e.g. hashids where the seed is based on service name).
If you don't want to return encoded IDs, use transform: false in options of action/method. But I'm looking forward your thoughts about how it can be improved to solve your use-case and the written use-cases as well.

Thankyou @icebob .
Currently , I decided to write a special action for resolve entities by unsecure ids . and change the field secure property to true and also I write a get and set method for foreign key fields .
...
labels: {
  type: "array",
  max: 100,
  secure:true,
  get:({value})=> value?.map((xx: string) => this.encodeID(xx)),
  set:({value})=> value?.map((xx: string) => this.decodeID(xx)),
  populate: "v1.labels.resolveUnSecureId"
}
app: {
   type: "string",
   columnName: "app_Id",
   immutable: true,
   optional: true ,
   secure: true,
  // eslint-disable-next-line object-shorthand
    set: function ({ value }) {return this.decodeID(value);},
		populate: "apps.resolveUnSecureId",
        },
...

In my case everything working good and OK .
But If we have handle secure  in foreign keys and have an option in resolveEntities method to enable/disable Id transformation , we can achieve a good experience and lower code .

It's not totally clear to me. Could you start a draft PR to see your suggestions? I'm open to solving this problem


Added keys to tags in  component

Added keys to to tags in Next.JS  component to prevent duplication in rendered HTML when rewriting meta-tags in child components as best-practice approach.

From my understanding key is only needed for each item in an array. https://react.dev/learn/rendering-lists#keeping-list-items-in-order-with-key
Next.js's Head docs show using a key when Head is used multiple times on a single page: https://nextjs.org/docs/pages/api-reference/components/head
Can you explain why this change is needed? And the steps to reproduce?

Correct, the key property is only needed when Head is used multiple times.
Example
Head may be called in the most basic components/layout.tsx to set basic meta-information. layout.tsx is repsonsible for rendering the base layout of all pages in the starter example. A common use-case (for me), is to overwrite the meta-information on content-type level (i.e. component-level). This often results in basic pages having different attributes from taxonomy-term pages.
To prevent multiplication of those attributes, Head allows using said key attribute.
Using the Umami-Demo, pages/[...slug].tsx renders components/layout.tsx which then renders components/meta.tsx. Here, the meta:image attribute is provided. It is set to a static image.
As documented, a user may call Head again, later in the render process (for example in component/node--page.tsx) to set more attributes, or overwrite existing attributes. I observed that resetting the title attribute worked as expected. However trying to overwrite the og:image resulted in multiplication of the og:image-tag in the rendered HTML.
Reproduce

setting a fallback og:image in meta.tsx
setting more correct fallback-image to og:imge on components/node--page.tsx for nodes
(This should result in duplicate og_imge-tags)
rendering drupal-paragraphs within components/node--page.tsx
when rendering a paragraph with a custom flag (for example: "add as social-media image"), re-set og:image to it's final image via Head

Granted, steps 3 and 4 represent a worst-case scenario, however, step should be quite common.
Motivation
To give users a guideline on how to (correctly) set and overwrite Head attributes using next/head I proposed to add a namespaced key attribute.

Cheers @JohnAlbin
You're right, adding a prefix is not necessary, as React dedupes on html elements. I updated this PR to the latest commit in the main branch and removed the unnecessary prefixes. I also went ahead and removed the prefixes on og:image and renamed the key to use underscores to be more in-line with the code-style.
Thanks for your input.


Is it possible write SMT2 file from UHDM(Bypassing Yosys)?

I know that UHDM can be imported into Yosys AST, and after Yosys performs synthesis, it can generate an SMT2 file. But for some formal verification apps, synthesis is unnecessary, and importing into Yosys and synthesizing takes too much time. Is it possible to generate an SMT2 file directly from UHDM? If so, what do I need to do?
Thank you.

@easyformal , you'd have to write your own writer using the VPI (Or C++) APIs, probably a lot of work!
When using Synthesis, you don't have to perform any of the optimizations when you want to run formal proofs (Unless you are trying to debug Synthesis itself, which does not seem to be your problem).

Most of them have been optimized in this Yosys Hard fork (Which also supports Synlig/Sulreog/UHDM):
https://github.com/os-fpga/yosys_verific_rs

Thank you very much for your reply! I have already used Synlig + Surelog + UHDM + yosys_rs in an existing project.

Thank you very much for your reply! I have already used Synlig + Surelog + UHDM + yosys_rs in an existing project.


[Feature Request]: Trigger GH Action to sync manifests in odh-manifests on a tag push event.

Feature description
We have set the GH Action to sync DSPO manifests in odh-manifests to be triggered manually at the moment. Update it to trigger on a specific DSPO tag. Refer to this PR[1] for further details.
[1] https://github.com/opendatahub-io/data-science-pipelines-operator/pull/229
Describe alternatives you've considered
No response
Anything else?
No response

odh-manifests is going to be retired, no longer needed.


Event Templates can be deleted

Consideration of cascading deletion of template data will necessary.

If an event template gets deleted what should happened to the event?

Good point. This feature is more for fixing mistakes than managing templates. A pre-destroy callback should prevent deletion if any events rely on the template, notifying the user which events depend on it, like this:
"Template could not be deleted. 'SOTU 2012' and 4 other events depend on it."
The event name to be displayed should be truncated to ~15 characters with an ellipsis.
On Mar 2, 2012, at 7:56 AM, Bruno<EMAIL_ADDRESS>wrote:

If an event template gets deleted what should happened to the event?

Reply to this email directly or view it on GitHub:
https://github.com/sunlightlabs/datajam/issues/22#issuecomment-4285164

Perfect, thank you

And how about Archived Events? they might depend on the template

Yep, they should be covered by the same logic. The more I think about this, I'd also like to either not show a delete button unless there are no dependent events, or gray it out with a 'disabled' class.


Move openssl dep to MAVSDK_SERVER only

Let's see if that works.

Let's merge it on top of #1906, I'm fixing the Python deps and Fedora and what not there.


DNS record orphan mitigation

What
In some circumstances, it is possible that a dns record is left behind by a controller:

Bad clean up during namespace deletion (IE I delete the namespace with the controller in it but leave DNSRecords around)
Manual removal of finalisers

We want to enable users to identify records that have become orphans so that action can be taken to clean them up.
How
Identification:
Each controller managing a DNSRecord should be able to see the owner id of each other controller working on the record set for that rootDomain. Adding a section to the DNSRecord status such as:
  domainOwners:
        - id1
        - id2
        - id3

[x] Add all owners to DNSRecord Status https://github.com/Kuadrant/dns-operator/pull/209
[x] Add metrics and alert template to identify orphan records
[ ] Document how to remove orphan records

and exporting this via a metric something like: dnspolicy_status_root_domain_owners{name="mypolicy",namespace="mynamespace",root_domain_owner="id3", root_domain=a.b.com} 1  and dnsrecord_status_root_domain_owner{name="myrecord1", namespace="mynamespace", root_domain_owner="id1", root_domain="a.b.com"} 1 it should be possible to trigger an alert if the number of DNSRecords is less than the number of owners . We should work with @david-martin @R-Lawton to work through what metrics would make sense to achieve the goal the above is just an idea.
dnspolicy_status_root_domain_owners{name="mypolicy",namespace="mynamespace",root_domain_owner="id1", root_domain="a.b.com"} 1
dnspolicy_status_root_domain_owners{name="mypolicy",namespace="mynamespace",root_domain_owner="id2", root_domain="a.b.com"} 1
dnspolicy_status_root_domain_owners{name="mypolicy",namespace="mynamespace",root_domain_owner="id3", root_domain="a.b.com"} 1

and a record can only have 1 owner, it might look like this:
dnsrecord_status_root_domain_owner{name="myrecord1",root_domain_owner="id1", root_domain="a.b.com"} 1
dnsrecord_status_root_domain_owner{name="myrecord2",root_domain_owner="id2", root_domain="a.b.com"} 1
dnsrecord_status_root_domain_owner{name="myrecord3",root_domain_owner="id3", root_domain="a.b.com"} 1

Then a join query might look like this:
count by(name) (dnspolicy_status_root_domain_owners * on(root_domain_owner) group_left dnsrecord_status_root_domain_owner)

That would give you a value of 3 (as there's 3 dnsrecords that it can join on).
If you want to alert if that number is wrong, you can compare it to the count of root_domain_owners on the policy:
count by(name) (dnspolicy_status_root_domain_owners * on(root_domain_owner) group_left dnsrecord_status_root_domain_owner)
!=
count(dnspolicy_status_root_domain_owners)

Clean Up:
Talking with @mikenairn we could craft a method that would result in creating a new DNSRecord with the missing owner id to be reconciled by an existing controller and then delete this record to force the controller to remove the records related to that owner id.

Related: https://github.com/Kuadrant/kuadrant-operator/issues/649 We may want some form of visibility in the dashboard around this

https://github.com/Kuadrant/dns-operator/pull/209

https://github.com/Kuadrant/gateway-api-state-metrics/pull/46/files

https://github.com/Kuadrant/kuadrant-operator/pull/862

https://github.com/Kuadrant/kuadrant-operator/pull/862


Getting new session id for every web request

Session is not maintained between web requests.
In Startup->ConfigureServices()
services.AddMvc();
services.AddCaching();
services.AddSession();
In Startup->Configure()
app.UseSession();
app.UseMVC(...)
I see the services.AddSession() has:
ServiceCollectionExtensions.AddTransient<ISessionStore, DistributedSessionStore>(services);
Should this be a scoped service?

The AddTransient extension is create an instance each time you ask the DI, AddScoped extension is the one you are looking which is create an instance for each request

It shouldn't matter, the cache is only resolved once in the middleware constructor at startup. I suspect this is not the cause of your issue.

Not sure what changed, but the issue seems to have resolved itself.   This was just the vanilla new Web app generated by visual studio with the few additions to enable session.  Previously every post got a new session (examining in the debugger showed a new session id).    No idea what changed to alter the behavior.

Looks like this is resolved. @RickOregon please file another one if you see a regression, and thanks for your report!


feat: backport Function.Injective etc from Mathlib

Also move Std.Logic to Std.Logic.Basic.

I changed some names and deduplicated lemmas while backporting, so review carefully, please.

Std.Logic should be re-added as a import-only file for backward compatibility

awaiting-review

I changed some names and deduplicated lemmas while backporting, so review carefully, please.

I'm not suggesting going back in this instance, but I think it is usually overall easier to do the refactor in Mathlib, then have a copy-and-paste migration to Std, then have a just-delete-stuff adaptation PR to Mathlib, rather than risking having a nightmarish adaptation PR to Mathlib due to unexpected consequences of changes during the migration.

I changed some names and deduplicated lemmas while backporting, so review carefully, please.

I'm not suggesting going back in this instance, but I think it is usually overall easier to do the refactor in Mathlib, then have a copy-and-paste migration to Std, then have a just-delete-stuff adaptation PR to Mathlib, rather than risking having a nightmarish adaptation PR to Mathlib due to unexpected consequences of changes during the migration.

Thank you for the information. I volunteer to adapt Mathlib.

I've started doing the same changes in Mathlib, see leanprover-community/mathlib4#9738 for the first batch. Let's wait with merging this PR till I sync Mathlib with it.
awaiting-author

UPD: @sgouezel is working on changing Surjective f from ∀ y, ∃ x, f x = y to ∀ y, ∃ x, y = f x.

There are tons of conflicts now. I'm going to figure out what changes I made, PR them to Mathlib, then redo this PR. Please don't close it: it works as a reminder for me to do this.


Discussion: Should we support vendor-specific cloud API libraries in BinderHub?

There's a few use-cases that benefit from using a cloud specific library to make API calls, e.g. using AWS boto3 to create an ECR container repository and to obtain a temporary read/write token https://github.com/jupyterhub/binderhub/pull/1055
Other public cloud registries may benefit from similar e.g. Oracle Cloud Infrastructure Registry (there's an autocreate option when pushing new images, but creating the repository in advance allows more control of things like auto-deletion), which requires the oci library.
There's probably others, either related to registries, or for other things like hooking into cloud notifications.
It's easy to have extras_requires in setup.py, or to put the new Registry (for example) implementation in a separate Python package since it's configurable with Traitlets, but what should we include in the container image? Just the ones used by mybinder.org and encourage everyone else to re-build their BinderHub container? Or should we include all of them? Do we take a completely different route and make those vendor specific API calls via a separate container (going down the microservices route)?

The philosophy of BinderHub so far has been to be "vendor agnostic". I think most often this leads to/is interpreted as "lowest common denominator", use the stuff that works equally well (or badly) everywhere.
I'm not familiar with "ECR container repository". I quickly googled it and it suggested "container registry" to me. Setting up a container registry sounds like a one time/setup task, not an ongoing thing that BinderHub does while it is running. Could you explain a bit what you had in mind? For one time setup stuff I think we should describe it in the guide(s). The vendor specific guides are a good example of how they are valuable but also often out of date (which I think is the relevant thing for deciding about "vendor specific" code as well).
Over the last year or so I've become more and more convinced of (and attracted to) the idea that having a plugin system is a great idea. In this case BinderHub would allow plugins to change/augment/extend parts of its behaviour. The advantage of having a plugin system is that anyone (including core maintainers) can extend BinderHub without needing to consider all the things/permissions/consensus of including it in the core. I think it also allows for a lot of creativity, and some kind of "combinatorial explosion" of things your software can do (think iPhone w/o app store (no plugin system) vs iPhone with app store (plugin system)). Maybe something like you have in mind would be a good use case of a plugin system?
Of course creating the "host side" of a plugin system is work and the quality of plugins rises and falls with how well it is done. JupyterHub already has a kinda plugin system for spawners and authenticators, so there is precedent for this working well.
I think a plugin system would imply that you need to make your own binderhub image?!

I think you're right that a lot of the great interface-defining work @manics and others have done is getting BinderHub for a level of maturity where it defines the interfaces, and implementations of non-default providers start moving to their own packages. But once you start breaking things up like that, it also starts to make sense to be doing more versioned releases to better communicate changes and compatibility at the API level.

I think a plugin system would imply that you need to make your own binderhub image?!

Yes and no - we see this in z2jh: z2jh's default image ships with a common set of plugins (then are they really plugins?), but you can always add more / select versions in a custom image. We still have to decide what's in this default set and what's not, which is a pretty difficult line to draw as everyone asks for their Authenticator to be added so they don't need a custom image.
I know a lot of supply chain folks bristle at the idea of install-at-runtime as a pattern, but I honestly think for plugin purposes that pip install at runtime is a hugely practical way to make small changes to an image without needing to build, host, and maintain a mostly duplicate image.

I'm not familiar with "ECR container repository". I quickly googled it and it suggested "container registry" to me. Setting up a container registry sounds like a one time/setup task, not an ongoing thing that BinderHub does while it is running.

@betatim ECR (and some other container registeries) don't support pushing to registry.example.org/account/new-repository-that-doesnt-exist, instead you need to create the repository using a vendor-specific API call, then you can push to registry.example.org/account/new-repository-that-doesnt-exist/<any-image-tags>. ECR has an additional complication that the registry login token is temporary and should be renewed at regular intervals, which requires another AWS API call.
I've had a go at implementing the microservice model with Oracle Cloud's registry:
https://github.com/manics/oracle-container-repositories-svc
Example binderhub config stanza:
import json
from tornado import httpclient
from traitlets import Unicode
from binderhub.registry import DockerRegistry

class ExternalRegistryHelper(DockerRegistry):

    service_url = Unicode(
        "http://oracle-container-repositories-svc:8080",
        allow_none=False,
        help="The URL of the registry helper micro-service.",
        config=True,
    )

    auth_token = Unicode(
        "secret-token",
        help="The auth token to use when accessing the registry helper micro-service.",
        config=True,
    )

    async def get_image_manifest(self, image, tag):
        """
        If the container repository exists use the standard Docker Registry API
        to check for the image tag.
        Otherwise create the container repository.

        The full registry image URL has the form:
        CONTAINER_REGISTRY/OCIR_NAMESPACE/OCIR_IMAGE_NAME:TAG
        but the BinderHub image is OCIR_NAMESPACE/OCIR_IMAGE_NAME
        so we need to remove the OCIR_NAMESPACE component
        """
        client = httpclient.AsyncHTTPClient()
        image = image.split("/", 1)[1]
        repo_url = f"{self.service_url}/repo/{image}"
        headers = {"Authorization": f"Bearer {self.auth_token}"}

        self.log.debug(f"Checking whether repository exists: {repo_url}")
        try:
            repo = await client.fetch(repo_url, headers=headers)
            repo_exists = True
        except httpclient.HTTPError as e:
            if e.code == 404:
                repo_exists = False
            else:
                raise

        if repo_exists:
            repo_json = json.loads(repo.body.decode("utf-8"))
            self.log.debug(f"Repository exists: {repo_json}")
            return await super().get_image_manifest(image, tag)
        else:
            self.log.debug(f"Creating repository: {repo_url}")
            await client.fetch(repo_url, headers=headers, method="POST", body="")
            return None

c.BinderHub.registry_class = ExternalRegistryHelper

This only requires standard HTTP GET/POST calls and headers, the complex Oracle Cloud auth and API calls are hidden in the microservice.

That looks nice. All the vendor specific stuff is in one place, and the way to extend BinderHub is also not too ugly. A downside is that creating what you created requires quite a bit of knowledge of how BinderHub works, so it is probably beyond the average user's skills. Can/should we bundle the microservice in BinderHub's repo to make it (and others like it) more discoverable? Have a repo tag that is used to create a list in the docs?

I'm going to see if I can get ECR actually working. If it does then I think incorporating some of the work into BinderHub will be helpful to admins:

At a minimum, adding a Configurable class ExternalRegistryHelper(DockerRegistry) to BinderHub means no in-line extraConfig is needed
If the Helm chart for deploying the microservice is also added that makes it even easier to deploy. The only configuration needed will be the name of the image to use, and some configuration parameters/environment variables.


jaxopt.ProximalGradient with jaxopt.objective.binary_logreg

Hi there,
Thank you for contributing to this valuable project.
I am trying to use jaxopt.ProximalGradient with jaxopt.objective.binary_logreg.
It seems to work without errors, but all parameters go to zeros.
Doesn't jaxopt.ProximalGradient support jaxopt.objective.binary_logreg?
Thanks in advance!

It was due to the scale of $\lambda$.
$\lambda$ should be smaller than one used in regression tasks.
I am going to close this issue.


Runtime.ExportTo() can now export date strings to time.Time targets

These changes allow you to export a JavaScript date string into a time.Time target.
The following example shows why this behaviour would be nice to have:
type Model struct {
	ID        uint64
	CreatedAt time.Time
}

test := &Model{
	ID:        1,
	CreatedAt: time.Now(),
}
bytes, _ := json.Marshal(test)

vm := New()
vm.RunString(fmt.Sprintf("var test = JSON.parse( '%s' )", bytes))

test2 := Model{}
err := vm.ExportTo(vm.Get("test"), &test2)
if err != nil {
	t.Fatal(err)
}
if test.CreatedAt.Unix() != test2.CreatedAt.Unix() {
	t.Fatalf("Unexpected value: '%v'", test2.CreatedAt)
}

Feel free to close this pull request if you disagree with the changes.

I think it's a useful addition. I can't think of a scenario where you would want the export to fail rather than try to do something meaningful. Looks good to me.


Bug located in ...

Before submitting the issue

[X] I have searched among the existing issues
[X] I am using a Python virtual environment

Description of the bug
Placing an encrypted Parasolid component XYZ with the EDB API and importing the EDB into Electronics Desktop produces the following warning message:
Component definition XYZ is encrypted in ACIS and simulation of such components is not supported.

Attempting to simulate the resulting design results in the following error messages:
XYZ: Analysis on components encrypted in ACIS is not supported.
Failed to collect initial geometry data for: XYZ
3D Components in the design are unsupported. Update definition.

The component, however, is in fact a Parasolid component and can be manually placed via Electronics Desktop and solutions will work as expected in this case.
Steps To Reproduce
Extract the attached ZIP file in convenient location (Can be found under the Ansys 'bug reporting' system under TFS -->1004280)
In the extraction location, use a Command Window to create a new Python virtual environment and install ansys-edb-core:
python -m venv venv
venv\scripts\activate
pip install ansys-edb-core
Run the following script:
import os
from pathlib import Path
import tempfile

from ansys.edb.core.database import Cell
from ansys.edb.core.database import Database
from ansys.edb.core.layout import McadModel
from ansys.edb.core.session import session

edb_input_path = Path("ind_test_start.aedb")
edb_output_path = tempfile.mkdtemp(".aedb", prefix="ind_test_", dir=Path(__file__).parent)
# a3dcomp_path = "LQP02TN0N2_C_S_PS.a3dcomp"
a3dcomp_path = "short_0408.a3dcomp"

with session(os.environ["ANSYSEM_ROOT241"], 21983):
    db = Database.open(edb_input_path.as_posix(), False)
    try:
        db.save_as(edb_output_path)
        cell: Cell = db.top_circuit_cells[0]
        model = McadModel.create_3d_comp(layout=cell.layout, filename=a3dcomp_path)
        cell_instance = model.cell_instance
        cell_instance.placement_layer = cell.layout.layer_collection.find_by_name("L1")
        db.save_as(edb_output_path)
        print(f"EDB saved to {edb_output_path}")
    finally:
        db.close()

Note the script prints a location of an EDB it created with the placed component; open that EDB in Electronics Desktop
Note the warning message shown in the description
Launch the Setup1 solution setup and note the error messages shown in the description
Optional steps to confirm 3D Component is OK for simulation:
Which Operating System are you using?
Windows
Which Python version are you using?
3.10
Installed packages
ansys-pythonnet==3.1.0rc3
attrs==23.2.0
cffi==1.16.0
clr-loader==0.2.6
defusedxml==0.7.1
fonttools==4.47.2
fpdf2==2.7.7
json5==0.9.14
jsonschema==4.21.0
jsonschema-specifications==2023.12.1
numpy==1.26.3
pillow==10.2.0
plumbum==1.8.2
psutil==5.9.7
pyaedt==0.7.10
pycparser==2.21
pywin32==306
referencing==0.32.1
rpds-py==0.17.1
rpyc==5.3.1

Hi @Ouam74 I think you might have posted this issue to the wrong repository.
Seems like your error is associated to pyedb-core and not pyedb.

closing this issue as it is related to Product bugs not pyedb


CheckAuthenticationEmailCode function strange behavior

Hi!
I've noticed some strange behavior when authorizing few clients via email.

Client enters his email to authorize.
Code arrives to this email. Application checks it successfully.
According to application logs right after the call to check email code, AuthorizationStateWaitCode event comes to wait and verify authorization code.
And there is no code sent to the client's official Telegram application.

This behavior is not expected? Why could tdlib ask to wait for app code besides email code in this case?

authorizationStateWaitCode is expected after authorizationStateWaitEmailCode. It is up to the server to decide, how to verify the user with how many checks, and how to send the authentication codes. You can share TDLib logs with https://t.me/tdlib_bot to double-check that this isn't a TDLib issue.

@Mike497 Hello, I want to know how to use email verification code when login, where is this function?  Could you let me know, thank you?


UnboundLocalError: local variable 'frz_dir' referenced before assignment

Using the github link (not a local copy), on google colab. Training crashes whenever I try to save intermediary checkpoints
I've made sure to run each step individually. I am using the new method. No idea what can be wrong.
TY!
2022-10-31 10:14:05.417072: I tensorflow/core/util/util.cc:169] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
Steps:   3% 199/6600 [01:18<37:16,  2.86it/s, loss=0.00582, lr=1.94e-6] SAVING CHECKPOINT: /content/gdrive/MyDrive/cydoha_step_200.ckpt
Traceback (most recent call last):
File "/content/diffusers/examples/dreambooth/train_dreambooth.py", line 733, in
main()
File "/content/diffusers/examples/dreambooth/train_dreambooth.py", line 701, in main
if args.train_text_encoder and os.path.exists(frz_dir):
UnboundLocalError: local variable 'frz_dir' referenced before assignment
Steps:   3% 199/6600 [01:32<49:40,  2.15it/s, loss=0.00582, lr=1.94e-6]
Traceback (most recent call last):
File "/usr/local/bin/accelerate", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/accelerate_cli.py", line 43, in main
args.func(args)
File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 837, in launch_command
simple_launcher(args)
File "/usr/local/lib/python3.7/dist-packages/accelerate/commands/launch.py", line 354, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '/content/diffusers/examples/dreambooth/train_dreambooth.py', '--image_captions_filename', '--train_text_encoder', '--save_starting_step=200', '--stop_text_encoder_training=660', '--save_n_steps=200', '--pretrained_model_name_or_path=/content/stable-diffusion-v1-5', '--instance_data_dir=/content/gdrive/MyDrive/Fast-Dreambooth/Sessions/cydoha/instance_images', '--output_dir=/content/models/cydoha', '--instance_prompt=', '--seed=96576', '--resolution=512', '--mixed_precision=no', '--train_batch_size=1', '--gradient_accumulation_steps=1', '--use_8bit_adam', '--learning_rate=2e-6', '--lr_scheduler=polynomial', '--center_crop', '--lr_warmup_steps=0', '--max_train_steps=6600']' returned non-zero exit status 1.
Something went wrong

fixed a few seconds ago, you will need to disconnect and reconnect to get the update

Thank you, now it works, I was able to save the first intermediary checkpoint and resume the training
TYVM!

great !


Initialize dstctx->mgf1_md to NULL in rsa_dupctx function

dstctx->mgf1_md should be set NULL in rsa_dupctx avoid releasing mgf1_md of srcctx when err occurs.

This would be acceptable with CLA: trivial. If you agree to submit it as such please amend the commit message to include CLA: trivial on a separate line. Or please submit a regular CLA.
https://www.openssl.org/policies/cla.html


Tab not autocompleting

OS: MacOS Sierra (10.12.12 Beta 16C48b)
Hyper Version: Version 1.3.3 (<IP_ADDRESS>4)
Gist: https://gist.github.com/joe-scotto/7a5c81f5d9eb6ca7313e43597b7dbf50
Pressing tab is not autocompleting. I'm using oh-my-zsh.

I'm experiencing the same issue with the last release v1.4.2

Nevermind, restarting the app solved the issue :)


fix items method

Missing 'return' statement on get items(). (:

Thanks @joaopaulovieira! :beers:


error on starting

Description
sudo docker run -p 8095:8095 qjake/hacc
docker: Error response from daemon: driver failed programming external connectivity on endpoint clever_mestorf (c30894ec775c15e953abe239a068af92f1765ec4d72e8f19440452a16afb116b): Bind for <IP_ADDRESS>:8095 failed: port is already allocated.
ERRO[0000] error waiting for container: context canceled
Environment
<What version of HACC are you running?>
1.018
<What environment is it? Hass.io on a Raspberry Pi 3B+? AMD64 Docker on Alpine 3.10?>
Ubuntu 18.04
Steps to Reproduce

List out the
Steps to take to
Reproduce the issue

Screenshots

sudo docker run -p 8095:8095 qjake/hacc
docker: Error response from daemon: driver failed programming external connectivity on endpoint clever_mestorf (c30894ec775c15e953abe239a068af92f1765ec4d72e8f19440452a16afb116b): Bind for <IP_ADDRESS>:8095 failed: port is already allocated.
ERRO[0000] error waiting for container: context canceled

Port 8095 is already in use. Use docker ps to find your running container, and docker stop <first few characters of your containter ID> to stop it. Then you can do docker run.
But if you're just trying to upgrade to a new version, see the instructions on our new (beta) site here: Updaing HACC - essentially, you want to stop, pull, and start.
Here's a full log demonstrating the problem and the fix:
PS C:\> docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
35c38b96bfe7        qjake/hacc:1.0.4    "dotnet HADotNet.Com…"   2 days ago          Up 33 seconds       <IP_ADDRESS>:8095->8095/tcp   hacc
PS C:\> docker run -p 8095:8095 qjake/hacc
C:\Program Files\Docker\Docker\resources\bin\docker.exe: Error response from daemon: driver failed programming external connectivity on endpoint happy_montalcini (bcdf9095f8ad16ffef806938b8c9c1aa4a3964b9f74c13f0759c3bc05cfe07ea): Bind for <IP_ADDRESS>:8095 failed: port is already allocated.


Add asciinema cast for demonstration

fixes #13

Thanks for the Quick response!

No problem, thanks for merging quickly!


Not packaged correctly for MacOS?

Hey,
just wanted to try the latest version, but I get the following error:

In the report we get the following details:
Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  Library not loaded: /Users/*/Documents/*/libglfw.3.dylib
  Referenced from: /Applications/LÖVR.app/Contents/MacOS/lovr
  Reason: image not found

I'm running MacOS High Sierra.

Ok, I reuploaded new versions to the GitHub release page as well as the website (had to clear my cache to get my browser to download the new version).  Sorry about this!
Background: glfw was packaging itself incorrectly because it was configured for older versions of CMake.  I updated glfw to the latest version which fixes it, so this shouldn't happen for future builds.
Thanks again for bringing this to my attention!

@bjornbytes FYI, the GitHub-published release still exhibits this issue (this is my first time downloading LÖVR so I'm pretty confident I did not test an older download).
$ curl -LO https://github.com/bjornbytes/lovr/releases/download/v0.13.0/lovr-v0.13.0-macOS.dmg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2212k  100 2212k    0     0  1755k      0  0:00:01  0:00:01 --:--:-- 2119k

$ hdiutil attach ./lovr-v0.13.0-macOS.dmg
/dev/disk4          	GUID_partition_scheme
/dev/disk4s1        	Apple_APFS
/dev/disk5          	EF57347C-0000-11AA-AA11-0030654
/dev/disk5s1        	41504653-0000-11AA-AA11-0030654	/Volumes/LÖVR

$ otool -L /Volumes/LÖVR/LÖVR.app/Contents/MacOS/lovr
/Volumes/LÖVR/LÖVR.app/Contents/MacOS/lovr:
	/Users/bjorn/Documents/dev/lovr/build/glfw/src/libglfw.3.dylib (compatibility version 3.0.0, current version 3.2.0)
…

The version I downloaded from https://lovr.org/downloads does have the fixed library path.
Hope this helps.

Okay, it should be working now.  I think there was a problem with the GitHub UI I didn't notice when I first uploaded the new dmg.  Thanks!


Show some simple application, like finding synth with minimum MSSTFT to some moog sound

Or basically a callback that does something.


Initial proposal to support Object Mapping (or Binding)

Fixes #34
Fixes #51

I think Record should be considered, even the API level is Java 11. When users use Java 17+, activate Record support by default.
For example, Micronaut also support Record, and also can create a Java 11 application, but the Record is only working in Java 17+ environment.

I did add a section about Records, so we can discuss them, but I'm not sure if we should proceed that way. To my knowledge, I believe there is no specification in Jakarta that add behavior to a particular Java version. The version is set at the platform level, and language features used across specifications must comply with that. Regardless, nothing stops an implementation to support them.

I thought this further after yesterday's call. Since config depends on Injection, I think we should add a section with
=== Injection access
to support @Inject @ConfigMapping('prefix') Type type;

I believe we agreed that any CDI integrations with core features of Configs, needs to be specified in a dedicated CDI chapter.


Alliance/corp allow only lists

SSO is handling authenciation, but it currently lets anyone authenticated to create maps. This makes sense in a multi-tenant context, but in when self-hosting we want to a limit access to a list of approved alliances/corps.
I'm considering adding env vars that contain a comma-sepeated list of corp/alliance ids. When either of the allow lists are set, a middleware in the app forwards authenticated users not in the allow list to a themed "forbidden" page.
Thoughts? Better ideas?

We actually have implemented invite only users. So you can limit using mapper for everyone.

I can provide instructions how to enable it, if it'll work for you. So only users with a proper invite-link (should be generated by admin user) will be able to authorise in mapper.

I'm aware that there is map-level access control. I'm looking for application-level access control. I want anyone that authenticates that isn't a member of a corp or alliance to only see a styled 403 page. I don't want them to have the ability to access any pages that are not absolutely nesseccary. And I don't want them to be able to create maps or glean any intel from data inside of the tool.

I'm aware that there is map-level access control. I'm looking for application-level access control. I want anyone that authenticates that isn't a member of a corp or alliance to only see a styled 403 page. I don't want them to have the ability to access any pages that are not absolutely nesseccary. And I don't want them to be able to create maps or glean any intel from data inside of the tool.

You can setup invite-only access to application authorization, so noone without proper link can access you server instance.

To enable invite-only access you should set next variable in wanderer-conf.env:
WANDERER_INVITES=true

I've set that env var and I've yet to see any change in the UI that would allow me to create an invite-url. I think we are talking about different solutions to different problems.

If I'm understanding things correctly, with the invite URL they could make maps and poke around in the application. I would like to deny access to the entire application if they are not in an allowed corp/alliance.

If I'm understanding things correctly, with the invite URL they could make maps and poke around in the application. I would like to deny access to the entire application if they are not in an allowed corp/alliance.

Yep, for your purposes it'll be better to have a kind of white-list of allowed alliance/corp ids, but it'll be required to support/check it on many places. We can add functionality to block/delete some characters from server, so invite link valid for 24h, blocked users without proper invite link can't authorize/login to application, so won't be able to manage/create any
maps.

Does the allow/deny list need to be checked in more places than initial token exchange and token refreshes?
If the alliance is hundreds/thousands of players, I would expect handing out time-limited invites to be a pain.
With the invite approach, if a character is removed from the alliance, what happens? Can they still make maps if they accepted the invite URL? If so, does that mean that anyone removed from the alliance must also be banned from Wanderer manually to prevent the ability to create maps?

Does the allow/deny list need to be checked in more places than initial token exchange and token refreshes?
If the alliance is hundreds/thousands of players, I would expect handing out time-limited invites to be a pain.
With the invite approach, if a character is removed from the alliance, what happens? Can they still make maps if they accepted the invite URL? If so, does that mean that anyone removed from the alliance must also be banned from Wanderer manually to prevent the ability to create maps?

Agree, this approach won't work for large allicances/corps. The checking for white-listed corp/alliances can be done after we fetch character data from Eve API only. So it'll looks like user registered -> waiting some time to sync ally/corp info -> ally white-list restrictions.
We have a several possible cases here:

users can have more that 1 characters registered, some in white listed corp/ally, some in own/other - should we check if all user character not in some ally
while fetching information from EVE API there are a small chance to create a new map on server

I'd suggest introducing a white-list of characters who allowed to create maps in this case, so application administrators can add/remove registered character(s) from/to it. I guess it shouldn't be a lot maps owners on a custom server for 1-2 alliances.

users can have more than 1 characters registered, some in white listed corp/ally, some in own/other - should we check if all user character not in some ally?

Good question. People have multiple accounts and characters. If a subset of the user's characters are allowed, only the allowed characters should be tracked. If they sign-in with an unallowed character it should probably show up in their list, but be flagged in the UI as not permitted.
 If the alliances is savey they will be ingesting access logs and comparing IPs as part of their standard operating procedure.

while fetching information from EVE API there are still a small chance to create a new map on server

A race conditoin in the auth process? OAuth completed but the character data hasn't been fetched?

I'd suggest introducing a white-list of characters who allowed to create maps in this case, so application administrators can add/remove registered character(s) from/to it. I guess it shouldn't be a lot maps owners on a custom server for 1-2 alliances.

I agree. I can see agrument to tie admin access to roles in-game rather than a service-level list.

Would introducing a middleware that is only added to the stack when a list is defined that checks their session for an allowed character work? I'm pushing for something application level and ideally high up on the routing stack because I assume there are going to be bugs that unintentionally leak information and the higher up the middleware stack the more likely they won't be able to access any of the endpoints/handlers that return data.

Would introducing a middleware that is only added to the stack when a list is defined that checks their session for an allowed character work?

It should work that way, but for now looks not clear enough.
Mb we can do more simple approach to check ally/corp ID as you initially suggested, and not allow users without at least 1 character inside particular white-listed ally/corp membership to access any services.
So how can I see it:

user add 1-N characters
by default registered characters don't have any corp/ally info (it's not fetched immediately/Oauth returns only character eve ID/tokens), but we start fetching it after registration
if white-list set -> we check if some of registered user characters corp/ally in it
if white-list set -> we allow map creation (and other actions with maps) only to users with at least one character allowed (in white-list corp/ally)

So that way we block any actions for users who have characters with empty/wrong ally/corp set only.

Makes sense to me. I will look implementing it.

This hasn't dropped of my plate I started a new job a month ago and my time has been limited.

After talking it through with some alliancemates, we going to put an oauth2 proxy in-front and manage access with our IdP. I'm going to close this.


Serverless: Configuration warning at 'provider': unrecognized property 'managedPolicyArns'

Hi,
I am getting a serverless warning when using serverless-attach-managed-policy plugin:
Serverless: Configuration warning at 'provider': unrecognized property 'managedPolicyArns'
Serverless:
Serverless: Learn more about configuration validation here: http://slss.io/configuration-validation
Serverless:

It appears that this is from not extending the schema(?):
https://github.com/serverless/serverless/issues/8438#issuecomment-716180490
https://www.serverless.com/framework/docs/providers/aws/guide/plugins/#extending-validation-schema
$ node --version
v14.15.4

$ npm --version
6.14.10

$ serverless --version
Framework Core: 2.23.0
Plugin: 4.4.2
SDK: 2.3.2
Components: 3.6.2

$ uname -a
CYGWIN_NT-10.0 FOUREYES 3.1.7(0.340/5/3) 2020-08-22 17:48 x86_64 Cygwin

Seeing the same issue here trying to upgrade to serverless v3 from v1. Did you find a solution?


Restructure SCSS

Current SCSS files contain the old copied-over CSS that need to be restructured, in order to make proper use of nesting and other SCSS features.

https://github.com/SRCStats/SRCStats/blob/c409d9b10f98d18331e9823d47233404c14c75f0/src/Frontend/src/css/site.scss#L165-L166 This rule applies a border when the button is selected, but it doesn't disappear after toggling the button to close the dropdown. This could be fixed by applying the border color to a :not(.collapsed) rule.
https://github.com/SRCStats/SRCStats/blob/c409d9b10f98d18331e9823d47233404c14c75f0/src/Frontend/src/css/site.scss#L181-L183 This rule uses a class in the cshtml called "last-nav" to refer to the last nav element. This could be replaced with a pseudoclass of nav > a:last-of-type.


Set camera position parameters?

TC 7.3
I can't get set camera position to do anything. It has a parameter called Roll. That word doesn't appear in the TC 7.3 API. Is it in other firmwares, or is this a left over bit of code ported from a different camera?
A note on PTZ defaults, while the pan and tilt commands will take values of +-65535, and zoom and focus will take values of 0-65535, most of those ranges are nonsense values. The camera I'm testing right now pans from 0-816, tilts from 7-212, zooms from 0-2885, and the useful focus range is about 4500-4600. You can literally make it focus on dust on its own front element at wider zooms.

This is an old issue and no longer relevant, should be closed


null pointer when launching interpretter from the command line

Command:
java -Xmx1g -jar ..\..\Downloads\jython-standalone-2.7.0.jar -Dpython.path=Lib/ run.py -i -d -B ..\..\Downloads\burp_suite_pro.jar

Then when Burp loads I select to use a temporary project and use Burp defaults. After I click on Start Burp that's when it shows me:
An error occurred when starting a project with the selected options.

Failed to create Burp project: NullPointerException

Nothing else is outputted but this seems to be a good workaround:

Load Burp
java -Xmx1g -jar ..\..\Downloads\burp_suite_pro.jar

Navigate to Extender and manually load Lib/burp_extender.py

@mwielgoszewski please could you weigh in on this?

The old run.py script was for versions of Burp before the new Extender API was introduced, where you had to manually specify arguments on the command line. The latter approach, or in your terms, "workaround", is actually the preferred way to load the the jython-burp-api.

Oh that's unfortunate... I was hoping to use the run.py for automated testing

@nitrocode I'm trying to automate testing using Burp from the blog and was stuck with the same error as yours - Failed to create Burp project: NullPointerException on executing the command java -Xmx1g -jar ../jython.jar -Dpython.path=Lib/ run.py -i -d -B burpsuite_free_v1.7.24.jar
I'm executing the command in EC2 instance and I have no option to use the UI interface of Burp.
Can you please suggest if there is any possible workaround for the automated testing with Burp.
TIA

@anil10032 Any solution on this issue?


"track_number" output template doesn't add track numbers to Soundcloud and Bandcamp albums

[x] I've verified and I assure that I'm running youtube-dl 2018.08.04

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones
[x] Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
[debug] System config: []
[debug] User config: ['-o', 'C:/Users/user/Downloads/youtube-dl/%(title)s.%(ext)s']
[debug] Custom config: []
[debug] Command-line args: ['-o', 'C:/Users/user/Downloads/youtube-dl/%(track_number)s.%(title)s.%(ext)s', '-v', 'https://soundcloud.com/deus-ex-ost/intro']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2018.08.04
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.17134
[debug] exe versions: ffmpeg 4.0.2, ffprobe 4.0.2
[debug] Proxy map: {}
[soundcloud] deus-ex-ost/intro: Resolving id
[soundcloud] deus-ex-ost/intro: Downloading info JSON
[soundcloud] 124316573: Downloading track url
[soundcloud] 124316573: Downloading m3u8 information
[soundcloud] 124316573: Downloading m3u8 information
[soundcloud] 124316573: Checking hls_mp3_128_url video format URL
[soundcloud] 124316573: Checking http_mp3_128_url video format URL
[soundcloud] 124316573: Checking hls_opus_64_url video format URL
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://cf-media.sndcdn.com/ICcDF8bgd1m5.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiKjovL2NmLW1lZGlhLnNuZGNkbi5jb20vSUNjREY4YmdkMW01LjEyOC5tcDMiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE1MzQ1NzgzMjV9fX1dfQ__&Signature=wyAyE8Sa3hF73e2apXAqZCuYaSmZ~BeMRwInJhjgp3LwwTz1oOgTWBwcOlU5j-Bpa~~dye7~qoYq9L8t5JWyXn~kbbOIHABj3VYpxwkBg~3UQXEm~uE~-ZSCUqtz9eNd8nZTbeNXwY6bsxRf8vfOCjStfBuWF2wNe0eS9ocf3XIpWgiMt7fIO35om3Ifxj7gol9Rk6MvHmd9b0bF7J7RqZT8DBZaZAAIm8odRTKB0ucLYYdOw4OxOTFWbwJUb-LYDQDMT6l11Cw7F2CPNdd-Da9qsi7DA7JHJ9b6wmLLLvzm~Mv66Mev69tow7ULd8-iJI2vnPpKbzQBXtvMTaR99Q__&Key-Pair-Id=APKAJAGZ7VMH2PFPW6UQ'
[download] Destination: C:\Users\user\Downloads\youtube-dl\NA.Intro (Alexander Brandon).mp3
[download] 100% of 2.14MiB in 00:00
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

an album on Soundcloud: https://soundcloud.com/deus-ex-ost/sets/original-in-game-soundtrack
a single track from an album on Soundcloud: https://soundcloud.com/deus-ex-ost/intro
an album on Bandcamp: https://relapsealumni.bandcamp.com/album/call-of-the-mastodon
a single track from an album on Bandcamp: https://relapsealumni.bandcamp.com/track/shadows-that-move

Description of your issue, suggested solution and other information
track_number output template doesn't detect track numbers on Soundcloud and Bandcamp — on both services the numbers of tracks are clearly labeled in albums. NA string (non-applicable) is added to the filenames.

Hi @368532143,
Bad news - unfortunately the Soundcloud website does not provide the track number for downloaded songs, so there is not much to be done here.
Better news - the Bandcamp website does include this, so the extractor for this site will be updated shortly to provide for the track number in the output.
Cheers,
Parmjit V.

@parmjitv It has been confirmed on Reddit that playlist and playlist_index templates can add track numbers to Soundcloud albums:

I use the following template:
-o "%(playlist)s\%(playlist_index)s - %(title)s.%(ext)s"
For some reason playlist_index works and track_number doesn't. That will add the track number to the filename and --add-metadata will add everything except the track number to the metadata. To add the track number to the metadata you'll have to use a separate tool.

Hi @368532143,
Yep, that approach will work for albums on the Soundcloud website.  Youtube-dl automagically creates and exposes the playlist and playlist_index metadata fields for collections, likely to accommodate a situation where the track numbers are not readily available from the source website.
Unfortunately this will not provide us with the track number for an individual song.  For example, using the output pattern you have noted above on a single track yields a file name as 'NA\NA - Intro (Alexander Brandon).mp3'.
Below is a complete list of the data fields provided by Soundcloud as part of the youtube-dl download process - as you can see, the track number itself is not included.


Optimize Indexes support

Describe the issue
Blocked by #29
Once hyperspace has an incremental indexing support, add support for optimizing indexes. This would pick parts of indexes which are made of large number of small files, and combine/compact them into small number of large files. This would improve the performance of the index since the number of index files would be greatly reduced

To Reproduce

NA
Expected behavior

hyperspace.optimize(indexName) would update indexes to improve their performance
Environment

NA

duplicate of #111


Recommendation for the DreamBooth training

There are about 500 images of a person. 640x640 px. The quality of the images is average. Many of the images have almost the same composition, many have medium to bad lighting. Predominantly the images show face and shoulders, sometimes - the upper body, rarely - full-length photo.
Any recommendations for training? Number of steps and LR for UNet and text_encoder training.
ps: sorry for bad grammar

You only need max 10 pictures for a good training, the model needs only to extract the facial features, no need for 500 images, as for the settings, try with the default setup.

Okay, I'll try to pick 10 out of 500 images with varying compositions and more or less good lighting.
But generally speaking, it's not just about facial features. And I'm a little concerned that the model simply won't "see" many of the details that will remain in the 490 images that weren't picked.
ps: default settings are 650 steps with LR=5e-6 for UNet and 250 steps with LR=1e-6 for text_encoder, correct?

Train the text encoder only once, then resume the UNet only with a lower learning rate (2e-6)


md-select not showing on modal

As the image shows, md-select list is covered by modal because modal's z-index is set to 99999 and md-select only got 9999 by default. And we got modal backdrop (.modal-box .modalbg) with z-index 99998.
I think we are setting modal's z-index too high.

i agree, and it looks like it would be quite a quick fix

i will try to lower the z index to the number of 9´s (x10) to keep the relative difference:
For example:
.thing1{
z-index:999;
}
.thing2{
z-index:9999;
}
would become:
.thing1{
z-index:30;
}
.thing1{
z-index:40;
}


Remove vcpkg support

Supporting vcpkg is time-consuming since it always changes.. Lets use conan only.
I.e thrift is constantly changing, and sources generated with 0.12.0 is not compatible with vcpkg thrift.

Closed by 8cf6fac15efa3c3576aeb9fb418be20735bd230f and b3b7a6aee8cd2c199738651b6009f22d3e9b4605


[Docs]: Incorrect Docker Paths

What is the improvement or update you wish to see?
The example docker config says to mount the config into /config/config.yml, however the container expects it to be at /app/config.yml
Is there any context that might help us understand?
Update the mounts
Does the docs page already exist? Please link to it.
No response

Came here to find an answer for this as well, the issue is happening to me

As far as I can tell the paths did not change.
 I had the same issue today and realized, that I mounted them both to "/config". This resulted in the actual config not showing up and only the example one being present. In my case I now use the following mounts:
    volumes:
      - type: volume
        source: qbittorrent-downloads
        target: /data/torrents/completed
        volume:
          nocopy: true
          subpath: data/torrents/completed
        bind:
          selinux: z # Bind mount is shared by multiple containers.
      - type: volume
        source: qbittorrent-manage
        target: /config
        volume:
          nocopy: true
          subpath: config
      - type: volume
        source: qbittorrent-config
        target: /qbittorrent
        read_only: true
        volume:
          nocopy: true
        bind:
          selinux: z # Bind mount is shared by multiple containers.

qBittorrent downloads are mounted to "/data/torrents/completed", the qBittorrent configuration is mounted to "/qbittorrent" and the actual qBitManage configuration is mounted to "/config"

qBittorrent downloads are mounted to "/data/torrents/completed", the qBittorrent configuration is mounted to "/qbittorrent" and the actual qBitManage configuration is mounted to "/config"

This wasnt the case for me, when i did that as the docs said it errored out.
I had to map it to /app/config

I was able to resolve it, I had mistakenly capitalized a path name. But for me to just make it easy and clear I just mapped everything as is and has been good so far
/mnt/pirate/torrent_pirate/seeding/seed_farm/:/mnt/pirate/torrent_pirate/seeding/seed_farm/:rw


fix mb_strlen \r\n bug

Q
A

Is bugfix?
yes

New feature?
no

Breaks BC?
no (server side)- may affect count characters left scripts (client side)

Tests pass?
yes

Fixed issues
#14086

This PR solves the issue by counting line breaks in texareas, etc. the same way as mb_strlen in php will do - so this does not break BC server side.
However it could have some side effects to client side scripts:
Client side scripts wich count the characters left may show a different count.
(Users may also wonder if they actually count their typed in characters.)

Better convert it from \r\n to \n in server side and leave the old JS implementation.
There's no reason to save \r to database.

Thanks.
I guess you are right - it is much more convenient for client side scripts and it is probably better to have only one format in the DB.
Now this PR will replace Win \r\n (and Mac \r) with Linux \n if string-validator is used.
This solution works on my projects (Windows and Linux Servers).
Notes:

I have not tested this solution with scripts where CR-LF is really neccessary (perhaps terminal/console related stuff?)
Really platform tailored solutions (with PHP_EOL e.g.) will be much more complex as estimated (if CR-LF or LF, etc. is really needed, it has to be custom implemented now as well anyway)
the docs for string-validator should note this new behaviour

after writing some unit tests and doing some more research, i believe that this is a much more complex problem and there is no easy solution.

This problem does only occur on textareas not on inputs (no line breaks possible on inputs).
If the replacement of \r\n with just \n is placed inside the string validator the server side count by the string validator will be the same as the javascript count - this is the only good thing.
If this replacement should be applied to the model and be saved to the DB the PR is missing something like
´´´$model->$attribute = str_replace(["\r\n", "\r"], " ", $model->$attribute);
on windows server/apache/mysql/mariadb this replacement will be automatically converted back to \r\n. With db fields set to a length (191 for utf-8 mb... e.g.) this will cut off the last characters (quantity of \n)
altering the input string in a validator that is not supposed to change the input value is a bad thing (adhoc validation with validateValue will not work by design, because there is no way to alter the models attribute with validateValue method - what if a string from a model is validated with validateValue and after that the model is saved to DB with save(false))

More thoughts on this issue:

convert \r\n to \n just for the count - last characters will be cut off if field length is exceeded
convert \r\n to blank_space and apply it to the attribute - will work in all situations where line breaks are not really needed
convert \r\n to  etc. and apply it to the attribute  - last characters will be cut off if field length is exceeded
if used with mysql text fields it is unlikely that the count error happens (text is 64 Kibibytes long)
in case trim, purifier or other filters to delete multiple blanks etc. is called serverside before string validator the client side string validator script will show different values for length as well

Suggestion for a solution:

Mention the probems (line breaks and trim/filters/purifier before string validator) in the docs (StringValidator and Textarea?)
suggested working solution: place a custom rule/filter before string validator rule (e.g. for replace line breaks with blank_space):
´´´ ['string_attribute_name', 'filter', 'filter' => function ($value) {
return str_replace(["\r\n", "\r", "\n"], " ", $value);
}],

To solve the issue that js counts the \r\n as one char this custom filter is only neccessary for string attributes, that will be wired up to textareas.
The filter should be applied to all string attributes if no line breaks should occur in the db at all - \r\n could still be posted to input attributes via scripts, postman etc. - but that has nothing to do with the issue.
With this solution there is no "magic" attribute alteration hidden in the framework - it just takes one look to the model rules to realize that the attribute is beeing proccessed and line breaks are replaced.

Thanks for research.


WIP - tls: setting EXTERNAL_TLS_TERMINATION to false (PROJQUAY-2428)

If the TLS termination is not executed at the load balancer level we
need to set this configuration to 'false' instead of simply deleting.
Issue: https://issues.redhat.com/browse/PROJQUAY-2428

Test not needed. Closing. I will open a PR with the fix as soon as possible.


FTP Server crashes on "ls"-command

I compiled your example on ESP8266 with Platform IO as is. SPIFFS was built and uploaded. My FTP client connects successfully. But on a "ls"-command the server crashes with reboot in file NLST.h around line 27 in statement
File f = dir.openNextFile();
with
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (28):
epc1=0x40205725 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

stack>>>

Any idea?

@uhu1333 please post a full example, the log of the ftp client and when possible the log of the ftp server (just if there is a log output regarding ftp).
Its a long time since i checked on ESP8266.

Thank you
Client log:
ftp <IP_ADDRESS>
Verbindung mit <IP_ADDRESS> wurde hergestellt.
220--- Welcome to FTP Server for ESP32 ---
220---        By Peter Buchegger       ---
220 --           Version 0.1           ---
200 Ok
Benutzer (<IP_ADDRESS>:(none)): ftp
331 OK. Password required
Kennwort:
230 OK.
ftp> ls
200 PORT command successful
Server log:
Connected to xxxx
IP address: <IP_ADDRESS>
...---'''---...---'''---...---'''---...
New Connection from <IP_ADDRESS>:50406
OPTS UTF8 ON
USER ftp
PASS ftp
PORT 192,168,1,191,196,231
NLST
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (28):
epc1=0x40205725 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000
main.txt
And the Soourc as .txt (instead of .cpp)


Key release error fixed

Sometimes a key release event would be interpreted as a file open error. This seemed to happen only right after a power cycle, but is now stable. Also added are double quotes around the file name, which looks neat.

Thank you!


chore: remove unused Rust dependencies

@Boshen Perhaps we can integrate cargo udeps into our CI pipeline to identify unused dependencies automatically?


Two instances of postscribe at the same time?

We use postscribe to dynamically show ads. An AdManager we use (http://admanager.pushfire.de/admanager.js) has postscribe included (see line 389) on its own.
With this setup we get errors like postscribe.js?e558:170 Uncaught Error: Bad script nesting or script finished twice.
I would like to know if postscribe is supposed to work under these circumstances?

hi, i am having the same issue? is there any update on this?
@dirkholzapfel  have you managed to find a solution/workaround?
Thanks in advance

@giannoudak
becaue of the way pushfire included postscribe
http://admanager.pushfire.de/admanager.js (see line 431) we were able to work around like this:
import postscribe from 'postscribe'
window.postscribe = postscribe

that way pushfire uses our postscribe version. and that's also a problem - as soon as we use incompatible versions - this won't work anymore.


Check if object have a property or set a default value?

Hello! My models looks like:
public class EventAttribute
{
	public String query { get; set; }
	public String user_id { get; set; }
}

public class Event
{
	public String event_type { get; set; }
	public EventAttribute attribute { get; set; }
}

and my json:
{
"event_type": "APP_SEARCH",
"attribute": {
 "user_id": "assa-fdfdd-ereq",
 "query": "autos"
}
}

I am getting the json from a rest api.
The problem is than sometimes attribute.query i is not in present in api response,
So, how i can set attribute.query to something like null if  is not present in api response?

Wrong typing in my class!


Changed screens style

changed screens style
@ryotogashi @monashamsolebad

I saw it in the class, It is perfect. thanks:)

Why it has conflicts?


Make site responsive

Hi, I have opened the HTML, it's responsive,what part of html is not responsive?

The contributors section
Also adding a hamburger menu for the Navigation bar

I can add a hamburger menu in the navbar. Please assign this to me.

Updates @adityabisoyi ?


added mainpage favicon

Related Issue #53
Type of change
Proposed Changes
Added favicon for the mainpage, will add for more the pages soon till then just keep this PR open
Additional Info

any additional info for context

Checklist:

[x] My code follows the style guidelines of this project and have read CONTRIBUTING.md
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings

this was being worked in #54

@abhinav2712 - please help @sunny2329 and work with him on #54


Crash when training with 2 chars sequence and small image

I have a dataset contains a latex formula with only two chars: :   ( a colon with a space)
The generated image is very small: ceca32e904728d1_basic.png: PNG image data, 6 x 17, 8-bit/color RGB, non-interlaced
I got crash during training:
/home/ubuntu/torch/install/bin/luajit: /home/ubuntu/.luarocks/share/lua/5.1/nn/Container.lua:67:
In 19 module of nn.Sequential:
...torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:108: input has to contain: 512 feature maps, but received input of size: 1 x 1 x 512 x 2
stack traceback:
        [C]: in function 'assert'
        ...torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:108: in function 'createIODescriptors'
        ...torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:366: in function <...torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:363>
        [C]: in function 'xpcall'
        /home/ubuntu/.luarocks/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors'
        /home/ubuntu/.luarocks/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
        ./src/model.lua:231: in function 'feval'
        ./src/model.lua:389: in function 'step'
        src/train.lua:119: in function 'run'
        src/train.lua:249: in function 'main'
        src/train.lua:255: in main chunk
        [C]: in function 'dofile'
        ...untu/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00406670

I can workaround this by removing small images / short sequences from dataset.
Is it a bug? Worth to fix?
Cheers after bisecting for one hour :)

That's due to the fact that the CNN will shrink the image by 8, i.e., if an image's width or height is smaller than 8, then the CNN will report an error. For your case, I suggest taking a closer look at the images to see whether shrinking by 8 makes sense. (E.g., in the formula-to-latex case, an 8X8 box would be roughly the size of a symbol.) After that, you can either upsample or downsample your images to match the CNN, or modify CNN to match your image (delete or add some pooling layers or modify the stride)

That's due to the fact that the CNN will shrink the image by 8, i.e., if an image's width or height is smaller than 8, then the CNN will report an error. For your case, I suggest taking a closer look at the images to see whether shrinking by 8 makes sense. (E.g., in the formula-to-latex case, an 8X8 box would be roughly the size of a symbol.) After that, you can either upsample or downsample your images to match the CNN, or modify CNN to match your image (delete or add some pooling layers or modify the stride)

Thanks for quick response! Your reply answers my question. For me the workaround of removing small images is good enough (formula to latex case). I'll leave the issue to you to decide whether to close or not.
Happy new year! :)

Thanks for quick response! Your reply answers my question. For me the workaround of removing small images is good enough (formula to latex case). I'll leave the issue to you to decide whether to close or not.
Happy new year! :)

Yes I'll update the code to ignore these small images.

Yes I'll update the code to ignore these small images.

Happy new year!

Happy new year!


"Find My" Not Working

Hello,
I believe there may be an issue with using the "Find My" feature with AirPods Pro 2 with 15.0.1.
I had once tried to use Find My by making the case beep, which didn't work, and now most times I open or close the case, it beeps as if it's locating it. The issue is it doesn't clear and I can't cancel the "locating"
Additionally, I will now get random alerts that "left" left behind and "right" left behind, even when the case and AirPods are in my pocket (in the case).this can happen anytime I'm traveling / driving / walking around with the case. It's like at some point when I put them back in the case, it detects that as the last location and then can't track them or the case anymore until I open it back up and it reconnects.
Is there any way to support Find My? If not, I'm thinking the only way to stop it from trying to locate it constantly would be to unpair and repair the AirPods.

absolutely the same situation happened with me - this sounds are infuriating

@LNSSPsd - Any ideas?

I do not think it is possible to support find my.


click-click

When playing with http://localhost:8008/?test=tipGeoCentroid on the trackpad, I found that, after a first click that unsticks the tip, I want a second click to show the tip for the new location. Currently a pointermove is needed, and clicking did nothing.

I have a mild preference to not do this, because the current behavior is the same as native tooltips, and if people double-click to dismiss the tick, it’ll still work rather than bringing it back or toggling repeatedly as you click. Is it unreasonable to move the pointer if you want a new tip?

OK. Maybe I could try with a more elaborate PR, but then the risk is that it gets too complicated.


L2_RTC_S1 PGE Development

Epic for development of the specific capabilities for the RTC-S1 (Radiometric Terrain Corrected from Sentinel 1 A/B) PGE delivered with OPERA Release 2.

Closing, as the Epic-type ticket feature seems to have been removed from Github


Change atoms in trajectory changes coordinates in traj.xyz.

All 1s or 2s are replaced in the string which replaces the numbers for coordinates as well.

Add method to trajectory/tools.py to create xyz lines from given coordinates and atoms instead of replacing atom names.


Add missing "Data Direction"-option to line charts

This PR fixes #4032 by adding the missing option to the line-chart type.
Can be tested by just visualizing a result as a line-chart. The "Data Direction" will now be available.

Pull Request Test Coverage Report for Build 661171257

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 43.348%

Totals

Change from base Build 659250625:
0.0%

Covered Lines:
25413

Relevant Lines:
53484

💛  - Coveralls

@JonnyMP thank you for your contribution.


Revert test changes to fix binary dedup error

Fixes #8962. Reverts #8977, #8744.  Reopens #8712, #8713, #8714, #8715.
This reverts the changes that triggered the binary dedup error in order to unblock the 23.08 release.  We will fix this in 23.10.

build

build

build


commitTxid sent, but revealTxid not send.

How to find and re-broadcast revealTxid or recover my BTC?
My tx:
https://mempool.space/address/bc1pnaf23l54llhkk5uhwqcsmzmcjkurykllvjqwfyypl7u5d0uypnwqczquf3

I'm having the same problem as you.

Same issue

same issue

The same. How to fix it?

Same. How to fix it?

How did this happen?

Did u have or keep the raw tx of reavealing tx printed on the console, just broadcast it can u can get refund. Atomicals-JS CLI supplies the  command, execute 'yarn cli broadcast -h' command for more info.


Hit 100% with branch coverage

@waprin the misses are in tests/contrib/test_django_orm.py. Looks like you have some lines that don't get executed?

Ok, flipped the logic so those tests have some asserts, now at ONE HUNDRED PERCENT.

:100: :100: :100:

:sunglasses:

Merge merge merge merge merge!


Prompt to save unsaved changes when navigating away

Feature
Protect from accidentally leaving the page.
- What is the current behavior?
If I currently am writing in the CMS I'mm able to:

close the page
hit the back tab and leave
swoop my fingers or palm across the track pad
This results in loosing all data.

- If the current behavior is a bug, please provide the steps to reproduce.
See above.
- What is the expected behavior?
Possibly a pop-up that roadblocks you from leaving the page before saving.

Took longer than I expected, as I kept ending up on docs for the wrong react-router version, but I have the navigation confirmation working at https://github.com/Benaiah/netlify-cms/commit/9e863b7ae831d06150db54bc737ade3fd0fcd622. Once I have unsaved change detection working, I can hook that into this and make a PR to close this issue.