Convert & Refactor UPDATE_ECMPS_STATUS stored procedure to Postgres

ECMPS.dbo.UPDATE_ECMPS_STATUS

MP Evaluation
1.  Delete CHECK_SESSION rows where:
    *   PROCESS_CD = 'MP',
    *   MON_PLAN_ID = session MON_PLAN_ID,
    *   CHK_SESSION_ID != session CHK_SESSION_ID.
2.  Update MONITOR_PLAN row for session MON_PLAN_ID by setting NEEDS_EVAL_FLG to 'N', LAST_EVALUATED_DATE to current timestamp, and CHK_SESSION_ID to the session CHK_SESSION_ID.
3.  When MONITOR_PLAN row exists where MON_PLAN_ID = session MON_PLAN_ID and either UPDATED_STATUS_FLG = 'Y' or SUBMISSION_AVAILABILITY_CD = 'REQUIRE'.
    a.  Select distinct MON_PLAN_ID and RPT_PERIOD_ID from EMISSION_EVALUATION and EM_SUBMISSION_ACCESS for MP where EMISSION_EVALUATION.NEEDS_EVAL_FLG = 'N' and EM_SUBMISSION_ACCESS.SUBMISSION_AVAILABILITY_CD equals "REQUIRE" or "GRANTED".
        *   Call DEL_CALCULATED_EMISSIONS_DATA SP for each MON_PLAN_ID and RPT_PERIOD_ID combination.
            *   Handle if call fails by bailing out of everything.
            *   Used by UES.UpdateSubsequentEmissionsAfterRetrieve
            *   Calls UES.DeleteCalculatedEmissionsData passing the MON_PLAN_ID and RPT_PERIOD_ID in XML.
                *   Deletes the CHECK_SESSION rows where:
                    *   EMISSION_EVALUATION row exists where:
                        *   CHK_SESSION_ID = CHECK_SESSION.CHK_SESSION_ID
                        *   MON_PLAN_ID = MON_PLAN_ID = session MON_PLAN_ID
                        *   RPT_PERIOD_ID = RPT_PERIOD_ID = session RPT_PERIOD_ID
                *   Updates EMISSION_EVALUATION row setting NEEDS_EVAL_FLG = 'Y' and CHK_SESSION_ID = null where:
                    *   MON_PLAN_ID = MON_PLAN_ID = session MON_PLAN_ID
                    *   RPT_PERIOD_ID = RPT_PERIOD_ID = session RPT_PERIOD_ID
                *   Clears calculated values in DAILY_CALIBRATION, DAILY_EMISSION, DAILY_FUEL, DAILY_TEST_SUMMARY, DERIVED_HRLY_VALUE, HRLY_FUEL_FLOW, HRLY_PARAM_FUEL_FLOW, LONG_TERM_FUEL_FLOW, MONITOR_HRLY_VALUE and SUMMARY_VALUE for MP MON_LOC_ID and RPT_PERIOD_ID.
                *   Deletes DM Emissions for session MON_PLAN_ID and session RPT_PERIOD_ID.
                *   Calls UES.EmissionsGridRemoveEval, which stripped the error codes from prepopulated tables used in the ECMPS Emission Screens.  This call is no longer needed.
                *   Used by UES.ProgramParameter and UES.VendorSync.
    b.  Delete CHECK_SESSION rows where:
        *   QA_CERT_EVENT row exists where:
            *   CHK_SESSION_ID = CHECK_SESSION.CHK_SESSION_ID
            *   MON_LOC_ID = MON_LOC_ID for a MONITOR_PLAN_LOCATION where MONITOR_PLAN_LOCATION.MON_PLAN_ID = session MON_PLAN_ID
            *   NEEDS_EVAL_FLG = 'N'
            *   Either SUBMISSION_AVAILABILITY_CD = 'REQUIRE' OR UPDATED_STATUS_FLG = 'Y'
    c.  Update QA_CERT_EVENT rows setting NEEDS_EVAL_FLG = 'Y', CHK_SESSION_ID = null, and UPDATE_DATE = <Current Date & Time> where:
            *   MON_LOC_ID = MON_LOC_ID for a MONITOR_PLAN_LOCATION where MONITOR_PLAN_LOCATION.MON_PLAN_ID = session MON_PLAN_ID
            *   NEEDS_EVAL_FLG = 'N'
            *   Either SUBMISSION_AVAILABILITY_CD = 'REQUIRE' OR UPDATED_STATUS_FLG = 'Y'
    d.  Delete CHECK_SESSION rows where:
        *   TEST_EXTENSION_EXEMPTION row exists where:
            *   CHK_SESSION_ID = CHECK_SESSION.CHK_SESSION_ID
            *   MON_LOC_ID = MON_LOC_ID for a MONITOR_PLAN_LOCATION where MONITOR_PLAN_LOCATION.MON_PLAN_ID = session MON_PLAN_ID
            *   NEEDS_EVAL_FLG = 'N'
            *   Either SUBMISSION_AVAILABILITY_CD = 'REQUIRE' OR UPDATED_STATUS_FLG = 'Y'
    e.  Update TEST_EXTENSION_EXEMPTION rows setting NEEDS_EVAL_FLG = 'Y', CHK_SESSION_ID = null, and UPDATE_DATE = <Current Date & Time> where:
            *   MON_LOC_ID = MON_LOC_ID for a MONITOR_PLAN_LOCATION where MONITOR_PLAN_LOCATION.MON_PLAN_ID = session MON_PLAN_ID
            *   NEEDS_EVAL_FLG = 'N'
            *   Either SUBMISSION_AVAILABILITY_CD = 'REQUIRE' OR UPDATED_STATUS_FLG = 'Y'
    f.  Select TEST_SUM_ID from TEST_SUMMARY for MP where TEST_SUMMARY.NEEDS_EVAL_FLG = 'N'.
        *   Form the TEST_SUM_ID into comma delimted list of no more than 170 ids.
            *   Call DEL_CALCULATED_QA_DATA for each comma delimted TEST_SUM_ID list.
            *   Handle if call fails by bailing out of everything.
            *   Calls UES.DeleteCalculatedQAData passing a list of TEST_SUM_ID.
                *   Deletes the CHECK_SESSION rows where:
                    *   TEST_SUMMARY row exists where:
                        *   TEST_SUM_ID = exists in the XML list of TEST_SUM_ID,
                *   Updates TEST_SUMMARY row setting NEEDS_EVAL_FLG = 'Y',  and setting CHK_SESSION_ID, CALC_GP_IND, CALC_TEST_RESULT_CD and CALC_SPAN_VALUE to null where:
                    *   MON_PLAN_ID = MON_PLAN_ID = session MON_PLAN_ID
                    *   RPT_PERIOD_ID = RPT_PERIOD_ID = session RPT_PERIOD_ID
                *   Clears calculated values in AE_CORRELATION_TEST_RUN, AE_CORRELATION_TEST_SUM, AE_HI_GAS, AE_HI_OIL, CALIBRATION_INJECTION, CYCLE_TIME_INJECTION, CYCLE_TIME_SUMMARY, FLOW_RATA_RUN, FLOW_TO_LOAD_REFERENCE, GFM_CALIBRATION, HG_LME_DEFAULT_TEST_DATA, HG_LME_DEFAULT_TEST_SUMMARY, LINEARITY_SUMMARY, ON_OFF_CAL, RATA, RATA_RUN, RATA_SUMMARY, RATA_TRAVERSE, and UNIT_DEFAULT_TEST.
                *   Used by UES.ProgramParameter and UES.VendorSync.
                *   Used by UES.ProgramParameter and UES.VendorSync.

MP Data Entry:
MP Import:
Error Suppression Retrieve:
Used ID Retrieve:
For each MP containing an affected location:

    1.  Update associated MONITOR_PLAN;
        a.  UPDATED_STATUS_FLG to 'Y' and LAST_UPDATED to Now.
            *   Only for active MP for "MP Data Entry" and "MP Import".
            *   All MP for "Error Suppression Retrieve" and "Used ID Retrieve".
        b.  PENDING_STATUS_CD to 'PENDUP' and UPDATE_DATE to Now when PENDING_STATUS_CD equals 'PENDING'.
            *   Only for active MP for "MP Data Entry" and "MP Import".
            *   All MP for "Error Suppression Retrieve" and "Used ID Retrieve".
        c.  NEEDS_EVAL_FLG to "Y", CHK_SESSION_ID to null and UPDATE_DATE to Now
            *   All MP for "MP Data Entry" and "MP Import".
            *   Only MP with SUBMISSION_AVAILABILITY_CD = "REQUIRE" or UPDATED_STATUS_FLG = "Y" for "Error Suppression Retrieve" and "Used ID Retrieve".
    2.  Delete associated CHECK_SESSION rows where MONITOR_PLAN NEEDS_EVAL_FLG equals "Y" (even when set to "Y" above)
    3.  For each EMISSION_EVALUATION and ESA_SUBMISSION_ACCESS row cobination on MON_PLAN_ID and RPT_PERIOD_ID with matching MON_PLAN_ID and where ESA.SUBMISSION_AVAILABILITY_CD is either "GRANTED" or "REQUIRE".
        a.  Delete CHECK_SESSION rows that match on the EMISSION_EVALUATION CHK_SESSION_ID.
        b.  Update EMISSION_EVALUATION NEEDS_EVAL_FLG to "Y" and CHK_SESSION_ID to null.
        c.  Null calculated columns in emission tables for the MON_LOC_ID associated with the MON)PLAN_ID, and the RPT_PERIOD_ID.
        d.  Delete rows in the set of DM Emissions tables for the MON_PLAN_ID and RPT_PERIOD_ID.
    4.  For each QA_CERT_EVENT or TEST_EXTENSION_EXEMPTION row matching the MON_LOC_ID for the MON_PLAN_ID, and the QA_CERT_EVENT or TEST_EXTENSION_EXEMPTION NEEDS_EVAL_FLG equals "Y" and either SUBMISSION_AVAILABILITY_CD = 'REQUIRE' or UPDATED_STATUS_FLG equals 'Y'.
        a.  Set NEEDS_EVAL_FLG to 'Y', CHK_SESSION_ID to null and UPDATE_DATE to Now.
        b.  Delete CHECK_SESSION rows that match on the QA_CERT_EVENT or TEST_EXTENSION_EXEMPTION CHK_SESSION_ID.
    5.  For each TEST_SUMMARY row outter joined to a QA_SUPP_DATA row where MON_LOC_ID matches the MON_PLAN_ID and TEST_SUMMARY NEEDS_EVAL_FLG equals 'N', and QA_SUPP_DATA is NULL, 'GRANTED' or 'REQUIRE'.
        a.  Delete CHECK_SESSION rows that match on the TEST_SUMMARY TEST_SUM_ID.
        b.  Update TEST_SUMMARY NEEDS_EVAL_FLG to "Y" and CHK_SESSION_ID to null.
        c.  Null calculated columns in QA test tables (including TEST_SUMMARY) for the TEST_SUM_ID.

MP Loaded (Submission)
For MONITOR_PLAN matching the the specified MON_PLAN_ID, set:

    *   PENDING_STATUS_CD to null.
    *   SUBMISSION_AVAILABILITY_CD to the specified Submission Availability Code.
    *   SUBMISSION_ID to the specified Submission ID
    *   UPDATED_STATUS_FLG to 'N' when PENDING_STATUS_CD does not equal 'PENDUP'.

For MONITOR_PLAN_COMMENT matching the the specified MON_PLAN_ID, set:

    *   PENDING_STATUS_CD to null.
    *   SUBMISSION_AVAILABILITY_CD to the specified Submission Availability Code.

MP Failed (Submission)
For the specified MONITOR_PLAN set PENDING_STATUS_CD to null.

MP Retrieve
MP Supp Retrieve
For every MONITOR_PLAN associated with MON_LOC_ID contained in the MONITOR_PLAN for the specified MON_PLAN_ID.

    1.  Delete any CHECK_SESSION rows with a matching MON_PLAN_ID.
    2.  Set NEEDS_EVAL_FLG to "Y", CHK_SESSION_ID to null and UPDATE_DATE to Now.

    For the specified MON_PLAN_ID
    1.  For "MP-Retrieve", set set UPDATED_STATUS_FLG to 'N' and UPDATE_DATE to Now.
    2.  For "MP Supp Retrieve", set SUBMISSION_AVAILABILITY_CD to 'REQUIRE' (possible relic) and UPDATE_DATE to Now.

    For any MONITOR_PLAN associated with MON_LOC_ID contained in the MONITOR_PLAN for the specified MON_PLAN_ID, and that has a NULL SUBMISSION_AVAILABILITY_CD.
    1.  Run ECMPS.dbo.UPDATE_MON_PLAN_CONFIGURATION
        *   Update MONITOR_PLAN and MONITOR_PLAN_RERPORTING_FREQ begin and end quarters, and may create the records.
        *   May update MONITOR_PLAN_LOCATION records.
        *   Null SUBMISSION_AVAILABILITY_CD may indicated a new MP on the ECMPS Client, but not on the Host.  The retrieval of MP information and other MP might affect the unsubmitted MP.

MP Submit
For the specified MON_PLAN_ID:

    1.  Set PENDING_STATUS_CD in MONITOR_PLAN to 'PENDING'.
    2.  Set PENDING_STATUS_CD in MONITOR_PLAN_COMMENT to 'PENDING'.

MP Comment Data Entry
For the updated MONITOR_PLAN_COMMENT

    1.  Update athe follwing;
        a.  UPDATED_STATUS_FLG to 'Y' and LAST_UPDATED to Now.
        b.  PENDING_STATUS_CD to 'PENDUP' and UPDATE_DATE to Now when PENDING_STATUS_CD equals 'PENDING'.

MP Comment Retrieve
For the retrieve MONITOR_PLAN_COMMENT

    1. Set SUBMISSION_AVAILABILITY_CD to the specified Submission Availability Code.


Should the $key property be deleted if it is null or undefined before sending to Firebase?

For example, when pushing to a FIrebaseListObservable. It would be nice to model Firebase data as classes in TypeScript, but an optional $key property will be null when creating a new instance and that causes an error with Firebase.

Can you provide a sample of what you're trying to achieve so we're on the same page?
But what I think you're running into is the fact that the Realtime Database won't accept $ in keys, which is why we use $key and $value.
If you want to use a class I would create a method that drops the $key from the object and saves it to the database. Look at the example below.
http://jsbin.com/cagudocofa/edit?js,output
class Item {
  $key?: string;
  name?: string;

  /**
  * Create an Item, with no depencies on a DataSnapshot.
  */
  constructor(key: string, data: Item) {
    this.$key = key;
    this.name = data.name;
  }

  /**
  * Create a reference for the item in the Realtime Database
  */
  ref() {
    return firebase.database().ref().child('items').child(this.$key);
  }

  /**
  * Override the toJSON method to delete the $key
  */
  toJSON() {
    const copy = Object.assign({}, this);
    delete copy.$key;
    return copy;
  }

  /**
  * Write the record in the Realtime Database, without the $key
  */
  save() {
    this.ref().set(this.toJSON());
  }
}

const item = new Item('1', { name: 'itemOne' });
item.save();

Unless there's any other items for discussion, I'm going to close this issue. Feel free to keep responding though :)

Thanks @davideast for your example! To answer your question, I was wanting to create instances of a model class using the Firebase data that was coming in, and likewise use those instances when updating with the AngularFire2 API. What I noticed is that when I made a new model instance (and the $key was null or undefined depending on how I specified the definition in the constructor), then the Firebase library itself would complain. So, my initial thought had been to delete the $key property if it was null or undefined at the AngularFire2 level to avoid having to do something like override toJSON. That change could be bad for reasons I don't realize though.


Error using context.iopipe methods

Calling context.iopipe.Label generates an error "cannot refer to unexported field or method iopipe"

Because it needs to be exported, it's now context.IOpipe.Label.


Thread Safe

As you mentioned,
NMSSH classes are not thread safe, you should use them from the same thread where you created the NMSSHSession instance.:
https://github.com/NMSSH/NMSSH/blob/94624c90e357eda412e40c1a3d9dec1a1cb7479d/NMSSH/NMSSHSession.h#L37-L45
But here, you've executed blocks in other queues, which may cause problems, like https://github.com/NMSSH/NMSSH/issues/264:
https://github.com/NMSSH/NMSSH/blob/94624c90e357eda412e40c1a3d9dec1a1cb7479d/NMSSH/NMSSHChannel.m#L327-L337
Consider add extra mutex locks for properties below:
https://github.com/NMSSH/NMSSH/blob/94624c90e357eda412e40c1a3d9dec1a1cb7479d/NMSSH/NMSSHChannel.m#L5-L6

We thought it was libssh2 issue and spent a week around debugging it :(
😭
A simple approach to fix this issue would be lock every libssh2_function, and it would be fine after.

A simple approach to fix this issue would be lock every libssh2_function, and it would be fine after.

Could you tell me exactly how to do this? Pls))). I've been looking for a solution for quite some time now

A simple approach to fix this issue would be lock every libssh2_function, and it would be fine after.

Could you tell me exactly how to do this? Pls))). I've been looking for a solution for quite some time now

https://lab.qaq.wiki/Lakr233/nmssh-ng/-/raw/master/NMSSH/NMSSHChannel.m

We have implemented a thread safe libssh2 at https://github.com/Lakr233/NSRemoteShell join our development if you've like to.


Can not set env variable during runtime

Laravel Version: 6.2
PHP Version: 7.2
Database Driver & Version: pgsql

Description:
when I try to change the env variable in the code during runtime it does not work and gives me the old variable.
I tried
\config(['rabbitmq.worker' => 'default']);
and also
Config::set('rabbitmq_worker','default');
then when I call env('RABBITMQ_WORKER') it gives me null

Hello Johnabil, I might be wrong but I guess you are messing something up. When you set something with Config facade or config function you are changing the value that comes from the config file, and you are trying to get the value in the last sentence from .env file or system variables, they are two different things.
Your config file uses the .env file to get some variable from the .env file or from the system variables. But it doesn't mean it is gonna work the other way around.
If you want to get the value from config that you have set before, you should use config('key') or Config::get('key').
Remember config file uses the .env file or system variable to set some of its values.

I tried it with config('rabbitmq.worker') in the queue.php in config folder but it didn't work too

Your description is unclear what doesn't work.
But the point is:

changing environment variables during runtime will not reflect in the configuration file, this is expected / not supported
changing the config at runtime is fine

Hello,
Just to clarify, when you set a value with Config facade or config function the changes are valid only in the same request, I noticed you are trying to use RabbitMQ, right? This service runs in a separate process, am I right? You should have in mind when you change something with config() or Config::set() it changes only and exclusively in the same request/process/run time execution, it doesn't change if you try to start a new process nor if in an existent running process,
For example: you set a config key value and try to get its new value from a queue process or  new request, it is not gonna work.

@mfn @juliano-barros Thanks


Clarify support for macOS and windows in readme

Signed-off-by: GuessWhoSamFoo<EMAIL_ADDRESS>

Is there some alias we can use for the README.md so that is is just latest instead of needing to bump the version in the file every time?


The palera1nTV app won't start and crashes

Device
Apple TV HD
Version
tvOS 17.6
Passcode?

[ ] Passcode is enabled.

Start going into detail..
I tried jailbreaking using Palera1n 2.0. After the Booting Kernel message appears, the palera1nTV app appears on the home screen, but when I open it, it crashes immediately and goes back to the home screen. If necessary, I can send you ips log data.
Familiarity with palera1n

[ ] I am familiar with palera1n and how to use it!

Familiarity with CLI

[X] I am familiar with the command-line!

Use rootful

Yes, I'm using rootful. Is palera1n -f correct?

Yes

Sorry if this is confusing, I've already tried rootful but it didn't change anything.

It should be fixed in version 2.0.1, however please report your success

I tried 2.0.1 but it didn't change anything.

@TeriyakiSecky any luck? also, does this happen on non-tvOS?

Sorry, I don't own any other devices that can use Palera1n.
(I also have an iPhone 7, but I don't plan on jailbreaking it.)


Tree Sitter Highlight Support

Is it possible to support tree sitter highlighting?  https://tree-sitter.github.io/tree-sitter/syntax-highlighting
At a glance, I think this requires bindings for the tree-sitter-highlight library but also some way to load the files such as highlights.scm and tags.scm.

Hi, highlighting will not be supported in near future.It is written in Rust and makes the cross compiling toolchain more complex.


Linker error on MSVC

@boris-kolpackov
I keep getting this linker error on MSVC, however I can't figure out what the problem is. Any ideas? Did I model dependencies wrong in some place?
LINK : fatal error LNK1181: cannot open input file 'libftxui-3.0.0-a.0.20230125073955.79530aaad9da\src\ftxui-screen.dll.lib'

bdep ci build is available here:
https://ci.cppget.org/@8e22081b-3760-4ed3-850e-cf9355b1c70e

This most likely means that no symbols were exported from the DLL, in which case link.exe "helpfully" omits creating the import library. We've actually added detection/proper diagnostics for this in the upcoming 0.16.0. You could try to CI on stage (bdep ci --server https://ci.stage.build2.org ...) and see if it clarifies things.

Thanks, that hint gave me the right direction :+1: The library does not define any EXPORT macros for windows, so I had to limit the windows build to static only (similar as in the jsonxx package).

You could also try the auto-export support: https://build2.org/build2/doc/build2-build-system-manual.xhtml#cc-auto-symexport
It works quite well provided you don't need to export any global variables, only functions.


v.2.1.6

新功能

bot 支持更多命令，下载，转发均支持过滤器

/download - 下载消息
/forward - 转发消息
/listen_forward - 监听转发消息
/set_language - 设置语言

所有下载转发增加过滤表达式
添加配置中过滤表达式校验

修复

多个过滤表达式校验有问题
稳定性问题，长时间下载会出现fileReferceExpire , 修改代码，重新测试
临时文件名称重复，导致下载失败
重复下发命令导致出错

建立全局消息库，按照chat-id,meesage-id, status,下载状态，如果下载才开始则跳过，如果下载成功则跳过
转发重复下发，建立转发全局消息库，按照chat-id，message-id，status转发状态 暂时不解决

修复一组视频或者图片，过滤器过滤caption的时候，会少数据

第一阶段，采用下载一样的方式加载

只有bot_token退出报错

feature

bot supports more commands, downloading and forwarding all support filter

/download - download message
/forward - forward message
/listen_forward - listen for forwarded messages
/set_language - set language

Add filter expression for all download forwarding
Add filter expression validation in configuration

fix

There is a problem with the validation of multiple filter expressions
Stability problem, fileReferceExpire will appear when downloading for a long time, modify the code and retest
The name of the temporary file is duplicated, causing the download to fail
Repeatedly issuing commands leads to errors

Establish a global message library, according to chat-id, meesage-id, status, download status, skip if the download starts, skip if the download is successful
Forwarding is sent repeatedly, and a forwarding global message library is established, and the forwarding status is forwarded according to chat-id, message-id, and status. Temporarily unresolved

Repair a group of videos or pictures, when the filter filters the caption, there will be less data

In the first stage, load in the same way as downloading

Only bot_token exits and reports an error

Codecov Report

Merging #33 (82c08a0) into master (a06ee1c) will decrease coverage by 0.88%.
The diff coverage is 87.05%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master      #33      +/-   ##
==========================================
- Coverage   97.01%   96.13%   -0.88%
==========================================
  Files           9        9
  Lines         435      466      +31
==========================================
+ Hits          422      448      +26
- Misses         13       18       +5

Impacted Files
Coverage Δ

utils/meta_data.py
96.96% <ø> (-3.04%)
:arrow_down:

media_downloader.py
93.65% <85.33%> (-1.07%)
:arrow_down:

utils/format.py
100.00% <100.00%> (+0.95%)
:arrow_up:

... and 1 file with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Fix GNU Makefile

About This Pull Request
This pull request contains the update of GNU makefiles, which is not working presently. In this time,  the Makefile are fixed in order to follow up the modification of the directory location proposed on PR#165.
I have already tested this new makefile only for intel and gcc environment in Oakforest-PACS. However, I have not checked how it works in Fujitsu environment. Please, someone check this?
How to build by GNU Makefile
Enter to the makefile directory:
$ cd SALMON/makefiles

and execute make command with the platform specified makefile:
$ make -f Makefile.PLATFORM

Supported Platform

fujitsu
gnu
gnu-without-mpi
intel
intel-avx
intel-avx2
intel-knc
intel-knl
intel-without-mpi

Thank you for your implement, @uemoto1 san. I'll check this in the Fujitsu environment.

Since the build succeeded and the code reproduced previous results on the Fujitsu environment, I merge this PR.

Thank you @mn2007 san, for the prompt reply and quick merge!


File uploading?

Is file uploading supported?

I am interested in this as well, I saw that there is a FileBuffer class and I was wondering if I could see a usage example or something similar. At the moment I'm unsure how to output an octet-stream and receive multipart JSON/file data

Actually I found http://pistache.io/guide/#static-file-serving so it looks like that is documented but I'll have to dig around the source code to find out the specifics of how to handle multipart buffer data.

Pistache doesn't support Content-Disposition or Content-Transfer-Encoding headers required for multipart/form-data so submitting a file in a form is not possible. I'll see what I can do to get some code working for these headers... though my C++ is rusty (not the programming language lol)

After a bit of research it appears most HTTP servers ignore Content-transfer-encoding, even nodejs's http-server...

I've done a little progress on this so I'm wondering if @oktal can provide feedback once I get it semi-complete... I will try to submit a prototype for multipart data & file parsing as soon as I can as it's a huge requirement for a project I'm working on and I really like this REST framework!

Unfortunately I'm going to need some help with this. There are multiple issues and I'm finding it hard to work around Pistache's C-style custom buffer classes. I have my WIP here: https://github.com/kennymalac/pistache/commit/824322ae05d41800ad8e38eae83fb3a96e16df16
There are several issues. One is that I need a DynamicStreamBuffer that can output to a temp file, if a file is too large it will crash the program because the Heap won't have enough space for a large file. so I wanted to use the Chunking mechanism, but there is a problem with that... The chunking is tied to the logic for HTTP chunking, but I have to detect multitype before the Transfer-Encoding parser apply() method is called. The reason is that we don't want to inititialize say, a 8GB buffer, only to find out later that it's not even encoded correctly. So I want to do "partial pre-parsing" where I encode the form data in some sort of FormData() class.
The current parser is setup to just output a single buffer, with a single cursor per Request body parse, so I'm thinking that this will be a problem, because the cursor advance function continues to the end of the request body, rather than doing boundary checking, which is needed for multipart requests. So I have to delay the creation of the message->body_ buffer because there are limits to what can be stored in the parsed body response. What I'd like is that the returned body has access to tmpfiles somehow...
As for the Content-Disposition header, I haven't done that. I ran into a problem with MultipartContentType because I need the mixin behavior from ContentType so the code doesn't use the MultipartContentType header. I realized after writing that that the http_header.cc file only has HTTP Header headers, not Headers that can be parsed in the HTTP body.
If I could get some suggestions or feedback that would be great. I would continue on this but I'm a bit lost on how to move forward. Also yes I know my indention is bad (2spaces).. :-P

Is there a workaround available for uploading moderate-sized files (5-10MB) with reasonable speed (without it taking one second), without any writing to disk or chunking? (i.e. assuming there is enough RAM available)
While Pistache is very useful and versatile (especially in combination with OpenAPI v3), this issue renders it almost unusable in a production setting.
Looking forward to any suggestion.
Thank you.

Since this bug was filed the internal receive buffer mechanism was updated.
Have you ran a benchmark?  Suggestion: Create a minimal pistcahe server that allocates a 20M receive buffer, handles "POST" to "/" and then does no processing.  Then test it using a client (wget, curl, python w/ requests, etc...)
Are your results repeatable?
What are your system specs?
Can you publish your benchmarking tools for peer-review?


Allow CORS

@dristysrivastava Can you fix the lint issue?

@dristysrivastava Can you fix the lint issue?

Lint issue is fixed


Destroying an entity

By updating the 'show' property to True or False, you can show/turn off the entity in your Viewer.
However, if you want to destroy it completely, I have seen examples in SandCastle in which you can add and remove entities:
viewer.entities.add
viewer.entities.remove
So, if you create an entity in Resium, like this:
createPoint(worldPosition){ 		return ( 			<Entity name="test-point" description="My point!" position={worldPosition}> 				<PointGraphics 					color={Color.WHITE} 					pixelSize={5} 					heightReference={HeightReference.CLAMP_TO_GROUND} 				/> 			</Entity> 		) 	};
How would you destroy it?

if you want to remove component completely, return null in render time. It is common in React.
cosnt Component = ({ show }) => {
  return show ? <Entity>{/* ... */}</Entity> : null;
};

Thanks,

import { Entity, Viewer } from 'resium';
import './App.css';
import { useState } from 'react';
import { Cartesian3 } from 'cesium';
function App() {
const airportLocations = [
{ id: 1, longitude: -74.0707383, latitude: 40.7117244, altitude: 100 },
{ id: 2, longitude: -122.3748889, latitude: 37.6189722, altitude: 200 },
{ id: 3, longitude: -87.9073244, latitude: 41.9786111, altitude: 300 },
// Add more airport locations as needed
];
const [showEntity, setShowEntity] = useState(false);
function handleToggle() {
setShowEntity(!showEntity);
}
return (

Toggle Entity

<Viewer style={{ flexGrow: 1 }}>
{showEntity ?
airportLocations.map((airport) => (
<Entity
key={airport.id}
position={Cartesian3.fromDegrees(airport.longitude, airport.latitude, airport.altitude)}
point={{ pixelSize: 20 }}
/>
)) : null}

);
}
export default App;
I have this code and the entities are not being removed from the viewer once being added. I can see in they are being removed from the react component tree, but I can still see and interact with the entitys in the cesium viewer.


Fixing randomly failing test

Pull Request check-list
Please make sure to review and check all of these items:

[ ] Do tests and lints pass with this change?
[ ] Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
[ ] Is the new or changed code fully tested?
[ ] Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
[ ] Is there an example added to the examples folder (if applicable)?
[ ] Was the change added to CHANGES file?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
Please provide a description of the change here.

Merged upstream


could not open file '/data/bfd/...sorted_opt_cs219.ffdata'

I compiled alphafold using a docker image and was able to run alphafold up to a point. It seems to be asking for a file:
- 21:02:35.351 ERROR: 	could not open file '/data/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt_cs219.ffdata'

but in the bdf folder, I only find these (I retained the original tar.gz file):
-rw------- 1 pgarias pgarias 1.5T Mar  3  2019 bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt_a3m.ffdata
-rw-r--r-- 1 pgarias pgarias 272G Jul 28 13:58 bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt.tar.gz
-rw------- 1 pgarias pgarias 9.6M Jul 29 13:28 bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt_a3m.ffindex

The full Dockerfile is from here:
https://github.com/uvarc/rivanna-docker/tree/master/alphafold/2.0.0
The command I used to run was this (a singularity image pull from the built docker):
singularity run -B $ALPHAFOLD_DATA_PATH:/data -B .:/etc --pwd /app/alphafold --nv $CONTAINERDIR/alphafoldnew_latest.sif \
    --fasta_paths=/scratch/pgarias/fastafiles/sarscovid2.fasta \
    --output_dir=/scratch/pgarias/outputdir \
    --model_names=model_1,model_2,model_3,model_4,model_5 \
    --preset=full_dbs \
    --max_template_date=2020-05-14 \
    --data_dir=/data \
    --uniref90_database_path=/data/uniref90/uniref90.fasta \
    --uniclust30_database_path=/data/uniclust30/uniclust30_2018_08/uniclust30_2018_08 \
    --mgnify_database_path=/data/mgnify/mgy_clusters_2018_12.fa \
    --bfd_database_path=/data/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt  \
    --pdb70_database_path=/data/pdb70/pdb70 \
    --template_mmcif_dir=/data/pdb_mmcif/mmcif_files/ \
    --obsolete_pdbs_path=/data/pdb_mmcif/obsolete.dat

The ALPHAFOLD_DATA_PATH and CONTAINERDIR were defined correctly.
Was there some step in the download process that was not completed? Is there something else that I should look for?
Thank you for your time on this issue!

I reviewed the bfd documenation and found that my uncompression was incomplete.

I reviewed the bfd documenation and found that my uncompression was incomplete.

Hi, what do you mean by "bfd documentation"? I find no such thing.
The tar.gz seems to consist only of the *a3m.ffdata file when I use tar -xvzf.


ngrok 2.x is not open source

ngrok has a free service tier/download, but is no longer open source
See https://github.com/inconshreveable/ngrok/issues/255 and the README at https://github.com/inconshreveable/ngrok/#ngrok-2x

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

ID: a6bb013c-83b0-84fd-f4eb-364db7b3c507
Version Independent ID: 6a2a7e4a-769f-034a-c9a2-c3decc6b20b0
Content: Event Grid trigger for Azure Functions
Content Source: articles/azure-functions/functions-bindings-event-grid.md
Service: azure-functions
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

Hi @phekmat Thank you for your feedback! We will review and update as appropriate.

@phekmat Thanks for catching that! We will update the doc accordingly.
If you are looking for a self-hosted version, SSH Remote Port Forward is something that you could consider I believe.

@phekmat We've raised a PR to update the doc accordingly.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Problem in Google Function

Hello. Congratulations on your work.
I'm trying to install your extension as self-hosted and stopped when creating the google function.
Which requirements.txt (main.py refer) did you use?
I had an error regarding the JSON parser:

textPayload: "Traceback (most recent call last):
File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 346, in run_http_function
result = _function_handler.invoke_user_function (flask.request)
File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 217, in invoke_user_function
return call_user_function (request_or_event)
File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 210, in call_user_function
return self.user_function (request_or_event)
File "/user_code/main.py", line 10, in read_article
filedata = json.dumps (file_json)
File "/opt/python3.7/lib/python3.7/json/init.py", line 231, in dumps
return default_encoder.encode (obj)
File "/opt/python3.7/lib/python3.7/json/encoder.py", line 199, in encode
chunks = self.iterencode (o, one_shot = True)
File "/opt/python3.7/lib/python3.7/json/encoder.py", line 257, in iterencode
return iterencode (o, 0)
File "/opt/python3.7/lib/python3.7/json/encoder.py", line 179, in default
raise TypeError (f'Object of type {o . class . name} '
TypeError: Object of type LocalProxy is not JSON serializable

So I researched and saw that I could solve it by changing to jsonify (https://github.com/Miserlou/Zappa/issues/937#issuecomment-309931362).
So I changed main.py with this:
from flask import jsonify, escape
...
return jsonify(summary_list)

So it works on some sites but on others it gives this error:

textPayload: "Traceback (most recent call last):
File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 346, in run_http_function
result = _function_handler.invoke_user_function (flask.request)
File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 217, in invoke_user_function
return call_user_function (request_or_event)
File "/env/local/lib/python3.7/site-packages/google/cloud/functions/worker.py", line 210, in call_user_function
return self._user_function (request_or_event)
File "/user_code/main.py", line 24, in generate_summary
summary_list.remove ('.')
ValueError: list.remove (x): x not in list

What could be happening?
Big hug and thanks again for sharing your code.

Not sure what your output is. Try debugging it by printing out the input and outputs in the generate_summary function. That error is caused on this line: https://github.com/btahir/summarlight/blob/master/main.py#L24
So you can try removing it to see what it gives you.

I left it as it was and apparently it has worked well. In some sites it does not have an expected behavior, generally in very long texts.
Many thanks for the reply.


Permission Denied - NotDetermined

Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)

[V] iOS
[] Android
[] tvOS
[] macOS
[] .NET Standard
UWP IS NOT SUPPORTED DURING THE BETA PERIOD - ONLY PRs ARE WELCOME FOR NOW

Version of OS(s) listed above with issue
iOS 11
Version of Library
5.3.2
Expected Behaviour
Gatt server should start
Actual Behavior
If applicable, please include entire exception - type, message, stacktrace
After attempting to start a GATT server (just the example provided) the app crashes with message
System.ArgumentException: Permission Denied - NotDetermined
No stack trace or otherwise useful information I'm afraid
I have added the NSBluetoothPeripheralUsageDescription to no avail
It also doesn't happen right away when Start is called, but some time after. Commenting out Start makes it go away so I know that it is the culprit but beyond that I'm not sure
Code of Conduct

No Library Update Requests
No Timeline Requests
Please read through the documentation and FAQs
Please be respectful of my time. I put a lot of effort into my libraries.  I try to support the issue requests within a day.  I'm not psychic, so please take the time to fill out the above form as complete as possible

Super of #97


Code tidy - reflow comments and strings

if you do something in an automated way, can you include what you did in the commit comment?

I do. I am afraid  this is tedious manual reformatting. The only way I can get it to work is joining two or more comment lines until they are > 100 cols and running clang-format.

Something that might be helpful to have would be a list of commits that are mainly formatting so we can populate that git file that ignores for blame/annotate.

I remember. I'll set up a file.


Add the option allow-empty-functions in no-empty

PR checklist

[x] Addresses an existing issue: #2107
[x] New feature, bugfix, or enhancement

[x] Includes tests

[x] Documentation update

Overview of change:
Introduces option to allow function declarations to be empty while using no-empty.
Is there anything you'd like reviewers to focus on?
This is my first PR to tslint, so any feedback is welcome.
I was a bit unsure if I did the correct setup for the options property (an array with an anyOf of the two strings).
CHANGELOG.md entry:
[enhancement] Introduces option to allow function declarations to be empty while using no-empty.

Any updates?

Hello everyone- tslint has recently gotten some new maintainers - myself as one of them. Unfortunately it’s taking us a while to ramp up on everything and get through all the issues, but we’re starting to merge things in and try to bring tslint back to a stable state. Hold tight, we’ll get to this PR as soon as we can.

Hey @johnwiseheart, great news!


artifacthub vsecm package is not signed. figure out what to do to make it signed

Closing this as “wontfix” for now.
My reasoning:

We sign the code already
The charts come from a verified publisher.
We sign every commit.
our docker images signed and use docker content trust.

That, to me, gives enough confidence.
When we push everything to a pipeline, we can add the signing step into the pipeline too once and for all.
Right now it’s not that much necessary.


add complex-type support to avro-to-pinot schema inference

Description
Part of https://github.com/apache/incubator-pinot/issues/6904
Add complex-type support to avro-to-pinot schema inference. Now users can use the command like the following to infer Pinot schema from Avro schema with complex-structure
AvroSchemaToPinotSchema -timeColumnName fields.hoursSinceEpoch -avroSchemaFile  pinot-plugins/pinot-input-format/pinot-avro-base/src/test/resources/fake_avro_nested_schema.avsc -pinotSchemaName schema -outputDir /tmp/test -unnestFields=entries

Codecov Report

Merging #6928 (4a5edc0) into master (e1d6ca4) will decrease coverage by 7.94%.
The diff coverage is 85.93%.

@@             Coverage Diff              @@
##             master    #6928      +/-   ##
============================================
- Coverage     73.39%   65.44%   -7.95%
  Complexity       12       12
============================================
  Files          1432     1432
  Lines         70592    70645      +53
  Branches      10205    10218      +13
============================================
- Hits          51808    46233    -5575
- Misses        15348    21108    +5760
+ Partials       3436     3304     -132

Flag
Coverage Δ
Complexity Δ

integration
?
?

unittests
65.44% <85.93%> (-0.01%)
12.00 <0.00> (ø)

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

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

The integration test failure not related to this PR.


Date ISO 8601 wrong week numbers

In ISO 8601 the first week of the year is the one with the first Thursday in it.
Currently, the date converter gives the week with 1 January in it as the week 1 in the output "ISO8601 Date (Weeks)", so, for years that starts in Friday, Saturday or Sunday, the week numbers of all the days are 1 week ahead and the first 3 days of the year are 1 year ahead.
Examples, the dates:
2016-12-31
2017-01-01
Output:
2016-W53-6T00:00:00Z
2017-W01-7T00:00:00Z
They should be:
2016-W52-6T00:00:00Z
2016-W52-7T00:00:00Z
I guess some lines need to be added in:
src/main/java/com/dencode/web/servlet/pages/DencodeServlet.java
Incorporating the format for week year (YYYY instead of yyyy) in the pattern string and setting the minimal days required in first week to 4 in the Calendar used by the DateFormat object.
Links to the methods in case they are indeed of help:
https://docs.oracle.com/javase/7/docs/api/java/text/DateFormat.html#setCalendar(java.util.Calendar)
https://docs.oracle.com/javase/7/docs/api/java/util/Calendar.html#setMinimalDaysInFirstWeek(int)

Thank you for your detailed information.
I understand the cause of issue.
I'll fix it.


Use Space char as default delimiter

What kind of change does this PR introduce?

Now SingleLineFormatter uses the " " character by default for validation error messages concatenation. I think this behavior is what a new user would expect from the library.
What is the current behavior?

Before, it just concatenated the error message texts. This caused the messages to be glued to each other.

What is the new behavior?

Now the messages are concatenated using the whitespace character. This can be easily overriden by passing a custom SingleLineFormatter to BindValidation, but probably using the whitespace character out-of-box will make the library more developer-friendly.

What might this PR break?
Sometimes when running unit tests locally I get the following exception thrown in random tests:
System.InvalidOperationException : Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at ReactiveUI.POCOObservableForProperty.GetNotificationForProperty(Object sender, Expression expression, String propertyName, Boolean beforeChanged) in D:\a\1\s\src\ReactiveUI\ObservableForProperty\POCOObservableForProperty.cs:line 39
   at ReactiveUI.ReactiveNotifyPropertyChangedMixin.NotifyForProperty(Object sender, Expression expression, Boolean beforeChange) in D:\a\1\s\src\ReactiveUI\Mixins\ReactiveNotifyPropertyChangedMixin.cs:line 206
   at ReactiveUI.ReactiveNotifyPropertyChangedMixin.NestedObservedChanges(Expression expression, IObservedChange`2 sourceChange, Boolean beforeChange) in D:\a\1\s\src\ReactiveUI\Mixins\ReactiveNotifyPropertyChangedMixin.cs:line 190
   at System.Reactive.Linq.ObservableImpl.Select`2.Selector._.OnNext(TSource value) in D:\a\1\s\Rx.NET\Source\src\System.Reactive\Linq\Observable\Select.cs:line 39

Does doing new line as the delimiter work?

Not suggesting changing that as default but I would want that as a option

Yeah, Environment.NewLine worked fine for WPF.

Not sure about other platforms btw.


Implement Sending Files

implements sending files using form multiparts as the discord bot api specifies

Looks good!
Discussion of the request can be found in #general of the Discord++ Discord server on 11/11/2018.


Hidden code blocks create  in docusaurus

```twoslash include main
// some code
```

becomes
<undefined></undefined>

in docusaurus (version 2.0.0-beta.3)

Thanks for the report, a fix is on the way.

I'm still running into this issue, running all of the latest versions. It looks like the fix in https://github.com/shikijs/twoslash/pull/74 would only help when wrapFragments is set to true?


QNN C++ Example not working on Surface Pro 9

I am trying to get this example working on a Surface Pro 9 but am running into issues. I was able to get the code working on the Windows Dev Kit 2023 which is equipped with the Snapdragon® 8cx Gen 3 compute platform. However, on the Surface Pro, which has the Microsoft SQ 3, I am getting the following error:
Error in cpuinfo: Unknown chip model name 'Microsoft SQ3'. Please add new Windows on Arm SoC/chip support to arm/windows/init.c!
Please let me know how to resolve this issue or if the Surface Pro 9 is not supported.
Thanks!

please ignore that error, it doesn't really impact anything.

For some reason, there does not seem to be any performance improvements though. On the Windows Dev Kit, I saw a massive performance boost when using the NPU. But on the Surface Pro, I don't see any. Do you have any thoughts on why this might be?

Also, unrelated but do you know if this example should work with an object detection model such as ssd-mobilenetv1? https://github.com/onnx/models/tree/main/validated/vision/object_detection_segmentation/ssd-mobilenetv1

@hectorSVC Can we really ignore it? :(
[----------] Global test environment set-up.
[----------] 1 test from QnnCPUBackendTests
[ RUN      ] QnnCPUBackendTests.MatMulOp
Error in cpuinfo: Unknown chip model name 'Microsoft SQ3'.
Please add new Windows on Arm SoC/chip support to arm/windows/init.c!
unknown ARM CPU part 0xd4b ignored
unknown ARM CPU part 0xd4b ignored
unknown ARM CPU part 0xd4b ignored
unknown ARM CPU part 0xd4b ignored
unknown ARM CPU part 0xd4c ignored
unknown ARM CPU part 0xd4c ignored
unknown ARM CPU part 0xd4c ignored
unknown ARM CPU part 0xd4c ignored
2024-05-21 15:10:30.1985948 [E:onnxruntime:QNN_EP_TestLogID:QNN_EP_TestLogID, sequential_executor.cc:516 onnxruntime::ExecuteKernel] Non-zero status code returned while running QNN_881822029393888181_1 node. Name:'QNNExecutionProvider_QNN_881822029393888181_1_0' Status Message: QNN graph execute error. Error code: 6000
C:\Dev\Github\onnxruntime\onnxruntime\test\util\test_utils.cc(187): error: Value of: _tmp_status.IsOK()
  Actual: false
Expected: true
[ONNXRuntimeError] : 1 : FAIL : Non-zero status code returned while running QNN_881822029393888181_1 node. Name:'QNNExecutionProvider_QNN_881822029393888181_1_0' Status Message: QNN graph execute error. Error code: 6000
Google Test trace:
C:\Dev\Github\onnxruntime\onnxruntime\test/common/random_generator.h(49): ORT test random seed: 2345
Stack trace:
  00007FF607C58804: (unknown)
  00007FF6084D3958: (unknown)
  00007FF6084D3808: (unknown)
  00007FF6084FD45C: (unknown)
  00007FF6084FD6AC: (unknown)
  00007FF6084FDA88: (unknown)
  00007FF6084FE7D4: (unknown)
... Google Test internal frames ...

[  FAILED  ] QnnCPUBackendTests.MatMulOp (22 ms)
[----------] 1 test from QnnCPUBackendTests (22 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (24 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] QnnCPUBackendTests.MatMulOp


VirusTotal report for Windows executable

Right after downloading the latest release available for Windows I decided to scan the binary shipped and here it is the report:
https://www.virustotal.com/gui/file/6b0f47a6157f5b3028dbde1c8871899a975fb8af34a310a532c187716573e04f
There are 2 engines that report it as a malicious file. I've taken a look at the code and I obviously don't see anything malicious around. I think you should take a look at the report for a convenient clean-up to avoid those detections.

Hi, thanks for the report. But just send a false positve report to MS.
https://learn.microsoft.com/en-us/microsoft-365/security/defender/m365d-autoir-report-false-positives-negatives?view=o365-worldwide
I dont know what i should do now. Its not an virus and its open source...


WIP: check CI on Julia v1.8

CI fails because of https://github.com/JuliaArrays/StructArrays.jl/issues/230

CI fails because of https://github.com/SciML/DiffEqBase.jl/issues/774

CI fails because of https://github.com/SciML/DiffEqBase.jl/issues/776

Thanks for keeping tabs whenever a new version of StructArrays is released!

A number of end lines seems to get reported as uncovered, which is quite weird, I think... But everything else seems to be okay.


Running on Jetson Xavier NX (aarch64)

Hello
Thanks for this library. We have been trying for several days to get DCNv2_TRT running on an Nvidia Jetson Xavier NX, but unfortunately no luck.
We are getting a memory related error, but monitoring with jtop and/or tegra_stats reveals that GPU memory should not be a problem. Running on x86_64, we were able to verify that a maximum of 3.2GB are required and are able to run your code without issues, however on aarch64 we are seeing this issue and are a bit lost as to what to do next. The problem is not caused by inadequate workspace allocation.
Have you been able to convert and run a model using DCNv2 on a Jetson family device and if so would you be able to share your approach?
Thanks a lot for your help!

Have you solved this problem?


Removing educator label feature switch for student voice feed cards

This is fully released now, removes some EducatorLabel feature switching code.

selfie


Create a debug version of Arrival Advisor on Testflight

#636 is a bug that is only reproducible in standalone builds of Arrival Advisor. To make headway on this issue, we need to create a debug version of Arrival Advisor so we can make changes without affecting the stability of staging or production app. This debugging version of app could be used as an internal development build to test potentially breaking changes unsuitable for staging or production
Acceptance Criteria

[x]  Have an new debug version of app running on an iPhone

Steps for QA:

download third app to iphone
move between LTR - RTL locales

No QA required for this story


JavaScript library updates not in nipap stable version

Hi, thank you for fixing the issue I previously reported, https://github.com/SpriteLink/NIPAP/issues/1196.
It seems that it is fixed in the latest version which is 0.29.7. The stable version still has the older vulnerabilities. Could you please include these updates in the stable version too?

Hi,
could someone please react on this issue?
Thansk!

Hi Lukas @garberg!
I am mentioning you here so that you can have a look at this issue.
Thanks in advance!

Hi, latest release pushed to the stable repo.

Thanks a lot!


fix(protocol-engine): Support door open/close during error recovery

Overview
This corrects the behavior when you open the door in the middle of error recovery. Closes EXEC-383.
Test plan

Enter error recovery.
Open the door. The error recovery UI should still be active, but there should be a modal saying to close the door.
Close the door. The error recovery UI should give you some kind of "confirm door closed and continue" button. I'm not sure if we've implemented this on the frontend yet. If we haven't, you can manually issue an HTTP play action instead.
Error recovery should continue as normal after you click the "confirm and continue" button or issue an HTTP play action.

Details
This introduces two new run statuses to accompany the existing awaiting-recovery status:

awaiting-recovery (already existed)
awaiting-recovery-blocked-by-open-door (new)
awaiting-recovery-paused (new)

stateDiagram-v2
    awaiting_recovery: awaiting-recovery
    awaiting_recovery_paused: awaiting-recovery-paused
    awaiting_recovery_blocked_by_open_door: awaiting-recovery-blocked-by-open-door
    stop_requested: stop-requested etc.
    running: running etc.

    [*] --> awaiting_recovery: Command fails recoverably
    awaiting_recovery --> awaiting_recovery: HTTP `play` action
    awaiting_recovery --> awaiting_recovery_blocked_by_open_door: Door opens
    awaiting_recovery --> stop_requested: HTTP `stop` action
    awaiting_recovery_blocked_by_open_door --> awaiting_recovery_paused: Door closes
    awaiting_recovery_blocked_by_open_door --> stop_requested: HTTP `stop` action
    awaiting_recovery_paused --> awaiting_recovery: HTTP `play` action
    awaiting_recovery_paused --> stop_requested: HTTP `stop` action

    awaiting_recovery --> running: HTTP `resume-from-recovery` action
    running --> [*]
    stop_requested --> [*]

Having all 3 is necessary to implement the same behavior that we have for the main protocol part of the run, where after closing the door you need to click a resume button to get the robot moving again.
We can't reuse the existing blocked-by-open-door and paused statuses because various parts of the app look at the status to determine whether to be in recovery mode. We need to maintain an unambiguous awaiting-recovery-* status until error recovery is complete.
Review requests

Is adding these new statuses a good idea, or do we actually want to bite the bullet and split this monolithic field up into multiple smaller ones now?
Do my frontend changes seem correct? Are there any other places that I missed?
Do my docstrings on EngineStatus look correct?
I suspect there's a good opportunity to test this more exhaustively with Hypothesis. Does anyone have specific ideas for what invariants we would use?

Risk assessment
Medium. There are a lot of things on the frontend that look at status, and we have to carefully update them all. Consequences for getting it wrong range from buttons being enabled/disabled at the wrong times, to the screen showing an entirely wrong flow.

Can we add a test that ensures the door's state does not affect stopping?
Especially the state of the E-Stop being pulled.
While the StopAction and HardwareStoppedAction don't have any logic around the door's state I think we should have a sanity check to verify that stopping always works as expected.

Even though it's a bit out of scope for this PR, can we add a test that ensures the door's state does not affect stopping? Especially the state of the E-Stop being pulled. While the StopAction and HardwareStoppedAction don't have any logic around the door's state I think we should have a sanity check to verify that stopping always works as expected.

Added test_final_state_after_error_recovery_stop(), which is not exhaustive. I'm going to see if Hypothesis can pull weight here. Otherwise it's going to get explosive pretty quickly with all the possible interactions between states and actions.


New service

How do I add a service if it only returns a 2 letter country code response via text/html, i.e. KR for Korea? No json.
I am trying to send http://ipservicedemo.com/<IP_ADDRESS>?mysite.com and it would respond KR (where <IP_ADDRESS> is user ip)

The site you have referenced doesn't exist so I assume it's psuedocode. Given the slightly lacking details, I assume the code would need to look something like this
cookieconsent.initialise({
    location: {
        serviceDefinitions: {
            geoip: function() {
                return {
                    url: 'https://ipservicedemo.com/',
                    callback: function(done, response) {
                        return {code: response);
                };
            },
        },
        services: [
            'geoip'
        ]
    }
});


Fix linter errors caused by upstream changes.

Description
Fixes linter errors caused by upstream changes.
dbt/adapters/databricks/connections.py:440: error: Argument "conn_name" to "ConnectionUsed" has incompatible type "Optional[str]"; expected "str"  [arg-type]
dbt/adapters/databricks/connections.py:449: error: Argument "conn_name" to "SQLQuery" has incompatible type "Optional[str]"; expected "str"  [arg-type]
dbt/adapters/databricks/connections.py:491: error: Argument "conn_name" to "ConnectionUsed" has incompatible type "Optional[str]"; expected "str"  [arg-type]
dbt/adapters/databricks/connections.py:496: error: Argument "conn_name" to "SQLQuery" has incompatible type "Optional[str]"; expected "str"  [arg-type]

Let me just merge this to unblock other PRs. Thanks.


Add ClientBuilderExtensions to be used for dependency injection

https://github.com/Azure/azure-sdk-for-net/pull/9842#discussion_r377295254

Closed with https://github.com/Azure/azure-sdk-for-net/pull/11592


Testbed need to have at least two datastores to run unit test for tenancy

In this PR, https://github.com/vmware/docker-volume-vsphere/pull/828,  we introduce the support
for default_datastore.
User can specify "default_dastore" when setting datastore access privileges using
the command like the following
/usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant access add --name=tenant1 --datastore=datastore2 --allow-create --switch-default-datastore --volume-maxsize=500MB --volume-tot
alsize=1GB
tenant access add succeeded
[root@localhost:~] /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant ls
Uuid                                  Name      Description               Default_datastore  VM_list
------------------------------------  --------  ------------------------  -----------------  -------
93377b1e-af74-47ca-888e-75fd0a2a4aba  _DEFAULT  This is a default tenant
948f0edc-3a06-4d95-8b8c-8cf278154fc3  tenant1                             datastore2         photon4

After setting the default_datastore, user can specify the volume without specify the datastore name(i.e., user can only specify vol_name, instead of vol_name@datastore_name)
The unit test for support this feature require at least two datastores to run.

Testbed used in CI test need to make sure to have at least two datastores in order to run this test
CONTRIBUTING.md need to be updated to let user know they need at least two datastores to run this test when they need to run CI test locally

CI currently has 2 datastores (VMFS and VSAN).

Close this issue based on Ritesh's comment above.


Broken Image of Isaac

Contribution from @tech-doctor resulted to a broken image.
The code is
<img src="img/isaac.jpg" alt="isaac" class="w-24 h-24 rounded-full border-4 border-white md:mr-4"> whereas in the image folder, the image is Isaac.jpg.
The image or the code should be fixed @tech-doctor

Different case.
Small letter in the code and the file in 🐫 case

The issue has been resolved
On Thu, Sep 22, 2022 at 12:40 AM Sakshi2929 @.***>
wrote:

Is the issue still open can I work on this?
—
Reply to this email directly, view it on GitHub
https://github.com/DeveloperAspire/developers-fact-card/issues/21#issuecomment-1254118274,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASJOIINVBGO5MIK2WUSKBKLV7NMSZANCNFSM5DZNSV5A
.
You are receiving this because you commented.Message ID:
@.***>

--
Knoldus Inc.
As a certified Great Place to Work, we aim to be very
professional in our quality of work, commitment to results, and proactive
communication. If you feel otherwise please share your feedback
https://forms.gle/Ax1Te1DDpirAQuQ8A and we would improve on it. Promise.
This email message is confidential, may be legally privileged and is
intended for the exclusive use of the addressee. If you received this
message in error or are not the intended recipient, you should destroy the
email message and any attachments or copies, and you are prohibited from
retaining, distributing, disclosing or using any information contained.
Please inform us of the delivery error by return email. Thank you for your
cooperation.
Le présent message électronique est confidentiel et peut
être couvert par le secret professionnel. Il est à l’usage exclusif du
destinataire. Si vous recevez ce message par erreur ou si vous n’en êtes
pas le destinataire prévu, vous devez détruire le message et toute pièce
jointe ou copie et vous êtes tenu de ne pas conserver, distribuer,
divulguer ni utiliser tout renseignement qu’il contient. Veuillez nous
informer de toute erreur d’envoi en répondant à ce message. Merci de votre
collaboration.

@shivanisarthi Hy! How are you doing? Long time! Let me know if you are there!


[nhk] Add support for NHK video programs

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[x] New extractor
[ ] New feature

Description of your pull request and other information
This change adds an extractor for NHK which handles video program pages. This extractor will allow users to download all available episodes of a video program at once instead of having to download each episode one at a time.

that's not what I meant, the request to create a separate extract is specifically for the new functionality(ex: SoundCloudIE for tracks, SoundCloudPlaylistIE for Playlists).

@remitamine in my email, I saw you left another comment:

that's not what I meant, the request to create a separate extract is specifically for the new functionality(ex: SoundCloudIE for tracks, SoundCloudPlaylistIE for Playlists).

But I don't see the comment here. Did you delete it? Just making sure I don't miss anything.

after looking at the code, it appeared to me that you just added a BaseExtractor without adding a new NhkProgramIE extractor, but after checking the code again, I saw the new extractor and removed my comment.

after looking at the code, it appeared to me that you just added a BaseExtractor without adding a new NhkProgramIE extractor, but after checking the code again, I saw the new extractor and removed my comment.

Ah ok, that's what I figured. The diff ended up being a little hard to read so I'm not surprised there was a moment of confusion. 😋

Audio clips are working again.

Thanks for the review (and the patience)! I'll keep an eye out for any reports of issues with nhk in case this change causes any unforeseen problems.


Make factory not inherit from container

Standalone factory can use composition to work with container i.e. require container instance in its constructor and then use PSR interface get() to obtain dependencies.
Factory could be then extracted into yiisoft/factory. Then container would be truly interchangeable.

See #59 for additional points.

Factory is to be moved to https://github.com/yiisoft/factory


Run linting & CI for py311

Per https://github.com/hakancelikdev/unimport/issues/297#issuecomment-1786896819

Can you check the libcst and other libraries within the scope of this issue? If they have not yet released support for Python 3.11, we cannot do it either.

If the PRs you opened for 3.11 and 3.12 are not merged, will it prevent you from working?
I plan to open PR for these versions after extensive work.

I am happy to wait. Thanks.
Note that this PR exercises CI for unimport under py3.11 (formalizes "runs under" guarantees) and doesn't exercise "language version" functionality new to py3.11

Here is the new PR for that -> https://github.com/hakancelikdev/unimport/pull/304


auto format stops working when using the following sintax

Using typed functions where I want a fallback return or the params will have more than one type it does not work.
Example:
protected function allData(object|null $proposal): object|null
{
    return $proposal;
}

Basically it says that I have a syntax error and it does not run the auto format in this file.
My current local PHP version being used by FMT is the following:
php -v
PHP 8.2.2 (cli) (built: Feb  1 2023 08:33:04) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.2, Copyright (c) Zend Technologies

Hi. I can't reproduce the issue. The message you're obtaining seems to comes from another plugin or place, if phpfmt hasn't changed your code (I've tried your sample with php 8.2 and it doesn't).
I cannot find the option "check php file on save" in phpfmt. I've it activated too somewhere in my own SublimeText...

Please be aware that the phpbin option at the phpfmt config should be 8.2 in this case

Yeah, let's close this one. I still had my config pointing to the php 7 that was used by the old plugin.


Resizing column on nested table

When inserting a second table inside another one, column resizing on the parent table is acting real weird - I think the child table is pushing for 100% width or something. Also sometimes a new column will be inserted at the end of the parent table. Usually the resize handle gets stuck at that point, breaking the editor for any further adjustments.

So this is fixed now?

@LionsAd : yes. It's fixed now.


[Feat]: implement Test set drawer UI

Description
This PR aims to add a feature to save observability traces as testset.
Related Issue
Closes AGE-1337
QA

Verify Traces: Ensure traces are visible in the Observability section.

Select Traces and Open Test Set Drawer: Select multiple traces using checkboxes and click 'Add Test Set' to open the drawer.

Choose or Create Test Set:

Select an existing Test Set or create a new one.
Use the Data Preview dropdown to view your selected traces and confirm trace keys are automatically mapped in the Mapping section.

Manage Columns:

For existing Test Sets, select columns; for new Test Sets, add column names.
Ensure a warning appears if duplicate columns are selected.

Preview Data: Confirm data is visible immediately after column selection and verify preview options work for both all data and specific subsets.

Save Test Set: Ensure the Test Set saves successfully without errors.

Thanks, @ashrafchowdury—it looks great.
However, there’s a feature that’s not implemented (maybe it wasn’t clearly communicated in the Figma notes).
We want to make it quick for the user to add new data points to a test set by:
1.	Reusing the previous configuration.
2.	Offering sensible defaults.
For point 1:
•	When a user adds a data point to a test set with a certain mapping, the next time they click “Add to Test Set,” we should reuse the same mapping as much as possible. This means:
1.	The same test set will be selected by default.
2.	We will display the same mapping, as long as both the source and sink of all the mappings exist. If not, we will show the default mapping.
For point 2:
We will show a default mapping. Right now, you only provide defaults for the mapping sources. We would also like to provide defaults for the mapping sinks. Here’s the simple algorithm we would use:
•	If the user is creating a new test set, we will name all the columns by default using the last element of the address. For example, for data.input.input.country, the default name for the column will be country.
•	If the user is selecting a pre-existing test set, we will use the column with the name of the last element of the address if it exists. For example, for data.input.input.country, if country exists as a column in the test set, we will select country by default. If it does not exist, we will keep the current behavior.

A minor issue. When all columns from the test set are used and the only option is to create a new column, the multi-select is a bit buggy (we show the divider nevertheless). The right behavior is not to show the divider if there is only a Create new option

https://github.com/user-attachments/assets/e2044cf5-66b7-4969-884a-d2877d84e3e4
Non-parent spans can be selected in the parent view but not added to the test set. I don't see a reason why you could not add them

Thanks, @ashrafchowdury—it looks great.
However, there’s a feature that’s not implemented (maybe it wasn’t clearly communicated in the Figma notes).
We want to make it quick for the user to add new data points to a test set by: 1. Reusing the previous configuration. 2. Offering sensible defaults.
For point 1: When a user adds a data point to a test set with a certain mapping, the next time they click “Add to Test Set,” we should reuse the same mapping as much as possible. This means: 1. The same test set will be selected by default. 2. We will display the same mapping, as long as both the source and sink of all the mappings exist. If not, we will show the default mapping.
For point 2:
We will show a default mapping. Right now, you only provide defaults for the mapping sources. We would also like to provide defaults for the mapping sinks. Here’s the simple algorithm we would use:

If the user is creating a new test set, we will name all the columns by default using the last element of the address. For example, for data.input.input.country, the default name for the column will be country.
If the user is selecting a pre-existing test set, we will use the column with the name of the last element of the address if it exists. For example, for data.input.input.country, if country exists as a column in the test set, we will select country by default. If it does not exist, we will keep the current behavior.

All features that are related to intelligence are for checkpoint-2, for checkpoint-1 everything will be manual, with no intelligence.
cc: @jp-agenta

@mmabrouk Both Divider UI and child node selection issue has been fixed ✅


How can i disable Virtualization

Just for sure, you have created a lot of hexeditor in. A stack panel and when you move it the data is not refresh ?

Just for sure, you have created a lot of hexeditor in. A stack panel and when you move it the data is not refresh ?

i create in the GridControl(Devxpress) , in DataGrid and listView there are memory leaks

Can you put a sample of your code? It will be help me to understand what going wrong

    <ListView ItemsSource="{Binding TestDataList}" VirtualizingPanel.IsVirtualizing="False">
        <ListView.ItemTemplate>
            <DataTemplate>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="20"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="{Binding Index}"/>
                    <control:HexEditor Grid.Column="1" Stream="{Binding ByteStream}"/>
                </Grid>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>

Unfortunly, I think the hexeditor is not adapted to be used like this.
Find another wait for dont load an hexeditor for all your ByteStream.
Check CurrentState property in the C# sampling on github

Unfortunly, I think the hexeditor is not adapted to be used like this.
Find another way for not loading an hexeditor for all your ByteStream.
Check CurrentState property in the C# sampling on github.
//Current state sample using with Tabcontrol...
//you can use with another stream than file. This sample code use only one hexeditor but can be used with 100 files if you want.
    private void FileTab_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        if (!(sender is TabControl tc)) return;
        if (!(tc.SelectedValue is TabItem ti)) return;

        //Set the tag of last selected ta to currentstate
        if (e.RemovedItems.Count > 0 && e.RemovedItems[0] is TabItem lastSelectedTabItem)
            lastSelectedTabItem.Tag = HexEdit.CurrentState;

        //Change loaded file and update the current state
        var filename = ti.ToolTip.ToString();
        if (!File.Exists(filename)) return;

        HexEdit.FileName = filename;

        //Setstate
        if (ti.Tag is XDocument doc)
            HexEdit.CurrentState = doc;
    }

Okay, but it's not for me. thanks anyway.


Added a pub script

The 1.2.2 release was published without build. I hope adding this will help avoid such a mistake

Fixed #10


Btc master 15/03/2023

Fixed conflicts and ran local builds on x86_64 Ubuntu 20.04.
Waiting on CI builds to finish to see if we have any issues on that side.


Instructions?

Hi there,
Are there any instructions for the usage of this software?
best wishes,
Peter Jansen

OK! So sorry everyone for letting this ball drop, I have been busy with a bunch of other projects.
Re: Instruction: COMING SOON!!! as well as some demo data 🙌
HINT: just in time for election season zomg semantic networking!


RustConnection: Support LAUNCHD mode

https://gitlab.freedesktop.org/xorg/lib/libxcb/-/merge_requests/10
(Not much time right now, but seems important in general)

This fixes a security vulnerability (local privilege escalation) when used properly.

@DemiMarie What is the relation to the above-mentioned https://gitlab.freedesktop.org/xorg/lib/libxcb/-/merge_requests/10 and your https://gitlab.freedesktop.org/xorg/lib/libxcb/-/merge_requests/30 ? From a quick look, I would say that your the latter is a superset of the earlier one. Both allow specifying an absolute path in $DISPLAY, but yours also touches the parsing code a bit to make things better than "just enable what was available on macOS".
If I got this right, then I guess the issue is now rather about the latter MR (since that one was just merged (by me)).

@DemiMarie What is the relation to the above-mentioned https://gitlab.freedesktop.org/xorg/lib/libxcb/-/merge_requests/10 and your https://gitlab.freedesktop.org/xorg/lib/libxcb/-/merge_requests/30 ? From a quick look, I would say that your the latter is a superset of the earlier one. Both allow specifying an absolute path in $DISPLAY, but yours also touches the parsing code a bit to make things better than "just enable what was available on macOS".
If I got this right, then I guess the issue is now rather about the latter MR (since that one was just merged (by me)).

correct!


Error for ResponsiveComponent in iOS and Android

Hi,
I am using following method to use this module.
import { ResponsiveComponent, ResponsiveStyleSheet } from "react-native-responsive-ui";

class MyComponent extends ResponsiveComponent {
render(){
    return (
        <View>
          ...
        </View>
     )
    }
get respStyles() {
    return ResponsiveStyleSheet.select([
      {
        query: { orientation: "portrait" },
        style: {
          container: {
            flex: 1,
            flexDirection: "column"
          }
        }
      },
      {
        query: { orientation: "landscape" },
        style: {
          container: {
            flex: 1,
            flexDirection: "row"
          }
        }
      }
    ]);
  }
}

export default MyComponent;

I have updated all modules to latest including React-Native 0.59.9
and i started facing weird runtime error as
Super expression must either be null or a function
and this for all component which are using ResponsiveComponent.
You help is highly appreciable.

Hello @cjadhav,
Unfortunately, ResponsiveComponent has been deprecated. Could you update to the latest API? Sorry for the trouble.

Thanks @wcandillon for quick reply.
I'll update the source with latest methods.
You can close the issue as per your connivence.

Hi @wcandillon,
I am facing new error. I have done the change for latest update.
using the useStylesheet now my look like this,
import { useStylesheet } from "react-native-responsive-ui";

class MyComponent extends Component {
render(){
    const respStyles = useStylesheet(staticStyle);
    return (
        <View style={respStyles.container}>
          ...
        </View>
     )
    }
}

const staticStyle = [
  {
    query: { orientation: "portrait" },
    style: {
      container: {
        flex: 1,
        flexDirection: "column"
      }
    }
  },
  {
    query: { orientation: "landscape" },
    style: {
      container: {
        flex: 1,
        flexDirection: "row"
      }
    }
  }
];

export default MyComponent;

Whenever this component is called to render app crashes with following error,
Invariant Violation: Invariant Violation: Invariant Violation: Invariant Violation: Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)
Can you help to solve this ?
Thanks

Sorry about that! Yes let me provide an update that is friendly for class components 😅

Hi @wcandillon,
Thanks for the fix but it's still broken for me.
Giving same error for v.2.1.0 also.

Tested on iPhone XR (iOS 12.2)
Please help me.

Sorry I should have been clearer. You can use ResponsiveComponent again. Please refer to the documentation athttps://github.com/wcandillon/react-native-responsive-ui/blob/master/README.md

Thanks @wcandillon.
Using ResponsiveComponent to create class. But not sure how should I call getStyleSheet to receive orientation based styles.
import { ResponsiveComponent, getStyleSheet } from "react-native-responsive-ui";

class MyComponent extends ResponsiveComponent {
render(){
    const respStyles = getStyleSheet(staticStyle);
    return (
        <View style={respStyles.container}>
          ...
        </View>
     )
    }
}

const staticStyle = [
  {
    query: { orientation: "portrait" },
    style: {
      container: {
        flex: 1,
        flexDirection: "column"
      }
    }
  },
  {
    query: { orientation: "landscape" },
    style: {
      container: {
        flex: 1,
        flexDirection: "row"
      }
    }
  }
];

export default MyComponent;

I am facing errors in this.
and not getting how to use query based stylesheet.

@wcandillon, I have tried useStylesheet as per documentation but gives hook error.
tried getStyleSheet  but bot getting how to pass static styles to that function.
Your help is highly appreciable.

@cjadhav can you try with getStyleSheet as
    const {width, height} = this.state;
    const respStyles = getStyleSheet({width, height}, staticStyle);

@wcandillon, sorry but above solution also failed.
It's giving me TypeError.
TypeError: (0 , _reactNativeResponsiveUi.getStyleSheet) is not a function

@cjadhav could it be an issue with the cache of your package bundle?

@wcandillon Tried with all cache clear/reset.
No luck. Giving same error.

Taking the height and width from Dimensions.get("window")

Same error with V.2.1.1 from your latest module.

sorry to hear that, can you send me the exact code snippet?

@wcandillon, Sure.
This is code just removed the other business login.
import React, { Component } from "react";
import { StyleSheet, Text, View, Image, Platform, Animated, TextInput, ScrollView } from "react-native";
import { Dimensions, ImageBackground, TouchableOpacity, TouchableHighlight } from "react-native";
import { ResponsiveComponent, getStyleSheet } from "react-native-responsive-ui";

class Schedules extends ResponsiveComponent {
  constructor(props) {
    super(props);
    this.state = {
      height: Dimensions.get("window").height,
      width: Dimensions.get("window").width
    };
  }

  render() {
    // const { respStyles } = this;
    const { width, height } = this.state;
    const respStyles = getStyleSheet({ width, height }, staticStyle);

    return (
      <View
        style={styles.viewContainer}
        onLayout={e => this.setState({ width: e.nativeEvent.layout.width, height: e.nativeEvent.layout.height })}
      >
        <View style={respStyles.viewHolder} />
      </View>
    );
  }
}

const staticStyle = [
  {
    query: { orientation: "portrait" },
    style: {
      viewHolder: {
        flex: 1,
        flexDirection: "column"
      }
    }
  },
  {
    query: { orientation: "landscape" },
    style: {
      viewHolder: {
        flex: 1,
        flexDirection: "row"
      }
    }
  }
];

const styles = StyleSheet.create({
  viewContainer: {
    flex: 1,
    flexDirection: "column",
    backgroundColor: "#F0F0F0"
  }
});

export default Schedules;

haha thks and sorry ;-) It's getStylesheet not getStyleSheet 🙈

@wcandillon, It worked.
Thank you so much for the help.


Downloading file from azure data lake is not working using DataLakeFileClient

I am trying to download file which is of 4 to 5 KB max from azure data lake zen2 account. Below is my code :
import com.azure.storage.common.StorageSharedKeyCredential;
import com.azure.storage.file.datalake.*;
import java.io.ByteArrayOutputStream;
public class DataLakeClient {
public static void main(String[] args) {

    final StorageSharedKeyCredential sKeyCredential = new StorageSharedKeyCredential("devlake",
            "c8WrzvPxry87zdrR7BZ########################################RJN+yIaHg==");
    final DataLakeServiceClientBuilder builder = new DataLakeServiceClientBuilder();
    builder.credential(sKeyCredential);
    builder.endpoint("https://devlake.dfs.core.windows.net");

    DataLakeServiceClient dataLakeServiceClient = builder.buildClient();
    DataLakeFileSystemClient fileSystemClient = dataLakeServiceClient.getFileSystemClient("landingzone");
    DataLakeDirectoryClient directoryClient = fileSystemClient.getDirectoryClient("1hzhD7aqUJ6oYGLEwoQpHP70T2u/20201021/DB37iu0F2rCfJQ0vhGyVEoqPrzU");
    DataLakeFileClient fileClient = directoryClient.getFileClient("GSM_2_165_CH-EU-RU-UK-US_INSTR_DELTA_20201006_150829.csv");
    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    fileClient.read(byteArrayOutputStream);
    System.out.println(byteArrayOutputStream.toByteArray());

}

}
Above code gets stuck at fileClient.read(byteArrayOutputStream); call infinitely and finally client timeout exception comes. I am trying to run this from intellij on my local system. Using same DataLakeFileClient class I am able to create files on same directory location. but after creation and I am not able to read same file due to that stuck issue. I am not getting why I am not able to read file but able to write file using same class.
I am using  below dependency

com.azure
azure-storage-file-datalake
12.3.0-beta.1

Any quick help is really appreciated.

Hi, @maheshpg. Thank you for posting this question. Are you using any other dependencies in your project? And are able to see an outgoing download request on the network?

Hi, @maheshpg. Thank you for posting this question. Are you using any other dependencies in your project? And are able to see an outgoing download request on the network?

Actually I found that on azure private link was enabled for DFS but not for BLOB. And for downloading file DataLakeFileClient was using blob service endpoint internally which was unknown to me. After enabling private endpoint for blob it is working.
Thanks for your quick response. But now this isssue can be closed.


Code Cleanup - termDispatch.hpp & adaptDispatch.hpp overrides

Minor code cleanup
The ITermDispatch overridden methods in terminal/src/terminal/adapter/termDispatch.hpp & terminal/src/terminal/adapter/adaptDispatch.hpp do not follow
C.128: Virtual functions should specify exactly one of virtual, override, or final guideline.

I just noticed that InteractDispatch.hpp has the same issue. (in this case, it is the IInterractDispatch overrides).   I can modify this issue or create a new issue.  Let me know what you think is best.
Side note - I noticed these when doing a code review.   I am assuming the Core guideline analyzer isn't being run as part of the CI process.   Is the plan to do this?

You're right, they probably shouldn't be virtual.
I believe we never turned the analyzer on because so much of the code was written before we started conforming to that standard, that we'd have spent entire releases just cleaning it up. @adiviness can comment more.

Currently we don't have a static analyzer looking at the cpp core check stuff. In /src there is a ruleset file that I think is empty and it was only set up on the /buffer/out directory when the AuditCode configuration was specified.

This was fixed in #1004.


Cassette Animation[GSSOC'23]

Describe the project you want to add with tech stack

Cassette Animation
Expected behavior

Hello Sir,
I want to add my new CSS animation project on Cassette Animation where we can see a cassette is rolling or taping a tape. I have made it using HTML & CSS.
Screenshots (optional)

Additional context (optional )

Please assign me this issue under GSSOC'23.

@MohitGupta121 @pranjay-poddar @TusharKesarwani please assign me this issue under GSSOC'23.

@MohitGupta121 @pranjay-poddar @TusharKesarwani please assign me this issue under GSSOC'23.


Unneccessary margin for images?

Issue Type

[x] question / bug

Description
I want to ask if this margin is neccessary. When using the zoom component with an image this adds (in this case) unneccessary margin.
In the example I just have some images aligned with flexbox (column).

If there's an issue that you can provide steps to help me reproduce, then I can be of more help!

 They contain errors related to my project, not to the image zoom. There could be also any other image. The real "problem" here is the left margin.  You can see the difference in the screenshots. In the second screenshot there is the left margin disabled. The margin comes from some of your css classes.

@Dyvd4 Honestly, I'm having a hard time understanding. Let's back up:

What version of react-medium-image-zoom are you using?
2 out of the 3 screenshots (the error ones) above are illegible, and if they aren't related to this project, could you help me understand why they're here?
The other image doesn't appear to have any CSS selectors that react-medium-image-zoom uses. Is it possible your other tools are doing this? I've never used margin-inline-end nor margin-inline-start on any project in my life, so those aren't coming from this tool.

Feel free to reply, but as this doesn't seem to be an issue with this project, I'm going to close the issue.

@rpearce As I said before. These images are dummy images. Coincidentally they are errors. But these errors aren't related to this issue, so you don't have to care about what they say.
Furthermore I am using version 5.0.2.
And last but not least I just wanted to ask if the margin comes from your library. In my project I am using ckakra ui with tailwindcss as ui libraries. I have a list of image attachments which I render (what you can see in the screenshots). When I wrapped them in the Zoom component, this left margin I showed in the second screenshot was added so I thought it comes from your library because if I remove the Zoom component, the margin is gone.
To sum it up - if you say you don't use this margin in your library then it is okay, that's all I wanted to know. That's also because my issue type is question / bug because I wasn't sure. Maybe chakra ui does apply some styles on it (idk why it should because it doesn't come with any preflight).
Anyways, thanks for the replies, your library is great (no toxic irony)!

@Dyvd4 Thank you for clarifying! I don't believe it is coming from here, and thanks for the kind words.


/packit propose-update

/packit propose-update

It looks like this does not work.

/packit propose-update

Probably some misconfiguration
[DEBUG/ForkPoolWorker-1] cmd = 'kinit<EMAIL_ADDRESS>-k -t /secrets/fedora.keytab'
[INFO/MainProcess] Received task: task.steve_jobs.process_message[c34ee686-2048-48ce-919b-a7a87005f627]
[DEBUG/ForkPoolWorker-1] cmd = 'fedpkg --user packit -q clone packit /tmp/packit-dist-giti83id9pp'
[INFO/ForkPoolWorker-1] STDERR: Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.
Failed to set locale, defaulting to C.UTF-8
Could not execute clone: Failed to execute command.
[ERROR/ForkPoolWorker-1] Command ['fedpkg', '--user', 'packit', '-q', 'clone', 'packit', '/tmp/packit-dist-giti83id9pp'] failed
[ERROR/ForkPoolWorker-1] Command ['fedpkg', '--user', 'packit', '-q', 'clone', 'packit', '/tmp/packit-dist-giti83id9pp'] failed.
[ERROR/ForkPoolWorker-1] error while running a build: Command ['fedpkg', '--user', 'packit', '-q', 'clone', 'packit', '/tmp/packit-dist-giti83id9pp'] failed: Command ['fedpkg', '--user', 'packit', '-q', 'clone', 'packit', '/tmp/packit-dist-giti83id9pp'] failed.


Verifying Current EnableMIPLabels Setting

In regards to setting "EnableMIPLabels: True", can a section be added to confirm current settings, rather than the settings based on the template? I have noticed confusion when trying to verify if this has had a chance to propagate, without using the second set of cmdlets below:
Example:

The following will ONLY show you the values that are provided via the Template. Not if you have already set up EnableMIPLabels
$grpUnifiedSetting = (Get-AzureADDirectorySetting | where -Property DisplayName -Value "Group.Unified" -EQ)
$template = Get-AzureADDirectorySettingTemplate -Id 62375ab9-6b52-47ed-826b-58e47e0e304b
$setting = $template.CreateDirectorySetting()
$setting.Values
The following would allow you to verify the current settings as well:
$currentSettings = Get-AzureADDirectorySetting
$currentSettings.Values

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

ID: ef84a3e0-879e-4312-a89d-7a3bb0cd9a51
Version Independent ID: 43851f8a-b71f-0a0a-8b1f-629e3528972f
Content: Assign sensitivity labels to groups - Azure AD
Content Source: articles/active-directory/enterprise-users/groups-assign-sensitivity-labels.md
Service: active-directory
Sub-service: enterprise-users
GitHub Login: @curtand
Microsoft Alias: curtand

@SeanTGeoghegan
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

#reassign:@barclayn

@SeanTGeoghegan thank you for your feedback. I am adding it to the work item I am using for tracking feedback on this article. #please-close


Sikuli visual automation not working on Windows

raising on a user's email query

Had a user which Sikuli visual automation is not working, elements can't be found on screen even though you can see the image matching.
Turns out it is because the Windows display resolution setting is set to 150% magnification. By setting back to 100% magnification the visual automation works.
The significant magnification makes the image on the screen differs too much from the image captured through snipping tool, thus the error.

I am facing the same problem. How to resolve this type of issue  ?

Hi @naufil09 for visual automation on Windows, try setting your display resolution to 100% or the recommend zoom %.


[Question] Possiblity to edit content when clicking on admonition (instead of edit icon)

Hi, I love this plugin, thanks a lot for creating it! 😍
I would have one question, though: When I want to edit an admonition then I have to click on the small edit icon (upper right corner). This is a bit cumbersome. A leaner process could be to just click on the main content (similar to the code blocks).
Can I achieve this behaviour somehow?
Current behaviour:

Requested behaviour:

---vvv---

Similar to code blocks behaviour:

---vvv---

I have the same q too... it is inconvenient to click the icon in the right to edit instead of just clicking once in any place of the block, as it is done for the code block...

This is actually pretty tricky and will require using undocumented parts of the API. Sorry!


Onlybackup Search/Export Issues

      return func(*args, **kwds)
    File "/base/data/home/apps/s~ok-server/1.387514185152024091/app/utils.py", line 625, in subms_to_gcs
      add_subm_to_zip(subm, zipfile, result)
    File "/base/data/home/apps/s~ok-server/1.387514185152024091/app/utils.py", line 569, in add_subm_to_zip
      backup = submission.backup.get()
  AttributeError: 'Backup' object has no attribute 'backup'

Fixed? Also, v2 is no longer being maintained.


fix reorg issues

specify the new name tests/ for mocha (by default it is looking for test/
fix path for bitfield in bitfield test (previously looking for old directory lodestar_chain

@hugo-dc thanks for the PR! I'm currently working on #34 on branch greg/typescript-conversion that's basically made most of this code irrelevant. I'm going to close this but if you want to checkout the other branch feel free :)

@GregTheGreek  I found out later you are already working on the typescript rewrite, I'm going to close this PR.

@hugo-dc no problem! I'm starting my test suite right now for the helper functions. feel free to check it out later tonight if you want, I should have a new commit shortly.


prop.get(user, 'name.first') will throw if name is null

Seems weird to me that this library throws on things like: null, false, 3, "hi".
I feel like the obj === undefined check should be isObj(obj) or something.

Maybe we should check the accessibility of the property?

Yeah, that's a bug. It should never throw no matter what you feed it. That's the whole point of this module.

@sindresorhus do you want to support situation that a getter might throw? the only way is to try... catch it?

Yes

I think I know what you are going to say @sindresorhus , you probably just don't want to 'throw' from this module (and don't care too much about the performance) but the reason I try to avoid 'try...catch' and this module to 'throw' was to avoid regression.
Sent from my iPhone

On 16 Nov 2015, at 8:35 PM, Sindre Sorhus<EMAIL_ADDRESS>wrote:
Yes
—
Reply to this email directly or view it on GitHub.

and don't care too much about the performance

Throw doesn't have to mean worse performance. try/catch only deoptimizes the current function. If you put it in a helper function you're good.

Ok, I'll get my Mac next Monday so seven more days if you guys don't mind waiting :)

I can wait. I don't have time to look into this right now anyways.

@matthewmueller @sindresorhus please review #12 :)