Server side uploads empty file

I'm doing http.post to upload the image to S3. Using S3.knox to upload file, it successfully uploads and returns bucketname.s3.amazonaws.com but it's empty file. Should I pass image path in a different way?
// image.path = /var/folders/sp/pg_4rkwn4q79h2nm40ryykv80000gn/T/arrow.png;

S3.knox.putFile(image.path, "/test/"+image.originalFilename, function(err, res){
    console.log(res.req.url);
    res.resume();
});

Hmm, you should definitely double check whether that path actually exists. Are you deploying via demeteorizer?

Also, if you plan on doing server side uploads a lot, you should consider looking at some of the previous code I had on the package. You are going to want to leverage multi-part uploads especially if the files can be big.

Thanks for your suggestion!
The local path is valid, when I try to copy/paste the path to a browser it opens correct image. I'm not using demeteorizer, it's localhost for now.

Looks like res.req returns content-length always as zero.
...,
headers: {
'x-amz-id-2': '12284..00238',
'x-amz-request-id': 'qwerty',
'content-length': '0',
'connection': 'close'
},
...

Hmm, have you tried opening an issue with the guys that built Knox? I wish I could help you more but my time is really constrained at the moment >_<

If someone's still interested, I lost a few hours to make this work (uploading to S3 from the server, that is).
The meteor method  uploadToS3Servershould be in the server.
/**
 * Created by joaopedreira on 07/10/16.
 */

Meteor.methods({
    /**
     * Downloads a file from some url and uploads the resulting buffer to S3
     * @param url - souce url for download
     * @param bucketSubFolder - the S3 subfolder where to put the file (e.g. "test")
     * @param fileName - the file name (e.g. "somename"). No extension needed, since it'll be infered from the buffer.
     */
    uploadToS3Server: function (url,bucketSubFolder,fileName) {
        "use strict";
        check(url,String);
        check(bucketSubFolder,String);
        check(fileName,String)

        var fileType = Npm.require('file-type'),
            filePath, fileExtension, fileMimeType;

        this.unblock();

        filePath = '/' + bucketSubFolder + '/' + fileName;

        var httpResponse = HTTP.get(url,{
            npmRequestOptions: {
                encoding: null
            }
        });
        log.debug(httpResponse.headers);

        if (httpResponse.statusCode === 200) {
            var buffer = httpResponse.content;
            fileExtension = fileType(buffer).ext;
            fileMimeType = fileType(buffer).mime;

            var headers = {
                'Content-Length': buffer.length,
                'Content-Type': fileMimeType || httpResponse.headers['content-type'],
                'x-amz-acl': 'public-read'
            };

            // Check buffer size
            if(buffer.length > 15 * 1024 * 1024) {
                throw new Meteor.Error(
                    '403',
                    'error uploading attachment ' + fileName + '. Attachment size exceeded (15 Mb max).',
                    'S3 Upload Size Exceeded' + filePath + '.' + fileExtension
                )
            }

            S3.knox.putBuffer(buffer, filePath + '.' + fileExtension, headers, function (err, res) {
                if (err) {
                    log.error(err);
                    throw new Meteor.Error(
                        '500',
                        'error uploading attachment to S3: ' + err,
                        'Attachment upload to S3 failed'
                    )
                }
                res.resume();
                log.info('File name: ' + filePath + '.' + fileExtension);
                log.info('Mime-type: ' + fileMimeType);
                log.info('Content-Length: ' + buffer.length);
                log.info('Download url: ' + 'https://' + S3.knox.urlBase  + filePath + '.' + fileExtension);

                return {
                    filePath: filePath + '.' + fileExtension,
                    fileMimeType: fileMimeType,
                    fileLength: buffer.length,
                    DowloadUrl: 'https://' + S3.knox.urlBase  + filePath + '.' + fileExtension
                }
            });
        } else {
            log.error('error downloading attachment from user url: %d, %s',httpResponse.status, httpResponse.headers);
            throw new Meteor.Error(
                '500',
                'error downloading attachment from user url Status: ' + httpResponse.status + '; headers: ' + JSON.stringify(httpResponse.headers),
                'Attachment download from client failed'
            )
        }
    }
});


[Event Change Request] report 5706 "Create Stockkeeping Unit" OnBeforeCreateSKU

Our code subscribes to the OnBeforeCreateSKU event in report 5706.
The logic in our event subscriber depends on the chosen SKU Creation Method (global variable SKUCreationMethod), but we cannot find a way to access its value. Would you please consider adding it as an addittional parameter in the OnBeforeCreateSKU event publisher?
As far as we can see, adding this parameter would not break any existing subscribers?
[Note to self: BCD-1278]

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


Multiple Errors with Godot 3.1beta3

Hey,
I totally love the idea of EventSheets. I used Construct2 years ago, tried GDevelop, developed with AppInventor and love Godot.
I can code in C# and gdscript, but always tend to prefer visual tools (I'm more artist than coder).
FBP (flow based programming, nodes) like VisualScript is great but misses the transition step to code.

should generate:
func _on_ToolButton_pressed():
  get_tree().change_scene("res://Control.tscn")
  print("res://Control.tscn")

Blocky is too childish, after some hours it's turning to a nightmare too.
Here's a working app I made:

Good thing is you imagine it's a city so you can navigate on the map of code (on a 4K screen at least), but don't ask for "find", you'll get result but can't spot it.
EventSheets seems to be an elegant solution to learning code, especially if you can generate gdscript (or else) from it (and best if you can reverse generate eventSheet from code.
Ok, back to the ticket, after install on Godot 3.1beta3, I get:
unit: C:\
ERROR: _load_data: Condition ' !f ' is true. returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502
ERROR: Failed loading resource: res://.import/icon_add.svg-b59696364193e215ef520653a23e987e.stex
   At: core/io/resource_loader.cpp:279
ERROR: Failed loading resource: res://addons/event_sheets/icons/icon_add.svg
   At: core/io/resource_loader.cpp:279
ERROR: _load_data: Condition ' !f ' is true. returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502

... plenty of similar errors

ERROR: Failed loading resource: res://.import/icon_zoom_more.svg-1874876f13331383f4edb5e1ade51d88.stex
   At: core/io/resource_loader.cpp:279
ERROR: Failed loading resource: res://addons/event_sheets/icons/icon_zoom_more.svg
   At: core/io/resource_loader.cpp:279
ERROR: _load_data: Condition ' !f ' is true. returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502
ERROR: Failed loading resource: res://.import/icon_zoom_reset.svg-4b906cccc30eaad7aeb89aa15facf681.stex
   At: core/io/resource_loader.cpp:279
ERROR: Failed loading resource: res://addons/event_sheets/icons/icon_zoom_reset.svg
   At: core/io/resource_loader.cpp:279
SCRIPT ERROR: _ready: Attempt to call function 'get_parent' in base 'null instance' on a null instance.
          At: res://addons/event_sheets/scripts/logicCell.gd:43
ERROR: Node not found: helperMenu
   At: scene/main/node.cpp:1382
ERROR: Parent node is busy setting up children, add_node() failed. Consider using call_deferred("add_child", child) instead.
   At: scene/main/node.cpp:1170
Parsing:
LINE:
ERROR: Node not found: helperMenu
   At: scene/main/node.cpp:1382
ERROR: Parent node is busy setting up children, add_node() failed. Consider using call_deferred("add_child", child) instead.
   At: scene/main/node.cpp:1170

Please, please don't give up on this one.

The truth is that I really want this to be done properly in c++ and be
available as a module or even a part of Godot itself. I don't know the
engine well enough to pull it off the way it needs to yet. At one point
there were some developers interested in implementing it properly, but not
sure what happened.
On Tue, Feb 5, 2019, 2:04 PM PM<EMAIL_ADDRESS>wrote:

Hey,
I totally love the idea of EventSheets. I used Construct2 years ago, tried
GDevelop, developed with AppInventor and love Godot.
I can code in C# and gdscript, but always tend to prefer visual tools (I'm
more artist than coder).
FBP (flow based programming, nodes) like VisualScript is great but misses
the transition step to code.
[image: image]
https://user-images.githubusercontent.com/65325/52277906-73ebab00-295e-11e9-95b0-77242a94ca91.png
should generate:
func _on_ToolButton_pressed():
get_tree().change_scene("res://Control.tscn")
print("res://Control.tscn")
Blocky is too childish, after some hours it's turning to a nightmare too.
Here's a working app I made:
[image: image]
https://user-images.githubusercontent.com/65325/52277977-9c73a500-295e-11e9-949c-35ebf1607a7d.png
Good thing is you imagine it's a city so you can navigate on the map of
code (on a 4K screen at least), but don't ask for "find", you'll get result
but can't spot it.
EventSheets seems to be an elegant solution to learning code, especially
if you can generate gdscript (or else) from it (and best if you can reverse
generate eventSheet from code.
Ok, back to the ticket, after install on Godot 3.1beta3, I get:
ERROR: Failed loading resource: res://.import/icon_zoom_more.svg-1874876f13331383f4edb5e1ade51d88.stex
At: core/io/resource_loader.cpp:279
ERROR: Failed loading resource: res://addons/event_sheets/icons/icon_zoom_more.svg
At: core/io/resource_loader.cpp:279
ERROR: _load_data: Condition ' !f ' is true. returned: ERR_CANT_OPEN
At: scene/resources/texture.cpp:502
ERROR: Failed loading resource: res://.import/icon_zoom_reset.svg-4b906cccc30eaad7aeb89aa15facf681.stex
At: core/io/resource_loader.cpp:279
ERROR: Failed loading resource: res://addons/event_sheets/icons/icon_zoom_reset.svg
At: core/io/resource_loader.cpp:279
SCRIPT ERROR: _ready: Attempt to call function 'get_parent' in base 'null instance' on a null instance.
At: res://addons/event_sheets/scripts/logicCell.gd:43
ERROR: Node not found: helperMenu
At: scene/main/node.cpp:1382
ERROR: Parent node is busy setting up children, add_node() failed. Consider using call_deferred("add_child", child) instead.
At: scene/main/node.cpp:1170
Parsing:
LINE:
ERROR: Node not found: helperMenu
At: scene/main/node.cpp:1382
ERROR: Parent node is busy setting up children, add_node() failed. Consider using call_deferred("add_child", child) instead.
At: scene/main/node.cpp:1170
Please, please don't give up on this one.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/blurymind/Godot-eventSheetPrototype/issues/3, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AGMbVfz5MG8jfL59GJrsWU_2tyNwUpXHks5vKY9qgaJpZM4ajRug
.

Ah! well, I see.
Bells and whistles are everywhere but they need to focus.
Once they realize that it really helps game developer who already deliver games with other tools ...
I crawled your commits but didn't find any helperMenu Node.
Does it miss some parts from .import/?


Sync Hangs at Slot 780703

Description
We see the peers drop off once we hit that slot.
Mar 21 08:03:36 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:03:36.314 INFO  - Sync Event  *** Current slot: 790816, Head slot: 779649, Connected peers: 74
Mar 21 08:03:48 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:03:48.106 INFO  - Sync Event  *** Current slot: 790817, Head slot: 779711, Connected peers: 74
Mar 21 08:04:00 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:04:00.280 INFO  - Sync Event  *** Current slot: 790818, Head slot: 779775, Connected peers: 74
Mar 21 08:04:12 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:04:12.473 INFO  - Sync Event  *** Current slot: 790819, Head slot: 779838, Connected peers: 74
Mar 21 08:04:24 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:04:24.246 INFO  - Sync Event  *** Current slot: 790820, Head slot: 779894, Connected peers: 74
Mar 21 08:04:36 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:04:36.091 INFO  - Sync Event  *** Current slot: 790821, Head slot: 779948, Connected peers: 74
Mar 21 08:04:48 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:04:48.094 INFO  - Sync Event  *** Current slot: 790822, Head slot: 780003, Connected peers: 74
Mar 21 08:05:00 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:05:00.211 INFO  - Sync Event  *** Current slot: 790823, Head slot: 780064, Connected peers: 74
Mar 21 08:05:12 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:05:12.271 INFO  - Sync Event  *** Current slot: 790824, Head slot: 780127, Connected peers: 74
Mar 21 08:05:24 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:05:24.113 INFO  - Sync Event  *** Current slot: 790825, Head slot: 780189, Connected peers: 74
Mar 21 08:05:36 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:05:36.402 INFO  - Sync Event  *** Current slot: 790826, Head slot: 780248, Connected peers: 73
Mar 21 08:05:48 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:05:48.051 INFO  - Sync Event  *** Current slot: 790827, Head slot: 780301, Connected peers: 73
Mar 21 08:06:00 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:06:00.335 INFO  - Sync Event  *** Current slot: 790828, Head slot: 780364, Connected peers: 74
Mar 21 08:06:12 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:06:12.151 INFO  - Sync Event  *** Current slot: 790829, Head slot: 780423, Connected peers: 74
Mar 21 08:06:24 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:06:24.187 INFO  - Sync Event  *** Current slot: 790830, Head slot: 780487, Connected peers: 74
Mar 21 08:06:36 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:06:36.341 INFO  - Sync Event  *** Current slot: 790831, Head slot: 780554, Connected peers: 74
Mar 21 08:06:48 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:06:48.159 INFO  - Sync Event  *** Current slot: 790832, Head slot: 780616, Connected peers: 74
Mar 21 08:07:00 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:07:00.035 INFO  - Sync Event  *** Current slot: 790833, Head slot: 780678, Connected peers: 74
Mar 21 08:07:11 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:07:11.763 INFO  - Sync Event  *** Current slot: 790834, Head slot: 780703, Connected peers: 68
Mar 21 08:07:23 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:07:23.542 INFO  - Sync Event  *** Current slot: 790835, Head slot: 780703, Connected peers: 66
Mar 21 08:07:35 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:07:35.589 INFO  - Sync Event  *** Current slot: 790836, Head slot: 780703, Connected peers: 60
Mar 21 08:07:47 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:07:47.479 INFO  - Sync Event  *** Current slot: 790837, Head slot: 780703, Connected peers: 57
Mar 21 08:07:59 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:07:59.503 INFO  - Sync Event  *** Current slot: 790838, Head slot: 780703, Connected peers: 48
Mar 21 08:08:11 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:08:11.556 INFO  - Sync Event  *** Current slot: 790839, Head slot: 780703, Connected peers: 42
Mar 21 08:08:23 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:08:23.530 INFO  - Sync Event  *** Current slot: 790840, Head slot: 780703, Connected peers: 40
Mar 21 08:08:35 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:08:35.480 INFO  - Sync Event  *** Current slot: 790841, Head slot: 780703, Connected peers: 32
Mar 21 08:08:47 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:08:47.510 INFO  - Sync Event  *** Current slot: 790842, Head slot: 780703, Connected peers: 21
Mar 21 08:08:59 -s-1vcpu-1gb-sgp1-01 teku[9631]: 08:08:59.547 INFO  - Sync Event  *** Current slot: 790843, Head slot: 780703, Connected peers: 22

And then peer churn continues indefinitely
Mar 21 13:43:59 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:43:59.166 INFO  - Sync Event  *** Current slot: 792518, Head slot: 780703, Connected peers: 1
Mar 21 13:44:11 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:44:11.137 INFO  - Sync Event  *** Current slot: 792519, Head slot: 780703, Connected peers: 4
Mar 21 13:44:23 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:44:23.110 INFO  - Sync Event  *** Current slot: 792520, Head slot: 780703, Connected peers: 16
Mar 21 13:44:35 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:44:35.103 INFO  - Sync Event  *** Current slot: 792521, Head slot: 780703, Connected peers: 24
Mar 21 13:44:47 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:44:47.106 INFO  - Sync Event  *** Current slot: 792522, Head slot: 780703, Connected peers: 26
Mar 21 13:44:59 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:44:59.128 INFO  - Sync Event  *** Current slot: 792523, Head slot: 780703, Connected peers: 27
Mar 21 13:45:11 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:45:11.149 INFO  - Sync Event  *** Current slot: 792524, Head slot: 780703, Connected peers: 23
Mar 21 13:45:23 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:45:23.099 INFO  - Sync Event  *** Current slot: 792525, Head slot: 780703, Connected peers: 14
Mar 21 13:45:35 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:45:35.098 INFO  - Sync Event  *** Current slot: 792526, Head slot: 780703, Connected peers: 23
Mar 21 13:45:47 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:45:47.116 INFO  - Sync Event  *** Current slot: 792527, Head slot: 780703, Connected peers: 7
Mar 21 13:45:59 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:45:59.134 INFO  - Sync Event  *** Current slot: 792528, Head slot: 780703, Connected peers: 2
Mar 21 13:46:11 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:46:11.103 INFO  - Sync Event  *** Current slot: 792529, Head slot: 780703, Connected peers: 24
Mar 21 13:46:23 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:46:23.105 INFO  - Sync Event  *** Current slot: 792530, Head slot: 780703, Connected peers: 19
Mar 21 13:46:35 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:46:35.178 INFO  - Sync Event  *** Current slot: 792531, Head slot: 780703, Connected peers: 18
Mar 21 13:46:47 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:46:47.106 INFO  - Sync Event  *** Current slot: 792532, Head slot: 780703, Connected peers: 16
Mar 21 13:46:59 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:46:59.095 INFO  - Sync Event  *** Current slot: 792533, Head slot: 780703, Connected peers: 5
Mar 21 13:47:11 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:47:11.106 INFO  - Sync Event  *** Current slot: 792534, Head slot: 780703, Connected peers: 10
Mar 21 13:47:23 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:47:23.179 INFO  - Sync Event  *** Current slot: 792535, Head slot: 780703, Connected peers: 7
Mar 21 13:47:35 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:47:35.100 INFO  - Sync Event  *** Current slot: 792536, Head slot: 780703, Connected peers: 15
Mar 21 13:47:47 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:47:47.137 INFO  - Sync Event  *** Current slot: 792537, Head slot: 780703, Connected peers: 8
Mar 21 13:47:59 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:47:59.098 INFO  - Sync Event  *** Current slot: 792538, Head slot: 780703, Connected peers: 4
Mar 21 13:48:11 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:48:11.137 INFO  - Sync Event  *** Current slot: 792539, Head slot: 780703, Connected peers: 11
Mar 21 13:48:23 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:48:23.097 INFO  - Sync Event  *** Current slot: 792540, Head slot: 780703, Connected peers: 13
Mar 21 13:48:35 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:48:35.124 INFO  - Sync Event  *** Current slot: 792541, Head slot: 780703, Connected peers: 21
Mar 21 13:48:47 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:48:47.102 INFO  - Sync Event  *** Current slot: 792542, Head slot: 780703, Connected peers: 6
Mar 21 13:48:59 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:48:59.100 INFO  - Sync Event  *** Current slot: 792543, Head slot: 780703, Connected peers: 4
Mar 21 13:49:11 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:49:11.141 INFO  - Sync Event  *** Current slot: 792544, Head slot: 780703, Connected peers: 17
Mar 21 13:49:23 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:49:23.097 INFO  - Sync Event  *** Current slot: 792545, Head slot: 780703, Connected peers: 13
Mar 21 13:49:35 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:49:35.124 INFO  - Sync Event  *** Current slot: 792546, Head slot: 780703, Connected peers: 18
Mar 21 13:49:47 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:49:47.148 INFO  - Sync Event  *** Current slot: 792547, Head slot: 780703, Connected peers: 14
Mar 21 13:49:59 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:49:59.118 INFO  - Sync Event  *** Current slot: 792548, Head slot: 780703, Connected peers: 2
Mar 21 13:50:11 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:50:11.134 INFO  - Sync Event  *** Current slot: 792549, Head slot: 780703, Connected peers: 16
Mar 21 13:50:23 -s-1vcpu-1gb-sgp1-01 teku[19594]: 13:50:23.142 INFO  - Sync Event  *** Current slot: 792550, Head slot: 780703, Connected peers: 4

Versions (Add all that apply)
teku/v21.3.0/linux-x86_64/-ubuntu-openjdk64bitservervm-java-11
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.18.04)
OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Linux -s-1vcpu-1gb-sgp1-01 4.15.0-121-generic #123-Ubuntu SMP Mon Oct 5 16:16:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Additional Information

Thanks for reporting this @RatanRSur   Firstly I think that's MainNet right?  Secondly it looks like the logs are showing the console output. Unless you've set --log-destination CONSOLE there's probably more information in the log file which by default is ~/.local/share/teku/logs/teku.log Hopefully that log will provide some more detail about what's going wrong.
Also, did the issue continue after restarting teku?

Still persists after restarting it, yes.
In case it matters, I was using --ws-checkpoint with args I got from beaconcha.in and when I looked at the logs you just pointed me to I saw that there were weak subjectivity related disconnections. I removed that arg from teku and I still see same issue.
The logs might not be complete because I didn't know about this log file when I was changing the log level through the api. I expected to see the output change on the console 😅
I also filtered the logs to just be the context around this slot's event, let me know if you need more context
teku.log

Ok, so it definitely didn't like the weak subjectivity checkpoint and that's why the sync stopped. We should find way to make that failure more obvious since it's quite important.  I believe the checkpoint is stored which is why it's still not working.  Do you know what you'd specified as the checkpoint?

Specifying --ws-checkpoint 0x032b800a791f871ed6ad95a32a514abb689a08a9dd2620cb576082adbbe07df6:24855 should get it going again (that checkpoint taken from https://beaconscan.com/ws_checkpoint so hopefully is actually right).

Ok, that unstuck it. Maybe it was just user error in pasting the ws point in! Thanks!


Move forgot pw autoreset suggestion from LoginProvisionedDevice to Login

Is there a test for this?

This particular flow is in fact not tested (as a non-authenticated pipeline status is the same as not being in the pipeline at all) but we're working towards full coverage, #17165 has some prerequisites for this.

Ok, I'd strongly advocate for anything regarding login and provisioning to have tests before being merged into master.
login_test.go is the largest test file in the engine directory because login failures are bad for the health of keybase.

(if this fixes something that is about to be released, go ahead and merge it, but please make a test as soon as possible...)


How to initialize a network (weights) with two loss functions?

I used symbol I defined (contains two loss functions). When executing python train_cifar10.py --network snet  --pad-size 0, it output error message below :
ValueError: Unknown initialization pattern for logisticRegression_label. Default initialization is now limited to "weight", "bias", "gamma" (1.0), and "beta" (0.0).Please use mx.sym.Variable(init=mx.init.*) to set initialization pattern

Is this error message caused by another loss function?
Does MXNet initialize only one loss function defaultly?

More concretely
 yuens@Spark ~/Software/mxnet/example/image-classification$ python train_cifar10.py --network snet  --pad-size 0
INFO:root:start with arguments Namespace(batch_size=128, benchmark=0, data_nthreads=4, data_train='data/cifar10_train.rec', data_val='data/cifar10_val.rec', disp_batches=20, dtype='float32', gpus=None, image_shape='3,32,32', kv_store='device', load_epoch=None, lr=0.05, lr_factor=0.1, lr_step_epochs='200,250', max_random_aspect_ratio=0, max_random_h=36, max_random_l=50, max_random_rotate_angle=0, max_random_s=50, max_random_scale=1, max_random_shear_ratio=0, min_random_scale=1, model_prefix=None, mom=0.9, monitor=0, network='snet', num_classes=10, num_epochs=300, num_examples=50000, num_layers=110, optimizer='sgd', pad_size=0, random_crop=1, random_mirror=1, rgb_mean='123.68,116.779,103.939', test_io=0, top_k=0, wd=0.0001)
[11:30:49] src/io/iter_image_recordio_2.cc:135: ImageRecordIOParser2: data/cifar10_train.rec, use 3 threads for decoding..
[11:30:49] src/io/iter_image_recordio_2.cc:135: ImageRecordIOParser2: data/cifar10_val.rec, use 3 threads for decoding..
Traceback (most recent call last):
  File "train_cifar10.py", line 57, in <module>
    fit.fit(args, sym, data.get_rec_iter)
  File "/home/yuens/Software/mxnet/example/image-classification/common/fit.py", line 187, in fit
    monitor            = monitor)
  File "/usr/local/lib/python2.7/dist-packages/mxnet-0.9.5-py2.7.egg/mxnet/module/base_module.py", line 449, in fit
    allow_missing=allow_missing, force_init=force_init)
  File "/usr/local/lib/python2.7/dist-packages/mxnet-0.9.5-py2.7.egg/mxnet/module/module.py", line 273, in init_params
    _impl(desc, arr, arg_params)
  File "/usr/local/lib/python2.7/dist-packages/mxnet-0.9.5-py2.7.egg/mxnet/module/module.py", line 268, in _impl
    initializer(name, arr)
  File "/usr/local/lib/python2.7/dist-packages/mxnet-0.9.5-py2.7.egg/mxnet/initializer.py", line 92, in __call__
    self._init_default(desc, arr)
  File "/usr/local/lib/python2.7/dist-packages/mxnet-0.9.5-py2.7.egg/mxnet/initializer.py", line 178, in _init_default
    'Please use mx.sym.Variable(init=mx.init.*) to set initialization pattern' % name)
ValueError: Unknown initialization pattern for logisticRegression_label. Default initialization is now limited to "weight", "bias", "gamma" (1.0), and "beta" (0.0).Please use mx.sym.Variable(init=mx.init.*) to set initialization pattern

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!


CPP: Improve performance of RedundantNullCheckSimple.ql

On a small proportion of the projects I ran this on (notably including wireshark), a lot of time is spent evaluating the predicate itself:
	RedundantNullCheckSimple.ql-9:#select#cpe#13#ff ................................................................................ 7m56s
	RedundantNullCheckSimple.ql-9:#select#cpe#13#ff#antijoin_rhs ................................................................... 6m56s
	RedundantNullCheckSimple.ql-9:#select#cpe#13#ff#shared ......................................................................... 4m22s

This PR resolves this problem.

Oh, I didn't see this PR when I opened #1286. Your change is certainly smaller. How does the clause timing report for stage 9 (the query itself) look on Wireshark?

I checked performance on Wireshark, and it's good. The most expensive predicates in stage 9 are:
	RedundantNullCheckSimple.ql-9:Instruction::Instruction::toString_dispred#ff .................... 52.5s
	RedundantNullCheckSimple.ql-9:Element::ElementBase::toString_dispred#ff ........................ 48.7s
	RedundantNullCheckSimple.ql-9:IRBlock::IRBlock::dominates_dispred#ff ........................... 20.4s


Tooling API client running in Java 21 gets java.io.StreamCorruptedException: invalid type code: 01

Current Behavior
When a tooling client runs on a Java 21 virtual machine and executes a connection.action() the return value fails to deserialize:
Caused by: org.gradle.api.UncheckedIOException: java.io.StreamCorruptedException: invalid type code: 01
	at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:62)
	at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41)
	at org.gradle.tooling.internal.provider.serialization.PayloadSerializer.deserialize(PayloadSerializer.java:78)
	at org.gradle.tooling.internal.provider.ProviderConnection.run(ProviderConnection.java:226)
        ...

Expected Behavior
The return value deserializes successfully.
Context (optional)
IntelliJ IDEA plans to migrate to Java 21 in the future. We started running tests with pre-release versions of Java Runtime 21
Steps to Reproduce
Please find attached gradle-tapi-sample.zip with TAPI client and simple project.
Navigate to gradle-tapi-client and invoke gradlew run to observe the exception.
This sample is setup using Gradle Toolchains.
You can change the runtime level to 20 in the marked line in build.gradle file to get things working.
Gradle version
8.0
Build scan URL (optional)
No response
Your Environment (optional)
Windows 11, JDK11 + JDK21

I have a trouble reproducing this on Windows 10, using the following JDKs:
 + Eclipse Temurin JDK 11.0.18+10
     | Location:           C:\Program Files\Java\open-jdk-11
     | Language Version:   11
     | Vendor:             Eclipse Temurin
     | Architecture:       amd64
     | Is JDK:             true
     | Detected by:        Current JVM

 + OpenJDK 21-ea+30-2426
     | Location:           C:\Program Files\Java\open-jdk-21-ea
     | Language Version:   21
     | Vendor:             Oracle
     | Architecture:       amd64
     | Is JDK:             true
     | Detected by:        system property 'org.gradle.java.installations.paths'

@nskvortsov could you give me the same ./gradlew -q javaToolchains output?

Here is the output. I will try with the Oracle JDK report.txt

Can you give me also a precise JDK11 version, as I think it's also crucial to reproduce this.

Seems  like it was something related to earlier JBR21 build (https://github.com/JetBrains/JetBrainsRuntime/releases/tag/jbr-release-21b126.4)
I can not reproduce it with 21b212 posted earlier either.
Lets close the issue for now, I will request a re-open if I have new information.

Closing as not not reproducible.

Just for the record. We did a deeper investigation and found it is caused by a JDK bug: https://bugs.openjdk.org/browse/JDK-8309885

It was fixed here: https://github.com/openjdk/jdk21/pull/15


BDS 280

Does anyone have any success with the BDS280? It does not seem to have a port open at 10025 and does not react to any command. Probably no support at all;-(
Thanks for your tips

You can try running nmap to see if any ports are exposed. Maybe it’s as easy as adjusting the port and hoping for the best.

Thanks for your fast reply. Indeed I checked all open port and find only 80, 443, 1900 (upnp) and 5000 (no idea what it is, tried it but no response), so probably no support at all;-(

Sorry to hear that. Unfortunately I don’t know any other way of trying to approach the issue, other than reverse engineering the official App, if it works for your device at all.

Actually that is a great tip, did not think of that, I will download the App, It says BDS 280 support so let's see, and otherwise I may do some Wireshark sniffing;-) fun!

I am currently running tests against my BDS 580 which should be the same model as the BDS 280. I reversed the HK Remote app a little bit to find out some basic commands and then went to wireshark. I just did an nmap of my system which resulted in this:
PORT      STATE SERVICE VERSION
2870/tcp  open  upnp    IPI Media Renderer upnpd 1.0 (UPnP 1.0; DLNADOC 1.50)
4096/tcp  open  http    Mongoose httpd
| http-methods:
|_  Supported Methods: GET HEAD POST
|_http-title: Site doesn't have a title (text/plain).
10025/tcp open  unknown
13000/tcp open  unknown
38438/tcp open  http    Mongoose httpd
|_http-title: Site doesn't have a title (text/plain).
| http-methods:
|_  Supported Methods: GET HEAD POST

The 38438 also has some sort of UPnP function but i dont know what. So i am now sending commands to the 10025, just as my phone does with the HK Remote app (using plain netcat, your HKAPI application and from my own implementation) but i do not get any response from the BDS. The phone remote works well, but sending the exact same request from my machine over a tcp socket does nothing, the machine does not react, however I do get TCP Acknowledgements from the BDS.
I would like to get this working for the BDS 580/280 series, but I cannot figure out what i'm doing wrong.

Hi @cn-ml. It's been a while since I last had to deal with a HK device, so my knowledge on this topic may no longer be up to date, but I remember that there were some discrepancies between the HTTP spec (or at least what is commonly implemented in HTTP libraries) and what the HK device expected. For example, the header sent by HTTP clients always contains a / for the URI:
POST /example HTTP/1.1

HK however expects there to be no / and refuses to work otherwise:
POST HK_APP HTTP/1.1

What I'm trying to say is: Have you double-checked that the request you are sending via netcat is exactly the request you have captured using Wireshark? Including \r\n for new lines and all that?


Create a "nightly" instance of Playground that gets updated everyday with the daily build.

Is your feature request related to a problem? Please describe
I'd like to be able to play with new features faster as they're getting build on OpenSearch.  Therefore, I'd like a "nightly" version of playground to get built with every successful build -- first with the 2.x build, but ultimately with main as well.
Describe the solution you'd like
Whenever there's a successful night built, we replace the current nightly playground build automatically.   We will need a way to see what version we're pointing at.
Acceptance Criteria:

Support upcoming version for 2.x
OS and OSD gets deployed nightly on a regular basis using the latest builds.
Have generic anonymous(read-only) access for OpenSearch DashBoards.
Display the commits related to a build-id.
The instance should be publicly accessible.

Please see the high level design posted here: https://github.com/opensearch-project/opensearch-devops/issues/130
Thanks! Will be modifying the description of this issue into smaller issues.
Thanks!

Closing this issue as nightly playgrounds have been successfully working for last 2-3 releases https://playground.nightly.opensearch.org/
There are upcoming enhancements such as #153 which will be followed up in mentioned issue.


Add new dataset class using zarr file storage.

Pull Request Description
This PR introduces a new dataset implementation aimed at improving dataset loading speed. Additionally, it includes a BCI decoding example in a Colab notebook for reference: Link to Colab Example.
Notes

Considered Alternatives: During the development process, we explored potential alternatives like numpy.memmap and lmdb. However, we encountered limitations with numpy.memmap, particularly in terms of lacking compression options. LMDB, while efficient, isn't well-suited for lazy loading, useful for querying windows from recordings.

HDF5 vs. Zarr Debate: There's an ongoing debate between HDF5 and Zarr. Both have their respective advantages, but Zarr appears to have more active development. We might also allow users to choose between both options.

As we found current solution to be performant enough, closing this for now.


Docs. Example for drone >=1.0 w settings

I hope this will help not to face with https://github.com/Drillster/drone-email/issues/27 anymore

Thanks! Merging.


Last frame was missing from tools because step() is not called

Change in core caused Step not to be called on last frame, instead end is called. Update the animation (analysis) on GUI side to follow this convention.

Address issue #511

@aymanhab AFAICT in core, calling Analysis::end(s) is sufficient to record the final state correctly. In no instances are we calling step(s) in end(s). Therefore if your Analysis is calling processStep(s, N) (e.g. step(s, N))  in end(s) it is definitely inconsistent with Analyses in the API.  If you look at all the end(s) implementations they just call record(s) as does step(s) so I can see why you are needing to call processStep() which is likely is the recording guts. I would rename it record(s) and have your step() and end() call it. Then it will at least be consistent with the Analyses in core.
There was also an inconsistency between the AnalyzeTool and ForwardTool (Manager) and this was resolved by only calling step(s) during our march through states in AnalyzeTool::run() and integration and only end(s), when reaching the last index of input data (AnalyzeTool) or finished integrating in the case of the Manager, and never step(s) and end(s) together.

@aseth1 thanks for the pointers as to why the behavior was changed. The "Analysis" being modified here is what records the kinematics or states so that they can be played back when tools are running. Since all these tools are "Analysis" based, the GUI follows suit (internally using StatesReporter or KinematicsReporter)  both of these invoke record (which is not part of the interface by the way) inside their end method. The GUI based Analysis uses the signature that takes a step number of "step" so that it can report progress. Please let me know if you have any further questions or concerns regarding this change.

@aymanhab I know record(s) is not part of the public interface. The problem is that the public virtual methods begin(s), step(s, N) and end(s) all have to do the same operation of recording something plus doing something else (like initialize Storage or finalize something). I do not like or approve of this interface - it is what it is. It appears that record(s) was invented to support the common operation that all three public methods have to do.
I think it safest moving forward to use a similar structure and not call step(s) or in your case processStep(s) inside of end(s) because if anything has to be added to step() you will inadvertently also bake it into end(s). I am not saying that is happening, it just exposes your code to that risk and that may be hard to track down and debug in the future. 5 min know could save the team hours or even days hunting months and years down the road.

Thanks for the feedback @aseth1 I made a change to delegate the call to end(s) in the GUI Analysis to the corresponding end(s), and checked that results files saved in GUI have correct final frame and that it shows exactly once. Please let me know if you have any further concerns.

Thanks @aseth1 Merging since build failures on travis are due to sourceforge issues.


Split serialize_map_elt

Like what's been done on the deserialization side with MapVisitor, this
allows some weirder uses of Serde to handle the key and value in
separate steps.
r? @dtolnay

Should we do the same for serialize_struct_elt?

@homu: r+
@sfackler: can you think of any cases where would we would want to serialize struct field names separately from the field value?

:pushpin: Commit ea833d3 has been approved by erickt

:hourglass: Testing commit ea833d3 with merge 20efd67...

@erickt Nope, it's more of a symmetry question there.

:broken_heart: Test failed - status


Remove the Xamarin.Forms workload

I haven't seen any evidence besides this line that there is a relationship between .NET Core and Xamarin.Forms. Therefore, I doubt that this is an actual target workload for .NET Core. If I'm wrong, I'd love to know how to create a Xamarin.Forms project that uses the .NET Core runtime.

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@richlander @mhutch can one of you comment on this PR?

Xamarin Forms apps on UWP use .NET Core.

Alright, is there any documentation on that, that can be easily added so that it is clear why Xamarin.Forms is a workload for .NET Core?

@bmaluijb It's more a matter of UWP itself using .NET Core under the hood.  Because Xamarin.Forms has a UWP target, it runs there as well.  The above line says this:

Additional application models have been built on top of .NET Core to extend its functionality, such as:

I suppose if this were to say "Xamarin.Forms when targeting UWP" it would be accurate.

@cartermp Sorry for the late reply. Bu yes, I think that "Xamarin.Forms when targeting UWP" would be accurate and less confusing than it is now.

So do you wanna change the original link to that @bmaluijb? Thanks.

I'll shoot over a new PR


[CAMERA]: Implement CAMERA_SetSmoothValue.

Thanks for this, could you also please provide a decomp.me scratch to see how closely this matches the original function?
To also note, we're using the 14/07/1999 build with debugging symbols.

Thanks for this, could you also please provide a decomp.me scratch to see how closely this matches the original function?
To also note, we're using the 14/07/1999 build with debugging symbols.

Thank You for your response.
I am new to this project, I want to contribute more and help with the decompilation process.
Could You provide some help (like instructions or doc) on how to use decomp.me?
And also can You tell me the reason why I should note that we use 14/07/1999 build?

Thanks for this, could you also please provide a decomp.me scratch to see how closely this matches the original function?
To also note, we're using the 14/07/1999 build with debugging symbols.

Thank You for your response.
I am new to this project, I want to contribute more and help with the decompilation process.
Could You provide some help (like instructions or doc) on how to use decomp.me? And also can You tell me the reason why I should note that we use 14/07/1999 build?

decomp.me is fairly simple. You paste in the original disassembled function, create a context including all data structures used by the code you decompiled. Then once the scratch is created you replace the function with your own decompiled code as follows:

It's a 0% match, looks like there's some operations missing so the original code was doing more than what you decompiled from the looks of it.
The 14/07/1999 version is the latest version of the game known to have matching debugging symbols. Sticking to one version just makes life easier and prevents confusion and code collisions which may occur when merging in code from random builds.
Thank you.

Implemented in https://github.com/Gh0stBlade/KAIN2/commit/479b8136e7827247b9a1f602bfcf582ae2f9c8a2


GH action for shinyapps deployment

Set up action to deploy shinyapp upon push to main.

Done, closed by #11.


"Unexpected token in JSON" error if jest.config.ts imports a tsconfig.json containing comments

🐛 Bug Report

jest fails with the following error, if TypeScript is used for the configuration file and a tsconfig.json which contains comments is imported:
$ jest --ci --coverage --reporters=default --reporters=jest-junit
Error: Jest: Failed to parse the TypeScript config file /builds/abc/App/abc/jest.config.ts
  SyntaxError: /builds/abc/App/abc/tsconfig.json: Unexpected token / in JSON at position 1050
    at readConfigFileAndSetRootDir (/builds/abc/App/abc/node_modules/jest-config/build/readConfigFileAndSetRootDir.js:118:13)
    at readConfig (/builds/abc/App/abc/node_modules/jest-config/build/index.js:227:18)
    at readConfigs (/builds/abc/App/abc/node_modules/jest-config/build/index.js:412:26)
    at runCLI (/builds/abc/App/abc/node_modules/@jest/core/build/cli/index.js:220:59)
    at Object.run (/builds/abc/App/abc/node_modules/jest-cli/build/cli/index.js:163:37)
error Command failed with exit code 1.

I am aware that json file mustn't contain comments, but some libraries such as TypeScript allows comments in tsconfig.json files anyways.
To Reproduce
Steps to reproduce the behavior:

Use a jest.config.ts and import a tsconfig file:

import { compilerOptions } from "./tsconfig.json";

Add a comment in the related tsconfig.json, e.g.

"include": ["./packages/**/*.ts", "./config/*.ts"], // Overwritten in tsconfig.build.json

Run jest

Expected behavior

Using comment in tsconfig.json should not throw an error in jest.
envinfo

System:
    OS: Windows 10 10.0.19042
    CPU: (16) x64 Intel(R) Xeon(R) E-2286M  CPU @ 2.40GHz
  Binaries:
    Node: 14.16.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.11 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    jest: ^27.0.6 => 27.0.6

Sorry I've started this as an error ticket but just realized that it probably should be an enhancement...


OnOff restore state after reboot (CON-1457)

I have a problem with the initial state of the light after a reboot (it always goes back to off), this is the configuration
on_off_light::config_t light_config;
light_config.on_off.on_off = false;
light_config.on_off.lighting.start_up_on_off = nullptr;
these are the logs
I (4402) esp_matter_core: Dynamic endpoint 0 added
I (4402) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000003's Attribute 0x00000001 is 0 **********
I (4422) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000004's Attribute 0x00000000 is 128 **********
I (4432) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000004's Attribute 0x0000FFFC is <invalid type: 0> **********
I (4442) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000005's Attribute 0x00000000 is 0 **********
I (4452) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x0000FFFC is 1 **********
I (4462) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00004003 is 0 **********
I (4472) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 1 **********
I (4492) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 1 **********
I (4502) chip[ZCL]: Toggle ep1 on/off from state 1 to 0
I (4502) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00000000 is 0 **********
I (4532) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x0000FFFC is 1 **********
I (4532) chip[ZCL]: Off completed. reset OnTime to  0
I (4542) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000006's Attribute 0x00004001 is 0 **********
I (4552) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000005's Attribute 0x00000003 is 0 **********
the problem occurs with the release/1.1, while with release/1.3 it works without problems

Have you erase-flash the device? PTAL https://github.com/espressif/esp-matter/issues/841#issuecomment-1957530500

@stefano055415 Any update on the issue?

@jadhavrohit924
To resolve after matter has started you must set this.
nullable nullable_value;
esp_matter_attr_val_t startup_val = esp_matter_nullable_enum8(nullable_value);
attribute::update(endpoint_id, OnOff::Id, OnOff::Attributes::StartUpOnOff::Id, &startup_val);
Probably in some version the default value was set to 0


Explicitly Close() obj after ReadFull()

Restic makes heavy use of short reads from S3 when performing incremental backups. It runs GetObject from minio-go and reads part of the returned stream (e.g. 45 bytes from a specific offset) and then returns.
This leaves the HTTP connection managed by minio-go containing unread data, and in this situation the minio-go library will create a new connection for subsequent requests even though restic is finished with the previous object. Performing an incremental backup of a 7GiB filesystem I noticed connection counts from Restic to the S3 endpoint of up to 30,000 when the open file limit was raised high enough to allow this.
Explicitly calling Close() after io.ReadFull() causes the remaining data to be discarded and allows minio-go to handle connection reuse effectively. The same incremental backup described above will use on average 15 to 30 connections for the duration of the backup.

Hey, thanks for giving this a try!

Also one thing to note, there's been a number of changes to minio-go upstream which help to reduce the concurrent connection count (also to do with connections being recreated instead of reused). Would be good to have updated minio-go pulled in.

Yes, I agree. Thanks for your contribution!


FRONT/AR-21->dev

Checklist before requesting a review

[x] The commits messages follows our guidelines
[x] I have performed a self-review of my code
[ ] I have documented my code
[ ] Do we need to implement unit tests?

In what state is your pull request?

[ ] Ready to merge / Waiting a reviwer to see my work.
[x] Work In Progress (WIP) / My work is not finish but i want daily reviews. (Draft)
[ ] CI Review / I want to see what the CI thinks of my work.
[ ] Need feedback / Just to have feedback on what i produced. (May not be merged)

What kind of changes does this PR introduce? (You can choose multiple)

[ ] Bug fix
[x] Feature request
[ ] New / Updated documentation
[ ] Testing CI ( Make the pull request in draft mode)

Summary by CodeRabbit

New Features

Introduced a new user registration component with form fields and submission logic.
Updated the environment configuration to point to the new API endpoint.

Style

Redesigned the login interface with updated positioning and styling of geometric shapes.
Enhanced the visual presentation of the login and registration modules.
Expanded the color palette and added custom values for various styling properties in the Tailwind configuration.

Documentation

Provided summaries for changes in styling and configuration files without altering public entity declarations.

for the moment i'm okey but i found some issue like type of register button


Angular 4 to Angular 5

Angular 5 documentation notes that DOCUMENT in @angular/platform-browser is depricated and that we should pull from @angular/common instead.

Cool :) Thank you!


Fix ImportFile() to send a multipart form request

Update ImportFile() to send a multipart form request, add missing "Name" parameter to ImportFileOptions.

I'll test this more thoroughly after the weekend.

Note this is intended to resolve https://github.com/xanzy/go-gitlab/issues/636

This should be fixed by PR #1318 which also adds some additional file upload improvements. Please open an issue if you have any issues with the new code. Thanks for the PR and the discussions!


Adding EventHub related tests

Purpose
Adding test cases for the following cases

Handling unrecoverable errors in flushing thread
Handling authentication errors in the worker thread
Handling RESOURCE_LIMIT_EXCEEDED error in the worker thread
Handling any AMQP exception in the worker thread
Handling TimeoutException error in the worker thread
Handling any other exception in the worker thread
Handle test cases defined in here https://github.com/wso2-enterprise/choreo/issues/11450

Codecov Report

Merging #74 (23916be) into main (a139982) will increase coverage by 6.15%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main      #74      +/-   ##
============================================
+ Coverage     52.30%   58.46%   +6.15%
- Complexity      124      132       +8
============================================
  Files            36       36
  Lines           780      780
  Branches         75       75
============================================
+ Hits            408      456      +48
+ Misses          322      274      -48
  Partials         50       50

Flag
Coverage Δ

unit_tests
58.46% <ø> (+6.15%)
:arrow_up:

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

Impacted Files
Coverage Δ

.../am/analytics/publisher/client/EventHubClient.java
77.22% <0.00%> (+26.66%)
:arrow_up:


[PAS] Beastars 2nd Season

PAS titled their second season of Beastars with "[PAS] Beastars S2 - 13"  and the numbering starts at 13.

Note that if the series airs for more than 12 episodes, this is going to cause issues for all other releases (e.g. the actual 13th episode will be identified as the 1st episode).

Note that if the series airs for more than 12 episodes, this is going to cause issues for all other releases (e.g. the actual 13th episode will be identified as the 1st episode).

When I checked it seemed only 12 were ordered for this season, but feel free to adjust it as needed. Also other groups may have other ways of numbering, but PAS seem to be the most popular and only full season pre-netflix fansubbers.

When I checked it seemed only 12 were ordered for this season, but feel free to adjust it as needed. Also other groups may have other ways of numbering, but PAS seem to be the most popular and only full season pre-netflix fansubbers.

For reference, other cases where this issue happens are:
Boku no Hero Academia
Fate/stay night: Unlimited Blade Works (TV)
Probably others as well, it's a bit unavoidable unfortunately.

For reference, other cases where this issue happens are:
Boku no Hero Academia
Fate/stay night: Unlimited Blade Works (TV)
Probably others as well, it's a bit unavoidable unfortunately.


Fix OpenSSL compilation on macOS; use OpenSSL 3.1

This PR adds macOS support for OpenSSL 3.1 on both Intel and Apple Silicon.
Without this fix, Ruby scripts compiled for macOS that make HTTPS requests result in OpenSSL errors such as:
certificate verify failed (EE certificate key too weak) (OpenSSL::SSL::SSLError)

and
unable to find ecdh parameters

To fix this, I updated the OpenSSL configuration to use the same settings that Homebrew uses here:
<EMAIL_ADDRESS>I kept the no-shared option since we want static libraries.
As for the no-asm option that I removed, according to the OpenSSL repo, it's meant to be used for debugging/troubleshooting, and not for production use:
https://github.com/openssl/openssl/blob/b07107e31149bf870bc1ae17e59444859fe4e23a/INSTALL.md?plain=1#L591
And enable-rc5 is disabled by default, and is for RC5 symmetric encryption using the EVP_CIPHER API:
https://github.com/openssl/openssl/blob/b07107e31149bf870bc1ae17e59444859fe4e23a/doc/man7/EVP_CIPHER-RC5.pod#L11
Both no-asm and enable-rc5 were added in the motor-admin fork to add support for Apple Silicon, but I don't think they're needed. Here's the original PR:
https://github.com/motor-admin/ruby-packer/commit/99023b49a569abd07df6670aa2f950ccc1f22354
My paid Ruby CLI compiled with rubyc makes several HTTPS requests and it all works fine with the settings in this PR, on both Intel and Apple Silicon Macs. Hundreds of customers on various macOS versions and Mac models have used it without issues.
I also removed -Wno-error=implicit-function-declaration from CFLAGS because that's a hack that's often recommended when Ruby installation fails on macOS, but is not necessary, especially with newer Ruby versions like 3.1.3. In my 13 years of using Ruby, not once have I had to use that flag on macOS.

Hi @ericbeland. I thought I'd ping you in case you didn't get a notification about my PR. We talked about this a while back on Reddit.

I totally did not get your notification, sorry!

Any plans on merging this PR, @ericbeland?


Can't delete employee because of the foreign constraint on the bonuses and schedule tables

Fixed by modifying constraints on bonuses and shifts tables to use cascade deletes. No code changes were required. I added 2 queries both in the dev and prod projects in Supabase SQL Editor.


add generic clang + libcxx toolchain with -std=c++14

This is similar to the libcxx.cmake toolchain but with a c++14 language flag.  It works with the default OSX Apple clang, for example, which has no versioned naming convention used by the llvm builds (i.e., clang-5).

NOTE: This should provide a useful default clang toolchain for c++14 hunter packages.


Tbs tnt tru g UI de

Looks like this PR is targeting a downstream fork, and not slate itself. You should recreate this PR and point it at the appropriate repo.


Feature request: Ability to reference a child logger by name

Winston@3, AWS Lambda / Linux, Typescript 3.x
What's the feature?
The ability to reference a child logger by name, rather than only access it by passing around its object.
What problem is the feature intended to solve?
Threading a logger through the code can be tedious as well as add boilerplate.  From the typings, adding a logger to a container only lets you pass in the constructor options for creating a new logger.
Is the absence of this feature blocking you or your team? If so, how?
Not a blocker. Can be engineered around. The ability to reference loggers by name is what I like about Winston compared to other loggers. It would be nice from an API completeness point of view to have this.
Is this feature similar to an existing feature in another tool?
Issue #1482 seems similar, however it seems to have been created before Winston had the functionality to create a child logger. Adding the ability to create a child logger solved the problem, but the issue of referencing the child logger only by name was not discussed.
Is this a feature you're prepared to implement, with support from us?
I'd be willing to look into it.

If it is not a large change I may consider implementing this in the PR (or a subsequent one) i have out to fix some functionality with the child loggers.

@Maverick1872 thanks for the consideration

@dfontenot I need a little information to finish up this test implementation. You are accessing these loggers via the Winston ContainerInterface by winston.loggers.get('loggerId') correct?

@Maverick1872 correct.


Xamarin.iOS task fails when using C# features of minor language version (C# 7.1)

Required Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: XamariniOS
Environment

Server - Azure Pipelines or TFS on-premises? Azure Pipelines

Agent - Hosted or Private: Hosted

If using Hosted agent, provide agent queue name: Hosted macOS

Issue Description
Xamarin.iOS task fails as C# 7.1 features are used in the code. The csproj of the solution are properly configured to use the latest minor version of the language but build fails anyway.
Error logs
error CS8107: Feature 'default literal' is not available in C# 7.0. Please use language version 7.1 or greater.
[error]Xamarin.iOS task failed with error Error: /Library/Frameworks/Mono.framework/Versions/Current/Commands/msbuild failed with return code: 1. For guidance on setting up the build pipeline, see https://go.microsoft.com/fwlink/?LinkId=760847.

Specifying the latest Mono SDK does not solve the issue.

I was able to work around this by updating the language version to 7.3. This is not an ideal solution as it means you'll need to watch for new versions to be released in order to be updated, but it'll allow you to use the newer features.
In Visual Studio for Mac, right-click your project, choose Options, Build > General, Language Options > C# Language Version.

I'm also getting this error when running my Xamarin pipeline. Is there a way to specify the C# version in the YAML?

I tried this as well as setting the language version value to "latest" but neither worked in the pipeline.

I was able to work around this by updating the language version to 7.3. This is not an ideal solution as it means you'll need to watch for new versions to be released in order to be updated, but it'll allow you to use the newer features.
In Visual Studio for Mac, right-click your project, choose Options, Build > General, Language Options > C# Language Version.

@TechWatching @mdobric  Could you please provide us with contents of your .csproj file? If not please check if 'LangVersion' 7.0 or less is not specified explicitly in the property group related to the aimed build configuration in the .csproj file. You can do it by following steps:

Open .csproj file with any text editor (e.g. Visual Studio Code, Notepad etc.);
Find 'PropertyGroup' tag which condition attribute matches build configuration specified in YAML file ('buildForSimulator' and 'configuration' inputs) e.g. 'Release|iPhone';
Find 'LangVersion' tag and verify if it is not explicitly set to 7;
Change it to 7.1 if it is set to 7 or completely delete 'LangVersion' tag.

You may also check all other property groups just to be on the safe side. We look forward to hearing from you!

I won't be able to answer as I don't work on the project where I had the problem and have no access to the code anymore. From what I remember it was not explicitely set to 7 lang version but to the "latest" value. Setting to a specific version like 7.1 would work however I think. But "latest" should have work. Sorry no be able to help more, it has been a while since I created this issue. The easier to reproduce would be to create blank Xamarin project, add a csharp piece of code that use a C# 7.1 feature like default litteral (I think it is what I used) and add an Azure pipeline on that.

@TechWatching Thank you for the response! We didn't manage to reproduce the issue by testing the task the way you described until the wrong C# version was specified explicitly.
@mdobric @ryanbuening Could you please let us know if the issue is still reproduced?

@egor-bryzgalov Sorry, I am scrapped my Xamarin pipeline for the time being so I cannot tell you if it is still happening for me.

@mdobric Could you please confirm that the issue is still reproduced? Thank you!

Closing the issue due to lack of information, please feel free to reopen it.


feat: add support for specifying nameIdFormat in idp_samlv2 resources

Resolves #114

@sjauld thank you! This is in v0.1.62


Rename folders and module files for 2012 #2

Docs Build status updates of commit 739cf43:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docset/winserver2012-ps/international/Get-WinAcceptLanguageFromLanguageListOptOut.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Get-WinCultureFromLanguageListOptOut.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Get-WinDefaultInputMethodOverride.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Get-WinHomeLocation.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Get-WinLanguageBarOption.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Get-WinSystemLocale.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Get-WinUILanguageOverride.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Get-WinUserLanguageList.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/International.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/New-WinUserLanguageList.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Set-Culture.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Set-WinAcceptLanguageFromLanguageListOptOut.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Set-WinCultureFromLanguageListOptOut.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Set-WinDefaultInputMethodOverride.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Set-WinHomeLocation.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Set-WinLanguageBarOption.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Set-WinSystemLocale.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Set-WinUILanguageOverride.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/international/Set-WinUserLanguageList.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/msmq/MSMQ.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Add-WebConfiguration.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Add-WebConfigurationLock.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Add-WebConfigurationProperty.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Backup-WebConfiguration.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Clear-WebCentralCertProvider.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Clear-WebConfiguration.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Clear-WebRequestTracingSetting.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Clear-WebRequestTracingSettings.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/ConvertTo-WebApplication.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Disable-WebCentralCertProvider.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Disable-WebGlobalModule.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Disable-WebRequestTracing.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Enable-WebCentralCertProvider.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Enable-WebGlobalModule.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Enable-WebRequestTracing.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebAppDomain.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebAppPoolState.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebApplication.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebBinding.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebCentralCertProvider.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebConfigFile.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebConfiguration.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebConfigurationBackup.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebConfigurationLocation.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebConfigurationLock.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebConfigurationProperty.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebFilePath.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebHandler.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebItemState.md
:white_check_mark:Succeeded
View (winserver2012-ps)

docset/winserver2012-ps/webadministration/Get-WebManagedModule.md
:white_check_mark:Succeeded
View (winserver2012-ps)

This comment lists only the first 50 files in the pull request.
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Curl is missing from latest tag image

Describe the bug
curl is missing from image tagged "latest"
Related command
curl
Errors
bash: curl: command not found
Issue script & Debug output
bash: curl: command not found
Expected behavior
curl should be available
Environment Summary
65d1dae9f6b4:/# az --version
azure-cli                         2.54.0
core                              2.54.0
telemetry                          1.1.0
Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2
Python location '/usr/local/bin/python'
Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.11.6 (main, Oct 19 2023, 05:43:48) [GCC 12.2.1 20220924]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response

Thank you for opening this issue, we will look into it.

Describe the bug
curl is missing from image tagged "latest"
Related command
curl
Errors
bash: curl: command not found
Issue script & Debug output
bash: curl: command not found
Expected behavior
curl should be available
Environment Summary
65d1dae9f6b4:/# az --version azure-cli 2.54.0
core 2.54.0 telemetry 1.1.0
Dependencies: msal 1.24.0b2 azure-mgmt-resource 23.1.0b2
Python location '/usr/local/bin/python' Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.11.6 (main, Oct 19 2023, 05:43:48) [GCC 12.2.1 20220924]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response

We have the same problem today, a quick fix this you can use the version 2.9.1 of image:
mcr.microsoft.com/azure-cli:2.9.1
but actually this change was added on this pull request: https://github.com/Azure/azure-cli/pull/27567

@usnea-longissima We have the same problem today, a quick fix this you can use the version 2.9.1 of image:
mcr.microsoft.com/azure-cli:2.9.1
but actually this change was added on this pull request: https://github.com/Azure/azure-cli/pull/27567

Ah, thanks for the PR reference.  I wonder why the new image wasn't pushed to the latest tag when that pull request was merged 3 weeks ago.


Map.entries.iterator.moveNext() is too slow with null safe SDK

Dart SDK version: 2.12.0-29.10.beta (beta) (Unknown timestamp) on "linux_x64"
The profiler says that moveNext() calls operator[] and it cost much.
I believe that Map is LinkedHashMap and the elements of it can be iterable on linked list.
I'm not sure, but I think the older SDKs without null safety are much faster.

Could you provide the reproduction of some sort? I tried this trivial microbenchmark:
@pragma('vm:never-inline')
int sum(Map<String, int> map) {
  var result = 0;
  for (var entry in map.entries) {
    result += entry.value;
  }
  return result;
}

int measureFor(Map<String, int> map, int n) {
  final sw = Stopwatch()..start();
  for (var i = 0; i < n; i++) {
    sum(map);
  }
  return sw.elapsedMilliseconds;
}

int warmup(Map<String, int> map) {
  var n = 10;
  while (measureFor(map, n) < 2000) {
    n *= 2;
  }
  return n;
}

void main() {
  final Map<String, int> map = Map.fromIterable(List.generate(1000, (i) => i),
    key: (i) => i.toString(),
    value: (i) => i);

  final n = warmup(map);
  print(measureFor(map, n) / n);
}

And I don't see any significant change in performance between Dart SDK 2.9 and Dart SDK 2.12.

I don't think there is a regression, but the default get elements iterates over the keys and indexes the map.
For important maps like the system default Map implementation this could be implemented more efficiently, without ever calling a hashCode.
If we delete "with null safe SDK" from the description, I think the report validly points out something that is "too slow".
It is something that might be noticed with the null safe SDK because sometimes using Map.elements is a way to avoid nullable values.
Iterating map.entries and using entry.value is many (~10) times slower than iterating map.values.
On the system default Map they could be pretty close, using the same basic iterator.
When this is fixed, at the same time update forEach as it should not need to use two iterators.

Sorry, my app has another reason of regression, that I migrated List() constructors with size argument to List.filled() constructor without growable: false. The subscripting operation on growable List is quite slow.
I agree with @rakudrama, anyway.


Update package.json Build and Lint #9

What is the proper way to fix these Updates, do you go back to the one highlighted in Red Or Green? What is it telling you to do when this happens
Run errors and how to fix them
{
"private": false,
"displayName": "Homebridge Inkbird WiFi Gateway",
"name": "homebridge-InkBirdIBS-M1",
"author": "R.Jagger",
"version": "1.0.0",
"description": "Control Inkbird BT devices through the WiFi Gateway App",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git://github.com/richierockskool/homebridge-InkBirdIBS-M1.git"
},
"bugs": {
"url": "https://github.com/richierockskool/homebridge-InkBirdIBS-M1/issues"
},
"engines": {
"node": ">=14.18.1",
"homebridge": ">=1.3.5"
},
"main": "dist/index.js",
"scripts": {
"lint": "eslint src/**.ts --max-warnings=0",
"watch": "npm run build && npm link && nodemon",
"build": "rimraf ./dist && tsc",
"prepublishOnly": "npm run lint && npm run build"
},
"keywords": [
"homebridge-plugin"
"WiFi"
"bluetooth",
"temperature",
"sensor",
"Inkbird",
"IBS-M1",
"homebridge"
],
"dependencies": {},
"devDependencies": {
"@types/node": "^16.10.9",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"homebridge": "^1.3.5",
"nodemon": "^2.0.13",
"rimraf": "^3.0.2",
"ts-node": "^10.3.0",
"typescript": "^4.4.4"
}
}

**Plugin Config:**

```json
Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

Plugin Version:
Homebridge Version:
Node.js Version:
NPM Version:
Operating System:

Figured it out


disk space check and proper error

A user reported an error of
"another process is using this Badger database"
and then later reported it was due to low disk space. We can check for this condition to properly alert the user.

Bumping this up, this same error can also mean the program runs out of memory, and restarting the phone or force closing all applications may solve it.  Currently being reported on a phone with 4GB of space free.


Blanck screen on Windows

Hi, iam problems with the library in react-native on windows.
In debug mode run. But in release mode appears a black screen.
I need the solution for this problem, please.
Environment:
OS: windows 10
OS version: 19042.746
react-native version:0.64.0
react-native-windows version:0.64.0-0
react-native-video version:5.1.1

I have same issue, everything is fine in debug, but on release react app crash after render  component.

On
"react-native": "0.63.4",
"react-native-video": "^5.1.1",
"react-native-windows": "^0.63.0-0"

everything is fine,
but on RN 0.64.0 and RNW 0.64.0 on Release not work.

+1 issue. Did u find how to fix this? thanks.

No, i don’t find the solution.

I found issue  #2399. He can play video at release mode by change the video path to URI. I also try this but not work :(
Did u found other ways to play videos on windows?

Try with a webview

I can play video in release mode now. Turn out, It only works in react native ver 0.63 and react-native-windows ver 0.63 also. You should try this.

Same issue with react-native 0.66.1 and react-native-windows 0.66.1

+1
Blank screen in windows release mode. Work fine in debug mode
System:
    OS: Windows 10 10.0.20348
    CPU: (2) x64 Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
    Memory: 3.18 GB / 8.00 GB
  Binaries:
    Node: 16.13.0 - ~\AppData\Local\Temp\2\yarn--1637145464397-0.6832947000591538\node.CMD
    Yarn: 1.22.15 - ~\AppData\Local\Temp\2\yarn--1637145464397-0.6832947000591538\yarn.CMD
    npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK:
      AllowDevelopmentWithoutDevLicense: Enabled
      AllowAllTrustedApps: Enabled
      Versions: 10.0.18362.0, 10.0.19041.0, 10.0.22000.0
  IDEs:
    Android Studio: Not Found
    Visual Studio: 16.11.31729.503 (Visual Studio Community 2019)
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1
    react-native: ^0.64.0 => 0.64.3
    react-native-windows: 0.64.25 => 0.64.25
  npmGlobalPackages:
    *react-native*: Not Found

"react-native": "^0.64.0",
"react-native-video": "^5.2.0",
"react-native-windows": "0.64.25"

Hi, @jensonstack ! I solved that issue by install react-native-video from pull request. You could try this
"react-native-video": "github:react-native-video/react-native-video#pull/2296/head"
For me it started working after I fully reinstalled this library and made a rebuild.

Thanks, @Boiko33 It woked. You saved my day.
For me, it started working after I fully reinstalled this library and made a rebuild, and changes were made in assigning source
const splashVideo = Platform.OS === 'windows' ? {uri: 'ms-appx:///Assets/video.mp4'} : require('../../../assets/videos/video.mp4');
<Video source={splashVideo} // Can be a URL or a local file.
   ref={refVideo} // Store reference
   //onBuffer={this.onBuffer} // Callback when remote video is buffering
   onError={onVideoError} // Callback when video cannot be loaded
   paused={isPaused}
   onEnd={() => onVideoEnd()}
   style={styles.backgroundVideo} />

Please note I placed the videos in the Asset folder like #2399 and add to Asset folder in Visual Studion Solution


Remove the Bug

Rectify the bug present in ../src/lib.rs .

Issue is up for claims again!

claim


feat: allow definition of access pattern for input files

Description

QC

[ ] The PR contains a test case for the changes or the changes are already covered by an existing test case.
[ ] The documentation (docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).

This PR is feature incomplete. Shall we find a time to complete it? I don't feel confident enough to proceed.


add n vectors to show the benefit of kernel fusion and the name origin of triton

The add-vector example just adds up two vectors, which shows on-par performance with pytorch native operators.
This PR contributes an example of adding up n vectors (n >= 2 is configurable) by using code template. This is a simple example of kernel fusion, which shows the great benefit of triton over pytorch native expressions.
This PR also explains the name origin, obtained by private contact with @ptillet .

This is probably not suitable for a tutorial example, as the primary aim of the first tutorial is to provide users with a clear understanding of how to use Triton APIs.

I think we can vary n_input_tensors, and let users learn the generated addn.py. Or we can leave a question for users how to write addn, and we provide the answer below for them to check!
The process of generating addn.py is indeed not very interesting, but I find extending add2 to addn greatly help me practice the learned API.

OK, I think it might be better if you can just attach the code with two loads (i.e., add2?), without using the code generation template otherwise it seems like we are encouraging users to write code in a way by concatenating strings. There are certainly some shortcomings in the compiler for not automatically optimizing code like this, and I believe we might be able to handle it in the future.
Besides, it's more like a "register blocking" example instead of "kernel fusion" because kernel fusion often refers to fusing two subsequent kernel instances together.

I believe we might be able to handle it in the future.

Oh, really? That's great! How do you plan to support variable arguments?

Besides, it's more like a "register blocking" example instead of "kernel fusion" because kernel fusion often refers to fusing two subsequent kernel instances together.

I think it is indeed kernel fusion. x1 + x2 + x3 in pytorch will launch two kernels: temp = x1 + x2 and output = temp + x3. By implementing add3, we fuse them into a single kernel launch.

Oh, really? That's great! How do you plan to support variable arguments?

It could be done with meta programming. But even with today's triton, you can store the number of tensors and tensor pointers on the device to avoid passing multiple tensors as arguments.

I think it is indeed kernel fusion. x1 + x2 + x3 in pytorch will launch two kernels: temp = x1 + x2 and output = temp + x3. By implementing add3, we fuse them into a single kernel launch.

Oh, if are you saying that pytorch eager doesn't handle it I do agree, but pytorch compile should be able to handle it. Hmm, if the speedup is observed by comparing with the eager mode, we may have to reevaluate the necessity of even adding add2.

Apology for not reading the code carefully, I thought the benefits was achieved by comparing triton with torchinductor. If you just want to perform fusion for simple kernels, torchinductor can be used without writing any string concatenation template.

torch.compile leverages triton. The code wants to explicitly show the benefit of kernel fusion, so we should not invoke torch.compile here.

even with today's triton, you can store the number of tensors and tensor pointers on the device to avoid passing multiple tensors as arguments.

How to achieve that? When I pass a list of tensors to the kernel, I got TypeError: Unsupported type <class 'list'>.

@Jokeren Can you show me a simple example of how to use variable number of tensors in triton? Or any documentation on this? TYVM.

You can reference the code of block sparse ops

I agree that this is not very suitable to be a triton tutorial; I could see this being in a separate repo instead


RAPS Improvements

TODO:

check logging
make torchgeo tutorials
automatic kreg and lamda parameter tuning

Observations with the automatic param tuning:
Conditioned on setting lambda=0 and just tuning the kreg parameter:

model
version
top1
top5
coverage
size
temperature
kreg
lamda

ResNet101
my
0.773775
0.93645
0.96515
10.32105
1.374822974205017
3.0
0.0

ResNet101
orig
0.773775
0.93645
0.9423
12.919
1.2414579391479492
3.0
0.0

ResNet152
my
0.7831
0.940675
0.965075
9.6953
1.3773733377456665
3.0
0.0

ResNet152
orig
0.7831
0.940675
0.939325
11.245975
1.2454251050949097
3.0
0.0

ResNet18
my
0.6976
0.891
0.95245
15.90595
1.3016581535339355
6.0
0.0

ResNet18
orig
0.6976
0.891
0.9265
16.5146
1.1067023277282715
6.0
0.0

ResNet50
my
0.762125
0.928775
0.962275
11.097
1.3395768404006958
4.0
0.0

ResNet50
orig
0.762125
0.928775
0.936925
12.984575
1.1607084274291992
4.0
0.0

Tuning both lamda and kreg:

model
version
top1
top5
coverage
size
temperature
kreg
lamda

ResNet101
my
0.773825
0.93645
0.88085
2.333425
1.374816656112671
4.0
0.5

ResNet101
orig
0.773825
0.93645
0.906
2.35395
1.2414499521255493
3.0
0.5

ResNet152
my
0.7831
0.9407
0.8733
2.072625
1.377373456954956
3.0
0.5

ResNet152
orig
0.7831
0.9407
0.90745
2.168375
1.2454249858856201
3.0
0.5

ResNet18
my
0.6976
0.891
0.891925
4.75235
1.3016581535339355
6.0
0.5

ResNet18
orig
0.6976
0.891
0.9047
4.471725
1.1067023277282715
6.0
0.1

ResNet50
my
0.762175
0.928725
0.8803
2.53335
1.3395812511444092
4.0
0.5

ResNet50
orig
0.762175
0.928725
0.908575
2.6565
1.1607156991958618
4.0
0.5

So our implementation is missing the coverage guarantee there, and in the Resnet18 case also obtains a different lamda value.

There is a difference in the numpy and torch argsort behavior depending on the dtype.

There was a bug, where the temperature paramter was not properly optimized, when moving to device.


disable hibernation per service gets deactivated after restart

Describe the bug
In Ferdi settings hibernation in general can be activated. Per service hibernation can be disabled (setting "Disable hibernation" in service menu). When this setting gets switched on (i. e. the hibernation is disabled for this service), the next time Ferdi gets restarted, the settign is turned off again (i. e. the hibernation for this service is enabled again).
To Reproduce

Switch on "Service Hibernation" in Ferdi settings.

Disable hibernation for a particular service.
Restart Ferdi.
Check hibernation settings for particular service.

Expected behavior
Service setting isn't changed upon restart.
Desktop:

OS: Ubuntu 18.04.4 LTS
Ferdi Version: 5.5.0-gm.2, 5.5.0

Are you using Ferdi with or without an account?

Are you using Franz's server? If so, this is a duplicate of #702

Are you using Ferdi with or without an account?

Just offline. No account.

I'm using Ferdi with an account and experience the same problem.
Desktop:
OS: Windows 10 Home 1903
Ferdi Version: 5.5.0

I have this issue too, with a Ferdi account on Ferdi's servers.
Mac OS X Catalina (10.15.4)
Ferdi 5.5.0

Interestingly, when I view my data at https://api.getferdi.com/user/data , the disableHibernation setting is correctly set to true/false for each service as I intend -- but when I actually view the settings within Ferdi, all services appear to have it disabled (i.e. hibernation is enabled), as if perhaps the setting just isn't getting loaded correctly?

This also happens to me with both the ferdi and ferd-git archlinux packages (I am not using a Ferdi server).

I'm using Ferdi on macOS Catalina 10.15.4 and on Windows 10 1909.
I also have the problem that the setting is not saved after a restart or is not accessed properly. I use my own instance of the Ferdi server (without changes). In the API-Data everything is stored correctly

Maybe I am completely off the base here, but https://github.com/getferdi/ferdi/blob/2f28ec495d5ba2f9368020391dd52da16ed008cd/src/components/services/content/ServiceView.js#L196 looks at the disableHibernation property this.props.service, which should be a ServiceModel, but https://github.com/getferdi/ferdi/blob/3239172af9fb68226e1e11392b16f833b726ad72/src/models/Service.js has no property named disableHibernation. On the other hand, it does have a property named isHibernationEnabled, but that is not referenced anywhere in the codebase (according to GitHub search) outside of models/Service.js. So how are hibernation settings supposed to be piped into ServiceView?

This is also occuring for me on Windows 10 with a Ferdi account.
Version: 5.5.0 (x64)
Electron: 8.2.3
Node.js: v12.13.0
Platform: win32
The setting will stay enabled until Ferdi is closed, then once reopened I have to set it again.


Warn about external tool risk for base64 encoding a Secret

This is a security-related issue

Problem:
Distribute Credentials Securely Using Secrets suggests using a web tool for encoding a Secret.
Although I have no reason to believe that the tool being recommended is a risk, I would not use a web tool to encode important secrets. So far as I know, there's no connection between the CNCF and the people who run that encoding service.
Proposed Solution:
In my view, this deserves calling out with a caution shortcode that mentions using a local tool, trusted by your OS, as an alternative.
Page to Update:
https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/
/priority important-longterm
and, I think:
/sig usability
/good-first-issue

@sftim I would be handling this. /assign

/assign

Thanks @vishakhanihore !


Stub in basic unicode support for folks that use import unicode_literals

Most of my code imports unicode_literals.  This adds detection and a test.
It should quietly work just like before on python3.

Heyo,
Could you use the six library instead (and test for six.PY2 or six.PY3). It's clearer, already a requirement and imported in most modules.
Thanks
:+1:

I noticed there are some tests missing, but I can build those.
Also, could you create this against branch-0.6.9?

Can do, I've not played with six much.  Looks like I might have an easier approach there.

Nice :+1:


Mod unable to load on 1.20.1

I keep getting the startup error: Mod File needs language provider javafml:47.3 or above to load. We have found 47.
I opened my latest.log and found this line: [08:52:35] [main/ERROR]: Missing language javafml version [47.3,) wanted by BonsaiTrees3-1.20.1-3.3.0.jar, found 47
I'm playing Minecraft 1.20.1 and I'm using BonsaiTrees3-1.20.1-3.3.0.jar
Is there a way to fix this error?

Already fixed on github. I'll push a new release later today.