Make dependencies optional

Driver version
2.0.908
Problem description
In order to use the connecter, we have to pull in dependencies we don't need:
beautifulsoup4
lxml
scramp
soupsieve

This should be optional and not a requirement.

Hi @qais-cisco, thanks for opening this issue. Could you please share which dependencies you are referring to?

@Brooke-white , updated the issue with the dependencies.

@qais-cisco , to give some context these dependencies are used in the following ways:

scramp: here for authentication with redshift
lxml, beautifulsoup4, soupsieve: here + all of the IdentityProviderPlugin code (found in plugin folder) use beautifulsoup for parsing HTML and XML (which uses lxml as underlying parser) during the Identity provider Plugin authentication process

Removing lxml,beautifulsoup4, and soupsieve would be a breaking change for our current users and not provide good user experience for new users utilizing IdentityProviderPlugins.
As previously discussed here, lxml is the largest sized dependency of the bunch. A potential path for migrating away from lxml to the Python standard library parser would reduce the package size, but needs to be investigated first.
I started looking into this and found the IdentityProviderPlugin code relating to authentication would need some rework and more testing. If this is something you/anyone else would be willing to dig into I'm more than happy to support.

Thanks for the feedback, @mjschultz. I will discuss with the redshift_connector product team

I've added this item to our roadmap but no clear ETA at this time. Will provide updates here as needed.

I would also be interested in this feature. I am using this in a lambda function and it would be nice if I did not have to include the boto3/botocore libraries as well as the other large dependencies mentioned here.


add member model and its test

Two exception paths are not covered by UT. However, we may select a DAO style of implementation and rewrite the code soon. Let us fix that in near future.


Suggestions to make it more awesome

Instead of using window.floodfill, attach to context:

		CanvasRenderingContext2D.prototype.floodfill = function(x, y, fillColor) {
			floodfill(x, y, fillColor, this)
		}

Allow fillcolor to be in other formats other than {r:255,g:0,b:0,a:1}: eg: "rgba(255,0,0,1)",  [255,0,0,1], "red" (window.getComputedStyle can convert colors)

Change the order of the arguments, moving tolerance before width and height.

Since you can specify the width and height it should also allow you to specify a left and right.  This would force the floodfill to be constrained to the given area.

It's an interesting suggestion, but I am usually not a fan of extending the prototype of native methods.  Also, though I haven't stated it anywhere, I am actually planning on making this independent of a CanvasRenderingContext2D, and using UInt8ClampedArrays instead with an optional method for use of a context.

Thanks for the update!  Works great.


{vm} HTML tags are rendering as empty parameter values in reference docs

Describe the bug
Problem to solve:
HTML tags in source code are causing build warnings in MicrosoftDocs/azure-docs-cli. More importantly, customer-facing reference docs are not instantiating properly -- parameter values formatted with `<>` are missing. Here's an example:

Requested solution:
These values should be escaped with a backtick. Here's an example from az webpubsub.

Related GitHub issues:
This is the same issue as these GitHub issues.
List of HTML tag instances that need update:

File name
Build error

latest/docs-ref-autogen/vm.yml
HTML tag 'Name' isn't allowed.  Replace it with approved Markdown or escape the brackets if the content is a placeholder.

latest/docs-ref-autogen/vm.yml
HTML tag 'Value' isn't allowed.  Replace it with approved Markdown or escape the brackets if the content is a placeholder.

latest/docs-ref-autogen/vm/boot-diagnostics.yml
Link 'https://your_storage_account_name.blob.core.windows.net/' points to a page that doesn't exist. Check the path or URL and update the link.

latest/docs-ref-autogen/vm/unmanaged-disk.yml
Link 'https://mystorage.blob.core.windows.net/vhds/d1.vhd' points to a page that doesn't exist. Check the path or URL and update the link.

Related command
az vm
Errors
n/a
Issue script & Debug output
n/a
Expected behavior
n/a
Environment Summary
Azure CLI 2.62.0
Additional context
No response

Thank you for opening this issue, we will look into it.


generating_sae_dashboards.ipynb is not working

Two issues with generating_sae_dashboards.ipynb causing it to fail:

eindex is missing.
Potential Fix (my current local workaroud): add back eindex
Not creating a pull request due to possibility that the correct fix is for eindex to be a dependency in sae_vis, not SAELens.

Error running "Use runner" cell with no modifications: ModuleNotFoundError: No module named 'sae_training'

Full error:
{
	"name": "ModuleNotFoundError",
	"message": "No module named 'sae_training'",
	"stack": "---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[2], line 6
      3 FILENAME = f\"final_sparse_autoencoder_gpt2-small_blocks.{layer}.hook_resid_pre_24576.pt\"
      4 path = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
----> 6 obj = torch.load(path, map_location=device)
      7 state_dict = obj[\"state_dict\"]
      8 assert set(state_dict.keys()) == {\"W_enc\", \"b_enc\", \"W_dec\", \"b_dec\"}

File ~/Documents/Projects/SAELens/.venv/lib/python3.12/site-packages/torch/serialization.py:1026, in load(f, map_location, pickle_module, weights_only, mmap, **pickle_load_args)
   1024             except RuntimeError as e:
   1025                 raise pickle.UnpicklingError(UNSAFE_MESSAGE + str(e)) from None
-> 1026         return _load(opened_zipfile,
   1027                      map_location,
   1028                      pickle_module,
   1029                      overall_storage=overall_storage,
   1030                      **pickle_load_args)
   1031 if mmap:
   1032     raise RuntimeError(\"mmap can only be used with files saved with \"
   1033                        \"`torch.save(_use_new_zipfile_serialization=True), \"
   1034                        \"please torch.save your checkpoint with this option in order to use mmap.\")

File ~/Documents/Projects/SAELens/.venv/lib/python3.12/site-packages/torch/serialization.py:1438, in _load(zip_file, map_location, pickle_module, pickle_file, overall_storage, **pickle_load_args)
   1436 unpickler = UnpicklerWrapper(data_file, **pickle_load_args)
   1437 unpickler.persistent_load = persistent_load
-> 1438 result = unpickler.load()
   1440 torch._utils._validate_loaded_sparse_tensors()
   1441 torch._C._log_api_usage_metadata(
   1442     \"torch.load.metadata\", {\"serialization_id\": zip_file.serialization_id()}
   1443 )

File ~/Documents/Projects/SAELens/.venv/lib/python3.12/site-packages/torch/serialization.py:1431, in _load.<locals>.UnpicklerWrapper.find_class(self, mod_name, name)
   1429         pass
   1430 mod_name = load_module_mapping.get(mod_name, mod_name)
-> 1431 return super().find_class(mod_name, name)

ModuleNotFoundError: No module named 'sae_training'"
}

ahh this is so annoying. It's the old artefacts we need to load which apparently need to be compatible with the old library. I'll attempt a fix today.

Similar issues with logits_lens_with_features.ipynb (Error loading the state dictionary from .pt file: No module named 'sae_training') and evaluating_your_sae.ipynb (No module named 'sae_lens.analysis.visualizer')

Not creating a pull request due to possibility that the correct fix is for eindex to be a dependency in sae_vis, not SAELens.

It is and it seems to have been patched on GitHub but not pushed yet to PyPI


Feel Popup event support

Related to https://github.com/bpmn-io/bpmn-js-properties-panel/issues/974
This provides the capability to hook into the feel popup lifecycle as

feelPopup.opened
feelPopup.closed
feelPopup._open
feelPopup._close
feelPopup._isOpen

Furthermore, this adds a feature service that integrators can use to interact with the popup. Cf. to this example on how to use it. I didn't add particular test coverage for this module in this project similar to debounceInput as I saw we do not have a proper didi-like test setup in the core framework.
const feelPopup = bpmnjs.get('feelPopup');

console.log('is open', feelPopup._isOpen());

feelPopup.close();

feelPopup.open(someElement, { type: 'feel' }, elementToRestoreFocusAfterClose);

Happy to receive your feedback ❤ @bpmn-io/modeling-dev @bpmn-io/hto-dev

I liked the null-object pattern usage here, so I used that via https://github.com/bpmn-io/properties-panel/pull/287/commits/0abe5d777de35f04401122bffa76276bb95c717b. 🏆
I believe that is okay, as eventBus is optional in the parent PropertiesPanel component as well (at least from the JSDocs 🙂)

I'd take over releasing these bits and open up https://github.com/bpmn-io/bpmn-js-properties-panel/pull/975 if that's okay to you.

That's great, thank you :)


fix(pretty-print): never pad by less than zero

What
lib/tree_stand/utils/printer.rb:37:in `*': negative argument (ArgumentError)

          io << "#{line.sexpr}#{' ' * (@ralign - line.sexpr.size)}| #{line.text}\n"
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

We append closing parenthesis to close the last open node recursively. This can sometimes cause an overflow where Line#sexpr returns a string longer than the right aligned node text column.
https://github.com/Faveod/ruby-tree-sitter/blob/bae141002843e56544279b772dfd4775b92f6262/lib/tree_stand/utils/printer.rb#L68
This change makes sure that in those edge cases we don't raise an argument error.

LGTM


Ability to check if addons are out of date

Summary

Currently using microk8s addons i cannot tell if addons are out of date between releases. Whilst i can check release-notes and compare versions, it would be ideal to have a command such as microk8s addons --check-for-updates or something similar such that i can re-run ansible playbooks without nuking the DNS addon resulting in chaos inside my cluster for a period of time on each rerun.
The main danger i forsee is that i can't update an addon repository without potentially breaking the disable command. As noted in another issue, if you update the addon-repository first before disabling any enabled addons, it might not uninstall properly. I originally thought i would just "check for updates" at the addon repo level but doing that results in disable not functioning
Why is this important?

Currently, i am using ansible to upgrade microk8s in various environments, upgrading microk8s alone isn't enough as addons also have to be updated. Currently i only make use of the dashboard and dns addons but i am debating using coredns directly as microk8s doesn't provide an upgrade path, only one that requires a full removal and reinstall which is less than ideal for production clusters
Are you interested in contributing to this feature?

not sure how to implement it exactly, but i can look to implement it if i know where to look

Hi @jack1902, sorry for the late reply. Indeed right now we do not expose a way to upgrade an addon.
The addons are under /var/snap/microk8s/common/addons/repository_name/addons/addon_name for example coredns is under /var/snap/microk8s/common/addons/core/addons/dns. The addon repositories are git repos so you can do:
$ cd /var/snap/microk8s/common/addons/core/
$ git status
On branch 1.27
Your branch is up to date with 'origin/1.27'.

nothing to commit, working tree clean
$ git remote -v
origin  /snap/microk8s/current/addons/core (fetch)
origin  /snap/microk8s/current/addons/core (push)

Notice that the core repository is shipped with the snap so you can use git or any other script to identify if there are changes under a specific directory. With microk8s addons repo update the repository under /var/snap/microk8s/common is synced with its remote repo. You can read more on the structure of the core addons repository at https://github.com/canonical/microk8s-core-addons.


Release without data?

Could you make a release without the data files? It's quite a large download.

Hi Allan,
I created a no-data branch that you can clone.


44babel runtime

@turnerniles added babel transform plugin.  To verify
closes #44 -

@turnerniles will remove babel-runtime and use babel-polyfill explicitly in demo only as to not interfere with users that have babel-polyfill in projects that require library


Expected behavior
Audio emitters fade in and out smoothly when scrolling over the map.
Videos
https://github.com/TheSuperHackers/GeneralsRankedMaps/assets/4720891/c213bdea-f3a8-49f2-8f2b-f622132e605d

fixed


Extractor with vcf not using all samples

Hi,
I ran the newest version of SigProfilerExtractor either with a matrix file or with a directory of vcfs with the same options:
(reference_genome="GRCh38", opportunity_genome="GRCh38", minimum_signatures=1, nmf_replicates=100, exome=true). I got wildly different numbers of signatures. I had 351 individuals in the matrix file and vcf directory. When I looked into the JOBMETADATA.txt, the matrix run used all 351 individuals. The vcf run used only 216 individuals (in alphabetical order, although skipped 17 in a row for some reason) for SBS96 and ID83, and 146 individuals for DBS78. Is that expected?
Also, I tried using cosmic_version=3.2, and it didn't work. Thanks!

Hi,
Could you share your JOBMETADATA.txt for both the vcf and matrix runs so I can look into the issue?

VCF_JOB_METADATA.txt
Matrix_JOB_METADATA.txt
Here are the files. I realized that the opportunity genome for the matrix is still GRCh37, so I'm currently rerunning that right now. It did run all 351 samples, though. The VCF directory contains 351 vcf files. Thanks!

You have the expected output for both the VCF and the matrix input.
When running with the exome = True option, SigProfilerExtractor limits its analysis to mutations within the exome. For VCF input, when this is the case some samples end up not having any mutations within the exome from a given category of mutations whether it be SBS96, ID83, or DBS78. So for example, the 216 samples you see for SBS96 are the samples that had SBS96 mutations within the exome.
Unlike a VCF input, the positional information of the mutations in the genome is not contained within the matrix input. So with a matrix as input, SigProfilerExtractor doesn't limit the analysis of mutations to just those within the exome because the positional information of those mutations isn't there. So it counts all mutations in its analysis.

I don't know if that's the case here with the VCF files. After I created this issue, I was able to run all of the samples correctly using the tool SigProfilerSingleSample. I also changed the start of the VCF file names from numbers to letters and the matrix changed to 96x206! I stopped that analysis. I think at this point, I'm going to stick with the COSMIC-decomposed only results based on the previous literature of my tumor type and my goals. Thank you for your help!


Error transcribing file on line parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device

load models models/Whisper/faster-whisper
Error transcribing file on line parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device
/home/ai/other/miniconda3/envs/whisper-webui/lib/python3.10/site-packages/torch/cuda/memory.py:303: FutureWarning: torch.cuda.reset_max_memory_allocated now calls torch.cuda.reset_peak_memory_stats, which resets /all/ peak memory stats.
warnings.warn(
Traceback (most recent call last):
File "/home/ai/other/miniconda3/envs/whisper-webui/lib/python3.10/site-packages/gradio/queueing.py", line 501, in call_prediction
output = await route_utils.call_process_api(
File "/home/ai/other/miniconda3/envs/whisper-webui/lib/python3.10/site-packages/gradio/route_utils.py", line 253, in call_process_api
output = await app.get_blocks().process_api(
File "/home/ai/other/miniconda3/envs/whisper-webui/lib/python3.10/site-packages/gradio/blocks.py", line 1704, in process_api
data = await anyio.to_thread.run_sync(
File "/home/ai/other/miniconda3/envs/whisper-webui/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "/home/ai/other/miniconda3/envs/whisper-webui/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
File "/home/ai/other/miniconda3/envs/whisper-webui/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "/home/ai/other/miniconda3/envs/whisper-webui/lib/python3.10/site-packages/gradio/blocks.py", line 1460, in postprocess_data
self.validate_outputs(fn_index, predictions)  # type: ignore
File "/home/ai/other/miniconda3/envs/whisper-webui/lib/python3.10/site-packages/gradio/blocks.py", line 1434, in validate_outputs
raise ValueError(
ValueError: An event handler (transcribe_file) didn't receive enough output values (needed: 2, received: 1).

Hi, it seems to be a CUDA error. Can you try
nvcc --version

in the cmd and show the result? If you're using CUDA versions below 12.0, faster-whisper is not compatible.

Apparently I assumed that having installed Nvidia App and finding CUDA 12 in the root of the installation would work Whisper-WebUI.
I reinstalled CUDA only and the problem was solved.
nvcc --version test:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Tue_Feb_27
Cuda compilation tools, release 12.4, V12.4.99
Build cuda_12.4.r12.4/compiler.33961263_0

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Jul_11_02:20:44_PDT_2023
Cuda compilation tools, release 12.2, V12.2.128
Build cuda_12.2.r12.2/compiler.33053471_0
It looks  matched

According to here,
Your GPU architecture is incompatible with CUDA 12.
Can you try
# After activate venv!
pip install --force-reinstall torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/

as the post says?
You can activate the venv with

Windows
venv\Scripts\activate.bat or venv\Scripts\Activate.ps1
Linux or MacOS
source venv/bin/activate

I tried 1.12.1, and no matter what version, it's the same error.  Maybe it is other reason?


Sensor: capacitive soil sensor

A number of the projects, include #58 and others are interested in sensing the moisture in a pile of something - whether that is decomposing food; cacao beans; seaweed or soil.
First step is to try out cheap capacitive soil sensors.  I've got

Lilygo's soil unit - looks like a nice complete unit with WiFi or BLE and a DHT11 for air temp/hum. Its USD 24 - suppose - there are Github repo's for it - search on TTGO-T-HiGrow or variations of this - https://github.com/linusnielsen/TTGO-T-HIGrow is one example, but i haven't compared them.

Cheaper - just the sensor - for about USD 1-3
2. T-Higrow capacative sensor the sensor  basic analog out - is labeled WeMos - unclear what the connector is,

Another Capacitive Soil Sensor basic analog out on a PH2.0-3P connector. They say its manufactured by Si Tai&SH

Possibel suppliers (based on labeling on board and/or packaging include Shenzhen Hengtaiyi Technology Co

It looks like these all use similar capacitive sensors, so I'm looking on HiGrow code to see how they read the sensor and guessing can do the same on the raw sensor.  I'm also guessing that could use code such as that repo's to put a version of Frugal-Iot on this sensor.
The repo at https://github.com/Xinyuan-LilyGO/LilyGo-HiGrow/blob/master/src/src.ino is the code currently on it, its got a certain structure to it that might not be a good match for frugal-iot but probably has some hints at what is needed.

Basic capacitive Soil sensor. The H266 on https://www.aliexpress.com/item/1005006145694669.html?spm=a2g0o.order_list.order_list_main.15.6b8e1802a0T8xq#nav-specification  worked at first attempt plugging into A0 and 3.3V.
See ~626 when in air, and ~324 if touch it.  I'm not sure what the full range on this AD is

[ ] Measure voltage and see what that equates to
[ ] Try in soil
[ ] Add some way to calibrate/scale it - probably with map(...)

Testing on Lolin C3 pico.
Plugged into 5V
The device was returning a voltage of 1.6V to 2.19V and this resulted in readAnalogue returning 2316 or 3164 which is pretty close to linear.

Voltage tests with soil
3182. 2.1V Air
2394 1.6V touch
2924 2.02 dry soil
1344 soaked soil up to notch on sensor
Allowing to dry


Fix warning "No newline at end of file"

If you use the pod as a framework with the sentence use_frameworks! you will see the warning No newline at end of file, this pull request just add a new line at the end of the header file.
Thanks

Thanks


bump bitflags when we next have a semver bump

The bitflags crate has moved to 2.x. The API changed from an impl to a trait for several functions, resulting in many functions changing from pub const to pub.  These changes therefore break our public API even though there's very little chance that it matters.
The function from_bits_unchecked is removed.  While we only use this internally, this change breaks API: we are using the output of the biflags! macro in our public API.
This issue is a reminder to apply these changes (see #495) when we have other breaking changes and need to bump version.

To maintain API, we should add our own version of from_bits_unchecked and mark it deprecated.

closed via #629


Only view milestones from current repo

The endpoint /{username}/{reponame}/milestone/{id} is not currently restricted to
the repo. This PR restricts the milestones to those within the repo.
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

Codecov Report

Merging #18414 (ed7a62c) into main (3bb028c) will increase coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main   #18414      +/-   ##
==========================================
+ Coverage   46.05%   46.06%   +0.01%
==========================================
  Files         842      842
  Lines       92998    92988      -10
==========================================
+ Hits        42826    42832       +6
+ Misses      43376    43361      -15
+ Partials     6796     6795       -1

Impacted Files
Coverage Δ

models/issue_milestone.go
72.11% <ø> (+1.76%)
:arrow_up:

routers/web/repo/issue.go
39.02% <0.00%> (ø)

routers/web/repo/milestone.go
0.00% <0.00%> (ø)

modules/queue/queue_channel.go
79.34% <0.00%> (-5.44%)
:arrow_down:

modules/git/utils.go
68.05% <0.00%> (-2.78%)
:arrow_down:

modules/git/repo_base_nogogit.go
73.17% <0.00%> (-2.44%)
:arrow_down:

modules/process/manager.go
81.39% <0.00%> (-1.56%)
:arrow_down:

models/issue_comment.go
54.30% <0.00%> (-0.57%)
:arrow_down:

services/gitdiff/gitdiff.go
73.83% <0.00%> (+0.23%)
:arrow_up:

services/pull/pull.go
42.79% <0.00%> (+0.40%)
:arrow_up:

... and 4 more

Continue to review full report at Codecov.

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


Also having trouble with Blue Pill using code very close to example

The 3 LEDs show up purple, white, white even when attempting to turn them off. If the color array is a larger size, they all show up white except for the first is purple. So the one thing that is working is the number of LEDs that light up is equal to the size of the array. However the colors aren't working correctly.
I've removed all unrelated code in a different branch of my project for testing this: https://gitlab.com/freiguy1/moon-lamp/-/blob/leds/src/main.rs. The semihosting output looks like:
on: true
on: false
on: true
on: false
on: true
on: false

Each line being printed every second.
Here is my hardware setup. The LEDs are powered by a 5V usb charger which is separate from the microcontroller's power source (STLink debugger). The MOSI pin from SPI2 goes to the data line of the LEDs. The LEDs and microcontroller's grounds are hooked together. The rest of the SPI pins are left floating. Does all that sound okay?
I don't have an oscilloscope or logic analyzer. Is there one of each you'd recommend for a beginner? Perhaps I could get one.
I'm starting to think this is maybe an issue with the SPI implementation in the stm32f1xx-hal crate which delays too long between bytes or something. I've tried a few variations of this code but none of them did the trick:

Enabling and disabling the mosi_idle_high feature
A higher sysclock (72mhz), pclk1, and spi frequency
Removing all interrupts from my code

I still have hope this is possible due to the existence of the blue pill example.

I tried another fix by switching to the external oscillator on the chip (8mhz) as the clock source instead of the internal (less accurate) 8mhz clock source. My code runs without breaking, but the LEDs are still broken in the same way.

Did you use a release build? The basic setup looks alright and the code looks ok at first glance as well.
I generally use an fx2 based logic analyzer (up to 24MHz) together with pulseview/sigrok. This is more-or-less a generic design, so if you search for logic analyzer on your favorite e-commerce site and pick a cheap looking one with 24MHz, it should be alright. For example, the first cheap LA on amazon us: https://www.amazon.com/KeeYees-Analyzer-Device-Channel-Arduino/dp/B07K6HXDH1/. There are no other designs I'm aware of in the sub-20$ range.

I'm using cargo run --release and my release config looks like this in the Cargo.toml:
[profile.release]
codegen-units = 1
debug = 0
lto = true
opt-level = "z"

Umm, when I remove all those "optimizations" in my Cargo.toml file, the flashed size is a bit bigger, but it's working!
Thanks!


Track split creation prior to issuing enew cmd

Forgive me if I am misunderstanding how this plugin is supposed to work.  I have the following keymaps setup
:nnoremap <silent> <C-h> :FocusSplitLeft<CR>
:nnoremap <silent> <C-j> :FocusSplitDown<CR>
:nnoremap <silent> <C-k> :FocusSplitUp<CR>
:nnoremap <silent> <C-l> :FocusSplitRight<CR>

When I switch between splits, I expect things to be resized (which they are), but additionally the active buffer is replaced with a new unnamed one, which is not what I expected, since I was trying to edit an existing one.
If i'm understanding the code correctly here (a big if lol), the enew command is being used to ensure that the new split doesn't have the same contents as the one that was previously selected, however in my case it was wiping out the contents of an existing split as I have hidden set and enew doesn't fail on unsaved buffers with hidden set.
My solution was to track whether a new split had been created and only run enew if it had, which has been working for me without any issues.
Feel free to close / alter this PR if this isn't the best solution (or if sending it was inappropriate).

Thanks! It's not supposed to be running enew unless a new buffer is created. I must have messed up the nesting by mistake last night when I added some capability to allow for tmux window creation
This created var should help make things more clear so if does not happen again. I'll merge it in

Thanks!


Bug Report: TFC error with federated credntials and DCR ressource in management module example

Community Note

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Versions

terraform:
1.9.5
azure provider:
~> 3.107
module:
6.0.0
Description
Describe the bug

After deploy management module example with TFC (App registration + OIDC used), after the next run i get this error:

Steps to Reproduce

GitHub Repo connection with TFC
Appregistration in Azure with federated credentials
push management module example and run apply
Change a ressource or add any ressource to code and run again.
Plan gets an error

Screenshots

Additional context

This is an issue with the provider authentication - suggest raising an issue on the azapi repo


Adding onto the README

Hi Justin!
I had a look at your canvas API for node and tried playing around with it. It's amazing! I wanted to create extensions to this, but am not entirely sure what to do for a few things. Would you perhaps have the answer to these questions?

Is ' npm run build:cjs ' the command to build the files? (I want to run some of the example methods you created in the src/source files, but am not able to).

In the README, it is asked to create my contributions in the source directory. I'm trying to run the example usage you have provided in the README in the src folder (with the command 'node index.js' on the terminal) and it is telling me that getSelf() is not defined, yet I believe it is being imported within the same folder. Could you perhaps walk me along the steps to build and test this application so I can add onto the documentation you have in the README?

No problem, I’m happy to help.
To build the files (which takes the files in the source folder and outputs them to src), npm run build will work, which is equivalent to npm run build:cjs.
To run the example usage, create an index.js file in the root of the project, and then copy/paste the sample code into index.js:
const getSelf = require('./src/getSelf')
getSelf().then(x => console.log(x))

Then you should be able to run node index.js to execute the getSelf function.
The process for making new additions are:

Add new file to source folder (say that the new file you want to add is ‘getUsersWithGradeThreshold.js`)
In the source folder, there’s an index.js file that lists all of the files you want exported to src. There you will add: export { default as getUsersWithGradeThreshold } from './getUsersWithGradeThreshold'
Run npm run build, which will build the project and output your new function into src.
In the index.js at the root of the project that you create (this is not the index.js that’s in the source folder), import your new file from src like this: const getUsersWithGradeThreshold = require('.src/getUsersWithGradeThreshold') and test by running the code: node index.js.
Once you’re happy that it works, create a PR.

Please feel free to make improvements to the README – I really appreciate it!
The entire process is a little cumbersome – the reason for this is because I wanted the package to be compatible with UMD and CJS and at the time this seemed like the best option. It’s copied from how Ramda had its package set up: https://github.com/ramda/ramda
Hope this helps. If you have any questions or need help let me know.

@Kingpin1111  just wanted to follow up to see if I can close this issue now.


implement CMS integration (strapi?) for easily editable content

@KevinTss 👆

there is only a free version as of now, no other version 🙂 the only question is where to host it.. we have used railway for some Strapi projects

there is only a free version as of now, no other version 🙂 the only question is where to host it.. we have used railway for some Strapi projects

I never use railway but it seems they don't offer freemium, do you plan to pay for it?

it seems that it is free if the backend is used under 500 hrs per month.. not sure if that is enough:
https://railway.app/pricing
but it can be deployed elsewhere too, if you have a better idea.

do you think Netlify CMS is future proof enough? it is much less actively maintained, than Strapi

For the use I did it make the job yes.
We can try a POC and see how it goes. I'll keep you posted here

Hey Folks,
I've came across the hackyourfuture belgium project a few days ago (btw: are there any poblems with the webpage hackyourfuture.be atm? It only shows a blank page with the title for me) and this issue specially.
Anyway: As I really love what I've read so far about you're project and goals, I would offer you folks to help (if you want of course) with getting started with strapi hosted on railway and netlify for the frontend stuff. As it happens: I'm in the exactly same process for a community-driven webradio and podcast service for our local political movement (just get in touch with me if you want to know more). I do believe we could profit from each other and I would be happy to assist in anything you need.
So if you're still looking into this, just let me now and we cann exchange private contact options to look what we can do.  Until then: Cheers from Switzerland and keep up the great work :)

Hey Folks,
I've came across the hackyourfuture belgium project a few days ago (btw: are there any poblems with the webpage hackyourfuture.be atm? It only shows a blank page with the title for me) and this issue specially.
Anyway: As I really love what I've read so far about you're project and goals, I would offer you folks to help (if you want of course) with getting started with strapi hosted on railway and netlify for the frontend stuff. As it happens: I'm in the exactly same process for a community-driven webradio and podcast service for our local political movement (just get in touch with me if you want to know more). I do believe we could profit from each other and I would be happy to assist in anything you need.
So if you're still looking into this, just let me now and we cann exchange private contact options to look what we can do. Until then: Cheers from Switzerland and keep up the great work :)

Hi @saintcore 👋
Thank you for your message, really appreciated 😄
We did experience some instabilities few weeks ago but it should be fixed by now.
Do you still have issues?
For your information, the website https://hackyourfuture.be will be replaced by http://hackyourfuturebelgium.be very soon. (Both are available for now).
Regarding the CMS, we are going to use Netlifly CMS instead of Strapi at the end. But it will be nice to have your feedbacks anyway if you're open for it, drop me a email (find it on my GH profile) and let's have a chat.
Cheers from Belgium


iOS combination error between cocoapod and framework.bundle

From @code0wl on March 16, 2017 12:22
Currently having an issue when using cocoapods in combination with a framework bundle in unison.
I am trying to load two different types of frameworks into our a project. One is a pod using CocoaPod and the other is being manually added the resource folder.
Once the manual copy framework is integrated into the project. I can no longer run the framework/library that is included using CocoaPods. I get a reference error saying that the runtime objects for the cocoapod framework do not exist.
in this case the error message is:

Xcode stdout

The bundle “PersistenceTesting” couldn’t be loaded because its executable couldn’t be located.

bash debug stdout

com.apple.CoreSimulator.SimDevice.93AAB200-A581-4BE4-BEC0-4360B1FA74FB.launchd_sim[95792] (UIKitApplication:org.nativescript.frameworkissuedemo[0x93fc][73825]): Service exited due to Segmentation fault: 11

Demo repo => https://github.com/code0wl/nativescript-framework-issue-demo
Combining these two frameworks together in Native for iOS seem to work fine. But using NativeScript I get the above mentioned error. Is there a step I am missing in the demo repo?
Copied from original issue: NativeScript/NativeScript#3809

From @code0wl on March 22, 2017 11:39
Definitely open for any input at the moment. Has anyone had any success with a similar issue?

Hi @code0wl
After further investigation of the issue, it turned out that the problem is deep in the iOS metadata generator. You can check the error log produced by the metadata generator in {your-app}/platforms/ios/build/emulator/metadata-generation-stderr-{arch}.txt. In your case the log file should look something like this:
...
In file included from umbrella.h:533:
/Users/buhov/Desktop/NativeScript/nativescript-framework-issue-demo/node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h:244:30: error: cannot find interface declaration for 'NSManagedObject', superclass of 'LPAccountEntity'; did you mean 'NSManagedObjectModel'?
@interface LPAccountEntity : NSManagedObject
                             ^~~~~~~~~~~~~~~
                             NSManagedObjectModel
/Applications/Xcode8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h:13:8: note: 'NSManagedObjectModel' declared here
@class NSManagedObjectModel;
       ^
In file included from umbrella.h:533:
/Users/buhov/Desktop/NativeScript/nativescript-framework-issue-demo/node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h:244:30: error: attempting to use the forward class 'NSManagedObjectModel' as superclass of 'LPAccountEntity'
@interface LPAccountEntity : NSManagedObject
~~~~~~~~~~~~~~~~~~~~~~~~~~   ^
/Applications/Xcode8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h:13:8: note: forward declaration of class here
@class NSManagedObjectModel;
       ^
In file included from umbrella.h:533:
/Users/buhov/Desktop/NativeScript/nativescript-framework-issue-demo/node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h:253:28: error: cannot find interface declaration for 'NSManagedObject', superclass of 'LPBrandEntity'; did you mean 'NSManagedObjectModel'?
@interface LPBrandEntity : NSManagedObject
                           ^~~~~~~~~~~~~~~
                           NSManagedObjectModel
/Applications/Xcode8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h:13:8: note: 'NSManagedObjectModel' declared here
@class NSManagedObjectModel;
       ^
In file included from umbrella.h:533:
/Users/buhov/Desktop/NativeScript/nativescript-framework-issue-demo/node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h:253:28: error: attempting to use the forward class 'NSManagedObjectModel' as superclass of 'LPBrandEntity'
@interface LPBrandEntity : NSManagedObject
~~~~~~~~~~~~~~~~~~~~~~~~   ^
/Applications/Xcode8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h:13:8: note: forward declaration of class here
@class NSManagedObjectModel;
       ^
In file included from umbrella.h:533:
/Users/buhov/Desktop/NativeScript/nativescript-framework-issue-demo/node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h:280:31: error: cannot find interface declaration for 'NSManagedObject', superclass of 'LPCampaignEntity'; did you mean 'NSManagedObjectModel'?
@interface LPCampaignEntity : NSManagedObject
                              ^~~~~~~~~~~~~~~
                              NSManagedObjectModel
/Applications/Xcode8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h:13:8: note: 'NSManagedObjectModel' declared here
@class NSManagedObjectModel;
       ^
In file included from umbrella.h:533:
/Users/buhov/Desktop/NativeScript/nativescript-framework-issue-demo/node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h:280:31: error: attempting to use the forward class 'NSManagedObjectModel' as superclass of 'LPCampaignEntity'
@interface LPCampaignEntity : NSManagedObject
~~~~~~~~~~~~~~~~~~~~~~~~~~~   ^
/Applications/Xcode8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h:13:8: note: forward declaration of class here
@class NSManagedObjectModel;
       ^
In file included from umbrella.h:533:
/Users/buhov/Desktop/NativeScript/nativescript-framework-issue-demo/node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h:695:35: error: cannot find interface declaration for 'NSManagedObject', superclass of 'LPConversationEntity'; did you mean 'NSManagedObjectModel'?
@interface LPConversationEntity : NSManagedObject
                                  ^~~~~~~~~~~~~~~
                                  NSManagedObjectModel
/Applications/Xcode8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h:13:8: note: 'NSManagedObjectModel' declared here
@class NSManagedObjectModel;
       ^
In file included from umbrella.h:533:
/Users/buhov/Desktop/NativeScript/nativescript-framework-issue-demo/node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h:695:35: error: attempting to use the forward class 'NSManagedObjectModel' as superclass of 'LPConversationEntity'
@interface LPConversationEntity : NSManagedObject
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   ^
/Applications/Xcode8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h:13:8: note: forward declaration of class here
@class NSManagedObjectModel;
       ^
In file included from umbrella.h:533:
/Users/buhov/Desktop/NativeScript/nativescript-framework-issue-demo/node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h:764:27: error: cannot find interface declaration for 'NSManagedObject', superclass of 'LPFileEntity'; did you mean 'NSManagedObjectModel'?
@interface LPFileEntity : NSManagedObject
                          ^~~~~~~~~~~~~~~
                          NSManagedObjectModel
/Applications/Xcode8.2.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIManagedDocument.h:13:8: note: 'NSManagedObjectModel' declared here
@class NSManagedObjectModel;
       ^
In file included from umbrella.h:533:
....

The log says that the node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h header is referring to unknown interfaces (NSManagedObject, NSManagedObjectModel etc.). But still this should not be an issue because the metadata generator is clever enough to just skip all declarations that rely on the unknown interfaces and generate metadata for the rest of the APIs. However, the metadata generator will not skip category declarations of unknown interfaces and this is why the LPInfra category of the NSManagedObject interface is processed and its property isValid is eventually added to the metadata for the NSManagedObject interface, but the metadata generator fails to associate getter and setter definitions to the properties. Given this, when the isValid property (coming form a category declared in LPInfra-Swift.h) of the NSManagedObject is materialized at runtime it crashes because of a missing getter.
The solution
I already introduced a fix in the master branch. This solution will not make the metadata generator to actually generate metadata for the previously skipped APIs, but will prevent the runtime of crashing when a getter of a property doesn't exists.
Another solution is to add the following line at the top of node_modules/nativescript-live-engage/platforms/ios/LPInfra.framework/Headers/LPInfra-Swift.h header file:
#import <CoreData/NSManagedObject.h>

This will include the "unknown" interfaces in the translation unit and make them visible for the metadata generator. This way, no APIs will be skipped and no "property without a getter" will be generated. Also, this doesn't rely on the fix described above.
Sorry for the delayed response. Please, let me know if this has (not) fixed the issue.
P.S.: You can ignore the message The bundle “PersistenceTesting” couldn’t be loaded because its executable couldn’t be located.

@ivanbuhov thank you for your help!
Adding the import to the header solved the problem!
We will coordinate with live person to see if they can fix this issue


[BUGFIX] Site token changes after flushing caches

After flushing caches the site token changes and cache invalidation fails

:+1: should prevent problems after deploying a new version

Tagged a version with the fix since it's not of much use otherwise ;) https://github.com/mocdk/MOC.Varnish/releases/tag/2.0.7


Default game on Adafruit PyGamer dies with 090 error if display brightness is changed

Describe the bug
The Digi-Key/Adafruit games which comes with the PyGamer will give an 090 error screen if the user tries to adjust the brightness during the gameplay.
I've tried this on the two PyGamers I have, both do it. It happens with both v3.6.0 and v3.7.0 bootloaders.
To Reproduce
Steps to reproduce the behavior:

Switch PyGamer on (USB powered) - shows v3.6.0 on PYGAMERBOOT intro/reset screen,
Preset reset to get to the Digi-Key Game, wait for music to finish and cue to press A,
Press A three times to start game running,
Press select, move joytstick twice to right to select "BRIGHTNESS DOWN (100)",
Press A - a pixelated three digit 090 appears in middle of screen - above it might be an unhappy red face.

Expected behavior
I would expect the brightness of the screen to lower.
Screenshots
n/a unless you really want to see 090.
Desktop (please complete the following information):

n/a

Smartphone (please complete the following information):

n/a

Additional context
This error code is not listed on https://arcade.makecode.com/hardware/errors
Discussed on: Adafruit Forums: PyGamer 090 error on default game
Also spotted this but it looks unrelated: MakeCode Forum: Stuck on Error Code 090 on Meowbit

Could you try to update the bootloader on your pyGamer from the adafruit web site?

lastest is still 3.7.0 and I've tried that with no improvement.

I think this is because we're already using the timer that would drive PWM on the backlight pin to do something else.

Fixed on pygamer.


[Android] Image gallery does not open on File Chooser click

Hello, first of all thank you very much for this project. We are looking at using it for a production app we own, where we have turbolinks-ios and turbolinks-android adapters already in place, but would like to have a common codebase, and react-native combined with turbolinks is the perfect solution!
At the moment, the image gallery does not open in Android when you click on an input type="file". It works out of the box for iOS.
We already had this issue in our native turbolinks-android adapter, and this is the code we had to add in our onCreate activity:
// Code to open library
webView.setWebChromeClient(new WebChromeClient() {
    //For Android 4.1+
    public void openFileChooser(ValueCallback<Uri> uploadMsg, String acceptType, String capture) {
        mUploadingFile = true;
        mUploadMessage = uploadMsg;
        Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
        intent.addCategory(Intent.CATEGORY_OPENABLE);
        intent.setType("image/*");
        startActivityForResult(Intent.createChooser(intent, "File Browser"), FILECHOOSER_RESULTCODE);
    }

    //For Android 5.0+
    public boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> filePathCallback, FileChooserParams fileChooserParams) {
        mUploadingFile = true;
        if (uploadMessage != null) {
            uploadMessage.onReceiveValue(null);
            uploadMessage = null;
        }
        uploadMessage = filePathCallback;

        Intent intent = null;
        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
            intent = fileChooserParams.createIntent();
        }
        try {
            startActivityForResult(intent, REQUEST_SELECT_FILE);
        } catch (ActivityNotFoundException e) {
            uploadMessage = null;
            Toast.makeText(getApplicationContext(), "Cannot Open File Chooser", Toast.LENGTH_LONG)
                    .show();
            return false;
        }
        return true;
    }
});

I hope this code can help you implement this functionality for Android!

Fixed with  6f7a367cfd3718be0d28d36ec286abf93edd2151

it seems a problem with turbolinks-android... I hope it will be fixed on V2... I recommend you use a native approach for that...
https://github.com/lazaronixon/react-native-turbolinks/wiki/Upload-file
https://github.com/turbolinks/turbolinks-android/issues/53


Updating food-and-drink component

Modifying font sizes and whitespace to match design comp
Uncommenting hover transition and adding backface-visibility property to fix Chrome bug
Adding adjacent selector for image
Nesting MQs
Adding inline style for food-and-drink__image background-image (although, not sure if this is how the image will be added)

Looks good dude.


feat(llm): add support for local Ollama models

CLOSE https://github.com/sourcegraph/jetbrains/issues/1159 & https://linear.app/sourcegraph/issue/CODY-942/feedback-ollama-support

Adds support for the Ollama LLM by:

Adding an Ollama icon to the Icons.java file
Adding a case for "Ollama" in the ChatModelsResponse.kt file to map to the Ollama icon

Also added instruction on how to set up Ollama to run with JetBrains in the README.md
Test plan

Add Ollama logo for displaying Ollama models in the UI:

2. how does it work? is it presently possible to use local models? 😮

@mkondratek Yes it does! I've updated the README to include the instructions on how to get that setup too! Feel free to give that a try and let me know if it doesn't work for you :D

@mkondratek i tried rerunning the failed jobs but no luck. Am i missing some steps?

@mkondratek i tried rerunning the failed jobs but no luck. Am i missing some steps?

Hah, probably I have more powerful mouse 😅


Navbar user info bug when using tailwind

| Question                | Answer
| Laravel Version         | 8.*
Current Behavior
Hi, I have a bug in my navbar when I'm importing tailwind, and idk why is this happening.
I know that bootstrap and tailwind doesn't work well together, so I'm using a prefix in all my tailwind classes "tw-", anyone have any idea of how to "fix" it
tailwind.config.js

Error/bug

Expected

@DesarrolloProm I'm not sure if it is a good idea to use both libraries. This package comes with Bootstrap, and we can't ensure/support it to work with Tailwind. However, have you read Adding Tailwind Classes To Boostrap?
Good luck with your integration! Take into consideration to share the steps if you get it work, thanks!

Hello @DesarrolloProm
I have had the same problem when adding the two libraries (the BOOTSTRAP integrated with this package, and the TAILWIND that comes with Laravel 8), my solution is the one you see in my Fork, although it can be improved.
Since when we open the user menu, if it has a very short name, it could make the user image appear next to it and not on top as it should be. but this is easy by adding an extra pair of "div".
PS: Surely when you read this, the improvement I was talking about is already applied to my Fork.
And now thinking ... I will also add the code of my "mix", as well as the files it is calling to generate my "css" and "js", in addition to the main template file of my current project; So that there is no doubt that it has to be imported, and when / where / and the correct positioning of the import.


Controlling issues via commit commands

Like on GitHub and other services, ex. closes #x or fixes #x or reopens #x

Which keywords would be desirable for simple 'referencing'? I can make a PR for that today.

Hi @Cysioland , I just pushed code for reopen/reopens/reopened to dev branch, and you can also test on https://try.gogs.io/


Adding a form for customers

Normal html form which on filling will give information about the details of delivery

Hello @Swastik200 .
As mentioned in "readme.md" currently we don't require database connection.


Visual F# Nightly keeps falling out of VS 2017 Additional Extension Galleries

I regularly visit the Extensions and Updates dialog in my VS'es, to check for updates to VS and Visual F# Nightly.
I am frustrated by the Visual F# Nightly entry frequently disappearing from the Extensions and Updates settings / Additional Extension Galleries. It has been like this for several months. It has happened several times on my very new computer, hardly a month old. It must therefore also have happened on one or more of my other older computers in the months before that.
When I reinsert the entry for Visual F# Nightly, there are often but not always an update available to Visual F# Nightly shortly after, and this update can be a few days old sometimes, although I believe I have been using VS continuously during those days. It indicates the entry didn't drop out there and then, but earlier.
Is it possible that this happens every time I update VS? Will check when future updates come in.
I do understand that this most likely is a problem (or feature) with VS, and not Visual F# Nightly. I still choose to report it here first, because 1) this is where users of Visual F# Nightly is most likely to see my issue report, and can comment if they know something about this, and 2) there is a chance, albeit small, that somehow it has something to do with Visual F# Nightly itself.
Currently VS 2017 v15.2 (26430.15) and Nightly <IP_ADDRESS>71101.

I've seen this as well. If I remember correctly, for me it happened only on VS 2017 updates (and repairs), but not on all of them.

I have no idea what could cause this.  @Pilchie would you have any ideas?

Presumably it happens if VS' per-user settings get reset, but I'm not sure what might be triggering that.  @aarnott - have you heard of anything like this?

Some minutes ago there was an update for Visual F# Tools to v <IP_ADDRESS>71401, and as I expected, this did not trigger the problem. I am waiting for the next update to VS, and believe there is a good chance that that will trigger the problem, especially after reading @cdrnet 's comment.
I'd like to report one more possible issue with Nightly updates, and I report it here for the same reasons as for the first report. The nightly updates used to run automatically. They no longer do. I have to start the update manually by clicking the Update button.

This doesn't bother me at all, but is it supposed to be like this? It doesn't make sense to me, since the settings suggest it should still be completely automatic, and it was automatic earlier. This is what Extensions and Updates looks like:

If that's a bug, shall I file it separately? In this repo?

I'm afraid this isn't my area. @alexeyler may be able to help.

Thanks - this definitely sounds like a bug - I'll log it internally. @BentTranberg please loop back if you find that a VS update removes the private gallery again.

@BentTranberg could you please share more information regarding any reproduction steps for this issue? We have been unable to reproduce this internally with VS 15.2.
We also believe this bug may be fixed in 15.3. If you want, you can sign up for preview builds of VS here. If you do sign up, please let us know if this fixes your issue.

I just now updated from VS 2017 v15.2 (26430.15) to VS 2017 v15.2 (26430.16). The entry for Visual F# Nightly did not vanish from the gallery. Well, at least that's some information.
@dgriffen, I don't know of any way to reproduce this. I guess the only thing I can do is to keep track of what I do in VS, so that hopefully I can tie it to some activity, or not.
Since you believe it's fixed, maybe it should be closed here to keep the noise down, but I will continue to report any findings of interest. If later it turns out not to be fixed at 15.3 or beyond, then I can grab your attention again.

The second issue I reported here - Visual F# Nightly update no longer running completely automatically - was not present in VS Preview when I upgraded the preview from 15.0.26621.2 to 15.3.26711.1. Good.

@BentTranberg if the issue occurs again, please use the report a problem dialog in VS. That way we can keep the noise down in this thread and get some automated telemetry data from your VS instance. I agree that this issue should probably be closed.

Closing as per request.  Thanks a bunch @dgriffen and @AlexEyler!


Why do we have units.none and units.no_unit?

In all of my amuse related programming, i've never actually had to resort to units.none and/or units.no_unit, so after reading #28 I just couldn't restrain myself from asking:
Why do we have units.none and units.no_unit? What is their purpose?
What can you do with units.none that you couldn't with a simple numpy ndarray?

Btw, I'm not asking why we have them both, I'm asking why we have them at all.

there use is limited, and normally they are dropped whenever encountered,  but see e.g. the definition of deg and rad units


Can't get it to work

I'm completely new to Ruby so this is very likely my fault somehow, but when following the exact example you have in your README.md file I get this object which doesn't contain the meaning:
#<DictionaryRB::Word:0x007ff99a85ab38 @word="pudding">

Do you have any idea what the issue could be?

@abejfehr : I'm sorry. Wasn't notified on when this issue was filed up.
That is the object for the word, you have to explicitly call .meaning on that to fetch meaning. I'm in process of updating the library and add more interesting features. If you are still using it (or intend to use it), I will be delighted to keep you updated on this. :)


Add overview and samples to CM similar to Azure.Core

All the samples similar to - https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/readme.md

@KrzysztofCwalina will know more about it, since he asked me to create this work-item :)

mainly for users of client libraries. We want them to understand that they can change retires (just the number of retries first), that there is a pluggable pipeline, that there are protocol methods, ClientResponse, etc.

For end-user, I would suggest following a structure something like:

Configuring the client/Configuration

Passing credentials
Using client options

NetworkTimeout
Add a custom policy
Configuring retries
Customizing the transport

custom HttpClient
proxies

Freezing

Calling client methods

Convenience methods/Response

Client method return values

ClientResult<T>
ClientResult<T?>

HTTP thru Response

Status
Headers
Content/ContentStream

Exception handling

Protocol methods

How to use

Creating BinaryContent input
Using ClientResult return value

Configuring a request/RequestContext

CancellationToken
ErrorOptions
Headers: add vs. set
Add a custom policy
Freezing

Model Reader Writer samples

TBD per @m-nash

Mocking

Punt for now?


Update channels library with API review feedback/requests

Change namespace from System.Threading.Tasks.Channels to System.IO.Channels
Rename Readable/WritableChannel to ChannelReader/Writer
Rename Channel.In/Out to Reader/Writer
Remove virtual ReadAsync, GetAwaiter, AsObserver, AsObservable methods
Rename ClosedChannelException to ChannelClosedException
Rename BoundedChannelFullMode.Ignore to DropWrite
Add per-channel type options bags for parameters

I still have reservations about:

The System.IO.Channels namespace.  There's nothing in this library that's specific to I/O.  I think it'd be better as System.Threading.Channels.
Removing ReadAsync.  I get that we don't like using exceptions for control flow.  But a) that's only relevant if you use the channel closing functionality, such that you may get an exception once there's no more data to read, b) it hampers the ability to make Channel.CreateUnbuffered useful, c) it's a very useful convenience method for writing concise reading code, and d) implementations can provide a more efficient implementation than can be done on top of the rest of the surface area.

I've still incorporated the feedback, but we should revisit both of those.
I also deleted a bunch of tests along with deleting the various methods mentioned; we should rerun code coverage analysis and fill any gaps that may have been left.

@stephentoub @KrzysztofCwalina
Have you considered making  channels and readers/writers public types?
Given the recent changes in JIT calling sealed methods directly instead of going via virtual dispatch can be much faster, at least for SingleConsumerUnboundedChannel.
Though I haven't tested the performance yet

Have you considered making channels and readers/writers public types?

I've gone back and forth on that.  It can avoid some overhead.  It also complicates things, e.g. currently Channel.CreateUnbounded(...) might return one of a few different concrete types.  We couldn't continue with this pattern if we wanted the methods to return the strong-typed channels in the public API.  A developer could of course cast to them if it knew which it was getting, but we could also do that later by exposing the concrete types if we cared to.

@stephentoub, should we merge?


powershell use it, how-to

Hi @mbdavid
If I want to use it in powershell, is it possible?
Thanks
Eric Xin

I have found the answer, thanks.


Reduce the amount of Load() calls

What would you like to have changed?
Reduce the amount of Load() calls to reduce strain on the underlying storage.
Perhaps a mechanism could be implemented where the first attempt to load a particular key actually calls Load(), while future calls wait for the first call to finish using sync.Cond.
Why is this feature a useful, necessary, and/or important addition to this project?
After deploying my web application during a DDoS attack, Load() was called 28774 times[^1], causing my database to become unresponsive.
Edit: After looking at other open issues I found https://github.com/caddyserver/certmagic/issues/174 which is the same as this issue.
Edit 2: I had to implement something similar, and using channels is much easier than using sync.Cond. Simply wait using <-channel and release using close(channel).
[^1]: I checked this by logging every call to Load() in my storage implementation and running grep and wc -l

Just saw your edit; so in your case, checking the ask endpoint first would have solved the problem?

On demand TLS is a feature of CertMagic, and the ask endpoint is a special DecisionFunc for on demand mode that caddy exposes.
So you're not using on demand TLS?
What were the characteristics of the attack, were they TLS handshakes all with different hostnames in the SNI?

I see. I do use on demand TLS, and all TLS handshakes had the same domain, one that's whitelisted by my DecisionFunc. Because of latency to the database, it takes a little while for the certificate to be loaded and cached, and in that time period, every TLS handshake causes another load from the database for the same certificate.

Ah. Ok, let me look into that.
We have sync around obtaining a cert during multiple handshakes, but not loading from the db.

Hey @GitRowin,
We approached the Load() problem by caching certificates in BadgerDB: https://github.com/diamondcdn/badger-s3, which seems to cache certificates quicker and help reduce load on our buckets.
This is not the end solution: there's still gap time in requesting the certificate and then storing it in Badger where requests can flood our bucket. @mholt is there any update on this?

@GitRowin @edwardwc Apologies for the delay. Big life changes last year... and I've gotten very behind!
I have pushed a commit c0dc632 that I believe works. Could you please verify?
This should cause only 1 access to storage (per CertMagic instance) while other goroutines wait for the first one to cache the certificate in memory. After that, the others will be unblocked and simply read it from memory.

It does not seem work properly. All waiting requests time out.
Server:
1.6749229003708549e+09  info    maintenance     started background certificate maintenance      {"cache": "0xc0001925b0"}
[98460] 2023/01/28 16:21:41 Load certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].key
[98460] 2023/01/28 16:21:41 Load certificates/acme-v02.api.letsencrypt.org-directory/wildcard_.[removed]/wildcard_.[removed].key
2023-01-28T16:21:41.936Z        INFO    on_demand       certmagic@v0.17.3-0.20230117044846-c0dc63288ace/handshake.go:469        obtaining new certificate       {"remote_ip": "[removed]", "remote_port": "53395", "server_name": "[removed]"}
[98460] 2023/01/28 16:21:41 Exists certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].crt
[98460] 2023/01/28 16:21:41 Store rw_test_4661203415148165149
[98460] 2023/01/28 16:21:41 Load rw_test_4661203415148165149
[98460] 2023/01/28 16:21:41 Delete rw_test_4661203415148165149
2023-01-28T16:21:41.936Z        INFO    obtain  certmagic@v0.17.3-0.20230117044846-c0dc63288ace/config.go:486   acquiring lock  {"identifier": "[removed]"}
[98460] 2023/01/28 16:21:41 Lock issue_cert_[removed]
2023-01-28T16:21:41.937Z        INFO    obtain  certmagic@v0.17.3-0.20230117044846-c0dc63288ace/config.go:503   lock acquired   {"identifier": "[removed]"}
[98460] 2023/01/28 16:21:41 Exists certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].crt
2023-01-28T16:21:41.937Z        INFO    obtain  certmagic@v0.17.3-0.20230117044846-c0dc63288ace/config.go:512   obtaining certificate   {"identifier": "[removed]"}
[98460] 2023/01/28 16:21:41 Load certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].key
[98460] 2023/01/28 16:21:41 Load acme/acme-v02.api.letsencrypt.org-directory/users/[removed]/[removed].json
[98460] 2023/01/28 16:21:42 Store acme/acme-v02.api.letsencrypt.org-directory/users/[removed]/[removed].json
[98460] 2023/01/28 16:21:42 Store acme/acme-v02.api.letsencrypt.org-directory/users/[removed]/[removed].key
1.6749229023421822e+09  info    waiting on internal rate limiter        {"identifiers": ["[removed]"], "ca": "https://acme-v02.api.letsencrypt.org/directory", "account": "[removed]"}
1.674922902342253e+09   info    done waiting on internal rate limiter   {"identifiers": ["[removed]"], "ca": "https://acme-v02.api.letsencrypt.org/directory", "account": "[removed]"}
1.6749229026015735e+09  info    acme_client     trying to solve challenge       {"identifier": "[removed]", "challenge_type": "tls-alpn-01", "ca": "https://acme-v02.api.letsencrypt.org/directory"}
[98460] 2023/01/28 16:21:42 Store acme/acme-v02.api.letsencrypt.org-directory/challenge_tokens/[removed].json
[98460] 2023/01/28 16:21:42 http: TLS handshake error from <IP_ADDRESS>:37738: EOF
2023-01-28T16:21:42.738Z        INFO    certmagic@v0.17.3-0.20230117044846-c0dc63288ace/handshake.go:68 served key authentication certificate   {"server_name": "[removed]", "challenge": "tls-alpn-01", "remote": "<IP_ADDRESS>:25770", "distributed": false}
2023-01-28T16:21:42.824Z        INFO    certmagic@v0.17.3-0.20230117044846-c0dc63288ace/handshake.go:68 served key authentication certificate   {"server_name": "[removed]", "challenge": "tls-alpn-01", "remote": "<IP_ADDRESS>:36038", "distributed": false}
2023-01-28T16:21:42.877Z        INFO    certmagic@v0.17.3-0.20230117044846-c0dc63288ace/handshake.go:68 served key authentication certificate   {"server_name": "[removed]", "challenge": "tls-alpn-01", "remote": "<IP_ADDRESS>:62718", "distributed": false}
[98460] 2023/01/28 16:21:42 Delete acme/acme-v02.api.letsencrypt.org-directory/challenge_tokens/[removed].json
1.6749229029592423e+09  info    acme_client     authorization finalized {"identifier": "[removed]", "authz_status": "valid"}
1.6749229029592626e+09  info    acme_client     validations succeeded; finalizing order {"order": "https://acme-v02.api.letsencrypt.org/acme/order/[removed]"}
1.67492290376241e+09    info    acme_client     successfully downloaded available certificate chains    {"count": 2, "first_url": "https://acme-v02.api.letsencrypt.org/acme/cert/[removed]"}
[98460] 2023/01/28 16:21:43 Store certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].key
[98460] 2023/01/28 16:21:43 Store certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].crt
[98460] 2023/01/28 16:21:43 Store certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].json
2023-01-28T16:21:43.762Z        INFO    obtain  certmagic@v0.17.3-0.20230117044846-c0dc63288ace/config.go:598   certificate obtained successfully       {"identifier": "[removed]"}
2023-01-28T16:21:43.762Z        INFO    obtain  certmagic@v0.17.3-0.20230117044846-c0dc63288ace/config.go:495   releasing lock  {"identifier": "[removed]"}
[98460] 2023/01/28 16:21:43 Unlock issue_cert_[removed]
[98460] 2023/01/28 16:23:43 http: TLS handshake error from [removed]:53395: timed out waiting to load certificate for [removed]
[98460] 2023/01/28 16:23:43 Load certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].key
[98460] 2023/01/28 16:23:43 Load certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].key
[98460] 2023/01/28 16:23:43 Load certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].crt
[98460] 2023/01/28 16:23:43 Load certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].json
[98460] 2023/01/28 16:23:43 Load certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].crt
[98460] 2023/01/28 16:23:43 Load certificates/acme-v02.api.letsencrypt.org-directory/[removed]/[removed].json
[98460] 2023/01/28 16:23:43 Load ocsp/[removed]-[removed]
[98460] 2023/01/28 16:23:43 Load ocsp/[removed]-[removed]
[98460] 2023/01/28 16:23:43 Store ocsp/[removed]-[removed]
[98460] 2023/01/28 16:23:43 http: TLS handshake error from [removed]:43294: write tcp [removed]:443->[removed]:43294: i/o timeout
[98460] 2023/01/28 16:23:43 Store ocsp/[removed]-[removed]

Client:
C:\Users\Rowin>curl https://[removed]/ -v
*   Trying [removed]:443...
* Connected to [removed] ([removed]) port 443 (#0)
* schannel: disabled automatic use of client certificate
* ALPN: offers http/1.1
* schannel: failed to receive handshake, SSL/TLS connection failed
* Closing connection 0
curl: (35) schannel: failed to receive handshake, SSL/TLS connection failed

C:\Users\Rowin>curl https://[removed]/ -v
*   Trying [removed]:443...
* Connected to [removed] ([removed]) port 443 (#0)
* schannel: disabled automatic use of client certificate
* ALPN: offers http/1.1
* ALPN: server accepted http/1.1
> GET / HTTP/1.1
> Host: [removed]
> User-Agent: curl/7.83.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Cache-Control: no-store
< Content-Length: 13
<
[removed]
* Connection #0 to host [removed] left intact

I also noticed that DecisionFunc is only used to determine whether a TLS certificate should be obtained/renewed for a given server name, and not whether it should be loaded. This means someone could spam TLS handshakes with bogus server names, each causing a load from the storage.
This is how I fixed it myself:
certMagic := ...

tlsConfig := &tls.Config{
	GetCertificate: func(info *tls.ClientHelloInfo) (*tls.Certificate, error) {
		if info.ServerName != "example.com" {
			return nil, errors.New("name not allowed: " + info.ServerName)
		}
		return certMagic.GetCertificate(info)
	},
...

Is this fine?

@GitRowin Ah, yes that's #174 -- I think we can implement this as well. Hopefully the 'ask' endpoint is very fast, so as to minimize latency on that first handshake.
As for the timeouts, let me look closer when I have a chance.

I'm working on this finally and will have something for you to test soon (hopefully!)

@GitRowin Phew, sorry -- want to test 6670b5e? It should now sync so that only one TLS handshake actually loads the cert from storage.

Inside checkIfCertShouldBeObtained you changed
if cfg.OnDemand.DecisionFunc != nil {
	return cfg.OnDemand.DecisionFunc(name)
}

to
if cfg.OnDemand.DecisionFunc != nil {
	return fmt.Errorf("decision func: %w", cfg.OnDemand.DecisionFunc(name))
}

which broke DecisionFunc because now it never returns nil:
certificate is not allowed for server name [removed]: decision func: %!w(<nil>)

D'oh, that's embarrassing. One code path I hadn't tested. This is why I shouldn't review my own diffs at midnight.
Sorry, one last time? :innocent: 69cca0e742a33c4ea9797632439de01b11be2ae6

After certificate obtained successfully and releasing lock, I am getting a bunch of timed out waiting to load certificate for [removed] and after that no certificate available for '[removed]' until it eventually loads the certificate and works. Not sure what's going on.

Hmm, that is weird. Thanks @GitRowin. Could I give you a branch with some debug logs to try?

Duh -- I think I know why. After obtaining a cert, getCertDuringHandshake() is called again (technically it's recursive) which tries loading the cert from memory first, then obtains a lock to until someone else loads it (or obtains it), even though it is the goroutine that originally obtained it in the first place! In other words, there's not a bypass to allow that same goroutine to actually load the cert from disk into memory, which should make all other goroutines be able to access it in sync. Let me fix.

@GitRowin Ok ok, last one this time, I promise :upside_down_face: I tested this one myself with multiple requests and it works for me, so I am hoping it will work for you! :smile:
See 25b5504 -- and let me know how it goes :+1:

Looks like it works now, thank you! 🎉

Yay! Thanks for verifying, and am glad to have these improvements done.


Accents not working

Current behavior: when pressing a key for a long time, nothing more happens that the normal key highlight on press
Expected behavior: when pressing a key for a long time, I should see a list of alternate letters (like é, è, ê and others for the "e" letter f.e.) that can be selected to create Latin accent characters

https://github.com/LiteKite/Android-IME/pull/4 should fix it


Team city code inspection fixes.

Add reference to Google.Protobuf.dll to TestData.csproj to fix new code inspection errors that have shown up on TeamCity.

I'm reading up on that...
https://www.jetbrains.com/help/resharper/MemberHidesStaticFromOuterClass.html

I think I'll leave this one to you and Nick.


Add support for .gitcookies login

The chromium project uses a .gitcookies file to authenticate with Gerrit: https://dev.chromium.org/chromium-os/developer-guide/gerrit-guide.
The .gitcookies file is a Netscape HTTP Cookie file: https://curl.haxx.se/docs/http-cookies.html.
This file shows how to authenticate with the .gitcookies file: https://android.googlesource.com/platform/development/+/master/tools/repo_pull/gerrit.py#45
Would it be possible to add support for this in the Gerrit plugin so Chromium developers can use it?

@thughes: This affects only Google-internal setups of Gerrit, right? Public Gerrit instance (e.g. https://chromium-review.googlesource.com/) should work fine with this plugin.

No, I believe it affects the public one (at least when I tried it a few
months ago), since it uses the same login mechanism.
On Fri, Sep 27, 2019 at 12:28 Urs Wolfer<EMAIL_ADDRESS>wrote:

@thughes https://github.com/thughes: This affects only Google-internal
setups of Gerrit, right? Public Gerrit instance (e.g.
https://chromium-review.googlesource.com/) should work fine with this
plugin.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/uwolfer/gerrit-intellij-plugin/issues/365?email_source=notifications&email_token=AADIV5E6V6WXO6UHF5S67U3QLY7CJA5CNFSM4I27XU4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZSQYI#issuecomment-536029281,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADIV5FOWWEQRRSTYNYTQ6DQLY7CJANCNFSM4I27XU4A
.

@thughes: I'm able to connect to gerrit-review.googlesource.com by setting HTTP credentials. Can you please try if that works for your instance as well?

@uwolfer Did you try against the Chromium gerrit instance: https://chromium-review.googlesource.com/?
It looks like you might have authenticated against the "Gerrit" Gerrit instance, which may have different settings. It appears that the Chromium instance is configured to only allow .gitcookies credentials: https://www.chromium.org/developers/gerrit-guide

@thughes: I've just tried the plugin against https://chromium-review.googlesource.com/ and it works fine.
It works the same way as https://gerrit-review.googlesource.com/
It's a bit of manual work to do:
Settings -> HTTP Credentials -> Obtain password
Then search for the line in the text area starting with chromium-review.googlesource.com and extract username and password:
chromium-review.googlesource.com,FALSE,/,TRUE,12345678,o,git-username.gmail.com=password-until-end-of-line
You probably want to add a note to your documentation how to get this task done?

Thanks, that does work. I thought I had tested that, but I guess not. Thanks for updating the README.

To clarify, that line in the Obtain password field is precisely what ends up in the .gitcookies file.


On Seeding - Punish time

hi there.
We have the following problem: We want to modify the seeding rules. If we set the number of "punish" to infinity (-1) in the config.yml and the punish_interval_seconds to 20, then the player in the red zone will be punished constantly after 60 seconds. Our setting of 20 seconds is not applied. Where (in which file) do we have to make adjustments to get the desired effect?

Punishment intervals don't apply to red zone rules due to limitations. More specifically, it looks for the player's Offensive score to increase, which happens for every 60 seconds the player has spent in enemy territory.

Thank a lot. Got it.


[Feature] Assure compatibility with b13/container, (and perhaps further extensions ?)

in  paste-reference.js lines 163-165 it states:
if (!$(this).find('.icon-actions-plus').length) {   return true; }
Thats fine, but b13/container uses .icon-actions-add for the icon, which is an alias for the icons-action-plus icon. So right now it returns here and the paste icons in b13/container columns are not decorated. This could be true for other extensions and setups as well.
maybe it should test for the paste-icon or button.t3js-paste directly instead of testing for the adjacent button?
If you want I can open a new ticket for this?
Originally posted by @foppelfb in https://github.com/Kephson/paste_reference/issues/70#issuecomment-2499180203

I wanted to open a new issue but maybe/probably my issue is related to this.
Pasting a reference within a container causes the element to be pasted at the end of the page, because the target is determined with the closest .t3js-page-ce element:
https://github.com/Kephson/paste_reference/blob/main/Resources/Public/JavaScript/paste-reference-drag-drop.js#L93-L98
https://github.com/Kephson/paste_reference/blob/main/Resources/Public/JavaScript/paste-reference-drag-drop.js#L32
If you paste inside an empty column there's an element closest without a data-uid and thus the fallback to the page is activated.
The colPos is set correctly but because the target isn't correct (and the tx_container_parent is 0 is not set but I've not found out if that's because of the wrong target or another issue) it immediately shows up as an unused element.


1024px vs 2048px image is same?

Here I will demonstrate what I mean
First image

Used configs

Second image

Used configs

And here 3 rd image which I used Lanczos

As you can see the model generates same image and just upscale with something which is even worse than upscale of paint .net Lanczos

I think so as well. I have tried the model as well and no matter what resolution you chose it generates the same image. Generate it lower resolution it takes X time and the image is downscaled. Generate it in 4K and it takes the same time, but the image seems upscaled.... I don't know, but something seams fishy!

According to the code, the inference code only support 1024px images generation. If use the different resolution rather than settings in the default config, it seems like just using the Lanczos upsample.

@ShaochengShen this explains a lot
so it is hard coded
can  we change it do you think?

@FurkanGozukara
I just emailed the author, and according to the response, the "bilinear interpolation" is primarily used to constrain resolutions. However, the quality of the generated image cannot be guaranteed if we use a 1024px checkpoint to generate higher-resolution images. Therefore, to produce higher-resolution pictures (e.g., 2048px or 4096px), we need to wait for the release of 2k or 4k checkpoints.
Btw, we can use other methods to improve the gen quality.

@ShaochengShen thanks. so they gonna publish higher resolution checkpoints?

I tried it yesterday and the model downloading is a 1024x-named model. Should be saying alot. As you said... We need to wait for 2048x and/or 4096x models to be realeased. Question is how well the bragging about speed and VRAM-usage works with those models 🤔

We will release 2K and 4K checkpoints very soon. Thank you for your patience!

@Kallamamran
Actually, you can try to gen 2K or 4K pics now by yourself. The speed and VRAM-usage can be test without ckpts. With my experiment, 2K pics can be generated in 5s on Nvidia RTX 4090, 4K pics need more than 20s and more consumption of GPU resource.
Btw, I recommend a plug-in method which can generate pics faster and keep the gen quality. Maybe can improve sana. https://github.com/haoningwu3639/MegaFusion


Fix: Data Policy Link Removed

Pre-flight checklist

[x] I have read the Contributing Guidelines on pull requests.
[ ] If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
[ ] If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

Data policy removed in Footer and wherever it used due to its wrongly redirecting to Privacy policy page
Test Plan
I've checked by seen the Footer, Now Data Policy removed from Footer and also wherever it's used
Test links

Deploy preview: https://deploy-preview-9024--docusaurus-2.netlify.app/
Related issues/PRs
https://github.com/facebook/docusaurus/issues/9015

Please check and Merge this PR


Bintray

Since Bintray will be shutting down next week, how about using the GitHub Pakage Registry to host Maven builds? With a little bit of configuration, a snapshot build can be created on every commit to the master branch using GitHub Actions.
This repository has an example of the necessary configuration. Basically there are three things necessary:

Add a distributionManagement section to pom.xml pointing to GitHub Packages.
Create an action to publish on every push to the master branch.
Create a personal access token so the action has permission to publish the package.

I'd appreciate it too..

I know it took me forever, but it's finally done: I have deployed version 1.0.2 to a GitHub Package Registry for this repository, and updated the README so it reflects it :-).
I believe there is also a 1.0.0 release on Maven Central, based on a fork of this repository:
https://search.maven.org/artifact/com.github.krraghavan/xeger/1.0.0-RELEASE/jar


[Draft] Add support for deploying external ceph cluster

OSPRH-2737 - Support external Ceph deployment
Adds support for deploying external ceph cluster via the architecture repo
As a pull request owner and reviewers, I checked that:

[ ] Appropriate testing is done and actually running
[ ] Appropriate documentation exists and/or is up-to-date:

[ ] README in the role
[ ] Content of the docs/source is reflecting the changes

This commit message needs to be fixed.
Deploys ceph on non-edpm nodes by using two nodesets, one defined for EDPM and the other for Ceph nodes
I think you meant  this.
Deploys ceph on EDPM nodes which are not Compute nodes.
Not all EDPM nodes are compute nodes. For example, the EDPM nodes in this patch are not compute nodes.
EDPM nodes are dataplane nodes. They are usually compute nodes, but not always.

@rachael-george thanks but could you try this as a DT instead?
Ultimately the same executions will happen but the implantation will be described in the architecture repos as CRs  and a structure [1] of the order that they will be run
[1] https://github.com/openstack-k8s-operators/architecture/blob/main/automation/vars/default.yaml

I have updated the PR going in the direction of supporting external Ceph deployment through the architecture repo. However, there might be some changes required in the ci-framework repo as well, which this PR will track now

Depends on #1224

/approve
we can refine if needed.


PackageConfig mishap

Hi!
I'm trying to use the package config file of clFFT (big congrats on providing one), but it seems I'm doing something wrong. Without using FindclFFT.cmake, CMake fails to find the config files, both on Windows and Ubuntu. On Windows I have a registry entry such as:
PS C:\Users\Matty> Get-ItemProperty -Path HKCU:\SOFTWARE\Kitware\CMake\Packages\

clFFT_2.6.1  : C:\Kellekek\AMD\clFFT\2.6.1\CMake
PSPath       : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Kitware\CMake\Packages\
PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_CURRENT_USER\SOFTWARE\Kitware\CMake
PSChildName  : Packages
PSDrive      : HKCU
PSProvider   : Microsoft.PowerShell.Core\Registry

and also on Linux:
mnagy@opteron:~/Build/clFFT_Test/opteron$ cat ~/.cmake/packages/clFFT_2.6.1.package
/opt/AMD/clFFT/2.6.1/lib64/cmake/clFFT

but every time I configure a project, I get the following error:
mnagy@opteron:~/Build/clFFT_Test/opteron$ cmake -D CMAKE_BUILD_TYPE=Release ~/Develop/clFFT_Test/
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning at CMakeLists.txt:39 (find_package):
  By not providing "FindclFFT.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "clFFT", but
  CMake did not find one.

  Could not find a package configuration file provided by "clFFT" with any of
  the following names:

    clFFTConfig.cmake
    clfft-config.cmake

  Add the installation prefix of "clFFT" to CMAKE_PREFIX_PATH or set
  "clFFT_DIR" to a directory containing one of the above files.  If "clFFT"
  provides a separate development package or SDK, be sure it has been
  installed.

CMake Warning at CMakeLists.txt:40 (find_package):
  By not providing "FindOpenCL.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenCL", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenCL" with any
  of the following names:

    OpenCLConfig.cmake
    opencl-config.cmake

  Add the installation prefix of "OpenCL" to CMAKE_PREFIX_PATH or set
  "OpenCL_DIR" to a directory containing one of the above files.  If "OpenCL"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/mnagy/Build/clFFT_Test/opteron

Without providing CMAKE_PREFIX_PATH on the command-line, the paclage config files do not work. What exactly am I doing wrong? According to the CMake wiki
http://www.cmake.org/Wiki/CMake/Tutorials/Package_Registry
it should be working automatically (as is the whole purpose of packages).

Closing this old issue; would have to revisit later, after having inputs from @kknox


Add missing template for bootstrap

This PR will fix a bug using Django 1.9. The template is missing.

Current coverage is 96.07%

Merging #551 into dev will not affect coverage as of c2b2507

@@              dev    #551   diff @@
=====================================
  Files          24      24
  Stmts        2422    2422
  Branches      216     216
  Methods         0       0
=====================================
  Hit          2327    2327
  Partial        41      41
  Missed         54      54

Review entire Coverage Diff as of c2b2507

Powered by Codecov. Updated on successful CI builds.

PING

PING

Already added in #520

Already added in #520

Could you make a release then ?

Could you make a release then ?

Coming w/b 4th Jan

Coming w/b 4th Jan

Perfect, thank you.

Perfect, thank you.

Some news ?

Please could you re-open it ? This is for bootstrap, not boostrap3 ;)
If you could hotfix the v1.6.0 with a v1.6.0 it'll be perfect.

Ah.  OK. I'll reopen and assess.

For Bootstrap you're better off using Form Actions rather than Button Holder.
If you need it before the next release just put the missing template in your own project where it can be picked up.


added documentation explaining how to create a checker

So this is the results of my first experience with Infer.
I have added a new document explaining how to create a Checker.
This is based on the thread https://github.com/facebook/infer/issues/299/.
I think this resource is useful in the official documentation since it will help developers to get saturated contributing to Infer.
Feel free to change it or use it however you want.

Thank you for the great document!


Add parsl.addresses to reference guide

Partly addresses #648

I think both your comments relate you having a different interpretation of what "correct" means... I mean correct as in "it will work when passed into htex as the public IP address" rather than "an address was successfully discovered using the described mechanism". Let me pick a better wording to reflect this.

Fixes #648

I've changed the term '(in)correct' to '(un)usable' which I think better reflects what I intended.
I've also added a docstring for the whole module.


feat(contact-section): added contact form in the contact page

Hi, @anuragverma108   – Project Admin &  @PriyaGhosal  -Project Collaborator. I resolved my issue please check and merge it
if every thing is good.

Contact Form:

Added a user-friendly contact form on the right side for users to easily submit their inquiries.
The form includes fields for first name, last name, email, address, and message.

Contact Information:

Replaced the previous paragraph with detailed contact information on the left side, including:
Call Us: Phone numbers for immediate support.
Location: Address for physical correspondence.
Business Hours: Clear hours of operation for user convenience.

3.Styling Improvements:

Adjusted the layout to ensure equal spacing on the left and right edges of both the contact form and the info section.
Enhanced the visual appeal with consistent styling and responsive design adjustments for various screen sizes.

4.Purpose:

These updates aim to improve user engagement and accessibility by providing clear contact options and a streamlined experience for reaching out to our organization.

5.Reviewers:
-Please review the changes and provide feedback on functionality and design. Your insights are valuable in ensuring the contact section meets user needs effectively.

i resolved the conflict please check my pr request @anuragverma108

Resolve the conflicts in the mentioned files. Ensure you pull all the latest changes before pushing your feature/bug fixes to the main branch. After resolving the conflicts, please open a new PR for review.
Thank you!


TF Connect login Screen not clear with 3bot

Feedback
A cloud provider is testing the grid and remarked that the login page is somewhat unclear with how it states 3bot in parentheses:

Maybe it could be either of the following, so we make sure 3bot stands apart:

Type in your Threefold Connect ID (i.e. 3Bot ID)
Type in your Threefold Connect ID (i.e. ThreeFold/3Bot ID)

That happened to me. To be honest, it was at the end of the day after reading a lot (about threefold).
I would make this a low priority unless other ppl are mentioning it.

the new enhancement not applied yet.


Remove example

For rationale on why this was done, please read #192.

This PR also removes the interface builder demo gif from the README as its outdated and makes the page bloated.


BUG: Unhandled error in plugin series_premiere: Series flagged invalid

Actual behaviour:
BUG: Unhandled error in plugin series_premiere: Series flagged invalid
Traceback (most recent call last):
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/task.py", line 483, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/plugins/filter/series_premiere.py", line 63, in on_task_metainfo
    if guess_entry(entry, allow_seasonless=allow_seasonless, config=group_settings):
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/plugins/metainfo/series.py", line 47, in guess_entry
    populate_entry_fields(entry, parsed, config)
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/plugins/filter/series.py", line 941, in populate_entry_fields
    entry['series_id'] = parser.pack_identifier
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/plugins/parsers/parser_common.py", line 555, in pack_identifier
    return self.identifier
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/plugins/parsers/parser_common.py", line 546, in identifier
    return self.identifiers[0]
  File "/usr/local/flexget/env/lib/python2.7/site-packages/flexget/plugins/parsers/parser_common.py", line 531, in identifiers
    raise Exception('Series flagged invalid')
Exception: Series flagged invalid

Steps to reproduce:
flexget execute --tasks HDClub
Config:
http://pastebin.com/X2VVWVey
Log:
http://pastebin.com/0mPtf6bn
Additional information:

Flexget Version: 2.10.10
Python Version: 2.7.13
GuessIt 2.0.4
Installation method: pip
OS and version: Synology DSM 6.1
Link to crash log:  http://pastebin.com/8PEab1UN

Duplicate of #1098. The best you can do is stop using guessit. The maintainer of that plugin is too busy to fix it apparently.

Hello, thank you for reply.
#1098 was closed as duplicate of #735, and it was closed with Unable to reproduce
So I did not find info that this is known bug. Should I refer this Issue on guessit GitHub?

No, we'll just let this issue stand. Don't get your hopes up though.

I had this with the 7x1 from GoT :-(
No word since that from the dev of guessit?


prometheus add SetEnabled

fixed #1231

see #1231
closing, better to customize the metrics, instead of starting another agent.


[Bug]: The auto height with limits placement indicators are not respecting the widgets placement

https://www.loom.com/share/3a2b98b72f8c43ff9b7667f424c1b0b9

we will be removing dynamic height properties for mobile responsiveness.
https://theappsmith.slack.com/archives/C040E1VG8P2/p1671535006461199

closing this bug since its not relevant for auto layout editor.
cc: @rohitagarwal88 @Sripriya93 @kamakshibhat-appsmith


Cannot remove data object if final replica is stale

[ ] main
[ ] 4-3-stable

Bug Report
Tested against potential 4.3.2 build of server and plugin.
Saw the following when the REP was enabled.
$ ils -l
/tempZone/home/kory:
  kory              0 demoResc            0 2024-04-01.10:52 X foo
$ irm -f foo
remote addresses: [IP REDACTED] ERROR: rmUtil: rm error for /tempZone/home/kory/foo, status = -1205000 status = -1205000 RE_RUNTIME_ERROR
Level 0: no good replica found: SYS_NO_GOOD_REPLICA

The log contained the following message.
"log_message": "no good replica found: SYS_NO_GOOD_REPLICA",

And this works fine without logical quotas enabled?

Yes.

The issue occurs here because that filesystem function filters out stale replicas.
https://github.com/irods/irods_rule_engine_plugin_logical_quotas/blob/b285ba0ac1e5c422621b067ea63b88a5e9d47b3f/src/handler.cpp#L1199
See its implementation for specifics.
https://github.com/irods/irods/blob/cd6b746802c6a5eaffb4f40a53cbe70d090c5f72/lib/filesystem/src/filesystem.cpp#L744-L763
The REP is designed to track the data size of data objects with at least one good replica. What should the REP do if there aren't any good replicas? Below are some ideas.

(a) Leave the data size value as is
(b) Subtract the size of the replica having the latest mtime

Option (a) seems like the best answer for the following reasons.

Replicas can become stale for multiple reasons, sometimes for unknown reasons
Replicas can be trimmed - what happens if the most recent replica is trimmed?
The REP gives admins a rule which can recalculate totals, which should be used to resolve accuracy/drift issues

Tracking the number of data objects is not affected by this.

Also, (a) makes sense because logical quotas is already 'ignoring' any object without a good replica.
Agreed, we should have a 'recalculate' rule... to manually correct any 'drift'.

Related to #94.


Vulnerability CVE-2020-28928 found against various alpine versions of python

Hi Team,
Vulnerability CVE-2020-28928 (https://nvd.nist.gov/vuln/detail/CVE-2020-28928) found against various alpine versions of python3.7.
I can't find a production image that scans clean nor can I find a way to remediate the vulnerability.
Request to provide some help around the resolution of the same.
Thanks,

Thank you @wglambert for the detailed information and update.
Highly appreciate it!


Implement Reconcile method for docker clusters

Description of changes
Nothing new, just putting together the pieces.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve