Docs example code refactor

Test using :start-after: and :end-before:

@joschi I tested refactoring the examples with the start-after and end-before directives in https://github.com/dropwizard/dropwizard/pull/5023/commits/39d61ddf7b70d54585fb7e4779fc69f27dba45b4. So far, this looks quite feasible. What do you think about this?


TransportationMode refactoring

Should avoid new methods to FlagEncoder like in #2159

Have removed TransportationMode.MOTOR_VEHICLE as we should include only concrete transportation modes in the enum. Furthermore we still have the method isMotorVehicle of the enum.


Why does the transcription speed significantly decrease when the WhisperModel instance is wrapped inside a class attribute?

Environment: Windows 10, Python 3.10, torch==2.1.2+cu121
In the following code, theoretically, the instances of a and b have exactly the same functionality. However, in the instance of a, the WhisperModel exists as a class attribute. But in actual testing, the execution speed of the two methods differs by more than 10 times. Why?
import time

from faster_whisper import WhisperModel

class Whisper:
    def __init__(self, model="whisper-medium"):
        # Run on GPU with FP16
        self.model = WhisperModel(model, device="cuda", compute_type="float16")

    def get_text(self, audio_path):
        segments, info = self.model.transcribe(audio_path, vad_filter=True)
        return "".join([segment.text for segment in segments])

model = r".\model\whisper-medium"
audio_path = r".\test.wav"
a = Whisper(model)
b = WhisperModel(model, device="cuda", compute_type="float16")

now = time.time()
b.transcribe(audio_path, vad_filter=True)
print(time.time() - now)

now = time.time()
a.get_text(audio_path)
print(time.time() - now)

Try to reverse the order i.e. measure first a.get_text() and then b.transcribe(). My guess is that the second computation will always be faster due to low level GPU caches.

Try to reverse the order i.e. measure first a.get_text() and then b.transcribe(). My guess is that the second computation will always be faster due to low level GPU caches.

It didn't work, the phenomenon is still the same after changing the order. For a 2-hour audio, using method b only takes 49 seconds, while using method a takes 831 seconds.

this is not transcription
now = time.time()
b.transcribe(audio_path, vad_filter=True)
print(time.time() - now)

this is the correct transcription:
now = time.time()
"".join(segment.text for segment in b.transcribe(audio_path, vad_filter=True)[0])
print(time.time() - now)

transcription is done in a lazily manner, please check the readme


Address security vulnerability alerts

Please review this list of detected vulnerabilities and address as many as possible during this time on PASS this week and next week.
https://github.com/OA-PASS/pass-ember/network/alerts

Please keep in mind that jQuery version 3.4.0 and 3.4.1 will break Alpaca. A fix for the bug causing this may make it into jQuery 3.4.2, but this version is not released yet and has no ETA

Must also update the ember-fedora-adapter for security issues at the same time.


Add a beta section for Workers

Might be worth adding in PubSub?

Might be worth adding in PubSub?
Edit: nevermind, that's not strictly apart of Workers.

Added Pub/Sub since you're right, it's related! Pub/Sub Workers is one of the roadmap priorities.


Minimal scrollbar + README.md update

Implements a minimal scrollbar and removes README note about previously missing one.

Nice! Thank you!

 Glad to contribute


Redirect when trying to delete an item that has already been deleted

Prevent candidate from accessing the confirm and delete pages for qualifications, degrees and experiences that have already been deleted. This can happen by double clicking on the delete button or by accesign the URL directly.
Fixes https://dfe-teacher-services.sentry.io/issues/4410427119/
Thought about adding a system spec for it, but not sure it's worth it.

 Error when trying to delete a degree that doesn't exist anymore.


Exception : You are trying to load a weight file containing System.String[] layers into a model with x layers

As a model is not threadsafe, I'm trying to clone an existing model to use each clones in separate threads. I'm using save_weights + load_weights to recreate the clone (note that if you have another way to do it without using files, I'm in)
While loading the clone with load_weights I have the exception.
tensorflow.net 0.40.1
tensorflow.keras 0.5.1
scisharp.tensorflow.redist-windows-gpu 2.5.0
I reduced the problem to this unit test:
`
    public Functional BuildModel()
    {
        var inputs = keras.Input(shape: 2);

        // 1st dense layer
        var DenseLayer = keras.layers.Dense(1, activation: keras.activations.Sigmoid);
        var outputs = DenseLayer.Apply(inputs);

        // build keras model
        Functional model = keras.Model(inputs, outputs, name: Guid.NewGuid().ToString());
        // show model summary
        model.summary();

        // compile keras model into tensorflow's static graph
        model.compile(loss: keras.losses.MeanSquaredError(name: Guid.NewGuid().ToString()),
            optimizer: keras.optimizers.Adam(name: Guid.NewGuid().ToString()),
            metrics: new[] { "accuracy" });
        return model;
    }

    [Fact]
    public void Test1()
    {
        //Arrange
        string savefile = "mymodel.h5";
        var model1 = BuildModel();
        model1.save_weights(savefile);
        var model2 = BuildModel();

        //act
        model1.load_weights(savefile); //works
        model2.load_weights(savefile); //Exception : You are trying to load a weight file containing System.String[] layers into a model with 1 layers.

    }

    [Fact]
    public void Test2()
    {
        //Arrange
        string savefile = "mymodel2.h5";
        var model1 = BuildModel();
        model1.save_weights(savefile);
        model1 = BuildModel(); //recreate model

        //act
        model1.load_weights(savefile); //Exception : You are trying to load a weight file containing System.String[] layers into a model with 1 layers.

    }

`

Just tested with
tensorflow.net 0.60.5
tensorflow.keras 0.6.5
scisharp.tensorflow.redist-windows-gpu 2.6.0
same result

@CrimyTheBold
You can try to reset context before building a new model:
using static Tensorflow.Binding;

tf.Context.reset_context();
var model1 = BuildModel();
model1.load_weights(savefile);


Exception from: run Usecols do not match columns, columns expected but not found: ['TITLE', 'SKU', 'UPC', 'BRAND']

Created and uploaded a csv with exactly columns below
BRAND | SKU | UPC | TITLE
but getting error "Exception from: run Usecols do not match columns, columns expected but not found: ['TITLE', 'SKU', 'UPC', 'BRAND']"
Any idea?

@mehran-01 I am very much sorry to reply to you very late, this is self explanatory, column names are expected in exact format and order -> ['TITLE', 'SKU', 'UPC', 'BRAND']. That means you should put Title in the first column then SKU and so are the others.


reinstall-packages not working

I'm on Mac OS 10.11.3. I was using node 4.1.2 for a long time, and now I've installed 5.6.0 and tried to copy 4.1.2's global packages over:
$ nvm use 5.6.0
$ nvm reinstall-packages 4.1.2

This outputs:
VERSION=''
Reinstalling global packages from v4.1.2...
Linking global packages from v4.1.2...

But it didn't actually copy the packages over. Did I do something wrong here?

@ffxsam if you do nvm use 4.1.2 && npm ls -g --depth=0 what prints out?

Now using node v4.1.2 (npm v3.3.9)

That's it, nothing else.

If npm ls -g doesn't print anything out, that implies that you have no global modules installed - which is bonkers, because npm is one too. What about which nvm and nvm debug?

The output of which nvm.. you don't wanna see. ;) It's pages and pages of script.
Output of nvm debug:
nvm --version: v0.30.1
$SHELL: /bin/zsh
$HOME: /Users/samh
$NVM_DIR: '$HOME/.nvm'
$PREFIX: ''
$NPM_CONFIG_PREFIX: ''
nvm current: v4.1.2
which node: $NVM_DIR/versions/node/v4.1.2/bin/node
which iojs: iojs not found
which npm: $NVM_DIR/versions/node/v4.1.2/bin/npm
npm config get prefix: $NVM_DIR/versions/node/v4.1.2
npm root -g: $NVM_DIR/versions/node/v4.1.2/lib/node_modules

OK, all of that looks fine - are you on stock zsh, or oh-my-zsh? The latter sets up tons of zsh opts that often break nvm.
What does your ~/.npmrc contain (not counting any auth token or credentials, of course)?

Yes, I'm indeed using oh-my-zsh.
~/.npmrc contents:
;;;;
; npm userconfig file
; this is a simple ini-formatted file
; lines that start with semi-colons are comments.
; read `npm help config` for help on the various options
;;;;

//registry.npmjs.org/:_authToken=b19b4ab7-dbc0-4048-876e-97e4854ae479

;;;;
; all options with default values
;;;;
; access=null
; always-auth=false
; also=null
; bin-links=true
; browser=null
; ca=null
; cafile=undefined
; cache=/Users/samh/.npm
; cache-lock-stale=60000
; cache-lock-retries=10
; cache-lock-wait=10000
; cache-max=null
; cache-min=10
; cert=null
; color=true
; depth=null
; description=true
; dev=false
; dry-run=false
; editor=/usr/bin/vim
; engine-strict=false
; force=false
; fetch-retries=2
; fetch-retry-factor=10
; fetch-retry-mintimeout=10000
; fetch-retry-maxtimeout=60000
; git=git
; git-tag-version=true
; global=false
; globalconfig=/Users/samh/.nvm/versions/node/v4.1.2/etc/npmrc
; group=20
; heading=npm
; if-present=false
; ignore-scripts=false
; init-module=/Users/samh/.npm-init.js
; init-author-name=
; init-author-email=
; init-author-url=
; init-version=1.0.0
; init-license=ISC
; json=false
; key=null
; link=false
; local-address=undefined
; loglevel=warn
; long=false
; message=%s
; node-version=4.1.2
; npat=false
; onload-script=null
; only=null
; optional=true
; parseable=false
; prefix=/Users/samh/.nvm/versions/node/v4.1.2
; production=false
; progress=true
; proprietary-attribs=true
; proxy=null
; https-proxy=null
; user-agent=npm/{npm-version} node/{node-version} {platform} {arch}
; rebuild-bundle=true
; registry=https://registry.npmjs.org/
; rollback=true
; save=false
; save-bundle=false
; save-dev=false
; save-exact=false
; save-optional=false
; save-prefix=^
; scope=
; searchopts=
; searchexclude=null
; searchsort=name
; shell=/bin/zsh
; shrinkwrap=true
; sign-git-tag=false
; strict-ssl=true
; tag=latest
; tag-version-prefix=v
; tmp=/var/folders/4x/79wsxmj16xbbh7p14k72l_2m0000gn/T
; unicode=true
; unsafe-perm=true
; usage=false
; user=501
; userconfig=/Users/samh/.npmrc
; umask=18
; version=false
; versions=false
; viewer=man
; _exit=true
; globalignorefile=/Users/samh/.nvm/versions/node/v4.1.2/etc/npmignore

@ffxsam note i said "not counting auth token" :-/ you'll want to npm logout and npm login again ASAP, otherwise anyone who's received an email notification of this can take over your npm account.
npm ls -g --depth=0 should print out all your globally installed modules, which should at least contain npm - if it doesn't, even due to oh-my-zsh options, then I'd file that as an npm bug.

Oops, I totally missed the auth token. Sorry. Reauthenticated.
Something was wrong with my 4.1.2 install. Even if I switched to 4.1.2 and installed something globally, npm ls -g --depth=0 would not display it. I don't have this problem in 5.6.0. As a test, I uninstalled 4.1.2, installed 4.3.0, and did reinstall-packages 5.6.0 and it works fine, everything is installed in 4.3.0.
I'll just close this and write it off as a fluke.

Sounds good - if it happens more frequently, let me know!

@ljharb BTW, I found the problem (I ran into it again). Turns out, when you've run npm link <lib> to link local packages, reinstall-packages will not work because of those symlinks. Once I remove the symlinks in the lib/node_modules folder, nvm reinstall-packages works as expected.

@ffxsam what does nvm --version print out? The latest version of nvm absolutely should support globally symlinked modules.

0.31.0.

@ffxsam when you have the symlinks present and that version of node active, can you share the following outputs:

nvm debug
npm version
npm ls -g --depth=0
nvm_npm_global_modules "$(nvm current)"

Thanks!

I am on 0.32.1 and this is currently occurring for me. Thought I was going nuts

@myspivey can you file a new issue describing the problem? I think I know how to fix this class of bugs now :-)


500 returned from test proxy when content is an empty gzip payload

A bug in a Java SDK where we were incorrectly sending a payload that was effectively a zero byte array which had been GZipped resulted in a 500 return from record/stop. This program reproduces it:
using System.IO.Compression;
using System.Net.Http.Headers;

var ms = new MemoryStream();
var gz = new GZipStream(ms, CompressionMode.Compress);
byte[] zeroString = new byte[0];
gz.Write(zeroString, 0, zeroString.Length);
gz.Flush();
var client = new HttpClient();
client.Timeout = TimeSpan.FromMinutes(10);
var req = new HttpRequestMessage(HttpMethod.Post, "http://localhost:5000/record/start");
req.Content = new StringContent("{\"x-recording-file\": \"record-file\"}");
var resp = client.Send(req);
resp.Headers.TryGetValues("x-recording-id", out var id);
var recordId = id.First();
req = new HttpRequestMessage(HttpMethod.Post, "http://localhost:5000/Admin/AddSanitizer");
req.Content = new StringContent("{ \"value\":\"REDACTED\",\"jsonPath\":\"$..authHeader\"}", new MediaTypeHeaderValue("application/json"));
req.Headers.Add("x-abstraction-identifier", "BodyKeySanitizer");
req.Headers.Add("x-recording-id", recordId);
resp = client.Send(req);
req = new HttpRequestMessage(HttpMethod.Post, "http://localhost:5000/");
req.Content = new ByteArrayContent(ms.ToArray());
req.Content.Headers.Add("Content-Encoding", "gzip");
req.Content.Headers.Add("Content-Type", "application/json");
req.Headers.Add("x-recording-upstream-base-uri", "http://example.com");
req.Headers.Add("x-recording-id", recordId);
req.Headers.Add("x-recording-mode", "record");

resp = client.Send(req);
req = new HttpRequestMessage(HttpMethod.Post, "http://localhost:5000/record/stop");
req.Headers.Add("x-recording-id", recordId);
req.Content = new StringContent("{}", new MediaTypeHeaderValue("application/json"));
resp = client.Send(req);

@billwert thank you so much for the easy repro.


Switch to a modified app icon

Codecov Report

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

@@            Coverage Diff            @@
##             master     #142   +/-   ##
=========================================
  Coverage     43.69%   43.69%
  Complexity       12       12
=========================================
  Files            16       16
  Lines           444      444
  Branches         76       76
=========================================
  Hits            194      194
  Misses          239      239
  Partials         11       11

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 e6eed34...a3e628c. Read the comment docs.


Typo Error in README File

I noticed a minor typo error in the README file of the project.
There is spelling mistake in README file about the code of conduct link.

@Akshat111111 Assign me this issue I can resolve this.

Okay correct it


Add shooter state machine

until we have the localiser online, I recommend also initialising its position to Pose2d(13.597, 5.547, 0) for testing. this pose corresponds to 3m in front of the goal we have marked in the rose street building and enables us to debug the logic of this pr without needing the full localiser.

Closes #22


Added longhorn via fleet

Until https://github.com/rancher/fleet/issues/1507 is released, it won't work

For the UI https://k3s.rocks/basic-auth/ it would be nice to expose it with user authentication.
Also, I'm looking for a way to be able to customize the ingress host...

For the UI https://k3s.rocks/basic-auth/ it would be nice to expose it with user authentication. Also, I'm looking for a way to be able to customize the ingress host...

done


healtheck on custom ports in host mode doesn't work

The doc says:

For MESOS_HTTP, MESOS_HTTPS, MESOS_TCP, TCP, HTTP and HTTPS health checks, either port or portIndex may be used. If none is provided, portIndex is assumed. If port is provided, it takes precedence overriding any portIndex option.

However it fails to deploy when only port is specified, and not portIndex:
"Health check port indices must address an element of the ports array or container port mappings."

It works if I set portIndex: 0 and then override it with port: X, but that's likely not expected behaviour.

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-1717. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


VS Code: After installing .net 7.0, open a mvc6.0 project and encounter a warning: "Dereference of a possibly null reference."

REPRO CONFIGURATION: Win 10 x64 ENU 20h2 + Dev17.2 Preview 1 + SDK 7.0.100-preview.1.22110.4
INSTALL STEPS:

Clean machine: Win 10 x64 ENU 20h2
Install Dev17.2 Preview 1 from: https://aka.ms/vs/17/pre/candidate/vs_Enterprise.exe
Install the sdk 7.0.100-preview.1.22110.4 from: https://dev.azure.com/dnceng/internal/_build/results?buildId=1605354&view=artifacts&pathAsName=false&type=publishedArtifacts
Install VS Code from: https://code.visualstudio.com/Download
Install C# Extensions version: v1.24.0.vsix from: https://github.com/OmniSharp/omnisharp-vscode/releases

Testcases Affected
SimpleWebAppRazorEditingWithVSCode -- mvc 6.0
Platform

[x] Windows
[ ] macOS
[x] Linux

Repro Steps

Open a normal Terminal Emulator
Create mvc project and open it using VS code

  md mvc
  cd mvc
  dotnet new mvc -f net6.0
  code .

Go to https://github.com/OmniSharp/omnisharp-vscode/releases > Download the csharp-1.24.0.vsix.
In VS Code and go to the Extensions Tab, select "Install from VSIX" > install the file you downloaded.
Navigation to the problems window will encounter a warning: "Dereference of a possibly null reference."

Note:

This issue only reproduce when you create a MVC6.0 project.
This issue only reproduce after .NET 7.0 is installed.

Actual Result

Expected Result

I will close this bug and reopen a new bug #40282 in dotnet/aspnetcore repo.


chore: use cargo xtask for bacon clippy command

LGTM, we can merge this without the unrelated formatting changes though

I just let the formatter plugin do its thing here and don't try to fight it / configure it. Source code definitely matters, config I don't think does (at least this config). I'm not aware of a cross-IDE/editor config / plugin for choosing wrapping options for TOML. So I think the best approach is a just to accept this as-is - does that work for you?
I suspect this change was caused by some tweak in the wrapping threshold of the plugin, or something similar.

Yeah that sounds fair. Maybe we should look into taplo for more uniform formatting across TOML files in the repo.

https://github.com/ratatui/ratatui/pull/1602


mqbroker: 48: [[: not found

The issue tracker is used for bug reporting purposes ONLY whereas feature request needs to follow the RIP process. To avoid unnecessary duplication, please check whether there is a previous issue before filing a new one.
It is recommended to start a discussion thread in the mailing lists in cases of discussing your deployment plan, API clarification, and other non-bug-reporting issues.
We welcome any friendly suggestions, bug fixes, collaboration, and other improvements.
Please ensure that your bug report is clear and self-contained. Otherwise, it would take additional rounds of communication, thus more time, to understand the problem itself.
Generally, fixing an issue goes through the following steps:

Understand the issue reported;
Reproduce the unexpected behavior locally;
Perform root cause analysis to identify the underlying problem;
Create test cases to cover the identified problem;
Work out a solution to rectify the behavior and make the newly created test cases pass;
Make a pull request and go through peer review;

As a result, it would be very helpful yet challenging if you could provide an isolated project reproducing your reported issue. Anyway, please ensure your issue report is informative enough for the community to pick up. At a minimum, include the following hints:
BUG REPORT

Please describe the issue you observed:

What did you do (The steps to reproduce)?

sh -c "${ROCKETMQ_HOME}/bin/broker -c ${ROCKETMQ_HOME}/conf/broker.conf"

What is expected to see?
start broker
What did you see instead?

mqbroker: 48: [[: not found

Please tell us about your environment:
ubuntu 20.04 rocketmq-all-5.0.0-bin-release.zip
Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

bin/broker has a #!/bin/sh shebang but use [[ in line 48 "while [[ $# -gt 0 ]]; do"

@dyrnq IIRC, the bug has been fixed in this PR.

Close as duplicated


lazySizes.loader.checkElems()

undefined lazySizes.loader.checkElems() on invoking with shuffle.js
I have access to lazySizes.loader prototypes unveil and checkElems when I'm making console.log in:
// Filter elements
this.shuffle.filter(this._activeFilters);
setTimeout(function() { // check lazySizes
console.log(lazySizes.loader);
}, 2000);
As I understand you don't need to pass any DOM to checkElems. Whats wrong in this case as lazySizes and shuffle.js works fine except refreshing on filtering ?

No you don't. But I think you don't even need to call checkElems.

Unfortunately with or without it is not detecting that images are visible. I'm planning after filtering get all .shuffle-item--visible and loop them with lazySizes.loader.unveil(DOMNode) but this is not a good idea to mix jquery, shuffle and lazysizes. I'm trying to avoid it as possible. jQuery too. I can pass some code and playground if it needed but on priv msg if possible.

Hm.. i dont know why.. but i see that local VM works differently comparing to staging version. On staging it works fine.

@aFarkas as You said your plugin works like a charm and detecting changing layout from shuffle.js
However it's seems that 'data-expand="-30"' and shuffle.js dont like each.
When you use data-expand some images are not loading. Why, hard to say as there is no error.
If I will have more time I will try to look into code deeper and send more details. For a now say to guys to not use data-expand with shuffle.js if they will have some 'loading image' problems.
Cheers Mate
Cheers Mate

update:
removing data-expand didnt fix issue on mobiles.
I've added src="dummy.jpg" and works fine now


Suspicious state fromsyntax checker go-vet

So I have been having this issue when I was working with go.

I have recently formatted my laptop. Perhaps this is not related to Doom but could any one with similar experience point me to the direction where I could have a clue of what's going on?
I have installed goimports, guru and all relative packages for emacs. Seems that I still cannot get the auto pop imports working, together with format before saving.

Hi @andyafter,
You are using go v1.12, aren't you?
The issue is that go v1.12 has completely deprecated go tool vet in favor of go vet and the flycheck package has not been updated accordingly yet. See here:

https://github.com/flycheck/flycheck/issues/1523
https://github.com/flycheck/flycheck/pull/1548

Until flycheck is updated, stay on go v1.11, or if that's not possible use one of the workarounds suggested in the first link above.

Thanks @ccressent, just want to make sure, the goimports package is working fine, but it is not automatically correcting all the imports when I'm saving. Is this also related to go-vet update?

Not as far as I'm aware; it's probably something different.
Are you sure the goimports binary is in your path (the path seen by Emacs that is; use M-x getenv to find out)?

This is now fixed in flycheck/flycheck#1548. It does require a doom user to run doom update to update packages however.

I had the same issue in regular Emacs. The same procedure(updating packages) resolved it. Thank you. :)


Ability to report external impacted files

Leveraging a version control system which manages repositories per application like git causes the question which external applications are impacted by a given change.
When all applications are built through DBB and store its dependency metadata in the DBB collections, the build framework can query these external collections to report impacted files within these other collections.
This will help to coordinate between application teams.

Implemented via #128


turndown not escaping links properly

I noticed this scenario and think it would be useful for others if turndown would handle this better.
Background:
( and ) are valid characters in a URL, and won't get escaped in normal HTML.
In markdown, links are surrounded by ( and ), if your link needs to have ( and ) you will need to escape them with \
For this input html:
link

A valid markdown should be:
[link](https://google.com\(1\).jpg)

However turndown returns:
[link](https://google.com(1).jpg)

I'm now pre-fixing image and links in my html prior to calling the turndown service, but I really think this should be handled in the parser.
When you do, be sure not to double-escape URLs if there were already escaped (meaning, if the URL has "(1).jpg" there is no need to double-escape it.

Good catch. Btw. according to the spec it seems that parentheses does not have to be escaped as long as they are balanced. So in your example you should be fine.
I don't understand your last comment about "double-escaping URLs". Can you elaborate a bit more?

Yeah, sure.
If someone (like me lol) loads an html:
link

But, protected it before calling turndown, due to this issue:
link

See that the parentheses were already escaped and leave them be.
FYI - I tried 2 markdown editors, they both automatically escape links that have (1).
You are right, they can load a markdown file that have (1) in a link - but they escape it as soon as its loaded, and if I save the file they will save it escaped.

link

I see. But that would be invalid URL in the HTML input. I don't think this library should take something like that into account.
I think we should add "aggressive" parenthesis escaping (i.e. don't bother checking if the parenthesis are balanced, simply escape them every time). Such behavior is in line with https://github.com/mixmark-io/turndown?tab=readme-ov-file#escaping-markdown-characters.
Such change might be quite simple - adding test case to [test/index.html](https://github.com/mixmark-io/turndown/blob/master/test/index.html and adding replace to commonmark-rules.js#.

link

I see. But that would be invalid URL in the HTML input. I don't think this library should take something like that into account.
I think we should add "aggressive" parenthesis escaping (i.e. don't bother checking if the parenthesis are balanced, simply escape them every time). Such behavior is in line with https://github.com/mixmark-io/turndown?tab=readme-ov-file#escaping-markdown-characters.
Such change might be quite simple - adding test case to [test/index.html](https://github.com/mixmark-io/turndown/blob/master/test/index.html and adding replace to commonmark-rules.js#.

Yeah, totally agree!
thanks.

I finally got around to verify this issue, however it was fixed for links but not for images.
this html:

produces this markdown:
![](https://google.com/file 1).jpg)

In this example I used an unbalanced bracket, as per earlier comments. I can confirm the fix for links handles both balanced and unbalanced brackets, which would be my preferred fix.


FILTER clause in SELECT clause

In SQL we can add a FILTER clause to an aggregate SELECT clause, i.e.
SELECT [item], SUM([price]) AS [total], SUM([price]) FILTER ( WHERE [date] >= '2021-01-01' ) AS [sales2020]
FROM [orders]
GROUP BY [item]

It would be a huge help if SqlKata can support passing WHERE clauses with their bindings to a SELECT clause.

WhereRaw? Can you not do it with that?

WhereRaw works on the overall query level, I am referring to the FILTER clause available on aggregate expressions postgres docs

Support added will be available in the next release


Improve how we handle refresh in blocks cache

There is one thing that can be improved - now we have a fixed refresh interval, but it should be calculated based on getStatus() -> last_added_block_info.timestamp.
So if the timestamp is eg. 2023-01-05T13:47:41.952Z we should refresh our data in
2023-01-05T13:47:41.952Z + PEERS_UPDATE_INTERVAL, so when it's set to eg 40s we know when revalidate the cache. The timestamp should be taken into consideration after every refresh.
Please do the same that was described above, but for blocks. So treat timestamp as a source of truth and calculate when approx. new block will be emitted.

@gyroflaw please estimate when you'll have free time

Hi @gyroflaw , in terms of peers I think we will need to re-discuss this.
But you can use the same rule for the blocks, shouldn't be a problem, right?

@RitaMAllenCA this is middleware ticket

moved to new repo


Try to apply 'auto-service' library

Check if auto-service can be simply added
Use it in case of the positive result

It's Apache License 2.0, so, it's necessary to list it as a dependency but the functionality is not that huge, hence, it's easier just not to use it


gradle flywayMigrate failing on missing postgresql Copymanager - 5.2.4

Which version and edition of Flyway are you using?
flyway plugin 5.2.4 community edition
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
this has worked perfectly in a maven POM version for years - there is nothing wrong with the SQL.
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
gradle plugin 5.2.4
Which database are you using (type & version)?
postgres 10
Which operating system are you using?
windows
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
gradle  -v

------------------------------------------------------------
Gradle 5.3.1
------------------------------------------------------------

Build time:   2019-03-28 09:09:23 UTC
Revision:     f2fae6ba563cfb772c8bc35d31e43c59a5b620c3

Kotlin:       1.3.21
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM:          11.0.1 (Oracle Corporation 11.0.1+13)
OS:           Windows 10 10.0 amd64

build.gradle:

plugins {
    id "org.springframework.boot" version "2.1.4.RELEASE"
    id "java"
    id "war"
    id "idea"
    id "io.spring.dependency-management" version "1.0.7.RELEASE"
    id "org.flywaydb.flyway" version "5.2.4"
}

dependencies {
    implementation "org.springframework.boot:spring-boot-starter-actuator"
    implementation "org.springframework.boot:spring-boot-starter-aop"
    implementation "org.springframework.boot:spring-boot-starter-cache"
    implementation "org.springframework.boot:spring-boot-starter-data-jpa"
    implementation "org.springframework.boot:spring-boot-starter-data-solr"
    implementation "org.springframework.boot:spring-boot-starter-freemarker"
    implementation "org.springframework.boot:spring-boot-starter-mail"
    implementation "org.springframework.boot:spring-boot-starter-security"
    implementation "org.springframework.boot:spring-boot-starter-validation"
    implementation "org.springframework.boot:spring-boot-starter-web"
    implementation "org.springframework.session:spring-session-core"

    implementation "org.flywaydb:flyway-core:5.2.4"

    compile "org.postgresql:postgresql"  // flyway requires compile , not implementation
.
.
.

excerpt from script

COPY public.condition_components (condition_id, component_id, id, grade) FROM stdin;
3	43	3	B
4	43	4	B
5	43	5	C
\.

What did you expect to see?
migration ok
What did you see instead?

18:30:26.115 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
18:30:26.115 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
18:30:26.115 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
18:30:26.115 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':flywayMigrate'.
18:30:26.115 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > org/postgresql/copy/CopyManager

18:30:26.120 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
18:30:26.120 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
18:30:26.120 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
18:30:26.120 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
18:30:26.120 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.lang.NoClassDefFoundError: org/postgresql/copy/CopyManager
18:30:26.120 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.flywaydb.core.internal.database.postgresql.PostgreSQLCopyStatement.execute(PostgreSQLCopyStatement.java:72)
18:30:26.120 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.executeStatement(DefaultSqlScriptExecutor.java:189)
18:30:26.120 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.flywaydb.core.internal.sqlscript.DefaultSqlScriptExecutor.execute(DefaultSqlScriptExecutor.java:125)
18:30:26.120 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]   at org.flywaydb.core.internal.resolver.sql.SqlMigrationExecutor.execute(SqlMigrationExecutor.java:77)

note the error:
 Caused by: java.lang.NoClassDefFoundError: org/postgresql/copy/CopyManager

not sure what to do!!

buildscript {
    dependencies {
        classpath 'org.postgresql:postgresql:42.2.6'
    }
}

Seems to work for me
Looks like this is the culprit - https://github.com/flyway/flyway/blob/76737d72797ce7c41eda59645a5dc59f5dbbc55a/flyway-gradle-plugin/src/main/java/org/flywaydb/gradle/task/AbstractFlywayTask.java#L495

should this be the basis of a recommended fix?  seems like we need a more general solution as it it tied to a revision number..

Well, the way I see it, the issue is that the task is relying on the buildscript-scoped classloader to find the driver. I would assume this was affected by gradle 5.x upgrade and related api changes, but I am not too familiar with the gradle plugin api to state this with confidence. As I mentioned, this is a workaround and by no means a permanent solution, since I am sure this is not how it is supposed to work. Hopefully this will get fixed in 6.0 (at least it was tagged for 6).

one of two bugs preventing the use of flyway with gradle :-(

@gregkoganvmm Thanks for investigating. That makes sense. I must admit I am not 100% sure yet what the best way forward is. In the past we basically patched additional jar file URLs in the root URLClassLoader. Starting with Java 9, this is however no longer possible, hence the code you linked to. That approach works well, except for this one case where we make direct use of driver classes in the code, as opposed to simply loading the driver via reflection like we do for all other cases.
Suggestions welcome.

Anything useful in the answers below?  Seems like there are solutions that work through java11.
https://stackoverflow.com/questions/60764/how-should-i-load-jars-dynamically-at-runtime

@sdwarwick That is exactly what we are already doing. Feel free to dig deeper in the code if you want to have an exact look.

Revisited this and reimplemented all accesses via reflection to fix this.


Fix args for running from cabal

Issue
#582
checklist

[*] This PR contains all the work required to resolve the linked issue.

[] This PR results in breaking changes to upstream dependencies.

[*] The work contained has sufficient documentation to describe what it does and how to do it.

[*] The work has sufficient tests and/or testing.

[*] I have committed clear and descriptive commits. Be considerate as somebody else will have to read these.

[] I have added the appropriate labels to this PR.

bors r+


Add support for folke/todo-comments.nvim

Is your feature request related to a problem? Please describe.
no
Describe the solution you'd like
add support for folke/todo-comments.nvim
Describe alternatives you've considered
no
Additional context
no

PR welcome.


expm1 should having float inputs

Was expm1() accepting int dtypes an oversight? If so, here's a fix!
If not, I'm guessing the intention was to "allow" int dtypes here, but leave it as implementation-defined behaviour. In that case we'll need to add a note ala divide().

Presumably this was just a typo. expm1 should be no different from exp. And it looks like the test suite and numpy implementation are already correct here.

All the floating-point functions can accept integer inputs if the library wants to. I don't think we need such a note. I think divide only gets a note because it's not obvious whether the spec requires integer division on integer inputs or not (compared to something like exp where it would be pointless to support integer inputs unless you did a float promotion).

This appears to have been an oversight. As such, will merge...


Feature/cax portal@cplp 569 table component

style of data table component created
Storybook story implemented for basic table component
MUI Datatable library added to package.json
Data map functions created and moved under utils folder -> Temporary maps function
Table component props exported  and default props defined
Actions file created for async thunk actions

I updated PR and beside that unit test part, all resolved. I will merge this PR to main branch


import stdin, stdout fail

porting normal process code:
const { stdin, stdout, exit } = process;

by set package alias in package.json:
  "dependencies": {
    "bare-process": "^1.3.2"
  },
  "imports": {
    "process": {
      "bare": "bare-process",
      "default": "process"
    },
    "process/*": {
      "bare": "bare-process/*",
      "default": "process"
    }
  }

run in pear dev and see
❯ pear dev
2024-04-30T22:29:13.246Z cli exiting due to unhandled rejection
key=pqbzjhqyonxprx8hghxexnmctw75mr91ewqw5dxe1zmntfyaddqy
length=2774
fork=0
platform=darwin
arch=arm64
pid=61038
uptime=0.009s
stack=ReferenceError: process is not defined
    at pear://dev/index.js:1:33
    at Module._evaluate (file:///Users/X/Library/Application%20Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/boot.bundle/node_modules/bare-module/index.js:128:13)
    at Module._transform (file:///Users/X/Library/Application%20Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/boot.bundle/node_modules/bare-module/index.js:119:12)
    at Module.load (file:///Users/X/Library/Application%20Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/boot.bundle/node_modules/bare-module/index.js:327:19)
    at Crank.run (file:///Users/X/Library/Application%20Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/boot.bundle/ipc/crank.js:88:14)
    at async file:///Users/X/Library/Application%20Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/boot.bundle/cmd/iface.js:64:39
    at async run (file:///Users/X/Library/Application%20Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/boot.bundle/cmd/run.js:58:5)
    at async Cmd.run (file:///Users/X/Library/Application%20Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/boot.bundle/cmd/index.js:53:18)
    at async module.exports (file:///Users/X/Library/Application%20Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/boot.bundle/cmd/index.js:78:3)
    at async cli (file:///Users/X/Library/Application%20Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/boot.bundle/cli.js:12:3)

Error logged at /Users/X/Library/Application Support/Pear/by-dkey/7216eeac5c879a2ca1dcff14bb8c1ad47d188a8c17b13e66f36d354ea8bd3b28/3/cli.crash.log

If import with
import  { stdin, stdout, exit } from 'bare-process'

Nothing happens
❯ pear dev
(base)

There's no global process object, you'll need to define that yourself:
global.process = require('bare-process')


APT whitelist request for gcc-6

requires ubuntu-toolchain-r-test as apt-source

+1

+10

+1

Why did the Travis bot build fail? I looked at the build output, but I don't understand why it fails. It seems like it should work, since the ubuntu-toolchain-r/test PPA is added to the APT sources, and gcc-6 is in there. Anyone knows?

@ldionne It seems to me gcc-6 is only available for Xenial (16.04) and not yet for Trusty (14.04) - which is used for Travis CI builds.

@offa You're right, I missed that. Thanks! Well I'm not sure they'll add gcc-6 to Trusty at all, so IDK whether we'll be able to get what we want.

Agreed - hopefully they'll add it. 14.04 is still an LTS and may get some further packages. However, Gcc 6 is very young so we will see …

gcc-6 is now also built for trusty: https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test/+packages?field.name_filter=&field.status_filter=published&field.series_filter=trusty

:+1:

It seems GCC 6 is finally available for precise as well

GCC 6 has actually already been whitelisted for 27 days (https://github.com/travis-ci/apt-package-whitelist/issues/3021)

Gcc 6 works fine now.

gcc 6.2 have been released fixing some bugs. Due to these bugs i can not use Travis with my project. Are there any chances for getting gcc-6.2 supported in the near future? How can I push the issue?

@maikel installing gcc-6 currently provides
$ gcc-6 --version
gcc-6 (Ubuntu 6.2.0-3ubuntu11~12.04) 6.2.0 20160901

I wonder why I cannot install gcc-6? Thanks!
$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-6 libblas-dev liblapack-dev
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package gcc-6

Log:
{
  "script": [
    "make test"
  ],
  "language": "c",
  "group": "stable",
  "dist": "precise",
  "addons": {
    "apt": {
      "sources": [
        "llvm-toolchain-precise-3.6"
      ],
      "packages": [
        "gcc-6",
        "libblas-dev",
        "liblapack-dev"
      ]
    }
  },
  "compiler": "gcc",
  "install": [
    "make -j4"
  ],
  "os": "linux"
}

You need the ubuntu test ppa which contains GCC6.

This is already whitelisted in precise... you need to use the toolchain-r-test PPA


add cbam module

[x] Build Cbam Module
[ ] Add Doc String

Hi @rentainhe thank you for this PR. Could you please provide a little bit of context? It would be nice if you can edit the description an explain what cbam does and link the paper. It looks similar to Channel + Spatial SE. So I am wondering what's the improvement, I see we concatenate the features from two poolings, would love to have your summary about it.
Tests are missing, you can add a test here https://github.com/FrancescoSaverioZuppichini/glasses/blob/master/test/test_att.py

Hi @rentainhe thank you for this PR. Could you please provide a little bit of context? It would be nice if you can edit the description an explain what cbam does and link the paper. It looks similar to Channel + Spatial SE. So I am wondering what's the improvement, I see we concatenate the features from two poolings, would love to have your summary about it.
Tests are missing, you can add a test here https://github.com/FrancescoSaverioZuppichini/glasses/blob/master/test/test_att.py

OKKKK, wait a minute~


Fixed broken image links.

After the last merge, many of the image links to the quick start
were broken because the location of the images moved. This fixes that.

@bradleynull yay for images!!! Looks good.


Bug: Error when run php spark cmd in testing env

PHP Version
8.2
CodeIgniter4 Version
4.5.1
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
PostgreSQL 15.2
What happened?
When try to run any spark command in testing environment, error is send as below :
PHP Fatal error:  Uncaught Error: Undefined constant "CodeIgniter\Config\SUPPORTPATH" in /var/www/src/system/Config/AutoloadConfig.php:144
Stack trace:
#0 /var/www/src/system/Boot.php(231): CodeIgniter\Config\AutoloadConfig->__construct()
#1 /var/www/src/system/Boot.php(96): CodeIgniter\Boot::loadAutoloader()
#2 /var/www/src/spark(84): CodeIgniter\Boot::bootSpark(Object(Config\Paths))
#3 {main}
  thrown in /var/www/src/system/Config/AutoloadConfig.php on line 144

Fatal error: Uncaught Error: Undefined constant "CodeIgniter\Config\SUPPORTPATH" in /var/www/src/system/Config/AutoloadConfig.php:144
Stack trace:
#0 /var/www/src/system/Boot.php(231): CodeIgniter\Config\AutoloadConfig->__construct()
#1 /var/www/src/system/Boot.php(96): CodeIgniter\Boot::loadAutoloader()
#2 /var/www/src/spark(84): CodeIgniter\Boot::bootSpark(Object(Config\Paths))
#3 {main}
  thrown in /var/www/src/system/Config/AutoloadConfig.php on line 144

Steps to Reproduce
Set the env file CI_ENVIRONMENT as testing
Run a spark command
php spark env
Expected Output
The command should start properly
Anything else?
No response

This is not a bug, but a misuse.

The environment testing is reserved for PHPUnit testing. It has special conditions built into the framework at various places to assist with that. You can’t use it for your development.
https://codeigniter4.github.io/CodeIgniter4/general/environments.html#the-defined-environments

I understand thank you.


Update charge-details.json

Show location name in charge details.
As proposed in https://github.com/adriankumpf/teslamate/issues/3293

❤


Open loaded scripts from quick open and viewlet show different content

Refs: #31327

Put a breakpoints somewhere in vsocde unit tests
Start debugging our unit tests (they use legacy protocol)
Open the loaded scripts view, vscode/amdefine/amdefine.js -> notice how the content is nicely shown

Now open F1 > loaded scripts > find amdefine.js (notice 2 copies, both of them give "Content could not be retrieved"

With tree view filtering we no longer have a loaded scripts command, so this is not relevant.


chore: slider: pixel push inline extremity labels and remove unreferenced types

SUMMARY:
Pixel push inline extremity labels (UI polish)
Medium

Large

Small

CHANGE TYPE:

[X] Bugfix Pull Request
[ ] Feature Pull Request

TEST COVERAGE:

[X] Tests for this change already exist
[ ] I have added unittests for this change

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@76836a0). Click here to learn what that means.
 Consider uploading reports for the commit 7b4a951 to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #586   +/-   ##
=======================================
  Coverage        ?   84.89%
=======================================
  Files           ?      793
  Lines           ?    17187
  Branches        ?     6056
=======================================
  Hits            ?    14591
  Misses          ?     2530
  Partials        ?       66

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

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


CPU BiasOp only supports NHWC.

I received some errors when running the code.
InvalidArgumentError (see above for traceback): CPU BiasOp only supports NHWC. 	 [[Node: Conv/BiasAdd = BiasAdd[T=DT_FLOAT, data_format="NCHW", _device="/job:localhost/replica:0/task:0/cpu:0"](Conv/convolution, Conv/biases/read)]]
I want to use 2 gpu so I modified the args.gpu=2.

The reason is that my tensorflow doesn't support GPU.
pip install tensorflow-gpu==1.3


Do cleanup and documentation improvement for Slack import.

Merged after a few commit message tweaks, thanks @rht!


Prometheus adapter should allow a metric template instance map to multiple Prometheus metrics

Current implementation the adapter only allows an template instance to map to a single native Prometheus metric. But sometimes, it is desirable to to map  e.g. requestcount.metric.istio-system to two Prometheus metrics: incoming_request_count for destination service, outgoing_request_count for source service?
Can we add such support?
I

assign to @geeknoid  for triage.

I think we should have a larger discussion here. I'm not sure I understand the use case fully.
Prometheus has dimensions for metrics.
istio_request_count includes both source and destination service labels. So, if you wanted to view counts from a source, you could craft a promql query for istio_request_count aggregated by source service (and similarly for destination service).
It is also possible to use Prometheus' own config to derive metrics from metrics, via recording rules.
What is the motivation to map into two or more metrics from one conceptual metric?

Access control is the first thing under discussion. Physically creating two metric data streams, potentially allow applying different access control policies on two data streams., e.g. source service developer can query outgoing request to a destination service without accessing destination service's telemetry data.
It appears  the current adapter config is rather easy to extend to support such model (though implementation requires bigger change).


“RemoteServiceException: Bad notification for startForeground” on Android 10

Describe the bug
We’re seeing the following error reported from devices running Android 10:
android.app.RemoteServiceException: Bad notification for startForeground
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2137)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:237)
    at android.app.ActivityThread.main(ActivityThread.java:7948)
    at java.lang.reflect.Method.invoke(Method.java)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)

A Samsung Galaxy Note 9 user running Android 10 reported:

sometimes causes Samsung one UI home to crash rapidly (until you force stop beepass and start it again)

We haven‘t definitively connected this report to the error — it’s just my best guess. Also note that while this user is reporting a Samsung UI crash, we’re seeing this same issue reported from non-Samsung devices.
This is happening in our BeePass fork, which is based on da578698f6cd41fcfe1ced2ead075bb53bb3243b with some UI, branding, and naming modifications. Because we haven’t modified the Java code at all I’m fairly confident this isn’t a result of our changes.
To Reproduce
We don‘t yet have a reliable reproduction, but this appears to be similar to #280 and #287.
Expected behavior
The app should behave as expected on Android 10.
Screenshots
(N/A)
Client System (please complete the following information):

Outline Client Version: daily-2020-12-17
Your Operating System: Android 10

Submit Feedback
(N/A)
Additional context
Please let us know if you need more information and/or a reliable reproduction.
Thanks!

Hi @GrantASL19, thank you for filing this issue. I have been tracking it as well, but have not been able to reproduce it or find much information about it online. I believe it's not restricted to Android 10, but I suspect it happens with custom Android distributions (i.e. Samsung).
We have unreleased changes to run the VPN service in a separate process. I'm hoping that may help. It would be very useful if you figure out a reliable reproduction so we can understand it and fix it.

Thanks @alalamav! I’ve asked our Outreach team for any similar feedback — will report back if we get anything.
I want to try to reproduce but we don’t currently have any physical device with custom Android distributions. If we can’t figure it out we may get one for internal testing.


1.3.3 (4015) crashes constantly

Since updating an hour or so ago, I can't keep Quicksilver running for more than half a minute or so. Entirely unusable. I have submitted crash reports.
I'm on 10.9.5

It looks like the crash happens when scanning a Spotlight-based catalog entry. For now, disabling it should prevent the crash. Can you share the query it’s using so we can figure out what’s wrong?

Thanks for the quick response: It's not related to any specific query: Every Quicksilver activation causes a crash, whether I search for anything or not. In fact, it's impossible to keep it running long enough to deactivate spotlight.

For the record, here’s the crash.
Process:         Quicksilver [84564]
Path:            /Applications/Utilities/Quicksilver.app/Contents/MacOS/Quicksilver
Identifier:      com.blacktree.Quicksilver
Version:         1.3.3 (4015)
Code Type:       X86-64 (Native)
Parent Process:  launchd [295]
Responsible:     Quicksilver [84564]
User ID:         501

Date/Time:       2015-11-16 14:20:27.293 -0800
OS Version:      Mac OS X 10.9.5 (13F1134)
Report Version:  11
Anonymous UUID:  44466F3E-E5F5-1452-0AC1-F70B8C68DB9A

Sleep/Wake UUID: D2655441-5092-436F-8E4C-CE8E16392502

Crashed Thread:  3  Dispatch queue: QSCatalogEntry scanQueue: AC8FBD35-7D27-40E1-860F-5B6A3BEC0F86

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

VM Regions Near 0:
-->
    __TEXT<PHONE_NUMBER>93c000-0000000100974000 [  224K] r-x/rwx SM=COW  /Applications/Utilities/Quicksilver.app/Contents/MacOS/Quicksilver

…

Thread 3 Crashed:: Dispatch queue: QSCatalogEntry scanQueue: AC8FBD35-7D27-40E1-860F-5B6A3BEC0F86
0   com.apple.CoreFoundation      	0x00007fff8b44da1f CFStringGetLength + 15
1   com.apple.Metadata            	0x00007fff8c74981c _MDQueryCreateExpr + 76
2   com.apple.Foundation          	0x00007fff8b76d84e +[NSPredicate predicateFromMetadataQueryString:] + 92
3   com.blacktree.QSFoundation    	0x000000010099dadc -[NSMetadataQuery(Synchronous) resultsForSearchString:inFolders:] + 230
4   com.blacktree.Quicksilver.QSSpotlightPlugIn	0x00000001077bfa76 0x1077bd000 + 10870
5   com.blacktree.QSCore          	0x0000000100a28cd8 -[QSCatalogEntry scannedObjects] + 98
6   com.blacktree.QSCore          	0x0000000100a29a04 __30-[QSCatalogEntry scanAndCache]_block_invoke + 100
7   libdispatch.dylib             	0x00007fff8cf1428d _dispatch_client_callout + 8
8   libdispatch.dylib             	0x00007fff8cf15146 _dispatch_barrier_sync_f_invoke + 39
9   com.blacktree.QSCore          	0x0000000100a28f42 -[QSCatalogEntry scanAndCache] + 243
10  com.blacktree.QSCore          	0x0000000100a2917d -[QSCatalogEntry scanForced:] + 452
11  com.blacktree.QSCore          	0x0000000100a38345 __42-[QSLibrarian scanCatalogIgnoringIndexes:]_block_invoke + 341
12  libdispatch.dylib             	0x00007fff8cf171bb _dispatch_call_block_and_release + 12
13  libdispatch.dylib             	0x00007fff8cf1428d _dispatch_client_callout + 8
14  libdispatch.dylib             	0x00007fff8cf16082 _dispatch_root_queue_drain + 326
15  libdispatch.dylib             	0x00007fff8cf17177 _dispatch_worker_thread2 + 40
16  libsystem_pthread.dylib       	0x00007fff82231ef8 _pthread_wqthread + 314
17  libsystem_pthread.dylib       	0x00007fff82234fb9 start_wqthread + 13

Would you mind looking through ~/Library/Application Support/Quicksilver/Catalog.plist for the entry with the identifier shown in the crash (AC8FBD35-7D27-40E1-860F-5B6A3BEC0F86) and telling us which one it is?

Here's the dict with that ID:
		<dict>
			<key>ID</key>
			<string>AC8FBD35-7D27-40E1-860F-5B6A3BEC0F86</string>
			<key>children</key>
			<array/>
			<key>enabled</key>
			<false/>
			<key>name</key>
			<string>Spotlight</string>
			<key>source</key>
			<string>QSSpotlightObjectSource</string>
		</dict>

If you go to the folder ~/Library/Application Support/Quicksilver/PlugIns
and remove the Spotlight plugin (called something like
"com.blacktree.Quicksilver.QSSpotlightPlugIn.EF.qsplugin" then restart
Quicksilver, do you still get the crash?
On 18 November 2015 at 02:26, dmland<EMAIL_ADDRESS>wrote:

Here's the dict with that ID:
    <dict>
        <key>ID</key>
        <string>AC8FBD35-7D27-40E1-860F-5B6A3BEC0F86</string>
        <key>children</key>
        <array/>
        <key>enabled</key>
        <false/>
        <key>name</key>
        <string>Spotlight</string>
        <key>source</key>
        <string>QSSpotlightObjectSource</string>
    </dict>

—
Reply to this email directly or view it on GitHub
https://github.com/quicksilver/Quicksilver/issues/2158#issuecomment-157460325
.

I moved it to a "Plugins (disabled)" folder and restarted Quicksilver.
On the other hand, I followed @skurfer's instructions above (moving quickly, since I had only 30 seconds or so per launch at that time to do so), I disabled all of the catalogs related to Spotlight under "Plugins" and "Custom," and haven't had any crashes, anyway.
For what it's worth, it's been entirely stable since I disabled the Spotlight-related catalogs yesterday. And as far as I can tell, it remains stable now that the (probably idle) Spotlight plug-in is now a plug-out.

That’s weird. It’s not configured to actually do anything. Here’s one that I use. Note the path and query.
		<dict>
			<key>ID</key>
			<string>640DE983-3ABE-47AD-AC94-578A6D3CE179</string>
			<key>children</key>
			<array/>
			<key>enabled</key>
			<true/>
			<key>ignoreRemovable</key>
			<true/>
			<key>name</key>
			<string>All Applications</string>
			<key>path</key>
			<string>/</string>
			<key>query</key>
			<string>kMDItemContentType == 'com.apple.application-bundle'</string>
			<key>source</key>
			<string>QSSpotlightObjectSource</string>
		</dict>

So I guess you could just delete it. Do you remember creating it? Any idea how it ended up without some of the settings in it?

This happens if you just create a Spotlight source but haven't configured it (that's how I reproduced the crash : create source, rescan => crash). As @skurfer says, it can be safely deleted.

@skurfer and @tiennou: Thanks. I have no idea what it was supposed to do. It's been a long time since I created any new sources, and I'm not missing the Spotlight functionality (of course, I've already got Spotlight, it comes free with the OS), so I'm satisfied with the current state of affairs. I'll probably move the Spotlight plugin back into the Plugins folder to see if it behaves, in case I ever have need for it.

Me too.
From the crash report:
Thread 8 Crashed:: Dispatch queue: QSCatalogEntry scanQueue: 427390C1-5984-4D9F-9A94-5045A001CC1F
0   com.apple.CoreFoundation      	0x00007fff8a4f7a1f CFStringGetLength + 15
1   com.apple.Metadata            	0x00007fff8f11281c _MDQueryCreateExpr + 76
2   com.apple.Foundation          	0x00007fff9071584e +[NSPredicate predicateFromMetadataQueryString:] + 92
3   com.blacktree.QSFoundation    	0x00000001033409cc -[NSMetadataQuery(Synchronous) resultsForSearchString:inFolders:] + 230
4   com.blacktree.Quicksilver.QSSpotlightPlugIn	0x00000001092c2a76 0x1092c0000 + 10870
5   com.blacktree.QSCore          	0x00000001033cfc45 -[QSCatalogEntry scannedObjects] + 98
6   com.blacktree.QSCore          	0x00000001033d0971 __30-[QSCatalogEntry scanAndCache]_block_invoke + 100
7   libdispatch.dylib             	0x00007fff925d528d _dispatch_client_callout + 8
8   libdispatch.dylib             	0x00007fff925d6146 _dispatch_barrier_sync_f_invoke + 39
9   com.blacktree.QSCore          	0x00000001033cfeaf -[QSCatalogEntry scanAndCache] + 243
10  com.blacktree.QSCore          	0x00000001033d00ea -[QSCatalogEntry scanForced:] + 452
11  com.blacktree.QSCore          	0x00000001033df53c __42-[QSLibrarian scanCatalogIgnoringIndexes:]_block_invoke + 341
12  libdispatch.dylib             	0x00007fff925d81bb _dispatch_call_block_and_release + 12
13  libdispatch.dylib             	0x00007fff925d528d _dispatch_client_callout + 8
14  libdispatch.dylib             	0x00007fff925d7082 _dispatch_root_queue_drain + 326
15  libdispatch.dylib             	0x00007fff925d8177 _dispatch_worker_thread2 + 40
16  libsystem_pthread.dylib       	0x00007fff9124def8 _pthread_wqthread + 314
17  libsystem_pthread.dylib       	0x00007fff91250fb9 start_wqthread + 13

This was tracked to Spotlight catalog entries with no configuration, @Jmuccigr (so they’re useless). We have a fix in the works to prevent the crash, but the best thing to do for now is locate and delete the entries. (Preferences → Catalog → Custom)

I've moved the plugin to the "disabled" folder and now also deleted that entry in the prefs. I don't use the Spotlight option too often in QS, because it's not as convenient as the actual Spotlight interface.


Setup CI

[x] Choose CI provider
[x] Create CI Config
[x] Build Docker Image in CI
[ ] Push Docker Image to Docker Hub or another container registry

Docker image built successfully in https://app.circleci.com/jobs/github/cvanlaw/chrisvanlaw.com/7


fixed #31

added small fix to the quick-start example

Codecov Report

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

@@          Coverage Diff           @@
##           master     #32   +/-   ##
======================================
  Coverage    81.5%   81.5%
======================================
  Files           9       9
  Lines        1260    1260
  Branches       94      94
======================================
  Hits         1027    1027
  Misses        200     200
  Partials       33      33

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 08e20a3...16ebb65. Read the comment docs.

Ah sorry, I fixed it myself so I'll close this pr.


clean up name of function

Purpose
We use the name domain for a number of things, the domain itself (ClimaLSM struct) but also as a function which returns the domain name (:surface, :subsurface). change the function to domain_name for clarity; likewise for interaction_domain
To-do
Content
Change domain function to domain_name and propagate; likewise for interaction_domains
Review checklist
I have:

followed the codebase contribution guide: https://clima.github.io/ClimateMachine.jl/latest/Contributing/
followed the style guide: https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/
followed the documentation policy: https://github.com/CliMA/policies/wiki/Documentation-Policy
checked that this PR does not duplicate an open PR.

In the Content, I have included

relevant unit tests, and integration tests,
appropriate docstrings on all functions, structs, and modules, and included relevant documentation.

[ ] I have read and checked the items on the review checklist.

bors r+


displays loading only

Hey mate, trying this module out and I've got it loaded, but it only displays 'loading' and my list never shows-up.
When I watch my pm2 logs, I can see the following error come out:
mm > [GSL] Trying to login mm > (node:4600) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Evaluation failed: TypeError: Cannot read property 'click' of null at __puppeteer_evaluation_script__:2:44
MM Version: Current
Node Version: 9.11.2
PM2 Version: 3.2.2
Chromium Version: Version installed with current MM
Let me know if you need any other info.
Thanks

Hmmm.. I think you are using 2-Factor-Auth. There is no official API for Google ShoppingList, therefore, I'm using screen-scraping. It cannot be done with 2FA. Sorry.

Hey Mate - Nah, not using 2FA... been troubleshootting the code and it can't find the #email selector you use because the ID has changed.
Have you tried renaming your cookie file and attempting the login process again via the script?

Hmmm. My test has no problem currently.
Would you test with
{
          //disabled:true,
          module: "MMM-GoogleShoppingList",
          position: "top_right",
          header: "My Shopping List",
          config: {
            creds: {
              email: "xxxx",
              password: "xxxx",
            },
            useCookies: false,
            scanInterval: 1000*60,
            displayImage: false,
            browser: {
              headless: false
            }
          }
        },

With headless:false option, you can look what's going on.

Hi, thanks for your work!
I got the same problem with these logs:
0|magicmir | (node:20805) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TimeoutError: Timed out after 30000 ms while trying to connect to Chrome! The only Chrome revision guaranteed to work is r599821
0|magicmir | (node:20805) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

With headless:false I got:
0|magicmir | (node:20510) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Failed to launch chrome!
0|magicmir | TROUBLESHOOTING: https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
0|magicmir | (node:20510) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I updated chromium browser but same result, do you have an idea?

@alexgaspard
First. Which device & OS are you using? (e.g: RaspberryPI 3B+ / Raspbian Stretch)
Second, Where is your Chromium installed? (e.g: /usr/bin/chromium-browser)
For Second answer; Can you execute chromium in your shell? (e.g: /usr/bin/chromium-browser http://google.com)
If your chromium is installed in other directory, set config value
 browser: {
      headless: true,
      executablePath: "YOUR CHROMIUM PATH"
}

Then try again.

Hi thanks for your answer, here are my commands results:
> cat /proc/device-tree/model
Raspberry Pi 2 Model B Rev 1.1
> uname -a
Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
> cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Chromium is at /usr/bin/chromium-browser
With:
>  DISPLAY=:0 /usr/bin/chromium-browser http://google.com
I got chrome launching google.com but I got these errors
bootstrap_helper: /usr/lib/chromium-browser/nacl_helper: Cannot open ELF file!  errno=2
[1:1:1104/151759.501039:ERROR:nacl_fork_delegate_linux.cc(315)] Bad NaCl helper startup ack (0 bytes)
[2826:2826:1104/151812.280127:ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.

I tried headless true or false, with true I can see chrome launching repeatedly with about:blank as url

@alexgaspard
As Error messages said, There could be sandbox issue on some Chrome version.
https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
try to modify configuration with this;
browser: {
  ...
  args: ['--no-sandbox', '--disable-setuid-sandbox'], // <= this could make sandbox disabled.
}

If it would fail also, the only solution is to install Chromium with version r599821

Thank you for your help.
Unfortunately it is not working either, I cannot find this version of chromium,  sudo apt install chromium-browser=r599821 fails

Sorry, I cannot help about that. I suspect Raspbian Jessie has some missing dependencies.

I'll close this. If you have still problem, leave it here again.

Ok thanks
Le dim. 11 nov. 2018 à 18:54, Seongnoh Sean Yi<EMAIL_ADDRESS>a
écrit :

I'll close this. If you have still problem, leave it here again.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/eouia/MMM-GoogleShoppingList/issues/2#issuecomment-437690466,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJdKQwbLn-knKhGshbx11r1Ktje45UC0ks5uuGRogaJpZM4XdUsH
.


Validity scope of defer() and once() watcher ids

When exactly becomes a defer()/once() watcher id invalid? Before the callback call (as you anyway cannot do meaningful disable/enable on it inside the callback) or only after it?
This needs to be specified in the Driver interface.

I'd say before.

I'd also say before.

I agree with before.

Good, that's fine. I'll do a simple PR documenting that soon.


Add CORS support to HTTP endpoint

This is blocking interactive use of the swagger tool against our production instance.
During this process, I noticed we were still passing some Grpc information in HTTP response headers so this also squelches those.
Signed-off-by: Bob Callaway<EMAIL_ADDRESS>

Codecov Report

Merging #670 (cf60081) into main (21b6f72) will decrease coverage by 7.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #670      +/-   ##
==========================================
- Coverage   61.56%   54.44%   -7.12%
==========================================
  Files          30       36       +6
  Lines        1717     2228     +511
==========================================
+ Hits         1057     1213     +156
- Misses        575      923     +348
- Partials       85       92       +7

Impacted Files
Coverage Δ

cmd/app/http.go
53.96% <100.00%> (ø)

cmd/app/createca.go
19.49% <0.00%> (ø)

cmd/app/version.go
31.81% <0.00%> (ø)

cmd/app/grpc.go
48.27% <0.00%> (ø)

cmd/app/serve.go
19.33% <0.00%> (ø)

cmd/app/root.go
44.44% <0.00%> (ø)

pkg/ca/fileca/watch.go
100.00% <0.00%> (+50.00%)
:arrow_up:

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 21b6f72...cf60081. Read the comment docs.


Bugfix/fix-invalid-regex-making-website-fail-on-safari

Codecov Report

Merging #85 (6eedb5b) into main (7a59875) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #85   +/-   ##
=======================================
  Coverage   58.51%   58.51%
=======================================
  Files          69       69
  Lines         716      716
  Branches      125      125
=======================================
  Hits          419      419
  Misses        267      267
  Partials       30       30

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 7a59875...6eedb5b. Read the comment docs.


feat: add radius foundation

Changes description 🧑💻

create Radius foundation
update all components to use vitamin radius
badges size refactor

Context 🤔

Closes #26
Checklist ✅

[x] Make sure you are requesting to pull a topic/feature/bugfix branch. Please, don't request directly from your main!
[x] Check commits & PR names matches our requested structure. It must follow the https://www.conventionalcommits.org pattern.
[x] Check compose contract convention. It must follow conventions described here.
[x] Check your code additions will fail neither code linting checks.
[x] I have reviewed the submitted code.
[x] I have tested on a phone device/emulator.
I have tested on a tablet device/emulator.
I have tested on a large screen device/emulator.
If it includes design changes, please ask for a review with a core team designer.

You can download the apk here :

You can download the apk here :
sample-debug.apk :
https://app.bitrise.io/app/e9ae480151be4514/build/73be95a3-e46f-48e4-b7d4-8641767569b6/artifact/beb9f49a7985679d/p/fce4bd0aa103ab5d8cb453d6c35907b5

You can download the apk here :
sample-debug.apk :
https://app.bitrise.io/app/e9ae480151be4514/build/055e395d-065e-48f3-a0db-b8c4999c28ef/artifact/5f38b3e5db04e261/p/77505989eb0f5362a218b41e6246f664

You can download the apk here :
sample-debug.apk :
https://app.bitrise.io/app/e9ae480151be4514/build/159a9336-bde2-4653-9270-ed5d902fd16e/artifact/cf5b9ad3e4d85490/p/e221308400df1f068ea429990a3b0d2f


Source controller is unable to connect to GitHub repo

I upgraded my bare-metal cluster of Raspberry Pis to have Ubuntu 21.04 and Kubernetes v1.21.2
When I tried to bootstrap flux and sync to my GitHub repo https://github.com/moikot/petite-cloud, as I usually do, Flux components got installed but nothing else. I looked at source-controllers logs and found these messages:
{"level":"error","ts":"2021-06-24T18:55:03.353Z","logger":"controller.gitrepository","msg":"unable to send event","reconciler group":"source.toolkit.fluxcd.io","reconciler kind":"GitRepository","name":"flux-system","namespace":"flux-system","error":"POST http://notification-controller/ giving up after 5 attempt(s): Post \"http://notification-controller/\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"} {"level":"error","ts":"2021-06-24T18:55:03.353Z","logger":"controller.gitrepository","msg":"Reconciler error","reconciler group":"source.toolkit.fluxcd.io","reconciler kind":"GitRepository","name":"flux-system","namespace":"flux-system","error":"unable to clone<EMAIL_ADDRESS>error: dial tcp: lookup github.com on <IP_ADDRESS>:53: read udp <IP_ADDRESS>:50809-><IP_ADDRESS>:53: i/o timeout"}
Controller image is ghcr.io/fluxcd/source-controller:v0.15.1 architecture arm64
I've got some feeling that it something to do Ubuntu 21.04 but I'm not sure.

Can you try updating to the latest version of the source-controller, which is v0.15.2?

Updated source-controller to v0.15.2. See the same messages in the log.

I assume that if you exec into the container and try to reach GitHub.com it also fails?
If so, something in your cluster setup is blocking the connection, and you may want to inspect e.g. networking policies, etc.

Yes, it looks like there are some rules stopping egress traffic. Thanks for the hint. I'm closing the issue.


fix: TOB-ZKTRIE-19 Unchecked usize to c_int casts allow hash collisions

Open question: is this function even used by anything other than tests?
If so we should update the callers, but I haven't found any in the repo.

To see the specific tasks where the Asana app for GitHub is being used, see below:

https://app.asana.com/0/0/1205044772140417

Yeah, i guess we could just unwrap and avoid the interface change.
@Thegaram are we ok with yet another panic point?

Yeah, i guess we could just unwrap and avoid the interface change.
@Thegaram are we ok with yet another panic point?

Sounds good to me, we can try to eliminate these later during a major refactor.

Rebased and updated so that it doesn't change the interface, as discussed.


Adapted SqueezeNet for Variable Size Input Images

Replaced final AveragePooling layer with an AdaptiveAveragePooling layer to allow for no code changes when switching from 255x255 images to other image sizes.

Thanks for the PR.
According to the discussion in https://github.com/pytorch/vision/pull/155 , it might be preferable to add a constructor argument to switch between both behaviors. What do you think?

The way I see it is, in the current code base any input image of a different size (bigger or smaller) causes the network to crash when run. When given an adaptive pool layer rather than fixed average pooling the network still runs as intended with 255x255 images for classification but also supports other image sizes with the same resultant behavior. I think in the case of other jobs such as segmentation (fully dense outputs), it should be up to the end user to make the necessary modifications since there are too many use cases to create arguments in the constructor for each case.

I'm ok to merge this as is. Do you have an idea on how the network performs for different image sizes?

If we're going to change this network shouldn't we change all other ones too? I'm not sure if it's a good idea, replacing a single layer should be quite straightforward and is more explicit

Yeah I agree we should be replacing the other ones as well. If no one else
wants to I can take it on, but it may take me a few days since I'm still
pretty new to Pytorch and Deep Neural Nets. It should be a good learning
experience to go through and look at the structures of each of these nets
though.
On Sat, May 13, 2017, 3:49 AM Adam Paszke<EMAIL_ADDRESS>wrote:

If we're going to change this network shouldn't we change all other ones
too? I'm not sure if it's a good idea, replacing a single layer should be
quite straightforward and is more explicit
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pytorch/vision/pull/166#issuecomment-301240609, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKchR_zRVepIzYlROVtbGM-tBDVF8BPFks5r5YrFgaJpZM4NTQTd
.

What's the status of this PR? It'd be cool to not have to change anything, but if there is some reason for keeping it the way it is, that's also cool, as @apaszke said, that's pretty straightforward.

I happend to face same problem. I think at least it would be reasonable to add some comments in the code.

This has been implemented in https://github.com/pytorch/vision/pull/643.
Thanks for the PR!


Devices on Tuya Smartlife app show up on Homebridge but none of them show up in Apple homekit after the bridge has been added.

Describe the bug

After adding the homebridge tuya web plugin to homebridge, I am able to see all the devices that are added to my smartlife app on the homebridge. However these devices are not showing up on Apple HomeKit.
Steps To Reproduce

I don't get any error on either the homebridge or Apple HomeKit. However I have tried multiple times by uninstalling and reinstalling homebridge and homebridge tuya web plugin on my QNAP NAS, but everytime it ends with same result i.e. the devices do not show up on Apple HomeKit.
1.) I followed steps in this article https://github.com/oznu/docker-homebridge/wiki/Homebridge-on-QNAP to install homebridge on my QNAP
2) Logged into the homebridge console in QNAP. I then installed this plugin for tuya web (https://github.com/milo526/homebridge-tuya-web#readme) and  I was able to successfully connect homebridge to tuya web platform. All the devices in smartlife app is visible in homebridge.
3) Pair the homebridge with Apple Homekit.
4) After pairing, the devices are still not visible in Apple Homekit.
Plugin Version

1.1.1
Homebridge Config

{
   "bridge": {
       "name": "Homebridge AA90",
       "username": "XX:XX:XX:XX:XX:XX",
       "port": 53423,
       "pin": "XXX-XX-XXX"
   },
   "accessories": [],
   "platforms": [
       {
           "name": "Config",
           "port": 8581,
           "platform": "config"
       },
       {
           "name": "TuyaWebPlatform",
           "options": {
               "username": "REDACTED",
               "password": "REDACTED",
               "countryCode": "REDACTED",
               "platform": "smart_life",
               "pollingInterval": 300
           },
           "defaults": [
               {
                   "id": "REDACTED",
                   "device_type": "dimmer",
                   "min_brightness": "0",
                   "max_brightness": "240",
                   "dimmer_characteristics": [
                       "Brightness"
                   ]
               }
           ],
           "scenes": false,
           "_bridge": {
               "username": "YY:YY:YY:YY:YY:YY",
               "port": 32963
           },
           "platform": "TuyaWebPlatform"
       }
   ]
}

Device Config

Getting credentials
Got credentials
{   'access_token': 'EUheu1643670131283Imj88GMG1jq2Pyl',
'expires_in': 864000,
'refresh_token': 'EUheu1643670131283Imj88fXyWKAL4W9',
'token_type': 'bearer'}
Getting devices
Got devices
{   'header': {'code': 'SUCCESS', 'payloadVersion': 1},
'payload': {   'devices': [   {   'data': {'online': True, 'state': False},
'dev_type': 'switch',
'ha_type': 'switch',
'icon': 'https://images.tuyaeu.com/smart/icon/ay1536534747810ekKBj/15650573356c530dc2175.png',
'id': '20500040c82b96e120e5',
'name': 'Porch Light'},
{   'data': {'online': True, 'state': False},
'dev_type': 'switch',
'ha_type': 'switch',
'icon': 'https://images.tuyaeu.com/smart/icon/ay1536534747810ekKBj/15650573356c530dc2175.png',
'id': '20500040f4cfa2276502',
'name': 'Eaves Lights'},
{   'data': {   'brightness': '50',
'online': True,
'state': 'false'},
'dev_type': 'light',
'ha_type': 'light',
'icon': 'https://images.tuyaeu.com/smart/icon/ay1536534747810ekKBj/1577061028bf995f07bad.png',
'id': 'bf72f33e4d096a9417gdwb',
'name': 'Office Light'},
{   'data': {'online': True, 'state': False},
'dev_type': 'switch',
'ha_type': 'switch',
'icon': 'https://images.tuyaeu.com/smart/icon/ay1536534747810ekKBj/15650573356c530dc2175.png',
'id': '20500040c82b96e0f733',
'name': 'Front Lights'},
{   'data': {},
'dev_type': 'scene',
'ha_type': 'scene',
'id': '4SA8HW82p1iKRh6H',
'name': 'Turn\xa0on\xa0the\xa0power\xa0'
"when\xa0I'm back"}],
'scenes': []}}
!!! NOW REMOVE THIS FILE, !!!

homebridge tuya web plugin debug.txt
Additional Context

me too, only light bulbs recive have a correct status, other device if i turn on manualy they don't update the state and remain off

Are you able to see the homebridge bridge in homekit? Are you able to see other devices from other plugins?

Just installed this plugn and have exactly same issue - I can see Tuya devices in HB but not in HK. Other HB devices show up in HK.

Same issue here.


[RFE] Add flag to force Node Drain

Current situation
If a worker node fails to drain, the controller halts operation and crashes.
Impact
Upgrades are blocked due to node not being able to complete the reboot cycle.
Ideal future situation
Add a flag that allows administrators to force evictions.
Implementation options
Add a Flag to the update-agent
-force-drain=true

Additional information
 F0707 18:37:26.173532 4093771 main.go:89] Error running agent: processing: getting pods for deletion: [cannot delete Pods declare no controller (use --force to override): foo/test]
````

This may be related to: https://github.com/flatcar/flatcar-linux-update-operator/issues/188

PR: https://github.com/flatcar/flatcar-linux-update-operator/pull/197

This can be closed.

.


Add new package finch-generic

I think it makes sense to provide finch-generic covering generic derivations on endpoints in Finch. As for today we can build endpoints from query string params (we used to build request readers in the same way):
val e = Endpoint.derive[User].fromParams

I think I'm in favor of Circe-style API for this:
import io.finch.generic._

val e: Endpoint[User] = deriveFromParams[User] // or simiar

Would be also nice to support derivation from path segments.

+1


OSD task sequence fails on dynamically apply drivers step. "Error. Received 0x80072ee7 from WinHttpSendRequest"

Using mostly Dell devices (99.9%), problem started couple weeks ago. MECM version 2303 5.00.9106.1000.
We are able to image some desktop PCs with no issues, seems like laptops are the ones failing. That took me to think it is boot image drivers.
I have added drivers to the boot image (Dell WinPE 11 driver pack), removed old ones too, used a different network adapter to PXE boot (usually use Dell Docks, but I have tried using other USB gigabit adapters), still no luck. Also tried updating boot image from ADK option, made sure I applied updates to the Operating Systems Images (schedule updates option in MECM for both Win10 and Win11).
Tried disabling "Modern Driver Management" step in the task sequence, the task sequence finishes without problems.
log.txt

I didn't look at your log file very closely, but your issue description reminds me of a blog I read about how driver installation order matters in your WinPE boot image.
Hopefully this helps.
https://www.deploymentresearch.com/back-to-basics-driver-installation-order-in-winpe-matters/

I finally figured it out, nothing wrong with Modern Drive Management, it was the "Realtek USB GbE Controller Family Driver". I initially suspected driver, so I went to Dell's site, downloaded the latest WinPE driver pack, and still had the same issue, turns out Dell is not putting in the latest driver from Realtek. After looking in other directions for a bit it occurred to me to go directly to Realtek, download the latest Win11 Driver (it is an installed but unpacked it with 7zip and used the folder Install_USB_Win11_11.13.0420.2023_20_05152023_05182023\WIN11\cx\64), added these drivers to MECM and to the Boot image, so far I have successfully finished imaging two laptops with 0 issues. The latest driver is version 1<IP_ADDRESS>0 (the Dell driver pack had 1153.9.823.2022). Hope this helps others with Dell docks (WD19 and WD15). Thx


Endless spinner when logged back in with Keep me logged in option

Steps to Replicate:

Login with your credentials and Check the Keep me logged in option.
Select your Organization, Language and Resource.
Open the file.
From the top Menu, Click on your Avatar and logout.
Log back in on the same login window using your password.
You can see the Organization page, do the Organization selection and Resources , the loading spinner shows up and spins endlessly.

@elsylambert I think the logout persistence work done recently has fixed this. Can you retest?

@mandolyte Still seeing this issue. Please follow these steps:

Login with your credentials and Check the Keep me logged in option.
Select your Organization, Language and Resource.
Open the file.
From the top Menu, Click on your Avatar and logout.
Log back in on the same login window using your password.
You can see the Organization page, do the Organization selection and Resources , the loading spinner shows up and spins endlessly.

@elsylambert looks like the logout is clearing all the persisted data except for the filepath. This is likely the cause of the problem, altho how/why precisely is uncertain.
@ancientTexts-net any ideas?

@RoyalSix @ancientTexts-net I have been stepping thru the debugger trying to find out why filepath is persisted on a logout, when "keep me logged in" is NOT checked. All the other keys are removed from IndexedDB, but not this one.
I found that it is being removed but is immediately put back by Gitea React Toolkit's useFile.js -- that was a surprise. For documentation purposes and in case I do not figure it out before lunch, I wanted to put this here so you can take it up if you wish.

@ancientTexts-net @RoyalSix Today I completed more debugging on this. It is not a persistence issue, even tho it resembles one. I can manually remove the "filepath" key from IndexedDB and it will still fail. The value for filepath appears to be sticking in memory for the FileContext (and useFile.js). Some indications that it and something called blobfilepath are getting tangled somehow.
Could one of you meet with me tomorrow to review this? I think I need some help!!

Apologies @mandolyte , but I just now saw your msg from 7/22.
At any rate, the fix looks good.  Tested locally in tc-create-app

QA PASS
confirmed in 1.0.1
https://develop--tc-create-app.netlify.app/


MarkDown and DateTime Rendering in FactSet

Bugfix for #1930.
Object Model
Fact now has Get/Set Language.
FactSet basically treated as a Container where it has no defined language, but SetLanguage() sets language for each inner Fact.
UWP Renderer
Linked object model changes to UWP renderer.
Used SetTextOnXamlTextBlock() to render Fact Titles/Values.
UWP Test App
Created new test: FactSet.MarkdownAndDateTime.json
Added results from test
Android
Updated AdaptiveCardObjectModel.i for swig.
Added handleSpecialText() and necessary support (very similar to that of TextBlock)
iOS
Added language parameter to processTextConcurrently()
Changed getLocalizedDate() to take in text and language as parameters instead of TextBlock

I ran the test app locally, and saw some failures caused by minor changes to the rendering of the text in the fact sets. That's probably an expected result of switching from setting the text directly to using inlines. Please confirm that you see those issues as well, and if so accept the changes as part of this PR so that the test app still runs clean.

    m_sharedFact = std::make_shared<Fact>();

You probably still want to make a default Fact here and then call the version of RuntimeClassInitialize that takes a parameter. That will get your member variables properly initialized to default values. (Look at, for example, AdaptiveTextBlock.cpp for an example)

Refers to: source/uwp/Renderer/lib/AdaptiveFact.cpp:16 in da9f696. [](commit_id = da9f696c225f664b7a91b2e7d18506d3c351260a, deletion_comment = True)


[Bug] Minor - blog.podkrepi.bg button "Начало" is not working

blog.podkrepi.bg - "Начало" button is not working
Steps to reproduce the behavior:

Go to blog. podkrepi.bg
Click on "Начало" button

Expected behavior
The user should be redirected to the Home page - https://podkrepi.bg/
Desktop (please complete the following information):

OS: Windows
Browser - Chrome
Version- Version 98.0.4758.102 (Official Build) (64-bit)

I think that it's fine since we have a button "Към сайта"

Next to "Начало" that leads to podkrepi.bg


PLAT-10366: Added generated API

Ticket
PLAT-10366
Description
Added generated API from swagger specs, namely:

https://github.com/symphonyoss/symphony-api-spec/blob/master/agent/agent-api-public.yaml
https://github.com/symphonyoss/symphony-api-spec/blob/master/authenticator/authenticator-api-public.yaml
https://github.com/symphonyoss/symphony-api-spec/blob/master/login/login-api-public.yaml
https://github.com/symphonyoss/symphony-api-spec/blob/master/pod/pod-api-public-deprecated.yaml

Generate api and models were put in separate python packages because of clashing tags across yaml files making some python modules to be overwritten.
Updated circle ci file to trigger snyk scan on 2.0 branch
Checklist

[x] Referenced a ticket in the PR title and in the corresponding section
[x] Filled properly the description and dependencies, if any
[NA] Unit tests updated or added
[NA] Docstrings added or updated
[x] Updated the documentation in docs folder

I have a small question is that do we need to commit also the template since we decided to commit all the generated code? it's somehow redundant, isn't it?

I have a small question is that do we need to commit also the template since we decided to commit all the generated code? it's somehow redundant, isn't it?

I have a small question is that do we need to commit also the template since we decided to commit all the generated code? it's somehow redundant, isn't it?

Yes but this is just in case we want to regenerate then files when swagger specs change. One never knows and I prefer to keep it.

I have a small question is that do we need to commit also the template since we decided to commit all the generated code? it's somehow redundant, isn't it?

Yes but this is just in case we want to regenerate then files when swagger specs change. One never knows and I prefer to keep it.


Substitute for CheckReturnValue

The CheckReturnValue ErrorProne check cannot be configured. Thus, when calling builder.setValue(..), an error is produced, pointing out that the result of setValue should be used.
This is an issue for our message handler methods, which allow users to modify the entity builder. It is not supposed that users use the resulting value directly.
In order to tweak the checker, we extend it and add a custom condition. Now, invocations of methods starting with set, add, put, or merge on an instance of Message.Builder are ignored.
Also, this PR enables the errorprone-checks tests. For that, we publish artifacts into the maven local repository before the tests are run.

@armiol, PTAL.

@armiol, PTAL again.

@armiol, PTAL.


Access to firestoreInstanceCache not always synchronized

Problem
I got the below stacktrace from a customer (cf. b/375684078). It seems access to firestoreInstanceCache is not synchronized here (and maybe also not here).
Steps to Reproduce

Connect to two Firestore instances using the same project but different databases.
Use the "Hot restart" in the (Android?) IDE.

Stacktrace:
22:52:03.707 E [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception:
PlatformException(java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException:
java.util.ConcurrentModificationException, ExecutionException, Cause:
java.util.concurrent.ExecutionException: java.util.ConcurrentModificationException, Stacktrace:
java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException:
java.util.ConcurrentModificationException (Ask Gemini)
at com.google.android.gms.tasks.Tasks.zza(com.google.android.gms:play-services-
tasks@@18.1.0:5)
at com.google.android.gms.tasks.Tasks.await(com.google.android.gms:play-services-
tasks@@18.1.0:9)
at
io.flutter.plugins.firebase.core.FlutterFirebaseCorePlugin.lambda$initializeCore$3$io-flutter-
plugins-firebase-core-FlutterFirebaseCorePlugin(FlutterFirebaseCorePlugin.java:175)
at
io.flutter.plugins.firebase.core.FlutterFirebaseCorePlugin$$ExternalSyntheticLambda1.run(Unknown
Source:4)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.util.concurrent.ExecutionException:
java.util.ConcurrentModificationException
at com.google.android.gms.tasks.Tasks.zza(com.google.android.gms:play-services-
tasks@@18.1.0:5)
at com.google.android.gms.tasks.Tasks.await(com.google.android.gms:play-services-
io.flutter.plugins.firebase.core.FlutterFirebasePluginRegistry.lambda$didReinitializeFirebaseCore$1(Fl
at
io.flutter.plugins.firebase.core.FlutterFirebasePluginRegistry$$ExternalSyntheticLambda0.run(Unknown
Source:2)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1603)
at java.util.HashMap$EntryIterator.next(HashMap.java:1636)
at java.util.HashMap$EntryIterator.next(HashMap.java:1634)
at
io.flutter.plugins.firebase.firestore.FlutterFirebaseFirestorePlugin.lambda$didReinitializeFirebaseCor
flutter-plugins-firebase-firestore-
FlutterFirebaseFirestorePlugin(FlutterFirebaseFirestorePlugin.java:204)
at
io.flutter.plugins.firebase.firestore.FlutterFirebaseFirestorePlugin$$ExternalSyntheticLambda13.run(Un
Source:4)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
, null)

Hi @tdickopp
Based on the code reference and stack trace, the issue appears to be more appropriate to address in the flutterfire repository first, to determine if any adjustments are needed in the Flutter framework (possibly involving tool team since hot restart is a trigger).
I looked at flutterfire issue database and found https://github.com/firebase/flutterfire/issues/11165 which seems to be related. The trace is not the same but you can check and confirm the version of plugin that user is using.

I see. Sorry for creating this in the wrong place. I have created https://github.com/firebase/flutterfire/issues/16668. This can be closed.


[Tech Debt]: Rate Limiting for Infura RPC

What is needed?
Currently it's possible to make many many RPC calls / second, given a failing useEffect chain or other bug.
We should safeguard against this by adding rate limiting FE-side.
Low prio since we have a high cap on infura calls rn.

saw this again, thousands of requests in under 30 seconds when modifying a useEffect in the chart. locked out by infura again, huge nuisance.

Escalating due to infura outages occurring more frequently

Notes:

~115 infura calls on load

over 50% (~65) of those are looking up ENS addresses
@benwolski mentioned that this used to be done via graph cache server, but was deprecated

a handful (< 5) of calls per new block

fetch pool liquidity, query spot price... confirmed with Ben that this is expected behaviour

Recommendations:

Cache ENS addresses in the BE server, only fetch from infura as necessary

cc: @Mister-Meeseeks @JustinGirard

Closing in favour of #2929


performance problems with tables

How to reproduce
check or run the code at
https://gist.github.com/MirkoDziadzka/462fef54ed0bafe38fa5#file-performance-test-xhtml2pdf-py
It will generate HTML document wich contain a table with a different number of rows (16, 32, ..., 512) and measure the time to render this as pdf.
An example output from my system is here: https://gist.github.com/MirkoDziadzka/462fef54ed0bafe38fa5#file-results
The first column contains the number of rows of the table, the second the render time in seconds. The third, the render time per row.
expected result
The time for rendering a table with N rows should be O(N) (maybe O(N * log(N))
actual result
the time for rendering a table with N rows seems to be O(n^2) which makes it unusable for larger tables (20-30 rows are ok, 500 are not)

Anyone working on a fix or any other library which solves this issue?

Hi, I don't know if anyone is working on performance (I don't think so), but I am working in other topics and if you send a PR than could help in performance then I will review it.
Also you could check http://weasyprint.org/, but I think xhtml2pdf is faster.

I have corroborated this problem, here are my benchmarking results:

48 to 49 secs to create a PDF big HTML template repeatedly using the use of TABLE, TR, TD, TH
25 to 29 secs to create a PDF big HTML template repeatedly using the use of DIV (replacing TABLE), TR, TD, TH
16 to 19 secs to create a PDF big HTML template repeatedly using the use of DIV (replacing TABLE, TR, TD, TH)

Since I am using this library in a lambda function it would be nice to knock out this exponential time increase when using tables.
PS: Nice library thought

I have the same problem, in my case I am creating several tables in the same document with a significant number of rows; the time to return the result is exponential, taking several minutes.