delete language does not work if language is no longer in settings

The "delete language" function on the Page menu of the Toolbar appears for all languages there is content for (even if the language is not configured in settings). But choosing to delete that language causes a (silent) 500 error.
Design decision:

not display any languages that are not configured at all (even if there is content for that language in the database)
fix deleting of that language for the case where it is no longer configured in settings

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "django/utils/decorators.py", line 99, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "django/views/decorators/cache.py", line 52, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "django/contrib/admin/sites.py", line 198, in inner
    return view(request, *args, **kwargs)
  File "reversion/revisions.py", line 297, in do_revision_context
    return func(*args, **kwargs)
  File "cms/admin/pageadmin.py", line 1266, in delete_translation
    'language': force_unicode(get_language_object(language)['name'])
  File "cms/utils/i18n.py", line 115, in get_language_object
    raise LanguageError('Language not found: %s' % language_code)

tested with django-cms==3.0.13

Fixed in #4161


TZStackView tests do not pass in Beta 4 or Beta 5

Hey Tom,
It looks as thought the tests are no longer correct at least as of Beta 4.
In Beta 4:
It seems that the order of the constraints is not the same between UIStackView and TZStackView even though the constraints themselves appear to be the same. Is the order of the constraints important? If not I can fix the tests so that they do not rely on order.
In Beta 5:
It looks at though UIStackView has one more constraint than TZStackView which is triggering a failure in the count assertion as well as all the test failures above. Little less confident about my ability to track this one down.

I want to let you know that I am working on it. I will have this fixed this weekend.

Fixed in master!


Chapter 4. / Section "Transactional emails.." test fails

In the end of Chapter 4. / Section "Transactional emails.." before Update User model
book suggests to run app and check if "emailtemplates" collection was created in mongoDB.
But there is still no place in the app whereEmailTemplate.js was imported, so no call of insertTemplates() happens on app start.
During the Chapter 4 we just created server/aws.js and server/models/EmailTemplate.js but didn't use it ever.
As I see first place where EmailTemplates will be used is User model, it will happen later after this app test run.

@YuriGor see #111 as this has already been fixed with the change from ES6 import/export syntax to the old style. I am just about to start changing all the ES6 module code into the old style so that babel-node can be removed, prevent these types of issues as well as improve performance.

Yes, this is duplicate of #111, but I already user require instead of import everywhere in my code (to use jest widely), there is no difference, you still need to include the module to execute it, node doesn't know anything about any file until it was referenced explicitly. So we still need to import it require EmailTemplate.js to make it work.


Add instrumented journal.

What change does this introduce?
This PR adds the instjournal package which wraps a journal implementation in an adaptor that adds instrumentation in the form of OpenTelemetry traces and metrics, and logging via slog.
Why make this change?
We want the engine to provide these observability primitives without the application developer needing to expend too much effort. This approach allows us to provide lowish-level instrumentation of the persistence layer regardless of the chosen persistence driver.
Is there anything you are unsure about?
Lots! The naming of metrics and attributes. I've been trying to find and adhere to the OpenTelemetry best practices, but the documentation is fairly fragmented.
I've taken a fairly verbose approach of prefixing all metric and attribute names with the "reverse domain" io.dogmatiq.veracity.journal, which is suggested in the best practices for attributes. I'm not certain that this is useful for metric names too, but it seems reasonable.

This one is pretty big, would be good if we could get some time to go over it together.

I'm not certain that this is useful for metric names too, but it seems reasonable.

I've read elsewhere that metic "instrument" names (individual metrics) are scoped to the name of the "meter name". Since the meter name I've used is io.dogmatiq.veracity.journal, I didn't add that prefix to the metric names as well.

Thanks guys, I ended up pointing this at honeycomb.io and having a look at how the traces and metrics look. I think we should try it out with Jaeger, Xray and Grafana, too, at some point. But TL;DR, I ended up adding the io.dogmatiq.veracity.journal prefix back onto the metrics.


extra hero section removed from 404 page

Description
Removes extra hero section from the 404 page

Related issue(s)
Resolves #1839

Closing as there was PR already opened, that had proper PR title, no extra formatting + no changes to package-lock
https://github.com/asyncapi/website/pull/1840

@rajat4984 but don't give up, we have much more good first issues -> https://github.com/issues?page=1&q=is%3Aopen+org%3Aasyncapi+sort%3Aupdated-desc+label%3A"good+first+issue"


Tests failing on analyzer mac and windows bots

As of this moment the following tests are failing:
analyzer-mac-release/unittest-asserts | pkg/analyzer/tool/experiments/experiments_test                                           | Fail                    | Pass             |
analyzer-win-release/unittest-asserts | pkg/analysis_server/test/edit/nnbd_migration/instrumentation_output_test                 | RuntimeError            | Pass             |
analyzer-win-release/unittest-asserts | pkg/analyzer/tool/experiments/experiments_test                                           | Fail                    | Pass             |
analyzer-win-release/unittest-asserts | pkg/analyzer/tool/summary/check_test                                                     | Fail                    | Pass             |

@munificent needs to do a blanket approval of failures on the analyzer bots due to some test restructuring, so these bots are going to turn green again.  This bug is to track the fact that we still need to track down and fix these failures.

These failures have all been taken care of:
analyzer-mac-release/unittest-asserts | pkg/analyzer/tool/experiments/experiments_test (passing now)
analyzer-win-release/unittest-asserts | pkg/analysis_server/test/edit/nnbd_migration/instrumentation_output_test (test removed)
analyzer-win-release/unittest-asserts | pkg/analyzer/tool/experiments/experiments_test (passing now)
analyzer-win-release/unittest-asserts | pkg/analyzer/tool/summary/check_test (passing now)


[html] move mdn link to the right

It would make it so much easier if you could move the MDN Reference link to the right when the mouse hover over an element's properties.
I keep accidentally clicking on the link instead of the property.  It's happening too many times.  Please move the link to the right.

https://github.com/microsoft/vscode/issues/97979 is about a setting tor remove the link

#97979 may solve the problem for those who don't want MDN references at all, but not for those who need the reference but accidentally click on the reference link because of the current design.
It happens to me all the time when I try to move the cursor to one line above the current line. I remember VSCode used to show a pop-up asking if I'd like to visit the reference link before jumping to the browser but now it doesn't anymore. I've already increased the hover delay but it still happens.
If we can move the reference link anywhere but the bottom, or require cmd+click to open the link, or anything that is dummy-proof would be nice.


Junior Python (Django) Developer

Add the following job opening to the website.

Job Title
Junior Python (Django) Developer
Job Description
We are seeking a Junior Python (Django) Developer to work collaboratively with team members to develop and contribute to our digital currency network.
Responsibilities

Expand your Python skills by working on packages, services, scripts, and deployments in a collaborative work environment
Find, document and track bugs
Create test plans/test cases, write test scripts, and execute all tests

Technology Requirements

Able to manage source code using GitHub
Fast learner who is eager to face new technological challenges and come up with innovative solutions
Curious to learn how things really work
Excellent teamwork and interpersonal communication skills

Reports To

First Name: Bucky
Slack Name: Bucky

Pay

2,800 points/day

Application channels

Slack - Message Bucky
LinkedIn
Twitter
Reddit

On it!


Error when build project

I have a problem when building the source
More than one file was found with OS independent path 'schemaorg_apache_xmlbeans/system/sF1327CCA741569E70F9CA8C9AF9B44B2/ctpivotsourcecb49type.xsb'
Could you help me?

It could be built, closed this issue.


RPC not work in esp-idf

Hello, I made a RPC project in esp-idf, but it did not work. He showed me that he was subscribed to the RPC, but I got no response from the terminal when I sent an RPC from Thingsboard. but when I restart the esp32 and send immediately an RPC from the thingsboard, the terminal shows that RPC have been received just after he subscribed to it, and he stops receiving RPCs after that. I hope I found a solution and thank you.
thingsboard version 12.2
`
#include <esp_netif.h>
#include <esp_log.h>
#include <esp_wifi.h>
#include <nvs_flash.h>
#include <string.h>
// Whether the given script is using encryption or not,
// generally recommended as it increases security (communication with the server is not in clear text anymore),
// it does come with an overhead tough as having an encrypted session requires a lot of memory,
// which might not be avaialable on lower end devices.
#define ENCRYPTED false
#include <Espressif_MQTT_Client.h>
#include <ThingsBoard.h>
// Examples using arduino used PROGMEM to save constants into flash memory,
// this is not needed when using Espressif IDF because per default
// all read only variables will be saved into DROM (flash memory).
// See https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/memory-types.html#drom-data-stored-in-flash
// for more information about the aforementioned feature
constexpr char WIFI_SSID[] = "YOUR_WIFI_SSID";
constexpr char WIFI_PASSWORD[] = "YOUR_WIFI_PASSWORD";
// See https://thingsboard.io/docs/getting-started-guides/helloworld/
// to understand how to obtain an access token
constexpr char TOKEN[] = "YOUR_DEVICE_ACCESS_TOKEN";
// Thingsboard we want to establish a connection to
constexpr char THINGSBOARD_SERVER[] = "demo.thingsboard.io";
// MQTT port used to communicate with the server, 1883 is the default unencrypted MQTT port,
// whereas 8883 would be the default encrypted SSL MQTT port
#if ENCRYPTED
constexpr uint16_t THINGSBOARD_PORT = 8883U;
#else
constexpr uint16_t THINGSBOARD_PORT = 1883U;
#endif
// Maximum size packets will ever be sent or received by the underlying MQTT client,
// if the size is to small messages might not be sent or received messages will be discarded
constexpr uint16_t MAX_MESSAGE_SIZE = 256U;
#if ENCRYPTED
// See https://comodosslstore.com/resources/what-is-a-root-ca-certificate-and-how-do-i-download-it/
// on how to get the root certificate of the server we want to communicate with,
// this is needed to establish a secure connection and changes depending on the website.
constexpr char ROOT_CERT[] = R"(-----BEGIN CERTIFICATE-----
MIIFazCCA1OgAwIBAgIRAIIQz7DSQONZRGPgu2OCiwAwDQYJKoZIhvcNAQELBQAw
TzELMAkGA1UEBhMCVVMxKTAnBgNVBAoTIEludGVybmV0IFNlY3VyaXR5IFJlc2Vh
cmNoIEdyb3VwMRUwEwYDVQQDEwxJU1JHIFJvb3QgWDEwHhcNMTUwNjA0MTEwNDM4
WhcNMzUwNjA0MTEwNDM4WjBPMQswCQYDVQQGEwJVUzEpMCcGA1UEChMgSW50ZXJu
ZXQgU2VjdXJpdHkgUmVzZWFyY2ggR3JvdXAxFTATBgNVBAMTDElTUkcgUm9vdCBY
MTCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAK3oJHP0FDfzm54rVygc
h77ct984kIxuPOZXoHj3dcKi/vVqbvYATyjb3miGbESTtrFj/RQSa78f0uoxmyF+
0TM8ukj13Xnfs7j/EvEhmkvBioZxaUpmZmyPfjxwv60pIgbz5MDmgK7iS4+3mX6U
A5/TR5d8mUgjU+g4rk8Kb4Mu0UlXjIB0ttov0DiNewNwIRt18jA8+o+u3dpjq+sW
T8KOEUt+zwvo/7V3LvSye0rgTBIlDHCNAymg4VMk7BPZ7hm/ELNKjD+Jo2FR3qyH
B5T0Y3HsLuJvW5iB4YlcNHlsdu87kGJ55tukmi8mxdAQ4Q7e2RCOFvu396j3x+UC
B5iPNgiV5+I3lg02dZ77DnKxHZu8A/lJBdiB3QW0KtZB6awBdpUKD9jf1b0SHzUv
KBds0pjBqAlkd25HN7rOrFleaJ1/ctaJxQZBKT5ZPt0m9STJEadao0xAH0ahmbWn
OlFuhjuefXKnEgV4We0+UXgVCwOPjdAvBbI+e0ocS3MFEvzG6uBQE3xDk3SzynTn
jh8BCNAw1FtxNrQHusEwMFxIt4I7mKZ9YIqioymCzLq9gwQbooMDQaHWBfEbwrbw
qHyGO0aoSCqI3Haadr8faqU9GY/rOPNk3sgrDQoo//fb4hVC1CLQJ13hef4Y53CI
rU7m2Ys6xt0nUW7/vGT1M0NPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV
HRMBAf8EBTADAQH/MB0GA1UdDgQWBBR5tFnme7bl5AFzgAiIyBpY9umbbjANBgkq
hkiG9w0BAQsFAAOCAgEAVR9YqbyyqFDQDLHYGmkgJykIrGF1XIpu+ILlaS/V9lZL
ubhzEFnTIZd+50xx+7LSYK05qAvqFyFWhfFQDlnrzuBZ6brJFe+GnY+EgPbk6ZGQ
3BebYhtF8GaV0nxvwuo77x/Py9auJ/GpsMiu/X1+mvoiBOv/2X/qkSsisRcOj/KK
NFtY2PwByVS5uCbMiogziUwthDyC3+6WVwW6LLv3xLfHTjuCvjHIInNzktHCgKQ5
ORAzI4JMPJ+GslWYHb4phowim57iaztXOoJwTdwJx4nLCgdNbOhdjsnvzqvHu7Ur
TkXWStAmzOVyyghqpZXjFaH3pO3JLF+l+/+sKAIuvtd7u+Nxe5AW0wdeRlN8NwdC
jNPElpzVmbUq4JUagEiuTDkHzsxHpFKVK7q4+63SM1N95R1NbdWhscdCb+ZAJzVc
oyi3B43njTOQ5yOf+1CceWxG1bQVs5ZufpsMljq4Ui0/1lvh+wjChP4kqKOJ2qxq
4RgqsahDYVvTH9w7jXbyLeiNdd8XM2w9U/t7y0Ff/9yi0GE44Za4rF2LN9d11TPA
mRGunUHBcnWEvgJBQl9nJEiU0Zsnvgc/ubhPgXRR4Xq37Z0j4r7g1SgEEzwxA57d
emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
-----END CERTIFICATE-----
)";
#endif
constexpr char RPC_TEMPERATURE_METHOD[] = "example_set_temperature";
constexpr char RPC_SWITCH_METHOD[] = "example_set_switch";
constexpr char RPC_TEMPERATURE_KEY[] = "temp";
constexpr char RPC_SWITCH_KEY[] = "switch";
constexpr char RPC_RESPONSE_KEY[] = "example_response";
// Initalize the Mqtt client instance
Espressif_MQTT_Client mqttClient;
// Initialize ThingsBoard instance with the maximum needed buffer size
ThingsBoard tb(mqttClient, MAX_MESSAGE_SIZE);
// Statuses for subscribing to rpc
bool subscribed = false;
static void on_got_ip(void* arg, esp_event_base_t event_base,
int32_t event_id, void* event_data) {
ESP_LOGI("RPC Example", "Got IP");
}
void InitWiFi() {
ESP_ERROR_CHECK(nvs_flash_init());
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
esp_netif_create_default_wifi_sta();

wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK(esp_wifi_init(&cfg));
ESP_ERROR_CHECK(esp_event_handler_register(IP_EVENT, IP_EVENT_STA_GOT_IP, &on_got_ip, NULL));

wifi_config_t wifi_config = {};
strcpy((char*)wifi_config.sta.ssid, WIFI_SSID);
strcpy((char*)wifi_config.sta.password, WIFI_PASSWORD);

ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wifi_config));
ESP_ERROR_CHECK(esp_wifi_start());
ESP_ERROR_CHECK(esp_wifi_connect());

}
RPC_Response processTemperatureChange(const RPC_Data &data) {
float example_temperature = data[RPC_TEMPERATURE_KEY];
ESP_LOGI("RPC Example", "Received the set temperature RPC method: %f", example_temperature);
StaticJsonDocument<JSON_OBJECT_SIZE(1)> doc;
doc[RPC_RESPONSE_KEY] = 42;
return RPC_Response(doc);

}
RPC_Response processSwitchChange(const RPC_Data &data) {
bool switch_state = data[RPC_SWITCH_KEY];
ESP_LOGI("RPC Example", "Received the set switch method: %d", switch_state);
StaticJsonDocument<JSON_OBJECT_SIZE(1)> doc;
doc[RPC_RESPONSE_KEY] = 22.02;
return RPC_Response(doc);

}
extern "C" void app_main(void) {
InitWiFi();
const std::array<RPC_Callback, 2U> callbacks = {
    RPC_Callback{RPC_TEMPERATURE_METHOD, processTemperatureChange},
    RPC_Callback{RPC_SWITCH_METHOD, processSwitchChange}
};

while (true) {
    if (!tb.connected()) {
        ESP_LOGI("RPC Example", "Connecting to: %s with token %s", THINGSBOARD_SERVER, TOKEN);
        if (tb.connect(THINGSBOARD_SERVER, TOKEN, THINGSBOARD_PORT)) {
            ESP_LOGI("RPC Example", "Successfully connected");
            if (!subscribed && tb.RPC_Subscribe(callbacks.begin(), callbacks.end())) {
                ESP_LOGI("RPC Example", "Subscribed to RPC commands");
                subscribed = true;
            }
        } else {
            ESP_LOGE("RPC Example", "Failed to connect");
        }
    }

    tb.loop();
    vTaskDelay(pdMS_TO_TICKS(1000));
}

}
`
the code i get it from here #199

Previous version of the code had a bug, which is described in more detail in this issue #189.
Until my Pull Request has been merged, you can simply move the StaticJsonDocument into global scope, which fixes the issue.

hey , i tried your pull request and the same problem even the arduino rpc exemple do the same

Do I understand you correctly the RPC is received but only at the start after you subscribe for all subsequent calls, the RPC method does not trigger anymore and the device does not print that it received any RPC messages?

I had a look at the code and I have one idea what the issue could be. Not 100% sure if my inkling is correct tough.
Before the connection has been lost are your reconnecting to ThingsBoard? What I mean is are you specifically calling the connect() method on the ThingsBoard Instance.
And if you are would it be possible for you to add log messages to the Resubscribe_Topics() method in the Thingsboard.h file.
Simply adjust the method like this.
void Resubscribe_Topics() {
    if (!m_rpc_callbacks.empty()) {
        bool const result = m_client.subscribe(RPC_SUBSCRIBE_TOPIC);
        Serial.printf("Result of topic resubscription: %s \n", result ? "Success" : "Failure");
    }
    if (!m_shared_attribute_update_callbacks.empty()) {
        bool const result = mm_client.subscribe(ATTRIBUTE_TOPIC);
        Serial.printf("Result of topic resubscription: %s \n", result ? "Success" : "Failure");
    }
}

Hey, this is my main code, and in it, I just call tb.connect one time.
I fixed the issue.
I added the function you wrote to me in the main, and it worked, but I'm still confused about why it wasn't called automatically.
`extern "C" void app_main() {
ESP_LOGI("MAIN", "[APP] Startup..");
ESP_LOGI("MAIN", "[APP] Free memory: %" PRIu32 " bytes", esp_get_free_heap_size());
ESP_LOGI("MAIN", "[APP] IDF version: %s", esp_get_idf_version());

esp_log_level_set("*", ESP_LOG_INFO);

ESP_ERROR_CHECK(nvs_flash_init());
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());
// Initialize GPIO and other peripherals
initialize();

#if ENCRYPTED
mqttClient.set_server_certificate(ROOT_CERT);
#endif // ENCRYPTED
InitWiFi();

for (;;) {
    // Wait until we connected to WiFi
    if (!wifi_connected) {
        vTaskDelay(1000 / portTICK_PERIOD_MS);
        continue;
    }

    if (!tb.connected()) {
        tb.connect(THINGSBOARD_SERVER, TOKEN, THINGSBOARD_PORT);

    }
    tb.setBufferSize(1024);
    if (!subscribed) {
    ESP_LOGI("MAIN", "Subscribing for RPC...");

    const std::array<RPC_Callback, 3U> callbacks = {
    // Requires additional memory in the JsonDocument for the JsonDocument that will be copied into the response
    RPC_Callback{ RPC_JSON_METHOD,           processGetJson },
    // Internal size can be 0, because if we use the JsonDocument as a JsonVariant and then set the value we do not require additional memory
    RPC_Callback{ RPC_SWITCH_METHOD,         processSwitchChange }
    };
// Perform a subscription. All consequent data processing will happen in
// processTemperatureChange() and processSwitchChange() functions,
// as denoted by callbacks array.
if (!tb.RPC_Subscribe(callbacks.cbegin(), callbacks.cend())) {
    ESP_LOGI("MAIN", "Failed to subscribe for RPC");

  return;
}
ESP_LOGI("MAIN", "Subscribe done");

subscribed = true;

}
tb.Resubscribe_Topics();
    tb.loop();

    vTaskDelay(1000 / portTICK_PERIOD_MS);
}

}`

Thanks that's interesting, can you tell me what is printed on the serial, when the tb.Resubscribe_Topics() and tb.connect() method are called?
Additionally could you move the tb.Resubscribe_Topics() method into this block of your main function and see if it still works as well?
if (!tb.connected()) {
    tb.connect(THINGSBOARD_SERVER, TOKEN, THINGSBOARD_PORT);
    tb.Resubscribe_Topics();
}

hey thats what i see in terminal:
I (15343) Resubscribe: Result of topic resubscription: Success
I (16348) Resubscribe: Result of topic resubscription: Success
I (17353) Resubscribe: Result of topic resubscription: Success
I (18358) Resubscribe: Result of topic resubscription: Success
and no when i move tb.Resubscribe_Topics() to that block it stop working

Interesting so it does not seem to be because we lose connection with the MQTT broker and have to reconnect again. Because that was my inital assumption.
Somehow we loose the topic subscritption because of another reason, but I can't tell what could cause that to occur, because the library never implicitly unsubscribes server-side RPC or shared attribute updates.

I always ask why happen to me and i use the same code that others use
Does the esp32 model i use can be the problem ?
"ttgo lora32-oled v1"

You are not the only one, that has this issue as far as I know. But for the othere developer it's an ESP32-S3 and they do receive RPC after the first one, but after around 5 - 6 hours they don't anymore.
So I'm not 100% sure it is the same issue but it very well could be.

For now it is probably a good idea to add the tb.Resubscribe_Topics() call in the main loop. But that is more of a bandaid than anything else, but while I'll try to fix the actual underlying issue this should make the library work correctly for now at least.

Understood, thanks for your help i had two week trying to fix the issue hhhh.
Any way i will keep this issue Open for now
Until found a good solution


Add storage buffer limit size to output plugin

Description
Added buffer_limit_size value to output plugin that has
filesystem as storage type. This prevent the size to grow out of controle.
Related issue
b/244466293
How has this been tested?
The tests done and benchmarking can be found on the design documentation.
Integration test is  a WIP
Checklist:

Unit tests

[] Unit tests do not apply.
[X] Unit tests have been added/modified and passed for this PR.

Integration tests

[ ] Integration tests do not apply.
[ ] Integration tests have been added/modified and passed for this PR.

Documentation

[X] This PR introduces no user visible changes.
[ ] This PR introduces user visible changes and the corresponding documentation change has been made.

Minor version bump

[X] This PR introduces no new features.
[ ] This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
[ ] This PR bumps the version.

Current status: This is being discussed offline in the design doc.

Implemeneted on another PR


potential fix for GravityChangeWrapper

Slide fix PR
Thanks for improving the slides! Here are some questions as info for us and sanity checks for you before submitting the PR:
What kind of fix are you pushing?
<other_please_describe>
I think the current GravityChangeWrapper implementation does not work as intended (at least to my understanding).
Previously, it changed the gravity in each reset call. Also, flipping the gravity does not result in any changes in the environment since gravity has to be in (-20, 0.01). Apparently, the environment flips it back to the negative value if gravity is greater than zero.
In case of a clarity fix, why do you prefer your option?
It implements the behaviour that was discussed during the lecture.
In case of a factual error, did you include a source or correct the source?
<n>
If everything looks fine to you, please assign @TheEimer as as reviewer for this PR.

Haha, I built this env, I should know it has limits to the configspace! Thanks for immediately fixing, you can also just tell me about issues like these and I can do it myself though :D


[2.10.2]Hide AKS, EKS, and GKE cards when their kontainer drivers are deactivated

Fixes #12901
backport of https://github.com/rancher/dashboard/pull/12903

Updated to include a backport of https://github.com/rancher/dashboard/pull/12925


embedded async is not async

I have an embedded+async hasMany attribute on my model, and the async is not respected.
Basically I represent each entity as a sub-graph under the user, akin to a document-oriented system. I do it that way to try to limit errors in the access control, since the language is very hard to use.
But when I display the list of documents to the user, the whole recursive content of all the documents is pulled instead of just the root node for each document.

embedded: true tells the adapter that your records are available immediately. Unfortunately, adding async: true does not do what you are expecting :(
This is the same pattern for other ember data adapters. I don't believe the basic ActiveModelAdapter handles both flags at the same time either.
We may be able to re-visit this if we start adding deep link references for embedded records in #135

Lazy loading embedded records is out of scope of EmberFire. We only support embedded or async but not both.


scale is undocumented and may do something wrong

The following code is expected to show a white canvas:
let bug =
    let canvas = Canvas.create 120 108
    Canvas.runApp "Opps" 120 108
                  (fun w h _ -> Canvas.scale canvas w h) (fun _ _ -> None) ()

However some garbled data is shown:

May be related to #13

I'm unable to reproduce the bug

Hello @kfl! I am also unable to reproduce this bug on Windows 11 (x86-64) and MacOS Apple M1 (ARM) .

No longer relevant in version 2.0


Built in data normalization

Any chance we could get built in data normalization?

How would you like it normalized?

To fit the brain input/output. If my variables are greater than 1 I want it to normalize the data to be within a range of 0 to 1.

I've been thinking about this for a bit, currently there is something like this built into brain.js.  Consider the current README.md:
var net = new brain.NeuralNetwork();

net.train([{input: { r: 0.03, g: 0.7, b: 0.5 }, output: { black: 1 }},
           {input: { r: 0.16, g: 0.09, b: 0.2 }, output: { white: 1 }},
           {input: { r: 0.5, g: 0.5, b: 1.0 }, output: { white: 1 }}]);

var output = net.run({ r: 1, g: 0.4, b: 0 });  // { white: 0.99, black: 0.002 }

Here r, g, and b are normalized to the layers associated with them.  This may not be exactly what you want, especially if you have thousands or more types.  Another way you could do it, say if you had an object with the properties that you'd like to normalize:
var keys = mySuperObject.keys();
var normalizedValues = keys.map(function(key, i) {
  return i / keys.length;
});

Lets say I have 10 mapped keys. If the value of one of those keys is 30 and I'm dividing that by 10 then the returned value is 3. That's not between 0 and 1.
A way I've found is iterating through your csv and finding the highest value. Then going back through the list again and dividing all values by this max value. This becomes slow when you have many values.
Maybe we can use some variation of the sigmoid function and tailor it to our needs?

There is probably a better way, but try something like this:
var values = [];
for (var i = 0, max = 10000; i < max; i++) {
  values.push(i);
}

var normalizedInputValues = [];
values.forEach(function(value, index) {
  normalizedInputValues.push(index / values.length);
});

for (i = 0, max = normalizedInputValues.length; i < max; i++) {
  if (normalizedInputValues[i] > 1) throw new Error('This should never happen, but there is a value above 1 here at index of ' + i);
}

//have fun

In the above mentioned:
var net = new brain.NeuralNetwork();

net.train([{input: { r: 0.03, g: 0.7, b: 0.5 }, output: { black: 1 }},
           {input: { r: 0.16, g: 0.09, b: 0.2 }, output: { white: 1 }},
           {input: { r: 0.5, g: 0.5, b: 1.0 }, output: { white: 1 }}]);

var output = net.run({ r: 1, g: 0.4, b: 0 });  // { white: 0.99, black: 0.002 }

The data is sort of normalized, but by layer, would this work for you?
var net = new brain.NeuralNetwork();

net.train([
  {input: { one: 0.03, two: 0.7, ... thirty: 0.5 }, output: { isValid: 1 }},
  {input: { one: 1, two: 0.02, ... thirty: 0.33 }, output: { isValid: 1 }},
  {input: { one: 0.3, two: 0.2, ... thirty: 0.2 }, output: { isValid: 0 }}
]);
var output = net.run({ one: 0.03, two: 0.8, ... thirty: 0.6 });  // { isValid: .89 }

Does this help?

The other option at this point could be to use a recurrent neural net, such as a LSTM, but this is more for data translation and less about math.

I've found another solution. Thank you for your attention.

Care to share?  We always want to improve for usefulness.

I went with a different library: scikit-learn

ty for the pointer!


你好，这个2d的结果是正常的吗？ 为什么越变越低

用的您自带的数据集

same problem.
I think it's worng!
loss cant be negtive!

@Be997398715 Hello, same problem, did you solved it?

[ 0.29 mins] After 1 epochs, the Average training loss is  tensor(-0.7222, device='cuda:0') and average DICE score is tensor(0.4526)
[ 0.07 mins] After 1 epochs, the Average validations loss is  tensor(-0.5995, device='cuda:0') and average DICE score is tensor(0.4311)
[ 0.26 mins] After 2 epochs, the Average training loss is  tensor(0.8095, device='cuda:0') and average DICE score is tensor(0.1617)
[ 0.07 mins] After 2 epochs, the Average validations loss is  tensor(-0.0179, device='cuda:0') and average DICE score is tensor(0.0002)
[ 0.26 mins] After 3 epochs, the Average training loss is  tensor(-0.0010, device='cuda:0') and average DICE score is tensor(0.0007)
[ 0.07 mins] After 3 epochs, the Average validations loss is  tensor(-0.0055, device='cuda:0') and average DICE score is tensor(0.0014)
[ 0.26 mins] After 4 epochs, the Average training loss is  tensor(-0.0016, device='cuda:0') and average DICE score is tensor(0.0015)
[ 0.07 mins] After 4 epochs, the Average validations loss is  tensor(-0.0057, device='cuda:0') and average DICE score is tensor(0.0018)
[ 0.27 mins] After 5 epochs, the Average training loss is  tensor(-0.0012, device='cuda:0') and average DICE score is tensor(0.0017)
[ 0.07 mins] After 5 epochs, the Average validations loss is  tensor(-0.0056, device='cuda:0') and average DICE score is tensor(0.0019)


Fatal UI Exception error when trying to authorize Twitch Account

I just installed Twitch Leecher on Windows 10 Pro 64 bit.  As soon as I click on the purple "Connect With Twitch" button, I get a whole screen full of UI fatal exception errors, then it crashes and exits right away.

10192019_050035_753_AM_error.log
Log file from above error.  I have no clue what the problem is.  I used to run Twitch Leecher on Windows 10 Pro with no issues.  My hard drive recently crashed so I reinstalled Windows on a new one and now it crashes every time I try to connect to my Twitch account

Solved, I figured it out.  I had to install the latest version of Visual C++  https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
Works fine now


C++: Set grpc ssl cipher suite to desired cipher list without using env var

What version of gRPC and what language are you using?
1.12
What operating system (Linux, Windows,...) and version?
Linux
What runtime / compiler are you using (e.g. python version or version of gcc)
gcc6
What did you do?
I want to set GRPC_SSL_CIPHER_SUITES to list of desired ciphers without using env var. Is there a way to pass it to some function. I couldn't find any examples or tests which do so.
This function grpc_get_ssl_cipher_suites(); gets ssl cipher suites but it explicitly uses the env var. Is there a way to override this and use my own cipher set?

There doesn't seem to be any other way at the moment. In gRPC Core, we have many configurations that depend on environment variables.


Add Faker::BackToTheFuture

I have included only references to the first film of the trilogy.

Merged in 04189e5


Any idea for Firebase FireStore?

Hi, @AshirwadSai  this library which came out first already supports all Firebase services - the Firestore support is lovely. It is tried and tested.  Check out: https://github.com/FrangSierra/RxFirebase


HTTP 404 terminates manifest update

Unfortunately, GOG continues to throw spanners in your gears.
I ran into two products that prevented me from updating my manifest via gogcli.exe manifest update --update=updates.json. The outputs stopped like this:
[manifest writer] Got all info on game with id<PHONE_NUMBER>. 300 games left to process
[manifest writer] Got all info on game with id<PHONE_NUMBER>. 299 games left to process
 getDownloadFileInfoWorkaroundWay(downloadPath=/downloads/spiritfarer_ost/en1patch3) -> body download handle retrieval error: did not expect status code of 404

 getDownloadFileInfoWorkaroundWay(downloadPath=/downloads/prison_architect_going_green/en1patch0) -> body download handle retrieval error: did not expect status code of 404

After this, the program terminated immediately (pretty sure it must have been via a non-zero exit code but I didn't check). It created a manifest-update-progress.json, but I couldn't find a way to make gogcli actually use that to resume the update, it restarted from scratch on every retry. I logged the output at the various available levels, but couldn't get anything more useful out of it.
As the problem was perfectly reproducible and happened on the same url every time I tried, I just removed the respective product id from my updates.json file and reran the command, rinse and repeat until I got no terminating error anymore. This might just be a temporary problem and I will retry after my downloads are done, but I wanted to report it anyway so you can decide if it's worth handling.

It seemed like the update went through fine after downloading everything (which worked perfectly, btw!). However, I realized that my update flags from GOG are too out of sync with reality by now. Neither Witcher 3 nor its Complete Edition has been updated, for example, even though I only keep the former updated via Galaxy at the moment.
So I tried to generate a fresh manifest from scratch. This terminates in exactly the same way as updating does, on the same url from Spiritfarer too. Also like updating, it creates a manifest-generation-progress.json that isn't used when I run the command again, but I have no idea why (or if this is even supposed to work on v0.21.0 already, as you committed some work on it afterwards).
Some way to automatically ignore or postpone these in a functional progress file would be great. As it stands I would have to rerun the manifest generation, appending the next terminating 404 url to --skip-url after every try, until it finally goes through completely. I have no idea how many of those I will encounter, and with thousands of games and still requiring the workaround method in a lot of cases, this can take forever.

@xKevin04 Sorry for not noticing this issue earlier.
The tool can differentiate between files that are dead links on purpose (because GOG decided to list an entry in the files that you can't download like Republique's "Coming Soon" manual) and dead links that are accidental (ie, GOG's servers didn't load the files properly).
It ignores the former, but after getting manifests with some missing files that were temporarily unavailable on GOG's servers, I decided to make the tool stricter and not ignore the later.
Both generated manifests and manifest progress files have a "SkipUrls" entry that contains regular expressions of urls to skip. When it is an installer file that is missing, I prefer to just abort and file and issue with GOG's support, but when it is a patch file, I tend to just add it to the exceptions.
Mine looks like this right now (because of 3 bad patch files):
      "SkipUrls": [
        "^/downloads/spiritfarer_ost/en1patch3$",
        "^/downloads/heart_of_the_woods/en1patch1$",
        "^/downloads/prison_architect_cleared_for_transfer/en1patch0$"
      ],

To resume manifest generation/update (after you've added the entries to skip), you can use the manifest or update resume commands.
My next change to the tool will probably be a "--skip-missing-patches" flag to make this process automated.

Hey, no problem. Thanks for the info, I only checked the command help for manifest generate and manifest update. You're right, there are also manifest generate-resume and manifest update-resume as seperate commands. My bad for not looking more thoroughly, somehow expected them as additional arguments instead of their own subcommands. :)
I will try to generate a new manifest, resuming and adding to the SkipUrls-list along the way. If it works out as I imagine it should, then that's good enough as another workaround for GOG's problems. I'll report the broken files to GOG too, just wanted to actually have a comprehensive list of them first.

As expected it went great, I'm using my fresh manifest as I write. The total runtime is also at an acceptable level for me now, so I will go back to generating complete manifests again, instead of updating it. Hopefully they fix even more broken metadata problems until then.
Anyway, thanks again, your tool is really invaluable! You can close this issue or repurpose it for your planned --skip-missing-patches enhancement if you want. Here's the list of broken URLs I ended up with:
"SkipUrls": [
  "^/downloads/heart_of_the_woods/en1patch1$",
  "^/downloads/prison_architect_cleared_for_transfer/en1patch0$",
  "^/downloads/prison_architect_gangs/en1patch0$",
  "^/downloads/prison_architect_going_green/en1patch0$",
  "^/downloads/prison_architect_island_bound/en1patch0$",
  "^/downloads/prison_architect_psych_ward_wardens_edition/en1patch0$",
  "^/downloads/prison_architect_second_chances/en1patch0$",
  "^/downloads/spiritfarer_ost/en1patch3$"
]

There's really something going wrong with how they create these Prison Architect DLC links...

Some games are indeed worst than others with bad installers. Clearly its an intersection between the devs and GOG's apis.
I'll keep this ticket around for the feature.


Use hash() instead of hash_value()

I can't figure out what changed, but I'm no longer able to build Dolphin using VisualStudio 17.4.3 on Windows 10 or Windows 11. I get an error that hash_value is not found in stdext. I've spent a bit of time learning about this function and looking at how Dolphin uses it, and come up with a one-line change that builds and seems to pass the tests. Comments are welcome especially since if this isn't the right fix then I need another fix!

What happened is that Microsoft deprecated it in VS17.3, so you must have done a VS upgrade James. That's how encountered it a couple of weeks ago anyway.
I fixed this in the master branch with a1d94acee0eae38512f8839569d87e41448a8e84. It would be better to cherry-pick in that specific commit because it is guaranteed to preserve the existing behaviour (I made a copy of the short deprecated function), and it will keep the history common. I just tried it, and it auto-merges correctly.


Throw error if hash attribute is not present

We should define if

 equals to

Theoretically they look equal...

I agree

So, we should NOT to throw an error, but just leave hash to be '', right?

An offline talk gave us a light about this issue. And, let's throw anyway an error, and append and empty hash=""

@Anomeon in the example above, I suggest write that test-case and throw an error anyway.

@rianby64 I have some progress. Need your review.


Add webpack hot load browser on save

Do you want to request a feature or report a bug?
Feature
What is the current behaviour?
Changes to React needs a server restart
If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behaviour?
Changes to React will auto reload web browser
Please mention your Node.js, yarn, operating system, and history versions.
Latest

Closed as switching to Next.js in the app folder adds hotloading on save


Upgraded the Open Source libraries in packages.Json to fix SCA Vulns

Description

A clear and concise summary of the change and which issue (if any) it fixes. Should also include relevant motivation and context.
Resolved or fixed issue:
Affirmation

[ ] My code follows the CONTRIBUTING.md guidelines

Can you please merge the changes


Nested scrolling of Flashlist is not working

Current behavior
If I have a nested Flashlist then the scroll is not working properly only the top-level scroll is working
Expected behavior
The nested scroll should work as the nested scrollView behaves
To Reproduce
Check out this snack to reproduce
https://snack.expo.dev/@darshansfs/flash-list?platform=web
Platform:

[ ] iOS
[ ] Android

Environment
Version: "1.3.1";
since expo SDK 47 recommends this version only
cc: @naqvitalha

+1

<FlashList
...
renderScrollComponent={props=>{return (<ScrollView nestedScrollEnabled {...props}/>)}}
/>

Hello why am I receiving this email?
On Thu, Dec 21, 2023, 12:53 p.m. Nasser @.***> wrote:

It also doesn't work for flatlist 🤔
—
Reply to this email directly, view it on GitHub
https://github.com/Shopify/flash-list/issues/771#issuecomment-1866712459,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJBJ2FC52MY5OC6GOVXYSLTYKRZTHAVCNFSM6AAAAAAVGVDTJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRWG4YTENBVHE
.
You are receiving this because you commented.Message ID:
@.***>


Unclear error message in Autocomplete "(intermediate value).filter is not a function"

Code Sandbox
TypeError: (intermediate value)(intermediate value)(intermediate value).filter is not a function
The error comes from passing an object instead of an array to value.
It took me some time to see it because the error message was not clear.

Thanks for the feedback.
This was fixed in https://github.com/mui-org/material-ui/pull/24202 and is released in our v5 alpha.


Feature: List protocol traffic

Feature to show all the connections of a given protocol.
If "TCP" searched; list all connections using Transmission Control Protocol.
Note:

Case sensitivity handling
Absent protocol connections
Increasing default Pandas output count

Feature added. Working as intended.
Reference commit: 5430adfe418095ed65fe62d8bae6528f670cda58


Error

Summary
Hi, does anyone know why this design's wildcard yields an error?
Description:
Clarifications or details with respect to the issue you are facing
Code Snippets
Attach code snippets (if any)
Screenshots
Scree

nshots (if any)

i think it has got to do with your generic type T ? it is private final Supplier<T> but your of method is returning a <? extends T> supplier?


Try on arm linux

Hello,
Have you ever tried on arm linux such as Raspberry Pi5 with VideoCore VII?
best regards
joshua

Hi joshua19881228,
Do those platforms have support for Vulkan Video?


System.Linq.Dynamic.Core.DynamicQueryableExtensions.AsEnumerable conflicts with System.Linq.Enumerable.AsEnumerable

I've run into an issue where the System.Linq.Dynamic.Core.DynamicQueryableExtensions.AsEnumerable extension method conflicts with the System.Linq.Enumerable.AsEnumerable extension method:
The call is ambiguous between the following methods or properties: 'System.Linq.Enumerable.AsEnumerable<TSource>(System.Collections.Generic.IEnumerable<TSource>)' and
 'System.Linq.Dynamic.Core.DynamicQueryableExtensions.AsEnumerable(System.Linq.IQueryable)'

I think this will become a more common issue with the upcoming release of EF Core 3.0 (where it will be necessary to explicitly force the enumeration of DB queries to avoid exceptions if they cannot be translated completely to SQL).
MoreLinq has similar issues and outlines a workaround in their documention (https://github.com/morelinq/MoreLINQ/blob/v3.1.0/README.md#usage).  Would it be possible to do something similar in System.Linq.Dynamic.Core?

If you want to apply the logic from this library on an IEnumerable, just to a AsQueryable() and continue to use this library.

The problem I've run into is I have a class that makes use of both this library and System.Linq.  In this class, I make use of System.Linq.AsEnumerable() to "switch" from an EF (IQueryable) query to a (IEnumerable) Linq-to-Objects query, but I cannot do that if the class also uses System.Linq.Dynamic.Core as it's .AsEnumerable() extension results in the error noted above.

Just call the AsEnumerable() from System.Linq.Dynamic.Core with full name, like:
var result = System.Linq.Dynamic.Core.DynamicQueryableExtensions.AsEnumerable(x);

Thanks.  That's what I ended up doing but hoped there would be a better workaround (similar to what MoreLinq does).  These are very large queries with multiple chained calls so having to break the query up to work around an ambiguous extension method issue is not ideal.

This is quite a big usability issue. With System.Linq being included as a default global namespace in C# 10 I can only seeing this getting more difficult.
It could be worth considering redesigning this API to co-exist with System.Linq.

+1 - even though this is an old issue, still affecting me today when upgrading old codebases to ef6.

@pgaske & @slang25 & @jbagley-iona
I'll rename the extension method to AsDynamicEnumerable which should solve conflicts.
A new version will be released within a few days.


Cesium3DTileset.fromIonAssetId() doesn't have an option for an ion token

I was loading some tilesets that come from two different Cesium ion accounts. I was trying to use Cesium3DTileset.fromIonAssetId() but there's no option for the
It looks like it's still possible to use an IonResource with Cesium3DTileset.fromUrl() but that sort of API defeats the purpose of having fromIonAssetId() separate.
Somewhat related, I do find it a bit annoying that you have to do this instead of having a unified constructor like we used to. Is there a reason why we split it out this way?
    if (typeof this.urlOrAssetId === 'number') {
      this.tileset = await Cesium.Cesium3DTileset.fromIonAssetId(this.urlOrAssetId);
    } else {
      this.tileset = await Cesium.Cesium3DTileset.fromUrl(this.urlOrAssetId);
    }

Thanks @ptrgags, fromIonAssetId was meant to be a helper function or shortcut for IonResource with Cesium3DTileset.fromUrl().
I think using different token for multiple tilesets is a non-typical use case, and would recommend using IonResource with Cesium3DTileset.fromUrl():
  const resource = await IonResource.fromAssetId(assetId, { accessToken: token });
  return Cesium3DTileset.fromUrl(resource, options);

If we have a strong demand for thew ability to pass a token to Cesium3DTileset.fromIonAssetId, we can reconsider the API. But as mention above I don't think this is particularly common.


Simple Extraction

Sorry I'm building a portable Android Pen testing Powershell script for Windows and I can't for the life of me get frida-server-15.2.2-android-x86.xz extracted... 7zip can extract it but I'm not looking to download yet another binary blob just for this xz file... Extracted it's a single ELF binary "frida-server-15.2.2-android-x86" Plz help...I can't find anything but this Python mod. My environment has Android Emulator running with Host running Java and Python. Everything else I can figure out but how to extract this xz file without installing 7zip....
import xz

with xz.open('frida-server-15.2.2-android-x86.xz') as f:
    print(f)

python 1.py
<XZFile object at 0x1044ab7aec>

Here is the project so far:
https://github.com/freeload101/Java-Android-Magisk-Burp-Objection-Root-Emulator-Easy

Hello @freeload101,
The f variable you get is a file-like object, so to get the data you should use the .read method:
with xz.open('frida-server-15.2.2-android-x86.xz') as f:
    print(f.read(4))  # get the first 4 bytes, will print b'\x7fELF'

If you want to read it all into a variable, you can use .read() without specifying the number of bytes to read:
with xz.open('frida-server-15.2.2-android-x86.xz') as f:
    data = f.read()

print(len(data))  # 46387888 (so 46MB)

If you want to decompress it into an other file, open the other file for writing (in binary mode) and use shutil.copyfileobj:
import shutil

with xz.open('frida-server-15.2.2-android-x86.xz') as f:
    with open('frida-server.elf', 'wb') as fout:
        shutil.copyfileobj(f, fout)

Tell me if that works for you, or if you need more precise help achieving something please describe your use-case more precisely!

Also, I must mention that this library aims at filling the gaps in the XZ support of the standard library; if you are only interested in reading all data in one pass of that file, you may use the standard library directly by using lzma instead of xz in all my examples above.

OMG THANK YOU SO MUCH!


add null check in markdownTable&modify EnterpriseWeChatManager logger

What is the purpose of the pull request
null check in markdownTable
Brief change log

add null check in markdownTable
modify EnterpriseWeChatManager logger

Verify this pull request
This pull request is code cleanup without any test coverage.

change is small , no need another committer review


init missing npm dep (i guess) for Tinkerboard arm71

I have read the contribution documentation for this project.
I agree to follow the code of conduct that this project follows, as appropriate.
I have searched the issue tracker for an issue that matches the one I want to file, without success.
Mainboard: ASUS Tinkerboard
Type: Arm71
Linux v4.4.132
gcc 5.4
npm 6.4.1
No issues with installing and launching Electron apps
This maybe an installation issue as there are warnings, so I'll start by including that output:
[I have tried a root or not but get the same errors]
root@tinkerboard:/srv# npm install electron-forge -g --unsafe-perms
npm WARN deprecated<EMAIL_ADDRESS>cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated<EMAIL_ADDRESS>wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. T                         hanks for all the usage over the years.
npm WARN deprecated<EMAIL_ADDRESS>please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/bin/electron-forge-vscode-win -> /usr/lib/node_modules/electron-forge/script/vscode.cmd
/usr/bin/electron-forge -> /usr/lib/node_modules/electron-forge/dist/electron-forge.js
/usr/bin/forge -> /usr/lib/node_modules/electron-forge/dist/electron-forge.js
/usr/bin/electron-forge-vscode-nix -> /usr/lib/node_modules/electron-forge/script/vscode.sh

><EMAIL_ADDRESS>install /usr/lib/node_modules/electron-forge
> node tabtab-install.js

Failed to install tab completion: Error: EACCES: permission denied, stat '/root/.bashrc'

><EMAIL_ADDRESS>postinstall /usr/lib/node_modules/electron-forge/node_modules/spawn-sync
> node postinstall

npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/electron-forge/node_modules/appdmg):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

+<EMAIL_ADDRESS>added 649 packages from 366 contributors in 47.792s
`

Creating a new project has errors
root@tinkerboard:/srv# DEBUG=electron-forge:* && electron-forge --verbose init test-project
✔ Checking your system
✔ Initializing Project Directory
✔ Initializing Git Repository
✔ Copying Starter Files
✔ Initializing NPM Module
⠹ Installing NPM Dependencies[         .........] | extract:require-main-filename: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/require-main-filename-69ca626f ⠼ Installing NPM Dependencies[          ........] \ extract:spdx-expression-parse: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/spdx-expression-parse-1559d4ca npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN<EMAIL_ADDRESS>No repository field.

+<EMAIL_ADDRESS>+<EMAIL_ADDRESS>added 76 packages from 53 contributors and audited 116 packages in 16.727s
found 0 vulnerabilities

npm WARN deprecated<EMAIL_ADDRESS>cross-spawn no longer requires a build toolchain, use it instead
npm WARN deprecated<EMAIL_ADDRESS>wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated<EMAIL_ADDRESS>please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated<EMAIL_ADDRESS>Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
⠴ Installing NPM Dependencies[        ..........] / extract:electron-forge-template-angular2: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/electron-⠋ Installing NPM Dependencies[        ..........] | extract:babel-plugin-transform-es2015-duplicate-keys: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_m⠹ Installing NPM Dependencies[        ..........] \ extract:electron-installer-redhat: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/electron-installer-redh⠹ Installing NPM Dependencies[         .........] | extract:babel-plugin-transform-strict-mode: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/babe⠸ Installing NPM Dependencies[         .........] \ extract:babel-helper-builder-react-jsx: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/babel-helper⠦ Installing NPM Dependencies[          ........] \ extract:nested-error-stacks: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/nested-error-stacks-b3877f36 (264ms⠸ Installing NPM Dependencies[           .......] - extract:json-schema-traverse: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/json-schema-traverse-7494d757 (86⠦ Installing NPM Dependencies[            ......] - extract:electron-winstaller: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/electron-winstaller-92b372d4 (12192⠧ Installing NPM Dependencies[            ......] \ install:babel-plugin-transform-es2015-shorthand-properties: info lifecycle<EMAIL_ADDRESS>babel-plugin-tr
><EMAIL_ADDRESS>install /srv/test-project/node_modules/electron-forge
> node tabtab-install.js

⠴ Installing NPM DependenciesFailed to install tab completion: Error: EACCES: permission denied, stat '/root/.bashrc'

><EMAIL_ADDRESS>postinstall /srv/test-project/node_modules/spawn-sync
> node postinstall

npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/appdmg):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

+<EMAIL_ADDRESS>+<EMAIL_ADDRESS>+<EMAIL_ADDRESS>+<EMAIL_ADDRESS>added 607 packages from 349 contributors and audited 5035 packages in 61.454s
found 5 vulnerabilities (2 low, 2 moderate, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details
npm WARN deprecated<EMAIL_ADDRESS>CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm WARN deprecated<EMAIL_ADDRESS>Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated<EMAIL_ADDRESS>Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated<EMAIL_ADDRESS>Please update to at least constantinople 3.1.1
⠇ Installing NPM Dependenciesnpm WARN deprecated<EMAIL_ADDRESS>Deprecated, use jstransformer
npm WARN deprecated<EMAIL_ADDRESS>This version is no longer maintained. Please upgrade to the latest version.
⠋ Installing NPM Dependenciesnpm WARN deprecated<EMAIL_ADDRESS>This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated<EMAIL_ADDRESS>This version is no longer maintained. Please upgrade to the latest version.
⠏ Installing NPM Dependencies[        ..........] \ extract:postcss-merge-rules: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/postcss-merge-rules-5edb1085 (544ms⠴ Installing NPM Dependencies[        ..........] \ extract:vue-template-compiler: sill extract<EMAIL_ADDRESS>extracted to /srv/test-project/node_modules/.staging/vue-template-compiler-5
><EMAIL_ADDRESS>postinstall /srv/test-project/node_modules/electron-prebuilt-compile/node_modules/electron
> node install.js

⠴ Installing NPM Dependencies/srv/test-project/node_modules/electron-prebuilt-compile/node_modules/electron/install.js:49
  throw err
  ^

Error: EACCES: permission denied, mkdir '/srv/test-project/node_modules/electron-prebuilt-compile/node_modules/electron/.electron'
npm WARN<EMAIL_ADDRESS>No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/appdmg):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
⠇ Installing NPM Dependencies
npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-12-10T05_05_28_503Z-debug.log
✖ Installing NPM Dependencies

An unhandled error has occurred inside Forge:
Failed to install modules: ["electron-prebuilt-compile"]

With output: Exited with status 1
Error: Failed to install modules: ["electron-prebuilt-compile"]

With output: Exited with status 1
    at /usr/lib/node_modules/electron-forge/dist/util/install-dependencies.js:55:13
    at Generator.throw (<anonymous>)
    at Generator.tryCatcher (/usr/lib/node_modules/electron-forge/node_modules/bluebird/js/release/util.js:16:23)
    at PromiseSpawn._promiseRejected (/usr/lib/node_modules/electron-forge/node_modules/bluebird/js/release/generators.js:107:10)
    at Promise._settlePromise (/usr/lib/node_modules/electron-forge/node_modules/bluebird/js/release/promise.js:576:26)
    at Promise._settlePromise0 (/usr/lib/node_modules/electron-forge/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/usr/lib/node_modules/electron-forge/node_modules/bluebird/js/release/promise.js:690:18)
    at _drainQueueStep (/usr/lib/node_modules/electron-forge/node_modules/bluebird/js/release/async.js:138:12)
    at _drainQueue (/usr/lib/node_modules/electron-forge/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/usr/lib/node_modules/electron-forge/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues (/usr/lib/node_modules/electron-forge/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5)

The sharp end of the log file:
7651 warn<EMAIL_ADDRESS>No repository field.
7652 warn optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/appdmg):
7653 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
7654 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
7654 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
7654 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
7654 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: arm
7655 verbose stack Error<EMAIL_ADDRESS>postinstall: `node install.js`
7655 verbose stack Exit status 1
7655 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
7655 verbose stack     at emitTwo (events.js:126:13)
7655 verbose stack     at EventEmitter.emit (events.js:214:7)
7655 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
7655 verbose stack     at emitTwo (events.js:126:13)
7655 verbose stack     at ChildProcess.emit (events.js:214:7)
7655 verbose stack     at maybeClose (internal/child_process.js:915:16)
7655 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
7656 verbose pkgid<EMAIL_ADDRESS>7657 verbose cwd /srv/test-project
7658 verbose Linux 4.4.132+
7659 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "electron-prebuilt-compile" "--save-exact" "--save-dev"
7660 verbose node v8.14.0
7661 verbose npm  v6.4.1
7662 error code ELIFECYCLE
7663 error errno 1
7664 error<EMAIL_ADDRESS>postinstall: `node install.js`
7664 error Exit status 1
7665 error Failed at the<EMAIL_ADDRESS>postinstall script.
7665 error This is probably not a problem with npm. There is likely additional logging output above.
7666 verbose exit [ 1, true ]

@Stylesoftware Your issue is in that install log
Error: EACCES: permission denied, mkdir '/srv/test-project/node_modules/electron-prebuilt-compile/node_modules/electron/.electron'

The user you are running init under does not have permission to make that folder ^^.  Ensure your current user owns / has perms for your test-project directory recursively and try again 👍

Hiya,
Oh I also tried chmod 777 -R folder from root and no joy.
Something fishy with election/install.js not having access, however I installed electron as global, so I guess a package version problem?

Basically, anytime you try to npm install electron as root, problems are likely to arise. I would suggest creating the project as a nonprivileged user, inside that user's home directory. It's generally a more well-tested path.

I'll have to check that a lot later, but thanks, i'm dev'n it on a windows cpu for speed for now unfortunately.
Cheers.


Error: Forbidden inside Kubernetes

Using this inside of Kubernetes returns Forbidden without any other detail, both locally and on the server cluster. Works inside docker/docker compose. Other services accessing external APIs work. All services have access to the internal (tested with curl). Get the same error using https://github.com/orliesaurus/nodemailer-mailgun-transport/issues/101. Any ideas?

Could you please share some details? e.g. version of the package you use, your setup, how you use it etc.

It looks like there is no activity for a long time. I close this issue.


ungoogled-chromium: 107.0.5304.122 -> 108.0.5359.72

Description of changes

Things done
patchPhase completed in 37 seconds
configuring
Done. Made 17661 targets from 2894 files in 3971ms
building
ninja: Entering directory `out/Release'

Built on platform(s)

[ ] 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/)
23.05 Release Notes (or backporting 22.11 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.

The warnings also need to be fixed: https://gist.github.com/GrahamcOfBorg/a0311c85432594ff254139b5efcd99f9
Please also check for this when a new major version comes out.
I'll replace this PR with https://github.com/NixOS/nixpkgs/pull/204117.

Thanks! Yeah, I hit enter and got myself a cup of coffee... guess I missed the first two lines of the output. Next time I'll save the output and grep for warning instead :)

Yeah, those warnings can be easy to miss. I usually use nix-instantiate -A ungoogled-chromium to catch them during major bumps (since I also missed those warnings in the past).


[3pt] Review post processing log for size and maybe add verbosity system

The total output logs sizes for post processing tools can get very large.  Let's review them to see if there are any unnecessarily logs. There are a couple of options available.

add an is_verbose flag system to the entire fim_pipeline process which can be passed into files to limit was output logs are created using that flag. Note: We have been wanting to add that system to fim_pipeline for a long time.

Clean up the logs AND possibly add a secondary system that creates error logs or at least scans for errors in those files. Either adding errors to an error log as they occur during processing, or set key words such as ERROR: (with the colon that can be scanned at the end of the whole processes. Similar to what we do for unit logs.

It would also be nice to house all post-processing logs in a new centralized folder named post_processing_logs or something.
We will need to work with Ryan to help figure out what is needed, when it is needed and what is not needed.
Note: In Dec 2023, we have done significant log cleaning up against processing logs.

There is something of a sort of verbosity class/system already developed: FIM_Helpers.vprint() in src/utils/shared_functions. There are some examples of it in use in some of the inundation and test_cases files.


You’be been doing good work. No need to issue a pull request. Just commit to master directly.


If the server requests the client certificate does the client require a key file?

If the remote SSL server requested the client's certificate as part of the handshake, do I really require a key file on the client side along with its certificate?
For example, I am currently calling:

SSL_CTX_use_certificate_file
SSL_CTX_use_PrivateKey_file
SSL_CTX_check_private_key

If I don't include step  2 (and 3), SSL_CTX_use_PrivateKey_file, the client wont send the certificate to the server. Is the private key file really required at the client side? If so, why is this the case?

Without the private key the client cannot prove to the server that is owns the certificate it is presenting to the server. A certificate is a public thing that anybody can have. Being able to use the private key whose corresponding public key is in the certificate is the thing that proves the certificate belongs to you. This is public key authentication security basics.

Thank you for the clarification. I think I was confused about it due to (1) client certificate not normally requested (2) the certificate being self-signed.


Add JAVA getting started guide

Upgraded Java getting started guide.
Structure components (all depend on type of driver):

[x]  Quick guide (simple config steps, very vague code steps)
[x]  Connection (default, auth)
[x]  Query the database ( read, write, more detailed code steps)
[x]  Process the results (Node, Path, Relationship)
[x]  Transaction Management (Automatic, manual, explicit, implicit)

This will be moved to the second iteration that needs to be improved:

[ ] Concurrent execution
[ ] Test configuration options (session, transaction, auth)
[ ] Async API (partially)
[ ] Reactive API

@vpavicic Take a look at two open discussions and let's merge if you think this is fine for now.


StaticFilesConfig and virtual directories

I'm trying to write a FileSystemProtocol to load files from the package data using importlib_resources. But because directories is defined as DirectoryPath, pydantic checks if the given directories exist in the local filesystem.
This is not generally true, especially in any kind of virtual filesystem (e.g. a zipped package). I think this condition should be relaxed to support virtual filesystems.
https://github.com/starlite-api/starlite/blob/9bb6dcd57c10a591377cf8e3a537e9292566d5b9/starlite/config/static_files.py#L32

I agree. Do you want to submit a PR?


Bug: Loop invariant code motion pass

Loop invariant code motion optimization pass completely breaks my shader. Output SPIR-V is valid, but when ran it actually crashes driver.

What we're doing is optimize SPIR-V with spvtools::Optimizer, then pass it to spirv-cross and generate OpenGL GLSL from it, then pass it to OpenGL in form of GLSL string
Input SPIR-V is result of compilation of Vulkan GLSL using shaderc
SPIR-V code's version is SPV_ENV_UNIVERSAL_1_5

I didn't analazyne it too much, but i took a glance though, and:
void nbl_glsl_runTexPrefetchStream(nbl_glsl_instr_stream_t stream, vec2 uv, mat2 dUV)
{
    uint i = 0u;
    bool _3368 = i < stream.count;
    uint _3372 = i;
    uint _3373 = stream.offset + _3372;
    uvec4 instr;
    uvec4 _3378 = instr;
    uvec4 _3382 = instr;
    uvec4 _3386 = instr;
    uint reg;
    uint _3394 = reg;
    vec3 val;
    float _3397 = val.x;
    uint regcnt;
    uint _3399 = regcnt;
    bool _3400 = _3399 >= 2u;
    uint _3410 = regcnt;
    bool _3411 = _3410 == 3u;
    uint _3403 = reg;
    uint _3404 = _3403 + 1u;
    float _3408 = val.y;
    uint _3414 = reg;
    uint _3415 = _3414 + 2u;
    float _3419 = val.z;
    uint _3422 = i + uint(1);
    for (;;)
    {
        if (_3368)
        {
            uint param = _3373;
            instr = nbl_glsl_MC_fetchPrefetchInstr(param);
            uvec4 param_1 = _3378;
            regcnt = nbl_glsl_prefetch_instr_getRegCount(param_1);
            uvec4 param_2 = _3382;
            reg = nbl_glsl_prefetch_instr_getDstReg(param_2);
            uvec3 param_3 = _3386.xyz;
            vec2 param_4 = uv;
            mat2 param_5 = dUV;
            val = nbl_glsl_fetchTex(param_3, param_4, param_5);
            uint param_6 = _3394;
            float param_7 = _3397;
            nbl_glsl_writeReg(param_6, param_7);
            if (_3400)
            {
                uint param_8 = _3404;
                float param_9 = _3408;
                nbl_glsl_writeReg(param_8, param_9);
            }
            if (_3411)
            {
                uint param_10 = _3415;
                float param_11 = _3419;
                nbl_glsl_writeReg(param_10, param_11);
            }
            i = _3422;
            continue;
        }
        else
        {
            break;
        }
    }
}

See what happens with _3394 and _3397. More-less the same applies to everything declared before the loop. This is GLSL resulting from optimization with LoopInvariantCodeMotionPass only.
Note that I'm not entirely sure it's not SPIRV-cross bug!
I attach: non-optimized SPIR-V (also being an input for optimizer), non-optimized GLSL, optimized SPIR-V, optimized GLSL.
licm-pass-bug.zip

@Crisspl There is something wrong with the files.  The spir-v does not seem to be the correct size
λ ../../../Documents/spirv/VS/tools/Debug/spirv-dis.exe no-opt.spv
error: file size should be a multiple of 4; file 'no-opt.spv' corrupt

I can't build the spir-v from the glsl either:
$ glslc no-opt.frag --target-spv=spv1.5
no-opt.frag:165: error: 'non-opaque uniforms outside a block' : not allowed when using GLSL for Vulkan
1 error generated.

Closing until I can get more information.


Google Cloud Profiler fails to to install using either Yarn or Npm

When I run "yarn install" i get a ton of node gyp errors, and also the failure to install the @google-cloud/profiler , I have tried this multiple times, I am using docker, and also running ./build.sh throws the same error.
4/4] Rebuilding all packages...
[1/11] ⠠ grpc
[6/11] ⠠ @google-cloud/profiler
[3/11] ⠠ grpc
[7/11] ⠠ speaker
error G:\myProject\node_modules@google-cloud\profiler: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: G:\SmyProject\node_modules@google-cloud\profiler

would you mind providing your npm-debug.log? you can link it from a gist. =)

The npm-debug logs would still be appreciated.
The profiler has a native component and we don't (yet) have pre-compiled binaries. Given that installation failed during node-gyp rebuild, the problem seems to be with compilation.

The issue was with Docker having a small image of Alpine Node which does not include Python v2.7 which works for node gyp, and other dependencies. To fix this, i referred to this issue in docker-node 282
The issue was not related to google profiler, rather it had to do with docker-node image.


23425 - Paroja - Update society lat-lon

Suggest changing society lat-lon to average song lat-lon because that seems to be where the tribe is concentrated (general location for Odisha currently used as society lat-lon).

Done


Hits widget should support table as a valid container

Here is my hits widget:
search.addWidget(
  instantsearch.widgets.hits({
    container: '#donations',
    templates: {
      item: '
{{created_at}}	${{gross_amount}} {{donor}}
'
    }
  })
);

My markup:

Apparently this code is not valid and I get this error message in the console:
Warning: validateDOMNesting(...):
 cannot appear as a child of
. See table > Hits > div.
Is it possible to use a table element as a container for hits?

Semi-related #707

Hmm, interesting. We use React internally for the rendering, and it uses divs internally. This might conflict with its internal validation when using it to render inside a table.
I think #707 would fix this issue as well, by letting you handle the whole rendering loop yourself in Hogan without needing React for each individual hit.
This is definitely a valid concern. @bobylito any idea on how to tell React to render a loop inside a table as a workaround until #707 is fixed?

Well no I don't have some magic recipe for this case :) The good thing is that it makes #707 completely valid and should be done ASAP :)

Follow #707 for a way to do this

Actually we should support both situations (targeting a table as a container, using a full hits). will create separate issues

This could be easily solved if react implements the "fragment" api: https://github.com/facebook/react/issues/2127

Moved to #770


Database choice explanation

Please check revision 6a3893a :)

Hi
What you meant by : BaseX gave SirixDB as a good alternative in case we want a NoSQL database with versioning mechanism. ?

Hi @syllamoh , good question!
BaseX doesn't have a versioning mechanism built in, this can be achieved by running multiple BaseX instances. For example, one for the current versions, and one for past versions.
If we do want to have a database with versioning mechanism, then BaseX gave us the SirixDB as an alternative.
But I think running multiple BaseX instances is fine. It's a lightweight database and it shouldn't matter to much to run multiple instances.

Anyone has some more feedback? :)


Since renaming, JSDocs ain't found

Everytime I start Sublime Text, I've got now:
"Package Control: The package specified, JSDocs, is not available."
I've uninstalled JSDocs, DocBlockr, gone to my Package Folder, everything was clean. I installed again DocBlockr, and I've got now this issue.

Bugger! Okay, this might have something to do with Package Control. Perhaps @wbond could help.

What does the Package Control.sublime-settings file in your User package contain for the installed_packages key?

"installed_packages":
[
"Alignment",
"DocBlockr",
"Gist",
"Git",
"HTML5",
"Jinja2",
"JSDocs",
"Package Control",
"PhpBeautifier",
"SublimeCodeIntel",
"Theme - Soda",
"WordHighlight",
"ZenCoding"
]
Gotta remove it myself so?
On 6 January 2012 15:57, Will Bond <
<EMAIL_ADDRESS>
wrote:

What does the Package Control.sublime-settings file in your User package
contain for the installed_packages key?

Reply to this email directly or view it on GitHub:
https://github.com/spadgos/sublime-jsdocs/issues/22#issuecomment-3385453

--
Erwann
// Website : kud.fr

You can certainly do that for now. I am releasing a bug fix for package control in a couple of hours and I will make sure I fix whatever caused this.

Okay, perfect.
Cheers Will.
On 6 January 2012 16:20, Will Bond <
<EMAIL_ADDRESS>
wrote:

You can certainly do that for now. I am releasing a bug fix for package
control in a couple of hours and I will make sure I fix whatever caused
this.

Reply to this email directly or view it on GitHub:
https://github.com/spadgos/sublime-jsdocs/issues/22#issuecomment-3385771

--
Erwann
// Website : kud.fr

Thanks for looking at this, Will.

I believe I found the issue. In my code if you have the old package name installed and not the new one, it moves it. However, if you had manually installed docblockr, it would have been unable to move the JSDocs dir, leaving JSDocs around. I'll change the new version to delete the metadata file for the old package if it can't be moved. That way package control will just ignore it.

Great!
On 6 January 2012 16:44, Will Bond <
<EMAIL_ADDRESS>
wrote:

I believe I found the issue. In my code if you have the old package name
installed and not the new one, it moves it. However, if you had manually
installed docblockr, it would have been unable to move the JSDocs dir,
leaving JSDocs around. I'll change the new version to delete the metadata
file for the old package if it can't be moved. That way package control
will just ignore it.

Reply to this email directly or view it on GitHub:
https://github.com/spadgos/sublime-jsdocs/issues/22#issuecomment-3386108

--
Erwann
// Website : kud.fr


Show theme bug

Doesn't show the right theme, and cost more than 1 point.

Doesn't matter were you right click, it will ask if you want to show the theme and it will cost points.
I right clicked on the theme bar and it cost me 3 points.

Solved with 8bf4ae3


don't seem to be able to run puphpeteer with cron job

Hi hope you can help on that one :
Describe the bug
i have some code using puphpeteer that can run from the prompt on a ubuntu16.04 remote server, but
trying to launch the exact same program on a cron job  result with  an error
i can reproduce the same error with the code example given in your doc
Reproducible example
on the "crontab -e " i enter :
/usr/bin/php /home/level1/level2/Phantom/pupetteer/petitTest.php
petitTest.php :
use Nesk\Puphpeteer\Puppeteer;
$puppeteer = new Puppeteer;
$browser = $puppeteer->launch();
$page = $browser->newPage();
$page->goto('https://example.com');
$page->screenshot(['path' => 'example.png']);
$browser->close();
**Expected behavior**
Again running that program directly from command line is fine but not on the cron job

**Generated logs**

PHP Fatal error:  Uncaught Symfony\Component\Process\Exception\ProcessFailedException: The command "'node' '/home/level1/level2/Phantom/pupetteer/vendor/nesk/rialto/src/node-process/serve.js' '/home/level1/level2/Phantom/pupetteer/vendor/nesk/puphpeteer/src/PuppeteerConnectionDelegate.js' '{"idle_timeout":60}'" failed.
Exit Code: 1(General error)
Working directory: /home/level1
Output:
Error Output:
/home/level1/level2/Phantom/pupetteer/vendor/nesk/rialto/src/node-process/Server.js:17
constructor(connectionDelegate, options = {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/home/level1/level2/Phantom/pupetteer/vendor/n in /home/level1/level2/Phantom/pupetteer/vendor/nesk/rialto/src/ProcessSupervisor.php on line 232

**Environment :**
 - OS:  Ubuntu 16.04
 - Node version: v10.6.0
 - PHP version: PHP 7.2.7-1+ubuntu16.04.1+deb.sury.org+1 (cli)
My Node package manager is:
 - NPM (6.2.0)

**Additional context**
Add any other context about the problem here.

Sorted:
Another nodejs was also installed on the system and was symlinked.
had to remove old nodejs and recreate symlink.


Explore and add logging library

Whilst Go's inbuilt logging library is adequate, it is also basic.
Using structured logging, especially to capture type and function context, would significantly improve the logging and debugging experience.
Aside from the venerable logrus, there are many other logging frameworks that could be used, e.g. zerolog.
This issue is to explore these further and integrate a suitable one.

Suggestion: have two main logging instances, configured to write to STDOUT (for results) and STDERR (for logs/errors)

Zerolog looks to be a somewhat simpler implementation to work with than Zap, and has comparable (perhaps better) performance when avoiding the console writer.
It looks to have simpler, better defined configuration than the Go docs show for zap, which uses a JSON-formatted string and unmarshalls it into a struct.

Along with adding a full-featured logger, it would be worth adding verbose and quiet mode flags to the program:

[ ] verbose would help with debugging
[ ] quiet avoids a user needing to pipe STDERR elsewhere.


Unsync Project

📒 Description
This PR is a dedication to solve the unsync project. Project sometime doesn't sync appropriately, and results in the empty project in Time Entry when selecting them from Editor.
🕶 Types of changes
Bug fix (non-breaking change which fixes an issue)
🤯 List of changes

[x] Use ProjectGUID when assigning project to TimeEntry if the Project ID is absent.
[x] Add ProjectGUID into AutocompleteItem struct in Library
[x] Force save unsync project (Indrek)
[x] Lowercase all project color hex before sending
[ ] Unable to force those unsync projects

👫 Relationships
Close #2986
🔎 Review hints

Check database that if those unsync projects are able to sync properly
Create project and sync to server properly
No empty Project state in Time Entry when selecting projects

It had an issue that when offline the continue did not take the offline project and save it to the new entry. Setting project by GUID in continue function was missing. It looks all good now.

Appreciate your investigation and the fix @IndrekV 🥇. I struggled it for a while 👏


Extension system

Basics for a flexible extension system for InvenTree.
Note this depends on #1113

@amishHammer InvenTree now has a background worker process supported, so an extension system is a much more attractive feature now...
I'm going to have to refresh my understanding of what you've done here. Might take me a while with all the other things I have on :)

Sorry no longer interested in using this system, the politics are too much.  I ended up using a commercial system.


feature:  tlinux 4.0 gsectl适配 (closed #2074)

PR
CheckList（PR Assigners）
确认已完成以下操作：

[ ] 已将分支与当前合入分支同步
[ ] 已在关联 Issue 中补充「功能自测」部分内容
[ ] 已更新关联 Issue 的状态 backlog -> todo -> for test -> tested（需通过测试同学测试） -> done
[ ] 将 PR 添加上 pr/reviewable

CheckList（PR Reviewers）
确认已完成以下操作：

[ ] 检查关联 Issue 「功能自测」部分内容
[ ] 必要时打回 pr/reviewable，要求重新修改
[ ] 及时 Approve

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (8e36cae) 74.71% compared to head (0203443) 74.71%.

Additional details and impacted files
@@             Coverage Diff             @@
##           v2.4.4-dev    #2075   +/-   ##
===========================================
  Coverage       74.71%   74.71%
===========================================
  Files             404      404
  Lines           28259    28259
===========================================
  Hits            21114    21114
  Misses           7145     7145

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Change internal constants to be f32 instead of f64

Description
I think we can simply replace FromF64 with f32: Into<T>. None of the constants I found seem to be too large or too precise. Most of them are not even close. If we really need the f64 precision somewhere, we can deal with it there.
Motivation
It would hopefully be simpler for the compiler and easier to make types compatible, since there's a higher chance that a type implements From<f32> than From<f64> (not to mention the custom FromF64). There's less stuff to optimize away when it doesn't try to panic all the time. I see no reason to require higher precision than we are using.

This turned out to be less straight forward than I thought, due to rounding differences. I will close this and approach it from a different angle while taking a closer look at number traits in general.


When we upgrade DA to > 0.4.3, update logic to detect skipped uploads

Right now we use isinstance, but in 0.4.3 the logic will change where the variable will just not be defined if an upload is skipped.
Jonathan Pyle   [12 hours ago]
In 0.4.3 I added `string_types` and I also changed the behavior when a file upload is not required and not provided.  Now, the variable should just not get defined.  It was getting set to `'None'`, which is wrong.

@rdeshpande Is this basically the same issue as #76 and #74 ?

Same as #76, yes. Closing.


Update MD file on new branch 2017-41-15_13-12-38

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestCon.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


spec-float-5 is explicitly forbidden in the spec

I got a PR in the TOML parser for Nim that I maintain to support exponential values with leading zeroes which also referenced this test suite. This is technically not supported by the TOML spec (neither the v0.5.0, nor the v1.0.0-rc) as it specifies that the exponent part follows the same rule as integers, and integers explicitly does not allow leading zeros.
Relevant part of the float spec: "An exponent part is an E (upper or lower case) followed by an integer part (which follows the same rules as integer values)."
Relevant part of the integer spec: "Leading zeros are not allowed."

Hmm, appears that the "v1.0.0-rc1" actually did add support for leading zeros in exponents. Never mind this issue then.


Update denbi.md

LGTM!

@timosachsenberg you could also set up the software page for OpenMS and make a cross reference there https://github.com/KohlbacherLab/homepage/tree/master/src/software
Thx alot


Images are displayed as blank

Attach (recommended) or Link to PDF file here:
Configuration:

Web browser and its version: chrome-latest
Operating system and its version:
PDF.js version:
Is a browser extension: No

Steps to reproduce the problem:

once the page is loaded with pdf.js, the images are not displayed
shows  Warning: Image exceeded maximum allowed size and was removed
Is there any code to solve this problem instead of reducing resolution of image?

What is the expected behavior? (add screenshot)
What went wrong? (add screenshot)

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

Web browser and its version: chrome-latest

In general: Note that "latest" can mean any number of things, and is thus not helpful; you must provide actual version numbers.
Furthermore, when opening an issue, please provide all of the information requested in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md; as-is this issue contains no actionable information and will be closed as INVALID.

shows  Warning: Image exceeded maximum allowed size and was removed

That clearly indicates some kind of custom implementation, since you've explicitly opted into skipping of large images by setting a maxImageSize when calling `getDocument; see https://github.com/mozilla/pdf.js/blob/9a779c2e9037524e6bb8557021eaea83d2eb5682/src/display/api.js#L150-L152
Finally, please see https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):

If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us in the Matrix room -- keep in mind that just code snippets won't help us troubleshoot the problem.


WL-1249 Migrate to Github Actions

we can remove travis.yaml, right?

we can remove travis.yaml, right?

done


First commit for PENGU - AMYpjxSDsxbhz4qMjT7KsrpXrbFYdJtCLCh9XQEPEy2o

Please note: This repository is being rebuilt to accept the new volume of token additions and modifications. PR merges will be delayed.

I agree to not ping anybody on Discord/Twitter/email about this pull request. Instead I will inquire by posting a new comment in the pull request if needed.

PRs are reviewed in bulk and and can take up to two weeks to be merged.
This repository is managed using an auto merge action. Please ensure your PR has no deleted lines, and it will be merged.
Please provide the following information for your token.
Please include change to the src/tokens/solana.tokenlist.json file in the PR.
DON'T modify any other token on the list.
At minimum each entry should have

Token Address:  AMYpjxSDsxbhz4qMjT7KsrpXrbFYdJtCLCh9XQEPEy2o
Token Name:  Pengu Coin
Token Symbol:  PENGU
Logo: Logo uploaded to appropriate place, also available (after merge) at https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/AMYpjxSDsxbhz4qMjT7KsrpXrbFYdJtCLCh9XQEPEy2o/logo.png
Link to the official homepage of token:  https://pengucoin.com
Coingecko ID if available (https://www.coingecko.com/api/documentations/v3#/coins/get_coins__id_):  N/A

Auto merge requirements
Your pull request will be automatically merged if the following conditions are met:

Your pull request only adds new tokens to the list. Any modification to existing
tokens will require manual review to prevent unwanted modifications.

Your pull request does not touch unrelated code. In particular, reformatting changes to unrelated
code will cause the auto merge to reject your PR.

Any asset files added correspond to the token address you are adding. Asset files
must be PNG, JPG or SVG files.

Your change is valid JSON and conforms to the schema. If your change failed validation,
read the error message carefully and update your PR accordingly.

No other tokens shares the same name, symbol or address.

For example, this change would be rejected due to unrelated changes:

The bot runs every 60 minutes and bulk-merges all open pull requests to prevent conflicts.
This means that you need to wait up to 60 minutes for your pull request to be merged or reprocessed.

Retrying again - automerge seems stuck on an old attempt to contact the site.


Youtube: Signature extraction failed

I use this all the time but this is one case I encountered this failure.
Cannot download and cannot even list formats.
youtube-dl --verbose -F http://www.youtube.com/watch?v=zRCYEkA0_q8
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-F', u'--verbose', u'http://www.youtube.com/watch?v=zRCYEkA0_q8']
[debug] Encodings: locale US-ASCII, fs utf-8, out US-ASCII, pref US-ASCII
[debug] youtube-dl version 2015.11.02
[debug] Python version 2.7.10 - Darwin-15.0.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.8.1, ffprobe 2.8.1
[debug] Proxy map: {}
[youtube] zRCYEkA0_q8: Downloading webpage
[youtube] zRCYEkA0_q8: Downloading video info webpage
[youtube] zRCYEkA0_q8: Extracting video information
WARNING: unable to extract html5 player; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[youtube] {43} signature length 40.44, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/opt/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
video_id, player_url, s
File "/opt/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/opt/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
video_id, player_url, s
File "/opt/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/opt/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 661, in extract_info
ie_result = ie.extract(url)
File "/opt/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 290, in extract
return self._real_extract(url)
File "/opt/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1345, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/opt/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 827, in _decrypt_signature
'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/opt/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 817, in _decrypt_signature
video_id, player_url, s
File "/opt/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 709, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
(caused by ExtractorError(u"Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vfljDEtYP/base.js'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.",)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[End trace output.]

You are using an outdated version of youtube-dl. Read our FAQ if you have troubles updating.

I beg your pardon. I use Macports to update, and as of last night, yt-dl 2015.11.02 was the latest. Today I updated the macports source tree, then yt-dl, and whaddya know, it works. Thanks