Add Mentors/Mentor Managers To A New Program Page - Sprint 4

Description:

Build the Screen using the style guide.
Integrate Screen with the Backend.

Hello @Honeyloveet, I'll like to work on this task. Kindly assign it to me. Thank you


feat(Command test runner): Add command test runner

Add the command test runner. This test runner simply runs command from the bash/cmd prompt. It defaults to npm test.
It will always report exactly one test result (called 'All tests'), as it cannot distinguish between the tests. It is implemented differently from other test runners, as we don't want to spawn this one in a separate process (it already uses require('child_process').exec to start a test run).
Fixes #768

What are your thoughts on the integration with stryker init and the use of a test framework in your config?

For stryker init, I was thinking to put it as a last option:

Use npm test (or other command)

How would we communicate that this option is much slower?
Configuring a test framework doesn't make sense anymore. The test runner does not support test selection. Good point, I will implement a fail fast for this.

I've altered the first question to look like this:

This should be clear enough. If you select "command", the test framework question is skipped.
I've created https://github.com/stryker-mutator/stryker/issues/1049 for preset support. Let's not do that in this PR.

I just totally forgot about the timeout functionality. Implemented now.

Do you have an open source project where you had these issues? Because then we could try it out :) we are pretty thorough with killing processes.

I don't quite remember which one it was exactly, but for sure it's in the top 20 most depended upon npm modules and I think it ran karma. I can't really remember which one it was. I should have documented it, sorry :(

No problem :)

This code is really clean. Nice job @nicojs! 💖


Mail Authentication Functions to support CISA EXO SPF/DKIM/DMARC Checks

These functions provide a fairly robust way to capture and convert most of the context associated with mail authentication protocols (e.g., DKIM/DMARC/SPF).

Nice add @Snozzberries - then we soon just need to see whats the status for deployments of DANE support in EXO at some point :)


Upgrade async to 3.2.4

Upgrade async library, directly integrated into this project (there is no package.json) to 3.2.4.
The js folder seems to be completely deprecated, so this is useless. However, I dont' want to receive Dependabot alerts every week for that.

Sorry. I just signed the commit.


Schema DDL: add JSON Schema Draft v7 support

http://json-schema.org/draft-07/json-schema-release-notes.html#formats
In validation there's few new formats, most useful of which include: date, time, regex.
Requires corresponding ticket in Iglu client when implemented.
See also: https://github.com/snowplow/iglu/issues/170

Would love this sooner rather than later; some super useful features in the newer drafts. Particularly "examples" and "const" are awesome, but throw errors in Igluctl and mark schemas as invalid.

Migrated to https://github.com/snowplow-incubator/schema-ddl/issues/18


Rustfmt pass

It's just an initial pass, give me your opinions about syntax.

A pushed second commit with different option for function args. But it's not good.
It's weird behavior actually, default Tall value shouldn't provide these results.

If you have info how to fix that, let me know

Tomorrow, sorry. Going to sleep now

bors r+


[web] RequireJS timeout setting access on slow connection

I've tried to run the example app using the web mode on a vps server but the requireJS module might take sometime to load the app especially when the server just running from cold start.
So it will somehow stopped loading the page halfway even if the server is ready.
Steps to Reproduce

Run the back-end

 flutter run -d web-server --web-port 5555  --web-hostname <IP_ADDRESS>

Launching lib/main.dart on Web Server in debug mode...
Waiting for connection from debug service on Web Server...         37.9s
lib/main.dart is being served at http://<IP_ADDRESS>:5555
The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.

�  To hot restart changes while running, press "r" or "R".

Visit the page via browser after the server is ready

Logs

Logs

RequireJS timeout in browser which probably defaulted at 7 secs.

Need to somehow be able to modify the waitSeconds to certain amount or 0 so that we can actually handle the page load process our self and not time it out.
 function newContext(contextName) {
        var inCheckLoaded, Module, context, handlers,
            checkLoadedTimeoutId,
            config = {
                //Defaults. Do not set a default for map
                //config to speed up normalize(), which
                //will run faster if there is no default.
                waitSeconds: 7,
                baseUrl: './',
                paths: {},
                bundles: {},
                pkgs: {},
                shim: {},
                config: {}
            },

HI @savire
Can you please provide your flutter doctor -v,? Only reproduces it in a VPS Serve?
(unfortunately, I don't have access to VPS Server)
Thank you

Hi mate below is the flutter doctor -v result.
[✓] Flutter (Channel stable, 2.0.4, on Linux, locale en_US.UTF-8)
    • Flutter version 2.0.4 at /root/dev/flutter
    • Framework revision b1395592de (6 weeks ago), 2021-04-01 14:25:01 -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /root/Android
    • Platform android-30, build-tools 29.0.2
    • ANDROID_HOME = /root/Android
    • ANDROID_SDK_ROOT = /root/Android
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment 18.9 (build 11.0.8+10-LTS)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Android Studio (not installed)
    • Android Studio not found; download from
      https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for
      detailed instructions).

[!] Connected device
    ! No devices available

Its for testing purpose and its mean to be used at root level so its not a mistake that its being setup that way. Chrome and Android Studio not installed since its not being used as a Desktop. Will rely on the Command-Line only and was targeted as a Build Server.
Its building APK alright and as said above its also successfully running the web server albeit if we have slow internet connection the page will be timed out when it took longer than 7 seconds to load a JS library via requireJS.
Is it possible to access it directly? I haven't dig deep into the source code but do flutter somehow build a cache folder of those JS  library somewhere so that we can actually inject it? Or is it bundled within the executable?
As you can see I did installed flutter and Android SDK from source.

Flutter web doesn't really use RequireJS *, AFAIK this is from a slightly lower layer: the dart development compiler. If the compiler were to bump said timeouts (or removed them?) that might help in this case.
What do you think @nshahan?
* (Actually, here is the glue between the output of the DDC compiler, and the startup of a flutter app in development mode: bootstrap.dart.)

DDC only compiles modules into a format compatible with being loaded with RequireJS. It doesn't handle anything related to loading RequireJS sources on the page or any configuration. It looks to me like somewhere in the bootstrapping logic (wherever the require.js is added to the page) you could add some configuration afterwards and change the timeout from the default 7 seconds https://requirejs.org/docs/api.html#config-waitSeconds. Something like:
<script src='require.js'></script>
<script>
  require.config({
    waitSeconds: 15
  });
</script>

Ah, good find! I thought we didn't control that, thanks @nshahan!!

I did some experiments with this, and managed to remove the timeout from RequireJS as suggested by @nshahan! I'll send a PR soon (need to write a test for it)

A fix for this issue has landed here: https://github.com/flutter/flutter/commit/d72f08f50f0ce4e46061edff0a9caea79dd2b923 and should be available shortly in flutter master.


allow for local development with app.aqora.io oauth

This PR should allow for local development with app.aqora.io as the OAuth
provider (as requested by #32). To setup local development:
# clone repo
git clone https://github.com/aqora-io/quantumnews
cd quantumnews

# install dependencies
bundle install

# configure a database
export DATABASE_URL="mysql2://user:password@localhost:3306/db?encoding=utf8mb4"

# create the database if it does not exist
bin/rails db:create

# setup the database
bin/setup

# configure the OAuth client
echo "Aqora.client_id = 'localhost-news'" > config/initializers/development.rb

# run the server
bin/rails server

Thanks you 🙏🏽


Feat(palmyra/): Add code to run palmyra through api.

@akashsaravanan-georgian Thanks for getting the scripts done! 🚀
Before we can merge this branch into main, we need to add a README.
To that end, the README should have the following sections:

Brief explanation of the Palmyra model
Performance table on classification and summarization tasks (both zero-shot and few-shot)
For each of classification and summarization tasks:

Time it took to get one response
Time it took to get all responses
Cost for 1 API call
Cost for all API calls

Feel free to use Falcon or RedPajama models' README to get an idea of what the tables should look like.
Don't worry about the formatting - if you can dump the above numbers in the README, I can take a look and format the content :)

@RohitSaha done!


[FR]: easy but useful View enhancements

Contact Details
No response
Present your request
Now we have filter groups, which is very convenient. With just one click, we can switch to a different view.
Except for one thing - the column order (and visibility) and sorting are not saved.
It'd be helpful to me, because I have a huge database that stores everything, and each of the subdatabases in it may have its own columns. It'd be convenient if I could switch between these subdatabases in just one click.
It would be even better if we can reference each view in the form of [[database1.md#subDB1]] (subDB1 is the name of the view). That'd be more like Notion, where you can reference a certain view of a database in any page.
If that's possible, I would be able to collect links to different views, and put them into another database that stores views. It'd also be able to accomplish the same effect as #562 (reorder group filters).
If it is impossible to accomplish it in the forms of [[database1.md#subDB1]], creating a button or coperating with Buttons plugin will do.
To conclude, my feature requests are:

Introduce a minimum view concept that stores column order (and visibility) and sorting. Make it possible to switch to a different view with one click, just like the filter groups now we have. It's similar to #690 but by a different approach.
It'd be great to be able to reference a specific view of a database, like in Notion, in forms of internal links or buttons.

I hope it won't be too much work as no new layouts (grid, gallery, etc.) are needed.
It would be a step toward #4 (more view like Notion) in the Roadmap .
For which platform do you request this request??
Cross

hemlo @onoter ,
I am afraid this could be tricky. Also I consider it necessary. Add to the roadmap as epic enhancement


Palo Alto Prisma Cloud compliance metadata fix as part of IcM 390371642

Required items, please complete
Change(s):

Policy Compliance Metadata Field value exceeding 32Kb limit, added a check to check the size, if its more than 32kb then splitting the value into multiple columns to avoid data trimming.
Increased the Function schedule time from 2mins to 5mins
Added additional logic to check if the data processing period is more than 2mins then it will try to pull data for last saved time + 2mins to avoid failures.

Reason for Change(s):

390371642

Version Updated:

NA

Testing Completed:

Customer has confirmed that its working as expected.

Checked that the validations are passing and have addressed any issues that are present:

See guidance below

Guidance <- remove section before submitting

Before submitting this PR please ensure that you have read the following sections and filled out the changes, reason for change and testing complete sections:
Thank you for your contribution to the Microsoft Sentinel Github repo.

Details of the code changes in your submitted PR.  Providing descriptions for pull requests ensures there is context to changes being made and greatly enhances the code review process.  Providing associated Issues that this resolves also easily connects the reason.

Change(s):

Updated syntax for XYZ.yaml

Reason for Change(s):

New schema used for XYZ.yaml
Resolves ISSUE #1234

Version updated:

Yes
Detections/Analytic Rule templates are required to have the version updated

The code should have been tested in a Microsoft Sentinel environment that does not have any custom parsers, functions or tables, so that you validate no incorrect syntax and execution functions properly.  If your submission requires a custom parser or function, it must be submitted with the PR.

Testing Completed:

Yes/No/Need Help

Note: If updating a detection, you must update the version field.

Before the submission has been made, please look at running the KQL and Yaml Validation Checks locally.
https://github.com/Azure/Azure-Sentinel#run-kql-validation-locally

Checked that the validations are passing and have addressed any issues that are present:

Yes/No/Need Help

Note: Let us know if you have tried fixing the validation error and need help.

References:

Guidance for Detection checks
General contribution guidance
PR validation troubleshooting

Hi
After having a discussion with Anki, planning to make further changes to make the code better. Closing it for now and will reactivate once done with all the suggested changes.
Thanks


Combined

Did you mean to push this as a PR/? Looks a bit like some of your other PRs just in a single branch...


fix: useLayoutEffect should return nothing

for #136

Nice catch!

Great! @cbbfcd If possible, can you also write a simple spec that tests that the problem described in the issue has been fixed?
Steps to reproduce:

Write a custom hook that when setLocation('/any') is called returns a non-function (for example, "foo").
Provide the hook to Router, place a Redirect component.

With your fix, the spec should go green, and fail without. Thanks!

@molefrog 👌


enables read of single scalar type

closes #924

This PR does not change the default behaviour, it just adds the possibility to read in a dataset not in floats.

add facility to save data as int16


Builds doc

Explains what builds are and how they work.
Includes info about build export/import.
Release Playbook

[ ] Rebase against master
[ ] Code review
[ ] Merge into master
[ ] Verify changes at http://site-staging.convox.com
[ ] Promote release on site-production in the convox/production Rack

 Builds doc


Quick Rundown

Apologies if this isn't the right place to enquire.
I'd just like to know how you have managed to run a custom boot-oader on these devices, assuming that Qualcom's boot process is the same as that on their android counterparts.
I've been looking for a way to unlock the bootloader on my Galaxy S5, and have come up short (there is a way to change the CID on the internal storage so that the phone thinks it's a 'developer edition' device, but mine is incompatible.

The custom UEFI on these devices is just chainloaded from the stock firmware, so it requires the stock bootloader to be unlocked for it to work.

@0x0000ff First there are concepts here:

OEM unlock [Android]: allows you to run some customized kernel
Linux ARM/AArch64 Boot Protocol: basically, it defines the expected processor state, memory config, register usage upon the kernel entry
BootShim: github.com/imbushuo/BootShim which is self-explanatory

I don't want to spend much time explaining the QCOM WP UEFI security vuln here. Our firmware chainloads from the QCOM and OEM firmware. You need to get the capability of running something in at least EL1, and the developer unlock is an option. Then you need to have binary ready at specific memory address (for AArch64 Linux it is memory_base + 0x80000 typically.) You can ignore content in registry x0 unless you need access to the stock device tree.

Thanks. I appreciate this.


PDF not getting saved.

Great work mate, but I tried exporting PDF but it doesn't save.
JSON works.
Also please add these two features:

Add English language
Add auto receipt number incrementer.

Hi Mustafa,
Thanks for your feedback.
This software is designed to create invoices with QR code following the Swiss Payment Standards and will only work with a swiss IBAN number (starting with "CH").
Are you trying with a non-swiss IBAN ?
If you are trying with a swiss iban, do you have any error message ?


[main] Use MAXFILLUP scheduler

https://github.com/openshift-knative/eventing-kafka-broker/pull/716 but for main

/lgtm


incorrect Day of Week for 22 march!!!

Describe the bug
I'm using moment for a project in React Native.
I want to get name of the day and show it in my list and it works, except for 22 March, almost every year!
But Date() works fine!
To Reproduce
import moment from 'moment/moment';
console.log('a='+moment('2022-03-21', 'YYYY-MM-DD').format('dddd'));
console.log('b='+moment('2022-03-22', 'YYYY-MM-DD').format('dddd'));
console.log('c='+moment('2022-03-23', 'YYYY-MM-DD').format('dddd'));
Returns:
LOG  a=Monday
LOG  b=Monday
LOG  c=Wednesday
Expected behavior
Return:
LOG  a=Monday
LOG  b=Monday
LOG  c=Wednesday
React: 17.0.1
"moment": "^2.29.3",
"react": "17.0.1",
"react-native": "0.64.2",
Moment-specific environment
console.log((new Date('2022-03-21')).toString()) =>  LOG  Mon Mar 21 2022 03:30:00 GMT+0330
console.log((new Date('2022-03-22')).toString()) =>  LOG  Tue Mar 22 2022 04:30:00 GMT+0430
console.log((new Date('2022-03-23')).toString()) =>  LOG  Wed Mar 23 2022 04:30:00 GMT+0430
console.log((new Date()).toLocaleString()) =>  LOG  May 8, 2022 11:43:14 AM
console.log((new Date()).getTimezoneOffset()) =>  LOG  -270
console.log(moment.version) =>  LOG  2.29.3
Can anyone help me with this?

I tried and I got the correct names and dates. Is it possible that you have the wrong format of the input data?

For me, this works as expected. No incorrect dates.

#5960 I posted one solution in that issue, i think it can help you.


[FEAT] Decorator and Class Field Support

This PR adds the decorator and class field transforms directly to the
stardard Ember build, so users can rely on ember-cli-babel to provide
them and won't have to manage their own transforms package. It does
not add these transforms if it detects that the plugins have already
been added by something else, and instead warns.

I left a note, re: warning. But otherwise 👍 .
Question, for non-decorator users how much does this slow down their babel?

I haven't seen any noticeable changes in build-speed, but I also haven't used the decorator transforms in a large application. Is there a way we can benchmark to find out what the change would be?

I haven't seen any noticeable changes in build-speed, but I also haven't used the decorator transforms in a large application. Is there a way we can benchmark to find out what the change would be?

Super low tech, is something like: rm -rf $TMPDIR/$USER && time ember b
Although the above will be relatively low fidelity, we are really just looking for large regressions, as anything minor is outweighed by the value of this pr.

I benchmarked and shared results with @stefanpenner offline, this does not appear to be a regression performance-wise. I've also updated the warning to only log in the root application/addon, so users won't get large amounts of noise from addons they don't control.
I think this should be good to go!

ember-cli-babel 7.7.0 published 🎉

Thanks for the extra diligence

Ran into the issue when reinstalling dependencies within my project<EMAIL_ADDRESS>requires<EMAIL_ADDRESS>so it installed 7.7.0 because of the ^ symbol. Then I guess because of some of the subdependencies use decorators-legacy, I got the error
Build Error (broccoli-persistent-filter:Babel > [Babel: ember-data]) in ember-data/adapters/errors.js

Cannot use the decorators and decorators-legacy plugin together

disableDecoratorTransforms: true doesn't seem to work to me.

Hey @LordCHTsai, can you possibly provide a reproduction? It seems strange that the plugin would be included twice, definitely would like to get to the bottom of it.

@pzuraq here's the reproduction
npm install -g<EMAIL_ADDRESS>(also confirm 3.7.1 also fails, but 3.8.1 works fine)
 >  ember version
ember-cli: 3.7.1
node: 10.15.1
os: darwin x64

> ember new ember-quickstart-ya
> cd ember-quickstart-ya
> npm install
> ember serve
Build Error (broccoli-persistent-filter:Babel > [Babel: ember-data]) in ember-data/-debug/index.js

Cannot use the decorators and decorators-legacy plugin together

Stack Trace and Error Report: /var/folders/v1/4g8cyy3j0hj485fyx7h964h8001336/T/error.dump.f67baab64d5e9d29c0174e55f465b659.log

and here's the log
=================================================================================

ENV Summary:

  TIME: Thu Mar 28 2019 10:18:12 GMT-0700 (Pacific Daylight Time)
  TITLE: ember
  ARGV:
  - /Users/chetsai/.nvm/versions/node/v10.15.1/bin/node
  - /Users/chetsai/.nvm/versions/node/v10.15.1/bin/ember
  - serve
  EXEC_PATH: /Users/chetsai/.nvm/versions/node/v10.15.1/bin/node
  TMPDIR: /var/folders/v1/4g8cyy3j0hj485fyx7h964h8001336/T
  SHELL: /bin/bash
  PATH:
  - /Users/chetsai/.nvm/versions/node/v10.15.1/bin
  - /Users/chetsai/.pyenv/shims
  - /usr/local/bin
  - /usr/local/sbin
  - /usr/bin
  - /bin
  - /usr/sbin
  - /sbin
  - /usr/local/linkedin/bin
  - /export/content/linkedin/bin
  PLATFORM: darwin x64
  FREEMEM:<PHONE_NUMBER>
  TOTALMEM:<PHONE_NUMBER>8
  UPTIME: 603078
  LOADAVG: 7.89990234375,4.79345703125,4.330078125
  CPUS:
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz - 2900
  ENDIANNESS: LE
  VERSIONS:
  - ares: 1.15.0
  - cldr: 33.1
  - http_parser: 2.8.0
  - icu: 62.1
  - modules: 64
  - napi: 3
  - nghttp2: 1.34.0
  - node: 10.15.1
  - openssl: 1.1.0j
  - tz: 2018e
  - unicode: 11.0
  - uv: 1.23.2
  - v8: 6.8.275.32-node.12
  - zlib: 1.2.11

ERROR Summary:

  - broccoliBuilderErrorStack: Error: Cannot use the decorators and decorators-legacy plugin together
    at validatePlugins (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/parser/lib/index.js:11085:13)
    at getParser (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/parser/lib/index.js:11150:5)
    at parse (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/parser/lib/index.js:11133:12)
    at parser (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transformation/normalize-file.js:170:34)
    at normalizeFile (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transformation/normalize-file.js:138:11)
    at runSync (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transformation/index.js:44:43)
    at transformSync (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transform.js:43:38)
    at Object.transform (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transform.js:22:38)
    at resolve (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/lib/worker.js:11:29)
    at initializePromise (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/ember-cli-babel/node_modules/rsvp/dist/rsvp.js:520:5)
  - code: [undefined]
  - codeFrame: Cannot use the decorators and decorators-legacy plugin together
  - errorMessage: ember-data/-debug/index.js: Cannot use the decorators and decorators-legacy plugin together
        in /var/folders/v1/4g8cyy3j0hj485fyx7h964h8001336/T/broccoli-67954wuxWwsX56Bsd/out-076-funnel
        at broccoli-persistent-filter:Babel > [Babel: ember-data] (Babel: ember-data)
  - errorType: Build Error
  - location:
    - column: [undefined]
    - file: ember-data/-debug/index.js
    - line: [undefined]
    - treeDir: /var/folders/v1/4g8cyy3j0hj485fyx7h964h8001336/T/broccoli-67954wuxWwsX56Bsd/out-076-funnel
  - message: ember-data/-debug/index.js: Cannot use the decorators and decorators-legacy plugin together
        in /var/folders/v1/4g8cyy3j0hj485fyx7h964h8001336/T/broccoli-67954wuxWwsX56Bsd/out-076-funnel
        at broccoli-persistent-filter:Babel > [Babel: ember-data] (Babel: ember-data)
  - name: BuildError
  - nodeAnnotation: Babel: ember-data
  - nodeName: broccoli-persistent-filter:Babel > [Babel: ember-data]
  - originalErrorMessage: Cannot use the decorators and decorators-legacy plugin together
  - stack: Error: Cannot use the decorators and decorators-legacy plugin together
    at validatePlugins (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/parser/lib/index.js:11085:13)
    at getParser (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/parser/lib/index.js:11150:5)
    at parse (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/parser/lib/index.js:11133:12)
    at parser (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transformation/normalize-file.js:170:34)
    at normalizeFile (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transformation/normalize-file.js:138:11)
    at runSync (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transformation/index.js:44:43)
    at transformSync (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transform.js:43:38)
    at Object.transform (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/@babel/core/lib/transform.js:22:38)
    at resolve (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/ember-cli-babel/node_modules/broccoli-babel-transpiler/lib/worker.js:11:29)
    at initializePromise (/Users/chetsai/Work/test-ember-3/ember-quickstart-ya/node_modules/ember-cli-babel/node_modules/rsvp/dist/rsvp.js:520:5)

=================================================================================

Update:
By looking into the log, it seems like it happens when building ember-data, so I tried to bump the ember-data version to 3.8.0 and keep ember-cli version the same 3.7.0, it actually works.
At least it's narrowing down to ember-data. I will keep digging into the reason.

Just ran into this as well. Created a new app with Ember CLI 3.7 and ran ember s. Downgrading ember-cli-babel to 3.6.0 (using yarn resolutions) also fixed this!

@rwjblue and I tracked it down this morning: https://github.com/babel/ember-cli-babel/pull/275
TL;DR: babel-plugin-filter-imports was doing bad things ☹


Added tests for a batch sample

@marcingrzejszczak I merged main back to this branch but the build is still failing:
Caused by: java.lang.ClassNotFoundException: org.springframework.web.util.UriTemplateHandler


Components not getting registered

I've been having the problem  of the stock framework7-vue compnents not getting loaded or found properly, I've tried different versions of framework7/framework7-vue in the 2.x branches, currently with v2.0.0-beta.3 for both, Vue 2.5.2...  (In my case this is all going through browserify)
First of all I had the initial problem of the kitchen sink example using "import {Framework7Vue}" where I also had to instead use "import Framework7Vue"....  Then in the initial page I use the stock components imported in the page (f7Statusbar etc) don't work as mentioned in the kicken sink - I can't pass the CamelCase versions of the components, apparently their "name" attributes aren't getting read, I have to pass the exported components hash keys from the pages as having their html element (f7-statusbar, f7-panel, etc)... "export default { components: {'f7-statusbar': f7Statusbar}}"
However any of the subsequent f7-vue components that get called from the initial ones aren't being recognized as registered....  For example if the f7Page component uses any other f7-vue component, it complains that that component is not registered... Taking a look at the Vue object it seems like the Vue.options.components hash is filled with MixedCase keys to all of the components but they aren't being found (I think the "name" property isn't being read/found correctly)...

It seemed to start working when in the inital app.vue I just returned all of the compoents already defined in Vue:
export default { components: Vue.options.components}


remakeConstraints

In the Masonry iOS Examples/MASExampleUpdateView.m.
`- (void)updateConstraints {
[self.growingButton updateConstraints:^(MASConstraintMaker *make) {
    make.center.equalTo(self);
    make.width.equalTo(@(self.buttonSize.width)).priorityLow();
    make.height.equalTo(@(self.buttonSize.height)).priorityLow();
    make.width.lessThanOrEqualTo(self);
    make.height.lessThanOrEqualTo(self);
}];

//according to apple super should be called at end of method
[super updateConstraints];

}`
when i change updateConstraints to remakeConstraints, the button's size does not change when i click the button.

@ubdc you still need to invalidate your constraints for iOS to call updateConstraints you can do so by calling [view setNeedsUpdateConstraints]
If you want to animate constraints you will need to:
[view setNeedsUpdateConstraints]
[view setNeedsLayout]
[UIView animate… ^{
  [view layoutIfNeeded]
}]

in the example MASExampleUpdateView.m, i just replace updateConstraints to remakeConstraints in updateConstraints method. and when i click the button, it will call:
[view setNeedsUpdateConstraints];
[self updateConstraintsIfNeeded];
[UIView animateWithDuration:0.4 animations:^{
[self layoutIfNeeded];
}];
but the button size does not change at all.


Error FFMpeg

I am using the node red image in docker and when running
[
{
"id": "f6f2187d.f17ca8",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": ""
},
{
"id": "2daebe66eab7d6bc",
"type": "inject",
"z": "f6f2187d.f17ca8",
"name": "Start conversion",
"props": [
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "start_conversion",
"x": 260,
"y": 320,
"wires": [
[
"bfcd1695c47af054"
]
]
},
{
"id": "e2cfd9118ee0fa29",
"type": "inject",
"z": "f6f2187d.f17ca8",
"name": "Stop conversion",
"props": [
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "stop_conversion",
"x": 260,
"y": 380,
"wires": [
[
"bfcd1695c47af054"
]
]
},
{
"id": "08b85c516eae4ea0",
"type": "debug",
"z": "f6f2187d.f17ca8",
"name": "debug 388",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 670,
"y": 320,
"wires": []
},
{
"id": "bfcd1695c47af054",
"type": "rtsp2mjpeg",
"z": "f6f2187d.f17ca8",
"url": "rtsp://xxx:xxx/videoSub",
"username": "xxx",
"password": "xxx",
"rate": "",
"quality": "",
"resolution": "",
"x": 470,
"y": 320,
"wires": [
[
"08b85c516eae4ea0"
]
]
}
]
When running Start conversion I have this error:
2024-07-09 19:47:06 9 Jul 19:47:06 - [red] Uncaught Exception:
2024-07-09 19:47:06 9 Jul 19:47:06 - [error] Error: FFMpeg executable wasn't found. Install this package and check FFMpeg.cmd property
2024-07-09 19:47:06     at ChildProcess. (/data/node_modules/rtsp-ffmpeg/lib/rtsp-ffmpeg.js:117:10)
2024-07-09 19:47:06     at ChildProcess.emit (node:events:527:28)
2024-07-09 19:47:06     at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
2024-07-09 19:47:06     at onErrorNT (node:internal/child_process:478:16)
2024-07-09 19:47:06     at processTicksAndRejections (node:internal/process/task_queues:83:21)

Hi @psd24,
This node depends on the rtsp-ffmpeg library, which requires ffmpeg to be installed.  I will need to add that to the readme page as a prerequisite.
Can you plean explain a bit more what you problem is:

You were not aware that FFmpeg needs to be installed (in your docker container).
You have already installed FFmpeg (in your docker container), but this node cannot find it.

Bart

My problem was the first:
You were not aware that FFmpeg needs to be installed (in your docker container).

I still have the same error, I don't know how to solve the problem.

Solved!
I have created a Dockerfile to install the ffmpeg package
FROM nodered/node-red:latest
USER root
RUN apk add --no-cache ffmpeg
USER node-red

Hi @psd24,
glad to hear that your issue is solved!
Thanks for sharing your solution, because that might be a great help for others!!


How to use multiple ratelimiters?

What is the best practice here?

Creating two Ratelimit instance with two different prefixes?
Using one Ratelimit instance and using a prefixed identifier? Downside: Only one Ratelimit Strategy / options possible for limiter.

Hey,
I'd recommend using 2 limiters, do you have any concerns with this?
you could do something like this:
const ratelimit = {
 free: new Ratelimit({...}),
 payed: new Ratelimit({...})
}

await ratelimit.free.limit("identifier")

Just to be clear: These would need different prefixes, otherwise they might collide, correct?
Would be helpful to put that in the documentation, I guess. It makes totally sense if you know how the ratelimiter works, but I had to look into the redis & source code to understand how the keys are getting generated.

Ah yes, different prefixes are required
Let me add this example to the readme

Ah yes, different prefixes are required
Let me add this example to the readme

Ah yes, different prefixes are required
Let me add this example to the readme

Ah yes, different prefixes are required
Let me add this example to the readme

Looks like github is broken, I'll update the readme as soon as I can :D
here's a full example:
import { Redis } from "@upstash/redis"
import { Ratelimit from "@upstash/ratelimit"

const redis = Redis.fromEnv()

const ratelimit = {
  free: new Ratelimit({
    redis,
    analytics: true,
    prefix: "ratelimit:free",
    limiter: Ratelimit.slidingWindow(10, "10s"),
  }),
  payed: new Ratelimit({
    redis,
    analytics: true,
    prefix: "ratelimit:payed",
    limiter: Ratelimit.slidingWindow(60, "10s"),
  })
}

await ratelimit.free.limit(ip)
// or for a payed user you might have an email or userId available:
await ratelimit.payed.limit(userId)

@sean-nicholas actually you don't technically need different prefixes, as long as you use different identifiers, for example the ip address for free users and an email for payed users.
If you use the same type of identifier, then you need to set different prefixes.


[PE-D][Tester B] Missing details in UG

The UG was very easy to use and follow, however, under the Features, example error messages could be added to help users better understand the error messages received.
Example: can add example of an error message when an invalid input was entered.

Labels: severity.Low type.DocumentationBug
original: agreatdayy/ped#2

This isn't a bug, more like an enhancement - adding extra details into the UG that the user doesn't necessarily need. Also, adding error explanations might make it more cluttered. Probably not needed under planned enhancements.


Slider throws "ERROR TypeError: Cannot read property 'toFixed' of undefined"

Reproduction link
https://angular-ewptrz-upcjkt.stackblitz.io
Steps to reproduce
Add a Nz-Slider with [nzDots]=true
What is expected?
Value to be changed
What is actually happening?
Get error
ERROR TypeError: Cannot read property 'toFixed' of undefined

Environment
Info

ng-zorro-antd
8.3.0

Browser
Chrome

It looks good to me. Any detailed steps to reproduce this error?


#359

When iterating over GetFiles, the iterator type is PackageFile not PhysicalPackageFile.
Only f::_file is of type PhysicalPackageFile
How to reproduce the issue:
cd c:\tmp
mkdir nuget\binDebug

touch nuget\binDebug\file.txt

cp MyPackage.1.0.0.zip c:\tmp\nuget
unzip MyPackage.1.0.0.zip

Now, open the nuspec with the NugetExplorer 4.x and Save the metadata.
The files xml section moved from:
<file src="binDebug\file.txt" target="content\file.txt" />

to
<file src="content\file.txt" target="content\file.txt" />

then the package does not open anymore or nuget pack complains because the src does not match the directory hierarchy.
MyPackage 1.0.0.zip

Can you please provide a repro...a before/after so I can see the difference?

@onovotny did you reproduce the issue?

Yes, I can see it. Question though, can the as ever return null; should it be using a null check? And If the extension method is no longer used (which it isn't in this case), can you please remove it?

I think the PR is not fully reliable. I will check to make to more "generic". I come back to you asap.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: Bhaal22 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

I don't think this PR is going to fix the issue.  The underlying concrete type is already a PackageFile type in my testing so explicity casting to it does nothing.  The extension method being used is trying to convert to a PackageFileBase which PackageFile is not a descendant of so the conversion results in null.

The initial parent commit is:
d9d37f8ff097299b11c0a2e0ffb966d7d14d8d72
@c0pp3rt0p  I just doubler checked. The PR was definitely working when it has been done.
With last source code version, indeed it does not work anymore.

@Bhall22 Cheers, thanks for double checking.

My hack to get through the day...  Moved the IEditablePackageFile interface to the Types project as well.
`
using NuGet.Packaging;
namespace NuGetPe
{
public static class PackageFileExtensions
{
public static string OriginalPath(this IPackageFile packageFile)
{
if (packageFile is IEditablePackageFile)
return (packageFile as IEditablePackageFile)?.OriginalPath;
else
return (packageFile as PackageFileBase)?.OriginalPath;
}
}
}
`

Closing due to age. Please re-open if still applicable and confirmed working.


weekview layout constraints

Hi,
I'm not sure how I should set the weekview's constraints:

If I set my weekview to occupy the full screen (center it and size == parent view's size), the top bar (with the day labels) disappears, see screenshot.
If I set the weekview's height to a percentage less than 1 (say 0.9) of the parent's size, than there will be a small gap rendered on top: see screenshot.

Is the top bar's size fixed maybe? How to set it to support different screen sizes?
Cheers

This is due to the fact that your the default subview of a viewcontroller extends underneath the navigation bar. I would recommend not using the default subview in this case and either attaching the weekView to the viewController directly in the storyboard and using the graphical interface to add constraints (see image).

Or you could do it programatically and add constraints to your weekView, but this is quite tricky to do programmatically, you can find out how to here.

Thanks, it did the trick!


Expand our PyPI caching to the dependency collection stage

Looking at our code, I think we're only performing HTTP caching during the audit stage -- we cache each JSON response from PyPI.
We should also use the cache during the dependency collection stage, since we repeatedly hit the simple index and download source distributions.

#188 will get us much closer to this by creating a generic caching API for all of our components.


Exports not showing

On the exports tab I don't see my exports anymore since we had the issue with amelia, think that was end of April. I can still get to them via direct URL, such as http://export.hotosm.org/en/exports/af5e4605-c1c4-456b-a784-31192bf81969/ so they're there, just not on the list.  Related: full list of exports seems to only show back to beginning of May.

Hmm, I can't reproduce this yet. @russdeffner can you attach a screenshot and also try unchecking the "My Exports" checkbox in the bottom left of http://export.hotosm.org/en/exports/ ?

In top image it shows nothing for my exports.

In this image it shows the last two exports in the list, i.e. nothing before May 6th.

@russdeffner I finally discovered the cause of this. If you click the "Filter Exports" button in the top left, it will default the date filter to the past month. Moving this earlier will expose more exports.
That should be a workable solution on the existing export tool - won't change it as-is as we're focusing on developing the new version.

@bdon ah, thanks Brandon, didn't think there'd be a filter by default but now I know.


Fuzzing: Add container fuzzer

Adds a fuzzer that:

Creates a client
Imports a number of tar archives
Creates a number of containers
Unpacks some of the images

This fuzzer needs some of the containerd binaries, so we build these statically in the oss-fuzz build file and move them to $OUT/containerd-binaries which the fuzzer has access to when running.
The fuzzer needs a socket, and this socket occasionally becomes unavailable. For this reason the fuzzer includes the deleteSocket() helper which deletes the socket which allows for the creation of a new one during next iteration.
It is unclear at this point whether this fuzzer should stop and kill the daemon during each iteration. This fuzzers perfomance is much different depending on whether it is running 1 hour or 100 hours, and to consider this it would help to get the fuzzer up and running on OSS-fuzz and observe it over time. It is its long-term speed that matters.

/retest

/ok-to-test

/retest


Embedding function was always set to default

Embedding function set to None, corrected to the passed on embedding function
Thank you for contributing to LangChain!

[ ] PR title: "package: description"

Where "package" is whichever of langchain, community, core, experimental, etc. is being modified. Use "docs: ..."  for template changes, "infra: ..." for CI changes.
Example: "community: add foobar LLM"

[ ] PR message: Delete this entire checklist and replace with

Description: a description of the change
Issue: the issue # it fixes, if applicable
Dependencies: any dependencies required for this change
Twitter handle: if your PR gets announced, and you'd like a mention, we'll gladly shout you out!

[ ] Add tests and docs: If you're adding a new integration, please include

a test for the integration, preferably unit tests that do not rely on network access,
an example notebook showing its use. It lives in docs/docs/integrations directory.

[ ] Lint and test: Run make format, make lint and make test from the root of the package(s) you've modified. See contribution guidelines for more: https://python.langchain.com/docs/contributing/

Additional guidelines:

Make sure optional dependencies are imported within a function.
Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests.
Most PRs should not touch more than one package.
Changes should be backwards compatible.
If you are adding something to community, do not re-import it in langchain.

If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, hwchase17.

this is not correct - the chromadb embedding function is different from the langchain embedding class. chroma sometimes creates embeddings themselves


Avoid wrapping inputs with label tag

Current Behavior
Source:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label#accessibility_concerns
Wrapping forms with label tag might have have a negative impact on ADA/Screen Reader

Looking at it, I don't really see anything that suggests that it's more difficult having label wrapping an input. There are suggestions to not include interactive elements like anchors and buttons, but I don't see anything about inputs.

@AdrianGonz97 Yeah I'm going to do more research on this before I make a definitive decision. No offense to the chatter in the stream, but everyone has opinions. It doesn't always means they are correct.

This is the bit that caught my eye though. Our spans probably need to go:

After viewing this in depth, I'm not seeing anything that matches the original suggestion:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label#accessibility_concerns
If you read through this it's discouraging two things:

Don't place interactive elements such as anchors or buttons inside a label. Doing so makes it difficult for people to activate the form input associated with the label.

We don't do this in any of our examples.

Placing heading elements within a  interferes with many kinds of assistive technology, because headings are commonly used as a navigation aid. If the label's text needs to be adjusted visually, use CSS classes applied to the  element instead.If a form, or a section of a form needs a title, use the  element placed within a .

We use span tags, but those should be mostly ignore by screen readers. We never use props headings like h1, h2, h3, etc within any of our examples.
There's nothing stating that embedding the input within the label is bad, and in fact several of their examples show it exactly like do it! The only thing we might want to consider is implementing proper for="" examples to showcase best practices. But Svelte does a pretty good job of recommending this for normal use.
I'm going to go ahead and close this and consider what we have to be satisfactory.