how the livy spark driver start spark executor pod

hi:
I have installed the chart following your guide, but the spark application started by spark magic  seems only contains a ivy-spark driver pod , how can I get the executor pod run in k8s throght livy-spark driver pod ?

Have you installed it locally on Minikube-like environment? If so there might be an issue of not having enough CPU/MEM to launch Executors. Can you share you Spark Driver Pod logs to check that?
Also today later on I will attach more details on how to launch the session from Jupyter and debug it.

Really appreciate for your help. I have checked my k8s environment, it was really a not having enough resouces issue, and I have solved it.
But when I start pyspark kernel, the logs show like this:
20/04/14 03:23:09 INFO BlockManagerMasterEndpoint: Registering block manager remotesparkmagics-sample-1586834577660-driver-svc.jhub.svc:7079 with 413.9 MB RAM, BlockManagerId(driver, remotesparkmagics-sample-1586834577660-driver-svc.jhub.svc, 7079, None) 20/04/14 03:23:09 INFO BlockManagerMaster: Registered BlockManager BlockManagerId(driver, remotesparkmagics-sample-1586834577660-driver-svc.jhub.svc, 7079, None) 20/04/14 03:23:09 INFO BlockManager: Initialized BlockManager: BlockManagerId(driver, remotesparkmagics-sample-1586834577660-driver-svc.jhub.svc, 7079, None) 20/04/14 03:23:15 INFO KubernetesClusterSchedulerBackend$KubernetesDriverEndpoint: Registered executor NettyRpcEndpointRef(spark-client://Executor) (<IP_ADDRESS>:59440) with ID 1 20/04/14 03:23:15 INFO BlockManagerMasterEndpoint: Registering block manager <IP_ADDRESS>:35347 with 413.9 MB RAM, BlockManagerId(1, <IP_ADDRESS>, 35347, None) 20/04/14 03:23:15 INFO KubernetesClusterSchedulerBackend$KubernetesDriverEndpoint: Registered executor NettyRpcEndpointRef(spark-client://Executor) (<IP_ADDRESS>:50008) with ID 2 20/04/14 03:23:15 INFO KubernetesClusterSchedulerBackend: SchedulerBackend is ready for scheduling beginning after reached minRegisteredResourcesRatio: 0.8 20/04/14 03:23:15 INFO SparkEntries: Spark context finished initialization in 8524ms 20/04/14 03:23:15 INFO SparkEntries: Created Spark session. 20/04/14 03:23:15 INFO BlockManagerMasterEndpoint: Registering block manager <IP_ADDRESS>:46056 with 413.9 MB RAM, BlockManagerId(2, <IP_ADDRESS>, 46056, None) 20/04/14 03:23:23 WARN Session: Fail to start interpreter pyspark java.io.IOException: Cannot run program "python": error=2, No such file or directory 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) 	at org.apache.livy.repl.PythonInterpreter$.apply(PythonInterpreter.scala:75) 	at org.apache.livy.repl.Session.liftedTree1$1(Session.scala:106) 	at org.apache.livy.repl.Session.interpreter(Session.scala:98) 	at org.apache.livy.repl.Session.setJobGroup(Session.scala:353) 	at org.apache.livy.repl.Session.$anonfun$execute$1(Session.scala:164) 	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23) 	at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659) 	at scala.util.Success.$anonfun$map$1(Try.scala:255) 	at scala.util.Success.map(Try.scala:213) 	at scala.concurrent.Future.$anonfun$map$1(Future.scala:292) 	at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33) 	at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33) 	at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 	at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: error=2, No such file or directory 	at java.lang.UNIXProcess.forkAndExec(Native Method) 	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) 	at java.lang.ProcessImpl.start(ProcessImpl.java:134) 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) 	... 16 more 20/04/14 03:23:23 WARN Session: Fail to start interpreter pyspark java.io.IOException: Cannot run program "python": error=2, No such file or directory 	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) 	at org.apache.livy.repl.PythonInterpreter$.apply(PythonInterpreter.scala:75) 	at org.apache.livy.repl.Session.liftedTree1$1(Session.scala:106) 	at org.apache.livy.repl.Session.interpreter(Session.scala:98) 	at org.apache.livy.repl.Session.$anonfun$execute$1(Session.scala:168) 	at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23) 	at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659) 	at scala.util.Success.$anonfun$map$1(Try.scala:255) 	at scala.util.Success.map(Try.scala:213) 	at scala.concurrent.Future.$anonfun$map$1(Future.scala:292) 	at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33) 	at scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33) 	at scala

I assume you used your own image for Spark Pods, isn't it? Basically due to the logs I see that probably your Spark image doesn't have python in PATH. Please share the steps you did to install the chart with the list of customizations made including Dockerfile so I could reproduce your issue and come up with the solution. If you follow this guide there shouldn't be any issues with PySpark:

Create PySpark Kernel notebook

Run the code

Ref: Databricks docs.

Spark namespace by default is determined by the Helm Release namespace. There are several ways on how to change it:

Through env vars: add --set livy.env.LIVY_SPARK_KUBERNETES_NAMESPACE.value=<default-namespace> when installing spark-cluster chart.
Configure Livy session (POST /sessions request body) in the notebook's first cell and execute it before calling any other commands. This will start Spark containers in the selected namespace only for this session:

%%configure -f
{
  "name": "app-name",
  "executorMemory": "4G",
  "executorCores": 4,
  ...
  "conf": {
    "spark.kubernetes.namespace": "<target-namespace>"
  }
}

NOTE: with both options if you have RBAC-enabled cluster you need to be sure that you have the ServiceAccounts configured with the name <release-name>-livy-spark (by default, can be also reconfigured if needed) and correct privileges in the Spark Driver namespaces to allow Spark Driver request the Executor Pods from Kubernetes API. Please refer the SA and RBAC resources created in the Release namespace by default. Also find how these values are configured here.
For other Livy customization options refer the linked docs.

hi:
Beacause of the 403 issue, I build the Spark 2.4.5 version image based on your docker repo, and it looks like this:
https://github.com/cyliu0204/spark-on-k8s-docker/blob/master/spark-base/2.4.5_2.12-without-hadoop/Dockerfile
when I start the pyspark driver pod ,  the log looks like this:
20/04/20 07:26:32 INFO KubernetesClusterSchedulerBackend: SchedulerBackend is ready for scheduling beginning after waiting maxRegisteredResourcesWaitingTime: 30000(ms) 20/04/20 07:26:32 INFO SparkEntries: Spark context finished initialization in 31942ms 20/04/20 07:26:32 INFO SparkEntries: Created Spark session. Exception in thread "Thread-24" java.lang.NoClassDefFoundError: org/apache/spark/sql/hive/HiveContext 	at java.lang.Class.getDeclaredMethods0(Native Method) 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) 	at java.lang.Class.privateGetPublicMethods(Class.java:2902) 	at java.lang.Class.getMethods(Class.java:1615) 	at py4j.reflection.ReflectionEngine.getMethodsByNameAndLength(ReflectionEngine.java:345) 	at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:305) 	at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:326) 	at py4j.Gateway.invoke(Gateway.java:274) 	at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) 	at py4j.commands.CallCommand.execute(CallCommand.java:79) 	at py4j.GatewayConnection.run(GatewayConnection.java:238) 	at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.ClassNotFoundException: org.apache.spark.sql.hive.HiveContext 	at java.net.URLClassLoader.findClass(URLClassLoader.java:382) 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) 	... 12 more 20/04/20 07:26:40 ERROR PythonInterpreter: Process has died with 1 20/04/20 07:26:40 ERROR PythonInterpreter: ERROR:root:Exception while sending command. Traceback (most recent call last):   File "/opt/spark/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 1159, in send_command     raise Py4JNetworkError("Answer from Java side is empty") py4j.protocol.Py4JNetworkError: Answer from Java side is empty During handling of the above exception, another exception occurred: Traceback (most recent call last):   File "/opt/spark/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 985, in send_command     response = connection.send_command(command)   File "/opt/spark/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 1164, in send_command     "Error while receiving", e, proto.ERROR_ON_RECEIVE) py4j.protocol.Py4JNetworkError: Error while receiving Traceback (most recent call last):   File "/tmp/2775406139211743686", line 714, in <module>     sys.exit(main())   File "/tmp/2775406139211743686", line 589, in main     jsc = gateway.entry_point.sc()   File "/opt/spark/python/lib/py4j-0.10.7-src.zip/py4j/java_gateway.py", line 1257, in __call__   File "/opt/spark/python/lib/py4j-0.10.7-src.zip/py4j/protocol.py", line 336, in get_return_value py4j.protocol.Py4JError: An error occurred while calling t.sc 20/04/20 08:21:38 INFO KubernetesClusterSchedulerBackend$KubernetesDriverEndpoint: Registered executor NettyRpcEndpointRef(spark-client://Executor) (<IP_ADDRESS>:45974) with ID 1 20/04/20 08:21:38 INFO KubernetesClusterSchedulerBackend$KubernetesDriverEndpoint: Registered executor NettyRpcEndpointRef(spark-client://Executor) (<IP_ADDRESS>:45748) with ID 2 20/04/20 08:21:38 INFO BlockManagerMasterEndpoint: Registering block manager <IP_ADDRESS>:43098 with 413.9 MB RAM, BlockManagerId(1, <IP_ADDRESS>, 43098, None) 20/04/20 08:21:38 INFO BlockManagerMasterEndpoint: Registering block manager <IP_ADDRESS>:38398 with 413.9 MB RAM, BlockManagerId(2, <IP_ADDRESS>, 38398, None)
Any idea what I am missing?

I also try to build a spark 3.0 image, since we are really interested in some features in Spark 3.0,  but it seems not work very well with this livy version ; https://github.com/apache/incubator-livy/pull/289,  an I have seen this pr already, besides this, is anything should be done to support Spark 3.0 through livy on k8s?

Ok, I see that you do not have Livy installed in the image. Also Scala 2.12 may have compatibility issues. Let me prepare the guide on Docker images customization for you. Will try to get to it till the end of the week.

Ok, I see that you do not have Livy installed in the image. Also Scala 2.12 may have compatibility issues. Let me prepare the guide on Docker images customization for you. Will try to get to it till the end of the week.

Do you mean the livy-spark image which have livy installed base on spark image？The Dockerfile  is spark_base image, I also build the livy-spark image , it looks like this https://github.com/cyliu0204/spark-on-k8s-docker/blob/master/livy-spark/0.7.0-incubating-spark_2.4.5_2.12-hadoop_3.2.1/Dockerfile;

Hi @cyliu0204 , I've updated the Docker image build for Spark 2.4.5 and updated the Helm charts accordingly. If you need the customizations please follow the steps:

Build spark image (base)
Build livy-spark image (based on spark, with Livy jars included)
Build livy image (with Livy entrypoint, based on livy-spark)
Change used images for [Livy] and [Spark]

I've tested these images locally with the updated Helm charts. Please refere spark-cluster v0.7.0.

Hi @cyliu0204, have your issue been resolved?

Hi @cyliu0204, have your issue been resolved?

yes, thank you for your help sincerely


Generate docs

@francium, I know you have an old PR for this (#7), but thought I would make a corresponding issue because I am attempting to create a new PR (per your suggestion in #7), but I am finding the following anomaly with lazydocs: it doesn't deal with REPL syntax properly.
In particular, here is a problematic part of a docstring from the is_some function (and similarly for is_nothing):
    Usage:
    >>> r: Maybe[int, str] = get_a_maybe()
    >>> if is_some(r):
    >>>     r   # r is of type Some[int]
    >>> elif is_nothing(r):
    >>>     r   # r is of type Nothing[str]

Unfortunately, the generated HTML renders as follows:

Usage:  r: Maybe[int, str] = get_a_maybe()  if is_some(r):      r   # r is of type Some[int]  elif is_nothing(r):      r   # r is of type Nothing[str]

This sort of makes sense in terms of pure translation of markdown to HTML because there are no intervening blank lines, so all of the lines are interpreted to be part of the same "paragraph," so each intervening newline is replaced with a single blank, and we end up with all of the "code" joined onto a single line.
Sadly, as far as I can tell, there is no way to completely correct this to allow correct rendering of REPL prompts, which is also sad because that eliminates the possibility of including doctest tests and having them rendered correctly in the generated docs.
For starters, I added a blank line after "Usage:" and surrounded the REPL lines in a plain code fence, like so:
    Usage:

    ```plain
    >>> r: Maybe[int, str] = get_a_maybe()
    >>> if is_some(r):
    >>>     r   # r is of type Some[int]
    >>> elif is_nothing(r):
    >>>     r   # r is of type Nothing[str]
    ```

This produced an even worse rendering:

Usage:
``` r: Maybe[int, str] = get_a_maybe()``` ``` if is_some(r):```
```     r   # r is of type Some[int]``` ``` elif is_nothing(r):```
```     r   # r is of type Nothing[str]``` ```

---

<a href="https://github.com/rustedpy/maybe/blob/main/src/maybe/maybe.py#L299"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>

## <kbd>function</kbd> `is_nothing`

```python
is_nothing(maybe: 'Maybe[T]') → TypeGuard[Nothing]

Of course, I realize that the REPL syntax should actually be corrected as follows (notice, the ... in place of some of the >>>), if it is to be a true REPL representation:
    Usage:

    ```plain
    >>> r: Maybe[int, str] = get_a_maybe()
    >>> if is_some(r):
    ...     r   # r is of type Some[int]
    ... elif is_nothing(r):
    ...     r   # r is of type Nothing[str]
    ```

Unfortunately, that does not render any better, nor did I really expect it to, since ... vs. >>> is not the source of the rendering problem.
The "fix" is to simply remove the REPL prompts, and make it a regular code fence, like so:
    Usage:

    ```python
    r: Maybe[int, str] = get_a_maybe()
    if is_some(r):
        r   # r is of type Some[int]
    elif is_nothing(r):
        r   # r is of type Nothing[str]
    ```

This renders like so:

Usage:
r: Maybe[int, str] = get_a_maybe()
if is_some(r):
    r   # r is of type Some[int]
elif is_nothing(r):
    r   # r is of type Nothing[str]

Are you okay with making this type of adjustment to the docstrings for both is_some and is_nothing?

Aha! If I add some extra indentation within the code fence, it seems to do the trick.
So this:
    Usage:

    ```
        >>> r: Maybe[int, str] = get_a_maybe()
        >>> if is_some(r):
        ...     r   # r is of type Some[int]
        ... elif is_nothing(r):
        ...     r   # r is of type Nothing[str]
    ```

Renders like so:

Usage:
     >>> r: Maybe[int, str] = get_a_maybe()
     >>> if is_some(r):
     ...     r   # r is of type Some[int]
     ... elif is_nothing(r):
     ...     r   # r is of type Nothing[str]

It seems that lazydocs simply needs at least one space indent from the triple-backticks in order to not wrap the lines, so I'm going to make that slight adjustment to fix the rendering.

Related to this, I submitted a bug report and a feature request to lazydocs:

https://github.com/ml-tooling/lazydocs/issues/79
https://github.com/ml-tooling/lazydocs/issues/80


Allow request body content from file

I want to be able to have the webhook request body in a file in __files
e.g.
  "postServeActions": [
        {
            "name": "webhook",
            "parameters": {
                "method": "POST",
                "url": "http://localhost:8099/",
                "headers": {
                    "Content-Type": "application/json"
                },
                "bodyFileName": "req_scp_voice.json"
            }
        }
    ]

Execution failed for task ':wiremock-webhooks-extension:spotlessJavaCheck'.
> The following files had format violations:

But when I run that task on my local dev box I get
gradlew :wiremock-webhooks-extension:spotlessJavaCheck

BUILD SUCCESSFUL in 343ms
3 actionable tasks: 3 up-to-date

Sorry, I'm unsure what the actual violation was at this point.

Very useful PR!
Would be nice to have it in core webhooks functionality as well


Add Smart Exceptions

Added Smart Exceptions project
By submitting this pull request, I promise I have read the contribution guidelines twice and made sure my submission follows it.
⬆⬆⬆⬆⬆⬆⬆⬆⬆⬆

Thanks!


Browser reloads after Server recompiles but before Client recompiles, shows old content

Issue:
During development, old content is (occasionally) shown after saving, forcing dev to manually refresh the page to view latest app version.
Theory
I think this issue has been reported as a local cache issue previously, but I don't think that is the issue. In development mode after modification, the site reloads its modules and refreshes any connected browser. Occasionally, the "new" content shown is one build behind. My theory is that the site reload triggers before the client app is finished compiling, resulting in old content being shown to the developer.
I've uploaded a screen cap to Vimeo here: https://vimeo.com/user95078979/review/317133063/de27f344eb
The screen cap shows two changes are made: Darken the Title and modify the text to say "HI". After saving, I click to the razzle cmd window, which shows that the server compiles, the page reloads, then the client finishes compiling about 6 seconds after! Then I try to highlight that the text style is darker, but the text remains unchanged. Finally, I manually refresh the page to show that "HI" is now present.
I haven't had the chance to create a test repo, and it may be compile-time-length related, so I'm afraid I don't have anything for you in that way.

I can confirm this as well.

Any pointer on how to solve this @jaredpalmer? I can work on a fix but need some guidance.

I'm still facing this issue. Happy to help if someone can point me in the right direction

duplicate of #1069, let's move all conversations in that issue so we have everything in one place

Chronologically speaking the issue you are mentioning is the duplicated one.

@krvajal yeah, you are right, but there is no difference :)
let's focus and fix this bug

Let me know if I can help somehow

@krvajal https://github.com/jaredpalmer/razzle/issues/992#issuecomment-501119226

I was developing an app with razzle and hapi instead of express.
And faced with the described issue.
(BTW #1069 does not look as duplicate from the first sight)
I have tried all the options I could find... no luck.
As temporary dirty hack I did the following:
file: node_modules/webpack/hot/dev-server.js
replace this:
window.location.reload();
to:
setTimeout('window.location.reload()',1100);
There's two occurences...
In my case the second one is the needed one (in 'catch' section).
If someone will find a better solution - let me know please!


Feature/xinnanli/account name format

Critical Changes
Changes
We now support customizing the format of administrative account and household account names. In HEDA Settings, on the System tab, choose a preset naming option or create your own custom naming convention.
Issues Closed
Fixes #218
New Metadata
Deleted Metadata
Testing Notes

Deploy the HEAD package to Dev org or Scratch org
Go to HEDA setting page and switch to system tab
Select Admin account or Household account as default record type
Select naming setting for admin account and household account
Create a contact and make sure the name of account is correct

@lianeyee
I just realized I did not mention you in this pull request. Could you give it a quick review please? Thank you!

@xinnanlisf We should specify what level of customization we now support. What is that? Do we now offer a preset list of naming options for both administrative accounts and household accounts?

@lianeyee that's a good point. For your reference, here is a list of the requirements:
Ability to customize the the "Administrative" Account name with the following formats:
**{!LastName} Administrative Account: The current option for Administrative Accounts.
**{!{!FirstName}} {!LastName} Administrative Account: Generates an Administrative Account name such as “John Smith Administrative Account”.
**{!LastName} ({!{!FirstName}}) Administrative Account: Generates an Administrative Account name such as “Smith (John) Administrative Account”.
**You can also select other and specify your own naming convention.
Ability to customize the "Household" Account name with the following formats:
**none: Does not generate a Household Name, leaving it up to the user to assign one.
**{!LastName} Household: Generates a Household name such as “Smith Household” or “Smith and Jones Household,” depending on the number of Contacts in the Household.
**{!{!FirstName}} {!LastName} Household: Generates a Household name such as “John Smith Household” or “John and Jane Smith Household”.
**{!LastName} ({!{!FirstName}}) Household: Generates a Household name such as “Smith (John) Household”, “Smith (John and Jane) Household” or “Smith (John) and Doe (Jane) Household”.
**{!LastName} Family: Generates a Household name such as “Smith Family” or “Smith and Jones Family”.
**{!{!FirstName}} {!LastName} Family: Generates a Household name such as “John Smith Family” or “John and Jane Smith Family”.
**{!LastName} ({!{!FirstName}}) Family: Generates a household name such as “Smith (John) Family”, “Smith (John and Jane) Family” or “Smith (John) and Doe (Jane) Family”.
**You can also select other and specify your own naming convention.

@xinnanlisf Thanks, that's great. I fleshed out the description to anticipate the most common questions about what the feature allows. Making a note that we need to add this to the HEDA doc, as well.

Thanks @lianeyee, looks perfect to me!

Hi @xinnanlisf , just made some comments in the code. Basically, I think the options in the code looks different from the requirement. Is the requirement in the WI up to date?

Hey @weizsforg ,
I fixed the missing parenthesis issue and also the default values for picklist.
The only thing left is the 'none' option for household setting. Also, I also found there is an issue of other testbox. It should be disabled after saving the settings. I will let you know when I finish them but feel free to test the fixed ones.

@weizsforg
All clear! It is ready for review again, thanks!

Hi @xinnanlisf , I think I got an error when I try to config the Account Name format in HEDA Settings in Lightning.
This page has an error. You might just need to refresh it. Action failed: c:CMP_Acc_Naming_Dropdown$controller$init [prefix is not defined] Failing descriptor: {c:CMP_Acc_Naming_Dropdown$controller$init}
Can you have a look? Maybe some config is missing in my org?

Hi @xinnanlisf , I just left some comments. Please let me know if those make sense.

Question @weizsforg, the currently logic of naming household account is:
When creating a new contact, if there is an account already exist, we are not doing anything with the account naming. Account name is not changed when updating a contact as well.
For a brand new contact without related account exists, there is no point of adding two first names into one household account. Let me know if that makes sense.


Add support for distributed training to S3IterableDataset

Description
This change adds support for distributed training to the S3IterableDataset. With this enhancement, the dataset becomes aware of multiple-node and multi-process configurations. By passing enable_sharding=True, each worker will have access to its own subset of the entire dataset, enabling efficient parallel data loading and processing.
Additional context
In a multi-worker setup, where multiple workers (processes or threads) are used for data loading and processing, the S3IterableDataset partitions the dataset among the workers when you explicitly passed enable_sharding=True. This partitioning allows for parallel and efficient data handling.

[x] I have updated the CHANGELOG or README if appropriate

Related items
Support multi-process/multi-node sharding for S3IterableDataset
Testing
Integration and unit test were added.

By submitting this pull request, I confirm that my contribution is made under the terms of BSD 3-Clause License and I agree to the terms of the LICENSE.

LGTM!


Enable utils/fetch_sources.py to be called from anywhere

Fixes #194
Signed-off-by: Kévin Petit<EMAIL_ADDRESS>

Rebased and pushed onto master as  a2add47e66c


Feature Request: Gist-like file publishing

On the OSF currently, everything is a project or preprint/manuscript. This is great for many reasons, but I find myself wanting to upload a single file that is really neither of these things to the OSF. It just seems like overkill to have to make a project for one file.
I think a gist-style approach to single file uploads would be a neat addition to the OSF:

Gists are a great way to share your work. You can share single files, parts of files, or full applications. You can access gists at https://gist.github.com. Every gist is a Git repository, which means that it can be forked and cloned. The gist editor is powered by CodeMirror.

Gists retain the functionality that people love about GitHub without having to create a whole repo -- they are fork-able, embed-able (I'd highlight this as the #2 greatest feature of gists), and have permissions similar to full repos (private and public).
It would be great to have these one-offs for the OSF!

Hi @VickySteeves thanks for reaching out! We're working on a couple of features that might give you the functionality you're seeking. I'll take this feedback back to the Product team, noting the most important features you've highlighted, so we can compare against current requirements see where there might be gaps. I'll keep you posted as things develop!


[FR]Switch to install/upgrade a cask after submit.

It will be very useful since most users upgrade casks which they use by themselves and it's boring to wait for PR approval.

This was already discussed somewhere else. I agree and it’s on the list.

@yurikoles there is still this option:
-i, --install-cask                     Installs your updated cask after submission.

@muescha That’s the one, yes. It was added after this feature request, though. It’s quite a recent feature.

because i don't see this option when i used the script i would like to have an question to the interactive mode to install it now:
Install your updated cask now? ([y]es / [n]o)
y: install the cask from ${cask_file}
n: then it display a message:

  Submitted (https://github.com/caskroom/homebrew-cask/pull/30280)

  Install your updated cask now? ([y]es / [n]o)
  >n

  You decided not to install your updated cask now.

  you can install your updated cask from your local branch:
  brew cask install https://raw.githubusercontent.com/muescha/homebrew-cask/cask-repair_update-dash/Casks/dash.rb

i try to create a pull request for it.
i would like to use the raw cask from pull request, but i don't know how to get the url for it :(
https://raw.githubusercontent.com/muescha/homebrew-cask/cc3743280181a943680a3db7690f84997b99a59e/Casks/dash.rb

i would like to use the raw cask from pull request, but i don't know how to get the url for it :(

No point, it’s much easier to use the locally modified file (which is what it currently does).

i try to create a pull request for it.

Please don’t, as I won’t accept it. I don’t want to create another blocking prompt. It also wouldn’t fit well with options such as --blind-submit, since sometimes you want to have both. If you always use --install-cask, then you can alias cask-repair='cask-repair --install-cask in your shell.

I don’t want to create another blocking prompt

i agree - an additional blocking prompt makes no sense.
i think you also against this info lines (if --install-cask is not used)
  created branch `muescha/cask-repair_update-dash`

  Submitted (https://github.com/caskroom/homebrew-cask/pull/30280)

  you can now install your updated cask from your local branch:
  brew cask install https://raw.githubusercontent.com/muescha/homebrew-cask/cask-repair_update-dash/Casks/dash.rb

i think you also against this info lines (if --install-cask is not used)

I’d be fine with that line, actually. Just change it a bit:
You may upgrade the cask right now from your personal branch:
  brew cask reinstall https://raw.githubusercontent.com/muescha/homebrew-cask/cask-repair_update-dash/Casks/dash.rb

It should likely wait until #62, though, since before then your username isn’t in a global variable.

@muescha Done in https://github.com/vitorgalvao/tiny-scripts/commit/ba09a1db574993037164f91a828f132edfb6f35b and https://github.com/vitorgalvao/tiny-scripts/commit/0db5758c328c8b1f07146e2bb5ad3d77a6c28fea.


Variable type on hover not showing up

Environment data

Version: 1.56.0
Date: 2021-05-04T22:06:21.189Z (2 days ago)
Electron: 12.0.4
Chrome: 89.0.4389.114
Node.js: 14.16.0
OS: Darwin x64 20.4.0
Type of virtual environment used: venv
Relevant/affected Python packages and their versions: mypy
Relevant/affected Python-related VS Code extensions and their versions: MS-Python, GitLens
Value of the python.languageServer setting: jedi (default)

Expected behaviour
Variable type pops up in a small box on hover.
Actual behaviour
Only function definitions pop up on hover, variables do not pop up except with CMD + hover (in which case the full variable definition is shown).
Steps to reproduce:

Install VSCode on MacOS
Install MS-Python and GitLens extensions
Set mypy as the linter (although I disabled it and it's the same)

I've actually been having this problem on VSCode Insiders for a few weeks now. I kept updating it in hope of being resolved, and finally I uninstalled it and installed the fresh mainstream version, but nothing changed.
Never had this problem on Windows (same extensions).
Sometimes switching between the language servers would make it work but then immediately break on jedi. Pylance works fine in this aspect, but I don't want to use pylance because it gives too many false warnings.
I have a feeling something is wrong with jedi because sometimes it would also give errors on python builtins (logging, datetime and what not).
Logs
I don't know where the extensions and language servers log output.

I suppose there is not much incentive to solve this since Pylance has just become the default language server.
So what I did to work around the problem is switch to Pylance.
Because Pylance is not yet smart enough to analyze accross multiple files the way jedi did, I had to override the following severities in order to avoid a large number of false warnings:

Thank you for sharing that you managed to find a a workaround using Pylance for now 🙂 Even though it is the default language server, you can override this by selecting the language server of your choice. The Jedi language server option will be replaced by JediLSP in the future, so we still need to investigate this issue, and see whether it is caused upstream, or if it's a problem in the extension.

Because Pylance is not yet smart enough to analyze accross multiple files the way jedi did, I had to override the following

I take this back, it wasn't a problem of pylance because it simply had no way to determin where the modules are ran from. So I got rid of any false warnings by setting Python › Analysis: Extra Paths properly (usually you want that to be the root package).
Actually I'm already loving Pylance as its type assistance is better, the only downside is that it colorizes everything in green on the Monokai theme.. But I'm already taking this issue offtopic :)

Thank you for your patience!
Looking at the logs in the Python Language Server tab of the output channel when reproing your issue, I can see that the extension receives the following message when hovering on variable:

INFO:pygls.protocol:Sending data: {"jsonrpc": "2.0", "id": 5, "result": null}

Which indicates that the lack of hover information comes from the language server itself, which is then sent to the extension.
@karthiknadig Do you have any suggestions on how to get more detailed traced info before filing this against https://github.com/pappasam/jedi-language-server/issues?

Closing in favor of https://github.com/pappasam/jedi-language-server/issues/141


How to use dark mode?

Our website uses a dark color background so the components in our storybook look really out of place and not representative of real usage in our app.
How can we change the background color of the storybook in general?
Thank you!

In storybook.css I've tried:
/* This is your custom storybook stylesheet. */
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

/*
 * Put your component styling within the Tailwind utilities layer.
 * See the https://hexdocs.pm/phoenix_storybook/sandboxing.html guide for more info.
 */
@layer utilities {
  * {
    font-family: ui-sans-serif, system-ui;
  }

  .lsb-variation-block {
    @apply bg-gray-900 text-gray-100;
  }
}

But this doesn't seem to work.

Until there's first party support this seems to work, but is a brittle approach.
.lsb-variation-block > div:nth-child(2):has(.theme-dark) {
  @apply bg-gray-900 text-white;
}

Work in progress ...

Thank you @skipday for getting me started!

@cblavier any progress on this?

I need an extra bit of motivation to finish the work.
I remember I had difficulties supporting iframe components when toggling the theme. I should ditch it for now or force a full page reload.

Forcing a full page reload seems like a valid tradeoff.
This would be really valuable. In my current workflow I use storybook while developing components. But not having dark mode is quite limiting.


make action not required

Not every notification need an action, right?

This is released to npm as<EMAIL_ADDRESS>If you have action={false} on the component, there will be no action included.


DateTime::__construct(): Failed to parse time string

am having an app that use mysql which all works simply perfect & without a hitch , however am trying to migrate from mysql to mongodb using https://moloquent.github.io/master/#moloquent , so the code as follow

route

Route::group([
    'prefix'     => LaravelLocalization::setLocale(),
    'middleware' => ['localeSessionRedirect', 'localizationRedirect'],
    ], function () {

        Date::setLocale(App::getLocale());

       // routes
    }
);

model

public function getCreatedAtAttribute($value)
{
    return Date::parse($value)->format('F d, Y');
}

mongo collection

"updated_at" : ISODate("2016-10-19T14:08:27.624Z"),
"created_at" : ISODate("2016-10-19T14:08:27.624Z"),

You're attempting to parse a timestamp.  That's not likely to work.  Either prefix it with an @, or use the timestamp-handling methods instead,

can u plz tell me why it was working on mysql but not on mongo ? is it because of the field type or am am i suppose to use special method for mongo ?

Because MySQL stored dates as strings that needed parsing, while Mongo stores them as timestamps, which are just the (integer) number of seconds since 1970-01-01 00:00:00 UTC.

oh okay, so to get the above to work it should be
Date::parse(@$value)->format('F d, Y');

???

Date::parse("@{$value}")->format('F d, Y');

sweet, one last question, i also have things like
Carbon::parse($this->created_at)->toFormattedDateString();
Carbon::now()->addMonth($value)

it should also be as above
Carbon::parse("@{$this->created_at}")->toFormattedDateString();
Carbon::now()->addMonth("@{$value}")

Pretty sure ->created_at is going to be your formatted Date value, so no, those shouldn't change.

many thanx @danhunsaker 🍺

hi @danhunsaker , i have another issue also related to the date, not sure if i should open a new ticket for it but maybe u could help me with it
the field
"created_at" : ISODate("2016-10-19T17:11:21.717Z")

on view
January 03, 48771

controller
public function getCreatedAtAttribute($value)
{
    return Date::parse("@{$value}")->format('F d, Y');
}

Looks like some of your dates are stored as timestamps, and others aren't.  I'd look into that inconsistency.

perfect, tell me if you needed any further details

@danhunsaker i made a little tool to migrate the data from mysql to mongo https://github.com/ctf0/MysqlToMongoDb , and i found 2 things
1- if i migrated the tables through laravel art migrate the field that have the date is timestamp which leed to using the @ hack & the date being incorrectly rendered.
2- but when i migrate using my tool, the field is now string, which doesnt need the @ + the view can now display the date correctly.
i thought this may help u.

fixed on the mongo package ticket, thanx again.


Update readme to clarify "delete" meaning.

Signed-off-by: xuezhaojun<EMAIL_ADDRESS>

/assign @zhiweiyin318

/lgtm
/approve


Events wording changes

Based on CD Rotterdam feedback:

Change "save" on event to "save draft" to make it explicit that you are on a draft event and it is not published.
When viewing event info on the Dojo listing page it says "cancel" - change to "close"

fixed

Thanks!


Red screen with grace and fade-in

I've noticed the red screen issue (#3) persists under specific circumstances. After some experimentation, I've narrowed it down to being reproducible with only:
swaylock --grace 60 --fade-in 30

It doesn't happen 100% of the time, but if I run that, wait about a second before try to wake it, I'll get stuck on a red screen and have to kill sway to get back in.

Tracking other issues, the red screen apparently is a result of the swaylock process crashing without releasing the lock. Sway's default reaction to this is to display a red screen that you can't interact with at all (the logic being if your screenlock crashes, don't just unlock).
Happening to me as well within the past week, so going to look at the past few commits to see what happened...debug logs probably helpful across multiple machines

Hey guys I am having regular issues with swaylock crashing. It mostly happens when something about the display configuration changes. Laptop is attached to dock, or displays coming back from sleep. This is really annoying me, because it means I have to restart my session. Now I am not here to just complain. Here is the latest stack trace and coredump from my machine. I wish I could do more to help, but my time is constrained 🙈
(gdb) backtrace
#0  0x0000564765c225a0 in  ()
#1  0x0000564765c1ea34 in  ()
#2  0x0000564765c1b009 in  ()
#3  0x00007ff824a904f6 in  () at /usr/lib/libffi.so.8
#4  0x00007ff824a8cf5e in  () at /usr/lib/libffi.so.8
#5  0x00007ff824a8fb73 in ffi_call () at /usr/lib/libffi.so.8
#6  0x00007ff8253b4645 in  () at /usr/lib/libwayland-client.so.0
#7  0x00007ff8253b4e03 in  () at /usr/lib/libwayland-client.so.0
#8  0x00007ff8253b4ffc in wl_display_dispatch_queue_pending () at /usr/lib/libwayland-client.so.0
#9  0x00007ff8253b7c10 in wl_display_roundtrip_queue () at /usr/lib/libwayland-client.so.0
#10 0x00007ff824a904f6 in  () at /usr/lib/libffi.so.8
#11 0x00007ff824a8cf5e in  () at /usr/lib/libffi.so.8
#12 0x00007ff824a8fb73 in ffi_call () at /usr/lib/libffi.so.8
#13 0x00007ff8253b4645 in  () at /usr/lib/libwayland-client.so.0
#14 0x00007ff8253b4e03 in  () at /usr/lib/libwayland-client.so.0
#15 0x00007ff8253b4ffc in wl_display_dispatch_queue_pending () at /usr/lib/libwayland-client.so.0
#16 0x0000564765c1aa55 in  ()
#17 0x0000564765c1a4c7 in  ()
#18 0x0000564765c188a9 in  ()
#19 0x00007ff82516e790 in  () at /usr/lib/libc.so.6
#20 0x00007ff82516e84a in __libc_start_main () at /usr/lib/libc.so.6
#21 0x0000564765c18c75 in  ()

swaylockdump.tar.gz

just as a note my problems have gone away after reverting back to orginial repo … probably just including all upstream fixes would solve this ;)

just as a note my problems have gone away after reverting back to orginial repo … probably just including all upstream fixes would solve this ;)

Likewise - upstream repo works, rebasing with them might solve the problem.
If it's some other bug (like with grace or fade in) that is causing the crash, then obviously it won't help.

I had this occur once recently with Hyprland.

just as a note my problems have gone away after reverting back to orginial repo … probably just including all upstream fixes would solve this ;)

The upstream repo didn’t fix anything, it just does not implement the session lock protocol.

Could you please try to build and use the swaylock-effects with the patch from #38, if that fixes the problem for you?

Just updated and tried swaylock --grace 60 --fade-in 30, no issues :sunglasses:
It only ever happened for me once, but I'll report back if it ever recurs. ty!


Add ability to change NSURLSessionConfiguration used by SDWebImageDownloader

New Pull Request Checklist

[x] I have read and understood the CONTRIBUTING guide

[x] I have read the Documentation

[x] I have searched for a similar pull request in the project and found none

[x] I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

[ ] I have added the required tests to prove the fix/feature I am adding

[x] I have updated the documentation (if necessary)

[x] I have run the tests and they pass

[x] I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: #1870
Pull Request Description
Fixes issue #1870
I realized that changing the NSURLSession would require cancelling everything in the download queue, which seemed like a bigger-than-acceptable side effect for a property setter, so I went with exposing a read-only sessionConfiguration property and a createNewSessionWithConfiguration: method for the public API.

Codecov Report

Merging #1891 into master will increase coverage by 0.02%.
The diff coverage is 81.25%.

@@            Coverage Diff             @@
##           master    #1891      +/-   ##
==========================================
+ Coverage      76%   76.03%   +0.02%
==========================================
  Files          27       27
  Lines        2513     2520       +7
==========================================
+ Hits         1910     1916       +6
- Misses        603      604       +1

Impacted Files
Coverage Δ

SDWebImage/SDWebImageDownloader.m
82.06% <81.25%> (+0.14%)
:arrow_up:

Continue to review full report at Codecov.

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

Could we get this merged sometime soon?


gnome-shell with wayland freezing when hovering channel name

Describe the bug
When hovering the element where the channel name is in (see screenshot) there is a 50% chance of the gnome-shell completely freezing. Mouse is then frozen and gnome does not react to any keyboard input anymore. Sometimes gnome comes back to life after some time, maybe 30 seconds, but sometimes only a hard reset helps.
This bug only occurs on my new Lenovo ThinkPad L13 Yoga. I have the same OS on my desktop PC and it does not occur there.
And yes this only happens with Chatterino on this particular element.
To reproduce
Hover over channel name element under Fedora 31 Gnome 3.34
Screenshots
https://imgur.com/3iGJqtB
Chatterino version
Chatterino 2.1.7 (commit 845c8fa63)
Operating system
Fedora 31 GNOME 3.34
Hardware
Lenovo ThinkPad L13 Yoga - i5-10210U
Additional information
This bug goes in my top 10 of weirdest bugs.
Workaround
Always move the mouse around it Kappa

Just noticed that I used x11 on my desktop all the time...thats why it didn't happen there. Changed to wayland and now it also happens on my desktop.

This bug seems to be fixed with GNOME 3.36 (Fedora 32)

I was wrong. Its still happening, but much less frequently.

I think this is fixed

Tested it again on a Ubuntu 20.10 VM with Wayland session (As said it only happens on wayland) and it still happens with version 2.2.2. It freezes for a couple of seconds (the tooltip does not appear) and then it crashes.

Should I open this again? I don't see this being fixed in the chatterino code.

It's not working on fedora 33, any fix to it?
Gnome 3.38.5 Wayland.

Would love to have some help from some actual wayland users as it's not the most commonly used platform

I'm a little late to the party, gnome 43.1 on debian testing, but I can't reproduce this issue under wayland with chatterino running under either QTWayland or XWayland. Hovering over the red line c0ldplasma posted just hides the tooltip instead of crashing.
Pure speculation, of course, but I would bet this was a gnome or mutter bug rather than a chatterino bug if it crashed the entire shell session.

Closing until we have confirmations of this still happening after v2.4.0, thank you @sheybey


Apollo 开放平台支持灰度发布

Is your feature request related to a problem? Please describe.
现期望基于Apollo去做配置的分级发布（集成内部系统的分级发布），但是发现开放平台没有灰度发布的API
Describe the solution you'd like
提供灰度发布API（包括灰度规则创建 + 灰度发布/回滚）
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Duplicate of #3408


Partially translated Design.md

@yume190, could you create a list of action items in https://github.com/XCodeBazelize/Bazelize/projects?type=beta ?
I would love to start coding a bit before revisit these docs.


feat: Leverage local rate limiting if available in environment

This implements tracking local rate limits
Closes #50

We've decided that local rate limit only has limited benefits to the users, so we're going to close this out as not planned.


Error while using tspy package

D =   [[  0,  60,  66, 258, 256, 682, 770, 888],
[ 60,   0,  50, 225, 213, 630, 719, 832],
[ 66,  50,   0, 275, 260, 618, 707, 829],
[258, 225, 275,   0,  52, 689, 772, 840],
[256, 213, 260,  52,   0, 637, 719, 789],
[682, 630, 618, 689, 637,   0,  88, 245],
[770, 719, 707, 772, 719,  88,   0, 181],
[888, 832, 829, 840, 789, 245, 181,   0]]
from tspy import TSP
tsp = TSP()
tsp.read_mat(D)
from tspy.solvers import TwoOpt_solver
two_opt = TwoOpt_solver(initial_tour='NN', iter_num=100)
two_opt_tour = tsp.get_approx_solution(two_opt)
The code does not exceute and gives the following error:
TypeError: list indices must be integers or slices, not tuple

The problem is that read_mat takes a numpy matrix as argument (this is mentioned in the docs).
If you replace the first line by
import numpy as np
D = np.array([[...],...,[...]], np.float64)

the code runs as expected.


Include user role in user query

connect #70

User is not really required here. Therefore the test should be:

if client has master key, allow request
if client is authenticated and the UserInfo has admin roles, allow request
otherwise, deny request

Okay. I will add some test cases.


Rhino: BOM Command PART DESC cell is too short

Cell is too short

Changed to have constant value of 0.8
spacingx_desc = (
    (max_length_names * text_height) +
    (max_length_desc * text_height * 1.4) +
    0.8
)


Skeletonize the Repository

💡 Summary
This repository should be skeletonized to descend from cisagov/skeleton-python-library. Once that is done the Docker elements should be broken out into their own cisagov/pca-core-docker repository which should be started from cisagov/skeleton-docker.
Motivation and context
All of our active projects that are able should descend from an appropriate skeleton repository. This will ensure they follow organization development standards and practices as well as allow for automated updates from cisagov/action-lineage.
Implementation notes
Skeletonizing should be done by following our documentation and getting feedback from dev team members. The new cisagov/pca-core-docker repository should be started following our project setup documentation.
Acceptance criteria

[ ] Repository has a skeletonize branch that properly integrates cisagov/skeleton-python-library using or skeletonizing documentation
[ ] A PR from that branch is approved by members of @cisagov/team-ois and merged into this repository
[ ] The Dockerfile and any Docker related pieces/documentation are moved out to their own cisagov/pca-core-docker repository that is based on cisagov/skeleton-docker as described in our project setup documentation

@BenBreaksThings Please assign this as you see fit.


demo?

please :)

Oh this package is in its earliest stages so a full demo would be a little while. But I can throw up a gif animation in the meantime. Would that be ok?

Sure that would be great! Can you make sure the inspector is also visible in the gif?

@FranzSkuffka I've made the component "demoable" by pulling down locally and running npm start. :+1:


Update QoS feature.textproto

Added missing qos config and telemetry paths

Reference:  https://ops.openconfig.net/branches/models/master/openconfig-qos.html#

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 71.374%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1314

Relevant Lines:
1841

💛  - Coveralls

I am thinking ECN should be in its own feature profile, with only the "enable-ecn" leaf going into it.   ECN would require the base QOS feature still.

I am thinking ECN should be in its own feature profile, with only the "enable-ecn" leaf going into it. ECN would require the base QOS feature still.

Ack. Deleted enable-ecn from feature profile. We will discuss if we need to create a separate ecn feature profile.


Support TLS 1.3 in v7 and v8

To utilize the new CF capability we need to update client's TLS to 1.3

Implemented in babc5a98bdaa821bbed15ac0d7adedda688965a8

@jdgonzaleza and I cherry-picked TLS 1.3 from v7 to v8 as https://github.com/cloudfoundry/cli/commit/95bac9ef1626083f07892867511cc2a66190b21e


A replacement of default action sheet, but has very simple usage.

Project URL
https://github.com/khuong291/kpactionsheet
Description
A replacement of default action sheet, but has very simple usage.
Why it should be included to awesome-ios (optional)
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 3
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

@naeemshaikh90 , still has conflicts :|

@khuong291 try to add in from awesome-ios's README.md

I edit from your README.md, see the files changed, I just change 1 line.

Hey @khuong291 try to remove all branches and than start over again. If still conflicts occurs than try to remove your forked repo completety than start over again by forking latest awesome-ios repo. 🙂


Error when trying to open Dropbox database

I use Keepass and KeeAnywhere with 3 devices (2xWin10 and 1xAndroid). My Keepass database is on my dropbox drive to keep it synced.
All of the sudden KeeAnywhere stopped working on one of the Win10 device (the other Win10 and the Android are
still working).
When KeePass starts and trying to open the database from dropbox, I get an error:
dropbox:///Hans Wurst/KP/kp.kdbx
Failed to load the specified file!
Ausnahmefehler während einer WebClient-Anforderung!

(Last sentence is in German, because my Win10 is German. It's says something about an Exception during WebClient Request.)
I checked all the settings, they are the same on both Win10 devices, also Keepass and KeeAnywhere versions are the same. Both devices are in the same network, but it also doesn't work if I connect the faulty device via LTE, so it's not a connectivity issue.
Any idea what goes wrong here? Can I somehow turn on debug mode and check a log file?
Thanks a lot!

Is this still a problem? If yes, then please reopen this issue and update with further information.

I still get this error occasionally.
To fix it, I have to log into Dropbox on the same machine with a browser, then open keypass with the database loaded from that Dropbox, and it works.
Seems some kind of token expiration. Not sure if you can do something to fix this. I can work with the manual steps every few weeks


Temporary fix for /apps/text/session

Hi @prghix,
Please edit your opening comment so that it provides a description of what this change is doing and why you are proposing it.
Please also give your rule an id. You can follow the pattern of rule IDs already present in the file :slightly_smiling_face:

@prghix Will you look at this? Thank you!

@prghix Will you look at this? Thank you!

of course, this is high on my priority list...

@prghix Any news? Thank you!

@prghix Any news? Thank you!

Hello.. I watch all the discussions over here and also in coreruleset/coreruleset.
Will update the CRS and test against several NC instances first...

Closing due to inactivity.


Freestanding PFR version

Sometimes it is convenient to have a freestanding version of the library, that does not mention boost.
Make a script that produces such version

Freestanding version now available at https://github.com/apolukhin/pfr_non_boost
Script is available here: https://github.com/boostorg/pfr/blob/develop/misc/strip_boost_namespace.sh


according to  series data.lengthto set echart's width

What problem does this feature solve?
if i don't want to change liner's form  when i dynamic add data's。when i push next group data,echart's line can change origin shape. so ,how to deal with it?
What does the proposed API look like?
series can set liner width . If I divide the echart width into twelve equal parts，dynamic update data can't change line shape

What do you mean by "liner width" and "line can change origin shape"? Of course it will change the shape. Maybe you should provide a few images to illustrate better.


Ubuntu 22.04 vpncmd check fail

[x ] Can you reproduce?
[x ] Are you running the latest version of SoftEtherVPN?

SoftEther version:
Version 5.01 Build 9674   (English)
Component: Server, vpncmd
Operating system: Ubuntu Server 22.04 (stock, zero kernel changes) x64
Architecture: 64 bit
Description
Connecting using vpncmd, client, localhost.
Running the "check" command gives the following on Checking 'Network system'...
"Connect Failed. (0)"
Steps to reproduce

sudo apt-get install softether-vpnserver (default ubuntu repo, no PPA, installation softether-vpnserver_5.01.9674+git20200806+8181039+dfsg2-2build1_amd64.deb package)
vpncmd
check

After changes in etc/ssl/openssl.cnf:
[ssl_default_sect]
MinProtocol = TLSv1.2
CipherString = DEFAULT:@SECLEVEL=0

All checks pass
https://github.com/SoftEtherVPN/SoftEtherVPN/issues/1230

it is somewhat known. maybe we should check SECLEVEL and refuse to start on SECLEVEL=1 and higher

This issue is already fixed. The version in the Ubuntu repo is just too old.

let us make new release


error The model gpt-4-1106-preview does not exist or you do not have access to it

I'm getting error Error: 404 The model gpt-4-1106-preview does not exist or you do not have access to it. Learn more: https://help.openai.com/en/articles/7102672-how-can-i-access-gpt-4. after adding an API key and asking it to generate login page.

Ran into this issue myself and would like to say that it seems you have to

Add credits to your account(simply having ChatGPT premium or whatever is not enough) through platform.openai.com
Generate a new API token if you already added one, like I also did, I guess it contains information about what access you had at the time of signing.
If 2., then you're going to have to edit localstorage to update your API token. Or at least I couldn't find any other UI way


Change the dropbox client we're using.

Toward https://github.com/attic-labs/attic/issues/152

TBR

Does this mean those that have integrated Dropbox already will need to go get new tokens?

No, the old app still works.

lgtm


Switch system worker to gRPC

What changed?
Switch PublicClient used mainly by Worker role to communicate in gRPC
Additional transport config was introduced under publicClient to allow overriding transport back tchannel which otherwise would default to grpc.

Why?
Final bits of gRPC migration on server side.

How did you test it?
Updated integration tests.
Locally started cadence canary. Issues batch terminate command which would start batch workflow on system worker.

Potential risks

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build 59da7450-a52d-4157-a53b-662c06ce5f85

42 of 57 (73.68%)  changed or added relevant lines in 5 files are covered.
25 unchanged lines in 10 files lost coverage.
Overall coverage increased (+0.04%) to 56.952%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

common/rpc/outbounds.go
15
17
88.24%

host/onebox.go
17
19
89.47%

cmd/server/cadence/server.go
0
11
0.0%

Files with Coverage Reduction
New Missed Lines
%

common/backoff/retry.go
1
93.91%

common/persistence/historyManager.go
2
66.33%

common/task/fifoTaskScheduler.go
2
85.57%

common/task/parallelTaskProcessor.go
2
92.75%

service/history/execution/mutable_state_builder.go
2
69.66%

service/history/queue/timer_queue_processor.go
2
58.8%

service/history/queue/transfer_queue_processor.go
2
57.24%

service/matching/taskListManager.go
2
74.19%

service/history/queue/timer_queue_processor_base.go
4
78.83%

common/types/mapper/thrift/shared.go
6
63.18%

Totals

Change from base Build bb5e3efc-e0bc-4736-84cf-f05615f8c718:
0.04%

Covered Lines:
82853

Relevant Lines:
145479

💛  - Coveralls


Allow any node to be passed in as the avatar for GlobalHeaderProfile

Fixes #1461
Additional description
Allow any node to be passed in as the avatar for GlobalHeaderProfile.

CONTRIBUTOR checklist (do not remove)
Please complete for every pull request

[x] First-time contributors should sign the Contributor License Agreement.  If you haven't before, wait a few minutes and a bot will comment on this pull request with instructions.
[x] npm run lint:fix has been run and linting passes.
[x] Mocha, Jest (Storyshots), and components/component-docs.json CI tests pass (npm test).
[ ] Tests have been added for new props to prevent regressions in the future. See readme.
[x] Review the appropriate Storybook stories. Open http://localhost:9001/.
[x] The Accessibility panel of each Storybook story has 0 violations (aXe). Open http://localhost:9001/.
[x] Review tests are passing in the browser. Open http://localhost:8001/.
[x] Review markup conforms to SLDS by looking at DOM snapshot strings.

REVIEWER checklist (do not remove)

[ ] TravisCI tests pass. This includes linting, Mocha, Jest, Storyshots, and components/component-docs.json tests.
[ ] Tests have been added for new props to prevent regressions in the future. See readme.
[ ] Review the appropriate Storybook stories. Open http://localhost:9001/.
[ ] The Accessibility panel of each Storybook story has 0 violations (aXe). Open http://localhost:9001/.
[ ] Review tests are passing in the browser. Open http://localhost:8001/.
[ ] Review markup conforms to SLDS by looking at DOM snapshot strings.
[ ] Add year-first date and commit SHA to last-slds-markup-review in package.json and push.
[ ] Request a review of the deployed Heroku app by the Salesforce UX Accessibility Team.
[ ] Add year-first review date, and commit SHA, last-accessibility-review, to package.json and push.
[ ] While the contributor's branch is checked out, run npm run local-update within locally cloned site repo to confirm the site will function correctly at the next release.

Let me know if there was some other test I was supposed to add besides the storybook story. I noticed that snapshot testing was disabled for the GlobalHeader components https://github.com/salesforce/design-system-react/blob/b26f1b12fe6346b664c6fd47c2e3ff1589672e56/components/story-based-tests.js#L61 (looks like it fails on trying to load the example SVG and would require jest to have that loader enabled).

@sudowork I created a pull request into your fork branch at https://github.com/sudowork/design-system-react/pull/1 that adds tests.

Hey @interactivellama , I merged your branch from last week (sorry I missed the comment)


ISSUE-1044: Add support to fetch nested fields in DruidEventMapper

@arunmahadevan pinging for review

@omkreddy Do this need any change in UI?

@Yes, we need UI change. I was thinking to raise new issue after merging this PR.

@omkreddy Ok cool.

@shahsank3t  I will create new issue for UI change. We can  merge after this PR.

sounds good @omkreddy

Will this patch break Druid sink working with UI? If then let's file an issue for UI and handle both of them at once for not making master branch in broken state.

changes are backward compatible.  We have raised  UI issue.
https://github.com/hortonworks/streamline/issues/1046

Hi @priyank5485 , can you review the changes ?

@omkreddy Reviewed and left some comments. I believe that main change in json is for dimensions where noNestedField is removed and hence UI will now also start passing field names with a dot convention for nesting.
On a side note, I noticed that some druid related classes are probably in the wrong module. For example DruidBeamFactoryImpl and DruidEventMapper is in streamline-layout-storm. If thats a class thats only being used in the bolt then you can move it to the storm-runtime-storm. Thats the convention I have been following but it might not apply here.

@priyank5485  Thanks for the review. Updated few review comments.
Regarding moving classes to storm-runtime-storm: Agree looks like druid and opentsdb related classes are in streamline-layout-storm. Will do the cleanup after the release, to avoid any regression issues.
Since i was not moving the classes,  to access StreamlineRuntimeUtils, I moved the StreamlineRuntimeUtils to common module and renamed as StreamlineUtils. let me know if any concerns.

@omkreddy Can you file a follow up issue to clean up the changes we discussed in this PR ?Regarding renaming and moving StreamlineRuntimeUtils is it done because druid related runtime classes are in layout and it does not depend on runtime? If so, I think we should move StreamlineUtil back to runtime module since its only accessed in runtime classes. Can you make a note of that in the follow up issue?
As far as DruidEvent is concerned do we still need that inner class? It seems it was created just to get the nested fields. If so, do you think we should remove that class completely and just use the StreamlineUtils method wherever needed? If so, you can do it in this PR or handle in the follow up issue. I will leave it up to you.
Other than the two things mentioned in this PR I am +1 once you raise a follow up issue.

@priyank5485  raised  issue here: #1070
Druid client library takes Map as input data event and key list (dimensions) to query the event. So we need pass the DruidEvent to the underlying druid library.

+1

Thanks @omkreddy for the patch. Merged to master.


counter: Add danish translations

Add danish translations for counter on banglejs2. These are app-specific because I shortened them quite a lot to make them fit on the screen, so they might not be applicable for other apps.
This needs  #3576 to work.

Thanks!


Fix for git rev-parse error out before checking for allow_no_upstream

Fixed an issue where git rev-parse would error out before checking the config.allow_no_upstream.
I built locally and was able to release without issues

Fixes #871


Update google-chrome to 66.0.3359.181

Hi all, I would like to update the cask to the latest version of Google Chrome
https://chromereleases.googleblog.com
Cheers, Fokko

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[ ] Named the cask according to the token reference.
[ ] brew cask install {{cask_file}} worked successfully.
[ ] brew cask uninstall {{cask_file}} worked successfully.
[ ] Checked there are no open pull requests for the same cask.
[ ] Checked the cask was not already refused in closed issues.
[ ] Checked the cask is submitted to the correct repo.

Oops @commitay, that must have bin a typo, thanks for fixing.

Thanks for the PR!

Thank you, just installed it and it works fine:
MacBook-Pro-van-Fokko:~ fokkodriesprong$ brew cask install google-chrome
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (caskroom/cask).
No changes to formulae.

==> Satisfying dependencies
==> Downloading https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask google-chrome
==> Installing Cask google-chrome
==> Moving App 'Google Chrome.app' to '/Applications/Google Chrome.app'.
🍺  google-chrome was successfully installed!


feat(people): add people endpoint and tests

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

GitHub release
npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:


To get the coordinate of the intersection point of a grid by clicking the point

When I run this python code for the captioned, the error occured as follows, File "c:\Users\sonsun\AppData\Local\Programs\Python\Python311\Lib\site-packages\comtypes\automation.py", line 843, in _invoke
self.__com_Invoke(memid, riid_null, lcid, invkind, dp, var, None, argerr)
_ctypes.COMError: (-2147352567, '예외가 발생했습니다.', ('Invalid argument Point in GetPoint', 'AutoCAD', 'C:\Program Files\Autodesk\AutoCAD 2019\HELP\OLE_ERR.CHM', -2145320939, None))
for the following code,
from pyautocad import Autocad, APoint
acad = Autocad(create_if_not_exists=True)
doc = acad.ActiveDocument
def gpuser():
sp = APoint(0, 0, 0)  # Initializing sp with coordinates (0, 0, 0)
ep = APoint(0, 0, 0)  # Initializing ep with coordinates (0, 0, 0)
rp = APoint(0, 0, 0)  # Initializing rp with coordinates (0, 0, 0)
sp = doc.Utility.GetPoint("\nBottom-left corner on the column:")
ep = doc.Utility.GetPoint("\nBottom-right corner on the column:")
rp = doc.Utility.GetPoint("\nTop-left corner on the row:")
print("sp(1) input =", sp[0])  # Assuming you want to print the X coordinate of the 'sp' point
gpuser()
How can I fix the error and to get the correct response from the active autocad drawing.
Thanks in advance,
Sun, Son

ActiveX get point can accept a base point.
Play around with
GetPoint(None, Prompt) or
GetPoint(pythoncom.Empty, Prompt) or
From my wrappers
https://github.com/CEXT-Dan/PyRx/blob/fb2f51acf279239869f7d24d1040647f996e8ca5/PyRxStubs/AxApp24.py#L24705-L24715


gepetto-viewer: init at 5.1.0

Description of changes
This add the gepetto-viewer GUI, an openscenegraph & Qt application, with its python interface and CORBA middleware:
https://github.com/gepetto/gepetto-viewer
Here is an example on how to use it to display the talos robot:
{
  description = "Test gepetto-viewer";
  inputs.nixpkgs.url = "github:nim65s/nixpkgs/gepetto-viewer";
  outputs =
    { nixpkgs, ... }:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};
    in
    {
      devShells.${system}.default = pkgs.mkShell {
        packages = [
          pkgs.gepetto-viewer
          (pkgs.python3.withPackages (
            ps: [
              ps.example-robot-data
              ps.gepetto-viewer-corba
            ]
          ))
        ];
      };
    };
}

And in that shell:
gepetto-gui & python -m example_robot_data talos

This should display (after clicking on "zoom to fit" and moving around a bit):

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Looks good on Linux, though gepetto-viewer doesn't build on darwin.

thanks for the test, I'll investigate this week

Ok, so deactivating a couple optional plugins on darwin fix the build, but I have no idea how to start the GUI. running gepetto-gui in that development shell immediately raise Killed: 9.

I guess darwin.autoSignDarwinBinariesHook is needed somewhere. Does the issue occur on x86_64-darwin?

Thanks ! I can now load and display meshes on aarch64-darwin, but this require #325214 to load those meshes from example-robot-data. Here is a branch to test that: https://github.com/nim65s/nixpkgs/tree/pin310%2Bgepetto-viewer

Result of nixpkgs-review pr 324018 run on aarch64-darwin 1

18 packages built:

gepetto-viewer
osgqt
python-qt
python311Packages.crocoddyl
python311Packages.example-robot-data
python311Packages.omniorb
python311Packages.omniorbpy
python311Packages.omniorbpy.dev
python312Packages.crocoddyl
python312Packages.example-robot-data
python312Packages.gepetto-viewer-corba
python312Packages.gepetto-viewer-corba.doc
python312Packages.gepetto-viewer-unwrapped
python312Packages.gepetto-viewer-unwrapped.doc
python312Packages.omniorb
python312Packages.omniorbpy
python312Packages.omniorbpy.dev
qgv

Result of nixpkgs-review pr 324018 run on x86_64-linux 1

17 packages built:

gepetto-viewer
osgqt
python311Packages.crocoddyl
python311Packages.example-robot-data
python311Packages.omniorb
python311Packages.omniorbpy
python311Packages.omniorbpy.dev
python312Packages.crocoddyl
python312Packages.example-robot-data
python312Packages.gepetto-viewer-corba
python312Packages.gepetto-viewer-corba.doc
python312Packages.gepetto-viewer-unwrapped
python312Packages.gepetto-viewer-unwrapped.doc
python312Packages.omniorb
python312Packages.omniorbpy
python312Packages.omniorbpy.dev
qgv

It is working again on darwin with #333425, so this lgtm now

@SuperSandro2000 : thanks for the review ! It makes more sense now.

Oh, wait, there is an easy solution :)
I updated the example one more time.


Functional Requirements: App-Login via Keycloak for Party Members

As a member, I want to be able to log in to the app with my "Grünes Netz" account information in order to obtain and maintain secure access to the data in the app and also be identified and authenticated using this information.
From the start screen, users can access the login through a click on the button "Jetzt einloggen". The login process as well as the forgot password flow run through the Keycloak service. The login design is adapted to the prototype, to existing Keycloak design and generally to the most current Grundlagendesign.

Perhaps there is something reusable in this branch: https://github.com/verdigado/gruene_app/compare/legacy...86-55-keycloak-authenticator-implementierung

issue is reviewed


Include Total Lines per File Extension in API

As a front-end developer, I want to be able to see total lines per file extension in the API, in order to see the weight of languages used in a project.
Acceptance Criteria:

Total Lines per File Extension included in each repository in the API.

Blocked by #37


[loader] Change semantics of path in ini

Ini description is expected to be somewhat determinisitic.
But paths inside ini is not deterministic. For example, if you have
save_path=model.bin,
if A application trains it and B application try to use it, reading the
same ini does not gaurantee B to read to the weights from A.
It is because A and B can have diffrent working path.
To make it consistent, this patch changes semantics of paths' in ini.

if model.appcontext.hasWorkingDirectory(), path inside ini are interpreted from
the workingDirectory
else, it is interpreted relative to where ini is located at.

Self evaluation:

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #1007. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnsuite.mooo.com/.

Can you please describe the outcome of various scenarios for this? Some scenarios of the top of my head:

two models with different ini location and shared appContext, is path different for each?

It will be essentially same for both but it depends on if the model app_context has working path set.
   return appContext.hasWorkingPathSet() ? app_context.getWorkingPath() : model_file_context.getWorkingPath();

new ini configuration is loaded, is path interpreted updated?

Path will be interpreted before setting into the model. So, path won't interpreted again. if Path is newly given from the new ini conf, it will be interpreted relative to the ini. (if you have working directory set for the model, it will be used for old and new ini config though).
If you have a good reason to avoid this behavior, it will be more reasonable to use api or absolute path.

is currentWorkingDirectory updated when interpreting these paths?

No, more like, every model_file has it's own working directory and it is used if model's working directory is not set.

if user sets relative savePath as a property, is it wrt to ini or currentWorkingDirectory?

Extending from 3, wrt to ini if model's working directory is not set else model's working directory.
Current related doc is below. Please throw me some idea if the description is a bit shady.
   /* from ModelLoader::resolvePath
   * @note  if path is absolute path, return path.
   *        if app_context has working directory set, resolve from app_context
   *        if not, resolve path assuming model_path is the current directory.
   *        The behavior relys on the semantics of getWorkingPath();
   */

:octocat: cibot: @zhoonit, nntrainer/models/model_loader.cpp includes bug(s). Please fix incorrect coding constructs in your commit before entering a review process.

:octocat: cibot: @zhoonit, One of the module of prebuild group is failed. If you want to get a hint to fix this issue, please go to https://github.com/nnstreamer/nntrainer/wiki/.

two models with different ini location and shared appContext, is path different for each?
It will be essentially same for both if app_context.getWorkingPath() is set, if not it will be different.

Please update the documentation (docs/*.md) for this case.

if user sets relative savePath as a property, is it wrt to ini or currentWorkingDirectory?
Extending from 3, wrt to ini if model's working directory is not set else model's working directory.

So, save path will always be wrt to ini. I wonder if wrt to local directory vs wrt to ini directory - which is more intuitive. IMO, the behavior is not intuitive for a user who does not set currentWorkingDirectory() manually.

So, save path will always be wrt to ini

Not always, if model app_context has working directory, it is relative to the working directory.

I wonder if wrt to local directory vs wrt to ini directory

Although, local directory seems more intuitive, the reason for this design change is that, app can easily gets to some undefined zone if it is based on applications working directory as a default.

if same application running in different working directory, it will fail to load the save path
if same model is used across application, it will fail to load the save path (except for a single case that all applications are in the same directory)

BTW, the ini file path, if the currentWorkingDirectory is not set, what is it wrt?

It is based on the ini file's absolute path so model_file_context (compared to model_context) is guaranteed to have working directory set.

Let me update the description to make it clearer.


redirect_to with turbolinks option failing

I have an issue with cross domain redirects and Turbolinks not working as expected. Although I should admit at this point that this expectation is set using the README on turbolinks/turbolinks-classic since this repo doesn't have one. :]
If I add 'data-turbolinks' => false to the HTML link that triggers a redirect, then the redirection happens fine and no errors are printed to the JavaScript console. However, if I remove that data tag, and instead add the turbolinks: false option to the redirect_to call, then I get the initial XHR request, followed by the No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ... is therefore not allowed access. error printed to the JavaScript console, followed by the HTML redirection request, which then succeeds.
I was under the impression that adding turbolinks: false to a redirect_to call would cause the browser to redirect normally, and therefore no Access-Control-Allow-Origin error would be printed to the log.
A little more context
We have an SSO service that all our apps communicate with. Each app has both a prominent sign on/off link, as well as automatic sign in if a user is already signed in to one of the other apps using the service. Adding the data-turbolinks tag to the links works fine, but it's the automatic sign in that is generating the Access-Control-Allow-Origin error. The way this works is that some business logic runs in a before_action in the application controller, and if it's determined that a user can be automatically signed in then a redirect happens using redirect_to to our SSO service that is hosted on a different domain.
Steps to reproduce
You can recreate the behaviour I'm seeing with this very simple example:
# controller.rb
class Controller < ApplicationController
  def google
    redirect_to('http://google.com', turbolinks: false)
  end
end

# routes.rb
get 'google', to: 'sessions#google'

# index.html.erb
<%= link_to("Google", google_path) %>

Expected behavior
The response served to the browser would cause it to redirect normally and not attempt to load the contents of the redirection via XHR.
Actual behavior
An attempt to redirect via XHR is triggered, followed by...
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ... is therefore not allowed access.

...followed by a normal redirection.
System configuration
Rails version: Rails 5.0.0.beta3
Ruby version: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]

From the README:

Note: in v3.0, the default behavior of redirect_to is to redirect via Turbolinks on XHR + non-GET requests. You can opt-out of this behavior by passing turbolinks: false to redirect_to.

Passing turbolinks: false means "return 302 Found to the XHR request" not "redirect the browser location to the new URL as if this hadn't been an XHR request in the first place." If that makes sense 😊
That's why 'data-turbolinks' => false works as you expect. It means you get a browser page load, not an XHR page load, so a 302 Found response does redirect the browser window, not the XHR response.

the default behavior of redirect_to is to redirect via Turbolinks on XHR + non-GET requests

This is still a bit confusing as it implies XHR + GET requests wouldn't redirect via Turbolinks.
In the example I've given passing true or passing false yield the same result.
Could you advise on how best to handle cross domain server side redirection on a Turbolinks initiated XHR + GET request?

I have encountered this issue as well and need to set the redirection server-side.

I have encountered this issue as well and need to set the redirection server-side.


[Set Audio Device] Crash When Include Airplay Devices is Enabled

Extension
https://raycast.com/benvp/audio-device
Raycast Version
1.88.4
macOS Version
15.1
Description
Error:
Error: Command failed with exit code 1: osascript -e
    set devices to {}

    tell application "System Preferences"
      reveal pane id "com.apple.preference.sound"
    end tell
    tell application "System Events"
      tell application process "System Preferences"
        repeat until exists tab group 1 of window "Sound"
        end repeat
        tell tab group 1 of window "Sound"
          click radio button "Output"
          tell table 1 of scroll area 1
            set selected_row to (first UI element whose selected is true)
            set currentOutput to value of text field 1 of selected_row as text

            repeat with r in rows
              try
                set deviceName to value of text field 1 of r as text
                set deviceType to value of text field 2 of r as text
                set end of devices to { deviceName, deviceType }
              end try
            end repeat
          end tell
        end tell
      end tell
    end tell

    if application "System Preferences" is running then
      tell application "System Preferences" to quit
    end if

    return [ devices, "currentOutput", currentOutput ]

64:116: execution error: System Settings detectó un error: No puede obtenerse pane id "com.apple.preference.sound". (-1728)
    at D9 (/Users/tiresias/.config/raycast/extensions/2158713f-4712-4862-ba9a-3bce3cd07e3a/set-output-device.js:4:57)
    at /Users/tiresias/.config/raycast/extensions/2158713f-4712-4862-ba9a-3bce3cd07e3a/set-output-device.js:4:6400
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async fa (/Users/tiresias/.config/raycast/extensions/2158713f-4712-4862-ba9a-3bce3cd07e3a/set-output-device.js:38:6806)
    at async N0 (/Users/tiresias/.config/raycast/extensions/2158713f-4712-4862-ba9a-3bce3cd07e3a/set-output-device.js:38:6981)

Steps To Reproduce

Enable "Include AirPlay devices"
Access the "Set Output Device" menu

Current Behaviour
No response
Expected Behaviour
This issue has been reported nine times since 2022, with the most recent report in November. I believe this issue should remain open as Stalled, or the extension should be updated to remove the non-working option.

This issue has been reported nine times since 2022

Yes but I can't reproduce it.
If you have the time, fix it on your computer and submit a PR.


cmd/go: module .lock files remain around after go command exits

What version of Go are you using (go version)?

$ go version
go version go1.12beta1 linux/amd64

Does this issue reproduce with the latest release?
No, this is only relevant in the 1.12 (beta) series.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/myitcv/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/tmp/tmp.8thYUXnP8K"
GOPROXY=""
GORACE=""
GOROOT="/home/myitcv/gos"
GOTMPDIR=""
GOTOOLDIR="/home/myitcv/gos/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/tmp/tmp.UTqhAvSYep/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build055693277=/tmp/go-build -gno-record-gcc-switches"

What did you do?
export GOPATH=$(mktemp -d)
cd $(mktemp -d)
go mod init example.com/hello
go version
command -V mtd
go get golang.org/x/tools
find $GOPATH -iname "*.lock"

What did you expect to see?
No lock files hanging around in GOPATH/pkg/mod after the go command completes.
What did you see instead?
$ find $GOPATH -name "*.lock"
/tmp/tmp.8thYUXnP8K/pkg/mod/cache/vcs/b44680b3c3708a854d4c89f55aedda0b223beb8d9e30fba969cefb5bd9c1e843.lock
<EMAIL_ADDRESS><EMAIL_ADDRESS>
Arguably this directory is an implementation detail and so whether these files are removed or not is essentially just that, an implementation detail, but I recall from the various CLs seeing discussion that these files should/would be removed on command exit?
cc @bcmills

Perhaps related - when I run go test inside go/packages with go version devel +6a64efc250 Thu Dec 27 00:07:53 2018 +0000 linux/amd64, the following files are left behind:
?? testdata/TestName_Modules/pkg/mod/cache/lock
?? testdata/TestName_ModulesDedup/pkg/mod/cache/lock


vulkaninfo: VkSharedPresentSurfaceCapabilitiesKHR requested from devices not supporting VK_KHR_shared_presentable_image

vulkaninfo is requesting shared presentable surface capabilities from physical devices that don't report support for the associated device extension VK_KHR_shared_presentable_image.  Our driver doesn't support this extension, and hence doesn't populate the extension struct, meaning the data returned to vulkaninfo will basically be uninitialized.  In general, I believe vulkaninfo needs to check for device extension support before passing in associated physical device capability or property query structs in pNext to a given device.

If vulkaninfo is outputting anything for VK_KHR_shared_presentable_image when the device doesn't support it, then it is a bug. Otherwise it shouldn't be an issue for an application to submit a pNext chain containing structures which are apart of extensions the device doesn't support.
Vulkan Spec 2.7.2, "Implicit Valid Usage", the "Valid Usage for Structure Types" section states:

Any component of the implementation (the loader, any enabled layers, and drivers) must skip over, without processing (other than reading the sType and pNext members) any structures in the chain with sType values not defined by extensions supported by that component.


How to set the default value from state?

How to set the default value like we set in normal textinputs

You have props defaultCode

defaultCode

props is not available in latest code


fix: when use c++ 20, compile failed

@muellan Is there any chance that this will be merged upstream? The default C++ version is now 23 and std::result_of is long gone. We really need this.


Move catalogues to communications bucket

Changes the catalogues CSV URLs to match communications bucket.
Only the admin app uploads files to the communications bucket, so it feels more appropriate to keep catalogue files there.

:+1:

Sorry about that. This is better.


add logo to header as home link

👷 Deploy Preview for delicate-stardust-0dbbb2 processing.

Name
Link

🔨 Latest commit
79bab643f1728c8e42511f5a2ee609ed8def16f0

🔍 Latest deploy log
https://app.netlify.com/sites/delicate-stardust-0dbbb2/deploys/6501e561a4f8f7000804cbda


Ensure that there is only one DesktopViewport

For some reason, when I entered a server or went back to the menu, a new DesktopViewport would be generated.
I added a check to see if VSKGameFlowManager already has a DesktopViewport and if it does, simply use its camera.

Thanks


Bump secp256k1

Hi @Menduist,
See https://github.com/codex-storage/nim-libp2p-dht/pull/62 which focused on solving nimble build, but I suppose conflicts with this. Is yours building with nimble?

I think it is, however it is currently blocked by https://github.com/status-im/questionable/pull/32

Closed in favor of https://github.com/codex-storage/nim-codex-dht/pull/76