train_one_epoch中似乎没有进行反向传播更新梯度，请问是哪一行更新了梯度呢

It's in loss_scaler function call at 69 line in engine_train.py, which points to misc.py in util/ folder. You will see the backward call in the class NativeScalerWithGradNormCount at line 255 in misc.py

thank you very much

Then, I also want to ask why the number of training epochs in the code is different from that in the paper. In the paper, it is 5,5,2, but in the training script, it is 5,2,2. In addition, it is noticed that min_lr=1e-2 is greater than lr=1e-5, which leads to the increase of learning rate in adjust_lr_rate process with the number of iteration rounds. Is this the normal phenomena ? However, lr is set to 1e-4 in the paper. May I ask what is the appropriate learning rate?

Then, I also want to ask why the number of training epochs in the code is different from that in the paper. In the paper, it is 5,5,2, but in the training script, it is 5,2,2. In addition, it is noticed that min_lr=1e-2 is greater than lr=1e-5, which leads to the increase of learning rate in adjust_lr_rate process with the number of iteration rounds. Is this the normal phenomena ? However, lr is set to 1e-4 in the paper. May I ask what is the appropriate learning rate?

The code was uploaded from part of our experiments when we were testing the model with different configurations. The configuration that gave us the best results was lr=1e-4 with 5,5 and 2 epochs by stage. We will set the hyper-parameters to the paper's configuration. Thank you for bringing this to our attention.


Implemented additional filter to change the output of the list for linked elements

We want to use different markup for our project. So we need a filter to change the output of show_linked_elements(). I've also added the $items and $params to this filter for additional logical stuff.

Closed with b03cd6f04e194e8b3eb8a2ece92500986a518c25.


Remove constraint and comment on Mailer version in Gemfile

Previously, there was an issue with the mailer gem in release 2.8.0 mikel/mail#1489.
This has been resolved so we can remove the comment and use the latest stable release.
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠
Follow these steps if you are doing a Rails upgrade.

Thanks!
I've just realised that mail is also not a direct dependency, so we can actually remove it from the Gemfile directly. It was only added in: https://github.com/alphagov/whitehall/commit/33ce47b95b8c4cb3f9cca812ba69475b36947f48

Thanks. I'll have a look through the other apps and updated the comment/remove it where possible.


Please check the pre-trained model url.

First of all, thank you for sharing your good research results.
I'm trying to download a pre-trained model, but there seems to be a problem with the address.

My bad. I removed the models by mistake. It should be there now. Thanks for letting me know.


Support secondaryLabel for Select and ComboBox components

Wanted to add suport for secondaryLabel for Select and ComboBox components to help facilitate some figma designs.
https://www.figma.com/file/I9QFAEnOHpurBdOHHUP6y7/PHC-Designs?node-id=3348%3A0

Ah, this reminds me - I need to cut a minor version upgrade.  Maybe once this goes in, I'll do so? Seem reasonable?

@ynotdraw that would be much appreciated!


New version: Seafile.Seafile version 9.0.11

Pull request has been created with komac v2.6.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

@wingetbot run


Flaky build: Failed while installing version: 3.1.100 at path:

Detecting OS platform to find correct download package for the OS.
/home/vsts/work/_tasks/UseDotNet_b0ce7256-7898-45d3-9cb5-176b752bfea6/2.169.1/externals/get-os-distro.sh
Primary:linux-x64
Legacy:ubuntu.18.04-x64
Detected platform (Primary): linux-x64
Detected platform (Legacy): ubuntu.18.04-x64
Downloading: https://download.visualstudio.microsoft.com/download/pr/d731f991-8e68-4c7c-8ea0-fad5605b077a/49497b5420eecbd905158d86d738af64/dotnet-sdk-3.1.100-linux-x64.tar.gz
##[error]Failed while installing version: 3.1.100 at path: /opt/hostedtoolcache/dotnet with error: Could not download installation package from this URL: https://download.visualstudio.microsoft.com/download/pr/d731f991-8e68-4c7c-8ea0-fad5605b077a/49497b5420eecbd905158d86d738af64/dotnet-sdk-3.1.100-linux-x64.tar.gz Error: Error: certificate has expired
Finishing: Use .NET Core sdk 3.1.100

https://dev.azure.com/azure-sdk/public/_build/results?buildId=394547&view=logs&jobId=b08a78d6-c9ce-53c1-53b1-9a5d436f78f6&j=b08a78d6-c9ce-53c1-53b1-9a5d436f78f6&t=05d13a84-370b-58cf-019b-9a3a12c3c6fe
cc @weshaggard @chidozieononiwu

We have an issue filed for this in the DevOps task https://github.com/microsoft/azure-pipelines-tasks/issues/12613.

@chidozieononiwu lets see what options we have to potentially by-pass this task and setup the correct version on the path, or maybe we can just rely on the global.json configuration to pick the correct version (assuming it is already on the image).

Yes we can specify sdk version in globals.json. I don't think we need to use any of the net Core Installer tasks as the version are already installed on the agents. Here is a job I ran without using them https://dev.azure.com/azure-sdk/internal/_build/results?buildId=509589&view=results
I wonder if we also have to set RuntimeFrameworkVersion property explicitly.

I think we still need to set the RuntimeFrameworkVersion as I don't think we can easily control that with global.json.
Can you also do a test that verifies if the version of the SDK we specify in global.json isn't on the machine that it fails correctly?

Yes, it will throw an error if the correct sdk version is not found.
A compatible installed .NET Core SDK for global.json version [3.1.301] from [C:\Git\azure-sdk-for-net\global.json] was not found

As for whether or not the task caches the tools I found https://github.com/microsoft/azure-pipelines-tasks/issues/10405 which states it does cache the tools but only if they were downloaded from that task. It currently does not locate and use any pre-installed tools on the image.


Feature/update expired proposal

Added cronjob to daily bulk-change proposals status to finished whenever their closing dates are passed.
Added ability for contact person to manually change proposals status to finished given adequate criteria.

Thought test coverage might be failing due to the Scheduler... clearly wasn't the case :rofl:


Testing Errors in jetbot_motors.py and jetbot_oled.py

Jetson Nano (Developer Kit Vesion) - Jetpack 4.4.1 [L4T 32.4.4]
I've followed the configuration, installation, and build steps as they were listed, but I get IOError: [Errno 121] Remote I/O error for the following commands.
$ rosrun jetbot_ros jetbot_oled.py
$ rosrun jetbot_ros jetbot_motors.py
I've double checked my connections and tried running my own script to test the qwiic oled. I'm able to connect and use the qwiic oled using the sparkfun-qwiic-micro-oled Python3 library.
import qwiic_micro_oled
my_oled = qwiic_micro_oled.QwiicMicroOled()
my_oled.begin()
my_oled.clear(my_oled.PAGE)
my_oled.print("Hello")
my_oled.display()
However, it doesn't seem to work with the Adafruit_SSD1306 library.
The fact that I'm able to connect and use the qwiic oled leads me to believe that this is not a connection issue... However, I am a beginner to these things so I may be wrong. Please let me know if I should provide more information
The error is as follows for $ rosrun jetbot_ros jetbot_oled.py:
Traceback (most recent call last):
File "/home/jetbot/jbworkspace/catkin_ws/src/jetbot_ros/scripts/jetbot_oled.py", line 43, in
disp.begin()
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 148, in begin
self._initialize()
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 292, in _initialize
self.command(SSD1306_DISPLAYOFF)                    # 0xAE
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 129, in command
self._i2c.write8(control, c)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_GPIO/I2C.py", line 114, in write8
self._bus.write_byte_data(self._address, register, value)
File "/home/jetbot/.local/lib/python2.7/site-packages/Adafruit_PureIO/smbus.py", line 268, in write_byte_data
self._device.write(data)
IOError: [Errno 121] Remote I/O error
This is the output when I run $ i2cdetect -y -r 1.    I think that because they have their own image for SparkFun JetBot:   https://learn.sparkfun.com/tutorials/assembly-guide-for-sparkfun-jetbot-ai-kit/5-software-setup-guide-from-nvidia   Although I think they have their own ROS nodes too.

Hi @asoong98 , I think the SparkFun components may required their own drivers based on Qwiic.   I think that because they have their own image for SparkFun JetBot:   https://learn.sparkfun.com/tutorials/assembly-guide-for-sparkfun-jetbot-ai-kit/5-software-setup-guide-from-nvidia   Although I think they have their own ROS nodes too.

Hi @dusty-nv, thanks for the response. I think you're right, my problem is that my version of the Jetbot uses the Qwiic connectors. I've reflashed my SD card with the SparkFun image, but the jetbot_ros library that they have preinstalled is yours, which is written for Adafruit. Do you happen to know of any Qwiic alternatives? I'll also follow up with SparkFun and see what they say.
Thanks!

Hi @dusty-nv, thanks for the response. I think you're right, my problem is that my version of the Jetbot uses the Qwiic connectors. I've reflashed my SD card with the SparkFun image, but the jetbot_ros library that they have preinstalled is yours, which is written for Adafruit. Do you happen to know of any Qwiic alternatives? I'll also follow up with SparkFun and see what they say.
Thanks!

Hey @asoong98 @dusty-nv ,
I'm encountering this same error. I found a thread on Sparkfun's forums about it here:
https://forum.sparkfun.com/viewtopic.php?f=107&t=54647
Here's the repo they say you need:
https://github.com/sparkfun/Qwiic_SCMD_Py
If you open up this package you'll see that there's a python node seemingly comparable to the jetbot_motors.py node. I've still been struggling with getting this to work for me. I cloned this repo as well as another dependency that was required which is also mentioned on the same page, into my ~/catkin_ws/src. I then performed catkin_make and sourced my devel space before trying to rosrun the proper node from this sparkfun package and I got a "rospack: error no package by that exists" error. I played around by using the rospack command to find the jetbot_ros package and it worked so now I'm mystified completely haha. But maybe we can all put our heads together and figure it out?

Hey @asoong98 @dusty-nv ,
I'm encountering this same error. I found a thread on Sparkfun's forums about it here:
https://forum.sparkfun.com/viewtopic.php?f=107&t=54647
Here's the repo they say you need:
https://github.com/sparkfun/Qwiic_SCMD_Py
If you open up this package you'll see that there's a python node seemingly comparable to the jetbot_motors.py node. I've still been struggling with getting this to work for me. I cloned this repo as well as another dependency that was required which is also mentioned on the same page, into my ~/catkin_ws/src. I then performed catkin_make and sourced my devel space before trying to rosrun the proper node from this sparkfun package and I got a "rospack: error no package by that exists" error. I played around by using the rospack command to find the jetbot_ros package and it worked so now I'm mystified completely haha. But maybe we can all put our heads together and figure it out?

@asoong98 There is a fork of this repo, for the SparkFun hardware: https://github.com/sparkfun/jetbot_ros
I originally, didn't put in changes for the OLED display because the code from the jetbot repo would be running as a background service, on our custom images anyways. Also, having two different sets of code controlling the screen caused issues.
I just started a new branch to allow for the use or either of the Adafruit or SparkFun recommended hardware: https://github.com/sparkfun/jetbot_ros/tree/update-hardware_scan

wow this is awesome. Thanks for reaching out!
On Fri, Jun 25, 2021 at 6:17 AM santaimpersonator @.***>
wrote:

@asoong98 https://github.com/asoong98 There is a fork of this repo, for
the SparkFun hardware: https://github.com/sparkfun/jetbot_ros
I originally, didn't put in changes for the OLED display because the code
from the jetbot repo would be running as a background service, on our
custom images anyways. Also, having two different sets of code controlling
the screen caused issues.
I just started a new branch to allow for the use or either of the Adafruit
or SparkFun recommended hardware:
https://github.com/sparkfun/jetbot_ros/tree/update-hardware_scan
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dusty-nv/jetbot_ros/issues/37#issuecomment-868492714,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADDZ5CPPGCUWA6MVH6LOWPLTUR6U7ANCNFSM4V6VC4SA
.

Well, after testing a debugging a bunch. SparkFun can't provide support for the OLED display with Jetbot ROS.
Unfortunately, Jetbot ROS relies on Python 2, which breaks the utilization of the OLED Python package functionality at multiple points. Our package was intended to be utilized with Python 3, since Python 2 has long been deprecated.

I did my best with a workarounds for the various errors, but now I am at the point where the package just isn't compatible with this implementation.

That being said, tying in the Qwiic SCMD package was straight forward and the code appears to work with our hardware. Currently, I don't have an Adafruit Motor HAT to test. If someone could verify the functionality, that would be awesome. Then I can submit a pull request.
To test the new code implementation, checkout this branch of our repo:

git clone -b update-hardware_scan https://github.com/sparkfun/jetbot_ros
If anyone finds a way to get Jetbot ROS to work with Python 3, let me know.

Aw man, that's too bad!
Forgive me but it's been a while since I've returned to this so I'm just
trying to understand where this is right now. So you're saying I would be
able to get the jetbot to work with the current hardware setup sans the
OLED display?
I'm confused by the repo though, it appears that it's still written only
for adafruit hardware, but the sparkfun  hardware is a different motor
driver, no?
On Mon, Jun 28, 2021 at 11:29 AM santaimpersonator @.***>
wrote:

Well, after testing a debugging a bunch. SparkFun can't provide support
for the OLED display with Jetbot ROS.
Unfortunately, Jetbot ROS relies on Python 2, which breaks the utilization
of the OLED Python package functionality at multiple points. Our package
was intended to be utilized with Python 3, since Python 2 has long been
deprecated.

I did my best with a workarounds for the various errors, but now I
am at the point where the package just isn't compatible with this
implementation.

That being said, tying in the Qwiic SCMD package was straight forward and
the code appears to work with our hardware. Currently, I don't have an
Adafruit Motor HAT to test. If someone could verify the functionality, that
would be awesome. Then I can submit a pull request.
To test the new code implementation, checkout this branch of our repo
https://github.com/sparkfun/jetbot_ros/tree/update-hardware_scan:

git clone -b update-hardware_scan
https://github.com/sparkfun/jetbot_ros
If anyone finds a way to get Jetbot ROS to work with Python 3, let
me know.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/dusty-nv/jetbot_ros/issues/37#issuecomment-869919106,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADDZ5CILV6PEUJLUNXPBCALTVC5R5ANCNFSM4V6VC4SA
.

Our kit uses a different motor driver and OLED display, so the code needs to support the different hardware.
The fork I created provides support for the motor driver. There is no support for the OLED due to the Python 2 issues.

If you want to try playing with the OLED use this branch: https://github.com/sparkfun/jetbot_ros/tree/update-hardware_scan
I just created another branch for just the motor driver code changes (to submit a pull request): https://github.com/sparkfun/jetbot_ros/tree/update-motor_driver_only

@santaimpersonator Your PR https://github.com/dusty-nv/jetbot_ros/pull/42 is very helpful. However, it is based on an older version (ros1 without docker) and could not merge. Let me add support for sparkfun jetbot to the current version (ros2 with docker).


Dry up search routes

While the size diff remains about the same, this PR pulls all search logic into a single search component and creates a reducer and epic specific to the search type (vendors, packages, titles).
I've also introduced some things that might make changing query params later easier, such as keeping the current query in the state for that search type. This allows us to restore a previous search when navigating around the app.
Since ejecting from stripes-connect we can now handle errors better also, although as of right now there is no UI around handling search-related errors.
Screenshots

@cowboyd regarding routes and presentation:
I could pull out renderRecords and instead have it be something like resultsComponent which would receive records, isLoaded, isErrored, etc. via properties.
Then VendorSearch and others would simply render and pass relevant props to Search. We could even skip the VendorSearch component (if we wanted) and just render a Search component within the route components:
<Route path={`${rootPath}/vendors`} exact render={(props) => (
  <SearchRoute
      searchType="vendors"
      endpoint="eholdings/vendors"
      resultsComponent={VendorsSearchResults}
      {/* other relevant properties */}
      {...props}/>
)}/>

Also this way, each view component would be responsible for displaying it's own "not found" and "loading" messages.
And of course the render methods inside the actual Search component could be pulled out into their own set of components.

Updated the reducer to be specific to searches instead of search types and stores each type in a separate key in the state. With this comes a single search component that handles the different search types, with the results components being separate routes connected to the store themselves.
I also decided to go ahead and create a root reducer and epic using combineReducers and combineEpics to initialize our reducers and epics all at once when the app is mounted. This way other routes can access different pieces of our entire app state by connecting to the eholdings slice of the state.
connect(({ eholdings } => ({ ...eholdings.search }))(SearchRoute);

This means that the recent work around selecting and deselecting titles will have to be refactored to utilized our app's root reducer / epic.
While eliminating CSS from the routes, I noticed that a lot of list styles were being repeated in literally every other component. So I also made a single List component and made use of it everywhere it's needed. In turn, this made it so a lot of components only had a single file in their respective directories, so I've moved those into the components root


Can't get Lvgl_Images.ino working on the T4-S3

I can get examples/Lvgl_Images/lvgl_images.ino to work on my T-Display-Amoled S3 Touch, but not on the T4-S3.
I had to modify the code because I kept running out of memory. I can load six images into the S3 Touch and four images into the T4-S3.
When I do this, the S3 displays the six images in a loop when touch the action button, but the T4-S3 only shows a black screen.
I can see in the void setup() section it says:
// Only 1.91 Inch AMOLED board support
I assumed that this just referred to the action button, but I can't get the T4 to display any images at all. Is there any way to get this code working on the T4-S3?
Eventually, I am trying to get the T4-S3 to display a series of JPEG files stored on a microSD card in the SD slot.

I have no problem testing it and it runs fine except for the error described.

Here is an example of an SD card displaying a picture. Regarding ArduinoIDE, you can only reduce pictures and place them in Flash, or use platformio
ImageDecoder

I've added another example showing images from the SD card

Thanks Lewis.
Both of these are really helpful.


Wrong link in overview documentation

Describe the bug
function component link on first line in getting started is page not found
To Reproduce
Steps to reproduce the behavior:

Click on function component link (https://blog.logrocket.com/pure-functional-components)

Expected behavior
page is showing
Screenshots
none
Desktop (please complete the following information):

OS: MacOS
Browser: Chrome
Version: 92

Smartphone (please complete the following information):

Device: none
OS: none
Browser none
Version none

Additional context
Let's found this subject togeter!
if you have any impressed article for this subject, open PR or leave a comment

I think we can replace this to https://reactjs.org/docs/components-and-props.html#function-and-class-components

fit!

I will fix it


[PE-D][Tester C] Command mentioned in UG is identified as invalid - add_tag command

The UG mentions an add_tag command to add a tag to a particular person. But the app identifies the command to be invalid.

Labels: severity.High type.FunctionalityBug
original: Flash161203/ped#3

duplicated issue with another issue#130


python: use built-in importlib.resources where available

What feature or improvement would you like to see?
We currently rely on the backport, but I don't recall quite why we do this

Ah, we support 3.8 still which requires it for the time being


Challenge fails when using the built in aks http application routing

Trying to use certmanager with the built in http routing.
Having issues to validate the domain :
kubectl describe certificate
Name:         tls-secret
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  certmanager.k8s.io/v1alpha1
Kind:         Certificate
Metadata:
Cluster Name:
Creation Timestamp:  2018-07-16T23:34:09Z
Generation:          1
Resource Version:    168137
Self Link:           /apis/certmanager.k8s.io/v1alpha1/namespaces/default/certificates/tls-secret
UID:                 bd0addf5-8950-11e8-b1d5-a675fdfa8b9f
Spec:
Acme:
Config:
Domains:
dinor-aks-ingress.e78c3bbf519a4832a131.northeurope.aksapp.io
Http 01:
Ingress:
Ingress Class:  nginx
Common Name:
Dns Names:
dinor-aks-ingress.e78c3bbf519a4832a131.northeurope.aksapp.io
Issuer Ref:
Kind:       ClusterIssuer
Name:       letsencrypt-prod
Secret Name:  tls-secret
Status:
Acme:
Order:
Challenges:
Authz URL:  https://acme-v02.api.letsencrypt.org/acme/authz/BDh07nYX474w-K40_KOmunwjGw97KaOcNUPQt8YEVBI
Domain:     dinor-aks-ingress.e78c3bbf519a4832a131.northeurope.aksapp.io
Http 01:
Ingress:
Ingress Class:  nginx
Key:              EoP9tLH2bOEDc3gOeHmmrL0Tc-dSpnMkfb3djyddZM0.03h2Bs6lvhBa7vBEMfWSbdn0O7PwLAF0YQDGAwUkdLc
Token:            EoP9tLH2bOEDc3gOeHmmrL0Tc-dSpnMkfb3djyddZM0
Type:             http-01
URL:              https://acme-v02.api.letsencrypt.org/acme/challenge/BDh07nYX474w-K40_KOmunwjGw97KaOcNUPQt8YEVBI/5717255812
Wildcard:         false
URL:                https://acme-v02.api.letsencrypt.org/acme/order/38441855/17820183
Conditions:
Last Transition Time:  2018-07-16T23:45:49Z
Message:               http-01 self check failed for domain "dinor-aks-ingress.e78c3bbf519a4832a131.northeurope.aksapp.io"
Reason:                ValidateError
Status:                False
Type:                  Ready
Events:
Type    Reason       Age   From          Message

Normal  CreateOrder  12m   cert-manager  Created new ACME order, attempting validation...
How can I complete the http-01 challenge ?
Is this even possible ?
the  sample with certmanager (https://docs.microsoft.com/en-us/azure/aks/ingress)  does not show how to do the same with the built in http application routing.
Help is appreciated.

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

ID: ada58160-dc50-b977-d3bc-65f92406e16d
Version Independent ID: 5c596e04-fddb-effe-3b72-575f4df42d4e
Content: Configure ingress with Azure Kubernetes Service (AKS) cluster
Content Source: articles/aks/ingress.md
Service: container-service
GitHub Login: @iainfoulds
Microsoft Alias: iainfou

Thanks for the feedback. We are investigating and will update you shortly.

Can you clarify that the section you are seeing this error is the Install cert-manager portion?
Which command are you running that is throwing this error?

I will close this for now. When ready please let me know and we can reopen and continue.


DRAFT: Bump golang, k8s

Description of the change:
Transfer ansible-operator-plugins changes from https://github.com/operator-framework/operator-sdk/pull/6514 to this repository.

Updated ansible operator code based on https://github.com/kubernetes-sigs/controller-runtime/pull/2427
Bump golang version to v1.20
Bump golang.org/x/net to v0.17.0
Bump Kubernetes dependencies to 1.27

Motivation for the change:
Bump k8s, golang and golang.org/x/net version

@oceanc80 Also realized that we need to bump this: https://github.com/operator-framework/ansible-operator-plugins/blob/cbc2d46705c5beee42021429630c2e184c1283b6/Makefile#L12

@oceanc80 Also realized that we need to bump this:
https://github.com/operator-framework/ansible-operator-plugins/blob/cbc2d46705c5beee42021429630c2e184c1283b6/Makefile#L12

635d52a


Position calendar

In version 2.5.8 works correctly, in 2.5.9 and 2.6 no.

Reproduction
2.6

2.5.8

Your Environment

flatpickr version used: 2.6
Browser name and version: Chrome last
OS and version: W7 x64

+1

+1

This happens if you use altInput You can also see it here: https://chmln.github.io/flatpickr/examples/#human-friendly-dates

+1

Thanks so much for fixing this quickly!


[AVM Module Issue]: Key Vault Secret Reference for Domain Join Extension

Check for previous/existing GitHub issues

[x] I have checked for previous/existing GitHub issues

Issue Type?
Security Bug
Module Name
avm/res/compute/virtual-machine
(Optional) Module Version
No response
Description
Currently when trying to pass key vault secret references for the domain join extension into the Virtual Machine module I am given the error that this parameter is not using a secure decorator which is required for the getSecret function. This means I cannot use the domain join extension as my sensitive domain account needs to be referenced from a key vault.

(Optional) Correlation Id
No response

Hey @Rembrandtastic,
isn't the module expecting set password via the @secure extensionDomainJoinPassword parameter?
https://github.com/Azure/bicep-registry-modules/blob/6221280c9ae09ffe3a55fc3ebd16ab01adc475dc/avm/res/compute/virtual-machine/main.bicep#L149-L155

I think part of the challenge is that there is no User-defined type for the extension - and to make matters worse also not example in the max tests as there is no domain we could 'test join' the deployed VM to.
Any ideas how we could maybe work around this limitation @rahalan?


Partial line highlighting

Could we add support for partial line highlighting?
Suppose I had the following code block...
for(var i = 0; i<= 10; i++) {
}

I'd like to be able to highlight just the initializer (var i = 0;) using something like this:

  Commentary on initializer goes here

Or, perhaps the data-code-focus string just becomes a little more complex instead:

  Commentary on initializer goes here

1[4-13] = Columns 4 thru 13 on row 1

This seems like a useful feature - but we'll have to rework a lot of the internals and the CSS styling. Currently we just wrap each line with a , and do minimal work on the HTML to avoid messing up highlight.js's own  tags. To enable selective highlighting of specific ranges, we'll have to figure out a clean and minimal method of detecting tags and opening them where necessary to avoid overlapping.


Python 3.12?

Just wanted to check if this is supported on all platforms (Linux, OSX, Win) for Python 3.12 yet?
Thanks!

Yes 3.12 has been supported since the v1.1.330.post0 release!


fix: add variants to month classname and adjust initial year

increment variant to monthClassName

start
end
selected

for example, if you pass monthClassName="month", you can style using month_start, month_end and month_selected

use initialYear to control the currentYear showed

CC: @khan-skadi
Resolving the problems that you found. Thanks.


Automated cherry pick of #1400: lbagent: 启动时全量取API数据

Cherry pick of #1400 on release/2.8.0.
#1400: lbagent: 启动时全量取API数据

/lgtm
/approve


Qwikswitch binary sensors

Description:

Final part of the qwikswitch sensors -> binary sensors
Fix up asyncio.Timeout in library

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#5210
Example entry for configuration.yaml (if applicable):
qwikswitch:
  url: ...
  sensors:
    - name: door_contact
      id: '@0c2991'
      channel: 1
      type: imod
      invert: True
      class: door
    - name: some_qc
      id: '@0c2992'
      channel: 1
      type: qwikcord

Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[x] Documentation added/updated in home-assistant.github.io

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[N/A] New files were added to .coveragerc.

Hi kellerza,
Busy testing sensors on the beta release now.
Pity that on restart, one cannot retrieve the current state of the sensors and have to wait for an update from them.  But all in all, so far so good.
Regarding the sensors, have you considered perhaps changing the states from
True / False / None to Closed / Open / None?
I see that you have introduced a binary sensor, but from what I read in the code, the sensor becomes a binary sensor when you specify the 'type' property which would make any sensor (door, imod, PIR, etc) a binary sensor.  Shouldn't the "class" variable influence that decision?  Under which conditions would they not be a binary sensor as I see there is code in place for that that will never execute...or perhaps I am misinterpreting the code?
When HA restarts, before an update from a sensor is received it is in a None state.  Do binary sensors support a None state?   Based on the name "binary sensor", it is either 1 or 0.  And since HA doesn't know the state of the binary sensor on restart, it cannot assume either 1 or 0 as that could influence automations.
Documentation:

The qwickswitch switch documentation on HA needs to be updated.
The main USB Hub documentation still refers to the v1 of the sensor set up.  See the text "In the format of {entity_id: QS_id}. (i.e. {door_sensor: '@0dev03'})"
Perhaps update the Qwikswitch logos to their latest ones?

I got some feedback from Qwikswitch:
The device id for the PIR sensor is 2c
QS also has a 5 and 6 channel imod, but the bit arrangement is a little different than that of the 4 channel imod:
The 4 channel imod that I have is 000 Ch4 0 CH3 CH2 CH1
while the 5 and 6 channel imod is 00 CH6  CH5 CH4 CH3 CH2 CH1
I was hoping to get feedback regarding their temperature / humidity sensors, but their engineer didn't answer my question.  Seems that I might have to purchase the device myself and do the readings and send you the results.  Currently, not planning to purchase a temp/humidity sensor just yet, so once I do, I'll sure to let me know.

@ipodmusicman you should test this PR (and docs one) and not the RC release, since most of your questions should then make sense.
The 5&6 channel imods should be ok, but would need an example packet to add the PIR.

Thanks @MartinHjelmare !

@ipodmusicman hopefully this will go into RC / 0.68.0b1 in the next couple of days.


[C++][Parquet] Expose schema node in ColumnDescriptor

Reporter: Uwe Korn / @xhochy
Assignee: Uwe Korn](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=uwe) / @xhochy
Note: This issue was originally created as PARQUET-605. Please see the migration documentation for further details.

Uwe Korn / @xhochy:
PR: https://github.com/apache/parquet-cpp/pull/99

Wes McKinney / @wesm:
Issue resolved by pull request 99
https://github.com/apache/parquet-cpp/pull/99


Compile Error

YouTube comments keep getting deleted, so I'm leaving it here as an issue.
I found the documentation on Daxa and was able to build it.
I tried to build gvox_engine in the same way, but the following error occurred.
================
-- Running vcpkg install
Fetching registry information from https://github.com/GabeRundlett/vcpkg-registry (HEAD)...
Error: No version entry for daxa at version nightly#50.
Available versions:
nightly#76
0.1.0
0.0.1
See vcpkg help versioning for more information.
Error: No version entry for gvox at version nightly#32.
Available versions:
nightly#64

This is a real issue, that I need to fix with my vcpkg registry... I've been lazy about it, since what you can do to fix it is just run vcpkg x-update-baseline in the project root.

Daxa shouldn't have any breaking changes, AFAIK, so this should be fine to run. If you don't want to add vcpkg to your path, you can manually update the hash inside the vcpkg-configuration.json to match that of the latest git hash on the registry, which is also linked in that file

I executed the command "vcpkg x-update-baseline" and this time I encountered the following error message.

-- Running vcpkg install
Fetching registry information from https://github.com/GabeRundlett/vcpkg-registry (HEAD)...
Error: daxa:x64-windows@nightly#76 does not have required feature glslang
-- Running vcpkg install - failed
CMake Error at D:/dev/utils/vcpkg/scripts/buildsystems/vcpkg.cmake:883 (message):
vcpkg install failed.  See logs for more information:
D:\VoxelProjects\Gabe\gvox_engine.out\cl-x86_64-windows-msvc\vcpkg-manifest-install.log
Call Stack (most recent call first):
D:/Program Files/CMake/share/cmake-3.25/Modules/CMakeDetermineSystem.cmake:124 (include)
CMakeLists.txt:5 (project)
CMake Error: CMake was unable to find a build program corresponding to "Ninja Multi-Config".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!

Ah. I guess I haven't pushed in a while. Let me push my local changes, give me a minute...

I pushed. It should build now. That's my bad!!

I am sorry but I failed again.
-- Running vcpkg install
Fetching registry information from https://github.com/GabeRundlett/vcpkg-registry (HEAD)...
Detecting compiler hash for triplet x64-windows...
A suitable version of powershell-core was not found (required v7.2.8) Downloading portable powershell-core 7.2.8...
Downloading powershell-core...
https://github.com/PowerShell/PowerShell/releases/download/v7.2.8/PowerShell-7.2.8-win-x86.zip->D:\dev\utils\vcpkg\downloads\PowerShell-7.2.8-win-x86.zip
Downloading https://github.com/PowerShell/PowerShell/releases/download/v7.2.8/PowerShell-7.2.8-win-x86.zip
Extracting powershell-core...
error: while detecting compiler information:
The log file content at "D:\dev\utils\vcpkg\buildtrees\detect_compiler\stdout-x64-windows.log" is:
-- Found external ninja('1.11.0').
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:112 (message):
    Command failed: "D:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" -v
    Working Directory: D:/dev/utils/vcpkg/buildtrees/detect_compiler/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      D:\dev\utils\vcpkg\buildtrees\detect_compiler\config-x64-windows-rel-CMakeCache.txt.log
      D:\dev\utils\vcpkg\buildtrees\detect_compiler\config-x64-windows-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_configure_cmake.cmake:310 (vcpkg_execute_required_process)
  scripts/detect_compiler/portfile.cmake:18 (vcpkg_configure_cmake)
  scripts/ports.cmake:147 (include)

error: vcpkg was unable to detect the active compiler's information. See above for the CMake failure output.
-- Running vcpkg install - failed
CMake Error at D:/dev/utils/vcpkg/scripts/buildsystems/vcpkg.cmake:883 (message):
  vcpkg install failed.  See logs for more information:
  D:\bjProjects\gvox_engine\.out\cl-x86_64-windows-msvc\vcpkg-manifest-install.log
Call Stack (most recent call first):
  D:/Program Files/CMake/share/cmake-3.25/Modules/CMakeDetermineSystem.cmake:124 (include)
  CMakeLists.txt:5 (project)

CMake Error: CMake was unable to find a build program corresponding to "Ninja Multi-Config".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!

I have no clue. What's in those files?
D:\dev\utils\vcpkg\buildtrees\detect_compiler\config-x64-windows-rel-CMakeCache.txt.log
D:\dev\utils\vcpkg\buildtrees\detect_compiler\config-x64-windows-out.log

Thank you for your prompt response.
After deleting the .out folder, I built again and the build succeeded.
But this time I got the following runtime error:
The procedure entry point vkCmdEndRendering could not be located in the dynamic link library .out\cl-x86_64-windows-msvc\Debug\gabe_voxel_game.exe
I'm using version 1.3.236 of the Vulkan SDK and other projects are working fine.

That is an insane error, I have never seen that before. What GPU do you have? Sorry for the late response, I'm just waking up now

I tested on 1050 and 2060 super and the results were the same for both graphics cards.

when is the last time you updated your drivers?

I had tested with the latest version 528.34.
I only removed the display driver and reinstalled the same version.
Then gvox_engine just worked.
What a weird situation!

Alright, I'm glad it worked.. I wonder what was wrong with your driver before... I'm going to close this now


[docs] updated HDFS guide

Refer to https://github.com/Microsoft/LightGBM/issues/1555#issuecomment-443450579.

Updated based on the comments from #2046.
Not sure whether it's needed to put the path into quotes in general example as it was stated in https://github.com/Microsoft/LightGBM/issues/2046#issuecomment-472332615.
I suppose that after merging this, #1555 can be closed. WDYT?

ping @guolinke @chivee for the review

@guolinke Can we close this issue #1555 after merging?

Sure

Closed #1555.


Question on Submitting a custom msg type generated from stargate

When I try to submit a custom msg, cosmjs API tries to get the account details by using the default QueryClientImpl which uses the following code
        const data = exports.QueryAccountRequest.encode(request).finish();
        const promise = this.rpc.request("cosmos.auth.v1beta1.Query", "Account", data);
        return promise.then((data) => exports.QueryAccountResponse.decode(new minimal_1.default.Reader(data)));
    }```

How can I associate my own request for getting account instead of "cosmos.auth.v1beta1.Query", "Account"

Why would you want to do that?
I assume you use signAndBroadcast or something like that, which under the hood queries account number, sequence and chain ID.

Yes.. We do call signandbroadcast which is what gets called from the vurx actions js files generated by starport build. Our account is custom so was trying to not re-write entirely

I.e. you need a custom response encoding here? https://github.com/cosmos/cosmjs/blob/main/packages/stargate/src/accounts.ts#L44-L84 Or you don't have the default query at all?

You are right.. there is no default query itself.. there is a different query that returns a type that implements IAccount interface

Why do you not implement the default query?

We had our own Auth module, and the query path is custom not the default cosmos. I guess I am out of luck here :-)

In #1071 you see initial effort to organize the code in a way that is much more aligned with the Cosmos SDK module system. For now it only moves files and symbols around but mid term it will become much easier to assemble your own high level client when looking at the SigningStargateClient as an example. However, for now I don't see us modifying SigningStargateClient in a way that makes such core components that have great acceptance across chains swapable. So your best bet is probably a clone of SigningStargateClient/StargateClient which uses lower level CosmJS components as a dependency but is otherwise maintained by you for your chain.

Thanks .. appreciate your insights. I am closing the ticket


A gift from China 10 years ago

https://www.d99net.net/News.asp?id=62

Thanks for sharing this! I did not know about this tool and will do more profound research about this to improve this attack detection (and find new ways to bypass d99 👍🏼


Details Description text styling

Feature
Proposal Details Markdown text
App

[X] Admin
[ ] Summon
[ ] Hub
[X] Toolbox

Expected Behavior
After the update to support markdown the text in desciptions is too small and does not match up with the other text in the theme. I think this may require some custom styles to get the html generated from markdown in line with the theme.
Actual Behavior
text is small and hard to read and inherits the default p tag styles
Steps to Reproduce
example proposal: https://admin.daohaus.fun/#/molochV3/0xa/0xf5d6b637a9185707f52d40d452956ca49018247a/proposal/41
Browser
No response
Screenshots and Context

this is using react markdown. potentially could use the className param to add a wrapper that could be styled
https://github.com/remarkjs/react-markdown#fields-1

code in reference https://github.com/HausDAO/monorepo/blob/develop/libs/moloch-v3-macro-ui/src/components/ProposalDetails/ProposalDetails.tsx#L64

@dekanbro want to take this one as well!

i added a fix on this. #454


Typo under Test it out

'Opening the data cache should should the data stored for each city.'
..should show the data...

Hi!
Thanks for the feedback. I've rewritten the codelab from scratch and believe I have fixed this issue. The code has been updated, and the new guide is now live.
If you find any issues with the new codelab, please let us know!
Thanks!


Issues with label wrapper styles.

I've a custom field using ui.bootstrap datepicker. The option.type is "datepicker" so it doesn't work with this line here:
module.exports = "\n  {{to.label}}\n\n<formly-transclude></formly-transclude>\n";

I had to manually add my field to the array on ng-style so the label will work as expected.
module.exports = "\n  {{to.label}}\n\n<formly-transclude></formly-transclude>\n";

Is there any other way to deal with this? I understand it's nessesary because of checkboxes or radios. But it ends up limiting my avility to extend and create more fields.
Thank you.

The easiest way of doing this and much more simpler would be creating two separate wrappers.
So original types like input, textarea, select and datepicker will have let's call it labelSrc
and other fields label.
So label will have ng-style (in that case just style attribute) but labelSrc won't.
What do you think?

I think that could solve the problem. But also it will be confusing having 2 diferent label wrappers.
Are you thinking on doing this for this for this library or is a recommendation for this specific case?
Thanks.

It much more simpler with templates like lumx and bootstrap. Label wrapper is independent from whichever type you use. It has own class and style, correct in any case.
In material templates it is much more complicated because mdInputContainer contains label.
I think it could be done with css class with proper selectors but I'm trying to avoid using css files in that package.
I'm going to think about it and try few things.
Maybe you have an idea to do it nicely?


Choose state management lib

Redux or MobX

I have worked with Redux but did hear good things about MobX how you write less boilerplate and it is very easy to get going. Both can be used but I will try out MobX  with this one to save time.


Dropdown not visible in IBP on mobile

We're using scoped css (use-green) on our react MFE on IBP, and when you click the dropdown-button on mobile it appears at the bottom of the screen, hidden behind the mobile browser menu.
MFE: https://apps.tst.sebank.se/cps/ibp/wow/3000/3500/wow3564.aspx?context=ibp

@antonseb The problem appears to be that your application is running in an iframe that is much higher than the viewport. The dropdown menu appears at the bottom of of its context viewport (since it has position: fixed; bottom: 0;), which in this case ends up being outside the screen due to the height of the iframe.
I'm not sure if you have any influence over the styling of the iframe, but if you do, try to make sure the iframe is never higher than the device viewport by adding max-height: 100vh.
Otherwise, a solution could be to add custom styling to the dropdown menu itself. For example:
._popover.active {
  position: static;
}

This will make it appear statically below the dropdown button, pushing everything else down.

I'm not sure why the dropdown has this design. I can't find it in Figma.
Will check with designers regarding this current design and see if we it should be changed to a "normal dropdown".
This would solve the problem we have with tall iFrames.

@vsjolander The reasoning behind placing selections at the bottom of the screen is that that's where the thumb is. The same goes for activity panel and, lately, the address bar in Safari. It's just better usability.

@JohanObrink isn't the thumb by the dropdown button/trigger since you just pressed it? I can also see usability issues if the listbox is long. Maybe a native select element would be to prefer as it's more accessible in general (it can overlay the address bar on ios i realized now).
IOS also moved to a more traditional dropdown list box for select elements form the spinning wheel stuff they had going before.
Anyways... we don't have this slide-up designed or documented anywhere for dropdown so we should bring this up at a Green coaching! You should join and advocate you case 😃

@vsjolander I don't care enough to argue anything. This was a discussion lead by Robert at the time of implementing it. I am happy eiother way 😄
So if changing the behaviour fixes the current situation in IFrame settings, maybe we should just go traditional for now and re-open the discussion later on?

@vsjolander @JohanObrink There is a design spec in DL actually, but it's under "Fold-out": https://designlibrary.sebgroup.com/components/component-foldout
I remember that we had discussions around this early on, where we determined that the drop-down and fold-out designs are very similar in appearance, and so they should be implemented as a single component for both use cases.
That conclusion may have been flawed from an accessibility perspective though. Even though they look similar, we probably still need to differentiate between dropdowns used for data entry in a form and dropdowns used as menus for selecting an action.

This issue seems to be fixed now, I can't reproduce it anymore.


Refactor effdet dataloaders wrapper and fix the image sizes passed to effdet

I started working on a refactor of effdet dataloaders. I noticed many common parts in the build_train_batch, build_valid_batch and build_infer_batch and came up with an idea to unify this API. There is a main loop over all records in order to extract certain information about the image tensor: image itself, bboxes and labels, image sizes and scales. Whether we want to extract certain parameters depends on the train/valid/infer part.
Main change is the process_record function that will be used in single iteration over all records (instead of doing it twice now, second time if we need to extract additional info not handled by the base build_train_batch function).
I also removed the tensor casting from the process_record function in order to improve code readability. The idea is to handle to_tensor casting by collate_records.
This is a draft PR. Looking forward for your thoughts and suggestions!

I'll take a look at this today =)

So as I changed Tensor to tensor invocations, the effdet tests complain that the type is wrong, "should be tf.float32". Changing it back to what it was passes the tests. Don't know yet why this is happening

Oh this missing space in COCOMetric test keeps popping up, its really annoying, sometimes it passes others it doesn't. Any idea how to fix this for good?

I know what this is related to, the original pycocotools has the space. Because of mmdet we started using their fork mmpycocotools and this one doesn't have spaces
The tests are done using mmpycocotools, do you by any change have pycocotools locally?

Yes, I do have it locally. Waiting for resolution of those errors before merge?

Yes, I do have it locally
pycocotools or mmpycocotools?

For the errors just remove the spaces

I think we are set.


HHH-10635 - EntityManager.isOpen() should respect status of Session

HHH-10635

Looks good, we should integrate it.

applied to 5.1


Fix #11591 ActionFilter wildcard

Q
A

Is bugfix?
no

New feature?
yes

Breaks BC?
no

Tests pass?
yes

Fixed issues
#11591

Merge please! :-)

@klimov-paul thanks!

@klimov-paul so in trying this I think I have found a bug. It is this line:
https://github.com/yiisoft/yii2/blob/e49bc29aa80a382a7de22835a76693bc7d25790e/framework/base/ActionFilter.php#L129
I think it should be $id = $action->getUniqueId();
Otherwise, say a controller that all other controllers extend from has behaviours() as:
        return [
            'guests' => [
                'class' => 'app\filters\GuestsFilter',
            ],
            'suspended' => [
                'class' => 'app\filters\SuspendedFilter',
                'except' => [
                    'closed/suspended/*',
                ],
            ],
        ];

The except clause, when this behaviour is activated from app/closed/SuspendedController::indexAction(), will run fnmatch('closed/suspended/*', 'index') instead of fnmatch('closed/suspended/*', 'closed/suspended/index').

This is expected behavior.

@klimov-paul then the tests are disingenuous... the environment is virtual and the action id is set to something that can never apply if the action is a concrete action of a controller. (actionTest\index() ?)

Tests are simpified: they emulates the situation, when filter attached to the module not to a controller.
Still, if you have an idea for the test refactoring - you are welcome to open a PR.


Mandley Cant Open

why

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

ID: 3a785ccb-81b8-8c93-62a1-f76f392df9c1
Version Independent ID: fd7daa29-8c7f-db4b-fa4e-246b9af2c0fd
Content: ActiveX component can't create object or return reference to this object (Error 429)
Content Source: Language/Reference/User-Interface-Help/activex-component-can-t-create-object-or-return-reference-to-this-object-error-4.md
Product: office
GitHub Login: @o365devx
Microsoft Alias: o365devx

@Mhafizulfurqan Thanks for your feedback. We use Github issues for documentation bugs, not for developer support. Please try the VBA developer community on Stack Overflow (https://stackoverflow.com/questions/tagged/vba) where you can get help from actual developers. If you find a bug in our documentation, please let us know. Thanks!


[Bug]: can't pass classes to client constructor with "type": "module"

What happened?
I'm working on an esm-only project (one of my dependencies requires it and it's viral so I must use it too) and tried passing a glob that's used to find @Discord() classes.
Node complains about require not being supported with "type": "module" (I believe this is the problematic code).
I also can't seem to pass a list of class objects anymore (coming from @typeit/discord), is that on purpose? Because that would solve this issue as well.
Reproduction
In package.json:
// ...
"type": "module",
// ...

In src/index.ts:
import discordx from 'discordx';
const {Client} = discordx;

const discordClient = new Client({
  botId: 'test',
  classes: [path.resolve(getDirname(), 'discords/*.{ts,js}')], // getDirname is __dirname for esm, you can assume it works the same.
  silent: false,
  intents: [/* ... */],
});

Run like this:
$ node --loader ts-node/esm/transpile-only src/index.ts

Actually doing the dynamic loading of classes shouldn't be too hard (just use import()), but I'm not sure how I would conditionally do this or require() in commonjs mode.
Maybe use the newer syntax and rely on the typescript compiler to produce commonjs-compatible code?
Version
Dev
Relevant log output
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/ohmree/code/js/contest_buddy/packages/server/src/discords/app-discord.ts
require() of ES modules is not supported.
require() of /home/ohmree/code/js/contest_buddy/packages/server/src/discords/app-discord.ts from<EMAIL_ADDRESS>is an ES module file as it is a .ts file whose nearest parent package.json contains "type": "module" which defines all .ts files in that package scope as ES modules.
Instead change the requiring code to use import(), or remove "type": "module" from /home/ohmree/code/js/contest_buddy/packages/server/package.json.

Code of Conduct

[X] I agree to follow this project's Code of Conduct

In order to prepare for TypeScript 4.5, we need to remove all require statements unless defined in a .cts file and compiled with TS 4.5.
All imports should define filetype:
import { helper } from "./foo.js";
OR
import foo from "./foo.cjs"; for a Common JS import.
Work is required to change this, especially globbing,
for example for glob:
import {glob} from "glob";

to add to this:
imports.forEach((file) => require(file)); can become:
 const pArr = imports.map(file=> import(path.resolve(file)));
return Promise.all(pArr);

@oceanroleplay i would add this to the project for Discordx 9.0

What about passing the actual imported classes instead of glob strings? Is that a planned feature or was it removed for a reason?

What about passing the actual imported classes instead of glob strings? Is that a planned feature or was it removed for a reason?

passing the actual class? you mean hard coding them? glob isn't an issue, i should fix this tonight for you

What about passing the actual imported classes instead of glob strings? Is that a planned feature or was it removed for a reason?

passing the actual class? you mean hard coding them? glob isn't an issue, i should fix this tonight for you

Something like this:
// discords/app-discord.ts
abstrac

What about passing the actual imported classes instead of glob strings? Is that a planned feature or was it removed for a reason?

passing the actual class? you mean hard coding them? glob isn't an issue, i should fix this tonight for you

Something like this:
// discords/app-discord.ts
@Discord()
abstract class AppDiscord { /* ... */ }
export default AppDiscord;
// index.ts
import AppDiscord from 'discords/app-discord.js';
const client = new Client({classes: [AppDiscord]});

because hard coding a massive list of files is a pain, and importing them all at startup can cause serious circular dependency issues

What about passing the actual imported classes instead of glob strings? Is that a planned feature or was it removed for a reason?

passing the actual class? you mean hard coding them? glob isn't an issue, i should fix this tonight for you

Something like this:
// discords/app-discord.ts
@Discord()
abstract class AppDiscord { /* ... */ }
export default AppDiscord;
// index.ts
import AppDiscord from 'discords/app-discord.js';
const client = new Client({classes: [AppDiscord]});

because hard coding a massive list of files is a pain, and importing them all at startup can cause serious circular dependency issues

I see. Well, as long as there's a legitimate reason for this change it's okay.

been meaning to fix this for a while. i will raise a PR tonight and hopefully get this sorted for ES modules only people (assuming DJS or any module from any plugin we use doesn't have a require statement) and if it does, then we will have to wait until TS 4.5, i have this issue with NodeFetch

@ohmree one question. you are trying to work on esm only project but you should know that, discordx and discord.js are commonjs modules.

@ohmree one question. you are trying to work on esm only project but you should know that, discordx and discord.js are commonjs modules.

Idk, I just write code like I normally would and fix it whenever the compiler yells at me.
Sometimes (like with discordx and prisma iirc) I need to change this:
import {Foo} from 'bar';

Into something like this:
import bar_pkg from 'bar';
const {Foo} = bar_pkg;

And then everything just works™

given the config of:
"type": "module",

in package.json then applying:
"module": "ES2020",

in tsconfig.json
It seems rather hard to get a PURE ES node working in discordx. not alone the strange errors i get like CustomError: Cannot find module 'C:\Users\Victorique\IdeaProjects\discord.ts\src\Client' imported from C:\Users\Victorique\IdeaProjects\discord.ts\examples\slash\Main.ts using node --loader ts-node/esm examples/slash/Main.ts
it would seem ES nodes are not even fully supported in TS until TS 4.5 https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#ecmascript-module-support-in-nodejs
For this reason, until 4.5 is out, this task will be TODO

given the config of:
"type": "module",

in package.json then applying:
"module": "ES2020",

in tsconfig.json
It seems rather hard to get a PURE ES node working in discordx. not alone the strange errors i get like CustomError: Cannot find module 'C:\Users\Victorique\IdeaProjects\discord.ts\src\Client' imported from C:\Users\Victorique\IdeaProjects\discord.ts\examples\slash\Main.ts using node --loader ts-node/esm examples/slash/Main.ts
it would seem ES nodes are not even fully supported in TS until TS 4.5 https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#ecmascript-module-support-in-nodejs
For this reason, until 4.5 is out, this task will be TODO

I'm not quite sure I get you.
Previously (with @typeit/discord) I would just import the classes and do new Client({classes: [Discord1, Discord2, ...]}) and it worked fine under a pure esm environment with this config:
// package.json
...
"type": "module",
...

// tsconfig.json
...
"target": "ESNext",
"module": "ESNext",
...

I'd like to look into this so if you could set up a small reproduction repo it'd be really nice.
Unless you're 100% sure typescript is the blocker here, in which case you probably know better than me (but I'd still be interested in looking into this :P).

given the config of:
"type": "module",

in package.json then applying:
"module": "ES2020",

in tsconfig.json
It seems rather hard to get a PURE ES node working in discordx. not alone the strange errors i get like CustomError: Cannot find module 'C:\Users\Victorique\IdeaProjects\discord.ts\src\Client' imported from C:\Users\Victorique\IdeaProjects\discord.ts\examples\slash\Main.ts using node --loader ts-node/esm examples/slash/Main.ts
it would seem ES nodes are not even fully supported in TS until TS 4.5 https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#ecmascript-module-support-in-nodejs
For this reason, until 4.5 is out, this task will be TODO

I'm not quite sure I get you. Previously (with @typeit/discord) I would just import the classes and do new Client({classes: [Discord1, Discord2, ...]}) and it worked fine under a pure esm environment with this config:
// package.json
...
"type": "module",
...

// tsconfig.json
...
"target": "ESNext",
"module": "ESNext",
...

I'd like to look into this so if you could set up a small reproduction repo it'd be really nice. Unless you're 100% sure typescript is the blocker here, in which case you probably know better than me (but I'd still be interested in looking into this :P).
EDIT: I could also post my code if it's of any interest. An older version is on github atm but I've hacked on it quite a lot since then and I have terrible commit etiquette so it's a bit of a mess right now.

you can just import all the files in your index and don't use classes, it will work the same.

I am not sure, how pure esm project work with commonjs dependencies.

@VictoriqueMoe at final thinking, we can not target the project to esm.
@ohmree I could not reproduce the error mentioned in this issue, can you provide full code to reproduce this.?

importing files like this work for me
import "./discords/common.js";

to add to this: imports.forEach((file) => require(file)); can become:
const pArr = imports.map(file=> import(path.resolve(file)));
return Promise.all(pArr);

Mentioned improvement has been pushed to main

I am not sure, how pure esm project work with commonjs dependencies.

I tried, but I don't think a pure ESM package can be created with commonjs dependencies. so I am gonna close this issue for now and whenever in future it is possible to change our module to commonjs, we will do it without delay. But it's not the time.

pardon me, this should be resolve.

@ohmree can you join our discord server for more talk?

While testing ESM support, I discovered that discordjs voice was not yet supported by ESM, so keep an eye out for that.


Scan Barcode

Discussed in https://github.com/inventree/InvenTree/discussions/3126

Originally posted by lookme2 June  3, 2022
I'm not sure this is a bug or not.  So I thought I would start here.  After updating to 7.0 and trying to scan a barcode I get "Server error"
The question is do I have something setup wrong?  I seem to remember something about this moving to a plug in but cant seem to find that in the docs
Frankie

@lookme2 you should be able to view the error message in the admin view:  https://inventree.readthedocs.io/en/latest/settings/logs/
Can you please post the error message here?

yes I have updated to 0.7.0 and when I scan via the web page I get "Server error" back. The scan does not work.

Are you using the main barcode scanning view from the navbar? And using the USB scanner functionality, or the "scan via webcam" feature?

@SchrodingersGat I am away from the server until Friday.  I will post the log file then.

@SchrodingersGat  here is what I see as the error from the admin page.
Environment:
Request Method: POST
Request URL: http://<IP_ADDRESS>:8000/api/barcode/
Django Version: 3.2.13
Python Version: 3.8.10
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'user_sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.sites',
'maintenance_mode',
'build.apps.BuildConfig',
'common.apps.CommonConfig',
'company.apps.CompanyConfig',
'label.apps.LabelConfig',
'order.apps.OrderConfig',
'part.apps.PartConfig',
'report.apps.ReportConfig',
'stock.apps.StockConfig',
'users.apps.UsersConfig',
'plugin.apps.PluginAppConfig',
'InvenTree.apps.InvenTreeConfig',
'django_filters',
'rest_framework',
'rest_framework.authtoken',
'corsheaders',
'crispy_forms',
'import_export',
'django_cleanup.apps.CleanupConfig',
'mptt',
'markdownx',
'markdownify',
'django_admin_shell',
'djmoney',
'djmoney.contrib.exchange',
'error_report',
'django_q',
'formtools',
'allauth',
'allauth.account',
'allauth.socialaccount',
'django_otp',
'django_otp.plugins.otp_totp',
'django_otp.plugins.otp_static',
'allauth_2fa',
'sslserver']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'x_forwarded_for.middleware.XForwardedForMiddleware',
'user_sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'InvenTree.middleware.InvenTreeRemoteUserMiddleware',
'django_otp.middleware.OTPMiddleware',
'InvenTree.middleware.CustomAllauthTwoFactorMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'InvenTree.middleware.AuthRequiredMiddleware',
'InvenTree.middleware.Check2FAMiddleware',
'maintenance_mode.middleware.MaintenanceModeMiddleware',
'error_report.middleware.ExceptionProcessor']
Traceback (most recent call last):
File "/home/prism/Inventory/inventree-env/lib/python3.8/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
File "/home/prism/Inventory/InvenTree-0.7.0/InvenTree/plugin/base/barcodes/api.py", line 59, in post
plugins.append(InvenTreeBarcodePlugin())
File "/home/prism/Inventory/InvenTree-0.7.0/InvenTree/plugin/base/barcodes/mixins.py", line 46, in init
super().init()
File "/home/prism/Inventory/InvenTree-0.7.0/InvenTree/plugin/plugin.py", line 224, in init
self.define_package()
File "/home/prism/Inventory/InvenTree-0.7.0/InvenTree/plugin/plugin.py", line 336, in define_package
package = self._get_package_metadata() if self._is_package else self._get_package_commit()
File "/home/prism/Inventory/InvenTree-0.7.0/InvenTree/plugin/plugin.py", line 324, in _get_package_commit
return get_git_log(self.def_path)
File "/home/prism/Inventory/InvenTree-0.7.0/InvenTree/plugin/helpers.py", line 112, in get_git_log
output = str(subprocess.check_output(command, cwd=os.path.dirname(settings.BASE_DIR)), 'utf-8')[1:-1]
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 493, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
Exception Type: FileNotFoundError at /api/barcode/
Exception Value: [Errno 2] No such file or directory: 'git'

Are you running in docker, or a "bare metal" install?

@lookme2 git is missing on the system - curious that this point is reached. Could you:
A) install git
B) post the Version Information?

Version Information:
InvenTree-Version: 0.7.0
Django Version: 3.2.13
Database: sqlite3
Debug-Mode: True
Deployed using Docker: False
@matmair  this was working fine until I updated to 0.7.0.  I will install git.

@lookme2 is it working now?

@lookme2 I think this should be sorted now, please let us know if installing git did not fix the issue.


Comments for  posts backend / API support

Closes #111
Adds support to

create a comment (on a post or threaded 1 level deep)
get nested tree of comments when getting post details
get counts of comments when getting list of posts

todo:

delete comment
update comment
optimize mongo aggregate query for comments tree count (instead of using 2 separate queries)
... potentially improve the data model and performance, feedback welcome

I will merge this now, we can double check the integration with the frontend for the functionality, still need to update the auth middleware with token check for all the routes too


Test that a valid leader in a record can be identified

The leader_errors? method should return false for a record with a valid leader.

Closed by #36.


Add create_new() to RepoOpener

The RepoOpener should have a create_new() function similar to the OpenOptions for File. By this means, no repo is allowed to exist at the target location before calling this function.

The new create_new function has been added to RepoOpener in 8764b2a6c5beaa49e0e1b2490fa2c2208fd0ca0a.
Example:
RepoOpener::new().create_new(true).open(&path, &pwd)?;


Important feature to add - Automate scans by passively trigger active payloads based on conditions

While crawling, passively trigger active payloads based on conditions >>> Example: While I perform the crawling process, it will fire payloads based on the conditions (such as SQLI payloads against each parameter or path discovery, etc.
In the photo (from other extension) you can see that I match again all param values and replace them with XSS payload.
The process is performed automatically via crawling or other scan methods.

Thanks.

Hi,
Yes sure, In the future when I have more time I will implement it.
Thanks.

I have implemented it :)


Reconnect doesn't work very well

I have hubot with slack adapter and it fails to reconnect after connection loss.
# docker logs -f slack-hubot

><EMAIL_ADDRESS>start /app
> coffee ./node_modules/.bin/hubot --adapter slack

Sat, 13 Dec 2014 13:41:55 GMT connect deprecated multipart: use parser (multiparty, busboy, formidable) npm module instead at node_modules/hubot/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js:56:20
Sat, 13 Dec 2014 13:41:55 GMT connect deprecated limit: Restrict request size at location of read at node_modules/hubot/node_modules/express/node_modules/connect/lib/middleware/multipart.js:86:15
[Sat Dec 13 2014 13:41:55 GMT+0000 (UTC)] DEBUG Loading adapter slack
[Sat Dec 13 2014 13:41:55 GMT+0000 (UTC)] INFO Connecting...
[Sat Dec 13 2014 13:41:57 GMT+0000 (UTC)] INFO Logged in as hubot of topface, but not yet connected
[Sat Dec 13 2014 13:41:58 GMT+0000 (UTC)] INFO Slack client now connected
[Sat Dec 13 2014 13:41:58 GMT+0000 (UTC)] DEBUG Loading scripts from /app/scripts
[Sat Dec 13 2014 13:41:58 GMT+0000 (UTC)] DEBUG Parsing help for /app/scripts/deploy.coffee
[Sat Dec 13 2014 13:41:58 GMT+0000 (UTC)] DEBUG Loading scripts from /app/src/scripts
[Sat Dec 13 2014 13:41:58 GMT+0000 (UTC)] DEBUG Loading hubot-scripts from /app/node_modules/hubot-scripts/src/scripts
[Sat Dec 13 2014 13:41:58 GMT+0000 (UTC)] DEBUG Parsing help for /app/node_modules/hubot-scripts/src/scripts/applause.coffee
[Sat Dec 13 2014 13:41:58 GMT+0000 (UTC)] DEBUG Loading external-scripts from npm packages
[Sat Dec 13 2014 13:41:58 GMT+0000 (UTC)] DEBUG Parsing help for /app/node_modules/hubot-help/src/help.coffee
[Sat Dec 13 2014 13:41:58 GMT+0000 (UTC)] DEBUG Parsing help for /app/node_modules/hubot-google-images/src/google-images.coffee
[Sat Dec 13 2014 13:42:02 GMT+0000 (UTC)] DEBUG Received message: '<censored>' in channel: stage-deploy, from: bobrik
[Sat Dec 13 2014 13:47:50 GMT+0000 (UTC)] DEBUG Received message: '<censored>' in channel: stage-deploy, from: ivanpochtar
[Sat Dec 13 2014 13:47:50 GMT+0000 (UTC)] DEBUG Message '<censored>' matched regex //^\s*[@]?hubot[:,]?\s*(?:deploy me (.*)$)/i/
[Sat Dec 13 2014 13:47:50 GMT+0000 (UTC)] DEBUG Sending to stage-deploy: <censored>
[Sat Dec 13 2014 13:52:06 GMT+0000 (UTC)] DEBUG Sending to stage-deploy: <censored>
[Sat Dec 13 2014 13:53:42 GMT+0000 (UTC)] DEBUG Received message: '<censored>' in channel: stage-deploy, from: ivanpochtar
[Sat Dec 13 2014 15:14:46 GMT+0000 (UTC)] DEBUG Received message: '<censored>' in channel: tf-mobile-random, from: topolog
[Sat Dec 13 2014 15:14:56 GMT+0000 (UTC)] DEBUG Received message: '<censored>' in channel: tf-mobile-random, from: topolog
[Sat Dec 13 2014 17:59:35 GMT+0000 (UTC)] DEBUG Received message: '<censored>' in channel: general, from: tony
[Sat Dec 13 2014 22:38:26 GMT+0000 (UTC)] DEBUG Received message: '<https://vk.com/public3861590?w=wall-3861590_1319>' in channel: random, from: amberovsky
[Sat Dec 13 2014 22:53:33 GMT+0000 (UTC)] ERROR Last pong is too old: 14.895
[Sat Dec 13 2014 22:53:33 GMT+0000 (UTC)] INFO Reconnecting in 1000ms
[Sat Dec 13 2014 22:53:33 GMT+0000 (UTC)] INFO Slack client closed
[Sat Dec 13 2014 22:53:34 GMT+0000 (UTC)] INFO Attempting reconnect
[Sat Dec 13 2014 22:53:34 GMT+0000 (UTC)] INFO Connecting...

and then nothing happens.

:+1:

All my slack clients don't reconnect well but do continue to receive messages. :confused:

I'll try to catch the attention of @grantmd, maybe he has an idea how we can continue to debug this.

Possibly related to https://github.com/slackhq/hubot-slack/issues/127 ?

running on a raspberrypi it takes a while to get through the startup routine.  Long enough that the 10,000ms time at startup is causing the hubot to die.
[Thu Feb 12 2015 03:55:16 GMT+0000 (UTC)] INFO Connecting...
[Thu Feb 12 2015 03:55:18 GMT+0000 (UTC)] INFO Logged in as hubot of **********, but not yet connected
[Thu Feb 12 2015 03:55:19 GMT+0000 (UTC)] INFO Slack client now connected
[Thu Feb 12 2015 03:55:43 GMT+0000 (UTC)] INFO Data for hubot brain retrieved from Redis
[Thu Feb 12 2015 03:55:49 GMT+0000 (UTC)] INFO Using default redis on localhost:6379
[Thu Feb 12 2015 03:55:50 GMT+0000 (UTC)] ERROR Last pong is too old: 11.059
[Thu Feb 12 2015 03:55:50 GMT+0000 (UTC)] INFO Reconnecting in 1000ms
[Thu Feb 12 2015 03:55:50 GMT+0000 (UTC)] INFO Slack client closed

updating the line 135 of client.js to:
        if ((_this._lastPong != null) && Date.now() - _this._lastPong > 20000) {

allows my raspberrypi to startup hubot without any drama and stay running(at debug log level)
[Thu Feb 12 2015 04:27:31 GMT+0000 (UTC)] DEBUG Loading adapter slack
[Thu Feb 12 2015 04:27:36 GMT+0000 (UTC)] INFO Connecting...
[Thu Feb 12 2015 04:27:37 GMT+0000 (UTC)] INFO Logged in as hubot of **************, but not yet connected
[Thu Feb 12 2015 04:27:38 GMT+0000 (UTC)] INFO Slack client now connected
[Thu Feb 12 2015 04:27:38 GMT+0000 (UTC)] DEBUG Loading scripts from /myhubot/scripts
[Thu Feb 12 2015 04:27:38 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/scripts/example.coffee
[Thu Feb 12 2015 04:27:38 GMT+0000 (UTC)] DEBUG Loading scripts from /myhubot/src/scripts
[Thu Feb 12 2015 04:27:38 GMT+0000 (UTC)] DEBUG Loading hubot-scripts from /myhubot/node_modules/hubot-scripts/src/scripts
[Thu Feb 12 2015 04:27:38 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/ambush.coffee
[Thu Feb 12 2015 04:27:40 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/asana.coffee
[Thu Feb 12 2015 04:27:40 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/ascii.coffee
[Thu Feb 12 2015 04:27:41 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/base64.coffee
[Thu Feb 12 2015 04:27:41 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/dealwithit.coffee
[Thu Feb 12 2015 04:27:41 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/demolition-man.coffee
[Thu Feb 12 2015 04:27:44 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/devexcuse.coffee
[Thu Feb 12 2015 04:27:44 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/geocodeme.coffee
[Thu Feb 12 2015 04:27:45 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/insult.coffee
[Thu Feb 12 2015 04:27:45 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/isup.coffee
[Thu Feb 12 2015 04:27:45 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/lmgtfy.coffee
[Thu Feb 12 2015 04:27:45 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/mindkiller.coffee
[Thu Feb 12 2015 04:27:46 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/news.coffee
[Thu Feb 12 2015 04:27:47 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/pomodoro.coffee
[Thu Feb 12 2015 04:27:47 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/quote.coffee
[Thu Feb 12 2015 04:27:49 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/redis-brain.coffee
[Thu Feb 12 2015 04:27:50 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/reload.coffee
[Thu Feb 12 2015 04:27:51 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/remind.coffee
[Thu Feb 12 2015 04:27:54 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/sonos.coffee
[Thu Feb 12 2015 04:27:54 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/spotify.coffee
[Thu Feb 12 2015 04:27:54 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/stock.coffee
[Thu Feb 12 2015 04:27:55 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/update.coffee
[Thu Feb 12 2015 04:27:56 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/uptime.coffee
[Thu Feb 12 2015 04:27:56 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/url.coffee
[Thu Feb 12 2015 04:27:59 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-scripts/src/scripts/wikipedia.coffee
[Thu Feb 12 2015 04:27:59 GMT+0000 (UTC)] DEBUG Successfully connected to Redis
[Thu Feb 12 2015 04:27:59 GMT+0000 (UTC)] DEBUG Loading external-scripts from npm packages
[Thu Feb 12 2015 04:28:02 GMT+0000 (UTC)] INFO Data for hubot brain retrieved from Redis
[Thu Feb 12 2015 04:28:02 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-diagnostics/src/diagnostics.coffee
[Thu Feb 12 2015 04:28:03 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-help/src/help.coffee
[Thu Feb 12 2015 04:28:04 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-heroku-keepalive/src/heroku-keepalive.coffee
[Thu Feb 12 2015 04:28:05 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-google-images/src/google-images.coffee
[Thu Feb 12 2015 04:28:06 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-google-translate/src/google-translate.coffee
[Thu Feb 12 2015 04:28:06 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-pugme/src/pugme.coffee
[Thu Feb 12 2015 04:28:08 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-maps/src/maps.coffee
[Thu Feb 12 2015 04:28:09 GMT+0000 (UTC)] INFO Using default redis on localhost:6379
[Thu Feb 12 2015 04:28:09 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-redis-brain/src/redis-brain.coffee
[Thu Feb 12 2015 04:28:10 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-rules/src/rules.coffee
[Thu Feb 12 2015 04:28:10 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-shipit/src/shipit.coffee
[Thu Feb 12 2015 04:28:10 GMT+0000 (UTC)] DEBUG Parsing help for /myhubot/node_modules/hubot-youtube/src/youtube.coffee
[Thu Feb 12 2015 04:28:10 GMT+0000 (UTC)] DEBUG Successfully connected to Redis
[Thu Feb 12 2015 04:28:10 GMT+0000 (UTC)] INFO Data for hubot brain retrieved from Redis

This is really frustrating if hubot does deploys for qa :cry:

I also ran into this issue when running hubot on a raspi - increasing the pong timeout allowed enough time for the startup. Would allowing a parameter to override the pong timeout be a suitable interim solution?

I'm having this same issue. My bot stays connected for hours, sometimes days, then disconnects. It does not seem to be throwing any errors. I'm running on a t1.micro instance on AWS – so I should have a little more power than a raspi.
I'm creating a new Slack client with new SlackClient(config.token, true, true) as part of a bigger Node app that does a few other things. My app does not die and continues to perform it's other duties, but the Slack client disconnects, cutting us off from interacting with the app via Slack. A restart always fixes the issue, forcing a reconnect.

@jasford: i'm using it in a hubot installation, where i recently upgraded the intermediary layer (hubot-slack). For me, the problem is now much less of a hassle. Maybe that helps you find a workaround for you, too.

I'm not using hubot-slack – just this node-slack-client directly. I just upgraded to the latest release though and will see if that helps. It will take a few days to know for sure...

Yes, i realize that. I just meant, maybe you can copy their change over to your code.

I am trying to send messages to all the chat windows from a chat room and slack disconnects with this error message
[Fri May 08 2015 15:08:27 GMT+0000 (UTC)] ERROR Last pong is too old: 21.788
[Fri May 08 2015 15:08:27 GMT+0000 (UTC)] INFO Reconnecting in 1000ms
[Fri May 08 2015 15:08:28 GMT+0000 (UTC)] INFO Slack client closed

having same issue with node-slack-client :(

same problem here.

same, but that's no fun :P

Having the same issue. Hope this get's fixed soon. Restarting the bot every other day isn't really a solution.

when the pong timeout, it call reconnect, but which should not do that if autoConnect is false.

+1

Same issue here:
[Fri Jul 17 2015 23:48:32 GMT-0400 (EDT)] ERROR Last pong is too old: 14.756
[Fri Jul 17 2015 23:48:32 GMT-0400 (EDT)] INFO Reconnecting in 1000ms
[Fri Jul 17 2015 23:48:32 GMT-0400 (EDT)] INFO Slack client closed

I'd appreciate it if people tested #66 and posted their thoughts.  Adopting that branch would require you to abandon any explicit reconnect calls in Slack close events you may have set, as it shifts the reconnect responsibility into this Client.
If you want to test this + some websocket upgrades and fixes, I've been using https://github.com/vanm/node-slack-client/tree/ws-and-team-migration-fixes in production.

Ok, first off, I apologize for how long it's taken us to resolve these issues.
I just pushed the 2.0.0 release for this library, which is a ground up refactor with the aim of building a lib that both Slack and our external contributors can easily work with and improve.
It also includes substantially improved reconnection logic and handling, for both routine disconnects as well team_migration events and similar. I'll also be making sure to expedite fixes for any issues with reconnection logic in particular, as I know that's been a pain for folks in the past.
So, I'd suggest that the best way to resolve these issues is to upgrade to the latest version. If you have any problems in doing that, please create a new issue and I'll try and help you in there.


Compliance Report | Declaration confirmation alert when submitting a Compliance Report |5|

Task:
This card is to create the confirmation alert for when a user clicks on the Submit button within the Summary section of the Compliance Report. The confirmation alert contains:

The Signing Authority Declaration
Messaging for confirming submission
Submit and Cancel buttons

Signing Authority Declaration Section:
This section will use a similar component as the Signing Declaration in the Credit Transfer feature, but with some slight adjustments and different statements (specified in the legislation). See the attached screenshot for an example but please note that the statements in the screenshot are different than the ones we will be using here.

Heading: Signing Authority Declaration
I, <user first, last name>, :
expect, on reasonable grounds, that any fuels reported in Schedule C were used for a purpose other than transport in accordance with section 6 (3) of the Greenhouse Gas Reduction (Renewable and Low Carbon Fuel Requirements) Act.
certify that records evidencing each matter reported under sections 9 and 11.08 of the Renewable and Low Carbon Fuel Requirements Regulation are available on request.
certify that I am an officer or employee of the fuel supplier, and that records evidencing my authority to submit this report are available on request.
certify that the information in this report is true and complete to the best of my knowledge and I understand that I may be required to provide to the Director records evidencing the truth of that information.

Please take note of the markup in the above statements; italics should be included in TFRS where used above
Confirmation alert messaging:
Following the declaration section, the following statement should appear:

Are you sure you want to submit this Compliance Report to the Government of British Columbia?

Followed by two buttons:

Submit
Cancel

Additional Requirements:

If the user does not have a title then do not show anything for that portion of the declaration. For example, with no title, it should read "I, First Last Name:"
Similar to the Credit Transfer feature, each checked box should be recorded in the database (when it was checked, the user that checked it, etc.)
The Submit button should be greyed out until all four checkboxes have been checked.

Role Restrictions - Signing Authority:

The Signing Authority role can check the boxes
Tooltip: hovering the mouse over the Submit button before checking all four boxes displays the following tool tip: "Please complete the Signing Authority declaration".

https://trello.com/c/sUUZAWL4/1249-compliance-report-declaration-confirmation-alert-when-submitting-a-compliance-report-5#

 Compliance Report | Declaration confirmation alert when submitting a Compliance Report |5|

Resolved in Sprint Supermassive


is it possible to mark multiple files at once ?

What I am looking for is like the multiple selection in Windows where with Shift + select, you can extend a selection. Or something like in Vim where using Visual mode you can create a selection by using move commands. Basically if I would like to Mark many many images it would be faster if I didn't need to mark them one by one ...

Thanks for your interest in vimiv!
You have a few options here:
In case you wish to stay with this legacy gtk version, the best I can offer you is the :mark_between command. You mark the first image you would like to have marked, then the last one and finally run :mark_between to have them all selected.
If you have the option to switch to the newer qt port, see migrating for some more information, you can:

Use mark with shell-like globs, e.g. :mark *.jpg
Install and use the BatchMark plugin which emulates the behaviour of :mark_between, but without the hassle of using an additional command

Feel free to ask any questions if you need help switching / installing the plugin / ... :blush:
Hope this helps!

Oh, my bad, I didn't mean to post in the vimiv-gtk, just got confused.
Thank you for your suggestions, yes, I am setting up and learning vimiv-qt and will take a look at mark_between.
Thanks again !

Sorry, the confusion is real and my fault :innocent:
Note: :mark_between never made it to the port, but the mentioned plugin is superior in every way. We might decide to merge it into the main codebase at some point.

Sounds good, will check it out, thanks!


Rotation support

Note: on account of preserving commits (and thus credit), let's not squash this one (even though we usually would).
Let's review.

This breaks the CameraSystem and CollisionSystem so badly.

I did some major reconstruction:

Matrices everywhere
Combined the two shaders to be the same, but with different options (cameraEnabled true/false).

Stil breaking for the CameraSystem and CollisionSystem when rotating.

I'm going to have do-not-merge here until we decide whether or not we want to have the broken {Collision,Camera}System in master.

Current issues

With rotation, we also have to rotate the 4 edges of the object, to see where they are, in order to detect whether or not we're hovering / colliding.
Allowing the choice between rotating around center, or rotating around (0, 0). This further complicates the point above.
Some things just aren't square, even though we render them as such. Checking whether or not a pixel is transparent is easy without rotation, but becomes even more impossible / undoable when adding rotation.

Not yet going as planned.

The blue dot on the guy, is where engo thinks the mouse is hovering. The mouse is at the lower-right corner (where the screenshot ends).

This PR is feature-complete.
Ready for review.
(But don't merge until https://github.com/EngoEngine/engo/pull/247 is done!)

Please review, anyone :smile:

Note to @paked and @otraore : This PR is completely ready to merge.
Problems with MouseSystem / CollisionSystem have already been fixed. Also includes some code that helps with https://github.com/EngoEngine/engo/issues/237 and fixes #211 and fixes #135.
Make sure (if you're going to squash), to give credit to @faide in that commit message, and to mention the two fixed issues and the one other issue that's partially fixed.

Processed all feedback. Feel free to merge whenever you guys agree :smile:

The squash/merge message should read something like this:

Adds rotation support and texture cleanup
It also adds some features w.r.t. repeating textures, see issue #237.
Texture cleanup methods (.Close()) are added, which fixes #211 and fixes #135.
Shaders are reworked so they're easier to implement (also documented at #237). Buffers are now no longer handled by the RenderComponent.
A lot of credit goes to @faide for doing the groundwork for the rotation support.

Lovely. Great work everyone!

Wooo!
On Mon, May 2, 2016 at 11:49 AM Robin Eklind<EMAIL_ADDRESS>wrote:

Lovely. Great work everyone!
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/EngoEngine/engo/pull/216#issuecomment-216091633


Rohit De Review Ticket Week 1

Assigned Work for the Week

Work on base page
Work on navbar
Create new .html pages and work on designing

Commits on base and navbar

Commits on new pages

1.8/2 - Final Grade

Initial code for base and navbar has been fully coded in. Functional bootstrap navbar is running. Also set up some basic framework work as well
New pages were established with app routes and used jinja href links to link the websites for the navbar.

Due to these factors, I believe that Rohit deserves the max points awardable.


Escape binary operators in property path expressions

My backend delivers generic attributes in JSON structure like:
{
  "0aaf8418-9c5c-0000-0000-000000000000": "val",
  "a229bde9-9c5b-0000-0000-000000000000": "val",
  "e0b77a97-6b7c-0000-0000-000000000000": "val"
}

I want to observe changes to this structure using Aurelia's binding engine like so:
for (const attributeId in article.attributeValues) {
  const observer = this.bindingEngine.expressionObserver(article, 'attributeValues.' + attributeId);
  observer.subscribe(...);
}

However, the Aurelia expression parser produces Binary expression nodes for the input string 'attributeValues.e0b77a97-6b7c-0000-0000-000000000000'. Is there any way to wrap or escape the string to make the parser treat the path parts as property names?
I do not want to modify the attribute ids since I am later using the same structure for saving the attribute values.

From the look of your object,
this.bindingEngine.expressionObserver(article, attributeId)

should work as expected. Also you will need to store references to those observers to dispose them later.

@bigopon my bad, I have edited my original question to reflect the actual article object structure. But the point is that - is treated as binary arithmetic operator and not as party of the property name.

The parser only accepts valid JS expressions, and effectively what you're trying to parse is this:
attributeValues.0aaf8418-9c5c-0000-0000-000000000000

Which is not valid JS.
Here's what would work:
attributeValues['0aaf8418-9c5c-0000-0000-000000000000']

Changing your code to this (taking the liberty of turning it into a template string, but that's up to you):
for (const attributeId in article.attributeValues) {
  const observer = this.bindingEngine.expressionObserver(article, `attributeValues['${attributeId}']`);
  observer.subscribe(...);
}

@fkleuver Thank you, attributeValues['0aaf8418-9c5c-0000-0000-000000000000'] works.


Date in entry slug is not UTC but local

In my setup the posts ase saved using this slug:
slug: "{{year}}-{{month}}-{{day}}-{{hour}}-{{minute}}-{{second}}"
In Decap cms I get files which are using UTC timezone, but it seems that Sveltia is now using local timezone. This now causes for me other issues as the website code expects the times in urls to be specified in UTC.
I don't think I previously had the some problem even with Sveltia, so has something related to this changed in Sveltia?

Will check.

I don’t think I have made a change to Sveltia CMS but can confirm the bug. The fix is coming right away.

Fixed in v0.49.5 🙇🏼

Hey @kyoshino I just tried this in v0.51.1 and the slug was still created in local TZ, not UTC. date for my notes is configured like this:
- {
    label: "Publish Date",
    name: "date",
    widget: "datetime",
    default: "{{now}}",
    format: "YYYY-MM-DDTHH:mm:ssZ",
    picker_utc: false,
}

And slug is like this:
path: "{{year}}/{{slug}}"
slug: "{{date | date('YYYY-MM-DD_HHmm')}}"

Does date need to be set to UTC for this to work?
Can open a new issue if thats easier, apologies for posting on an old one.

Will check!

In v0.52.0 I’ve added a new option for converting the date to UTC, so the change won’t break backward compatibility 😉 Pass 'utc' as the second argument for the date transformer:
-slug: "{{date | date('YYYY-MM-DD_HHmm')}}"
+slug: "{{date | date('YYYY-MM-DD_HHmm', 'utc')}}"


Enable external storage for Doltlab

Currently, a Doltlab instance only supports storage on the host it is running on. It would be nice to be able to set an external databse service to store the data.

+1

This is an enterprise feature we are soon shipping.

Supported for DoltLab Enterprise in v2.1.6


trufflehog: 3.64.0 -> 3.65.0

Diff: https://github.com/trufflesecurity/trufflehog/compare/refs/tags/v3.64.0...v3.65.0
Changelog: https://github.com/trufflesecurity/trufflehog/releases/tag/v3.65.0
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

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

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 284191 run on x86_64-linux 1

1 package built:

trufflehog


Fix an undefined variable in [GithubPackageJson]

Make sure this gets linted in the future.
Fix #4111

Warnings

:warning:
This PR modified service code for security-headers but not its test code. That's okay so long as it's refactoring existing code.

Messages

:book:
:sparkles: Thanks for your contribution to Shields, @paulmelnikow!

  Generated by :no_entry_sign: dangerJS against<PHONE_NUMBER>d0834e121f896755d884d61aa38122


[Swift3] Migrate project to support Swift 3

It's time to open the discussion on how to handle Swift 3 migration.
We have a few options.

Move to Swift 3 only support
Support Swift 2...3 maintaining Swift 2 naming conventions
Support Swift 2...3 using Swift 2 naming conventions for users of Swift 2, and Swift 3 naming for Swift 3 users
Support Swift 2...3 using only Swift 3 naming conventions

It's actually quirt easy to still support Swift 2+ in the one project, and Swift 3/Xcode 8 will not be usable for submitting apps for a few months still, so I'd take the first option of the table.
Then that leaves us with the choice of naming conventions. For the interest of not breaking code, I would prefer to stick with Swift 2 naming (the current naming in ReSwift) conventions. It means we can:

Release v2.1 with Swift 3 support as it is does not break API compatibility
Users can move between Swift 2.2 and 3 without any changing any code that relies on ReSwift
Release v3.0 where we break the API and move to Swift 3 naming conventions
No documentation changes will be needed as the same usage applies

In this pull request I have:

Added support for Swift 3
All tests pass in Xcode 7.3.1 and Xcode 8
Marked the project as migrated to Swift 3 and Xcode 8 in pbxproj
Renamed the OS X target and scheme to macOS (this should not break anything as the target module is still called ReSwift)
Enabled whole module optimisation as suggested by Xcode (again backwards compatible, Xcode 7.3 just ignores the setting)

Thoughts?

[Current coverage][cc-pull] is 100%

Merging [#126][cc-pull] into [master][cc-base-branch] will not change coverage

@@           master   #126   diff @@
====================================
  Files           6      6
  Lines         109    169    +60
  Methods         0      0
  Messages        0      0
  Branches        0      0
====================================
+ Hits          109    169    +60
  Misses          0      0
  Partials        0      0

Powered by Codecov. Last updated by [66e7a72...21bddae][cc-compare]
[cc-base-branch]: https://codecov.io/gh/ReSwift/ReSwift/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/ReSwift/ReSwift/compare/66e7a72acdceb8002040898adff05bfe062c30df...21bddae69774bde442e0952a28dfe00e57c01e15
[cc-pull]: https://codecov.io/gh/ReSwift/ReSwift/pull/126?src=pr

@agentk Thanks a lot for making the effort of migrating this in a backwards compatible way!
Even though the code looks a little painful for now, I think this will be very convenient for many devs that are migrating!


showConfig printing help if no config is found

TypeScript Version:  3.8.0-dev.20191128
Search Terms:
showConfig
Example
when running the command tsc --showConfig in a folder without a tsconfig.json file it shows the help page
Expected behavior:
throw an error (for example: no config found) or return empty config (for example: {})
Actual behavior:
shows the standard help page from tsc -h, wich doesn't even contain any help for --showConfig.
Playground Link: None
Related Issues: None

Thanks @a-tarasyuk!