Pass file descriptors to subprocess

Hi, I am trying to pass open file descriptors to my sh commands, but apparently that does not work (at least under Python 3). The Python library subprocess has an option to enable this behaviour, but I have been unable to find its equivalent in sh, that I would rather use.
I have prepared a fairly minimal example illustrating the issue:
import sh
import os
import subprocess

p = os.pipe()
os.write(p[1], b"asdfasdf\n")
os.close(p[1])
c = sh.bash(["-c", "read -u {} foo; echo $foo".format(p[0])])
os.close(p[0])
print("SH.\n  stdout: {}\n  stderr: {}".format(c.stdout, c.stderr))

p = os.pipe()
os.write(p[1], b"asdfasdf\n")
os.close(p[1])
c = subprocess.Popen(["bash", "-c", "read -u {} foo; echo $foo".format(p[0])], stdout=subprocess.PIPE, stderr=subprocess.PIPE, pass_fds=[p[0]])
out, err = c.communicate()
os.close(p[0])
print("Subprocess.\n  stdout: {}\n  stderr: {}".format(out, err))

Right, this is because sh closes all open fds in the child process after fork.  subprocess does a similar thing, but pass_fds must leave those fds open.  Unfortunately there is no option like that in sh, so if you want to read from an fd, you have to bind it to stdin:
c = sh.bash("-c", "read foo; echo $foo", _in=p[0])

Any chance to get such an option in a future release? My previous example was admittedly contrived, but there are reasonable use cases that demand being able to use other file descriptors in addition to standard input, such as securely communicating a secret passphrase  to applications such as gpg or openssl while reading actual cleartext from standard input:
passphrase = b"foobar"
keypipe = os.pipe()
os.write(keypipe[1], passphrase + b'\n')
os.close(keypipe[1])

cleartext = b"secret message"

argv = ['gpg', '--passphrase-fd', str(keypipe[0]), '-q', '--batch', '--armor', '--symmetric']
p = subprocess.Popen(argv, stdin=subprocess.PIPE, stdout=subprocess.PIPE,
                     stderr=subprocess.PIPE, pass_fds=[keypipe[0]])
secretmessage, err = p.communicate(cleartext)
print(secretmessage)

Yep that is reasonable @Asuranceturix.  I'll leave this issue open until it's implemented.

Weirdly enough, I implemented this as a "nice to have" without remembering this issue: 58308b46fb675e33bcae3dd39b0b1fb1cb8a599e.  It will go out with the next release and should solve this problem.

Thanks a lot!

Thanks a lot!


"App Notes" Not Visible Under "Propeller Tools | Examples" in Explorer Window

The folder is there and does contain sub-folders.  It just doesn't appear in the explorer section of the tool.
Same for the sub-folders under "Help" and "PE Kit".  Should these be separate issues?

The Show Recent Folder Only option seems to be hiding those subfolders.  If you press that button again to pop it up, those folders will appear.

This is something I'll look into because it certainly isn't acting the way we intend.  Keeping this issue open for resolution.


Bad Image error message on start when DisplayFusion or MacType are installed

Describe the bug
ProcessHacker shows error message on startup if DisplayFusion and MacType are installed.
DisplayFusion Pro 9.5
MacType 2019.1
ProcessHacker 3.0.3874
To Reproduce
Steps to reproduce the behavior:

Have the software listed above installed
Start ProcessHacker

Expected behavior
ProcessHacker starts without errors
Screenshots
When ProcessHacker starts, it shows 2 error messages:

Desktop (please complete the following information):

OS:  windows 10 x64
Version: Edition Windows 10 Pro, Version 20H2, OS build 19042.804, Experience Windows Feature Experience Pack 120.2212.551.0

Can you add the "Error mode" column to the processes list and copy the text for processhacker.exe?
You should have this:

yes, that is excactly what I have:
Fail critical, GP faults, Openfile faults (0x8003)

Fixed in the latest nightly build 👍


Set message explode time stories - desktop

Mobile coming soon. Also updates the icon font to get the bOoM! icon. r? @keybase/react-hackers
'New' mode

'Not-new' mode

(note that previously a bunch of non-iconfont icons were left into the iconfont. I didn't skip that step while updating the font, hence the net -1,000LOC diff)

I like it!
Pumped!

@keybase/react-hackers bump!

@chrisnojima I don't think they were hooked into the code at all, they weren't added to icon.constants. I'm not sure what affect they had.


FileRedirectionShim and redirection base

I believe that the FileRedirectionShim should allow the json configuration tupple to be a triple that allows one to define a base for the relocation.
Redirecting everything to AppData/Local is not going to cut it.  Some of the file data, especially user settings files, should be redirected to a place that follows the user (such as AppData/Roaming, home drive, or even OneDrive).  One should be able to specify this in the json configuration.
We are going to use this to remediate the behaviors of apps that were doing the wrong thing.  Please allow the flexibility for us to do so.  IT Pros will not have the ability to modify the original application source.  Without this flexibility in the FileRedirectionShim, we will be forced to continue to rely upon the AppCompatToolkit and skip the PSF.

Oh, and the same might apply to the registry redirection shim.

So, sounds like @TimMangan envisions a sort of 'redirect base' so file access could be redirected to a roaming location.
Non-working example:
"fixups": [
        {
          "dll": "FileRedirectionFixup32.dll",
          "config": {
            "redirectedPaths": {
              "packageRelative": [
                {
                  "base": "",
                  "patterns": [
                    ".*\\.settings"
                  ],
                  "theoreticalRedirectBase": "FOLDERID_RoamingAppData"
                }
              ]
            }
          }
        }
      ]

Thanks folks! it is a great suggestion. Do you know about specific apps that would require that?
On the MSIX runtime - we chose a slightly different approach, instead of creating a complex sub systems that tied to the OS, the idea with the PSF is to create simple and app targeted fixes.

The issue is not app specific, but customer environment specific. Environments where the OS is non-persistent (pooled VDI) or semi-persistent (RDS/Citrix Farms) require user settings and/or data created/altered by the end-user to follow the user from machine to machine.
While some may deploy additional user environment management software, such as Ivanti (formerly Appsense or RES products), or even Microsoft's own UEV, the OS has built in Roaming Profiles, or more likely Folder Redirection that can be used when the data is in the roaming profile are of the user without the need of these additional products.
When we can craft a solution within the app package that puts data that must be retained into the appdata/roaming area then all of the techniques customers implement will easily work without necessarily having to add app-specific rules to that layer.
An even more ideal solution could be to just make roaming folder the default for all the redirection, or the default with possible override elsewhere.

This is, in essence, what the original SoftGrid through App-V 4.6 runtime did at the platform layer, which made app specific redirections at the app layer unnecessary.  The cost of this was that both data that needed to be retained and that which didn't would also be captured, but we were generally willing to live with that.

In App-V 5, this changed with platform layer redirection choosing to redirect app data that would have natively roamed into appdata/roaming and that which would not have natively roamed into appdata/local. This made the packaging more work as we now needed to identify missing data and creatively handle it with workarounds.

In the end, I now believe the platform, not the app-specific shim, should strive to make the packaging effort easier, not harder, than existing packaging (i.e. App-V).  I'll soon have a proposal written up for Andrew to clarify my thoughts on this.

Thanks for sharing the details and I am looking forward to see your proposal as well. In respect to the AppData folder redirection, we have a similar logic to App-V 5 today, in the platform, we redirect AppData local to local and roaming to roaming, we can consider changing it. I am only concerned about the redundant files that we will roam, outlook stores the huge .OST file under local not roaming.
Do you by chance know what was the rational of the change in App-V 4.6 --> 5?
And I totally agree with you that we should strive to make packaging easier.

In my shoes, I'm less interested in App-V and more interested in lighting up roaming capabilities in apps that write configuration data to Local AppData. Specifying the target of the redirection enables this scenario.

The polite public answer is that Microsoft was unable to provide a reasonable rational for the 4.6 to 5 change on redirection location.  Most App-V customers opted to implement additional UEM products to work around it.
But yeah, we want to make the packaging easier, and enable typical redirections to useful places is part of that.  Microsoft (privately) has my suggestions in this area.  Whether or not they decide to act on them at the MSIX runtime level would affect how any changes to the fileredrection fixup would be implemented.
As to outlook OST, Because of the vast size of the typical OST file, I think that if you want that to roam you should instead look to something like FSLogix solution which is considerably more performant than anything you'd do with PSF for those OST files.

So now that the other PRs are in, I am ready to look more deeply at this.  In addition to the originally written basis for a need for control of the location of redirection, there is also the need to control whether cow should be done for an item.  So while I might generally want COW behavior, there may be specific files I don't want that on, and I don't want to specify only the ones subject to COW.
Here is what I am thinking of for the config.json:
"fixups": [
{
"dll": "FileRedirectionFixup32.dll",
"config": {
"redirectedPaths": {
"packageRelative": [
{
"base": "",
"patterns": [
".\.settings"
],
"readOnly" : "true"
},
{
"base": "",
"patterns": [
"."
],
"redirectBase": "FOLDERID_RoamingAppData"
}
]
}
}
}
]
I'm not sure about what the reference to the destination should look like.  I'm just copying from Rafael here, but it probably needs to be consistent with any other folder references in use in the PSF..
The defaults for these values when not specified would be
"readOnly": "false",
"redirectBase": "FOLDERID_LocalAppData"
which matches the current behavior.
The concepts around readOnly might not be as obviously needed for file based settings as it will be for registry based settings.  But establishing this here will be consistent with needs for RegistryFixup (when we can have one of those). A file based example might be used for something like VLC.  The app stores settings in the file system under appdata, so the file redirection fixup is needed for the app to see the settings file within the package (at least on 1809). But if the packager sets the setting in that file to prevent autoupdates, we don't want the user to be able to turn it back on (as really bad things WILL happen)!  Thus the need for readOnly.  Clearly a better solution would be to target just that one setting in the file and allow the user to change others, but this isn't possible in a general external solution (the vendor really needs to rewrite their code to allow for this).

On the "readOnly" - I am not clear about the VLC scenario, Autoupdates will be controlled by the IT Pro via MSIX stack and not by the app in most cases, is it really needed? Do you know about any other scenarios?

First:
In my working copy I have renamed this item to "exclusion" for now.  The IT Pro does not have the time or ability to determine every individual file in a package that might need to be changed in some part of the application. The vendor doesn't document what they are and the IT Pro often lacks credentials to test the full application.
The exclusion marking would allow for the fileredirection config to cotain two entries in the packageRelative array.  The first entry is marked as an exclusion.  The patterns for this exclusion would clearly include normal WinPE filetypes, but possibly other patterns as well.  The second entry would not be marked as an exclusion and would cast a wider net, possibly just the .* pattern to request that the fixup apply to all files not excluded.
But here is the issue app to your question about the need for readonly.  VLC.  It uses a configuration file that is stored in the user profile of the package and has a setting that controls updates.  An IT Pro can turn off the autoupdate feature in this file, but without a MSIX FileRedirectionFixup added to the package, the application CANNOT read that config file.
For some unknown reason the normal VFS layering does not apply to AppData Local and Roaming -- meaning if the containerized app requests C:\Program Files\Venfor\Foo.cfg the MSIX runtime will check the VFS path in the package and find Foo.cfg.  But if the same app asks for C:\User\username\AppData\Local\Vendor\Bar.cfg the MSIX runtime never looks at the VFS path for the file and the file is unfound. So to keep VLC from prompting the user for updates, we must have the FileRedirectionFixup target this file, causing it to redirect requests to a copy it makes in the LocalCache of the package (which ironically is in AppData Local).  But this makes the file read/write so the end-user can just turn it back on.  Now they get the popup as soon as a new version is available, and if the end-user has admin rights they'll end up with the newer version natively installed with the vendors MSI straight from the vendor website in addition to the MSIX package deployed by IT.  And that is why we need a readonly setting (it might just look different than above).

PR #37 is now submitted to cover this item.


Support for German added

do you need also transformation of fractals to words? that would also be possible with no big effort.

@bamberino That would be ideal


[BUG] EvaluatePrequential stops when data_points_for_classification=True and outputfile="xy.csv"

When using the EvaluatePrequential evaluator for plotting data points and also specifying an output file path, evaluation stops as soon as the plot shows up without an error, the plot remains empty. It works fine, when the output_file option is omitted.
MWE:
from skmultiflow.data import FileStream, WaveformGenerator
from skmultiflow.evaluation import EvaluatePrequential
from skmultiflow.trees import HoeffdingTree

# setup data stream
stream = WaveformGenerator()
stream.prepare_for_use()

# 2. Instantiate the HoeffdingTree classifier
ht = HoeffdingTree()

# evaluate prediction results
evaluator = EvaluatePrequential(show_plot=True, pretrain_size=1000, data_points_for_classification=True, max_samples=30000, output_file="test.csv")

evaluator.evaluate(stream=stream, model=[ht], model_names=['HT'])

Confirmed bug. Also relevant is that when setting data_points_for_classification=True and output_file=None, the evaluator fails to report the mean performance at the end of the evaluation.
Thanks @fwille for reporting this. We will look into it.

I am uploading a fix for this issue. Additionally, I am updating the documentation to clarify the usage of this option:
data_points_for_classification: bool(Default: False)
        If True, the visualization used is a cloud of data points (only works for classification) and default
        performance metrics are ignored. If specific metrics are required, then they *must* be explicitly set
        using the ``metrics`` attribute.


TCP/UDP support

Hello,
Are TCP or UDP entrypoints supported?
Thank you!

Hi,
We did not test with UDP, just TCP. But since we just manage IP addresses, I Think both TCP and UDP are supported by traefik thus by the plugin.
Regards,
Tom

Ok thank you.
My goal is not use it in front of a git+ssh server.
Thanks!


chore(contract)(sdk): Stop supporting unused arrays in Registries

What does this PR do?
Removed the usage of onchain counter from entities.
Updated sdk to use subgraph instead.
Related ticket
Fixes #788
Type of change

[x] Chore
[ ] Bug fix
[ ] New feature
[ ] Documentation update

Check list

[x] Unit tests for any smart contract change
[ ] Contracts and functions are documented

Codecov Report
Attention: Patch coverage is 37.50000% with 10 lines in your changes missing coverage. Please review.

Project coverage is 46.61%. Comparing base (e56a25f) to head (7a398dd).

Files with missing lines
Patch %
Lines

sdk/src/dataMapper/UtilsDataMapper.ts
11.11%
8 Missing :warning:

sdk/src/dataMapper/ModuleDataMapper.ts
0.00%
1 Missing :warning:

sdk/src/dataMapper/SchemaDataMapper.ts
0.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #799      +/-   ##
==========================================
- Coverage   46.80%   46.61%   -0.19%
==========================================
  Files          18       18
  Lines         391      399       +8
  Branches       59       63       +4
==========================================
+ Hits          183      186       +3
- Misses        205      210       +5
  Partials        3        3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


⚠ Bofrost.lu has degraded performance

In 1394a1e, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1625 ms

Resolved: Bofrost.lu performance has improved in d8f7251 after 8 minutes.


link: allow creating public link to files and folders - closes #1562

For now only Google Drive and Dropbox are included.
The goal of this command is to quickly get a sharable link to hand to friends. Drive supports full ACLs, Dropbox offers password protection and automatic expiry (paid accounts). Not sure if it makes sense to implement these provider specific features. The most likeliest feature to add would probably to "unshare", which could be equally universal.
It's an optional interface for Fs, although it would probably fit nicely on Object as well. As it is now, it supports sharing directories. Getting dir sharing to work via Object would likely benefit from having a standardized Directory type first. I haven't surveyed the other storage providers yet, so maybe demanding directory sharing through the integration tests will have to change.
Note that the Google Drive intergration test fails for me at TestObjectRemove, even on master.
There is one edge case in the Drive implementation that I left unsolved: on a team drive, if I lack permissions (i.e. canShare: false) this implementation will bail. Instead, it could check what permissions the file/dir already has, and return the link if they are already sufficient. I'd revisit this if someone actually runs into this issue.
As always, I am happy to address any feedback.

Note that the Google Drive intergration test fails for me at TestObjectRemove, even on master.

I had noticed that, its been showing up in the integration tests...
I'll work in that in #2177

Writing a test case that ensures that f and f.Features().someFeature's receiver match seems rather tough. A friend more versed in Go came up with this https://play.golang.org/p/so-l-ZSPCSo, but this is clearly not nice, even if we'd just use it in tests.
For the current patch, I'd like to merge it as it is now. Well, if you think it's helpful I can move drive's NewFs patch into a separate commit, so that bisecting it later might be easier.
In the long run I wonder though if Features() and the optional interfaces can be replaced by making every interface required and backends return fs.ErrorNotImplemented if they don't support an optional feature. I lack a grand overview of rclone to be able to judge if this is feasible. Do you see any roadblocks with this approach that make even trying not worth it? I am not sure this approach would be better, or if it's just "bad in a different kind of way", though.

Split off the receiver issues into #2182. I will put the Drive patch there. Let's see if I can make a durable enough test, though!

Thanks @breunigs :-)


How to handle error on resource route?

Hi, I'm just wondering if there's a good way to use formAction in a resource route.
My use case is that I have a page with multiple different forms. Ideally, each of the forms will be handled by a resource route for reusability. I imagine the behavior would be each resource route will redirect back to the original page with the errors somehow and the form can pick it up and display the error message correctly. I'm not sure if this is technically possible (maybe with a form prefix?).
I'm just wondering if I'm missing something here. Would love to hear your thoughts! Thanks

Hey, @alexluong!
If you use a resource route + useFetcher, it will work out of the box with as many forms as you'd like on your original page.
As far as I can understand, Remix resource routes are not intended to be used for navigational purposes (without useFetcher, for example).  If you try to navigate from a resource route, Remix will ask you to add a route component to the route, making it not a resource route anymore :)
But if you really want to use a resource(ish) route but not useFetcher, you need a way to send the data back to the original page in case of errors. If I were to do that (and I wouldn't 🙂), I would add the errors returned from performMutation + the values from the input to the query string when redirecting to the original page. Then, I would get them from the query string on my loader and pass them to <Form schema={schema} errors={errors} values={values}. Plus, I would add something to the query string to let my loader know which form was returning the error.
This feels like an anti-pattern to me. In Remix, if you want to have multiple forms on the same page and render errors correctly, I think you have three patterns to pick from:

You use navigation (regular forms) to the same route, with some form to indicate to the action which form is being submitted.
You useFetcher and have multiple resource routes dealing with each form. In this pattern, you're going to have to work a little harder if you want Progressive Enhancement.
Depending on your use case, you can use nested layouts to render each form as part of a different layout. That way you can have regular, navigational, forms with an action that only deals with one form.

How does that sound to you? I'm closing this issue because it doesn't feel like we need to do something about this at this moment. But feel free to reopen it if you need additional support or disagree in any way :)

Thanks for the detailed response. I totally forgot about useFetcher for a moment there. Appreciate the quick response and the awesome library, really enjoying it so far!

Thanks, @alexluong! I appreciate it 💪🏼 🙏🏼


Allow Custom Headers for custom backEnd or FireBase AppCheck

Please allow Custom Headers especially for firebase Appcheck
so the requests can be authenticated by the backend when using a custom base url pointing to an custom endpoint protected by Appcheck

Seems good to have, I will provide external method for adding custom headers.

The package allows now to add custom headers to ll requests via:
OpenAI.includeHeaders({"key": "value"});

you will need to upgrade to the latest version of the package

could you add support for dart 2.18 sdk ?

I already used Dart 3 new features such as class modifiers, so the package doesn't just support version lower than 3.0.0, otherwise, it will throw errors.

@khaledmoalla can you please guide how can we use custom endpoint with this library.


Failures in getJSON crash the build instead of allowing the user to handle it.

As suggested in #5643 I am creating a new issue for this.
getJSON causes builds to fail and halt in the versions 0.68.3, 0.69.1 and 0.69.2 which I have tested it on. This happens when accessing a remote file at a HTTP address (have not tested for local json files, not my use case).
The use case I have is that we're checking a database through its REST API for the existence of an entry to pull some metadata, and falling back to local data if not present. However, the only way we can check for the existence is to make a query, and if it's not there, the getJSON errors, and the build halts.
Specific error is this: Failed to get JSON resource "https://data.rcsb.org/rest/v1/core/entry/": Failed to retrieve remote file: Not Found.
Supposedly #5648 was meant to fix this, but from what I'm reading never did it properly?
I don't know Go so I'm not sure exactly how to fix it, but I think I can trace its stack:

getJson calls getResource and then if an error is thrown its supposed to log said error but not throw the error: https://github.com/gohugoio/hugo/blob/c2d9fd1ebef89cc19256e6799f29ab3d27eaf879/tpl/data/data.go#L118-L122
getResource attempts to call getRemote because the a URL was passed in, so the "" case is skipped and it goes to the default: https://github.com/gohugoio/hugo/blob/c2d9fd1ebef89cc19256e6799f29ab3d27eaf879/tpl/data/resources.go#L109-L122
getRemote detects an HTTPError and actually throws the error, which passes back up the stack: https://github.com/gohugoio/hugo/blob/c2d9fd1ebef89cc19256e6799f29ab3d27eaf879/tpl/data/resources.go#L55-L57
getResource and getJSON behave correctly and log the error, but the thing actually halting the build came from the getRemote call and the HTTPError handling.

I have a couple ideas on what behavior I would like to see to make this more user and use-case friendly.

Is it possible to make the getRemote on HTTPError not actually throw the error and instead log it, pass it back up and let the calling function handle it? Especially since getRemote isn't a publicly available function in Hugo's shortcodes?
Could there be some switch to tell the getRemote to pass it back up (like if there is another function invoking which could handle it?)
Could the getRemote or getJson throw a warning instead? This does leave it up to the site developer to properly handle the case when the JSON they get back isn't what they expect, but I think that's a reasonable thing to ask for.
Use a with...else...end construct to handle the return from getJSON when it errors. This actually already works as expected. I can test it with the shortcode construct of{{ with getJson "...." }}
    <!-- Do stuff on success -->
{{ else }}
    {{ warnf "It failed" }}
{{ end }}

This will correctly throw not only the getJSON error, but also throw the warnf warning in the console. However, the fact that an error was thrown causes the built to fail in the end, but the getJSON error clearly is not fatal to the overall build code.
Have a function to probe an external site? Basically a function to see if the url exists. I think getRemote does this already to some extent, but make this return a boolean instead of the result or error?

What version of Hugo are you using (hugo version)?
0.68.3, 0.69.1 and 0.69.2 (currently using)
Sepcifically: Hugo Static Site Generator v0.69.2/extended darwin/amd64 installed via brew
Does this issue reproduce with the latest release?
Yes: 0.69.2

For additional data, the remote API service I'm calling does return the following when you give it a non-existent data field (using 6ZLE as the requested object, which doesn't exist):
{"status":404,"message":"No data found for entryId: 6ZLE","link":"https://data.rcsb.org/redoc/index.html"}

However, I feel that even if the API was down or the URL someone fed into simply did not exist at all, the getJSON function should still allow a more graceful handling.

Related to this, would it be possible to have

an argument to getJSON/getResource (and maybe even built-in shortcodes) that'd allow to give a warning instead of an error with a default behavior to error -- and maybe even a fallback option;

a hugo build/server option to change that error/warning option site-wide. (so for instance the build could be less strict in branches, more strict on master, depending on a Netlify config)

Use case

Being able to ignore that a tweet/instagram post disappeared when working on something else in the website. see #6954

It's great to get some message that a resource couldn't be fetched, to e.g. remove deleted tweets IDs from content, but sometimes it halts work on other issues (e.g. I'm editing a post, and the build will fail because a tweet ID in another post is obsolete).

I'm getting this error when a user deletes a tweet (custom template, not using a shortcode: I have a list of tweets ids and fetching them from the Twitter public API). It would be great to be able to handle the error instead of crashing the build.

Tested on 0.71. The issue remains

Same issue here:
ERROR 2020/06/24 13:58:13 Failed to get JSON resource "https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1": Get "https://api.instagram.com/oembed/?url=https://instagram.com/p/BWNjjyYFxVx/&hidecaption=1": dial tcp <IP_ADDRESS>:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Built in 30695 ms
Error: Error building site: "C:\Users\XXX\My Programs\Hugo\testsite\content\posts\theme-documentation-built-in-shortcodes\index.zh-cn.md:1:1": timed out initializing value. You may have a circular loop in a shortcode, or your site may have resources that take longer to build than the `timeout` limit in your Hugo config file.

index.zh-cn.md contains instagram shortcode, so...
Had a quick search, some effort was already devoted since #5643 , but the issue remains.
Similar issues: #5659 #6954
Better to mark this issue as a bug.

Since https://github.com/gohugoio/hugo/commit/fdfa4a5fe62232f65f1dd8d6fe0c500374228788 the following can be entered in a project's config to allow building a project even if a remote source called by getJSON is missing.
If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config:
ignoreErrors = ["error-remote-getjson"]

P.S. This issue needs to be closed.

Good to know!
However isn't this issue about being able to add some sort of fallback?

@maelle
With the above in a project's config the console will show a WARN for a missing getJSON remote. It's up to you what you're going to do with it. The project will be built despite the failure.

That's great to hear! I'd need to test it more thoroughly to make sure it works correctly.
@maelle when I originally made the issue, you can establish a fallback with a with...else block such as this:
{{ with getJson "...." }}
    <!-- Do stuff on success -->
{{ else }}
    {{ warnf "It failed" }}
{{ end }}

which would fail since the getJson still raised an error.
@onedrawingperday do you know if a warning raised by getJSON will still trigger the else block of that construct, or would it be considered success enough and run the with block?

@Lnaden
I don't know the answer to your question and cannot test it at the moment.

For cross reference: #7867

There will be no warning/error if you add this to your config, which means that you need to do any error handling yourself (if you want, e.g.:
{{ with getJson "...." }}
    <!-- Do stuff on success -->
{{ else }}
    {{ warnf "It failed" }}
{{ end }}

@onedrawingperday @bep @maelle
I just did a local build with the current master and can confirm that #7867 does fix the problem and the with...else...end construct works correctly.
For anyone looking for this solution in the future for some version after 0.76.5

Add ignoreErrors = ["error-remote-getjson"] to your config file
Trap getJSON calls you expect to fail with the following{{ with getJson "...." }}
    <!-- Do stuff on success -->
{{ else }}
    <!-- Do stuff on failure -->
{{ end }}

Thanks to everyone who replied and thanks to @bep for implementing a fix.

I know its not a fix-fix, and the implementation was not meant for this problem, but it does work for this use case and does produce the behavior I was asking for, so I'll count it as a fix.


Note on image mirroring script

don't merge. will break the script. script needs logic to not process comment lines


Custom variable names for diagnostics

Add the facility to use custom variable names when extracting idata, e.g. tda.to_inference_data(hain, level="fine", burnin=0, varnames=None).

This was addressed in https://github.com/mikkelbue/tinyDA/pull/44


[@shopify/react-form] FormError interface should use string for the field

Overview
Currently, the FormError interface from the react-form package has defined the field to be a string array or null:
https://github.com/Shopify/quilt/blob/9ac47c1f1f43ec693ec21d1e32204e5072fcd268/packages/react-form/src/types.ts#L114
It should be string or null:
export interface FormError {
  field?: string | null; // <<<<
  message: string;
}

Consuming repo

What repo were you working in when this issue occurred?

...
Area

[ ] Add any relevant Area: <area> labels to this issue

Scope

Is this issue related to a specific package?

[ ] Tag it with the Package: <package_name> label.

Tried modifying the labels but GitHub is not allowing me.
Package: @shopify/react-form

Checklist

[ ] Please delete the labels section before submitting your issue
[ ] I have described this issue in a way that is actionable (if possible)

Not a bug. It was me not properly understanding the usage. Works as expected with a string array.
:man_facepalming:


Parsing error throws error message infinitely on watch mode

I think the lib should handle parse error exception in watch mode.

--watch has been deprecated and will be removed in a future version #156


source load twice when use {{{ Mustache }}} interpolations

Vue.js version
1.0.26
Reproduction Link

https://jsfiddle.net/hejinjun529/x58tpy5a/2/
Steps to reproduce

open the browser developer tools and switch to the Network panel.
filter the ajax request, only keep the Media request.

What is Expected?
mp3 file request should be load only twice.
(once by directive v-html )
(once by {{{ Mustache }}} interpolations )
What is actually happening?
mp3  file request load thrice.
(once by directive v-html )
(twice by {{{ Mustache }}} interpolations ) . it should only load once like v-html do.

This is because {{{ }}} needs to first parse the string into a document fragment, cache it, and then clone it. This is a wontfix. To workaround it, just use v-html.


Conflict with ConstructionBaseIntervalSetsExt

Is ConstructionBaseExtras still active, or has it been deprecated by the new ConstructionBase extensions?
I ran into this while running the Accessors tests (CC @aplavin ).
With the current versions of ConstructionBaseExtras and IntervalSets
pkg> st ConstructionBaseExtras IntervalSets
Status `/tmp/jl_UsXb5e/Project.toml`
  [914cd950] ConstructionBaseExtras v0.1.1
  [8197267c] IntervalSets v0.7.10

julia> import ConstructionBaseExtras, IntervalSets

Precompiling ConstructionBaseExtras...
Info Given ConstructionBaseExtras was explicitly requested, output will be shown live
WARNING: Method definition constructorof(Type{var"#s1"} where var"#s1"<:(IntervalSets.Interval{L, R, T} where T)) where {L, R} in module ConstructionBaseIntervalSetsExt at /user/.julia/packages/ConstructionBase/Am9w7/ext/ConstructionBaseIntervalSetsExt.jl:6 overwritten in module ConstructionBaseExtras at /user/.julia/packages/ConstructionBaseExtras/cy4E1/src/intervalsets.jl:3.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? ConstructionBaseExtras
[ Info: Precompiling ConstructionBaseExtras [914cd950-b775-4282-9f32-54fc4544c321]
WARNING: Method definition constructorof(Type{var"#s1"} where var"#s1"<:(IntervalSets.Interval{L, R, T} where T)) where {L, R} in module ConstructionBaseIntervalSetsExt at /user/.julia/packages/ConstructionBase/Am9w7/ext/ConstructionBaseIntervalSetsExt.jl:6 overwritten in module ConstructionBaseExtras at /user/.julia/packages/ConstructionBaseExtras/cy4E1/src/intervalsets.jl:3.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
┌ Info: Skipping precompilation due to precompilable error. Importing ConstructionBaseExtras [914cd950-b775-4282-9f32-54fc4544c321].
└   exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.

since both ConstructionBaseIntervalSetsExt and ConstructionBaseExtras define
ConstructionBase.constructorof(::Type{<:Interval{L, R}}) where {L, R} = Interval{L, R}

Thanks @aplavin !

There may still be a few packages around that are using ConstructionBaseExtras.jl, especially if you're not on the latest version of everything.
ConstructionBaseExtras.jl is definately deprecated, Ive just added a note to the readme making this explicit.


Docs style update

📑 Description
This PR will be used to re-design the documentation by providing better UI/UX.

[x] Not Completed
[ ] Completed

✅ Checks

[x] My pull request adheres to the code style of this project
[x] My code requires changes to the documentation
[ ] I have updated the documentation as required
[ ] I have checked the page with https://validator.unl.edu/
[ ] All the tests have passed
[ ] My pull request is based on the latest commit (not the npm version).

ℹ Additional Information
@shinokada this will take some time but I already updated the main hero section of the homepage. I'll update the general layouts and spacings for the sidebar and the main content as well. Some of the things that I want to do:

Improve the navigation bar styles and mobile responsive alignment
Update all colors for the components and documentation links to "primary" (aka. Svelte's red)
Update the component thumbnails color on the homepage to read instead of blue
Add GitHub/Discord button icon links to the navigation bar
Improve typography UI/UX on the docs
Impove the UI/UX of the docs footer

Here's a quick preview of the direction we're heading to, the alignment is still off though:

This PR will probably take a couple of weeks to finish but I'll do my best to make these updates and I hope you can help me with building tests and making sure everything stays nice and tidy.

@shinokada I added a new footer but didn't use the core Flowbite Svelte footer component because I used the one from the official docs, so I kept the old footer example in comments. Do you want to update it using Svelte components? It's important that we keep the proportions the same.
I also removed the left margin for the main body because I will attempt improving the sidebar / main content / toc / navbar layouts in the next commits.

Hey peeps,
I have some great news for the Flowbite Community: together with @robert1508 we'll create some designs in Figma for the Flowbite Svelte landing page and docs page that we can use as a reference for this PR and style update.
A couple of days and we'll post the file here :)
We'll take into account the structure of the project of course so we don't have to make big structural changes either.
Cheers,
Zoltan


Augmenting ComponentCustomOptions with a function causes TS2769 when using augmention

Version
2.7.14
Reproduction link
github.com
Steps to reproduce

Augment the ComponentCustomOptions interface with a new optional member function. Example: funcOption?: (...) => ....
Use the new member function in defineComponent. Example defineComponent({ name: 'CompName', funcOption: (...) => ... }).
Run a build with type-checking. Example: npm run build with vite and vue-tsc installed and setup.

Using the repro link:

Clone the repo
Run npm ci
Run npm run build

What is expected?
That the build would succeed without error.
What is actually happening?
A TS2769 error results when built. It seems TypeScript is attempting to use the functional component overload rather than one of the normal overloads.

Just discovered the same issue with ComponentOptions

It will work if you change the return value of the funcOption.
const HomeView = defineComponent({
  name: 'HomeView',
  components: { TheWelcome },
  funcOption: route => {
    return {}
  }
})


Recognise Logitech MX Master thumb button

OS
15.0, 14
LinearMouse
v0.10.0
Is your feature request related to a problem?
Logitech MX Master thumb button unable to be re-assigned.
Describe the solution you'd like
Reassign MX Master thumb button away from the default command+tab.
Describe alternatives you've considered
Logi Options + (prefer LinearMouse)
Additional context
#504
#713 (different Logitech mouse but similar request)

This.


'CollectionOwnershipBuilder' does not contain a definition for 'HasAlternateKey'

Describe what is not working as expected.
I've got several DbContexts in my solution. All are working as expected except for one, which is generating anomalous code in the snapshot and designer classes. I have an entity, let's call it ABC. ABC has a list of DEFs. DEF is marked as [Owned] and I have it configured as an OwnsMany in the OnModelCreating as in the following:
modelBuilder.Entity().OwnsMany(a => a.defs, a =>
{
a.HasForeignKey(b => b.AbcId);
a.Property(b => b.Id).HasDefaultValueSql("newid()");
a.HasKey(b => new {
b.AbcId,
b.Id
});
});
The IDs for each are GUIDs, in case that's relevant. When I run the Add-Migration command, I use the following:
Add-Migration Initial -StartupProject SampleBuilder -Project Data.Abc -Verbose
This runs without issue and produces _Initial.cs, _Initial.Designer.cs and MyContextModelSnapshot. There is nothing flagged as wrong in _Initial.cs, but when looking at _Initial.Designer.cs, I see the following (names changed, of course):
modelBuilder.Entity("ABC", b => {
//...
b.OwnsMany("DEF", "DEFs", b1 => {
b1.Property("AbcId");
b1.Property("Id")
.ValueGeneratedOnAdd()
.HasDefaultValueSql("newid()");
b.Property("GhiId");
b.HasKey("AbcId", "Id");
b.HasAlternateKey("Id"); //When attempting to build or update the database, I get an error that "CollectionOwnershipBuilder" does not contain a definition for "HasAlternateKey".
b.ToTable("DefTable");
b.HasOne("ABC")
.WithMany("Defs")
.HasForeignKey("AbcId")
.OnDelete(DeleteBehavior.Cascade);
});
//...
});
I see exactly the same thing in the MyContextModelSnapshot.cs file and the same error.
I attempted to remove the migration and that worked fine. I re-added it and the same thing happened. It only occurs in that one spot and I haven't experienced this in any of the other many owned types in this or other DbContexts.
If you are seeing an exception, include the full exceptions details (message and stack trace).
CS1061	'CollectionOwnershipBuilder' does not contain a definition for 'HasAlternateKey' and no accessible extension method 'HasAlternateKey' accepting a first argument of type 'CollectionOwnershipBuilder' could be found (are you missing a using directive or an assembly reference?)	Data.Abc<PHONE_NUMBER>5516_Initial.Designer.cs	432	Active
CS1061	'CollectionOwnershipBuilder' does not contain a definition for 'HasAlternateKey' and no accessible extension method 'HasAlternateKey' accepting a first argument of type 'CollectionOwnershipBuilder' could be found (are you missing a using directive or an assembly reference?)	Data.Abc	MyContextModelSnapshot.cs	430	Active
Here are the classes and their relevant bits:
public class ABC {
public ABC(//Lots of parameters) {
//Lots of property setting
}
private ABC(){}
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid Id {get;set;}
public List DEFs {get;set;} = new List();
}
[Owned]
public class DEF {
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid Id {get;set;}
public Guid AbcId {get;set;}
}
Further technical details
EF Core version: 2.2.4
Microsoft.EntityFrameworkCore.Design: 2.2.4
Database Provider: Microsoft.EntityFrameworkCore.SqlServer: 2.2.4
Operating system: Windows 10 x64 Pro
IDE: Visual Studio 2019 Pro Stable channel, 16.0.3

Of course, all of 5 minutes after I wrote this up and posted it, I discovered why this was happening, but I still think it should be attributed to buggy behavior.
Shouldn't use the two attributes on the key in the Owned entity. Putting [Key] and [DatabaseGenerated] on the Id introduces this issue for each owned entity you add them to.
Instead, of simply building a migration that can't be used, I'd instead expect to see the migration creation fail indicating that you can't use the Key attribute on OwnsMany subjects (maybe yet) and that the key(s) in the relationship should only be specified in OnModelBuilder.


Added terraform files

JIRA link
ROC-9706
Change description
Added terraform files for infrastructure
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x ] No

What do you need infra wise here? Does this frontend application need infrastructure? (as you aren't adding any in this PR)

for now we don't need but in the next stages we will.

for now we don't need but in the next stages we will.

what are you planning to add?

for now we don't need but in the next stages we will.

what are you planning to add (out of interest)?

@timja we anticipate we will be adding key vault resources like secrets and application variables, if by infrastructure you mean items like a database for example, then we don't anticipate this will be needed

not sure why you are updating this, you aren't using the terraform at all

we created a shared infrastructure for civil, now we will use that one.


add margin to prevent overlap of kbd elements when stacked

As referenced in DESSYS-117, kbd elements get crammed when stacked by a line-break.
Here's what it looks like with the additional margin:

Converting this to a draft so we can settle questions about line height. Also, I'm not particularly wedded to the new example.


[Request] State colours for toggles

Love this theme, but I can't use it because the state colour for on and off seem to be the same. Would be great to have a different colour for off so that the icons can properly tint when you toggle states.

Can you explain what you mean? Maybe a screenshot even?
Are you talking about toggles? Because for me that do have two different colors

Can you explain what you mean? Maybe a screenshot even?
Are you talking about toggles? Because for me that do have two different colors

Sure, I should have been more explicit sorry. It's for button cards and full icon state display of automations/groups only. It looks like most other entities represent on/off correctly.
Steps to reproduce:

Add button card selecting an automation or group domain entity
Toggle on/off
Note that state colour does not change

Sure, I should have been more explicit sorry. It's for button cards and full icon state display of automations/groups only. It looks like most other entities represent on/off correctly.
Steps to reproduce:

Add button card selecting an automation or group domain entity
Toggle on/off
Note that state colour does not change

cool! will try to debug this this weekend and hopefully add a fix

cool! will try to debug this this weekend and hopefully add a fix

I just setup this theme last week and have the same problem. I was not sure if it was just how it was made or a bug, but state colors do not change when the states change. I have double checked I have the setting on in Lovelace. If I dim a light, the light icon will dim, but if motion is detected, the color will not change.
Again, not sure if bug or not. I would like to change the color baed on state if there is a way.

I just setup this theme last week and have the same problem. I was not sure if it was just how it was made or a bug, but state colors do not change when the states change. I have double checked I have the setting on in Lovelace. If I dim a light, the light icon will dim, but if motion is detected, the color will not change.
Again, not sure if bug or not. I would like to change the color baed on state if there is a way.

@brumfieldtate talking about the same card @trankillity talked about? can you send me what card you're talking about?
I'll try and check your scenario on the weekend as well

Thanks for the response. My Mistake I should have specified. I was referring to the glance card. Here is an image. As you can see the icon does change based on state but color does not. Not sure if this is a bug or not. Same goes as for Button cards, I have lights that when on, the color/icon does not change.
Thanks

@brumfieldtate talking about the same card @trankillity talked about? can you send me what card you're talking about?
I'll try and check your scenario on the weekend as well

Thanks for the response. My Mistake I should have specified. I was referring to the glance card. Here is an image. As you can see the icon does change based on state but color does not. Not sure if this is a bug or not. Same goes as for Button cards, I have lights that when on, the color/icon does not change.
Thanks

Yes PLEASE! i also would like this feature to be supported...
this is a screenshot of what it means:
Bulbs turned ON are yellow, the ones turned OFF are that blue color

Yes PLEASE! i also would like this feature to be supported...
this is a screenshot of what it means:
Bulbs turned ON are yellow, the ones turned OFF are that blue color

Same here.
I wish this bug could be resolved ASAP.
So beautiful theme!
Thank you for sharing it. @Thatkookooguy

Same here.
I wish this bug could be resolved ASAP.
So beautiful theme!
Thank you for sharing it. @Thatkookooguy

@brumfieldtate @trankillity @anubisg1
I solve this problem on my own.
Just change the color '#FFF' to 'rgba(255, 214, 10, 1)' in 'state-icon-active-color:'.
state-icon-active-color: rgba(255, 214, 10, 1)

@brumfieldtate @trankillity @anubisg1
I solve this problem on my own.
Just change the color '#FFF' to 'rgba(255, 214, 10, 1)' in 'state-icon-active-color:'.
state-icon-active-color: rgba(255, 214, 10, 1)

yeah, it's even commented there :D

yeah, it's even commented there :D

lol sorry, guys! I had a rough couple of weeks so didn't have a chance to check this out.
thx @charis0728 for finding the problem! I'll fix it right now

lol sorry, guys! I had a rough couple of weeks so didn't have a chance to check this out.
thx @charis0728 for finding the problem! I'll fix it right now


add reset function

Add a Reset Function :

Clear the existing force initializing setup
   char k= ioctl(m_device_handle, EVIOCRMFF, 0);

Create a new set of setup and upload it to device:

`
struct input_event event;
// init effect and get effect id
memset(&m_effect, 0, sizeof(m_effect));
m_effect.type = FF_CONSTANT;
m_effect.id = -1; // initial value
m_effect.u.constant.level = 0;
m_effect.direction = 0xC000;

if (ioctl(m_device_handle, EVIOCSFF, &m_effect) < 0) {
    std::cout << "failed to upload m_effect" << std::endl;
    exit(1);
}
else{
    std::cout<<"Reset Effect is uploaded with torque:"<<m_effect.u.constant.level<<std::endl;
}

//start m_effect
memset(&event, 0, sizeof(event));
event.type = EV_FF;
event.code = m_effect.id;
event.value = 1;
if (write(m_device_handle, &event, sizeof(event)) != sizeof(event)) {
    std::cout << "failed to start event" << std::endl;
    exit(1);
}`

Once this setup is done, other progress can carry on, and the force feedback is everlasting

Great work, Thx


unable to send the logs to s3 while using aws-elastic-search-plugin

Problem
Unable to send logs to AWS ES and S3 at same time and nothing shows up in logs. At this point of time would like to check AWS ES plugin will support s3? If any inputs highly apperciated
Td-agent version : 2.5.x
Infrastructure > AWS ECS > Fluentd Aggregrators (2 instances and load balanced) > ES > Kibana
As we see some lags (5 to 6mins) in logs processing would like to check with adding other output(like s3) to view the logs. Is this right action to take?
Config :
<source>
        @type forward
        @id input_forward
</source>

<filter *.**>
  @type record_transformer
 <record>
    container_id ${record["container_id"]}
  </record>

<match *.**>
        type aws-elasticsearch-service
        logstash_format true
        logstash_prefix ${tag[0]}
        include_tag_key true
        tag_key "Application_name"
        flush_interval 5s

    <buffer>
      flush_at_shutdown true
      flush_mode immediate
      flush_thread_count 8
      flush_thread_interval 1
      flush_thread_burst_interval 1
      retry_forever true
      retry_type exponential_backoff
    </buffer>

        <endpoint>
                url https://vpc-xxxx.aws.amazon.com
                region us-east-1
                access_key_id "xxxxxxxxxxxxxxxx"
                secret_access_key "xxxxxxxxxxxxxxxxxxxx"
        </endpoint>
</match>

OS version - Ubuntu 18.04 LTS
td-agent version : 2.5
AWS ES version - 6.8
fluent-plugin-aws-elasticsearch-service (2.1.0)

dups https://github.com/fluent/fluentd-kubernetes-daemonset/issues/351


Preparation of meeting and guide for usage of reporting components

The following actions are to do, in order to prepare the meeting and the guide:

[x] #250

[x] #251

[x] #252

All the points have been achieved. Issue can be closed.


Issue #66: Reflection Premable, Template and Personal Reflection

https://github.com/r-yeh/grocery-spending-tracker/issues/66

Think your PR header is wrong lol


Improve Readme.md Parameter Content and Consistency - Fixes #148

Changed parameter format in Readme.md to improve information coverage and consistency.
Changed all MOF files to be consistent and meet HQRM guidelines.
Removed most markdown errors (MD*) in Readme.md.

This PR also progresses issue #135 .

This change is

Reviewed 13 of 13 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.

Comments from Reviewable

@kwirkykat , @mbreakey3 , @TravisEz13 - is there any chance I could get one of you to review this PR for me (as I submitted it)?

Thanks @TravisEz13 !


Define layout dynamically

Hi! Is there a way to define layout dynamically by variable or with a ternary expression? I need to change the layout if mobile device is detected.

Hi @Ca4tkin
Could you provide an example of how you would like to set a dynamic layout?

Something like this:
layout: this.$store.state.isMobile ? 'mobile' : 'default'

I am looking for the same solution.
Could you change layout property to a function that receive context, eg:
layout: (context) => context.isMobile ? 'mobile' : 'desktop'

+1 for the dynamic layout switching

+1

Hi Guys!
Can we go further? Is it technically possible to add context to the layouts?
Because of no context now all the conditions needs to be put in the pages.
This causes code duplication in the pages and the layouts are only sufficient for very simple cases.
For example what I would like to do:

switching components depends on the user-agent, user location, language, headers etc
switching components depends on the application state
switching components depends on the external environments variables
switching themes (css) depends on the requested domains (domain.com, domain.fr, domain.de ...)
and so on.

Now all the code I moved to the pages and I don't use layouts at all :(
@alexchopin What do you think about it?

@awronski you can add all of these variables (location, user-agent, etc.) in the nuxtServerInit directly in your global state via the store.
Then, you can access $store everywhere in your layouts, pages and components.
The actual difficulty of setting a layout dynamically was the fact that a layout also have middleware attached to it, but I think I found a way of doing it.

@Atinux
Thanks, it works. I wrote an example. Maybe it will helps someone else:
https://github.com/awronski/nuxtjs-examples/tree/master/mobile-desktop-with-store

Small overview 😄

The 0.10 release it out ✋

@Atinux still unclear how to use it?

@kodekrendel
defined layout function at your vue file in pages folder
// index.vue
export default {
  layout () {
    return checkSomethingYouWant ? 'layout_a' : 'layout_b' ;
  }
}

https://nuxtjs.org/api/pages-layout/#the-layout-property

@ausir0726 thanks, will try, but lack of examples is frustrating.

@kodekrendel see https://github.com/nuxt/nuxt.js/tree/master/examples/dynamic-layouts

I saw that example, but it's not informative for me:
  asyncData ({ req }) {
    return {
      name: req ? 'server' : 'client'
    }
  }

You should check this line: https://github.com/nuxt/nuxt.js/blob/master/examples/dynamic-layouts/pages/index.vue#L10

And live demo is broken by the way - https://nuxt-custom-layouts.glitch.me

@Atinux hm, I didn't saw that.
This is confusing - https://nuxtjs.org/examples/layouts/

Note that on https://nuxtjs.org/examples/layouts/ you don't have this lines

Yes, there is 2 examples: custom-layouts and dynamic-layouts, the live example and the documentation example use only custom-layouts.

See the live examples:

Custom layouts: https://glitch.com/edit/#!/nuxt-custom-layouts (demo)
Dynamic layouts: https://glitch.com/edit/#!/nuxt-dynamic-layouts (demo)

@Atinux tnx. Also first example with error TypeError: Cannot read property 'req' of undefined

@kodekrendel
that because 0.10.0 have breaking change ,
should change data to asyncData

Fixed @kodekrendel @ausir0726

Ok, But what if I don't want to change whole layout, but some styles in components? Is there's the way to do that?
For example. I have Header Component with white background. When I go to /some-page I want Header with black background. How to do that the best? Note, that this Components are from default.vue layout, so I can't assign a simple CSS class for this, since I doesn't import Components in every page manually.
Not sure if it's related to topic, but still curious about the options.

You can $watch the route and update the CSS classes applied, you don't need to use custom layouts for this @kodekrendel
I recommend you to carefully read the Vue.js and Vue-router documentation :)

@Atinux I want to split the layouts to layouts/desktop/* and layouts/mobile/*.
I did a change in an /pages/index.vue which points to layouts/desktop/mainpage.vue if user agent is desktop and layouts/mobile/mainpage.vue if user ager is desktop. The problem is that it does not work. simply my pages/index.vue looks like this:
<template>

 hello there

</template>

In my layouts I got folders /desktop /mobile in which I want to store my layouts according to type of content. The problem is that the when I put my mainpage.vue layout in layouts/desktop nothing renders, but when I put mainpage.vue in /layouts and then I change
pages/index.vue like so
<template>

 hello there

</template>

it works correctly.
It seems that layouts should not be nested in folders. Is there a quick fix for it? I dont want to name my layouts like mainpageMobile.vue I would rather keep those files in separate folders.

Hi, is there any possibility to set the layout in middleware based on the route.
my some or pages will be always /admin/anything and some are domain.com/page
so for /admin/anything I want to use a different layout. this is currently possible by adding layout in each page but I want to set it once in middleware and it should be accessed automatically.

I have 4 or more different layouts. How would I set the layout dynamically to any one of the four based on a single variable ? The above allows for 2 layouts and I am struggling to implement it for more layouts. Any help would be greatly appreciated


Potential lock rows error

Hi Doug,
I was thinking about this class
https://github.com/DouglasCAyers/sfdc-add-campaign-members-by-report/blob/master/src/classes/AddCampaignMembersByReportSchedulable.cls
It could theoretically call 5 settings at the same time and then they all start 5 batch jobs. Since 5 batch jobs are running on maybe the same campaign they could theoretically hit lock rows if there are process builds or triggers on the campaign that get fired.
Is there a way to chain batching so that it queues each setting one by one and on the finish method it checks for the next? It could mark each setting to update, on batch finish unmark and call the next one until none are left.
I don't know the best approach.

That's a good point. I wasn't expecting anyone to have multiple reports feed into the same campaign. What would the use case be that you would need multiple reports to feed into same campaign?

It just seems feasable. Sometimes campaigns are used for segmenting. So in theory if i wanted a high priority list it could involve contacts with certain annual revenue. Opportunity contacts on big deals and promising leads. Three reports adding to the same campaign
It also is potential on my declarative scheduler user cases. The could schedule three different actions on the same record which could fire at the same time

For current workaround, I recommend scheduling the report subscriptions to occur on different hours if they would sync to the same Campaign record.


Translation result of Hooks FAQ by dummyeuy with minor revisions

Translating content/docs/hooks-faq.md by dummyeuy with minor revisions
Referenced from this https://github.com/reactjs/id.reactjs.org/issues/1#issuecomment-538836217

Dear @resir014 my latest commit as you can see on https://github.com/reactjs/id.reactjs.org/pull/123/files/b293ec3a432e9bd035f16b07b719b873d108c2e0 is up. This is according to your feedback today (11.00 A.M, Oct 25).
I don't need to create new pull request, right?
Thank you

@dummyeuy You do not need to close the pull request, as you can continue making changes here until everything is good.

@dummyeuy You do not need to close the pull request, as you can continue making changes here until everything is good.

Do I need to reopen this pull request?

Yes.

Before I reopen this PR, do I have to close this JSX-in-depth PR or wait for that JSX-in-depth PR merged then reopen this one?

If you don't know how to remove the commit history to delete the Hooks FAQ file, then you can just close that PR and reopen. I'll only merge completed PRs.

Yes.

@resir014
Before I reopen this PR, do I have to close this JSX-in-depth PR or wait for that JSX-in-depth PR merged then reopen this one?

Before I reopen this PR, do I have to close this JSX-in-depth PR or wait for that  JSX-in-depth PR PR merged then reopen this one?

If you don't know how to remove the commit history to delete the Hooks FAQ file, then you can just close that PR and reopen. I'll only merge completed PRs.

I've already closed Hooks API PR and I can't reopen the PR because of the JSX-in-depth PR is still open -not merged yet

Excuse me @resir014   , do I have to make a change in this PR too?
*I've just reopened this PR

@dummyeuy I'm not sure I understand your question 😅 What do you mean by that?

@dummyeuy I'm not sure I understand your question 😅 What do you mean by that?

@resir014 I mean "do I have to make some changes to this PR? because I'd closed this PR before - now I've just reopened this PR"

@dummyeuy

do I have to make some changes to this PR? because I'd closed this PR before - now I've just reopened this PR

Yes. However, on a1a815e04ee822d040f830bc1bbddc5aeb636ed5, I see that you've deleted your work on the Hooks FAQ page and replaced it with the merged translation from the other PR (JSX in-depth). I don't understand what you're doing here 😅

@dummyeuy

do I have to make some changes to this PR? because I'd closed this PR before - now I've just reopened this PR

Yes. However, on a1a815e, I see that you've deleted your work on the Hooks FAQ page and replaced it with the merged translation from the other PR (JSX in-depth). I don't understand what you're doing here 😅

Hello @resir014 , I brought back my deleted work on Hooks FAQ before the JSX-in-depth PR.
You may check it out and review the translated version of Hooks FAQ on my latest commit
Thank you

Thank you @resir014  for your review and suggested changes.

I have removed all italicization of abbreviations of names (e.g. API, DOM)
I have removed all spaces between all of the spaces between the language name and line numbers

Please kindly review my latest commit :)
Thank you again

All suggested corrections are applied, and the headings & table of contents are also updated.
Merge conflict's resolved.


Custom element doesn't exist: ztm_stop_card

HA 0.115.6
HACS 1.6.0
Integration installed from HACS but it doesnt work:
Custom element doesn't exist: ztm_stop_card.
type: 'custom:ztm_stop_card'

Either path is wrong or some bug in integration because /www/community/ztm_stop_card/ztm_stop_card.js path doesn't exist after installation. There's /www/community/ztm-stop-card/ztm-stop-card.js insted but changing custom:ztm_stop_card to custom:ztm-stop-card in lovelace card doesn't work.

Uninstalled/installed again and now it works fine with custom:ztm-stop-card

My bad, I was fixing #3
Installation with HACS works

Please check your Lovelace resources, if you have it configured correctly


feat: improve the GitHub push UI

Key Enhancements
Redesigned Push Interface

Modernized the push UI with a clean, responsive layout
Incorporated clear instructions and guidance for the user
Added real-time feedback for push status and progress

Screenshot

cool

Looks good!


Off-by-one in calendar dates

As discovered by @ara4n,
Starts on the right day but missing last day of the month (August should have 31 days)

Interestingly, it has the proper amount of days for me:

Reproducible with a London timezone which can be emulated with devtools -> Open the console drawer (press escape) -> Sensors (can be shown via the 3 vertical dot menu) -> Location

Fixed via https://github.com/matrix-org/matrix-public-archive/pull/86
This was a problem for any time zone greater than UTC+0


feat: Read PCIE AER counters class/net

Linux provides AER counters in the path /sys/class/net//device/
This is split amoung 3 different files:
aer_dev_correctable
aer_dev_fatal
aer_dev_nonfatal
I would like to merge up this functionality since I would like to extend the node exporter to be able to report AER statistics and I wanted to follow the same pattern as the other class/net counters

https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-pci-devices-aer_stats has more information about these counters


Crash when placing railcraft poor ore in a Mill

When I put poor ores from railcraft in a mill, I get this crash:
https://pastebin.com/JqNjCWgu

#388

Ah thanks


Update lightGBM model builder example for LGBM v4

Description
Some changes in API occurred after updating LGBM from v3 to v4 https://github.com/intel/scikit-learn-intelex/pull/1465.
Update the example to fix the problems.

/intelci: run


[Enhancement Request] Enhance the output of the "show failpoints" SQL.

Background

When using the "show failpoints", users can only see whether a particular failpoint is enabled or not. For unfamiliar failpoints, users need to read the code to understand how to enable them.
Proposal

To address this, an additional column can be added to illustrate what values each failpoint can inject, making it more convenient for users to utilize failpoints.

LGTM


refactor signing release images

Summary
the new version of ko output in the imagerefs file all the images generated, before was just the main one and now we need to sign a bunch of images, and that can cause some timeout
this PR tries to address this by splitting each ko build in their one session of signing :)
test locally and that works without problems
failure: https://github.com/sigstore/scaffolding/actions/runs/3101190107/jobs/5024860282

merging


when vscode restarts with a remote file in the active tab, it would never resync with the remote source.

Development environment used

Z Open Editor version:
Editor Platform

[*] Visual Studio Code
[ ] Red Hat CodeReady Workspaces
[ ] Eclipse Che
[ ] Standalone Theia

Editor Platform Version: last stable
Operating System (on which VS Code runs such as Windows 10 2004, otherwise name and version of platform such as OpenShift v4.3): debian bookworm stable
Java Version (when using VS Code or Theia, execute java -version and paste the details here): OpenJDK 64-Bit Server VM (build 17.0.12+7-Debian-2deb12u1, mixed mode, sharing)
[ ] Related to RSE API?

RSE API Plugin version:
Zowe CLI version:
Node.js version:

Logs attached (see here how to get them): yes/no

Problem Description
Detailed steps for reproducing the problem:

First step

Observed behavior

opened a few files from the mainframe, and one of them should be in the active tab.
turn off linux with vscode abruptly. don't know whether it should be abruptly, but probably the secrets holding daemon should be down to prevent auto reconnection.
open vscode.
the previously open files will load from the extension's cache.
the following problem will show:
[{
"resource": "/home/alex/.vscode/extensions/zowe.vscode-extension-for-zowe-2.18.0/resources/temp/D/zosmf/Z55367.CBL(CBLDB23).cbl",
"owner": "zowe-explorer",
"severity": 8,
"message": "File content is out of sync with zosmf: Z55367.CBL(CBLDB23)",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 137,
"endColumn": 1
}]
this is the active file, but files in the other tabs get open the same.
open the zos explorer
open the filtered data sets.
the files open in the other tabs silently sync, while the one in the active tab does not.
i did try to reopen the file in the editor and even pull the same file from the mainframe, with no success.

now i see that i was complaining about the smaller problem:

when just closing vscode without closing the secret daemon, all the remote files show "the editor could not be opened because the file was not found".
i can go to the file in the explorer and pull it from the mainframe. this works for every file, even for that active one i couldn't pull in the daemon restart situation.

Expected behavior

i would like all the files to be resynced with the mainframe, either automatically as the files in inactive tabs did when the explorer got loaded and the secret daemon restarted, or at least manually as connection may be lost at any time even without restarting linux.
it should probably work as the temp file is the version in the editor, while the file on the mainframe is the last saved version on the disk, and give the programmer the opportunity to see unsaved changes.
to ease the manual reloading of the files, i'd ask the pull from the mainframe action to be available in the context menu of the tab label, so the programmer wouldn't have to recollect all the datasets in the explorer.

Did you check the zowe.files.temporaryDownloadsFolder.cleanup setting? We had the "security" requirement that when Z Open Editor shuts down that there should be no source files left on the local system, so all temporary downloads will be cleaned up at shutdown and startup (in case the editor crashed). With this setting you can prevent the cleaning part.
However, for Zowe Explorer v3 temporary file storage will be replaced with a new mechanism using vscode.FileSystemProvider. Will update here with more details once I collected them all, however, this is definitely a discussion for the Zowe Explorer team and less Z Open Editor.

Thank you peter for your answer.
the files surviving the security cleanup you mentioned are exactly
the files that vscode have saved to the temp location,
but didn't make it to the z.
so i think it's good the file wasn't deleted, and the user should have
a chance to review the changes from the version on the mainframe.
otherwise, we'll be an accomplice with the crash.
On Mon, Sep 16, 2024 at 10:50 PM Peter Haumer @.***>
wrote:

Did you check the zowe.files.temporaryDownloadsFolder.cleanup setting? We
had the "security" requirement that when Z Open Editor shuts down that
there should be no source files left on the local system, so all temporary
downloads will be cleaned up at shutdown and startup (in case the editor
crashed). With this setting you can prevent the cleaning part.
However, for Zowe Explorer v3 temporary file storage will be replaced with
a new mechanism using vscode.FileSystemProvider. Will update here with more
details once I collected them all, however, this is definitely a discussion
for the Zowe Explorer team and less Z Open Editor.
—
Reply to this email directly, view it on GitHub
https://github.com/IBM/zopeneditor-about/issues/440#issuecomment-2353785719,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABER7AIIQ7NU44TBMFMFLCDZW4ZBJAVCNFSM6AAAAABOE4VYWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJTG44DKNZRHE
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
alex

Zowe Explorer 3 is now available and it reloads the contents from the remote location after restart.


Add js files in package manifest

#83 problem could be solved adding the js files through the manifest. The sdist package contains all the files needed after this commit.

Confirmed that https://pypi.org/project/terminado/0.9.2/ has the files.

Confirmed that https://pypi.org/project/terminado/0.9.2/ has the files.