Add Swift Package Manager support

Swift PM is officially supported in Xcode 11 so it would be great if BulletinBoard supports it 🙂

I think it would be nice too! Unfortunately I don't think it supports embedding resources yet, so that will be tricky to support it since we need some images and strings.

As mentions in WWDC19 session 410, SPM will soon support resources. So, when this proposal is adapted, we will be glad if you can add SPM support.

And, I think there is another option. UIImage(systemNamed: "xmark") to generate a x mark image from iOS 13 new API with SFSymbols. This may be a good way to remove unnecessary resources in BLTN.@alexaubry

Or use UIGraphicsGetCurrentContext in iOS12 and lower

Looks like the proposal landed in Swift 5.3! https://github.com/apple/swift-evolution/blob/master/proposals/0271-package-manager-resources.md

I added a branch with SPM support: feature/spm-support. Can one of you please try it and let me know if something breaks?

Hey @alexaubry,
Thank you for adding SPM on your project :)
With this new version (SPM installation), we no longer have access to the "appearance" variable on BLTNPageItem class.
Is this normal?

@robergro It should still be there, could you send the error from Xcode so I can have a look?

Of course, here it is !

@robergro It should be fixed now, thanks for reporting! There were some issues with importing Objective-C from the package.

It seems Swift Package support for BulletinBoard is broken on Xcode 12:
target at '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-ezhoowqbocgzhycfoojnfdfrulyf/SourcePackages/checkouts/BulletinBoard/Sources' contains mixed language source files; feature not supported

It seems Swift Package support for BulletinBoard is broken on Xcode 12:
target at '/Users/xxx/Library/Developer/Xcode/DerivedData/MyApp-ezhoowqbocgzhycfoojnfdfrulyf/SourcePackages/checkouts/BulletinBoard/Sources' contains mixed language source files; feature not supported

If you use the feature/spm-support branch it will work, had the same problem yesterday. Seems like it hasn't been merged yet.

I could only add SPM  with develop branch.
SPM is supporting assets now. There is no need to use other things like cocaopod or whatever

@trevor-sonic Please check out #189 for details

This is available in 5.0 now. Thanks for your patience!


Add a Way for People to Delete Their Info

We need a command for users to delete their GitHub tokens so that they have a sense of security when giving us their GitHub tokens.
I'm thinking:
-github-delete-token
Your token has been permanently deleted

Closed as of #83.


[BUG]: Tests fail: E   ModuleNotFoundError: No module named 'test_ndarray_ext'

Problem description
All tests fail:
_______________________________________________________________________ ERROR collecting tests/test_make_iterator.py _______________________________________________________________________
ImportError while importing test module '/usr/ports/devel/py-nanobind/work-py39/nanobind-1.9.2/tests/test_make_iterator.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_make_iterator.py:1: in <module>
    import test_make_iterator_ext as t
E   ModuleNotFoundError: No module named 'test_make_iterator_ext'
__________________________________________________________________________ ERROR collecting tests/test_ndarray.py __________________________________________________________________________
ImportError while importing test module '/usr/ports/devel/py-nanobind/work-py39/nanobind-1.9.2/tests/test_ndarray.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_ndarray.py:1: in <module>
    import test_ndarray_ext as t
E   ModuleNotFoundError: No module named 'test_ndarray_ext'

Version: 1.9.2
Python-3.9
clang-18
FreeBSD 14.0
Reproducible example code
n/a

This is a setup issue on your end, likely a Python issue mismatch. Please don't open bug tickets unless you are 100% sure that this is, in fact, a bug with the library.

@wjakob
I am trying to create the FreeBSD port for nanobind.
For this I created a vanilla port in the FreeBSD framework, that runs build/install commands just like for thousands of other Python-based ports.
It builds, but tests fail.
The setup is standard.
Why would I believe that there is a setup or python problem when thousands of other ports build and test fine in the exact same environment?
What is the problem?


SGLang Integration

For local models, SGLang should be able to greatly improve the latency/throughput of MemGPU by using its fast JSON decoding and automatic KV cache reuse feature.
This issue tracks the integration of SGLang for local models

This is awesome. I've been waiting for this.


Trigger click event with jquery - no transition happens

When I trigger a click event on a link with jquery, not transition and pageload happens.
workaround? do i have to trigger another event?
i tried Barba.Dispatcher.trigger('linkClicked', $el.find('.link').get(0)); but with no effect.
$el.find('.link').trigger('click') no effect also.

Hi @3oax ,
If I understood correctly you want to fire a transition/page change with JS, right?
You can do that with Barba.Pjax.goTo - http://barbajs.org/docs/Barba.Pjax.html#.goTo
Is that what you want to achieve?

yes, exactly. it works, but with an exception:
the link specific transition is not fired.

@luruke I think Barba.Pjax.goTo should be documented in readme because it's quite important. Thanks.

@banago 👍
(Feel free to crate a pull request with it! I'm super busy in this period!)


Reading theme state?

Hi,
is it possible to get active themes via python-cozify in any way? Themes were briefly mentioned in the related thread on the Cozify forum. I understood that the hub does expose them but that's not supported by this project yet. Is this correct?

Awesome, thanks! It's been a while since I have touched python but I'll give it a shot.

I got the basic stuff working. Changing scene states works too. I tried to keep things consistent with existing code. There are no tests yet. Fiddling with what is basically the production environment is scary enough as it is. ;) https://github.com/Artanicus/python-cozify/pull/21

Code is merged and I added some basic tests to check sanity and test toggling if there's a scene called test. Overall the test suite doesn't still pass 100% because of silly lights that are tricksy with color changes but all other tests pass!
Will make a new release now.


[8.5.7] accessibility elements missing

Affected Version of Concrete CMS
8.5.x
Description
There are many places where core blocks or UI elements are not accessible (much of which has been fixed in v9+).
Here are a few examples:
Left and right calendar buttons don’t contain any text, but need to :

        <button type="button" class="fc-prev-button fc-button fc-state-default fc-corner-left">

        </button>
        <button type="button" class="fc-next-button fc-button fc-state-default fc-corner-right">

        </button>

    <button type="button" class="fc-today-button fc-button fc-state-default fc-corner-left fc-corner-right fc-state-disabled" disabled="">
      today
    </button>

Help button doesn't contain any text or other accessible elements either:

How to reproduce

Possible Solution
Update FullCalendar library and add accessibility elements such as aria-label or spans with .ccm-toolbar-accessibility-title class
Additional Context
No response

I don't see us doing a major push for this in 8.5.x. 8.5.x is in maintenance mode for security fixes.  Certainly updating the underlying library isn't likely to be updated if that's something that's required


Feedback Product Planning Draft

Questions, comments, feedback all is welcome.

I think the feedback is pretty clear. We will update the product planning.
We used epics because in the book, the author also used epics (which he explained as user stories that represents larger body of work). We were confused which method we should use to write the high-level product backlog.
We will use MoSCoW for the high-level product backlog then.
I do have one question; If we want to use MoSCoW to write the high-level product backlog (which is the requirement document that we've wrote), I am certain that we are over the maximum amount of pages (6). (Right now we are already close to 6 pages).
Do you have any advice how we can we can add it to the product planning? Should I add an appendix?

I have questions regarding, glossary, do you mean by SAT not clear, should we change to ASAT instead? And for DoD for documents, do I have to add that we need to have grammar/spelling changed for product planning, product vision?

@ClintonCao
I've seen the term used as well, feel free to use it if the book does as well.
Adding the MoSCoW as an appendix would be fine, just refer to it in the main text.

@SunweiWang The term SAT is fine, it's just that the word programme means something else than the word program
For the DoD, it's advised that you add these to make your definition as complete as possible

@breijm
Thanks for the answer, I will add the MoSCoW as an appendix.

Merging this pull request.


Can't load saved keras model.h5

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): pip
TensorFlow version (use command below): 2.1.0
Python version: 3.7
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: 10.2 & 10.1
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

Describe the current behavior
When loading the model with keras.models.load_model the activation functions are not recognized. This happens only when activation functions are not builtin strings
Describe the expected behavior
To load the model with success
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
import tensorflow as tf

layer = tf.keras.layers.Dense(1, activation=tf.keras.layers.PReLU(alpha_initializer='random_uniform', alpha_regularizer=None, alpha_constraint=None, shared_axes=None),\
                            name='layerX', kernel_initializer=tf.keras.initializers.he_normal())
model = tf.keras.Sequential(layer)
model.compile("adam", "binary_crossentropy", ["accuracy"])
model.fit([[1]], [1])
model.save("keras_model.h5", save_format='h5' ")
model = tf.keras.models.load_model("keras_model.h5")

EDIT: After reading the docs I saved the model with save_format h5, first time I tried without any format (the default is tf for tensorflow 2.0+)
Instead I found a workaround: I can load the model if I save it with (default) save_format='tf'
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
  File "C:\Users\Teo\OneDrive\Licenta\main.py", line 138, in <module>
    main()
  File "C:\Users\Teo\OneDrive\Licenta\main.py", line 135, in main
    model = keras.models.load_model(os.path.join(dataset_path, "keras_model.h5"))
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\saving\save.py", line 146, in load_model
    return hdf5_format.load_model_from_hdf5(filepath, custom_objects, compile)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\saving\hdf5_format.py", line 168, in load_model_from_hdf5
    custom_objects=custom_objects)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\saving\model_config.py", line 55, in model_from_config
    return deserialize(config, custom_objects=custom_objects)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\layers\serialization.py", line 106, in deserialize
    printable_module_name='layer')
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\utils\generic_utils.py", line 303, in deserialize_keras_object
    list(custom_objects.items())))
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\engine\sequential.py", line 377, in from_config
    custom_objects=custom_objects)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\layers\serialization.py", line 106, in deserialize
    printable_module_name='layer')
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\utils\generic_utils.py", line 305, in deserialize_keras_object
    return cls.from_config(cls_config)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\engine\base_layer.py", line 519, in from_config
    return cls(**config)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\layers\core.py", line 1082, in __init__
    self.activation = activations.get(activation)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\activations.py", line 450, in get
    identifier, printable_module_name='activation')
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\utils\generic_utils.py", line 292, in deserialize_keras_object
    config, module_objects, custom_objects, printable_module_name)
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_core\python\keras\utils\generic_utils.py", line 250, in class_and_config_for_serialized_keras_object
    raise ValueError('Unknown ' + printable_module_name + ': ' + class_name)
ValueError: Unknown activation: PReLU

@teodor440
Request you to share colab link or simple standalone code to reproduce the issue in our environment.It helps us in localizing the issue faster.Thanks!

@teodor440
Request you to share colab link or simple standalone code to reproduce the issue in our environment.It helps us in localizing the issue faster.Thanks!

https://colab.research.google.com/drive/1qZ8RuI-oNoTsD2uokHZztqeCb20RX3wR#scrollTo=_gMOL9xUPGha
I also updated the code in the issue

I have tried in colab with TF 2.1.0 , 2.2-rc3 and was able to reproduce the issue. Please, find the gist here.Thanks!

@teodor440 I was able to reproduce the issue with save_format='h5'. However, when I used save_format = 'tf' everything worked as expected. model.predict before saving and after loading are exactly same. Please take a look at the gist here. Thanks!

I am not familiar with the implementation of tensorflow, but seems like there is a problem with how tf sees keras models
I can recall the same value error when trying to convert the model to an estimator with  keras.estimator.model_to_estimator

Ok so the problem was that I specified the activations in the layers as something different than a string. For some reason or another this confuses the operations made on keras models by tf

@teodor440 You can use "tf" format as it is working well. But, this is still a bug with "h5" format. I will reopen the issue. Thanks!

You can see now at the collab link that the issue with saving h5 model doesn't persist anymore if using separate layers for dense and activation. So basically this is a workaround for the problem

Closing this issue since the associated PR has been merged and the issue is fixed. Thanks


Extension-specific Workbench Settings

VSCode Version: 1.12.2
OS Version: 10.12.4

User story: As a developer, I would like to have workbench styles based on file type. As someone who writes both Markdown files and JS in the same project, having the ability to have different workbench settings (i.e. theme, background color, etc.) based on file type would help.

This issue has already been reported. Please use the search function next time before reporting an issue and/or this time if you are curious about the progress of the issue.


Supported Device: Braava Jet m6

Roomba Model:
m6
Did It Work
No

Here is the plugin log
[02/11/2024, 16:52:43] [iRobot] Successfully reconnected to roomba Braava jet
[02/11/2024, 16:52:43] [iRobot] Roomba Braava jet  connection closed.
[02/11/2024, 16:52:44] [iRobot] Successfully reconnected to roomba Braava jet
[02/11/2024, 16:52:44] [iRobot] Roomba Braava jet  connection closed.
[02/11/2024, 16:52:45] [iRobot] Successfully reconnected to roomba Braava jet
[02/11/2024, 16:52:46] [iRobot] Roomba Braava jet  connection closed.
[02/11/2024, 16:52:47] [iRobot] Successfully reconnected to roomba Braava jet
[02/11/2024, 16:52:47] [iRobot] Roomba Braava jet  connection closed.
[02/11/2024, 16:52:48] [iRobot] Successfully reconnected to roomba Braava jet
[02/11/2024, 16:52:48] [iRobot] Roomba Braava jet  connection closed.
[02/11/2024, 16:52:49] [iRobot] Successfully reconnected to roomba Braava jet
[02/11/2024, 16:52:49] [iRobot] Roomba Braava jet  has been reconnecting too many times in the last 30 seconds, stopping...
This is probably related due to the limited (1) connection slots on the Roomba, try closing any other application on services that might be connected to the Roomba.
If this error persists, try restarting the Homebridge service or the Roomba, it is possible the IP address of the Roomba has changed.
[02/11/2024, 16:52:49] [iRobot] Roomba Braava jet  has been stopped, trying to reconnect in 5 minutes...
[02/11/2024, 16:52:49] [iRobot] Roomba Braava jet  connection closed.


Incororating feedback in organizational-influence metric

Updating the feedback based on the discussion in today's value meeting.
Signed-off-by: Vinod K. Ahuja<EMAIL_ADDRESS>

Anyone who merges this PR please add this update to the translation repo or ping me and I will add it to the translation repo.


Add SystemTimer API Documentation

Also removed comments for private variables as these are actually not
needed.
Resolves #780
Resolves #793

Coverage remained the same at 77.53% when pulling da7bb6b6b67b12b75a1aa204c9c6e94dd301691b on dac-api into 609cc2e1a3b3d4808f5d00e37d7693dfebc0021b on master.


Nh text fixtures update

Howdy!
I think this is the best place to put something like this. I made the requested updates.

looks great! thanks


BookStack version via API?

Attempted Debugging

[X] I have read the debugging page

Searched GitHub Issues

[X] I have searched GitHub for the issue.

Describe the Scenario
I'd like to retrieve the version of my BookStack instance through the API.
Is it possible?
Exact BookStack Version
v22.09.1
Log Content
No response
PHP Version
No response
Hosting Environment
Ubuntu

Hi @Bartiff, Please see https://github.com/BookStackApp/BookStack/issues/3343 for a previous discussion regarding this.

Ok sorry for that...


Species code database

Set up a searchable spreadsheet that contains all of the species and their corresponding AFSC species codes to pair with the imported biological data. @ Alicia

This has been encapsulated within #289 and can therefore be closed.


Periodically can't update spot_spotnodepool in place

Issue
Sometimes when updating in place the bid_price of a spot_spotnodepool I get an error like:

│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to
│ module.bid["us-east-iad-1--ch.vs1.2xlarge-iad"].spot_spotnodepool.bid[0],
│ provider "provider["registry.terraform.io/rackerlabs/spot"]" produced an
│ unexpected new value: .resource_version: was cty.StringVal("7061731"), but
│ now cty.StringVal("7063735").
│
│ This is a bug in the provider, which should be reported in the provider's
│ own issue tracker.

The issue usually goes away after 30 minutes, but it happens a few times a day.
Workaround
Here is my workaround to force recreation instead of updating in place:
# Workaround to force the recreation of the spotnodepool when the bid price changes
resource "null_resource" "force_recreate_when_bid_price_changes" {
  triggers = {
    bid_price = local.bid_price
  }
}

resource "spot_spotnodepool" "bid" {
  cloudspace_name      = var.cloudspace_name
  server_class         = var.server_class
  bid_price            = local.bid_price
  desired_server_count = var.desired_server_count
  lifecycle {
    replace_triggered_by = [
      null_resource.force_recreate_when_bid_price_changes
    ]
  }
}

A fix is currently in progress to remove the resource_version attribute, as it is not particularly useful to users.

@MarcPerezPro The fix has been pushed in v0.0.8. Could you please confirm if that resolves your issue?

@TheNilesh That fixed my issue, it works without the workaround


Operation is not supported.

Hi,
Below is the inner exception, seems Mono's DeflateStream not support something.
  at System.IO.Compression.DeflateStream.get_Length () [0x00000] in /private/tmp/source-mono-mac-4.0.0-branch-c5sr5/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.5/mcs/class/System/System.IO.Compression/DeflateStream.cs:297
  at System.IO.Packaging.ZipWrappingStream.get_Length () [0x0004e] in <filename unknown>:0
  at OpenXmlPowerTools.PtOpenXmlExtensions.GetXDocument (DocumentFormat.OpenXml.Packaging.OpenXmlPart part) [0x0001f] in /Users/Edison/Developer/Source/dotnet/open-xml-powertools/OpenXmlPowerTools/PtOpenXmlUtil.cs:54

Cheers,

Edison

Hi,
Can you kindly attach the document that the SDK fails to open?

Hi,
All the files in this folder https://github.com/OfficeDev/Open-Xml-PowerTools/tree/vNext/OpenXmlPowerToolsExamples/WmlToHtmlConverter01 have problem, it seems like not caused by special file.
Thanks,
Edison

i get loads of these errors when trying to run the SDK unit tests on Mono/OSX. e.g.
DocumentFormat.OpenXml.Tests.MarkupCompatibilityTest.NonIgnored_UnknownAttribute_O12Mode [FAIL]
      System.NotSupportedException : Specified method is not supported.
      Stack Trace:
           at System.IO.Compression.DeflateStream.get_Length () <0x5a59a78 + 0x0001f> in <filename unknown>:0
           at System.IO.Packaging.ZipWrappingStream.get_Length () <0x5a59950 + 0x000fe> in <filename unknown>:0

Debugging it, inside ZipWrappingStream, we have
        // For some strange reason, if the package FileAccess == Read,
        // then can't get length from the stream.  Not supported.
        // The workaround - write the stream to a memory stream, then return the length of the
        // memory stream.
        public override long Length
        {
            get {
                if (_packageFileAccess == FileAccess.Read)
                {
                    using (MemoryStream ms = new MemoryStream())
                    using (Stream zs = _zipArchiveEntry.Open())
                    {
                        CopyStream(zs, ms);
                        return ms.Length;
                    }
                }
                else
                    return _baseStream.Length;
            }
        }

But in these test cases _packageFileAccess is ReadWrite, so it calls _baseStream.Length (where _baseStream is a DeflateStream, whose Length property is apparently supposed to throw according to the MSDN),

For a little more info, the unit tests get a lot of these errors from OpenXMLPart.LoadDOMTree(), which it seems only wants to know if there is data in the stream rather than what the length is.
Not sure if there is anything that can be changed to work around the issue? (maybe decompress the data and Load the Part from that? Doesn't seem ideal to read all the data to work out the length and then read it again to process it though!)

Thanks, good information to know.
It may be desirable to modify the API for System.IO.Packaging a little bit.  The above hack, which I wrote when re-writing System.IO.Packaging is certainly less than ideal.  In the end, I left that hack in there because a) parts are small, so overhead is not too bad, and b) testing indicated that the perf of the new System.IO.Packaging was within 5% of the old one, sometimes faster, sometimes slower.
In March, I am scheduled to do one more round of cleanup on System.IO.Packaging.  We're going to remove unused parts of the assembly, document the new, reduced API of System.IO.Packaging,  I think it would be fine to add a new property, HasData, which will return whether there is content in the part or not.  We can then get rid of the above hack.

Hmm, might it be possible for ZipWrappingStream.Length to make use of _zipArchiveEntry.Length in the case where the archive mode is ZipArchiveMode.Read, rather than copying the stream?

I seem to recall trying that.  I worked on this issue for a bit of time before resorting to the hack.

A little more fishing around in some test failures (e.g. T131_String_OpenOrCreate_ReadWrite_Star ) shows up another possible Mono issue.
Seems that code along the lines of
string _path = Path.Combine(Directory.GetCurrentDirectory(), "Temp-16ab1efb9254430987adc092eeb60c63.docx");

var _containerStream = new FileStream(_path, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite);

var zipArchive = new ZipArchive(_containerStream, ZipArchiveMode.Update, true, Encoding.UTF8);

var firstEntry = zipArchive.Entries [0].Open ();

using (StreamWriter sw = new StreamWriter(firstEntry))
{
    sw.Write("TEST");
}

Will manage to write to the stream on MS.Net, but will throw a 'Stream is not writeable' exception on Mono (looks like the stream returned from Open is a DeflateStream in decompress mode, which you can't write to).

This is going to require some research.  I am currently putting together the next version of System.IO.Packaging for COREFX, so is an opportune time to dig in.  I'll see what I find out...

I put what I found in a Mono bug: https://bugzilla.xamarin.com/show_bug.cgi?id=39282
I'm thinking that Mono just isn't handling streams in update mode archives correctly, but i'm still getting to grips with how the flags and modes work, so it'll be nice to get comment from someone who knows.
I see 23 failures when running the Packaging tests on the current Mono Master/Linux, with most of those down to the stream length/read only issues mentioned here. There are also a couple of instances of 'PackageRelationship target must be relative URI if TargetMode is Internal', which I haven't looked at).

Hello and thank you for the effort on making the SDK work on Mono. Sadly, this is the same error that I'm getting after having solved this one by updating to mono 4.4 alpha where it was fixed. I'll be following the issue hoping to get this working some day.

Hello
I'm trying the TextReplacer example. All the test doc's fail with the following exception:
Unhandled Exception:
System.NotSupportedException: Specified method is not supported.
at System.IO.Compression.DeflateStream.get_Length () <0x407e0770 + 0x00017> in :0
at System.IO.Packaging.ZipWrappingStream.get_Length () <0x407e0640 + 0x0010b> in :0
at OpenXmlPowerTools.PtOpenXmlExtensions.GetXDocument (DocumentFormat.OpenXml.Packaging.OpenXmlPart part) [0x00064] in /mnt/work/citiusadmin/Open-Xml-PowerTools/OpenXmlPowerTools/PtOpenXmlUtil.cs:67
at OpenXmlPowerTools.RevisionAccepter.PartHasTrackedRevisions (DocumentFormat.OpenXml.Packaging.OpenXmlPart part) [0x00002] in /mnt/work/citiusadmin/Open-Xml-PowerTools/OpenXmlPowerTools/RevisionAccepter.cs:1478
at OpenXmlPowerTools.RevisionAccepter.HasTrackedRevisions (DocumentFormat.OpenXml.Packaging.WordprocessingDocument doc) [0x00007] in /mnt/work/citiusadmin/Open-Xml-PowerTools/OpenXmlPowerTools/RevisionAccepter.cs:1496
at OpenXmlPowerTools.TextReplacer.SearchAndReplace (DocumentFormat.OpenXml.Packaging.WordprocessingDocument wordDoc, System.String search, System.String replace, Boolean matchCase) [0x00002] in /mnt/work/citiusadmin/Open-Xml-PowerTools/OpenXmlPowerTools/TextReplacer.cs:239
at OpenXmlPowerTools.Program.Main (System.String[] args) [0x0002d] in /mnt/work/citiusadmin/Open-Xml-PowerTools/OpenXmlPowerToolsExamples/TextReplacer02/TextReplacer02.cs:29

We've put some more fixes in place in Mono that should help some of the problems mentioned in this issue. Please try the latest System.IO.Compression assembly from Mono and report any problems left so we can get them fixed.

I gave it a go, and put some info about some issues I saw in the bugzilla entry at https://bugzilla.xamarin.com/show_bug.cgi?id=39282 (some of which relate to this problem, and an extra one that might be a separate bug in SharpCompress)

Right, using Mono master as of this morning, I see various extra operation not supported errors from the Packaging tests, which have different call stacks that before. e.g.
System.IO.Packaging.Tests.Tests.T002_IterateParts [FAIL]
      System.NotSupportedException : Specified method is not supported.
      Stack Trace:
           at System.IO.Compression.DeflateStream.get_Length () <0x10be0f230 + 0x00025> in <filename unknown>:0
           at System.IO.Compression.ZipArchiveEntryStream.get_Length () <0x10be0f210 + 0x0001a> in <filename unknown>:0
           at System.IO.Packaging.ZipWrappingStream.get_Length () <0x10be0f0c0 + 0x00126> in <filename unknown>:0
           at System.Xml.XmlReader.CalcBufferSize (System.IO.Stream input) <0x10bdf8510 + 0x0003a> in <filename unknown>:0
           at System.Xml.XmlTextReaderImpl.InitStreamInput (System.Uri baseUri, System.String baseUriStr, System.IO.Stream stream, System.Byte[] bytes, System.Int32 byteCount, System.Text.Encoding encoding) <0x10bdf7e90 + 0x0019d> in <filename unknown>:0

Looking at it, it seems that other changes in Mono master have caused more instances of the issue.
For example, the test
public static void Main(string[] args)
{
	var fileStream = new FileStream("monoTest.zip", FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite);
	var zipArchive = new ZipArchive(fileStream, ZipArchiveMode.Update);

	var firstStream = zipArchive.Entries[0].Open();

	var xmlReader = System.Xml.XmlReader.Create(firstStream);
}

completes on Mono 4.4.0, but throws a not supported error on Master. Looks like XmlReader is querying the streams itself, and that causes the error previously seen by the SDK.

@Numpsy feel free to give it another try with latest master.

Right, good news. Using the vNext branch of the SDK and the current master branch of Mono:
The System.IO.Packaging tests get 4 failures, where there were 23 before.
The DocumentFormat.OpenXML tests get 264 failures, when the were ~400 before.
The 'Operation is not supported' errors seem to have all gone :-)
Also, a big chunk of those other failures are down to path issues when running on OSX/Linux which already have open pull requests. For example, the changes in pull#80 drop that to 187 failures.
I'll have a look at the other issues when I get a chance, and open other issues if needed.

I think this problem is not solved yet:
PackageRelationship target must be relative URI if TargetMode is Internal
This happens on mono, including system.io.packaging (from net.standard) with OpenXmlSDK.
Has maybe someone already resolved this bug?

@davideloper The issue you are seeing is a separate issue that is fixed with https://github.com/OfficeDev/Open-XML-SDK/pull/267. Since the original issue described here is fixed, I'm closing this issue.


using XGBoostLSS with reticulate and multi-target regression

I'm entirely new to python and reticulate, so please bare with me, but I think I got most steps working correctly. I am running into two issues:
1 - trying to predict from a trained model,
2 - how do you generate the DMatix for multi-target regression
So far, I have:
xgboostlss.py<-reticulate::import("xgboostlss")

d1<-mtcars

y_out<-matrix(rnorm(nrow(d1)*3),ncol=3)
colnames(y_out)<-c("a","b",'c')

# I can't get the label argument to take more than 1 column here...
dtrain <- xgboostlss.py$model$xgb$DMatrix(as.matrix(head(d1,25)),label=head(y_out[,1],25))
dtest <- xgboost::xgb.DMatrix(as.matrix(tail(d1,7))) #label=tail(y_out[,1],7)

distribution = xgboostlss.py$distributions$Expectile
reticulate::py_set_attr(distribution,"stabilize",reticulate::r_to_py("MAD"))
reticulate::py_set_attr(distribution,"expectiles",reticulate::r_to_py(c(0.05,0.5, 0.95)))

params = list(eta= 0.05,
              max_depth= 5L,
              gamma= 3,
              subsample= 0.5,
              colsample_bytree= 0.5,
              min_child_weight= 100L
)

xgboostlss_model = xgboostlss.py$model$xgboostlss$train(params=reticulate::r_to_py(params),
                                                        dtrain=dtrain,
                                                        dist=distribution,
                                                        num_boost_round=reticulate::r_to_py(10L))

pred_expectile = xgboostlss.py$model$xgboostlss$predict(booster=xgboostlss_model,
                                                        dtest=dtest,
                                                        dist=distribution,
                                                        pred_type=reticulate::r_to_py("expectiles"))

Error in py_call_impl(callable, dots$args, dots$keywords) :
  AttributeError: 'PyCapsule' object has no attribute 'num_row'

Any help would be greatly appreciated.

@StatMixedML I did some digging and it seems that GPU training is not supported when passing a custom loss function. Perhaps if the loss function is coded in C or C++ and accessing the lower level api, but not from the python api...
Not sure it would even be multi-threaded due to python GIL, couple of people complaining about its slowness when passed custom functions.

@tim-habitat Ok nice, thanks! I am not sure then if it makes sense to further use catboost for multi-target regression settings...

Ok I try to have the Dirichlet available soon, maybe some time early next week. Do you know of any publicly available Dirichlet dataset I can use?

@StatMixedML I'm not sure what your exact requirements are for a dataset, but the DirichletReg R package has a few small datasets that may be helpful.

@p-schaefer Thanks for the link. I was hoping to not use the Arctic-Lake dataset, but should be ok for an example notebook.

@p-schaefer I have added the Dirichlet distribution with an example. Maybe you can try it with your dataset. Please make sure to first re-install the package, since I have made several changes.

@StatMixedML I think I've got the package installed correctly, but I'm having trouble getting it run with reticulate:
hp_dict = list(lr= c(0.00001,1),
              max_depth= c(1L,4L),
              sketch_outputs= c(1L,10L),
              subsample= c(0.5,1),
              colsample= c(0.2,1),
              lambda_l2=c(0,40),
              min_gain_to_split= c(1L,1000L)
)

dtrain<-list(
  X=data.frame(depth=DirichletReg::ArcticLake[,"depth"]),
  y=DirichletReg::ArcticLake[,1:3]
)

distribution = pyboostlss.py$distributions$DIRICHLET(D=r_to_py(as.integer(ncol(dtrain$y))))
pyblss = pyboostlss.py$model$PyBoostLSS(distribution)

opt_param = pyblss$hyper_opt(params=r_to_py(hp_dict),
                             dtrain=r_to_py(dtrain),
                             use_hess=r_to_py(TRUE),
                             sketch_method=r_to_py("proj"),
                             hp_seed=r_to_py(123L),
                             ntrees=r_to_py(500L),
                             n_trials=r_to_py(10L),
                             max_minutes=r_to_py(120L),
                             silence=r_to_py(FALSE))

# Error in py_call_impl(callable, dots$args, dots$keywords) :
# AttributeError: 'DataFrame' object has no attribute 'dtype'

@p-schaefer seems like this is a problem related to the reticulate package. Since I am not a reticulate-expert, I am afraid I don't have a solution for this.
I suppose the error is thrown here https://github.com/StatMixedML/Py-BoostLSS/blob/7a7213f44f2533c7165c36f8e7fd79507c50dc4e/pyboostlss/distributions/MVN.py#L187
or here
https://github.com/StatMixedML/Py-BoostLSS/blob/2f141e118b09e9dca9a2eaf7ec716950ae83fb01/pyboostlss/distributions/MVT.py#L196
or here
https://github.com/StatMixedML/Py-BoostLSS/blob/2f141e118b09e9dca9a2eaf7ec716950ae83fb01/pyboostlss/utils.py#L20
not sure how reticulate translates R-DataFrames into torch tensors.

closing this for now


remove lto to fix link error of clang

error message:
liblastlog2.so.1.p/lib_lastlog2.c.o: file not recognized: file format not recognized

Thank you for the report, but removing that option from the list is no solution nor a valid fix.
clang understands and supports LTO, I will make some different changes to get linking with clang working, too.


ReferenceError : window is not defined

Getting this error on running the demo from branch tutorial/part-1-simple-document

Seems to be some issue with webpack web-worker, I created a new project with vue init webpack, copied the components file and everything worked. Thanks

Be sure to add globalObject: "this" in the output object of webpack! :)

Edit (or create) vue.config.js and change webpack configuration there:
module.exports = { configureWebpack: config => { config.output.globalObject = "this"; } }


fix(uiSrefActive): apply for all uiSref child elements

For facilitating usage with menu elements with multiple children but no single parent, or cases where parent is not specified in parent.

I ran into problems while testing: basically, when testing, the aforementioned problem can't be replicated.
The following test passes prior to the change, when it shouldn't:
it('should match on all child ui-sref directives', inject(function($rootScope, $q, $compile, $state) {
    el = angular.element('
ContactsContactContact
');
    template = $compile(el)($rootScope);
    $rootScope.$digest();

    expect(angular.element(template[0]).attr('class')).toBe('ng-scope');

    $state.transitionTo('contacts');
    $q.flush();
    timeoutFlush();
    expect(angular.element(template[0]).attr('class')).toBe('ng-scope active');

    $state.transitionTo('contacts.item', { id: 2 });
    $q.flush();
    timeoutFlush();
    expect(angular.element(template[0]).attr('class')).toBe('ng-scope active');

    $state.transitionTo('contacts.item.detail', { id: 2 });
    $q.flush();
    timeoutFlush();
    expect(angular.element(template[0]).attr('class')).toBe('ng-scope active');
}));

In practical usage it is seen to break (only matches the last ui-sref path). I experimented and saw that as long as one addClass is run by uiSrefActive, karma sees the class. Adding an unconditional removeClass at the end of the callback makes no difference - only calling removeClass directly on the test seems to make a difference.

Apologies, went about fixing what's fixed.


Bower asks me to choose versions

Have not worked with Bower before, but when I tried running Bower in this directory, it gave me tons of choices between different versions, where I did not know what to answer.

Everything latest except polymer, 1.x.x for that and webcomponentsjs, 0.7.24 for that.
I'll have to have it force resolution in dependencies to try and clean that up.

should autoresolve now


Margins: Re-Order Tests to run in Top-Right-Bottom-Left order

Challenge Add Different Margins to Each Side of an Element has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.
Currently tests are run in Top, Left, Right, Bottom order.
Similar to issue #11059, it would be better if they were run in order of Top-Right-Bottom-Left.
I would like to work on this one, if OK.
I believe I found the correct file and location for the edit..
I am busy rest of today, but could have it done tomorrow.
Thanks :-)
-Sheryl

In your own time @ :+1:


[BUILD] Build system and dynamic library fixes

Adds an install rule, and fixes #281.
Let me know if I should add some docs; I wasn't sure where the right place was.

@ezyang
This PR cause the below issue with llvm target, can you check ?
-tgt="cuda"
+tgt="llvm"

python3 tutorials/get_started.py
!115 = !{!116, !116, i64 0}
!116 = !{!"float32", !117, i64 0}
!117 = !{!"0x119a190", !4, i64 0}

Traceback (most recent call last):
  File "get_started.py", line 196, in <module>
    cc.create_shared(temp.relpath("myadd.so"), [temp.relpath("myadd.o")])
  File "/home/srk/.local/lib/python3.6/site-packages/tvm-0.5.dev0-py3.6-linux-x86_64.egg/tvm/contrib/cc.py", line 34, in create_shared
    _linux_shared(output, objects, options, cc)
  File "/home/srk/.local/lib/python3.6/site-packages/tvm-0.5.dev0-py3.6-linux-x86_64.egg/tvm/contrib/cc.py", line 53, in _linux_shared
    cmd += ["-I" + path for path in find_include_path()]
  File "/home/srk/.local/lib/python3.6/site-packages/tvm-0.5.dev0-py3.6-linux-x86_64.egg/tvm/_ffi/libinfo.py", line 156, in find_include_path
    raise RuntimeError(message)
RuntimeError: Cannot find the files.
List of candidates:
/home/srk/.local/lib/python3.6/include
/home/srk/.local/lib/python3.6/site-packages/include
/home/srk/.local/lib/python3.6/site-packages/3rdparty/include
/home/srk/.local/lib/python3.6/dlpack/include
/home/srk/.local/lib/python3.6/site-packages/dlpack/include
/home/srk/.local/lib/python3.6/site-packages/3rdparty/dlpack/include


Enhancements's support for tools.

I tried adding enhancements to tools even (with anvil and name changing) nothing works, adding * would make it more integrated and immersive.

would you be able to get me some logs for this? so i can look into it?
Like just fabric-api, ovenlib, polymer, and bakers-tools, and then go
/give @p bakers-tools:copper_sword
/enchant @p minecraft:sharpness
?

[14:16:14] [Server thread/INFO]: [*player: Gave 1 [Copper Sword] to *player] [14:16:14] [Render thread/INFO]: [System] [CHAT] Gave 1 [Copper Sword] to *player, [14:16:23] [Render thread/INFO]: [System] [CHAT] Copper Sword cannot support that enchantment
About the logs, sorry i couldn't find anything relevant for fabric-api, ovenlib, polymer, and bakers-tools.
It seems to me as if the tools aren't made for enchanting, I was wondering if they're properly integrated to be seen as tools like rest of MC default tools...

They should be properly integrated... odd

So figured out the fix, will do it later today
my dumbass forgot to add the enchanting tags to the items
It is datapack stuff so If you know how to do it you can make a datapack for the items


Build Failure with Ruby 3.x due to google-protobuf Gem Error in GitHub Actions

Checklist

[X] I have read and accepted the contributing guidelines.

How did you create the site?
Generated from chirpy-starter
Describe the bug
When using the pages-deploy.yml GitHub Actions workflow with the default ruby-version: 3, the build process fails during bundle install due to an error related to the installation of the google-protobuf gem.
Steps To Reproduce
I just submitted an article, probably because Ruby 3.3.0 was released
Expected Behavior
The GitHub Actions build should complete successfully without errors during the bundle install process.
Environment
GitHub Actions
Anything else?
The build succeeds when explicitly setting ruby-version: 3.2.2 in the workflow file. This version change seems to resolve the issue with the google-protobuf gem installation.
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true

same error :cry: ruby 3.3.0 released yesterday

same error 😢 ruby 3.3.0 released yesterday

I modified
.github/workflows/pages-deploy.yml
Probably around line 42 to line 47
      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2.2
          bundler-cache: true

change ruby-version: 3   -->   ruby-version: 3.2.2
Specify to the 3.2.2 version before ruby was released
it works fine

same error 😢 ruby 3.3.0 released yesterday

I modified .github/workflows/pages-deploy.yml Probably around line 42 to line 47
      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2.2
          bundler-cache: true

change ruby-version: 3 --> ruby-version: 3.2.2
Specify to the 3.2.2 version before ruby was released
it works fine

Thanks, I did as you said and it works again. Will use this workaround before official solutions.

same error 😢 ruby 3.3.0 released yesterday

I modified .github/workflows/pages-deploy.yml Probably around line 42 to line 47
      - name: Setup Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.2.2
          bundler-cache: true

change ruby-version: 3 --> ruby-version: 3.2.2
Specify to the 3.2.2 version before ruby was released
it works fine

Thanks for that, I was trying to find a solution for quite a while now. This works fine for now!

I also had a same issue. Thank you for a solution. :)

Thank you for a quick solution. I was going to look into it myself, but now don't I have to 👍

@puppylpg thanks for fix. I've been battling this issue since yesterday 😭

Thanks 👍

Updating the ruby-version works. Thanks.

You can indeed temporarily specify the version of Ruby to be 3.2.x until a new version of protobuf is released.
See also: https://github.com/protocolbuffers/protobuf/pull/15198

Bug still here nowadays...

thinks


initialization script

script to download everything you need and put them in the right place

might also consider putting preprocessing scripts up there?


[Feature Request] Support FailureConverter concept

Describe the solution you'd like
See https://github.com/temporalio/sdk-typescript/pull/887. Also relates to #131.

This is waiting on #164


Running flutter clean should verify the current directory is a Flutter project before proceeding

Use case
I will often perform a flutter clean before creating a release for the Play Store to ensure a clean build. On one occasion I mistakenly ran this one level up from the actual project directory. The clean process then reported it had moved to my home directory before deleting .dart_tool and .android. On a Linux system .android lives under a user's home directory and contains all the AVDs.
Proposal
Running flutter clean should report if the current directory does not contain a Flutter project, rather than deciding to move to the user's home directory and then performing its deletes. If the current directory does not contain a Flutter project, why would it switch to a home directory and try again?

As you can see from the above screen shot, I mistakingly ran the command at the top level projects directory, rather than the application sub-directory; but, flutter clean decided to move to my home directory and remove .android thus deleting all my Android AVDs.
If you run flutter clean outside of the home directory tree, for example /tmp, you are given a more expected result:
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.

Running flutter clean --help shows it should delete the build and .dart_tool directory and has no mention of .android.
Flutter doctor:
[✓] Flutter (Channel stable, 1.22.6, on Linux, locale en_GB.UTF-8)
    • Flutter version 1.22.6 at /home/ben/Development/flutter
    • Framework revision 9b2d32b605 (9 days ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /media/ubuntudata/Development/android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /home/ben/Development/android/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at /home/ben/Development/android/android-studio
    • Flutter plugin version 50.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.52.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.18.1

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Thanks.

flutter clean does check for a pubspec.yaml. Do you have one in your home dir?

Hi @jonahwilliams. Yes, there is a backup one in my home directory. If a it doesn't find a pubspec.yaml in the current directory, does a clean search up the directory tree until it finds a pubspec.yaml in a parent directory?

Yes, there is a backup one in my home directory

For all intents and purposes, you have communicated to the flutter tool that your home directory is a flutter project. flutter can't really determine what is a flutter project besides checking for one of those.

OK, testing a little here, if I make several nested directories below a project and do a flutter clean from the bottom of the tree it does search back up until it finds a pubspec.yaml. I have learnt something there.
Many thanks for your help.


is it possible to add a report including the overall of code coverage?

Hi community:
Thanks for this marvelous tool. I'm thinking about getting the overall code coverage, that is to say, the % of coverage including all targets, like xcov makes.
Thanks in advance

It would be pretty easy to include the overall code coverage percentage since it's already included in the test results and XCResultKit (underlying library that parses data) supports it already. See https://github.com/davidahouse/XCResultKit/blob/main/Sources/XCResultKit/Schema/ResultMetrics.swift#L27
Additional code coverage data is extracted here. Although, I agree with a previous open issue that displaying the drilled down code coverage should be separate from this tool.


📎 Improve diagnostic of noHeaderScope

Description
Rule here
We should add a new note that explains why scope on a div is not valid.
Small reference: https://www.a11yproject.com/checklist/#tables
Also, we could add another note that provide the two links we have in the documentation: https://biomejs.dev/linter/rules/no-header-scope#accessibility-guidelines

I guess this is completed.


Investigate long tags in task lists

What
Investigate the impact of long tags in task list components and apply affordances we feel are useful or necessary.
Why
During the audit of our components against the new typography scale (https://github.com/alphagov/govuk-design-system/issues/2299) we noticed that larger tags start to look a little squashed with the larger font sizes on smaller screens. It was unclear what the impact of very large tags would be on the task list and if we should force them to not break eg: using nowrap.
Timebox
half a sprint ie: 1 week
Who is working on this?
Developers, designers
Spike lead:
TBD
Spike buddy:
TBD
Questions to answer

[x] How large a tag can the task list handle before it "breaks"?
[x] Should we update the guidance to address use of long tags?

Done when

[x] Questions have been answered or we have a clearer idea of how to get to our goal
[ ] Findings have been reviewed and agreed with at least one other person
[ ] Findings have been shared, e.g: via a write-up on the ticket, at a show & tell or team meeting

Today (06/09/2023) we looked at the effects of long content in the tag component and task items within the new task list component.
First experiment
Add longer than normal text to the tag component, observing how it wraps on desktop and mobile resolutions.

Although a bit clunky visually, it did not 'break' anything else within the page.
Real service tag examples

Waiting for induction to be recorded

(36 characters) this tag has only been used in a table view and not a task list.
Second experiment
Add longer than normal words to the tag component, observing what happens on desktop and mobile resolutions.

In this experiment the column container width became larger than expected. Although on desktop words of this length probably don't exist to cause distortion, on mobile (320px resolution) long words used in both the task and the tag may cause issue.
Suggestions
Take an approach seen in earlier versions of a task list and move the tag onto a new line on smaller width resolutions.

Just to summarise the conversation I had with @CharlotteDowns here...  when designing the task list I think we deliberately decided not to stack the status labels beneath the task names on narrower screens, as it can make them harder to scan and if the tasks and labels don't contain long words, then they can fit quite happily side-by-side even on very narrow screens.
However clearly there’s a limit to this, if the screen is narrow and some of the words are very long!
Another option we discussed is forcing the browser to break the tag mid-word using something like overflow-wrap: break-word - but I'm not sure how well supported that is...

Thanks @CharlotteDowns for getting this evidence together and thanks @frankieroberto for the context. It sounds like from a design perspective, we're ok with tags getting squashed but less ok with them flowing off screen ala experiment 2.
Re: word breaking, it looks like support is fairly sound. This is amplified by the fact we'll be dropping IE11 support. I think we should do this regardless of what solution we take forward to reduce the risk of the tag going off-screen. I wonder if this is the only thing we need to do for the component itself?
Also I'll callout Char's suggestion above to update the guidance if it's not already on the cards.

I've done a quick test and I think breaking words is doable, with some light amendments to the solution.
Both overflow-wrap: break-word and overflow-wrap's alias word-wrap: break-word don't actually break the tag if it's overflowing. This is to do with the specifics of how break-word is calculated. Thankfully we have some alternatives that do work:

overflow-wrap: anywhere (browser support)
word-break: break-all (browser support)

If we apply both these rules to Char's second experiment above where the tag overflows, the outcome is identical:

Whilst we won't need to explicitly support IE from 5.0, I would still recommend using word-break on the basis of it's better browser support.
What do we think?

@owenatgov I'm happy with the tag overflow solution being word-break

We have a PR: https://github.com/alphagov/govuk-frontend/pull/4259
The next thing to do here is update the tag guidance to suggest avoiding long tags if you're able to. Looking at the guidance at the moment, I'm wondering if there's value in having a section on writing status messages as I can't think of another obvious place to put this. However, we have a section in the task list pattern guidance on what the statuses should be, maybe that's enough?
What do we think?

We have a PR: #4259

Nice!

The next thing to do here is update the tag guidance to suggest avoiding long tags if you're able to. Looking at the guidance at the moment, I'm wondering if there's value in having a section on writing status messages as I can't think of another obvious place to put this. However, we have a section in the task list pattern guidance on what the statuses should be, maybe that's enough?
What do we think?

It’s also mentioned briefly in the component guidance (https://deploy-preview-1994--govuk-design-system-preview.netlify.app/components/task-list/ ):

If you are creating your own statuses, use adjectives rather than verbs if you are creating your own statuses. Use sentence case, and keep it short, so that it can be easily read and understood.

Is that enough or should it be stronger?

@frankieroberto That feels plenty to me. I'm happy for #4259 to therefore close this and us to commit to handling the documentation portion of the work in https://github.com/alphagov/govuk-design-system/pull/1994.

@frankieroberto I think that's pretty clear. Might we be able to remove one of the 'creating your own statuses' from the first sentence so it reads a little clearer?

@CharlotteDowns:

@frankieroberto I think that's pretty clear. Might we be able to remove one of the 'creating your own statuses' from the first sentence so it reads a little clearer?

Well spotted - I totally missed that. 🤦  Left a proposed edit here but let me know what you think: https://github.com/alphagov/govuk-design-system/pull/1994/files#r1340332277

With the PR merged, I'm going to close this issue and propose we move any further guidance chat to https://github.com/alphagov/govuk-design-system/pull/1994. Thanks both!


How to cancel AI prompt

There is a case when I set the context limit too high it fail to deliver but the program is safe and will not crash. However this mean that the asynchronous function is still expecting response from the AI making it require a restart in order to use it! How to handle this?

Hey JG-Adams, I hope that you're well. I'll take a look at this when possible; if you can post a short example that would be helpful.

I'm doing well. Thanks!
Here is the scenario:
We use the thread so the main program doesn't have to wait for the Ai.
new_thread = std::thread( [this, response_callback]{
ollama::allow_exceptions(true);
ollama::show_requests(true);
ollama::setReadTimeout(120);
ollama::setWriteTimeout(120);
try{
// get our message together.
request["stream"] = true; // streaming mode
request["options"]["num_ctx"] = contextsize; // Adjustible context limit.
ollama::chat(request, response_callback);
catch(ollama::exception& e) { std::cerr << e.what() << std::endl; }
} );
Main thread check if it's joinable per frame of the program.
We have the ability to generate any number of Ai response as needed.
So in my case I use 8192 as context limit, no problem.
But let's say some poor soul decided to amp it up to 60k. What happens? Well, it's not giving me any error message this time but instead it fill up the ram and kinda just sit there. Meanwhile the thread is waiting for Ollama to finish but it never will. This block the program's ability to do any further operation with Ollama because the thread must first finish before the next prompt can be sent. Hence is why having the ability to cancel would be helpful. (Some way to tell Ollama, "Hey! you know that thing? Nevermind that!")
You try exiting the program with this, not all resource will be deallocated because of that one thread being unable to join.
Fortunately it doesn't hurt the system, it just take time to clean up after itself.

I managed to solve the issue. But this is what I did.
When the exception get caught, return;
This make the thread come to an end I think.
However I was also using std::atomic busy; to prevent multi request. So only when it's set to false can the prompt go through.
So I did this.
catch(ollama::exception& e) { std::cerr << e.what() << std::endl; busy=false; return; }
This managed to fix the problem and allow the program to be able to use it again and so user can use different setting, program fully clean everything up too.
Ollama actually does cancel the process. It gave me helpful info:
,"model":"llama3.2:3b","options":{"num_ctx":60000},"stream":true}
{"error":"llama runner process has terminated: signal: killed"}
Ollama response returned error: llama runner process has terminated: signal: killed
So this has occurred as a rather interesting bug. I don't know if return; inside of catch is the most appropriate thing in the world. But my reasoning is that it's a function so it should force it to actually reach the end of process. I do know that there appear to be no problem and every translation unit was able to fully exits.
It is desirable to support using no exception too. So that's next.


add support for autofilling text using query params

add react-router
add support for query params for message text
add text input to generate a wallet sign link, with text in a query param, for another user to sign

done in c88e887dad271c39c2494e3d70b9fb31d51bf4cc


Avoid filtering out unused columns.

The prover does not filter them out.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.68%. Comparing base (64270dc) to head (b19b8e9).
Report is 2 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #886      +/-   ##
==========================================
- Coverage   91.68%   91.68%   -0.01%
==========================================
  Files          93       93
  Lines       12800    12796       -4
  Branches    12800    12796       -4
==========================================
- Hits        11736    11732       -4
  Misses        951      951
  Partials      113      113

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Indentation of code

Hello again, the result is great but not indented, the linters show errors with the indentation.
;(function() {
'use strict';

/**
 * Chip
 */

angular
    .module('xx.chip', [
        'ngSanitize'
    ]);

    ...
}());

Try check with JSHint, ESLint, JSCS...

Hey @brunowego ! Thanks again for interest to my project.
As you have mentioned the output code was wrapped into IIFE with a broken indentation. The reason for such behaviour is because grunt-iife is a post-processing task. Which means, by first you write your code, after this you check it using favorite linter, and only after these you wrap it using grunt-iife in conjunction with others post-processing tasks (uglify and so).
Once again, thanks for your feedback.
For now I close this one. If you have another questions you may ask these on here or by opening another issue.
Be seeing you :smile:

I have small proposal for you @virtyaluk, is a small change, think about it. In my case I need the code clean, validations on the server. #3


Memory Leak (also seen in demo)

I noticed that cardView is never dealloced after swiping one time. If you load initial cards and then popViewController you'll notice that dealloc is called on the cardView. However, if you swipe on a card and then popViewController, the cardViews are never dealloced and will remain in memory.
I've been trying to pinpoint where the leak is, but haven't been able to find it yet.

I'm not sure if this is the best option, but the issue seems to be related to a retain in Scheduler.
Setting action and endCondition to nil seems to fix it.
- (void)doAction {
    if (!self.action || !self.endCondition || self.endCondition()) {
        [self.timer invalidate];
        self.timer = nil;
        self.endCondition = nil;
        self.action = nil;
        return;
    }
    self.action();
}

I try setting action and endCondition to nil ,but It doesn't wor.k


ImportError: No module named opensim

After building the GUI from source, I tried simple python script but it does not work. It seems jython can not find the location of opensim even it is already added to the system pythonpath.
 import opensim

produces
ImportError: No module named opensim

when I use the python from the terminal, everything is OK. Is there something I should do to make opensim jython find the opensim pythonlibrary?

I found out that  jython uses JYTHONPATH instead so add it to the system now I get a new error.
> import opensim
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
           File "~/openSim-dev/installOpenSimCore/lib/python2.7/site-
                 packages/opensim/__init__.py", line 1
                   SyntaxError: 'import *' not allowed with 'from .'


Portuguese translation of locales/en.json

Hey guys,
I'm adapting your application to use it as an internal chat at my company. I've made a portuguese translation of locales/en.json, named pt.json. Are you interested? Can I submit a pull request? It's my first time contributing to an open source project. I could possibly go a step further and translate the entire application if you're interested.

I could possibly go a step further and translate the entire application if you're interested.

@marcusmonteiro yup, that'd be awesome, please go ahead!
If you don't mind me asking, is there a difference between Brazilian and European Portuguese?

Written, not too much, except for a few words, mostly slangs. Spoken, well, I understand English speakers easier than Portuguese :D. As translation is concerned though, Brazil usually adopts foreign words as they are, whereas Portuguese tend to translate them. In my translation, words such as "tokens" and "chat" will be left in English because Brazilians use them.

@marcusmonteiro hah cool, good to know! thanks :D
I'm closing this, please open a PR when you have a chance.


Add Set Icons and Rarity Styles

With CSS you can style any font character to match the M:tg gradients (at least in webkit):
Demo using Font Awesome

Damn!  That's very impressive! I didn't know such thing existed.
The Demo is awesome, there's a lot of things that could be done with that (the stroke is really good!)
I'll have to check it out, the project as it is has a major issue that I need to get around before being able to add new features and update it.


splash cookie login not open ?

Clone issue: https://github.com/scrapy-plugins/scrapy-splash/issues/272

hello, a wan't ask, how to get cookie in splash then save to file, ??

hello, a wan't ask, how to get cookie in splash then save to file, ??


Proper handling of HTTP headers and status codes

Currently, several cases that are pretty common are not handled properly by the proxy. The most glaring issue is that HTTP-redirects are not working automatically and require manual editing of the resulting proxy content. Instead of just logging the URI and Hash, we need to log some more response details.
Requests with the following HTTP status codes are stored, including (if present) body content:

200
301, 302, 307, 308

Requests that result in other status codes are not logged and during replay phase will result in the default 404.
The following HTTP headers are stored:

content-type
location
content-length
content-disposition

The idea being to find a good balance between amount of stored data and how accurate the session is replayed.

Decided to divert and resolve HTTP redirects internally instead of storing and re-playing them. Reason was that some redirects have a short time-to-live so that later during builds, the Nix fetcher will receive an error trying to fetch some of the redirects.
Instead, once a redirect is encountered, it is resolved in the mitmproxy capture session. The original URL is kept, but the status_code, headers, and Nix hash are replaced with the response from the fully resolved redirect. This seems to work quite well so far.


Load vimtex only when the extension is enabled

Do not force loading the full vimtex autoload script for all users. First check if the extension is enabled.
I still think it is wrong to load vimtex just to check if the extension can be activated, because it bypasses the whole purpose of vimtex being an autoload script that loads only for LaTex files, but it doesn't seem to be another way to check if vimtex is available.
I have the extension disabled anyway, but vimtex was still loaded, thus this PR.

Oh, I never noticed that the vimtex plugin is always forcefully loaded. That is certainly wrong. Since the vimtex plugin should be only loaded for tex files, I think the extension should check for the filetype and then if vimtex has been loaded. Have a look at a couple of the other extensions, there should be examples for that, e.g. netrw and csv. Would that be doable?

Well, I quickly checked autoload/airline/extensions.vim but there is no example of conditional activation base on the filetype. It looks like it would need changing the vimtex extension itself, and I cannot dig into that. That's why I fixed just the most obvious issue.
I think this is good to merge, it's certainly better than the current situation. Further improvements could be proposed by another PR.
@maxfl is the author of the extension, he should be able to provide more insights.
It also could be argued that vimtex loads fast enough so there is no point on doing further checks, and it is fine to load it at startup, even when is not really "right".

okay, let me merge this. I'll have a look at the vimtex extension in more detail later.


react-native link react-native-gcanvas Android error

For version react-native-gcanvas:0.0.6
in react-native-gcanvas/android/build.gradle :
compileOnly project(':android:gcanvas_library')
compileOnly project(':android:bridge_spec')
compileOnly project(':android:adapters:gcanvas_imageloader_fresco')
compileOnly project(':android:adapters:bridge_adapter')

None of these project could be found in node_modules.
Use remote dependencies instead of local project declaration?

react-native-gcanvas, not maintance yet. you can create a new version

@YvesCheung
Since Alibaba feat: delete weex bridge & reactive bridge, here comes the @flyskywhy/react-native-gcanvas npm package.
After months work, @flyskywhy/react-native-gcanvas runs well on Android and iOS, fix several bugs and add feat: support drawImage() from require('some.png') on Android, iOS and Web described in Changelog.md, refactor with the detailed Example As Usage in README.md.
With Performance Test Result, and Convenient With Browser-like canvas APIs with the easily <canvas/> ported example react-native-particles-bg runs on Android, iOS and Web, @flyskywhy/react-native-gcanvas is the best choice for now :yum:


fix: typo in architecture.md

changed "browswer" -> "browser"
📚 Context

Just a small typo.
🧠 Description of Changes

Revised:
Insert screenshot of your updated UI/code here
Current:
Insert screenshot of existing UI/code here
💥 Impact

Size:

[x] Small
[ ] Not small

🌐 References

[ ] Notion

Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

Thanks for the correction!


Add tags to non-ccs accounts on creation

This adds tags to non-ccs accounts on creation. This contains their respective shard names. @2uasimojo

Codecov Report

Merging #612 (9aacea3) into master (f8bc02f) will increase coverage by 1.22%.
The diff coverage is 37.03%.