Refer to helpers in NameError response in development/test

What are you trying to accomplish?
We identified in #1836 that some things might influence whether the developer is aware of methods provided by the helper layer, particularly in the case where they may have used the help of libraries like Devise and Kaminari to get going. In order to make things easier when you're getting started like this, this PR adds extra context to NameErrors raised by method calls that mirror something the view context already responds to.
What approach did you choose and why?

method_missing seemed like a natural fit here, but as suggested by @camertron, I've conditionally defined this behaviour for development and test environments only.
Additionally, the source location is removed from the backtrace – this was causing another test to fail.
Anything you want to highlight for special attention from reviewers?
Worth noting that I needed to define_instance_method in order to stub in the test, since calling MiniTest's stub would raise an error because view contexts don't naturally define current_user.
I wonder if there's anything more we can add here? A link to some docs, perhaps?
Also, it's worth noting that for older versions of Ruby, DidYouMean appends its suggestion a couple of times (notice Did you mean?   current_page? showing up twice in the below logs):
[1] pry(#<ViewComponent::Base::UnitTest>)> exception.message
=> "undefined local variable or method `current_user' for #<ReferencesMethodOnHelpersComponent:0x0000000151a98560>\nDid you mean?  current_page?\n\nYou may be trying to call a method provided as a view helper. Did you mean `helpers.current_user'?\nDid you mean?  current_page?"

I wonder if there's anything more we can add here? A link to some docs, perhaps?

@boardfish I think that would be unnecessary as this is something I feel documents itself pretty well


chore: add more tests

Codecov Report

Merging #6 (348fe4e) into main (55c376d) will increase coverage by 21.92%.
The diff coverage is 93.40%.

@@             Coverage Diff             @@
##             main       #6       +/-   ##
===========================================
+ Coverage   57.83%   79.75%   +21.92%
===========================================
  Files          15       18        +3
  Lines         581      726      +145
===========================================
+ Hits          336      579      +243
+ Misses        245      147       -98

Flag
Coverage Δ

ios
79.75% <93.40%> (+21.92%)
:arrow_up:

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

Impacted Files
Coverage Δ

Tests/TestAnimatorDelegate.swift
0.00% <0.00%> (ø)

Tests/PresenterTests.swift
94.11% <94.11%> (ø)

Sources/Animator.swift
60.15% <94.59%> (+60.15%)
:arrow_up:

Tests/AnimatorTests.swift
98.83% <98.83%> (ø)

Sources/Presenter.swift
94.28% <100.00%> (+94.28%)
:arrow_up:

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 55c376d...348fe4e. Read the comment docs.


ModuleNotFoundError: No module named 'discord'

I get the "ModuleNotFoundError: No module named 'discord'" error everytime i try to run my script. I did as you said, uninstall the original lib then install yours. Now vscode is throwing that error

@someoneidk12
yes, there was a problem with the installation because it installed it in a folder called src. Yust install version 1.0.2 that should fix it. (Yes the version sequence is strange I know I have to delete the other ones, but i nead my phone for that)

That did it, Cheers!


[CLI] Updating the OVA version

Updating the ova version SIFT with the sudo sift update command generates the following error:
sansforensics@siftworkstation -> ~
$ sudo sift update

<EMAIL_ADDRESS>sift-version: v2018.16.0

NOTICE: Fixing incorrect Saltstack configuration.
Installing and configuring Saltstack properly ...
Command failed: apt-get remove -y salt-minion salt-common
E: Held packages were changed and -y was used without --allow-change-held-packages.
Error: Command failed: apt-get remove -y salt-minion salt-common
E: Held packages were changed and -y was used without --allow-change-held-packages.
at ChildProcess.exithandler (child_process.js:205:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

I found by manually executing:
sudo apt-get remove -y --allow-change-held-packages salt-minion salt-common
I was able to get the CLI tool to run update as expected.

I had to do this whether upgrading or updating using the sift command line tool the first time on a new import of the OVA.

Please upgrade to the latest sift cli tool manually. It’ll fix that error
Sent from my iPhone

On Aug 26, 2018, at 11:40, Vernon McCandlish<EMAIL_ADDRESS>wrote:
I had to do this whether upgrading or updating using the sift command line tool the first time on a new import of the OVA.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

TY

@VernMcC as always if you have any more issues please feel free to reach out. I'll be pushing some more updates to the CLI tool to help with self-update, overriding certain settings and the like in the near future.


Release Metal3 0.4.1

Release Metal3 0.4.1
This release contains all the changes from 0.4.0 plus the updated security context from 0.2.1

A review from @ipetrov117 is required for merging this PR

lgtm but will defer to @ipetrov117 for review/merge
As mentioned in #69 it's quite hard to review these changes as a single commit (I had to do a local recursive diff) - we should think about how to handle that, for example by using PRs with two or more commits, where the first commit is the copy of the existing chart, then subsequent commits with changes can be more easily reviewed?

for example by using PRs with two or more commits, where the first commit is the copy of the existing chart, then subsequent commits with changes can be more easily reviewed?

That's a good idea +1

As mentioned in https://github.com/suse-edge/charts/pull/69 it's quite hard to review these changes as a single commit
Actually here the review should be a bit easier because the actual changes are in the packages dir. The issue comes when we need to change a previous version that is not referred by the packages (packages contains the chart from the latest version)

@hardys, do we have any other changes that are on the roadmap before pushing the new version to Sylva. I think these are the last ones, correct?

I think we can land this and update the version in Sylva - there are more changes I'd like to see but those can wait for a future version 👍

I think we can land this and update the version in Sylva - there are more changes I'd like to see but those can wait for a future version 👍

Okay, I will open a PR on Sylva's side shortly.


hide admin side nav if not kots managed

Hide "Admin Console" and "Chrome Plugin" from the side nav if not enabled.
For admin console, added a new env var REPLICATED_KOTS_MANAGED, which should only be set when KOTS deploys the slackernews helm chart
For the Chrome Plugin, it seems like this is aspirational functionality, so hiding it until I can get more signal on if/how it's supposed to work

moving PR to upstream instead of fork

https://github.com/slackernews/slackernews/pull/21


Users are confused that they have to go into edit mode while viewing resources from their My Resources

Users assumed that resources that they owned or had editing rights to (that they navigated to from My Resources) would open up in edit mode and would have an option to preview not in edit mode.

This is opposite of most web sites I have visited. Once content is created, when I access it, I get it in view mode. If I want to edit it, I choose to do so by clicking a button or link to enter an edit mode. Seems like this is a pretty well accepted pattern on the web.
The only one I can think of that is different is Figshare (I'm sure there are others out there). I think figshare opens items in edit mode until you choose to publish them - and then you can no longer edit them. So, they have a "preview" mode to show you what it will look like when it is published. Nobody can view a figshare dataset except the creator until it is published, so opening in edit mode is more reasonable. Given that HydroShare has more public view modes than figshare, and the fact that once something is shared or made public, other people can see it (even if they don't have edit rights), defaulting to view mode seems like the right thing to do.

I find this disorienting too and would prefer clicking on a resource goes into edit mode

So, if I click on a resource that I have edit access to it automatically goes into edit mode (even if I don't want to edit it), but if I click on a resource that I don't have edit access to I get totally different behavior?
Editing is a deliberate action. I think we should keep it so.

@Lizabrazil did I misunderstand the user's intent in opening this ticket? My opinion counts for less, as I'm not a hydrologist

@cuahsimarko - certainly you don't have to be a hydrologist to have an opinion here. It's a pattern for how the site works. Your opinion is just as valid as mine.

@horsburgh I'm thinking more of an in-place edit, live edit mode.

@cuahsimarko - yeah, in place edit could provide some nice improvements although would probably be a pretty big change because we have two separate views now (view and edit).
My concern is just making sure edits are deliberate - and, as a user, my immediate goal in accessing a resource is not always to edit it.

i take this back! I more recently learned about best practices with editing in context and yes I agree it should be a deliberate user action. I


Jenkins build script for Gradle plugin bug

Jenkins build script for Gradle plugin doesn't allow to use configurable version of lightning-core dependency. This means it will never consume local snapshot version, which is an obvious bug in the build script. It is important to find a solution for this, before proceeding with #62.

Actually, it should not be a problem. If there is a change needed in dependency version, it is done through a manual commit anyway. There is no need to automate that part of the process.


SIM7670G MQTT(S) WILL not working

Hello,
I have a Lilygo SIM7670G with the ESP32-S3. I use the TinyGSM Fork. The device connects to the internet without any problems. It also connects to my MQTT server via SSL which is great but I need to use the WILL functionality.
I have modified the TinyGsmMqttA76xx.h file and added the WILL AT commands according to the SIM767XX Series_AT_Command_Manual_V1.01.pdf:
public:
bool mqttWillTopic(uint8_t clientIndex, const char* topic) {
    if (clientIndex > muxCount) {
        Serial.println("Error: Client index out of bounds");
        return false;
    }

    // Set the Will topic
    // +CMQTTWILLTOPIC: <client_index>,<req_length>
    thisModem().sendAT("+CMQTTWILLTOPIC=", clientIndex, ',', strlen(topic));

    int response = thisModem().waitResponse(10000UL, ">");
    if (response != 1) {
        Serial.print("Error: Did not receive expected '>' prompt, response: ");
        Serial.println(response);
        return false;
    }

    // Send the actual topic
    thisModem().stream.write(topic);
    thisModem().stream.println();

    response = thisModem().waitResponse();
    if (response != 1) {
        Serial.print("Error: Did not receive 'OK' after sending the Will topic, response: ");
        Serial.println(response);
        return false;
    }

    return true;
}

public:
bool mqttWillMessage(uint8_t clientIndex, const char* message, uint8_t qos) {
    if (clientIndex > muxCount) {
        Serial.println("Error: Client index out of bounds");
        return false;
    }

    // Set the Will message
    // +CMQTTWILLMSG: <client_index>,<req_length>,<qos>
    thisModem().sendAT("+CMQTTWILLMSG=", clientIndex, ',', strlen(message), ',', qos);

    int response = thisModem().waitResponse(10000UL, ">");
    if (response != 1) {
        Serial.print("Error: Did not receive expected '>' prompt, response: ");
        Serial.println(response);
        return false;
    }

    // Send the actual message
    thisModem().stream.write(message);
    thisModem().stream.println();

    response = thisModem().waitResponse();
    if (response != 1) {
        Serial.print("Error: Did not receive 'OK' after sending the Will message, response: ");
        Serial.println(response);
        return false;
    }

    return true;
}

My code looks like this:
void mqtt_callback(const char *topic, const uint8_t *payload, uint32_t len)
{
    Serial.println();
    Serial.println("======mqtt_callback======");
    Serial.print("Topic:"); Serial.println(topic);
    Serial.println("Payload:");
    for (int i = 0; i < len; ++i) {
        Serial.print(payload[i], HEX); Serial.print(",");
    }
    Serial.println();
    Serial.println("=========================");
}

bool mqtt_connect()
{
    Serial.print("Connecting to ");
    Serial.print(broker);

    bool ret = sim_modem.mqtt_connect(mqtt_client_id, broker, broker_port, clien_id, mqtt_username, mqtt_password);
    if (!ret) {
        Serial.println("Failed!"); return false;
    }
    Serial.println("successed.");

    if (sim_modem.mqtt_connected()) {
        Serial.println("MQTT has connected!");
    } else {
        return false;
    }
    // Set MQTT processing callback
    sim_modem.mqtt_set_callback(mqtt_callback);
    // Subscribe to topic
    sim_modem.mqtt_subscribe(mqtt_client_id, subscribe_topic);

    // Publish the birth message
    const char* birth_topic = "esp32-00000-04/status";
    const char* birth_message = "online";
    sim_modem.mqtt_publish(0, birth_topic, birth_message);

    return true;
}

void handle_mqtt() {
    // MQTT handling
    sim_modem.mqtt_handle();
    delay(5);
}

Within void setup():
Serial.println("Starting Modem MQTT SSL Setup");

Serial.println("Setting will message in 5 seconds...");
delay(5000);

// Enable verbose error reporting
sim_modem.sendAT("+CMEE=2");
delay(1000);

sim_modem.sendAT("+CMQTTSTART");
if (sim_modem.waitResponse(30000UL, "+CMQTTSTART: 0") != 1) {
    Serial.println("Failed to start MQTT");
    return;
}

// Acquire MQTT client
// sim_modem.sendAT("+CMQTTACCQ=0,\"client_id\"");
sim_modem.sendAT("+CMQTTACCQ=0,\"client_id\",0");
delay(1000);

// Configure MQTT context
Serial.println("Configuring MQTT context...");
sim_modem.sendAT("+CMQTTCFG=\"version\",0,4");  // Example: Set version to MQTT 3.1.1
delay(1000);

const char* will_topic = "esp32-00000-04/status";

Serial.println("Setting will topic...");
if (!sim_modem.mqttWillTopic(0, will_topic)) {
    Serial.println("Failed to set Will topic");
    return;
}
delay(5000);

Serial.println("Setting will message...");
if (!sim_modem.mqttWillMessage(0, "offline", 2)) {
    Serial.println("Failed to set Will message");
    return;
}
delay(5000);

// Initialize MQTT with SSL
sim_modem.mqtt_begin(true);
if (!mqtt_connect()) {
    Serial.println("Failed to connect to MQTT broker");
    return;
}

Within void loop():
  handle_mqtt();
As said the code works and it connects. I cannot see any error message in the Serial with AT debug being enabled. In fact the modem replies with "OK" to the WILL AT commands:
09:59:58:877 -> AT+IPR=115200
09:59:58:879 -> OK
09:59:58:879 -> Modem baud rate set to 115200
09:59:58:879 -> Starting Modem MQTT SSL Setup
09:59:58:879 -> Setting will message in 5 seconds...
10:00:03:889 -> AT+CMEE=2
10:00:04:880 -> AT+CMQTTSTART
10:00:04:882 -> AT+CMEE=2
10:00:04:882 -> OK
10:00:04:885 -> AT+CMQTTSTART
10:00:04:886 -> OK
10:00:04:889 ->
10:00:04:889 -> +CMQTTSTART: 0AT+CMQTTACCQ=0,"client_id",0
10:00:05:892 -> Configuring MQTT context...
10:00:05:892 -> AT+CMQTTCFG="version",0,4
10:00:06:894 -> Setting will topic...
10:00:06:895 -> AT+CMQTTWILLTOPIC=0,21
10:00:06:896 ->
10:00:06:896 -> AT+CMQTTACCQ=0,"client_id",0
10:00:06:901 -> OK
10:00:06:901 -> AT+CMQTTCFG="version",0,4
10:00:06:901 -> OK
10:00:06:901 -> AT+CMQTTWILLTOPIC=0,21
10:00:06:903 -> >esp32-00000-04/status
10:00:06:909 -> esp32-00000-04/status
10:00:06:911 ->
10:00:06:911 -> OK
10:00:11:912 -> Setting will message...
10:00:11:912 -> AT+CMQTTWILLMSG=0,7,2
10:00:11:918 -> AT+CMQTTWILLMSG=0,7,2
10:00:11:920 -> >offline
10:00:11:924 -> offline
10:00:11:927 ->
10:00:11:927 -> OK
10:00:16:928 -> AT+CMQTTSTART
10:00:16:933 -> AT+CMQTTSTART
10:00:16:934 -> ERROR
10:00:16:934 -> Connecting to xxx.xxx.xxAT+CSSLCFG="authmode",0,0
10:00:16:942 -> AT+CSSLCFG="authmode",0,0
10:00:16:944 -> OK
10:00:16:945 -> AT+CMQTTREL=0
10:00:16:950 -> AT+CMQTTREL=0
10:00:16:951 -> OK
10:00:16:951 -> AT+CMQTTACCQ=0,"esp32-00000-04",1
10:00:16:960 -> AT+CMQTTACCQ=0,"esp32-00000-04",1
10:00:16:962 -> OK
10:00:16:962 -> AT+CMQTTCFG="version",0,4
10:00:16:969 -> AT+CMQTTCFG="version",0,4
10:00:16:971 -> OK
10:00:16:971 -> AT+CMQTTCONNECT=0,"tcp://xxx.xxx.xx:9883",60,1,"xxx","xxx"
10:00:16:996 -> AT+CMQTTCONNECT=0,"tcp://xxx.xxx.xx:9883",60,1,"xxx","xxx"
10:00:19:222 -> OK
10:00:19:224 ->
10:00:19:224 -> +CMQTTCONNECT: 0,0successed.
10:00:19:225 -> AT+CMQTTDISC?
10:00:19:226 ->
10:00:19:229 -> AT+CMQTTDISC?
10:00:19:235 -> +CMQTTDISC: 0,0
10:00:19:236 -> +CMQTTDISC: 1,1
10:00:19:237 ->
10:00:19:237 -> OK
10:00:19:237 -> MQTT has connected!

The problem is that my Mosquitto broker doesn't receive any WILL message when the client connects. MQTT server logs:
2024-10-20 10:00:19: New client connected from xxx:10001 as esp32-00000-04 (p2, c1, k60, u'xxx').
2024-10-20 10:00:19: No will message specified.
2024-10-20 10:00:19: Sending CONNACK to esp32-00000-04 (0, 0)

The WILL message works fine with Pubsubclient on other ESP32 devices.
What could be wrong? @lewisxhe Do you have a suggestion? I couldn't find any further information in the SIM767XX AT commands documentation. Yesterday I flashed the modem to the latest firmware 2374B03SIM767XM5A_M_SIM7670G-MNGV_V202240702 but it didn't fix the issue either.
Thanks,
cho0p

Please update to the latest firmware, then use the log capture tool to capture all interaction logs and send them to us.

Thanks for your swift reply @lewisxhe . The modem was already running on the latest firmware B03. I have created the modem log file. The safe functionality gave me an error message - I was only able to safe it as .csv. Hope this works as well. I have sent you the file via email to<EMAIL_ADDRESS>

I checked my email and didn't receive the log you sent. Please upload it directly to this issue.

SIM7670G_WILL_Log_20241021_105737.csv
Here is the modem log file.

The exported log should be a zip archive, not a csv. Have you checked my usage video?

Yes, but as mentioned in the last message I get an error message when I click on the safe button in the logger software. I was only able to safe the log as csv.

This log is invalid. Simcom can only parse the correct log file. At which step did you encounter the error?

The error appeared after clicking on the safe button in the top menu of the tool. I will try to create another log in a few hours and share either the log or the error message when trying to safe it.

OK

SIM7670G_Log_20241022_102950.zip
Tried it with another PC and now it worked.

Ok, I'll update here if I get a reply.

SIMCOM replied that they used the same version of the modem for testing and MQTTWILLTOPIC could be used normally. They analyzed the logs you provided and found that the modem sent the CMQTTWILLTOPIC command normally. The problem may be on your server.

I don't think it's related to the MQTT server as it successfully manages will messages from other clients. I have several LilyGo ESP32 with Simcom modems connected to the server. They all use the Pubsubclient library and the will works fine. It's the first time that I test the SIM7670G with the build-in MQTT capabilities and it doesn't work. This is how the server log looks like:
ESP32 with SIM7000G using Pubsubclient:
2024-10-24 11:00:55: New client connected from x.x.x.x:xxxxx as esp32-00000-02 (p2, c1, k15, u'00000-02-zentec').
2024-10-24 11:00:55: Will message specified (7 bytes) (r1, q0).
2024-10-24 11:00:55  esp32-00000-02/status
2024-10-24 11:00:55: Sending CONNACK to esp32-00000-02 (0, 0)

ESP32 with SIM7670G using build-in modem MQTT capability:
2024-10-24 11:02:00: New client connected from x.x.x.x:xxxxx as esp32-00000-04 (p2, c1, k60, u'00000-04-zentec').
2024-10-24 11:02:00: No will message specified.
2024-10-24 11:02:00: Sending CONNACK to esp32-00000-04 (0, 0)

Do you have any other suggestions for debugging this?

After my own testing, the will message is normal and can be used. I will add examples later

I added an example and the test is ok
https://github.com/Xinyuan-LilyGO/LilyGO-T-A76XX/tree/main/examples/MqttsBuiltlnWill

Thank you. The code works. Only one little remark regarding the example code in line 223:
    // Initialize MQTT, use SSL, skip authentication server
    modem.mqtt_begin(false);

I think it should be (if SSL should be used)
    // Initialize MQTT, use SSL, skip authentication server
    modem.mqtt_begin(true);

Oh! Whether this uses SSL depends on the server you are connecting to. I used a server without SSL when testing, so I forgot to change it.

The WILL message itself works now but I noticed that it doesn't have a retain flag. Unfortunately I couldn't find any retain option in the AT documentation. It's only mentioned for the AT+CMQTTPUB command. Do you know if it's somehow possible to set the retain flag for the WILL message as well when the client connects to the broker?

SIMCOM replied that there is no method to set this parameter.


[Event Request] Codeunit 212 "Res. Jnl.-Post Line" - PostTimeSheetDetail - OnSetFiltersBeforeCheckTimeSheetLineFinished

To be able to extend the Time Sheet Detail table, it would be helpful to be able to set additional filters before determining if the time sheet line is 'done' and able to be posted.
Proposed change:
    local procedure PostTimeSheetDetail(ResJnlLine2: Record "Res. Journal Line"; QtyToPost: Decimal)
    var
        TimeSheetLine: Record "Time Sheet Line";
        TimeSheetDetail: Record "Time Sheet Detail";
        TimeSheetMgt: Codeunit "Time Sheet Management";
    begin
        with ResJnlLine2 do
            if "Time Sheet No." <> '' then begin
                TimeSheetDetail.Get("Time Sheet No.", "Time Sheet Line No.", "Time Sheet Date");
                TimeSheetDetail."Posted Quantity" += QtyToPost;
                TimeSheetDetail.Posted := TimeSheetDetail.Quantity = TimeSheetDetail."Posted Quantity";
                TimeSheetDetail.Modify();
                TimeSheetLine.Get("Time Sheet No.", "Time Sheet Line No.");
                TimeSheetMgt.CreateTSPostingEntry(TimeSheetDetail, Quantity, "Posting Date", "Document No.", TimeSheetLine.Description);

                TimeSheetDetail.SetRange("Time Sheet No.", "Time Sheet No.");
                TimeSheetDetail.SetRange("Time Sheet Line No.", "Time Sheet Line No.");
                TimeSheetDetail.SetRange(Posted, false);
+                OnSetFiltersBeforeCheckTimeSheetLineFinished(TimeSheetDetail, ResJnlLine2);
                if TimeSheetDetail.IsEmpty() then begin
                    TimeSheetLine.Posted := true;
                    TimeSheetLine.Modify();
                end;
            end;
    end;

Event publisher:
[IntegrationEvent(false, false)]
local procedure OnSetFiltersBeforeCheckTimeSheetLineFinished(var TimeSheetDetail: Record "Time Sheet Detail"; ResJournalLine: Record "Res. Journal Line")
begin
end;

Thanks in advance.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


test: enable IRGen.generic_casts on all targets

Adjust the test for ELF and COFF targets as well.  This allows us to get
additional test coverage and reduces the number of failing tests on Windows.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - b607f2d02d973ecd5416751ce0ed336b7642345b

@jrose-apple I don't think that the changes required here are particularly onerous to maintain, and they are easy to verify against what clang does already.

Sure, but there's no point in enabling it either. It's not "additional test coverage" if it's testing an environment that can't happen.

(To me, it's a little different from the other tests you've turned on with -enable-objc-interop. It's good to make it easier for someone on non-macOS to check if they've broken ObjC interop. But that's only worth a certain amount of maintenance effort.)


Update ingress template to work with k8s >=1.19-0

Tested with k8s-1.24.1 and ingress-nginx controller v1.2.1
Not sure, is it "version:" update in Chart.yaml needed in such PR?

@LimitlessEarth , ping


How to run Jupyter notebooks on local dev?

I noticed in the pipfile and on few docker-compose files the presence of the Jupyter package and some code mentioning Notebooks. I was wondering if anyone know how get it running on local development. Thanks.

Hi @pingu1m
I just run docker-compose exec backend bash -c \$$JUPYTER
... which means that the command stored in the $JUPYTER env var is going to be executed in a backend container
In return, the container logs will display an URL, which is the entry point to the Jupyter server.
Finally, I just copy paste this URL in Visual Code Studio... and that's it...
There are more information in the README section about it : Live development with Python Jupyter Notebooks

@ebreton I did not find any section about Live development with Python Jupyter Notebooks. Which README are you talking about? Thanks for the answer.

Hi @pingu1m , in the README from the cookiecutter directory: https://github.com/tiangolo/full-stack-fastapi-postgresql/blob/master/{{cookiecutter.project_slug}}/README.md#live-development-with-python-jupyter-notebooks

@ebreton Thanks.

Hi @ebreton @pingu1m I am trying to understand how Jupyter can be used in the project. Do you have any example? In the docs it says:

You will have a full Jupyter Notebook running inside your container, that has direct access to your database by the name container name, etc. So, you can just copy your backend code and run it directly, without needing to modify it.

I think just a quick example on how to get the current users in the database would point me in the right path. Once I get it, I could do a PR to add extra notes in the README.md. Thanks.

Thanks for the help here @ebreton ! :cake:
Thanks @pingu1m  for reporting back and closing the issue! :coffee:
@robido one example could be integrating it with VS Code: https://code.visualstudio.com/docs/python/jupyter-support#_connect-to-a-remote-jupyter-server


Implement UI for certificate

This pr is based on issue #213
Here's a live demo of the UI:
Live Demo

I decided to use an Accordion instead of a textArea, I find it a lot more cleaner
I used useState to display different components once the user has pressed the Request a Certificate button
Instead of having a large download button for each key, I decided to switch it to a button that has hover effect, tooltip and gap, to ensure that user don't accidentally press the button
I'm unable to access the seed certificate, so I'm using a temporary object to produce the necessary output

On the other hand, the cert details screen looks very nice :)

I think the loading progress is not the correct UX here.
A certificate request will probably take at the very minimum 1-2 minutes, users will not wait that long for that animation (it looks cool for sure, but still)
Also, it feels like it tries to keep the user glued to the screen, but the process is unfortunately not that fast for this to be feasible.
This is why we talked about showing some kind of pending state in the same structure we are showing the certificate details in the second screen in your video

Yeah... I'm struggling a bit with understanding what a good UX is for the loading page. From what I can understand, you want to head directly to the 2nd page, but provide some sort of a "loading" buffer before displaying the details? Like a spinning wheel of some kind?

Yes, with some kind of description, that we are creating the certificate, but this is an asyncrhronous process, requiring multiple 3rd party providers (route53 and let's encrypt), so for this reason it will take a few minutes

I really love this @Ririio, great job.  A few comments:

For the "pending" screen, I think it should be static (i.e., no animation), which will help with it taking a while and not seeming broken.  We could include an image from https://undraw.co/illustrations coloured red for example.  Not this one, but something like this with text saying, "We've ordered your certificate and will notify you when it's ready":

We said that the main part of the UI should be centred vs. left-aligned.

For the "pending" screen, I think it should be static (i.e., no animation), which will help with it taking a while and not seeming broken. We could include an image from https://undraw.co/illustrations coloured red for example. Not this one, but something like this with text saying, "We've ordered your certificate and will notify you when it's ready":

We're allowed to use this website for illustration? I

We said that the main part of the UI should be centred vs. left-aligned

I recall there was a discussion for the ui to be left-aligned-- I had to change the layout on the figma template

We're allowed to use this website for illustration?

Yes, it is open licensed

I recall there was a discussion for the ui to be left-aligned-- I had to change the layout on the figma template

What I heard in that meeting was "left-aligned in a container that is centred," but if I'm wrong, do what you have.
cc @Myrfion, @Eakam1007

What I heard in that meeting was "left-aligned in a container that is centered," but if I'm wrong, do what you have.
Yeah, I believe it was discussed that the form should not touch the left edge but should be a bit more towards the center (so basically a margin on the left)

I think this suggestion should make it work

Yeah, I believe it was discussed that the form should not touch the left edge but should be a bit more towards the center (so basically a margin on the left)

Just to be clear, I just have to move the container more to the center, and have its content left align?

Just to be clear, I just have to move the container more to the center, and have its content left align?

I would say it is up to you how you decide to do it. But yeah, I think that should work

What I'm more looking for is that this be responsive.  When we're on a really wide screen, it's nicer to put it in the middle.  On a narrower screen, it's going to be more on the left, etc.
We can also do that stuff in a follow up.  But putting the "main" part of this in a container that is in the center, and the contents are left-aligned within it, seems good to me.
If it doesn't work, don't do it.  Just a thought.

@humphd @dadolhay I changed the loading screen, and aligned the containers in the middle as per your suggestion. If you don't mind taking a look here's the video...
https://user-images.githubusercontent.com/32577022/219515489-b32ebaff-23ed-49e1-aaca-a2efb32fc8cb.mp4

Reading the code, I wonder if we should be splitting this up into a few larger components vs. having such deep nesting on state. That could happen in a follow-up, so we don't block this for 0.3, but I think this file is getting pretty big, and we could separate the three states into smaller pieces of code that would be easier to maintain.

If we're splitting them up, can I create a directory called components underneath the certificate to split the code? I'm not familiar with the standard practice of remix in terms of creating components, so I refrained from doing it. Am I allowed to do something like this?

I believe there already is a components directory under app. I think you could use that?

I believe there already is a components directory under app. I think you could use that?

sure

@Eakam1007 is this what you meant?


Question about JSON conversion

@liampauling
Hi Paul, I am Jeffrey nice to meet you. I am a pyhton developer and I want to write some code that automatically processes betfair historic data. I want to convert the JSON files you can download from betfair in batch to csv files so I can analyze them. But I do not know how the conversion is made. Could you help me with this, maybe clarify some code? I just wonder how the betfair historic data processor works.
Please contact me, my email is<EMAIL_ADDRESS>Many thanks, hope to hear from you,
cheers, Jeffrey

Paul?
Feel free to join the slack group (readme) where it will be easier to discuss how it works, probably worth noting that it is not far off the code detailed in the examples.


Icon overlay on tool bar

My ResxManager is showing the button of Snapshot over the Excel button.
I'm using Visual Studio 2013.

I think this was a problem with the styles of VS2013. Maybe you should try an upgrade?

The bug is still present on VS2017

It seems to be intermittent...

It's just plain XAML, so I have no control over this:
<StackPanel Orientation="Horizontal" Background="Transparent">
  <ContentPresenter Content="{Binding Header, RelativeSource={RelativeSource FindAncestor, AncestorType=MenuItem}}" />
  <Decorator Width="2" />
  <Path x:Name="Path" Data="M 0 0 L 3.5 4 L 7 0 Z" Fill="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" VerticalAlignment="Center" />
</StackPanel>

Maybe some other extension is overwriting the global menu item style?

Can someone provide instructions how to reproduce this?
Else I will close this as not reproducible.

It happens often but it's also pretty hard to reproduce.  I'm working on finding what allows to reproduce it every times.

I found a relatively easy way to reproduce the issue.
Open the manager up, decrease the width of the window to the point where the two problematic buttons are not visible anymore. Close the manger (and restart Visual Studio, if you try it in VS). Open the manager up again. It stored the last size and will open with the reduced with. If you increase the width of the window now, you the images of both buttons missing. If you hover over the buttons, the images appear but aren't layouted correctly. It looks like in the screenshots above.
It looks like the images aren't resolved in case they are not displayed and once they are displayed the layout isn't fixed.
Testing this works both in visual studio and in the standalone version. But it works easiest in the standalone version, because you just have to restart the manager and not the entire visual studio.


Add MultizoneManager

Refactor MultizoneController
Add MultizoneManager which helps keep track of which casts are members of which groups
Add new Dial method go get Multizone information

@emontnemery do you know how to create dynamic_group? Is there a option in google home app? I see in the code there is a field called 'dynamic_groups' in multizone status and that's why I'm asking.


Instrument

@Mossop would you like to review?
@canuckistani will this address the product team's instrumentation needs?

This may be of help as well:
https://github.com/facebook/nuclide/tree/master/pkg/nuclide-analytics

@LegNeato thanks, nifty.  Flow and Rx make it hard for us to use, but some nice ideas in there.

@Mossop re-review?  I changed to use Date.now(); started timing app startup earlier; and replaced 1 with true.

R+ with the lint failures fixed, take my other comment or not, whichever you prefer.


Consider moving docs and any code to PascalCase

We now have a JSON Schema at https://steeltoe.io/schema/latest/schema.json
This schema is using Pascal Case to match the MSFT JSON.
Our docs and code typically show as Camel Case.  We need to take a look at our docs and code to make sure that we are handling these consistently.
Overall, we should be case insensitive.

Closing this in favor of #29 (completed) and #164 (completed)


Remove myself from reviewer list

Proposed changes
It's been a pleasure!

It's been a pleasure!

:vulcan_salute:


⚠ PrivateHD has degraded performance

In 204e75b, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 3183 ms

Resolved: PrivateHD performance has improved in 023a456.


QR code reader

Description of the new feature / enhancement
QR code reader
Scenario when this would be used?
When we need to read a qr code
Supporting information
No response

/dup https://github.com/microsoft/PowerToys/issues/4859


bbin: init at 0.1.4

Description of changes
Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Thanks @AndersonTorres for the review! I addressed all your points.
However I currently get
24:   ["bb" "--deps-root" script-root "--config" (str tmp-edn)
25:         script-main-opts-first script-main-opts-second
26:         "--"])
27:
28: (process/exec (into base-command *command-line-args*))
    ^--- exec is not supported in non-GraalVM environments

when trying to execute a script installed with bbin.
Not entirely sure what's going on there, since babashka is using GraalVM.
Maybe some of the babashka maintainers know more? cc @bandresen @bhougland @DerGuteMoritz @jlesquembre @thiagokokada

Ok, the issue is that the check for whether process/exec is supported, happens at compile time and nixpkgs uses the babashka-standalone.jar from the babashka-releases, which used to be built with AdoptOpenJDK (it's built with GraalVM since https://github.com/babashka/babashka/commit/a5dec07279184355a7de0813ec19401667c75a14). So this should work without changes to this PR as soon as the next version gets released and packaged for nixpkgs.

So you need a new babashka in order to your package works?

Exactly.

Should work now with the newer babashka in nixpkgs.


fis: splunksplwrapper 1.1.4b1 release

This is a follow up beta release after splunksplwrapper beta release (https://github.com/splunk/splunksplwrapper/pull/68).

:tada: This PR is included in version 5.1.1-beta.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


node节点启动kubelet失败: Failed to get system container stats for "/user.slice/user-0.slice/session-9.scope"

截图如下
Starting Device Plugin manager
W0830 14:00:52.878098   12189 manager.go:496] Failed to retrieve checkpoint for "kubelet_internal_checkpoint": checkpoint is not found
I0830 14:00:52.878553   12189 kubelet_node_status.go:269] Setting node annotation to enable volume controller attach/detach
W0830 14:00:52.881742   12189 container_manager_linux.go:792] CPUAccounting not enabled for pid: 12189
W0830 14:00:52.881761   12189 container_manager_linux.go:795] MemoryAccounting not enabled for pid: 12189
E0830 14:00:53.233752   12189 summary.go:102] Failed to get system container stats for "/user.slice/user-0.slice/session-9.scope": failed to get cgroup stats for "/user.slice/user-0.slice/session-9.scope": failed to get container info for "/user.slice/user-0.slice/session-9.scope": unknown container "/user.slice/user-0.slice/session-9.scope"
I0830 14:01:03.234455   12189 kubelet_node_status.go:269] Setting node annotation to enable volume controller attach/detach

这个问题解决了吗  大佬


Add codecov

Signed-off-by: Wenqi Qiu<EMAIL_ADDRESS>

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@02150d8). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files

@@           Coverage Diff           @@
##             main       #1   +/-   ##
=======================================
  Coverage        ?   36.06%
=======================================
  Files           ?       43
  Lines           ?    18756
  Branches        ?        0
=======================================
  Hits            ?     6764
  Misses          ?    11568
  Partials        ?      424


Changed capitalisation to keep consistency

Changed from Stop-AzureRMVM to Stop-AzureRmVM to keep consistency with rest of article

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


Update to version 2.4.1 of MFizz.

Also introduce a small Python script to automatically generate the .sty
file from the .css file inside the font-mfizz
repository.
This should fix #1.
In the long run, the .ttf file should also be taken from the submodule.
A CTAN release of this updated version is on the way.

Is there a dummy's guide somewhere which commands I should type? You might know very little about CTAN, but I know zero ;)

Yeah, agreed. Ideally there should be a README for the repo that explains how to generate everything. How do you feel about having a release branch which contains exactly what's available through CTAN i.e.

README
LICENSE
font-mfizz.ttf
fontmfizz.sty
fontmfizz.tex
fontmfizz.pdf

and have master only contain the stuff that's necessary to generate those files including instructions on how to build them?

Why store the release stuff in the repo at all? Maybe keep the PDF for preview purposes.
👍 for a README.

This may be dead, but I just spent 15 minutes implementing roughly the same thing. Should I open a PR? Seems like this just needs to be merged instead =).

Hi folks,
I looked into this. I submitted an update to CTAN on 2017-03-19. Since then, mfizz hasn't changed. That's good :)
Regarding this specific PR: In this repo, there is a branch that supports automated generation of the latex package from the font-mfizz repo. It would be nice if the actual package, i.e. what can be obtained from CTAN, would be available via this repo. Basically, I see two options, please let me know which one you prefer.

Have master always contain the latest version of the package and tooling in a dedicated branch (basically as it is now - except I need to update master :) ).
Have the tools in master and offer downloads via releases.

Cheers,
Kevin
P.S. Tim, I think you owe Mark a beer now :P

@betatim Incidentally, I am not that far from Zurich =)

Regarding this specific PR: In this repo, there is a branch that supports automated generation of the latex package from the font-mfizz repo. It would be nice if the actual package, i.e. what can be obtained from CTAN, would be available via this repo. Basically, I see two options, please let me know which one you prefer.

Not my decision, but I can see some merit in doing it incrementally, i.e. manually copying things into the repo so the script can find it would have solved my problems in 2 instead of 15 minutes, further automation is just the cherry on top!

@betatim Incidentally, I am not that far from Zurich =)

If you ever come to visit Zurich or Basel let me know :)

Just for closure on this one: It seems that there's no longer active development on the font itself. Therefore, we shouldn't bother with any more thoughts on automation. For now, there's the automation branch in case of any updates to mfizz in the future.


Bump Rails version to 6.0.0

Hm, for some reason I am hitting ForceTlsGenerator#config_enforce_ssl locally, but not on CI

It boots on my machine, but I hadn't tried pushing to Heroku. I will do that before merging.


Visual Selection out of sync

The issue arises when using the command :m '>+1<CR>gv=gv to move lines down and :m '<-2<CR>gv=gv to move lines up. Apparently, it is just vscode side does not produce the proper selection highlights, but if I do it fast enough or selecting multiple lines, the text will sometimes out of sync too. Adding a cmd call VSCodeNotifyVisual('noop', 1) at the end does not help. I have tried to use vscode native movelines command with VSCodeNotifyVisual, but then neovim side is out of sync in terms of the text.

search existing issues


Don't Use Special IPv6 Addresses

This fixes #790.

Current coverage is 72.64% (diff: 100%)

Merging #791 into master will increase coverage by 0.04%

@@             master       #791   diff @@
==========================================
  Files           107        107
  Lines         15994      15994
  Methods        2181       2181
  Messages          0          0
  Branches       1901       1901
==========================================
+ Hits          11612      11619     +7
  Misses         3761       3761
+ Partials        621        614     -7

Powered by Codecov. Last update 0754ac7...352e224

I'm not sure 3000::/3 is a better long term choice. Isn't that unallocated?
Is there a range explicitly designated for testing that we could use instead?

From Wikipedia, the closest I could find:
Documentation

2001:db8::/32 - This prefix is used in documentation. The addresses should be used anywhere an example IPv6 address is given or model networking scenarios are described (corresponding to <IP_ADDRESS>/24, <IP_ADDRESS>/24, and <IP_ADDRESS>/24 in IPv4.)

I  agree with @darconeous for this purpose i would also use 2001:db8::/32 prefix.
Look here:
https://tools.ietf.org/html/rfc3849
http://www.iana.org/assignments/ipv6-address-space/ipv6-address-space.xhtml

@LuDuda: The only caveat is that this is a test harness, not documentation.
I'm not sure if there is a good answer for what prefix to use, only which ones might be undesirable.
We could always use a ULA.

According to the iana link @LuDuda shared, nothing in the 3000::/3 range is reserved. I don't think you can reserve things after the fact, so it shouldn't become reserved at a later date.

Maybe i'm not correct, however i see that you used for example 3003::/64 prefix, which is inside 2000::/3 space and thus it may be allocated by someone as a global prefix.

IANA is the authority for IPv6 Address Space allocations.  As instructed by RFC 6890, the 2001:2::/48 prefix was reserved specifically for benchmarking and testing purposes.  Maybe we should be using that?

I think it may be a good approach, also i found information about it here (specifically in section 8):
https://tools.ietf.org/html/rfc5180

That sounds fine with me. So what do you want to explicitly change the following to? I will update my PR accordingly.
2001::/64 -> ?
2002::/64 -> ?
2003::/64 -> ?
2004::/64 -> ?

Yes, RFC 5180 provides additional background.  However, note that Section 8 actually specifies a prefix different from IANA.  Ultimately, IANA is the authority for such allocations.
2001::/64 -> 2001:2:0:1::/64
2002::/64 -> 2001:2:0:2::/64
2003::/64 -> 2001:2:0:3::/64
2004::/64 -> 2001:2:0:4::/64
I'd also like to point out that the existing prefixes used by the python test scripts are compliant with the Thread Certification Test Specification.  We'll need to work with the Thread Group to update the test spec.

A question for the change:
Should '2001' in addr[0:4] become '2001:2:0:1' in addr[0:10]?

Yes, I believe we need to update the string match checks as well.


PHP 8.2 support

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

Fixed issues
-

https://github.com/yiisoft/yii2/pull/19699
https://github.com/yiisoft/yii2/pull/19685
https://github.com/yiisoft/yii2-app-advanced/issues/536

What is the current state of the fix?

Incomplete. 8.2 tests fail. Need help with squashing more cases and validating incoming PRs.

Memcache troubles were fixed, but not released: https://github.com/websupport-sk/pecl-memcache/pull/104#issuecomment-1527940223

PHP 8.2 released, sorry for the delay here!

@samdark trigger the jobs, I don't have permissions to do it :(

About memcache errors. Memcache tests pass on my Mac with newest memcache. Looks like github actions don't use the latest version.

Does anyone here keep track of what issues need to be fixed for PHP 8.2? I might be able to help, but would need some hints.

Does anyone here keep track of what issues need to be fixed for PHP 8.2? I might be able to help, but would need some hints.

See failed 8.2 builds: https://github.com/yiisoft/yii2/actions/runs/4860081966/jobs/8663490394?pr=19749#step:11:146

Does anyone here keep track of what issues need to be fixed for PHP 8.2? I might be able to help, but would need some hints.

See failed 8.2 builds: https://github.com/yiisoft/yii2/actions/runs/4860081966/jobs/8663490394?pr=19749#step:11:146

So, anyone can fix one of the failed tests and send a pull request? One does not have to open an issue before, etc.?
Will try it.

One does not have to open an issue before, etc.?

You need to check this yourself in the open PRs.

So, anyone can fix one of the failed tests and send a pull request?

Sure :)

Hm... It gets very different test results on my machine. Is there a suitable docker image for testing?

Hm... It gets very different test results on my machine. Is there a suitable docker image for testing?
Ah, here we go: https://github.com/yiisoft/yii2/tree/master/tests#dockerized-testing

Probably you haveext-memcache 8.2, but CI 8.0

@tbreuss have you tried to run tests again? What version of memcache do you have locally?

@tbreuss have you tried to run tests again? What version of memcache do you have locally?

Sorry for my late answer @xepozz, I was involved into another project. I now run the unit tests with docker compose.
There was only one failure which I fixed (#19834).
But I run into another issue with composer:
 => ERROR [4/5] RUN /usr/local/bin/composer install --prefer-dist                                                                                0.7s
------
 > [4/5] RUN /usr/local/bin/composer install --prefer-dist:
#8 0.566 Installing dependencies from lock file (including require-dev)
#8 0.570 Verifying lock file contents can be installed on current platform.
#8 0.600 Your lock file does not contain a compatible set of packages. Please run composer update.

As the error message says, the fix was to run "composer update".

Things to fix:

https://github.com/yiisoft/yii2/actions/runs/4971866311/jobs/8896690982?pr=19749#step:11:148
https://github.com/yiisoft/yii2/actions/runs/4971866311/jobs/8896690873#step:11:148 (that's the current master issue as well)

I have some difficulties to run and memcache tests and reproduce failed tests.
Are you running (memcache) tests in a docker container? I see stream_socket_client('<IP_ADDRESS>:11211') in a test, which kind of confuses me (in relation to docker-compose.caching.yml).

Kind of. We run it in GitHub actions. Memcached is up with https://github.com/niden/actions-memcached. It is basically this https://github.com/niden/actions-memcached/blob/master/entrypoint.sh#L4

This is super-weird:
1) yiiunit\framework\caching\MemCacheTest::testSet
Creation of dynamic property Memcache::$connection is deprecated

/home/runner/work/yii2/yii2/framework/caching/MemCache.php:197
/home/runner/work/yii2/yii2/framework/caching/MemCache.php:144
/home/runner/work/yii2/yii2/framework/caching/MemCache.php:117
/home/runner/work/yii2/yii2/framework/base/BaseObject.php:109
/home/runner/work/yii2/yii2/tests/framework/caching/MemCacheTest.php:36
/home/runner/work/yii2/yii2/tests/framework/caching/CacheTestCase.php:87
/home/runner/work/yii2/yii2/vendor/phpunit/phpunit/phpunit:52
/home/runner/work/yii2/yii2/vendor/bin/phpunit:123

Since there's no release of memcached for 8.2 I'm going to mark these tests as skipped for it.

I've tried to set it up locally with PHP 8.2 + memcache and all tests pass. Not sure what's wrong with the environment.

https://github.com/yiisoft/yii2/issues/19843


Remove parsing errors from empty tags and testsuite names

Baby's first rust PR plz be gentle
Context
See here for the reasoning behind this. TL:DR is that we were reporting parsing errors for files that don't actually have errors that make them unparsable. These errors were:

StackTraceEmpty - empty stack trace tag
SystemErrEmpty empty <system-err/>
SystemOutEmpty empty system-out/>
TestSuiteName empty testsuite name

StackAV was getting a ton of errors from this that we were reporting
Fix
Remove throwing errors relating to these. I left the logic for parsing the tags in there, but just made it so we aren't going to throw an error anymore
Tests
Update tests in order to addresss

This issue is impeding customers so I'm going to merge this without rust tests because it's taking time for me to do them. I promise I'll follow up with them


Update Application folder readme

After adding firebase google sign in to the project, contributors will have to make some changes in the files to get it running. I'd like to include that in the docs

@sohamp19 Any update!


Exploratory Sprint: Add Segment.io Data Connector to Meltano

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/1426
Originally created by @dmor on 2019-12-11 18:48:38

Opportunity Assessment
Summary
1. Exactly what problem will this solve? (value proposition)
It is coming up in many customer discovery calls that they are already using Segment to pull together their customer data. This exploratory sprint describes how we might leverage this existing integration point to make it easier for our users to connect their data to Meltano.
2. For whom do we solve that problem? (target market)
Startup founders who are already using Segment
3. How big is the opportunity? (market size)
Segment is fairly easy to use and popular among startup founders, so a large portion of our target persona can benefit.
4. What alternatives are out there? (competitive landscape)
To use with Meltano: Exporting data from Segment into a CSV file and manually uploading
Without Meltano: Using a 3rd party analytics tool like Google Data Studio, piping the data out of Segment into a database and then connecting it up
5. Why are we best suited to pursue this? (our differentiator)
We are positioned as being specifically for startup founders persona, so this is less a differentiator than something we are just expected to have
6. Why now? (market window)
In doing customer discovery calls, it is clear that connecting data sources to Meltano is very time consuming. Having to connect each one separately, when the user has already gone through that process with Segment, is a lot of extra work when we could be drafting on the existing work.
7. How will we get this product to market? (go-to-market strategy)
Blog, social, newsletter, etc.
8. How will we measure success/make money from this product? (metrics/revenue strategy)
This will increase MAUI because it will increase the number of users who can successfully connect their data sources and therefore build dashboards and come back
9. What factors are critical to success? (solution requirements)
Segment has a partner program for building 3rd party integrations
https://segment.com/partners/developer-center/
Segment is pretty difficult to set up, so we need to make sure we document our connector really well. This also means anyone who is using it has already gotten through all these challenging steps
10. Given the above, what’s the recommendation? (go or no-go)

View 2 previous comments from the original issue on GitLab


CI always fail when add new extension

Title: *CI always fail when add new extension *
Description:
#21126 delete tools/extensions/extensions_check.py, but CI image does not update, it makes CI always fail, e.g. https://dev.azure.com/cncf/envoy/_build/results?buildId=109375&view=logs&j=c5dd2866-6ab3-5f3c-3a44-4cef0ec909b5&t=a9eb66d6-8944-5769-b3f7-476949dadcb8&l=61

/assign

@daixiang0 i dont believe that this is related to the build image - i think you need to merge main

closing this as i think this was a misdiagnosis of the problem - please reopen if you believe there is actually still a problem and we can investigate

Thanks for help!


Added simple GUI launch test to CIs

[no ci]
This only testes that the generated exectuable launches without any errors, which may be relevant to test when changing dependencies and versions before merging PRs to the master branch.
Also changed the --log-level of the PyInstaller runs to INFO again, as using the DEBUG flag should not be the default, unless something goes wrong. Using the DEBUG flag should likely only be performed locally, as it greatly degrades the install runtime.

Might be that on some operating systems that the error raised by the Raidionics software is not caught by the global process in the Action. I guess you could run a test to see if it works as intended (e.g., actually captures a known ValueError and stops the CI workflow).


fix: fix logging in contract event consumer

Fixes logging in contract event consumer

Coverage remained the same at ?% when pulling 058ef7f59e2f1c9224f92fb7cd52470d8ac504a5 on pgebal/fix_logging_in_cec into 13a99687c15e8c43160d2fb9ebcde57ed073e7d9 on master.


Is there a way to adjust the width of bars(to 20px ) in Line bar charts and align them to middle of ticks in x-Axis ?

how did you managed it??


Crash on non-absolute path in Windows

Problem

On windows, cargo crashes when "/" is used as a path for a dependency.

Backtrace
thread 'main' panicked at '`C:src\main.rs` is not absolute', src\tools\cargo\src/cargo\core\manifest.rs:286:9
stack backtrace:
   0:     0x7ff65be6e669 - git_odb_object_size
   1:     0x7ff65be9212b - git_odb_object_size
   2:     0x7ff65be65ac4 - git_odb_object_size
   3:     0x7ff65be72720 - git_odb_object_size
   4:     0x7ff65be7234a - git_odb_object_size
   5:     0x7ff65be72f78 - git_odb_object_size
   6:     0x7ff65be72ae4 - git_odb_object_size
   7:     0x7ff65be72a2f - git_odb_object_size
   8:     0x7ff65b989dfa - git_filter_source_repo
   9:     0x7ff65b98b474 - git_filter_source_repo
  10:     0x7ff65ba7a46e - git_index_checksum
  11:     0x7ff65b8f1c26 - git_filter_source_repo
  12:     0x7ff65b8e5be8 - git_filter_source_repo
  13:     0x7ff65b998808 - git_index_checksum
  14:     0x7ff65b952710 - git_filter_source_repo
  15:     0x7ff65b956c02 - git_filter_source_repo
  16:     0x7ff65b93031f - git_filter_source_repo
  17:     0x7ff65b9347df - git_filter_source_repo
  18:     0x7ff65ba58407 - git_index_checksum
  19:     0x7ff65bb05330 - git_index_checksum
  20:     0x7ff65bbde347 - git_filter_source_path
  21:     0x7ff65bb13884 - git_index_checksum
  22:     0x7ff65ba5ca2a - git_index_checksum
  23:     0x7ff65b8bd8bc - git_filter_source_repo
  24:     0x7ff65b8b573d - git_filter_source_repo
  25:     0x7ff65b8b2ac0 - git_filter_source_repo
  26:     0x7ff65b9a1511 - git_index_checksum
  27:     0x7ff65b99f74b - git_index_checksum
  28:     0x7ff65b99eca7 - git_index_checksum
  29:     0x7ff65b98eb92 - git_index_checksum
  30:     0x7ff65b98e640 - git_index_checksum
  31:     0x7ff65b73aafc - <unknown>
  32:     0x7ff65b74f82f - <unknown>
  33:     0x7ff65b798b57 - <unknown>
  34:     0x7ff65b784d66 - <unknown>
  35:     0x7ff65be72927 - git_odb_object_size
  36:     0x7ff65be80e62 - git_odb_object_size
  37:     0x7ff65be732b2 - git_odb_object_size
  38:     0x7ff65b79bcf7 - <unknown>
  39:     0x7ff65bfa94d4 - git_openssl_set_locking
  40:     0x7ffe00ff7974 - BaseThreadInitThunk
  41:     0x7ffe03c4a271 - RtlUserThreadStart

Steps

cargo new crash
cd crash
open Cargo.toml, and paste in x = {path = "/"} in the [dependencies] section
cargo build

Possible Solution(s)

On Windows, don't permit "/" as a path for a dependency?
Notes
Output of cargo version:
cargo 1.41.0-nightly (8280633db 2019-11-11)
cargo 1.39.0 (1c6ec66d5 2019-09-30)

https://github.com/Evrey helped spark the idea of this bug

Technically / is a valid path on windows, it just doesn't mean what many people think it means.

I've hit this as well, is the problem as simple as changing C:src\main.rs  to C:\src\main.rs (a \ after C:)? If someone could point me to the related code I could give it a try.

Triage:  As of rust 1.47, there is no crash.  The error message you see now is the following:
error: failed to get `x` as a dependency of package `crash v0.1.0 (C:\Users\achin\tmp\27\crash)`

Caused by:
  failed to load source for dependency `x`

Caused by:
  Unable to update C:\

Caused by:
  failed to read `C:\Cargo.toml`

Caused by:
  The system cannot find the file specified. (os error 2)


feat: allow custom src/pages/index.astro

This PR makes it possible to have a custom src/pages/index.astro by modifying the defaultRoutes to support an extra mode in which it does not inject the default route for /{base}.
Once this PR is merged, to enable this feature on a project, one would have to do:
import tutorialkit from '@tutorialkit/astro';
import { defineConfig } from 'astro/config';

export default defineConfig({
  integrations: [
    tutorialkit({
      // only enable the routes for the tutorial
      defaultRoutes: 'tutorial-only',
    }),
  ],
});

The alternative to this I considered was to modify index.astro so that it reads file from the src/pages/index.astro folder, however this wouldn't have worked under the eject mode as the file would end up reading itself recursively.

When adding these things we need to make sure to add this to the docs as well and it'd be great if we can link the docs PR here as well for full transparency.

it'd be great if we can link the docs PR here as well for full transparency.

It'd be better to just update the docs in this PR. So it's a single PR which includes everything.

Right! Forgot for a second that the docs are in the same repo 🤦♂

@d3lm, @SamVerschueren I've updated the JSDoc of the property so that the new value is explained.
Given we currently don't have any docs for our JSDocs I don't think it makes sense that I introduce that as part of this PR?
What do you think?


Scriban to jinja migration script

Summary of the Pull Request
What is this about?
PR Checklist

[ ] Applies to work item: #xxx
[ ] CLA signed. If not, go over here and sign the CLI.
[ ] Tests added/passed
[ ] Requires documentation to be updated
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Info on Pull Request
What does this include?
Validation Steps Performed
How does someone test & validate?

Codecov Report

Merging #2787 (0fefc0a) into main (f90b53d) will decrease coverage by 3.96%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2787      +/-   ##
==========================================
- Coverage   29.17%   25.21%   -3.96%
==========================================
  Files         321      124     -197
  Lines       38558    13192   -25366
==========================================
- Hits        11248     3327    -7921
+ Misses      27310     9865   -17445

Impacted Files
Coverage Δ

.../ApiService/Functions/Migrations/JinjaToScriban.cs
0.00% <0.00%> (ø)

src/ApiService/ApiService/OneFuzzTypes/Model.cs
70.36% <ø> (ø)

src/ApiService/ApiService/OneFuzzTypes/Requests.cs
61.78% <0.00%> (-1.03%)
:arrow_down:

...rc/ApiService/ApiService/OneFuzzTypes/Responses.cs
71.81% <0.00%> (-2.50%)
:arrow_down:

src/ApiService/ApiService/onefuzzlib/Config.cs
0.00% <0.00%> (ø)

...Service/ApiService/onefuzzlib/notifications/Ado.cs
0.00% <0.00%> (ø)

...ce/ApiService/onefuzzlib/NotificationOperations.cs
0.00% <0.00%> (ø)

src/agent/onefuzz-agent/src/failure.rs

src/agent/onefuzz-file-format/src/hex.rs

... and 196 more

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


Collect and process validation errors async

Async errors!
When a validation error is reported, instead of storing it on the context—which balloons and balloons as time goes on—instead, put it on a core.async channel. That channel is taken from and, every so often (once a number of messages is received or a timeout reached), the validation errors are committed to the database.
Because some errors are gathered before the specification version is known (and thus which table the errors must go to), the errors aren't processed until the spec version is decided. This was  accomplished by turning the spec-version into an atom with a watch.
This is a big one, and a long time coming. This may result in a very slight performance boost, but will definitely alleviate some OutOfMemory issues with particularly bad feeds.

This depends on https://github.com/democracyworks/utility-works/pull/1, right?

@sduckett Yes. That PR's code is currently out as 0.1.0-SNAPSHOT on Clojars.


feat: Add ticket info in attendee layout

Fixes #262

Add ticket info in attendee layout

@iamareebjamal please add a screenshot

@arp95 @Shailesh351 @rohanagarwal94 Please review


Remove Changes tab from Branch overview

After creating a new branch, there is a tab group at the top of the view. One of those options is "Changes". We don't need to show this tab in this step.

PR https://devdiv.visualstudio.com/DevDiv/_git/openapi-portal/pullrequest/512197


Implement AsRawXcbConnection for Connection

There is a new crate as-raw-xcb-connection providing a trait for getting a raw pointer for a libxcb xcb_connection_t. Implement this trait for Connection.
Closes: https://github.com/rust-x-bindings/rust-xcb/issues/217
Signed-off-by: Uli Schlachter<EMAIL_ADDRESS>
This is a draft since I want to wait for version 1.0 of AsRawXcbConnection before merging. See https://github.com/psychon/as-raw-xcb-connection/issues/1

Could you make the dependency optional? (I'm asking as someone who uses xcb but doesn't use other crates in the xcb ecosystem, so I wouldn't need this crate)


fix wssUrl -> wssURL in examples

I believe this is the correct syntax as per action.yml?

Sorry for getting to this so late, but thanks! It doesn't make much of a difference in terms of functionality since Github converts the inputs to uppercase ENV variables. But it definitely helps for consistent documentation->code.
I will merge this change ~ Thank you for the PR @marekaf

Thanks!
For me it made a difference. The previous syntax didn't seem to work.


LinkingService Block to fix Vulnerability

so uh funny vulnerability fix.
local LinkingService = game:GetService("LinkingService")
local ScriptContext = game:GetService("ScriptContext")

LinkingService:OpenUrl(ScriptContext:SaveScriptProfilingData([[start C:\WINDOWS\System32\notepad.exe]], "notepad.bat"))

this blocks LinkingService

@Riz-ve this is major.

The blacklisted module names are only there to block some core modules from the execute and loadstring function as sometimes it will give you errors like "requested module failed to load" so the code changes you provided does not make sense
I have not planned to fix any vulnerabilities

u should block game.AvatarEditorService too


[Security] Workflow update-license-year.yml is using vulnerable action FantasticFiasco/action-update-license-year

The workflow update-license-year.yml is referencing action FantasticFiasco/action-update-license-year using references v2.1.0. However this reference is missing the commit 0dd479f24c62cdbbbce52c7f2ee4277c778cae06 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

@Freakston Thank you for reporting the issue.
I did not expect someone visiting on one of my repos :)
It should be fixed now. I point the action to the commit SHA.


Makefile: use installation logic compatible with old make version

The installation logic used by the Makefile causes a problem with old
make versions, such as make 3.81. Indeed, the rule "$(DESTDIR)%/" gets
matched even for targets like "$(DESTDIR)$(libdir)/libtinycbor.a". Due
to this, with those old make versions, tinycbor.a is installed as a
directory, and the library is never copied:
make[1]: Entering directory /home/test/outputs/b1305500555cbb5b959e5be11dee5cf75907f0ce/output/build/tinycbor-v0.3.1' install -d /home/test/outputs/b1305500555cbb5b959e5be11dee5cf75907f0ce/output/target/usr/bin/cbordump install -d /home/test/outputs/b1305500555cbb5b959e5be11dee5cf75907f0ce/output/target/usr/lib/libtinycbor.a install -d /home/test/outputs/b1305500555cbb5b959e5be11dee5cf75907f0ce/output/target/usr/lib/pkgconfig/tinycbor.pc install -d /home/test/outputs/b1305500555cbb5b959e5be11dee5cf75907f0ce/output/target/usr/include/tinycbor/cbor.h install -d /home/test/outputs/b1305500555cbb5b959e5be11dee5cf75907f0ce/output/target/usr/include/tinycbor/cborjson.h make[1]: Leaving directory /home/test/outputs/b1305500555cbb5b959e5be11dee5cf75907f0ce/output/build/tinycbor-v0.3.1'
To address this, we create the destination directory directly within
the per-file make targets.
Signed-off-by: Thomas Petazzoni<EMAIL_ADDRESS>

Applied to master branch as 31c7f81d45d115d2007b1c881cbbd3a19618465c. Fixes #36.


[Reimplementation] KeyError when running evaluation

Prerequisite

[X] I have searched Issues and Discussions but cannot get the expected help.
[X] I have read the FAQ documentation but cannot get the expected help.
[X] The bug has not been fixed in the latest version (master) or latest version (3.x).

💬 Describe the reimplementation questions
Hi, I'm trying to evaluate the model but I'm running into a KeyErrror with "start_coord" when running
python ./tools/test.py "configs\cfinet\faster_rcnn_r50_fpn_cfinet_1x.py" "work_dirs\epoch_12.pth"  --eval bbox
using the pre-trained weights.
This is the output when running:
(my_env) C:\Users\min_s\cvproject\CFINet>python ./tools/test.py "C:\Users\min_s\cvproject\CFINet\configs\cfinet\faster_rcnn_r50_fpn_cfinet_1x.py" "C:\Users\min_s\cvproject\CFINet\work_dirs\epoch_12.pth" --eval bbox
c:\users\min_s\cvproject\cfinet\mmdet\utils\setup_env.py:38: UserWarning: Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
warnings.warn(
c:\users\min_s\cvproject\cfinet\mmdet\utils\setup_env.py:48: UserWarning: Setting MKL_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
warnings.warn(
loading annotations into memory...
Done (t=0.45s)
creating index...
index created!
loading annotations into memory...
Done (t=0.28s)
creating index...
index created!
c:\users\min_s\cvproject\cfinet\mmdet\models\losses\iou_loss.py:266: UserWarning: DeprecationWarning: Setting "linear=True" in IOULoss is deprecated, please use "mode=linear" instead.
warnings.warn('DeprecationWarning: Setting "linear=True" in '
c:\users\min_s\cvproject\cfinet\mmdet\models\dense_heads\anchor_head.py:116: UserWarning: DeprecationWarning: num_anchors is deprecated, for consistency or also use num_base_priors instead
warnings.warn('DeprecationWarning: num_anchors is deprecated, '
c:\users\min_s\cvproject\cfinet\mmdet\models\dense_heads\anchor_head.py:123: UserWarning: DeprecationWarning: anchor_generator is deprecated, please use "prior_generator" instead
warnings.warn('DeprecationWarning: anchor_generator is deprecated, '
load checkpoint from local path: C:\Users\min_s\cvproject\CFINet\work_dirs\epoch_12.pth
The model and loaded state dict do not match exactly
unexpected key in source state_dict: rpn_head.rpn_conv.weight, rpn_head.rpn_conv.bias, rpn_head.rpn_cls.weight, rpn_head.rpn_cls.bias, rpn_head.rpn_reg.weight, rpn_head.rpn_reg.bias
missing keys in source state_dict: rpn_head.stages.0.rpn_conv.conv.weight, rpn_head.stages.0.rpn_conv.conv.bias, rpn_head.stages.0.rpn_reg.weight, rpn_head.stages.0.rpn_reg.bias, rpn_head.stages.1.rpn_conv.conv.weight, rpn_head.stages.1.rpn_cls.weight, rpn_head.stages.1.rpn_cls.bias, rpn_head.stages.1.rpn_reg.weight, rpn_head.stages.1.rpn_reg.bias
[                                                  ] 0/7428, elapsed: 0s, ETA:C:\Users\min_s\cvproject\my_env\lib\site-packages\torch\functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at  ..\aten\src\ATen\native\TensorShape.cpp:2157.)
return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 7428/7428, 10.6 task/s, elapsed: 699s, ETA:     0s

Merge detected results of patch for whole image evaluating...
Traceback (most recent call last):
File "./tools/test.py", line 287, in
main()
File "./tools/test.py", line 279, in main
metric = dataset.evaluate(outputs, **eval_kwargs)
File "c:\users\min_s\cvproject\cfinet\mmdet\datasets\sodad.py", line 506, in evaluate
merged_results = self.merge_dets(
File "c:\users\min_s\cvproject\cfinet\mmdet\datasets\sodad.py", line 426, in merge_dets
x_start, y_start = data_info['start_coord']
KeyError: 'start_coord'

Any clue to what I'm missing here? Thank you!
Environment
Same as described in the repository.
sys.platform: win32
Python: 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
CUDA available: True
GPU 0: NVIDIA GeForce RTX 3070 Ti Laptop GPU
CUDA_HOME: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.3
NVCC: Cuda compilation tools, release 11.3, V11.3.58
MSVC: Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33812 for x64
GCC: n/a
PyTorch: 1.10.0+cu113
PyTorch compiling details: PyTorch built with:

C++ Version: 199711
MSVC 192829337
Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v2.2.3 (Git Hash 7336ca9f055cf1bfa13efb658fe15dc9b41f0740)
OpenMP 2019
LAPACK is enabled (usually provided by MKL)
CPU capability usage: AVX2
CUDA Runtime 11.3
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75;-gencode;arch=compute_80,code=sm_80;-gencode;arch=compute_86,code=sm_86;-gencode;arch=compute_37,code=compute_37
CuDNN 8.2
Magma 2.5.4
Build settings: BLAS_INFO=mkl, BUILD_TYPE=Release, CUDA_VERSION=11.3, CUDNN_VERSION=8.2.0, CXX_COMPILER=C:/w/b/windows/tmp_bin/sccache-cl.exe, CXX_FLAGS=/DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -DUSE_PTHREADPOOL -openmp:experimental -IC:/w/b/windows/mkl/include -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOCUPTI -DUSE_FBGEMM -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -DEDGE_PROFILER_USE_KINETO, LAPACK_INFO=mkl, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, TORCH_VERSION=1.10.0, USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=OFF, USE_OPENMP=ON,

TorchVision: 0.11.0+cu113
OpenCV: 4.10.0
MMCV: 1.5.0
MMCV Compiler: MSVC 192930140
MMCV CUDA Compiler: 11.3
MMDetection: 2.26.0+2167eeb
Expected results
No response
Additional information
In the configs/base/datasts/sodad.py
data = dict(
samples_per_gpu=2,
workers_per_gpu=2,
train=dict(
type=dataset_type,
ann_file=data_root + 'divData/Annotations/train.json',
img_prefix=data_root + 'divData/Images/',
pipeline=train_pipeline,
ori_ann_file=data_root + 'rawData/Annotations/train.json'
),
val=dict(
type=dataset_type,
ann_file=data_root + 'rawData/Annotations/val.json',
img_prefix=data_root + 'rawData/Images/',
pipeline=test_pipeline,
ori_ann_file=data_root + 'rawData/Annotations/val_wo_ignore.json'
),
test=dict(
type=dataset_type,
ann_file=data_root + 'rawData/Annotations/test.json',
img_prefix=data_root + 'rawData/Images/',
pipeline=test_pipeline,
ori_ann_file=data_root + 'rawData/Annotations/test_wo_ignore.json'
))

the ann_file and img_prefix in val and test part should be the divided data instead of raw data

Thank you for your reply, that worked! I had mixed up the data somehow. However, I'm suspecting I'm not evaluating on the correct data, as when the evaluation is done, these are the results:
(my_env) C:\Users\min_s\cvproject\CFINet>python ./tools/test.py "C:\Users\min_s\cvproject\CFINet\configs\cfinet\faster_rcnn_r50_fpn_cfinet_1x.py" "C:\Users\min_s\cvproject\CFINet\configs\cfinet\faster_rcnn_r50_fpn_fi_roi_head_0822\epoch_12.pth" --work-dir C:\Users\min_s\cvproject\CFINet\work_dirs\Test --eval bbox
c:\users\min_s\cvproject\cfinet\mmdet\utils\setup_env.py:38: UserWarning: Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
warnings.warn(
c:\users\min_s\cvproject\cfinet\mmdet\utils\setup_env.py:48: UserWarning: Setting MKL_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
warnings.warn(
loading annotations into memory...
Done (t=1.72s)
creating index...
index created!
loading annotations into memory...
Done (t=0.44s)
creating index...
index created!
c:\users\min_s\cvproject\cfinet\mmdet\models\losses\iou_loss.py:266: UserWarning: DeprecationWarning: Setting "linear=True" in IOULoss is deprecated, please use "mode=linear" instead.
warnings.warn('DeprecationWarning: Setting "linear=True" in '
c:\users\min_s\cvproject\cfinet\mmdet\models\dense_heads\anchor_head.py:116: UserWarning: DeprecationWarning: num_anchors is deprecated, for consistency or also use num_base_priors instead
warnings.warn('DeprecationWarning: num_anchors is deprecated, '
c:\users\min_s\cvproject\cfinet\mmdet\models\dense_heads\anchor_head.py:123: UserWarning: DeprecationWarning: anchor_generator is deprecated, please use "prior_generator" instead
warnings.warn('DeprecationWarning: anchor_generator is deprecated, '
load checkpoint from local path: C:\Users\min_s\cvproject\CFINet\configs\cfinet\faster_rcnn_r50_fpn_fi_roi_head_0822\epoch_12.pth
The model and loaded state dict do not match exactly
unexpected key in source state_dict: rpn_head.rpn_conv.weight, rpn_head.rpn_conv.bias, rpn_head.rpn_cls.weight, rpn_head.rpn_cls.bias, rpn_head.rpn_reg.weight, rpn_head.rpn_reg.bias
missing keys in source state_dict: rpn_head.stages.0.rpn_conv.conv.weight, rpn_head.stages.0.rpn_conv.conv.bias, rpn_head.stages.0.rpn_reg.weight, rpn_head.stages.0.rpn_reg.bias, rpn_head.stages.1.rpn_conv.conv.weight, rpn_head.stages.1.rpn_cls.weight, rpn_head.stages.1.rpn_cls.bias, rpn_head.stages.1.rpn_reg.weight, rpn_head.stages.1.rpn_reg.bias
[                                                  ] 0/161579, elapsed: 0s, ETA:C:\Users\min_s\cvproject\my_env\lib\site-packages\torch\functional.py:445: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at  ..\aten\src\ATen\native\TensorShape.cpp:2157.)
return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 161579/161579, 10.2 task/s, elapsed: 15886s, ETA:     0s

Merge detected results of patch for whole image evaluating...
Merge results completed, it costs 21.4 seconds.

Evaluating bbox...
Loading and preparing results...
DONE (t=0.01s)
creating index...
index created!
Running per image evaluation...
Evaluate annotation type bbox
DONE (t=3.94s).
Accumulating evaluation results...
DONE (t=0.66s).
Average Precision  (AP) @[ IoU=0.50:0.95 | area= Small | maxDets=100 ] = 0.001
Average Precision  (AP) @[ IoU=0.50      | area= Small | maxDets=100 ] = 0.003
Average Precision  (AP) @[ IoU=0.75      | area= Small | maxDets=100 ] = 0.001
Average Precision  (AP) @[ IoU=0.50:0.95 | area=    eS | maxDets=100 ] = 0.001
Average Precision  (AP) @[ IoU=0.50:0.95 | area=    rS | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area=    gS | maxDets=100 ] = 0.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area=Normal | maxDets=100 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area= Small | maxDets=100 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area= Small | maxDets=300 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area= Small | maxDets=1000 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=    eS | maxDets=1000 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=    rS | maxDets=1000 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=    gS | maxDets=1000 ] = 0.000
Average Recall     (AR) @[ IoU=0.50:0.95 | area=Normal | maxDets=1000 ] = 0.000
+---------------+-------+----------------+-------+--------------+-------+
| category      | AP    | category       | AP    | category     | AP    |
+---------------+-------+----------------+-------+--------------+-------+
| people        | 0.000 | rider          | 0.000 | bicycle      | 0.000 |
| motor         | 0.000 | vehicle        | 0.003 | traffic-sign | 0.001 |
| traffic-light | 0.002 | traffic-camera | 0.000 | warning-cone | 0.000 |
+---------------+-------+----------------+-------+--------------+-------+
{'bbox_AP': 0.001, 'bbox_AP_50': 0.003, 'bbox_AP_75': 0.001, 'bbox_AP_eS': 0.001, 'bbox_AP_rS': 0.0, 'bbox_AP_gS': 0.0, 'bbox_AP_Normal': 0.0, 'bbox_mAP_copypaste': '0.001 0.003 0.001 0.001 0.000 0.000 0.000 '}
The config file:
data = dict(
samples_per_gpu=2,
workers_per_gpu=2,
train=dict(
type=dataset_type,
ann_file=data_root + 'divData/Annotations/train.json',
img_prefix=data_root + 'divData/Images/train',
pipeline=train_pipeline,
ori_ann_file=data_root + 'rawData/Annotations/train.json'
),
val=dict(
type=dataset_type,
ann_file=data_root + 'divData/Annotations/val.json',
img_prefix=data_root + 'divData/Images/val',
pipeline=test_pipeline,
ori_ann_file=data_root + 'rawData/Annotations/val_wo_ignore.json'
),
test=dict(
type=dataset_type,
ann_file=data_root + 'divData/Annotations/test.json',
img_prefix=data_root + 'divData/Images/test',
pipeline=test_pipeline,
ori_ann_file=data_root + 'rawData/Annotations/test_wo_ignore.json'
))
Do you have any idea what could be wrong? I don't suspect the results are meant to be 0...
I'm hoping for your reply.


Javascript error when trying to record

I  was trying to test the app, and when starting to record it gave this error.
After clicking accept it just offered to save the resulting video

Encountered the same. It also moved the Stop Recording button inside the view window and shows said button in the recording output. This is only when moving it to record a different display than the primary display. No issues or errors on the primary display for me.

@rgarat update to the latest. That error only seems to be version 1.0.5 and lower. https://cokeandcode.com/floom/ I just did the update and it is working now without issue.

Huh interesting issue I am not encountering. If you record on one monitor then move to another monitor it starts having issues. This could be something to do with having different resolutions between the monitors. Will test that

Issue seems intermittent in when it wants to happen. I moved it between 3 monitors, two with the same size and one smaller resolution. Other but I am noticing is that the recording window will expand or contract occasionally. Normally with a change to a different resolution. If you stop recording it is fine the next time you hit record. Will open a different bug report for this.

I was using 1.0.6 and it showed the error
I had moved the recorder from my main monitor 4k to my other one 1680x1050 no idea if this gives any clue

1.0.7 fixed this one.


feature request: filter babble topic from email digest

I am getting babble posts showing up in my email digest, which is weird. I see 2 possible ways of fixing this: i) force exclusion of the babble post from digest. ii) provide a setting (checkbox) that filters out all posts from designated babble category from the digest.

Hmm.. is there a way to exclude certain categories from the email digest? All the chat topics should be in the 'chat' category, so that might be a nice workaround.

Hey @tedstrauss : I think the fix for this is twofold:

Go into your rails console, and update all of the users to have a 'muted' setting for the 'chat' category
Something like this:

category = Category.find_by(name: "chat")
CategoryUser.where(category: category).update_all(notification_level: CategoryUser.notification_levels[:muted])

(This will handle all users who have already written a chat message)

Go into the /admin/site_settings panel and do a search for default categories. Apply 'chat' to the default_categories_muted field, like so:

(I may put in a PR so Babble does step 2 automatically, but this is a pretty simple workaround)

Ok I'll try that method out.
But won't I have to do it periodically as new users register?
Thanks!

Running the first command will take care of all exising users, while
editing the site setting will take care of it for future users.
On Tue, Nov 24, 2015 at 11:58 PM, Ted Strauss<EMAIL_ADDRESS>wrote:

Ok I'll try that method out.
But won't I have to do it periodically as new users register?
Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/gdpelican/babble/issues/77#issuecomment-159312963.


[Bug] Spring boot multi-modules project doesn't work

Plugin Name
@nxrocks/nx-spring-boot
Nx Report
I can't produce the nx report because the command doesn't work.
npx create-nx-spring-boot@latest
┌  create-nx-spring-boot
│
◇  What is the name of your workspace (e.g. org name)?
│  myorg
│
◇  Would you like to use Nx Wrapper? [ https://nx.dev/concepts/more-concepts/nx-and-the-wrapper#and-the-nx-wrapper ]
│  Yes
│
◇  Would you like Nx Cloud to make your CI faster? [ https://nx.app/?utm_source=create-nx-spring-boot ]
│  Skip for now
│

added 59 packages, and audited 171 packages in 582ms

22 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

 NX  Generating @nxrocks/nx-spring-boot:preset

✔ What is the name of your project? · unity
✔ What kind of project are you generating? · application
✔ Which build system would you like to use? · gradle-project-kotlin
✔ Which packaging would you like to use? · jar
✔ Which version of Java would you like to use? · 21
✔ Which language would you like to use? · java
✔ What groupId would you like to use? · com.example
✔ What artifactId would you like to use? · demo
✔ What package name would you like to use? · com.example.demo
⏳ Fetching Spring Boot dependencies list. Please wait...
? What dependencies would you like to use? (type something to filter, press [space] to multi-select) …
✔ What dependencies would you like to use? (type something to filter, press [space] to multi-select) · web
⏳ Checking for existing multi-module projects. Please wait...
✔ Would you like to transform the generated project into a Gradle multi-module project? (y/N) · true
✔ What name would you like to use for the Gradle multi-module project? · unity-parent
✔ A root Gradle wrapper will be added in the root module 'unity-parent'. Do you want to keep the one in the generated child module 'unity'? (y/N) · false
⚙ Generating project configuration...
⬇ Downloading Spring Boot project zip from : https://start.spring.io/starter.zip?type=gradle-project-kotlin&language=java&name=unity&groupId=com.example&artifactId=demo&packageName=com.example.demo&javaVersion=21&packaging=jar&dependencies=web...
📦 Extracting Spring Boot project zip to '/Users/pierrickrouxel/Projects/monorepo/myorg/unity-parent/unity'...
Adding 'buildInfo' task to the build.gradle.kts file...
Adding 'maven-publish' plugin...
CREATE unity-parent/settings.gradle.kts
CREATE unity-parent/build.gradle.kts
CREATE unity-parent/project.json
CREATE unity-parent/unity/project.json
CREATE unity-parent/gradlew
CREATE unity-parent/unity/HELP.md
CREATE unity-parent/unity/.gitignore
CREATE unity-parent/unity/settings.gradle.kts
CREATE unity-parent/unity/build.gradle.kts
CREATE unity-parent/unity/src/test/java/com/example/demo/UnityApplicationTests.java
CREATE unity-parent/unity/src/main/java/com/example/demo/UnityApplication.java
CREATE unity-parent/unity/src/main/resources/application.properties
CREATE unity-parent/gradlew.bat
CREATE unity-parent/gradle/wrapper/gradle-wrapper.properties
CREATE unity-parent/gradle/wrapper/gradle-wrapper.jar
UPDATE nx.json
◇  Successfully created the workspace: myorg
│
◇  Next steps ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                │
│  - Go to [ https://github.com/tinesoft/nxrocks/tree/develop/packages/nx-spring-boot ] to get started with Nx and Spring Boot plugin.  │
│  - Run   [ ./nx g @nxrocks/nx-spring-boot:project ] to add more projects.                                                             │
│  - Go to [ https://nx.dev/concepts/more-concepts/nx-and-the-wrapper#and-the-nx-wrapper ] to get started with Nx Wrapper.              │
│  - Go to [ https://nx.dev ] to get started with Nx.                                                                                │
│                                                                                │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
│
└  Your workspace in /Users/pierrickrouxel/Projects/monorepo/myorg is all set 🎉. Let's goooooo! 🚀

 ~/Projects/monorepo  cd myorg
 ~/Projects/monorepo/myorg  nx graph

 NX   Failed to process project graph.

Pass --verbose to see the stacktraces.

With stacktrace:
nx --verbose report

 NX   Failed to process project graph. See errors below.

Failed to process project graph.
  The "@nxrocks/nx-spring-boot" plugin threw an error while creating nodes from unity-parent/build.gradle.kts:
    TypeError: Cannot read properties of undefined (reading 'applied')
        at getProjectTypeAndTargetsFromFile (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/@nxrocks/nx-spring-boot/src/utils/plugin-utils.js:28:90)
        at /Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/@nxrocks/common/src/lib/workspace/project-graph.js:101:23
        at createProjectConfigurations (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:251:25)
        at _retrieveProjectConfigurations (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/project-graph/utils/retrieve-workspace-files.js:61:74)
        at retrieveProjectConfigurations (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/project-graph/utils/retrieve-workspace-files.js:46:12)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
        at async processFilesAndCreateAndSerializeProjectGraph (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/project-graph-incremental-recomputation.js:148:26)
        at async getCachedSerializedProjectGraphPromise (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/project-graph-incremental-recomputation.js:45:16)
        at async handleRequestProjectGraph (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/handle-request-project-graph.js:12:24)
        at async handleResult (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/server.js:110:16)
        at async handleMessage (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/server.js:81:9)
        at async /Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/server.js:45:9
The "@nxrocks/nx-spring-boot" plugin threw an error while creating nodes from unity-parent/settings.gradle.kts:
    TypeError: Cannot read properties of undefined (reading 'applied')
        at getProjectTypeAndTargetsFromFile (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/@nxrocks/nx-spring-boot/src/utils/plugin-utils.js:28:90)
        at /Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/@nxrocks/common/src/lib/workspace/project-graph.js:101:23
        at createProjectConfigurations (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/project-graph/utils/project-configuration-utils.js:251:25)
        at _retrieveProjectConfigurations (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/project-graph/utils/retrieve-workspace-files.js:61:74)
        at retrieveProjectConfigurations (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/project-graph/utils/retrieve-workspace-files.js:46:12)
        at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
        at async processFilesAndCreateAndSerializeProjectGraph (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/project-graph-incremental-recomputation.js:148:26)
        at async getCachedSerializedProjectGraphPromise (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/project-graph-incremental-recomputation.js:45:16)
        at async handleRequestProjectGraph (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/handle-request-project-graph.js:12:24)
        at async handleResult (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/server.js:110:16)
        at async handleMessage (/Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/server.js:81:9)
        at async /Users/pierrickrouxel/Projects/monorepo/myorg/.nx/installation/node_modules/nx/src/daemon/server/server.js:45:9

Expected Behaviour
The CLI should works normally.
Actual Behaviour
All commands fails with the same exception:
Cannot read properties of undefined (reading 'applied')

Steps to reproduce the behaviour

Create a workspace using: npx create-nx-spring-boot@latest
Answer yes to the question: Would you like to transform the generated project into a Gradle multi-module project? (y/N)

I tried with and without the integrated monorepo, the problem appears always when the project is multi-module.

Hi @pierrickrouxel
Thanks for using the plugin and for reporting this.
I will have a look shortly and keep you posted.
Cheers

Hi, thank you very much.
I'm currently on a Gradle monorepo hosting a Java / Typescript projects.
Your plugin sounds very good to our needs.

I'm glad to hear that 😊
I will do my best to fix the issue asap!
Don't hesitate to star ⭐ the project on Github, if you like it ^^

Hi @pierrickrouxel
I identified and fixed the main issue you  found above.
While fixing it, I discovered another issue when building the project graph for Gradle-based projects.
I'll include both fixes and release soon (hopefully tonight or tomorrow).
Stay tuned!

Hi.
Latest version of the plugin:
https://github.com/tinesoft/nxrocks/releases/tag/nx-spring-boot%2Fv10.0.2
should fix your issue. Can you try again and let me know?

Hello, it works ! Thank you very much !

@tinesoft

While fixing it, I discovered another issue when building the project graph for Gradle-based projects.

Did you fix this issue? I run an integrated monorepo with a multi-module project. The links between modules aren't defined in the graph.

Hi,
Yes it was fixed during my testing, that why I took so long to  release it.
Can you share the build.gradle and settings.gradle  files in the parent module folder, along with the ones in the children modules please?
How did you define the dependencies between the modules?

Hi @pierrickrouxel
Thanks for letting me know. There was indeed a slight change required for Gradle project using Kotlin DSL.
I will release it soonish


Cover and Profile photo not showing

I am using this code to get a bitmap of the photo from url but when I create a new account the photos are not displayed. they do appear when I rotate the screen and then it works properly...
This is how i get the Photo:
public class GetProfileImg extends AsyncTask<String, Void, Bitmap> {
    ImageView bitMapView;

    public GetProfileImg(ImageView bitMapView) {
        this.bitMapView = bitMapView;
    }
    public Bitmap bitmapIcon = null;
    protected Bitmap doInBackground(String... urls){
        String url = urls[0];

        try {
            InputStream inputStream = new URL(url).openStream();
            bitmapIcon = BitmapFactory.decodeStream(inputStream);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return bitmapIcon;
    }
    protected void onPostExecute(Bitmap res) {profile = res;}
}

and them Im doing this:
MaterialAccount account = new MaterialAccount(this.getResources(),name,"",profile,cover);
addAccount(account);
The cover and the profile picture do not appear until I rotate the screen...
How can i fix this?

read on the wiki
You should call notifyAccountDataChanged method if you want to change account information at runtime.

The wiki also say that if you use it like this:
MaterialAccount account = new MaterialAccount(this.getResources(),name,"",profile,cover);
You dont need to call notifyAccountDataChanged method

Ok. I tried to do this:
  account = new MaterialAccount(this.getResources(),name,"",profile,cover);              notifyAccountDataChanged();
  addAccount(account);
It did not help. The Pictuers stil apper only after i rotate my device.
And this code crashed:
  account = new MaterialAccount(this.getResources(),name,"",profile,cover);
  addAccount(account);
notifyAccountDataChanged();

The correct way to add an account Asyncronusly is:
account = new MaterialAccount(this.getResources(),name,"",profile,cover);
addAccount(account);
notifyAccountDataChanged();

Now if a crash appened, please share the api used, the device specs and the logcat error.


issue is here

Describe the rule you'd like to see added and to what rule set
Include as much detail as you can.
Additional context
Add any other considerations or context here.

I'll close this issue because it has no actionable information. @sfssahil24, please create a new issue with more information, if needed.