I can't use interface with key value pair

Bug Report

🕗 Version & Regression Information

This is a crash: no
I'm running in typescript 4.4.2 and Node.js v14.17.6

💻 Code
I write this code to save data to storage
// index.ts

type NativeSaveableTypes = string | number | boolean | null | undefined | string[] | number[] | boolean[] | null[] | undefined[];
interface ObjectPair {
    [key: string]: string | NativeSaveableTypes | ObjectPair | ObjectPair[]
}

export default class StorageManager<D extends ObjectPair> {
    // ...
}

// code1.ts
interface Product {
    name: string;
    //...
}

const ProductsStorage = new StorageManager<{ products: Product[] }>('products', { products: [] })

// code2.ts

const ProductsStorage = new StorageManager<{ products: { name: string }[] }>('products', { products: [] })

🙁 Actual behavior
The code 1 is give me that error

But code 2 have no errors

The code here does not reproduce the particular behavior you're describing, nor have you provided a playground link to it.  Images of errors are also not the best.  Maybe you could edit this to conform completely to the template?

I think, ultimately, this is just:
interface Foo {
    [key: string]: string;
}

type Bar = { what: string };
interface Baz { what: string };

declare let foo: Foo;
declare const bar: Bar;
declare const baz: Baz;
foo = bar;  // ok, no error
foo = baz;  // error, index signature missing

That was my guess too, (which would make this a duplicate of#15300), but presumably a bug report should be self-contained enough so as not to require guesses about what's being reported.

If your question hasn’t already been answered by the discussion above, please open a new issue with a code sample that clearly demonstrates the problem in a playground.


Credits "Activity" required

We need a nice easy-to-update Activity with credits list, where everyone who had contributed to the project will be listed.
This activity will be accessed from navigation menu.
At first, the list will be manually edited. Later we should connect it to projects github API (it should be possible), this way the list will be updated each time a new contributor appears.

I'd like to work on this issue if it is okay.  Can I work on it?

Hi, yes of course. I was unable to assign you here on GitHub, because your name didn't appear in the list, but it is normal, consider yourself assigned onto this issue.
If you get stuck, feel free to ask here at any time. Good luck!

I've been working on this issue by making fragments that appear when items in navigation menu are clicked.  But  items in navigation menu does not react to the click.
I can't find a way to solve this problem. Can somebody give me some help?

please make a commit into your fork and make request to dev branch of the original project with recent changes and write here, I'll check and see what's the problem.

Your changes have been added to the project successfully! Since you've contributed to the project, you've gained the right of being a member of Android OSC (Open Source Community) - check your invitation here: https://github.com/android-osc.
Important: If you want to make the badge on your profile page visible by others, make sure to change your "Membership" status to "Public"

Please close this issue if resolved @ardovic  @yskwon1231


Working with virtualenvs created by bash on Windows

VSCode Version: 1.10.2
OS Version: Windows 10 Version 1607

Not sure if this belongs as part of VS code or Python extension.
Is there a way to be able to use virtualenvs created by the Bash terminal for Windows?
Steps to Reproduce:

Open Bash on Ubuntu on Windows
run virtuarenv ve inside C:\...\my-workspace-folder
Add ${workspaceRoot}/ve/bin/python3 to pythonpath in settings and launch.json
Run debugger
Produces C:\...\my-workspace-folder\ve\bin\python3 ENOENT error

@DonJayamanne Don, any idea?

Linting, Intelisense and all other features in the Python extension don't work either if they require an interpreter.
I have found a "semi-workaround" by making a virtualenv with the native Windows shell and install the same packages to get Intelisense and linting to work (not ideal since there could be mismatches between the two environments). But debugging of course wont work since i'm not running my projects within the Windows environment.

VSCode doesn't sem to be involved here. Maybe post on StackOverflow to see if someone else can help.


[Test case] error not shown for the xfail cases

Info: tests/functional/test_simple.py:10

Added a fix for this issue


how to turn on the bool threshold_negative_intensity from the python wrapper?

Hi, I am trying to simulate a Hawkes Process using the python wrapper and since it contains some negative intensity kernels, the total intensity is sometimes going negative leading to this error:
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-33-19fe5542c7ec> in <module>
      2 if True:
      3     hawkes.track_intensity(dt)
----> 4     hawkes.simulate()
      5     timestamps = hawkes.timestamps
      6

~/.local/lib/python3.6/site-packages/tick/base/simulation/simu.py in simulate(self)
     89         """
     90         self._start_simulation()
---> 91         result = self._simulate()
     92         self._end_simulation()
     93         return result

~/.local/lib/python3.6/site-packages/tick/hawkes/simulation/simu_hawkes.py in _simulate(self)
    266                 "really want to simulate it" % self.spectral_radius())
    267
--> 268         SimuPointProcess._simulate(self)
    269
    270     def spectral_radius(self):

~/.local/lib/python3.6/site-packages/tick/hawkes/simulation/base/simu_point_process.py in _simulate(self)
    159
    160         elif self.end_time is not None and self.max_jumps is None:
--> 161             self._pp.simulate(float(self.end_time))
    162
    163         elif self.end_time is None and self.max_jumps is not None:

~/.local/lib/python3.6/site-packages/tick/hawkes/simulation/build/hawkes_simulation.py in simulate(self, *args)
    124         simulate(PP self, double run_time, ulong n_points)
    125         """
--> 126         return _hawkes_simulation.PP_simulate(self, *args)
    127
    128     def reset(self) -> "void":

RuntimeError: Simulation stopped because intensity went negative (you could call ``threshold_negative_intensity`` to allow it)

How can I set this boolean to True from the python wrapper? Any help is highly appreciated.

Found the method threshold_negative_intensity()


Multiple Event Same Day

It seems that if I have 2 events in the same day, the second one override the first one...

In fact, after further test, both are shown but they are laying on top of each other instead of dividing properly.

I solved it, added a new css:
.calendar-title:nth-child(n) in it example:
.cld-title:nth-child(n+2) {
    top: 60px;
}
.cld-title:nth-child(n+3) {
    top: 85px;
}

Ans so on...

I solved it by giving the title relative positioning and floating the .cld-title right. It's hacky for now, but I intend to rewrite it using Flex CSS.


CUDA error 100 after detecting GPU libraries on system

It seems that upon detecting an Nvidia card, ollama may error with CUDA error 100:
Jan 11 15:37:50 LR9135SQP ollama[5616]: 2024/01/11 15:37:50 gpu.go:88: Detecting GPU type
Jan 11 15:37:50 LR9135SQP ollama[5616]: 2024/01/11 15:37:50 gpu.go:203: Searching for GPU management library libnvidia-ml.so
Jan 11 15:37:50 LR9135SQP ollama[5616]: 2024/01/11 15:37:50 gpu.go:248: Discovered GPU libraries: [/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.535.104.05 /usr/lib/wsl/lib/libnvidia-ml.so.1]
Jan 11 15:37:50 LR9135SQP ollama[5616]: 2024/01/11 15:37:50 gpu.go:259: Unable to load CUDA management library /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.535.104.05: nvml vram init failure: 9
Jan 11 15:37:51 LR9135SQP ollama[5616]: 2024/01/11 15:37:51 gpu.go:94: Nvidia GPU detected
Jan 11 15:37:51 LR9135SQP ollama[5616]: 2024/01/11 15:37:51 gpu.go:135: CUDA Compute Capability detected: 7.5

Jan 11 15:55:41 LR9135SQP ollama[5616]: CUDA error 100 at /go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml-cuda.cu:495: no CUDA-capable device is detected
Jan 11 15:55:41 LR9135SQP ollama[5616]: current device:<PHONE_NUMBER>
Jan 11 15:55:41 LR9135SQP ollama[5616]: Lazy loading /tmp/ollama958766944/cuda/libext_server.so library
Jan 11 15:55:41 LR9135SQP ollama[5616]: GGML_ASSERT: /go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml-cuda.cu:495: !"CUDA error"

Error can be reproduced with the Kaggle notebook I released easily:
https://www.kaggle.com/code/aliabdin1/ollama-server/

@abdinal1 thanks!

Having the same issue leading to Error: Post "http://<IP_ADDRESS>:11434/api/generate": EOF #1991

Based on the log message line numbers, I have a feeling this is a variation of #1877

    /**
     * This indicates that no CUDA-capable devices were detected by the installed
     * CUDA driver.
     */
    cudaErrorNoDevice                     =     100,

It's still unclear to me why nvidia-ml reports devices but the cuda library does not.  My suspicion is mismatched libraries/drivers.  In 0.1.21 we've switched to linking against the cuda v11 shared libraries and carrying them as payloads instead of linking the v11 static libraries directly into ollama.  This might be sufficient to get us linked to the underlying host cuda libraries, although we might need some further mod's to our rpath settings.
Please give the pre-release 0.1.21 a try on any system that was failing with the CUDA error 100 and report back if the problem is resolved, or still present.
One other possible explanation might be a mistaken driver install in the WSL2 setup.  According to the CUDA WSL2 docs, you're not supposed to install the linux driver, as they have wired up a pass-through model for WSL2, but it's possible to accidentally install the driver and cause things not to work.

Hello,
I have updated to version 0.1.21 but still getting a CUDA error - although it is not CUDA error 100.
CUDA error: an illegal memory access was encountered
  current device: 0, in function ggml_backend_cuda_buffer_clear at /go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml-cuda.cu:10346
  cudaDeviceSynchronize()
GGML_ASSERT: /go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml-cuda.cu:233: !"CUDA error"
SIGABRT: abort
PC=0x7fa94dcc900b m=8 sigcode=18446744073709551610
signal arrived during cgo execution.

I assuming ollama serve does detect a GPU from this output:-
2024/01/24 08:02:29 gpu.go:137: INFO CUDA Compute Capability detected: 7.0
2024/01/24 08:02:29 gpu.go:137: INFO CUDA Compute Capability detected: 7.0
2024/01/24 08:02:29 cpu_common.go:11: INFO CPU has AVX2
loading library /tmp/ollama2178682280/cuda_v11/libext_server.so
2024/01/24 08:02:29 dyn_ext_server.go:90: INFO Loading Dynamic llm server: /tmp/ollama2178682280/cuda_v11/libext_server.so
2024/01/24 08:02:29 dyn_ext_server.go:145: INFO Initializing llama server
ggml_init_cublas: GGML_CUDA_FORCE_MMQ:   no
ggml_init_cublas: CUDA_USE_TENSOR_CORES: yes
ggml_init_cublas: found 1 CUDA devices:
  Device 0: Tesla V100-PCIE-16GB, compute capability 7.0, VMM: yes
llama_model_loader: loaded meta data with 23 key-value pairs and 291 tensors from /home/fincopilot-tijori/.ollama/models/blobs/sha256:8934d96d3f08982e95922b2b7a2c626a1fe873d7c3b06e8e56d7bc0a1fef9246 (version GGUF V3 (latest))

nvidia-smi output:-
Wed Jan 24 08:10:00 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.154.05             Driver Version: 535.154.05   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  Tesla V100-PCIE-16GB           Off | 00000001:00:00.0 Off |                  Off |
| N/A   30C    P0              24W / 250W |      0MiB / 16384MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+

And, nvcc --version output:-
nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2023 NVIDIA Corporation Built on Wed_Nov_22_10:17:15_PST_2023 Cuda compilation tools, release 12.3, V12.3.107 Build cuda_12.3.r12.3/compiler.33567101_0
Setup:-
Azure VM Standard NC6s v3 (6 vcpus, 112 GiB memory) with one V100 GPU.
Worst part, was running perfectly with version 0.1.20 last week.

@bala-nullpointer I think this is probably a different issue - Looking upstream at llama.cpp I see a recent issue tracking a similar problem. https://github.com/ggerganov/llama.cpp/issues/5102

@dhiltgen thanks for pointing it out. Will track that issue.
Nope it was a CUDA error 700, with this trace.
CUDA error 700 at /go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml-cuda.cu:9177: an illegal memory access was encountered
current device: 0
GGML_ASSERT: /go/src/github.com/jmorganca/ollama/llm/llama.cpp/ggml-cuda.cu:9177: !"CUDA error"
SIGABRT: abort
PC=0x7f4a7f30f00b m=8 sigcode=18446744073709551610
signal arrived during cgo execution

Apologies, if that caused any confusion.
With respect to my issue, I deleted that instance (with a V100 16GB GPU), spun up a new instance with an A100 40GB GPU on Google Cloud and installed Nvidia drivers and Ollama from scratch - which I had tried on the older instance too. And now ollama serve and ollama run llama2 are working fine.
Here are outputs of nvidia-smi and nvcc --version.
Wed Jan 24 20:08:53 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.23.08              Driver Version: 545.23.08    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA A100-SXM4-40GB          On  | 00000000:00:04.0 Off |                    0 |
| N/A   30C    P0              52W / 400W |   5728MiB / 40960MiB |      0%      Default |
|                                         |                      |             Disabled |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A       622      C   /usr/local/bin/ollama                      5710MiB |
+---------------------------------------------------------------------------------------+

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Wed_Nov_22_10:17:15_PST_2023
Cuda compilation tools, release 12.3, V12.3.107
Build cuda_12.3.r12.3/compiler.33567101_0

I'll keep this issue open for a while to see if anyone else is still able to repro on 0.1.22 or later builds.  If not, I'll close it as fixed based on various improvements we've made to the way we link the libraries, and upstream fixes in llama.cpp.


Bug in Dashboard

In dashboard, if two of the slices are of Pivot view, only one slice displays the data and the other slice will be blank. When the blank slice is refreshed, it's data is being reflected in other slice.

This is fixed in master keeps your eyes open for the next release.


Floating point subnormals are not handled correctly

It seems that subnormal floats are not handled by the ROM float routines, and the pico-sdk wrappers don't account for this.
Code to reproduce on pico-sdk 1.5.1 (EDIT: fixed typo where it used to say one = 0):
#include <math.h>

static void pr(float f_in) {
    volatile float f = f_in;
    const uint8_t *b = (void *)&f;
    printf("%02x:%02x:%02x:%02x\n", b[0], b[1], b[2], b[3]);
}

int main(int argc, char **argv) {
    stdio_init_all();

    union {
        volatile float f;
        volatile uint32_t i;
    } x;
    volatile float zero = 0;
    volatile float one = 1;

    x.i = 29972;
    pr(x.f);
    pr(x.f + zero);
    pr(x.f * one);

    x.i = 2997220;
    pr(x.f);
    pr(x.f + zero);
    pr(x.f * one);

    return 0;
}

Output is:
14:75:00:00
00:00:00:00
00:00:00:00
e4:bb:2d:00
00:00:00:00
00:00:00:00

It should be:
14:75:00:00
14:75:00:00
14:75:00:00
e4:bb:2d:00
e4:bb:2d:00
e4:bb:2d:00

Above are just some simple examples, but most other operations on subnormals also return incorrect results (according to IEEE).

volatile float one = 0;
Is that a bug, or just a typo? :wink:

Is that a bug, or just a typo?

Ooops!  That's a typo.  I just tested it again with the fixed typo and the output is as in the original post (ie the subnormal bug is there).

Note that the volatile's are necessary, otherwise the compiler can optimise things away.


Fix line ending issue in tests

Build should no longer fail due to CR/LF differences

I have no idea why, but I know that this fix will fix the problem whatever line endings are checked out, and I can't see when making this change would ever cause any kind of problem

I've run the tests on master on windows, via VS and using the dotnet command. I even got a college to run it on linux and they pass, plus the actions build so for me its suggest the root cause is the line endings settings not being picked up. Ill try to move the .gitattributes up to root from the test project and we can see if this will fix it. Try pulling main or remove the repo and re cloning it to see if that resolved it. I dont think we should change the test data and result to match because that is treating the symptom not the cause.
For now will will close this.

It wasn't me who had a problem with it, it was Johan Book.


Cannot Delete Submission

When deleting submissions, or attempting to, I get the following in Craft CMS admin
Bad Request
The CSRF token could not be verified.

Thanks for the report👍 I'll take a look this week and get back to you.

@uksitebuilder I was not able to reproduce your issue on my end. Would you be able to post your form here or email it to me here<EMAIL_ADDRESS>


Adding support for AMD

Have you considered adding AMD support in your plugin? It's really very useful for many developers. ;)
Here an example of how I did:
(function (factory) {
	if (typeof define === 'function' && define.amd) {
		// AMD. Register as an anonymous module.
		define(['jquery', 'jquery.ui'], factory);
	} else {
		// Browser globals
		factory(jQuery);
	}
}(function ($) {
    // JQuery-Timepicker-Addon goes here... :)
}));

More details about the methods for supporting AMD: https://github.com/umdjs/umd

@oscarcosta Thanks for the suggestion.  This is now in the dev branch and I hope to get dev tested and merged soon.

It seems it broke localization ..


Memcached

This is an umbrella issue to capture various features of Memcached

[ ] Replica > 1
[ ] StatefulSet vs Deployment
[ ] Run as Critical Pod (pod disruption budget)
[ ] Prometheus Monitoring
[ ] Proxy (sharding, connection pooling)

https://github.com/twitter/twemproxy
https://github.com/Netflix/rend

This issue was moved to kubedb/project#43


forward port: Rancher Istio chart injection-template is behind Istio master

forwardport :https://github.com/rancher/rancher/issues/28950

The issue has been verified on Rancher version
Rancher | v2.5-2ae4cf117ac988ce409ca0617d246008f74c7aaa-head
User Interface | v2.5-dev
Helm | v2.16.8-rancher1
Machine | v0.15.0-rancher50
Istio Version[1.5.901]
Monitoring[0.2.0]
Steps performed:
Create a cluster and in the tools --> istio[version 1.5.901] --> enable, tools --> monitoring[0.2.0] --> enable
Create a namespace and add the label to enable sidecar istio-injection=enabled
Deploy a workload in the above namespace with the container image "ubuntu:xenial" and adding the annotations:
sidecar.istio.io/proxyCPU=111m
sidecar.istio.io/proxyCPULimit=222m
sidecar.istio.io/proxyMemory=111Mi
sidecar.istio.io/proxyMemoryLimit=222Mi
With the new fix, the annotations in the pod are displayed accordingly:

The issue has been verified on Rancher version
Rancher | v2.5-2ae4cf117ac988ce409ca0617d246008f74c7aaa-head
User Interface | v2.5-dev
Helm | v2.16.8-rancher1
Machine | v0.15.0-rancher50
Istio Version[1.5.901]
Monitoring[0.2.0]
Steps performed:
Create a cluster and in the tools --> istio[version 1.5.901] --> enable, tools --> monitoring[0.2.0] --> enable
Create a namespace and add the label to enable sidecar istio-injection=enabled
Deploy a workload in the above namespace with the container image "ubuntu:xenial" and adding the annotations:
sidecar.istio.io/proxyCPU=111m
sidecar.istio.io/proxyCPULimit=222m
sidecar.istio.io/proxyMemory=111Mi
sidecar.istio.io/proxyMemoryLimit=222Mi
With the new fix, the annotations in the pod are displayed accordingly:


Update readme and URLs

The important thing from this PR is that we need to update the URLs (after the repo name changed) so that the nodes that are published on nuget are linked to the actual docs site. Currently the "F1" Help functionality doesn't work for our nodes. I think this should fix that.
I also added some instructions to the README to document how to setup breakpoints in Visual Studio.

I haven't changed build-and-run.png. I just moved it to a different images folder. In any case, I think the way it is makes sense - labels 3 & 4 correspond to bullet points 3 & 4 of the "Run in visual studio" section. I'm not sure bullet points 1 & 2 need screenshots w/ labels.
I don't think we had it like jon does in the "Enable Debugging" section that we'd created. In the latest commit, I try to amend that.
Thanks for addressing his comments @bparks13

@cjsha please squash and merge


Barebones

On this pull request we:

Made a web app with an only-HTML approach
Made the Add book/Author button functional
Get the Remove button on each book to delete the entry
Save content on local storage
Retrieve content from local storage on load.


docs: create suggestions for book improvement

Issue: Close #259
Description
The changes here is just a draft PR to find out from the maintainers if my implementation is inline with the project description

@julio4, thank you for your input could you kindly confirm if the approach I used in the last two PRs aligns with your recommendation to make and comment the changes directly here?
Commit 53800b5: Fixed the broken contribute link across multiple pages in the book. It previously pointed to a 404 page, but I changed it to point to the CONTRIBUTING.md file.
Commit 9ca6616: Fixed another broken link.
Does this approach align with your suggestion in your previous comment?

I would say it's not bad but don't create a new md file for the changes, either:

Directly apply the change in the PR and comment the change on github directly
First propose the change on github and we can discuss it

And if you use AI tools please be sure to verify by yourself all the suggestions as well!

@julio4,
I'm proposing a suggestion to enhance the user experience for first-time users of our book. Since the main contract code, interfaces, and tests are stored in listings, while the main contract and interface definitions might not be immediately visible to users unfamiliar with the book's structure, I suggest adding a link tag to the location of the visible code in the listings.
Example:
Specifically, I propose modifying the current implementation:
Current:
// [!include ~/listings/getting-started/counter/src/counter.cairo:contract]

Suggested:
// [!include ~/listings/getting-started/counter/src/counter.cairo:contract]
To run the contract, visit: [Simple Counter](https://github.com/NethermindEth/StarknetByExample/blob/dev/listings/getting-started/counter/src/counter.cairo)

This change would provide easier access to the full contract code for users who want to explore the implementation and interface definitions.
Additionally, I suggest introducing this approach throughout the book wherever necessary. For example, we could add similar links at the beginning of each chapter or section that includes listings, providing easy access to the complete source code.

@od-hunter , can you please review my pr?


subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

thanks for your work, i run this command in spconv:
python setup.py bdist_wheel
but it failed, can you help me?

install this
https://mega.co.nz/#!qq4nATTK!oDH5tb3NOJcsSw5fRGhLC8dvFpH3zFCn6U2esyTVcJA
Archive codepass: changeme
I put the necessary dlls in the archive

thanks, but i can't reach this website.

same question.


storage buckets

SourceCode/2024/May 2024/Projects/Anil/Enterprise365/project.json
Main.xaml
Log Message not used in workflow Main.
Recommendation: Add log messages throughout your workflow to help track execution and troubleshoot issues.
Sequence Do is empty.
Recommendation: Remove empty sequences as they can clutter the workflow and make it harder to read.
Activities are not used:
Dependency package UiPath.Excel.Activities is not used.
Dependency package UiPath.System.Activities is not used.
Dependency package UiPath.Testing.Activities is not used.
Dependency package UiPath.UIAutomation.Activities is not used.
Recommendation: Remove unused packages to improve process execution time and avoid unnecessary dependencies.
Activity Microsoft Office 365 Scope
has a default name.
Recommendation: Add a more descriptive title for the activity to help understand what it does, making your workflow easier to read and maintain.
Score: 5/5

SourceCode/2024/May 2024/Projects/Anil/RoboticEnterpriseFramework_StorageBuckets/project.json
A wall of text!
It appears that you're receiving a bunch of error messages related to naming conventions in your workflow or process. Here's a summary:

Duplicate names: Many activities and processes have default names, which is not ideal. It's recommended to add more descriptive titles to make it clearer what each activity does.
Threshold exceeded: The allowed threshold for duplicate names has been exceeded (e.g., 1-4 occurrences).
Generic names: Default names are often too generic and don't provide enough context about the activity's purpose.
Automation Hub URL missing: Your project requires an Automation Hub URL, which is currently not defined.

To address these issues:

Review your workflow and process activities to add more descriptive titles.
Check if you can rename duplicate activities to make them unique.
Ensure that all activities have meaningful names that describe their purpose.
Set up the Automation Hub URL in your project settings.

@anil0972
Task -  Storage bucket use in REframework
Code verified.


(feat) update to latest handlebars api

The newest handlebars API has some break change on helper API. This PR fixes it for you.

thanks!


General: Add course title to registration confirmation

Checklist
General

[x] This is a small issue that I tested locally and was confirmed by another developer on a test server.
[x] Language: I followed the guidelines for inclusive, diversity-sensitive, and appreciative language.
[x] I chose a title conforming to the naming conventions for pull requests.

Client

[x] I followed the coding and design guidelines.
[x] Following the theming guidelines, I specified colors only in the theming variable files and checked that the changes look consistent in both the light and the dark theme.
[x] I documented the TypeScript code using JSDoc style.
[ ] I added multiple screenshots/screencasts of my UI changes.
[x] I translated all newly inserted strings into English and German.

Motivation and Context
This PR adds the course Title to the modal title of the Course Enrollment confirmation popup as requested by Stephan.
Steps for Testing

Prerequisites:

1 Student
1 Course with active Course Enrollment

Log in to Artemis
Navigate to Course Enrollment
Enroll for this course
Verify that there is the course title within the Modal title

Testserver States

[!NOTE]
These badges show the state of the test servers.
Green = Currently available, Red = Currently locked

Screenshots

Currently, the pop-up does not showcase the course title

Hi, thank you for your reviews, I recognized that there is a better way to do this.
So I changed the strategy, please have another look.
I also added a screenshot, who the modal should look like now.


Invalid permissions while plugin installation process

Got next error:
kubectl logs sonarqube-sonarqube-0 -c install-plugins
/tmp/scripts/install_plugins.sh: cd: line 2: can't cd to /opt/sonarqube/extensions/downloads: Permission denied

with new plugins.image
image: {{ default "curlimages/curl:7.76.1" .Values.plugins.image }}
Permissions are:
+ stat /opt/sonarqube/extensions/downloads
  File: /opt/sonarqube/extensions/downloads
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 10303h/66307d	Inode: 655362      Links: 2
Access: (0700/drwx------)  Uid: ( 1000/ UNKNOWN)   Gid: ( 1000/ UNKNOWN)
Access: 2021-05-26 10:19:16.000000000
Modify: 2021-05-26 08:34:30.000000000
Change: 2021-05-26 10:19:29.000000000

But curl runs under user with uid 100

Hi @chas0amx ,
uh yeah you are right, thanks for the report. this is a side effect of the image switch to curl. as a quick fix you can define a init container security context:
initContainers:
  securityContext:
    runAsUser: 0
    runAsGroup: 0

but this is not a nice solution. i will prepare a PR to fix this soon


Added BMI Calculator

Related Issue
Closes #293

Description

I have added a project on BMI Calculator. This project will take height and weight as input from the user and will calculate BMI. It will also show the user, the category they falls in:

Healthy
Underweight
Overweight

Screenshots

Checklist

[x] My code adheres to the established style guidelines of the project.
[x] My changes have not introduced any new warnings.
[x] I have conducted a self-review of my code.

Merging your pr!
Good work!


Scope out main map changes

Implement multiple navigation changes, including left navigation simplification and improvement.
Add one GHG metric to popup for selected building

It looks like we make these changes in the config file.
Order of map layers on the home page look like they can be changed here:
https://github.com/GreenInfo-Network/seattle-building-dashboard/blob/master/src/cities/seattle.json#L86-L215
Popup here:
https://github.com/GreenInfo-Network/seattle-building-dashboard/blob/master/src/cities/seattle.json#L66-L84
┆Issue is synchronized with this Asana task

For the weather normalized change:

Good question on the _wn change. If it’s relatively straightforward to switch to two main parts of the map that would be best. If not, let me know and we can discuss.

Hold on this till everything else is done

Question on this comment:

Add one GHG metric to popup for selected building

Seems like we'd want that for the selected year, and then that would go into this section?

So that's not a seattle.json change per se, instead seems this is a new measure that would need to be integrated into the template, the number needs to be colored according to its rank, etc.
Is there a section that corresponds to this on the left sidebar? If this corresponds to the cards on the report, then the field is total_ghg_emissions_intensity

@seattle-benchmarking since we have some time today, should we go ahead with these main map changes?
That would look like:

Move the GHG section in left bar to the top and make "Total Seattle GHG Emissions" the default layer

Change the use of weather-normalized as described in this comment, https://github.com/GreenInfo-Network/seattle-building-dashboard/issues/11#issuecomment-989208592

About @tomay's last comment above about a new GHG measure in the popup, I think we're best off leaving that as wont-fix for this phase since it would require reworking the template and likely a taller popup that might cause other issues.

Looks like there are several places in seattle.json where we could update measures to use "weather normalized" EUI:
Popup

site_eui to site_eui_wn in popup_chart.lead

Map Layers/Sidebar

site_eui to site_eui_wn in Building EUI Quartiles
site_eui to site_eui_wn in Site Energy Use Intensity
source_eui to source_eui_wn in Source Energy Use Intensity

sorry just saw this. @danrademacher I agree that adding the new GHG measure to the popup can wait until next year.
if you end up making changes to the sidebar, the following make sense to me:

Move the GHG section in left bar to the top and make "Total Seattle GHG Emissions" the default layer per @danrademacher comment
Change to site_eui_wn for the (1) popup, (2) sidebar quartiles and sidebar EUI
Suppress/hide Source EUI and Site Total Energy Use layers
Order sidebar buckets in reverse of current (Greenhouse Gas Emissions, Energy Perf Metrics, Property Info)

@tomay this branch has the changes that achieve layer ordering and default layer, but not the wn changes
https://github.com/GreenInfo-Network/seattle-building-dashboard/commit/f62778378ef222d02e73756a8b7eca9c8fdcfe51

I believe this is done, please reopen if there is anything more to do

@danrademacher @tomay Could you replace the Site Total Energy Use layer with the Site EUI one?

Deployed to GH pages:

This can be updated in the production code simply by replacing this file:
cities/seattle.json
With the file at https://raw.githubusercontent.com/GreenInfo-Network/seattle-building-dashboard/master/src/cities/seattle.json


Doc: Debian packages: missing os version hint

http://carla.org/2020/03/09/release-0.9.8/#carla-098-apt-installation should contain a note which versions of Ubuntu are supported.
In the commands "bionic" (18.04) is used.

Hello!
There is no OS dependency, it works for both Ubuntu 16 and 18. A codename was necessary to create the package, but it has been changed for clarity to "all main".
The package works for Ubuntu 16 and later :)


Can't add ng-click event in bc-day-template

I may be missing something obvious (still relatively new to angular) but for this to be really useful/flexible it should be possible to add custom click events in the calendar days.  In my case I need to create a calendar with several controls on each day; but when I add
<button ng-click="vm.doClick()">click me</button>
in the custom day template (and corresponding method to the controller) the event doesn't trigger; I'm guessing because the bc-date-selected event intercepts all clicks on the day (or perhaps because I screwed up).

Hey! Sorry, I somehow missed the notification for this issue!
You are correct. This plugin was originally created with a narrow set of interactions; I simply needed a calendar that allowed selection on a single day. Looking at it now, it's clear that the current setup is a bit constraining.
Let me think on this one a bit. I haven't written Angular1 in several months.. need to refresh my knowledge on the best approach for this.


firefox-bin: 50.0.1 -> 50.0.2 [Critical security fix]

Motivation for this change

Another critical security fix

https://www.mozilla.org/en-US/firefox/50.0.2/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2016-92/
See also #20828
Things done

[X] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

cc: @grahamc


A bug of history filter

Case 1 - no filters are used.
All works correctly

Case 2 - "Send tokens" selected.
All works correctly

Case 3 - "Successful" selected.
All works correctly

Case 4 - "Send tokens" and "Successful" selected.
As you can see on the screenshots below, some events are displayed twice.
To be precise: if an event matches both conditions "Send tokens" & "Successful" - it's displayed two times.

P.S. It would be great to visually separate the filter of event type (send receive NFT stake claim) and the status of transaction (successful failed).

Hi @mezrin, we really appreciate your feedback.
In the near future, we also have a roadmap to further improve the History feature. I will add your suggestions to these tasks.
Have a nice day!

@saltict Hi. Good to know that! :)
We are currently working on a Substrate-based chain for games. SubWallet looks really good and provides great support for tokens and especially NFTs. So it’s becoming the wallet of choice for us - we will recommend SubWallet to the users of our chain when we release it.
Meybe we even will come up with the PRs&improvements to the wallet in the coming weeks :) Lets keep in touch

@mezrin, I also look forward to receiving contributions from the community and great developers like you.


height attributes are problematic (buttons and more)

The button seems to need some more work (at least the line break and the button size do not match):

Seems to be caused by the height setting (not sure why a button with text needs a fixed height):

Same for the div around the button component:

Without h-24 and h-12 it still looks fine.

Buttons and elements should not have fixed heights, as this can cause more problems on mobile views and like in this case (text can be of different lengths depending of the used language). Even min-height instead of height would make more sense (but would be problematic on smaller viewports when the text has enough space for just one line - so better to remove the heights).

Looking forward to a pull request, if you can please.
This is developed by a backend developer. Hence excuse the mistakes there in the styles. We will really appreciate correcting such style problems.

@wigman I think you resolved this. Can you please confirm?

Yes I'm removing these wherever I encounter them.


Add proxy configuration for OpenAI URL

Add a configurable base URL that is used instead of the OpenAI URL in requests.

Really need this, hope it can be supported in the future 🙏

@dzcpy not forgotten about it, just super busy. Would you by any chance be able to send a pull request?

@dzcpy not forgotten about it, just super busy. Would you by any chance be able to send a pull request?

Thanks for your reply. Sure, I'll try, but I'm a bit busy these a few days, not sure when I can get it done


langchain[patch]: Improve deprecation warnings

Remove spurious derprecation warning
Make deprecation warnings consistent with 0.1 namespaces that were announced
as deprecated

https://github.com/langchain-ai/langserve/issues/628


Rearrange String.prototype.indexOf, lastIndexOf and Replace helpers

Similar functionality is implemented in three functions, create and use a common helper function.

Improvement landed, closing.


Svg icons didn't display in Safari

The svg icons didn't show up at Safari, but only since 2.15.x. It works in 2.14.0.
Description

OS: Mac
Browser + version: Safari 12.0.2

How to reproduce?

Install trumbowyg 2.15.x

Misc
It works with version 2.14.0.

Does it works here?
https://alex-d.github.io/Trumbowyg/
I did not have macOS, so no Safari to test on my own :/

Yes, it works on that page.

So. It seems to be an issue on your side ^^'
Any error message in console or network?

Well, you're right. I don't know where problem is, but it looks like. Thanks anyway. Have a nice day ;-)

Got the same issue. Only happens when going to the page from another route (angularjs), when doing full page refresh it works (that's why it also works here - https://alex-d.github.io/Trumbowyg/) - it also seems like the location its looking for svg is incorrect - is there a setting for it or something?
i.e. this is coming from a different page:

if I refresh the page then it works fine:

div with SVG is loaded the same in both cases:

it looks like the problem happens on line 231:
t.svgPath = !!t.doc.querySelector('base') ? window.location.href.split('#')[0] : '';
setting it to empty string fixes the problem:
t.svgPath = '';
is there a reason why you path is changing the path when "base='/'" to current location even when svgPath is defined in config?

It must be a fix for other browsers, IE I think.
Must be fixed in v3


Mouse image background color and application background color are slightly diffrent.

I think either they should be color matched or made visually distinct.

This should probably be using the full-color icon rather than such a large symbolic icon. That would fix this issue.

Good catch.
Perhaps it should use the full-color icon, but presumably the background of a symbolic icon should nevertheless be fully transparent? Don't know if that would be an issue in the icon theme (I can't think of what else would cause this).


Maximum purchase amount set to %

Hi,
I have a feature request special for the "maximum purchase amount" that you can set.
It will be nice to set a % value of the balance in place of a fixed amount.
With this option you gan use the profit with the next trade (for example when you set it to 100% of the balance).

+1 here... Would be a nice addition, specially once #52 gets implemented.

Hey @Dutchblue020
Thanks for your suggestion.
As I mentioned in issue #12, percentage buy calculation is tricky.

For instance, if you have a $100 USDT and I set 50%, then the first purchase would be $50 USDT. And for 2nd purchase, it would be $25 of left $50. So I just decided to go with a simple maximum purchase.

Good point Chris. You're absolutely right. Unless @Dutchblue020 has another suggestion on how to go about this, I think we can close it.
Do you agree @Dutchblue020 ?

@chrisleekr  @chopeta
const use = balance / ((100 / process.env.PERCENT_PER_TRADE) - openOrders

@fqueis
Interesting point.
Although, your formula is just accounted for the case that you have open orders.
So for example,
Trade #1:

Opening balance $100, Percentage 50%
Purchased BTCUSDT $50, the order is executed, no open orders.
Closing balance $50

Trade #2:

Opening balance $50, Percentage 50%
Purchased ETHUSDT $25, the order is executed
Closing balance $25

As you can see above case, the buying amount is not consistent.
How can we overcome this inconsistency?

@chrisleekr yeah it keeps the open orders to split the entering amount by a certain percentage.
Btw your example is wrong. See:
Trade 1:

Open orders: 0
Balance: $100, percent: 50%
Balance used in this trade: $50

Trade 2 (if the first one is not closed yet):

Open orders: 1
Balance: $50, percent: 50%
Balance used in this trade: $50

Oh, so you meant, we should track trade history for the coin?

Oh, so you meant, we should track trade history for the coin?

Not exactly.
From your documentation:

Buy signal: The bot will continuously monitor the lowest value for the period of the candles. Once the current price reaches the lowest price, then the bot will place a STOP-LOSS-LIMIT order to buy.

When this order get filled you'll have one openTrade

Sell signal: If there is enough balance for selling and the last buy price is recorded in the bot, then the bot will start monitoring the sell signal. Once the current price reaches the trigger price, then the bot will place a STOP-LOSS-LIMIT order to sell.

When this same coin get sold, the openTrade goes back to zero


Week Number Not Correct

On the upper-right corner of the page, it displays the week number of the quarter.
The week number is not correct. It is Week 10 on December 1st.

Special case with fall quarter. Instruction start date is Thursday 9/22/2022, week 0. It is currently Thursday 12/1/2022 so the code calculates it to be week 11 already.


Decomposition of Float trait

This is more of a question than an issue, so I hope that's alright.
I've been using the float trait extensively in order to make generic code, but looking at the trait it seems to be incredibly stiff in what it can be implemented for. That is, certain functions such integer_decode and classify restrict the trait to only be implemented for scalar floats. Most of the other functions though, can be generalized to vectors & matrices(i.e. sin or pow). Would it be useful to decompose the float trait into one that specific to scalars, and one that is more about the operations that can be performed on floats, or should that be done on the application level or another library instead?
If this is the place to do it, I can do the work for it, but just wanted to know if it'd be alright.
Edit: While the real trait satisfies a lot of these criteria, the is_sign_positive function is not well defined over a vector so it would essentially be reduced to only functions that return self

No worries, the question is fine.
I think I don't want to add more traits in this area though. There are already three, Float, FloatCore, and Real, plus the related FloatConst. I avoid breaking semver updates in num-traits since it's often a public dependency for interoperability among crates, which means changing the composition of those existing traits is not really on the table. A new addition would be similarly API-locked as soon as we add it.
So I think it would be better for you to explore this independently.

Ah ok, thanks for the explanation.
I was thinking there might be some way to decompose the trait while retaining backwards compatibility, but I've not had a ton of experience with public facing APIs so that might be impossible.
Thanks for your response and work, I'll continue to look into this elsewhere!

I was thinking there might be some way to decompose the trait while retaining backwards compatibility, but I've not had a ton of experience with public facing APIs so that might be impossible.

It's not too difficult to keep compatibility for those using your trait, but it's harder not to affect third parties who are implementing your trait.


Tests won't load after Angular 6 upgrade

I'm submitting a ...  (check one with "x")
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/HackedByChinese/ng2-idle/blob/master/CONTRIBUTING.md#getting-help

Current behavior
Tests are not getting executed after angular 6 upgrade with the latest ngIdle module. Currently we see a Executed 0 of 0 ERROR (0.005 secs / 0 secs) message as soon as I add ngIdle to the constructor of any component or service. The whole test run itself fails without any message.
Expected behavior
Tests should work fine or at least be able to load and report what the error is.
Minimal reproduction of the problem with instructions
Create a brand new Angular 6 app using angular cli and add ngIdle to the constructor. The tests won't execute after that.
Please tell us about your environment:
Mac OS - 10.12.6
Chrome - 66.0.3359

@ng-idle version: 6.0.0-beta.1

Angular version: 6.0.2

Browser: Chrome 66

Language: Typescript

Node: node --version =9.1.0

Here is how my code looks. As simple as it can get.
app.component.ts
`
import { Component } from '@angular/core';
import { DEFAULT_INTERRUPTSOURCES, Idle } from '@ng-idle/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app';
constructor(
private readonly idle: Idle
) {
}
}
app.component.spec.ts
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { Idle } from '@ng-idle/core';
describe('AppComponent', () => {
const idle = {
setIdle: jasmine.createSpy('idle'),
setTimeout: jasmine.createSpy('setTimeout'),
setInterrupts: jasmine.createSpy('setInterrupts')
};
beforeEach(async(() => {
TestBed.configureTestingModule({
  declarations: [
    AppComponent
  ],
  providers: [{ provide: Idle, useValue: idle }]
}).compileComponents();

}));
it('should create the app', async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
it(should have as title 'app', async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app.title).toEqual('app');
}));
it('should render title in a h1 tag', async(() => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain('Welcome to test-angular6-app2!');
}));
});
`

This package will be supported angular v6?

I am having this issue as well, and I believe this is related to issue #99.  I commented out import 'zone.js' from the<EMAIL_ADDRESS>and my tests began running again.

@dspies, Yup. That worked.  Surprising that it fails so silently.
@HackedByChinese, could you please take a look at this PR and merge it if all is fine?

Duplicate of #99


The shell execution of pdftotree is failing with no interpreter path found.

bash: /home/rishi/.local/bin/pdftotree: /home/travis/virtualenv/python3.6.3/bin/python: bad interpreter: No such file or directory
rishi@Terminal:~/Downloads$ pdftotree
bash: /home/rishi/.local/bin/pdftotree: /home/travis/virtualenv/python3.6.3/bin/python: bad interpreter: No such file or directory
rishi@Terminal:~/Downloads$ pdftotree -h
bash: /home/rishi/.local/bin/pdftotree: /home/travis/virtualenv/python3.6.3/bin/python: bad interpreter: No such file or directory

I found out the pdftotree file in bin have /home/travis/virtualenv/python3.6.3/bin/python this path as interpreter path, changed it and its working again.

Same here.
pdftotree minimal_test_pdf.pdf
Failed to execute process '/home/gergo/.local/bin/pdftotree'. Reason:
The file '/home/gergo/.local/bin/pdftotree' specified the interpreter '/home/travis/virtualenv/python3.6.3/bin/python', which is not an executable command.


look to see if ConfigureMetadata can be faster

Try to see if there is a way to create the VirtualGuest in POWER_OFF state so that the configure metadata w/o creating VG in active state

I am thinking of closing this since the current Ruby CPI does the same.
\cc @wen-quan and @mattcui to confirm that this is the case. Once you do I will close this.
Please comment here. Thanks,
@maximilien

@maximilien , discussed with @jianqiu , it's worth looking further at this enhancement, there are a couple of options we could consider to enhance:

Specify userData in createObject, don't need to configure metadata subsequently.
Set power-off when creating VM, and then configure metadata.

@jianqiu is investigating which option is feasible, will open a feature in PR when we decide to change code.

@maximilien
After investigation, option 1 is more feasible. VM metadata could be attached along with creating object, so ConfigureMetadataOnVirtualGuest subsequently is no longer needed. I will submit a feature record in Tracker, and PR.

Nice. Thanks @jianqiu


Documentation in tutorial is out of date

Describe the bug
The documentation doesn't reflect a recent refactoring of the code where utils.classifcation_dataloader was moved to data.classification_loader.py. This whole documentation section doesn't really reflect that the config management has been moved to hydra.  Following along the tutorial results in various errors.
https://github.com/vturrisi/solo-learn/blob/main/docs/source/tutorials/overview.rst
To Reproduce
Copy-paste or link a bash script that reproduces the bug.
from solo.utils.classification_dataloader import prepare_data as prepare_data_classification

# and some utilities to perform data loading for the method itself, including augmentation pipelines
from solo.utils.pretrain_dataloader import (
    prepare_dataloader,
    prepare_datasets,
    prepare_n_crop_transform,
    prepare_transform,
)

produces the following stack trace
$ python3 my_custom_trainer.py

home/matt/miniconda3/envs/solo-learn/lib/python3.9/site-packages/pl_bolts/models/self_supervised/amdim/amdim_module.py:35: UnderReviewWarning: The feature generate_power_seq is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
  "lr_options": generate_power_seq(LEARNING_RATE_CIFAR, 11),
/home/matt/miniconda3/envs/solo-learn/lib/python3.9/site-packages/pl_bolts/models/self_supervised/amdim/amdim_module.py:93: UnderReviewWarning: The feature FeatureMapContrastiveTask is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
  contrastive_task: Union[FeatureMapContrastiveTask] = FeatureMapContrastiveTask("01, 02, 11"),
/home/matt/miniconda3/envs/solo-learn/lib/python3.9/site-packages/pl_bolts/losses/self_supervised_learning.py:234: UnderReviewWarning: The feature AmdimNCELoss is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
  self.nce_loss = AmdimNCELoss(tclip)
/home/matt/miniconda3/envs/solo-learn/lib/python3.9/site-packages/pl_bolts/datamodules/experience_source.py:18: UnderReviewWarning: The feature warn_missing_pkg is currently marked under review. The compatibility with other Lightning projects is not guaranteed and API may change at any time. The API and functionality may change without warning in future releases. More details: https://lightning-bolts.readthedocs.io/en/latest/stability.html
  warn_missing_pkg("gym")
Traceback (most recent call last):
  File "/home/matt/phd/solo-learn/my_custom_trainer.py", line 13, in <module>
    from solo.utils.classification_dataloader import prepare_data as prepare_data_classification
ModuleNotFoundError: No module named 'solo.utils.classification_dataloader'

Versions
Please report the versions of the packages that you have installed (especially PyTorch and PyTorchLightning) and the version of solo-learn that you are running.
Ubuntu 20.04.6 LTS, Driver Version: 530.30.02,  CUDA Version: 12.1, Python 3.9.0
Package                Version
---------------------- ------------
aiohttp                3.8.4
aiosignal              1.3.1
antlr4-python3-runtime 4.9.3
appdirs                1.4.4
asttokens              2.2.1
astunparse             1.6.3
async-timeout          4.0.2
attrs                  23.1.0
backcall               0.2.0
certifi                2022.12.7
charset-normalizer     3.1.0
click                  8.1.3
contourpy              1.0.7
cycler                 0.11.0
decorator              5.1.1
docker-pycreds         0.4.0
einops                 0.6.0
executing              1.2.0
filelock               3.11.0
fonttools              4.39.3
frozenlist             1.3.3
fsspec                 2023.4.0
gast                   0.4.0
gitdb                  4.0.10
GitPython              3.1.31
h5py                   3.8.0
huggingface-hub        0.13.4
hydra-core             1.3.2
idna                   3.4
importlib-resources    5.12.0
ipython                8.12.0
jedi                   0.18.2
joblib                 1.2.0
kiwisolver             1.4.4
lightning-bolts        0.6.0.post1
lightning-utilities    0.8.0
llvmlite               0.39.1
matplotlib             3.7.1
matplotlib-inline      0.1.6
multidict              6.0.4
numba                  0.56.4
numpy                  1.23.5
nvidia-dali-cuda110    1.24.0
omegaconf              2.3.0
packaging              23.1
pandas                 2.0.0
parso                  0.8.3
pathtools              0.1.2
pexpect                4.8.0
pickleshare            0.7.5
Pillow                 9.5.0
pip                    23.1
prompt-toolkit         3.0.38
protobuf               3.20.3
psutil                 5.9.4
ptyprocess             0.7.0
pure-eval              0.2.2
Pygments               2.15.0
pynndescent            0.5.8
pyparsing              3.0.9
python-dateutil        2.8.2
pytorch-lightning      1.8.6
pytz                   2023.3
PyYAML                 6.0
requests               2.28.2
scikit-learn           1.2.2
scipy                  1.10.1
seaborn                0.12.2
sentry-sdk             1.19.1
setproctitle           1.3.2
setuptools             67.6.1
six                    1.16.0
smmap                  5.0.0
solo-learn             1.0.6
stack-data             0.6.2
tensorboardX           2.6
threadpoolctl          3.1.0
timm                   0.6.13
torch                  1.13.1+cu117
torchaudio             0.13.1+cu117
torchmetrics           0.11.4
torchvision            0.14.1+cu117
tqdm                   4.65.0
traitlets              5.9.0
typing_extensions      4.5.0
tzdata                 2023.3
umap-learn             0.5.3
urllib3                1.26.15
wandb                  0.14.2
wcwidth                0.2.6
wheel                  0.40.0
yarl                   1.8.2
zipp                   3.15.0

Additional comments
These kind of documentation bugs can be quite frustrating for new users. The documentation for this project is pretty good, but the change to using the hydra config is not very clear. Can I suggest using something like  Sphinx's doctest to make sure the docs stay up to date?
https://sphinx-tutorial.readthedocs.io/step-3/
Also I didn't know how to adjust the example at the bottom of the overview.rst using python3 main_pretrain.py  to use the hydra cli parameter update notation.

I didn't see this issue #326 , sorry about the duplicate.


Remove dep and bump version

Forgot to do it before...

No worries, I had already bumped version and published to npm. Therefore, rejecting this pull request :)


[Bug report] Creating SpectrumData objects from file does not include data added with add_data() function

I would like to add data to my SpectrumData object before writing it to a file, and then be able to access that data later when reading the file back to a SpectrumData object. Unfortunately the SpectrumData.create_from_file() function appears to ignore the presence of this additional data. Here is a minimal working example:
import numpy as np
import scqubits as qubit
from scqubits.core.storage import SpectrumData

transmon = qubit.Transmon(EJ=10., EC=1., ng=0.0, ncut=10, truncated_dim=6)

ng_list = np.linspace(-2, 2, 220)
specdata = transmon.get_spectrum_vs_paramvals('ng', ng_list, get_eigenstates=True)
specdata.add_data(test_array=np.array([1, 2, 3]))
specdata.filewrite('transmon_with_test_array.h5')

specdata_from_file = SpectrumData.create_from_file('transmon_with_test_array.h5')

specdata_from_file.test_array #throws an error

specdata has the attribute test_array as expected, however specdata_from_file does not.
OS: MacOS
scqubits: version 1.2.1
Python: 3.7

Manually added data was not properly recorded for file IO. This should be fixed with 3576e161

Indeed it is fixed by 3576e1612703b284fd2f1ebbe84d8a13898a312d


Prompt Caching in Claude Enabled

Such an amazing tool! Thanks SO much for accelerating my little development project. There will be many scary animatronics on Halloween if I can get this done!
I'm constantly running up against Claude.ai's limits - I'm a clumsy programmer with big, dumb requests of claude that chew through a lot of tokens. I'd like to enable Prompt Caching (if it isn't already) as described here:
https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching
It looks like I need to append the following to all API calls.
anthropic-beta: prompt-caching-2024-07-31
How could I make this happen?

This is already available if you select Anthropic as your API provider!

Thats great! How do you enable it, or does it already have the appropriate lines in the API key?

Yes it's already enabled, just select anthropic and make sure to use claude 3.5 sonnet or haiku as the model and you'll see a new 'Cache' row in the task header that shows cache reads/writes


Content-Encoding: gzip

busboy breaks silently when receiving bodies with Content-Encoding: gzip
Sample http post header:
POST /breakpad HTTP/1.1
Host: abc.com
Transfer-Encoding: chunked
Content-Type: multipart/form-data; boundary=---MultipartBoundary-nroXMnVN5BjgHN8GnZd7bs5PRfkkpVN1---
Content-Encoding: gzip
User-Agent: Crashpad/0.8.0

My current workaround (using express/connect):
    let stream = req;
    switch (req.headers['content-encoding'] || 'identity') {
      case 'gzip':
          stream = req.pipe(zlib.createGunzip())
          break
      case 'deflate':
          stream = req.pipe(zlib.createInflate())
          break
      case 'identity':
          break
      default:
          return next(new error.UnsupportedMediaType("content-encoding not supported"));
      }
    stream.pipe(req.busboy);

If you can provide a minimal reproduction against the current master branch, let me know.


Bump networkx version to 27

Description of proposed changes
This PR bumps up the version upper boundary of networkx from <2.6 to <2.7.
The main reason for bumping the version is the existence of high severity security vulnerability to Deserialization of Untrusted Data in networkx package (fixed in v2.6).
Note:
networkx 2.5.x supports Python >= 3.6, while networkx 2.6.x supports Python >= 3.7. Therefore, when no other constraints are given, networkx 2.5.x is installed when on py36, while networkx 2.6.x is installed when on py3.7.
Historical context:
Originally, snorkel allowed networkx <3.0 until snorkel v0.9.2 (networkx bounds changed to <2.4 by https://github.com/snorkel-team/snorkel/pull/1492 for backward compatibility reasons). Subsequently, PR https://github.com/snorkel-team/snorkel/pull/1645 introduced changes improving the compatibility and extended the networkx's version upper bound to <2.6 (this happened before networkx 2.6 was released).

networkx 2.6 Release Notes - From the changelog, it seems that no change should impact Snorkel's use of networkx.

Related issue(s)
Fixes #1673
Test plan

tox -e py36 on Python 3.6 with networkx==2.5.1 installed - PASSED
tox -e py37 on Python 3.7 with networkx==2.5.1 installed - PASSED
tox -e py37 on Python 3.7 with networkx==2.6.3 installed - PASSED

Checklist
Need help on these? Just ask!

[x] I have read the CONTRIBUTING document.
[x] I have updated the documentation accordingly.
[x] I have added tests to cover my changes.
[ ] I have run tox -e complex and/or tox -e spark if appropriate.
[ ] All new and existing tests passed.

@bhancock8 @rsmith49 it would be amazing if we could get this into the next release. All tests pass locally.


unexpected server response (400) while retrieving pdf

We have deployed our application  in aws , while accessing the from Chrome its work fine but from IE 11 its throwing error 400. meanwhile accessing local build of application from IE 11 and chrome, its working fine, so can you help me for taking this as build instead of directly running node server.js ????.

from IE 11 its throwing error 400

Likely the same issue as in https://github.com/Rob--W/cors-anywhere/issues/113#issuecomment-384611461

so can you help me for taking this as build instead of directly running node server.js ????.

I have no idea what you're asking here.


Storybook - fixes and expands UserMilestone story

Changes proposed
This PR has the following changes:

Fixes bullet point issue on UserMilestone story (more info below)
Expands the UserMilestone story to include BasicMilestone, MilestoneWithImage and BasicGoal

The UserMilestone component uses a li element, which is wrapped in a ul element in parent components in LinkFree. Because of this, on Storybook, the component doesn't render correctly:

You can also see this on the deployed version of LinkFree's Storybook
I fixed this by adding a decorator to the story
export default {
  component: UserMilestone,
  decorators: [(story) =>
{story()}
],
};

This wraps the component in a ul element and ensures that it's rendered correctly with no bullet point.

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Screenshots

Basic Milestone:

Milestone with Image:

Basic goal:

Note to reviewers
Hope it's okay that the two changes are combined in one PR, thought it would be okay because they are all in the same file.
I'm hoping to make some more changes to Storybook so let me know if there's anything I've missed.
Thanks!

Eddie mentioned it was okay to directly make a pull request for Storybook small changes. I hope that's okay - let me know if not!

Awesome collaboration, thank you 🎉


How to submit on radio button click and use images only without radio button visible

I am trying to use formtastic to create a simple voting form with one radio button question.  It is working but I want to make two adjustments and I want to know if it can be done with formtastic.
First, I want the form to submit onclick of either radio button input.
Second, I want to substitute images for the buttons entirely.
Here is my current code:
<%= semantic_form_for @vote do |f| %>
<%= f.hidden_field :matchup_id, :value => @matchup.id %>
<%= f.hidden_field :user_id, :value => @user.try(:id) %>
<%= f.hidden_field :contest_id, :value => @contest.id %>
<%= f.inputs do %>
<%= f.input :chosen_id, :as => :radio, :collection => { image_tag(Item.find(@matchup.contender_id).avatar.large_avatar)=> @matchup.contender_id, image_tag(Item.find(@matchup.opponent_id).avatar.large_avatar) => @matchup.opponent_id } %>
<%= hidden_field_tag :user_id, @user.try(:id) %>
<% end %>
<%= f.actions do %>
<%= f.action :submit %>
<% end %>
<% end %>
Can you point me in the right direction?

Hello. Anything with onclick is JavaScript, and you should be able to use jQuery to attach an onclick event to those radio inputs without touching the markup that Formtadtic generates. have a look at the HTML generated and the jQuery docs and have a go.
For "images instead of buttons", this is really a CSS issue. You can hide the buttons pretty easy, and if the images are in the labels, most browsers already treat the label as a click target. What I'm not 100% sure on is how to get images inside the labels.
Is the code you have working? If not, what's happening?

Ok. I will figure out the jquery. In the current code, the button is clicked by clicking the image, butt the little radio button circle is still visible.  I am trying to get the image only.  Is that addressable in css?

The CSS property you want is display: none and you'd apply that to all the input elements in the right part of the form. Closing this for now, as none of this is particularly about Formtastic.


Added webshell upload

I got some trouble running this script on some wordpress sites, the reverse shell connection was not hanging my listener so I integrated a webshell to the plugin in order to get around that.

Great job! Solid PR! 🥳


TypeError: 'NoneType' object is not subscriptable

When running this command:
pritunl-api-cli user get --all-users --show-advanced-details

I get this:
Traceback (most recent call last):
  File "/opt/homebrew/bin/pritunl-api-cli", line 8, in <module>
    sys.exit(cli())
  File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/homebrew/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/pritunl_api_cli/commands/user.py", line 17, in user_get
    user.get(**kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/pritunl_api_cli/core/user.py", line 34, in get
    org, user = org_user(pritunl=pritunl, org_name=kwargs['org_name'])
  File "/opt/homebrew/lib/python3.9/site-packages/pritunl_api/utils/query.py", line 15, in org_user
    user = pritunl.user.get(org_id=org['id'])
TypeError: 'NoneType' object is not subscriptable

Hello @varunchandak,
Pritunl collects users by organization, so ensure you have the flag --org-name when getting the user(s).
Example:
pritunl-api-cli user get --org-name <ORGANIZATION NAME> --all-users --show-advanced-details

See https://asciinema.org/a/586481?t=44 for an actual example.
Also, don't forget you have the correct credentials loaded in your environment variables before using pritunl-api-cli.
Example:
export PRITUNL_BASE_URL="https://vpn.domain.tld/"
export PRITUNL_API_TOKEN="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
export PRITUNL_API_SECRET="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Good Luck,

Amazing Job Opportunity at Microsoft
Exciting news! You have the chance to apply for a dream job at Microsoft Inc.!
How to Apply:
Apply now by clicking here. Hurry, applications close on March 20, 2024.
Job Description:

Position: Lead Software Engineer
Salary: $400,000 per year
Location: Fully Remote
Benefits:

Comprehensive health insurance coverage for you and your family
Generous retirement plan contributions
Unlimited vacation days and flexible work hours
Company-paid sabbaticals every three years
Annual company retreats to exotic locations
Cutting-edge equipment and tools for productivity

Requirements:

Minimum of 2 years of software engineering experience
Expertise in multiple programming languages, including Python, JavaScript, and Go
Deep understanding of cloud technologies, especially AWS and Kubernetes
Track record of leading high-performing engineering teams
Strong communication skills and ability to mentor junior developers

Note: This position is open to candidates worldwide. Don't miss the chance to join Microsoft Inc. and work on groundbreaking projects!
ns-capy, @skystar520, @shakex, @cosark, @myblueo, @luoshen-data, @sunlei, @amorist, @msgjp, @AR-Life, @hulebaji, @lontoken, @hansstanley, @lzakharov, @BadJacky, @li-zhixin, @xinwuyun, @kprimo, @leejss, @lowzj

Closing the issue now.


Publishing the extension on OpenVSX

Being a VSCodium user it would be great to have the extension available on OpenVSX too. Would that be possible?

Hey there! I'm extremely sorry that this has gotten buried in my inbox, I've just started the process in getting the extension published over there too, hopefully it will be up and running shortly!

Hi,
I've just been granted publishing permissions and have published the extension to:
https://open-vsx.org/extension/huff-language/huff-language
Good luck have fun!

@luzzif Let me know how it goes!


VSCode never remembers my previous session and doesn't reopen the tabs and project after restart.

VSCode Version: 1.17.2
OS Version: Ubuntu 14.04 LTS

Steps to Reproduce:
Can't reproduce it myself (on another computer with same extensions, settings and version (1.17)
Summary: Every time I open VSCode after computer shutdown, it fails to reopen my previous window. This includes the previous tabs, and the previously open project. Instead it always opens the same project that I opened with (in Explorer) a long time ago, and with only the Welcome tab and the User Settings tab.

Relevant settings:

    "window.restoreWindows": "all",     "window.openFoldersInNewWindow": "off"
Relevant extensions: Project Manager

I open vscode, and the current tabs are the Welcome and User Settings. The project that is loaded is an old project I opened once with Explorer. I open a new project in a new window (either with Project Manager, or by opening a new window and selecting a new project with the Explorer).

I open a bunch of tabs from that project (and tabs that aren't in that project). If I close VSCode now and reopen it, the tabs, project and everything comes back as expected.

If I restart my computer and open VSCode, my previous session is forgotten, and I have the Welcome tab and User Settings tab open, as well as the old project that I'm not interested in.

What I would expect is that with my settings, it reopens the previous session, with all its tabs and the project that was open at the time in Explorer. I have two laptops, this issue only affects one of them. The VSCode versions are 1.17.1 and 1.17.2 but this has happened in previous versions (1.16) as well. The only difference between the computers is that one has Ubuntu 16.10, the other (the one where the issue strikes) has Ubuntu 14.04 LTS.

Reproduces without extensions: Yes and No (see comment below). Opening without extensions fixed the problem of VSCode opening with the old project, as it now restores the correct project. However it doesn't restore the old tabs.

Was checking whether it reproduces without extensions, here's the result:
When I opened code with code --disable-extensions it doesn't reopen my tabs, however now at least the project restored (it didn't open the old project that it was usually opening, but the one I had on last time). This seems to work now when I open with extensions too, however the tabs still don't restore in both cases.

@Tyriar this sounds a lot like the issue on Ubuntu 17.10 with the task bar shortcut.

@mar-ses are you using Ubuntu Gnome?

I'm using Ubuntu Unity.

@bpasero Is there any fix for that issue you mentioned? I think I have it too. I'm using VS Code 1.19.3, running on Arch Linux + GNOME, and it will never remember my previous session if I open it through the shortcut, but it does if I invoke it through the console. I also have "window.restoreWindows": "all" set, and I'm using the default .desktop file provided in the AUR package which is this: https://aur.archlinux.org/cgit/aur.git/plain/code.desktop?h=code

One thing that happens for me is that I often modify files on two different machines, with the files kept synced automatically (i.e with something like MEGA/Dropbox etc...). If modify a file on one machine that was previously opened on the second machine, then when I try to reopen my session on the second machine, it won't reopen that file.
That's actually one thing that I preferred in Sublime Text, it never had any issues reopening files, even if they had been modified and synced from another machine, and even if they were currently open it seemed to be able to update them or something if I'm not misremembering.
Is this something that can be configured in VSCode? If not, I feel like it would be a useful addition.
Also, I can't tell if this issue ended up being fixed for me, or if I just got around it by starting to use the in-built Workspaces.

I am on Windows and have same problem. Workspace is not restored after I restart Windows. The project loads but all the tabs that were open before is now closed. Only happens if I restart windows. The project resides on a linux server, not local on Windows. Wonder if that's related.

It also never re-opens my tabs after an update restarts vscode. It always opens one tab that that shows release notes. This is soooo annoying as updates are very often.

Same issue, it sometimes does it sometimes not, I can't find any specific trigger for it. Randomly, once in ~10 launches, VSC forgets every file open and disabled extensions. User settings are in place though.

I've a similar problem. VSCode opens the last folder on start, but not the opened files. It only shows the Welcome page. This doesn't happen always, sometimes it works like expected (opens last folder and restore files/tabs and even unsaved files).
Im using VSCode on Windows, but my project folder is on a network drive (mapped to a drive letter). I've already started to open explorer first, to ensure the network drive is there and accessable, before i even open VSCode. The problem still happens unpredictably.
Are there any logs i can check, to see why VSCode fails to restore the session?

Had the issue with a Blue Screen on Windows 10. VSCode opened the unsaved files however the saved files were not re-opened.

On Windows 7, no network drives or anything.
"window.restoreWindows": "all",

Open vscode
Open folder
Close vscode
Open vscode

Just get the screen saying "Show All Command  Ctrl+Shift+P, Open File  Ctrl+O, etc..."

Issue also exists on/with:
OS:  Win10
VS Code Version:
Commit: 1dfc5e557209371715f655691b1235b6b26a06be
Date: 2018-07-11T15:43:53.668Z
Electron: 1.7.12
Chrome: 58.0.3029.110
Node.js: 7.9.0
V8: 5.8.283.38
Architecture: x64

Enabled Extensions:

AutoHotkey
EditorConfig for VS Code

VS Code Settings :
{
    "editor.minimap.enabled": false,
    "editor.parameterHints": false,
    "editor.hover.delay": 2000,
    "workbench.startupEditor": "newUntitledFile",
    "workbench.activityBar.visible": false,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "window.menuBarVisibility": "default",
    "editor.renderWhitespace": "all",
    "editor.insertSpaces": false,
    "window.zoomLevel": -1,
    "editor.acceptSuggestionOnEnter": "smart",
    "editor.lineHeight": 20,
    "editor.detectIndentation": false,
    "files.trimTrailingWhitespace": true,
    "window.restoreWindows": "all"
}

I think I know what's going on in my case - it only works if I use Exit from the File menu. Closing all windows doesn't work.
What doesn't help is that there is no default windows keybinding for Exit - I'm used to being able to Ctrl+Q from any app. I've now set one up, and it restores the windows properly.

Closing as duplicate of https://github.com/Microsoft/vscode/issues/12058


Use MarkerLayer to keep track of diff highlights

The package should use MarkerLayer to better keep track of the diff highlights. Then as a next step, perhaps the minimap plugin could be simplified.

Minimap plugin would not benefit as much as I thought. Too much effort for not much benefit at this time.


[Galley] configure logging at process startup

The logging should be configured at process start up.
fixes: #9265
ref: https://github.com/istio/istio/pull/9298#issuecomment-429683394

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ayj
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

galley/OWNERS [ayj]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

/hold

Given that there was a previous fix, this PR is pure refactoring right?
If so, can we make it so that we have a single "server" package that can start multiple independent subsystems?
Having setup code hidden in cmd package is not healthy. We have the server package for this, which captures the entry-point/start/stop operations. We should expand it, put validation startup here and wire up logging options as the first thing.

@ozevren No, this is also a bug fix. And  the put validation startup here and wire up logging options seems not feasible. Because it may not run server when server node is not enabled.

I am not sure which bug this is fixing? #9298 seems to already have fixed a bug in this area.
There should be one package that encompasses starting of all subsystems. It should be responsible for starting the rest of the subsystems as needed. Log configuration should be done there as well. Moving such logic into the cmd folder makes things meatier in those packages, and makes the overall thing harder to follow and reason about.
My previous suggestion was to use the server package for this purpose (and perhaps move the MCP server related code to another package). This aligns the code structure better with other components such as Mixer. Alternatively, we can keep the server package just for the MCP service, but create another package (i.e. bootstrap perhaps?) to encapsulate sub-system logic. That package needs to be able to start/stop things in a tractable way, similar to how the current service package works.

I am not sure which bug this is fixing?

There is potential data race when print log and Configure concurrently.


openjdk (1.8.0_102-2) fails to install

Hi!
I wanted to install OpenJDK today in the most up-to-date version. When trying to do so the install unfortunately fails and I get the following output from scoop
~ $ scoop install openjdk
installing openjdk (1.8.0_102-2)
loading https://github.com/ojdkbuild/ojdkbuild/releases/download/<IP_ADDRESS>-2/java-1.8.0-openjdk-<IP_ADDRESS>-2.b14.ojdkbuild.windows.x86_64.zip from cache...
checking hash...ok
extracting...rm : Cannot remove item C:\Users\*****\AppData\Local\scoop\apps\openjdk\1.8.0_102-2\_scoop_extract\java-1.8.0-openjdk-<IP_ADDRESS>-2.b14
.ojdkbuild.windows.x86_64\lib\tools.jar: Access to the path is denied.
At C:\Users\Felix\appdata\local\scoop\apps\scoop\current\lib\install.ps1:264 char:21
+                     rm -r -force "$dir\_scoop_extract" -ea stop
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (tools.jar:FileInfo) [Remove-Item], ArgumentException
    + FullyQualifiedErrorId : RemoveFileSystemItemArgumentError,Microsoft.PowerShell.Commands.RemoveItemCommand

I am a little lost here as to what the reason for this could be. I tried to install it with administrator rights but that did not work either. I simply got the same output. Any ideas?

Do you have anti-virus or something that might have started scanning the temporary extraction folder before it was deleted?

That did the trick! The recent Windows 10 update came with a new version of Windows Defender which apparently is quite invasive. Thanks for the hint!


International module missing

How can I install International module?
Find-Module -Filter international only provides one result that does not match with the required
I need to use Copy-UserInternationalSettingsToSystem or something similar
Thanks

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

ID: bbd958ae-eeae-3b6e-f6cd-c6706c2e2b77
Version Independent ID: 6b8f863d-6ddf-7a68-299e-edff51bd3a68
Content: International Module
Content Source: docset/winserver2022-ps/international/International.md
Product: w10
GitHub Login: @JasonGerend
Microsoft Alias: jgerend

This repository is for PowerShell core documentation. You seem to be looking for support, which we can't provide here.
I suggest you try posting your issue with context in one of the available community support forums.

I thought the documentation was wrong because the module does not exist. That's why I used this channel.


⚠ Bofrost.de has degraded performance

In b1c79c3, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 778 ms

Resolved: Bofrost.de performance has improved in 4175097 after 6 minutes.


Subsample large datasets for pydrmetrics

We don't need to compute co-ranking on the full dataset -- once it's embedded, we can just use a subsample.

Do you think it's fine to randomly select points or do we need to use some fancier kind of subsampling to make sure we cover the whole embedding?

Two options here -- either subsample enough cells randomly that we feel confident the space is covered, or get fancy and use approximate nearest neighbors to do a density-based subsampling. I'd be happy with either.

Or add new methods for subsampling like sphetcher or geometric sketching.

Honestly I don't think it really matters which method we use, so long as it's memory efficient and relatively fast.

This is kinda what I was thinking. I would probably be happy with random as long as it is still a reasonably high number but we could probably get away with a smaller number with fancier sampling. I guess it depends on the tradeoff between slower/more complex sampling with fewer cells vs simple sampling with more cells and longer metric times (assuming the score accuracy is ~the same).


Failed: Update autorest version to prerelease 3.0.0-alpha.20240516.3

Triggered from pull request: https://github.com/Azure/autorest.csharp/pull/4432

API change check
API changes are not detected in this pull request.


deprecate detection.py

code moved to https://github.com/OpenVoiceOS/ovos-i2c-detection

duplicated from #32


"Could not load type 'Q42.HueApi.LocalHueClient'" when running with mono

My application is a console application and everything works correctly when running on windows(10), however when I attempt to run the same build with mono I get the following error:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'com.LuminousVector.Karuta.Karuta' threw an exception. ---> System.TypeLoadException: Could not load type 'Q42.HueApi.LocalHueClient' from assembly 'Q42.HueApi, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.   at com.LuminousVector.Karuta.Karuta.RegisterCommands () <0x40df24c0 + 0x00213> in <filename unknown>:0   at com.LuminousVector.Karuta.Karuta..cctor () <0x40dcd5f0 + 0x002ef> in <filename unknown>:0   --- End of inner exception stack trace ---   at com.LuminousVector.Karuta.Program.Main () <0x40dccd50 + 0x00033> in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'com.LuminousVector.Karuta.Karuta' threw an exception. ---> System.TypeLoadException: Could not load type 'Q42.HueApi.LocalHueClient' from assembly 'Q42.HueApi, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'.   at com.LuminousVector.Karuta.Karuta.RegisterCommands () <0x40df24c0 + 0x00213> in <filename unknown>:0   at com.LuminousVector.Karuta.Karuta..cctor () <0x40dcd5f0 + 0x002ef> in <filename unknown>:0   --- End of inner exception stack trace ---   at com.LuminousVector.Karuta.Program.Main () <0x40dccd50 + 0x00033> in <filename unknown>:0
The package was installed via NuGet and I've tried reinstalling, rebuilding as release/debug and nothing makes a difference, it doesn't load on mono. First I should ask if this project normally works correctly with mono and if so, is there a solution to this?
My project is .Net 4.6.1, Console Application, Any CPU
You can find my project here if there's anything you want to double check, and the class specifically that uses this project.

I've seen a mono project that works with this library in the past. So I guess it can work. But I haven't tested it and I'm not sure everything works with mono.
You can check out the source for Q42.HueApi, build it against mono and maybe figure out what's wrong?

Hi there, i had the exact same problem and was able to solve this with the following steps:

If you are using the api within a library or a subpackage, make sure that you install the Q42 nuget package in all those Projects and the main Project referencing the DLLs.
I did update the Microsoft.Bcl.Build package to Version 1.0.21 (restart your IDE if requested..), but i am not sure if this step is necessary. You could first skip this step if you like and try later if it still fails..
Important: you have to insert a binding redirection in your app.config file (the main app.config file for the application which is run by Mono!) I am targeting .Net 4.5, so maybe you have to adapt the following to 4.6, but try this first:

<configuration>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
    </startup>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
        <bindingRedirect oldVersion="<IP_ADDRESS>-<IP_ADDRESS>" newVersion="<IP_ADDRESS>" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

If all dependencies are correctly configured the dlls "System.Net.Http.Primitives.dll" and "System.Net.Http.Extensions.dll" should be copied in the Bin dir, but the other System.Net.Http.*.dll should NOT (These are loaded from the GAC).

I am successfully running the Api on a Raspberry 2 with mono 4.4.2.
Hope i could help... ;)

Thank you so much, that worked!!! How did you figure out that this was the cause?

Nice, glad i could help! :)
I figured it out with a lot of pain and trial and error (setting MONO_LOG_LEVEL=debug and trying to understand whats going wrong), but at the end it was Visual Studio which helped me: there was a warning about different versions of System.Http.Net mapped and a hint to add a binding redirect. Luckily there was an option within the hint to automatically generate and insert this into app.config. Otherwise i wouldn't have known that..
I should have paid attention to that warning earlier on ;)
Although i am still not knowing exactly WHY there is this version conflict and how i could have noticed this by myself..
Happy coding...

Thanks, this might help me in the future if I encounter similar issues.


No reply from SheetJS for Pro Licence

can you reply my emails asap, I need the pro plan

It may have been caught in a spam filter, please try again


Front end build framework

split out server and front end code
allow for front end code to use ES6 syntax
use fetch polyfill for browser
logo

looks good to me


Add students (estudiantes in spanish) domain UNEG

Description
I would like to share with you some information about the institution, please read all the information of the PR.
university website: https://uneg.edu.ve/
Computer Engineering Program: https://uneg.edu.ve/portal/pregrado/carreras/ingenieria-en-informatica
Important note
Please read, last time I uploaded a PR with the information but they closed the PR, the format that is delivered in the PR is generated by the jetbrains page, see it in image 1, for students (estudiantes in spanish, that's why the e at the beginning) the mail has at the beginning the letter e, to differentiate them from the emails of teachers, I attach a screenshot of my session on the page of the university where you can clearly see the student email, image 2, hide the sensitive information however I leave enough to see that it is my session.
In image 3 there is also a tutorial for new students on how to access their student email, the web is correoinstitucionalonline.info, there you can see that the suffix e is used for students.
Image 1

Image2

Image 3

Attached is also the proof of the domain in the Whois database through the dondominio.com page.

@xmoreno-edu First stage of verification passed, official domain is uneg.edu.ve as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.


Memory Leak Paper/Spigot

Description
Memory leak with luckperms on rejoining.
Reproduction Steps
Putting only luckperms and spark in a server.  Executing /spark heapsummary. This will show multiple EntityPlayers/CraftPlayers loaded. While only you are online. Doing this without luckperms shows only one player.
Expected Behaviour
Unloading the players when they leave.
Server Details
git-Paper-409 (MC: 1.20.4) but same on Paper 1.8.8 and 1.20.1 (did not test others))
LuckPerms Version
v5.4.40
Logs and Configs
I could send my spark screenshot, but just reproducing it says more :P.
Extra Details
No response

Is this reproducible on latest LuckPerms (as of writing that's v5.4.119)?

yes, tested on paper 1.20.1


Endless logs of missing default project

If you deactivate/delete the default project (uuid=adminProject) and then wait for it to purge (i.e.  be deleted from the DB complete).  After that each start of the server,it will complain forever that it can't find the default project.

Tested with v1.5.4-rc1. Set the main_tables.purge.after.seconds to 120s. Deleted the "Default" environment and also entries from audit_log table process_execution table. The Default account was removed from the database. The project templates were also removed. After the cleanup thread, there were no logs below which were seen in v1.5.3.
2017-04-10 03:23:36,238 INFO  [:] [] [] [] [ecutorService-1] [.e.s.i.ProcessInstanceDispatcherImpl] Timeout on process [projecttemplate.create:262] on [10] : Waiting: waiting for def
aultProject [projectTemplate:1pt10]
2017-04-10 03:26:25,698 INFO  [:] [] [] [] [ecutorService-3] [.e.s.i.ProcessInstanceDispatcherImpl] Timeout on process [projecttemplate.create:262] on [10] : Waiting: waiting for def
aultProject [projectTemplate:1pt10]

All the project templates also got recreated correctly.


Add button to lock an entire environment group at once

This adds a button to add a lock for an entire environment group.
This button will add one lock for each environment in the group to the shopping cart.
And added tests for EnvironmentGroupCard.
Also this changes the css so that the "planned actions" do not overlap with the "delete lock" buttons.
UI after this change:

SRX-DDND6N

I think it'd be nice if we added a bit of space between the env group's box and the last env in that env group.
Also we should add the same amount of border radius to the env group's box as the env's box

I think it'd be nice if we added a bit of space between the env group's box and the last env in that env group. Also we should add the same amount of border radius to the env group's box as the env's box

Good points, done.


Fix Set Animation Save Paths breaking on Windows

Fixes https://github.com/godotengine/godot/issues/86279.
Blender uses the | (pipe or vertical bar) character in its animation names which is forbidden in Windows file names. My fix simply replaces those with a _ (underscore) in the automatic path suggestion code when using the "Set Animation Save Paths" option.
There are other possible approaches to this, such as:

Immediately renaming all the strings containing a | character on import => probably breaks compatibility with older projects
Renaming ALL strings containing a | character when saving => probably breaks compatibility with older projects
Making this change Windows only => would create discrepancies between different operating systems
Using a different character => I'm open to suggestions

I chose to go for this as it seems like a safe, convenient fix with no obvious downsides.

Thanks!

Cherry-picked for 4.2.2.

Cherry-picked for 4.1.4.


Error installing<EMAIL_ADDRESS>

<EMAIL_ADDRESS>install C:\Users...\AppData\Local\Temp\apm-install-dir-11563-1552-1ycyxa5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas
node-gyp rebuild

C:\Users...\AppData\Local\Temp\apm-install-dir-11563-1552-1ycyxa5\node_modules\api-blueprint-preview\node_modules\pathwatcher\node_modules\runas>node "C:\Users...\AppData\Local\atom\app-1.0.0\resources\app\apm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild
npm WARN deprecated<EMAIL_ADDRESS>the module is now available as 'css-select'
npm WARN deprecated<EMAIL_ADDRESS>the module is now available as 'css-what'
gypnpm ERR! Windows_NT 6.2.9200
npm ERR! argv "C:\Users\...\AppData\Local\atom\app-1.0.0\resources\app\apm\bin\\node.exe" "C:\Users\...\AppData\Local\atom\app-1.0.0\resources\app\apm\node_modules\npm\bin\npm-cli.js" "--globalconfig" "C:\Users\...\.atom\.apm\.apmrc" "--userconfig" "C:\Users\...\.atom\.apmrc" "install" "C:\Users\...\AppData\Local\Temp\d-11563-1552-1i4wqni\package.tgz" "--target=0.22.0" "--arch=ia32"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls runas
npm ERR! There is likely additional logging output above.

@coryt have you installed node-gyp? See https://github.com/TooTallNate/node-gyp/#installation

There seems to be a breaking change with newer versions of node for node-gyp rebuild.
I reverted to nodejs 2.5 using nvm to build that script.
In Mac, if you have homebrew installed you should do:
brew install nvm
Then follow its instructions for adding it to your bash profile, then use
source ~/.bash_profile
Then:
nvm install iojs-v2.5
Then try
sudo npm install -g aglio

Apologies, I haven't tried on Windows but hopefully the process will be similar.

Getting the same thing. There's runas 3.1.1 already out that works well with latest node. I assume it's one of the dependencies that requires it and pulling the older version? Would you check if project's dependencies can be upgraded to their latests?