Link to a message on iOS

Is there a way to force 'getMessageLink' to return 'tg://' link and not 'https://'?

No, internal links are never returned by this method.

No, internal links are never returned by this method.

It could be converted to tg:// representation, like in https://github.com/zevlg/telega.el/blob/2c9fb8914902b3cce623447b68fe20c8ea27c324/telega-tme.el#L276

It could be converted to tg:// representation, like in https://github.com/zevlg/telega.el/blob/2c9fb8914902b3cce623447b68fe20c8ea27c324/telega-tme.el#L276

Lisp is hard to read 😅   Fortunately, I only care about privatepost and resolve
Thank you!

Lisp is hard to read 😅   Fortunately, I only care about privatepost and resolve
Thank you!


Add demo gif to README

Disclaimer: This is a bot
It looks like your repo is trending. The github_trending_videos Instgram account automatically shows the demo gifs of trending repos in Github.
Your README doesn't seem to have any demo gifs. Add one and the next time the parser runs it will pick it up and post it on its Instagram feed. If you don't want to just close this issue we won't bother you again.

This Instagram account is disabled now.


doc: samples: Update samples to point to active boards

Since the Arduino 101 and the Quark SE C1000 are not actively developed
boards, default to other boards that are maintained and used.
Signed-off-by: Carles Cufi<EMAIL_ADDRESS>

recheck


Add embedded bots registry

Cool, this looks great!  I merged this, with a few changes that basically amount to renaming  EmbeddedBotService to EmbeddedBotIntegration and optimizing the interface.  Huge thanks for doing this @abhijeetkaur!  You can now use this registry in the UI PR.
We'll want to replace the initial registry items with higher-quality bots before we merge the UI PR, but that should be super quick.
I think the next step on this project is to add complete test coverage for zerver/lib/bot_lib.py.

Thanks for merging! Yeah, I feel the same about adding higher-quality bots. Initially, I wasn't sure if other bots would be safe or not.
Now, as I am handling and cleaning each bot individually; trying to test all corner cases, I think I now have confidence on a couple of more bots. :)
Sure! I'll add test coverage for the new function right away! Thanks for pointing that out.


test: add a basic test for index exports

An incorrect path in the index.js file would cause the library to fail
to import. This does a basic sanity check for that

Looks that the case used to be covered by import/no-unresolved rule that is included in AirBnB ruleset, but it seems to have been lost as part of our switch to recommended ruleset. So I’d suggest adding import/no-unresolved rule to our ESLint configuration.

Bluemix toolchain: Delivery Pipeline deployed carbon-components-react to Bluemix Design System, including commit 04def752c5ad6efaa33e9976f6372a46412415a7


Task run_hyperparameter_tuning not end

Thank @iusztinpaul  was answer me the question before. I 'm not sure all my step are correct so I create this issues.
My pipe line block as train_from_best_config task. When I read log in air flow, it said I should run the hyperparameter first. The error log below:
[2023-10-08, 03:16:32 UTC] {process_utils.py:190} INFO -   File "/tmp/venv2ub9pbpz/script.py", line 40, in train_from_best_config
[2023-10-08, 03:16:32 UTC] {process_utils.py:190} INFO -     raise RuntimeError(
[2023-10-08, 03:16:32 UTC] {process_utils.py:190} INFO - RuntimeError: No best config found. Please run hyperparameter tuning first.
[2023-10-08, 03:16:35 UTC] {taskinstance.py:1943} ERROR - Task failed with exception

Then, I change variable ml_pipeline_should_run_hyperparameter_tuning from False to True and task run_hyperparameter_tuning is running instead skip before. But that task look like never ever end (when I post this issue, It has running 2,5 hours).  I try mask this task to success but both tasks upload_best_config ad train_from_best_config are failed.
The log of  hyperparameter task is (it still running)
[2023-10-08, 12:30:05 UTC] {process_utils.py:190} INFO - wandb: 🚀 View run at https://wandb.ai/mlops-cs2215-ch1701/energy_consumption/runs/c7y26bdp
[2023-10-08, 12:37:29 UTC] {process_utils.py:190} INFO - 2023-10-08 12:37:29,817 INFO: Validation MAPE: 0.14
[2023-10-08, 12:37:29 UTC] {process_utils.py:190} INFO - 2023-10-08 12:37:29,817 INFO: Mean fit time: 133.19 s
[2023-10-08, 12:37:29 UTC] {process_utils.py:190} INFO - 2023-10-08 12:37:29,817 INFO: Mean predict time: 11.20 s
[2023-10-08, 12:37:30 UTC] {process_utils.py:190} INFO - wandb: Waiting for W&B process to finish... (success).
[2023-10-08, 12:37:36 UTC] {process_utils.py:190} INFO - wandb: - 0.020 MB of 0.020 MB uploaded (0.000 MB deduped)
wandb: \ 0.020 MB of 0.024 MB uploaded (0.000 MB deduped)
wandb: | 0.024 MB of 0.024 MB uploaded (0.000 MB deduped)
wandb: / 0.024 MB of 0.024 MB uploaded (0.000 MB deduped)
wandb: 🚀 View run experiment_2023-10-08_12-29-58 at: https://wandb.ai/mlops-cs2215-ch1701/energy_consumption/runs/c7y26bdp
[2023-10-08, 12:37:36 UTC] {process_utils.py:190} INFO - wandb: Synced 5 W&B file(s), 1 media file(s), 0 artifact file(s) and 0 other file(s)
[2023-10-08, 12:37:36 UTC] {process_utils.py:190} INFO - wandb: Find logs at: ./wandb/run-20231008_123000-c7y26bdp/logs
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: Agent Starting Run: ibt7dj90 with config:
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	daily_season__manual_selection: ['day_of_week', 'hour_of_day']
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	forecaster__estimator__learning_rate: 0.1
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	forecaster__estimator__max_depth: 5
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	forecaster__estimator__n_estimators: 1000
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	forecaster__estimator__n_jobs: -1
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	forecaster__estimator__reg_lambda: 0.01
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	forecaster_transformers__window_summarizer__lag_feature__lag: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72]
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	forecaster_transformers__window_summarizer__lag_feature__mean: [[1, 24], [1, 48], [1, 72]]
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	forecaster_transformers__window_summarizer__lag_feature__std: [[1, 24], [1, 48]]
[2023-10-08, 12:37:40 UTC] {process_utils.py:190} INFO - wandb: 	forecaster_transformers__window_summarizer__n_jobs: 1
[2023-10-08, 12:37:41 UTC] {process_utils.py:190} INFO - wandb: WARNING Ignored wandb.init() arg project when running a sweep.
[2023-10-08, 12:37:41 UTC] {process_utils.py:190} INFO - wandb: WARNING Ignored wandb.init() arg entity when running a sweep.
[2023-10-08, 12:37:43 UTC] {process_utils.py:190} INFO - wandb: wandb version 0.15.12 is available!  To upgrade, please run:
[2023-10-08, 12:37:43 UTC] {process_utils.py:190} INFO - wandb:  $ pip install wandb --upgrade
[2023-10-08, 12:37:43 UTC] {process_utils.py:190} INFO - wandb: Tracking run with wandb version 0.14.2
[2023-10-08, 12:37:43 UTC] {process_utils.py:190} INFO - wandb: Run data is saved locally in /opt/***/wandb/run-20231008_123741-ibt7dj90
[2023-10-08, 12:37:43 UTC] {process_utils.py:190} INFO - wandb: Run `wandb offline` to turn off syncing.
[2023-10-08, 12:37:43 UTC] {process_utils.py:190} INFO - wandb: Syncing run experiment_2023-10-08_12-37-40
[2023-10-08, 12:37:43 UTC] {process_utils.py:190} INFO - wandb: ⭐ View project at https://wandb.ai/mlops-cs2215-ch1701/energy_consumption
[2023-10-08, 12:37:43 UTC] {process_utils.py:190} INFO - wandb: 🧹 View sweep at https://wandb.ai/mlops-cs2215-ch1701/energy_consumption/sweeps/5ir39mxy
[2023-10-08, 12:37:43 UTC] {process_utils.py:190} INFO - wandb: 🚀 View run at https://wandb.ai/mlops-cs2215-ch1701/energy_consumption/runs/ibt7dj90

When I mask it as success, two tasks fail have log bellow
[2023-10-08, 10:01:13 UTC] {process_utils.py:190} INFO -   File "/tmp/venvjc13ytim/script.py", line 37, in <module>
[2023-10-08, 10:01:13 UTC] {process_utils.py:190} INFO -     res = upload_best_config(*arg_dict["args"], **arg_dict["kwargs"])
[2023-10-08, 10:01:13 UTC] {process_utils.py:190} INFO -   File "/tmp/venvjc13ytim/script.py", line 34, in upload_best_config
[2023-10-08, 10:01:13 UTC] {process_utils.py:190} INFO -     best_config.upload(sweep_id=last_sweep_metadata["sweep_id"])
[2023-10-08, 10:01:13 UTC] {process_utils.py:190} INFO - TypeError: 'NoneType' object is not subscriptable
[2023-10-08, 10:01:14 UTC] {taskinstance.py:1943} ERROR - Task failed with exception
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.8/site-packages/airflow/decorators/base.py", line 221, in execute
    return_value = super().execute(context)
  File "/home/airflow/.local/lib/python3.8/site-packages/airflow/operators/python.py", line 395, in execute
    return super().execute(context=serializable_context)
  File "/home/airflow/.local/lib/python3.8/site-packages/airflow/operators/python.py", line 192, in execute
    return_value = self.execute_callable()
  File "/home/airflow/.local/lib/python3.8/site-packages/airflow/operators/python.py", line 602, in execute_callable
    result = self._execute_python_callable_in_subprocess(python_path, tmp_path)
  File "/home/airflow/.local/lib/python3.8/site-packages/airflow/operators/python.py", line 463, in _execute_python_callable_in_subprocess
    raise AirflowException(error_msg) from None
airflow.exceptions.AirflowException: Process returned non-zero exit status 1.
'NoneType' object is not subscriptable
[2023-10-08, 10:01:14 UTC] {taskinstance.py:1400} INFO - Marking task as FAILED. dag_id=ml_pipeline, task_id=upload_best_config, execution_date=20231008T060000, start_date=20231008T095947, end_date=20231008T100114
[2023-10-08, 10:01:14 UTC] {standard_task_runner.py:104} ERROR - Failed to execute job 121 for task upload_best_config (Process returned non-zero exit status 1.
'NoneType' object is not subscriptable; 10084)
[2023-10-08, 10:01:14 UTC] {local_task_job_runner.py:228} INFO - Task exited with return code 1
[2023-10-08, 10:01:14 UTC] {taskinstance.py:2784} INFO - 1 downstream tasks scheduled from follow-on schedule check

and
[2023-10-08, 10:02:36 UTC] {process_utils.py:190} INFO -   File "/tmp/venvg8qg89hr/script.py", line 40, in train_from_best_config
[2023-10-08, 10:02:36 UTC] {process_utils.py:190} INFO -     raise RuntimeError(
[2023-10-08, 10:02:36 UTC] {process_utils.py:190} INFO - RuntimeError: No best config found. Please run hyperparameter tuning first.
[2023-10-08, 10:02:37 UTC] {taskinstance.py:1943} ERROR - Task failed with exception
Traceback (most recent call last):
  File "/home/airflow/.local/lib/python3.8/site-packages/airflow/decorators/base.py", line 221, in execute
    return_value = super().execute(context)
  File "/home/airflow/.local/lib/python3.8/site-packages/airflow/operators/python.py", line 395, in execute

So where am I wrong and how should I fix it. I paste ml-pipeline graph bellow to more clearly if you need.

I confirm I met this issue https://github.com/iusztinpaul/energy-forecasting/issues/10 but same with @hududed, I change venv and do all steps again and it ok. I don't know why it come and how it gone LOL.

I am happy you managed to make it run @sonnh-uit.
Happy learning 🔥


[Feature request] A script or subcommand in istioctl to validate k8s clusters to see if it's compliant and ready for installation

Describe the feature request
Linkerd has a subcommand that will validate the kubernetes cluster to see if it's ready to install the control plane.
https://linkerd.io/2/getting-started/#step-2-validate-your-kubernetes-cluster
❯ linkerd check --pre
kubernetes-api
--------------
√ can initialize the client
√ can query the Kubernetes API

kubernetes-version
------------------
√ is running the minimum Kubernetes API version
√ is running the minimum kubectl version

pre-kubernetes-setup
--------------------
√ control plane namespace does not already exist
√ can create Namespaces
√ can create ClusterRoles
√ can create ClusterRoleBindings
√ can create CustomResourceDefinitions
√ can create ServiceAccounts
√ can create Services
√ can create Deployments
√ can create ConfigMaps

pre-kubernetes-capability
-------------------------
√ has NET_ADMIN capability

linkerd-version
---------------
√ can determine the latest version
√ cli is up-to-date

Status check results are √

I think this can be pretty useful since Istio is pretty complicated and it can be hard to tell what you get wrong with so many moving parts, both Istio itself and the kubernetes cluster setup that it will be running on.
Describe alternatives you've considered
Nothing I can think of at the moment unless switching to Linkerd.
Additional context
I've been hitting issues every once in a while that it's unclear what is wrong (is it my setup or is it Istio), and there seems to be a lot of issues being closed because maintainers cannot identify the scope of the problem.
Having a tool like this could at least help narrow down the scope of issues which I think could save a lot of back and forth at the information sharing phase, especially for people who really can't share much information about their environment.
I think this can also be helpful for validating clusters before upgrades since the current procedure is just try it out and pray that it doesn't break..., which almost never happens...

@irisdingbj Make sure your new commands can be used for this scenario.

@darwin67 we have the similar command in master branch which do the pre-check and let you know whether your k8s cluster is ready for a new istio installation:
./istioctl verify-install -i test

Checking the cluster to make sure it is ready for Istio installation...

Kubernetes-api
-----------------------
Can initialize the Kubernetes client.
Can query the Kubernetes API Server.

Kubernetes-version
-----------------------
Istio is compatible with Kubernetes: v1.13.5.

Istio-existence
-----------------------
Istio will be installed in the test namespace.

Kubernetes-setup
-----------------------
Can create necessary Kubernetes configurations: Namespace,ClusterRole,ClusterRoleBinding,CustomResourceDefinition,Role,ServiceAccount,Service,Deployments,ConfigMap.

SideCar-Injector
-----------------------
Istio Configured to use automatic sidecar injection for 'default' namespace. To enable injection for other namespaces see https://istio.io/docs/setup/kubernetes/additional-setup/sidecar-injection/#deploying-an-app

-----------------------
Install Pre-Check passed! The cluster is ready for Istio installation.

Please try this and comment back if you need any more things for this.

i would love to but this repo isn't trivial to build...
❯ make
Not building in expected path 'GOPATH/src/istio.io/istio'. Make sure to clone Istio into that path. Istio root=/home/darwin67/workspace/istio, GO_TOP=/home/darwin67/go/1.12.5
Makefile:237: recipe for target 'check-tree' failed
make: *** [check-tree] Error 1

@darwin67 Like many Go projects Istio needs to be in the GOPATH.  It does an extra check to make sure it didn't get there by symlink.
There are daily builds at https://gcsweb.istio.io/gcs/istio-prerelease/daily-build/release-1.2-latest-daily/ and you only need to get the version for your OS and untar/unzip to get istioctl.

@irisdingbj @esnible Hi, just tried the verify-install command on a clean cluster and I think it looks good!
❯ ./istioctl verify-install

Checking the cluster to make sure it is ready for Istio installation...

Kubernetes-api
-----------------------
Can initialize the Kubernetes client.
Can query the Kubernetes API Server.

Kubernetes-version
-----------------------
Istio is compatible with Kubernetes: v1.14.1.

Istio-existence
-----------------------
Istio will be installed in the istio-system namespace.

Kubernetes-setup
-----------------------
Can create necessary Kubernetes configurations: Namespace,ClusterRole,ClusterRoleBinding,CustomResourceDefinition,Role,ServiceAccount,Service,Deployments,ConfigMap.

SideCar-Injector
-----------------------
Istio Configured to use automatic sidecar injection for 'default' namespace. To enable injection for other namespaces see https://istio.io/docs/setup/kubernetes/additional-setup/sidecar-injection/#deploying-an-app

-----------------------
Install Pre-Check passed! The cluster is ready for Istio installation.

It'll be great if there's a verify-upgrade command as well, but I do understand that can be tricky to implement especially how different 1.0 and 1.1 is.
I do think this is a good start.

Oops, forgot to close.


added LinksHub GIF

Fixes Issue

Closes #152
Changes proposed

primarily includes a gif showcasing Linkshub site in action, few links related to Front End, search bar and the Theme toggle effect

Screenshots
Adding the Branch Link for Better Clarity

@PiseAtharva it looks blurred...

@PiseAtharva it looks blurred...
yeah that's right, i will try to tackle this again today

Hi Rupali, i believe I cant improve the quality for the GIF, primarily cause of the compression and the duration its going for. I guess i can take on some other issue in future

Hi Rupali, i believe I cant improve the quality for the GIF, primarily cause of the compression and the duration its going for. I guess someone else can solve this issue in much better way

Ahh, okay thanks for your efforts Atharva. Appreciate it


[Feature Request]

Would be really helpful to have a (preferably configurable) keybind to toggle this on and off for those times when you need to crouch to not fall off something.

Could add a toggle keybinding but will likely be fixed by just letting players choose the keybinding to activate the column scrolling rather than just using sneak.


is it possible to check device connected both to cellular and wifi at a time?

Describe the Feature

Netinfo is showing only one connection at a time. Is it possible to show that device has both cellular network and wifi connection?
Possible Implementations

Related Issues

NetInfo.fetch('wifi');
NetInfo.fetch('cellular');


Question in regards to subdirectory setting in yaml file

Again, than you all so much.   I truly am learning!!!
Question now is trying to understand how the pic directory and subdirectory entries work inthe configuration.yaml file.
As mentioned before, I store all my pics on a usb thumbdrive that automounts on pi 4  bookworm.  It is called USBPICS
In my .yaml file I have set the pic file directory to /home/pi/USBPICS    and all works fine.  This is where my general slideshow pics live.
Now I want to have a subdirectory of family pics.
So on that drive I created a folder called "Family"
In the yaml file I left the pic directory set to /home/pi/USBPICS
I set the subdirectory to  /home/pi/USBPICS/Family
When I run picframe however it access both the main directory and the Family sub directory as well, playing all pics from both directorties.
I thought by using a sub directory (Folder) that I would only see the pics in the main root directory and that I could ask the system to play form the Family directory only when asked to do so with for example:
mosquitto_pub -h localhost -t picframe/subdirectory -m "Family"
I am misunderstanding how this works?
Thanks
Ray

Also must paho be installed to enable the mosquitto command to work?  I dont think it is

If is use the command sudo pip3 install paho-mgtt
It responds with:
error: externally-managed-environment
This environment is externally managed
To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
I have no idea what all that means or how I should procede if necessary

@GitRayc it is harder with the virtual environment but you do need to do that as that's what picframe uses and it's where all of it's dependencies are installed. I'm on the train at the moment and will put more complete answer when I'm home, but basically, before pip installing you need to
source /home/pi/venv_picframe/bin/activate
then
python -m pip install ...

I'll give it try.
python -m pip install paho-mqtt  or it is pip3 install?

Okay I think I go it.
So if i want to change to my "Family" subdirectory:
Do I simply issue:
mosquitto_pub -h localhost -t picframe/subdirectory -m "Family"
or it this a two part command to make it work?
Ray

So:
To degub; because I thought perhaps the problem I have is that I am running my pics from a usb Thumbdrive.
So I switched to the Pictures directory.  As a test I put three images in the Pictures directory and two images in the "Family" folder (as subdirectory in the Pictures directory)
And I set my yaml to:
"model:
pic_dir: "/home/pi/Pictures"
deleted_pictures: "/home/pi/DeletedPictures"
follow_links: False
subdirectory: ""
recent_n: 10
reshuffle_num: 1
time_delay: 90.0
fade_time: 10.0
shuffle: True
sort_cols: 'fname ASC'
I rebooted the system.
It is indeed accessing the Pictures directory now rather than my thumbdrive
However:
It is now playing all images in the Pictures root directory and the Family directory.  Even thought subdirectory is set to ""
Then I tried
mosquitto_pub -h localhost -t picframe/subdirectory -m ""
But it is still accessing pics in the Pictures root directory and those in the Family sub folder.
Any ideas what is happening?

I cant help but thinking there is something happening with db3 that it is not updating correctly.  I Installed Table Plus open and watch it.  It has some of the pics in it that reside in the "Family" sub folder.    Also I changed the name of one of the pic files in the root directory and hours later the old name is still there and the new name has never shown up.    Just wandering.

Just qit slideshow and shutdown pi.  Restarted and opened db3 again.
the old filename is still  showing, and not the new one on the file I renamed.
Aslo the files from the Family subdirectory are still there as well.    This mean anything.

I am watching the picframe-data  data directory though and each time a transition to a new image takes place a new db3 file is being creating.  It appears and then immediately disappears.   I guess it is replacing the previous version?


Recent Contact : Access is denied. Check credentials and try again.

Category

[ ]  Question
[x]  Bug
[ ]  Enhancement

I would like to use recent contacts in a modern site page. After I had the webpart, I am getting this error : Access is denied. Check credentials and try again.
Expected or Desired Behavior
Display recent contacts
Observed Behavior
I tried to add rights on Graph API but I keep getting this error.

Steps to Reproduce
On a modern Site Pages, add a webpart 'Recent Contacts'
Thanks a lot.

for you info : language french (maybe there is a link between the bug and the language)

When you say you added rights to the Graph API, you mean you went to API management in the Admin Center and approved the request?

When you say you added rights to the Graph API, you mean you went to API management in the Admin Center and approved the request?
Yes

Also could you please update your ticket to include what version of the Starter Kit you are using.
AppCatalog indicate <IP_ADDRESS>, is it good ?

based on the version of <IP_ADDRESS>, this is likely version 1 of the starter kit? @tienou is this a recent install of the starter kit or a version you installed prior to 1-2 weeks ago?

based on the version of <IP_ADDRESS>, this is likely version 1 of the starter kit? @tienou is this a recent install of the starter kit or a version you installed prior to 1-2 weeks ago?

I don't understand, i downloaded the spfx here : https://github.com/pnp/sp-starter-kit/tree/master/package
How can i install the V2 ?

Ok, it's worked with V2.
Install path : https://github.com/pnp/sp-starter-kit/tree/master/provisioning
FYI :
`PS C:\Users\egaillard\Downloads\sp-starter-kit-master\provisioning> Apply-PnPTenantTemplate -Path .\starterkit.pnp
AVERTISSEMENT : Une autorisation OAuth avec la ressource Microsoft Graph et la portée People.Read existe déjà.
Parameter name: permissionRequest
Apply-PnPTenantTemplate : Accès refusé. Vous n’êtes pas autorisé à effectuer cette action ou à accéder à cette
ressource.
Au caractère Ligne:1 : 1

Apply-PnPTenantTemplate -Path .\starterkit.pnp

  + CategoryInfo          : WriteError: (:) [Apply-PnPTenantTemplate], ServerUnauthorizedAccessException
  + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

PS C:\Users\egaillard\Downloads\sp-starter-kit-master\provisioning> Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL"="/sites/test_Intranet"; "MARKETINGALIAS"="genesiennemarketing";   "HRALIAS"="genesiennehr" }
Apply-PnPTenantTemplate : Accès refusé. Vous n’êtes pas autorisé à effectuer cette action ou à accéder à cette
ressource.
Au caractère Ligne:1 : 1

Apply-PnPTenantTemplate -Path starterkit.pnp -Parameters @{"PORTALURL ...

  + CategoryInfo          : WriteError: (:) [Apply-PnPTenantTemplate], ServerUnauthorizedAccessException
  + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate`

@tienou were you able to successfully deploy the starter kit, v2? Which is the current master branch? If not, you may want to download the latest codebase as we made some simple adjustments to the provisioning process to assist with common provisioning errors.


[UI Improvement]  Excessive Borders on Website Sections

Description
Description: Too many borders on website sections create a cluttered and visually overwhelming appearance, negatively impacting the overall design and user experience.
Adopt a minimalist design approach by using borders sparingly and strategically to highlight specific sections or elements that require visual separation could benefit the project.
Please assign this task , would promptly work on it.
Thank you.
Screenshots
No response
Checklist

[X] I have checked the existing issues
[X] I have read the [Contributing Guidelines]
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

@mahekkg new ui is being made
you can wait till then then see what issues are there and open things
for the time being i'm closing this


Error with nested structs

Description
Consider this code:
@MemberwiseInit
public struct A {
    let x: Int

    public struct B {}
}

extension A.B {}

Checklist

[X] If possible, I've reproduced the issue using the main branch of this package.
[X] This issue hasn't been addressed in an existing GitHub issue or discussion.

Expected behavior
MemberwiseInit should create a correct init
Actual behavior
Circular reference resolving attached macro 'MemberwiseInit'
Circular reference
'B' is not a member type of struct 'API.A'

swift-memberwise-init-macro version information
main
Destination operating system
iOS 17.2
Xcode version information
Xcode 15.1
Swift Compiler version information
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-<IP_ADDRESS>.56 clang-15<IP_ADDRESS>.5)
Target: arm64-apple-macosx14.0

Just realized this also happens with the @Observable macro.

Thank you for the report!
And yeah, this is a rather unfortunate bug in Swift: https://github.com/apple/swift/issues/66450. I run into this one a lot. Some circularity issues were addressed in Xcode 15.1, but the cases that I run into are still outstanding, and usually have the same shape as your example.
You can sometimes work around the bug by moving the extension to another file, which can make sense depending on the nature/necessity of the macro. For MemberwiseInit, I personally tend to fall back to a boilerplate init and a FIXME.

This appears fixed in Swift 6! I confirmed using Xcode 16.0 beta 2 (16A5171r).

Closing, Swift 6 has been released with this fix. 🥳


Feature Request: Implement the claimable balance support in our demo client/wallet

What problem does your feature solve?
In order to leverage the new Protocol 14/15 feature claimable balances we need wallets to query for accounts that have claimable balances to claim.
What would you like to see?
Notify Wallet users/accounts when a claimable balance is available for them to claim.

We should also deprecate the original demo client and only add new features to the new one.
This may need to be separated into another issue(s) entirely.

What is "the original demo client"?
Also another aside is does it make sense to keep this repo for anything other than the tutorial now that the new account viewer is nearly ready? Should we be using that for all future demo/reference stuff? This may be a bigger conversation but I think it's an important one to have before we dupe too much between this repo and the new AV.
cc: @morleyzhi

Hey @tyvdh, I need to touch base with @JakeUrban when he gets back to specify which client "demo client" he's referring to when he comes back on monday.
I believe we're referring to https://github.com/stellar/sep24-demo-client

Should we be using that for all future demo/reference stuff?

The goal we would like to achieve is use the stellar-demo-wallet and polaris as an end to end experience demo and reduce duplication. If we want to extend the or edit either SEP we dont want to change both stellar-demo-wallet and sep24-demo-client.

This may be a bigger conversation but I think it's an important one to have before we dupe too much between this repo and the new AV.

Im open to have this discussion with all relevant contributors sometime next week.
I agree we should be all on the same page for any big changes.

Hi @tyvdh, can you explain your reasoning here? Account Viewer is not really a mock wallet that supports our SEP protocols, its an exploratory tool for looking at accounts on Stellar, so in my team's view they're completely disjoint areas.
@Zagan202 you're right, https://github.com/stellar/sep24-demo-client is the currently-used demo wallet but we need to transition to using this project for that purpose.
Most of the ecosystem knows of the old demo wallet, so we need to ensure it's functional until they've transitioned to the new one. That transition process still needs to be worked out. I'm a fan of simply replacing the old client with the new one on the same domain once we're confident the new one is ready, whatever that means.

@brunomuler Is it true that the AV won't be implementing SEP protocols and that for demo/reference implementations this demo wallet should continue to be used, supported and improved alongside the new AV?


Clear Memory Fails

After clearing the memory a following call to get should make a new request. But it doesn't
See #95

Fix will be to reset the persister when clear memory is called and the persister is a no op persister.

Btw; I don't use a persister yet as I need a way to clear both memory and persister for a barcode.
Also I need to specify for how long persisted data is valid so I don't use stale data.

That's great for me  because it is opposite if my use case and found all these problems!  As for the stale persister problem does the following work as solution for you: we make new StaleAwarePersister that has an additional callback for isStale(key). If true it will skip loading from disk. There's an issue for it if you have other ideas requirements. Thanks for using ☺

Thanks for building it @digitalbuddha :)
I explained my usecase here #68


Issue-166 (Chore): Updated Technical Support Page

Signed-off-by: Abhijay Jain<EMAIL_ADDRESS>Description
updated slack links to "Element" on the technical support page
Fixes #166
Type of change
code
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
locally by running it on the server
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have checked my code and corrected any misspellings
[x] I have tagged the reviewers in a comment below incase my pull request is ready for a review
[x] I have signed the commit message to agree to Developer Certificate of Origin (DCO) (to certify that you wrote or otherwise have the right to submit your contribution to the project.) by adding "--signoff" to my git commit command.

@unnati914, @joewxboy please review this PR :)

But I thought we don't need that tiny arrow here 😅 as it was not present initially, but no problem, will add that :)
…

Principle of least surprise.  Since this link opens in a new window or tab, we might as well "warn" them in advance.

Okay got it, I will keep that in mind for future contributions :)
On Wed, 23 Feb 2022, 02:04 Joe Pearson, @.***> wrote:

But I thought we don't need that tiny arrow here 😅 as it was not present
initially, but no problem, will add that :)
… <#m_2358487308263656789_>
Principle of least surprise. Since this link opens in a new window or tab,
we might as well "warn" them in advance.
—
Reply to this email directly, view it on GitHub
https://github.com/open-horizon/open-horizon.github.io/pull/167#issuecomment-1048189010,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APLHP3U64MCGYQFVGBNG7E3U4PXONANCNFSM5PCKE5GQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>


Improve Gitbook dataloader to crawl the sitemap

This PR includes new logic to load documentation from Gitbook when the user wants to scrape every path of the docs.
The current dataloader was not picking those routes that were nested in the structure of the documentation. (See all the children paths of target for my use case: https://platform-docs.opentargets.org/target))
This nested paths couldn't be fetched from the HTML because they were not visible without the click of the user. So the new logic uses the sitemap of the Gitbook documentation instead. This endpoint is automatically generated by Gitbook.
So the logic is:

if the user wants to crawl all the routes: the soup contains the XML content
if the user wants to parse one page: the soup contains the HTML content

On top of that I added several checks to make sure the changes don't break anything:

[X] Code formatter was run
[X] Code linter was run
[X] Tests to check the class generator and loader
[X] Added lxml as a dependency to the project to parse the sitemap

@hwchase17 Thank you for the review! Shouldn't lxml be mandatory? The new loader relies on this dependency if we want to get all the data. It seems the test is failing because of that


Update OpenProblemTemplatev2.tex

I changed title from Test2 to Test3

Oh. Didn’t notice that before. Thanks for the edit!


2 different versions in the same dioxus-cli binary

Problem
I have noticed that dx -V shows dioxus 0.4.3 and dx version shows 0.0.0 (cd019db9 2023-12-18).
version    Print the version of this extension
-V, --version    Print version

Steps To Reproduce

get dx binary
dx -V
dx version

Expected behavior
I expect them to be the same, or at least not 0.0.0. But having 3 ways to check version is probably overkill, you can only leave -V|--version or version. But having a full subcomand just to show a version...
Environment:

Dioxus version: 0.4.1 or 0.4.3
Rust version: 1.76.0, nightly
OS info: Pop!_OS 22.04
App platform: none

Questionnaire

[ ] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[x] I don't have time to fix this right now, but maybe later

When I try to use dx version outside a cargo project I get:
Error: Couldn't retrieve cargo metadata

Caused by:
    `cargo metadata` exited with an error: error: could not find `Cargo.toml` in `/home/user/.cargo/bin` or any parent directory

But in any cargo project it shows v0.0.0.

I compiled it straight from the repository ( not using the cargo install ) and now it doesn't have the same issues.
Like, complaining about not finding Cargo.toml

Yep, I guess the error message has gone away. But it wasn't the main problem anyway.

Closed by https://github.com/DioxusLabs/dioxus/pull/1813


Preserve the domain name and description when changing the user store type when adding user stores

Type: Improvement
Priority: High
Severity: Minor
Release: 5.4.0
Steps

Go to user store adding screen
Enter the domain name and description
Change the user store type (eg: AD to LDAP)

Issue
The page will be refreshed and the domain name and description configured will be lost. Then the user has to enter them again. This is a usability issue if the user suddenly remembers to change the user store type and has to re-enter the same details, specially when those details are common across all the user stores.

Thank you for your contribution!
We are closing this issue since it has not been prioritized for a long time. Chances are that it has already been solved in more recent versions. If not, we will be re-evaluating this when it becomes a priority.


Required values

What are x_scale, y_scale, width_scale, height_scale values? Also, what is the number of bounding boxes?

sorry,Is there a more detailed description? All about anchor boxes are in this file

x_scale is the scaling in x-axis, and so on
Does the variable num_box_fm_cell mention the number of bounding boxes?


Show skipped filenames as "skipped" in yellow

I'd like to see, alongside green PASS and red FAIL, a yellow SKIP when a file is eslintignored (to match up with the nice new skip count).
It'd also be nice if there was an option to suppress reporting these skipped tests (but showing them by default).

I'm not sure if Jest's reporter provides this feature, I think it doesn't but I might be wrong... If this is the case, then it would be harder to implement this because it might require changes in facebook/jest

One thing that might help to mitigate the issue is adding the files/globs to testPathIgnorePatterns

I don't want to duplicate the contents of .eslintignore tho - it totally would be nice to have the runner count up the number of ignored files, add that as a skip count (and explicit SKIP entries), and then use them in testPathIgnorePatterns to make the eslint run even faster :-D

I agree, this would be great!
@cpojer there is no way that this could be achieved in the current version of Jest right?

Don't pending tests show up in yellow in jest? That's what I'd assume ignored files would show up as.

Yeah, I think this should work if in the eslint runner you report all tests within a file as skipped.

Hmmm, I think I'm missing something sorry 😞
Isn't it that it could either show this when skipping all the tests

or this when skipping the test suite

In the case of the eslint runner, there's only 1 test per file, and 1 file per test suite, so both should be marked skipped, no?

@rogeliog what about setting https://github.com/rogeliog/jest-runner-eslint/blob/master/src/utils/toTestResult.js#L18 and https://github.com/rogeliog/jest-runner-eslint/blob/master/src/utils/toTestResult.js#L13 ?


store: Remove ByCN

This is a leftover from when we had a RegisteredCertificate type. It
isn't used anywhere. Remove dead code.

Current coverage is 53.75% (diff: 100%)

Merging #1897 into master will increase coverage by 0.01%

@@             master      #1897   diff @@
==========================================
  Files           105        105
  Lines         18335      18327     -8
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           9853       9851     -2
+ Misses         7272       7260    -12
- Partials       1210       1216     +6

Powered by Codecov. Last update 037b491...0b7c664

Could I ask one more question that what CN means? 😕

It's an abbreviation for CommonName, a field in the TLS certificate. We put node IDs in the CommonName field.

@allencloud the common name in X.509:
$ openssl x509 -in thawte-ca-certificate.pem -noout -text
Certificate:
   Data:
       Version: 3 (0x2)
       Serial Number: 1 (0x1)
       Signature Algorithm: md5WithRSAEncryption
       Issuer: C=ZA, ST=Western Cape, L=Cape Town, O=Thawte Consulting cc,
               OU=Certification Services Division,
               CN=Thawte Server<EMAIL_ADDRESS>       Validity
           Not Before: Aug  1 00:00:00 1996 GMT
           Not After : Dec 31 23:59:59 2020 GMT
       Subject: C=ZA, ST=Western Cape, L=Cape Town, O=Thawte Consulting cc,
                OU=Certification Services Division,
                CN=Thawte Server<EMAIL_ADDRESS>

LGTM


Support WASM?

Hello again :)
I could save 1 frame using this wonderful crate, and wanted to use in web.
However, I got this error panicked at 'condvar wait not supported', and found there is no multi-thread in WASM.
In your code, I guessed, app.sub_app_mut(RenderApp) ran on multi-thread.
So is there any plan to support WASM?
Or did I make any mistake again?

Hi, you're correct that the current version of this plugin does not support WASM in the browser. This limitation is primarily due to the plugin's need for access to the file system. While it is probably theoretically possible to add support by having the browser download exported frames, this approach wouldn't be ideal for exporting a long sequence of frames. However, for your specific use case, it could be a viable solution.
If you want, you could post a PR with an implementation for WASM. I would be happy to review it.


Backport #21933 to 3.0 branch

https://github.com/openssl/openssl/pull/21933 needs backporting to 3.0 branch

#21933 needs backporting to 3.0 branch

Hi @nhorman , what's the plan to do this operation(backport to 3.0 branch)? Or may I raise a PR to do this?

If you have cycles to do the back port, I would certainly appreciate it


Integration of plugin settings

It seems that the setting coming from plugins are still drestricted to being kept in the plugin list.
Is it not possible to integrate settings into the standard setting panel, or maybe add additional setting panels to the dropdown menu?

Hi, sorry I don't understand.
Each plugin has a settings (if the plugin need it).

I think what you're trying to achieve is just going to be the same thing. If you meant adding link to the enabled plugins settings, that's going to make the menu more cluttered.
But I guess we can make it so that the Plugins page show Enabled first before Disabled plugins, to navigate them a lot easier.

Ok then what about this: A simple switch on the plugin page: Switching between "Install/Edit Plugins" and "Use plugins". When the switch is on default "Use Plugins" you only show the plugins in the list with actions that can be done. Other plugins with only settings or no settings/actions at all are only shown in the "Install/Edit Plugin" mode.
This way the plugin panel could be shown as smaller "panels" instead of lines, making it compact and more easy to use.

Hello, with the new version of Bludit v4.0 rc1, I would like to close the old Github issues. If you feel that your issue is not resolved in the latest version, create a new ticket.

Help and Support use the Forum https://forum.bludit.org
Bugs and new requests here in Github https://github.com/bludit/bludit/issues


feat: A convex function bounded on a set is bounded on its convex hull

This is a version of the maximum principle for convex functions. Also make the existing maximum principles more syntactically general for ease of use.
This syntactic generalisation is useful because often the domain on which a function is continuous is a ball, a half-space, an interval... which is merely a superset of the set on which we want to apply the maximum principle. Before this PR, one therefore has to restrict the convexity of a function from its natural domain to the set on which we want to apply the maximum principle. This is unnecessarily cumbersome.

maintainer merge


PostCSS Support

Hey I just ran across this project and really like the direction you've taken it. As a user of PostCSS, I'm wondering if I would run into issues if I tried this? The features look like they are geared towards Sass.

Hi Stephen,
To work with the Styleguide you need to add references of already compiled CSS resource. PostCSS should not affect styleguide workflow. The only place where you can have issues is variables scraping. PostCSS have extension for scss syntax that should help (https://github.com/postcss/postcss-scss) but it needs to be tested. So, if you are not bundling your css with js, you should be fine using PostCSS with this tool.
Let us know how it go's.

Thanks! Do you think native CSS variable support is in the future?

Not yet but most likely we will add native CSS variables support in the future.


Change re-adding objects to be a successful no-op instead of failure

Fixes #149 .
Change memory and mongo backends to not treat addition of objects the backend already has, as "failures" with respect to the TAXII status resource.  This ought to be a very common occurrence with highly reused objects (e.g. TLP marking definitions), so it didn't make sense to think of them as some kind of error.  It is now treated as a no-op and a success.

Codecov Report

Merging #150 (5584182) into master (46c89eb) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
- Coverage   95.30%   95.17%   -0.13%
==========================================
  Files          26       26
  Lines        2810     2759      -51
==========================================
- Hits         2678     2626      -52
- Misses        132      133       +1

Impacted Files
Coverage Δ

medallion/backends/memory_backend.py
94.47% <100.00%> (-0.06%)
:arrow_down:

medallion/backends/mongodb_backend.py
90.04% <100.00%> (-0.59%)
:arrow_down:

medallion/test/test_backends.py
99.18% <100.00%> (-0.01%)
:arrow_down:

medallion/backends/base.py
67.56% <0.00%> (-2.44%)
:arrow_down:

medallion/views/collections.py
89.47% <0.00%> (-1.01%)
:arrow_down:

medallion/common.py
86.82% <0.00%> (-0.78%)
:arrow_down:

medallion/__init__.py
87.87% <0.00%> (-0.48%)
:arrow_down:

medallion/views/objects.py
87.73% <0.00%> (-0.34%)
:arrow_down:

medallion/views/discovery.py
96.66% <0.00%> (-0.31%)
:arrow_down:

... and 7 more

Continue to review full report at Codecov.

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

Hi @chisholm
This sounds like a good idea, but it get a little weird with TLP markings, because it would be strange to ever ask a TAXII server for one.  All implementations using STIX should by default, already "know" about these objects, because they are defined in the specification and assumed to be known a priori.

Yes, all implementations should already "know" the TLP markings, but I don't think it's a big problem.
PR looks fine, but I think we could stick something in the message of the status response about the object already existing.

And just for reference: the TAXII spec doesn't seem to address this. In Section 5.5 it says:

If a client publishes an exact duplicate of an Object already present in the Collection, the server MUST not return an error for that Object.

A failure status is not an HTTP error so my reading is it's up to the implementation whether the status response should be success or failure.

Hi @chisholm
This sounds like a good idea, but it get a little weird with TLP markings, because it would be strange to ever ask a TAXII server for one. All implementations using STIX should by default, already "know" about these objects, because they are defined in the specification and assumed to be known a priori.

Regarding querying from a TAXII server: yeah, an obvious client optimization is to recognize the ID of a spec-defined object and use an object built into the client instead of asking a TAXII server for it.  But it would not be wrong to do so.  Also, one can get TLP markings via more general queries, e.g. added_after.
Speaking of which, there is an implicit policy decision with this, that the date-added property for each object is the date it is first added.  With multiple adds allowed, one could decide to make it the date last added... probably not too important though.
Ok, will add some success messages.


Dropdown - Allow to disable Popper.js style

Add display option to our Dropdown which will allow folks to use Popper.js if display is equal to dynamic (default value) or to not use Popper.js with display equal to static
Close: https://github.com/twbs/bootstrap/issues/23378
/CC @XhmikosR , @mdo

I'm not very familiar with dropdowns since I don't use them currently. That being said, I get that you are trying to provide a way for people to override Popper.js. That seems good to me, but better wait for @mdo's confirmation.

Looks good, but I'd suggest saving for v4.1 maybe?

As you want @mdo :+1: they are no rush for this feature :smile:

I'm not sure what the outlook for v4.1 is, but in the mean time a quick note in the docs about popperjs automatically being disabled in the Navbar might useful.
I had to find these commits to realize that Bootstrap arbitrarily determines if the dropdown is within a navbar based on the existence of the navbar class. I'm using a custom navbar (not sure why I'm using BS at this point, but that's irrelevant), and had to find this to fix the broken dropdowns on mobile.

Please @Jake0oo0 open a separate issue about that and we will fix that for sure 👍

If we disable Popper.js in our dropdown we will have to do the positionning by CSS for dropleft and dropright

@samdbeckham that's not secret it's written in our documentation see: https://getbootstrap.com/docs/4.1/components/dropdowns/#options

Just spotted it, I was looking at the 4.0 docs 🤦♂


stork: 1.3.0 -> 1.4.0

Motivation for this change
Update to latest release v1.4.0.
Tested:

stork build
stork search
Running on static site with stork.js + stork.wasm

Run results
$ ../nixpkgs/result/bin/stork build --input stork/config.toml --output stork/index.st
Success: Index built successfully, wrote 485,403 bytes.
Index stats:
  - 50 entries
  - 9,792 search terms
  - 9,708 bytes per entry
  - 49 bytes per search term

$ ../nixpkgs/result/bin/stork search --index stork/index.st --query beta | head
{
  "results": [
    {
      "entry": {
        "url": "https://chuahou.dev/miso/uni/lc/notes/theories.html",
        "title": "LC, Equational Theories",
        "fields": {}
      },
      "excerpts": [
        {

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

Looks like there is a regression on darwin, can you try to fix the build by adding darwin.apple_sdk.frameworks.Security to buildInputs (see #143864 as an example, and ofborg will show what is missing if the build is still failing), or disable the darwin build?

@bobby285271 I tried adding it to see what ofborg says. Can't test the Darwin build myself, unfortunately, but the Linux build remains the same.

https://gist.github.com/GrahamcOfBorg/cbcef5e910b752693cf81f11f2b5691f:

value is a set while a list was expected

Changing lib.optionals to lib.optional should fix this. I just try to build this via GitHub Actions: https://github.com/bobby285271/nixpkgs-test/runs/5015640321 And the next failure is:
error: linking with `/nix/store/hbjq4yw2w739zhvmdzxv0him6c1xjcjc-clang-wrapper-11.1.0/bin/cc` failed: exit status: 1
  |
  = note: "/nix/store/hbjq4yw2w739zhvmdzxv0him6c1xjcjc-clang-wrapper-11.1.0/bin/cc" "-m64" "-arch" "x86_64" "/private/tmp/nix-build-stork-1.4.0.drv-0/source/target/x86_64-apple-darwin/release/deps/stork-b355b04067a11372.stork.9ec2b307-cgu.0.rcgu.o" "-L" "/private/tmp/nix-build-stork-1.4.0.drv-0/source/target/x86_64-apple-darwin/release/deps" "-L" "/private/tmp/nix-build-stork-1.4.0.drv-0/source/target/release/deps" "-L" "/nix/store/48kk76b0jh8gywrnp14r4nlnil52zvcl-rustc-1.57.0/lib/rustlib/x86_64-apple-darwin/lib" "/nix/store/48kk76b0jh8gywrnp14r4nlnil52zvcl-rustc-1.57.0/lib/rustlib/x86_64-apple-darwin/lib/libcompiler_builtins-8fcd115ffa1f34e1.rlib" "-framework" "Security" "-framework" "CoreFoundation" "-lSystem" "-lresolv" "-lc" "-lm" "-liconv" "-L" "/nix/store/48kk76b0jh8gywrnp14r4nlnil52zvcl-rustc-1.57.0/lib/rustlib/x86_64-apple-darwin/lib" "-o" "/private/tmp/nix-build-stork-1.4.0.drv-0/source/target/x86_64-apple-darwin/release/deps/stork-b355b04067a11372" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: Undefined symbols for architecture x86_64:
            "_SecTrustEvaluateWithError", referenced from:
                security_framework::trust::SecTrust::evaluate_with_error::h31ec7f025f278d0d in stork-b355b04067a11372.stork.9ec2b307-cgu.0.rcgu.o
          ld: symbol(s) not found for architecture x86_64
          clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

I have no idea how to fix this as I am also not darwin user :-(

Thanks for testing and reporting the next failure! Unfortunately, looks like we'll have to wait for someone who knows what they're doing with Darwin to come along. In the meantime I'll rollback to before the addition of Security to buildInputs.

may I request a bump on this? I have a project that relies on stork, so this would be useful

@bobby285271 you previously mentioned possibly disabling the Darwin build, do you think we should do that? That would make any Darwin users after the merge be unable to use this package, right?
Alternatively, do you know anyone who might know what to do to fix this for Darwin we can ping?

Ping @NixOS/darwin-maintainers > can someone build this on x64 Darwin?
It needs the Security framework at least, possibly more.

The following change fixes the build for aarch64-darwin:
diff --git a/pkgs/applications/misc/stork/default.nix b/pkgs/applications/misc/stork/default.nix
index b8486fc02bb..52699dfd61e 100644
--- a/pkgs/applications/misc/stork/default.nix
+++ b/pkgs/applications/misc/stork/default.nix
@@ -3,6 +3,8 @@
 , fetchFromGitHub
 , openssl
 , pkg-config
+, stdenv
+, darwin
 }:

 rustPlatform.buildRustPackage rec {
@@ -20,7 +22,8 @@ rustPlatform.buildRustPackage rec {

   nativeBuildInputs = [ pkg-config ];

-  buildInputs = [ openssl ];
+  buildInputs = [ openssl ]
+    ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];

   meta = with lib; {
     description = "Impossibly fast web search, made for static sites";

I am afraid it is not possible to fix the package for x86_64-darwin because the SDK there is stuck on very old version, so let's just use this:
diff --git a/pkgs/applications/misc/stork/default.nix b/pkgs/applications/misc/stork/default.nix
index 52699dfd61e..a78ec507f39 100644
--- a/pkgs/applications/misc/stork/default.nix
+++ b/pkgs/applications/misc/stork/default.nix
@@ -30,5 +30,10 @@ rustPlatform.buildRustPackage rec {
     homepage = "https://github.com/jameslittle230/stork";
     license = with licenses; [ asl20 ];
     maintainers = with maintainers; [ chuahou ];
+    # TODO: Remove once nixpkgs uses newer macOS SDK for x86_64-darwin
+    #  note: Undefined symbols for architecture x86_64:
+    #  "_SecTrustEvaluateWithError", referenced from:
+    #  security_framework::trust::SecTrust::evaluate_with_error::he55858ee51118073 in stork-5ae035d54d316055.stork.c9a39ac7-cgu.0.rcgu.o
+    broken = stdenv.isDarwin && stdenv.isx86_64;
   };
 }

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

1 package failed to build:

stork

@chuahou please apply the patch suggested by @prusnak, the Security framework needs to be imported.

@prusnak @siraben, thank you very much for your help. I've applied the patches to the branch. Please let me know if it will be preferable to squash the commits or rearrange them in any way.


Open meteo example

This PR introduces a new real example of how to use fpdart.
The example comes from the bloc's package, specifically the Open Meteo API.
This example aims to show how to refactor imperative code to functional programming using fpdart. The example contains both the original code as well as the refactored code. The goal is to show a 1-1 comparison between the two solutions.

As part of this PR, also some new methods have been added to make the refactoring more effective:

chainEither to TaskEither
safeCast (Either and Option)
safeCastStrict (Either and Option)

int intValue = 10;

/// Unhandled exception: type 'int' is not a subtype of type 'List<int>' in type cast
final waitWhat = intValue as List<int>;
final first = waitWhat.first;

/// Safe 🎯
final wellYeah = Either<String, List<int>>.safeCast(
  intValue,
  (dynamic value) => 'Not an List!',
);
final firstEither = wellYeah.map((list) => list.first);

@jacobaraujo7 I am planning to complete the series of articles on the Open Meteo API (see part 1) before release, so that the example is released alongside a proper explanation.


Figure out why we're sending empty transactions and safely fix them

This has been going on for a few months now and is constantly wasting resources. About 50% of all federation requests on my homeserver are these empty events.
For reference, this is how the nginx logs look on the receiving end:
x.x.x.x - - [07/Nov/2024:02:29:04 +0100] "PUT /_matrix/federation/v1/send/47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU HTTP/2.0" 200 11 "-" "Conduwuit/0.4.7 (16014e1)"
x.x.x.x - - [07/Nov/2024:02:29:04 +0100] "PUT /_matrix/federation/v1/send/47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU HTTP/2.0" 200 11 "-" "Conduwuit/0.4.7 (16014e1)"
x.x.x.x - - [07/Nov/2024:02:29:04 +0100] "PUT /_matrix/federation/v1/send/47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU HTTP/2.0" 200 11 "-" "Conduwuit/0.4.6"
x.x.x.x - - [07/Nov/2024:02:29:05 +0100] "PUT /_matrix/federation/v1/send/47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU HTTP/2.0" 200 11 "-" "Conduwuit/0.4.6"
x.x.x.x - - [07/Nov/2024:02:29:05 +0100] "PUT /_matrix/federation/v1/send/47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU HTTP/2.0" 200 11 "-" "Conduwuit/0.4.7 (16014e1)"
x.x.x.x - - [07/Nov/2024:02:29:05 +0100] "PUT /_matrix/federation/v1/send/47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU HTTP/2.0" 200 11 "-" "Conduwuit/0.4.6"
x.x.x.x - - [07/Nov/2024:02:29:05 +0100] "PUT /_matrix/federation/v1/send/47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU HTTP/2.0" 200 11 "-" "Conduwuit/0.4.6"


added a dice game

pls assign the issue created and merge this

Hi, kindly follow the guidelines and contribting steps. There is a seperate directory where you need to add your project along with few more steps which are important. Randomly adding projects may be considered as invalid or spam by hacktoberfest during evaluation. Thanks!

already merged in #79


readonly vs hardwired readonly

In the new proposal, type can take 3 values: RO, WLRL and WARL.
RO refers to a hardwired read-only, which means that this field will always return the same value.
However, the spec defines fields like SD in mstatus which are readonly to the user but the value of the field depends on other micro-architectural state like xs and fs. So this doesn't fall under the RO category defined above neither is it WARL since it writes are not allowed to his field.
What should the type field be for such fields?
we can redefined RO to be ro_constant and define SD as ro_variable.
ro_constant will always respond with the same value.
ro_variable will however respond with different values but should we capture the function it depends on?

@simon5656 @eroom1966 @taoliug any views on this?

I think RO_VARIABLE sounds good to me. I think it's hard to accurately describe the dependency. There could be other similar registers like performance counters, which is RO but can be updated by the processor. From the verification perspective, this type of register needs to be modeled case by case.

okay good.. maybe for now i'l leave ro_variable as a boolean field only
Later versions could take an effort to formalize the dependency if there are sufficient use-cases and requirements.


Cannot see extension tabs next to Home Title Bar

Issue Type: Bug
I have installed SQL server agent/import/whoisactive extensions and reloaded. Cannot see them in the dashboard screen.
Never had this issue when using SQLOps which I recently replaced.

Azure Data Studio version: azuredatastudio 1.2.4 (1ebfd0235690ad044ed2874a02e65188f5fea01c, 2018-11-02T21:50:52.634Z)
OS version: Windows_NT x64 10.0.16299

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.89GB (10.17GB free)

Process Argv
C:\Program Files\Azure Data Studio\azuredatastudio.exe

Screen Reader
no

VM
0%

Extensions (5)

Extension
Author (truncated)
Version

firstresponderkit
dre
0.3.0

agent
Mic
0.35.0

import
Mic
0.4.0

whoisactive
Mic
0.1.1

sql-search
Red
0.2.1

Hello,
I had the same problem. A setting was missing from my old SQL Operations Studio settings file.
Just adding this should do the work:
"workbench.enablePreviewFeatures": true
Regards,
Ygg'

@CubsRep  Definitely do what @Yggwit mentioned here, after that if you still don't see it, try click the "+" button on the right side and select the dashboard from the pop out menu.

@Yggwit  - Thanks for the suggested fix. Yeah It is visible and working now 👍


website not working

https://elegantlatex.org/ shows only a 404.

The website will re-open this month.


Analyzer Project template does not line up with the tutorial.

With a fresh install of Visual Studio Enterprise 2019 Version 16.8.3
on Windows 10 Pro Build 19042.630
When working through the tutorial, I am unable to get it to work after the initial analyzer setup. The test project, especially, looks nothing like what is shown in the tutorial.
Example of template test method (note the asserts at the end, specifically):

After looking through the source code I found this folder that is being used which is not in the template that was created for the project:
https://github.com/dotnet/samples/tree/master/csharp/roslyn-sdk/Tutorials/MakeConst/MakeConst.Test/Helpers so my next step will be to copy those over and keep trying.
Unfortunately, there is a public readonly struct DiagnosticResults that exists in the CodeAnalysis.Testing namespace which led to a lot of confusion on my end.

Getting a custom test to pass has been fruitless when trying to use that. (the metadata description for those methods/properties weren't clear to me.)
My next step is to copy over those tutorial project helpers to continue on and report here with any progress.
Update
Adding more details/notes/difference between the tutorial and the current template:

The template also creates 5 projects compared to the tutorials 3

The CodefixProvider is split into a new project and there is a Nuget package project

The versions are all on core 2.0 which gives warnings about EoL.

To update the .net core version on them requires a bit of tweaking and adjustments to fix the ambiguous reference errors. I found the simplest thing to do is move the CodefixProvider code back into Analyzer project and remove the code fix project, then remove that project reference from the VSIX project. From here you can update the .net core version without issue.

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

ID: f5f49f32-eef3-635a-18c1-83900ed83356
Version Independent ID: d282dd30-4560-1cfe-c801-25759216220d
Content: Get started with syntax analysis (Roslyn APIs)
Content Source: docs/csharp/roslyn-sdk/get-started/syntax-analysis.md
Product: dotnet-csharp
Technology: csharp-roslyn
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks for noting this @dennistouchet
This article needs to be updated to match the current templates.

Thanks for noting this @dennistouchet
This article needs to be updated to match the current templates.


Bug: AttrsFactory fails if type hints are given as strings

Description
If the type hints for a class is given as strings, such as when using from __future__ import annotations, then AttrsFactory fails with a ParameterException.
URL to code causing the issue
No response
MCVE
from __future__ import annotations

import attrs
from polyfactory.factories.attrs_factory import AttrsFactory

@attrs.define
class Foo:
    foo: int

class FooFactory(AttrsFactory[Foo]):
    __model__ = Foo

foo = FooFactory.build()

Steps to reproduce
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Screenshots
"In the format of: ![SCREENSHOT_DESCRIPTION](SCREENSHOT_LINK.png)"
Logs
No response
Release Version
v2.8.1
Platform

[ ] Linux
[ ] Mac
[ ] Windows
[ ] Other (Please specify in the description above)

Funding

If you would like to see an issue prioritized, make a pledge towards it!
We receive the pledge once the issue is completed & verified

Fixed in #370.


Add an example with Mongo Atlas

Harshit shared his code for Mongo Atlas on Slack. Let's add an example.
https://serverless-stack.slack.com/archives/C01JG3B20RY/p1622476904154300?thread_ts=1622474967.154200&cid=C01JG3B20RY

Added https://github.com/AnomalyInnovations/serverless-stack-com/pull/552


Nonce is not set in 1.3.0

Version
nuxt-security: 1.3.0
nuxt: 3.11.1
Reproduction Link
n/a
Steps to reproduce
n/a
What is Expected?
The nuxt.config.ts file definition is below, and "nonce-${nonce}" is correctly set in the response.
  security: {
    headers: {
      contentSecurityPolicy: {
        'script-src': [
          "'self'",
          "'unsafe-inline'",
          "'strict-dynamic'",
          "'nonce-{{nonce}}'",
        ],

    …

    nonce: true
  }

What is actually happening?
The following error has occurred.
'ReferenceError: getResponseHeaders is not defined\n' +
      '    at setNonceInCsp (/**/project-name/node_modules/nuxt-security/dist/runtime/nitro/plugins/99-cspSsrNonce.mjs:36:21)\n' +
      '    at <anonymous> (/**/project-name/node_modules/nuxt-security/dist/runtime/nitro/plugins/99-cspSsrNonce.mjs:32:5)\n' +

This is probably caused by the lack of "getResponseHeaders" in the first line of src/runtime/nitro/plugins/99-cspSsrNonce.ts: import { defineNitroPlugin, getRouteRules, setResponseHeader } from '#imports'

@vejja
Could you take a look at it? I think we missed something in the latest release.
@dogharrycatpotter could you please remain at 1.2.X until the end of the week? I am currently off and wont be able to release a patch version but when I will be back, this is my top priority.

I'm in a similar situation and would like to provide information.
Nuxt started returning a 500 error, and at the same time the CSP nonce was not being expanded correctly.
The error output from Nuxt is below, and this has started occurring since 1.3.0.
After reverting to 1.2.1, the problem no longer occurred.
2024-04-04T04:02:15.798650645Z [nuxt] [request error] [unhandled] [500] The "list" argument must be an instance of SharedArrayBuffer, ArrayBuffer or ArrayBufferView.
2024-04-04T04:02:15.798705846Z   at TextDecoder.decode (node:internal/encoding:449:16)
2024-04-04T04:02:15.798712046Z   at ./server/chunks/runtime.mjs:5802:67
2024-04-04T04:02:15.798715846Z   at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2024-04-04T04:02:15.798720346Z   at async ./server/chunks/routes/renderer.mjs:292:3
2024-04-04T04:02:15.798723846Z   at async Object.handler (./server/chunks/routes/renderer.mjs:29:22)
2024-04-04T04:02:15.798727546Z   at async Object.handler (./server/chunks/runtime.mjs:3064:19)
2024-04-04T04:02:15.798731146Z   at async Server.toNodeHandle (./server/chunks/runtime.mjs:3330:7)

I checked the location where the error occurred and found that it occurred in the code below that was corrected in #396.
https://github.com/Baroshem/nuxt-security/blob/d0a3c3fd252f0c27b7010a03d78349be8d8261a4/src/runtime/nitro/plugins/03-subresourceIntegrity.ts#L25-L26

Fixing now, will patch
@fujita-h this seems to be a different issue
Can you let me know which version of Nuxt you are using

specifier in your package.json
npm ls nuxt or yarn list nuxt
Thanks

@vejja got it.
The environment that occurred is little complex, so I will open a new issue when I can reproduce it.

Hi @fujita-h
I'm able to reproduce, with Nuxt 3.11.1 on my end
Taking care of it

Released patch 1.3.1 with a fix for that from @vejja.
Please check if it works now :)


[FEATURE]Set-PnPWebHeader to include Logo Thumbnail

For modern SharePoint sites, the distinction between the "Site Logo" and "Site Logo Thumbnail" is important, as they serve different purposes across SharePoint and the Microsoft 365 ecosystem. The site logo appears in the site header, while the site logo thumbnail is used in search results, site cards, when copying / moving files, and other areas.  It is a critical component used by end users to differentiate between various SPO sites and Teams.
For many of my clients, they want to apply branding and standardize the look and feel of sites they are provisioning.  This needs to be done in a scalable and repeatable manner (i.e. PnP powershell / Power Automate / Rest API / Azure Automation, etc.).  The Set-PnPWebHeader offers a nice set of options but is missing the ability to set the Logo Thumbnail.  In fact I can't find any other way outside of PnP SDK Core (which isn't an option for many clients).
I'm requesting for the Set-PnPWebHeader to have an attribute -SiteLogoThumbnailURL added to it's capability to address this gap.

Interesting, I implemented the feature within https://github.com/pnp/cli-microsoft365/issues/5495 and cmdlet is available within https://pnp.github.io/cli-microsoft365/cmd/spo/site/site-set
The code will have to be modified using the endpoint _api/siteiconmanager/setsitelogo with data
for logo
data: {
aspect: 1,
relativeLogoUrl: logoUrl,
type: 0
}
and thumbnail
data: {
aspect: 0,
relativeLogoUrl: thumbnailUrl,
type: 0
}
Thanks for the cli for m365 maintainers to find a solution and would be happy to implement it within PnP PowerShell.
@gautamdsheth : I can attempt to work on it, assign to myself.

@newfy78 - the PR by @reshmee011 has been merged and will be available in tomorrow's nightly builds.
You need to specify -SiteThumbnailUrl parameter in Set-PnPWeb cmdlet.
Thanks for raising this feature request.

@newfy78 , thanks for the request, it will help many.


Enable debug mode via env

This would make it easy to switch on debug mode when you deploy to Heroku etc.

Store a setting debug_mode and override in LoadConfig?

I was trying to make it harder for the average user to edit it. That is a solution though. Do you think it's better?

Oh I thought it was for everyone. Laravel 5 will let you easy do this directly on the env.

We don't really want to advocate it, but we could put it under some kind of Danger zone?

Nah I think it's better on the env only for advanced user.

:+1:

See #434


Fail to install with opam

Apparently, the installation script tries to install the kernel to /usr/share/jupyter/kernels/, which would require root rights, but I am unable to either launch opam install jupter with the good options or with sudo.
The error is:
[Errno 13] Permission denied: '/usr/local/share/jupyter/kernels/ocaml-jupyter-4.04.2'
Perhaps you want to install with `sudo` or `--user`?
E: Failure("Command './kernelspec.sh install true /home/lilian/.opam/4.04.2/share/ocaml-jupyter' terminated with error code 1")

I tried to manually hack the kernelspec.sh script to force using sudo jupyter ... and reinstalling from local archive (manually modified), but this is not working.
Any insights? Any easy way of fixing that?
Thanks!
PS: it could help to also provide instructions on how to compile and install from the git repository.

What's the version  of ocaml-jupyter? Can opam update && opam upgrade fix it?

I was using the 0.1.0 version.
Sorry, my setup works like this and everytime I opam upgrade, something gets broken...

I fixed the bug at v1.0.1: https://github.com/akabe/ocaml-jupyter/pull/44
I agree that opam upgrade sometimes fails. Maybe I can solve the problem if you show me output log of opam upgrade.

OK good. It is working for me since the manual install, and I don't have time right now to try again but I believe it is fixed.
Will try on another laptop asap.

Hi @akabe
I'm running into the same issue, when running the opam install command within a Docker build. The stack trace is:
Step 7/9 : RUN opam install -y jupyter
 ---> Running in d83f5d46545d
[WARNING] Running as root is not recommended
The following actions will be performed:
  - install   uuidm               0.9.6                         [required by jupyter]
  - install   base64              2.2.0                         [required by jupyter]
  - install   conf-gmp            1                             [required by zarith]
  - install   mirage-no-solo5     1                             [required by nocrypto]
  - install   conf-zmq            0.1                           [required by zmq]
  - install   conf-perl           1                             [required by zarith]
  - install   ocb-stubblr         0.1.1                         [required by nocrypto]
  - upgrade   cppo                1.4.1 to 1.6.0                [required by jupyter]
  - install   stdint              0.4.2                         [required by zmq]
  - install   mirage-no-xen       1                             [required by nocrypto]
  - install   zarith              1.5                           [required by nocrypto]
  - install   cpuid               0.1.1                         [required by nocrypto]
  - install   ocplib-endian       1.0                           [required by cstruct]
  - install   cppo_ocamlbuild     1.6.0                         [required by jupyter]
  - recompile utop                1.19.3                        [uses cppo]
  - install   zmq                 4.0-8                         [required by jupyter]
  - install   cstruct             3.1.1                         [required by nocrypto]
  - install   ppx_deriving        4.1                           [required by nocrypto, ppx_deriving_yojson]
  - install   lwt-zmq             2.1.0                         [required by jupyter]
  - install   cstruct-lwt         3.1.1                         [required by nocrypto]
  - install   ppx_deriving_yojson 3.0                           [required by jupyter]
  - recompile ppx_type_conv       v0.9.0                        [uses ppx_deriving]
  - recompile ppx_variants_conv   v0.9.0                        [uses ppx_type_conv]
  - recompile ppx_typerep_conv    v0.9.0                        [uses ppx_type_conv]
  - recompile ppx_traverse        v0.9.0                        [uses ppx_type_conv]
  - recompile ppx_sexp_conv       v0.9.0                        [uses ppx_type_conv]
  - recompile ppx_fields_conv     v0.9.0                        [uses ppx_type_conv]
  - recompile ppx_enumerate       v0.9.0                        [uses ppx_type_conv]
  - recompile ppx_compare         v0.9.0                        [uses ppx_type_conv]
  - install   nocrypto            0.5.4                         [required by jupyter]
  - recompile ppx_sexp_value      v0.9.0                        [uses ppx_sexp_conv]
  - recompile ppx_sexp_message    v0.9.0                        [uses ppx_sexp_conv]
  - recompile ppx_custom_printf   v0.9.0                        [uses ppx_sexp_conv, ppx_traverse]
  - recompile ppx_hash            v0.9.0                        [uses ppx_type_conv]
  - recompile ppx_assert          v0.9.0                        [uses ppx_type_conv]
  - install   jupyter             0.1.0
  - recompile bin_prot            v0.9.1                        [uses ppx_sexp_conv, ppx_compare, ppx_fields_conv, ppx_variants_conv]
  - recompile ppx_base            v0.9.0                        [uses ppx_type_conv]
  - recompile ppx_expect          v0.9.0                        [uses ppx_traverse, ppx_fields_conv, ppx_assert, etc.]
  - recompile ppx_bin_prot        v0.9.0                        [uses ppx_type_conv]
  - recompile configurator        v0.9.1                        [uses ppx_base]
  - recompile ppx_jane            v0.9.0                        [uses ppx_typerep_conv, ppx_bin_prot, ppx_assert, etc.]
  - recompile core_kernel         v0.9.0                        [uses ppx_base, ppx_assert, ppx_sexp_conv]
  - recompile re2                 v0.9.0                        [uses core_kernel]
  - recompile core                v0.9.1                        [uses ppx_assert]
  - recompile textutils           v0.9.0                        [uses core]
  - recompile core_extended       v0.9.0                        [uses core_kernel, core, bin_prot]
===== 21 to install | 25 to recompile | 1 to upgrade =====

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[base64: from default] Command started
[bin_prot] Archive in cache
[configurator] Archive in cache
[core] Archive in cache
[core_extended] Archive in cache
[core_kernel] Archive in cache
[cppo: from default] Command started
[cppo_ocamlbuild: from default] Command started
[base64: from default] Command started
[default] https://opam.ocaml.org/archives/base<IP_ADDRESS>+opam.tar.gz downloaded
[cpuid: from default] Command started
[cppo_ocamlbuild: from default] Command started
[cppo: from default] Command started
[default] https://opam.ocaml.org/archives/cppo_ocamlbuild.1.6.0+opam.tar.gz downloaded
[cstruct: from default] Command started
[default] https://opam.ocaml.org/archives/cppo.1.6.0+opam.tar.gz downloaded
[cstruct-lwt: from default] Command started
[cpuid: from default] Command started
[default] https://opam.ocaml.org/archives/cpuid.0.1.1+opam.tar.gz downloaded
[jupyter: from default] Command started
[cstruct-lwt: from default] Command started
[default] https://opam.ocaml.org/archives/cstruct-lwt.3.1.1+opam.tar.gz downloaded
[lwt-zmq: from default] Command started
[jupyter: from default] Command started
[default] https://opam.ocaml.org/archives/jupyter.0.1.0+opam.tar.gz downloaded
[nocrypto: from default] Command started
[cstruct: from default] Command started
[default] https://opam.ocaml.org/archives/cstruct.3.1.1+opam.tar.gz downloaded
[ocb-stubblr: from default] Command started
[ocb-stubblr: from default] Command started
[lwt-zmq: from default] Command started
[default] https://opam.ocaml.org/archives/ocb-stubblr.0.1.1+opam.tar.gz downloaded
[ocplib-endian: from default] Command started
[default] https://opam.ocaml.org/archives/lwt-zmq.2.1.0+opam.tar.gz downloaded
[ppx_assert] Archive in cache
[ppx_base] Archive in cache
[ppx_bin_prot] Archive in cache
[ppx_compare] Archive in cache
[ppx_custom_printf] Archive in cache
[ppx_deriving: from default] Command started
[ppx_deriving: from default] Command started
[default] https://opam.ocaml.org/archives/ppx_deriving.4.1+opam.tar.gz downloaded
[ppx_deriving_yojson: from default] Command started
[ocplib-endian: from default] Command started
[default] https://opam.ocaml.org/archives/ocplib-endian.1.0+opam.tar.gz downloaded
[ppx_enumerate] Archive in cache
[ppx_expect] Archive in cache
[ppx_fields_conv] Archive in cache
[ppx_hash] Archive in cache
[ppx_jane] Archive in cache
[ppx_sexp_conv] Archive in cache
[ppx_sexp_message] Archive in cache
[ppx_sexp_value] Archive in cache
[ppx_traverse] Archive in cache
[ppx_type_conv] Archive in cache
[ppx_typerep_conv] Archive in cache
[ppx_variants_conv] Archive in cache
[re2] Archive in cache
[stdint: from default] Command started
[ppx_deriving_yojson: from default] Command started
[default] https://opam.ocaml.org/archives/ppx_deriving_yojson.3.0+opam.tar.gz downloaded
[textutils] Archive in cache
[utop] Archive in cache
[uuidm: from default] Command started
[stdint: from default] Command started
[default] https://opam.ocaml.org/archives/stdint.0.4.2+opam.tar.gz downloaded
[zarith: from default] Command started
[uuidm: from default] Command started
[default] https://opam.ocaml.org/archives/uuidm.0.9.6+opam.tar.gz downloaded
[zmq: from default] Command started
[zarith: from default] Command started
[default] https://opam.ocaml.org/archives/zarith.1.5+opam.tar.gz downloaded
[zmq: from default] Command started
[default] https://opam.ocaml.org/archives/zmq.4.0-8+opam.tar.gz downloaded
[nocrypto: from default] Command started
[default] https://opam.ocaml.org/archives/nocrypto.0.5.4+opam.tar.gz downloaded

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-> removed   core_extended.v0.9.0
-> removed   re2.v0.9.0
-> removed   textutils.v0.9.0
-> removed   core.v0.9.1
-> removed   core_kernel.v0.9.0
-> removed   configurator.v0.9.1
-> removed   ppx_jane.v0.9.0
-> removed   ppx_base.v0.9.0
-> removed   ppx_bin_prot.v0.9.0
-> removed   bin_prot.v0.9.1
-> removed   ppx_enumerate.v0.9.0
-> removed   ppx_expect.v0.9.0
-> removed   ppx_assert.v0.9.0
-> removed   ppx_custom_printf.v0.9.0
-> removed   ppx_fields_conv.v0.9.0
-> removed   ppx_hash.v0.9.0
-> removed   ppx_compare.v0.9.0
-> removed   ppx_sexp_message.v0.9.0
-> removed   ppx_sexp_value.v0.9.0
-> removed   ppx_sexp_conv.v0.9.0
-> removed   ppx_traverse.v0.9.0
-> removed   ppx_typerep_conv.v0.9.0
-> removed   ppx_variants_conv.v0.9.0
-> removed   ppx_type_conv.v0.9.0
[utop: ocamlfind remove] Command started
[base64: jbuilder build] Command started
[conf-gmp: sh] Command started
[conf-perl: perl] Command started
-> removed   utop.1.19.3
[cppo: ocamlfind remove] Command started
-> installed conf-perl.1
[conf-zmq: cc test.c] Command started
-> installed conf-gmp.1
-> installed mirage-no-solo5.1
-> installed mirage-no-xen.1
[ocb-stubblr: ocaml build] Command started
-> removed   cppo.1.4.1
[cppo: jbuilder build] Command started
-> installed base<IP_ADDRESS>
[stdint: ocaml setup.ml] Command started
-> installed conf-zmq.0.1
[uuidm: ocaml build] Command started
-> installed ocb-stubblr.0.1.1
[cpuid: ocaml build] Command started
-> installed cppo.1.6.0
[cppo_ocamlbuild: jbuilder build] Command started
-> installed uuidm.0.9.6
[ocplib-endian: ocaml setup.ml] Command started
-> installed cppo_ocamlbuild.1.6.0
[ppx_deriving: ocaml] Command started
[stdint: ocaml setup.ml] Command started
-> installed cpuid.0.1.1
[utop: ./configure] Command started
[ocplib-endian: ocaml setup.ml] Command started
[utop: make] Command started
[ocplib-endian: ocaml setup.ml] Command started
-> installed ocplib-endian.1.0
[cstruct: jbuilder build] Command started
-> installed cstruct.3.1.1
[cstruct-lwt: jbuilder build] Command started
-> installed cstruct-lwt.3.1.1
[zarith: ./configure] Command started
-> installed ppx_deriving.4.1
[ppx_deriving_yojson: ocaml] Command started
[zarith: make] Command started
[stdint: ocaml setup.ml] Command started
[utop: make install] Command started
-> installed utop.1.19.3
[ppx_type_conv: jbuilder build] Command started
-> installed ppx_deriving_yojson.3.0
[zarith: make install] Command started
-> installed zarith.1.5
-> installed stdint.0.4.2
[zmq: ocaml setup.ml] Command started
-> installed ppx_type_conv.v0.9.0
[ppx_compare: jbuilder build] Command started
[ppx_enumerate: jbuilder build] Command started
[ppx_fields_conv: jbuilder build] Command started
[zmq: ocaml setup.ml] Command started
-> installed ppx_enumerate.v0.9.0
[ppx_sexp_conv: jbuilder build] Command started
-> installed ppx_compare.v0.9.0
[ppx_traverse: jbuilder build] Command started
-> installed ppx_fields_conv.v0.9.0
[ppx_typerep_conv: jbuilder build] Command started
-> installed ppx_sexp_conv.v0.9.0
[nocrypto: ocaml build] Command started
-> installed ppx_typerep_conv.v0.9.0
[ppx_assert: jbuilder build] Command started
-> installed ppx_traverse.v0.9.0
[ppx_custom_printf: jbuilder build] Command started
-> installed ppx_assert.v0.9.0
[ppx_hash: jbuilder build] Command started
-> installed ppx_custom_printf.v0.9.0
[ppx_sexp_message: jbuilder build] Command started
[zmq: ocaml setup.ml] Command started
-> installed ppx_hash.v0.9.0
[ppx_base: jbuilder build] Command started
-> installed ppx_sexp_message.v0.9.0
[ppx_sexp_value: jbuilder build] Command started
-> installed zmq.4.0-8
[lwt-zmq: ocaml setup.ml] Command started
-> installed ppx_base.v0.9.0
[configurator: jbuilder build] Command started
[lwt-zmq: ocaml setup.ml] Command started
-> installed ppx_sexp_value.v0.9.0
[ppx_variants_conv: jbuilder build] Command started
-> installed configurator.v0.9.1
-> installed ppx_variants_conv.v0.9.0
[bin_prot: jbuilder build] Command started
[ppx_expect: jbuilder build] Command started
-> installed nocrypto.0.5.4
[lwt-zmq: ocaml setup.ml] Command started
-> installed bin_prot.v0.9.1
[ppx_bin_prot: jbuilder build] Command started
-> installed lwt-zmq.2.1.0
[jupyter: ocaml setup.ml] Command started
-> installed ppx_expect.v0.9.0
-> installed ppx_bin_prot.v0.9.0
[ppx_jane: jbuilder build] Command started
[jupyter: ocaml setup.ml] Command started
-> installed ppx_jane.v0.9.0
[core_kernel: jbuilder build] Command started
[ERROR] The compilation of jupyter failed at "ocaml setup.ml -build".
[jupyter: sh] Command started
[jupyter: rm] Command started
-> installed core_kernel.v0.9.0
[core: jbuilder build] Command started
[re2: jbuilder build] Command started
-> installed core.v0.9.1
[textutils: jbuilder build] Command started
-> installed textutils.v0.9.0
-> installed re2.v0.9.0
[core_extended: jbuilder build] Command started
-> installed core_extended.v0.9.0

#=== ERROR while installing jupyter.0.1.0 =====================================#
# opam-version         1.2.2
# os                   linux
# command              ocaml setup.ml -build
# path                 /root/.opam/4.04.0/build/jupyter.0.1.0
# compiler             4.04.0
# exit-code            1
# env-file             /root/.opam/4.04.0/build/jupyter.0.1.0/jupyter-5-672e8b.env
# stdout-file          /root/.opam/4.04.0/build/jupyter.0.1.0/jupyter-5-672e8b.out
# stderr-file          /root/.opam/4.04.0/build/jupyter.0.1.0/jupyter-5-672e8b.err
### stdout ###
# [...]
# /root/.opam/4.04.0/bin/ocamlfind ocamlc -c -g -annot -bin-annot -safe-string -no-alias-deps -strict-formats -strict-sequence -I lib/core -I lib/repl -I lib/kernel -w A-4-31-33-34-39-41-42-43-44-45-48-49-50-58 -package yojson -package uuidm -package ppx_deriving_yojson -package nocrypto -package lwt.unix -package lwt.ppx -package lwt-zmq -package lwt -package compiler-libs.toplevel -package compiler-libs.common -I src -I lib/kernel -o src/JupyterMain.cmo src/JupyterMain.ml
# + /root/.opam/4.04.0/bin/ocamlfind ocamlc -c -g -annot -bin-annot -safe-string -no-alias-deps -strict-formats -strict-sequence -I lib/core -I lib/repl -I lib/kernel -w A-4-31-33-34-39-41-42-43-44-45-48-49-50-58 -package yojson -package uuidm -package ppx_deriving_yojson -package nocrypto -package lwt.unix -package lwt.ppx -package lwt-zmq -package lwt -package compiler-libs.toplevel -package compiler-libs.common -I src -I lib/kernel -o src/JupyterMain.cmo src/JupyterMain.ml
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /root/.opam/4.04.0/lib/ocaml/compiler-libs, /root/.opam/4.04.0/lib/ocaml
# /root/.opam/4.04.0/bin/ocamlfind ocamldep -package yojson -package uuidm -package ppx_deriving_yojson -package nocrypto -package lwt.unix -package lwt.ppx -package lwt-zmq -package lwt -package compiler-libs.toplevel -package compiler-libs.common -modules src/JupyterArgs.ml > src/JupyterArgs.ml.depends
# /root/.opam/4.04.0/bin/ocamlfind ocamlc -c -g -annot -bin-annot -safe-string -no-alias-deps -strict-formats -strict-sequence -I lib/core -I lib/repl -I lib/kernel -w A-4-31-33-34-39-41-42-43-44-45-48-49-50-58 -package yojson -package uuidm -package ppx_deriving_yojson -package nocrypto -package lwt.unix -package lwt.ppx -package lwt-zmq -package lwt -package compiler-libs.toplevel -package compiler-libs.common -I src -I lib/kernel -o src/JupyterArgs.cmo src/JupyterArgs.ml
# + /root/.opam/4.04.0/bin/ocamlfind ocamlc -c -g -annot -bin-annot -safe-string -no-alias-deps -strict-formats -strict-sequence -I lib/core -I lib/repl -I lib/kernel -w A-4-31-33-34-39-41-42-43-44-45-48-49-50-58 -package yojson -package uuidm -package ppx_deriving_yojson -package nocrypto -package lwt.unix -package lwt.ppx -package lwt-zmq -package lwt -package compiler-libs.toplevel -package compiler-libs.common -I src -I lib/kernel -o src/JupyterArgs.cmo src/JupyterArgs.ml
# findlib: [WARNING] Interface topdirs.cmi occurs in several directories: /root/.opam/4.04.0/lib/ocaml/compiler-libs, /root/.opam/4.04.0/lib/ocaml
# File "src/JupyterArgs.ml", line 36, characters 8-31:
# Error: Unbound value Lwt_log.level_of_string
# Command exited with code 2.
### stderr ###
# W: Cannot find source file matching module 'JupyterReplToploop' in library jupyter-repl.
# W: Use InterfacePatterns or ImplementationPatterns to define this file with feature "source_patterns".
# W: Cannot find source file matching module 'JupyterReplError' in library jupyter-repl.
# W: Use InterfacePatterns or ImplementationPatterns to define this file with feature "source_patterns".
# E: Failure("Command ''/root/.opam/4.04.0/bin/ocamlbuild' lib/core/jupyter.cma lib/core/jupyter.cmxa lib/core/jupyter.a lib/core/jupyter.cmxs lib/repl/jupyter-repl.cma lib/kernel/jupyter-kernel.cma lib/kernel/jupyter-kernel.cmxa lib/kernel/jupyter-kernel.a lib/kernel/jupyter-kernel.cmxs src/JupyterMain.byte lib/notebook/jupyter-notebook.cma lib/notebook/jupyter-notebook.cmxa lib/notebook/jupyter-notebook.a lib/notebook/jupyter-notebook.cmxs -use-ocamlfind -plugin-tags 'package(cppo_ocamlbuild)' -tag debug' terminated with error code 10")

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  - install jupyter 0.1.0
The following changes have been performed
  - install base64              2.2.0
  - install conf-gmp            1
  - install conf-perl           1
  - install conf-zmq            0.1
  - upgrade cppo                1.4.1 to 1.6.0
  - install cppo_ocamlbuild     1.6.0
  - install cpuid               0.1.1
  - install cstruct             3.1.1
  - install cstruct-lwt         3.1.1
  - install lwt-zmq             2.1.0
  - install mirage-no-solo5     1
  - install mirage-no-xen       1
  - install nocrypto            0.5.4
  - install ocb-stubblr         0.1.1
  - install ocplib-endian       1.0
  - install ppx_deriving        4.1
  - install ppx_deriving_yojson 3.0
  - install stdint              0.4.2
  - install uuidm               0.9.6
  - install zarith              1.5
  - install zmq                 4.0-8

=-=- jupyter.0.1.0 troubleshooting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> If Jupyter is installed, ocaml-jupyter kernel is already available.
=> Otherwise you setup Jupyter and the OCaml kernel as follows:
=>
=> $ pip install jupyter
=> $ jupyter kernelspec install --name ocaml-jupyter-4.04.0 \
       /root/.opam/4.04.0/share/ocaml-jupyter

The former state can be restored with:
    opam switch import "~/.opam/4.04.0/backup/state-20170815052035.export"
The command '/bin/sh -c opam install -y jupyter' returned a non-zero code: 4

Any advice?

@jotterbach Please try opam update. The v0.1.0 has a bug maybe.

Maybe you are interested in https://github.com/akabe/docker-ocaml-jupyter-datascience

@akabe Thanks for the fast reply! I tried it with running opam update prior to installing ocaml-jupyter, but still getting the same error:
[ppx_jane: jbuilder build] Command started
-> installed ppx_jane.v0.9.0
[core_kernel: jbuilder build] Command started
-> installed zmq.4.0-8
[lwt-zmq: ocaml setup.ml] Command started
[lwt-zmq: ocaml setup.ml] Command started
[lwt-zmq: ocaml setup.ml] Command started
-> installed lwt-zmq.2.1.0
[jupyter: ocaml setup.ml] Command started
[jupyter: ocaml setup.ml] Command started
[jupyter: ocaml setup.ml] Command started
[ERROR] The compilation of jupyter failed at "ocaml setup.ml -install".
[jupyter: sh] Command started
[jupyter: rm] Command started
[WARNING] Directory /root/.opam/4.04.0/lib/jupyter is not empty, not removing
-> installed core_kernel.v0.9.0
[core: jbuilder build] Command started
[re2: jbuilder build] Command started
-> installed core.v0.9.1
[textutils: jbuilder build] Command started
-> installed textutils.v0.9.0
-> installed re2.v0.9.0
[core_extended: jbuilder build] Command started
-> installed core_extended.v0.9.0

#=== ERROR while installing jupyter.1.0.1 =====================================#
# opam-version         1.2.2
# os                   linux
# command              ocaml setup.ml -install
# path                 /root/.opam/4.04.0/build/jupyter.1.0.1
# compiler             4.04.0
# exit-code            1
# env-file             /root/.opam/4.04.0/build/jupyter.1.0.1/jupyter-6-4b889b.env
# stdout-file          /root/.opam/4.04.0/build/jupyter.1.0.1/jupyter-6-4b889b.out
# stderr-file          /root/.opam/4.04.0/build/jupyter.1.0.1/jupyter-6-4b889b.err
### stderr ###
# [...]
# Installed /root/.opam/4.04.0/lib/jupyter/JupyterNotebook.annot
# Installed /root/.opam/4.04.0/lib/jupyter/JupyterNotebookUnsafe.cmx
# Installed /root/.opam/4.04.0/lib/jupyter/JupyterNotebookStdin.cmx
# Installed /root/.opam/4.04.0/lib/jupyter/JupyterNotebookRouter.cmx
# Installed /root/.opam/4.04.0/lib/jupyter/JupyterNotebookCommManager.cmx
# Installed /root/.opam/4.04.0/lib/jupyter/JupyterNotebook.cmx
# Installed /root/.opam/4.04.0/lib/jupyter/META
# [WARNING] Running as root is not recommended
# ./kernelspec.sh: line 56: sudo: command not found
# E: Failure("Command './kernelspec.sh install true /root/.opam/4.04.0/share/ocaml-jupyter' terminated with error code 127")

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  - install jupyter 1.0.1
The following changes have been performed
  - install base64              2.2.0
  - install conf-gmp            1
  - install conf-gmp-powm-sec   1
  - install conf-perl           1
  - install conf-zlib           1
  - install conf-zmq            0.1
  - install cppo_ocamlbuild     1.6.0
  - install cryptokit           1.12
  - install lwt-zmq             2.1.0
  - install ppx_derivers        1.0
  - install ppx_deriving        4.2
  - install ppx_deriving_yojson 3.0
  - install stdint              0.3.0-0
  - install uuidm               0.9.6
  - install zarith              1.5
  - install zmq                 4.0-8

=-=- jupyter.1.0.1 troubleshooting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=> If Jupyter is installed, ocaml-jupyter kernel is already available.
=> Otherwise you setup Jupyter and the OCaml kernel as follows:
=>
=> $ pip install jupyter

The former state can be restored with:
    opam switch import "~/.opam/4.04.0/backup/state-20170815053719.export"
The command '/bin/sh -c opam install -y jupyter' returned a non-zero code: 4

The version is now updated, but still can't install. I would be interested in just using one of the pre-built versions but I need an image that contains the dev branch of Owl and hence I use that base container at the moment.

@jotterbach I see. The kernespec installer does not support execution on root without sudo since opam does not recommend to run on root. I'll fix the bug of the installer at the next release. If you want to immediately use the kernel, you can install it on a normal user or install sudo.

@jotterbach  Strange. I cannot reproduce your error.  Seems like some deps are not available for 4.05.0.
`$ opam install jupyter
The following dependencies couldn't be met:

jupyter -> ppx_deriving_yojson >= 3.0 -> ppx_deriving < 3.0
Your request can't be satisfied:
ppx_deriving<1.0 is not available because your system doesn't comply with ocaml-version >= "4.02.0" & ocaml-version < "4.03".
ppx_deriving<2.0 is not available because your system doesn't comply with ocaml-version = "4.02.1" & ocaml-version < "4.03" & opam-version >= "1.2".
ppx_deriving<3.0 is not available because your system doesn't comply with ocaml-version >= "4.02.2" & ocaml-version < "4.03" & opam-version >= "1.2".
ppx_deriving_yojson>=3.0 is not available because your system doesn't comply with ocaml-version < "4.05.0".

No solution found, exiting`

@arshad01 Yes. ocaml-jupyter cannot be installed in 4.05 since ppx_deriving_yojson doesn't support the version: https://opam.ocaml.org/packages/ppx_deriving_yojson/ppx_deriving_yojson.3.0/
ocaml-jupyter itself does not directly depend on functionality of 4.05. If ppx_deriving_yojson will support 4.05, ocaml-jupyter will also without any change of code.
However I don't know when the restriction will be removed. If you don't have a reason you must use 4.05, please use 4.04.

@akabe yes it installs successfully with 4.04. Thanks

@akabe Shouldn't the README for ocaml-jupyter explicitly say that v4.05+ is not supported (yet) ?

@Naereen I disagree. I think the error message of opam is not so complex and

ocaml-jupyter itself does not directly depend on functionality of 4.05. If ppx_deriving_yojson will support 4.05, ocaml-jupyter will also without any change of code.

I don't want to rewrite README depending on releasing of other packages.

OK


Set up code of conduct page

Create a page having the following text:
https://github.com/Real-Dev-Squad/How-To-Guide/tree/master/Code-of-Conduct

Closing this issue, this feature was added in Welcome-site.