extension requires very new version of Chrome

Extension currently requires Chrome 48. After downgrading the requirement to Chrome 45 in the manifest, I tested several features and it seems to work. I assume most of this extension is just rewriting site content anyway, so in theory, there's no reason why it wouldn't work on even very old Chrome versions.

That's true, but I only test on the latest version of Chrome, and Chrome is auto-updating so shouldn't matter. Why do you care?

It's auto-updatimg by default on Windows :) On Linux, you're just offered a package, not a repo.
Me personally, I downgraded for some reason that I don't remember at the moment. Now I upgraded to Chrome 48, so I don't mind anymore. Still, it's good practice not to require newer versions of dependencies than necessary.

Alright


Swap to slices over maps where possible

Running a cpu profile on the tests shows:
(pprof) top5
Showing nodes accounting for 8020ms, 65.63% of 12220ms total
Dropped 38 nodes (cum <= 61.10ms)
Showing top 5 nodes out of 39
      flat  flat%   sum%        cum   cum%
    2790ms 22.83% 22.83%     2950ms 24.14%  runtime.mapiternext /usr/local/go/src/runtime/hashmap.go
    2000ms 16.37% 39.20%     2360ms 19.31%  runtime.mapaccess1_fast64 /usr/local/go/src/runtime/hashmap_fast.go
    1320ms 10.80% 50.00%     1770ms 14.48%  runtime.mapassign_fast64 /usr/local/go/src/runtime/hashmap_fast.go
    1100ms  9.00% 59.00%     7540ms 61.70%  github.com/kegsay/automata.(*Neuron).Activate /home/kegsay/go/src/github.com/kegsay/automata/neuron.go
     810ms  6.63% 65.63%      810ms  6.63%  runtime.aeshash64 /usr/local/go/src/runtime/asm_amd64.s

It's telling that map accesses are the top 3, all that hashing... Array accesses would be better.
One way of doing this would be to use the ID types as offsets into a slice. This will require a bit of a rework.

With a global lookup table backed by slices, I've roughly halved test run time. There's still a few maps hanging around (all the Neuron traces are still backed by maps, and LayerConnection.Connections is still a map), but it's a huge improvement.
The new top5 are:
(pprof) top5
Showing nodes accounting for 1520ms, 49.19% of 3090ms total
Dropped 21 nodes (cum <= 15.45ms)
Showing top 5 nodes out of 53
      flat  flat%   sum%        cum   cum%
     460ms 14.89% 14.89%      460ms 14.89%  math.Exp /usr/local/go/src/math/exp_amd64.s
     420ms 13.59% 28.48%     1900ms 61.49%  github.com/Kegsay/automata.(*Neuron).Activate /home/kegsay/go/src/github.com/Kegsay/automata/neuron.go
     320ms 10.36% 38.83%      360ms 11.65%  runtime.mapaccess1_fast64 /usr/local/go/src/runtime/hashmap_fast.go
     160ms  5.18% 44.01%      700ms 22.65%  github.com/Kegsay/automata.(*Neuron).Propagate /home/kegsay/go/src/github.com/Kegsay/automata/neuron.go
     160ms  5.18% 49.19%      620ms 20.06%  github.com/Kegsay/automata.(*SquashLogistic).Squash /home/kegsay/go/src/github.com/Kegsay/automata/squash.go

After swapping the eligibility trace map to a slice we gained even moar speed. In total, the performance branch changed this:
$ go test
PASS
ok      _/home/kegsay/github/automata   4.983s

into this:
$ go test
PASS
ok      _/home/kegsay/github/automata   2.171s

More than halving the test run speed is a pretty awesome win. pprof now lists the following:
(pprof) top5
Showing nodes accounting for 1360ms, 51.32% of 2650ms total
Dropped 25 nodes (cum <= 13.25ms)
Showing top 5 nodes out of 42
      flat  flat%   sum%        cum   cum%
     450ms 16.98% 16.98%     1560ms 58.87%  github.com/Kegsay/automata.(*Neuron).Activate /home/kegsay/go/src/github.com/Kegsay/automata/neuron.go
     390ms 14.72% 31.70%      390ms 14.72%  math.Exp /usr/local/go/src/math/exp_amd64.s
     220ms  8.30% 40.00%      700ms 26.42%  github.com/Kegsay/automata.(*Neuron).Propagate /home/kegsay/go/src/github.com/Kegsay/automata/neuron.go
     160ms  6.04% 46.04%      340ms 12.83%  github.com/Kegsay/automata.(*Neuron).learn /home/kegsay/go/src/github.com/Kegsay/automata/neuron.go
     140ms  5.28% 51.32%      140ms  5.28%  runtime.duffzero /usr/local/go/src/runtime/duff_amd64.s

The bulk of the time is spent doing useful work now, either:

running the squashing function (math.Exp)
doing the paper's calculations (neuron.Activate)
doing backpropagation (neuron.Propagate)

I have no intention to do further optimisations at this point in time.


Failed to build from source on Debian armhf

scaleway.com host
Debian stretch/sid armhf
Linux xx 4.1.6-249 #1 SMP Mon Aug 31 12:34:47 UTC 2015 armv7l GNU/Linux
gcc version 5.3.1 20160220 (Debian 5.3.1-9)
go version go1.5.3 linux/arm
Debian has docker.io package 1.8.3~ds1-2:
docker version
Client:
 Version:      1.8.3
 API version:  1.20
 Go version:   go1.5.1
 Git commit:   f4bf5c7
 Built:
 OS/Arch:      linux/arm

Server:
 Version:      1.8.3
 API version:  1.20
 Go version:   go1.5.1
 Git commit:   f4bf5c7
 Built:
 OS/Arch:      linux/arm

docker info
Containers: 10
Images: 70
Storage Driver: overlay
 Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.1.6-249
Operating System: Debian GNU/Linux stretch/sid (containerized)
CPUs: 4
Total Memory: 1.975 GiB
Name:
ID: EQRH:RQQ7:CKZN:KXGB:TML2:6462:C5X2:7FOT:OMTC:HTTT:DKMG:BJCC
Username: rtsisyk
Registry: https://index.docker.io/v1/

I want to upgrade to the latest version (1.10 or newer), because Debian package has troubles when work with the Docker Hub registry. I was unable to find armhf packages, so I tried to build them on locally.
First of all,  I tried docker build -t docker -f Dockerfile.armhf .
The build failed on RUN ./contrib/download-frozen-image-v2.sh:
Step 31 : RUN ln -sv $PWD/contrib/completion/bash/docker /etc/bash_completion.d/docker
 ---> Using cache
 ---> 5bf03fd6aafd
Step 32 : COPY contrib/download-frozen-image-v2.sh /go/src/github.com/docker/docker/contrib/
 ---> Using cache
 ---> 170fee5e0ab3
Step 33 : RUN ./contrib/download-frozen-image-v2.sh /docker-frozen-images       armhf/buildpack-deps:jessie@sha256:ca6cce8e5bf5c952129889b5cc15cd6aa8d995d77e55e3749bbaadae50e476cb     armhf/busybox:latest@sha256:d98a7343ac750ffe387e3d514f8521ba69846c216778919b01414b8617cfb3d4    armhf/debian:jessie@sha256:4a2187483f04a84f9830910fe3581d69b3c985cc045d9f01d8e2f3795b28107b     armhf/hello-world:latest@sha256:161dcecea0225975b2ad5f768058212c1e0d39e8211098666ffa1ac74cfb7791
 ---> Running in 4f11a2035e92
error: /v2/armhf/buildpack-deps/manifests/sha256:ca6cce8e5bf5c952129889b5cc15cd6aa8d995d77e55e3749bbaadae50e476cb returned something unexpected:

408 Request Time-out

Your browser didn't send a complete request in time.

The command '/bin/sh -c ./contrib/download-frozen-image-v2.sh /docker-frozen-images     armhf/buildpack-deps:jessie@sha256:ca6cce8e5bf5c952129889b5cc15cd6aa8d995d77e55e3749bbaadae50e476cb     armhf/busybox:latest@sha256:d98a7343ac750ffe387e3d514f8521ba69846c216778919b01414b8617cfb3d4    armhf/debian:jessie@sha256:4a2187483f04a84f9830910fe3581d69b3c985cc045d9f01d8e2f3795b28107b     armhf/hello-world:latest@sha256:161dcecea0225975b2ad5f768058212c1e0d39e8211098666ffa1ac74cfb7791' returned a non-zero code: 1

IMHO, it was worse idea to require Docker  to build Docker.
Next, I installed Go and all dependencies on my host  using apt-get build-dep docker.io and tried to build Docker without Docker:
myhost# AUTO_GOPATH=1 ./hack/make.sh

[CUT]

---> Making bundle: binary (in bundles/1.11.0-dev/binary)
Building: bundles/1.11.0-dev/binary/docker-1.11.0-dev

 # _/home/roman/docker/docker
/usr/lib/go/pkg/tool/linux_arm/link: running gcc failed: exit status 1
/usr/bin/ld: cannot find -ldevmapper
/usr/bin/ld: cannot find -ldevmapper
collect2: error: ld returned 1 exit status

lrwxrwxrwx 1 root root 56 Feb 20 13:43 /usr/lib/arm-linux-gnueabihf/libdevmapper-event-lvm2.so -> /lib/arm-linux-gnueabihf/libdevmapper-event-lvm2.so.2.02
lrwxrwxrwx 1 root root 53 Feb 20 13:43 /usr/lib/arm-linux-gnueabihf/libdevmapper-event.so -> /lib/arm-linux-gnueabihf/libdevmapper-event.so.1.02.1
lrwxrwxrwx 1 root root 47 Feb 20 13:43 /usr/lib/arm-linux-gnueabihf/libdevmapper.so -> /lib/arm-linux-gnueabihf/libdevmapper.so.1.02.1

dpkg --get-selections|grep devmapper
libdevmapper-dev:armhf                          install
libdevmapper-event1.02.1:armhf                  install
libdevmapper1.02.1:armhf                        install

How I can install Docker on my Debian?

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

@rtsisyk It is not required to have docker to build docker, it is just a hell of a lot simpler since there are many many dependencies that need to be linked in.
The error here is pretty straight forward:
error: /v2/armhf/buildpack-deps/manifests/sha256:ca6cce8e5bf5c952129889b5cc15cd6aa8d995d77e55e3749bbaadae50e476cb returned something unexpected:

408 Request Time-out

Your browser didn't send a complete request in time.

Why it's timing out I don't know.
In terms of just being able to build docker, you should be able to comment out this line. This bit should only be needed for the integration tests.

The error here is pretty straight forward:

Obviously, but I can't do anything with it. My network connection is strong and I tried multiple times.
It seems Docker 1.8.3 doesn't work well with the docker registry. This is a reason I want to upgrade.

In terms of just being able to build docker, you should be able to comment out this line. This bit should only be needed for the integration tests.

works for me, thanks!
How it is possible to build docker-engine Debian package similar to packages from https://apt.dockerproject.org/repo? I tried docker run --privileged docker hack/make.sh binary ubuntu, but this script ended with fpm: command not found.

Sorry guys. This problem was caused by broken PMTU discovery.


add applied method on raw data import

adds an applied method for raw data import

A lot of style refoctoring. But simple change. Fine with me.


Does the Order property take precedence over scope?

Documentation says:
IOrderedFilter exposes the Order property that takes precedence over scope to determine the order of execution.
But it looks the Order property does not take precedence over scope.

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

ID: a70a955f-dd5a-c46b-dfe8-21521e619320
Version Independent ID: ebb299e0-6c1c-7077-689d-ac711352e418
Content: Filters in ASP.NET Core
Content Source: aspnetcore/mvc/controllers/filters.md
Product: aspnet-core
Technology: aspnetcore-mvc
GitHub Login: @ardalis
Microsoft Alias: riande

The doc is correct.


Get-WindowsFeature FS-SMB1 not recognized

Hi team,
I moved this from here: https://github.com/MicrosoftDocs/windowsserverdocs.it-it/issues/5
@Enozagar commented 3 days ago — with docs.microsoft.com
Hi all,
as reported, I'd have liked to check SMB v1 on my PC. As reported below, the log shows that this command isn't recognized.
PS C:\WINDOWS\system32> Get-WindowsFeature FS-SMB1
Get-WindowsFeature : Termine 'Get-WindowsFeature' non riconosciuto come nome di cmdlet, funzione, programma eseguibile
o file script. Controllare l'ortografia del nome o verificare che il percorso sia incluso e corretto, quindi riprovare.
In riga:1 car:1
Get-WindowsFeature FS-SMB1

  + CategoryInfo          : ObjectNotFound: (Get-WindowsFeature:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException

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

ID: 8a91db45-ca3c-7a2e-3f32-2f5b57837b03
Version Independent ID: b83cbaab-c0df-d6e7-a67f-f4c99a46e30a
Content: How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows
Content Source: WindowsServerDocs/storage/file-server/Troubleshoot/detect-enable-and-disable-smbv1-v2-v3.md
GitHub Login: @Deland-Han
Microsoft Alias: delhan

Are you running this on Windows Server 2012 R2 or 2016? If not, it is not the correct command.
The section in MS Docs with that command specifies these OSes.
But you mentioned you were running it on your PC. Assuming Windows 10 or 8(.1), you need to run: Get-WindowsOptionalFeature –Online –FeatureName SMB1Protocol
This is specified in the section for these OSes:
MS Docs Link

Same link as above, just made openly visible as plain text:

https://docs.microsoft.com/en-us/windows-server/storage/file-server/troubleshoot/detect-enable-and-disable-smbv1-v2-v3#windows-81-and-windows-10-powershell-method

#please-close

Sorry for taking so long to point it out, but SMBv1 has been deprecated for a long time and is replaced with the default version SMBv2 in all supported versions of Windows.

#please-close


Converts a few hooks & helpers to Typescript

Following on #1742 this converts a few more files. The idea is to do the low-hanging fruit first (these were all relatively painless) to build up type coverage in the code base, making it easier to take on the big meaty source files.

if we stick with the current bindActionCreators, anything else that needs to be done for this PR?

if we stick with the current bindActionCreators, anything else that needs to be done for this PR?

Not from my end, all good to go 👍

Sweet, thanks!


STMP restart for Swift Mailer

Open for comments.
N.B. Not sure if "reset()" is required on every send - see here:
https://github.com/swiftmailer/swiftmailer/issues/490#issuecomment-87634908

@GrahamCampbell All done. Re code style - what needs to be amended?

Please squash to one commit when you're done.


How to deploy the model in CVAT while using external CVAT_HOST?

Hi, I am trying to deploy the model in GCP in CVAT. External IP for the VM instance is configured with 8080 port for CVAT.
I have done below steps while SSH into the VM instance:
Cloned the latest repo
cd cvat
Exported CVAT_HOST
sudo -E docker compose up -d
Now, how to proceed for automated Annotations on my CVAT_HOST?
I tried running the
docker compose -f components/serverless/docker-compose.serverless.yml up -d --build
But in the CVAT, I am unable to the Models tab.
Can anyone help me here please!.

I tried running the
docker compose -f components/serverless/docker-compose.serverless.yml up -d --build

Where have you seen suggestion to use this command?
Please, proceed the guide: https://opencv.github.io/cvat/docs/manual/advanced/serverless-tutorial/

I have followed exact same way, Using the same Guide .
But my doubt is it my external IP is <IP_ADDRESS> for example.
CVAT would be on <IP_ADDRESS>:8080,
after installation will the Nuclio (serverless) using that guide be on this <IP_ADDRESS>:8070 port??
And will this be communicating with CVAT for getting Models tab in CVAT?
Now, for me that was the problem, I both CVAT and Nuclio are running and I deployed a model in Nuclio but Models tab in CVAT is not visible for semi automated annotations.

So, perhaps you have issues because you did not follow the guide...
There is not a command like this: docker compose -f components/serverless/docker-compose.serverless.yml up -d --build.

docker compose -f docker-compose.yml -f docker-compose.dev.yml -f components/serverless/docker-compose.serverless.yml up -d --build
This is the command I used
There was a typo sorry for that


cloudwatch_metrics_collector: 2.0.0-0 in 'melodic/distribution.yaml' [bloom]

Increasing version of package(s) in repository cloudwatch_metrics_collector to 2.0.0-0:

upstream repository: https://github.com/aws-robotics/cloudwatchmetrics-ros1.git
release repository: https://github.com/aws-gbp/cloudwatch_metrics_collector-release.git
distro file: melodic/distribution.yaml
bloom version: 0.7.2
previous version for package: null

cloudwatch_metrics_collector
* fix broken build when cmake/rostest cannot find the gmock library (#13 <https://github.com/aws-robotics/cloudwatchmetrics-ros1/issues/13>)
* Fix timestamp conversion bug #10 <https://github.com/aws-robotics/cloudwatchmetrics-ros1/issues/10>
* Update CMakeLists.txt
* Update to use non-legacy ParameterReader API (#7 <https://github.com/aws-robotics/cloudwatchmetrics-ros1/issues/7>)
  * Update to use non-legacy ParameterReader API
  * increment package version
  * address comments, remove use of Aws::CloudWatch::Metrics namespace
* Allow users to configure ROS output location
* Contributors: AAlon, Juan Rodriguez Hortala, M. M, Tim Robinson

Since I merged the other cloudwatch PR, this one now has conflicts.  Mind rebasing?  Thanks.

Since I merged the other cloudwatch PR, this one now has conflicts. Mind rebasing? Thanks.

Should be resolved now.


'noise_combination' undefined near line 17 column 13

'noise_combination' undefined near line 17 column 13
called from
/destination/data/train/generate_train.m at line 17 column 11

@kevin1One You may check whether "noise_combination.m" is in the same path as "generate_train.m". Also, you need to run the code in /destination/data/train/, otherwise you have to run addpath('/destination/data/train/') before you excute the script.


o1-mini / o1-preview does not work

some notes for you re: the o1 models and vim-ai

o1 only supports temperature: 1
o1 doesn't support system role
o1 doesn't support max_tokens: null
o1 doesn't support stream: true

First three I can bypass, but non-stream mode is a stopper.
I think openai will add this support later, so could just wait for them.

Sound like a matter of conditional renaming in https://github.com/madox2/vim-ai/blob/758be522e6d765eeb78ce7681f4b39e3b05043b8/py/utils.py#L53
One could think of simply passing the options declared in Vim to be more flexible to API changes of the many models.

Yeah it's the stream: false part that is tripping me up.  It's not as simple as just changing the option, there appear to be logic changes needed as well because in non-stream mode you have to poll to get the completion.

I have just prototyped non streaming support on the branch: support-non-streaming, but I didn't have time to properly test. Let me know if that works for you

nice!  I had to do this:
diff --git a/py/utils.py b/py/utils.py
index 381ba75..4869398 100644
--- a/py/utils.py
+++ b/py/utils.py
@@ -51,12 +51,17 @@ def normalize_config(config):

 def make_openai_options(options):
     max_tokens = int(options['max_tokens'])
-    return {
+    max_completion_tokens = int(options['max_completion_tokens'])
+    result = {
         'model': options['model'],
-        'max_tokens': max_tokens if max_tokens > 0 else None,
         'temperature': float(options['temperature']),
         'stream': int(options['stream']) == 1,
     }
+    if max_tokens > 0:
+        result['max_tokens'] = max_tokens
+    if max_completion_tokens > 0:
+        result['max_completion_tokens'] = max_completion_tokens
+    return result

 def make_http_options(options):
     return {

because it didn't want max_tokens any more, instead o1 requires max_completion_tokens.  It complains even with null for max_tokens.
Also needed to set the initial prompt to >>> user instead of >>> system  and set temperature to 1 in init.vim:
let initial_prompt =<< trim END
>>> user

You are a completion engine with following parameters:
Task: Provide compact code/text completion, generation, transformation or explanation
Topic: general programming and text editing
Style: Plain result without any commentary, unless commentary is necessary.  Don't use semicolons for javascript.
Audience: Users of text editor and programmers that need to transform/generate text
END

let chat_engine_config = {
\  "engine": "chat",
\  "options": {
\    "stream": 0,
\    "model": "o1-mini",
\    "max_tokens": 0,
\    "max_completion_tokens": 25000,
\    "temperature": 1,
\    "request_timeout": 120,
\    "selection_boundary": "",
\    "initial_prompt": initial_prompt,
\  },
\  "ui": {
\    "open_chat_command": "preset_below",
\    "scratch_buffer_keep_open": 0,
\    "populate_options": 0,
\    "code_syntax_enabled": 1,
\    "paste_mode": 1,
\    "show_initial_prompt": 1,
\  },
\}

sample output:
>>> user

how many R's in strawberry?

<<< assistant

There are three **R**'s in "strawberry".

sample o1-mini response:
{
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "There are three **R**'s in \"strawberry\".",
                "refusal": null,
                "role": "assistant"
            }
        }
    ],
    "created":<PHONE_NUMBER>,
    "id": "chatcmpl-AHj74vV1jBJoNRMWk6dSOaBHl0jlT",
    "model": "o1-mini-2024-09-12",
    "object": "chat.completion",
    "system_fingerprint": "fp_692002f015",
    "usage": {
        "completion_tokens": 601,
        "completion_tokens_details": {
            "reasoning_tokens": 576
        },
        "prompt_tokens": 98,
        "prompt_tokens_details": {
            "cached_tokens": 0
        },
        "total_tokens": 699
    }
}

o1-preview also works:
{
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "3",
                "refusal": null,
                "role": "assistant"
            }
        }
    ],
    "created":<PHONE_NUMBER>,
    "id": "chatcmpl-AHjCIeW5SzrPYWYV2nuVxzVVLuIgU",
    "model": "o1-preview-2024-09-12",
    "object": "chat.completion",
    "system_fingerprint": "fp_49f580698f",
    "usage": {
        "completion_tokens": 1355,
        "completion_tokens_details": {
            "reasoning_tokens": 1344
        },
        "prompt_tokens": 102,
        "prompt_tokens_details": {
            "cached_tokens": 0
        },
        "total_tokens": 1457
    }
}

Thanks @dfadev I applied your patch and it works well. Now it is possible to use o1 models. This is an example how to do it with a role:
[o1-mini]
[o1-mini.options-chat]
stream = 0
model = o1-mini
max_tokens = 0
max_completion_tokens = 25000
temperature = 1
initial_prompt =
  >>> user
  You are a general assistant.
  If you attach a code block add syntax type after ``` to enable syntax highlighting.


Quoted commits on tap repo?

I wanted to ask before just submitting a PR to customize or update. The commits that are pushed to the tap repo are wrapped in double quotes. Is this intentional?
git.py line 51
f'"Brew formula update for {repo_name} version {version}"'

Nope! Probably there in error or from some long distant change and the nested double quotes could be done away with! Happy to accept that change.

I had some time, addressed in https://github.com/Justintime50/homebrew-releaser/commit/1b6b02527142f9a6a661bd519aacf272b47c99e7
Thanks for the callout!

Turned it into a conventional commit, even better! Thanks


Add API command for Mobile_GetConstants

@Julesssss will you please review this?
Details
This PR adds the Mobile_GetConstants endpoint to Expensify.cash to enable us to fetch data via that endpoint.
Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/157008
Tests

Download and apply this diff via git apply mobile_getConstants_diff.txt
Run the app on web, sign in, select a chat, and hit enter in the compose box without typing anything
Confirm you see the data in the logs. You can also use the console debugger to view the json value.

Tested On

[x] Web

Looks good to me 👍


Object properties are all optional by default

import * as Zod from "zod";
const Dog = Zod.object({
name: Zod.string(),
age: Zod.number(),
});
type Dog = Zod.infer<typeof Dog>;
Copied this code straight from the docs. The type of "Dog" is { name?: string, age?: number }. In the docs it says it should be { name: string, age: number }

@midwesterntechnology
As the docs state, you must enable the strict: true setting in your tsconfig.json in order to get correct type inference.

I am also having a similar issue with 3.11.6. I have a library package 'A' which exports a function makeSchema which has the signature: <T extends ZodRawShape>(z: Zod) => Zod.ZodObject<T>, where T is passed to a Zod.object call and returned. When I call makeSchema from within the library, the fields are all required as expected. When calling makeSchema from another package and passing the resultant object to Zod.infer all the fields in returned are optional.

In case anyone had the same issue as me (with a new Nest project, in this instance), I thought I had enabled strict: true, but I also had strictNullChecks: false set separately, which was making all properties optional. Just needed to enable that too (or remove it, as it's the default) and everything worked fine.

@srounce
After checking that you don't accidentally have strictNullChecks: false (thanks @DavidR95!) can you verify that they're using the same version of Zod and TypeScript? As you noted, infer is working within a single package/module boundary, so it must be something about how dependencies are being resolved and/or how typescript is handling the imported type definitions.

I can confirm I have strictNullChecks: true in both projects. The library package re-exports the version of Zod that it uses so they resolve to the exact same package. Turns out it was the typescript version that the consumer project was using. Updated it and everything is now fine, thanks for your help.

Similar case here: VSCode mouse-over was showing all fields to be optional.

strict and strictNullChecks were both true
tsc in the project was 4.5.2
tsc that VSCode claimed it was using was also 4.5.2
However, VSCode somehow still used what is apparently the system-installed version (4.1.3 on Ubuntu 21.10/Impish).
After npm -g install tsc and a VSCode restart, everything works as expected.

I'm seeing the same behavior even after checking all of the above. The problem was indeed down to my tsconfig.json though - it was completely standard after executing tsc --init, and was complaining that:

No inputs were found in config file 'c:/Users/Me/source/repos/personal/my-app/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["./"]'."

I've updated it to not exclude any files from compillation, with:
{
    "exclude": [ "" ],
    "compilerOptions": {...}
}

This gets rid of the tsconfig error and Zod's infered types no longer have optional properties.


mssql Dialect - Create populates an incorrect id field.

When performing a Create or any insert operation,  the id populated in the data structure is not correct.  In my particular case it populates the field with the id of a pre-existing row rather than the newly generated one.
The simple fix is to add the following SELECT SCOPE_IDENTITY() to the LastInsertIDReturningSuffix function which currently returns an empty string.  Here's the patch which seems to resolve the issue  - https://github.com/jinzhu/gorm/commit/f2e0e54823966b31c7c487c6bb7407959ed983f1

We should fixed all issues for mssql, if you still have any problem, please create a new issue.
Thank you.


Proposal to convert units to seconds in a Summary

This change is mostly a strawman for #10 to solicit feedback and see if/how we'd like to approach this going forward.

Closing this. Will be fixed per https://github.com/apple/swift-metrics/pull/42 once merged.


need to check

if the source target numbers are correct

Hi @jiahuigeng,
Would you mind to talk more about it?
Thanks!
Yu-Hsiang

Hi @jiahuigeng,
I guess you are talking about the enc/dec with different number of layers?
In this case, the problem is solved with 07e2cda7d6e3ed9225ae1063b90a077432c24995.
Please take a look.
Thanks!


open should be writable property instead of method in snackbar

Describe the bug
When trying to set "open" property to "true" the snackbar does not pop up.
"open" is a property in majority of MCWC including dynamic pop-ups like menu and dialog. It supports declarative programming via HTML. When replaced with explicit method it breaks possibility of using properties binding for state control and prevents HTML delelopers to pre-render pop-ups when page is opened.
.open() API is

inconsistent with overall library design
prevents pre-defining the state in HTML

To Reproduce

<mwc-snackbar labelText="Can't send photo. Retry in 5 seconds." open="true">
open the page
snackbar is not opened

Expected behavior
snackbar popped up when defined initially or set dynamically by snackbar.open=true
Additional context
there is a possibility to define a dual API which would override 'open' as a property and keep it a function in same time. But since  majority of MCWC components are using open as property, I do not see a need for open() as function.

It's worth noting that snackbar is different than many other components with a similar open property, such as dialog. Those components are persistent: when open="true", they remain open until it is set to false.
Snackbar on the other hand, will automatically dismiss itself after being opened. This can lead to a state mismatch where open="true" but the snackbar itself is not open. That's the reason for the usage of a function instead of an attribute in markup, which is inherently more persistent.

Kindly disagree. MCWC has been chosen to be on list of supported by CDN libs due to primary web components promise - as extension of HTML. Meaning ability to use declarative programming. So far several libs and most of MCWC components are compliant.
Menu and Dialog from developer's prospective are not much different from Snackbar. But for some reason are compliant with declarative programming paradigm. Snackbar is not. Should rename this bug to "compliance with declarative programming" ?
That will give a straight answer what principles MCWC is supporting and which in not.  In case of negative answer making the tickets like #812 or enhancement #1181 irrelevant. And MCWC irrelevant for my CDN project and its clients as well.

Snackbar on the other hand, will automatically dismiss itself after being opened. This can lead to a state mismatch where open="true" but the snackbar itself is not open.

What from your statement is not applicable to Menu or Dialog? In both cases state would be changed by actions outside of component. That is OK to have property/attribute which reflect dynamic state.

I ended up writing this for dialog but was unsure of the implementation at the time. I assume the reason this was done for snackbar was because of the same reason I was unsure.
These components set open=false on themselves. This causes an issue with lit-html's property binding. e.g.
class MyElement extends LitElement {
  @property() isOpen = true;

  render () {
    return html`
      <mwc-dialog .open=${this.isOpen}></mwc-dialog>
    `;
  }

  show() {
    this.isOpen = true;
  }

  directShow() {
    this.shadowRoot!.querySelector('mwc-dialog')!.open = true;
  }
}

in the above example, if dialog closes via user interaction, then Dialog.open === false but MyElement.isOpen === true. Thus show() would not open the dialog because the lit lifecycle would not see a change in isOpen and thus not rerender. Also, if another property triggered rerender, lit-html would not update that value. On the other hand, directShow() would open the dialog. Though now that the live directive exists, I believe this is much less of an issue.
Though for those not using lit-html, the show() and close() functions should still exist.
I'm transforming this issue into a feature request and putting it on the following sprint.

@e111077 , you could consider instead of plain @property on boolean member the attribute getter and setter.
This way it could be initializeable, actionable, and CSS selectable.  Would be a bit more verbose but easier to maintain and use. Availability from CSS is quite useful as could be used for animations, siblings control, etc. Imagine closing the dialog or snackbar accompanied by hiding shadow around source item.

I believe we need to figure out some standardization of attribute reflection across our components

Agree. Just to your bucket of standard solutions.  'open' is an attribute which is popular in HTML5 ( like in details tag ). It also has been implemented by mwc-menu and mwc-dialog.


Call count in benchmark

Codecov Report
Attention: Patch coverage is 83.33333% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 96.28%. Comparing base (b54c981) to head (50bc5e1).

Files
Patch %
Lines

.../DifferentiationInterfaceFastDifferentiationExt.jl
50.00%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #151      +/-   ##
==========================================
+ Coverage   93.23%   96.28%   +3.05%
==========================================
  Files          62       46      -16
  Lines        1982     1159     -823
==========================================
- Hits         1848     1116     -732
+ Misses        134       43      -91

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


Using positive on NumberInput throws a warning

Hi,
I tried using the positive prop with NumberInput. However, React throws the following warning-
"Warning: Unknown prop positive on  tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
I believe this is due to the fact that the props are directly passed to the underlying input element in the render method of NumberInput.

I see. You 're right. Will fix it soon.

I've opened a pull request to fix this. You can merge it if you find it's alright

Great. Thanks.


chore: Release v1.9.39

This is a promotion branch for the release v1.9.39

Closing these PRs because there are differences in code on master and release.


Why does pytest create a testdb called test_test_cujo

settings/test.py already specifies DATABASE->NAME->test_cujo, so why does pytest append another test_ to the name?

it appends "test_" to your db name no matter what, Django does the same thing unless you use NAME inside the TEST dictionary inside the DATABASES dict


Async invoice creation

Describe the problem you're trying to solve
Receiver wallets can take pretty long to create invoices. Since our mutation waits for wallets to create an invoice, our load balancer might timeout before this happens.
Describe the solution you'd like
Instead of increasing timeouts for wallets and load balancer, we could return an id that the frontend can use to poll for the invoice.
This might not be simply the invoice id since we only store invoices in the database when we actually have something to store.
Describe alternatives you've considered
No response
Additional context
No response

Doing https://github.com/stackernews/stacker.news/issues/1717 first might be useful


Wrongly empty result when filtering on "^<" and "^<something"

The following query produces an std:bad_alloc every time and returns a (wrongly) empty result.
PREFIX p: http://www.wikidata.org/prop/
PREFIX wd: http://www.wikidata.org/entity/
SELECT ?statement WHERE {
wd:Q873 p:P166 ?statement . FILTER regex(?statement, "^<")
}
This bug does not depend on anything special in the query except the "^<". It also occurs for any other predicate in place of the p:P166 and it also occurs with GROUP BY and HAVING as long as the regex is exactly "^<".
The query works just fine with regex "<" (no prefix search) or with "^..." where ... does not start with a <.
With "^<..." where ... is non-empty -- e.g. "^<http" -- there is no std:bad_alloc, but the result is still (wrongly) non-empty.
It's probably a small bug. But I'm surprised how it could survive for so long.
PS: The same problem occurs with the regex '^"' (std:bad_alloc). And something like '^"M' does not match literals with names starting with M. Again, when omitting the ^ everything works just fine.

Update:
The bad_alloc is gone, but we still have the wrongly empty result on any prefix filter that starts with
"^<. I think the bad_alloc was fixed in connection with a similar error when filtering for all literals discovered by Claudius some time ago.

Fixed since #962 (the correct query now uses STR(?statement) and the result of the STR does not contain the <...> anymore).


Get pytest working by importing requests

@justdoit0823 Ready for your review...
https://travis-ci.org/justdoit0823/pywxclient/builds/268220432#L475

I have created directory requirements, and you can put requests in the test.txt file. It's more easy to maintain in this way.

OK...  That is working reading those files.


Load outgoing transactions from connectors

Feature description
Currently all outgoing transactions are loaded from the local database, while incoming transactions are loaded from the connector. This leads to some confusion around transaction lists.
Describe the solution
Load outgoing transactions from the connectors and display them in the extension. Enhance transactions loaded from the connector with data stored in the local DB (e.g. the website this payment has been made on, if available)
Existing connectors need to be enhanced with an getTransactions method that loads all outgoing transactions from the respective source. Merging this info with data from the local database (using the preimage or a unique transaction id) should be done outside of the connectors.

@reneaaron I can pick it. Please assign it to me

@lujakob let me know if you need help with this; we can maybe split up the connectors and work on it to get this done faster!

@lujakob let me know if you need help with this; we can maybe split up the connectors and work on it to get this done faster!

Sure, that's a great idea actually. I'm not sure how we should handle the branches. But if you want to help me out with the implementation of some connectors this should be pretty independent.
I created a draft PR with interface changes, and a POC implementation for lndhub.go. If you want to add some implementations of the getTransactions would be great. Or do you have an other idea?

I created a draft PR with interface changes, and a POC implementation for lndhub.go

Awesome, let me know what other connectors you'll work on, I'll take the rest and open a PR to merge into yours, thanks again!

I created a draft PR with interface changes, and a POC implementation for lndhub.go

Awesome, let me know what other connectors you'll work on, I'll take the rest and open a PR to merge into yours, thanks again!

Cool, thanks. For now it's just Alby lndhub and the normal LND. In the meantime I will care about the rest of the UI changes. In case I finish I'll get back to you to ask which connectors are still left to implement.


Refactor common elements from modules into a common module

Some common identifiers and types are sneaking in across modules, probably time to have a look at what can be refactored out and shared across modules to avoid redefinitions.

Can we create a separate package for the types and import them and reuse it in all other modules, Will this work???

Possibly yep, but it only makes sense to extract types that are shared between modules I think.
It's also kinda neat that each module has all the required types internally, and extracting them might make usage less clear :-/
import (
    "gopkg.in/ryankurte/go-mapbox.v0/lib/maps"
)

img, err := mapBox.Maps.GetTiles(maps.MapIDSatellite, 1, 0, 0, maps.MapFormatJpg90, true)

Could end up being:
import (
    "gopkg.in/ryankurte/go-mapbox.v0/lib/common"
    "gopkg.in/ryankurte/go-mapbox.v0/lib/maps"
)

img, err := mapBox.Maps.GetTiles(common.MapIDSatellite, 1, 0, 0, common.MapFormatJpg90, true)

So maybe this needs some more thinking about.


Fix some simple types in test script and adding test info in the main readme.

cc @kadel @rtnpro @surajssd

LGTM

:+1: LGTM
Thank you @pradeepto  :wink:


What is the correct way to terminate the sample program?

In your readme page you have this program
from prometheus_client import start_http_server, Summary
import random
import time

# Create a metric to track time spent and requests made.
REQUEST_TIME = Summary('request_processing_seconds', 'Time spent processing request')

# Decorate function with metric.
@REQUEST_TIME.time()
def process_request(t):
    """A dummy function that takes some time."""
    time.sleep(t)

if __name__ == '__main__':
    # Start up the server to expose the metrics.
    start_http_server(8000)
    # Generate some requests.
    while True:
        process_request(random.random())

When I run it (with spyder) for the first time I got no problem.
But later I do Ctrl-C to stop the program.
Then when I try to run it again I got

ValueError: Duplicated timeseries in CollectorRegistry: {'request_processing_seconds_created', 'request_processing_seconds_sum', 'request_processing_seconds_count', 'request_processing_seconds'}

This is due to line 31 in your registry.py file.
What is the correct way to terminate the program so that timeseries are not left hanging on?

It's only meant to be run once in a given process. It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.


Therefore when starting again Meteor can not find the images.
Any suggestions ..?
I tried the demo-simplest-upload and it has the same problem.

Version of Meteor-Files<EMAIL_ADDRESS>Version of Meteor: Meteor <IP_ADDRESS>
OS (Win 10)?

Thank you..!!!

Hello @HC-Isma ,
This behavior is expected, as Meteor wipes down all internal folders on rebuild (rebuilds all folders). This is described in our FAQ:

Where are files stored by default?: by default if config.storagePath isn't passed into Constructor it's equals to assets/app/uploads and relative to running script:

On development stage: yourDevAppDir/.meteor/local/build/programs/server. Note: All files will be removed as soon as your application rebuilds or you run meteor reset. To keep your storage persistent during development use an absolute path outside of your project folder, e.g. /data directory.
On production: yourProdAppDir/programs/server. Note: If using MeteorUp (MUP), Docker volumes must to be added to mup.json, see MUP usage

Let me know if it helped you

it is understood
Thank you very much...!!!!

@HC-Isma I'm glad it's solved for you.
Please, support this project by:

Star on GitHub
Star on Atmosphere
Check other packages we have made
Share on Facebook and Twitter
Donate via PayPal


Gitlab gem update + Make chandler run on rake release

Somehow the travis deploy script wasn't working, so now I've improved the rake release task to also run chandler if you have either one of those ENV vars in your shell.

@k0nserv - does this look fine to you?

And @connorshea - these api route changes feel right to you?
-        url = "https://gitlab.com/api/v3/projects/#{slug}/merge_request/#{merge_request_id}"
 +        url = "https://gitlab.com/api/v3/projects/#{slug}/merge_requests/#{merge_request_id}"


Lack of visual feedback to indicate the form is "submitting". — Button could fade to gray after press, while AJAX call is happening. Fade back to orange on failure for retry?

Fixed


Small changes to make the script compatible with Python3

I made a couple of changes to make the script compatible with Python3. I only tested the decompression, though. Feel free to change it however you like it. :)

Thanks for your suggestion!
I've just updated the module for Python 3 support with backward compatibility :)


Make clause file names explicit

Now that clauses are made explicit, should we change the filenames as well?
I can submit a PR. Wanted to ask first.

Might as well for consistency. Thanks

Landed in #18


fix: refactoring how the injectRefreshEntry func works

I didn't update the tests yet because I want to see if this is the right direction to go down before I finish the rest of it

@pmmmwh updated with your feedback, and also updated the tests.
however, there is one test suite that fails, and I cannot figure out how to fix it - this is my inexperience with webpack showing up again.
in loader.test.js there are some snapshot tests that have a line like this:
"$RefreshRuntime$ = require('react-refresh/runtime');

however, the tests fail because those lines are changed to
$RefreshRuntime$ = require('/Users/{my-username}/react-refresh-webpack-plugin/node_modules/react-refresh/runtime.js');

do you have any idea what I can do to fix this? it seems like all it's done is add the full file path, but I can't figure out why that would happen and what I would do to fix it.
otherwise, everything is ready for a review.

@pmmmwh updated with your feedback, and also updated the tests.
however, there is one test suite that fails, and I cannot figure out how to fix it - this is my inexperience with webpack showing up again.
in loader.test.js there are some snapshot tests that have a line like this:
$RefreshRuntime$ = require('react-refresh/runtime');

however, the tests fail because those lines are changed to
$RefreshRuntime$ = require('/Users/{my-username}/react-refresh-webpack-plugin/node_modules/react-refresh/runtime.js');

do you have any idea what I can do to fix this? it seems like all it's done is add the full file path, but I can't figure out why that would happen and what I would do to fix it.
otherwise, everything is ready for a review.

@pmmmwh actually I just discovered that those tests fail on the main branch, so it's not anything that my code does. I'm going to merge this branch, and that should update the PR into your upstream repo

do you have any idea what I can do to fix this? it seems like all it's done is add the full file path, but I can't figure out why that would happen and what I would do to fix it.

Yea - I've fixed it here pmmmwh/react-refresh-webpack-plugin#234


Add support for timeouts in S3FileSystem

We need to add an option to configure the requestTimeoutMs and connectionTimeoutMs
in AWS C++ SDK client. The current SDK defaults are too small (3 sec, 1 sec) to handle AWS S3 storage.
Presto defaults these to 5 seconds. See hive.s3.connect-timeout and hive.s3.socket-timeout
https://github.com/prestodb/presto/blob/5adc7c00aec765ecba85a4923cbfa1d791195db9/presto-hive/src/main/java/com/facebook/presto/hive/s3/HiveS3Config.java#L54
https://github.com/aws/aws-sdk-cpp/blob/34fcd4beaa77bf394806631eae9270ad28ece77e/aws-cpp-sdk-core/include/aws/core/client/ClientConfiguration.h#L96
https://github.com/aws/aws-sdk-cpp/blob/main/src/aws-cpp-sdk-core/source/client/ClientConfiguration.cpp#L55

@jayadeep-jayaraman that is correct. The code comments explain the timeouts better https://github.com/aws/aws-sdk-cpp/blob/34fcd4beaa77bf394806631eae9270ad28ece77e/aws-cpp-sdk-core/include/aws/core/client/ClientConfiguration.h#L96

Hi @majetideepak, I‘m fairly new to Velox but since it's labeled "good first issue", can I take this issue as my first contribution to Velox, if nobody is working on it?

@chrisxu333 Nobody is working on this.

@chrisxu333 Nobody is working on this.

Sounds good, I'll work on this then.

Hi, is this still being worked on? I'd like to contribute to this if not!

@majetideepak could you chime in?  We also need this feature. and can we add user agent support as well? user agent setting is very important to track s3 usage in production: https://github.com/prestodb/presto/blob/5adc7c00aec765ecba85a4923cbfa1d791195db9/presto-hive/src/main/java/com/facebook/presto/hive/s3/HiveS3Config.java#L415 .


Fix "Bid Accepted" confirmation screen after auction closed

I was helping a woman place a bid with 30 seconds left in the Silent auction. After typing in the new amount, bidder number, and pin number, the bid went through and said "Bid Accepted" popped up on the kiosk. The woman was standing next to me and saw this on the screen and was under the impression that she had won the lot. If this isn't a bug, it should say something along the lines of "Bid submitted" or "Bid Failed." This is the lot where this occurred: https://auctions.artsy.net/sales/ici-benefit-auction-2016/artworks/giacinto-occhionero-orange-drops/bidder_positions.

Cool, going to close this issue to follow-up on this one: https://github.com/artsy/auctions/issues/220


Add build files. Add rollup to build umd...

Add es, cjs, umd, and umd:min builds
move istanbul babel plugin into test env
Begrudgingly add rollup to bundle code for umd and umd:min
Only use babel and terser - terser for minification

Codecov Report

Merging #17 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #17   +/-   ##
=======================================
  Coverage   53.21%   53.21%
=======================================
  Files           6        6
  Lines         684      684
=======================================
  Hits          364      364
  Misses        320      320

Flag
Coverage Δ

#integration
48.83% <ø> (ø)

#unit
48.68% <ø> (ø)

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

Continue to review full report at Codecov.

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


Update to<EMAIL_ADDRESS>

Problem
set-env and add-path are disabled in GitHub actions.
See https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
This causes the tests in all PRs to fail until resolved.
Solution
This requires an update to the action using those
commands. This means at least version 2.6.0 is
needed. See https://github.com/shivammathur/setup-php/pull/300
However there seem to be no breaking changes so we
can go straight to 2.9.0 instead. This also allows testing
with version 8.x of PHP.

The coding Standard, PHPStan and Code Coverage failures are caused by using the master as source for the workflow, thus using the older, broken, version of setup-php. All other tests successfully passed with the 2.9.0 version from this PR.

I had totally missed there were more jobs, fixed it now. Couldn't amend the previous commit locally so had to edit through the GitHub UI. Please squash this during merge :D


Ability to get notification for new package availability

Scenario:
As a package consumer, I would like to know the moment new version of tha package is available. (may be subscribe to email notification?)

Similar to: https://github.com/NuGet/NuGetGallery/issues/2992


about helper in App_Code

I want use some helpers anywhere, so I put xxx.cshtml in App_Code.
But it didn't work with Nancy.
What could I do?

Support was started in #1373 but it was never merged.

@xt0rted OK, thanks! It's helpful

But when will it(#1373) be merged, it's very helpful.

Closing this as there is an open issue for it already (#1373)


Documentation should mention "pnpm >= 7.1.0 with --no-optional=false"

Feature request
Documentation should mention "pnpm >= 7.1.0 with --no-optional=false"
Spent last 24 hrs trying to get sharp running in a Docker container, for a SvelteKit app deployed with pnpm. Ran through all of the installation documentation, searched for other working examples on GitHub, StackOverflow etc.
Finally reached the point of raising an issue, only to discover the solution was in the issue template.
Would be great if this highlighted sentence could also be added to the Installation documentation.

What alternatives have you considered?
Is it somehow possible to install sharp with --no-optional=true (instead of the recommended --no-optional=false) when using pnpm as a package manager?
Please provide sample that help explain this feature
See below the working Dockerfile, vite.config.ts, and relevant parts of the package.json if anyone needs it:
Working configuration

Dockerfile
FROM node:20.14.0-slim AS base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

ARG SHARP_FORCE_GLOBAL_LIBVIPS=1
ENV SHARP_FORCE_GLOBAL_LIBVIPS=1

RUN apt-get update && apt-get install -y --no-install-recommends \
  # Used to generate sitemap
  git \
  # Sharp image library
  libvips42 \
  # latest certs because of uWebSockets
  ca-certificates \
  && rm -rf /var/lib/apt/lists/*

FROM base AS build
ARG DOCKER_TAG
ENV DOCKER_TAG=${DOCKER_TAG}
ARG NPM_TOKEN

WORKDIR /usr/src/app
COPY . .
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
  pnpm install --filter=@sites/frontend --frozen-lockfile
RUN pnpm run build --filter=@sites/frontend
RUN pnpm deploy --filter=@sites/frontend --prod --no-optional=false /pruned/sites/frontend

FROM base AS runtime
WORKDIR /app
COPY --from=build /pruned/sites/frontend ./
COPY ./sites/frontend/entrypoint.sh ./

# Max body size already guarded by NGINX
ENV BODY_SIZE_LIMIT=Infinity
ENV PORT=3000
EXPOSE ${PORT} 2222

ENTRYPOINT ["./entrypoint.sh"]

vite.config.ts
import { defineConfig } from 'vite';
import { sveltekit } from '@sveltejs/kit/vite';
import path from 'node:path';

const viteConfig = defineConfig({
	build: {
		rollupOptions: {
			external: ['sharp'],
		},
	},
	optimizeDeps: {
		exclude: ['sharp'],
	},
	resolve: {
		alias: {
			$lib: path.resolve(__dirname, './src/lib'),
			'$lib/*': path.resolve(__dirname, './src/lib/*'),
			$routes: path.resolve(__dirname, './src/routes'),
			'$routes/*': path.resolve(__dirname, './src/routes/*'),
		},
	},
	plugins: [
		sveltekit()
	],
});

export default viteConfig;

package.json
{
	"name": "@sites/frontend",
	"version": "0.0.1",
	"private": true,
	"type": "module",
	"scripts": {
		"dev": "npm run dev:svelte",
		"dev:svelte": "vite dev --host",
		"build": "cross-env NODE_ENV=production npm run build:svelte",
		"build:svelte": "vite build",
		"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
		"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
		"preview": "vite preview",
		"prepare": "svelte-kit sync"
	},
	"dependencies": {
		"sharp": "^0.33.4"
	},
	"devDependencies": {
		"@sveltejs/adapter-node": "^4.0.1",
		"@sveltejs/kit": "^2.5.1",
		"@sveltejs/vite-plugin-svelte": "^3.0.1",
		"svelte": "^4.2.15",
		"vite": "^5.2.11"
	},
	"engines": {
		"pnpm": "^8.0.0"
	},
	"packageManager"<EMAIL_ADDRESS>	"supportedArchitectures": {
		"os": [
			"current",
			"linux"
		],
		"cpu": [
			"x64"
		]
	}
}

Did you see https://sharp.pixelplumbing.com/install ?
⚠ Please ensure your package manager is configured to install optional dependencies

Thanks @lovell.
Honestly no, I did not see that banner when I was reading the docs. Scrolled right past it - not sure if that is a common problem because it's right at the top of the page, or just me missing it.


Class file version of CLI jar exceeds minimum Java version (8) referenced in usage docs

Issue encountered
I attempted to run gtfs-validator with Java 8 but encountered the following error:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/mobilitydata/gtfsvalidator/cli/Main has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

The usage documentation says "install Java 8 or higher", but it looks like the minimum supported version is Java 11 (class file version 55.0).
Seems like either the something needs to change with the builds to support earlier versions of Java (preferable) or the documentation needs to be updated.

@botanize If you're running v1.x release JAR you'll need Java 11, and can follow these instructions:
https://github.com/MobilityData/gtfs-validator/tree/v1.4.0#via-java-on-your-local-computer
The current master branch (which will eventually be v2.0) is a refactor of the project for efficiency and currently only requires Java 8. I agree that this isn't currently clear - you caught us in the middle of switching over.
@lionel-nj Would you be able to add a note at the top of the main README usage section and usage docs that point to the above link for anyone using the v1.x releases?

@lionel-nj Would you be able to add a note at the top of the main README usage section and usage docs that point to the above link for anyone using the v1.x releases?

See https://github.com/MobilityData/gtfs-validator/pull/543/commits/50a70436faec397eb0fed8b3b4aae452ff13e090


Pagination tests failing

See: https://travis-ci.org/django-json-api/rest_framework_ember/builds/53516979

Since this package tests against the latest DRF this is very likely caused by the DRF 3.1 release as it changed the pagination api http://www.django-rest-framework.org/topics/3.1-announcement/

Fixed by a41d9d5f6f93b866c9002e9953b870363f8323ff


Added the globals option to the beam envConfig to allow for static settings to be applied to all events

wouldn't this be better in the application transform?

yes


Programming Languages: Theory and Practice by Robert Harper

http://people.cs.uchicago.edu/~blume/classes/aut2008/proglang/text/offline.pdf
Robert Harper
Carnegie Mellon University
Spring Semester, 2005

Done


Jupyter Notebook does not execute !python or %run in the selected conda environment.

Environment data

VS Code version: 1.53.0
Extension version (available under the Extensions sidebar): v2021.1.502429796
OS and version: macOS 10.15.7
Python version (& distribution if applicable, e.g. Anaconda): 3.7.9
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: XXX
Relevant/affected Python-related VS Code extensions and their versions: XXX
Value of the python.languageServer setting: Jedi

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
Python script run using !python or %run within a cell in a jupyter notebook uses the same environment as the jupyter notebook
Actual behaviour
Python script uses base conda environment rather than the selected conda environment
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Open Jupyter notebook in VS Code. Select a kernel with a Conda environment with a package that isn't in the base env.
Run a .py script using ! python .py or %run .py that imports a package in the selected conda environment.

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

Thanks @spdavern! Will take a look as soon as possible

@spdavern I'm sorry for not getting back to you on this issue.

Please could you ensure you have the latest version of the Jupyter extension installed

Closing this issue due to inactivity


TypeError: User.hasOne is not a function

TypeError: User.hasOne is not a function
My code
associations: function () {
User
.hasOne(Role, {foreignKey: 'id'});
},
where is the mistake ?

It's seems a configuration issue, did you installed the dependencies correctly?

If you mean
$ npm install sails-hook-sequelize --save
$ npm install sails-hook-sequelize-blueprints --save
$ npm install --save sequelize
$ npm install --save pg pg-hstore
$ npm install --save continuation-local-storage
Yes are installed!

Did you disable the ORM on .sailrc file?
"hooks": {
  "blueprints": false,
  "orm": false,
  "pubsub": false
}

it's still looks a configuration issue or reference error, you sure that you have a User model as User.js?
I can't reproduce it, i suggest you take a look at sampleapp https://github.com/cesardeazevedo/sails-hook-sequelize-blueprints/tree/master/test/fixtures/sampleapp
let me know if you got it.

yes i have everything (.sailrc and User)
TypeError: User.hasOne is not a function
at Object.User.associations (/srv/http/myapp/api/models/User.js:137:8)
at Hook.setAssociation (/srv/http/myapp/node_modules/sails-hook-sequelize/index.js:76:20)
at Hook.bound [as setAssociation] (/srv/http/myapp/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
at /srv/http/myapp/node_modules/sails-hook-sequelize/index.js:43:16
at /srv/http/myapp/node_modules/sails/lib/hooks/moduleloader/index.js:294:18
at /srv/http/myapp/node_modules/sails/lib/hooks/moduleloader/index.js:499:14
at buildDictionary (/srv/http/myapp/node_modules/sails-build-dictionary/index.js:134:9)
at Function.module.exports.optional (/srv/http/myapp/node_modules/sails-build-dictionary/index.js:160:9)
at /srv/http/myapp/node_modules/sails/lib/hooks/moduleloader/index.js:287:25
at buildDictionary (/srv/http/myapp/node_modules/sails-build-dictionary/index.js:134:9)
at Function.module.exports.optional (/srv/http/myapp/node_modules/sails-build-dictionary/index.js:160:9)
at Hook.loadModels (/srv/http/myapp/node_modules/sails/lib/hooks/moduleloader/index.js:279:23)
at Hook.bound [as loadModels] (/srv/http/myapp/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
at Hook.initialize (/srv/http/myapp/node_modules/sails-hook-sequelize/index.js:26:28)
at Hook.bound [as initialize] (/srv/http/myapp/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
at /srv/http/myapp/node_modules/sails/lib/hooks/index.js:75:14
at /srv/http/myapp/node_modules/sails/node_modules/async/lib/async.js:451:17
at /srv/http/myapp/node_modules/sails/node_modules/async/lib/async.js:441:17
at _each (/srv/http/myapp/node_modules/sails/node_modules/async/lib/async.js:46:13)
at Immediate.taskComplete (/srv/http/myapp/node_modules/sails/node_modules/async/lib/async.js:440:13)
at Immediate._onImmediate (/srv/http/myapp/node_modules/async-listener/glue.js:188:31)
at processImmediate [as _immediateCallback] (timers.js:374:17)

can you post your models? i can't reproduce it.

I have the same problem, but all other models works fine, it is just User model.

I have the same problem, but all other models works fine, it is just User model.


Opengrok package broken. Wrong hash

Issue description
Opengrok package is broken on nixos-unstable.
In fact, project url has changed.
It moved from http://java.net/ to Github.
Steps to reproduce
Install opengrok on nixos-unstable.
output path ‘/nix/store/ir3lsvgbzqsdms080l7hg59xrdfpvsfw-opengrok-0.12.1.tar.gz’ has sha256 hash ‘09zl0sbf3igx4mcy1xiy83j98mgb86nkvvlyp6cibav7inyyjgww’ when ‘0ihaqgf1z2gsjmy2q96m0s07dpnh92j3ss3myiqjdsh9957fwg79’ was expected
cannot build derivation ‘/nix/store/b6qsfxl8g8p18wrr4j4g7whm1g7nh9di-opengrok-0.12.1.drv’: 1 dependencies couldn't be built

Technical details

System: NixOS: 17.03.git.4450327 (Gorilla)
Nix version: nix-env (Nix) 1.11.6
Nixpkgs version: 17.03pre100896.4450327

On hydra, it fails since 2016-11-29  https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.opengrok.x86_64-linux/all?page=3
cc @lethalman

detected by #22785


Jitting twice for a class method

import jax
import jax.numpy as jnp
import treeo as to

class A(to.Tree):
    X: jnp.array = to.field(node=True)

    def __init__(self):
        self.X = jnp.ones((50, 50))

    @jax.jit
    def f(self, Y):
        return jnp.sum(Y ** 2) * jnp.sum(self.X ** 2)

Y = jnp.ones(2)
for i in range(5):
    print(A.f._cache_size())
    a = A()
    a.f(Y)

The output of the above is 0 1 2 2 2 with jax 0.3.15. No idea what's happening. It seems to work fine with 0.3.10 and the output is 0 1 1 1 1. Thanks.

I looks like related to ** 2. The following gives 0 1 1 1 1. But still no idea why 🤔
@jax.jit
def f(self, Y):
    return jnp.sum(Y) * jnp.sum(self.X)

Ok it seems not related to treeo.
@jax.jit
def f(Y):
    return jnp.sum(Y**2)

Y = jnp.ones(2)

for i in range(5):
    print(f._cache_size())
    f(Y)

This alone gives 0 1 2 2 2 too. I will probably ask in Jax's repo if needed.


QA fixes.

📑 Description
QA fixes for IG publisher

ℹ Additional Information
There was an informational message about eventUri.  I believe we may need a CP around this and it should be changed to eventCoding.
There was also some oddities around AuditEvent.type.  These may be build issues with the publisher.  When it was inheriting the type from BALP, it complained about coding.display not being present.  If I added it to my profile it gave an error about building the differential.  If I added it to the example everything was happy.  So this may be a non-issue.  This may also be related to the current build 1.1.0 of BALP as github has the display commented out when setting it.  Also, I don't know if case really matters, but the terminology server has changed the display for 'rest' from "Restful Operation" to "RESTful Operation".

Decided to leave it with eventUri in ignore warnings.  Will revisit with update to R6 (or R5) since subscriptions and messaging will be updates.

not release worthy. Changes just to examples, where the CI build can be used.


Stability of our e2e tests

I'm seeing a lot of failed tests even on the PRs that are not changing anything in the source code.
We need to make sure that we can count on our e2e tests.
Some examples:

https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/redhat-developer_odo/1467/pull-ci-redhat-developer-odo-master-e2e-core/116
https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/redhat-developer_odo/1462/pull-ci-redhat-developer-odo-master-e2e-core/110

Another issue from PR: https://github.com/redhat-developer/odo/pull/1275
Looks to be a timeout to the cluster: https://openshift-gce-devel.appspot.com/build/origin-ci-test/pr-logs/pull/redhat-developer_odo/1275/pull-ci-redhat-developer-odo-master-e2e-core/160

Some suspicious clusterup/timeout failure in prow - https://coreos.slack.com/archives/CEKNRGF25/p1553001003940200 asked by @mohammedzee1000

openshift-install times out creating infrastructure resources - https://bugzilla.redhat.com/show_bug.cgi?id=1690069

Unless verbose is enabled for each test on prow It's hard to root cause the failure. I have observed in recent time these failure are more often consistent. Some failures are from CI side and some test failure, could be the side effect of unstable prow setup which causes the odo test failures.
So I would recommend enable the test verbose to crack down the odo test failure on prow setup as on aws the chance of reproduce the same failure is less. It also helps on aws too if any test failure is introduced. Issue from OpenShift CI side @mohammedzee1000 is taking care anyway.

Running command: odo create odo-1553168711/nodejs push-odoignore-flag-example --local /var/folders/c9/fb55pf_568dfd1fzj9w1v4n00000gn/T/odo880818179/nodejs-ex
 •  Checking component  ...
 ✓  Checking component
 •  Checking component version  ...
 ✓  Checking component version
 ✓  Initializing 'push-odoignore-flag-example' component
 •  Creating component push-odoignore-flag-example  ...
 ✓  Creating component push-odoignore-flag-example
 ✓  Component 'push-odoignore-flag-example' was created and port 8080/TCP was opened
 ✓  Component 'push-odoignore-flag-example' is now set as active component
To push source code to the component run 'odo push'
This may take a few moments to be ready
Running command: odo push --ignore tests/,README.md
 ✗  Please log in to the cluster
• Failure [12.005 seconds]
odoe2e creating a component when application exists [It] should create a component and push using the --ignore flag
/Users/amit/go/src/github.com/redhat-developer/odo/tests/e2e/e2e_test.go:418

  Expected
      <int>: 1
  to equal
      <int>: 0

  /Users/amit/go/src/github.com/redhat-developer/odo/tests/e2e/e2e.go:45

Push fails due to OpenShift issue - https://bugzilla.redhat.com/show_bug.cgi?id=1684547

One more flake observed multiple times in prow
[1553433935] odo test suite - 6/67 specs Running command: oc project -q
error: you do not have rights to view project "json-test".

------------------------------
Failure [0.256 seconds]
[BeforeSuite] BeforeSuite
/go/src/github.com/openshift/odo/tests/e2e/e2e_test.go:47

  Expected
      <int>: 1
  to equal
      <int>: 0

  /go/src/github.com/openshift/odo/tests/e2e/e2e.go:42

Issue #1513 created for tracking purpose

#1517

Pr #1517 will fix test instability caused by odo test source code.

Issue summary - As part of e2e test instability is concern, fixes are merged into master. However there are two open bugzilla [1] and [2] on OpenShift 4 and can be tracked there.


[wip] Pydantic v2

#1539
Heavily inspired by @masenf's pydantic branch (https://github.com/reflex-dev/reflex/tree/masenf/pydantic-v2)

@masenf should we revisit this? Or do you plan to migrate rx.Base to dataclasses which could make this obsolete.

closing since there seems to be no activity/interest in this
would still love to see reflex using dataclasses or pydantic v2 instead of pydantic v1 for rx.Base


Find pod lib lint dependencies locally

CocoaPods 1.7.0 added the --include-podspecs option for pod lib lint to find dependencies locally instead of via a specs repo. This enables testing changes across multiple pods without needing to push the dependent pods to a staging repo.
There will no longer be a need to manage https://github.com/firebase/SpecsStaging for travis testing.

Closed in favor of #3075


feat: reject failed ERC-20 transfers

Closes #113

I am going to change the implementation to use SafeERC20 from OpenZeppelin.

LGTM!


Enable passing flags to Node

It should be possible to send flags directly to Node.js, which would enable --inspect, --experimental-modules and other such essential flags to be used in development.

It certainly is possible, here is a sample scrip with dropping flow annotations and node inspect while running micro-dev
    "dev": "node inspect -r ./node_modules/flow-remove-types/register.js ./node_modules/.bin/micro-dev lib/index.js",

But won't that execute micro-dev with those flags and not the Node
application?

micro-dev loads your server file. It doesn't spawn a new Node.js instance or something similar. So what @jamo posted should work as expected 👍

Huh, it seems I can't load .mjs as my entry point via micro-dev as it needs ESM to be required via CommonJS.

The command above didn't seem to work for me so I used the method described in a similar issue on micro
node --inspect node_modules/.bin/micro-dev -p 3300

Closing this now. Please use the solution suggested above.

Hi. Yesterday my code worked.
server: express
node: module index.mjs
import express from "express";
const app = express();
app.get('*', (req, res) => {
res.status(200).send({key:'test'});
});
export default app
now:
{
"version": 2,
"name": "WebDav",
"builds": [
{ "src": "index.mjs", "use": "
@now
/node" }
],
"routes": [
{ "src": "/", "dest": "index.mjs" }
]
}
but today it is not work.
What's happend ?
i get an error
SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:721:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/tmp/zeit-fun-02176ca18c0dc/___now_launcher.js:21:18)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
How can i use *.mjs with express ?


Subpixel / rounding option

Just remembered this issue - http://www.paulirish.com/2012/why-moving-elements-with-translate-is-better-than-posabs-topleft/ (search for "Pixel snapping").
Hence a suggestion for an option subpixel:true (the default), where nothing is changed at all.
When set to subpixel:false any translateX or translateY tweens are automatically clamped via Math.round() to make sure that the GPU draws on pixel borders and there's no "dubstep effect" :-P
Not sure how often it'd be used, but I've got at least one project that would look better with it (even if only to us OCD types lol).

I made a codepen illustrating this issue. In particular Firefox has some issues: http://codepen.io/MattyBalaam/details/eaJto/

thanks to matty's helpful pen, i see that it is indeed just an issue on ff. since ff on a shockingly steady path toward obscurity, i don't particularly care to code in a feature just for it.
having said this, if you can show me this issue occurring outside of the matty's ff example, @Rycochet, i'd love to see it and would absolutely consider implementing this at that time.

i really would love an example pen, etc. curious about this. feel free to keep chatting in here, will read


No sensors has been created

I have successfully added dylandoamaral trakt integration to my HA.
In his HACS documentation, it says 'the sensors may take a while to be created and populated.'
I left my HA PC on for about 4 hours and there are still no sensors showing up, I have also tried to restart the whole HA, and still nothing.

This is the code right from my configuration.yaml:

trakt_tv:   language: en # Prefered language for movie/show title   timezone: Asia/Tel_Aviv # Prefered timezone   sensors:     upcoming:       show:         days_to_fetch: 30         max_medias: 10       movie:         days_to_fetch: 45         max_medias: 5     recommendation:       show:         max_medias: 3       movie:         max_medias: 3
and yes I have data in my trakt account, using this website since 2017.
Thanks for helping!

Indeed, 4 hours are definitely more than enough normally. Do you have error logs coming from home assistant in your supervisor panel ?

Hi Dylan thanks for the quick reply!
Well, nothing unusual in my logs.

This is weird, did you try to delete the integration ?

This is weird, did you try to delete the integration ?

No, should I try?

Okay I have re-added the integration and still showing no entities.

The redirect URL I used was
https://my.home-assistant.io/redirect/oauth
and I haven't clicked on the 'Authorize' button.

Did you follow this part: https://github.com/dylandoamaral/trakt-integration#workaround ?

Did you follow this part: https://github.com/dylandoamaral/trakt-integration#workaround ?

Yes.

Honestly, I don't know how I can help you without any piece of information. Explain me exactly what you did in home assistant and in trakt. And how do you know that no sensors are generated ?

I just followed the link you sent.
When I put the card it says this entity doesn't exist, also on the integration page it's showing no entities on your integration (all the other ones).

After 24 hours the trakt thing in the integration page has been changed

Yep. I am getting this as well.

Ok thanks, at least I have something to start with !

+1 for this error. Popped up when I updated to 23.1.1 this morning.

Me too

Ok thanks, at least I have something to start with !

Error is now gone, I reinstalled the integration and still no entities showing up.
Note - I have created another API in trakt website
with Redirect URL
https://my.home-assistant.io/redirect/oauth

It still does not work with https://my.home-assistant.io/redirect/oauth redirection ? I tried in the current home assistant version and it worked well.

You did great.
Sorry if I am annoying with my questions and if I ask simple things that you already did. The fact is that I don't know why this is happening to you. Since I can't reproduce it myself, I can't help you that much.
Here are things that may help you (If you haven't tried yet):

Check your version of home assistant and upgrade it to the latest
Check in developer tools (in state) if there are no sensors starting with sensor.trakt
Remove the timezone temporarly to see if it causes issues

If nothing is working, then I hope someone else will allow us to make progress.
During this time you can look at https://github.com/custom-components/sensor.trakt maybe it will work for you.

You did great.
Sorry if I am annoying with my questions and if I ask simple things that you already did. The fact is that I don't know why this is happening to you. Since I can't reproduce it myself, I can't help you that much.
Here are things that may help you (If you haven't tried yet):

Check your version of home assistant and upgrade it to the latest
Check in developer tools (in state) if there are no sensors starting with sensor.trakt
Remove the timezone temporarly to see if it causes issues

If nothing is working, then I hope someone else will allow us to make progress.
During this time you can look at https://github.com/custom-components/sensor.trakt maybe it will work for you.

You are not annoying at all, and I appreciate your help!
This is the version I'm using currently

Developer tools -

Time zone - I couldn't remove it completely so I have tried Europe/Paris
When removed the line I got this error on the configuration.yaml file
Invalid config for [trakt_tv]: value must be one of ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Asmera',

Configuration.yaml:
trakt_tv:   language: en # Prefered language for movie/show title   timezone: Europe/Paris   sensors:     upcoming:       show:         days_to_fetch: 30         max_medias: 10       movie:         days_to_fetch: 45         max_medias: 5     recommendation:       show:         max_medias: 3       movie:         max_medias: 3

Honestly you did everything perfectly, I don't know how I can help you now...
@itzalgd24 or @echopage do you still have an error ?

Same problem here
OAuth problem solved by changing redirect uri to https://my.home-assistant.io/....

Success!
Successfully authenticated with Trakt.
Created configuration for Trakt.

Got only 1 default entity

Got working only 1 entity and 1 card
resources:
  - url: /local/custom-lovelace/upcoming-media-card/upcoming-media-card.js?v=0.1.1
    type: js
type: custom:upcoming-media-card
entity: sensor.trakt_upcoming_calendar
title: Upcoming Episodes
image_style: fanart
hide_empty: true
title_text: $title
line1_text: $episode
line2_text: $number
line3_text: $day, $date $time
line4_text: $empty
max: 10

My configuration.yaml
trakt_tv:
  language: en
  sensors:
    upcoming:
      show:
        days_to_fetch: 30
        max_medias: 10
      movie:
        days_to_fetch: 45
        max_medias: 5
    recommendation:
      show:
        max_medias: 3
      movie:
        max_medias: 3

Cant add upcoming for movies

There are five sensors available under the sensors > upcoming array:
show for TV Shows (actually, episodes). Creates sensor.trakt_upcoming_shows
new_show for New Shows (series premiers). Creates sensor.trakt_upcoming_new_shows

How did you manage to save the configuration.YAML without a timezone?
I copied your code to my configuration.YAML and i get the error:
`Configuration invalid!
Invalid config for [trakt_tv]: value must be one of ['Africa/Abidjan',`

Same problem here OAuth problem solved by changing redirect uri to https://my.home-assistant.io/....

Success!
Successfully authenticated with Trakt.
Created configuration for Trakt.
About this:

Same problem here
OAuth problem solved by changing redirect uri to https://my.home-assistant.io/....
Success!
Successfully authenticated with Trakt.
Created configuration for Trakt.
can you send me the full link you've entered in the trakt page of 'Redirect URI' ? also after it redirects you after adding the integration what is the link that shown below? Is your local or a cloud link? mind sending me that too? (you can censor the link a bit so I can understand what to put in there)

For the redirect URI, here is what worked for me in my dev environment: https://my.home-assistant.io/redirect/oauth

I sucessfully connected trakt no problem just saying workaroud solved problem
https://my.home-assistant.io/redirect/oauth/?code=d9f48XXXXXX&state=eyJhbGciOiXXXX.n_XXXXXX
And have no problem with saving configuration.yaml without timezone
But configured as you wanted and after restart nothing changed
trakt_tv:
  language: en
  timezone: Europe/Paris # Prefered timezone
  sensors:
    upcoming:
      show:
        days_to_fetch: 30
        max_medias: 10
      movie:
        days_to_fetch: 45
        max_medias: 5
    recommendation:
      show:
        max_medias: 3
      movie:
        max_medias: 3

Everything is working now ?

I never used something related to nabu.casa but it should be the same thing from (the redirect URI red square):

I never used something related to nabu.casa but it should be the same thing from (the redirect URI red square):

There is a diff between the Redirect URL in trakt (which I set to https://my.home-assistant.io/redirect/oauth)
then the 'Your instance URL' that shows in the next screen after putting in the ID and secret code
I wanna know what instance rzechu used and then clicked on Link Account because I think that might be my solution to this case.

Any ideas about missing (not added) sensors or upcoming-media-card configuration?
No info about movies only upcoming show

Got only 1 default entity (reinstalled trakt integration)

Got working only 1 entity and 1 card
resources:
  - url: /local/custom-lovelace/upcoming-media-card/upcoming-media-card.js?v=0.1.1
    type: js
type: custom:upcoming-media-card
entity: sensor.trakt_upcoming_calendar
title: Upcoming Episodes
image_style: fanart
hide_empty: true
title_text: $title
line1_text: $episode
line2_text: $number
line3_text: $day, $date $time
line4_text: $empty
max: 10

My configuration.yaml
trakt_tv:
  language: en
  timezone: Europe/Paris # Prefered timezone #added this but no difference
  sensors:
    upcoming:
      show:
        days_to_fetch: 30
        max_medias: 10
      movie:
        days_to_fetch: 45
        max_medias: 5
    recommendation:
      show:
        max_medias: 3
      movie:
        max_medias: 3

Cant add upcoming for movies and I dont see any other sensors even after restart ( show / movie / recommendation etc)

There are five sensors available under the sensors > upcoming array:
show for TV Shows (actually, episodes). Creates sensor.trakt_upcoming_shows
new_show for New Shows (series premiers). Creates sensor.trakt_upcoming_new_shows

There are two issues at the same time here, it is difficult to handle them both at the same time...

I tried a new release I am not very confident but maybe it will help.

I tried a new release I am not very confident but maybe it will help.

Where can I see that?

On home assistant, in HACS you should see the update.

On home assistant, in HACS you should see the update.

Uninstalled, updated via HACS, and reinstalled.

same issue.

Sorry for the delay... Same problem as Ofir-P, I redid the same procedure as Ofir-P with the difference that I'm not under Nabu-Casa, now it no longer gives me an oauth error but the result is the same, no sensor!


(QENG-3377) Add --version CLI flag

This commit adds a -v/--version CLI flag to print the version number.
This also refactors the flow-of-control to remove the need for the
SafeEarlyExit exception by moving all output-generating codepaths out of
the initialize method and into the execute method, and teasing apart the
--list and default generation codepaths. The execute method
now chooses the code path based on the CLI options set in initialize.
While we no longer throw a SafeEarlyExit exception, it's effectively
part of the API so we must wait until the appropriate time/release to
delete it. Existing usages of it should not be broken with the changes
in this commit.

@waynr I'd like to include these changes in the next release too.

:100: looks good to me!

👍


How can I detect dark/light theme in hbs files?

Hi there,
I have a dark and light version of my logo and I want to detect whether or not the site is in light or dark mode so I can render the correct logo in the hbs files. How would I do that?
Thanks!

This might help you: https://github.com/eddiesigner/liebling/issues/297

I'm closing this issue now, please feel free to reopen it if needed.


Dashrews/ROX-13101 analyze (WIP)

Description
Seeing if some post migration performance can be improved and post COPY operation performance can be improved with ANALYZE.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why
you did not do so. Valid reasons include, for example, "CI is sufficient",
"No testable changes". Feel free to attach JSON snippets, curl commands,
screenshots.
In addition to reviewing your code, reviewers must also review your testing
instructions and make sure they are sufficient.

Just some experiment.


implement path migration

Design:

We issue 4 CIDs and therefore support 4 paths.
conn->paths[0] is the path that will always exist, this path is always validation-complete and is the only path on which non-probing packet are sent.
paths[1] to paths[3] are backup paths.
When receiving a packet (regardless of it being probing or non-probing) from a new path, we pick the least-recently-used backup path and set its path to that of the new path, then start path validation.
When receiving a packet on one of the backup paths, we consult if we have received non-probing packets on that backup path and the path is validation-complete. If both conditions are met, this backup path is promoted to path[0].

Notes:

loss detection and congestion controller are not reset when migrating

Config knobs:

max_probe_packets - maximum number of probe packets to send before calling a path unreachable
max_path_validation_failures - once path validation fails for the specified number of times, packets arriving on new tuples will be dropped

Connection stats:

num_paths.created - number of paths created
num_paths.validated - number of paths that were validated
num_paths.validation_failed - number of paths that failed to validate
num_paths.migration_elicited - number of paths on which migration was elicited (i.e., non-probing packets were received)
num_paths.promoted - number of paths that were promoted (for sending data)
num_packets.sent_promoted_paths - number of packets sent on any promoted path
num_packets.ack_received_promoted_paths - number of packets being acked among ones that were sent on any promoted path

Re observation, the end-to-end metric for monitoring the success ratio of path migration is the number of connections on which acks were received on promoted paths divided by the number of connections on which migration was initiated; i.e., count(num_packets.ack_received_promoted_paths != 0) / count(num_paths.migration_elicited != 0).
To monitor the success ratio of path validation (which includes the establishment of backup paths in addition to immediate path migration), it would make sense to observe the num_paths.validated / num_paths.created.

ToDo:

[ ] Add test case that involves path migration failures; e.g., set max_path_validation_failures to zero?
[ ] Consider CC behavior upon migration.

As to the second point, when a server receives a HTTP/3 request after quiescence with NAT rebinding involved, the server will send a HTTP/3 response to the old address while sending a probe to the new address. As the client has migrated to the new address, the packet carrying HTTP/3 response gets lost. This would be the most popular pattern of path migration and we are going to see negative effect on HTTP/3 throughput, unless we need to do something.
Regarding what to do, for CC, one way of moving forward would be to reset whenever the path is migrated, potentially adopting the send rate on the old path as the jumpstart rate on the new path. Also, we might look into flushing the sentmap of the old path immediately when the new path is validated. Doing so allows the retransmission logic to kick in at an earlier moment.


Node attribute viewer and improvements to GraphToolbar

Adds NodeViewer component to View a node's attributes by double clicking a node
Adds control to GraphToolbar to hide edge labels
Adds control to GraphToolbar to change the graph layout
Fixes issue where edge labels were not being rendered

The example is also broken - I think it might just be a missing set of layouts for the toolbar, but haven't really looked into it.
If it is something like that - probably want to put an empty array default, and handle cases where if there's only one layout then we don't need the options etc.


update LICENSE

Resolves https://github.com/keptn/keptn/issues/2725
Signed-off-by: jetzlstorfer<EMAIL_ADDRESS>

I've updated it. Please take another look @christian-kreuzberger-dtx


Add "Copy Treasury Address" on Treasury Page

On treasury page, it would be nice if you could quickly copy the treasury address to send assets to it.

Pending design feedback https://discord.com/channels/839548879216181309/958758626003148830/1060970111265144892

We have design for this already

Figma designs ready for this


Blue-ish theme after install

Describe the bug
After install successfully installing nvim from scratch, I added this lua config file and ran PackerInstall via nvim. The installation seems to succeed but the color scheme looks super off. I have made no changed from the init.lua (version from commit 521940693e10eee57f4e67dce960d2229c1441d3 ) .
The background is blue and this does not look like the onedark theme. 🙂
This is a fresh installation on nvim on a mac machine (sw_vers -productVersion gives macos 13.0.1.
I know this is very little information, so if you need anything or have any idea of useful information that I could provide to find the issue / bug I am happy to do so.
Have a look at the screenshot:

To Reproduce
Steps to reproduce the behavior:

Run on mac 13.0.1 with the default Terminal app.
Fresh install of nvim
Create init.lua
Run PackerInstall
Close and re-open neovim

Desktop (please complete the following information):

OS: MacOS 13.0.1
Terminal: Default macos terminal

** Neovim Version **

Output of running :version from inside of neovim:

:version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Ventura

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.8.1/share/nvim"

Run :checkhealth for more info

Other than that: Cool tool, I always searched for a nice way installing quickly a vim version with good defaults that go beyond the default editor :) !! Nice work!

Duplicate of https://github.com/nvim-lua/kickstart.nvim/issues/68

@fabianschwarzfritz I had the same issue and solved it by commenting color properties.
-- Set colorscheme
--vim.o.termguicolors = true                       -> (will remove the green highlight)
--vim.cmd [[colorscheme onedark]]                  -> (will remove the blue background)

Duplicate of #68

Thanks for the updates and hints and sorry for the duplicate!

No prob :)


fix grunt fail on exec node test

[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)

Proposed changes

Grunt test sometimes fail on exec node test case.
This is because the output of the exec node may be split into multiple messages.
This PR try to fix this issue.
Checklist

[x] I have read the contribution guidelines
[ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
[x] I have run grunt to verify the unit tests pass
[ ] I have added suitable unit tests to cover the new/changed functionality

Coverage remained the same at 67.37% when pulling 70433f3d0597212e61d69982bb4833723f329af0 on node-red-hitachi:fix-grunt-error-on-exec-node into 0e02d03d9a87aa2fb47f7dd8623ce037b2199271 on node-red:master.

Strange - I don't think I have ever seen this test fail in the way you describe.
Out of interest, what operating system do you see this failure on?

Hi. Thank you for merging the PR.
My environment is:

mscOS 11.2.3
Node 12.18.3

On this environment, following simplified test case rarely produces "this", "now works" instead of "this now works".
var spawn = require('child_process').spawn;

const child = spawn("echo", ["this", "now", "works"]);
child.stdout.on("data", function (data) {
    console.log(data.toString());
});


[Feature Request] "Go to function" functionality

First of all I would like to thank you very much for this package. With each update it's more and more usable. Great work! Now lets go to the point :)
I'm a noob atom user (usually trying once per couple weeks to see how much improvements is made in language-gdscript packpacge :)) Is there any way to have list with al the function in opened scripts? If I'm correct normally in Atom it's done via symbols (ctrl+r short-cut).
As far as I see no symbols are generated currently by default.. was trying to use https://atom.io/packages/symbol-gen package with addition of simple regex to generate symbols for every function in the project... but in the end I was not able to generate them.
Once more thanks a lot!

Yo! Try using the goto package for symbols based on the language grammar. It works okay as is, but it seems to grab all functions. That's an issue with the grammar, I'll look into it and see what should be changed.

Okay, fixed the grammar thing with goto package and published to apm. It generates symbols like a charm :smiley:

@IndicaInkwell Thanks a lot, It's working very nice! I think you should mention in package description that it supports goto package (it's always good to know what else we can install to have the best functionality - and also for Atom noobs like me that don't even know these packages exists) :)


Lazy Loading

Hello, I would like to include the component only in a lazy loaded module within my application, and would rather not call .forRoot in my AppModule. Is this possible?

Of course using forRoot is not needed, its there just to allow easy providing of the global configuration. So its always possible to use the module without it and if you still want global configuration you can provide it by standard Angular means.


Is inline colouring possible?

Lets say I wanted to emphasis or colourize mid part of the sentence.
[default black]This is an example[now red]of inline colouring[now black]within the same sentence in a PDF document.
I'm asking since you're supposed to position manually just like how it is with postscript (and in turn, PDF) creation, I feel it would be a pain to manually place multiple strings on the same line.

Hey. Yes, that would be a good feature. The absolute positioning makes that pretty tricky at the moment, so it would be better to be done automatically under the hood. It would require some kind of markdown-like parser, which might be a bit involved. Is there a simple syntax that already exists that might suit (to cover things like underline, strike through, colour etc...)?
Right now there isn't a trivial answer - you'd have to break it up yourself externally and then build each element separately with absolute positioning. Possible, but awkward.

to fix your trouble check this solution click
maybe this will solve your problem.


[Notification] Failing the sending process if one channel failed

There is no error handling in each channels or here.: https://github.com/laravel/framework/blob/10.x/src/Illuminate/Notifications/NotificationSender.php#L104
If you have multiple channel, like mail, fcm and the first one (mail) failing (For example mailing issue) the other channels (on this example only one, the fcm) will not be fired, so every notification will lost.
If I extend the MailChannel and override the send() method with try catch block, the problem is solved, but the NotificationSent event fired. So this is solved the problem, because i want to get NotificationFailed event.

Feel free to send a PR

We'd appreciate a PR, thanks.


Failing Kubernetes Tests [bug]

CI Test "Kubernetes Tests" fails currently, possibly flaky

I see:
Can't find any online and idle self-hosted runner in the current repository, account/organization that matches the required labels: 'self-hosted'
Waiting for a self-hosted runner to pickup this job...

Looks like a problem with CI Run. Let's look at AWS and see if that fixes it anyway.

Seems to be resolved, closing


all: unset strips line breaks from

I noticed code blocks using <pre> were missing line breaks. The problem seems to stem from this line:
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

If I disable all: unset in devtools, line breaks return to <pre>.  But for the life of me, I can't seem to figure out which CSS property it unsets to remove line breaks so I can add them back.
Here's an example with all: unset and while its disabled:

Thanks.

It might be the CSS white-space property.
See https://developer.mozilla.org/en-US/docs/Web/CSS/white-space.

Added fix in the new version (1.8.0) revert for  and  element