Expose virtual size of backing images

Which issue(s) this PR fixes:
https://github.com/longhorn/longhorn/issues/7923
What this PR does / why we need it:
This commit adds virtualSize to the BackingImageStatus and BackingImageFileInfo structs, and thus to the BackingImage and BackingImageManager CRDs.  We can see how this works in practice by creating a new backing image downloaded from a URL, then periodically running kubectl -n longhorn-system get lhbi.  I'm using https://download.opensuse.org/distribution/leap/15.5/appliances/openSUSE-Leap-15.5-Minimal-VM.x86_64-Cloud.qcow2 in the example below.
Initially, when the download is just started, before the file size is known:
> kubectl -n longhorn-system get lhbi/default-image-7mplj
NAME                  UUID       SOURCETYPE   SIZE        VIRTUALSIZE   AGE
default-image-7mplj   6d5a98b0   download     0           0             9s

A little later, while the download is running:
> kubectl -n longhorn-system get lhbi/default-image-7mplj
NAME                  UUID       SOURCETYPE   SIZE        VIRTUALSIZE   AGE
default-image-7mplj   6d5a98b0   download     255701504   0             3m33s

Finally, once the download is complete:
> kubectl -n longhorn-system get lhbi/default-image-7mplj
NAME                  UUID       SOURCETYPE   SIZE        VIRTUALSIZE   AGE
default-image-7mplj   6d5a98b0   download     255701504   821035008     4m26s

Compare size and virtualSize above with the image downloaded manually:
> wget https://download.opensuse.org/distribution/leap/15.5/appliances/openSUSE-Leap-15.5-Minimal-VM.x86_64-Cloud.qcow2
[...]

> ls -l openSUSE-Leap-15.5-Minimal-VM.x86_64-Cloud.qcow2
-rw-r--r-- 1 tserong users 255701504 Dec 19 23:26 openSUSE-Leap-15.5-Minimal-VM.x86_64-Cloud.qcow2

> qemu-img info openSUSE-Leap-15.5-Minimal-VM.x86_64-Cloud.qcow2 | grep virtual
virtual size: 783 MiB (821035008 bytes)

Special notes for your reviewer:
I've pulled in the latest backing-image-manager by updating go.mod to directly reference the latest commit from the master branch (https://github.com/longhorn/backing-image-manager/commit/c5288d745f4a5e2f66495b564f95bee5345375d8). This can be seen as github.com/longhorn/backing-image-manager v1.7.0-dev.0.20240326182459-c5288d745f4a in the require section in go.mod. I'm not sure if that's how this sort of thing is usually handled - would it be better to make a v 1.7.0-dev tag in backing-image-manager and reference that instead?
Additional documentation or context
N/A

(marked as draft bearing in mind my notes above)

JFTR, some extra output with a mix of images, both raw and qcow2, from various sources:
> kubectl -n longhorn-system get lhbi
NAME                  UUID       SOURCETYPE           SIZE          VIRTUALSIZE   AGE
default-image-2r5jt   421c8c11   download             21430272      117440512     8d
default-image-7b2wq   a93b9a55   upload               261693952     845152256     14d
default-image-7mplj   6d5a98b0   download             255701504     821035008     5h1m
default-image-87b7d   aa95cadc   download<PHONE_NUMBER>0<PHONE_NUMBER>0   14d
default-image-8d7w7   53a3b08d   export-from-volume<PHONE_NUMBER>0<PHONE_NUMBER>0   7d8h
default-image-jnvqc   c41a4745   upload               20971520      20971520      8d
default-image-nvdn4   8892d329   download             750583808<PHONE_NUMBER>    99m
default-image-t4gzh   cfb51734   upload<PHONE_NUMBER><PHONE_NUMBER>0   4h48m
default-image-wncvq   d98d70f9   download             85168128      85168128      5h56m
default-image-xzpdx   1e801407   upload               20971520      20971520      14d
test                  aae0b6c4   download<PHONE_NUMBER><PHONE_NUMBER>6   66m

Will you run longhorn-manager/k8s/generate_code.sh after adding a new field?

I did that already and it updated k8s/crds.yaml, which is included in this PR. Is there something else I missed?

Besides, would you help update https://github.com/longhorn/longhorn/blob/master/deploy/longhorn.yaml and https://github.com/longhorn/longhorn/blob/master/chart/templates/crds.yaml?

Will do!

I did that already and it updated k8s/crds.yaml, which is included in this PR. Is there something else I missed?

I am not sure. Hence I recommend running that script. 😃

(rebased on master)

@mergify backport v1.5.x v1.6.x


Couldn't initialise "@wdio/selenium-standalone-service".

What are you trying to achieve?
Hi, I am trying to run selenium-standalone-servic
What do you get instead?

Could not load plugin wdio from module './plugin/wdio':
Couldn't initialise "@wdio/selenium-standalone-service".
Error: Cannot find module '@wdio/logger'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)

"@wdio/selenium-standalone-service": "^5.11.0"

"codeceptjs": "^2.1.4",

Working with npx codeceptjs run


Maven release v2.7.0

I saw https://github.com/GoogleContainerTools/jib/releases/tag/v2.7.0-maven appear in my feed and jib-maven-plugin 2.7.0 is indeed on Maven Central: https://search.maven.org/artifact/com.google.cloud.tools/jib-maven-plugin/2.7.0/maven-plugin
The v2.7.0-maven tag on https://github.com/GoogleContainerTools/jib/releases doesn't contain any changelog information (nor does v2.7.0-gradle, but I don't use that), and https://github.com/GoogleContainerTools/jib/blob/v2.7.0-maven/jib-maven-plugin/CHANGELOG.md has the changes still under a '[unreleased]' header. Are those indeed all changes in 2.7.0?

@breun yes. We'll create GitHub releases and update CHANGELOG files today. Those are changes in 2.7.0.


Plugin scripts with "type": "module" run too late

Description of the issue
Prototypes using window.GOVUKFrontend will break when https://github.com/alphagov/govuk-frontend/pull/4264 is released
Why? Plugin scripts configured with "type": "module" execute after prototype JavaScript has already run
Steps to reproduce the issue

Install the GOV.UK Frontend v5 preview (via GitHub commit)
npm install --save "alphagov/govuk-frontend#e4b5b83cf"

Edit prototype app/assets/javascripts/application.js and add:
console.log(window.GOVUKFrontend)

Open the prototype in a browser

Actual vs expected behaviour
Actual: GOV.UK Frontend global window.GOVUKFrontend is undefined
Expected: Prototype scripts load using <script defer> ensuring window.GOVUKFrontend is available

Not strictly a bug since I'm unsure of two things:

How many prototypes rely on window.GOVUKFrontend

How many plugins (or future plugins) rely on window.GOVUKFrontend
https://github.com/alphagov/govuk-prototype-kit/blob/25cb0b2fa389d5effbb846d1538b401f975f1163/known-plugins.json#L3-L11

The simplest fix is to add type="module" to application.js


What is the meaning of the seed? And how to write a good prompt?

I really enjoy using these powerful tools, but I'm not quite understanding the meaning of 'seed.' Also, I'm a little confused about how to write a good prompt for each segment.

the seed is like an ID of the specific generation, so if you give a specific seed, with all the other parameters, you will get the exact same results. (if the seed is set to -1, it will just be a random seed)
As for good prompts, well there still isn't something definitive, it is still open for experimentation.
segmentation prompts should look no different from regular prompts, you can just write on each slightly different prompts in order for the melody to change. so for example on the first prompt you can write: "chill, plucky string melody...." and on the second you can ramp it up with "rhythmic string melody with punchy beat....." something like that.
Hope this helps ☺


CM-444: Add updated date to park and site page

Jira Ticket:
CM-444
Jira Ticket URL:
https://bcparksdigital.atlassian.net/browse/CM-444
Description:

Displayed updatedDate of publicAdvisories when isUpdatedDateDisplayed is ON

The layout looks broken for Antsey Hunakwa Park where there are more than 2 dates:

Removed <br> to make spaces consistent
Added <p> to advisory.links to make spaces consistent


[BUG] Multi-line chart with same axis, does not respect scale when rendered together

I designed a chart with two datasets, both of them of line type. I set them to use the same axis, with a specified common scale (I know it may sounds redundant, but this chart in reality has also two other bar series with their own axis and scale).
But the two datasets when rendered do not have the same scale, as appears here: https://codepen.io/pierfreeman/pen/bowWyj
In particular, the serie "Acute Load" has the correct scale, while "Cronic Load" does not. If I de-select "Acute Load", the other one is then set to the correct scale.
I want them to have the same scale always...I need both of them always rendered for my data analysis.

It seems to be rendering correctly. Can you give more explanation as to what you expect vs what you're seeing?
Did you notice that you have stacked:true set? If you remove this, does it give you the behavior you want?

Removing stacked true does not solve the problem (and actually, I need them for the other bar charts that I need to render with the line ones...)
Anyway, that's the expected behaviour. If I render only 'Cronic Load' datasets, it appears like this:

which is the correct rendering with the axis scaled correctly. If I render both charts, 'Cronic Load' datasets, then the axis is set to the 'Acute load' scale.
That's another spot for understanding the problem: take the x-value '23/04/2017', for acute load the y-value is 288.9, while for cronic load is 0. But as you can see from the snippet above, is not rendered correctly.
I just want that the second datasets is rendered exactly in the same way as it would be rendered alone, since I set the same y-scale for both of them.

If I render both charts, 'Cronic Load' dataset is set to the 'Acute load' scale.
The charts are sharing an axis and thus sharing a scale. Do you want them to have to different axes / scales?

take the x-value '23/04/2017', for acute load the y-value is 288.9, while for cronic load is 0.
That's not correct. The y-value at 23/04/2017 for chronic load is 93.41472604427736

I just want that the second datasets is rendered exactly in the same way as it would be rendered alone, since I set the same y-scale for both of them.
It seems to me that you're asking for two incompatible things. The max value for acute load is<PHONE_NUMBER>6207184. The axis must go at least to<PHONE_NUMBER>6207184 to render that value. But then you seem not to want that when plotting the chronic load dataset. So do you want a second axis for the second dataset? Because I don't understand how else it would be possible. But then you say you want the datasets to be stacked which confuses me even further. If the datasets are stacked they must share an axis. And if they share an axis of course the chronic load dataset takes less space on the vertical axis than the acute load dataset because it has smaller numeric values.

Changing the order of the data seems to be working.

That's not correct. The y-value at 23/04/2017 for chronic load is 93.41472604427736
That's my fault, I got confused, of course I was talking about 22/04/2017, which in Cronic Load-alone chart is clearly 0.
Changing the order of the data seems to be working.
Yes, changing the order of the data renders the chart exactly how I want it. In this case, the axis is shared, but also the scale.

The question now is: why this behaviour? I'd rather have acute load before cronic load...not because I like in this way, but for a customer constraint :)

A little bit of context may be helpful for @benmccann: the chart is designed for performing data analysis of soccer training (daily) sessions over a period of time. The x-values are of course the days within the period in exam, while the y-values are related to a specific metric I'm analysing (which one is not relevant, it can be a distance, a velocity, a force, etc...).
The complete chart has actually 4 datasets: 2 bars and 2 lines.
The bars refer to the punctual metric values of each session of the selected period. Actually I have two bar datasets because I can have a double training session over a day...thus, two metric values for that day. That's why I set stacked: true: for those double sessions, I want to render the two bars stacked one above the other.
The lines refer to a more advanced information: they show the average of that metric value over the past 7 and 28 days.
So, in conclusion I have 4 datasets, all of them referring to the same metric, with the same unit of measure...thus, they must share the same axis and the same scale.
For clarity, I removed the bar datasets in that codepen. I'll put here an image of the complete chart made in excel asap, so you can see exactly what I'm trying to achieve.

@benmccann here an example image of how I'd like the chart. The two stacked bar series for the punctual values, and the two lines series with the average.
As you can see, they all share the same axis and the same scale, since they are referring to the same metric.

So to clarify, you want the bars to be stacked, but not the lines?

Yes, but...what's the effect of stacked on a line chart? Reading the doc is not clear...Does it apply also on lines?
Instead, regarding the issue with the scale...is it a my mistake or a chart.js bug? Cause I cannot understand it...

Your codepen example shows the effect of stacked on a line chart. The line for chronic load is drawn where each point is the value for chronic + the value for acute. The space between the acute and chronic lines represents the chronic load. The top line represents the total of both chronic and acute load. This is just like a stacked bar chart where the sum of the bars represents the total.

Oh, now I got it. I thought it was only a property of bar chart. Thanks!
So yes, now I want my bars stacked, but not the lines. A possible solution would be defining two x-axis, with the same x-values, but one stacked (for the bars) and one not (for the lines)...and link to the two datasets with xAxisID...right? I'll try it asap.
Even though removing stacked: true from that codepen seems not to work...

@pierfreeman one slight addition to your last comment is that you'd need two y axes (one hidden) and then make the one for lines not stacked. You'd have to make sure that the max and min of both axes is the same so you'd probably want to set them manually

Ok, got it! So, I'd have:

Line series: x-axis not stacked, y-axis not stacked.
Bar series: x-axis stacked, y-axis stacked, hidden, with same parameter of Line y-axis (min, max, steps)

After some months I've stepped back to this issue, and I just leave here a note to my last comment.
For making it work, I need to set:

x-axis, y-axis for the bar series, both of them stacked;
x-axis (stacked) and y-axis (non-stacked) for the line series.

In this way, the x-axis will be shared and all the points are drawn on the same tick, but at the same time the line series won't be locked to be stacked and will be free to show the exact value.


File watching not working on Linux Mint

I am developing with Hugo on Linux Mint. Up until yesterday or the day before, the file watching feature of Hugo was working beautifully.
Then, for no reason, and I think after I did an update on Mint, this feature stopped working.
Restarting has not helped.
I followed the advice from https://discourse.gohugo.io/t/hugo-server-watch-not-er-watching/1592/9 and tried a different editor (I am using VS Code) but this makes no difference.
When I start hugo server, it gives the message Watching for changes in /home/user/Projects/hugo/website/{content,data,layouts,static,themes} but whatever I change, it does not register.

OK, I think I managed to solve the problem (for now) by increasing the inotify max_user_watches settings as described here: https://github.com/guard/listen/wiki/Increasing-the-amount-of-inotify-watchers

The value was set to 8192 based on cat /proc/sys/fs/inotify/max_user_watches, in case anybody is wondering.


Add escaping to make helm work

@stone-z What is the best way to test the helm stuff? Or how did you test it before?

Either ct lint it or just try to install with helm. Also related upstream issue FYI

Either ct lint it or just try to install with helm. Also related upstream issue FYI

I tried it with helm package and then helm install which for me locally worked fine on kind.


[Feature]: Changing the logo

🚀 Feature Request
📝 Feature Description
Replace the existing logo with a new design to better align with the brand identity and improve visual appeal.
🔧 How Will This Enhance the App?
Build a Stronger Connection: A fresh logo that reflects our brand’s personality can help users feel more connected to the app and what it stands for.
Make It Visually Appealing: A modern design will make the app look more inviting and enjoyable to use, creating a better overall experience.
Create a Consistent Look: A well-thought-out logo will tie together our app’s design, giving it a professional and polished feel that users will appreciate.
🎯 Use Cases
First Impressions & Brand Recognition: A modern logo creates a positive experience and strengthens brand recall for easier identification.
Visual Hierarchy & Engagement: An updated logo improves visual hierarchy, guiding user attention and enhancing call-to-action effectiveness.
Responsive Design: A logo optimized for all devices ensures visual consistency and improves user experience.
Brand Messaging Alignment: A logo that reflects updated messaging fosters a cohesive and credible visual identity
📦 Suggested Implementation

Make sure thaat the logo aligns properly in navbar

sure sir

@Vin205 Kindly check!


Use of RPCManager with auto switching over node configs

Purpose of Changes and their Description

Creation of a RPCManager that controls the rpc endpoints.
An RPC (client) is defined by a NodeConfig. The RPCManager holds a number of NodeConfigs, preconfigured.
Initialization, parameterisation of calls for
Compliant with current separation of responsibilities, usecase keeps node management (before initialised and never changed; now integrated as an RPCManager), while client-internal operations fall under lib (ie NodeConfig-based operations).
Definition of situations where a switch of node is required. For now, error 429 and +Mempool is full, maybe to be expanded.
RPCManager as an interface with its testing mock

Also:

custom errors and error refactorization
fix whitelist extra check
improve checking gas routine

Link(s) to Ticket(s) or Issue(s) resolved by this PR
Are these changes tested and documented?

[x] If tested, please describe how. If not, why tests are not needed. -- being tested against chain
[x] If documented, please describe where. If not, describe why docs are not needed. -- Added section in README
[x] Added to Unreleased section of CHANGELOG.md?

Still Left Todo

testing with several workers under load, and adding unit testing.
review current usage processes esp on registration where several calls are made, etc.
potentially more refactors

Pending - to jail bad nodes.


Bug in VQC predict function with numpy list concatenation

Informations

Qiskit Aqua version: v0.6.1.
Python version: 3.7.3
Operating system: MacOS Mojave

What is the current behavior?
Numpy's concatenate method is called on two lists in the VQC predict function for batched data but return value is not used. See these lines.
Steps to reproduce the problem
Since this is a small bug only, I hope the following minimal example will do to demonstrate the problem (and the solution)
>>> import numpy as np
>>> a=np.array([0,1,2,3])
>>> b=np.array([4,5,6])
>>> c=np.concatenate([a,b])
>>> print(a)
[0 1 2 3]
>>> print(b)
[4 5 6]
>>> print(c)
[0 1 2 3 4 5 6]

What is the expected behavior?
Lists should be updated.
Suggested solutions
Change
np.concatenate((predicted_probs, batch_probs))
np.concatenate((predicted_labels, batch_labels))

to
predicted_probs = np.concatenate((predicted_probs, batch_probs))
predicted_labels = np.concatenate((predicted_labels, batch_labels))

Fixed by #736


No events in open-appsec dashboard

My dashboard shows no events, anything going on?

Hi @novastream,
We had a temporary issue, we're working on a solution, but as a work around please do a hard refresh including deleting cookies.
Thank you for letting us know, and I apologies for the inconvenience.
Oriane
open-appsec team


CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT don't work. (IDFGH-12534)

Answers checklist.

[X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
[X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
[X] I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.
v5.2.1-210-gcf7b9bed4c
Espressif SoC revision.
ESP32 development board
Operating System used.
Linux
How did you build your project?
Command line with CMake
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32 development board
Power Supply used.
USB
What is the expected behavior?
HALT occurs when a watchdog trigger occurs.
What is the actual behavior?
RESET occurs when a watchdog trigger occurs.
Steps to reproduce.
build this code.
#include <stdio.h>
#include <inttypes.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"

static const char *TAG = "MAIN";

void WaitForTimeout(unsigned long timeout)
{
        TickType_t start = xTaskGetTickCount();
        int counter = 0;

        while(xTaskGetTickCount() - start < timeout) {
                esp_rom_delay_us(10000);
                //vTaskDelay(1);
                counter++;
        }
        ESP_LOGI(TAG, "counter=%d", counter);
}

void app_main(void)
{
        while(1) {
                WaitForTimeout(500);
        }
}

Debug Logs.
I (315) main_task: Calling app_main()
E (5315) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (5315) task_wdt:  - IDLE0 (CPU 0)
E (5315) task_wdt: Tasks currently running:
E (5315) task_wdt: CPU 0: main
E (5315) task_wdt: CPU 1: IDLE1
E (5315) task_wdt: Print CPU 0 (current core) backtrace

Backtrace: 0x400D6B2F:0x3FFB0E00 0x400D6EF4:0x3FFB0E20 0x40082F15:0x3FFB0E50 0x40008541:0x3FFB4D70 0x400D5266:0x3FFB4D90 0x400D5292:0x3FFB4DB0 0x400E2C28:0x3FFB4DD0 0x40085FD5:0x3FFB4E00
0x400d6b2f: task_wdt_timeout_handling at /home/nop/esp-idf/components/esp_system/task_wdt/task_wdt.c:441
0x400d6ef4: task_wdt_isr at /home/nop/esp-idf/components/esp_system/task_wdt/task_wdt.c:515
0x40082f15: _xt_lowint1 at /home/nop/esp-idf/components/xtensa/xtensa_vectors.S:1240
0x40008541: ets_delay_us in ROM
0x400d5266: WaitForTimeout at /home/nop/rtos/watchdog-test/main/main.c:15
0x400d5292: app_main at /home/nop/rtos/watchdog-test/main/main.c:25 (discriminator 1)
0x400e2c28: main_task at /home/nop/esp-idf/components/freertos/app_startup.c:208
0x40085fd5: vPortTaskWrapper at /home/nop/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:134

I (5345) MAIN: counter=500

More Information.

I added this item.

HALT occurs when a watchdog trigger occurs.


Improved GUI and minor fixes

Users now can change the directory using a FileChooser and check the stats of it.
Below is how the app look with this improvements
Apps new look

Choosing new directories

Thanks for merging  👍


[LIVY-565] Ensure column buffer for string and binary contains all data.

The code was failing to account for null values at the tail of the column,
and could return a buffer that was too short for the number of rows being
returned.
Also added unit tests to verify the fix.

Codecov Report

Merging #155 into master will decrease coverage by 0.28%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #155      +/-   ##
============================================
- Coverage     68.82%   68.54%   -0.29%
+ Complexity      906      904       -2
============================================
  Files           100      100
  Lines          5662     5662
  Branches        848      848
============================================
- Hits           3897     3881      -16
- Misses         1214     1227      +13
- Partials        551      554       +3

Impacted Files
Coverage Δ
Complexity Δ

...ain/scala/org/apache/livy/utils/SparkYarnApp.scala
73.23% <0%> (-6.34%)
33% <0%> (ø)

...in/java/org/apache/livy/rsc/driver/JobWrapper.java
82.85% <0%> (-5.72%)
8% <0%> (-1%)

...ala/org/apache/livy/scalaapi/LivyScalaClient.scala
83.33% <0%> (-3.34%)
7% <0%> (ø)

.../scala/org/apache/livy/sessions/SessionState.scala
58.33% <0%> (-2.78%)
2% <0%> (ø)

...c/src/main/java/org/apache/livy/rsc/RSCClient.java
73.91% <0%> (-1.25%)
20% <0%> (ø)

...ain/java/org/apache/livy/rsc/driver/RSCDriver.java
77.96% <0%> (-0.85%)
41% <0%> (ø)

...cala/org/apache/livy/scalaapi/ScalaJobHandle.scala
55.88% <0%> (+2.94%)
7% <0%> (ø)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5767789...aabb6c9. Read the comment docs.

Merging to master.


Unclear docs? How do I install it?

Installation instructions say:

Just import it in your storybook config.js:

What config.js? I looked it up in the docs, but nothing comes up. All the storybook config files I know are located in the .storybook folder: main.ts and preview.ts. I tried adding the addon to main.ts,     "@storybook/addon-console", but with no result. Is that a case of an obsolete doc or am I missing something?

I have the same Problem. Any updates?

Same problem. config.js was deprecated https://github.com/storybookjs/storybook/blob/next/MIGRATION.md?ref=storybookblog.ghost.io#from-version-52x-to-53x:~:text=config.js has been renamed to preview.js. preview.js configures the "preview" iframe that renders your components.

This syntax is not used when using addons-essentials
https://storybook.js.org/addons/@storybook/addon-console#:~:text=Addon console don't,contains this line%3A

The doc is certainly outdated and doesn't more harm than being helpful in today's settings.
Simply put, for v7 & v8, what we need is to simply have this line
// .storybook/preview.tsx
import '@storybook/addon-console';

// rest of the preview configuration ...

Would anyone like to submit a PR?

Any updates?

For me, this worked.
import type { Preview } from "@storybook/react";
import { withConsole } from "@storybook/addon-console";

const preview: Preview = {
  parameters: {
    controls: {
      matchers: {
        color: /(background|color)$/i,
        date: /Date$/i,
      },
    },
  },
  decorators: [(Story, context) => withConsole()(Story)(context)],
};

export default preview;

None of these work anymore for V8.


Primitive AEAD functionalities

This simply adds the required dependency and a working version of the example code from https://docs.rs/chacha20poly1305/0.7.0/chacha20poly1305/

Can you pls rebase it onto updated v0.2 branch?


Add function builder detector for Babel

Is your feature request related to a problem? Please describe.
I've created a project which uses Babel for compiling my functions source code. Currently I use Netlify Dev for local development of this function. As Netlify Dev only offers a function builder detector for netlify-lambda, I currently have to run my script which watches my source files and compiles them with @babel/cli on the side.
It would be awesome if this was not necessary and Netlify could automatically detect my Babel script as a function builder
Describe the solution you'd like
E.g. checking for  scripts that contain the babel command (with a --watch flag?)
Describe alternatives you've considered
To be clear, I can just run my babel scripts in a separate process, which is not that much of a hassle.
Additional context
As mentioned in the docs under "Bring your own Function Builder", you'd encourage requests for adding function builder detectors.
Can you submit a pull request?
Yes, I could be part of setting this up

Pull requests are welcome! If you would like to help us add this feature, please check our
contributions guidelines.

Hi @Robin-Hoodie, that sounds like a great idea, thank you for opening the issue.
I assume many people have some kind of babel setup in their project. Do you have some insights on how to scope it down only to Netlify functions bundling?

My initial idea would be to check for scripts in the following priority:

Contains babel, --watch and --out-dir where --out-dir is equal to the configured Netlify functions folder
Same as the above, but without --watch and add --watch ourselves
Contains --out-file where the file's directory is the same as the configured Netlify functions folder
Same as the above, but without --watch and add --watch ourselves

Just thinking out loud here, WDYT?

Seems good to me, would look like to open a PR for it?

I can put in some work on this yes!

Closing as stale. Please re-open if needed


Investigate whether we can remove the Access Control functionality from Asset Manager

There's functionality in the Asset Manager to limit access to assets based on the state of Asset#access_limited?. We're not sure whether this is being used. If it's not then we should remove the functionality.

This may be related to Consider fixing or removing the private Asset Manager host alias & associated functionality.

This is essentially a duplicate of issue #156 so I'm closing this one.


Create an adoption guide for Next.js users

https://prisma.slack.com/archives/CM2LEN7JL/p1603854296246900

how bumpy should I expect the road to be when coming from nexus-framework (currently integrated with next.js) when migrating to nexus-schema? I'd be happy to help test instructions and try the migration on our project https://github.com/teachen-ch/voty

@stefnnn not very bumpy


Update organizations.md

This PR adds a query to determine the date a user joined an organization
  organization(slug: "organization-slug") {
    id
    members(first: 10, search:  "organization-member-name") {
      edges {
        node {
          id
          createdAt
          user {
            id
            name
            email
          }
        }
      }
    }
  }
}

Sorry for taking over your PR/branch @stephanieatte to add other docs tweaks I'd been working on recently. I was just hoping to get all of these updates merged in ASAP.

No worries @gilesgas i was off, just resumed back


Route with ID returns empty object

I'm using a JSON file with the following content:
{
  "users": [
    {"id": 1, "name": "Clark Kent", "hero": "Superman"},
    {"id": 2, "name": "Bruce Wayne", "hero": "Batman"},
    {"id": 3, "name": "Peter Parker", "hero": "Spiderman"}
  ]
}

When I use the users route (http://localhost:3000/users) I get back a list of all the user objects:
[
    {
        "id": 1,
        "name": "Clark Kent",
        "hero": "Superman"
    },
    {
        "id": 2,
        "name": "Bruce Wayne",
        "hero": "Batman"
    },
    {
        "id": 3,
        "name": "Peter Parker",
        "hero": "Spiderman"
    }
]

However when I use a route like users/1 I only get back an empty object.
I currently have jsonserver v0.1.6 installed

I see now that the version in this repo is at 0.9.6. I tried this version and it does not have the issue that I raised. I'm new to node, npm etc. so I don't know why I got version 0.1.6 when I installed with npm install -g json-server.

How did you solve this ?


[cherry-pick to main] Fix: rbac from codefalre role

cherry-pick for https://github.com/red-hat-data-services/rhods-operator/pull/61

i will close this one, in favor of upstream issue https://github.com/opendatahub-io/opendatahub-operator/issues/551 with sync down to rhods


Corrected issue 190

Correcting Issue 190 from 403 to 404

Hi @MikePlumleyMSFT can you please assist to approve and merge the data for this PR based on issue# https://github.com/MicrosoftDocs/OfficeDocs-O365ITPro/issues/190
Thank you.

@mypil there are some grammar issues / typos in the updates. Can you address those?

I can check them if you let me know what are the issues

"... won't be able to this changes."

"... won't be able to this changes."

These* ty


Configuration for rule "@typescript-eslint/ban-ts-comment" is invalid

Hey, I'm getting the following error when launching eslint through the command line:
$ npx eslint src --fix
.eslintrc.js#overrides[1]:
        Configuration for rule "@typescript-eslint/ban-ts-comment" is invalid:
        Value "allow-with-description" should be boolean.

This seems to stop the linting completely. I thought manually overriding the rule should help, but it doesn't:
module.exports = {
  extends: 'galex',
  rules: {
    '@typescript-eslint/ban-ts-comment': 0,
  },
};

Hi, do you possibly have @typescript-eslint/eslint-plugin installed separately?

I don't think so. But I created the app with create-react-app, so maybe they're pulling it? My package.json is:
{
  "name": "request2",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@bigheads/core": "file:bigheads/bigheads-core-v0.2.0.tgz",
    "@rpldy/chunked-uploady": "^0.4.1",
    "@rpldy/upload-button": "^0.4.1",
    "@rpldy/upload-drop-zone": "^0.4.1",
    "@rpldy/uploady": "^0.4.1",
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.3.2",
    "@testing-library/user-event": "^7.1.2",
    "classnames": "^2.2.6",
    "feather-icons": "^4.28.0",
    "formik": "^2.1.5",
    "history": "^5.0.0",
    "jsonschema": "^1.2.6",
    "moment": "^2.27.0",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-epic-spinners": "^0.4.1",
    "react-feather": "^2.0.8",
    "react-is": "^16.13.1",
    "react-markdown": "^4.3.1",
    "react-router": "^6.0.0-beta.0",
    "react-router-dom": "^6.0.0-beta.0",
    "react-scripts": "3.4.1",
    "react-select": "^3.1.0",
    "react-tooltip": "^4.2.6"
  },
  "scripts": {
    "start": "npm run watch:css && BROWSER=none react-scripts start",
    "build": "npm run build:css && react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "build:css": "postcss src/styles/index.css -o src/styles/tailwind.css",
    "watch:css": "postcss src/styles/index.css -o src/styles/tailwind.css"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@testing-library/dom": "^7.21.4",
    "@types/classnames": "^2.2.10",
    "@types/jest": "^26.0.8",
    "@types/node": "^14.6.4",
    "@types/react": "^16.9.43",
    "@types/react-dom": "^16.9.8",
    "@types/react-select": "^3.0.15",
    "@types/webpack-env": "^1.15.2",
    "autoprefixer": "^9.7.6",
    "eslint-config-galex": "^2.2.2",
    "postcss-cli": "^7.1.1",
    "prettier": "^2.0.5",
    "tailwindcss": "^1.4.6",
    "typescript": "^3.9.7"
  }
}

Ah, yes, create-react-app pulls in eslint-config-react-app which has outdated dependencies. Sorry for the convenience, I tested with CRA but not with the TS template. I'll fix this asap!

Thanks! I was just about to comment that even removing the eslintConfig: "..." from package.json and reinstalling all packages didn't help. Glad it sorted itself out.

I've published a fix in v2.2.3 and written a custom override for your situation:
// .eslintrc

// createConfig will detect your projects dependencies
const { createConfig } = require("../eslint-config-galex/src/createConfig");
// however, you need a custom override to access the typescript override sanely (the alternative way would rely on the order of overrides in the array which is a bad idea)
const {
  createTSOverride,
} = require("../eslint-config-galex/src/overrides/typescript");
const packageJson = require("./package.json");

const tsOverrideConfig = {
  react: {
    hasReact: true,
    isCreateReactApp: true,
  },
  rules: {
    "@typescript-eslint/ban-ts-comment": "off",
  },
  typescript: {
    hasTypeScript: true,
    version: packageJson.dependencies.typescript,
  },
};

// solely an override for TS
const tsOverride = createTSOverride(tsOverrideConfig);

// pass it into createConfig as array as it will be merged with the other overrides
module.exports = createConfig({ overrides: [tsOverride] });

Works for me locally, please let me know if it resolves the issue :)

Wow, that was fast. All works well with the latest update. Just to be sure, when'd like to disable import/no-namespace, for example, in all files, I can simply have
module.exports = {
  extends: 'galex',
  rules: {
    'import/no-namespace': 0,
  },
};

Is that right? And the overrides are needed only when I'd like to cherrypick in which files the rule gets enforced.

One last thing, I'm getting some warnings about missing rules:
Definition for rule '@typescript-eslint/consistent-type-imports' was not found.eslint(@typescript-eslint/consistent-type-imports)

Definition for rule 'no-promise-executor-return' was not found.eslint(no-promise-executor-return)

Definition for rule 'no-useless-backreference' was not found.eslint(no-useless-backreference)

Definition for rule 'default-case-last' was not found.eslint(default-case-last)

I think that those might be caused by an outdated eslint (CRA's default seems to be v6.8.0) — is there anyting I can do about this? E.g. manually override CRA's eslint with a newer version?

ah youre missing eslint as dev dependency as noted in the docs :) CRA here too is pulling in an (heavily) outdated version.
npm install --save-dev eslint
yarn add -D eslint

will fix that
re:
module.exports = {
  extends: 'galex',
  rules: {
    'import/no-namespace': 0,
  },
};

yes, global rules can be disabled that way. overrides that only apply to a subset of files need to be created manually.

It didn't! The other errors had gone away.

FYI @Eugleo I found out today that CRA with TypeScript sadly uses the internally installed version of @typescript-eslint/parser and @typescript-eslint/eslint-plugin. So if you want to use tuples, you'll have to install those separately.
I added a note for that to the readme too. Kinda annoying how massively outdated CRA is here...


WhatsApp Link

Description
Implement the WhatsApp interaction parts of the Transaction Flow. It requires #75 as a prerequisite.
Narrative

As a Member,
I want to get my payment transaction verified
so that I can start consuming the course content.

Acceptance Criteria
The /dashboard/purchase/confirm route should store the transaction values in the database and compose a prefilled WhatsApp link for the Member to send to the Author.
Scenario 1: Compose WhatsApp Link
Step no. 6 (WhatsApp Link) in the Transaction Flow diagram.

Modal Content
Data transaksi tersimpan
Silakan klik tombol di bawah ini untuk mengirimkan pesan WhatsApp kepada kami. Setelah itu, tolong lampirkan bukti transfer berupa foto atau file PDF ke nomor WhatsApp tersebut. Terima kasih.
[ Kirim Pesan WhatsApp ]

WhatsApp Link
`https://api.whatsapp.com/send?phone=${authorPhoneNumber}&text=%5BKelas%20Tahun%20Prasekolahku%5D%0A%0AKlik%20di%20sini%20untuk%20verifikasi%20pembayaran%0Ahttps%3A%2F%2Frbagi.id%2Fverify%2F${transactionId}%0A%0ABerikut%20terlampir%20foto%2Ffile%20bukti%20pembayaran%20saya%3A`

P.S. I populated that link above through https://create.wa.link, you can try experimenting with it to provide a better WhatsApp message

Given I am an authenticated user,
and I have not purchased the course yet,
when I submit the form in /dashboard/purchase/confirm route correctly,
then it stores my transaction data in the database
and composes a WhatsApp link based on my transaction data,
then it prompts me a Centered with single action modal with a Kirim Pesan WhatsApp action button,
when I click the Kirim Pesan WhatsApp action button,
then it redirects me to a WhatsApp web page using the WhatsApp Link defined above,
when I click the Continue to Chat button on the WhatsApp web page,
then it redirects me to my installed WhatsApp application with a prefilled message to send to the Author.

Implementation Model

Image previews

Centered with single action
Desktop view

Mobile view

Code snippets

Centered with single action
/* This example requires Tailwind CSS v2.0+ */
import { Fragment, useState } from 'react'
import { Dialog, Transition } from '@headlessui/react'
import { CheckIcon } from '@heroicons/react/outline'

export default function Example() {
  const [open, setOpen] = useState(true)

  return (
    <Transition.Root show={open} as={Fragment}>
      <Dialog as="div" className="fixed z-10 inset-0 overflow-y-auto" onClose={setOpen}>

          <Transition.Child
            as={Fragment}
            enter="ease-out duration-300"
            enterFrom="opacity-0"
            enterTo="opacity-100"
            leave="ease-in duration-200"
            leaveFrom="opacity-100"
            leaveTo="opacity-0"
          >
            <Dialog.Overlay className="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" />
          </Transition.Child>

          {/* This element is to trick the browser into centering the modal contents. */}

          <Transition.Child
            as={Fragment}
            enter="ease-out duration-300"
            enterFrom="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
            enterTo="opacity-100 translate-y-0 sm:scale-100"
            leave="ease-in duration-200"
            leaveFrom="opacity-100 translate-y-0 sm:scale-100"
            leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
          >

                  <CheckIcon className="h-6 w-6 text-green-600" aria-hidden="true" />

                  <Dialog.Title as="h3" className="text-lg leading-6 font-medium text-gray-900">
                    Payment successful
                  </Dialog.Title>

                      Lorem ipsum dolor sit amet consectetur adipisicing elit. Consequatur amet labore.

                <button
                  type="button"
                  className="inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm"
                  onClick={() => setOpen(false)}
                >
                  Go back to dashboard
                </button>

          </Transition.Child>

      </Dialog>
    </Transition.Root>
  )
}

Tasks

[ ] Write the transaction information into the database upon the form submission
[ ] Redirect to /dashboard/purchase/confirm/$transactionId route upon a successful response
[ ] Implement Centered with single action modal in a /dashboard/purchase/confirm/$transactionId.tsx file
[ ] Render a Remix's Outlet component somewhere in /dashboard/purchase/confirm.tsx file to render the modal above
[ ] Write end-to-end test scenarios to cover all the steps above, including verifying the link to the WhatsApp web page

Hi Mas Zain @zainfathoni, I'd like to work on this issue🙏, I have pushed the first commit just to save the seat 😅 but have not created the pull request draft yet, because I just read the prerequisite that it requires #75 . Is it means I have to wait for the #75 to be solved first before creating the pull request draft?

Hi Mas Zain @zainfathoni, This is my first step on contributing to open source, and I'd like to work on this issue🙏, I have pushed the first commit to save the seat 😅 but have not created the pull request draft yet, because I just read the prerequisite that it requires #75. Does it mean I have to wait for the #75 to be solved before creating the pull request draft?

No, as long as you understand the separation of scopes between the two issues, you can start working on this ticket and submit your draft PR first. I meant by requiring #75 that we can only close this ticket after we close #75.
Thanks for helping out, and have fun contributing to this project! 😉

Hi Mas Zain @zainfathoni, This is my first step on contributing to open source, and I'd like to work on this issue🙏, I have pushed the first commit to save the seat 😅 but have not created the pull request draft yet, because I just read the prerequisite that it requires #75. Does it mean I have to wait for the #75 to be solved before creating the pull request draft?

No, as long as you understand the separation of scopes between the two issues, you can start working on this ticket and submit your draft PR first. I meant by requiring #75 that we can only close this ticket after we close #75. It is definitely okay to start both of them in parallel.
Thanks for helping out, and have fun contributing to this project! 😉

Thank you Mas Zain, please for the guidance if I have any obstacles later on 😬🙏

Hi Mas Zain @zainfathoni . I have a question, on confirm page when I fill the fields for transaction, how could I retrieve courseId value?. Thank You🙏

Hi Mas Zain @zainfathoni . I have a question, on confirm page when I fill the fields for transaction, how could I retrieve courseId value?. Thank You🙏

Oops, yeah, it's a hole in our system at the moment, because we are still assuming that we're only supporting one course at the moment. Therefore, based on that assumption, you can try to get all the available courses in the database and get the first course, probably you can use the first() method in Prisma. Thanks! 🙏

Okay Mas, Thank you

Mas Zain @zainfathoni , i have another question. What should I do to the paymentTime field on the form? is it assigned to transaction as createdAt? or assigned for another purpose? .Thank you

Mas Zain @zainfathoni, I have another question. What should I do to the paymentTime field on the form? is it assigned to transaction as createdAt? or assigned for another purpose? Thank you

No, you should leave the createdAt and updatedAt values alone because they're supposed to be generated by Prisma or the database. Instead, you should add another field called datetime, as indicated in this Entity Relationship Diagram.
After my changes on #108, it should be much easier to do so now. You just need to update the schema and update the transactionBuilder accordingly, and everything should be good already. Let me know if you need more help to do it.

Update: I just added the datetime field at #110. You can continue the development now. Thanks!


Dronetheworld expired

The website for dronetheworld.com (Geolocation Tools/Maps) seems to have expired and no longer available.

Removed, thank you.


Post purchase screen needs to be more prominent

After purchase, the post-purchase screen is lost. Looks like it part of the event text (which has already been digested).
Ideas (Rose input needed of course):

When the blue purchase confirmation text appears, change text to say "Thank you! We've got some more to tell you about the event"
-Move the whole events block down and bring the thank you block into its own coloured (orange?) background block above.

add extra field to category to be displayed "Booking successful...".

remove short description of the event.

change text to "Make a donation to Hands Up Foundation" and smaller.


Attach File solution with selenium robot framework  -- Need help !

Originally submitted to Google Code by badbloo... on 29 Jan 2012

Hello everybody !
I am learning selenium robot-framework in basic. Currently, I am getting stuck at my exercise with Yahoo mail attach file stuff. With my current knowledge, I don't know how to use robot-framework to click on "Attach" button which is flash object:
<object id='yuiswfyui_2_2_0_1' data="assets/swf/uploader.swf" type="application/x-shockwave-flash">
Assume that we can click on this flash object, then how could I control "Upload File" dialog of Windows
Thank you for reading and greatly appreciate your help,
Thanks

Originally submitted to Google Code by @yanne on 21 Mar 2012

Usage questions should be sent to the users list:
https://groups.google.com/forum/?fromgroups#!forum/robotframework-users
There are some keywords in the library to interact with Flash objects.
Native dialog cannot be operated with SeleniumLibrary at all.
Closing this since this is not a valid issue report.


[ERROR] PDFPageCountError: Unable to get page count. pdfinfo: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /opt/lib/libpng16.so.16)

I get the following error when I try to use pdf2image following your example:
[ERROR] PDFPageCountError: Unable to get page count.
pdfinfo: /lib64/libz.so.1: version `ZLIB_1.2.9' not found (required by /opt/lib/libpng16.so.16)
Traceback (most recent call last):
  File "/var/task/index.py", line 33, in handler
    text = extract_text_pdf(image_path)
  File "/var/task/index.py", line 119, in extract_text_pdf
    imgs = pdf2image.convert_from_path(image_path, output_folder=path)
  File "/opt/python/lib/python3.8/site-packages/pdf2image/pdf2image.py", line 97, in convert_from_path
    page_count = pdfinfo_from_path(pdf_path, userpw, poppler_path=poppler_path)["Pages"]
  File "/opt/python/lib/python3.8/site-packages/pdf2image/pdf2image.py", line 471, in pdfinfo_from_path
    raise PDFPageCountError(

Sorry, in my case I have fixed by setting
poppler_path='/opt/lib/'


0.3.5

Why tornado-celery 0.3.5 not available in pip ???
(https://pypi.python.org/pypi/tornado-celery)

Released version 0.3.5 https://pypi.python.org/pypi/tornado-celery


Dimension too large: pdfTeX run failed with value 1!

PdfTex run failed:
$ pdfcrop --verbose fua_plot.pdf
PDFCROP 1.40, 2020/06/06 - Copyright (c) 2002-2020 by Heiko Oberdiek, Oberdiek Package Support Group.
* PDF header: %PDF-1.4
* Running ghostscript for BoundingBox calculation ...
GPL Ghostscript 9.53.3 (2020-10-01)
Copyright (C) 2020 Artifex Software, Inc.  All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Processing pages 1 through 1.
Page 1
%%BoundingBox: 5321 12066<PHONE_NUMBER>41
* Page 1: 5321 12066<PHONE_NUMBER>41
%%HiResBoundingBox: 5321.915838 12066.209632<PHONE_NUMBER>32<PHONE_NUMBER>07
* Running pdfTeX ...
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020) (preloaded format=pdftex)
entering extended mode
(./tmp-pdfcrop-58932.tex
! Dimension too large.
<to be read again>
                   \relax
\page ...in =#3bp\relax \pdfpagewidth =#4bp\relax
                                                  \advance \pdfpagewidth by ...
l.132 \page 1 [5321 12066<PHONE_NUMBER>41]

! Dimension too large.
<to be read again>
                   \relax
\page ...y -#2bp\relax \pdfpageheight =#5bp\relax
                                                  \advance \pdfpageheight by...
l.132 \page 1 [5321 12066<PHONE_NUMBER>41]

[1
! Huge page cannot be shipped out.
<to be read again>
                   \relax
l.132 \page 1 [5321 12066<PHONE_NUMBER>41]

] )
(see the transcript file for additional information)
No pages of output.
Transcript written on tmp-pdfcrop-58932.log.
!!! Error: pdfTeX run failed with value 1!

Well without the pdf one can't test, but the bounding box looks simply too large for pdftex.


my disqus shows same comments to all pages

Hi.
My disqus shows same comments to all posts.
I couldn't find solution how to solve this bug.
For example, I show 2 link of posts. All of them show same comments.... I want to show a unique comment window for a single post.
https://devkihyun.github.io/study/Paper-Review-7-Invert-CNN-Invert-Representation/
https://devkihyun.github.io/study/Paper-Review-6-RDN-Super-Resolution/
Thank you.

Don't think this is a theme issue, rather it has to do with your post names and how Jekyll creates permalinks.
The correct format for post filenames is YYYY-MM-DD-your-post-title.md
If you look at your posts you're using spaces which I believe is confusing some things. The theme uses page.url to populate the Disqus comment box, which is how comments are associated with a given page.

In your case the page.url (which should be unique for every page) is the same for both posts, which is why the same comments appear on all.
<script>
    var disqus_config = function () {
      this.page.url = "https://devkihyun.github.io/study/Machine-learining-and-Probability/";  // Replace PAGE_URL with your page's canonical URL variable
      this.page.identifier = "/study/Machine learining and Probability"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
    };
    (function() { // DON'T EDIT BELOW THIS LINE
      var d = document, s = d.createElement('script');
      s.src = 'https://devkihyun.disqus.com/embed.js';
      s.setAttribute('data-timestamp', +new Date());
      (d.head || d.body).appendChild(s);
    })();
  </script>

I would suggest you rename your _posts to match Jekyll's conventions, which should fix your issue.
For example change:
_posts/2019-07-22-Paper Review 6 - RDN [Super Resolution].md
to _posts/2019-07-22-Paper-Review-6-RDN-Super Resolution.md

Thank you!!! I changed all names, but problem is not solve....
I also found  'page.url' of all post show specific post's url. I don't know why...

I think your issue is you aren't using the latest version of the theme. Since you have it configured as a remote_theme you also need to remove the following folders (and files within):

/_includes
/_layouts
/_sass
/docs

I did this with a cloned version of your site and it built and Disqus comments had the correct page.urls. As far as I can tell at some point you might have modified one of the theme's files and broke something.


Seeings CORS error when POST /token returns 401. There are no CORS headers in response

Please follow the issue template below. Failure to do so will result in a delay in answering your question.

Library

[ ]<EMAIL_ADDRESS>or<EMAIL_ADDRESS>[X]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>
Important: Please fill in your exact version number above, e.g<EMAIL_ADDRESS>Framework
React
Description
Getting unexpected CORS error
sample x-ms-request-id: 1fc40f56-aa0b-4c05-9a96-45fd61420400
I also have an HAR file that can show this. Please message me for it
Error Message
CORS error in browser's console
Security

[ ] Is this issue security related?

Regression

[ ] Did this behavior work before?
Version:

MSAL Configuration
    const browser = Bowser.getParser(window.navigator.userAgent);
    const isIEOrOldEdge =
      browser.satisfies({ edge: "<79" }) || browser.getBrowserName().toLowerCase() === "internet explorer";
    const publicClientApp = new PublicClientApplication({
      auth: {
        clientId: this.clientId,
        authority: this.authority,
        redirectUri: this.loginRedirectUri,
        postLogoutRedirectUri: this.postLogoutRedirectUri
      },
      cache: {
        cacheLocation: "localStorage",
        storeAuthStateInCookie: isIEOrOldEdge // https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/1188#issuecomment-634281307
      },
      system: {
        tokenRenewalOffsetSeconds: 60,
        iframeHashTimeout: 30000, // iframe is used to refresh the refresh_token as it has a 24h lifetime
        loggerOptions: {
          loggerCallback: MsalAuthContext.msalLoggerCallback,
          piiLoggingEnabled: false,
          logLevel: LogLevel.Verbose
        }
      }
    });
    const handleRedirectPromise = publicClientApp
      .handleRedirectPromise()
      .then(response => {
        this.account = response ? response.account : this.getAccount();
        if (!this.account) {
          CoreLogger.trackEvent(TelemetryEventName.Core_MSALAuthContext_login);
          this.publicClientApp.loginRedirect({
            scopes: this.scopes,
            authority: this.authority,
            extraQueryParameters: this.safeRolloutQueryParams
          });
        }
      })
      .catch(error => {
        if (error) {
          this.trackError(error);
        }
      });

Reproduction steps

Have a refresh token that is expired
MSAL will try to call POST /token and receives a 400 - that the refresh token has expired
MSAL will try to call POST /token again and receives a 401 - but with no CORS headers in the response headers, resulting in CORS issue

Expected behavior

no CORS issues

Browsers/Environment

[X] Chrome
[ ] Firefox
[ ] Edge
[ ] Safari
[ ] IE
[ ] Other (Please add browser name here)

@thoo1 Can you please confirm that the redirect URI used for the request is of type "spa"? This is required for CORS with MSAL v2.

@jasonnutter yes, I can confirm that, however its a bit complicated because i'm using safe rollout (our app is a first-party app) and so the config change that switches the reply url from "web" to "spa" is inside a safe rollout which is enabled by passing some queryParameters
I did this for acquireTokenRedirect and loginRedirect as those functions have options for extraQueryParameters, I notice that acquireTokenSilent does not have an option to attach extraQueryParameters.
So in this case, would the POST /token endpoint also check that the reply url has to be type "spa"? If so, it looks like this is probably the reason, since there is no option to pass my safe-rollout query param on acquireTokenSilent

@thoo1 Ah, sounds like we need to add extraQueryParameters to the acquireTokenSilent API?

Thanks for the quick action on this @jasonnutter! Looking forward to the next release

@sameerag, could you provide any ETA for the 2.3.2 release?

@thoo1 One note, the fix for this was purely for types. This means if you provide extraQueryParameters to acquireTokenSilent at runtime, they should get passed (you will need to ignore the Typescript warnings).

@jasonnutter thanks jason! I'll try that


Remove old test262 and dt runner infra

Follow-up to #53118.
I'll try and get test262 going in the error deltas repo, at the very least to just check parsing.

I thought I could delete the scripts, but they actually are for importing DT into RWC, so I'll delete that another day.

I have absolute no clue why the linter is complaining...

If anyone watching this is a genius, see if you can figure out why that previous comment makes ts-eslint work again... I don't get it.

Well, I "figured" it out, in that I assumed that it had to do with ts-eslint loading all code into one Program and there being oddities with type references, so I just made a new eslint-only config which adds them unconditionally.

https://github.com/microsoft/typescript-error-deltas/pull/102 for the error deltas change. Surprise, we debug assert, so that's something to look into.


Custom rules

This may be something I am doing but no matter what regexp I put I cant evaluate after a tag.
In the custom rule screen is has this.
key-name |
Regexp that matches the forbidden name
In this case I want to evaluate the password key. I want to insure that passwords are setup as variables. If I put "password" it will trigger and that is good. However, if I add a regexp to check whats after that it will never work. Is this actually using regexp or something else?
My regex looks like /password: "[^{{]*/igs

That would be amazing to have ForbbenValueCheck rule. I dont know if this is in scope but I think it would be helpful to have that ability to evaluate after the :
You basically nailed my issue on the head as I just evaluate forbidden keys.

OK, so let's try to write this new rule. Planned for release 1.3.0.

Hi. Version 1.3.0 just released. enjoy!

You sir are AWESOME!

This seems to work. It would be nice if it were a template like the other rule so someone could set it if its a vulnerability or code smell ex ex.


[New Plugin] - What Pet is that Anyway - v1.0.0 - Sololegends

What Pet is that Anyway
Adds an on-hover tooltip for everyone's !pets command so you can see what the heck those little icons actually are.

This seems like a good contribution to core if you have not already PR'd it there.

I was going to, but it seemed some build reqs locked behind a repo I didn't have access to.

The core client can be built just fine off the runelite/runelite repository.
https://github.com/runelite/runelite/wiki/Developer-Guide

I'll try to work through it again, I went through that doc and during the maven build it tried to access a maven repo which kept returning a 403.

Submitted a pr with this just in the chat commands core plugin
https://github.com/runelite/runelite/pull/18442

@sololegends We can go ahead and merge the hub plugin version here for now if you want to pull your recent changes back over, and if the core PR gets renewed attention later then that can be separate.

I publish every jar by ci to a central repo I control as an easy way for me to pull down whatever I need easily. I do this for every project I create.
I'll rip it out tomorrow, I'll just have a different upstream.

You can already do that with an action you make on your repository


dateFormat doesn't work with the readonly helper

Configuring the component in the following way results in the text input containing an unformatted date.
{{ember-flatpickr
  value=(readonly dateValue)
  onChange=(action (mut dateValue))
  dateFormat="m/d/Y"}}

If I remove the readonly helper, the date gets formatted, but the value of dateValue gets cast to a string.

@humanchimp I suspect this might have to do with the same issue everyone is reporting here. Once flatpickr releases a new version, we'll see if this issue still exists.

Ah, ok. Sorry to report an issue that is already on record. If this is a duplicate, please feel free to close it.

@humanchimp can you try installing version 1.1.7 and seeing if the issue is resolved please?

It seems like my issue is different than what I described. I'm going to close this issue and open a new one later, if necessary.


release workflow would create helm images

Need to replace all helm references with terraform.

This has already been addressed.


LightweightMaps.gml tries to reference _toKeyName before it exists!

Finally getting to check your data structure replacements (and learning how to use GitHub lol)  Line 11 in LightweightMaps.gml:
var kn = _toKeyName(argument[i]);
..calls _toKeyName before the static _toKeyName on line 17 and crashes the examples on the Simple Nested Map Example!  I just moved that loop down to be right under line 17 and it works fine now

Patched for the upcoming release: https://github.com/dicksonlaw583/LightweightDataStructures/commit/b86536935ebbc22eb7e69faac7247d5eb24e7233


Need isomorphic localStorage in OdspUtils

I've seen the stress test hit this error:
fluid:telemetry:Container ContainerClose {"loaderId":"24582743-e43d-423e-93fe-92eb1ba2992e","clientType":"interactive","loaderVersion":"0.35.0","containerId":"b49bd346-b1b4-4659-9cfd-65d549b5726e","sequenceNumber":0,"category":"error","error":"localStorage is not defined","message":"localStorage is not defined","errorType":"genericError","docId":"r3Ly8%2FFHIngtiUTw91wbOgSZUNbagx3ibib5PHRjQd8%3D","containerAttachState":"Attached","containerLoaded":true} tick=83467 ReferenceError: localStorage is not defined
  fluid:telemetry:Container     at connectWithAfd (D:\spo\FluidFramework\packages\drivers\odsp-driver\dist\odspDocumentService.js:266:17)
  fluid:telemetry:Container     at processTicksAndRejections (internal/process/task_queues.js:97:5)
  fluid:telemetry:Container     at async D:\spo\FluidFramework\packages\drivers\odsp-driver\dist\odspDocumentService.js:178:36
  fluid:telemetry:Container     at async connectCore (D:\spo\FluidFramework\packages\loader\container-loader\dist\deltaManager.js:476:34) +0ms

Seems like the ODSP driver code is trying to use localStorage which isn't defined when running in a Node environment.

Here: https://github.com/microsoft/FluidFramework/blob/69b8a0114abf793b35c61095b470b42020806d62/packages/drivers/odsp-driver/src/odspDocumentService.ts#L401


HPX fails to build on ppc64le

Expected Behavior
building
Actual Behavior
The build fails with:
[ 19%] Linking CXX shared library ../lib/libhpx_cored.so
../lib/libhpx_coroutinesd.a(context_base.cpp.o):(.toc+0x18): undefined reference to `hpx::threads::coroutines::detail::posix::ucontext_context_impl_base::default_stack_size'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libhpx_cored.so] Error 1
make[1]: *** [libs/CMakeFiles/hpx_core.dir/all] Error 2
make: *** [all] Error 2

Steps to Reproduce the Problem

Using current master
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/local/packages/hpx/2021-03-17/install -DHPX_WITH_MALLOC=tcmalloc -DHPX_WITH_THREAD_IDLE_RATES=ON -DHPX_WITH_PARCELPORT_MPI=ON -DHPX_WITH_PARCEL_COALESCING=ON -DHPX_WITH_TOOLS=OFF -DHPX_WITH_THREAD_MANAGER_IDLE_BACKOFF=OFF -DHPX_WITH_APEX=TRUE -DHPX_WITH_APEX_NO_UPDATE=TRUE -DAPEX_WITH_ACTIVEHARMONY=TRUE -DAPEX_WITH_CUDA=TRUE -DAPEX_WITH_OTF2=TRUE -DAPEX_WITH_PAPI=TRUE -DAPEX_WITH_BFD=TRUE -DBOOST_ROOT=/home/users/khuck/src/hpx/boost_ppc64le_1.73.0 -DTCMALLOC_ROOT=/usr/local/packages/gperftools/2.5 -DACTIVEHARMONY_ROOT=/usr/local/packages/activeharmony/4.6.0-ppc64le -DOTF2_ROOT=/usr/local/packages/otf2/2.1-ppc64le -DPAPI_ROOT=/usr/local/packages/papi/5.7.0 -DHPX_WITH_APEX_TAG=develop -DBFD_ROOT=/usr/local/packages/binutils/2.25 -DLM_SENSORS_ROOT=/usr -DHPX_WITH_MAX_CPU_COUNT=160 /scratch/khuck/hpx/src
make

Specifications
... Please describe your environment

HPX Version:  current master
Platform (compiler, OS):  ppc64le on POWER9, using gcc 7.3, openmpi 4.0 and cuda 10.1, and cmake 3.19.6

@khuck this variable is defined here: https://github.com/STEllAR-GROUP/hpx/blob/master/libs/core/coroutines/src/detail/posix_utility.cpp. Could you please add a:
      ... || defined(__ppc__) || defined(__ppc) || defined(__powerpc__) \\
          || defined(_ARCH_COM) || defined(_ARCH_PWR) || defined(_ARCH_PPC)  \\
          || defined(_M_MPPC) || defined(_M_PPC)

(or similar) to the #if condition to see if that fixes your issue?

@hkaiser that fixed it for one file, but then the next failure was:
[ 19%] Linking CXX shared library ../lib/libhpx_cored.so
../lib/libhpx_coroutinesd.a(context_base.cpp.o):(.toc+0x18): undefined reference to `hpx::threads::coroutines::detail::posix::ucontext_context_impl_base::default_stack_size'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libhpx_cored.so] Error 1
make[1]: *** [libs/CMakeFiles/hpx_core.dir/all] Error 2
make: *** [all] Error 2

and that happened even with a change to context_impl.hpp. (although I don't know if I changed it correctly)

@hkaiser I do get a ton of these warnings now:
/scratch/khuck/hpx/src/libs/core/coroutines/include/hpx/coroutines/detail/context_posix.hpp:286:21:warning: unused parameter ‘signum’ [-Wunused-parameter]
                 int signum, siginfo_t* infoptr, void* ctxptr)
                     ^~~~~~

...which I addressed with HPX_UNUSED(signum);

@khuck sorry it took so long to get back. Could you give us a patch (or a PR) reflecting your changes, please?

Actually, I think it works now because Patrick has been building on Summit.  I will double check but I don't think it's still a problem.


Verify training data in f731af

I added training data from unparseable.csv before I had a solid understanding of the existing training data and the URISA standard. I'm wondering if this is contributing to depreciating performance in #153 and #155.
I'm going to look through the new training data in f731af and verify that it 1) meets the URISA standard and 2) does not include excessive examples of unusual address patterns.

Can you please tell which features you passed to crf-suite implementation ? Also, what was the encoder used ?

@shikharcic please open a new issue. This is not relevant for this issue.
@jeancochrane, do not remove unusual patterns.

Closing this – will keep the unusual patterns.


[improve][io] Fix Kotlin version issue for functions built in Kotlin

Motivation
I was trying to implement a custom Sink connector using Kotlin. My Kotlin version was 1.8.10 and was using Jackson in my code. I saw a weird reflection-related error in my code. The debugging ended up with a finding that the Pulsar broker was bringing the Kotlin library dependency which was version 1.4.32 and that was getting loaded before my version. Hence my sink was using the older version of a specific class. While looking for Kotlin support in Pulsar code and feedback from the committers in this PR, I realized that Pulsar code is not using the Kotlin library directly but it is a transitive dependency. The latest stable version of the main dependency(okhttp3) bringing Kotlin(1.6.20) as a transitive dependency doesn't use the latest version of Kotlin(1.8.10). Hence, updated okhttp3, okio, and Kotlin separately for the convenience of an existing structure.
Putting the exception that I got here. (Not sure whether that is required):
Caused by: kotlin.reflect.jvm.internal.KotlinReflectionInternalError: Cannot create type for an unsupported classifier: class kotlin.Unit (Kotlin reflection is not available) (class kotlin.jvm.internal.ClassReference)
        at kotlin.reflect.full.KClassifiers.createType(KClassifiers.kt:48) ~[kotlin-reflect-1.8.10.jar:1.8.10-release-430(1.8.10)]
        at kotlin.reflect.full.KClassifiers.createType$default(KClassifiers.kt:42) ~[kotlin-reflect-1.8.10.jar:1.8.10-release-430(1.8.10)]
        at com.fasterxml.jackson.module.kotlin.KotlinAnnotationIntrospector.<clinit>(KotlinAnnotationIntrospector.kt:218) ~[jackson-module-kotlin-2.14.2.jar:2.14.2]
        at com.fasterxml.jackson.module.kotlin.KotlinModule.setupModule(KotlinModule.kt:121) ~[jackson-module-kotlin-2.14.2.jar:2.14.2]
        at com.fasterxml.jackson.databind.ObjectMapper.registerModule(ObjectMapper.java:853) ~[com.fasterxml.jackson.core-jackson-databind-<IP_ADDRESS>.jar:<IP_ADDRESS>]

Here kotlin.Unit class is loaded from Kotlin 1.4.32 whereas Jackson was compiled with Kotlin 1.5.32.
Modifications

Upgraded transitive org.jetbrains.kotlin:kotlin-stdlib library from 1.4.32 to 1.8.10
Upgraded transitive okhttp3 version from 4.9.3 to 4.10.0
Upgraded transitive okio version from 2.8.0 to 3.0.0

Verifying this change

[x] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework.
Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[x] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: https://github.com/abhilashmandaliya/pulsar/pull/1

cc @nicoloboschi since you're the last author for editing these versions.

@nodece @tisonkun @lhotari @nicoloboschi
I have made the changes as per the feedback and also updated the PR description.
GitHub UI did some weird things hence there are several reviews and remove status lines.

@nicoloboschi PTAL at the updated library version change.

@abhilashmandaliya license check failed:
com.squareup.okio-okio-jvm-3.0.0.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-1.6.20.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-common-1.5.31.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.6.10.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-jdk8-1.6.10.jar unaccounted for in LICENSE
com.squareup.okio-okio-3.3.0.jar mentioned in LICENSE, but not bundled
org.jetbrains.kotlin-kotlin-stdlib-1.8.0.jar mentioned in LICENSE, but not bundled
org.jetbrains.kotlin-kotlin-stdlib-common-1.8.0.jar mentioned in LICENSE, but not bundled
org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.8.0.jar mentioned in LICENSE, but not bundled
org.jetbrains.kotlin-kotlin-stdlib-jdk8-1.8.0.jar mentioned in LICENSE, but not bundled

The first lines can be redundant that you should remove. The final lines about kotlin-stdlib, I'm afraid, indicate an issue that we are missing to bundle them?

@abhilashmandaliya license check failed:
com.squareup.okio-okio-jvm-3.0.0.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-1.6.20.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-common-1.5.31.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.6.10.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-jdk8-1.6.10.jar unaccounted for in LICENSE
com.squareup.okio-okio-3.3.0.jar mentioned in LICENSE, but not bundled
org.jetbrains.kotlin-kotlin-stdlib-1.8.0.jar mentioned in LICENSE, but not bundled
org.jetbrains.kotlin-kotlin-stdlib-common-1.8.0.jar mentioned in LICENSE, but not bundled
org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.8.0.jar mentioned in LICENSE, but not bundled
org.jetbrains.kotlin-kotlin-stdlib-jdk8-1.8.0.jar mentioned in LICENSE, but not bundled

The first lines can be redundant that you should remove. The final lines about kotlin-stdlib, I'm afraid, indicate an issue that we are missing to bundle them?

@tisonkun With the latest okio library, we don't need to use a different version of Kotlin hence I removed it from the pom.xml. I forgot to remove it from the LICENCE file. I have fixed that. Not sure why okio error is there.

@abhilashmandaliya I get the error report wrong.
com.squareup.okio-okio-jvm-3.0.0.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-1.6.20.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-common-1.5.31.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-jdk7-1.6.10.jar unaccounted for in LICENSE
org.jetbrains.kotlin-kotlin-stdlib-jdk8-1.6.10.jar unaccounted for in LICENSE

These lines mean that you're now (transitive) depending on these libs but they are not listed (mentioned) in the LICENSE file.
You may double check if the version is correct (kotlin 1.5 and 1.6 while we plan to use 1.8? okio-jvm 3.0.0?). The LICENSE updating job I can do you a favor. But we should confirm the final status logically first.

Closing the PR as Pulsar 3.0.0 doesn't bring the older Kotlin version. Thanks a lot, @tisonkun for your help.


bump python to ^3.9

format toml

cc @ElijahAhianyo poetry install fails on main, because the lockfile is outdated
also reflex has bumped python to ^3.9 which needs to be adjusted here as well


Generation of an Adoption Team.

Is your feature request related to a problem? Please describe.
We need to generate a team that help us to accelerate the Adoption of this framework and help us to be consultants.
Describe the solution you'd like
A team of 3 to 4 persons needs to be created.
Describe alternatives you've considered
N/A
Additional context
N/A

The Team was generated:
PM - @davidanizar
UEX - @jarryfull
TE - Victor
Backup - @abdelmaster


[CWS] add and/or aliases in SECL operators documentation

What does this PR do?
This PR adds and/or aliases to the operator table in the SECL documentation. Those aliases have been supported for >3 years no, since 7.27.
Motivation
Describe how to test/QA your changes
Possible Drawbacks / Trade-offs
Additional Notes

/merge


python310Packages.datadiff: 1.1.6 -> 2.0.0

Description of changes
Update to latest upstream release 2.0.0

Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

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

2 packages built:

python310Packages.datadiff
python39Packages.datadiff

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

2 packages built:

python310Packages.datadiff
python39Packages.datadiff


Was 'node-switchbot' found: false

Current Situation
Recently, I've moved my Homebridge setup over from a Raspberry Pi to a Synology NAS using a Docker container - full clean install. All of my plugins work and install nicely, however the Switchbot plugin has some problems. In the logs you can see that the plugin detects two devices; this can be correct, as there is a Switchbot Hub Mini and a Switchbot Curtain on my account - I'd like to only use Curtain, preferably through BLE.
So, I've set up everything accordingly, and like when doing the first time went through all steps. However, the plugin cannot seem to make either a BLE or an OpenAPI connection. In my logs you can see it's repeatedly trying to get a connection, but cannot get one. At one point, it also shows 'was 'node-switchbot' found: false. I think that's the culprit here, since node-switchbot is being used by curtain specifically. I also saw the following error when installing through the Homebridge UI - not through the Terminal:
node-pre-gyp ERR! install response status 404 Not Found on https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-10/bluetooth_hci_socket-0.5.3-10-node-v108-linux-x64.tar.gz
I did use to have Pi-hole installed and working, but as I thought this would be a DNS error, I disabled and restarted everything correctly - no luck. If anyone is able to provide support to get my curtain working, preferably through BLE and otherwise through OpenAPI, I would very much appreciate it!

            },
            "options": {
                "devices": [
                    {
                        "deviceId": "C8E937298BA2",
                        "configDeviceName": "Curtain",
                        "configDeviceType": "Curtain",
                        "connectionType": "BLE/OpenAPI",
                        "curtain": {
                            "set_min": 2,
                            "set_max": 98,
                            "setOpenMode": "1",
                            "setCloseMode": "1"
                        },
                        "history": true
                    }
                ]
            },
            "platform": "SwitchBot"
        }

Environment

OS: Synology DSM 7.1, Docker 20.10.3-latest, Homebridge latest
Software: latest version of Homebridge installed through UI
Node: v18.16.0
npm: 9.5.1

Additional Context
No response

I have got the same issue. Any news?

In the end I manually reset my entire homebridge setup, reinstalled all plugins, manually updated node and now (few months later) I don’t experience any issues.

On 23 Nov 2023, at 20:26, Jonas Vercammen @.***> wrote:
I have got the same issue. Any news?
—
Reply to this email directly, view it on GitHub https://github.com/OpenWonderLabs/node-switchbot/issues/188#issuecomment-1824843409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEZNP3KMX22ZEAFCZWVFSG3YF6PORAVCNFSM6AAAAAAXAMIX4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUHA2DGNBQHE.


pull request

https://github.com/monkey-soft/python

I'm just a little confused with the code.
I mean...is Connie really dead or just a figment of his imagination.
Lol I'm trying to fit in the code with python. You can help me.
monkey/0004/README.md
@@ -0,0 +1,5 @@
+###题目要求
+任一个英文的纯文本文件，统计其中的单词出现的个数。
+
+###Topic request
+in a English plain text file, you must count the number of every word that
appear in it.
Sign in to comment
or sign up to join this conversation on GitHub
monkey/0004/main.py
@@ -0,0 +1,33 @@
+import re
+
+author = 'monkey'
+
+def countWords():

打开文件

with open('text.txt', 'r') as file:

   data = file.read()

words = re.compile(r'([a-zA-Z]+)')

统计每个单词出现个个数

dic = {}
for i in words.findall(data):

   if i not in dic:

       dic[i] = 1

   else:

       dic[i] += 1

将字典里面的item保存到list中

numlist = []
for k,value in dic.items():

   numlist.append((k, value))

排序

numlist.sort(key = lambda  t:t[0])

输出结果

for i in numlist:

   print(i[0], i[1])

+if name == 'main':

countWords()
monkey/0004/text.txt
@@ -0,0 +1,29 @@
+Most people need to hear those "three little words" I love you. Once in a
while, they hear them just in time.

+I met Connie the day she was admitted to the hospice ward, where I worked
as a volunteer. Her husband, Bill, stood nervously nearby as she was
transferred from the gurney to the hospital bed. Although Connie was in the
final stages of her fight against cancer, she was alert and cheerful. We
got her settled in. I finished marking her name on all the hospital
supplies she would be using, then asked if she needed anything.
+
+"Oh, yes," she said, "would you please show me how to use the TV? I enjoy
the soaps so much and I don't want to get behind on what's happening."
Connie was a romantic. She loved soap operas, romance novels and movies
with a good love story. As we became acquainted, she confided how
frustrating it was to be married 32 years to a man who often called her "a
silly woman."
+
+"Oh, I know Bill loves me," she said, "but he has never been one to say he
loves me, or send cards to me." She sighed and looked out the window at the
trees in the courtyard. "I'd give anything if he'd say 'I love you,' but
it's just not in his nature."
+
+Bill visited Connie every day. In the beginning, he sat next to the bed
while she watched the soaps. Later, when she began sleeping more, he paced
up and down the hallway outside her room. Soon, when she no longer watched
television and had fewer waking moments, I began spending more of my
volunteer time with Bill.
+
+He talked about having worked as a carpenter and how he liked to go
fishing. He and Connie had no children, but they'd been enjoying retirement
by traveling, until Connie got sick. Bill could not express his feelings
about the fact that his wife was dying.
+
+One day, over coffee in the cafeteria, I got him on the subject of women
and how we need romance in our lives; how we love to get sentimental1 cards
and love letters.
+
+"Do you tell Connie you love her?" I asked (knowing his answer), and he
looked at me as if I was crazy.
+
+"I don't have to," he said. "She knows I do!"
+
+"I'm sure she knows," I said, reaching over and touching his hands  rough,
carpenter's hands that were gripping the cup as if it were the only thing
he had to hang onto  "but she needs to hear it, Bill. She needs to hear
what she has meant to you all these years. Please think about it."
+
+We walked back to Connie's room. Bill disappeared inside, and I left to
visit another patient. Later, I saw Bill sitting by the bed. He was holding
Connie's hand as she slept. The date was February 12.
+
+Two days later I walked down the hospice ward at noon. There stood Bill,
leaning up against the wall in the hallway, staring at the floor. I already
knew from the head nurse that Connie had died at 11 A.M..
+
+When Bill saw me, he allowed himself to come into my arms for a long time.
His face was wet with tears and he was trembling. Finally, he leaned back
against the wall and took a deep breath.
+
+"I have to say something," he said. "I have to say how good I feel about
telling her." He stopped to blow his nose. "I thought a lot about what you
said, and this morning I told her how much I loved her... and loved being
married to her. You shoulda2 seen her smile!"
+
+I went into the room to say my own goodbye to Connie. There, on the
bedside table, was a large Valentine card from Bill. You know, the
sentimental kind that says, "To my wonderful wife... I love you."
monkey/0013/README.md
@@ -0,0 +1,7 @@
+###题目要求：
+* 用Pyhton写一个爬图片的程序，爬这个链接里的日本妹子图片
+* 地址：http://tieba.baidu.com/p/2166231880
+
+###Topic request
+* Use Python to write a crawl program and crawl photos of Japanese girls
from url
+* URL:http://tieba.baidu.com/p/2166231880
monkey/0013/main.py
@@ -5,9 +5,6 @@
author = 'monkey'
-# 题目要求：
-# 用Pyhton写一个爬图片的程序，爬这个链接里的日本妹子图片
-# 地址：http://tieba.baidu.com/p/2166231880
获取url地址，对页面进行爬去
def spider(url):
On Dec 29, 2015 11:57 PM, "YouYuan Chan"<EMAIL_ADDRESS>wrote:

https://github.com/monkey-soft/python
You can view, comment on, or merge this pull request online at:
https://github.com/Show-Me-the-Code/python/pull/163
Commit Summary

Update 0013
complete 0004

File Changes

A monkey/0004/README.md
https://github.com/Show-Me-the-Code/python/pull/163/files#diff-0 (5)
A monkey/0004/main.py
https://github.com/Show-Me-the-Code/python/pull/163/files#diff-1
(33)
A monkey/0004/text.txt
https://github.com/Show-Me-the-Code/python/pull/163/files#diff-2
(29)
A monkey/0013/README.md
https://github.com/Show-Me-the-Code/python/pull/163/files#diff-3 (7)
M monkey/0013/main.py
https://github.com/Show-Me-the-Code/python/pull/163/files#diff-4 (3)

Patch Links:

https://github.com/Show-Me-the-Code/python/pull/163.patch
https://github.com/Show-Me-the-Code/python/pull/163.diff

—
Reply to this email directly or view it on GitHub
https://github.com/Show-Me-the-Code/python/pull/163.


[Feature Request] Consider making AI fields optional

💭 Describe the feature

If I don't assign these two fields, it will throw a type error.

I haven't started using AI yet, and these two fields both have default values.
💡 Proposed Solution
No response

The latest version 🌟(v1.9.1)🌟 should be resolve this issue request , please have a try. 💪
👀 Let me know if there are still any issues. 🎉


RFC 0056: Service decorator needs a mandatory did field

Suppose I receive a request with a service decorator as shown at https://github.com/hyperledger/aries-rfcs/tree/527849ec3aa2a8fd47a7bb6c57f918ff8bcb5e8c/features/0056-service-decorator#tutorial and need to send a response message. What should be in the ~thread.received_orders field of the response as shown at https://github.com/hyperledger/aries-rfcs/tree/64e5e55c123b2efaf38f4b0911a71a1c40a7f29d/concepts/0008-message-id-and-threading#threaded-messages ? It is supposed to be of the form {"":1}, so where do we get the sender's DID in this case since the service decorator does not have a DID?
To solve this, I propose that we add a mandatory did field to the service decorator.  Thoughts?

Good question.
I don't think ~thread.received_orders is mandatory, so making something else mandatory so it can be populated feels like the wrong solution. I also think ~thread.received_orders is less likely to be useful in ephemeral mode, so lacking data there may not matter a lot.
That doesn't mean I don't want to solve this; it just means I'm scratching my head.


[Bug] Can't import video

Always stuck at 0% when choosing to import video.

The % is just based on the number of elements currently. So it will go to 100% once a video is finished


[Feature] Admin module

Proposal
Adding a general purpose admin module with the some spam routes, views, and digging into routes for templates.
This is meant to be a pretty barebones implementation, for use by a wider team looking to add apps to the Admin module in order to support user, pre-reg, and spam administration.
Repercussions
Another django app inside of a flask project.

Rather than having multiple manage.py files, we should be able to parametrize a single manage.py file with the DJANGO_SETTINGS_MODULE envvar.
DJANGO_SETTINGS_MODULE='admin.base.settings' python manage.py runserver

Pass finished.

So rather than using the normal setdefault it would just be set?

Python modules cannot contain dashes; change pre-reg -> pre_reg

Stopped the build for the pre-reg to pre_reg change.

Pass finished.

Merged into feature/admin-app. Please send future PRs to that branch.


Enuqiry regarding the new Web based interface

Hey Devs,
I was interested to know if the new web interface is just for the scanned results or we can actually start scans from the web interface itself?
Also I would like to request a feature such as subdomain monitoring or scheduled scans for users running it on VPS, so that the scans for any programs can scheduled just like crontab
Thanks and Regards,

Hi, the idea behind the web is to bring a way to visualize the data, but also you can run scans from it. It also has a pending feature to schedule scans from it, meanwhile you can just use your crontab :)


Unable to reorder Projects by priority in dashboard

Hi,
I using more and more KB for pro and personal use.
I would liek to be able to sort Projects in the Dashboard by priority.
For instance I would like to have project15 always on the top row of the dashboard.
I could not find a way to do it.
Is this a feature that couldbe implemented or did I miss something ?
Thank you for your great work.

There is no priority per project.

Ok. Is there a way I could sort them in the dashboard (not only alphabetically) ? kind of workaround.
Maybe per id but it doesn't show in the bashboad and it doesn't seem possible to chaneg projet's id .
It would great if it could be added to the wishlist.

Indeed this would be useful for us.
Is there any reason this is a bad idea?

I also think this would be a great feature to add.

Sorry, I prefer to keep Kanboard simple so this feature won't be developed.

Hi, I also think it was a good idea (may be later)