Unexpected token in Parser

I want to know why I'm getting this error; unexpected token elif Python(parser-16) ?

Please provide a screenshot or the code that shows this behavior. This is a syntax error, and typically means that you're missing something before the elif keyword.

I'm working on this problem; will update if it is not a syntax error.


v2.15.0 docker image print error messages like "Unable to register cuDNN/cuFFT... factory "

Issue type
Bug
Have you reproduced the bug with TensorFlow Nightly?
No
Source
binary
TensorFlow version
2.15.0
Custom code
No
OS platform and distribution
ubuntu 18.04
Mobile device
No response
Python version
No response
Bazel version
No response
GCC/compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current behavior?
$ docker pull tensorflow/tensorflow:2.15.0-gpu
$ docker run -it --gpus all tensorflow/tensorflow:2.15.0-gpu
$import tensorflow as tf
2024-02-18 02:43:26.283147: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-02-18 02:43:26.283204: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-02-18 02:43:26.283926: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-02-18 02:43:26.289011: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
>>> print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))
Num GPUs Available:  8

I tried some examples and it worked. But why this error messages show?
Standalone code to reproduce the issue
Ubuntu 18.04 nvidia-driver 535.104.12

Relevant log output
No response

Hi @fancyerii ,
Thanks for reporting.Its known issue.It seems this might be due to duplicate registry AFAIK. Though its logging an error it seems the GPU works fine.In your logs also the GPUs also detected and it will not affecting the execution. Could you confirm whether there is a problem with execution of your code?
Same issue was discussed in #62002, #62075.May please refer for more responses there. Thanks!

CC: @learning-to-play

@fancyerii , Just to verify please cross check whether cudnn_version: 8 & cuda_version 12.2 are there or not using the code below.
from tensorflow.python.platform import build_info

print("cudnn_version",build_info.build_info['cudnn_version'])
print("cuda_version",build_info.build_info['cuda_version'])

@SuryanarayanaY , I'm having the same problem as the OP on latest-gpu, just run your recommended cross check and am getting:
>>> print("cudnn_version",build_info.build_info['cudnn_version'])
cudnn_version 8
>>> print("cuda_version",build_info.build_info['cuda_version'])
cuda_version 12.2

So you're saying I just should ignore the "unable to register..." then? There are the only reason I at all went through the trouble of attempting to use Docker images... I'll revert back to my native install then. Thanks.
Note: lines starting with "E" tend to be interpreted as "errors", I guess, i.e. possibly blocking problems. I guess this makes this issue quite a serious one.

In fact, there is one more difference for me between native and Docker. With native, I am also getting:
W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT

And that seems to be fixed by neither a regular nor a local pip install of tensorrt and friends. So I guess the Docker image still has an added value for me. Unless there is an obvious fix for the local TensorRT problem (I am installing TensorRT according to NVIDIA's instructions as far as I know)?

same problem here :(

Same issue. Not only for v2.15.0-gpu-jupyter docker, but also for v2.14.0-gpu-jupyter docker.

The same problem persists for 2.17. I can't say for sure whether it affects performance since the error was there from the start and I have nothing to compare it to.


Remove "clever" decoding from _sanitizePath

I had previously updated the ImgixClient._sanitizePath() method in an attempt to be clever and properly handle pre-encoded paths. This introduced unnecessary complexity into the method (detemining whether or not a given string is unencoded, sorta pre-encoded, or fully pre-encoded is trickier than it seems at first glance) and introduced stupid bugs into its base use-case.
Having failed my attempt at cleverness, I am suitably chagrined. This PR removes all code dealing with pre-encoded paths from ImgixClient._sanitizePath() so it only handle non-encoded inputs. Our README has instructed users to only pass in non-encoded data from the start:

Whenever you provide data to imgix-core-js, make sure it is not already URL-encoded, as the library handles proper encoding internally.

This also fixes #28, and includes a new test case to ensure non-URL paths with spaces are handled properly.
@oaleynik Would you care to review these changes for me?

@jayeb thanks for fixing that! I guess the problem we had previously in #7 was due to the use of encodeURIComponent for the path part instead of encodeURI. encodeURI should be handling reserved characters appropriately (per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI), so I think this is good to go.

I'll be releasing this as 1.1. While this is sort of a patch-level change in that it's fixing a bug, it is technically changing the interface of ImgixClient._sanitizePath(). Even though it's changing the interface to more closely match the documented behavior, I'd rather push this as a minor-level change just in case someone somewhere had an implementation that was dependent on the non-documented behavior of that method.

@jayeb that makes perfect sense. Thanks again for fixing this quickly! 🤘🏻

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

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add background to pure white icons

This PR contains work related to issue #1731

I extended the shared logic with "isBright"
I added the switch to the iOS UI logic

What I did not do is add the logic to macOS. I think @Wevah is in charge here?

This PR features an issue I wasn't aware of. I'll notify you once I fixed it.

Done.


Directly open a plain full size image when opening the editor via the tray-icon

Directly open a plain full size image when opening the editor via right click on the tray-icon.

Done :^).
The editor now opens a new empty white image sized by width / 2 and height / 2.
The old behaviour can still be used though, by this config option in file:

There is no config window option for this just yet. Would we want this @KiwiKaiser ?


Error when adding a Request Body to a Post Request

Hello,
I'm having trouble with adding a request body to a post request. When I add the request body and load the Swagger docs page on my localhost, I get a console error:
Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code.

I haven't modified the default docs.ts file in /api or the api-doc.tsx shown in the repo example.
Here's my JSdoc:
/**
 * @swagger
 * /api/admin/users/new-user:
 *
 *   post:
 *     tags:
 *      - Admin
 *     description: Create a new user with a post request
 *     requestBody:
 *       content:
 *         application/json:
 *           schema:
 *             type: object
 *             properties:
 *               name:
 *                 type: string
 *     responses:
 *       201:
 *         description: User created
 *       401:
 *         description: Unauthorized
 *       500:
 *         description: Internal Server Error
 */

This warning is from a React component that has UNSAFE_componentWillReceiveProps. It's not related to next-swagger-doc. I guess that's coming from react-swagger-ui 🤔 Could you please check the console warning stack? Thanks.


Connect Timeout and TLS example

Dan:
Any chance you could provide an example of the Timeout and TLS parameter on connect()?
I started a Timeout issue, but they instructed me to post here.
Here is the link:
https://github.com/rethinkdb/rethinkdb/issues/4800
Nice job with the go driver.
Thanks,
md

Hi @mdmdmdmd!
The issue with the timeout should now be fixed in the most recent version (released yesterday). If not let me know and I will have another look.
Regarding TLS parameters the driver accepts a *tls.Config field in the ConnectOpts. for example:
const rootPEM = `...`

roots := x509.NewCertPool()
ok := roots.AppendCertsFromPEM([]byte(rootPEM))
if !ok {
	panic("failed to parse root certificate")
}

sess, err := r.Connect(r.ConnectOpts{
	Address: "localhost:28015",
	TLS: &tls.Config{
		RootCAs: roots,
	},
})

Even better, compose just wrote an article on using SSL with RethinkDB and included some instructions about GoRethink. https://www.compose.io/articles/rethinkdb-and-ssl-think-secure


OU-267: add metrics display to plugin views

This PR adds the option to display metrics for log queries:
https://github.com/openshift/logging-view-plugin/assets/5461414/c5e8747c-0da5-418f-bab1-c4ff9dfcd265

/cherry-pick release-5.8


Us/active job

Hello ;
I'd like to collect some feedback about this work in progress that makes the scheduler compatible with active job (rails >4.2).
Actually I'm testing it in production
![Actually I'm testing it in production]
(http://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-01-32-02-metablogapi/7317.image_5F00_0F65063B.png)
FIY:

I bump the version to scheduler 5
the readme is not yet up to date
remove_delayed does not works (and active job used this gem as a queue_adapter for Job.set(wait: tada).

The first issue I see is that this not only makes resque-scheduler compatible with ActiveSupport, it makes it dependent on ActiveSupport (e.g., requiring the job class to respond to queue_name), and I'm pretty sure this is not something we would want to take on; this project has many consumers, and some of them (one of my production setups with hundreds of worker processes included) neither have nor want a dependency on ActiveSupport.

tx @yaauie I'll check how to avoid that... cheers

@mfo bump :smiley_cat:

@meatballhat bumped ( have not digged how to avoid the dependencies since it's not an issue with my project )

@mfo OK :+1:


Cleanup metrics for local cache

Improve metrics counting for put/get/delete operations in LocalCacheManager
separate counting different possible failure reasons with different counters

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-PR-Builder/10932/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-PR-Builder/10933/
Test FAILed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-PR-Builder/10941/
Test PASSed.

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to master please

alluxio-bot, cherry-pick this to branch-2.3 please


Is it possible to set the max output power?

thank you very much for the great work. it works perfectly on my Deye SUN-M200G4-EU.
Is it possible to set the max output power via the node?
Thank you very much

Would be nice indeed if we can change the max output with the node, so we can easy make an automation


[Feature Request] Ability to generate mouse events

I think it would be useful to be able to generate mouse events(mouse movement, mouse clicks etc.) from kmonad
Potential use case: It is conceivable that some people would find it useful to be able to emulate (parts of) a mouse from their keyboard
My use case: I own the Alienware AW958 mouse. It has six side buttons which under linux are detected as a keyboard that inputs the numbers 1..6 (event9 in the attached picture)

I would like to be able to bind those buttons to regular mouse buttons. At the moment I have used some workarounds (for example binding to XF86Forward and XF86Back to replicate the mouse next and mouse prev buttons)
There are probably other ways in which I can solve my particular problem, but I believe that, nevertheless, this feature would be a worthy addition to kmonad
Concluding, I wouldn't mind getting my hands dirty and trying to implement this myself. However, I would need (and highly appreciate) some guidance since I am only familiar with Haskell at a basic level and have no idea how keyboard and mouse events work.
From what I have seen in input-event-codes.h I think that mouse events (even button presses) are treated differently from keyboard button presses. I have found this guide from the official kernel documentation that is probably the answer to how to read/interpret mouse events but I have not digged into it yet, due to time constraints.

Hey there,
That would indeed be a useful addition to KMonad. There are a few difficulties however:

There is no support for this at the moment (i.e., you would need to go deep into the core to add mouse-events)
It'll really complicate cross-platform support, every OS handles event-IO differently, so this would involve implementing the OS-specific code thrice

I'd be very happy to provide any amount of explanation on the structure of KMonad and brainstorm about how to implement such things, but I don't have the time/energy to be the main push behind this initiative.
So in summary: coooool idea, but know what you're getting into. I am definitely around to help, but you're going to have to be the driving force yourself :-)

There is no support for this at the moment (i.e., you would need to go deep into the core to add mouse-events)

Having only taken a look in the Haskell file where key events are defined I had such suspicions

I'd be very happy to provide any amount of explanation on the structure of KMonad and brainstorm about how to implement such things, but I don't have the time/energy to be the main push behind this initiative.

Thank you for offering such help :) . Things for me are not much different at the moment, my free time is very limited, but it sounds like a fun side-project so I may be able to find some free time here and there to play around with this idea.

It'll really complicate cross-platform support, every OS handles event-IO differently, so this would involve implementing the OS-specific code thrice

If I took this on, I would only be considering the linux case. Is not having feature parity for all platforms acceptable for this project?

If I took this on, I would only be considering the linux case. Is not having feature parity for all platforms acceptable for this project?

Yeah, it's fine. I was just trying to surreptitiously rope you into doing some boring Windows dev-work ;-).

Pretty sneaky... I like it :P

for anyone using macos you can achieve mouse controll with hammerspoon
eg. https://github.com/tweekmonster/hammerspoon-vimouse
l am going to try this and see how it feels. It could serve as inspiration for macos devs for the moment until/if this will be implement in kmonad later.

yo I just found this project and it is written in haskell. I am not good enough yet to parse through it quickly but I'll share it.
https://github.com/unclechu/place-cursor-at

there are also these written in C
https://github.com/SalmonChris/KeyboardMouse
https://github.com/Ph0enixKM/Mousepad

linking to list of mouse nav projects https://github.com/kmonad/kmonad/issues/322

Kmonad on Windows  stops most other mouse emulators (NeatMouse, Windows integrated, AHK with MouseMove) from working (plese reply if you found one that works.)
But autohotkey with DllCall("SetCursorPos" works, so here is the script I came up with:
Tap F23 to activate mouse keys
Click (u or o) to deactivate mouse keys
; ======================================================================
; Layer F23 mouse
; ======================================================================
MMove(L:=0, U:=0) {
	Mousespeed := 20
    VarSetCapacity(POINT, 8, 0)
    DllCall("GetCursorPos", "Ptr", &POINT)
    _X := NumGet(POINT, 0, "Int")
    _Y := NumGet(POINT, 4, "Int")
    DllCall("SetCursorPos", "int", _X + L*Mousespeed , "int", _Y + U*Mousespeed)
}

$F23::
	waitfor23 := true
	return

#If waitfor23

$u::
	MouseClick, left
	waitfor23 := false
	return
$o::
	MouseClick, right
	waitfor23 := false
	return
$k::
	MMove(0, 1)
	return
$i::
	MMove(0, -1)
	return
$j::
	MMove(-1, 0)
	return
$l::
	MMove(1, 0)
	return
#If

Everyone interested in this feature might also want to follow following feature request in the kanata repository: https://github.com/jtroo/kanata/issues/108

A possible workaround for now might be trying to leverage Xwindow mouse keys?
https://en.m.wikipedia.org/wiki/Mouse_keys

A possible workaround for now might be trying to leverage Xwindow mouse keys?
https://en.m.wikipedia.org/wiki/Mouse_keys

https://github.com/kmonad/kmonad/issues/322
https://github.com/kmonad/kmonad/discussions/370
https://github.com/manna-harbour/miryoku_kmonad#mouse-keys


Group disappears when you move it to another monitor

Already reported ? *

[X] I have searched the existing open and closed issues.

Regression?
Yes
System Info and Version
 System/Version info
latest git (my hyprctl version is broken since the bisecting party)

Description
Regressor: https://github.com/hyprwm/Hyprland/commit/16a9c16d9f99bd8be9f1bb15442b001fdf2ea759
How to reproduce

Open a tiled group with 2 or more members.
Use the movetoworkspace dispatcher to move it to a workspace on a different monitor.
Change the focus to another group member.
The group member is gone.

Crash reports, logs, images, videos
No response

I have noticed that when moving a group to different monitors and then switching between clients of the group, other clients become invisible until I move the group (with invisible client open) to the original monitor and back again. This must be done for each client.

yeah that is this same bug, I noticed today.

@thejch excuse me, could you please give us a hint of where could be the regression from https://github.com/hyprwm/Hyprland/commit/16a9c16d9f99bd8be9f1bb15442b001fdf2ea759 ?


openapi:ServiceInfo annotation is not working properly for nil values

import ballerina/openapi;
import ballerina/http;

@openapi:ServiceInfo {
    'version: ()
}
service /sales0 on new http:Listener(9505) {
}

In here the ballerina-openapi tool will read the version as string representation of().
It should be null

@SasinduDilshara, Here we have defined this as an optional field, and we are not expecting to have a nil value for this field.
Therefore, shouldn't we provide compiler validation for this on the language side?


pull request for e2e test at 12/03/2016 11:44:59

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Cannot read property 'getPermissionStatus' of undefined

getting this issue on React native permissions 1.0.1 and React Native 0.50
I followed the instructions, ran react native link and added permissions on Xcode
I get this on doing
        Permissions.check('photo')
            .then(response => {
                //response is one of: 'authorized', 'denied', 'restricted', or 'undetermined'
                alert(JSON.stringify(response))
            });

This is copied right from the Readme.md
Screenshot:

same ! can we get any info on this ?

@Aqueelmiq @AdrianBrown1 Did you check if the project was correctly linked?

@zoontek I tried both auto linking and manual linking. I also verified that the xcode project had the associated libraries and files.

I think this issue only happens in react-native 0.50

@Aqueelmiq I just update the example with the latest version of react-native and I can't reproduce the error (check the /example folder). Weird.

@zoontek I just cloned your example app and it seems to work, with the exact same code that I have so I am guessing it's either a conflict with one of my other dependencies or some setup issue, I will look into it. You can close the issue.

@Aqueelmiq I might have solved your problem with RN 0.50. I'm waiting for a npm publish

@Aqueelmiq It's available! https://www.npmjs.com/package/react-native-permissions


Incorrectly generated package-lock.json file in the sdk

Issue
The current version in master incorrectly assumes that we are using NPM 7.
Another issue is that the packages section probably shouldn't be part of the versioned package-lock.json file, because it's always decided/generated during packaging time.
Solution
Regenerate the package-lock.json with NPM 6, without the packages section.

Yes, at some point it became package lock version 2 (back in #19). Agree that it would be better using npm 6 while we're using node 14. We decided to just leave it, and use node 14 with npm 7 when updating it, but I also think it would be easier to convert back.


Imported annotations got misplaced. Weird document margins and intervals between letters

See an example here:
http://dev2.badgerdoc.com/documents/547?jobId=1084&revisionId=7fff14288bd2cd806bdd5df719441827622e1747

PR merged - https://github.com/epam/badgerdoc/pull/315

Steps to reproduce/test:
go to convert swagger, endpoint /label_studio/import.
Launch it with this body:
{
"input_annotation": {
"bucket": "test",
"path": "test_converter/label_studio_format.json"
},
"output_bucket": "test",
"validation_type": "cross",
"deadline": "2024-01-24T11:12:19.549Z",
"annotators": ["45526cca-291a-405e-8234-6088454e18c4", "3675d181-9d31-4d59-91fc-9b24e3a8e486"],
"validators": []
}
Look for the newest document on BadgerDoc UI in "Documents" tab.
See, that annotations are correctly placed on words "27" and "Jerusalem", they are not displaced

Fixed


Some methods won't show its traits on autocompletion (as it should per #7297)

As seen on Changelog #61, #7297 introduced trait information on autocompletion. It works perfectly here (VSCode + Win10), except the following methods won't show its traits:

clone
clone_from
clone_into
into
to_owned

Is it expected?

I think the trait only shows if it's not in scope and would be autoimported, to show that an import will happen :thinking:

I think the trait only shows if it's not in scope and would be autoimported, to show that an import will happen :thinking:

Yes the trait should only show up in the completion text if the completion would import it: https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/completion/src/item.rs#L329-L333
As in it is a hint to the user that this completion will add an import.

Yes the trait should only show up in the completion text if the completion would import it: https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/completion/src/item.rs#L329-L333
As in it is a hint to the user that this completion will add an import.

@flodiebold @Veykril I understand.
Personally, I believe that showing all source traits adds insightful information. I don't know if you guys agree with me, though.

@flodiebold @Veykril I understand.
Personally, I believe that showing all source traits adds insightful information. I don't know if you guys agree with me, though.

When this is added, it might be nice to distinguish somehow the completions where the trait import will be added from the ones that have this trait imported already: those are different kinds of completions under the hood and it helps debugging different issues with them.
If somebody wants to add the labels, this can be done the following way:
We need to adjust render.rs module and all the places where the associated items that have traits are rendered into completion items.
You can search for is_deprecated_assoc_item method usage: it's used in render.rs and 3 submodules: const_.rs, function.rs and type_alias.rs to add the deprecation flag into the completion associated items who have the deprecated trait.
So in all those places you can already get the information whether some trait is associated with the item or not.
When you have it, all that's left is to add it into the completion item's label and maybe adjust the lookup text, similar to the code linked in the message above
To get the trait path to the label, you will need to call find_use_path method on it, but we need the module for this, since the module paths are different depending on which module we're looking them from.
The module can be retrieved from the CompletionContext's fields.
After that, tests can be added into completion modules: https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/completion/src/completions/dot.rs and https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/completion/src/completions/qualified_path.rs to ensure that we actually display trait paths in all completion cases.

When this is added, it might be nice to distinguish somehow the completions where the trait import will be added from the ones that have this trait imported already: those are different kinds of completions under the hood and it helps debugging different issues with them.
If somebody wants to add the labels, this can be done the following way:
We need to adjust render.rs module and all the places where the associated items that have traits are rendered into completion items.
You can search for is_deprecated_assoc_item method usage: it's used in render.rs and 3 submodules: const_.rs, function.rs and type_alias.rs to add the deprecation flag into the completion associated items who have the deprecated trait.
So in all those places you can already get the information whether some trait is associated with the item or not.
When you have it, all that's left is to add it into the completion item's label and maybe adjust the lookup text, similar to the code linked in the message above
To get the trait path to the label, you will need to call find_use_path method on it, but we need the module for this, since the module paths are different depending on which module we're looking them from.
The module can be retrieved from the CompletionContext's fields.
After that, tests can be added into completion modules: https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/completion/src/completions/dot.rs and https://github.com/rust-analyzer/rust-analyzer/blob/master/crates/completion/src/completions/qualified_path.rs to ensure that we actually display trait paths in all completion cases.


Store Locator updated Figma

Here is the updated Figma!
They have updated the Store Locator page in Figma to show the typographic treatment for State and Region.
Once more States are added in, they should be +/- (expandable/contractable) like the FAQs.
https://www.figma.com/file/Jr8rxQz2auN40K3DBvu88mgg/Live-Resin-Project-Site?node-id=2597%3A2147

This is updated. Please check

Looks great!


bugfix - Button Border

Summary

Fixed issue where a buttons default border setting could not be changed.

Testing Steps

[ ] Confirm you can set the border of a button component:

$component-button-properties: (
  ...
  border: solid 1px map-get($theme-properties, primaryColor),
  ...
);

Issues/Concerns

I think I have the labels right for this, but please let me know other wise

This uses the "minor" label, which will increment the minor version in the draft release to 2.2. I don't think that is necessary for this change. This could be omitted or changed to "patch".

I like the idea of always using a label, I will change it to patch as that makes sense to me

Also, we should merge this change into "master" (which should probably be renamed to "2") as well. Then we could start a "2.0" branch off of master ("2"), to release this patch for sites that still use compass syntax. Then we could merge the dart syntax (2.1 changes) into master ("2"), and rebase the "3" branch on top of it, so the dart sass changes carry over into the next major release.

So this makes sense, we should look into some sort of automations here. So maybe at the very least, once the original PR is approved and merged into it's intended branch, we auto create PRs to be merged into the correct branches. (Something like this would make things a bit easier/automatic, but not sure the best approach though.
Also, shouldn't  we have set the dart stuff to 3.0 instead of 2.1? I feel like that is a major change
Moving forward, I think we should site down and determine all the branches for this haha

@aletail
This all looks good!

So this makes sense, we should look into some sort of automations here. So maybe at the very least, once the original PR is approved and merged into it's intended branch, we auto create PRs to be merged into the correct branches. (Something like this would make things a bit easier/automatic, but not sure the best approach though.

That's a good idea. Maybe when a PR is merged with a "patch" label, we create PRs for both the major branch (in this case, the master (2) branch) and every previous minor branch within the same major version (in this case, the hypothetical "2.0.x" branch). If the PR has a "minor" label, we create a single PR into the major branch (in this case, the 2.1 dart sass changes are set to merge into master (2), but not the "2.0.x" branch).

Also, shouldn't we have set the dart stuff to 3.0 instead of 2.1? I feel like that is a major change

I didn't see this as much of a major change. We could have assumed that a majority of people might have used the webpack sass-loader, which works with dart sass syntax (and the deprecated compass syntax too, only with warnings). The sass also functions in the same way, and it is easy to switch out the compass compiler for the dart sass one on a site. That being said, I do believe the dart sass syntax does belong with the next major version, but releasing this minor version lets us use it now. The maintainers of this repo also considered this to be a "minor" feature https://github.com/jonsuh/hamburgers/compare/v1.1.3...v1.2.0

I think for simplicity - I am going to create a separate tasks to update the branches here. This will just be merged into 2.1 for now

@tiller1010 Do we need to manually bump the version number in package.json? If so, what do we bump it too?

@aletail

@tiller1010 Do we need to manually bump the version number in package.json? If so, what do we bump it too?

No, this should draft a "2.1.1" release and that will be inserted into the package.json https://github.com/werkbot/framewerk/blob/2.1/.github/workflows/draftrelease.yml#L38


box-sizing best practice

Reading reboot.css, I saw you set box-sizing using
*,
*::before,
*::after {
    box-sizing: border-box;
}

instead of
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

Even if in most cases the first version would works fine, the second one allows devs to reset box-sizing for components designed to work in default box-sizing just by setting box-sizing : conten-box on the parent element.
Related article: Inheriting box-sizing Probably Slightly Better Best-Practice

Hi @Dunexus this is smart! (not surprisingly since it's coming from Chris Coyer)

Is * necessary for ::before and ::after?

@yuheiy,  it's not required.   we could save two bytes and just use
*,
::before,
::after {
    box-sizing: border-box;
}

We reverted that approach in #23118 because of #22872.

That approach is widely known. But it is not explicit why it is not being used. I think some comments are necessary in the code.

I'll close this issue for now, let's revisit the idea when chrome fixes the bog. Thanks @Dunexus

Related chromium bug tracker ticket : Box-Sizing does not inherit correctly inside <details>.

Hey, so more on this.  inherit does not persist through shadow roots.  Therefore, the box-sizing is not inherited; therefore the bootstrap grid breaks inside of shadow roots by default.


Update documentation to use cudf version 0.18.1

Update cudf version to 0.18.1, update 3.1.0 to 3.1.1 in two other locations.  Related to fix in https://github.com/rapidsai/cudf/pull/7568 .

build


The Hunger Games promos do not seem to be working

The Hunger Games promos do not seem to be working, even with a country set-up in preferences.

Can you be more specific. Are you not able to click it?

Can you be more specific. Are you not able to click it?

@teolemon Can you please update the issue with expected behavior?

@teolemon Can you please update the issue with expected behavior?

@kartikaysharma01 On clicking it, webview opens but it loads indefinitely. If you are able to reproduce something like this, then I guess this may be the issue mentioned above.


Max Time Distribution Chart Stops at 21:3

Hi, I use goaccess to monitor log traffic,
My log start at 3:30, but somehow, the chart is always stops at 21:3
is there any limitation on the Time Distribution Chart?
++
I'm using --hour-spec=min

Can you please post a screenshot of the issue?

Hi,
as you can see, I capture this at 22:40, with number of hits, 24.336.600

two minutes after that, I capture at 22:42,  with number of hits, 24.366.244,
around 400TPS increment. But the chart is not moving from 21:5 (sorry, last time I mention 21:3).

Having only 50 records on table is ok, but I'm expect it's keep moving forward,

Yes it's not,
so top 50 is order by time or by hit?

It is sorted by hits (as described on the sub header). The only panel it's not is the visitors panel. Should this be as well? Thoughts?

Well, it should be there I think, continuing the chart  till the end of logs record


Add unicode support to pscm

Why

What is changing

Introduce icu4c
Change inner representation of string from std::string to icu::UnicodeString
Change logging system to log with Unicode
Iterate over string with CharacterIterator
Adopt parser to consume Unicode string
Detect character property with icu4c instead of std

What is missing

[ ] Output method of objects and Unicode strings in doctest, since previous operator<< overload is removed
[ ] Miscellaneous error fix
[ ] R6RS tests for Unicode string
[ ] Optimization

Example

make sure pass the Clang Format Diff CI and all xmake CI

compile failed with clang16
#include <variant>
template <typename... Ts>
struct overloaded : Ts... {
  using Ts::operator()...;
};

int main(){
    std::variant<int, double> t;
    std::visit(
        overloaded{
            [](int t){},
            [](double t){}
        },
        t
    );
    return 0;
}

anything wrong?


How to go from here?

Need some guidance and direction where to go from here with mod_auth_openidc.
I got Apache and mod_auth_openidc work, sent request and login to OP (Gluu).
OP (Gluu) sent back the following information on the browser header.
Can you give example on how to gather the tokenID and claims\scopes claim that send back from the openID connect provider?  I am not quite sure how to go about it.
The following strings of information was sent by the Gluu OP server.
https://www.webserver.com/redirect/redirect.html?session_id=3d780f84-0d4a-4a14-9404-1111835e0376&scope=&state=TuZMdWIMasuDsCKZUslBIuEXrBw&code=5091a225-4614-4b74-8522-3dc12cb01c17
As you can see if did not include any claims\scopes.
what is the mod_auth_openidc's syntax and options to request OP to send back all the claims\scopes available for this client?
What I am looking for to do is to capture the returned TokenID, UserID and Claims\scopes information and make decision on how to control my application's access based on those information.   Is this something I can achieve with openid connect?    Perhaps, with some server side language to capture the information and process it (this is where is I am stuck due to not knowing how the information present back from the OP in what form? and in what form the information hold by the Mod_auth_openidc or RP)
Any ideas and hints to go from here will be greatly appreciate.
Thank you.
Y

Use the OIDCScope primitive to configure the requested scopes. You can find out what scopes the OP supports by looking at the Discovery metadata document for your OP, e.g. https://seed.gluu.org/.well-known/openid-configuration has:
"scopes_supported": [
    "address",
    "user_name",
    "email",
    "http://docs.kantarainitiative.org/uma/scopes/prot.json",
    "uma_authorization",
    "uma_protection",
    "http://docs.kantarainitiative.org/uma/scopes/authz.json",
    "openid",
    "clientinfo",
    "myScope",
    "profile",
    "phone"
],

Assuming that your /redirect/ path is setup as the OIDCRedirectURI and it is protected by the module, the module will pickup the id_token and pass the information in there as HTTP headers to your application.

This is what I have defined in the auth_openidc.conf
OIDCScope "email user_name orderV"
Is that a right format and syntax.
Following are what available from Gluu OP:
"scopes_supported": [
"http://docs.kantarainitiative.org/uma/scopes/authz.json",
"uma_protection",
"phone",
"user_name",
"profile",
"orderV",
"openid",
"email",
"uma_authorization",

See the docs from here: https://github.com/pingidentity/mod_auth_openidc/blob/master/auth_openidc.conf#L172
The syntax is correct, but it should also contain the "openid" scope.

Sorry,  this is what I had defined in the configuration:
OIDCScope "openid email iname profile orderV"
Regarding to my previous question, trying to understand how data exchange and presenting.
Would you say that Gluu and Mod_auth_openidc send data back and forth via the HTTP and HTTPs
header?  meaning all data encapsulate within the HTTP or HTTPs header?
If that is the case, I can write or select a language to parse those data from the HTTP or HTTPs header (jason or javascript??).
Am I in the right path on how to tackle this problem?
Thank you so much for your assistance.
Y

Gluu and mod_auth_openidc send data back and forth in HTTP Redirect, POST and backchannel messages according to the OpenID Connect protocol. This is if lesser concern to you. The result is that the verified user identity data is passed in HTTP Headers to you application. If your application is a Java application you can interpret the headers there. The overall functionality is described here: https://github.com/pingidentity/mod_auth_openidc/blob/master/README.md

These are what I have defined in the auth_openidc.conf
Are these the basic requirements to get scopes\claims back from the Gluu provider?
Everything else in auth_openidc.conf are commend out except the following lines:

OIDCRedirectURI https://www.MyWWW.com/redirect/redirect.html
OIDCCryptoPassphrase mypassword
OIDCProviderAuthorizationEndpoint https://idm.MyWWW.com/oxauth/seam/resource/restv1/oxauth/authorize
OIDCProviderTokenEndpoint https://idm.MyWWW.com/oxauth/seam/resource/restv1/oxauth/token
OIDCProviderTokenEndpointAuth client_secret_basic
OIDCProviderUserInfoEndpoint https://idm.MyWWW.com/oxauth/seam/resource/restv1/oxauth/userinfo
OIDCClientID @!C032.849B.2FA5.5E8C!0001!BCB6.4A42!0008!4ACB.875B
OIDCClientSecret 987654321
OIDCScope "openid email iname profile"
<Location /example/>
AuthType openid-connect
Require valid-user
LogLevel debug

I am assuming Gluu OP will passed in http header back to the redirect URI then our application using Java to interpret the header there?
Thank you for clear my lack of understanding.
Y

Suppose to look like these
<Location /example/>
AuthType openid-connect
Require valid-user
LogLevel debug

As documented here https://github.com/pingidentity/mod_auth_openidc/blob/master/auth_openidc.conf#L11, your OIDCRedirectURI must be a "vanity" URL that is protected by the module. So you'd better use:  https://www.MyWWW.com/example/redirect_uri


Amplify Build configuration, Lambda environment variables being overwritten

** Please describe which feature you have a question about? **
Amplify Build Preview
** Provide additional details**
I have previews enabled for my git repo and when I build using the build settings file configured, the build wipes out the existing environment variables for the Lambdas configured for hooks such as PreSignup, CustomMessage...etc. Am I missing something as to how this is supposed to be used?

Hi @timeconsumer , did you follow the instruction here: https://egghead.io/lessons/react-how-to-enable-pull-request-previews-with-amplify-console-hosting

The Previews work, it's an issue with the amplify backend build step. When the build happens, it's like it is unaware of the configuration I've set up for each env. When the amplifyPush command happens, the variables set wind up getting reset i.e.:

Those variables were all set when creating and updating the environment on my local machine. Once the PR happened, they all get reset.

Hi @timeconsumer , we cut a ticket in our team backlog, now it is pending to investigate.

@timeconsumer Hi, I can't reproduce your issue. Would you mind provide your steps that we could replicate? Thanks

Working locally I created 3 environments, dev, staging, prod. They look as follows (This is pulled from the team-provider-info.json file and scrubbed for info):
"dev": {         "awscloudformation": {             "AuthRoleName": "XXXXXXXXXXXX-authRole",             "UnauthRoleArn": "arn:aws:iam::XXXXXXXXXXX:role/XXXXXXXXX-unauthRole",             "AuthRoleArn": "arn:aws:iam::XXXXXXXXXXX:role/XXXXXXXXX-authRole",             "Region": "us-east-1",             "DeploymentBucketName": "XXXXXXXXX-deployment",             "UnauthRoleName": "XXXXXXXXX-unauthRole",             "StackName": "XXXXXXXXX",             "StackId": "arn:aws:cloudformation:us-east-1:XXXXXXXXX:stack/XXXXXXXXX",             "AmplifyAppId": "XXXXXXXXX"         },         "categories": {             "auth": {                 "XXXXXXXXX": {                     "hostedUIProviderCreds": "[{\"ProviderName\":\"Google\",\"client_id\":\"XXXXXXXXX-XXXXXXXXX.apps.googleusercontent.com\",\"client_secret\":\"XXXXXXXXX-\"}]"                 }             },             "function": {                 "XXXXXXXXXCustomMessage": {                     "REDIRECTURL": "http://localhost:8080/",                     "EMAILSUBJECT": "Click this",                     "EMAILMESSAGE": "Click it",                     "resourceName": "XXXXXXXXX"                 },                 "XXXXXXXXXPostConfirmation": {                     "GROUP": "precert"                 },                 "XXXXXXXXXPreSignup": {                     "DOMAINBLACKLIST": ""                 },                 "visionauth": {}             }         }     },
There are 2 other envs that are identical to this (with the exception of names).
I set up gitlab to trigger builds on branches and have tried triggering builds against all 3 environments.
On the dev env, things behave as expected, the values of the params in the functions are the same as if I did an amplify push from my local. If I do the same thing with the staging or production environments, the parameters are overwritten to their default values (empty string). If I were to do an amplify push from my local when on that environment the values go back to their respective environments' configurations. The backend build command that I've used was amplifyPush --simple but I've also tried just about every other configuration that I could possibly think of.

I have the same problem. Is there an update on this issue?

Any update on this! stuck with the same issue

Any updates here? I am still having this issue. It's a bit annoying to have to update all environment variables every time there's a new build

This issue has been resolved.


/video command

Using fuzzy search, allow searching for mCoding videos by their title and/or description.

Would be it worth abstracting the YouTube API now the we need multiple endpoints?

Maybe. Whoever does this is welcome to try. I hate youtubes api and I don't feel like touching it tbh.

All google apis are written in python 2 and have outdated documentation :/


Skip ssl validation if the option is already provided

--skip-ssl-validation -> Skips verification of the API endpoint.
But even though it is set, the option is ignored by the plugin and it continues to require SSL validation.
This PR fixes this behavior and ignores the validation if --skip-ssl-validation is provided during login or API selection.

Another client is only used when fetching the size of the MTA during upload from URL, but I do not think we should deactivate the TLS since it is not related to CF


initializers

Implement initializers and add coverage.
int c = 4;

This change implements scalar initialisers. We will prioritise and track full implementation of intializers later.


Dialog Data Type - Dialog not showing up

I'm trying to create a dialog from a page, but the dialog never show up.
I have created a new page and opened the page directly, then I copy/pasted the example from the How to: Create a Progress Window guide. Now when I click the button to start the dialog, I get nothing but the little spinner on my curser, telling me something is happening.
Is this not working or is it not supposed to work on all types of pages in the webclient?

Is this what are you trying to run? Is the ProgressWindow a global variable?
page 70000009 MyAwesomePage
{
PageType = Card;
actions
{
    area(processing)
    {
        action(ActionName)
        {
            trigger OnAction();
            begin
                ProgressWindow.OPEN('Processing account number #1#######');
                REPEAT
                    SLEEP(1);
                    ProgressWindow.UPDATE(1,ChartOfAcc."No.");
                // Process the account.
                UNTIL ChartOfAcc.NEXT = 0;
                ProgressWindow.CLOSE;
            end;
        }
    }
}

var
    ProgressWindow : Dialog;
    ChartOfAcc : Record "G/L Account";

}

This is what I have done.

Try making it a global variable. The runtime might now support it as a local variable.

That did it, thanks 👍

Actually I just tested with the local variable instead.
It seems that the dialog doesn't show up right away and there might be a 3-5 second delay, I was not aware of, before anything is shown for the user.

I just tried this in our extension, and I can't get it to Work.
Only thing happens is the little spinner on my cursor, telling me something is happening.
What am I doing wrong ? or does this still not Work.

Sorry it does Work, but it takes a LONG time for the Dialog to show.
Will have to make som other solution.


feat: stack arrays (test data in workspace stack_array_stuff)

Arrays on the stack. Stack arrays.

verify:

LGTM 👍 nice work guys :DD

In integer reconstruction code, need to account for:

endianness of system
what data type is being reconstructed (signed | unsigned) (short | int | float | double) etc (signed values require two's complement in reconstruction code)

lgtm


Generate JSON-schema on the fly

Generate JSON-schema based on the data in the JSON-field.
Could be a good base to start with a fixed schema.

Supports

boolean
integer
number
string with formats date, date-time, *time
object
array, properties are determined over all rows

Support of required is not possible.


do not use the 'ng' prefix

It's not good practice as it can conflict with oficial AngularJS modules. You should prefixo it with something eles like your initials 'amdYoutubeEmbed' actually looks good!

Hey @fgarci03
Thanks for the tip! Will keep that in mind. Will use this method for my future projects.


#190-FetchInteger: Fix

https://github.com/helmfile/vals/issues/190
Handles int and bool types when returned as string map value.

@artiodev thanks so much. could you add some tests?

@yxxhero Done

@mumoshu WDYT?

  This is the result I want, but I think is quite difficult to have.
ResultBool: "true" ResultInteger: "1" ResultBool: true ResultInteger: 1
Maybe it could be change the Lookup function using Generics type?
However at the moment this solution could be enough for me.
Thanks!

Hey @artiodev! Thanks for confirming!
From vals' design perspective, I believe that both work if each is enabled only in an opt-in manner.
Would you like it, if it looked like this:

fetched value
ref URL param
result

1

error (because vals expects string by default)

1
as=int
1

1
as=string
"1"

true

error (because vals expects string by default)

true
as=int
error (because we won't define true->int conversion or vice versa)

true
as=bool
true

true
as=string
"true"

We initially implement as=int and as=bool only because I suppose, in many cases, you don't need to turn anything into strings with vals. Put another way, we won't have as=string until it's absolutely necessary.
Does that make sense to you?
cc/ @yxxhero

Hey @artiodev! Thanks for confirming!
From vals' design perspective, I believe that both work if each is enabled only in an opt-in manner.
Would you like it, if it looked like this:
fetched value	ref URL param	result
1		error (because vals expects string by default)
1	as=int	1
1	as=string	"1"
true		error (because vals expects string by default)
true	as=int	error (because we won't define true->int conversion or vice versa)
true	as=bool	true
true	as=string	"true"
We initially implement as=int and as=bool only because I suppose, in many cases, you don't need to turn anything into strings with vals. Put another way, we won't have as=string until it's absolutely necessary.
Does that make sense to you?
cc/ @yxxhero

yeah. it's better.

yeah, this solution it's even better


Rename VirtualMachine to VirtualMachineInstance and OfflineVirtualMachine to VirtualMachine

[x] Rename VirtualMachine to VirtualMachineInstance
[x] Ensure that all examples use VirtualMachineInstance where appropriate
[x] Rename vm variables to vmi
[x] Rename OfflineVirtualMachine to VirtualMachine
[x] Ensure that all examples use VirtualMachine where appropriate
[x] Rename ovm variables to vm
[ ] Go through doc strings and generated apis and check for inconsistent usage
[x] Bump API version to v1alpha2

Side-effects:

VirtualMachineReplicaSets are now called VirtualMachineInstanceReplicaSets
VirtualMachinePresets are now called VirtualMachineInstancePresets

Another take of #1020, implementing the result of this discusson: https://groups.google.com/forum/#!topic/kubevirt-dev/CU_VskPIisg

Still have to go through docs and comments but new structure should now be in the final shape. @davidvossel @cynepco3hahue @vladikr please review.

@davidvossel comments should be addressed and variables should be renamed now, need another rebase because of todays merges, but apart from that worth another review.

Code is rebased and files are now renamed too. @cynepco3hahue @davidvossel @davidvossel please do another review.

retest this please

@davidvossel No should be good.


Out of date pubspec example on front page

Hi Steven,
I managed to grap the module this way:
name: reddit
path: https://github.com/stevenroose/dart-reddit.git

You should be able to get the latest version right now with


Issues from Alicia

@amklinv
Lois asked me to have a look at the Getting Started guide (http://xsdk-getting-started-guide.readthedocs.org/en/latest/), and to give the xSDK install script a try.  Here are my comments so far:
Documentation

It's difficult to get back to the main page from Installing the xSDK (http://installxsdk.readthedocs.org/en/latest/README/index.html)
Only a few of the install options are listed on that page (which makes sense, given how many there are).  It would be nice to mention that the options listed are not the only ones that exist and tell folks how to find the other ones.  It doesn't look like using --help with the install script produces that list either.
Some odd words are highlighted on that page; I assume it's because we're still learning to use sphinx.
Usage on this webpage is listed as "sh ./installxSDK", but for me it was actually "./installxSDK.sh"

Install script

It looks like the script auto-updates whenever you run it, which I really like.
I tried to run it on my Sandia machine, but it's really hard to get the proxy set up right on our SRN.  That's not an error of the script; it's just unlikely that I'll be able to test the script on my office machine.
The error message produced when the compilers are not compatible with C++11 is unclear.
I tried the script at NERSC on edison, and when I run
./installxSDK.sh --prefix=/global/homes/a/amklinv/xSDK-temp-install --download-ideas --with-cc=cc --with-cxx=CC --with-fc=ftn --with-boost-dir=/usr/common/usg/boost/1.54.0-20160127/gnu
it tries to compile HDF5 for about two hours, then crashes with an unclear error message.  I have attached the configuration log in a tarball (since it was 31 MB).

Would you mind taking a look at this error message?

Oops.  I'll post here next time instead :-)

It's difficult to get back to the main page from Installing the xSDK (http://installxsdk.readthedocs.org/en/latest/README/index.html)

Lois complained about this too. You just have to use the back key like with any other webpage. Do you have any suggestions on how to make this more natural?

Some odd words are highlighted on that page; I assume it's because we're still learning to use sphinx.

I assume you mean in the page for installingxSDK where for example com is in boldface? That is actually, unfortunately a different technology and uses Markdown and mkdocs to build. It is thinking that the this is a code block and trying to highlight the code block, but doing a terrible job. I found an option to mark the codeblocks so they do not get hightlighted so those weird boldface should be gone.

Usage on this webpage is listed as "sh ./installxSDK", but for me it was actually "./installxSDK.sh"

Yikes I forgot the .sh in the name of the script. Fixed now.

Only a few of the install options are listed on that page (which makes sense, given how many there are). It would be nice to mention that the options listed are not the only ones that exist and tell folks how to find the other ones. It doesn't look like using --help with the install script produces that list either.

I added --help to the list of useful options and fixed the script to list all the options even if --prefix is not given

The error message produced when the compilers are not compatible with C++11 is unclear.

Could you send the configure.log for when this happened so we know where to look to improve the error message?
@amklinv

Sure thing.  configure.log.txt
The message I get is:
===============================================================================
Configuring PETSc to compile on your system
TESTING: checkCxx11 from config.compilers(config/BuildSystem/config/compilers.py:383)                                                                         *******************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
Could not determine compiler flag for with-cxx-dialect=C++11, use CXXFLAGS

I was using the default gcc on edison, which is apparently gcc version 4.3.4.

 How about
Could not determine compiler flag for with-cxx-dialect=C++11,
If you know the flag for turning on C++11 features set it with the CXXFLAGS variables
for example, --with-cxx-dialect=C++11 CXXFLAGS="-std=c++0x"

On Mar 3, 2016, at 5:19 PM, amklinv<EMAIL_ADDRESS>wrote:
Sure thing. configure.log.txt
The message I get is:
     Configuring PETSc to compile on your system

TESTING: checkCxx11 from config.compilers(config/BuildSystem/config/compilers.py:383) *******************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
Could not determine compiler flag for with-cxx-dialect=C++11, use CXXFLAGS

I was using the default gcc on edison, which is apparently gcc version 4.3.4.
—
Reply to this email directly or view it on GitHub.

Could we also add a statement like "Please ensure that your compiler supports C++11 features"?

From: Barry Smith<EMAIL_ADDRESS>Sent: Thursday, March 3, 2016 7:13 PM
To: xsdk-project/GettingStarted
Cc: Klinvex, Alicia Marie
Subject: [EXTERNAL] Re: [GettingStarted] Issues from Alicia (#1)
Oh yes, it is a little terse. How about
Could not determine compiler flag for with-cxx-dialect=C++11,
If you know the flag for turning on C++11 features set it with the CXXFLAGS variables
for example, --with-cxx-dialect=C++11 CXXFLAGS="-std=c++0x"

On Mar 3, 2016, at 5:19 PM, amklinv<EMAIL_ADDRESS>wrote:
Sure thing. configure.log.txt
The message I get is:
Configuring PETSc to compile on your system
TESTING: checkCxx11 from config.compilers(config/BuildSystem/config/compilers.py:383) *******************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):
Could not determine compiler flag for with-cxx-dialect=C++11, use CXXFLAGS

I was using the default gcc on edison, which is apparently gcc version 4.3.4.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com/xsdk-project/GettingStarted/issues/1#issuecomment-192062476.


Update Permission System to Include Permission Denial for Slots

Description
Archived and possibly Archived Members need to be filtered into the permissions check to deny all account based access. This allows an archived trooper to keep the C-Shops and other permissions based checks for prosperity, but not allow them access to those resources.

Replaced by #159


Do not call python setup.py

Description
I'm working on #211
Todos
Notable points that this PR has either accomplished or will accomplish.

[ ] Ensure local installation of package works

There's an error bubbling up from QCEngine:
__________ ERROR collecting openff/qcsubmit/tests/test_submissions.py __________
openff/qcsubmit/tests/test_submissions.py:9: in <module>
    from qcengine.testing import has_program
../../../micromamba-root/envs/qcsubmit-test-psi4/lib/python3.8/site-packages/qcengine/testing.py:173: in <module>
    "psi4": is_program_new_enough("psi4", "1.2"),
../../../micromamba-root/envs/qcsubmit-test-psi4/lib/python3.8/site-packages/qcengine/testing.py:62: in is_program_new_enough
    candidate_version = qcng.get_program(program).get_version()
../../../micromamba-root/envs/qcsubmit-test-psi4/lib/python3.8/site-packages/qcengine/programs/psi4.py:91: in get_version
    self.version_cache[which_prog] = safe_version(exc["stdout"].split()[-1])
E   IndexError: list index out of range

I can't find documentation around any version restrictions around non-ancient versions (surely we're not installing 1.2) and the failure coming from parsing STDOUT implies that it's just not installed correctly. I raised #214 which might help this.

There's an error bubbling up from QCEngine:

This normally means psi4 was not installed correctly. The current pins in the env were what I could get to work consistently and were taken from qcengine I am not sure why this would suddenly break though.

Looks like the installation step went fine and it's working on the tests, which have gone for a half hour now and will probably hang, so I'm cancelling them now.
Merging this now as per https://github.com/openforcefield/openff-qcsubmit/pull/218#issuecomment-1648001446


✨ Update PCHs to include ocm status-addon and transport-plugin

Summary
Update PCHs to include ocm status-addon and transport-plugin:

update ocm.yaml PCH to include a second container installing the OCM status-addon along OCM
update kubestellar.yaml PCH to include a second container installing the OCM transport-plugin along with the KubeStellar plugin
update the example.md to remove the corresponding 2 steps

Related issue(s)
Fixes #

/hold pending the release of OTP new chart

/unhold
@MikeSpreitzer This PR is now working in Kind, passing run.sh --released, and rebased
Please take another look

@clubanderson please take a look, this should remove 2 steps in the common setup and simplify your installation

@MikeSpreitzer I rebased on ks 0.22.0 and retested with --released. This PR is ready to review again. Thank you.

Successfully tested test/e2e/multi-cluster-deployment/run-test.sh (no --released).


Build google forms

I thin the first form that would be handy is the project  registration.  there is a place for it to hang the link on the web page: https://eugtech.github.io/Open-Eugene/
this could be a google form.  and could use the following fields:
collect the email (part of the form properties)
project name
type of project [software, hardware, open data, IRL or non-tech]
project description
what are you looking for [launch the project, gain collaborators, prettify, leadership tips]
...what else?

On it today, 2 forms so far based on website:

Submit Project Form
Sign up Form (is this for volunteers or ?)

Thinking of other possible forms as well? Add as you think of them maybe.


Qingwei/add get tick from ohlc

Published

PUBLISHED~

Coverage increased (+0.6%) to 62.761% when pulling c0120a6b1fc5335cc6a39040351cdf5f02b7482a on qingweibinary:qingwei/add_get_tick_from_ohlc into 02bc9946d13280119b876d5627e6c28046ed2073 on binary-com:master.


The template is not valid. hashFiles('**/pom.xml') couldn't finish within 120 seconds.

Hello All,
We are using actions/cache@v3 actions into our GH actions workflows and once in a while we are seeing the below error
The template is not valid. hashFiles('**/pom.xml') couldn't finish within 120 seconds.
Below is the snippet for the workflow we are using for maven cache

name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-

Do we have any solution for this issue? Do we need to add any additional parameters to fix this issue?
Thanks,
Ankur

Hi there, since last week we have a similar error in our build.
It seems that the previous action "Cache node modules" does not work properly, leading to this error.
From the debug logs: ##[debug]Resource Url: https://acghubeus1.actions.githubusercontent.com/QrFRIKu2St1dRQxabUrHA6AAMeapxMftaIcBKJhakbQFojNTDH/_apis/artifactcache/cache?keys=Linux-build-cache-node-modules-a75e31218691bd56f6977b4a592935ee42560086c77284d179fee294e0a228af%2CLinux-build-cache-node-modules-%2CLinux-build-%2CLinux-&version=f6b82261ae6298f38550749ae1cf6747b551dd0f79b6566132088f08c5e47438 ##[debug]getCacheEntry - Attempt 1 of 2 failed with error: Request timeout: /QrFRIKu2St1dRQxabUrHA6AAMeapxMftaIcBKJhakbQFojNTDH/_apis/artifactcache/cache?keys=Linux-build-cache-node-modules-a75e31218691bd56f6977b4a592935ee42560086c77284d179fee294e0a228af%2CLinux-build-cache-node-modules-%2CLinux-build-%2CLinux-&version=f6b82261ae6298f38550749ae1cf6747b551dd0f79b6566132088f08c5e47438 ##[debug]Resource Url: https://acghubeus1.actions.githubusercontent.com/QrFRIKu2St1dRQxabUrHA6AAMeapxMftaIcBKJhakbQFojNTDH/_apis/artifactcache/cache?keys=Linux-build-cache-node-modules-a75e31218691bd56f6977b4a592935ee42560086c77284d179fee294e0a228af%2CLinux-build-cache-node-modules-%2CLinux-build-%2CLinux-&version=f6b82261ae6298f38550749ae1cf6747b551dd0f79b6566132088f08c5e47438 ##[debug]getCacheEntry - Attempt 2 of 2 failed with error: Request timeout: /QrFRIKu2St1dRQxabUrHA6AAMeapxMftaIcBKJhakbQFojNTDH/_apis/artifactcache/cache?keys=Linux-build-cache-node-modules-a75e31218691bd56f6977b4a592935ee42560086c77284d179fee294e0a228af%2CLinux-build-cache-node-modules-%2CLinux-build-%2CLinux-&version=f6b82261ae6298f38550749ae1cf6747b551dd0f79b6566132088f08c5e47438 Warning: Failed to restore: getCacheEntry failed: Request timeout: /QrFRIKu2St1dRQxabUrHA6AAMeapxMftaIcBKJhakbQFojNTDH/_apis/artifactcache/cache?keys=Linux-build-cache-node-modules-a75e31218691bd56f6977b4a592935ee42560086c77284d179fee294e0a228af%2CLinux-build-cache-node-modules-%2CLinux-build-%2CLinux-&version=f6b82261ae6298f38550749ae1cf6747b551dd0f79b6566132088f08c5e47438
Curling this given url from our runners runs into a timeout, the given url is not answering.
Could possibly being the same as this bug.
What do you see in the logs from the "Cache node modules"-step?

We're also seeing this error pop up occasionally, and it should fail gracefully rather than causing the action to fail.


Merge remote-tracking branch 'origin/master' into python-sdk

There are frequent Apex runner failures in the python-sdk branch, bringing up pom.xml changes to update those.

R: @dhalperi @kennknowles

R: -@dhalperi I'll take it

Thank you.


kan-extensions 5

[ ] effect-handlers-<IP_ADDRESS> (>=4.1 && < 5). Andraz Bajt<EMAIL_ADDRESS>@edofic. @edofic
[ ] lens-4.13 (>=4.2.1 && < 5). Edward Kmett<EMAIL_ADDRESS>@ekmett
[ ] pointed-<IP_ADDRESS> (>=4.2 && < 5). Edward Kmett<EMAIL_ADDRESS>@ekmett

I just uploaded effect-handlers-<IP_ADDRESS> which work with kan-extensions-5

lens-4.13.1 and pointed-5 work with kan-extensions-5.


freebsd issues - unit test failures

email thread: https://groups.google.com/forum/#!topic/pothos-users/YmBczKrWyMM
Patches here: https://github.com/sghctoma/freebsd-ports/tree/master/comms/pothos/files
Note: skip patch-include_Pothos_Object_ObjectImpl.hpp, its a work-around

Work branch: https://github.com/pothosware/pothos/tree/freebsd_fixes

Some errors, only testing core stuff + pothos-blocks:
Failed 5 out of 85 tests
  FAIL: /proxy/remote/tests/test_inception
  FAIL: /proxy/remote/tests/test_server
  FAIL: /blocks/tests/test_network_topology
  FAIL: /blocks/tests/test_network_blocks
  FAIL: /blocks/tests/test_proxy_subtopology

This probably needs a better check if ipv6 is supported, we have Utils/Network.hpp for this:
 | Testing /blocks/tests/test_network_blocks...                                                                                |
 | network_test_harness: tcp:// (serverIsSource? true)                                                                                |
 | make server tcp://[::]                                                                                |
 | Exception: Pothos::Testing TestNetworkBlocks.cpp:90                                                                                |
 |   Unexpected error after last checkpoint                                                                                |
 |   Proxy Exception Message: Runtime exception: PothosPacketSocketEndpoint(tcp://[::] -> BIND): Net Exception: Address family not supported |

Other errors are all like this, perhaps a poco issue? I think these tests use the proxy over the iostream for some basic testing
 | Exception: Pothos::Testing TestProxyTopology.cpp:57                                                                                |
 |   Unexpected error after last checkpoint                                                                                |
 |   Exception: Assertion violation: _readfd != -1 in file "/wrkdirs/usr/ports/devel/poco/work/poco-1.7.2-all/Foundation/src/PipeImpl_POSIX.cpp", line 66 |

Revisiting this:

Installed recent poco from source, the pkg install poco had issues
This issue came up and was fixed: https://github.com/pothosware/pothos/commit/7f75a287a577be8779e78ac097c5fde732c2aaa0
Core unit tests pass and the GUI works

There was an issue running unit tests with all modules installed because some would fail to unload cleanly and somewhat randomly. Unknown cause.


VS keeps compiling

Issue Type: Bug
My terminal keeps compilign arbitrary, i am not saving documents, even i am not touching VS and suddenly starts compiling irself
VS Code version: Code 1.55.2 (3c4e3df9e89829dce27b7b5c24508306b151f30d, 2021-04-13T09:36:32.643Z)
OS version: Darwin x64 19.6.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz (4 x 2700)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
7, 8, 9

Memory (System)
8.00GB (0.25GB free)

Process Argv
--crash-reporter-id ad7b6f93-f5ac-46da-854e-87b2ab765aab

Screen Reader
no

VM
0%

Extensions (24)

Extension
Author (truncated)
Version

ng-template
Ang
11.2.12

atlascode
atl
2.8.6

codestream
Cod
11.0.5

vscode-eslint
dba
2.1.20

vscode-html-css
ecm
1.10.2

EditorConfig
Edi
0.16.4

vscode-npm-script
eg2
0.3.21

prettier-vscode
esb
6.3.2

angular-essentials
joh
11.0.0

Angular2
joh
11.0.0

vscode-peacock
joh
3.9.1

csharp
ms-
1.23.11

mssql
ms-
1.10.1

python
ms-
2021.4.765268190

jupyter
ms-
2021.5.745244803

cpptools
ms-
1.3.1

debugger-for-chrome
msj
4.12.12

debugger-for-edge
msj
1.0.15

angular-console
nrw
17.2.0

material-icon-theme
PKi
4.6.0

vscode-yaml
red
0.18.0

vsfire
tob
1.4.1

gitblame
wad
6.0.2

zeplin
Zep
2.2.0

(1 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30276681
vstes627:30244334
pythonvspyt639:30291489
pythontb:30283811
pythonvspyt551cf:30291415
vspre833:30267464
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30286553
vscgsv2ct:30294353

Please provide a screenshot or a gif illustrating the problem (attaching images won't work via email, you need to go to github.com). See this wiki page for more general info on how to report actionable terminal issues.
/label "needs more info" integrated-terminal

All those compilings you can see in the terminal where fired by them self, i didnt save any change, the aplication keeps compiling even if i dont touch the visual studio

what happens if you kill the terminal?

This isn't anything to do with the terminal, the terminal is just running your compiler, something else is probably touching some file(s) in the folder or you have your watcher configured incorrectly.


Server rendering/setting initial markdown state

Subject of the feature
Server rendering react-remark components by passing through an initial state value to useRemark, or using the  component's children.
Describe your issue here.
Problem
The useRemark hook's reactContent initial state is null. It looks like the only way to update this state is by using the exposed setMarkdownSource method.
The  component sets the state of reactContent in a useEffect calling setMarkdownSource(children) which does not get executed on the server (by calling react-dom/server renderToString).
Alternatives
What are the alternative solutions?  Please describe what else you have considered?
Have tried using the first example in README.md, which creates an infinite loop.
Looking through the source code, potential solutions:
setMarkdownSource uses unified.process which is async. We could create a synchronous function which uses unified.processSync to set the initial state based off a new prop in the useRemark hook e.g initialContent, though as I understand, if a provided remark plugin is async, this will throw an error.
I haven't tested this in a server rendered environment, however running this projects storybook seems to work ok with the following.
export const useRemark = ({
  ...,
  initialContent,
}: UseRemarkOptions = {}): [ReactElement | null, (source: string) => void] => {
  const initialParser = useCallback((source: string) => {
    return unified()
      .use(remarkParse, remarkParseOptions)
      .use(remarkPlugins)
      .use(remarkToRehype, remarkToRehypeOptions)
      .use(rehypePlugins)
      .use(rehypeReact, { createElement, Fragment, ...rehypeReactOptions })
      .processSync(source).result as ReactElement;
  }, []);

  const [reactContent, setReactContent] = useState<ReactElement | null>(
    () => initialContent ? initialParser(initialContent) : null
  );

  const setMarkdownSource = useCallback((source: string) => {
    unified()
      .use(remarkParse, remarkParseOptions)
      .use(remarkPlugins)
      .use(remarkToRehype, remarkToRehypeOptions)
      .use(rehypePlugins)
      .use(rehypeReact, { createElement, Fragment, ...rehypeReactOptions })
      .process(source)
      .then((vfile) => setReactContent(vfile.result as ReactElement))
      .catch(onError);
  }, []);

  return [reactContent, setMarkdownSource];
};

export const Remark: FunctionComponent<RemarkProps> = ({
  children,
  ...useRemarkOptions
}: RemarkProps) => {
  const [reactContent, setMarkdownSource] = useRemark({
    ...useRemarkOptions,
    initialContent: children,
  });

  useEffect(() => {
    setMarkdownSource(children);
  }, [children, setMarkdownSource]);

  return reactContent;
};

For now, using react-markdown works fine (which seems to be synchronous) for our use case, however this project seems to align closer to our preference for parsing architecture).
Being able to server render initial content would be a useful feature.

Server rendering react-remark components by passing through an initial state value to useRemark

What are you using for serverside rendering?
A framework like Gatsby or Next? Something else?

Have tried using the first example in README.md, which creates an infinite loop

Could you share a runnable example of this? for example in https://codesandbox.io

setMarkdownSource uses unified.process which is async

Could you expand why this is an problem?
Next, for example, supports async processes in SSR via getStaticProps https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation
Another consideration here, remark and rehype plugins can be async, and async plugins can only be used with process, I'd like to avoid the usage of processSync if possible to avoid restrictions on what plugins work.

to set the initial state based off a new prop in the useRemark hook e.g initialContent

an initialContent prop could be a good add.

For now, using react-markdown works fine (which seems to be synchronous) for our use case

FYI, react-markdown v6 will likely be built on top of react-remark.

Server rendering react-remark components by passing through an initial state value to useRemark

What are you using for serverside rendering?
A framework like Gatsby or Next? Something else?

Have tried using the first example in README.md, which creates an infinite loop

Could you share a runnable example of this? for example in https://codesandbox.io

setMarkdownSource uses unified.process which is async

Could you expand why this is an problem?
Next, for example, supports async processes in SSR via getStaticProps https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation
Another consideration here, remark and rehype plugins can be async, and async plugins can only be used with process, I'd like to avoid the usage of processSync if possible to avoid restrictions on what plugins work.

to set the initial state based off a new prop in the useRemark hook e.g initialContent

an initialContent prop could be a good add.

For now, using react-markdown works fine (which seems to be synchronous) for our use case

FYI, react-markdown v6 will likely be built on top of react-remark.

Server rendering react-remark components by passing through an initial state value to useRemark

What are you using for serverside rendering?
A framework like Gatsby or Next? Something else?

We are server rendering in .NET Core via ReactJS.NET

Have tried using the first example in README.md, which creates an infinite loop

Could you share a runnable example of this? for example in https://codesandbox.io

Below example that crashes:
https://codesandbox.io/s/objective-montalcini-cixpt?

setMarkdownSource uses unified.process which is async

Could you expand why this is an problem?
Next, for example, supports async processes in SSR via getStaticProps https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation
Another consideration here, remark and rehype plugins can be async, and async plugins can only be used with process, I'd like to avoid the usage of processSync if possible to avoid restrictions on what plugins work.

We are using base react in a polyfilled Chakra core runtime on the server. AFAIK there is no way in base react to set an initial state via async in useState constructor (calling setState in a useEffect is not an option as that does not get run in react-dom/server's renderToString method). Perhaps a solution is to have an option to use processSync with process as the default? e.g a synchronous  or async boolean option passed to useRemark hook? However we would still need a way to set the initial content state so react-dom/server can render it's contents.

Server rendering react-remark components by passing through an initial state value to useRemark

What are you using for serverside rendering?
A framework like Gatsby or Next? Something else?

We are server rendering in .NET Core via ReactJS.NET

Have tried using the first example in README.md, which creates an infinite loop

Could you share a runnable example of this? for example in https://codesandbox.io

Below example that crashes:
https://codesandbox.io/s/objective-montalcini-cixpt?

setMarkdownSource uses unified.process which is async

Could you expand why this is an problem?
Next, for example, supports async processes in SSR via getStaticProps https://nextjs.org/docs/basic-features/data-fetching#getstaticprops-static-generation
Another consideration here, remark and rehype plugins can be async, and async plugins can only be used with process, I'd like to avoid the usage of processSync if possible to avoid restrictions on what plugins work.

We are using base react in a polyfilled Chakra core runtime on the server. AFAIK there is no way in base react to set an initial state via async in useState constructor (calling setState in a useEffect is not an option as that does not get run in react-dom/server's renderToString method). Perhaps a solution is to have an option to use processSync with process as the default? e.g a synchronous  or async boolean option passed to useRemark hook? However we would still need a way to set the initial content state so react-dom/server can render it's contents.

https://codesandbox.io/s/objective-montalcini-cixpt this is the equivalent of:
function InfiniteLoop () {
  const [state, setState] = useState();
  setState({});
  return null;
}

each render setState is called, setState triggers a render, repeat ad infinitum.
a useEffect can be used to call set just once https://codesandbox.io/s/stoic-snow-4846x

We are server rendering in .NET Core via ReactJS.NET
in a polyfilled Chakra core runtime on the server

Oof, isomorphic react on a non-V8 runtime, with lightly supported language bindings, that doesn't sound fun, sorry.

Perhaps a solution is to have an option to use processSync with process as the default? e.g a synchronous or async boolean option passed to useRemark hook?

It is an option :thinking:
And maybe one that could make sense.
Taking a step back from the problem, from a moment, it sounds like you're looking more for a pure static content generator?
Would going from markdown to javascript, and saving/running an ahead of time generated component work in your use case?
Something along the lines of: https://mdxjs.com/advanced/api (built on remark)

https://codesandbox.io/s/objective-montalcini-cixpt this is the equivalent of:
function InfiniteLoop () {
  const [state, setState] = useState();
  setState({});
  return null;
}

each render setState is called, setState triggers a render, repeat ad infinitum.
a useEffect can be used to call set just once https://codesandbox.io/s/stoic-snow-4846x

We are server rendering in .NET Core via ReactJS.NET
in a polyfilled Chakra core runtime on the server

Oof, isomorphic react on a non-V8 runtime, with lightly supported language bindings, that doesn't sound fun, sorry.

Perhaps a solution is to have an option to use processSync with process as the default? e.g a synchronous or async boolean option passed to useRemark hook?

It is an option :thinking:
And maybe one that could make sense.
Taking a step back from the problem, from a moment, it sounds like you're looking more for a pure static content generator?
Would going from markdown to javascript, and saving/running an ahead of time generated component work in your use case?
Something along the lines of: https://mdxjs.com/advanced/api (built on remark)

Taking a step back from the problem, from a moment, it sounds like you're looking more for a pure static content generator?
Would going from markdown to javascript, and saving/running an ahead of time generated component work in your use case?
Something along the lines of: https://mdxjs.com/advanced/api (built on remark)

Unfortunately not as the content is stored in a headless CMS. Currently it handles blog posts in markdown, but we are in the process of extending it out to handle custom pages as well (which may contain JSX and/or HTML), which will be handled by a content team and occasional developer for more complicated markup/layouts.

Taking a step back from the problem, from a moment, it sounds like you're looking more for a pure static content generator?
Would going from markdown to javascript, and saving/running an ahead of time generated component work in your use case?
Something along the lines of: https://mdxjs.com/advanced/api (built on remark)

Unfortunately not as the content is stored in a headless CMS. Currently it handles blog posts in markdown, but we are in the process of extending it out to handle custom pages as well (which may contain JSX and/or HTML), which will be handled by a content team and occasional developer for more complicated markup/layouts.

I'm also not sure if you'd be able to server render on nextjs either

Not currently, I'm waiting for React Server Components and Serverside Suspense to shake out some more to allow for more flexible async components on the serverside.

Unfortunately not as the content is stored in a headless CMS. Currently it handles blog posts in markdown, but we are in the process of extending it out to handle custom pages as well (which may contain JSX and/or HTML), which will be handled by a content team and occasional developer for more complicated markup/layouts.

What would you think of
export interface UseRemarkOptions {
  remarkParseOptions?: Partial<RemarkParseOptions>;
  remarkToRehypeOptions?: RemarkRehypeOptions;
  rehypeReactOptions?: Partial<RehypeReactOptions<typeof createElement>>;
  remarkPlugins?: PluggableList;
  rehypePlugins?: PluggableList;
  onError?: (err: Error) => void;
}

export const useRemarkSync = (
  source: string,
  {
    remarkParseOptions,
    remarkToRehypeOptions,
    rehypeReactOptions,
    remarkPlugins = [],
    rehypePlugins = [],
  }: UseRemarkOptions = {}
): ReactElement =>
  unified()
    .use(remarkParse, remarkParseOptions)
    .use(remarkPlugins)
    .use(remarkToRehype, remarkToRehypeOptions)
    .use(rehypePlugins)
    .use(rehypeReact, { createElement, Fragment, ...rehypeReactOptions })
    .processSync(source).result as ReactElement;

?

I'm also not sure if you'd be able to server render on nextjs either

Not currently, I'm waiting for React Server Components and Serverside Suspense to shake out some more to allow for more flexible async components on the serverside.

Unfortunately not as the content is stored in a headless CMS. Currently it handles blog posts in markdown, but we are in the process of extending it out to handle custom pages as well (which may contain JSX and/or HTML), which will be handled by a content team and occasional developer for more complicated markup/layouts.

What would you think of
export interface UseRemarkOptions {
  remarkParseOptions?: Partial<RemarkParseOptions>;
  remarkToRehypeOptions?: RemarkRehypeOptions;
  rehypeReactOptions?: Partial<RehypeReactOptions<typeof createElement>>;
  remarkPlugins?: PluggableList;
  rehypePlugins?: PluggableList;
  onError?: (err: Error) => void;
}

export const useRemarkSync = (
  source: string,
  {
    remarkParseOptions,
    remarkToRehypeOptions,
    rehypeReactOptions,
    remarkPlugins = [],
    rehypePlugins = [],
  }: UseRemarkOptions = {}
): ReactElement =>
  unified()
    .use(remarkParse, remarkParseOptions)
    .use(remarkPlugins)
    .use(remarkToRehype, remarkToRehypeOptions)
    .use(rehypePlugins)
    .use(rehypeReact, { createElement, Fragment, ...rehypeReactOptions })
    .processSync(source).result as ReactElement;

?

Looks good to me! Would it make sense to wrap it in a useMemo and have source as the dependency? Looks like it could potentially get expensive and block the main thread if the containing parent component gets re-rendered

Looks good to me! Would it make sense to wrap it in a useMemo and have source as the dependency? Looks like it could potentially get expensive and block the main thread if the containing parent component gets re-rendered

I just had same issue with SSG on Next.JS.
Using the <Remark> component would result in texts creating a javascript code instead of HTML tags on source code, which is bad for SEO.
So I ended up creating my own <Markdown> component with the code snippet from remark-react:
unified().use(parse).use(remark2react).processSync(children).result}

added in https://github.com/remarkjs/react-remark/pull/18
documentation at https://github.com/remarkjs/react-remark#server-side-rendering
This change will be part of the next release

has this been released yet?

It is ready for release, but hasn't been yet.
/cc @remarkjs/releasers

@ChristianMurphy your last comment said “This change will be part of the next release”. Sounds like there is more work to do?

Sounds like there is more work to do?

There is, cutting a minor release.

Released.


Support Hot Restart on Windows

Title: Support Hot Restart on Windows
Description:
Hot restart is needed to support service mesh providers that want to update Envoy Proxy without dropping connections.
Docs

I don't have the capacity to take this item for now. If anyone wants to get their hands dirty with some Windows development, I would be really happy to support them out


Ability to run terminal commands?

The Motivation
I want to be able to run a terminal command to run an executable file.  For example, item that loads terminal and runs ./filename in say /home/user/applications/game/
Maybe it does this already, but I just can't figure it out.  Loving Fly-Pie though, thank you for this great work!

You can use the "Launch Application" action. It can be used to execute any shell command! In your case, simply put /home/user/applications/game/filename into the command entry. If it's important that the working directory is /home/user/applications/game/, you could use bash -c "cd /home/user/applications/game/ && ./filename". For more complicated cases you can also create a shell script and execute this script from the action!
Does this solve your issue?

Thank you for this.
Are there any error logs I can use?  I used the example as you mentioned and used the following command bash -c "cd /usr/local/bin/  && ./cdconverter.sh" but nothing happens.  If I can read a log I could find what the issue is perhaps?
Thanks again

You can use journalctl -f -o cat | grep -E 'flypie|' for debugging!

This will highlight all occurrences of Fly-Pie in the log output. However, i guess that there will be no error message directly from Fly-Pie but rather from the spawned process. So watch the output closely when you activate the action!

Thank you for this.  I opened terminal and ran the journalctl commmand.
What was surprising was my script did start outputting into the terminal and then failed (it's a simple script to launch a docker container).  My script has a menu asking what you'd like to do.  Docker up, docker down, docker build, etc etc.
The error after was  :
Could not create transient scope for PID 475684: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 475684 does not exist.
So the first issue is when run from Fly-Pie the terminal doesn't show up and the second issue is there is no input for me to type when run from an already open container and the third of course is the above error.  :-)
I'm probably a fringe case and I don't expect you to put time into it, honestly.  I just thought I'd share.  I am ok to open a terminal and run my own command, just thought it would be cool to launch it from fly-pie.

I am pretty sure that this can be solved easily. It seems that your script does not like to be run non-interactively. Could you try
gnome-terminal -- bash -c "cd /usr/local/bin/ && ./cdconverter.sh"

to run it in a terminal?

BAM!  That works :-)
OK so it was more my lack of knowledge and not a bug at all.  I VERY much appreciate you helping though.
Now I know how to do that, I have a lot of scripts I use regularly that I can now attach to Fly-Pie.
Thanks again!


Order categories

Categories of a quote are shown in detail view as unordered list. e.g. https://www.zitat-service.de/en/quotations/1899

Categories: Life, Future, Freedom, Hope, State, Self-confidence, Force, Confidence, Self-esteem, Citizens, Living together, Ukraine, Honor, Glory, Independence, Sovereignty, Cohesion, Resistance

As a user I would like to have this list in alpabetical order to check faster is a category is already in the list or not.

categories are now ordered, for the sample above:

Categories: Citizens, Cohesion, Confidence, Force, Freedom, Future, Glory, Honor, Hope, Independence, Life, Living together, Resistance, Self-confidence, Self-esteem, Sovereignty, State, Ukraine


[MB-3592] RequestedShipments card wrapping

Description
Fixes issue where multiple Shipment cards on the Move details page don't wrap correctly. Also made some other style changes, to make this section better match the designs.
Reviewer Notes
@transcom/truss-design - This should wrap up design tweaks to this component (Move Details > Requested Shipments / Approved Shipments). Please note if there is any additional feedback!
Setup
The changes can be viewed in Storybook (under TOO/TIO Components > RequestedShipments):
yarn storybook

Or via the app:
make db_dev_e2e_populate
make server_run
make client_run

Move 6fca843a-a87e-4752-b454-0fac67aa4988 should display one requested shipment
Move ca59791f-7b1a-4769-84a2-5cf0ec258677 should display two approved shipments

Code Review Verification Steps

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in
Querying the Database Safely
have been satisfied.
Any new migrations/schema changes:

[ ] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

Screenshots

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

Messages

:book:
:link: MB-3592

  Generated by :no_entry_sign: dangerJS against 24ccf47a812e5613e91a2f7649a994d06a08aa40

Looks good, although I would like to see an example with 3 shipments to see if it stacks correctly.

@brooksr4 I added an example with 3 shipments to Storybook!

@duncan-truss thanks for taking a look in IE! I added some tweaks that should fix the wrapping issue, and improve responsiveness in other browsers as well. I will note that there are still some issues at smaller screen sizes, since the Office app was not built to be fully responsive, that I think we'll have to resolve in the future.


Browser support of the charting components

We're evaluating whether to use tsiclient as a basis for a cross-platform charting component. The idea would be cover web and Android/iOS/UWP mobile platforms (via "web view" obviously).
My question is whether the charting components are built with certain browser version support in mind?

This is a great question, the components should work well in all modern web browsers...meaning everything but IE (e.g. Chrome, FF, Edge)
I believe that mobile implementations of chrome and safari should work quite well, and I'm guessing that UWP Edge implementations should be fine as well, and probably even more fine if UWP moves towards chromium based Edge
Touch support is probably lacking, and you would likely benefit from using a different library if touch scenarios are very important to you.  We don't have much need for touch right now for our use cases unfortunately, so the library is not optimized for them


Create and commit changelogs

This is a first step for python/typeshed#5633. The current
implementation generates and commits the changelogs, but
doesn't add them to the generated packages.

We should test this for a few days and check whether the generated changelogs look ok. Then we can add the generated changelogs to the uploaded packages.

For reviewing: It's best to review the two commits on their own.


Markdown to HTML Converter Lab - Allowing solutions converting markdown just once

Describe the Issue
Markdown to HTML Converter Lab can pass with solution that converts each markdown only once. What I mean is there isn't actually any test that has the same syntax used more than once - example. The example project is handling that correctly.
It'd be pretty clear to me this should be something that needs to be testes, if not the note in lab:

Note: The final result won't be a comprehensive Markdown to HTML converter, but you can add extra functionalities to it if you would like.

So I guess the question is whether solution not doing this properly is fine, or should that be considered as a bug.
For reference raw version that doesn't handle the multiple occurrences of the same syntax, but passes.
const input = document.querySelector('#markdown-input');
const output = document.querySelector('#html-output');
const preview = document.querySelector('#preview');

const convertMarkdown = () => {
  const value = input.value
  const patterns = [
    [/\*\*([\w\d\s*_]+)\*\*/g, '$1'],
    [/__([\w\d\s_*]+)__/g, '$1'],
    [/\*([\w\d\s_]+)\*/g, '$1'],
    [/_([\w\d\s*]+)_/g, '$1'],
    [/!\[([^\]]+)\]\(([^\)]+)\)/g, ''],
    [/\[([^\]]+)\]\(([^\)]+)\)/g, '$1'],
    [/^> (.*)/mg, '
$1
'],
    [/^# (.*)/g, '
$1
'],
    [/^## (.*)/g, '
$1
'],
    [/^### (.*)/g, '
$1
'],
  ]

  let replaced = value
  patterns.forEach(([fromPattern, toPattern]) => {
    replaced = replaced.replace(fromPattern, toPattern)
  })
  output.innerText = replaced;
  preview.innerHTML = replaced;
  return replaced
}

input.addEventListener('keyup', convertMarkdown);

This is definitely a bug. The note you mentioned is more about the program not being able to handle comprehensively the markdown syntax.
Personally, I would add some tests and/or modify existing tests to verify that the code can handle the same syntax more than once.

I'd like to write some tests to fix it.


Already existing media

Hi
I decided to finally add a second website to a multisite and installed your plugin.
All the media from the first website are not visible anymore neither in the first or second website! , your system works only with new media apparently!
I'm using the plugin enhanced media library (https://wpuxsolutions.com/) but don't think its the problem
Is there a way to access all the old media ?
Thanks

Hi!
You're right that this plugin is intended for new Multisite networks.
However, you can use the network-media-library/site_id filter to change the central media library site to 1 to use the existing media. More details here: https://github.com/johnbillion/network-media-library/blob/master/readme.md#description
John

In fact I realize that there is a bug when I add the function
`add_filter( 'network-media-library/site_id', function( $site_id ) {
return 1;
} );
all the admin accounts of the site 1 have a limited dashboard
They only have access to "Profile" and "Media" section, no more pages,posts,settings,plugins.....
If i avoid to add this function admin can see the dashboard again...but old media are not shared anymore...
Any idea?`

I think your best approach is to export the media from the original site and import them into a dedicated site.

Sad that it doesnt work
What do you mean by export and import to a dedicated site ?
Actually I have everything in this folder:
/public_html/wp-content/uploads
And inside this folder I have a «sites” folder with the second library for the other site
If i move everything from the root to the 2nd site i’ll loose everything on the first site and i’ll have to place again all the documents in the website…
De : John Blackbourn<EMAIL_ADDRESS>Envoyé : mardi, 16 octobre 2018 17:01
À : johnbillion/network-media-library<EMAIL_ADDRESS>Cc : fulviods<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Objet : Re: [johnbillion/network-media-library] Already existing media (#30)
I think your best approach is to export the media from the original site and import them into a dedicated site.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub http://tracking.internetdiffusion.com/tracking/click?d=Qc7VGIU-YEgEC_WCG464y5RXtK2YQgm3uMyd5XY78LNeRG3VGxj0BNfkMJGNBuYcQ1yWvkWzjmONog-ccsrJeauXJBaszdt8oE8jaSg9Tz6Bjd-2eZwkNbDektt0Lykd_5YvvLBzl5q0YQ9KbikhuxOGN0L-YUFCD81RzRJGcp30iwhTnrL-q__cBnwe1jgoJGOsT605WgO12l2p7hk6iw81 , or mute the thread http://tracking.internetdiffusion.com/tracking/click?d=wHp2_TbnEyUPR2QI4PMd4O-zr2EahVy_XlxCIz-HjtrblL_-brFxBUj4QkczPBzmkGpQLNelS-4ZI8RziFvybEhPK2QizI1KxDPOABnATeeXm2kzzbwgtVPYxneeZf3Q45GdtQaLHHczPkR74vnBglK7ncSic8HDb5SKA7zeOp7l1eWP96uptExgvdHDoQynBwsntghgOAj_o-NhUgllvelmWIYTbptC85Q8UvNkwpBK0 .  http://tracking.internetdiffusion.com/tracking/click?d=3EeYTvD0AgL5nazvLwGDfPl5MlUR53HovAPEVrWrzPRmJZD7i5Zg2bEOJwSvz4DN-gj4jNhbTIG-LyCNe-B4gXmBI4VIc51B7C9-b415GZ4S6BpEfxAU7mRVyso6ga2JF6W2WuiicJAmyNhWqsjAkuqB8huEgTfQs7yizMr8oTjR49uvDSN507PHqFSPZCaEv2ufQ5uvG-oGLYPX_GeKCDQ1
http://tracking.internetdiffusion.com/tracking/unsubscribe?msgid=TKxVxU-sZVOpuEWwijurvA2

If you can tell me would be nice.
I deactivated your plugin and my client tell me that she lost all the content in the second website (divi theme). I didnt check the website before... it is possible?
Thanks for your help