[HELP] Closing a modeless window

How do you programmatically close a modeless window?
local dialog = finale.FCCustomLuaWindow()
local str = finale.FCString()
str.LuaString = "Foo"
local field = dialog:CreateStatic(0, 20)
field:SetText(str)
finenv.RegisterModelessDialog(dialog)
dialog:ShowModeless()
-- do some stuff
dialog:CloseWindow()

This gets me an error: attempt to call method 'CloseWindow' (a nil value). Same thing happens with TryToCloseWindow(), Hide() and DestroyWindow().

As I recall, a script cannot close a window. So it depends what you are trying to do. If you want the window to close when the user presses OK, you can set the window's OkButtonCanClose property. Otherwise, please provide more details.

P.S. In your code example above, all the code in your -- do some stuff comment would have to be inside callback functions attached to either a control or to the OnCloseWindow event.

I'm using the window as a progress indicator -- the script I'm working on takes several seconds to execute, and I wanted some way to show the user that there's something happening.
Yes, ShowModeless() returns right away, which is desired here -- I want to open a dialog, continue working in the main script, possibly update the dialog, then close the dialog.

Unfortunately, I don't think this is possible. Furthermore, on macOS the window probably would not even show progress due to how it refreshes the screen. (You would need to use a coroutine for it show progress on macOS. I ran into this very issue with the RGP Lua Class Browser.)

Bummer. I'm seeing some update issues on Win as well -- it seems that I can update fine with simple text, but if I update with the results of string.format() then only part of the string gets painted.
As it happens, while it would have been nice to have an updating progress message, in my case I guess it's enough to just display a dialog that says something like "Working...". When the function that includes the dialog code exits, the dialog falls out of scope and disappears.

I was going to suggest that if you allowed the dialog variable to fall out of scope, it might close the window. But that depends on Lua garbage collection, and I am not sure how reliably consistent that is, unless you are exiting the script anyway.
Perhaps:
dialog = nil
collectgarbage("collect")

However, RGP Lua is not expecting this behavior and it might crash Finale. You could evert that by setting finenv.RetainLuaState until all processing is complete.

Sorry, that was premature. When I change my code to just display a single static message instead of updating with progress, the dialog shows but the text never actually displays. It seems like a timing thing -- my other script code is continuing, and the Windows message loop never gets around to painting the control. The odd thing is that the text is set before I display the dialog -- I would think that the initial paint of the window would include the text.

If you use a coroutine it should work. Even though RGP Lua Class Browser no longer needs to show status (since it loads so quickly now), I think the coroutine is still there. They are pretty easy to add.

I'm looking at the code and think I could probably add it safely something like this:
finenv.CloseRegisteredWindow(dialog)

The challenge has always been navigating out of Lua while being able to close the Lua state at the appropriate time.

I appreciate your looking at it. As it turns out, in my case the multi-second duration of my plugin's operation was due entirely to including the debuggee code, regardless of whether I had the debugger hooked up. Just for kicks, I commented out that require, and the plugin completed in sub-second time.
Do you notice this with mobdebug and Zero Brane? Things run slower with the file included even if Zero Brane isn't listening?

I haven't noticed this, but what I have noticed is that—on Windows—there is a noticeable delay on the require statement while it waits for the socket request to timeout. This delay does not happen on macOS.

Yes, I noticed that delay (with other Lua debug extensions as well, I think, not just this one). I would have assumed that if the socket request times out the included file knows not to bother doing anything, but I guess it's still following along and prepping data, even if it doesn't get sent to the debugger.
No matter, it's easy enough to comment out the require block if I'm not actively debugging, and the fact that I don't need a progress window is a good result!


Convert between ".pt" and ".ckpt"

Hello,
Thanks for sharing your great work.
I wanted to ask if there is a way to convert the pre-trained model from ".pt" format to ".ckpt" and from ".ckpt" format to ".pt".
Thanks in advance.

You can directly renname the checkpoint file as .pt instead of .ckpt.


⚠ Bofrost.de has degraded performance

In 0c6c1b4, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 776 ms

Resolved: Bofrost.de performance has improved in 3e50d0b.


Integrate FOREX

Hi,
I think it can be nice if we could integrate the forex, i have JPY, CAD, USD, GBP, and it doesn't works on a grafana. We see only JPY because graphs are bigger than others.
Objective is to get EUR/USD, EUR/JPY, etc... and multiply the value
https://fr.finance.yahoo.com/quote/EURJPY=X?ltr=1
I already did it with excel (powerquerry) but i prefer with python and influxdb ! But i'm really noob in python...
And why not add a category FOREX to the portfolio to follow the evolution ;)
I'll try tomorrow ;)

Hi Kalypox, I already did it by putting in the quote tag. In your case it is EURJPY=X in the "sigle" and whatever name you want in "nom". Just use the part in the brackets from yahoo finance including the =X section. Like EUR/USD (EURUSD=X), you use EURUSD=X.
Only problem I'm dealing with is the quantitie has to be an integer. But this is not realistic when doing FX. Any ideas ?

Hi Kalypox, I already did it by putting in the quote tag. In your case it is EURJPY=X in the "sigle" and whatever name you want in "nom". Just use the part in the brackets from yahoo finance including the =X section. Like EUR/USD (EURUSD=X), you use EURUSD=X.
Only problem I'm dealing with is the quantitie has to be an integer. But this is not realistic when doing FX. Any ideas ?

Hi,
I'm working on it to transform all values in euro (or other) in your program. I'm learning python/influxdb/yfinance

Hi,
I'm working on it to transform all values in euro (or other) in your program. I'm learning python/influxdb/yfinance

I added 2 functions :

def getLastValue(ticker):
    ticker = yf.Ticker(ticker)
    history = ticker.history(interval="30m")
    return history.tail(1)['Close'].iloc[0]

def toEur(cours,symbole):
    if symbole != "EUR":
        return cours / getLastValue("EUR" + symbole + "=X")
    else:
        return cours

def run():
    try:
        with open('data.json') as json_file:
            json_loaded = json.load(json_file)
            for info in json_loaded:
                value = getLastValue(info['ticker'])
                json_body = [{
                    "measurement": "bourse",
                    "tags": {
                        "nom": info['nom']
                    },
                    "fields": {
                        "value_origine": value,
                        "value": toEur(value,info['symbole']),
                        "qte": info['qte'],
                        "pru": info['pru']
                    }
                }]
                influxdbClient = InfluxDBClient(
                    host="<IP_ADDRESS>",
                    port="8086",
                    database="portfolio",
                    username="uuuu",
                    password="XXXXXXXXXX")
                influxdbClient.write_points(json_body)
                influxdbClient.close()
    except Exception as e:
        print(e)

And symbol in data.json
I made a lot of modifications on

I added 2 functions :

def getLastValue(ticker):
    ticker = yf.Ticker(ticker)
    history = ticker.history(interval="30m")
    return history.tail(1)['Close'].iloc[0]

def toEur(cours,symbole):
    if symbole != "EUR":
        return cours / getLastValue("EUR" + symbole + "=X")
    else:
        return cours

def run():
    try:
        with open('data.json') as json_file:
            json_loaded = json.load(json_file)
            for info in json_loaded:
                value = getLastValue(info['ticker'])
                json_body = [{
                    "measurement": "bourse",
                    "tags": {
                        "nom": info['nom']
                    },
                    "fields": {
                        "value_origine": value,
                        "value": toEur(value,info['symbole']),
                        "qte": info['qte'],
                        "pru": info['pru']
                    }
                }]
                influxdbClient = InfluxDBClient(
                    host="<IP_ADDRESS>",
                    port="8086",
                    database="portfolio",
                    username="uuuu",
                    password="XXXXXXXXXX")
                influxdbClient.write_points(json_body)
                influxdbClient.close()
    except Exception as e:
        print(e)

And symbol in data.json
I made a lot of modifications on

Nice. Will try it out later.
To answer my previous question on the integer and real values, I find out that this it automatically assigned by InfluxDB when you first create the measurement. So if you put 0 or 1, it will assume it is an integer value and assign all values must be integers. To make it automatically assume a real number, then just put 0.0 or 1.0 and then you will have a real value assignment and you won't get errors when you put in 2.3 or other non whole number.

Nice. Will try it out later.
To answer my previous question on the integer and real values, I find out that this it automatically assigned by InfluxDB when you first create the measurement. So if you put 0 or 1, it will assume it is an integer value and assign all values must be integers. To make it automatically assume a real number, then just put 0.0 or 1.0 and then you will have a real value assignment and you won't get errors when you put in 2.3 or other non whole number.

Hi,
In release 2.0, the app forces float casting for number to avoid this kind of issue (cf 27f956b5)


Casting sound continues playing after casting

Sometimes, casting sound continues playing after I finish the cast.
This can happen to any spells.
Very rarely, the casting effects also stays on (example hands on fire when casting fireball).
When the issue happens, the only way to stop the casting sound is to log out, or to die.

Hermes Issue: Further tracked by https://github.com/WowLegacyCore/HermesProxy/issues/104


Hide the windows command from k3s cluster

Summary
Fixes rancher/dashboard#7126
Technical notes summary
It looks like we determine the provisioner is k3s in a couple different ways.
Areas or cases that should be tested
Anywhere that requires windows support to be show or used could be affected but it's unlikely.
Areas which could experience regressions
Anywhere that requires windows support to be show or used could be affected but it's unlikely.
Screenshot/Video

Codecov Report
Base: 36.50% // Head: 36.67% // Increases project coverage by +0.16% :tada:

Coverage data is based on head (02fb8f0) compared to base (f18082c).
Patch coverage: 50.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7139      +/-   ##
==========================================
+ Coverage   36.50%   36.67%   +0.16%
==========================================
  Files         978      978
  Lines       17377    17379       +2
  Branches     4489     4490       +1
==========================================
+ Hits         6343     6373      +30
+ Misses      11034    11006      -28

Flag
Coverage Δ

e2e
47.32% <50.00%> (+0.23%)
:arrow_up:

merged
36.67% <50.00%> (+0.16%)
:arrow_up:

unit
5.28% <0.00%> (-0.01%)
:arrow_down:

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

Impacted Files
Coverage Δ

shell/models/provisioning.cattle.io.cluster.js
64.03% <50.00%> (-1.36%)
:arrow_down:

shell/plugins/steve/steve-class.js
33.33% <0.00%> (-16.67%)
:arrow_down:

shell/plugins/steve/subscribe.js
65.93% <0.00%> (+0.27%)
:arrow_up:

shell/plugins/dashboard-store/resource-class.js
47.17% <0.00%> (+0.30%)
:arrow_up:

shell/store/prefs.js
73.64% <0.00%> (+0.38%)
:arrow_up:

shell/store/index.js
66.81% <0.00%> (+0.68%)
:arrow_up:

shell/plugins/dashboard-store/actions.js
55.11% <0.00%> (+2.75%)
:arrow_up:

shell/mixins/resource-fetch.js
84.05% <0.00%> (+2.89%)
:arrow_up:

shell/plugins/dashboard-store/mutations.js
66.44% <0.00%> (+7.38%)
:arrow_up:

... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


feat: support async runs

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

Additional documentation e.g., design docs, usage docs, etc.:

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

97 of 994 (9.76%)  changed or added relevant lines in 24 files are covered.
11 unchanged lines in 6 files lost coverage.
Overall coverage decreased (-1.9%) to 49.545%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/server/util/cache/cache.go
30
32
93.75%

pkg/domain/entity/source.go
0
3
0.0%

pkg/domain/request/execute_request.go
0
3
0.0%

pkg/server/handler/stack/types.go
0
3
0.0%

pkg/cmd/server/server.go
0
4
0.0%

pkg/server/util/logging/ctxutil.go
0
10
0.0%

pkg/cmd/server/options.go
0
14
0.0%

pkg/domain/entity/run.go
0
14
0.0%

pkg/infra/persistence/util.go
0
19
0.0%

pkg/server/manager/stack/util.go
0
25
0.0%

Files with Coverage Reduction
New Missed Lines
%

pkg/infra/persistence/util.go
1
63.47%

pkg/server/middleware/logger.go
1
24.14%

pkg/server/manager/stack/util.go
1
59.79%

pkg/server/handler/stack/types.go
1
0.0%

pkg/engine/operation/parser/parser.go
3
75.61%

pkg/engine/operation/parser/spec_parser.go
4
56.1%

Totals

Change from base Build<PHONE_NUMBER>9:
-1.9%

Covered Lines:
10510

Relevant Lines:
21213

💛  - Coveralls


Drop all binary wheels.

From https://github.com/chevah/server/pull/6613:
The imporant part is to build the next version of Pythia without binary wheels.
We can have those wheels installed in chevah/server.

I think that we can skip Pytho 3.12 and look at Python 3.13 as the next update.
3.13 is still alpha ... and not very stable. Scheduled for September 2024
But once the beta is out, we can try to build Pythia.
We can continue to use 3.11 for some time, but I prefer to try to keep using the latest Python
In this way, when we upgrade from one version to another, the changes are not big.
We will do upgrades more often, with fewer changes between versions... rather than fewer upgrades with more changes between versions.

Removed through https://github.com/chevah/pythia/pull/58/files/87713dd07663bd54356c8ea397cc8167d82a8560..8aaeaa3a9328d8d71e91f618f21fa31303d3fd80.


export ics file

Added Feature:

Button to click and export .ics file on schedule currently being viewed
Includes: courses, custom events, finals
Changed:
Changed the icon for the screenshot feature to a camera because I wanted to use the icon being previously used for the download .ics feature
Altered some of the other files like Calendar, App, CalendarPaneToolbar (very small additions) to pass a prop to export component... some of the changes look wild but it's because I was playing around to figure out how things worked but in the end it should be relatively how it started.
Note:
Currently nothing that will handle the special case of Fall's Week 0
Hard coded in recent first Mondays in a dictionary in order to skip having to calculate first Monday of the quarter based on the final schedule
I got ics.js from someone on Github to make actually creating the .ics file easier.
I left more comments in the code to make things more clear
Tested it the best I could, but let me know if there's errors or better ways to do things (still learning React and how everything connects). If there's a better way to get information for the finals schedule please let me know, I couldn't really figure it out so I worked with what I had which made the logic a little obscure. :)

Note to refactor: generate finals schedule in calendarize and store as a state in app.js, instead of generating it when displaying finals and when downloading ics, for the sake of efficiency and code reuse.

This was sooo amazing!! Very great job and really clear documentations! It works like a charm, outstanding job for you especially given that you had to work with the funky data structures of react, for the first time!!

Since the start date is hardcoded, it will fail once the hardcoded dates are exhausted.
It should not fail silently. You can disable the button when you fail to get the start date so that the users will not click on it.

@gitletH This was intentional. I told Justine to hard code this. A unique advantage that we have as an organization is that we will actually have the manpower to update these hard coded information every quarter. Now for good style, we should do it a better way, but we'll do that once we have more time lol. It's about small goals :)

@the-rango I see.


Team9 Review:

@tingyuw
Assumption 2 - Marked biking lanes can still have cars beside them, causing false blind spot detections. However, these are not false cases, as there will be something momentarily in the cyclist's blind spot. Just because something is parked or moving in a blind spot should not change detection; thus, this assumption is that the system works as intended and unneeded.
General Notation of Functional Requirements (FR)- Some FRs have a conditional (CFR1, CFR3... etc.), except it is hard to follow the notion in the title of the CFR#, a discrete presentation as a subsection of the CFR# would have made them more accessible.
CFR2 - Lacks clarity on where the live video feed goes. Basing it off the submodule that needs the live feed would be better, as the entire system does not require the live feed.
(Minor) CFR11 - Missing rationale.
CNFR1 - White is a noticeable colour in the dark but should be a reflective material (similar to a sign) that is much more obvious when any light is shined on it.
CNFR8, CNFR10 - Minimal training and easy to learn are specified, but there is ambiguity on what they mean. Team 9 should include set-in-stone examples in the SRS of the requirements of "minimal" and "short time."
CNFR32 - Meeting Non-Functional Requirements is not guaranteed, so it's okay to keep. But, it is essential to note that technology and styles can change immensely in 10 years, making it hard to sustain a single design for that long.

Hmm I see the label is added but I cannot add it as part of this issue


Azure Administrators in Locked-down Environments require Windows Automation Approaches - Not Linux/Unix/Mac which is inaccessible to be used.

The examples for automating network creation are not usable to Windows Administrators without access to Bash.

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

ID: db4fbca5-fd86-d9b3-2e6f-ab30dfe7b053
Version Independent ID: db4fbca5-fd86-d9b3-2e6f-ab30dfe7b053
Content: Configure Azure storage firewalls to allow access from serverless SQL warehouses - Azure Databricks - Databricks SQL
Content Source: databricks/sql/admin/serverless-firewall.md
Service: azure-databricks
Sub-service: databricks-sql-analytics
GitHub Login: @mssaperla
Microsoft Alias: saperla

Thanks for providing feedback that helps improve our documentation. This issue has been resolved and the documentation has been updated here https://learn.microsoft.com/en-us/azure/databricks/sql/admin/serverless and the incorrect content has been removed so we're closing the issue.
#please-close

@nova-jj
We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


more articles

feat(article-list): allow showing three articles in the overview page
fix(article-list): show more articles link underneath

Try it https://more-articles--zeiss-hlxsites.hlx.live/news-und-events/

The try it link is broken (404).

Fixed


breaking: stop bases inheriting parents' values by default

Extracted from https://github.com/roboll/helmfile/issues/347#issuecomment-498956966
We've introduced bases a month ago via #587. I'd like to make this breaking change(perhaps the first, intended breaking change in helmfile) before too many people start using it :)

Duplicate of #https://github.com/roboll/helmfile/issues/688#issue-455482550


Document behaviour of lint cli args after --

Is your feature request related to a problem? Please describe.
We use pre-commit to automatically hook up a number of linters to our repository.
This tool sends the files that are to be commited as extra command-line arguments to redocly.  By way of example, I use a pre-commit config like this:
      - id: my-api lint
        name: my-api lint
        entry:
          pnpm --package=<EMAIL_ADDRESS>dlx redocly lint my-api --config .redocly/config.yaml
        files: ^path\/to\/spec\/.*$
        language: system

Unfortunately due to the above pre-commit behaviour of sending the changed files, the actual command will be sent like this:
pnpm --package=<EMAIL_ADDRESS>dlx redocly lint my-api --config .redocly/config.yaml path/to/spec/file-that-i-changed.yml

Redocly interprets that last argument as a config file.
I found a work-around wherein if I add a -- to the end of the command, Redocly lint ignores anything after it!
Describe the solution you'd like
Pretty simply: Can you confirm that is indeed the expected and supported behaviour, or am I doing some spacebar heating?  If it is supported, can it be called out in the docs?
Describe alternatives you've considered
Possibly could wrap it in my own shell script that throws away args.
Additional context
If the above is not clear, I'd be happy to provide a minimum reproduction by way of a small example repository.

Hi @collinsauve! The behaviour is not specific to Redocly CLI, it's how yargs (which is used as the arguments processor here) handles the input.

Thanks for the confirmation that this is expected behavior.  My primary concern was that I was relying on something unsupported.
Unfortunately I also don't see this in yargs docs.  I used this only because, as you say it is a common pattern.  Not going to push too hard on getting it documented now that at least that this is at minimum confirmed here.
Thank you!

Thanks @collinsauve I think your usage is the right way to use the -- command. I'm going to close this issue since it's both familiar and also from an upstream repository, so I don't think there's further action for us to take.


Many post-receive hooks after post-finish hook

Question
I'm trying to create progress meter for file uploader and using TUS http hooks for that matter.
On my local machine's port 8000 there is a python app, where I receive hooks and update database accordingly (tusd, database and app is on my localmachine).
In the app's log I see that "post-finish" hook is always followed by many "post-receive" hooks. And they are going almost instantly:
2024/03/12 00:23:39.732375 level=DEBUG event=HookInvocationFinish type=post-receive id=9
2024/03/12 00:23:39.776973 level=DEBUG event=HookInvocationStart type=post-receive id=9
2024/03/12 00:23:39.787741 level=DEBUG event=HookInvocationFinish type=post-receive id=9
2024/03/12 00:23:39.826289 level=DEBUG event=HookInvocationStart type=post-receive id=9
2024/03/12 00:23:39.843333 level=DEBUG event=HookInvocationFinish type=post-receive id=9
2024/03/12 00:23:39.869038 level=DEBUG event=HookInvocationStart type=post-receive id=9
2024/03/12 00:23:39.885667 level=DEBUG event=HookInvocationFinish type=post-receive id=9
2024/03/12 00:23:39.905278 level=DEBUG event=HookInvocationStart type=post-receive id=9
2024/03/12 00:23:39.914368 level=DEBUG event=HookInvocationFinish type=post-receive id=9
2024/03/12 00:23:39.944836 level=DEBUG event=HookInvocationStart type=post-receive id=9
2024/03/12 00:23:39.955878 level=DEBUG event=HookInvocationFinish type=post-receive id=9
2024/03/12 00:23:39.969410 level=DEBUG event=HookInvocationStart type=post-receive id=9
2024/03/12 00:23:39.980200 level=DEBUG event=HookInvocationFinish type=post-receive id=9
2024/03/12 00:23:40.008805 level=DEBUG event=HookInvocationStart type=post-receive id=9
2024/03/12 00:23:40.025901 level=DEBUG event=HookInvocationFinish type=post-receive id=9
2024/03/12 00:23:40.049101 level=DEBUG event=HookInvocationStart type=post-receive id=9
2024/03/12 00:23:40.065275 level=DEBUG event=HookInvocationFinish type=post-receive id=9

Is there any way to stop sending "post-receive" after "post-finish" has been sent? It's not kind of big problem now, but in case of many simultaneous uploads I would have to use cache or change my upload algorithms, because every http request to my backend makes request to database, and that is not good.
From my current knowledge it is easier to turn off sending, than changing the way my backend works.
If I'm wrong, correct me please.
Thank you!
Setup details

Operating System: macOS Sonoma 14.3.1
Used tusd version: Version: v2.3.0
Commit: 9801b91f309f0f17f67e53c3fcc314c01723545a
Date: Fri Mar  1 14:22:31 UTC 2024
Used tusd data storage: disk store
Used tusd configuration: ./tusd -host <IP_ADDRESS> -port 1080 -hooks-http http://<IP_ADDRESS>:8000/videomanager/v1/tus_hook -disable-download -base-path /videomanager/uploads -progress-hooks-interval 1s
Used tus client library: tus-js-client

In the app's log I see that "post-finish" hook is always followed by many "post-receive" hooks. And they are going almost instantly:

That's odd and should not be happening in the first place, but I am not able to reproduce this locally. Are you able to reproduce this consistently? Could you also share the entire logs for the upload?

local_tusd.log
local_fastapi.log
k8s_tusd.log
So, local_tusd and local_fastapi these are logs when I load file locally.
k8s_tusd is from production deployment, you can see two post-receive hooks after post-finish.

Thank you, I will look into this in two weeks.

I feel like you have two different questions here:
Why are there so many post-receive events?
In local_tusd.log we see many post-receive events that are executed at nearly the same time:
2024/03/26 00:46:28.016805 level=DEBUG event=HookInvocationFinish type=post-receive id=14
2024/03/26 00:46:28.033906 level=DEBUG event=HookInvocationStart type=post-receive id=14
2024/03/26 00:46:28.059759 level=DEBUG event=HookInvocationFinish type=post-receive id=14
2024/03/26 00:46:28.086797 level=DEBUG event=HookInvocationStart type=post-receive id=14
2024/03/26 00:46:28.116238 level=DEBUG event=HookInvocationFinish type=post-receive id=14
2024/03/26 00:46:28.139646 level=DEBUG event=HookInvocationStart type=post-receive id=14
2024/03/26 00:46:28.172106 level=DEBUG event=HookInvocationFinish type=post-receive id=14
2024/03/26 00:46:28.185443 level=DEBUG event=HookInvocationStart type=post-receive id=14
2024/03/26 00:46:28.214986 level=DEBUG event=HookInvocationFinish type=post-receive id=14
2024/03/26 00:46:28.227101 level=DEBUG event=HookInvocationStart type=post-receive id=14
2024/03/26 00:46:28.250913 level=DEBUG event=HookInvocationFinish type=post-receive id=14

The reason is that you are sending PATCH requests at a high rate, one about every 50ms, which is likely possible because you are testing on a local network with low latency and high throughput. Anyways, a post-receive event is emitted for every PATCH request at the specified interval (1s in your case) and whenever the request ends, so that for every PATCH request we have at least one post-receive event. However, this also means that when you send a PATCH request every 50ms, you will also get the same amount of post-receive events.
I recommend you to reconsider whether you need to send many small PATCH requests versus one big PATCH requests. That is usually the more efficient way to go and would also reduce the number of post-receive events.
Why are there post-receive events after post-finish?
The last post-receive event is emitted whenever we finish processing a PATCH request, which is also often after we have emitted post-finish. This would explain why we have post-receive after post-finish. I am not sure if there is much we can do about this. At the day of they day, they are asynchronous events, so we cannot guarantee their ordering.
I hope this helps!

Given the information about the PATCH request rate I can also reproduce this locally by uploading to a server running on the same machine with a PATCH request body size of 20MB. There we can see that there is a 1s delay between when the first PATCH request finishes and the first post-receive event is emitted. Some delay is expected, but it would nice if it were lower.

I also noticed that we send HTTP hook request with a concurrency of 1, which is the default for the HTTP client we are using:
https://github.com/sethgrid/pester/blob/32a1beba19bdd8dd2925f3122c3c2f9bd92c5698/pester.go#L139
I wonder if we should increase this. However, it doesn't seem to affect the behavior we are seeing here in this issue.


findElement produces inconsistent results

I'm finding that findElement produces inconsistent results in finding the same element after a user interaction has occurred.
Repro steps:

Find button element
Click on button element
Sleep for a second
Find same button element in step 1

🔴 Step 4 fails and the element is not able to be found.

There's a built in retryTimeout for the findElement function. You can override it by passing in your own timer.

Closing as not actionable without a repro.


Upstream Authorization Cookie

adding an option to stop the proxy from including the authorization cookies in the upstream request

so disabling all authorization tokens would mean specifying --enable-authorization-cookies=false --enable-authorization-header=false --enable-token-header=false ..
TODO: add shortcut to disable all threw

fixes #285


[enhancement] Filling the gap in the "market" for custom skinned armors, tools, and weapons.

This may be out of scope for this mod, but I figured it would be worth mentioning. In the past, mods like Armourer's Workshop gave players the ability to skin individual pieces of armor, tools, and weapons. This allowed for customized items like that to exist without the need for a special texture pack. Sadly, it seems to have no plans for updating beyond 1.12.2, it's developers have made that clear. Custom Player Models is the next closest thing to Armourer's Workshop for modern versions, it is just missing this key feature.
I am suggesting that some sort of system for applying custom models/skins to these items via something like naming them the name of the model at an anvil, or perhaps some sort of command to apply the skin/model to the item in the player's main hand. This would allow for the item to also keep its texture when given to another player, allowing for players fond of creating custom weapons, tools and armors to make things for their friends without the need to export any files or similar procedures.
Once again, I am not sure if this is out of scope for the mod or not, I just figured it was worth mentioning. I love this mod nonetheless, I just want to see how far it can go!

The issue I find with this method is that armor that kept its shape would be incompatible with other model shapes in Minecraft and doesn't seem to fit the purpose of the mod. I think a better method would be to have armor designed specifically for each model. Barding for a centaur, chestplate for a dwarf, acorn necklace for a fairy, etc. A separate model and texture that could be designed and stored on the cpmmodel. Another more mod-friendly option would be to keep the textures of each armor, but have the modeler specify the model for the armor, stretching the textures as necessary for differing builds. This method would be lighter on cpmmodel size and would be compatible with resource packs and modded armors, like Armourer's Workshop.


Installation instructions

Thanks for the scalable mqtt java broker. Is there any wiki for installation instruction? What kind of deployment do you guys recommend for production? I can think of http and broker module to be independent and separately deployed. Apart from that I can think of a db servers (redis, influx)
Also wanted to check if you guys have done some load testing? I am planning to test it on 1.7gb aws machine (although I will be keeping it inside docker container and will be building images).
Thanks,
Harshit

The open source project is not production ready yet.
We have a internal version based on v1.0.0Beta1 running in production environment, if you want to do some test, start from there.
I'm trying to improve the architecure a liitle bit by replace the overhead commmunicator choice. I'm planling to finished the document after next release.
The InflusDB based metrics is a liitle buggy, do not use it at the moment.

Thanks. Makes sense. We really liked the concept of designing based on micro-services.  We are currently building an internal version of our server and so I think we can fix the bugs.
It will still be awesome if you can write a basic wiki on installing from source and binary so that anyone can start and contribute.

I've wrote a get started guide:
Getting Started with Mithqtt Broker
More documents will be added in the future.


Add git to rd edition (fixes #83)

Thanks, but please sign the commit for DCO
https://github.com/apps/dco
(run git commit -a -s --amend, and make sure that the Signed-off-by: NAME <EMAIL> line with your real name is included in the commit message)


SqsMessageHandler function doesn't called sometimes

When I try to process message and send push notification to users it appears messages are processed multiple times and when I noticed it seems my handler function is sometimes doesn't called. Because of that I cant delete message from queue. This is my handler function. sqsService is injected from '@aws-sdk/client-sqs'
@SqsMessageHandler('notification', false)
    public async handleNotification(message: Message): Promise<void> {
        try {
            const {
                Body,
                ReceiptHandle
            } = message;
            const data = JSON.parse(Body);
            const {
                token,
                userId,
                body,
                title,
                type,
                additionalData,
            } = data;

            if (!!token) {
                await firebase
                    .messaging()
                    .send({
                        token,
                        data: {
                            type,
                            additionalData: JSON.stringify(additionalData)
                        },
                        notification: {
                            body,
                            title
                        },
                    });
            }
            if (!!userId) {
                await this.notificationService.create(data);
            }

            await this.sqsService.sqs.deleteMessage({
                QueueUrl: process.env.AWS_NOTIFICATION_QUEUE_URL,
                ReceiptHandle
            });
        } catch (error) {
            console.error(JSON.stringify(error, null, 2));
        }
    }

Also no errors appears on any of these events:
    @SqsConsumerEventHandler('notification', 'error')
    public onError(error: Error, message: Message) {
        console.log("error", JSON.stringify(error, null, 2));
    }

    @SqsConsumerEventHandler('notification', 'processing_error')
    public onProcessingError(error: Error, message: Message) {
        console.log("processing_error", JSON.stringify(error, null, 2));
    }

This was my own code problem, sorry.


Utilize a temp email address for signing up to a site

Script Title - Temp Email for Sign-Ups
Brief - A script that utilizes maildrop.cc for generating an email address to sign-up for a site or service. Would first provide the email address that the site provided. Then, the script would monitor the inbox at an interval (5 seconds) to see when the account confirmation email arrives. Finally, it would print the contents on the email, so the user can copy/paste the confirmation link into a browser and complete account verification.
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Programming Language

[x] Python

Happy Coding

can I take this?


update readme in tools/torch please

Well I tried to follow the example in https://github.com/NVIDIA/DIGITS/tree/master/tools/torch and get the error that --load can not be found and looking deeper into https://github.com/NVIDIA/DIGITS/blob/master/tools/torch/test.lua there is no --load required Now I am on a path of trail and error to see what works and what not :/

Well, this is the command that worked for me for getting any predictions
th test.lua \ --networkDirectory ./pretrained_model/ \ --snapshot ./pretrained_model/snapshot_30_Model.t7 \ --image ./val/honey/frame25_<IP_ADDRESS>.jpg \ --network ./pretrained_model/resnet.lua \  --labels ./pretrained_model/labels.txt \ --mean ./pretrained_model/mean.jpg \ --subtractMean pixel

But why am I getting total different results on the same network and on the same picture. The web app 'classidy one' method tells me to 98% that it is product A and the https://github.com/NVIDIA/DIGITS/blob/master/tools/torch/test.lua file is telling me that it is product B with 38 %

Hi @mastrcheif sorry that part of the doc is out of sync with the latest code. The snapshot loading scheme was updated and now the full snapshot path is passed with --snapshot.  Parameter --load was removed.
I have updated the doc in #892. Can you verify please?
I have verified that I am getting the same probabilities on the command line and on the web UI.
Things to check on your side:

make sure the input image has exactly the dimensions that your network expects (DIGITS resizes images before passing them to test.lua so you will need to do the same thing in your script)
make sure you are using the same mean subtraction scheme (pixel, image, ...)
make sure you are using exactly the same version of Torch for training and inference
if you are using batch normalization and training on GPU, double check that you are also doing inference on GPU

Hey @gheinrich thanks for your help, alright it works now. I just had to scale down my image to Resnet's 224 x 224 and it gives me the same results. I thought resizing was taking care by the test.lua file, but the python layer is taking care of it, as it seems.
One litte addition, the command also works without the wrapper.lua part just as fine
and thanks again =)


Line wrapping width does not seem to take the key value into account

And confirmed in foldFlowLines.js it only considers the indent + length of the value, not the key.

Should be fixed in the next release. As it turns out, I'd taken this into account when writing the actual folder, but then never actually used it from the calling code.


Create a benchmark suite

What is wrong?
We currently don't have a way to measure the efficiency of Fe code. It would be nice to be able to create contracts with certain use cases and measure:

Deployment gas cost
Runtime gas cost of various actions
Code size
?

The numbers above could be measured against raw YUL and optimized YUL code.
We can then also compare Fe against other established languages to see where we stand in terms of efficiency.
How can it be fixed
This can start dead simple by creating the tests and figuring out how to measure the gas costs and printing them out. We can take the Py-EVM benchmark suite as a source of inspiration (even though it measures different things, namely the speed of Py-EVM against a fixed set of gas costs whereas we want to measure and improve the gas costs itself)

It will be a nice start, I have some small queries about the outcomes.
When we say deployment gas cost isn't it based on the no. of opcodes we call during the deployment of the contract and the contract size itself. Then maybe the real difference is how much raw YUL we generated for it in comparison to the solc Yul generation for the same? Or I am totally wrong here.
For figuring out the gas cost part can't we calculate it using some existing solidity-based gas estimation libraries which will take binary or YUL as input?

isn't it based on the no. of opcodes we call during the deployment of the contract and the contract size itself

That's right.

Then maybe the real difference is how much raw YUL we generated for it in comparison to the solc Yul generation for the same?

I think that, because it all boils down to the size of the bytecode and the called opcodes, we should probably not worry too much about the generated YUL. I think the fairest comparison would be too have some code in solidity (and vyper) that serves as a reference and where the implementations are as close to each other as possible and then just measure and compare the gas cost for deployment and operations.
We currently use rust-evm to run the tests and I think we can continue to use that for the benchmarks, too. As long as we get the receipt for the transaction we should be able to read gasUsed from the receipt. This should work for contract deployment as well as any other operations that we perform on the contract.

I think we could do something as simple as adding a map field to ContractHarness for this. When the contract is deployed or whenever a function is called, we would add an entry to record the gas used.
The contents of these maps could be written out to tracked files (bench/erc20_token.yaml for example) and would contain the function called, what parameters where provided, and the gas usage. It would be nice to see the diffs on these files in each PR.

When we do the contract differential fuzzing we could also record the used gas for solidity / fe. We could then go forward and configure a threshold for a maximum gas premium that the Fe code is allowed to consume (e.g. --max-percentage-gas-premium 20) and then every time the fuzzer finds a call that is taking up too much gas (above the threshold) we would report, that too. This seems to me to be an efficient double benefit for the fuzzer. :upside_down_face:


add Draw.MolsToSVGGrid()

This assembles the final svg using regexp operations instead of parsing the xml and working directly with the tree.
I think it's ok to do things this way, and suspect that it ends up being faster, but it's probably possible to do things differently if someone else thinks this is horrible.

Ah, you beat me to it :)
Can you make IPythonConsole use this function when use_svg is true?

Not sure what you mean. This is the equivalent of MolsToImageGrid, which
also has to be explicitly called.
On Monday, 21 March 2016, Brian Kelley<EMAIL_ADDRESS>wrote:

Ah, you beat me to it :)
Can you make IPythonConsole use this function when use_svg is true?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/rdkit/rdkit/pull/817#issuecomment-199426916

I see the issue, there is an option in IPythonConsole to use_svg for the default molecule renderer.  It would be nice if this also altered the default behavior of molstogridimage but I can see that being problematic...

Brian Kelley

On Mar 21, 2016, at 3:39 PM, Greg Landrum<EMAIL_ADDRESS>wrote:
Not sure what you mean. This is the equivalent of MolsToImageGrid, which
also has to be explicitly called.
On Monday, 21 March 2016, Brian Kelley<EMAIL_ADDRESS>wrote:

Ah, you beat me to it :)
Can you make IPythonConsole use this function when use_svg is true?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/rdkit/rdkit/pull/817#issuecomment-199426916

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub

Yeah, that's a specific Python function, not part of the IPython
integration.
We could add a new IPython function: DisplayMols() (or something like that)
that picks either PNG or SVG and does the right thing though.
On Monday, 21 March 2016, Brian Kelley<EMAIL_ADDRESS>wrote:

I see the issue, there is an option in IPythonConsole to use_svg for the
default molecule renderer. It would be nice if this also altered the
default behavior of molstogridimage but I can see that being problematic...

Brian Kelley

On Mar 21, 2016, at 3:39 PM, Greg Landrum<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:
Not sure what you mean. This is the equivalent of MolsToImageGrid, which
also has to be explicitly called.
On Monday, 21 March 2016, Brian Kelley<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

Ah, you beat me to it :)
Can you make IPythonConsole use this function when use_svg is true?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/rdkit/rdkit/pull/817#issuecomment-199426916

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/rdkit/rdkit/pull/817#issuecomment-199464288

Would it make sense to add a target type to molstogridimage?  I.e svg, png...
We could then use some Python magic to reset the default arg so old notebooks could still work and get prettier ...
I can prototype this in another pull request.

Brian Kelley

On Mar 21, 2016, at 4:34 PM, Greg Landrum<EMAIL_ADDRESS>wrote:
Yeah, that's a specific Python function, not part of the IPython
integration.
We could add a new IPython function: DisplayMols() (or something like that)
that picks either PNG or SVG and does the right thing though.
On Monday, 21 March 2016, Brian Kelley<EMAIL_ADDRESS>wrote:

I see the issue, there is an option in IPythonConsole to use_svg for the
default molecule renderer. It would be nice if this also altered the
default behavior of molstogridimage but I can see that being problematic...

Brian Kelley

On Mar 21, 2016, at 3:39 PM, Greg Landrum<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:
Not sure what you mean. This is the equivalent of MolsToImageGrid, which
also has to be explicitly called.
On Monday, 21 March 2016, Brian Kelley<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

Ah, you beat me to it :)
Can you make IPythonConsole use this function when use_svg is true?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/rdkit/rdkit/pull/817#issuecomment-199426916

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/rdkit/rdkit/pull/817#issuecomment-199464288

—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub

That could certainly work.
I'll try to get that change done this morning.
On Mon, Mar 21, 2016 at 9:42 PM, Brian Kelley<EMAIL_ADDRESS>wrote:

Would it make sense to add a target type to molstogridimage? I.e svg,
png...
We could then use some Python magic to reset the default arg so old
notebooks could still work and get prettier ...
I can prototype this in another pull request.

Ok, MolsToGridImage() can now return either SVG or the PIL Image it's been using.
I also modified the IPythonConsole integration so that SVG is rendered properly.


ios 10 only receive notification on foreground but not on background, ios 8 nothing happen both foreground and background

any one has problem like me?

can you reproduce with example project?

i tried with your example but not success.
i changed team, googleservice-info.plist, firebase api key, created apn key, profile, app id... but cannot receive notification (ios 10.2) both background and foreground (show_in_foreground = true).
local notification working fine, remote notification send success but not receive:
Send notification response Response {type: "default", status: 200, ok: true, statusText: undefined, headers: Headers, …} Send data response Response {type: "default", status: 200, ok: true, statusText: undefined, headers: Headers, …}

you are using actual device right?

yes sure, i run on my iphone 6.
when i log response.json() it look like

i tried make a breakpoint on willPresentNotification but it not stop here. Also i get a warning on didReceiveNotificationResponse, what wrong?

ahh, you need to fix the method. I've updated the correct method in readme. it is xcode 9 change

i've updated AppDelegate.m like latest readme's change but still not receive notification.
in xcode log i get FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO. Should i set it to NO?
I tried send notification via firebase console to app fcm token but nothing happen.

don't set it to be NO
sent 0 might mean you haven't registered successfully?

i tried quickstart-ios by firebase, it working fine.

i removed all profiles and let xcode manage them automatic and  now example is woking.
i tried same thing for my app but still not work on background mode :(

So if example is working, it should be some setup up issue.
ic_notification did you add corresponding file?
if you try with the bare minimum notification does it work?

check this
https://github.com/firebase/quickstart-ios/issues/327#issuecomment-331782299

it's helpful for me
thank you very much


How to free GPU momory of DataIter

I am trying to prefetch data when training. the DataIter  python code is somehow like this:
class DataIter(mx.io.DataIter):
    def __init__(self, names, batch_size):
        super(DataIter, self).__init__()
        self.started = True
        self.q = multiprocessing.Queue(2)
        self.pw = multiprocessing.Process(target=self.write,)
        self.pw.start()

    def write(self):
        while True:
            if not self.started:
                break
            data_batch = DataBatch(data_all, label_all)
            self.q.put(data_batch)

    def __del__(self):
        self.started = False
        self.pw.join()

When training, there are two processes on GPU and when I terminate the training process with Ctrl-C, only one process is terminated(which occupied more memory). The left process always occupied about 102M memory.

This is a python signal handling problem.
I forgot how to do it exactly but should be easy to google

Problem solved according to your suggests, thanks a lot @piiswrong


Fix type of $forceLocale in translatedInput()

Description
This fixes the type of the parameter in Models/Block::translatedInput()
Related Issues
Fixes #2309

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.