make command on gnutls hangs

I am finding this stage:
building gnutls - version 3.7.10
gnutls-3.7.10.tar.xz has already downloaded.
Extracted gnutls-3.7.10.tar.xz
$ ./configure --prefix=/home/ec2-user/ffmpeg-build-script/workspace --disable-shared --enable-static --disable-doc --disable-tools --disable-cxx --disable-tests --disable-gtk-doc-html --disable-libdane --disable-nls --enable-local-libopts --disable-guile --with-included-libtasn1 --with-included-unistring --without-p11-kit CPPFLAGS=-I/home/ec2-user/ffmpeg-build-script/workspace/include LDFLAGS=-L/home/ec2-user/ffmpeg-build-script/workspace/lib
$ make -j 1
Seems to take a long time, like more than 30 minutes. Does gnutls tend to take this long to make?
Do you have any suggestions in general about what to do if a specific stage hangs like this?
I recognize that you only support Debian and MacOS. Just FYI, I am running this on Amazon Linux 2023.

Cancel request… I upgraded my instance from t2.micro to t2.large and now it seems to be chugging along. Great!


Inspect Django calls to extra()

Feature Request
Look at calls to extra() in Django using similar logic to the RawSqlInspection.
Check that parametrized strings haven't been quoted.

Implemented in #83


Object Graph circular dependency check is not thread safe

Was experiencing some occasional, random array index out of bounds exceptions from circular dependency check in graph validation and looking at the code it occurs to me that the code for circular dependency checking is not thread safe. It sets a visiting flag on the binding to mark that it is currently visiting it. But if another thread happens to be validating the same graph this can lead to problems. If a binding is visited on another thread the current thread will see the binding as visited. When it tries to compose a nice message of the cycle it starts at the index of the binding in its path, but the current path has not actually visited it so does not have that binding in its path thus the Array index out of bounds exception.
In our case the multiple threads was due to the fact that we use Dagger to also inject some services and it was always the injection for a service that failed. If they happened to be started at the same time as an injection for the UI we get the exception.

For some reason in our code, we were validating the graph on each injection (in debug mode). I moved it to only validate after the graph is created which means this is not a high priority thing to fix, but this will serve as notification in case someone else runs into this.

The runtime graph validation is only a hedge against adding a different set
of modules at runtime vs. at compile time.  If you are certain you are
passing in the same modules that you compiled with, then the validation you
are running has already occurred.  It's a safety vs. performance question -
but there it is.
On Sat Jan 31 2015 at 7:16:52 PM Dale King<EMAIL_ADDRESS>wrote:

For some reason in our code, we were validating the graph on each
injection (in debug mode). I moved it to only validate after the graph is
created which means this is not a high priority thing to fix, but this will
serve as notification in case someone else runs into this.
—
Reply to this email directly or view it on GitHub
https://github.com/square/dagger/issues/459#issuecomment-72349330.

As I said we were only doing the validation in debug mode. If there were issues we wanted to discover them during development. But as I said doing the validation for every injection was a bad idea.

Acknowledged.
On Mon Feb 02 2015 at 4:30:03 PM Dale King<EMAIL_ADDRESS>wrote:

As I said we were only doing the validation in debug mode. If there were
issues we wanted to discover them during development. But as I said doing
the validation for every injection was a bad idea.
—
Reply to this email directly or view it on GitHub
https://github.com/square/dagger/issues/459#issuecomment-72568738.


feat: add copyMessage

Hi! thanks for your contribution!
would you mind to add tests for this feature and update /docs ?

test added for copy message
The doc is updated


GraphicCollection feature data is not accessible

It would be useful to access the feature data, for example:

Currently resorting to this:
[plot_temporal["temporal"].graphics[ix].present() for ix in range(len(plot_temporal["temporal"].graphics))]

this also does the same thing but needs to be exposed publicly with a similar API as the non-collection features, perhaps graphic[:].present(), or graphic[:].present[slice]()
[p() for p in temporal_graphic[:].present._feature_instances]


dbt-spark integration

I would like to request through this issue, the possibility of having integration with dbt-spark

Hi @viniciusnunest, what database are you using?

This is now supported.


Improve algorithms for incremental/partial-fit training in streaming environment

currently, using Matrix Factorization with Gradient Descent Optimization.  better algos exist.

http://quinonero.net/Publications/predicting-clicks-facebook.pdf

Investigate fold-in method from @srowen:  https://www.slideshare.net/mobile/srowen/big-practical-recommendations-with-alternating-least-squares (slide 14).
also, investigate the latest advancements with his oryx project:  http://oryx.io/

Netflix's Offline, Nearline, and Online architecture:  http://techblog.netflix.com/2013/03/system-architectures-for.html

this includes both Spark ML and TensorFlow, but we may split these into separate issues if needed

Yahoo slides/talks:
http://www.slideshare.net/PatrickPletscher/training-largescale-ad-ranking-models-in-spark

Great article by Uber on incremental data processing:  https://www.oreilly.com/ideas/ubers-case-for-incremental-processing-on-hadoop

Interesting paper on incrementally training neural nets versus starting from scratch:  http://arxiv.org/abs/1511.05641

Related to https://github.com/fluxcapacitor/pipeline/issues/114

Spark Streaming + Spark ML Proposal:
https://docs.google.com/document/d/1snh7x7b0dQIlTsJNHLr-IxIFgP43RfRV271YK2qGiFQ
Interesting reference from the above proposal:  http://huawei-noah.github.io/streamDM/

part of larger effort


Vulnerability roundup 84: glibc-2.30: 3 advisories

search, files

[ ] CVE-2020-1751 CVSSv3=7.0 (nixos-20.03, nixos-unstable)
[x] CVE-2020-1752 CVSSv3=7.0 (nixos-20.03, nixos-unstable)
[ ] CVE-2020-10029 CVSSv3=5.5 (nixos-20.03, nixos-unstable)

Scanned versions: nixos-20.03: 82b5f87fcc7; nixos-unstable: 0f5ce2fac0c. May contain false positives.

20.03 is frozen and EOL.
master at 2.32
Closing.


F11 and F12

Right now I understand that F11 and F12 are not valid keys in gui.cs.
F11 makes the console full screen (on Windows) and F12 didn't do anything. Is it possible to override those keys and support handling those keys in gui.cs?
Thanks!

Do you want to use the key for an app-level thing, or have Terminal.Gui do something with them?
I do believe WindowsDriver.cs could be modified to support this, easily.

Fixed in #535


[FLINK-34251][core] ClosureCleaner to include reference classes for non-serialization exception

What is the purpose of the change
Currently the ClosureCleaner throws exception if {{checkSerializable} is enabled while some object is non-serializable. It includes the non-serializable (nested) object in the exception in the exception message.
However, when the user job program gets more complex pulling multiple operators each of which pulls multiple 3rd party libraries, it is unclear how the non-serializable object is referenced as some of those objects could be nested in multiple levels. For example, following exception is not straightforward where to check:
org.apache.flink.api.common.InvalidProgramException: java.lang.Object@528c868 is not serializable.

It would be nice to include the reference stack in the exception message, as following:
org.apache.flink.api.common.InvalidProgramException: java.lang.Object@72437d8d is not serializable.
Referenced via [class com.mycompany.myapp.ComplexMap, class com.mycompany.myapp.LocalMap,
class com.yourcompany.yourapp.YourPojo, class com.hercompany.herapp.Random, class java.lang.Object]...

Verifying this change
This change is largely covered by existing tests, and new test case was added to ClosureCleanerTest.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
The serializers: (yes / no / don't know)
The runtime per-record code paths (performance sensitive): (yes / no / don't know)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
The S3 file system connector: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@zentol Could you take a look?


rancher/k3s:v1.31.3-k3s1  messing with network device permissions

Environmental Info:
K3s Version:
1.31.3-k3s1
Node(s) CPU architecture, OS, and Version:
Linux k3d-home-media-server-server-0 <IP_ADDRESS>-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 GNU/Linux
Cluster Configuration:
# k3d-config.yaml
apiVersion: k3d.io/v1alpha5
kind: Simple
metadata:
  name: k3s-1.31.3-test
servers: 1
agents: 0
image: rancher/k3s:v1.31.2-k3s1 # changing to rancher/k3s:v1.31.3-k3s1 causes aforementioned error
network: test-network

Describe the bug:
Upgrading the rancher image from  rancher/k3s:v1.31.2-k3s1 to rancher/k3s:v1.31.3-k3s1 causes permissions errors when accessing /dev/net/tun inside the gluetun container.
Please find the file structure and contents as follows.
File structure:
- k3d-config.broken.yaml
- k3d-config.working.yaml
- templates/
  - gluetun.yaml
- Chart.yaml

File contents:
# k3d-config.broken.yaml
apiVersion: k3d.io/v1alpha5
kind: Simple
metadata:
  name: k3s-1.31.3-broken
servers: 1
agents: 0
image: rancher/k3s:v1.31.3-k3s1
network: test-network

# k3d-config.working.yaml
apiVersion: k3d.io/v1alpha5
kind: Simple
metadata:
  name: k3s-1.31.3-working
servers: 1
agents: 0
image: rancher/k3s:v1.31.2-k3s1
network: test-network

# Chart.yaml
apiVersion: v2
name: k3s-1.31.3-test
version: 0.0.1
appVersion: v0.0.1

# templates/gluetun.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: gluetun
spec:
  selector:
    matchLabels:
      app: transmission
  template:
    metadata:
      labels:
        app: transmission
    spec:
      containers:
        - name: gluetun
          image: ghcr.io/qdm12/gluetun:latest
          securityContext:
            capabilities:
              add:
                - NET_ADMIN
          env:
            - name: VPN_SERVICE_PROVIDER
              value: mullvad
            - name: VPN_TYPE
              value: openvpn
            - name: OPENVPN_USER
              value: # redacted
            - name: OPENVPN_PASSWORD
              value: m
            - name: SERVER_COUNTRIES
              value: UK
            - name: OWNED_ONLY
              value: 'yes'

Steps To Reproduce:

Clone this repo for reproduction
Populate appropriate mullvad username as the value of the OPENVPN_USER environment variable in templates/gluetun.yaml
Run k3d cluster create --config k3d-config.working.yaml
Run helm upgrade --install k3s-1.31.3-test .
Wait for the glueton-0 pod to Running
Run kubectl logs gluetun-0 and note successfully running
Run k3d cluster create --config k3d-config.broken.yaml
Run helm upgrade --install k3s-1.31.3-test .
Wait for the glueton-0 pod to Error
Run kubectl logs gluetun-0 and note permission denied error for /dev/net/tun

Expected behavior:
The /dev/net/tun file should be accessible as it was in v1.31.2-k3s1.
Actual behavior:
Getting the a permission denied error inside the gluetun container when attempting to open the /dev/net/tun device.
Additional context / logs:
Error from inside gluetun container when using v1.31.3-k3s1
2024-12-08T12:51:29Z INFO [routing] default route found: interface eth0, gateway <IP_ADDRESS>, assigned IP <IP_ADDRESS> and family v4
2024-12-08T12:51:29Z INFO [routing] adding route for <IP_ADDRESS>/0
2024-12-08T12:51:29Z INFO [firewall] setting allowed subnets...
2024-12-08T12:51:29Z INFO [routing] default route found: interface eth0, gateway <IP_ADDRESS>, assigned IP <IP_ADDRESS> and family v4
2024-12-08T12:51:29Z INFO TUN device is not available: open /dev/net/tun: no such file or directory; creating it...
2024-12-08T12:51:29Z INFO [routing] routing cleanup...
2024-12-08T12:51:29Z INFO [routing] default route found: interface eth0, gateway <IP_ADDRESS>, assigned IP <IP_ADDRESS> and family v4
2024-12-08T12:51:29Z INFO [routing] deleting route for <IP_ADDRESS>/0
2024-12-08T12:51:29Z ERROR creating tun device: unix opening TUN device file: operation not permitted (did you specify --device /dev/net/tun to your container command?)
2024-12-08T12:51:29Z INFO Shutdown successful

Can you reproduce this on standalone k3s or is this only a k3d problem? I have no idea what you're doing with this here.

Cross linking issues here. Not sure where the source of the issue is: https://github.com/kubernetes/kubernetes/issues/129157

Possibly a containerd or runc change? What specific versions of k3s did you upgrade from/to? Are you using selinux?

I am using the stable tag, so I assume this: https://github.com/k3s-io/k3s/commit/c8278053cbff2488067845eba1269fa9ecbb9b18
1.30.6 -> 1.31.3

Following this thread: https://github.com/opencontainers/runc/pull/3468#issuecomment-2522815203
For docker, seems like adding:
devices:
      - /dev/net/tun:/dev/net/tun

The equivalent in Kubernetes though still seems to required privileged permissions:
	// Define the volume and volume mount for /dev/net/tun
	tunDeviceVolume := corev1.Volume{
		Name: "tun-device",
		VolumeSource: corev1.VolumeSource{
			HostPath: &corev1.HostPathVolumeSource{
				Path: "/dev/net/tun",
				Type: func() *corev1.HostPathType {
					charDevice := corev1.HostPathCharDev
					return &charDevice
				}(),
			},
		},
	}

	tunDeviceVolumeMount := corev1.VolumeMount{
		Name:      "tun-device",
		MountPath: "/dev/net/tun",
		ReadOnly:  false,

Traced back to runc, an intended break. Unfortunately means granting privileged now for creating tun devices, and during the transition containers will fail to start: https://github.com/tailscale/tailscale/pull/14262#issue-2713214388

Closing, as this was an intentional change in runc.

Thanks @maggie44 , great find!

Is it possible to revert this change in a point release (1.31.2 -> 1.31.3)? Going to a major API breaking change at a point release seems like a bad idea. There is also talk of reverting the change.
See my other comment about the long term security implications of this:
https://github.com/opencontainers/runc/pull/3468#issuecomment-2545865732

No. As I said on the other issue you commented on, we can update runc again if they decide to change behavior in a new release, but we are not planning to revert the version bump here.


(chore) (bug) Remove weekly_hours label on mobile if no weekly hours …

…present
Trello card URL:
https://trello.com/b/vo4AYL7a/dfe-teaching-jobs-development
Changes in this PR:
When working on https://github.com/dxw/teacher-vacancy-service/pull/550 I completely missed that there are separate templates for mobile, so I didn't remove the weekly_hours label from the mobile site when weekly hours are not set.
This PR is therefore a straight duplication of #550 in the mobile template.

 Bug: Weekly hours label rendered when no weekly hours set on mobile.


[AMORO-2279] Retry failed tasks when restarting AMS

Why are the changes needed?

Close #2279
Brief change log

Avoding optimizing status blocked

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before making a pull request

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not documented)

cc @wangtaohz

LGTM.

Can you cherry-pick this PR to branch 0.6.x?

Can you cherry-pick this PR to branch 0.6.x?

Ok, I will.

LGTM


Can we add a rootClass

Describe the feature
Can we add a rootClass
Additional information

[X] Would you be willing to help implement this feature?
[X] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[X] Check existing discussions and issues.

Hello you can change the rootId within the nuxt config https://nuxt.com/docs/api/nuxt-config#rootid

https://github.com/nuxt/nuxt/discussions/24447


GetX

Hello, is there any implementation/integration with GetX?
I would like some example if possible, as it exists today with Provider and Reverpod.
Thanks.

Hi! Sorry, I don't have

Here's a pure Dart small example: https://github.com/flutterdata/flutter_data/blob/master/example/lib/main.dart
You can use that to integrate it to other tools

Okay, no problem, I will evaluate the example.
Thanks for the package!

Hi @paulocagol can you share your findings? Thank you


Batch operations only create first entity in batch

Which service(blob, file, queue, table) does this issue concern?
Tables
Which version of the Azurite was used?
3.16.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
npm
What's the Node.js version?
v16.13.1.
What problem was encountered?
When creating a batch operation from the Go SDK, only the first entity in the batch is created.
Steps to reproduce the issue?
If possible, please provide the debug log using the -d parameter, replacing <pathtodebuglog> with an appropriate path for your OS, or review the instructions for docker containers:
2022-03-08T22:44:06.714Z 	 info: Azurite Blob service is starting on <IP_ADDRESS>:10000
2022-03-08T22:44:06.716Z 	 info: AccountDataStore:init() Refresh accounts from environment variable AZURITE_ACCOUNTS with value undefined
2022-03-08T22:44:06.716Z 	 info: AccountDataStore:init() Fallback to default emulator account devstoreaccount1.
2022-03-08T22:44:06.769Z 	 info: BlobGCManager:start() Starting BlobGCManager. Set status to Initializing.
2022-03-08T22:44:06.770Z 	 info: BlobGCManager:start() Trigger mark and sweep loop. Set status to Running.
2022-03-08T22:44:06.770Z 	 info: BlobGCManager:markSweepLoop() Start next mark and sweep.
2022-03-08T22:44:06.771Z 	 info: BlobGCManager:markSweep() Get all extents.
2022-03-08T22:44:06.773Z 	 info: BlobGCManager:start() BlobGCManager successfully started.
2022-03-08T22:44:06.794Z 	 info: BlobGCManager:markSweep() Got 0 extents.
2022-03-08T22:44:06.794Z 	 info: BlobGCManager:markSweep() Get referred extents.
2022-03-08T22:44:06.795Z 	 info: BlobGCManager:markSweep() Got referred extents, unreferenced extents count is 0.
2022-03-08T22:44:06.796Z 	 info: BlobGCManager:markSweepLoop() Mark and sweep finished, taken 26ms.
2022-03-08T22:44:06.796Z 	 info: BlobGCManager:markSweepLoop() Sleep for 600000ms.
2022-03-08T22:44:06.799Z 	 info: Azurite Blob service successfully listens on http://<IP_ADDRESS>:10000
2022-03-08T22:44:06.800Z 	 info: Azurite Queue service is starting on <IP_ADDRESS>:10001
2022-03-08T22:44:06.801Z 	 info: AccountDataStore:init() Refresh accounts from environment variable AZURITE_ACCOUNTS with value undefined
2022-03-08T22:44:06.801Z 	 info: AccountDataStore:init() Fallback to default emulator account devstoreaccount1.
2022-03-08T22:44:06.827Z 	 info: QueueGCManager:start() Starting QueueGCManager, set status to Initializing
2022-03-08T22:44:06.828Z 	 info: QueueGCManager:start() Trigger mark and sweep loop, set status to Running.
2022-03-08T22:44:06.828Z 	 info: QueueGCManager:markSweepLoop() Start new mark and sweep.
2022-03-08T22:44:06.828Z 	 info: QueueGCManger:markSweep() Get all extents.
2022-03-08T22:44:06.829Z 	 info: QueueGCManager:start() QueueGCManager successfully started.
2022-03-08T22:44:06.829Z 	 info: QueueGCManager:marksweep() Get 0 extents.
2022-03-08T22:44:06.830Z 	 info: QueueGCManager:markSweep() Get referred extents, then remove from allExtents.
2022-03-08T22:44:06.830Z 	 info: QueueGCManager:markSweep() Got referred extents, unreferenced extents count is 0.
2022-03-08T22:44:06.830Z 	 info: QueueGCManager:markSweepLoop() Mark and sweep finished, take 2ms.
2022-03-08T22:44:06.830Z 	 info: QueueGCManager:markSweepLoop() Sleep for 60000
2022-03-08T22:44:06.832Z 	 info: Azurite Queue service successfully listens on http://<IP_ADDRESS>:10001
2022-03-08T22:44:06.832Z 	 info: Azurite Table service is starting on <IP_ADDRESS>:10002
2022-03-08T22:44:06.832Z 	 info: AccountDataStore:init() Refresh accounts from environment variable AZURITE_ACCOUNTS with value undefined
2022-03-08T22:44:06.833Z 	 info: AccountDataStore:init() Fallback to default emulator account devstoreaccount1.
2022-03-08T22:44:06.852Z 	 info: Azurite Table service successfully listens on http://<IP_ADDRESS>:10002
2022-03-08T22:44:11.804Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: TableStorageContextMiddleware: RequestMethod=POST RequestURL=http://<IP_ADDRESS>/devstoreaccount1/Tables RequestHeaders:{"host":"<IP_ADDRESS>:10002","user-agent":"azsdk-go-internal/v0.6.0 azsdk-go-azcore/v0.21.0 (go1.17; Windows_NT)","content-length":"25","accept":"application/json;odata=minimalmetadata","authorization":"SharedKeyLite devstoreaccount1:gBWqSvjN3/S5xmxI/1ePjjBM/BkWaHp8zfPgzZHpxAI=","content-type":"application/json","dataserviceversion":"3.0","x-ms-date":"Tue, 08 Mar 2022 22:44:11 GMT","x-ms-version":"2019-02-02","accept-encoding":"gzip"} ClientIP=<IP_ADDRESS> Protocol=http HTTPVersion=1.1
2022-03-08T22:44:11.805Z d7ee8af0-8035-4121-b770-652fc0d07c66 debug: tableStorageContextMiddleware: Dispatch pattern string: /Tables
2022-03-08T22:44:11.805Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: tableStorageContextMiddleware: Account=devstoreaccount1 tableName=undefined
2022-03-08T22:44:11.805Z d7ee8af0-8035-4121-b770-652fc0d07c66 verbose: DispatchMiddleware: Dispatching request...
2022-03-08T22:44:11.808Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: DispatchMiddleware: Operation=Table_Create
2022-03-08T22:44:11.808Z d7ee8af0-8035-4121-b770-652fc0d07c66 verbose: AuthenticationMiddlewareFactory:createAuthenticationMiddleware() Validating authentications.
2022-03-08T22:44:11.808Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: TableSharedKeyLiteAuthenticator:validate() Start validation against account shared key authentication.
2022-03-08T22:44:11.809Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: TableSharedKeyLiteAuthenticator:validate() [STRING TO SIGN]:"Tue, 08 Mar 2022 22:44:11 GMT\n/devstoreaccount1/devstoreaccount1/Tables"
2022-03-08T22:44:11.810Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: TableSharedKeyLiteAuthenticator:validate() Calculated authentication header based on key1: SharedKeyLite devstoreaccount1:gBWqSvjN3/S5xmxI/1ePjjBM/BkWaHp8zfPgzZHpxAI=
2022-03-08T22:44:11.810Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: TableSharedKeyLiteAuthenticator:validate() Signature 1 matched.
2022-03-08T22:44:11.811Z d7ee8af0-8035-4121-b770-652fc0d07c66 verbose: DeserializerMiddleware: Start deserializing...
2022-03-08T22:44:11.816Z d7ee8af0-8035-4121-b770-652fc0d07c66 debug: deserialize(): Raw request body string is (removed all empty characters) {"TableName":"testTable"}
2022-03-08T22:44:11.818Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: HandlerMiddleware: DeserializedParameters={"options":{"queryOptions":{},"dataServiceVersion":"3.0"},"version":"2019-02-02","tableProperties":{"tableName":"testTable"},"body":"ReadableStream"}
2022-03-08T22:44:11.821Z d7ee8af0-8035-4121-b770-652fc0d07c66 verbose: SerializerMiddleware: Start serializing...
2022-03-08T22:44:11.825Z d7ee8af0-8035-4121-b770-652fc0d07c66 debug: Serializer: Raw response body string is {"odata.metadata":"http://<IP_ADDRESS>:10002/devstoreaccount1/$metadata#Tables/@Element","TableName":"testTable"}
2022-03-08T22:44:11.825Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: Serializer: Start returning stream body.
2022-03-08T22:44:11.825Z d7ee8af0-8035-4121-b770-652fc0d07c66 info: EndMiddleware: End response. TotalTimeInMS=21 StatusCode=201 StatusMessage=Created Headers={"server":"Azurite-Table/3.16.0","content-type":"application/json;odata=minimalmetadata","x-ms-request-id":"d7ee8af0-8035-4121-b770-652fc0d07c66","x-ms-version":"2021-04-10","date":"Tue, 08 Mar 2022 22:44:11 GMT","preference-applied":"return-content"}
2022-03-08T22:44:11.830Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: TableStorageContextMiddleware: RequestMethod=POST RequestURL=http://<IP_ADDRESS>/devstoreaccount1/$batch RequestHeaders:{"host":"<IP_ADDRESS>:10002","user-agent":"azsdk-go-internal/v0.6.0 azsdk-go-azcore/v0.21.0 (go1.17; Windows_NT)","content-length":"1335","accept":"application/json;odata=minimalmetadata","authorization":"SharedKeyLite devstoreaccount1:BZDL6F8lMigFYOVJiK9Iu3iMvatet+yw/brzrc8tIa4=","content-type":"multipart/mixed; boundary=batch_1900ea73-92bf-401d-451c-a17207ccecd2","dataserviceversion":"3.0","x-ms-date":"Tue, 08 Mar 2022 22:44:11 GMT","x-ms-version":"2019-02-02","accept-encoding":"gzip"} ClientIP=<IP_ADDRESS> Protocol=http HTTPVersion=1.1
2022-03-08T22:44:11.831Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc debug: tableStorageContextMiddleware: Dispatch pattern string: /$batch
2022-03-08T22:44:11.831Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: tableStorageContextMiddleware: Account=devstoreaccount1 tableName=$batch
2022-03-08T22:44:11.831Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc verbose: DispatchMiddleware: Dispatching request...
2022-03-08T22:44:11.831Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: DispatchMiddleware: Operation=Table_Batch
2022-03-08T22:44:11.832Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc verbose: AuthenticationMiddlewareFactory:createAuthenticationMiddleware() Validating authentications.
2022-03-08T22:44:11.832Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: TableSharedKeyLiteAuthenticator:validate() Start validation against account shared key authentication.
2022-03-08T22:44:11.832Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: TableSharedKeyLiteAuthenticator:validate() [STRING TO SIGN]:"Tue, 08 Mar 2022 22:44:11 GMT\n/devstoreaccount1/devstoreaccount1/$batch"
2022-03-08T22:44:11.832Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: TableSharedKeyLiteAuthenticator:validate() Calculated authentication header based on key1: SharedKeyLite devstoreaccount1:BZDL6F8lMigFYOVJiK9Iu3iMvatet+yw/brzrc8tIa4=
2022-03-08T22:44:11.833Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: TableSharedKeyLiteAuthenticator:validate() Signature 1 matched.
2022-03-08T22:44:11.834Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc verbose: DeserializerMiddleware: Start deserializing...
2022-03-08T22:44:11.834Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: HandlerMiddleware: DeserializedParameters={"version":"2019-02-02","options":{"dataServiceVersion":"3.0"},"multipartContentType":"multipart/mixed; boundary=batch_1900ea73-92bf-401d-451c-a17207ccecd2","contentLength":1335,"body":"ReadableStream"}
2022-03-08T22:44:11.836Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc debug: TableHandler:batch() Raw request string is "--batch_1900ea73-92bf-401d-451c-a17207ccecd2\r\nContent-Type: multipart/mixed; boundary=changeset_16a8eca4-6929-4696-788e-f99e877606c0\r\n\r\n--changeset_16a8eca4-6929-4696-788e-f99e877606c0\r\nContent-Id: 0\r\nContent-Transfer-Encoding: binary\r\nContent-Type: application/http\r\n\r\nPOST http://<IP_ADDRESS>:10002/devstoreaccount1/testTable HTTP/1.1\r\nAccept: application/json;odata=minimalmetadata\r\nContent-Length: 71\r\nContent-Type: application/json;odata=nometadata\r\nDataserviceversion: 3.0\r\nDate: Tue, 08 Mar 2022 22:44:11 GMT\r\nPrefer: return-no-content\r\nX-Ms-Date: Tue, 08 Mar 2022 22:44:11 GMT\r\nX-Ms-Version: 2019-02-02\r\n\r\n{\"PartitionKey\":\"uuid\",\"RowKey\":\"rkey1\",\"price\":5,\"product\":\"product1\"}\r\n--changeset_16a8eca4-6929-4696-788e-f99e877606c0\r\nContent-Id: 1\r\nContent-Transfer-Encoding: binary\r\nContent-Type: application/http\r\n\r\nPOST http://<IP_ADDRESS>:10002/devstoreaccount1/testTable HTTP/1.1\r\nAccept: application/json;odata=minimalmetadata\r\nContent-Length: 72\r\nContent-Type: application/json;odata=nometadata\r\nDataserviceversion: 3.0\r\nDate: Tue, 08 Mar 2022 22:44:11 GMT\r\nPrefer: return-no-content\r\nX-Ms-Date: Tue, 08 Mar 2022 22:44:11 GMT\r\nX-Ms-Version: 2019-02-02\r\n\r\n{\"PartitionKey\":\"uuid\",\"RowKey\":\"rkey2\",\"price\":10,\"product\":\"product2\"}\r\n--changeset_16a8eca4-6929-4696-788e-f99e877606c0--\r\n\r\n--batch_1900ea73-92bf-401d-451c-a17207ccecd2--\r\n"
2022-03-08T22:44:11.848Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc debug: TableHandler:batch() Raw response string is "--batchresponse_1900ea73-92bf-401d-451c-a17207ccecd2\r\nContent-Type: multipart/mixed; boundary=changesetresponse_16a8eca4-6929-4696-788e-f99e877606c0\r\n\r\n--changesetresponse_16a8eca4-6929-4696-788e-f99e877606c0\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204 No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion: 3.0;\r\nLocation: http://<IP_ADDRESS>:10002/devstoreaccount1/testTable(PartitionKey='uuid',RowKey='rkey1')\r\nDataServiceId: http://<IP_ADDRESS>:10002/devstoreaccount1/testTable(PartitionKey='uuid',RowKey='rkey1')\r\nETag: W/\"datetime'2022-03-08T22%3A44%3A11.8300000Z'\"\r\n\r\n--changesetresponse_16a8eca4-6929-4696-788e-f99e877606c0--\r\n--batchresponse_1900ea73-92bf-401d-451c-a17207ccecd2--\r\n"
2022-03-08T22:44:11.849Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc verbose: SerializerMiddleware: Start serializing...
2022-03-08T22:44:11.849Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: Serializer: Start returning stream body.
2022-03-08T22:44:11.854Z ebd9cbb4-2dd7-40d9-998e-b857254ea3bc info: EndMiddleware: End response. TotalTimeInMS=24 StatusCode=202 StatusMessage=Accepted Headers={"server":"Azurite-Table/3.16.0","content-type":"multipart/mixed; boundary=batchresponse_1900ea73-92bf-401d-451c-a17207ccecd2","x-ms-request-id":"ebd9cbb4-2dd7-40d9-998e-b857254ea3bc","x-ms-version":"2021-04-10","date":"Tue, 08 Mar 2022 22:44:11 GMT"}
2022-03-08T22:44:11.856Z 9386f21d-19c3-452c-9689-53368b46d261 info: TableStorageContextMiddleware: RequestMethod=DELETE RequestURL=http://<IP_ADDRESS>/devstoreaccount1/Tables('testTable') RequestHeaders:{"host":"<IP_ADDRESS>:10002","user-agent":"azsdk-go-internal/v0.6.0 azsdk-go-azcore/v0.21.0 (go1.17; Windows_NT)","accept":"application/json","authorization":"SharedKeyLite devstoreaccount1:dm9zyaWLEq3TNb9gKAIhJfqqwAbdysWb+uyRB14cK64=","x-ms-date":"Tue, 08 Mar 2022 22:44:11 GMT","x-ms-version":"2019-02-02","accept-encoding":"gzip"} ClientIP=<IP_ADDRESS> Protocol=http HTTPVersion=1.1
2022-03-08T22:44:11.856Z 9386f21d-19c3-452c-9689-53368b46d261 debug: tableStorageContextMiddleware: Dispatch pattern string: /Tables('testTable')
2022-03-08T22:44:11.856Z 9386f21d-19c3-452c-9689-53368b46d261 info: tableStorageContextMiddleware: Account=devstoreaccount1 tableName=testTable
2022-03-08T22:44:11.856Z 9386f21d-19c3-452c-9689-53368b46d261 verbose: DispatchMiddleware: Dispatching request...
2022-03-08T22:44:11.857Z 9386f21d-19c3-452c-9689-53368b46d261 info: DispatchMiddleware: Operation=Table_Delete
2022-03-08T22:44:11.857Z 9386f21d-19c3-452c-9689-53368b46d261 verbose: AuthenticationMiddlewareFactory:createAuthenticationMiddleware() Validating authentications.
2022-03-08T22:44:11.857Z 9386f21d-19c3-452c-9689-53368b46d261 info: TableSharedKeyLiteAuthenticator:validate() Start validation against account shared key authentication.
2022-03-08T22:44:11.857Z 9386f21d-19c3-452c-9689-53368b46d261 info: TableSharedKeyLiteAuthenticator:validate() [STRING TO SIGN]:"Tue, 08 Mar 2022 22:44:11 GMT\n/devstoreaccount1/devstoreaccount1/Tables('testTable')"
2022-03-08T22:44:11.857Z 9386f21d-19c3-452c-9689-53368b46d261 info: TableSharedKeyLiteAuthenticator:validate() Calculated authentication header based on key1: SharedKeyLite devstoreaccount1:dm9zyaWLEq3TNb9gKAIhJfqqwAbdysWb+uyRB14cK64=
2022-03-08T22:44:11.858Z 9386f21d-19c3-452c-9689-53368b46d261 info: TableSharedKeyLiteAuthenticator:validate() Signature 1 matched.
2022-03-08T22:44:11.858Z 9386f21d-19c3-452c-9689-53368b46d261 verbose: DeserializerMiddleware: Start deserializing...
2022-03-08T22:44:11.858Z 9386f21d-19c3-452c-9689-53368b46d261 info: HandlerMiddleware: DeserializedParameters={"version":"2019-02-02","options":{}}
2022-03-08T22:44:11.862Z 9386f21d-19c3-452c-9689-53368b46d261 verbose: SerializerMiddleware: Start serializing...
2022-03-08T22:44:11.863Z 9386f21d-19c3-452c-9689-53368b46d261 info: EndMiddleware: End response. TotalTimeInMS=7 StatusCode=204 StatusMessage=undefined Headers={"server":"Azurite-Table/3.16.0","content-type":"application/json;odata=minimalmetadata","x-ms-request-id":"9386f21d-19c3-452c-9689-53368b46d261","x-ms-version":"2021-04-10","date":"Tue, 08 Mar 2022 22:44:11 GMT"}
2022-03-08T22:45:06.728Z 	 info: AccountDataStore:init() Refresh accounts from environment variable AZURITE_ACCOUNTS with value undefined
2022-03-08T22:45:06.729Z 	 info: AccountDataStore:init() Fallback to default emulator account devstoreaccount1.
2022-03-08T22:45:06.815Z 	 info: AccountDataStore:init() Refresh accounts from environment variable AZURITE_ACCOUNTS with value undefined
2022-03-08T22:45:06.815Z 	 info: AccountDataStore:init() Fallback to default emulator account devstoreaccount1.
2022-03-08T22:45:06.831Z 	 info: QueueGCManager:markSweepLoop() Start new mark and sweep.
2022-03-08T22:45:06.831Z 	 info: QueueGCManger:markSweep() Get all extents.
2022-03-08T22:45:06.831Z 	 info: QueueGCManager:marksweep() Get 0 extents.
2022-03-08T22:45:06.831Z 	 info: QueueGCManager:markSweep() Get referred extents, then remove from allExtents.
2022-03-08T22:45:06.831Z 	 info: QueueGCManager:markSweep() Got referred extents, unreferenced extents count is 0.
2022-03-08T22:45:06.831Z 	 info: QueueGCManager:markSweepLoop() Mark and sweep finished, take 0ms.
2022-03-08T22:45:06.832Z 	 info: QueueGCManager:markSweepLoop() Sleep for 60000
2022-03-08T22:45:06.850Z 	 info: AccountDataStore:init() Refresh accounts from environment variable AZURITE_ACCOUNTS with value undefined
2022-03-08T22:45:06.850Z 	 info: AccountDataStore:init() Fallback to default emulator account devstoreaccount1.

Have you found a mitigation/solution?

To reproduce the issue, from the branch azurite-issue in this repo https://github.com/seankane-msft/azure-sdk-for-go/tree/azurite-issue
run go test -v -run TestAzuriteBatch .

Thanks for reporting, initially seems like batch response issue. Edwin will help with this later.

The Go SDK is URL encoding some of the characters inside the batch request.
This causes a problem during deserialization.
I shall submit a PR to correct this.

@seankane-msft : One of the core issues is still unexplained, which is that the Go SDK is throwing the EOF error.
Do you have any capacity to help investigate / dig deeper and explain why the Go SDK throws this error?
I suspect it might be a behavior in a higher layer relating to the http response transmission, but I haven't been able to confirm this.

@edwin-huber I will investigate to confirm but I believe the returned io.EOF error is because we're expecting the same number of sub-responses as are submitted in the multipart request. When we get the io.EOF error before reaching the count of requests we return that error.

The Go SDK is URL encoding some of the characters inside the batch request. This causes a problem during deserialization. It also uses a different ordering of some elements as opposed to all other batch clients, I shall address this as well. I shall submit a PR to correct this.

Can you provide an example/trace pointing out where the URL encoding is and which elements are in a different order?


housekeeping: Use global ReactiveUI issue and PR templates

What kind of change does this PR introduce?
GitHub templates update.
What is the current behavior?
ReactiveUI main repository uses locally stored issue/pr templates although we have global ones living at reactiveui/.github repository and they've been updated recently — in that update tips and descriptions were commented out, so folks still see them but don't have to delete manually.
What is the new behavior?
ReactiveUI repo now uses global issue and pull request templates.
What might this PR break?
Nothing.

Going to revert this back. The rxui ones had the specific rxui stack overflow links.

The other smaller projects were the plan for the global templates.

After talking to @worldbeater will keep the removed PR template since that's got no stack overflow information on it. Just will have the bug/feature templates until github introduces a macro for the template language or something.


python-packages bokeh: init at 0.9.3

Bokeh is a plotting module for Python.
I used nix-shell to test bokeh with all Python versions. I didn't test how the change in markupsafe affected other packages.

markupsafe has been updated to 0.23, so I will now fix this PR.

Locally tested. Builds and runs fine now.
@domenkozar

@domenkozar  fixed now


add examples for async counter, updown counter, gauge

Notes:

added descriptions and code examples for various async instruments
i would like to point out that the descriptions earlier in the document for synchronous counters, etc. slightly deviate from my description. in particular, i reference the terms additive and monotonic which are not necessarily referenced in earlier descriptions. i think we should agree on making all of these consistent before merging.
i relied on this page to inform my descriptions, and this is also how i interpreted the various metrics when implementing them in Golang: https://opentelemetry.io/docs/reference/specification/metrics/supplementary-guidelines/

@svrnm @pichlermarc just address your comments on this PR, and also added a section on views as per the issue #2052

@cartermp thanks for all the suggestions - just addressed the last two comments on this PR in my latest commit

@pichlermarc thanks for the suggestions! i committed them as well - i think they really tie all the examples together for the views :)

@chalin any further suggestions?

will merge this now


Add support for grok pattern definitions

Turns out, it was very easy to add this feature.
Closes #252

Awesome, thanks @ilyaglow, probably going to have to wait until tomorrow evening as I'm travelling but I'll get it merged and released as soon as I can.


chore: bump Cypress version to 13.3.1

Releasing 13.3.1

 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.You have signed the CLA already but the status is still pending? Let us recheck it.

@dkasper-was-taken Please sign the CLA


prost-build attempts to use bundled protoc bin name, even if that file doesn't exist

prost-build should fall back to which protoc if the bundled protoc bin name isn't available on the system.
This is specifically a problem in Alpine Linux.

I believe this is fixed as of #410.  Please re-open if you are still having issues after updating to 0.7.


Add experiments with confidence interval and polling simulations

One is adapted from the awesome http://rocknpoll.graphics/, and the other contains simulations around confidence intervals.

selfie


servicework not working

hello @webmaxru i tried using "ng set app.0.serviceworker=true" for the generation of the ngsw etc, but all i am getting is "can't add property  serviceworker, object is not extensible", please help me

Hi! How your does your .angular-cli.json look like?

@webmaxru... i really appreciate your response, don't mind the "smart" me, i was trying to run "ng set app.0.serviceworker=true instead of ng set app.0.serviceWorker=true

i am final year student and my project is an audio streaming chat room using progressive web app and angular, i am not really getting, any help?, thank you

@faveh you will find all the documentation here: https://bit.ly/pwa-angularsummit-2017
Please, close this issue, if it's resolved.


Add keyboard shortcuts

shift + enter to add new item
left & right when it makes sense
up & down when it makes sense

left & right:

field type is number, select or multiselect
fields type is text, url, email and tel when:

left and caret is left
right and caret is right

up & down:

field type is text, url, email or tel

toggle doesn't seems to propagate the keyup event so we can't key-navigate when its focus.
see #3
Video showing the interaction:
https://user-images.githubusercontent.com/60777/142996401-c0f3f396-bded-4828-886e-90e9bddc76a7.mp4
When the PR with the hidden field support is merged this branch's code has to be adjusted to support it too by using columns instead of fields.

Thanks a lot for this also! 👏


Improve README: Explain the screenshots

The README.md has some screenshots that could be explained more. I could make a PR on this, but would need some help understanding the text "Will look for QR login in 3" (or 2 or 1). Maybe that is just example texts used to distinguish the screenshots?
And what about the Play / Windows phone links, is that links to download the "SQRL Login" mobile app perhaps?

Hi @sesam
The text "Will look for QR login in 3....2...1" is actually a countdown until we talk to the system and see if there is an update on the login status. You could implement this in multiple ways and if you had more control than a wordpress-plugin you might opt to do this with websockets.
But when a mobile client logs you in it changes the status on the server to logged in. The webpage does not get notified about this change but periodicly it will poll the server for update in order to log you in. I though it would be a good thing for the user to see the count down so they don't wonder why the site hasn't logged them in yet.
The buttons for Play and Windows are there to give you links to Google Play for download and also a link to the reference Windows client from Steve.
Best regards
Daniel


Polish description text for workbench.editor.enablePreviewFromQuickOpen setting

I suggest 'Controls whether opened editors from Quick Open...' gets changed to read 'Controls whether editors opened from Quick Open...'
Will you take a PR?
VS Code version: Code - Insiders 1.40.0-insider (c8846de84ab2f0a9279a41d80414465124c52a7a, 2019-11-01T05:37:54.405Z)
OS version: Windows_NT x64 10.0.17134

Will you take a PR?

Sure 👍


check variant popup refactoring

class zcl_abapgit_code_inspector, method validate_check_variant moved to private section
new package for popups, https://github.com/abapGit/abapGit/issues/6361
new html popup class zcl_abapgit_ui_pop_code_insp
settings local page, use the new popup

It needs a bit of work in zcl_abapgit_gui_picklist @sbcgua:

If "in-page" is false, then the options are side-by-side instead of one per line. Also, there's no border around the options
If "in-page" is true (preferred here), then we need a scrollbar if there are many options
In either case, the width is too small. We should have a parameter to pass a style-class

@larshp Maybe rename zcl_abapgit_ui_pop_code_insp to zcl_abapgit_popup_code_insp

need a new control, like select from table, but it can always be done later, it kind of works for now. I'm focusing more on the refactoring than the UX
class renamed

new package for popups, https://github.com/abapGit/abapGit/issues/6361

...ui_popups

new table control: yes, there was no intent in the first PR, just to introduce the technology itself. So table variant is waiting ahead. I might have a look after merging of this one

@sbcgua ok to merge?


Imporve code-walk-through

This issue record the discuccsion on our draft code-walk-through.
https://github.com/zhaochenyang20/Awesome-ML-SYS-Tutorial/tree/main/sglang/code-walk-through

The arrow labeled "3" appears to be drawn incorrectly?

sure! @BBuf

This is an excellent draft! I have one suggestion: it would be helpful to include a high-level introduction explaining the motivation or the reasoning behind SGLang’s code design at the end of the documentation. It would be valuable to provide a brief note on the why—the considerations or rationale that guided their code design—particularly for critical components. This would give readers better insight into the design choices and underlying thought process.

This is an excellent draft! I have one suggestion: it would be helpful to include a high-level introduction explaining the motivation or the reasoning behind SGLang’s code design at the end of the documentation. It would be valuable to provide a brief note on the why—the considerations or rationale that guided their code design—particularly for critical components. This would give readers better insight into the design choices and underlying thought process.

Thanks so much!

This is an excellent draft! I have one suggestion: it would be helpful to include a high-level introduction explaining the motivation or the reasoning behind SGLang’s code design at the end of the documentation. It would be valuable to provide a brief note on the why—the considerations or rationale that guided their code design—particularly for critical components. This would give readers better insight into the design choices and underlying thought process.

Actually I do agree with you. We should explain why desgin like this not that. But I personally do not know this 😂
I will ask my advisors on this later.

It would be better to just write "process_batch_result" here instead of "process_batch_result_decode". Otherwise, we'd need to mention that process_batch_result contains process_batch_result_decode/prefill - though in a walkthrough context, we tend to skip such implementation details.

It might be worth considering adding a KV Cache management module to the diagram and establishing its connection with the ModelRunner.

ModelRunner initialize the AttnBackend and managing the loaded model to perform various types of forward passes.

This sentence needs refinement - "various types of forward pass" is ambiguous, as it could refer to either data types (bf16, fp8_w8a8, awq) or model architectures (llama, qwen, deepseek).

This is an excellent draft! I have one suggestion: it would be helpful to include a high-level introduction explaining the motivation or the reasoning behind SGLang’s code design at the end of the documentation. It would be valuable to provide a brief note on the why—the considerations or rationale that guided their code design—particularly for critical components. This would give readers better insight into the design choices and underlying thought process.

@agiping
SGLang's architecture design learnt  a lot from previous works, including Guidance, vLLM, LightLLM, FlashInfer, Outlines, and LMQL.
Note that Scheduler explicitly sets four statges to handles the overlap scheduling of requests, which is proposed in SGLang for the first time.

various types of forward pass

ModelRunner initialize the attention backend and manage the loaded model to perform forward passes for generation and embedding tasks.
@BBuf

@jamessand
Several things to do for a quick start up for SGLang.

Read and check carefully for current code walk through.
Make a chinese version by readme-CN.md.

Sure. I would like to work on this. Feel free to assign this issue to me.


DPDV-2720: Run E2E test in the CI/CD pipeline

Jira Link: https://sentinelone.atlassian.net/browse/DPDV-2720
🥅 Goal
Explain why is this change needed
🛠 Solution
Provide description of changes
🏫 Testing
How the changes were tested

@martin-majlis-s1 are not the test part of DPDV-2402 rather then DPDV-2420 (linter issues)?


Add assertions and defensive code

Codecov Report
Base: 70.61% // Head: 70.45% // Decreases project coverage by -0.15% :warning:

Coverage data is based on head (d465165) compared to base (5b9ac02).
Patch coverage: 40.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #225      +/-   ##
============================================
- Coverage     70.61%   70.45%   -0.16%
- Complexity      637      640       +3
============================================
  Files           106      106
  Lines          2025     2031       +6
  Branches        237      240       +3
============================================
+ Hits           1430     1431       +1
  Misses          505      505
- Partials         90       95       +5

Impacted Files
Coverage Δ

...va/seedu/intrack/logic/commands/FilterCommand.java
100.00% <ø> (ø)

...ava/seedu/intrack/logic/commands/StatsCommand.java
88.23% <0.00%> (-11.77%)
:arrow_down:

...ack/model/internship/StatusIsKeywordPredicate.java
66.66% <0.00%> (-33.34%)
:arrow_down:

...a/seedu/intrack/logic/commands/FindTagCommand.java
100.00% <100.00%> (ø)

...edu/intrack/logic/parser/FindTagCommandParser.java
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

LGTM! Nice use of assertions and defensive programming.


Fix Prometheus metrics doc

(the CI job actually failed, but we missed it). As a consequence, the CI
job keeps failing for all new PRs. This commit updates the documentation
and makes a few minor improvements to the ./hack/make-metrics-doc.sh
script.
Signed-off-by: Antonin Bas<EMAIL_ADDRESS>

Let's merge this quickly since it is causing CI failures for all PRs.

Codecov Report

Merging #2889 (c5d629e) into main (7a15a62) will decrease coverage by 19.10%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #2889       +/-   ##
===========================================
- Coverage   60.06%   40.95%   -19.11%
===========================================
  Files         283      157      -126
  Lines       23508    19572     -3936
===========================================
- Hits        14119     8016     -6103
- Misses       7880    10789     +2909
+ Partials     1509      767      -742

Flag
Coverage Δ

kind-e2e-tests
?

unit-tests
40.95% <ø> (-0.03%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.


Bump to React 18.2

Sorry, can't upgrade to react 18
Detail see https://github.com/zalify/easy-email/issues/120

No worries.


python: invalid type: map, expected a sequence

nix-template 0.4.0
sh -c "nix-template python --fetcher github --from-url https://github.com/victorfs/parsifal"
Determining latest release for parsifal
[2022-09-21T12:20:00Z ERROR nix_template::url] Unable to parse response from github to json: Error { path: Path { segments: [] }, original: Error("invalid type: map, expected a sequence", line: 1, column: 0) }

seems mostly an issue with python template. rust projects just works.

https://github.com/victorfs/parsifal is a 404 link. However, I should probably give a better error


Suggestion

Hi. I'd like to suggest readable.io (my site) as an addition to the list.

@DaveChild reads like a great tool. Adding it now.


Feature Request - Kubernetes Ingress Rewrite to https

What version of Traefik are you using (traefik version)?
1.1.2
What is your environment & configuration (arguments, toml...)?
Kubernetes, Ingress, AWS, ELB
What did you do?
Create a working ingress controller which forwards http/https traffic to some docker container running in Kubernetes. Everything worked really great. First of all thanks for your great tool!
What i would like to do?
I would like to be able to add a rewrite from http to https. Maybe something like this.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: kibana.ivx.cloud
  annotations:
    kubernetes.io/ingress.class: "traefik"
    kubernetes.io/ingress.rewrite-to-https: "true"
spec:
  rules:
  - host: kibana.ivx.cloud
    http:
      paths:
      - path: /
        backend:
          serviceName: kibana
          servicePort: 5601

Elb is not capable to rewrite from http to https.
Or am i capable to do this already with some tricks? :)
Greetings, Thomas

You can do this with the toml config already. On phone right now but can post an example later.

I have this in my traefik.taml file:
    defaultEntryPoints = ["http","https"]
    [entryPoints]
      [entryPoints.http]
      address = ":80"
      [entryPoints.http.redirect]
      entryPoint = "https"
      [entryPoints.https]
      address = ":443"
      [entryPoints.https.tls]

Thanks for your fast response :) - I will try it out and give some insights how it worked out.

Cool, report back and let me know if it doesn't work for some reason. Can try and help you out if it doesn't.

Solved it with your help :) Thanks a lot

kind: ConfigMap
apiVersion: v1
metadata:
  creationTimestamp: 2016-02-18T19:14:38Z
  name: traefik
  namespace: kube-system
data:
  traefik-config: |-
    defaultEntryPoints = ["http","https"]
    [entryPoints]
      [entryPoints.http]
      address = ":80"
        [entryPoints.http.redirect]
        regex = "^http://(.*)"
        replacement = "https://$1"
      [entryPoints.https]
      address = ":443"
---
apiVersion: v1
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
  name: traefik-ingress-lb
  namespace: kube-system
  labels:
    k8s-app: traefik-ingress-lb
spec:
  replicas: 3
  selector:
    matchLabels:
      k8s-app: traefik-ingress-lb
  template:
    metadata:
      labels:
        k8s-app: traefik-ingress-lb
        name: traefik-ingress-lb
    spec:
      terminationGracePeriodSeconds: 60
      containers:
      - image: traefik
        name: traefik-ingress-lb
        resources:
          limits:
            cpu: 200m
            memory: 30Mi
          requests:
            cpu: 100m
            memory: 20Mi
        ports:
        - name: http
          containerPort: 80
        - name: https
          containerPort: 443
        args:
        - --kubernetes
        - --web
        - --web.address=:8081
        - --configFile=/etc/traefik/traefik.toml
        volumeMounts:
        - name: config-volume
          mountPath: /etc/traefik
      volumes:
      - name: config-volume
        configMap:
          name: traefik
          items:
          - key: traefik-config
            path: traefik.toml
---
apiVersion: v1
kind: Service
metadata:
  name: traefik
  namespace: kube-system
  labels:
    name: traefik
  annotations:
    service.beta.kubernetes.io/aws-load-balancer-backend-protocol: "http"
    service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
    service.beta.kubernetes.io/aws-load-balancer-ssl-cert: "some arn"
spec:
  type: LoadBalancer
  ports:
  - protocol: TCP
    name: secure
    port: 443
    targetPort: https
  - protocol: TCP
    name: insecure
    port: 80
    targetPort: http
  loadBalancerSourceRanges:
    - some-ip/32
  selector:
    name: traefik-ingress-lb

Maybe i should create a pull request to update docs? :)

It might be worth pointing to the Helm chart as it already has support for http->https redirect
https://github.com/kubernetes/charts/tree/master/stable/traefik

@tsupertramp feel to open a PR to update the docs.
I'll close this issue, because I think the question is answered, but feel free to continue the conversation.

How to do that of each service?
I don't necessary want every system to be on https.
traefik.frontend.entryPoints=https Do not seems to work

@giovannicandido Please don't bump old, closed tickets.
The annotation ingress.kubernetes.io/ssl-redirect:true will now accomplish what you want.

Thanks @dtomcej
Sorry, I did't pay attention for the issue date, was reading and react to the the final comment:

I'll close this issue, because I think the question is answered, but feel free to continue the conversation.

@sht5 Yes, but ingress.kubernetes.io/ssl-redirect: "true" is the syntax that worked for me.


fix: handle empty response in Bedrock AnthropicProvider

Description
Add bounds check as response may be empty for bedrock anthropic api
New Package?
Did I fill in the tool.llamahub section in the pyproject.toml and provide a detailed README.md for my new integration or package?

[ ] Yes
[x] No

Version Bump?
Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

[x] Yes
[ ] No

Type of Change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Added new unit/integration tests
[ ] Added new notebook (that tests end-to-end)
[x] I stared at the code and made sure it makes sense

Suggested Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added Google Colab support for the newly added notebooks.
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] I ran make format; make lint to appease the lint gods

fyi @sansmoraxz have you tried the bedrock converse api yet? The implementation is much more simple, supports native function calling, and is likely less error prone

Sure. Will give it a try.


If Ctrl+J is used to break a partial mapping, its mapping is not used

Steps to reproduce

vim --clean
imap <c-j> x
imap ab y
Type a<c-j> in insert mode
a<newline> is inserted

Expected behaviour
ax is inserted.
Version of Vim
9.0.910
Environment
Arch Linux, xterm-256color (although the behavior is the same in gvim)
Logs and stack traces
No response

can you please verify using the latest version? Also, modifyOtherKeys may have an impact here, so please try with/without it.
I just tried on a local windows 9.0.1205 and it doesn't seem to have this issue


Commercio gas prices

Gas prices might be incorrect for Commercio:

Gas config is now imported from Chain Registry so many issues like this should be fixed now


AFNetworking 3.0 , how to handle queue requestOperation?

In 2.x ，can use the AFHTTPRequestOperation , and add it to operationQueue.
In 3.0 , param operationQueue just readonly.
then how to do it like in version 2.x ?
thank you very much!

Hi @AbooJan. NSURLSession and NSURLSessionConfiguration manage the tasks. The REST interface in AFHTTPSessionManager automatically calls resume on tasks created there, which get them added to the session queue. The interface in AFURLSessionManager does not, and you as the caller are responsible for calling resume to get it added to the session queue.
I'd recommend reading up on the NSURLSession docs.
:beers:


Add an ignore file

Most repo have a .gitignore file that tells git to not even try to include certain files.  You can find some standard ones for python, but in this case, we want to ignore things like build, __pycache__, */*.egg-info

Resolved in #8


fix: Add more CSV mime types

Fixes #10732.

(commenting here as well)
Update to v3.1.47 and it now throws a new error when uploading the example csv

Please see my other comment.


Devs SBAT create governance proposal to upgrade changed contracts

Expected Behavior
Detect changes, deploy new contracts, create a governance proposal that repoints proxies at new contracts.
Current Behavior
Governance now owns Proxy contracts, so yarn run upgrade no longer works to upgrade contract changes on specified network. (The script at packages/protocol/scripts/truffle/upgrade.ts is outdated, as it assumes the MultiSig contract is deployed. However, we don't deploy it anymore, so the script breaks.)

2 options:

use hotfixes
use governance proposals

Analysis:

hotfixes have fewer timing dependencies compared to governance proposal phases
hotfixes might be feel unilateral from an optics perspective

Concrete steps:

add functionality to contractkit for constructing proxy logic contract update transaction
add functionality to contractkit for encoding transaction and submitting <hotfix/proposal> to governance
add validator commands to CLI for interacting with governance <hotfix/proposals>
add celotool script for detecting changes between master and alfajores ABIs and upgrading via CLI and or contractkit

closing due to #2142 being merged


fix unexisting path after plugin uninstallation

fixing this error when uninstalling any plugin
app.js:1 Uncaught Error: ENOENT: no such file or directory, lstat 'C:\Users\dd200\Documents\Dev Plugins/.obsidian/plugins/obsidian-projects'
at lstatSync (node:fs:1593:3)
at t.lstatSync (node:electron/js2c/asar_bundle:2:3776)
at HotReload.watch (plugin:hot-reload:30:26)
at HotReload.onFileChange (plugin:hot-reload:70:65)
at e.tryTrigger (app.js:1:725395)
at e.trigger (app.js:1:725328)
at t.trigger (app.js:1:743459)
at t.onChange (app.js:1:734117)
at e.trigger (app.js:1:552829)

Your latest changes reformatted a bunch of the file, so I just went ahead and made the one-line change instead and released it as 0.1.11.  Thanks for highlighting the issue.

what is.app.vault.adapter.startWatchPath(path, false) is doing ?  the path is added to watchers and then. there is no listener like .on("changed... ? to detect changes ?
this.app.vault.on("raw"... is very sensitive, working if any change in the vault. So I wondered if watchers were to be more specific. But I don't see any connection in your code. I'm curious about this. I will do some tries around chokidar a library to watch paths

The connection is that the vault events are generated by watches that are added via startWatchPath.  On some platforms, recursive watching isn't supported so directories have to be added there.  Similarly, if a path is symlinked it needs to be added even on platforms that support recursive watch.  The raw events are required because the other event types for the vault are only generated for files outside the .obsidian/config folder.  So the only way to get events for plugin files is to receive them via raw.
I don't use outside libraries because that'd 1) require a build step (which I was trying to avoid when I wrote this), and 2) I didn't want to increase the watch resources used: Obsidian already watches the config folder on platforms with recursive watch, so it's no added overhead in those cases vs. using another watch library.


Attachments with non-ASCII filenames are not decoded.

Use case: when you send an email with Outlook with an attachment filename using e.g. Japanse characters then the attachment.filename method does not return the filename decoded if the filename is based on the content-disposition header.
It appears this bit from RFC 2231 is not supported by Mail:
   Asterisks ("*") are reused to provide the indicator that language and
   character set information is present and encoding is being used. A
   single quote ("'") is used to delimit the character set and language
   information at the beginning of the parameter value. Percent signs
   ("%") are used as the encoding flag, which agrees with RFC 2047.

In spec/fixtures/emails/attachment_emails/attachment_with_quoted_filename.eml there is an example of such an encoded filename:
Content-Disposition: inline;
	filename*=ISO-8859-1''Eelanal%FC%FCsi%20p%E4ring.jpg

See for more examples / tests:
http://greenbytes.de/tech/tc2231/#encoding-2231-char

#819


Chore/contribution guidelines

Fixes #36
Proposed Changes

Added a living draft of our contribution guidelines expect these to morph with the community as we go along

Pull Request Test Coverage Report for Build 54

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 73.118%

Totals

Change from base Build 50:
0.0%

Covered Lines:
68

Relevant Lines:
93

💛  - Coveralls

Pull Request Test Coverage Report for Build 56

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 73.118%

Totals

Change from base Build 50:
0.0%

Covered Lines:
68

Relevant Lines:
93

💛  - Coveralls


[Discussion] Make VM__run_top_frame reentrant during code evaluation?

I am investigating a POC which involves embedding Python code in a C++ application. The current C++ application uses a custom, stack-based instruction set which allows running code either in a blocking (by running all the instructions) or non-blocking (by running some of the instructions, then yielding execution to other scripts) fashion. This yielding approach for non-blocking scripts allows us to have only one "script scheduler" thread that cycles between scripts ready to run, executing a number of instructions for each script.
From my understanding, any call to the pocketpy's "run code" APIs will block the call until it finishes.
I am looking at ways to achieve the same sort of "run X instructions" approach so I could have only one script scheduler thread, but I don't see any built-in mechanisms to accomplish this.
It's almost as if there would be a way to VM__run_top_frame return RES_YIELD allowing me to call the function again, but there would need to be some additional info stored across calls (eg. remembering the base frame, skipping the initial __NEXT_FRAME, ...). Does this approach make sense? Just looking for a sanity check with my thought process.
Or, is there some other approach you would recommend / something built in?
Thanks, Kevin

You can adopt yield based coroutine framework. If you have learned Unity Engine you will know what I am referring to.
yield based coroutine can be achieved for any language with generator support. And it is pure python. You don't need to touch C sources.

There is no "run X instructions" functionality. For yield based coroutines the generator releases execution stack via an explicit yield or yield from. In games, this is done at the end of each frame/tick so you are able to do software scheduling.

For a little more context, the C++ project is a game server, where we start a (non-blocking) script for objects in the world, eg. NPCs. These scripts are mostly event listeners and perform actions on the NPC based on these events (eg. a player entering the area), eg. like so:
while ( Alive() )
{
 var ev = wait_for_event( 60 );  // wait 60 seconds for an event
 if ( ev )
   handle_event( ev );
  else
   wander_around();
}

During execution: wait_for_event would tell the script scheduler to put the executor in a "hold list", revived when either an event comes in or the timeout hits.
So how would I using pocketpy have an approach where I have two contexts that are eg. "waiting" for an event that would be triggered via my C++ integration? Is this possible?
Another use-case we want to avoid is having a complete hang if one of the user define scripts goes into an infinite loop, eg. while (true) {} ... Since our scheduler would only run X instructions per script, all other scripts inherently have an opportunity to run: this loop eventually gets interrupted by the scheduler, and will eventually get re-entered after other scripts get their turn.

wait_for_event should be yield from wait_for_event() as a coroutine function.

Yup! Makes sense! Thanks for the explanation.
From my investigations, I found the CPython fork with a stackless implementation that (apparently, have not tested myself) can implement scheduling on an instruction-based level: [https://github.com/stackless-dev/stackless/wiki/Scheduling#preemptive-scheduling](Preemptive Scheduling). Without digging too much into the implementation, I imagine this is doable because the Python frame is separated from the C frame -- which is not the case in the majority of implementations I found, both pocketpy and CPython included. PyPy has stackless execution as well, but there's no explicit instruction-based context switching, as the userland code must switch the context explicitly.
The custom language (called "Escript") we implemented in C++ is also stack-less, and separates function calls from the Escript call stack and the native C++ stack. I suspect this design choice is why both of these runtimes can support such a feature. The Escript engine (as well as this stackless CPython fork) would support multiple contexts running a while(true){} loop
I've discussed a bit with some team members on the project, and we're gonna try completely changing the paradigm of how we run scripts (as, like you mentioned, "this is a design pattern problem"), going with an asyncio approach / event loop / yield + generator approach. We will accept that an infinite loop in a script would indeed be stuck -- I think this is a general understanding for programmers these days anyways. Aaaand this is just a POC anyway, so just for fun experimentation.
Thank you for taking the time to discuss with me. I greatly appreciate it! I'm closing the issue, but feel free to chime in with anything if you want 😄
Happy holidays! 🎆
NB: Also looking at Lua, as this has generally been used for embedding a language in C++ in the gaming world -- which is exactly what we're doing.

I am happy to hear that. And I am glad to provide help if you have any further questions.


Remove use of deprecated buffer functions.

Remove use of deprecated buffer functions. This actually also fixes an out-of-bounds error caused by lines not being consumed as expected

Thanks!


ENH: Create FUNDING.yml

ENH: add NumFOCUS github sponsors button (recurring donations only)
This feature is launching today at GitHub Universe!

CC: @hjmjohnson @jhlegarreta @lassoan @bpaniagua @blowekamp @ntustison @pyushkevich @ipekoguz @ljod


Latest version grid design effected

After installing the newest version it is breaking the look for the grid and we were facing issue with the scroll which you have fixed .Below is the code and can you helep ?
The code

fields: [
{
name: 'extraTextTypeName',
title: 'Extra Text Type'
},
{
name: '__slot:extraTextTitle',
title: 'Title'
},
{
name: '__slot:extraTextDescription',
title: 'Extra Text'
},
{
name: '__slot:move',
title: 'Move',
titleClass: 'center aligned',
dataClass: 'center aligned action'
},
{
name: '__slot:actions',
title: 'Action',
titleClass: 'center aligned',
dataClass: 'center aligned action',
}

@navrt007 from next branch or develop branch?

from next branch

@navrt007 In the next version, you need to set width option for each column in the fields definition. Also, you no longer need to prepend __slot: to the slot field, it is now auto-map to the scoped slot you defined inside <vuetable>.

It is resolved thanks for the help


Synthetics Doesn’t Handle Popups (new tab or new window)

The Synthetic Agent is capturing the performance data and screenshots for the main tab/page of the browser.
If a user journey causes a new tab or window (popup) to be opened, the metrics and screen shots are still taken from the initial (main) page, so there are no new metrics for the new tab/page, and the screenshot still reflects the original page.
This can be recreated by extending the todos folder/app
Create ./examples/todos/app/popup1.html

Test popup page 1

Click here (id=linkWithPopup) to open - Test Page - popup window

Click here (id=linkWithPopupNoNewWindow) to open - Test Page - new tab (not new window)

Create ./examples/todos/app/popup2.html

Test popup page 2

Create ./examples/todos/popup.journey.ts
import { journey, step } from '@elastic/synthetics';
import { deepStrictEqual } from 'assert';
import { join } from 'path';

journey('Popup Test', async ({ page }) => {
  step('Popup Landing Page', async () => {
    const path = 'file://' + join(__dirname, 'app', 'popup1.html');
    await page.goto(path);
    await page.waitForSelector('text=Test popup page 1');
  });

  step('Open Popup', async () => {
    // Test 1 - new window (popup)
    await page.click('#linkWithPopup');

    // Test 2 - new tab (not new popup window)
    //await page.click('#linkWithPopupNoNewWindow');

    const [popup] = await Promise.all([
      page.waitForEvent('popup'),
      page.click('#linkWithPopup')
    ]);
    await popup.waitForSelector('text=Test popup page 2');
  });
});

Note that there are two test cases (both will fail in the same way)

Test 1 opens a new popup window
Test 2 (commented out) opens a new tab (not a separate popup window)

We can act on the new/popup page, for example with popup.waitForSelector  as shown in this example, however the Synthetic Agent is still connected to the CDP from the original window.
When running this, you will notice:

The screenshot for step 2 still shows page 1 (the original window)
There is no waterfall chart (no timing metrics) for step 2

Needs this to be addressed - #287

@vigneshshanmugam with the latest version that includes these PRs, I can now see the correct screenshot in step 2, which is great!!
On step 2, I still don't see any network traffic, is that what you'd expect with these updates?

@paulb-elastic Thanks for testing, We need this - https://github.com/elastic/synthetics/issues/287 PR to be resolved to get the network traffic for these popups.

Reopening as result of this issue - #401

@vigneshshanmugam would you expect beta.18 or other changes (OS change) that have gone in, to fix this?  I've tried with today's 8.0.0-SNAPSHOT, and, although I get the screenshot for the second step (the popup page), I get no waterfall chart.  Are we still dependent on an update from Playwright and/or Chromium, or elsewhere?

Not really, We need to follow the steps to fix this

Revert this PR which uses PW 1.14.0 which fires correct order of events for popups. https://github.com/elastic/synthetics/pull/402/
Update PW to latest version just to make sure we support all OS distributions.


Unable to POST with akka backend

POST acts as GET when using the Akka backend.

Can you provide a failing test? There are test cases for this but everything works fine, also in our codebases.

Not at home right now; I will send a case as soon as I can.
I'm POSTing to a Discord channel's messages, and instead of POSTing to the
URL it acts as GETting to the URL. This may be a way with how I pick
sttp.host(uri"stuff") from a match?
On Thu, Feb 8, 2018, 8:21 AM Adam Warski<EMAIL_ADDRESS>wrote:

Can you provide a failing test? There are test cases for this but
everything works fine, also in our codebases.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/softwaremill/sttp/issues/63#issuecomment-364164702,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHZGgOeAP1_eJdZQb8k5zscwkxqWPVejks5tSx8EgaJpZM4R9ljd
.

Not sure I understand "This may be a way with how I pick sttp.host(uri"stuff") from a match" - there's sttp.post and sttp.get which selects the method

See https://github.com/DiscordScala/discord.scala src/main/scala
github.discordscala.core.util.RequestUtil for an example (down towards the
bottom of the file is where we handle HTTP)
(Yes it's bad code and I'm planning on going back and refactoring soon)
On Thu, Feb 8, 2018, 10:19 AM Adam Warski<EMAIL_ADDRESS>wrote:

Not sure I understand "This may be a way with how I pick
sttp.host(uri"stuff") from a match" - there's sttp.post and sttp.get
which selects the method
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/softwaremill/sttp/issues/63#issuecomment-364202204,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHZGgHM12w-0RZA0muJy7NMBzf8ANwVjks5tSzrJgaJpZM4R9ljd
.

Well, maybe you have a bug in your default parameters, for example awaitRestRequestFuture:63 doesn't pass the chosen method to restRequestFuture?

🤦 how did I miss that?!
I will fix as soon as possible. Thanks for catching this.
On Thu, Feb 8, 2018, 12:00 PM Adam Warski<EMAIL_ADDRESS>wrote:

Well, maybe you have a bug in your default parameters, for example
awaitRestRequestFuture:63 doesn't pass the chosen method to
restRequestFuture?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/softwaremill/sttp/issues/63#issuecomment-364228334,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHZGgOz_5aQpHPqrg--hVT8NkYN-tCz9ks5tS1BqgaJpZM4R9ljd
.

Yep. I still don't know how I missed that.


Type compatibility in nested interfaces

Bug Report

🔎 Search Terms
type compatibility
compatibility nested
sry, not many ways I can rephrase that, cos English is not my native language

🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about this

⏯ Playground Link

Playground link with relevant code
💻 Code

import React, { FC } from 'react';

interface ITrl {
    [x:number]: string;
}

interface ISome {
    one: string;
    translations: {
        actual: {
            [x:number]: string;
        }
    }
}

const ttt = (a:ITrl) => { ttt2(a) }

const ttt2 = (a:ISome) => { ttt(a) }

const Child: FC<{trls: ITrl}> = ({ trls }) => (
    <div>{trls[1]}{trls.actual[1]}</div>
)

const Parent: FC<{some: ISome}> = ({ some }) => (
    <Child trls={some.translations} />
)

🙁 Actual behavior

We can pass some.translations to Child despite it having not compatible type.
🙂 Expected behavior
Error about types incompatibility

But the types are compatible. Your type ITrl says all number properties must be string, and that's the case. Additional properties are allowed in TypeScript.
You probably want #12936.

But the types are compatible. Your type ITrl says all number properties must be string, and that's the case (because ISome["translations"] has no number properties). Additional properties are allowed in TypeScript.
You probably want #12936.

But why then direct using of such types causes an error?
https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgJIBUoBtkG8CwAUMicgNoAeAXCAK4C2ARtALpXIDOYUoA5gNxEAvkSKhIsRCgzYATHiKlOAe3oQwACz7sCxJaUo0GzKG07c+gvSRHXkyzdB2L9JQ3Sat2XHiAEubYVFCBGUQLmQwKOQAXmQACjgqGSwASliAPjxIqNlE9NsiUPCwHLB5OMTkzCxZdJis3DL85FsgA

Numeric index signatures are a constraint on what types numerically-named keys can have, not a constraint on whether or not non-numeric properties can exist in a type.

@RyanCavanaugh
Can you please describe why there is error in my example?
It does same thing but interface described directly — nesting is the only difference


Refactor: SparseML Integration to a class

adds utility methods
Saving epochs + recipe to a checkpoint

@bfineran Thank you for the extensive review, I agree with all the changes requested. Will update the PR accordingly and re-request a review. 🤝


The "git push" documentation (and maybe others) are broken due to include errors

See:
https://git-scm.com/docs/git-push#OPTIONS
If you click on the "GIT URLS" link it's broken. If you search for
"urls.txt" in the document you can see that this is because whatever
git-scm.org is using for its HTML generation apparently doesn't
understand recursively includes, git-push includes urls-remote.txt,
which in turn includes urls.txt, only the first level of includes is
processed.
The git.git "install-html" version of the documentation doesn't have this issue.

git-scm uses asciidoctor to render the HTML. I checked and it does handle nested includes just fine.
I think the problem is that the site itself preloads all of the necessary blobs into the database via a rake task (here), and that function checks for includes but does not recurse.

IOW, something like this:
diff --git a/lib/tasks/local_index.rake b/lib/tasks/local_index.rake
index 254c3b4..3285c60 100644
--- a/lib/tasks/local_index.rake
+++ b/lib/tasks/local_index.rake
@@ -61,11 +61,14 @@ task :local_index => :environment do

         puts "   build: #{path}"

-        content = `git cat-file blob #{sha}`.chomp
-        content.gsub!(/include::(\S+)\.txt/) do |line|
-          line.gsub!("include::", "")
-          `git cat-file blob #{tag}:Documentation/#{line}`
+        def expand_include(tag, name)
+                content = `git cat-file blob #{name}`.chomp
+                content.gsub!(/include::(\S+)\.txt/) do |line|
+                        line.gsub!("include::", "")
+                        expand_include(tag, "#{tag}:Documentation/#{line}")
+                end
         end
+        content = expand_include(tag, sha)
         asciidoc = Asciidoctor::Document.new(content, templates_dir: template_dir)
         asciidoc_sha = Digest::SHA1.hexdigest( asciidoc.source )

but the end result does not seem quite right (I verified that it follows the recursion, but the result does not seem to format it correctly. It's probably something simple and stupid, but I'm not seeing it).

Closed by #750.


ffmpeg: patch CVE-2021-38171 and CVE-2021-38291

Motivation for this change
https://nvd.nist.gov/vuln/detail/CVE-2021-38171
https://nvd.nist.gov/vuln/detail/CVE-2021-38291
Things done

Built on platform(s)

[x] x86_64-linux

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 138952 at b1f41c91 run on aarch64-linux 1

24 packages marked as broken and skipped:

betaflight-configurator
devede
easyeffects
emuflight-configurator
gmtk
gnome_mplayer
gopro
gtkd
libgroove
obs-studio-plugins.obs-ndi
odpdown
poedit
processing
pulseeffects-legacy
python38Packages.caffe
python38Packages.foxdot
python39Packages.caffe
python39Packages.foxdot
siril
sonic-pi
spotifywm
tilix
vbam
vcs

5 packages failed to build:

docear
jrePlugin (jre8Plugin)
ocrmypdf (python39Packages.ocrmypdf)
oraclejre (oraclejre8)
roon-server

990 packages skipped due to time constraints:

MIDIVisualizer
acoustidFingerprinter
adapta-gtk-theme
adoptopenjdk-icedtea-web
ahoviewer
alass
alephone
alfis
almanah
anki
...

58 packages built successfully:

archivebox
catt
chromaprint
coretoppings
cyanrip
dr14_tmeter
ffmpeg (ffmpeg_4)
get_iplayer
gif-for-cli
giph
gst_all_1.gst-libav
gtk-pipe-viewer
janus-gateway
keyfinder-cli
kodi-cli
libsForQt5.kfilemetadata (libsForQt515.kfilemetadata ,plasma5Packages.kfilemetadata)
lidarr
mkchromecast
mpvScripts.mpv-playlistmanager
navidrome
octoprint
pdfsandwich
persepolis
pianobar
pipe-viewer
pipewire
pipewire_0_2
puddletag
python38Packages.imageio-ffmpeg
python38Packages.pafy
python38Packages.pyacoustid
python38Packages.tubeup
python38Packages.youtube-dl
python38Packages.yt-dlp
python39Packages.ffmpeg-python
python39Packages.imageio
python39Packages.imageio-ffmpeg
python39Packages.moviepy
python39Packages.pafy
python39Packages.pyacoustid
python39Packages.tubeup
youtube-dl (python39Packages.youtube-dl)
yt-dlp (python39Packages.yt-dlp)
r128gain
replay-sorcery
songrec
srtrelay
survex
svtplay-dl
tauon
unpaper
vcsi
vgmstream
wf-recorder
xine-lib
yle-dl
ytcc
ytmdl

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.


[WIP] Remove extra new lines showing in debug logging

These look to be causing extra empty lines to be logged in debug log but otherwise noop from what I can tell.

It's a noop because it gets stripped anyways by sorcix/irc in https://github.com/42wim/matterircd/blob/master/vendor/github.com/sorcix/irc/message.go#L168


ua-scorer.py is giving zero values

I cloned the repo and installed the requirements
python ua-scorer.py tests/TC-A.key tests/TC-A.key
Notice: I have passed the same file as key and response (system). The output should be 1.0
Output
The scorer is evaluating  corferent markables, singletons, split-antecedents
lea
Recall: 0.00  Precision: 0.00  F1: 0.00
muc
Recall: 0.00  Precision: 0.00  F1: 0.00
bcub
Recall: 0.00  Precision: 0.00  F1: 0.00
ceafe
Recall: 0.00  Precision: 0.00  F1: 0.00
ceafm
Recall: 0.00  Precision: 0.00  F1: 0.00
blanc
Recall: 0.00  Precision: 0.00  F1: 0.00
CoNLL score: 0.00

Thanks for reporting the bug. There are actually two problems:

you are running ua-scorer.py, which accepts files in the UA format, on the files in the tests directory that are in the CoNLL 2012 format. For files in the CoNLL 2012 format, the scorer.py script has to be run instead. It is our fault, as this distinction is not documented in the README.md. However, we are working on the version 2.0, where there is only a single entry point and the input format can be specified by a command-line argument.
running scorer.py with default metrics would fail anyway on calling the mentions score calculation. It accepted only two arguments while it was given three. I fixed it in f4adb45

So running
python scorer.py tests/TC-A.key tests/TC-A.key

works now:
mentions   Recall: 100.00  Precision: 100.00  F1: 100.00
muc        Recall: 100.00  Precision: 100.00  F1: 100.00
bcub       Recall: 100.00  Precision: 100.00  F1: 100.00
ceafe      Recall: 100.00  Precision: 100.00  F1: 100.00
lea        Recall: 100.00  Precision: 100.00  F1: 100.00
CoNLL score: 100.00

@michnov can you give an example of UA format? is there any conll-->UA converter available?


Changed DAG being executed, but Views not Updated to Reflect the new DAG

I've changed my DAG by removing some operators. In the DAG below, I removed 3 operators :

check_for_parquet_file_branch_condition
clean_up_db_tables_job
send_sns_notification_no_parquet_data

The new DAG is being executed as is expected, but why are the other nodes hanging around in the views?
They still appear on my DAG. Why? I am running airflow webserver -d and airflow scheduler and did not restart these. I just put an updated dag file in the dags directory.

Ok. Restarting the scheduler and webserver solved the problem. Is that by design?

Hey Sid,
I believe it is linked to the way python imports files (and here dags). A full reload is sometimes difficult, and the only to purge the old is to restart everything...

Restarting is a reasonable work-around. I'm closing this. Thanks.

You may have to hit the refresh button to force the DAG to refresh, it's the rightmost button on the screenshot and can be found on the DAGs page.

This button actually "expires" the DAG, forcing the different "DagBags" in the ecosystem to refresh from file. The scheduler has its own dagbag, as well as each web server thread, so refreshing it in one place doesn't solve the problem of freshness. The expiration is actually a timestamp in the database for that DAG that the DagBag looks up against periodically to see if it should reload the DAG.
There may be some bad behaviors to watch for around:

files that get renamed/deleted
conflicting dag_ids in multiple files


Loading indicator

The following changes since commit d7f20848642471af5dad384eb8dc4e75070a55dd:
Merge pull request #128 from wbprice/127-candidates-should-be-sorted-by-match-score (2016-04-19 21:15:20 -0400)
are available in the git repository at:
https://github.com/ryayak1460/okcandidate.git loading-indicator
for you to fetch changes up to c47e03cfdde4c475ef0264cb140884d85c18c4c4:
Mock survey page dependencies in examples (2016-04-20 12:56:27 -0400)

Ryan Y (4):
Create loading indicator component
Replace generic loading message with indicator
Remove spinner
Mock survey page dependencies in examples
assets/js/components/atoms/LoadingIndicator.jsx    | 17 +++++
assets/js/components/ecosystems/SurveyPage.jsx     | 11 ++--
.../components/atoms/LoadingIndicatorSpec.js       | 73 ++++++++++++++++++++
.../components/ecosystems/SurveyPageSpec.js        | 77 ++++++++++++++++++++++
4 files changed, 174 insertions(+), 4 deletions(-)
create mode 100644 assets/js/components/atoms/LoadingIndicator.jsx
create mode 100644 test/frontend/components/atoms/LoadingIndicatorSpec.js
create mode 100644 test/frontend/components/ecosystems/SurveyPageSpec.js

Affects #107.

@ryayak1460 This works locally, but you're missing some dependencies in package.json and now there are merge conflicts.  Please update your PR.

Which dependencies are missing?
On 22 April 2016 11:25:11 GMT-04:00, "W. Blaine Price"<EMAIL_ADDRESS>wrote:

@ryayak1460 This works locally, but you're missing some dependencies in
package.json and now there are merge conflicts.  Please update your PR.

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/Code4HR/okcandidate/pull/131#issuecomment-213472313

--
Ryan Y.
Software Design Engineer
Alion Science and Technology Corporation
GnuPG Key: 0x358CD775
VoIP (ZRTP-encrypted<EMAIL_ADDRESS>IM (OTR encryption<EMAIL_ADDRESS>

@ryayak1460 At least style-loader' and  'css-loader.  Try to clone to a new directory and npm install to see if there are any others that might be missing.

@ryayak1460 Looks good!  My only feedback is that I'd like to see this loading indicator used in ecosystems/ResultsPage.jsx as well.  Rules for displaying the loading indicator are similar.

Okay, I'll get on that when I get back from lunch.  Thanks, @wbprice!
On 22 April 2016 12:14:58 GMT-04:00, "W. Blaine Price"<EMAIL_ADDRESS>wrote:

@ryayak1460 Looks good!  My only feedback is that I'd like to see this
loading indicator used in ecosystems/ResultsPage.jsx as well.  Rules
for displaying the loading indicator are similar.

You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/Code4HR/okcandidate/pull/131#issuecomment-213495555

--
Ryan Y.
Software Design Engineer
Alion Science and Technology Corporation
GnuPG Key: 0x358CD775
VoIP (ZRTP-encrypted<EMAIL_ADDRESS>IM (OTR encryption<EMAIL_ADDRESS>

LTGM


README: detail how to commit the .env but have a different one in local

Should I commit my .env file?
I prefer to commit the .env file with development-only settings

I couldn't find how to have a different .env in local without risking to commit it again (with Git for example)

I commit a .env.example file

That what I ended up doing but I understood that one could have a .env commited and a different .env in local.
I realize that even if there is a way to do that, that would be confusing and risky to manage.
A .env.example file is more explicit and forcing the user to know about that file (because they would have to rename it) could be a good thing actually.

You can use .env.local for your own local overrides. That can be added to your .gitignore or similar file.

@Hates Oh right, I suppose I completely missed that part of the documentation.

Me too, so it's in fact already documented in the readme


Forbid binary expressions in function calls

Also fixes derivative calls with an aggregate function to require a
group by interval. The call without a group by interval doesn't make
sense as it will never return anything since it will always have one
point.
Fixes #5968.

Reopening this to target master instead.


Can't to start MiningCore with BCH (bitcoinabc)

I'm trying to start MiningCore with BCH (bitcoinabc), but I get the following error:
[2018-02-14 03:25:22.6706] [E] [bth1] System.FormatException: Invalid base 58 string
   at NBitcoin.DataEncoders.Base58Encoder.DecodeData(String encoded)
   at MiningCore.Blockchain.Bitcoin.BitcoinUtils.AddressToDestination(String address) in /tmp/miningcore/src/MiningCore/Blockchain/Bitcoin/BitcoinUtils.cs:line 41
   at MiningCore.Blockchain.Bitcoin.BitcoinJobManager 2.<PostStartInitAsync>d__49.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at MiningCore.Blockchain.JobManagerBase 1.<StartAsync>d__19.MoveNext() in /tmp/miningcore/src/MiningCore/Blockchain/JobManagerBase.cs:line 113

What can I do?
config.json
{
    "logging": {
        "level": "debug",
        "enableConsoleLog": true,
        "enableConsoleColors": true,
        "logFile": "/mining_logs/pool.log",
        "logBaseDirectory": "",
        "perPoolLogFile": false
    },
    "persistence": {
        "postgres": {
            "host": "<IP_ADDRESS>",
            "port": 5432,
            "user": "miningcore",
            "password": "..........",
            "database": "miningcore_new"
        }
    },
    "paymentProcessing": {
        "enabled": true,
        "interval": 600,
        "shareRecoveryFile": "recovered-shares.txt"
    },
    "pools": [{
      "id": "bth1",
      "enabled": true,
      "coin": {
        "type": "BCH"
      },
      "address": "...................................",
      "rewardRecipients": [
        {
          "address": "......................................",
          "percentage": 1.0
        }
      ],
      "blockRefreshInterval": 1000,
      "jobRebroadcastTimeout": 55,
      "clientConnectionTimeout": 600,
      "banning": {
        "enabled": true,
        "time": 600,
        "invalidPercent": 50,
        "checkThreshold": 50
      },
      "ports": {
        "3032": {
          "listenAddress": "<IP_ADDRESS>",
          "difficulty": 1024,
          "name": "ASIC Mining",
          "varDiff": {
            "minDiff": 512,
            "targetTime": 15,
            "retargetTime": 90,
            "variancePercent": 30
          }
        }
      },
      "daemons": [
        {
          "host": "<IP_ADDRESS>",
          "port": 5302,
          "user": "bitcoinrpc",
          "password": "......................."
    }
      ],
      "devDonation": 0.0,
      "paymentProcessing": {
        "enabled": true,
        "minimumPayment": 0.1,
        "payoutScheme": "PPLNS",
        "payoutSchemeConfig": {
          "factor": 2.0
        }
      }
    }]
}

bitcoin.conf:
rpcuser=bitcoinrpc
rpcpassword=..................
rpcallowip=<IP_ADDRESS>/0
rpcport=5302
port=8334
daemon=1
server=1
gen=0

Hmm. I suspect that you are attempting to use a Bitcoin Cash prefixed address for the "address" field. That's not supported.

For the "address" field I use address, which was got from command:
/home/pooluser/bitcoin-abc/src/bitcoin-cli getnewaddress
Where I'm wrong?

oliverw
I have tried to use with prefix and without:
bitcoincash:qp7ycf79a06jnfye0y2awzy39l4535vpa59nm12345
qp7ycf79a06jnfye0y2awzy39l4535vpa59nm12345
The results was the same:
System.FormatException: Invalid base 58 string
at NBitcoin.DataEncoders.Base58Encoder.DecodeData(String encoded)

I fixed this problem ;-)
In the config (bincoin.conf), we must add parametr usecashaddr:
...
usecashaddr = 0
...
So... Restart daemon, check Address:
bitcoin-cli listreceivedbyaddress 0 true
and in finaly we get addr in old format without prefix! Profit!!! ;-)

using legacy address.


WIP: Lobby room names and room keys

Have done some work on optionally added room names and room keys to the lobby component via props.
https://github.com/nicolodavis/boardgame.io/compare/master...joepinion:joepinion/room-names-keys?expand=1
I have them enabled in the lobby example in the code above if you check out that branch.
The point of a room name is just to identify the room to those looking to join ("newbie friendly," etc).
The point of a room key is so you can organize a game with a specific friend outside of the app and ensure only they can get into the room, even if someone else is faster. This is NOT meant as security, the room key is sent and stored as plain text.
Need to write tests and at least want to fix the following before a pull request:

Better error display. Currently it just gives the code, doesn't display "wrong room key" message.
Hide error after successfully joining a room (or other successful lobby actions)
An info message relating to the room key noting that it is not meant to provide security.

Also interested in comments from others on this topic.

Hey @joepinion, that's great!
Do note that we're planning to rewrite the lobby frontend from scratch using Svelte (so that it isn't tied to React), so try not to make too many changes to it.  The backend API endpoints might also change a bit in the coming weeks.

I saw that. I'm doing this for an immediate use, so even if this never gets merged in it'll be ok, will be useful for me in the short term. But if I end up happy with it I'll make a pull request and it can be merged or declined if it gets in the way with the new strategy.


Clear NFC for affected groups when a member is enabled

IMO this is not necessary. If the paths were cached, i.e. existed, then there is no reason for them to be in NFC.

@pkocandr You are right +1!
Considering group G contains repo A (disabled), requesting path P leaves an NFC entry for group G/P. When A is re-enabled, we need to clear G/P if A provides P. But here the P is not cached anywhere. I think the only way is to clean all NFC entries for G. I updated the fix. Please review.

retest this please


Adsk Contrib - Move tests out of source files.

Demonstrate with 2 files how we can move test code out of the main source code.

File are smaller.
#ifdef are removed.
Code from a cpp file of the libraire implementation can still be accessed from the corresponding test file.
Code from the librairie does not hold the test code, thus code analysis is not biased by test code.

No. That's a 'normal' pull request but we first want the community feedback before doing too much work. The idea is to merge the pull request and to slowly transition the other unit tests.

Friendly reminder that this PR qualifies for single approver rule so it could now be merged this week.


Add new CLI commands, more internationalization, small fixes

New CLI commands.
Improved Internationalization.
Updated Russian translation.
Small bug fixes

@pyhedgehog I made update accroding your comments with some adtional improvements. Please see.

@pyhedgehog I made update accroding your comments with some adtional improvements. Please see.

You've forgot to revert help change in packages/saltcorn-cli/src/commands/install-pack.js.
I've checked on sqlite3 (i.e. non-multitenant) installation and run-trigger works.
I've checked run-sql and it works.

Generate JavaScript function code for this case:
If I select one district among: Gakenke, Rulindo, Nyarugenge district in another variable bring only corresponding sectors to district selected: sectors for Gakenke: Rushashi, Muyongwe,Minazi. The sectors for Rulindo district are: Tare, Shyorongi, Kinihira. The sectors for Nyarugenge District are: Rugarama, Muhima, Kigali.

Generate JavaScript function code for this case:
If I select one district among: Gakenke, Rulindo, Nyarugenge district in another variable bring only corresponding sectors to district selected: sectors for Gakenke: Rushashi, Muyongwe,Minazi. The sectors for Rulindo district are: Tare, Shyorongi, Kinihira. The sectors for Nyarugenge District are: Rugarama, Muhima, Kigali.

@glutamate Please review and help with CI

@AleksandrSokolov Thanks for this. I have been away - will look later today

Thanks, this is very useful, especially run-sql will save a lot of time. Somethings may be improved by switching to console.table for outputting lists of things, but I think this is a general comment for a lot of the CLI cmds so we can do that later