Home Assistant Buttons for "Today", "Last Week", or "Last Month"

@helgeerbe Your integration of Pi3D PictureFrame into Home Assistant last year was another milestone for this project. I was wondering about a use case that I actually have quite often and how to make it happen.
I often want to show images only of "Today", "Last Week", or "Last Month". So in Home Assistant, I manually set the FROM date. Is it possible to have buttons that send a FROM DATE MQTT message which is calculated automatically? How would that work?
Thanks!

Hi @sapnho,
that should doable.
One could create 3 buttons triggering an automation. Based on the entity-Id of the buttons an automation could calculate the mqtt message.
To calculate today
{{ (now().strftime("%Y/%m/%d")) }}

To calculate last week one could use timetelda()

Get today
get weekday (%w) weekday as a decimal number [0(Sunday),6].
get first day of last week->today - timedelta(day=weekday, week=1)
get last day of week-> first day of week + 6 days

To calculate last month:

Get today
Get last day of last week = timedelta(day=day of the month +1)
Get first day of last month = set day of month to 1

Just tested the calculation:
Today
{% set today = now() %}
{{ (today.strftime("%Y/%m/%d")) }}

Last week:
{% set first_day_of_week = (today.strftime("%w")) | int %}
  day of week: {{ first_day_of_week }}
  first day of week: {{ as_timestamp(today - timedelta(days=first_day_of_week, weeks=1)) | timestamp_custom("%Y/%m/%d")}}
  last day of week: {{ as_timestamp(today - timedelta(days=first_day_of_week - 6, weeks=1)) | timestamp_custom("%Y/%m/%d")}}

Last month:
{% set day_of_month = (today.strftime("%d")) | int %}
  day of month: {{ day_of_month }}
  last day of last month: {{ as_timestamp(today - timedelta(days=day_of_month)) | timestamp_custom("%Y/%m/%d")}}
  first day of last month: {{ as_timestamp(today - timedelta(days=day_of_month)) | timestamp_custom("%Y/%m/01")}}

output:
Today

2022/06/13

Last week:

  day of week: 1
  first day of week: 2022/06/05
  last day of week: 2022/06/11

Last month:

  day of month: 13
  last day of last month: 2022/05/31
  first day of last month: 2022/05/01

Found a bug. The date filters are not updated correctly. But setting the dates works. I have to check this.

Thanks, @helgeerbe! Will also give it a try and let us know, once you have found the bug.

When I paste the automation I get the error "Message malformed: template value should be a string for dictionary value @ data['action'][0]['else'][0]['else'][1]['data']".
Maybe that helps to trace the bug?

I had to edit the home assistant blueprint code. The easiest way to update is to delete the automation and to delete the blueprint. Then import the blueprint again and create the automation from the blueprint.
Since release 2021.10 Home Assistant requires default values in some time manipulation to create date objects from string. Without default values an exception is thrown.


Sharp is not a function

Is the same case of old issue, but I did it and not working
I am using:

"sharp": "^0.29.1",
"@types/sharp": "^0.29.2",

`
import sharp, { ResizeOptions } from 'sharp';
export class image {

    async uploadImage(
        paramFile: Express.Multer.File
    ) {
        try {
            const newImages = [];
            const cropOption = {
                width: 300,
                heigth: undefined,
                fit: undefined,
                position: undefined,
            }
            const options: ResizeOptions = {
                fit: cropOption.fit,
                position: cropOption.position
            };
            const newImage = await sharp(paramFile.buffer)
                .resize(
                    cropOption.width,
                    cropOption.heigth,
                    options
                );
            console.log(newImage);

        } catch (error) {
            console.log('error', error);
        }
    }
}

`
error TypeError: sharp_1.default is not a function

I found a way to turn around the issue.
I just import list this:
import * as Sharp from 'sharp';

can also be fixed by setting "compilerOptions" : {...,  "esModuleInterop": true }  in tsconfig.json


How to change latitude and longitude at the same time?

I want to know about that is there any way to change latitude, longitude, bearing, etc. at the same time by using java api.
GenymotionManager genymotion = GenymotionManager.getGenymotionManager(MainActivity.this);
        genymotion.getGps()
                .setBearing(bearing)
                .setAccuracy(1.0f)
                .setAltitude(altitude)
                .setLatitude(latitude)
                .setLongitude(longitude);

The usage in the gpsTest example only changes them in order, not at the same time.

I'm not sure of the behavior you want. Your sample code looks right to me.
The current methods allow to change latitude, longitude, etc with a fluent API. You have to call multiple methods on the GPS object but there should be only one GPS update.

But the fluent API will update these parameters one by one, i.e, I noticed that the bearing is updated first, and accuracy is updated following, etc. It would trigger onLocationChanged 5 times, which looks like I change coordinates twice on a map (latitude and longitude are updated independently).
So I want to find a method to update these params at the same time.
Thank you for replying.

But the fluent API will update these parameters one by one, i.e, I noticed that the bearing is updated first, and accuracy is updated following, etc. It would trigger onLocationChanged 5 times, which looks like I change coordinates twice on a map (latitude and longitude are updated independently).

Right. That's a bug, we are working on it and it should be fixed in the next release of Genymotion.
The API is not going to change so your actual code should just work  :)

That's good, thanks a lot!
Would you update the java api implement, i.e, update the java api version? The latest version is 1.0.4
And may I ask you that when the next release would come out?

Hi! yeah we made these calls blocking, to ease the use of the API.
Each call blocks until the update is seen from your application context.
It can be painfully slow when 5 or 6 calls are chained.
We will add a new multi-parameters method in the next version of the API, it will speed things up, and avoid staircase effects.

Get it!
Thank you very much.:smile:

Just to let you know, today we released version 1.1.0 of Genymotion Java API, which comes with a new API for the Gps to let you set all parameters of a location in one call. You can use it like this:
LocationParams params = new LocationParams.Builder()
         .setAltitude(12)
         .setLongitude(34)
         .build();
gps.setLocation(params);


Countries

Cloned and compiled your code. Everything ran as intended and there are no errors on compile.
Great Work!


conda-izing SNVPhyl

Hi there. I'm interesting in making conda wrappers for the SNVPhyl pipeline tools. To that end:

I want to write recipes for the SNVPhyl tool dependencies. Some of the dependencies exist in bioconda, others do not. In general 'generic' packages belong in conda-forge and I've made a start on wrappers in this PR: https://github.com/conda-forge/staged-recipes/pull/3261

Next I want to tackle the tools listed in the snvphyl-tools directory and create conda recipes for them. These largely draw from the script in the snvphyl-tools repository. The install procedure used in the existing Galaxy package is rather unique though.

The bcftools based tools, bcftools_call and bcftools_view, also phyml, seqtk and smalt, rely on dependencies that are already in bioconda. Only the wrappers need updating to link these to those dependencies, if the versions of the dependencies from bioconda are appropriate.

Finally the wombac tool requires more Perl dependencies and the tool itself to be added a conda recipes.

That would be awesome :). It's something I had wanted to do at some point but haven't had the time. Some of the code is probably not as organized that it could be so I would welcome any feedback or suggestions on this.

Cool, thank you. That all sounds good to me.

Yes, installing tools from snvphyl-tools repo is a bit more complicated than it could be. Most of the scripts in there rely mainly on Perl modules which isn't so bad. Some have other dependencies (e.g., find-repeats.pl relies on MUMmer). The more complicated tool would be consolidate_vcfs.pl which relies on bcftools, and a custom bcftools plugin filter_snv_density. The way we were getting this to compile was to include a copy of the bcftools 1.3 source in our repository and compiling it ourselves, but there's got to be an easier way to do this.

It's likely that the versions of those dependencies are appropriate. I would welcome any updates to the wrappers you can provide.

The wombac tool is currently unused in SNVPhyl and I should probably remove it from this repo (so don't worry about writing wrappers for it).  Part of the tool was used at one point as a quick way of simulating reads in order to run SNVPhyl on assembled genomes with no reads, but there are other read simulators already in Galaxy and it was never part of the automated pipeline.

I also want to include @Takadonet and @csieffert on this discussion as they have worked on some of these tools and could provide input if something doesn't make sense.
Thanks for taking the time to do this, I really appreciate it.

I'm in Freetown, Sierra Leone for the week but have been working on this in the evenings. Just including @thobalose and @zipho in this thread - I'll put up more details related to progress in the next days.

Merged. Near future will push new suite snvphyl onto main tool shed.


feat(frontend): show fee last updated time

Motivation

Changes

Tests
https://github.com/user-attachments/assets/479c555a-cd85-4a7d-abd8-6c796f0b6eb9

I discussed it with Artem and it does not really make sense to show the user the update time if it is that long ago.
I discussed with cross-chain team about possible solutions, maybe making it so that it is not older that 1 hour (or less). But the discussion will take longer.
For now, I will close this PR.


Add node variable initialization to fix node undefined error

Fix https://github.com/jazzband/django-smart-selects/issues/299

Thanks @leibowitz !


Improve code quality

Nothing special, just cosmetic changes.
Removed some obsolete code, fixed README and tested the code with pylint.

Thanks for the PR. Just merged! One thing to note for future PRs it that I'm now trying to use black for formatting so any whitespace edits will get overridden by whatever black says when I do the merge.


Fix pillow import in optionals

Summary
Fixes #7767
Details and comments
This fixes the pillow import using the suggestion from @jakelishman in #7767 that was causing some of the drawers to fail.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.463%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
52331

Relevant Lines:
62700

💛  - Coveralls


Update README.md

remove space before shopware tag.

I fixed it: https://github.com/FriendsOfShopware/FroshPlatformBunnycdnMediaStorage/commit/2ccfe476ee9d7d34385c55968731d9761b5f0396

Did you verify your change?

Sorry, was in a rush to get the images back.


Clicking vs bracket shortcuts for showing segmentation.

One can currently select an annotation by either clicking on it or using the square brackets to iterate up and down the list of annotations. However, showing segmentations only applies to bracket navigation. It would be useful for browsing selection lists if selection-shows-segmentation were consistent across both methods.

There is now a checkbox in master that allows you to do this


Unable to log in as sys with custom SID

When running an image specifying the -e ORACLE_SID and the -v (volume parameter) parameters it is not possible to log in as Sys via JDBC or SQL Developer. I can log in as System via JDBC or SQL Developer and I can log in as Sys via sqlplus using docker exec. Upon investigation I noticed the file tnsnames.ora did not look right. It appeared to conjoin the default SID with the custom SID.
In my case - if this is relevant - I am using docker tools - which uses a virtual box image.
I am also using a Windows host.
Command:
docker run --name myDB
-p 1521:1521 -p 5500:5500
-e ORACLE_SID=mysid
-v ~/my/myDb:/opt/oracle/oradata
oracle/database:<IP_ADDRESS>-ee
I also noticed the password parameter -e ORACLE_PWD does not work properly for sys either - but that is a separate issue...

Confirmed that the -v parameter is causing the issue.

Hi @ja6a,
Can you please elaborate more on the issue what doesn't work, error message, etc?
It works fine for me:
[oracle@localhost ~]$ sudo docker run --name myDB -p 1521:1521 -p 5500:5500 -e ORACLE_SID=mysid -v ~/my/myDb:/opt/oracle/oradata oracle/database:<IP_ADDRESS>-ee
[sudo] password for oracle:
ORACLE PASSWORD FOR SYS, SYSTEM AND PDBADMIN: fJ5f9CWukEs=1

LSNRCTL for Linux: Version <IP_ADDRESS>.0 - Production on 05-JUL-2017 16:41:23

Copyright (c) 1991, 2016, Oracle.  All rights reserved.

Starting /opt/oracle/product/<IP_ADDRESS>/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version <IP_ADDRESS>.0 - Production
System parameter file is /opt/oracle/product/<IP_ADDRESS>/dbhome_1/network/admin/listener.ora
Log messages written to /opt/oracle/diag/tnslsnr/76565c408f1d/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<IP_ADDRESS>)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version <IP_ADDRESS>.0 - Production
Start Date                05-JUL-2017 16:41:23
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /opt/oracle/product/<IP_ADDRESS>/dbhome_1/network/admin/listener.ora
Listener Log File         /opt/oracle/diag/tnslsnr/76565c408f1d/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<IP_ADDRESS>)(PORT=1521)))
The listener supports no services
The command completed successfully
[WARNING] [DBT-10102] The listener configuration is not selected for the database. EM DB Express URL will not be accessible.
   CAUSE: The database should be registered with a listener in order to access the EM DB Express URL.
   ACTION: Select a listener to be registered or created with the database.

SQL*Plus: Release <IP_ADDRESS>.0 Production on Wed Jul 5 16:48:08 2017

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production

SQL>
System altered.

SQL>
Pluggable database altered.

SQL> Disconnected from Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production
#########################
DATABASE IS READY TO USE!
#########################
The following output is now a tail of the alert.log:
Completed: alter pluggable database ORCLPDB1 open
2017-07-05T16:48:07.743592+00:00
ORCLPDB1(3):CREATE SMALLFILE TABLESPACE "USERS" LOGGING  DATAFILE  '/opt/oracle/oradata/mysid/ORCLPDB1/users01.dbf' SIZE 5M REUSE AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED  EXTENT MANAGEMENT LOCAL  SEGMENT SPACE MANAGEMENT  AUTO
ORCLPDB1(3):Completed: CREATE SMALLFILE TABLESPACE "USERS" LOGGING  DATAFILE  '/opt/oracle/oradata/mysid/ORCLPDB1/users01.dbf' SIZE 5M REUSE AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED  EXTENT MANAGEMENT LOCAL  SEGMENT SPACE MANAGEMENT  AUTO
ORCLPDB1(3):ALTER DATABASE DEFAULT TABLESPACE "USERS"
ORCLPDB1(3):Completed: ALTER DATABASE DEFAULT TABLESPACE "USERS"
2017-07-05T16:48:08.575862+00:00
ALTER SYSTEM SET control_files='/opt/oracle/oradata/mysid/control01.ctl' SCOPE=SPFILE;
   ALTER PLUGGABLE DATABASE ORCLPDB1 SAVE STATE
Completed:    ALTER PLUGGABLE DATABASE ORCLPDB1 SAVE STATE

And logging in with SQLcl which uses JDBC and the same code as SQLDeveloper:
[oracle@localhost ~]$ sql sys/fJ5f9CWukEs=1@//localhost:1521/mysid as sysdba

SQLcl: Release <IP_ADDRESS>.175.1027 RC on Wed Jul 05 12:53:31 2017

Copyright (c) 1982, 2017, Oracle.  All rights reserved.

Connected to:
Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production

SQL> exit;

Disconnected from Oracle Database 12c Enterprise Edition Release <IP_ADDRESS>.0 - 64bit Production
[oracle@localhost ~]$

Closing due to no response.

Sorry for the lack of response. I don't have anytime to devote to this. I have had problems when the images reference volumes. I eventually settled on one without volumes.

I can confirm this.
When I create a container with -v :/opt/oralce/oradata, I'm not able to connect as SYSDBA. I'm always getting a login denied message.
Creating an additional container without using the -v option works. Here it's possible to connect as SYSDBA.

Hi @IngbertPalm, can you please elaborate a bit more on your issue and share the actual output. The path you have specified above has a typo. You wrote "oralce" while it should be "oracle", so your volume will have no impact on the image whatsoever as that path doesn't exist.

Hi @gvenzl, as you mentioned, "oralce" is just a typo in my comment.
Here the command I'm using to create the docker container:
docker run --name oracletest -p 1521:1521 -p 5500:5500 -e ORACLE_SID=LODB -e ORACLE_PWD=mypwd -v D:\oradata:/opt/oracle/oradata oracle/database:<IP_ADDRESS>-se2
After the creation of the container, I can connect to the database with:
docker exec oracletest sqlplus system/mypwd@//localhost:1521/LODB
However, trying to connect as SYSDBA always fails with an error message that the username/password are invalid and logon is denied. Here the command I use to do this:
docker exec oracletest sqlplus sys/mypwd@//localhost:1521/LODB as sysdba
Attached you will find the container log: oracletest.txt
Kind regards,
Ingbert

Hi @IngbertPalm,
I just tried to run the very same commands as you did and cannot reproduce this:
[root@localhost oracle]# docker run --name oracletest -p 1521:1521 -p 5500:5500 -e ORACLE_SID=LODB -e ORACLE_PWD=mypwd -v /home/oracle/oradata:/opt/oracle/oradata oracle/database:<IP_ADDRESS>-se2
ORACLE PASSWORD FOR SYS, SYSTEM AND PDBADMIN: mypwd

LSNRCTL for Linux: Version <IP_ADDRESS>.0 - Production on 26-JUL-2017 15:54:45

Copyright (c) 1991, 2014, Oracle.  All rights reserved.

Starting /opt/oracle/product/<IP_ADDRESS>/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version <IP_ADDRESS>.0 - Production
System parameter file is /opt/oracle/product/<IP_ADDRESS>/dbhome_1/network/admin/listener.ora
Log messages written to /opt/oracle/diag/tnslsnr/0f59cc782ed3/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<IP_ADDRESS>)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version <IP_ADDRESS>.0 - Production
Start Date                26-JUL-2017 15:54:45
Uptime                    0 days 0 hr. 0 min. 0 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /opt/oracle/product/<IP_ADDRESS>/dbhome_1/network/admin/listener.ora
Listener Log File         /opt/oracle/diag/tnslsnr/0f59cc782ed3/listener/alert/log.xml
Listening Endpoints Summary...

SQL*Plus: Release <IP_ADDRESS>.0 Production on Wed Jul 26 16:04:23 2017

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Connected to:
Oracle Database 12c Standard Edition Release <IP_ADDRESS>.0 - 64bit Production

SQL>
System altered.

SQL>
Pluggable database altered.

SQL> Disconnected from Oracle Database 12c Standard Edition Release <IP_ADDRESS>.0 - 64bit Production
#########################
DATABASE IS READY TO USE!
#########################
The following output is now a tail of the alert.log:
Completed: alter pluggable database ORCLPDB1 open
Wed Jul 26 16:04:22 2017
CREATE SMALLFILE TABLESPACE "USERS" LOGGING  DATAFILE  '/opt/oracle/oradata/LODB/ORCLPDB1/ORCLPDB1_users01.dbf' SIZE 5M REUSE AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED  EXTENT MANAGEMENT LOCAL  SEGMENT SPACE MANAGEMENT  AUTO
Completed: CREATE SMALLFILE TABLESPACE "USERS" LOGGING  DATAFILE  '/opt/oracle/oradata/LODB/ORCLPDB1/ORCLPDB1_users01.dbf' SIZE 5M REUSE AUTOEXTEND ON NEXT  1280K MAXSIZE UNLIMITED  EXTENT MANAGEMENT LOCAL  SEGMENT SPACE MANAGEMENT  AUTO
ALTER DATABASE DEFAULT TABLESPACE "USERS"
Completed: ALTER DATABASE DEFAULT TABLESPACE "USERS"
Wed Jul 26 16:04:23 2017
ALTER SYSTEM SET control_files='/opt/oracle/oradata/LODB/control01.ctl' SCOPE=SPFILE;
   ALTER PLUGGABLE DATABASE ORCLPDB1 SAVE STATE
Completed:    ALTER PLUGGABLE DATABASE ORCLPDB1 SAVE STATE

[root@localhost ~]# docker exec oracletest sqlplus sys/mypwd@//localhost:1521/LODB as sysdba

SQL*Plus: Release <IP_ADDRESS>.0 Production on Wed Jul 26 16:14:44 2017

Copyright (c) 1982, 2014, Oracle.  All rights reserved.

Connected to:
Oracle Database 12c Standard Edition Release <IP_ADDRESS>.0 - 64bit Production

SQL>

Given that you are receiving an TNS-12535: TNS:operation timed out, can you make sure you don't have a firewall or anything alike (SELinux, etc) blocking this request?

AFAIK, a firewall can't be the issue.
docker exec commands run inside the container so there shouldn't be any communication going out of the container.
You've changed the outside path to /home/oracle/oradata. Are you running the test on a Non-Windows environment?
I'm running my tests on a Windows 10 system.
I've also recreated a new image with your latest files. The issue is still there. Very strange.
Kind regards,
Ingbert

Yes, I'm running this on an OL 7.3 environment hence the location change to /home/oracle/oradata. But the volume should have little to do with the fact that you can't login to the database with username/password authentication.
Are there any other security measures in place on Windows that would prevent the logon from happening. Can you test with another user than SYS, e.g. create a user and try to logon with that one.
Thx,

I mark this as a duplicate of #525.

Facing same issue on docker-machine and mounting to windows 7. Mounting to named docker volume works fine. It has probably to do with the oracle owner (54321 uid)?
 ls -l data\
total 4
drwxr-xr-x 1 myuser<PHONE_NUMBER> 0 Jul 27 10:25 ORCLCDB/
drwxr-xr-x 1 myuser<PHONE_NUMBER> 0 Jul 27 10:26 dbconfig/
drwxr-xr-x 1 myuser<PHONE_NUMBER> 0 Jul 27 10:07 fast_recovery_area/

Housekeeping, closed as duplicate #525


Re-work AC 0072-SPPW-011 as user should NOT be banned

During QA testing of the spam acceptance criteria the following issue was raised as a bug:

https://github.com/vegaprotocol/vega/issues/7322

During discussions it is understood that the behaviour of the protocol is how it should be, therefore we need to update the AC according to the discussions in the above core issue - @MuthuVega can then implement the correct test,

Closed by https://github.com/vegaprotocol/specs/pull/1521 .


NextJS React Component does not respect div height

As I understand it, it is best to set the div containing the code editor to control the overall height of the editor and than to set the style within the editor. However, with NextJS I cannot get it to respect the div's height and it will not limit its own height.
Please see this sandbox: https://codesandbox.io/s/react-textarea-code-editor-example-nextjs-forked-x8evko?file=/pages/index.js
index.js in the sandbox demonstrates that setting the height to "100px" in the containing div is not respected by the editor.
index2.js is my attempt at setting it within the editor, which does limit the height, but then pasting into the editor causes weird behaviour. The cursor does not line up to the pasted content.

@Ezzahhh https://codesandbox.io/s/react-textarea-code-editor-example-nextjs-forked-ww4mvm?file=/pages/index.js:4521-4964
<CodeEditor
  value={code}
  language="sol"
  placeholder="Please enter JS code."
  onChange={(evn) => setCode(evn.target.value)}
  padding={15}
  style={{
    overflow: "auto",
    fontSize: 12,
+    height: 100,
    backgroundColor: "#f5f5f5",
    fontFamily:
      "ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace"
  }}
/>

@Ezzahhh https://codesandbox.io/s/react-textarea-code-editor-example-nextjs-forked-ww4mvm?file=/pages/index.js:4521-4964

<CodeEditor

  value={code}

  language="sol"

  placeholder="Please enter JS code."

  onChange={(evn) => setCode(evn.target.value)}

  padding={15}

  style={{

    overflow: "auto",

    fontSize: 12,

+    height: 100,

    backgroundColor: "#f5f5f5",

    fontFamily:

      "ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace"

  }}

/>

I did try this and it does reduce the height. However try pasting something large and you get a weird behaviour where the cursor does not sit where the text actually is.

-

+

  <CodeEditor
    value={code}
    language="sol"
    placeholder="Please enter JS code."
    onChange={(evn) => setCode(evn.target.value)}
    padding={15}
    style={{
-      overflow: "auto",
      fontSize: 12,
      backgroundColor: "#f5f5f5",
      fontFamily:
        "ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace"
    }}
  />

@Ezzahhh  https://codesandbox.io/s/react-textarea-code-editor-example-nextjs-forked-ww4mvm?file=/pages/index.js:4483-4942

-

+

  <CodeEditor
    value={code}
    language="sol"
    placeholder="Please enter JS code."
    onChange={(evn) => setCode(evn.target.value)}
    padding={15}
    style={{
-      overflow: "auto",
      fontSize: 12,
      backgroundColor: "#f5f5f5",
      fontFamily:
        "ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace"
    }}
  />

@Ezzahhh https://codesandbox.io/s/react-textarea-code-editor-example-nextjs-forked-ww4mvm?file=/pages/index.js:4483-4942

Wow nice! I didn't pay close enough attention earlier. This solves it for me. Thank you very much


iOS Crash sometimes

Mobile Device Environment
Provide a list of operating systems on which this issue is relevant.

Device: iPad
OS: iOS 15

Application Environment
Provide information about your development environment:

React Native version: v0.64.1
RN Bluetooth Classic version: v1.60.0-rc.16

Describe the bug
Sometimes after a while that I have connected the BT device, and I have sent and received data the app crashed. I think it could be a problem with memory because the device is always sending data and I see in logs that is constantly saying Stream %@ has bytes available. But this is my simple guess.
The Bluetooth device is a LEGO Spike Prime.
The app crashed with this error and occurs in the DelimitedStringDeviceConnectionImpl.swift file line 237
AppStoreTools:       13A227
AppVariant:          1:iPad7,11:15
Beta:                YES
Code Type:           ARM-64 (Native)
Role:                unknown
Parent Process:      launchd [1]
Coalition:           es.robotix.c360 [569]

Date/Time:           2021-10-18 17:19:21.2074 -0300
Launch Time:         2021-10-18 16:12:47.2594 -0300
OS Version:          iPhone OS 15.0.2 (19A404)
Release Type:        User
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00004a63d2d1f290
Exception Codes: 0x0000000000000001, 0x00004a63d2d1f290
VM Region Info: 0x4a63d2d1f290 is not in any region.  Bytes after previous region:<PHONE_NUMBER>5057
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      commpage (reserved)<PHONE_NUMBER>-7000000000 [384.0G] ---/--- SM=NUL  ...(unallocated)
--->
      UNUSED SPACE AT END
Exception Note:  EXC_CORPSE_NOTIFY
Terminating Process: exc handler [481]
Triggered by Thread:  0

...

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x00000002802ef2a0   x1: 0x000000018883fd00   x2: 0xfffffffffffffff3   x3: 0x0000000280fe9bb3
    x4: 0xfffffffffffa8e00   x5: 0x0000000000000020   x6: 0x00000002802f6990   x7: 0x0000000000000000
    x8: 0x00004a63d2d1f2a0   x9: 0xfffffffe00000000  x10: 0x0000000000000001  x11: 0x0000000100000028
   x12: 0x0000000000000000  x13: 0x6e22202c22626338  x14: 0x227274705f747865  x15: 0x0d7d7d323135203a
   x16: 0x00000001dc89a820  x17: 0x00000001855c5914  x18: 0x0000000000000000  x19: 0x000000016b526710
   x20: 0x000000016b526710  x21: 0x000000011bd34496  x22: 0x000000011bd34400  x23: 0x00000002802ef2a0
   x24: 0x0000000000000000  x25: 0x0000000104c90000  x26: 0x0000000104c8b000  x27: 0x00000001f11d5000
   x28: 0x00000001f11d5000   fp: 0x000000016b526660   lr: 0x0000000188265834
    sp: 0x000000016b526650   pc: 0x000000018883ef28 cpsr: 0x60000000
   esr: 0x92000004 (Data Abort) byte read Translation fault

A good solution could be to implement the Max Bytes Per Read with the number as a config parameter.

https://github.com/kenjdavidson/react-native-bluetooth-classic/blob/3dadaca202909a04fc43f61909ca6f345d824a28/android/src/main/java/kjd/reactnative/bluetooth/conn/DelimitedStringDeviceConnectionImpl.java#L55
It looks like the Android version does the message processing during the same step as adding data to the buffer.  This is a pretty easy fix of copying lines 240-243 into the while().

If you can fork the project and play around with each one of these changes, let me know which is best then submit a PR, that would probably be the easiest way.
Rather than me guessing, having it work on my device (which doesn't stream consistently) and not working for you.


Specify nullable=False when generating filter values in dpp tests

Closes https://github.com/NVIDIA/spark-rapids/issues/9817
The dpp tests fail if we generate a null filter value because it gets translated to None literal in the SQL, resulting in the following error:
A column or function parameter with name `None` cannot be resolved.
Did you mean one of the following? [`dim`.`key`, `fact`.`key`, `dim`.`skey`, `fact`.`skey`, `dim`.`value`]

I tested this manually using the seed value from the issue.

build


Caught signal produces coroutine was expected error

I have my first websockets program working except for one thing, signal handling. I can't get the signal catcher to work.
Here's my code. Terminating_signals has signal.SIGTERM and signal.SIGINT.
async with websockets.connect(url, extra_headers=extra_headers) as websocket:
    loop = asyncio.get_running_loop()
    for signal_type in terminating_signals:
        loop.add_signal_handler(signal_type, functools.partial(loop.create_task, websocket.close))
    async for message in websocket:
        self.parse_events(message)

This works for setting the handler, but when I send the script a signal I get:
  File "/opt/rh/rh-python38/root/usr/lib64/python3.8/asyncio/base_events.py", line 431, in create_task
    task = tasks.Task(coro, loop=self, name=name)
TypeError: a coroutine was expected, got <bound method WebSocketCommonProtocol.close of <websockets.legacy.client.WebSocketClientProtocol object at 0x7f2ef7be00d0>>

I did also try not using functools.partial like in the faq and got the same result.
How do I get the close method to work as a coroutine?

Yeah. Actually, I was thinking about that yesterday night and forgot to file an issue. Thank you for reminding me.
We need a loop.call_soon there.

Any tips on where to place the loop.call_soon?

This issue came shortly after #1261, where I got confused, but that's cleared now. Please ignore my previous comment.
You can change your example to loop.add_signal_handler(signal_type, functools.partial(loop.create_task, websocket.close())).
You don't need partial You can use loop.add_signal_handler(signal_type, loop.create_task, websocket.close()) to achieve the same effect.

FYI, I got it to work like you said with one signal. If I set up two handlers I get a RuntimeError with a stack trace, but the script exits OK.

Good to hear that you're sorted. I'm not quite sure how Python behaves in the presence of multiple signal handlers; judging by your experience, "poorly". At this point, we're no longer in "websockets" territory, more in "Python" territory, so StackOverflow may be a better option if you need further help.


CI test: random master tokens

after 0.6.0 master tokens for vault, consul and nomad are all set using custom environvariables vault_master_token consul_master_token nomad_master_token. We should test that these are used throughout by generating random values and using them in the CI tests.

Suggestion from meeting(Nikita): do this via env_override in actions


Dynamic images should attempt to resize uncompressed "original" images

When images are uploaded to ghost, we automatically optimize them, and store the original as filename_o.ext
To avoid double compression, we should be using these optimized images when resizing for dynamic images.
But! It is a little easier said than done, because the _o suffix, isn't always a suffix :ghost:
Image optimization
The image optimization we have is a piece of middleware that sits on file upload routes.
When it receives an image my-image.jpg it optimizes it (details unnecessary) and asks the StorageAdapter to save my-image.jpg (the new optimized image) and my-image_o.jpg (the original pre-optimized image)
StorageAdapter
The storage adapter base class includes a method called getUniqueFileName which takes a requested filename e.g. my-coole-img.jpg and returns a filename which it can be stored as, the current implementation appends a -n where n is the lowest number that would make the filename unique. e.g. my-coole-img-4.jpg
The problem
The problem lies when we upload an image with a non unique name already-exists.jpg,.
When we hit the image optimization layer it will ask the StorageAdapter to store already-exists.jpg and already-exists_o.jpg.
The StorageAdapter will find a unique name and so save already-exists-1.jpg and already-exists_o-1.jpg - This is how the _o suffix does not always act as a suffix.
The solution???
The "easy" route
The easiest solution is a lil regex to match against optimized images /_o(?:-\d+)?\.[a-zA-Z]+$/
This matches "_o" optionally followed by -n (where n is at least one digit) followed by .ext where ext is some letters
What's wrong with that?
What's wrong with that is that the resize image stuff is really tied to the implementation of the StorageAdapter and how it deals with unique filenames - this is a sign that our code is not structured correctly. If anyone implements a storage adapter with a different unique filename mechanism, this logic will no longer hold.
What else can we do?
We can re-evaluate what the StorageAdapter's responsibilities are, should it handle image optimization?
If it should, then the code can be moved to there, and we can be aware of how files are stored and everything is dandy. (Whether it is part of the base storage adapter, the local file storage adapter, or a brand new one would have to be discussed too - all are viable options IMO)
If it shouldn't then we need to give a nicer API to consumers of the storage adapter so that they can "tag" files with a certain piece of data, e.g "original" or "optimized", whether this is in the form of a suffix or prefix or whatever - I don't know.
This decision will set a precedent for any other manipulation/modifications of storage level data - so if we decide to keep these manipulations outside - we should give a generic and fairly powerful API for modules like the image one to work with.

Very nice write up 👍

We can re-evaluate what the StorageAdapter's responsibilities are, should it handle image optimization?

IMO it's correct that Ghost simply asks the storage adapter:

store image x (size w)
store image y (size k)

Why should the storage adapter know about image optimisation? 🤔The adapter is only a directive to save and get images. But other opinions are welcome 👍 😇

Is there a way to achieve this:

already-exists-1.jpg
already-exists-1_o.jpg

e.g. call getUniqueFileName in Ghost.

@kirrg001 And I spoke about this IRL and think that the best (long term) solution is to have a DB that manages a mapping of the locations of files to names. This would allow ghost to store metadata against files, without asking storage adapter implementations to update or change their modules.
This is a longer term solution however, which we've no plans to design or do anytime soon. So for now we think using a regex and assuming the getUniqueFileName method works in the way described above is good enough.


Disreprency in counts between MSTRG genes and nonMSTRG genes

After running stringtie according to the instructions on the website and then running prepDE to summarize the samples I was surprised at a detail from the result. The majority (95%) of counts are in the MSTRG genes rather than the genes from the annotation. This can't be right. Why is this? Attached is a report of total gene counts across the gene count matrix for MSTRgs and ENSGs.  Below is the code for stringtie and prepDE minus the for loops across samples. Note this is not caused by annotation error.
First step:
"""
bam=$1
outdir=${bam%%.bam}
mkdir $outdir
stringtie -p 8 -G Homo_sapiens.GRCh37.75.gtf -o ./${outdir}/transcripts.gtf $bam
"""
merge step:
"""
stringtie --merge -p 8 -G Homo_sapiens.GRCh37.75.gtf -o stringtie_merged.gtf ./*/transcripts.gtf
"""
Quantification step:
"""
bam=$1
outdir=${bam%%.bam}
stringtie -e -B -p 8 -G stringtie_merged.gtf -o ./${outdir}/expression.gtf $bam
"""
prepDE
"""
python prepDE.py -i ./ -l 75
"""
Sum of counts across samples.txt

How are you counting those 95% gene IDs exactly? MSTRGs are automatically assigned as gene_ids for almost the entire output of stringtie --merge anyway, specifically for every locus which has at least one assembled stringtie transcript (STRG.#.#). The other 5% gene_ids you see there as ENSGs are probably those which did not have any overlap with any assembled transcripts -- because those are simply copied over to the output without getting a MSTRG assigned.
Perhaps you'd want to look at the value of ref_gene_idattribute instead, if present for those MSTRGs - that should encode the original gene_id for the MSTRG transcripts that fully match at least one of the reference transcripts for that gene_id.
There are some details discussed in issues #159 and #179, perhaps they may help clarify how these MSTRGs are assigned and provide a possible workaround etc.

By pandas sum function in python. Thanks for the quick response I had clearly missunderstod how the annotation worked. The issue 179 answers my question exactly.


A CLI tool to assist during an upgrade to OpenSearch.

Description
This change adds an initial version of a new CLI tool opensearch-upgrade  into the OpenSearch distribution. This tool will help during an upgrade of a node running Elasticsearch v7.10.2/v6.8.0 to OpenSearch 1.x. It automates the process of importing existing configurations and installing official plugins (currently, it won't work as the plugin artifacts are yet to be published).
The tool can be run using a single command, $ES_HOME/bin/opensearch-upgrade , which performs the tasks of configuring the OpenSearch installation as part of the upgrading the node to OpenSearch.
Issues Resolved
Resolves #780 #781 #782 #785 #787
Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Signed-off-by: Rabi Panda<EMAIL_ADDRESS>

Love this, I haven't completely read through the PR.
But a question, if a repository outside of OpenSearch eg: Plugins, clients etc have their static configuration files.
Can we extend this for them?

start gradle check

Love this, I haven't completely read through the PR.
But a question, if a repository outside of OpenSearch eg: Plugins, clients etc have their static configuration files.
Can we extend this for them?

Not sure I understand the question completely - can you give an example of a such a scenario?

Love this, I haven't completely read through the PR.
But a question, if a repository outside of OpenSearch eg: Plugins, clients etc have their static configuration files.
Can we extend this for them?

Not sure I understand the question completely - can you give an example of a such a scenario?

Sure definitely. Let's take Opendistro security plugin as an example. It has bunch of config files and also has config residing in elasticsearch.yml. These parameters have been updated in the opensearch plugin and customers would need to manually translate this configuration.
So the question was, can this tool be extended for use cases like these?
Ref: https://opendistro.github.io/for-elasticsearch-docs/docs/security/configuration/yaml/

Sure definitely. Let's take Opendistro security plugin as an example. It has bunch of config files and also has config residing in elasticsearch.yml. These parameters have been updated in the opensearch plugin and customers would need to manually translate this configuration.
So the question was, can this tool be extended for use cases like these?
Ref: https://opendistro.github.io/for-elasticsearch-docs/docs/security/configuration/yaml/

Thanks. Yes, we can certainly extend the tool for importing these.

start gradle check

I think this is great, we can improve from here.

start gradle check


[QUESTION] Using an existing expo-sqlite database

First of all: Thanks for the amazing lib and all the effort put on it!
I am coming from expo-sqlite, and have managed to use my old database on Android doing this:
const oldDBLocation = Platform.OS === 'ios' ? `${FileSystem.documentDirectory}SQLite` : '/data/data/io.app.package/files/SQLite'

// Expo implementation
export const db = SQLite.openDatabase('MAIN_DB')

// OP SQLite implementation
export const db2 = open({ name: 'MAIN_DB', location: oldDBLocation })

But that approach doesn't seems to work for iOS. Do you have any insight about why that doesn't work on iOS?
Running this on iOS, I can see that MAIN_DB exists on iOS path:
const directoryPath = FileSystem.documentDirectory
const result = await FileSystem.readDirectoryAsync(`${directoryPath}SQLite`)
console.log(JSON.stringify(result)) // Result: ["LOGS_DB","MAIN_DB"]

Thank you for the kind words. Interesting, it should work. What's the value of FileSystem.documentDirectory?

Ah, you might be missing a final / in the path:
const oldDBLocation = Platform.OS === 'ios' ? `${FileSystem.documentDirectory}SQLite/` : '/data/data/io.app.package/files/SQLite'

Path is just concatenated, not resolved. Read the docs carefully.

I just created a release that will try to resolve a path to prevent errors with duplicated backslashes but I don't think it is the issue here:
https://github.com/OP-Engineering/op-sqlite/releases/tag/11.2.10

Found the issue!
I was using the file schema file:///var/mobile/Containers/Data/Application/B4FF6A3A-5982-44E7-BEB2-F88E0DB985ED/Documents/SQLite instead of the absolute path /var/mobile/Containers/Data/Application/B4FF6A3A-5982-44E7-BEB2-F88E0DB985ED/Documents/SQLite/
Thanks!


Common: add postgres.yml to up.playbooks

Do you think this is a good idea @alexanderdean ?

Yep I think sounds good!


Add JPY

Got some code for us? Awesome 🎊!
Please include a description of your change & check your PR against this list, thanks!

[x] There's a clear use-case for this code change
[x] Commit message has a short title & references relevant issues
https://github.com/TryGhost/Ghost/pull/12376
[x] The build will pass (run ember test from the repo root - will be core/client if working from the submodule in Ghost).

More info can be found by clicking the "guidelines for contributing" link above.

I'm sorry. I recreated PR.
https://github.com/TryGhost/Admin/pull/2113


[Extensions] Visualizer: Related design - Invalid link and Style

Current Behavior

Lack of code reuse: The same html node badge component should be used for the design indicator.
Clicking on the linked design opens a new browser window.
Clicking on the linked design opens an invalid link: https://playground.meshery.io/extension/meshmap?design=

Desired Behavior

Linked design should open in the same browser window, not open a new window.

Screenshots/Logs

Acceptance Tests:

Visual style should appear identical to that of node badges in Designer, because the same component should be used.

Contributor Guides and Handbook

📚 Meshery Build and Release Strategy
🎨 UI Design For Meshery Extensions Figma in Figma (open invite)
📚 Meshery Extensibility Providers
⌨ Meshery API Docs
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

Hi @leecalcote,
I would love to work on this issue, can you assign me this issue?

Hey @leecalcote,
I would like to take on this issue to improve the design indicator and correct the link handling behavior. Please assign this issue to me.


Issue with platform sensor

Hello,
I tried installing your binance integration but I still got the same error :
Unable to prepare setup for platform binance.sensor: Platform not found (cannot import name 'SensorEntity' from 'homeassistant.components.sensor' (/volume1/@appstore/homeassistant/env/lib/python3.8/site-packages/homeassistant/components/sensor/init.py)).
I using it on synology with python3.8.
Do you have any ideas ?
Thanks

That's... odd 🤔 I'm not sure why this would happen, as it installs and works fine for me. You're installing from HACS?

Yes I installed it from HACS, I think that autentication API work fine, but setup.py don't initialize sensor.
The network flow looks good too, I see it go out to api.binance.com.
I tried too to install binance-python library but I've some errors during installation .
Version | 2021.1.5
Installation Type | Home Assistant Core
Development | false
Supervisor | false
Docker | false
Virtual Environment | true
Python Version | 3.8.8
Operating System Family | Linux
Operating System Version | 3.2.40
CPU Architecture | armv7l
Timezone | Europe/Paris


RNchat sample App.json, Navigator and a lot more is missing

Hello, I am new to connectycube and I am just trying out the samples. the video calling sample works fine, but the chat sample is having error and looking for app.json file and navigator inside src.

I created an app.json then after that another error message looking for this:

and also this

Hi, @astroana
Looks like the Metro server uses cached files from previous build. Try to close your terminal with the Metro server and start React Native build process from scratch.
Execute those commands in your terminal:

Clean Metro's server cache from the root of ~/RNChat: watchman watch-del-all && rm -rf /tmp/metro-bundler-cache-* && rm -rf /tmp/haste-map-react-native-packager-*
Clean android build cache: cd android && ./gradlew clean && ./gradlew cleanBuildCache
Return to the root folder (RNChat): cd ../
Run: npm run android or yarn android

Hope that it will be helpful.

I just did and even remove all the cache files inside drive c:/user folder and still the result is the same. I tested the RNChat sample first to make sure. My other projects works fine after running yarn android. I don't think it's the metro server caches because when I ran yarn android on RNchat sample my terminal doesn't show any errors on gradle nor having issue installing the app and Build is always successfull.

The app.json file does not exist in the RNChat.
name and displayName imports from config.json.
I had been getting the same errors after switch between different projects. Cleaning of all caches had been helping.
I can't reproduce the issue.
Try to clean ~/.npm/_cacache and /.react-native-cli/cache.

I already did, tried installing android studio and gradle and nodejs to a new pc. but no luck.
Don't know why the errors still appear only with RNChat.

Do have import ... from "./src/services" or import ... from "app.json" in your ~/RNChat/index.js ?

I just cloned the sample git repo and I did not change anything inside RNChat because I am just trying to test the repo as is, same with RNVideo which works fine without any errors.

Does the issue still present?
I suggest you to ask React Native team by few reasons:

The RNChat doesn't have those imports ("./src/services" and "app.json" in index.js and **App.js)
Our team can't reproduce the issue.


Add a high-level API to extract an argument from a LabeledExprListSyntax

A very common task for macros is to extract the argument for a specific function parameter. Instead of having each macro dig through the LabeledExprListSyntax, we should offer a high-level API that does this.
Designing such an API will probably be non-trivial. Ideally, you pass it the signature of the function/macro parameters and it performs the parameter matching logic in the same way that the type checker does. This means, that the API will need to figure out how to match arguments to variadic parameters, how to handle defaulted parameters and how to handle parameter packs.
After we have implemented the parameter matching logic, we would need a way to query the match result. I think two queries that should at least be supported is to get the argument for a specific argument label and to get the arguments at a specific parameter index.

Tracked in Apple’s issue tracker as rdar://113653955

Could I be assigned with this task? It's going to take me quite a long time to finish though ;)


fix: too fast on the dell fix

"firewall" was present twice in sourcetype

:tada: This PR is included in version 2.20.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


List constructor with complex enumerable fails

List<TType>(IEnumerable<TType>) constructor fails for complex enumerable
TType[] a1 = oEnumerable.ToArray() works fine
constructed List/array is further used for Linq.Select(s) and everything is inside async operations
Steps To Reproduce
cannot reproduce in deck - but our code is similar to presented in deck.
problem is probably input objects, but they are regular Bridge objects
https://deck.net/d775723f29b4656b47b9293ce248a7db
JavaScript reports Operation not supported error in line where constructor is invoked

Hi @kosmab – We were not able to reproduce the issue. Can you link us to a Gist or a GitHub project that would demonstrate the scenario? Or adjusting the Deck to make it fail.

Unfortunately, we can’t provide access to source code.
Problem started to exist with 16.x.x version – this code worked flawlessly when generated by older Bridge compiler
In real code IEnumerable<c4.c0> x() is method called in async context, calling itself other Linq/enumerable/convertion operations.
When data_sets is data_set[] it works:
        ctor: function (collColumns) {

            this.$initialize();

            this.data_sets = System.Linq.Enumerable.from(collColumns).toArray();

        }

When data_sets is List<data_set> if fails:
 ctors: {

        ctor: function (collColumns) {

            this.$initialize();

            this.data_sets = new (System.Collections.Generic.List$1(nxm_core_web.chart_query_results.data_set)).$ctor1(System.Linq.Enumerable.from(collColumns).toArray());

        }

    },

From: Geoffrey McGill<EMAIL_ADDRESS>Sent: Thursday, October 12, 2017 7:58 PM
To: bridgedotnet/Bridge<EMAIL_ADDRESS>Cc: kosmab<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [bridgedotnet/Bridge] List constructor with complex enumerable fails (#3199)
Hi @kosmab https://github.com/kosmab  – We were not able to reproduce the issue. Can you link us to a Gist https://gist.github.com/  or a GitHub project that would demonstrate the scenario? Or adjusting the Deck to make it fail.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/bridgedotnet/Bridge/issues/3199#issuecomment-336216940 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADelx-OtwMuuBuZS7omWqsYMR4Gpk6ERks5srlMtgaJpZM4P3JEG .  https://github.com/notifications/beacon/ADelxwmzG4HDFkjS5tiDgq8YYltdMoa4ks5srlMtgaJpZM4P3JEG.gif

okay, no problem. Thanks for the update.
I'm going to close the thread for now because we cannot reproduce, but if you can narrow down the problem to a reproducible Deck, we'll re-open and investigate further.


Add commandbuilder panel at bottom of the screen to show the command being built

Commands are built by selecting verb/object/subject.
Choose the Verb "give"
Choose the Subject "give [ITEM]"
Choose the Object "give [ITEM] to [PERSON]"

Add mythos to commandbuilder to show a screen and return promise.
Cb.getinventoryitem().then(item => cb.betnearbycharacter().then(character => character.give(item).then())


JpegImage.parse - unknown marker: 0

Attach (recommended) or Link to PDF file here:
Uploading index.html.pdf…
The original image used to create the PDF is here:

Configuration:
I tried to display the above PDF using the viewer here: https://mozilla.github.io/pdf.js/web/viewer.html

index.html.pdf
Sorry, this is the PDF

index.html.pdf
Sorry, this is the PDF


if ajax data is not a string it throws an error

Attached an example. I might do a PR to detect if an object and xml encode it.

@spunkedy Thanks for pointing this out. However, it's not an error and the behaviour is left intentional. According to the description of the send method of TVJS XMLHttpRequest Class Reference, it supports Object as its parameter and the object should be of type ArrayBufferView or Blob or Document or DOMString or FormData. Read MDN's developer documentation for details.
Having said that, the support for plain data objects and other jazzy features (like those supported by jQuery's ajax) can be implemented, but it's an overkill. The focus of this library is to be as minimalistic as possible and provide the flexibility to the users to get started quickly, hence the ajax library is mostly just a Promise based wrapper around the native XHR. You can simply use something as simple as JSON.stringify to achieve the desired results.
ATV.Ajax
    .post('path/to/the/post/api', {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded' // or 'application/json' if your server supports it
        },
        data: JSON.stringify(your_data_object)
    })
    .then(function(xhr) {
        // success
    }, function(xhr) {
        // error
    });

To me adding such features will eventually divert the main focus of this library, as it's not intended to be a replacement of other libraries and neither a competition to them. Let me know what you think, really appreciate your contribution 👍

Your logic is sound. I added a wrapper for what I needed specifically ( JSON.stringify ). Maybe I will post a google analytics example data post in the readme.


Failing to run tests in Workspace environment

Hi!
Firstly, thank you for this useful extension! :slightly_smiling_face:
I am working with VSCode workspace and then have multiple loaded folders. The issue seems to be related to file path resolution.
The generated command is taking my workspace folder name instead of my workspace folder path in order to generate the --files command option.
For example:
file: project.code-workspace
{
  "folders": [
    {
      "name": "My Project",
      "path": "workspace/my-project"
    },
    // ...
  ]
}

Knowing that I want to run a test file located at workspace/my-project/tests/maths.spec.ts, the generated command line for the test is:
node --loader ts-node/esm --enable-source-maps bin/test.ts --reporters ndjson --files My Project/tests/maths.spec.ts --groups Maths.add --tests add two numbers

Which is showing: NO TESTS EXECUTED
While if I run the command manually with correct file path, or without filters, is running my tests correctly.
(btw I am not sure if it is on purpose but --files ./tests/maths.spec.ts is failing while --files tests/maths.spec.ts is working and I have not seen any mention on how to use this option properly in the doc)
I think this could be a quick fix but I have tried to debug or monkey patch the extension but I am lacking of vscode extension dev knowledge to even log stuff to understand which change I should operate. :sweat_smile:
If I can help of any kind please let me know.
Cheers!

Same problem

@Julien-R44 Hi! Can you help us to fix this? It sounds like a small bug, but I have no experience in VSCode extension development.
Many thanks!

Sorry for taking so long. Should be ok with 2.1.4

Hi @Julien-R44, thank you for taking the time to look into it. :pray: Unfortunately, this doesn't solve the issue. I still get the same arguments in the generated command line.
I've made a repro to expose the issue:
https://github.com/Jule-/japa-ext-repro
Obviously, you'll need to open the project with the workspace.code-workspace file.
From my understanding, using the Testing tab will not run tests as long as you have a name set on your workspace folder in workspace.code-workspace since it generates wrong command lines.
If you have any questions, please let me know.

Oh okay I understand, I thought you were using CodeLens to run tests. That's what's been fixed. It seems that the same bug exists when using the Vscode Test Explorer ( Testing Tab ) . Let me check that

Just pushed a new release. Let me know if it works for you with 2.1.5

Wow, that was quick mate! :smiley: This is working like a charm, thanks! :ok_hand: Very much appreciated.
Finally, a decent ESM testing framework that's well integrated with my IDE! :wink:


"/usr/bin/git' failed with exit code 128"

Action Fails with ~
    at maybeClose (internal/child_process.js:1021:16)     at Socket.<anonymous> (internal/child_process.js:430:11)     at Socket.emit (events.js:210:5)     at Pipe.<anonymous> (net.js:659:12) (node:2675) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3) Using "angular" preset Using "chore(release): {version}" as commit message Using "Conventional Changelog Action" as git user.name Using<EMAIL_ADDRESS>as git user.email Using "5" release count Using "./package.json" as version file Using "version" as version path Using "v" as tag prefix Using "CHANGELOG.md" as output file Using "" as config file Skipping empty releases is "enabled" Skipping the update of the version file is "disabled" Pull to make sure we have the full git history /usr/bin/git config user.name Conventional Changelog Action /usr/bin/git config user.email<EMAIL_ADDRESS>/usr/bin/git remote set-url origin ***github.com/Kimba666/changelogs.git /usr/bin/git pull --unshallow --tags --ff-only fatal: not a git repository (or any of the parent directories): .git fatal: not in a git directory fatal: not in a git directory fatal: not a git repository (or any of the parent directories): .git ##[error]The process '/usr/bin/git' failed with exit code 128

Hi, the error states it's not a git repository, could you share some more info? Workflow for example.

Hello TriPSs! :D
This is my first Github Action so I could just be configuring it wrong but~
`name: Conventional Changelog Action
on: [pull_request, push]

jobs:
checkfiles:
runs-on: ubuntu-latest
steps:
- uses<EMAIL_ADDRESS>with:
github-token: ${{ secrets.github_token }}`
This is my .yml that dictates how the action should function and I'm getting the error I listed above. Is there something I need to add and/or change in order to get a successful run?

A couple of points :)

You need the checkout step, this is needed to checkout the git repo
Personally i would not run this action on a PR or Push but on a merge to master like the example below
I would add paths-ignore to prevent the action running if only the package.json or CHANGELOG.md is changed, see example below.

name: Release

on:
  push:
    branches:
      - master
    paths-ignore:
      - 'package.json'
      - 'CHANGELOG.md'

jobs:
  release:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Conventional Changelog Action
        id: changelog
        uses: TriPSs/conventional-changelog-action@v3
        with:
          github-token: ${{ secrets.TOKEN_GITHUB }}

Hopes this helps you.

That's very helpful! I am much closer to a successful run. Maybe you can help me with this~

My github-token is defined and is in my .env file which is also part if my .gitignore, any insight on to what's causing this to fail?

You can just add the:
with:
          github-token: ${{ secrets.TOKEN_GITHUB }}

Since Github actions generate a token for each action run, this token is then also automatically removed when the action is completed.

`name: Conventional Changelog Action
on:
push:
branches:
- master
paths-ignore:
- 'package.json'
- 'CHANGELOG.md'
jobs:
release:
runs-on: ubuntu-latest
steps:
  - name: Checkout code
    uses: actions/checkout@v2

  - name: Conventional Changelog Action
    id: changelog
    uses: TriPSs/conventional-changelog-action@v3
    with:
      github-token: ${{ secrets.TOKEN_GITHUB }}`

It is in the .yml but the same error message occurs. D:

Sorry I made a mistake, it's secrets.github_token instread of secrets.TOKEN_GITHUB

Success! Thank you so much TriPSs. I appreciate you helping me, as well as building this Github action. :)
You've been a good help, this issue is verified and can be closed.

@Kimba666 Np :).

Hi, I am also getting 128, and I did everything as its instructed in comments:
This is my CI file https://github.com/zarcode/conventional-release/blob/master/.github/workflows/release.yml
And this is job failing: https://github.com/zarcode/conventional-release/actions/runs/4971174153/jobs/8895511222


Message box?

Hi, where is now the code for Welcome "message box" ?
interfaces.gameUI->messageBox("This was a triumph!", "Osiris has been successfully loaded.");
Before it was inside hook.cpp, but now when putting that line, the compilation fails

you need to change interfaces.gameUI to interfaces->gameUI

you need to change interfaces.gameUI to interfaces->gameUI

Like this?
interfaces.gameUI->messageBox("This was a triumph!", "Osiris has been successfully loaded.");
it does not work

ye i want to change that to using my own text but couldn't findout how

you need to change interfaces.gameUI to interfaces->gameUI

Like this?
interfaces->gameUI->messageBox("This was a triumph!", "Osiris has been successfully loaded.");
it does not work

It does, just tested.

It does, just tested.

it does not work
when load the cheat, csgo crash

You are right. Just checked on newest Osiris and i am crashing. I am using older version and it works.
https://i.imgur.com/IZL4BJm.png

same problem
when i use  interfaces->gameUI->messageBox csgo crash


Ad Below Header Not Showing on Pages

Enabled Ad #1 and Ad #2. They both work fine on single posts, but on pages, only the Ad #2 shows up at the bottom. How can I get the top ad to also show on pages?
REPORTED ON: https://wordpress.org/support/topic/ad-below-header-not-showing-on-pages/

I have checked it properly and it seems to fine. Can you please share a screenshot or the website URL?
See what people says: https://wordpress.org/support/topic/ad-below-header-not-showing-on-pages/#post-8221934

This was fixed in 51e7b7eef91ff5e631a4c651a1ba8486d6460ecd


Can't play videos

Steps to reproduce
First off:
1.) Open Up Aniyomi
2.) Open anime4up and try to watch any anime
3.) Crashes and I get this notice

Expected behavior
It should be playing the anime as usual
Actual behavior
But it is not actually playing and it keeps crashing
Crash logs
No response
Aniyomi version
<IP_ADDRESS>
Android version
Android 8.1.0
Device
Honor 7S
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

this issue is opened in the wrong repo.
please try reading next time.

If this is an issue with an extension, I should be opening an issue in the extensions repository.

Tt


fix: ignore exception of replaying constraint log

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Can't mark a cell again if it is previously marked

If a cell is previously marked(say with red color), I am unable to mark it again(say with blue color).
Please help.

Currently we don't support multiple date marking.
But this is quite simple if you are customizing the cells.


Implement append functionality in ecma collections

Related issue: #310

Good to me

a good patch in general

@egavrin, @zherczeg, I've updated pull request, according to your comments.

LGTM. A test would be good, but perhaps JSON will cover it later.

Would it be possible to also add a function for removing the last element?

@rtakacs, yes, of course. I'll add.


recast() should cache sorted data

recast() requires a sort, however currently the sort is executed every time the table is iterated over, which is unnecessary. Rather recast() should perform the sort only once then re-use the cached sort result.

Btw should be a good opportunity to fix #297 also, and ensure only a single pass is made through the data (#35).


ci: add relayer deployment

Adds a new "relayer" helm chart for deploying the custom relayer container image for penumbra preview <-> testnet paths.
In the process, reorganizes the helm charts for ci into a subdir.
Towards #465.

Merging, will monitor the CI workflows closely and follow up as needed.


[Feature]: Install Grafana dashboard in the namespace where kube-prometheus is located

Checklist

[X] I've searched for similar issues and couldn't find anything matching
[X] I've discussed this feature request in the K8sGPT Slack and got positive feedback

Is this feature request related to a problem?
Yes
Problem Description
Without making any modifications, the dashboard will be installed in the namespace where k8sgpt is located. If the namespaces of kube-prometheus and k8sgpt are different, the dashboard will not work.
Solution Description
Adding namespace options in helm
Benefits
Can make the Grafana dashboard work smoothly.

We create a configmap that has a grafana_dashboard label, if you want to enable grafana_dashboards across namespaces you can do that through kube-prometheus.
When you say the grafana dashboard, are you talking about the configmap we create with the dashboard json?

Yes, when I use the "grafanaDashboard=enabled" parameter, a configmap named "k8sgpt-overview" will be installed in the namespace where k8sgpt is located. If grafana and k8sgpt are not in the same namespace, my grafana cannot be mounted. Therefore, I hope to be able to specify the namespace where this configmap is installed. I don't know if I understand correctly?
------------------ 原始邮件 ------------------
发件人:                                                                                "k8sgpt-ai/k8sgpt-operator"                                                                                @.>;
发送时间: 2023年6月3日(星期六) 凌晨3:23
@.>;
<EMAIL_ADDRESS>主题: Re: [k8sgpt-ai/k8sgpt-operator] [Feature]: Install Grafana dashboard in the namespace where kube-prometheus is located (Issue #138)
We create a configmap that has a grafana_dashboard label, if you want to enable grafana_dashboards across namespaces you can do that through kube-prometheus.
When you say the grafana dashboard, are you talking about the configmap we create with the dashboard json?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

This should be and released right @arbreezy

I would like to add a little more about the installation method of my Prometheus, as I have noticed that there are some differences in the establishment of monitors among different installation methods
I am using the config in the manifests directory, which is different from the kube-prometheus-stack installed by helm
For the GrafanaDashboard, I found that my Grafana cannot automatically scan and load configmap, and can only be manually mounted in deploy. Therefore, I believe it is necessary to install configmap in Prometheus' namespace
Also, if prometheus and k8sgpt are not in the same namespace, Then the administrator needs to add permissions to prometheus, otherwise the monitoring item will not be found
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: prometheus-role
  namespace: k8sgpt-operator-system
rules:
- apiGroups:
  - ""
  resources:
  - services
  - pods
  - endpoints
  verbs:
  - watch
  - list
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: prometheus-rolebinding
  namespace: k8sgpt-operator-system
subjects:
- kind: ServiceAccount
  name: prometheus-k8s
  namespace: monitoring
roleRef:
  kind: Role
  name: prometheus-role
  apiGroup: rbac.authorization.k8s.io

@arbreezy can I do ?


Update to latest celery 4.0.0rc3

Use latest version to be pulled
Update Python version
Update update.sh to be more portable

Since it is an rc build I am hesitant to replace the stable version that we have.  But since there is still activity on the 3.1 branch I think we might have to support two released versions of celery.  I'll see if I can get a PR to have both versions in this repo in the next couple days.

Thank you very much.


Nickname limit

You can nickname for 3 letters on Orion server, when the others restrict you to 4 letters.

This is now fixed from the next reboot, thank you for the report :)


⚠ Bofrost.fr has degraded performance

In 13c16d7, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1253 ms

Resolved: Bofrost.fr performance has improved in 7bd5fe8 after 34 minutes.


Reusable variables defined in settings (key/value)

Is your feature request related to a problem? Please describe.
Many API's require the use of API Key's and to avoid having to change all instances where the key is used it would be very helpful to have the option to define variables in the plugin settings menu.
Describe the solution you'd like
In the settings menu the option to define multiple custom key and value pairs where you can later reference that within a API Request code block.
Referencing the key in the code block should be done by some standardized way that does not conflict with other potential use cases.

We could use {{KEY}} for referencing the key. {{this.KEY}} for "local" values and {{KEY}} for "global" values.
Just one thing: Should be worry about security? Maybe encrypting the Keys before storing?

How do you see the use of local values vs global values?
I do not think that encryption of the values should be required as these key/values can be anything really, for example an email address. Better to consider that when the need comes up but I doubt it will. This use case is more alike to putting the secret key into an application config file or hardcoded into the source code for an internal application, its not best practice but sometimes necessary as it is the only option. Each user is responsible for evaluate the risk of putting sensitive information into Obsidian.

How do you see the use of local values vs global values?

Local = front-matter values that can only be access withing the file.
Global = values that can be use in all the files.

Each user is responsible for evaluate the risk of putting sensitive information into Obsidian.

Yeah, you're right.


Sellers Page Template Completed and Fixed token flow in server actions.

resolve #16
Completed the UI for the seller page to create gig view orders. Also resolved token flow between server actions to fetch tokens from cookies. Created a dashboard store.

Looks good to me for now. Maybe you can complete the order section as well.


Getting when using GetAtt for Property of type AWS::ElasticLoadBalancing::LoadBalancer

cfn-lint version: cfn-lint 0.20.1
Hello,
I get following message:
E3008 Property "SecurityGroups" has no valid Fn::GetAtt options at Resources/AppLb/Properties/SecurityGroups/0/Fn::GetAtt template.yaml:87:7
I'm referencing two SecurityGroups IDs for the LoadBalancer.
  # Application Loadbalancer
  AppLbAccessSg:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: Security group for loadbalancer
      VpcId: !ImportValue VPC1-VPC-ID

  AppLbAssocSg:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: This group is used to get allowed by ASG instances
      VpcId: !ImportValue VPC1-VPC-ID

  AppLb:
    Type: AWS::ElasticLoadBalancing::LoadBalancer
    Properties:
      ConnectionDrainingPolicy:
        Enabled: true
        Timeout: 60
      HealthCheck:
        HealthyThreshold: '2'
        Interval: '30'
        Target: TCP:8004
        Timeout: '15'
        UnhealthyThreshold: '5'
      Listeners:
        - InstancePort: '8004'
          InstanceProtocol: tcp
          LoadBalancerPort: '8004'
          Protocol: tcp
      LoadBalancerName: !Sub 'lb-${Environment}-app'
      Scheme: internal
      SecurityGroups:
        - !GetAtt AppLbAccessSg.GroupId # This is the position from which I get the messages
        - !GetAtt AppLbAssocSg.GroupId # Same here
      Subnets:
        - !ImportValue VPC1-AZ1Subnet1
        - !ImportValue VPC1-AZ2Subnet1
        - !ImportValue VPC1-AZ3Subnet1

Further in my template I am using more !GetAtt function calls and it is working.
Hope this is helpful.
Regards

You can and should just use !Ref AppLbAccessSg instead of !GetAtt AppLbAccessSg.GroupId there.


More player integration testing

Description
! This has been postponed !
There are quite a few events and actions that the player entity manages, with many being the result of multiple components working together. In order to reduce the risk of certain features being lost during merge conflict resolution, more integration testing suites would be ideal. This ticket is not about unit testing the individual components the player entitty uses.
Part of this ticket includes investigating how the components work together and putting together a test plan to ensure proper coverage.
Milestones

[ ]  Test plan created (Sep. 6)
[ ] Testing implemented according to plan (Sep. 12)

Completion Deadline: Sep. 13
This has been postponed
Documentation

Player Testing (to be created)

Members

Liv (@vilnor) (Liv Ronda)

Closing as other teams have implemented enough of their own testing + extensive user testing has also been conducted.


vcs: Disable alias of grep to fix performance penalty

If user defined alias of grep command with '-r' or '--recursive'
option, it causes a slow response of command line. It is not
unexpected behavior of vcs info.
This commit explicitly disables alias of grep to suppress side
effects.

@kenhys - Wow! This is great! This is a subtle issue with a big impact. Thanks so much for upstreaming the fix! I really appreciate it.
Welcome to P9k =)


crio now requires runc rc5 or greater

Also fix tutorial for updated cni and plugins packages
Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

I don't understand on my fedora 25 box I see.
rpm -q runc
runc-1.0.0-7.git6394544.fc26.1.x86_64
runc -v
runc version spec: 1.0.0-rc5

@rhatdan This is what I see. I suspect we are carrying a patch to change the output of runc -v. runc version is 1.0.0-rc and it uses runtime-spec version 1.0.0-rc5.
[root@localhost cri-o]# runc -v
runc version 1.0.0-rc3
commit: 75f8da7c889acc4509a0cf6f0d3a8f9584778375
spec: 1.0.0-rc5

Ok I used your runc text.

I have no idea why this is not resolving itself on a --force push.  So I am closing and will reopen with a different pull request


dynmap support?

Hi I was looking into 3 claim plugin and one of them is GriefDefender and one of the features I would like is dynmap support and I didn't see on the spigot page that you did have dynmap support so I just want to make sure by asking you here and see you do have dynmap support with this plugin.

Yes support is built-in.
https://github.com/bloodmc/GriefDefender/wiki/Dynmap


Compiler get's out of sync

This is a follow up of issue #4612
Describe the bug
After changing code that should compile I get compiler warnings and need to refresh to get rid of the warnings.
To Reproduce
See attached movie
2019-10-31_10-48-39.zip
Expected behavior
No compiler warnings when writing correct code
Screenshots
See attached movie
Versions:

AL Language: 4.0.191880

Business Central: 15.0

Hi! Does this happen on any solution or only a particular solution? Is there any code you could post that could help us reproduce this issue?

Me and my colleagues see this quite often too. It does not seem to be related to the actual code used. The compiler just reacts too slow, and after some (longer) waiting the result is as expected.
In order to reproduce, customize the base app on a machine with 32 GB memory, let's say.

@NKarolak is the issue transient? What are the settings for your project? This is what we use internally:
{
    "al.enableCodeAnalysis":  false,
    "editor.codeLens":  false,
    "al.incrementalBuild":  true,
    "al.enableCodeActions":  false
}

You can also consider excluding your source folder from Windows Defender and the Microsoft.Dynamics.Nav.EditorServices.Host.exe process .

@larswestman is there any code that you can provide that could help us track down the root cause of this issue?

@atoader We are using the same settings as suggested, except al.incrementalBuild: true, since false works better for us.
Could you please assist me where in the Windows Defender to exclude the folder and the process?

I have excluded my c:\repos and Microsoft.Dynamics.Nav.EditorServices.Host.exe process but are still having issues.
For me the most common issues is as in the screenshot below. I inserted the framed line and the compiler complaines about my OnBefore procedure.
If I comment out the line [IntegrationEvent(false, false)] the compiler error goes away immideately. Then I remove the // and the codeunit compiles just fine.

Looks like a parser issue,  a non recovering state. Probably it has to do with the "With" statement.
It will be very hard to reproduce it on the other hand, given the completely non deterministic nature of the diagnostics service within the compiler.
But will have a look and try to repro it.

I understand. But "not repro" does not always mean that it's working. It's just harder to verify the effect of the fix. This is an annoying issue that we should try to get rid of.

It's always the first IntegrationEvent tag that cause problems for me. Instead of reloading VSC as I used to du I can solve it by commenting theIntegrationEvent tag and then removing the comment


chore: add .asyncapi-tool

Added .asyncapi-tool file
Adds new template to tools dashboard under AsyncAPI generator templates category

Hi @TheEques
Could you explain a bit more?

Sure @Tenischev, actually I created a PR regarding adding a new category to Tools Dashboard page the link to the PR is given below:
https://github.com/asyncapi/website/pull/2197
and I also had to add .asyncapi-tool file to the tool repo in order to display the tools on Tools Dashboard page

@TheEques thank you for explanation it's help. I'll recommend to provide link to website/pull/2197 in the description :)
Please have a look in review comment

Hey @Tenischev, @derberg, please checkout other PRs that I have created for other templates


Travis CI tests needs to be run in quieter mode (WARN log level) to avoid max log-size errors

Travis CI tests needs to be run in quieter mode (WARN log level) to avoid max log-size errors
Failing CI log : https://api.travis-ci.org/v3/job/431689968/log.txt
https://github.com/uber/hudi/pull/455 is failing because of log size going more than 4 MB. Even before PR-455, the log-size was pretty close to this limit. I have created maven profile which will only be activated in Travis CI and enable only WARN level logs.
Developers will not see any change in behavior
@vinothchandar @n3nash

long time overdue. thanks for doing this


doc/releases: v2.6.0: Update for logging subsystem

Update release notes with logging v2 info.
Signed-off-by: Krzysztof Chruscinski<EMAIL_ADDRESS>

Can you add something in the 'Major enhancements' section at the top about logging v2.

@galak added short note, not sure how detailed it should be.

@nordic-krch can you rebase to fix the merge conflict.


fix: use flexGrow inside SectionButton

:tada: This PR is included in version 7.27.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


std::io::Read input

If I have a reader input, for example coming from a HTTP request, can I JSON parse from the reader directly?
or do I have to read into a string first? It seems that for larger inputs, it could be more efficient to parse JSON from reader directly

found an alternative:
https://docs.rs/serde_json/latest/serde_json/fn.from_reader.html

I'll have a look at it tomorrow. It seems like I can get a Peekable iterator from Read as well, so it should be an easy change.


⚠ SceneTime has degraded performance

In e58ab14, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1166 ms

Resolved: SceneTime performance has improved in 90c3a88 after 8 minutes.


Type aliases don't work with classes

class A {}
type B = A;
var b = new B(); // <--- Cannot find name 'B'.

That is because it is a type alias not just an alias. you are aliasing the type part of the class A (i.e. the instance type of objects created by calling new A()). this is similar to using an interface, e.g.:
class A {}
interface B extends A {}

As opposed to the value side of the class (i.e. the constructor function A):
class A {}
var B = A;
var b = new B(); // b is of type A
var c: B; // Error Can not find name B, B is not a type

if you just want to give A a different name, i.e. alias all meanings of A (instance type and constructor function), use:
module M {
    export class A {}
}
import B = M.A;
var b = new B();

That is because it is a type alias not just an alias

this is odd.. I have a practical situation, an ugly looking class mwsb.Workspace<dbls.BeamLoadingWorkspaceSettings, dblt.WorkareaType, WardSettingsManager<pl.WokareaEmbodiment>> that I wish I could alias to a nicer looking one for the sake of dealing with a less messier type signature, now you say, well you can but you  cannot, turns out type aliases as they are are as half baked as type unions, limited specific case only driven features
what does it take to get genuine aliases?

You have to choose whether you want to alias the value, the type, or both. There is different syntax for each.
module SomeLongName {
	export class WhatAnAwfulName {
		foo: string;
	}
}

var ctor = SomeLongName.WhatAnAwfulName; // use var to alias the constructor function
var anAwfulThing = new ctor(); // hover over anAwfulThing and see 'SomeLongName.WhatAnAwfulName'
var anotherAwfulThing: ctor; // error: ctor is not a type, it's just a function

type ctor2 = SomeLongName.WhatAnAwfulName; // use type to alias the type of SomeLongName.WhatAnAwfulName
var anAwfulThing2 = new ctor2(); // error, ctor2 is not a function, it's a type
var anotherAwfulThing2: ctor2; // ok, hover over anAwfulThing2 and see 'SomeLongName.WhatAnAwfulName'

import ctor3 = SomeLongName.WhatAnAwfulName; // use import to alias all meanings, ctor3 is now a function and a type
var anAwfulThing3 = new ctor3(); // ok, ctor3 is a function
var anotherAwfulTHing3: ctor3; // ok, ctor3 is also a type

@danquirk
so basically i am looking for the same type aliases (whatever they really are) C# has
case 3 from your example would have been exactly what i am after if i could import a type peppered with type parameters:
import NiceName = SomeLongName.WhatAnAwfulName<number, boolean, string, Date>

which, as we know, i can't
so the working alternative is to pass around a type-instance-type (case2) and a constructor function (case1).. i'd be better off just inheriting from an ugly type as i used to do before type aliases

@aleksey-bykov You can do something close to that with:
import NiceName = SomeLongName.WhatAnAwfulName;
...

var v = new NiceName<number, boolean, string, Date>;

@CyrusNajmabadi in my case the ugliness comes not from the name of the type itself, but from its list of type arguments that, according to your suggestion, i still have to mention every time, so it doesn't really solves a problem, consider:

// before
var a : mwsb.Workspace<dbls.BeamLoadingWorkspaceSettings, dblt.WorkareaType, WardSettingsManager<pl.WokareaEmbodiment>>;

// after

import Workspace = mwsb.Workspace;
var b : Workspace<dbls.BeamLoadingWorkspaceSettings, dblt.WorkareaType, WardSettingsManager<pl.WokareaEmbodiment>>;

// does it look much better?

as for C# although you are right, but the use case i am looking for in TypeScript is precisely supported by C#, namely getting an alias to the type (be it an interface or a class) with all its type parameters resolved
to me not being able to refer to a type alias from another file is a much greater annoyance in C#

Continuing discussion in referenced issue


Lab2: implement bubble sort

Fixes #560
Review of colleague's PR #371
Changes proposed in this PR:

Implement bubble sort
Implement tests for bubble sort

This looks good to me, I would just suggest that since you have a lot of commits squash them down so you only have 1 or 2.

Thanks very much for reviewing @jessodri . I've enabled squash merging in my settings, so hopefully this happens automatically. Great call out though, I'll remember to squash for future projects.

This looks good to me, I would just suggest that since you have a lot of commits squash them down so you only have 1 or 2.

Thanks very much for reviewing @jessodri . I've enabled squash merging in my settings, so hopefully this happens automatically. Great call out though, I'll remember to squash for future projects.

I realised I misunderstood what that setting does. I'll squash my commits now. Thanks for pointing this out!

@juliaogris Thanks very much for the feedback. I had forgotten about optimising for efficiency with bubble sort. That makes a lot of sense. Hopefully the new code is less complex and more efficient.

@juliaogris I've updated the code to be a traditional bubble sorting algorithm, as per your feedback. Before I was trying to do it from first principles, and also to implement something more efficient. Instead of ignoring only one fewer element each time, I was ignoring potentially more than that, based on the index of the last pair of elements that were sorted.
However it's clear my code was confusing. A good learning for me not to try to reinvent the wheel.
Thank you for being patient with this PR and articulating your thoughts. I really appreciate it.

please copy input slice.

@n0npax Thanks for the feedback and the reminder, I have made that change.

LGTM.
No action needed:

As small nits: you can remove blank lines from bubble functions. They are not needed in my mind.

My comments on the test cases relate to general software engineering, and are not Go-specific, so I'm happy to approve this PR for merging. If you do want to re-work the PR in response to those comments, let me know and I'll re-review quickly.

@camh-anz Thanks for the helpful comments and explanations. I've updated the code.

lgtm - thanks for hanging in there!

@juliaogris Thanks for being so patient! :) merging now


Set percent unit for battery level so that history displays properly;…

… edited variable name for consistency
Description:
Battery level history wouldn't display as a curve without unit.

Hi @nbougues,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!


Capacity text and the number overlap in mobile view

I can work on this if you assign this to me with hacktoberfest tag

Hi @shreyansh1410,
As mentioned in issue #2, the same applies here. If you wish to go forward with making the site responsive, I'll be happy to create a new issue and it to assign you under hacktoberfest tag.

Yeah sure, I'll start working on it by evening

I have created issue #4, please take a moment to check out the new issue and interact with it so that I can assign the issue to you and mention you in the comments as and when necessary.


"can't link RVE with other target" when building for CH32V003A4M6 on mac. blinky-none-os example.

Otehr boards seem to compile fine. the riscv-non-embed binaries seem to be installed correctly.
At a a loss why this will not link, I am missing something or a bug?
<EMAIL_ADDRESS>.platformio/packages/toolchain-riscv@src-4a976c8edcf1083542a06c72f741fdf2/bin/../lib/gcc/riscv-none-embed/8.2.0/libgcc.a(save-restore.o): can't link RVE with other target
same error for
.. muldi3.o ... div.o ... lib_a-init.o

I've observed this failure too in the CI but only with some examples. Something is definitely wrong there with the used libgcc.a file, for Mac we might need to substitute the one from the Linux Toolchain (which should be fine).I don't have a Mac to test so I'd love for you to do it: Can you go to the official mounriver website, download the IDE for Mac, create s new CH32V003 project (from their new.project template), disable Build->Concise Output, then build and send the log here (via Pastebin.com)?

official mounriver website, download the IDE for Mac,
Sorry I dont think there is an official IDE, however they do offer the toolchain as xPack which looks to be the same as the toolchain i got from the platformio install.
~/.platformio/packages/toolchain-riscv@src-4a976c8edcf1083542a06c72f741fdf2
I can try replace the toolchain with the one downloaded... I will report back...
ofcourse it could be ( but unlikely ) a rosetta issue since the toolchains are X64 and M1/M2 are ARM?

I get the same issue on my intel mac, so Rosetta is off the hook.

I get the same issue on my intel mac, so Rosetta is off the hook.

OK thx for that working on getting it running on UTM on my M1 to confirm it aint my project, now I know it aint a ARM vs X86 issue.

I've installed the mounriver xpack and tried it out.
Amending the pio link command to use the same argument makes it appear to succeed.

Following that back to the board file, the following change (applied in ~/platformio/platforms/ch32v) gives me a successful pio run -t upload, and code that runs on the device:
diff --git a/boards/genericCH32V003F4U6.json b/boards/genericCH32V003F4U6.json
index 4bba765..98d915c 100644
--- a/boards/genericCH32V003F4U6.json
+++ b/boards/genericCH32V003F4U6.json
@@ -9,7 +9,7 @@
]
],
"mabi": "ilp32e",

"march": "rv32ecxw",

"march": "rv32ec",
"mcu": "ch32v003f4u6",
"series": "ch32v003"
},

Confirmed my code for the A4M6 now compiles.
Will try and upload tomorrow ( PST time here, not AEST ) Thx.
manually removed xw from  march in ./platforms/ch32v/boards/genericCH32V003A4M6.json

That's... but the MounRiver IDE uses this exact architecture. The xw architecture part is for the custom extensions that the CH32V003 has.

QingKeV2_Processor_Manual.PDF
So when we're not turning that on, we're losing in terms of firmware size and probably execution speed (shorter instructions are faster to load).
I can dynamically turn off xw for Mac in the builder script and probbaly make it go through, but it doesn't feel right at all. I'll need to ask MounRiver support again what's going on there.

100% what MounRiver IDE is using.

Fixed per PR above until I get a response from MounRiver support or a fixed MacOS toolchain that can do rv32ecxw.

New toolchain dropped, this will likely fix the problem of missing rv32ecxw libraries -- will look into updating the toolchain, re-upgrading the march and retesting in CI.

Toolchain updated per https://github.com/Community-PIO-CH32V/toolchain-riscv-mac/commit/99cb62f72304e1a7afe8e7c191143975793ccfab and workaround removed per https://github.com/Community-PIO-CH32V/platform-ch32v/commit/0f2a3e14d62e9f19077e3d01ea5664e0bc2ebbed.
Examples  still compile normally, so everything is fixed now properly :)

Works for me.
For those reading along, I reverted my platform hack, then did pio pkg update -g -p https://github.com/Community-PIO-CH32V/platform-ch32v.git which updated some stuff.   Compilation still failed---looks like the toolchain didn't update.      I deleted .platformio/packages/toolchain-riscv/ then recompiled my project, and it fetched the new toolchain during compilation and compiles OK now.


cannot resume music by using Alexa resume voice command

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:

init with configJsonStreams.push_back(alexaClientSDK::afml::interruptModel::InterruptModelConfiguration::getConfig(false));
Alexa, play music
Alexa, stop
Alexa, resume but it cannot resume music when the interrupt model set to NoMixer
What is the expected behavior?

The music can resume
What behavior are you observing?

The music cannot resume
Provide the steps to reproduce the issue, if applicable:

init with configJsonStreams.push_back(alexaClientSDK::afml::interruptModel::InterruptModelConfiguration::getConfig(false));
Alexa, play music
Alexa, stop
Alexa, resume but it cannot resume music when the interrupt model set to NoMixer
Tell us about your environment:

What version of the AVS Device SDK are you using?
  1.20.0

Tell us what hardware you're using:

[ ] Desktop / Laptop
[ ] Raspberry Pi
Other - tell us more:

Tell us about your OS (Type & version):

Linux
[ ] MacOS
[ ] Raspbian Stretch
[ ] Raspbian Jessy
[ ] Other - tell us more:

Please check the code about this file:
capabilities/AudioPlayer/acsdkAudioPlayer/src/AudioPlayer.cpp +1340
    case PlayerActivity::FINISHED:
    case PlayerActivity::IDLE:
        // Note: can be in FINISHED or IDLE while waiting for MediaPlayer to start playing, so we fall
        // through to call @c pause() here as well.
        if (previousFocus == FocusState::NONE && !m_audioPlayQueue.empty()) {
            // If a higher priority CA (like Alarm) is in the foreground, AudioPlayer state will be
            // background We need also to start to play, the mixing behavior will decide to pause or play in
            // duck
            if (m_audioPlayQueue.front()->mixingBehavior == audio::MixingBehavior::BEHAVIOR_DUCK &&
                !m_isStartingPlayback) {
                ACSDK_DEBUG1(LX("transitionToBackgroundWhileNotPlayingAndNextItemDuckable")
                                    .d("result", "playNextItemInDuck"));
                playNextItem();
                /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                 *
                 * I think here need reutrn
                 *
                 * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                 */
            }

            // if in FINISHED/IDLE/STOPPED state , NONE -> BACKGROUND transition and mixingBehavior is PAUSE
            // do not call pause on mediaplayer : this will cause PAUSE when no music is playing, messing up
            // audioplayer states we should rather wait for audioplayer to become FOREGROUND in the future
            // to play an example of this is Flash Briefing:
            // 1. Ask for Flash briefing
            // 2. AudioPlayer receives Play directive : but is in background (since SpeechSynthesizer has
            // Foreground : "here's your flash briefing" 2a. AudioPlayer should not call PAUSE through the
            // behaviorDelegate below : instead wait for FOREGROUND
            else if (m_audioPlayQueue.front()->mixingBehavior == audio::MixingBehavior::BEHAVIOR_PAUSE) {
                ACSDK_DEBUG1(LX("transitionToBackgroundWhileNotPlayingAndNextItemNotDuckable")
                                    .d("result", "delayNextItemUntilForegroundAcquired"));
                return;
            }
        } else if (m_audioPlayQueue.empty()) {
            // if in FINISHED/IDLE/STOPPED state and no audioItems in queue : no need to Duck/Pause
            ACSDK_DEBUG1(LX("transitionToBackGroundWhileNotPlaying"));
            return;
        }

main code: This switch need return or break.
https://github.com/alexa/avs-device-sdk/blob/4bb0d23cd98f45cedb4cc0b928ee06a1267c02d2/capabilities/AudioPlayer/acsdkAudioPlayer/src/AudioPlayer.cpp#L1340

Hi @benghopy , thanks for reporting this. This is unfortunately a known issue in the SDK at this time. We are already tracking it internally. Thanks!

Closed this issue in error -- it is under investigation.

This is fixed in v1.21 of the SDK.  Thanks!


[Refactor] Move all the db related check to the infrastructure layer

🚀 Feature Request
Relevant Package [REQUIRED]

 This feature request is for all
Description [REQUIRED]
For some APIs, we need to check the object status in the database, and we wrote the logic in both application layer and infrastructure layer.  For example,
https://github.com/edgexfoundry/edgex-go/blob/66f7195aaa021911302e3f29534e7389e02a11e8/internal/core/metadata/application/device.go#L31-L42
Sometimes, they are duplicated
https://github.com/edgexfoundry/edgex-go/blob/66f7195aaa021911302e3f29534e7389e02a11e8/internal/core/metadata/application/device.go#L64-L73
https://github.com/edgexfoundry/edgex-go/blob/66f7195aaa021911302e3f29534e7389e02a11e8/internal/pkg/infrastructure/redis/device.go#L136-L142
Describe the solution you'd like
Those db related checks should all be moved to the infrastructure layer for the following reasons:

The db connection can be reused
Those functions are transactional
For different database, they can be checked automatically.  For example, the duplicated id cannot be added to the tables in the normal relational database.  Thus, those should be infrastructure specific logic.

https://github.com/edgexfoundry/edgex-go/blob/66f7195aaa021911302e3f29534e7389e02a11e8/internal/core/metadata/application/device.go#L64-L73

In the application layer, calling DeviceByName is not only to check whether the device exists but also to obtain the device object for later use.
https://github.com/edgexfoundry/edgex-go/blob/b7de7b775397295cb69718a186a97b7526882c59/internal/core/metadata/application/device.go#L88-L90
I think we should leave it as it is. Otherwise we need to change the function signature of the DeleteDeviceByName function at infrastructure layer to return the deleted device.