Make Accessible Autocomplete a GOV.UK Prototype Kit plugin

adds a config file to make the JS and CSS available to the kit as a plugin
adds info to the Readme so people know how to use it as a plugin

are there any changes I need to make to this?

might need guidance or preferably code to style it like gov.uk

Hi is this something I can help with or shall I close it?

@joelanman I've rebased this PR for you and we've added it to the "After next" milestone
You'll see one extra commit https://github.com/alphagov/accessible-autocomplete/pull/598/commits/0be7e76a26cad2f85eaed2e3a4640ccccba12bf9 to avoid https://github.com/alphagov/govuk-prototype-kit/issues/1950
Looks good to me

@colinrotherham cheers! The only other thing I can think of is that the autocomplete isn't styled to GOV.UK by default (the font is the most obvious difference). I wonder if it's easy to make that happen when it's installed as a plugin, or if we just give people instructions on how to do it.

@joelanman Ah good thinking, forgot I replied to that one back in the day
We can review whether GDS Transport is allowed within .govuk-form-group only perhaps
But I've pushed up some of those tweaks to fix #285 too

@colinrotherham nice! Just to check is the intention to

apply some non branded but 'nice' default styling
add gov.uk styling if the autocomplete is inside a govuk-form-group class?

If so, that seems nice, but I think there's a danger people don't use the govuk-form-group class.
My idea is to add another css/sass file purely for gov.uk branding. In the kit this could be included by default (via the plugin config) - others could opt in manually (with instructions in the readme). What do you think?

@joelanman Yeah exactly that
I've made sure the defaults use Arial and align with GOV.UK Frontend
Prototype Kit plugin stylesheet sounds like a great idea if there's no nice way to opt-in GOV.UK services too

Anticipating some breaking changes from Colin making the autocomplete catch-up with GOV.UK Frontend's style, we're going to split them in their own PR we can add to the current release, which already brings some breaking changes.
I think I'd be keen to have the styling currently set through .govuk-form-group in its own spreadsheet specific for the Prototype Kit, and listed in the plugin. That being said, I'm also wondering if that's not something we could solve by making sure you can control the fonts inside the component by setting a class on its root element (or a wrapper) and let the values be inherited when necessary.

I've moved the CSS tweaks to https://github.com/alphagov/accessible-autocomplete/pull/644
We're still unsure on how best to serve a separate stylesheet (or styles) for GOV.UK services

is there anything I can help with on this?


Conditionals:  Configure what happens when a task is skipped due to condition failure

Expected Behavior
Users can decide to either run or skip tasks that are dependent on the task that was skipped due to a condition check failure.
Actual Behavior
Tasks that are dependent on a skipped task are always skipped
Steps to Reproduce the Problem

Create a pipeline like similar to this:

apiVersion: tekton.dev/v1alpha1
kind: Pipeline
metadata:
  name: two-tasks-one-condition
spec:
  tasks:
  - name: conditional-task
    taskRef:
      name: task1
    conditions:
      - conditionRef: always-fail
  - name: run-if-1-or-1-skipped
    taskRef:
      name: task2
    runAfter:
      - conditional-task

Run the pipeline through a PipelineRun
task2 is not executed

Additional Info

Might be worth enumerating the use cases for this feature before implementing this.
Based on discussion from #27: https://docs.google.com/a/google.com/document/d/1iTb0rDDlgQcPbiYIGJ-atkaML8aCyPCyhfucCPJmNLs/edit?disco=AAAADD1TnxU

ref: https://github.com/tektoncd/pipeline/issues/1137

One thought after looking at #1137 :

If a Task is getting a resource from a Task that has a failing condition, I'm not sure it makes any sense to run that dependent Task: e.g. if a Task is building an image as an output, and another task wants to get the built image (digest) from that Task, it wouldn't make sense to run it anyway
runAfter is fuzzier - if it's just a matter of ordering, it feels like the user could potentially choose whether the tasks "after" should be skipped or not

From @afrittoli in #1264:

In the example pipeline I used runAfter but I believe the behaviour would be the same if the dependency was introduced using from on a resource.

If a Task is getting a resource from a Task that has a failing condition, I'm not sure it makes any sense to run that dependent Task: e.g. if a Task is building an image as an output, and another task wants to get the built image (digest) from that Task, it wouldn't make sense to run it anyway

I'm not sure we have a good solution for this case specifically. I've been trying to build a pipeline that builds a docker image only if needed - which I encoded in a condition. The build task has the condition attached and the next Task deploys a cloud function that uses that image plus some code on top.
As long as I don't rely on the image digest, and I use a tag e.g. "latest", the second task can run
even if the first one did not.

/kind feature

https://github.com/tektoncd/pipeline/pull/2094#discussion_r392661699

What happens though in this use case? Is runIfTask2IsSkipped executed when task1 is skipped because its condition fails?
- name: task1
  conditions:
    conditionRef: "condition-that-sometime-fails"
  taskRef: { name: "my-task" }

- name: runIfTask1IsSkipped
  runAfter: task1
  runOn: ["skip"]

- name: task2
  runAfter: task1
  conditions:
    conditionRef: "condition-that-sometime-fails"
  taskRef: { name: "my-task2" }

- name: runIfTask2IsSkipped
  runAfter: task2
  runOn: ["skip"]

What I want to say is that a runOn: ["skip"] would cover more cases than an else logic, so we still would need a way to specify that we only want the else in some cases.

/reopen
/remove-lifecycle rotten
/assign jerop
@jerop is actually taking care of this via https://github.com/tektoncd/community/blob/master/teps/0007-conditions-beta.md#skipping-1

open pr: https://github.com/tektoncd/pipeline/pull/3176
/remove-lifecycle rotten

@jerop I really could use the feature you implemented in the PR. is there any ETA when this will be merged?
My use case:

Unit and Integration-Tests are executed
Optional additional tasks if systemtests or similar need to be executed (guarded with when expression)
Task collecting all test results from workspace (has to be after 2. obviously, but is not dependent on it)

@Bl4d3s we paused that work for a bit as we discussed some design choices and alternatives in https://github.com/tektoncd/pipeline/issues/3345 -- rebasing the pr now and planning to get it in before the v0.18 release

@Bl4d3s we paused that work for a bit as we discussed some design choices and alternatives in #3345 -- rebasing the pr now and planning to get it in before the v0.18 release

I see the PR is already approved, but needs a rebase. Any hope to get it in with the next release?

I see the PR is already approved, but needs a rebase. Any hope to get it in with the next release?

@Bl4d3s we revisited the skipping syntax in this TEP to clarify that the skipping option is related to WhenExpressions -- thank you for your patience as we work to get it right and get it in soon


Fix invocation of script/list-grammars

This wasn't added correctly in 43fa563. In fact, it causes the running session to hang, since it's making a call to /usr/bin/script. To quote script's manpage:

The script utility makes a typescript of everything printed on your terminal.  It is useful for students who need a hardcopy record of an interactive session as proof of an assignment, as the typescript file can be printed out later with lpr(1).
If the argument file is given, script saves all dialogue in file. If no file name is given, the typescript is saved in the file typescript.

What makes this truly nasty is the running process can't be killed in the usual manner, since it's directing SIGTERM to the session's transcript. I had to force-quit using Finder.

@brandonblack Do "obvious" fixes like these still need a GitHub staff member's approval? @arfon instructed me to always wait for a 👍 before hitting the green merge button, which I'm adhering to rigidly out of caution...

Superseded by #3350.


add-category covid-19-quels-gestes-adopter-pour-proteger-sa-sante-et-…

…son-environnement.md

:tada: This PR is included in version 1.4.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix two instances of undefined behavior in codec crate

What problem does this PR solve?
Fix two instances of undefined behavior in codec crate, one in MemComparableBytesCodec::try_decode_first_internal and one in its tests.
Case 1: This function constructs a pointer called src_ptr_next to the next place it is going to need to look for data to decode. In the error case, this pointer points beyond its allocation, which is not allowed, and is undefined behavior. This patch changes that code path to use the offset_from function to instead calculate whether the difference from the current, valid pointer, to the next location, will be in-bounds.
Case 2: A test case is constructing two overlapping slices, one of them mutable, in order to test the behavior of the decoder for overlapping slices. This is undefined behavior. I've changed the test to use the in_place versions of the functions, which don't require overlapping slices.
Release note

No release note

This also marks the try_decode_first_internal function as unsafe.

/rebuild

/merge

/merge

/merge

Waiting on further review from @breeswish

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: brson:x: sre-botYou have signed the CLA already but the status is still pending? Let us recheck it.


Bump to 21.52.0

Do you need to delete ## Unreleased?

I figure it saves someone else typing it next time


OrderedMap positional index

Hi,
Any ideas how can I update an OrderedMap but changing the index but keeping the insertion position?

You could accomplish this with mapEntries though.


Show URL and component path of error during build

When build fails, I am often missing the URL and component which failed. This enhances the original Error message with info about those things.

Excellent!


Remove json from default features

Fixes #47
json serialization is supplementary feature and ecosystem would assume this would be optional faeture on top of parsing
Aligns to ecosystem re: default primary feature set whilst reducing codesizes & maintenance overhead on-by-default

Thanks!


Add a benchmark for enqueueing data

This lets us measure how fast jobs can be enqueued (about 0.8ms per run).
Updates a bunch of *testing.T to instead take the testing.TB interface, so
we can pass a *testing.B and have things still work. Adds a Make target for
running benchmarks. Run the benchmarks in Travis CI, and specify the
go_import_path so forks still build okay.

Interfaces are always pointers already, so a *testing.TB would be like a
**testing.T. If it's a concrete type you generally need to pass the pointer
to satisfy the interface. Hope that makes sense.
On Mon, Dec 19, 2016 at 11:33 Casey W Crites<EMAIL_ADDRESS>wrote:

@caseycrites commented on this pull request.

In test/factory/factory.go
https://github.com/Shyp/rickover/pull/8#pullrequestreview-13624801:

@@ -63,7 +63,7 @@ func RandomId(prefix string) types.PrefixUUID {

}
}
-func CreateJob(t *testing.T, j models.Job) models.Job {
+func CreateJob(t testing.TB, j models.Job) models.Job {
How come testing.TB isn't passed by reference?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Shyp/rickover/pull/8#pullrequestreview-13624801, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAOSIwk9nOR7fANpxKoMvm75Z7nqoVlVks5rJtwDgaJpZM4LNLJb
.


Add BSD support

Wait on this, it's WIP - a bad implementation is in beta2

This will be added in the next beta

This is coming #67

Available in 1.0.0b5


Upgrade to Polars 0.19

Codecov Report

Merging #35 (a04cf92) into master (2af8166) will increase coverage by 0.22%.
The diff coverage is 100.00%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
+ Coverage   86.93%   87.16%   +0.22%
==========================================
  Files          15       15
  Lines         888      888
  Branches      150      150
==========================================
+ Hits          772      774       +2
+ Misses        102       99       -3
- Partials       14       15       +1

Files
Coverage Δ

src/tabeline/_data_frame.py
87.74% <100.00%> (ø)

src/tabeline/_expression/_functions.py
70.37% <ø> (+7.40%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Implement contact attribute and skip on/off configuration for Philips SOC001

Proposed change

Implement manufacturer specific contact attribute and skip on/off configuration for SOC001.
Since the on/off attribute does not support reporting configuration, network failure or shutdown will leave Home Assistant unaware of the new sensor state. Demonstrated here : https://github.com/zigpy/zha-device-handlers/pull/3432#issuecomment-2423011662
Additional information

Confirm binding works on the custom on/off. Tested between a light and this sensor.
Breaking change for previous installations by disabling the on/off entity creation.
Fixes https://github.com/zigpy/zha-device-handlers/issues/3314
Checklist

[X] The changes are tested and work correctly
[X] pre-commit checks pass / the code has been formatted using Black
[ ] Tests have been added to verify that the new code works

Should this go ahead because of https://github.com/zigpy/zha/issues/289 ?

We've discussed an alternative approach regarding this. Marking this PR as draft.


[Question] Flask to FastAPI conversion Kafka example for Kubernetes

How to convert from given Flask to FastAPI:
Will I get better performance doing so in this Kakfa context?

producer.py:
from flask import Flask, request, jsonify
from kafka import KafkaProducer
import json

app = Flask(__name__)
producer = KafkaProducer(bootstrap_servers='kafka:9092')
topic_name = 'messages'

@app.route('/', methods=["POST"])
def send():
    app.logger.info("received message")
    content = request.get_json()
    jd = json.dumps(content).encode('utf-8')
    producer.send(topic_name, jd)
    app.logger.info("sent message")
    return jsonify({"status":"ok"})

if __name__ == '__main__':
  app.logger.info('Starting server...')
  app.run(host='<IP_ADDRESS>', port=8080)

consumer.py:
from kafka import KafkaConsumer

topic_name = 'messages'

if __name__ == '__main__':
  print('Starting consumer...')
  consumer = KafkaConsumer(topic_name, bootstrap_servers='kafka:9092')

  print('receiving messages...')
  for message in consumer:
      print(f'received message {message}')

  print('exiting...')

producer/okteto.yml:
name: producer
labels:
  stack.okteto.com/service: producer
command: bash
environment:
- FLASK_DEBUG=1
volumes:
- /root/.cache/pip
sync:
- .:/usr/src/app
forward:
- 8080:8080
reverse:
- 9000:9000
resources:
  limits:
    cpu: "1"
    memory: 2Gi

producer/Dockerfile:
FROM okteto/python:3
ENV PYTHONUNBUFFERED=1
WORKDIR /usr/src/app
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY app.py app.py
EXPOSE 8080
CMD ["python", "app.py" ]

consumer/okteto.yml:
name: consumer
labels:
  stack.okteto.com/service: consumer
command: bash
volumes:
- /root/.cache/pip
sync:
- .:/usr/src/app
reverse:
- 9000:9000
resources:
  limits:
    cpu: "1"
    memory: 2Gi

consumer/Dockerfile:
FROM okteto/python:3
ENV PYTHONUNBUFFERED=1
WORKDIR /usr/src/app
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY app.py app.py
EXPOSE 8080
CMD ["python", "app.py" ]

requirements.txt:
kafka-python
Flask==1.1.1

Both Dockerfiles are the same?

Thanks for pointing out @Kludex but yes it is duplicated

It seems this would probably be better asked somewhere else, maybe in those projects, as it's quite specific to your code and the packages you are using than to FastAPI. There's not a very big chance someone already had the exact same setup as you.
But if you need help porting your app to FastAPI and figuring out all the details of the packages you are using and your internal code, maybe you can hire someone to help you, you could post it on the job board in the FastAPI discord.
As this is quite out of scope for FastAPI itself, I'll close this one now, but thanks for the interest. :coffee:

Sorry for the long delay! 🙈  I wanted to personally address each issue/PR and they piled up through time, but now I'm checking each one in order.


typo in docs in Backpressure section ?

For incoming data, websockets builds upon StreamReader which propagates backpressure to its own buffer and to the TCP stream. Frames are parsed from the input stream and added to a bounded queue. If the queue fills up, parsing halts until some the application reads a frame.

parsing halts until some the application reads a frame.
The some word here feels out of place.

Thanks for the report!


Delete all variables is enabled for .GlobalEnv only Fixes #1899.

Delete all variables is enabled for .GlobalEnv only Fixes #1899.

:+1:


test.dart log files are hard to read

Here is an example of a message from test.dart:
CONSOLE MESSAGE: line 78: {
  "type": "window_onerror",
  "value": "window.onerror called: \n\nhttp://<IP_ADDRESS>:58314/root_build/generated_compilations/dart2js/tests_try_cursor_position_test/test.js:11360:\nUncaught Expect.equals(expected: <\n\n>, actual: <div>) fails.\n\n",
  "timestamp": 0.159
}
This generally makes stack traces impossible to read. You have to copy the output from test.dart into a file and replace all occurrences of '\n' with an actual newline character.
This is a regression that was introduced by the browser controller. Before then, the output would be readable.

Duplicate of #15499.


LICENSE missing

I'd love to help, but no license on this project? Do you plan to use the FB BSD License?

I'm going to use MIT license. (see setup.py)
I'll add the license file when I have a time. Thanks!


Change Welcome Bot message interactions

DMs with the Welcome Bot are a good space for playing with Zulip's messaging features, but the commands it offers don't seem super helpful at this point. To reduce the emphasis on commands, and the annoyance from Welcome Bot's replies when it doesn't understand the message, we should:

Drop this part from Welcome Bot's original message:

I can also help you get set up! Just click anywhere on this message or press r to reply.

Here are a few messages I understand: apps, profile, theme, channels, topics, message formatting, keyboard shortcuts, help.

The first time a user sends a message that Welcome Bot doesn't understand, reply with:

You can chat with me as much as you like! To get help, try one of the following messages: `apps`, `profile`, `theme`, `channels`, `topics`, `message formatting`, `keyboard shortcuts`, `help`.

Do not send a reply to any future message that Welcome Bot doesn't understand. We can still implement some version of #20023, to have Welcome Bot acknowledge messages it receives.

Related issues:

#30051

CZO thread

@zulipbot claim

hello @alya to implement the 3rd task we will need to know if it is the first time the bot does not understand a specific message , how do we get to know this should we make a global counter and increase it each time the bot does not understand a message sent by the user like this?

I cannot answer any technical questions about the implementation.
To get feedback on your approach, please post a specific question in the #frontend stream in the Zulip development community. Be sure to follow https://zulip.readthedocs.io/en/latest/contributing/asking-great-questions.html. Thanks!


CRASH - something snarky - Coinbase.create: fee transfer was too high

Observed on proposer nodes:
{
  "timestamp": "2019-09-02 02:10:00.020806Z",
  "level": "Fatal",
  "source": {
    "module": "Init__Coda_run",
    "location": "File \"app/cli/src/init/coda_run.ml\", line 411, characters 56-63"
  },
  "message": "Unhandled top-level exception: $exn\nGenerating crash report",
  "metadata": {
    "exn": "\"Coinbase error: Coinbase.create: fee transfer was too high \\n\"",
    "pid": 31656
  }
}

test-coda-CRASH-2019-09-02_10-36-12-coda.log.gz

Relates to #1730

The fee for snark work is currently capped at coinbase amount because the work for adding a coinbase is being paid for by the coinbase amount. We should not have a coinbase in that case instead of crashing?

probably not crashing -- as I think this eventually can cascade and crash all proposer nodes.

Closing this issue as it is stale for a long time.


Custom location parameter

It would be great if one could supply a custom error location parameter.
For example this could be used to match parentheses:
FOR_TOKEN __
lpar:L_PAREN? __ // <- returns location()
test:EXPRESSION __
rpar:R_PAREN? __
body:BLOCK
{
  if ((lpar && !rpar) || (!lpar && rpar)) {

    // return the location of paren instead of the entire FOR statement
    error("Missing parentheses", lpar || rpar);
}

Makes sense — I also considered this feature when adding the error-reporting API but decided to wait if it is really needed.
Should be easy to do, patch implementing this both for error and expected is welcome.

Thanks! This feature would be very useful in the current project I am working on.
#391 - just added a pull request, I did not commit any tests for it because I tested it with custom grammar and I was not sure where would new tests fit 'semantically' within the existing specs.


Add TIME column for table segment data

Have been added time bucket in segment data by the time format of yyyyMMddHH.
#582

Coverage remained the same at 23.055% when pulling 90bd26c89e351c6a8a0c0d308725f6f5c1aeca73 on feature/582 into af0b05a5088470ee27dcdb15ce11f51182a2d2f5 on master.

Coverage remained the same at 23.055% when pulling f4b1d1a272b14b12e40c9e4a6f133c119821e3b2 on feature/582 into 33755f7a8037fda0222cc33df85255f957e66a8d on master.

Coverage remained the same at 23.044% when pulling 584e9b8dfdd4053c708e035942270b24ff92f3af on feature/582 into 835ebbcb1cd6325fbcb52bb9cca7511384bcb881 on master.

Coverage remained the same at 23.044% when pulling 6e642dfd8338044fd503c7627bbf05dc6e54c296 on feature/582 into 835ebbcb1cd6325fbcb52bb9cca7511384bcb881 on master.


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: leizhang sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


profile active native conflict with multi-Environment config

hello, I want put config files in local system, so I use
spring:
   profiles:
      active: native

and also I want to use mutli-configs for different enviroments, e.g  dev, test, prod, so I run config like that
java -jar -Dspring.profiles.active=test config-service.jar
but if you do that, the spring.profiles.acitve became sth like test,so the local config couldn't work, and will raise exception like that
you need to configure a uri for the git repository

If you're using Finchley RC2 this is a duplicate and has been fixed

oh, we will level up our project to Finchley 2 month ago, but now we are on 1.5.9. So, If I am in Finchley, how to solve this problem?

Finchley is only compatible with Spring Boot 2.0.x.


ibus-mozc doesn't work when switching from Russian layout

I have three layouts in ibus: ['xkb:us::eng', 'mozc-jp', 'xkb:ru::rus'].
mozc only works correctly when switching from English. If you switch from Russian layout to mozc, it will type Cyrillic letters instead of functioning properly.
% ibus version
IBus 1.5.14

It happens on at least mozc-2.16.2037.102 and mozc-2.20.2677.102.

FWIW, anthy doesn't suffer from this.

This is caused by layout option in /usr/share/ibus/component/mozc.xml. So basically if you change layout from default to jp, it works correctly. Anthy uses jp as well, which explains why Anthy doesn't have this issue.
diff --git a/component/mozc.xml b/-
index a7be498..0000000 100644
--- a/component/mozc.xml
+++ b/-
@@ -16,7 +16,7 @@
   <icon_prop_key>InputMode</icon_prop_key>
   <icon>/usr/share/ibus-mozc/product_icon.png</icon>
   <setup>/usr/lib64/mozc/mozc_tool --mode=config_dialog</setup>
-  <layout>default</layout>
+  <layout>jp</layout>
   <name>mozc-jp</name>
   <longname>Mozc</longname>
 </engine>

Hi, sorry for too late reply,
The default basically  works well unless the user uses multiple keyboard layouts like this issue.
If we use jp here, people who use the us layout will have an inconsistent layout problem for example.
As you mentioned, you can specify the keyboard layout by modifying mozc.xml if you have the root permission.
Since 9ba59b64d53365c1fe93c1c245b4ec3e35bdadf0, the setting is moved to your home directory.
So you do not need the root permission.


Add NNCF quantization for ImageBind notebook

@l-bat   I think it is also will be nice to add link on second notebook in first notebook like section of "next steps" to make them more connected.
Also in some cases, when quantization resource consuming process may we add some notes about the recommended amount of RAM and maybe the approximate time of quantization?
I correctly understand that by default nncf quantization will be performed with openvino backend?
what if several approaches can be applicable (e.g. we want to compare ov quantization and pytorch) or such situations are not desired and we should demonstrate only the most convenient and optimal way? (not related to this notebook, I just trying to clarify whole range of rules for contribution guide)


Trains INSANELY glitching

Describe the Bug
We hosted an origins smp on falixnodes, and we wanted to create a 5000 blocks long metro system. We are almost done laying the tracks but the trains are getting extremely glitchy now. When i recorded the video the server was on 6 TPS, but it happens on even 20 TPS
Reproduction Steps

Create a server
Install create-1.18.2-0.5.0c-708, create-mc1.18.2_v0.5.0c and createplus-1.0.0-beta4
Make a long train track
Create a train
Get in the train, click on the train controls and hold down w

Expected Result
The train glitching back and forth, sometimes kicking you out of the seat or even running over you
Screenshots and Videos
https://www.youtube.com/watch?v=cPpaxjSq8h8
Crash Report or Log
No response
Operating System
Windows 10
Mod Version
0.5.0c
Minecraft Version
1.18.2
Other Mods
ACOrigins-1.18-0.4.0.jar
advdebug-2.3.0.jar
AE2Things-1.1.0-beta.8.jar
AEAdditions-1.18.2-3.1.2-fabric.jar
appliedenergistics2-11.1.5.jar
architectury-4.8.81-fabric.jar
autoconfig1u-3.4.0.jar
balm-fabric-3.2.0+0.jar
BasicNetherOres-1.18.2-7.2.0-Fabric.jar
bclib-1.4.7.jar
BeaconOverhaul-1.6.0+1.18.2.jar
betteranimalsplus-1.18.2-11.0.5-fabric.jar
betterCompatibilityChecker-fabric-1.0.5.jar
beyond_earth-1.0.2.jar
BOMD-1.3.8-1.18.2.jar
Bookshelf-Fabric-1.18.2-13.2.47.jar
Botania-1.18.2-434-FABRIC.jar
cardinal-components-api-4.2.0.jar
cc-restitched-1.100.8.jar
cccbridge-1.0.0.jar
charginggadgets-fabric-1.0.2.jar
chisel-1.4.5+1.18.x.jar
cloth-api-3.2.64.jar
cloth-config-6.2.57-fabric.jar
cloth-config-6.2.62-fabric.jar
collective-fabric-1.18.2-4.36.jar
Controlling-fabric-1.18.2-9.0+21.jar
creeperoverhaul-1.18.2-1.3.1-fabric.jar
DarkPaintings-Fabric-1.18.2-10.0.3.jar
DarkUtilities-Fabric-1.18.2-10.0.5.jar
dawn-3.3.2.jar
Decorative Blocks-fabric-1.18.2-2.1.0.jar
deepmoblearning-refabricated-1.18.2.jar
elytratrinket-fabric-3.0.0-1.18.1.jar
Enhanced_Celestials-fabric-1.18.2-2.0.7.jar
EnhancedQuarries-1.18.2-1.2.1.jar
expandedstorage-7.3.12+1.18.2.jar
extra-generators-1.2.1-BETA+1.18.jar
extraalchemy-fabric-1.18.2-1.8.1.jar
extraorigins-1.18-12.jar
fabric-api-0.58.0+1.18.2.jar
fabric-experiencebugfix-1.18-18.jar
fabric-furnaces-2.1.1-1.18.2.jar
fabric-language-kotlin-1.8.2+kotlin.1.7.10.jar
fabric-language-scala-1.1.0+scala.2.13.6-fat.jar
fabrictailor-1.9.0+1.18.2.jar
farmers-delight-fabric-0.2.1.jar
flywheel-forge-1.18-0.6.4.jar
ForgeConfigAPIPort-v3.2.3-1.18.2-Fabric.jar
friendsandfoes-fabric-mc1.18.2-1.4.5.jar
GearReborn-1.18.2-0.1.14.jar
geckolib-fabric-1.18-3.0.55.jar
guard-villagers-fabric-1.18.2-1.0.14.jar
heartytrinkets-1.18.2-1.0.0.jar
Iceberg-1.18.2-fabric-1.0.38.jar
immersive_weathering-2.5.6.jar
indrev-1.14.0-BETA.jar
inmis-2.6.0-1.18.2.jar
krypton-0.1.9.jar
lazydfu-0.1.2.jar
libblockattributes-all-0.10.2.jar
LibraryFerret-Fabric-1.18.2-2.5.1.jar
lithium-fabric-mc1.18.2-0.7.10.jar
Mantle-1.18.2-1.9.DEV.927efc4.jar
MaxHealthFix-Fabric-1.18.2-5.0.1.jar
mcw-bridges-2.0.3fabric-mc1.18.2.jar
mcw-doors-1.0.6fabric-mc1.18.2.jar
mcw-fences-1.0.6fabric-mc1.18.2.jar
mcw-lights-1.0.4fabric-mc1.18.2.jar
mcw-paths-1.0.1fabric-mc1.18.2.jar
mcw-roofs-2.1.2fabric-mc1.18.2.jar
mcw-trapdoors-1.0.7fabric-mc1.18.2.jar
mcw-windows-2.0.3bfabric-mc1.18.2.jar
medieval-origins-1.18.x-4.0.2.jar
moborigins-1.8.1.jar
Modern-Dynamics-0.2.4-beta.jar
Modern-Industrialization-1.2.2.jar
more-geodes-1.4.2.jar
mythic-mounts-1.18.2-7.0.jar
netherrackmod-0.0.10-1.18.2.jar
ninjaphenix-container-library-1.3.0+1.18-fabric.jar
Oh_The_Biomes_You'll_Go-fabric-1.18.2-1.4.2.jar
Origins-1.18.2-1.4.1.jar
Origins-Classes-1.18.2-1.3.0.jar
owo-lib-0.7.2-no-cme+1.18.jar
Patchouli-1.18.2-71.1-FABRIC.jar
Pehkui-3.4.0+1.14.4-1.19.2.jar
phosphor-fabric-mc1.18.x-0.8.1.jar
PigPen-Fabric-1.18.2-8.0.1.jar
polymorph-fabric-0.0.21-1.18.2.jar
RebornCore-5.2.0.jar
reinforced-barrels-2.0.1+1.18.2.jar
rer-2.5.0.jar
right-click-harvest-1.2.0+1.18.2-fabric.jar
RoughlyEnoughItems-8.3.519.jar
Runelic-Fabric-1.18.2-11.0.1.jar
SimpleRPC-fabric-1.18.2-3.1.1.jar
simulacrum-0.5.4-beta.jar
spark-1.9.11-fabric.jar
stoneholm-1.4.3.jar
TechReborn-5.2.0.jar
TerraBlender-fabric-1.18.2-<IP_ADDRESS>.jar
theoneprobe-fabric-1.18-5.1.3 (1).jar
thonkutil-2.14.1+1.18.jar
Tinkers Construct Fabric 5.4.3.jar
torohealth-1.18-fabric-2.jar
trinkets-3.3.1.jar
twilightforest-fabric-1.18.2-4.1.268.jar
vmp-fabric-mc1.18.2-0.2.0+beta.3.85-all.jar
youre-in-grave-danger-1.3.7.jar
YungsApi-1.18.2-Fabric-2.0.8.jar
YungsBetterDungeons-1.18.2-Fabric-2.1.0.jar
YungsBetterMineshafts-1.18.2-Fabric-2.2.jar
YungsBetterStrongholds-1.18.2-Fabric-2.1.1.jar
YungsExtras-1.18.2-Fabric-2.1.0.jar
Additional Context
No response

Trains are ridiculously buggy for me too! Same issues you were having, as well as graphical glitches like the train appearing to be derailed when it's not, cars having 10-20 block gaps visible between them, and straight-up not detecting that they're approaching a station which means that they can't be disassembled when they're bugging out.

This is probably the same issue as on Forge https://github.com/Creators-of-Create/Create/issues/3428

This is probably the same issue as on Forge Creators-of-Create#3428

yep its the same thing

I am experiencing the same bug on a modded fabric server.
The issue does seem to be linked to TPS for me.

~20 TPS - moving train contraptions are stable, sometimes glitching back and forth a bit but stabilizing
~15 TPS - moving trains stable for a bit before starting rubberbanding, which increases in intensity until calming down suddenly
~12-10 TPS - violent rubberbanding of moving trains

Key info:

Rubberbanding happens for both player-controlled and AI-controlled trains
When rubberbanding happens, all players on the server see it, so the issue appears to be server-side
Despite that, the train always seems to settle down at the correct location, for example AI-trains settle down when they arrive to their station

Can vouch that this is a server-only problem! Singleplayer trains work great :D

Can vouch that this is a server-only problem! Singleplayer trains work great :D

it only happened to me when i turned lan on thanks

Issues that occur on Forge as well are no longer being tracked on this repo. Please follow the respective issue on the Forge repo instead: https://github.com/Creators-of-Create/Create/issues/3428


[BUG]: Unsupported layout_config key for the center strategy: preview_height

Requirements

[X] I have scammed other issues to see if this bug has already been reported.
[X] This plugin and its dependencies are up to date with the latest commit.
[ ] I'm willing to fix this through a PR.

Expected Behavior
I execute :Barbecue command with no arguments and it displays a list of command to execute.
Actual Behavior
I get the expected behaviour but I also get a lot of errors (see screenshot).
The error appears to be related to this section of Telescope?
https://github.com/nvim-telescope/telescope.nvim/blob/master/lua/telescope/pickers/layout_strategies.lua#L168

Unsupported layout_config key for the center strategy: preview_height
{
  bottom_pane = {
    height = <function 1>,
    preview_cutoff = 1,
    prompt_position = "top"
  },
  center = {
    height = <function 1>,
    preview_cutoff = 1,
    prompt_position = "top",
    width = <function 2>
  },
  cursor = {
    height = <function 1>,
    preview_cutoff = 1,
    width = <function 2>
  },
  height = <function 1>,
  horizontal = {
    height = <function 1>,
    preview_cutoff = 1,
    prompt_position = "bottom",
    width = <function 2>
  },
  preview_cutoff = 1,
  preview_height = 0.7,
  vertical = {
    height = <function 1>,
    preview_cutoff = 1,
    prompt_position = "bottom",
    width = <function 2>
  },
  width = <function 2>
}

Neovim Version
NVIM v0.8.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by<EMAIL_ADDRESS>
Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.8.2/share/nvim"

Run :checkhealth for more info

Minimal Configuration
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  -- do not remove the colorscheme!
  "folke/tokyonight.nvim",

  {
    "utilyre/barbecue.nvim",
    dependencies = {
      "neovim/nvim-lspconfig",
      "SmiteshP/nvim-navic",
      "nvim-tree/nvim-web-devicons",
    },
    config = function()
      require("barbecue").setup()
    end,
  },
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here
vim.opt.termguicolors = true
-- do not remove the colorscheme!
vim.cmd([[colorscheme tokyonight]])

Reproduction
Sorry I use packer not lazy.nvim and so I was strugging to actually get the folke/noice plugin installed and running without errors and in the end failed to 😬 so unfortunately I can't say for sure what is causing the error.
I actually don't really need to run the Ex command this plugin exposes and so the fact it errors doesn't actually bother me, but I wanted to report it anyway just in case it was affecting other people, but I didn't really want to waste of ton of time. So with that in mind I totally understand if you feel you want to close this issue as the report is incomplete 👍🏻

I personally use noice+dressing and neovim nightly, but it doesn't seem to throw any errors. So my guess is that there must be a bug in your own config.
Closing this, although feel free to re-open if that's not the case.


Pass inputs in readable format

Could be a game changer in usability to support passing data per concept and in a human-readable form, e.g.,:
\credit{Conceptualization}{Alice, Bob}
\credit{Data curation}{Charlie}
...

Great idea! We can probably use pgfkeys for this purpose. Will need a little bit of time to look into, but we can also probably sync on that.

Finally found some time to work on this 👍🏼  Happy to provide a PR but wanted to discuss here first. The new code can be executed as follows:
\credit{Alice}{Investigation, Methodology, Data curation, Writing -- original draft}
\credit{Bob}{Visualization,conceptualization}
\credit{Charlie}{Software,Writing -- review \& editing,Validation}

\insertcredits
\\
\insertcreditsstatement

Positive:

Intuition: much more intuitive insertion of information (text instead of number)
Efficiency: Negative information does not have to be provided (via 0), only applicable concepts are given by the user
Robustness: Order of input concepts can be arbitrary

Negative

Breaking change because, so far, I did not find a way to still support insertion via the old way (`\credit{Alice}{1,0,1,...}
Thus: No more support for granular contribution. Contribution is now binary.
String match has to be exact. E.g., above Bob's field "conceptualization" is lowercase so it does not match the concept name fully. For such cases, the package raises a warning now to the user.

All other package options are still supported 🚀

Let me know what you think @Pseudomanifold

Looks very good as an alternative interface, wow! How about we store the old behaviour by providing a new command?

Cool, agreed that should be easy. We can use:
% New behavior
\insertcredits
\insertcreditsstatement

% Old behavior
\insertcreditsgranular
\insertcreditsgranularstatement

Will open the PR later today

Awesome, thanks a lot!


lz-string produces malformed base64 string

lz-string.compressToBase64 produces a malformatted base64 string which even can't be decoded by itself.
String that fails:
{"current":[{"cfg":{"name":"rgbw","container":false,"H":341.5},"temporary":false,"name":"rgbw","container":false,"children":null,"position":null}],"height":7250,"kasten":true,"finish":"rgb(123,130,130)","rotation":0}
results to malformed base64:
N4IgxgrgTlCmB2AXEAuA2qMAzA5q08AhgLayohQ4BGA7iADTgD2ShAlvLFKloQDYBnWIwASqAMwAWAIwA6AKwBfRoljEADkyiEoATx78hjIqXKVaDZqw5cDg4eAAWbPgBM48VPAh8+jTQJsiGwsXj58igC6jI6wbDiOyCgA7ABM8gAMjADWhAKqniiIUBAOWBxsAo5m1AAU0qni9NLiWS0ZAJSWUEyIhMGhKBmKQA===
Very similiar string, which has no problems:
{"current":[{"cfg":{"name":"rgbw","container":false,"H":341.5},"temporary":false,"name":"rgbw","container":false,"children":null,"position":null,"jsxSpacer":0}],"height":7250,"kasten":true,"finish":"rgb(123,130,130)","rotation":0}
I tried to decode the malformed base64 with lz-string itself and with base64 -d, both fail.

This may be connected to issue #62 as this could be the same bug, but it could be different ones, too.

downgrading to lz-string produces a correct base64 string


"Due to system overhead, this limit is less than these values" is confusing

"Due to system overhead, this limit is less than these values" is confusing. I am not exactly sure what it means.

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

ID: 17b26254-ce8c-76eb-c3e9-b80c3ecc45ba
Version Independent ID: fc16f0d4-dae7-8494-e25a-6c5398215b4b
Content: Microsoft Azure Service Bus quotas and limits - Azure Service Bus
Content Source: articles/service-bus-messaging/service-bus-quotas.md
Service: service-bus-messaging
GitHub Login: @spelluru
Microsoft Alias: spelluru

@ianrandell-sh - I have confirmed with the product team that the above statement from Pramod is accurate.
"system properties also take up some of the limit size, so actual maximum message content size would be smaller than the full limit."
I will make it clear in the article. Thanks.

Updated the article based on feedback from the product team.
#please-close


Feature/bela

What : New example - Chirp used with Bela
Why : To give more content

By the way, I think It'll be good for you to test it to be sure I didn't forget something obvious in the readme @joextodd

@LittleMonsterFr you can include the .a and header files in this repo now, people still need to sign up for credentials.

And add the credentials.h file

@LittleMonsterFr you can also commit the .so to the chirp directory - this gives us some version control on the SDK.


Return correct values for isNameUsed function

Resolves
No related Github issue, but it fixes Blockly.Procedures.isNamedUsed returning an incorrect value. Fix was already added to Blockly by @marisaleung

https://github.com/google/blockly/commit/234c53157f676978ab9de232ed28305720443003#diff-14d8bd917c33ff9fb0dfee355a789189

Proposed Changes
Changes the value returned when checking if a procedure name already exists. Currently the function returns false when Blockly.Names.equals(procName[0], name), however, it should return true. This proposed change updates those values.
Reason for Changes
If left unchanged, the isNameUsed function creates an infinite loop if a procedure name already exists.

Resolves https://github.com/LLK/scratch-blocks/issues/1175


Support query execution with named parameters

Do the adaptors for Kuery support Prepared Queries? Do they prevent SQL injection attacks (assuming raw queries aren't used?)

IIUC what you mean by Prepared Queries, Connection protocol has an API for execution of a query with parameters, e.g.:
func execute(query: Query, parameters: [Any], onCompletion: @escaping ((QueryResult) -> ()))

PostgreSQL plugin implements these methods using PQsendQueryParams().
Ian is working on this in SQLite.
The purpose of passing parameters is to prevent SQL injection attacks.
BTW, I don't think the usage of raw queries means we can't prevent SQL injection: the raw queries are needed because we don't support every possible syntax the developer may want to use. The parameters are the input from the user (of the developer's app), and this input can cause an attack (not the raw query written by the developer). Therefore, we support raw queries with parameters.

Implemented for SQLite.


MP3 file extension should be case insensitive

Fixing issue: #14

Just FYI, this is a duplicate of #5.


Add initial reference links to Technical and Security guidance, and Architecture Principles for Justice

This PR adds some initial links to the Technical Architecture site including documents we need to update as a community.

@jennyd Have removed the TODO and added the GOV.UK Service Toolkit - shall we add more content for context around this site in a separate PR?


Added descriptions and new resources.

Added:
-Khan Academy
-Exercism
-Visual Studio Dev Essentials
-Open Source Friday

Thanks for the help @Ghor3d


Minor edit

Corrected capitalization

I actually always try to keep the casing as it's in the GUI

I seem to have missed that. It is good to follow the GUI's capitalisation.


No definition found ...

I'm not entirely sure this is an issue with vscode-reason, but I'm also not sure where else to look. I am starting a project with the reason-react-example code found here. One of the files looks like this:
module PageReason = {
  include ReactRe.Component.JsProps;
  type props = {message: string, extraGreeting: option string};
  let name = "PageReason";
  let render {props} => {
    let greeting =
      switch props.extraGreeting {
      | None => "How are you?"
      | Some g => g
      };
    <div> <MyBannerRe show=true message=(props.message ^ " " ^ greeting) /> </div>
  };
  /* extraGreeting is optional, which means the JS side might pass in a null or undefined */
  type jsProps = Js.t {. message : string, extraGreeting : Js.null_undefined string};
  let jsPropsToReasonProps =
    Some (
      fun jsProps => {
        message: jsProps##message,
        extraGreeting: Js.Null_undefined.to_opt jsProps##extraGreeting
      }
    );
};

include ReactRe.CreateComponent PageReason;

let createElement ::message ::extraGreeting=? => wrapProps {message, extraGreeting};

I am trying to understand where the Js variable is coming from, what it does etc. but jump to definition is not working on it, instead it says no definition found. This is also true of the MyBannerRe component, which is in a sibling file.
Any help would be appreciated. Thank you!!

Update: It looks like go to definition is not working even within the same file

The vscode plugin relies on feedback from merlin so it's possible that if the .merlin file for the project isn't configured properly that certain features like jump-to-definition won't work.
I'm guessing that for that project the .merlin file must be generated as part of the install process because I don't see it anywhere in the repo. I'll have to give it a try and see if I can figure out what is going wrong.
It looks like that Js module is from Bucklescript though.

@freebroccolo something I've noticed is that vscode run from the command-line (at least on mac) picks up the .merlin from the directory where the file is opened.
For example, if .merlin is in the parent directory, then this does not pick it up
open test.re -a /Applications/Visual\ Studio\ Code.app/

Instead, Atom picks it up:
open test.re -a /Applications/Atom.app/

In addition, a couple of typical gotchas:

the .merlin file must be there, and should contain the correct paths
the reason and merlin executables should be in the path
the reason compilation artifacts should be there: remember to build
the reason and merlin executables should be for the right version (so if you switch between different ocaml/reason versions, remember to rebuild the compilation artifacts)

@kristojorg in the case of reason-react-example and src/interop/pageReason.re, if on Mac, I would do:

cd reason-react-example
npm run clean
npm run start
check editor setup here https://facebook.github.io/reason/jsWorkflow.html#javascript-workflow-editor-setup-global-utilities
open . -a /Applications/Visual\ Studio\ Code.app/, then navigate to src/interop/pageReason.re

For example, if .merlin is in the parent directory, then this does not pick it up
open test.re -a /Applications/Visual\ Studio\ Code.app/

Just to be clear, are we talking about a directory structure like this?
src
|- .merlin
|- test.re

... or like this?
project
|- .merlin
|- src
   |- test.re

Both cases can probably be dealt with but the second one will be messier due to the fact that vscode really wants to be opened in the project root.

The project does look like the second example. Thank you for the suggestion @cristianoc but unfortunately I am still not seeing definitions for any symbols being found (even if they are in the same file)

Just for the record, I think this is related to #56 and it seems to be due to some problem in the interaction between this extension, merlin, and Bucklescript specifically.


🔧Add support to for defaults

Introduces a new option --defaults to include the default value via zod’s default()

Nice work, @lstrojny! Although I would consider this an oversight and that it should be active by default (no pun intended). Do you mind flipping the option?

Of course, happy to do so. Would you want to have a CLI switch at all or should it just be the regular behavior?

I don't think its detrimental to leave it in, just reverse the wording/logic

Added tests, adjusted README, should be ready now

@StefanTerdell thanks for merging. Could you release a new version with the change so I can retire my temporary fork?


[EXE] A simple exercise to understand stochastic gradient descent

In particular, help a learner to learn full gradient descent, mini-batch stochastic gradient descent and etc.
It could be on linear regression or some simple neural network or etc.
But should focus on understanding the differences between the different gradient descent approaches, pros and cons, how fast/slow learning, how about data-set size and etc?

@gimseng Can I start working on this? Would be glad to assist in any way possible.

@anandravishankar12 absolutely, go ahead ! If you have any questions or need any help, let us know here or in discord chat. Many thanks !

Hi @anandravishankar12 @gimseng
I would like to help with this too. Perhaps we can share the workload.

Sure @anandravishankar12 and @ashishthanki , i'll let both of you coordinate/collaborate on this. You can the discord channel if you want. Thanks for contributing !

https://github.com/Rajwrita/Grokking-Machine-Learning/blob/master/Gradient descent method for linear regression.ipynb
Do you this will help? I could make a PR adding this notebook then.

Is this still open for contribution? Would like to work on it

Hi @anandravishankar12 @ashishthanki @Rajwrita and @angelinjohn:
Thanks all for the interest. Could you guys elaborate how / which part of SGD you want to work on?
I could envision different data set, different models (standard ML or deep models), and diff SGD (full GD, mini-batch SGD and etc) and maybe some discussions of learning rate. I think there could be 1-3 projects delving deeper in to this.

@gimseng I wanted to contribute to this 'A simple exercise to understand stochastic gradient descent' . My approach is to make dataset with make classification and then apply logistic regression with l2 reg using sgd from sklearn on the dataset and then apply sgd from scratch on the same dataset . Then will compare both model loss .

Hey, I want to work on this issue
I will implement the full gradient descent and batch gradient descent from scratch on a simple regression problem. Shall I go ahead?

Hey there! umm, I wonder why this issue isn't closed yet? I could help!

hey i am interested to take this issue. please assign me this

Hello @gimseng ,
I'm excited to contribute to this "good first issue" and help learners understand stochastic gradient descent better. I would be interested in creating an educational resource that focuses on the differences between various gradient descent approaches, their pros and cons, and how they perform under different circumstances. Specifically, I'd like to explore the concepts using a simple neural network in Python.
My plan is to create a step-by-step tutorial that covers:
Introduction to Gradient Descent: Explaining the fundamental concept of gradient descent and its role in optimizing machine learning models.
Full Gradient Descent: Detailing the process of full gradient descent, how it works, its advantages, and its limitations. I will provide code examples to implement this approach on a basic linear regression problem.
Mini-Batch Stochastic Gradient Descent: Exploring the concept of mini-batch SGD, its benefits in terms of computational efficiency, and its trade-offs. I'll walk through the implementation on both a linear regression task and a simple neural network.
Learning Rate and Convergence: Discussing the importance of learning rate in gradient descent, its impact on convergence, and strategies for selecting an appropriate learning rate for different scenarios.
Comparative Analysis: Comparing the performance of full gradient descent and mini-batch SGD on different datasets, including small and large datasets. I'll provide visualizations to help learners understand the differences in convergence speed and accuracy.
Discussion: Engaging in a brief discussion about when to use each approach, considering factors like dataset size, model complexity, and computational resources.
For datasets, I propose using:
Simple Linear Regression Dataset: A synthetic dataset with a single feature and target variable, suitable for illustrating gradient descent concepts.
Iris Dataset: A classic dataset for multiclass classification. This will allow us to explore mini-batch SGD on a more complex problem.
MNIST Dataset: A widely-used dataset for handwritten digit recognition. We can use this dataset to showcase the effects of dataset size on different gradient descent approaches.
I'm open to suggestions and would appreciate any feedback on this plan. Looking forward to contributing and helping learners grasp these important concepts.
Best regards,
Anurav Modak


Training language model,can you help me?

I used fairseq to train a language model, arch=transformer_lm, the data set is iwslt14, The trainingdata and validation data consist of 160k and 7k sentence pairs.And I used a GPU. I have been training for more than two days now, and the training is not over yet. loss and ppl have not decreased, even a little higher, and I think they tend to converge.
The first time I trained the language model, I don't know if he will stop training by himself, or if I think it will stop, or if my training parameters are wrong.
What should I do now, wait for him to finish by himself
python train.py $DATA  --task language_modeling --arch transformer_lm \   --optimizer adam --adam-betas '(0.9, 0.98)' --clip-norm 0.0 \   --lr-scheduler inverse_sqrt --warmup-init-lr 1e-07 --warmup-updates 4000 \   --lr 0.0005 --min-lr 1e-09 \   --dropout 0.1 --weight-decay 0.0 --criterion label_smoothed_cross_entropy --label-smoothing 0.1 \   --max-tokens 4096  --tokens-per-sample 4096  --save-dir $SAVE --update-freq 16

I think there is a parameter, [--max-epoch N], that you've to mention, else model will keep on running

我认为您必须提到一个参数[--max-epoch N]，否则模型将继续运行

$ fairseq-train --task language_modeling \   data-bin/wikitext-103 \   --save-dir checkpoints/transformer_wikitext-103 \   --arch transformer_lm --share-decoder-input-output-embed \   --dropout 0.1 \   --optimizer adam --adam-betas '(0.9, 0.98)' --weight-decay 0.01 --clip-norm 0.0 \   --lr 0.0005 --lr-scheduler inverse_sqrt --warmup-updates 4000 --warmup-init-lr 1e-07 \   --tokens-per-sample 512 --sample-break-mode none \   --max-tokens 2048 --update-freq 16 \   --fp16 \   --max-update 50000
Why doesn't the official script have this parameter --max-epoch N,
So according to the script, won't it stop automatically

You can either specify --max-epoch or --max-update. The README uses --max-update 50000, but that seems to be too large for your dataset, thus using --max-epoch may be easier to configure.

Thank you. I see
------------------ 原始邮件 ------------------
发件人:                                                                                "pytorch/fairseq"<EMAIL_ADDRESS>发送时间: 2020年8月20日(星期四) 晚上10:38
收件人<EMAIL_ADDRESS>抄送: "推杯换盏"<374481729<EMAIL_ADDRESS>主题: Re: [pytorch/fairseq] Training language model,can you help me? (#2497)
You can either specify --max-epoch or --max-update. The README uses --max-update 50000, but that seems to be too large for your dataset, thus using --max-epoch may be easier to configure.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Simplify the folder structure for the FCPX Hacks code

Currently, it's three levels deep, for no particular reason.
Go from /latenite/fcpx/hacks to /fcpxhacks.

Done.


Hashing Example does not get any output to the Serial emulator

OS = Ubuntu 14.04 LTS
Serial Emulator = Putty
Compiler = Arm GCC

see #247


Add scala major version source directories

SBT currently adds various Scala version specific source directories -- e.g., src/{main,test}/scala-{major.minor}. With the Scala 3 release getting closer and libraries cross building for Scala 3 and Scala 2, it would be helpful if SBT added major version specific source directories as well -- e.g., src/{main,test}/scala-{major}.
I've been using this snippet in fs2 and a few other projects:
Compile / unmanagedSourceDirectories ++= {
  val major = if (isDotty.value) "-3" else "-2"
  List(CrossType.Pure, CrossType.Full).flatMap(
    _.sharedSrcDir(baseDirectory.value, "main").toList.map(f => file(f.getPath + major))
  )
}

@jastice iirc each of these create an empty directory when using IntelliJ. Is that still the case?

In principle it sounds like a good idea, but also it's hard to gauge what the overall % of builds would benefit from src/main/scala-2/ as opposed to src/main/scala-2.12/ and src/main/scala-2.13/ that it currently supports. I'd encourage creating a plugin first and see how it catches on?

sbt-spiewak does this already, but you get all of Daniel's strongly formed opinions about builds as well. :) Daniel and I and some others on Gitter have discussed upstreaming this type of config to sbt-dotty, but if I understand the roadmap of sbt-dotty correctly, that's about to be incorporated in to sbt proper.
No strong opinions on whether SBT should do this or not, but would be nice to lower the barrier of entry for folks cross building scala 2 & 3 projects. I'm pretty sure most of the Typelevel projects that are cross-building have required at least one scala-3 directory -- definitely at least cats-effect, fs2, and scodec-bits (also ip4s, though that's non-Typelevel). This will be common for any library that has a macro or otherwise wants to include support for new Scala 3 language features.

strongly formed opinions about builds

I believe the adjective you're looking for is "correct". 😉
Just kidding. I do believe that sbt should do this, for the same reason it does the minor source dirs already. This would also be a similar pathway to how that feature arose, since it was extremely common practice for builds prior to when this functionality was upstreamed.

I think this is going to be pretty universal for library maintainers but I'm fine with a plugin, if someone can figure out how to do that. While we're asking for ponies I'd also like to see scala-<version>+ for that <version> or later, and the same with -. For doobie I ended up with
src/
  main/
    scala/
    scala-2/
    scala-2.12/
    scala-2.13+/
    scala-3/

@jastice iirc each of these create an empty directory when using IntelliJ. Is that still the case?

No, this doesn't happen anymore

Here's my PR for this - https://github.com/sbt/sbt/pull/5919

@eed3si9n I noticed something with this fix -- in a cross project, the Scala major version directories are added for the jvm directory but not the shared directory.
E.g., from fs2:
sbt:fs2-core> show unmanagedSourceDirectories
[info] * /Users/mpilquist/Development/oss/fs2/core/jvm/src/main/scala
[info] * /Users/mpilquist/Development/oss/fs2/core/jvm/src/main/scala-3.0.0-M2
[info] * /Users/mpilquist/Development/oss/fs2/core/jvm/src/main/scala-3
[info] * /Users/mpilquist/Development/oss/fs2/core/jvm/src/main/java
[info] * /Users/mpilquist/Development/oss/fs2/core/shared/src/main/scala-3.0.0-M2
[info] * /Users/mpilquist/Development/oss/fs2/core/shared/src/main/scala

@mpilquist Aren't those construct created by a plugin?

Hm, not sure, sbt-crossproject maybe?

The cross project issue is fixed in https://github.com/portable-scala/sbt-crossproject/pull/132.


billing: x-ms-pageable is missing in BillingAccount_List of 2019-10-01-preview

The x-ms-pageable attribute is missing in BillingAccounts_List  of 2019-10-01-preview version:
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/billing/resource-manager/Microsoft.Billing/preview/2019-10-01-preview/billing.json#L20-L63
while it exists in BillingAccount_List of 2018-11-01-preview version:
https://github.com/Azure/azure-rest-api-specs/blob/master/specification/billing/resource-manager/Microsoft.Billing/preview/2018-11-01-preview/billing.json#L20-L66
Is it intended, or just forgotten to include?

@yaegashi it indeed is a miss in the 2019-10-01-preview version. We're working on the GA version of the API, which should be available in the next couple of months. x-ms-pageable will be added to the GA version.

@amberbhargava Thanks for the clarification.  I was a bit confused, 2020-05-01 stable version was indeed present in billing, but it's actually 2020-05-01-preview in the Go SDK for which I was going to generate by myself.  Can I expect it to become 2020-05-01 stable when it's GA?

@yaegashi Please expect the stable version 2020-05-01 to be available very soon with the x-ms-pageable attribute. Please do not refer the 2020-05-01-preview version. Thank you!

closing this issue as its now fixed. Please feel free to reopen this as needed.


Document docker deployment, diligently

Couldn't resist the alliteration.
I figured I'd make an issue for this so it doesn't fall off of the radar (mine, or anyone else's). Although docker exists for this repo, Github's wiki system is not friendly to contributions. Once the documentation repository, website, or directory gets created, I plan on making those changes ASAP.

I've setup a new repo wor the wiki system to allow pull requests here. I will setup an automated build which will sync the two repos.
And nice alliteration ;)

Great! I'll start working on that documentation soon.

I've setup an automated process to sync the Wiki Repo to the wiki.


Fix template fallback logic to handle TemplateFrom syntax

The External Secrets documentation has the following example:
# define your template in a config map
apiVersion: v1
kind: ConfigMap
metadata:
  name: grafana-config-tpl
data:
  config.yaml: |
    datasources:
      - name: Graphite
        type: graphite
        access: proxy
        url: http://localhost:8080
        password: "{{ .password }}"
        user: "{{ .user }}"
---
apiVersion: external-secrets.io/v1alpha1
kind: ExternalSecret
metadata:
  name: my-template-example
spec:
  # ...
  target:
    name: secret-to-be-created
    template:
      engineVersion: v2
      templateFrom:
      - configMap:
          # name of the configmap to pull in
          name: grafana-config-tpl
          # here you define the keys that should be used as template
          items:
          - key: config.yaml
  data:
  - secretKey: user
    remoteRef:
      key: /grafana/user
  - secretKey: password
    remoteRef:
      key: /grafana/password

This configuration currently triggers some fallback logic and would result in a non-templated secret with just the key value data because target.template.data is empty.
This PR fixes that fallback logic to allow for template definitions like the example that just use templates from ConfigMaps.

/ok-to-test sha=6de939912636076e2f17c167a5235823954d8986

hey @mbillow ! Thanks for your interest in the project and your contribution! Indeed I had similar issues but I thought it was my inexperience with templating!

/approve


Update flutter tools for new Android plugins API

[ ] Generated code from flutter packages get references new API
[ ] Generated code from flutter packages get against old plugins uses the shim
[ ] flutter create -t plugin creates plugins based on the new template

cc @matthew-carroll

From discussion today, we said it would be interesting to check whether we can, for the new embedding case, let the engine directly try to use reflection to specifically find the generated class which calls into the collection of new plugin API construction and into the collection of old plugin API shim construction.
The latency cost needs to be satisfactory for us but if it were something like 20ms, that could be acceptable in exchange for users no longer needing to call anything in their own code for the plugins to be loaded.
Optionally, add a mechanism during FlutterEngine construction to opt-out of the automatic registration. And have a public method to manually register later. But that doesn't have to be done in phase 1.

For Matt, one component of this is also to make sure that when the new embedding's reflection of GeneratedPluginRegistrant is called, that a ShimPluginRegistry instance is passed into the registerWith function for the old plugin types

@matthew-carroll. If possible, it would be useful to share a link to the latest doc we discuss, so folks reading this thread know where we are now.

The doc is posted on https://flutter.dev/go/generated-plugin-registration.


Remove redundant helper and align example raw strings

What type of PR is this?
/kind cleanup
What this PR does / why we need it:
While reading the code base to learn the functionality, I noticed some trivial improvements. This PR tries to incorporate these changes.
Special notes for your reviewer:
Does this PR introduce a user-facing change?
None

/label tide/merge-method-squash

/ok-to-test


Unfollow followings if they have a fediverse handle

It would be nice to be optionally able to unfollow followings if they have a fediverse handle.

I would need to switch to read-write access, which most people are very cautious about.
Maybe having a more powerful version for people who prefer that.


refactor(StakeManager): optimize stake, account init and lock function

Description
This pull request  focuses solely on cleaning up the code. The clean-up removes outdated or unnecessary code, which was masking a bug that is being addressed in #127
Details
This changes the account initialization on stake():

removing zombie instructions, inherited from restaking ability which was removed:

account was having bonusMP += and totalMP +=, but these values were always zero;

making it more clear, by removing _mintBonusMP, and initializing account on a single write;
allowing the StakeVault to be recycled after unstaking all funds, by removing the check for lockUntil != 0

This changes the method lock():

making it more clear, by removing _mintBonusMP
fixing a bug which was updating lastMint on lock()->_mintBonusMP to current block.timestamp(), which shouldnt be updated to that value, masking the bug addressed in #127

Details on #127 bug
The bug was hidden because the _mintBonusMP function contained a line that updated account.lastMint to the same value as startEpoch. This had the unintended effect of making the epoch estimation appear correct when calling StakeManager.lock(). As a result, the underlying bug wasn’t detected in  test_UpdateLockupPeriod.
PR #130 does not fix this bug; instead, it cleans up the code that was hiding it for  test_UpdateLockupPeriod to cach it. The actual bug fix is handled in PR #127, which also introduces other tests that would have catched it while implementing the multiplier points estimation.
Purpose
Code Cleanup: This PR removes code that was masking the bug, allowing the system to function properly moving forward.
Not a Bug Fix: It doesn't directly fix the bug but removes the part of the code that was preventing the issue from being caught in the test.
Important Notes
The test failures seen in executeAccount->processAccount->mintMP are unrelated to this cleanup. However, PR #130 requires that PR #127 and PR #129 be merged first to ensure proper function.
Checklist
Ensure you completed all of the steps below before submitting your pull request:

[x] Added natspec comments?
[x] Ran forge snapshot?
[x] Ran pnpm gas-report?
[x] Ran pnpm lint?
[x] Ran forge test?
[x] Ran pnpm verify?

Changes look good to me, but it seems this is not passing tests

Changes look good to me, but it seems this is not passing tests

Indeed, this happens because this changes uncovered a bug in the contract, which is fixed by https://github.com/logos-co/staking/pull/127 https://github.com/logos-co/staking/pull/129

The bug we see in tests here was being mascarated in the test test_UpdateLockupPeriod due lock function updating the lastMint to currentBlock.timestamp.  This bug was also not found in any other tests because there were no other tests where a real world scenario would exist, which are - calling the contract in the middle of an epoch.
The only place this would scenario existed was in test_UpdateLockupPeriod, which by a leftover code from previous requirements (processAccount also processing the currentEpoch).
The bug found here was introduced because estimation would consider that epochs are all fixed size multiple of EPOCH_SIZE. However, this PR does not fix this issue, this is being fixed at #127
This PR intends to cleanup the code, which cleaned up a wrong line in the code mascarating the bug that otherwise would be catched at test_UpdateLockupPeriod.
The exact fail of the tests is inside executeAccount->processAccount->mintMP, and should have nothing to do with this changes. But we cant progress into this PR changes without having #127 and #129 merged into develop.

Updated description to explain exactly whats happening here, why this tests are failing for this correct code change.

So this PR is failing on verify because the spec is outdated.
Two things are failing:

The current spec considers restaking is possible (why it didn't failed earlier, btw?)
What is failing is that is havocing inside account, adding some random multiplier points, and see if it incrases (in stake function). However, now the staking contract dont allow restake, and it should not increase anymore.
Here I tested a change in this code where it would add the old balance back again https://prover.certora.com/output/585415/7c5efd9e4bbf4d889c36e9acaada8ee6?anonymousKey=303a179377435cf7b148f082d0a45e0380ddde64
I need @0x-r4bbit some input here on how to update this spec

The other reason I still didn't figured out (just had time to dig into the one above). It's really strange, because it's saying that is possible that stake function to set the account.epoch > than the currentEpoch.
https://prover.certora.com/output/585415/288f4d626b9f412f8f7f78ec6ce440d7?anonymousKey=36b7b0f8ffdb668e596fed82647c213fce66f774
I'll figure this one out tomorrow, and than we see how to update the spec (or fix the contract).
@0x-r4bbit if you see something let me know, but you don't have to look into this one yet because I didn't spent time with it yet.

@3esmit I added a commit here with these changes:

adds an accountBonusMPIsZeroIfBalanceIsZero invariant (prover run: https://prover.certora.com/output/6199/d6ef43d62ee34413840f6750a6ee64e4?anonymousKey=8f051bae33f9184ab91bc5538afc4d416d2a88ee)
adds that invariant and the accountCurrentMPIsZeroIfBalanceIsZero invariant to the failing sumOfMultiplierPointsIsMultiplierPoints invariant, which then passes (prover run: https://prover.certora.com/output/6199/ecd475b011ad48008f5b0529fb110c46?anonymousKey=122620db726e46da2696bf1b8eb97fdfa7b1ce9d)

This should do the trick


Need a method for implementing convenient security

right now, any user in the application can create and fully manage coupons.  obviously this isn't ideal.  do we want to limit it to staff users or provide a group?
in groups or staff or superuser.  -- so pull the groups list from the settings.

maybe also allow them to set some custom settings which then provide the input to get_authenticators etc for different methods.

this, https://djangosnippets.org/snippets/1703/, if I recall wasn't working on django 1.10 onward, and I had a fixed version but I don't have access to it anymore.

My plan is to have dynamic group requirements such that you can specify in your settings file what group restrictions you might want for the coupon API calls.  If that makes sense.
    'create': ['group1', 'group2'],
    'delete': ['group1'],
    'list': ['group1'],
}```

And the system will then know to check when creating an API if you're in `group1` or `group2` or `superuser`.


Request to EMS service has failed, unable to set FPA token

Description
It was working earlier but suddenly it stopped working. Even the sample app returns the same. But the iOS version works. Is there any configuration that I need to change & why is it only reflecting android.
Access Token

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImN0eSI6InR3aWxpby1mcGE7dj0xIn0.eyJqdGkiOiJTSzliZjE5MmMxN2MxZjI5MDM5YTYxMTRkZTZjYTk1ZTIwLTE1Mzk2ODAxNzYiLCJncmFudHMiOnsiaWRlbnRpdHkiOiJuaWRoaW4yQG1haWxpbmF0b3IuY29tIiwicnRjIjp7ImNvbmZpZ3VyYXRpb25fcHJvZmlsZV9zaWQiOiJWUzE4NDAwMzEwZDU2ZTU3MjBkNGRjZDBkMzI1ZTdiYTNjIn0sImlwX21lc3NhZ2luZyI6eyJzZXJ2aWNlX3NpZCI6IklTMjM2MGE4NmZjOTdiNDQyNGE1NzUzMzdiNjMwZmE5NzEiLCJlbmRwb2ludF9pZCI6IlNlbmRBU2l0dGVyLUlQTWVzc2FnaW5nOm5pZGhpbjJAbWFpbGluYXRvci5jb206ZGV2aWNlIn19LCJpYXQiOjE1Mzk2ODAxNzYsImV4cCI6MTUzOTY4Mzc3NiwiaXNzIjoiU0s5YmYxOTJjMTdjMWYyOTAzOWE2MTE0ZGU2Y2E5NWUyMCIsInN1YiI6IkFDYjExODBjMGQxNTkxMzA2ODc0ODIxMWRmOGFiNWJlZDMifQ.ehdhIVBg-LFzsnlz9JOoF5gP9hJrtmoTja_1jLcM22I

Steps to Reproduce
While Initiating a chat client
Actual Behavior
When I try to create a Chat Client I get

Request to EMS service has failed, unable to set FPA token

Reproduces how Often
Currently always
Logs
LOGS ill Attach a file
Versions
All relevant version information for issue.
Chat Android SDK
0.12.2
Android API
9
Android Device
All

Updated
and attached the log

The log does not contain even a single log line from the Twilio SDK. Please follow the [manual] to properly record a log file.

Thats the log im getting

ChatClient(native):<PHONE_NUMBER>00 | 10/16/15:31:05.841 | DEBUG    | ChatClient(native) | Started ChatClient nativeCreate()
10-16 15:31:05.843  2324  2324 D ChatUtils(native):<PHONE_NUMBER>00 | 10/16/15:31:05.843 | DEBUG    | ChatUtils(native) | Didn't find default onSuccess()
10-16 15:31:05.844  2324  2324 D ChatUtils(native):<PHONE_NUMBER>00 | 10/16/15:31:05.844 | DEBUG    | ChatUtils(native) | Looking for backup onSuccess()
10-16 15:31:05.844  2324  2324 W ChatUtils(native):<PHONE_NUMBER>00 | 10/16/15:31:05.844 | WARNING  | ChatUtils(native) | ListenerWrapper default onSuccess() not found
10-16 15:31:05.852  2324  2832 D         :<PHONE_NUMBER>08 | 10/16/15:31:05.852 | DEBUG    |  | Using root certificate store: /data/user/0/com.sendaride.carepartner/files/rootcert.pem
10-16 15:31:05.856  2324  2832 D ChatClient(native):<PHONE_NUMBER>08 | 10/16/15:31:05.856 | DEBUG    | ChatClient(native) | Creating notification client observer

log1.txt

It still does not contain any Twilio SDK log lines. You could check yourself before sending - just grep for EMS or TWC.

is it because of the sdk version.. the previous version would have lesser logs?

0.12.2 has been out of support a while, try using a recent version. 0.x will be hard end-of-lifed soon.

Ok, I'll just set up the project. But why did it stop all of a sudden without any notice & why is Web and ios working.

Because they are more recent version, I would assume.

Ok updated to the latest, it started working. Just a suggestion as Twilio is being widely used by enterprises now, it will be great to have a section in Admin Dashboard telling that the library is about to get obsolete  or some mail notification to admin.

Reopening the issue :-
Im On the latest sdk :- 3.1.1
I can see the error still coming sometimes. its like 90% it works and rest its coming as error.

Hi, can you check with 4.0.0-rc18 and post here if anything changes?

Closing, no response.


📖 docs: fixed integrations/document loaders toc

Fixed navbar:

renamed several files, so ToC is sorted correctly
made ToC items consistent: formatted several Titles
added several links
reformatted several docs to a consistent format
renamed several files (removed _example suffix)
added renamed files to the docs/docs_skeleton/vercel.json

@baskaryan

@baskaryan I fixed paths in vercel.json The same as the previous PR.

@baskaryan

@eyurtsev

@baskaryan Please review.

@baskaryan Could you, please, review it?

@baskaryan Could you, please, review it?

@hwchase17  Could you, please, review it?


Imported scripts: fix formatting on content imported

Any imported script ends looking like this in the DB

code already in Miller


Licensing issue with Stackoverflow's CC-BY-SA License

Hi, thank you for this library.
We have recently been FOSS audited and this package was flagged with potential licensing issues.
Code copied/distributed and/or adapted from Stackoverflow requires:

attribution and
licensing under the same license as the original (CC-BY-SA-3.0 or CC-BY-SA-4.0).
This repositories MIT License is not compatible with CC-BY-SA.

The code that is causing issue:
https://github.com/Python-Markdown/markdown/blob/faf73b08bb984669fcba044259f8d67fbfed69ab/markdown/util.py#L103
https://github.com/Python-Markdown/markdown/blob/faf73b08bb984669fcba044259f8d67fbfed69ab/markdown/util.py#L161
Consider changing the implementation of the function such that the attribution isn't required.

The StackOverflow code that was referenced I could hardly call an algorithm, it is more a demonstration of how to wrap a function creating a decorator. There is barely anything novel there and mainly helps people understand decorators which aren't always intuitive to some people.
Stackoverflow is filled with examples simply demonstrating how to use Python functions properly. Simply using a Python function as demonstrated on StackOverflow does not constitute copyright infringement.
You can't copyright the use of the "warn" function, so are they copyrighting the wrapping functions with decorators? As illustrated here https://docs.python.org/3/library/functools.html#functools.wraps?
The "copied" example simply demonstrates basic Python usage to achieve what people can't always remember how to do. I don't know how you'd make this extremely different except changing the function names.
If we were talking about an actual algorithm here, I'd be more concerned.

Thank you for taking the time to respond so promptly!
I agree with you 100% with the deprecation decorator. It isn't doing anything novel. The attribution appears to be linking to the stack overflow comment only to document other similar usages.
Perhaps the get_stack_depth function can be modified with something like:
def current_stack_size(size=2):
    frame = sys._getframe(size)
    while True:
        frame = frame.f_back
        if not frame:
            return size
        size += 1

Thoughts? I can open a PR with the change.

Perhaps the get_stack_depth function can be modified with something like:
def current_stack_size(size=2):
    frame = sys._getframe(size)
    while True:
        frame = frame.f_back
        if not frame:
            return size
        size += 1

Thoughts? I can open a PR with the change.

My honest opinion is that the above is wholly unnecessary and is changing things simply to change things. My personal opinion is that if the link bothers anyone, I'd remove the StackOverflow link. Python demonstrates how to use wrappers: https://docs.python.org/3/library/functools.html#functools.wraps
And python explains their API for "warn": https://docs.python.org/3/library/warnings.html#warnings.warn
The example was essentially a demo of how to properly use decorators. Not much different than what is documented in Python's own documentation that I linked above. If anything, I'd argue that the StackOverflow example is derived from Python's own example.
I've answered plenty of questions on StackOverflow about my own libraries: https://stackoverflow.com/a/59977885/3609487. I'm simply demonstrating how they can use my library, the same way I do in my docs for the official repo.  This doesn't make using my library in this way bound to CC-BY-SA. My libraries are licensed under MIT, and me demonstrating the basics on StackOverflow on how to use them will not cause them to infect their repo licensing with CC-BY-SA.
Often, people are showing concepts that happen to be tailored to the specific asker's question, but they are quite often very basic things, fundamentals of a given library in question or the language API. I feel like this deprecated example falls into the above.
With that said, StackOverflow has plenty of examples of algorithm implementations, if Python Markdown was using any of that, I would recommend more care to apply the learned concept in a different way instead of copying code word for word.
I'll let @waylan weigh in though as the project maintainer. I personally see nothing wrong with what Python Markdown is doing, but I understand that seeing this may make your company's lawyers nervous at first glance. Company lawyers are paid to be overly cautious as that helps protect the company.

I agree with @facelssuser here. This seems like a complete waste of our time.

 If code wasn't copied from SO the simplest resolution is to remove the attribution. A docstring explaining the functions usage would achieve the intention of the current attribution.
Sorry for the time taken and thankyou for your response!

100% agree with you guys. Definitely don't want to be wasting your time with this nonsense -- I'd honestly likely be much less accommodating to this faff than @facelessuser has been already (thank you!).
Have thrown up a PR at #1149, to hopefully get past this quickly. :)
Cheers,


BorderRadius and overflow: hidden not working

Environment
"react-native-macos": "0.61.46",
Issue
Trying to set borderRadius on an Image does not work, neither does setting the borderRadius on a parent container and setting overflow to hidden

This may have gotten fixed in one of the recent PRs: https://github.com/microsoft/react-native-macos/pull/457

Yep, seems to be fixed on the latest version


1999 AYTQ deploying test, preprod environments via AKS workflow jobs

Context
Adding test and preprod environments for aytq
Changes proposed in this pull request
Adding configuration for Terraform variables, aswell as config values and makefile targets for different environments. GHA workflow added in parallele aswell as AZURE_CREDENTIALS for relevant environments which have been tested.
Guidance to review
Link to successful workflows below for test and preprod.
https://github.com/DFE-Digital/access-your-teaching-qualifications/actions/runs/11032093796
URLs for Test;
https://access-your-teaching-qualifications-test.test.teacherservices.cloud
https://check-a-teachers-record-test.test.teacherservices.cloud
URLs for Preprod;
https://access-your-teaching-qualifications-preprod.test.teacherservices.cloud
https://check-a-teachers-record-preprod.test.teacherservices.cloud
Link to Trello card
https://trello.com/c/FBOTpKnP/1999-aytq-deploy-test-environment
https://trello.com/c/YqMPtXPh/2026-aytq-preproduction-environment
Checklist

[x] Attach to Trello card
[x] Rebased main
[x] Cleaned commit history
[x] Tested by running locally

 AYTQ: Deploy test environment

 AYTQ: Deploy test environment

 AYTQ: preproduction environment


Flavors not working

I am attempting to set the github flavor.  Is this supported in this addon?
showdown: {       flavor: 'github'     },

I haven't verified, but have you tried to do the following:
import showdown from 'showdown';

/* somewhere within your app */
showdown.setFlavor('github');


js-xlsx exported XLS BIFF8 and Apache-POI XLS reading function compatibility issue

Dear SheetJS developers,
js-xlsx is incompatible with Apache-POI XLS reading function.
Here is a sample maven project which can be complied to instantly reproduce the error:
poirun.zip
When opening js-xlsx generated document with Apache-POI library a following error occurs:
Exception in thread "main" java.lang.RuntimeException: Found EOFRecord before WindowTwoRecord was encountered         at org.apache.poi.hssf.model.RecordOrderer.isEndOfRowBlock(RecordOrderer.java:430)         at org.apache.poi.hssf.model.RowBlocksReader.<init>(RowBlocksReader.java:58)         at org.apache.poi.hssf.model.InternalSheet.<init>(InternalSheet.java:181)         at org.apache.poi.hssf.model.InternalSheet.createSheet(InternalSheet.java:122)         at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:354)         at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:400)         at org.apache.poi.hssf.usermodel.HSSFWorkbook.<init>(HSSFWorkbook.java:381)         at poirun.ApachePOIExcelRead.main(ApachePOIExcelRead.java:21)
I have tried generating the file with bookSST set as true and false, what did not help. Also the target application for which I am generating this file only supports reading XLS BIFF8 files via Apache-POI API.

Thanks for sharing!  That error message suggests POI requires a Window2 record (window properties for the given sheet).  This situation is unclear:

Excel accepts files without Window2 records
The official Binary File Format Validator accepts files without Window2 records
The official specification claims it is required.

It would seem the spec might be in error and that the record is indeed optional.  We have raised an issue with POI (https://bz.apache.org/bugzilla/show_bug.cgi?id=63708) and it is better to continue the conversation there.

@sheetjsdev as official specification requires Window2 it makes sense to create it with SheetJS, and add a flag which would allow to enable or disable this behavior.
Sometimes Sheetjs generated files crash Excel, this might be one of the causes.
For Apache POI a compatible way of handling this situation would be accept files with both Window2 records and without, just like Excel does.
Could you point me on the part in SheetJS source code which can be modified to enable Window2 creation?

It's written only if you specify view options, to force it to generate Window2 records you need to make 2 changes:

https://github.com/SheetJS/js-xlsx/blob/master/bits/78_writebiff.js#L212 the if statement should be changed as follows:

-	if(b8 && _WB.Views) write_biff_rec(ba, "Window2", write_Window2(_WB.Views[0]));
+	if(b8) write_biff_rec(ba, "Window2", write_Window2(_WB.Views[0]));

check the write_Window2 function in https://github.com/SheetJS/js-xlsx/blob/master/bits/39_xlsbiff.js#L356 and see if any of the defaults need to be changed.

Thank you for you reply,
I have found the solution which can be added to the Docs: wb.Workbook = { Views: ['Window2'] };
Can be added before calling XLSX.write, then Window2 is created and the file is successfully opened by Apache POI.

@sheetjsdev
Furthermore, if you try to add a new sheet with Excel 2016 to SheetJSTableExport.xls, Excel crashes.
When the file is generated with Window2 it does not crash in this situation.

Can you share a sample file where excel is crashing?

@sheetjsdev
It's the SheetJSTableExport.xls from your demos page. (also included in poirun.zip xls directory)

Thank you for you reply,
I have found the solution which can be added to the Docs: wb.Workbook = { Views: ['Window2'] };
Can be added before calling XLSX.write, then Window2 is created and the file is successfully opened by Apache POI.

This solution helped me too, thanks @cordovapolymer!

To be sure, you could also write:
if(!wb.Workbook) wb.Workbook = {};
if(!wb.Workbook.Views) wb.Workbook.Views = [];

and that would trigger the Window2 generation.
Please direct further comments to the Apache POI project https://bz.apache.org/bugzilla/show_bug.cgi?id=63708 .
@cordovapolymer we'd accept a PR that makes the change in step 1 from https://github.com/SheetJS/sheetjs/issues/1612#issuecomment-526530072


Azure Data Studio Schema compare issue

@joe-r-ups

Azure Data Studio Version: 1.17.1

Steps to Reproduce:
When comparing two different Azure SQL Databases, Azure Data Studio indicates that there are no changes. It is stuck at initializing compare.

@v-omali, thanks for reporting the issue. We have noticed Azure database comparisons taking longer time but this should not remain stuck. To help us investigate the issue further

Can you please let us know approximate size of the databases.
Also, you mentioned ADS indicates there are no changes - does that mean the compare eventually finishes and shows a message that there are no differences? if so - how long it took to finish?

Thanks for your help!

++ Joe
From: Udeesha Gautam<EMAIL_ADDRESS>Sent: Tuesday, May 26, 2020 12:12 PM
To: microsoft/azuredatastudio<EMAIL_ADDRESS>Cc: Omar Ali (MINDTREE LIMITED<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [microsoft/azuredatastudio] Azure Data Studio Schema compare issue (#10556)
@v-omalihttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fv-omali&data=02|01|v-omali%40microsoft.com|45a0675fb87b4d1a4f4b08d801a89af3|72f988bf86f141af91ab2d7cd011db47|1|0|637261170956983822&sdata=Qg0kJsKAiplBq6YBroNZCN3wWIgiuUES1f5G5tNt%2F54%3D&reserved=0, thanks for reporting the issue. We have noticed Azure database comparisons taking longer time but this should not remain stuck. To help us investigate the issue further

Can you please let us know approximate size of the databases.
Also, you mentioned ADS indicates there are no changes - does that mean the compare eventually finishes and shows a message that there are no differences? if so - how long it took to finish?

Thanks for your help!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fazuredatastudio%2Fissues%2F10556%23issuecomment-634221242&data=02|01|v-omali%40microsoft.com|45a0675fb87b4d1a4f4b08d801a89af3|72f988bf86f141af91ab2d7cd011db47|1|0|637261170956983822&sdata=qj8CV3x4QPPjx83jWs5DTDCYhfOOhaCSHss2KEo%2B8Zw%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAPSJKATUSIDAJ4L4HKDWMODRTQH6LANCNFSM4NK5W26Q&data=02|01|v-omali%40microsoft.com|45a0675fb87b4d1a4f4b08d801a89af3|72f988bf86f141af91ab2d7cd011db47|1|0|637261170956993817&sdata=WwcUG3F7%2Bux6zZ6pDJNRMn%2BK5lO0SHEPpW4sNE1Zh5k%3D&reserved=0.

@joe-r-ups

@v-omali @joe-r-ups can you also try using the SSDT schema compare in Visual Studio and see if the comparison finishes using that tool?