How to connect 2k YI Camera with Chinese Yi Home Application ?

Hello RoleoRoleo, i have a question for you.
Recently i bought a camera from Taobao, but i couldn't connect it to my phone via app.
I tried Chinese version of app also..."This camera can only be used within China"
Do you have any ideas how to connect it to my phone?
Model is 2K (Resolution 1296P) Yi Ants Y4
So i decided to make a backup and attach here:
What should i do to prevent random bricking camera?
Can you explain step by step my actions ?
https://drive.google.com/file/d/1c2_b8AmrBuimVEPA7-ONjzOTqqEi_Mpp/view?usp=sharing

Y29GA_MB_V2.1
2020/04/07
QG2101A Chip
I attached more info in my backup winrar archive.

Your cam is a y29ga.
At the moment, this hack doesn't support it.
Checking your backup it seems that you tried to apply y21ga hack but probably it doesn't work.
Normally, to use a locked cam outside China you need to install a proxy like proxychain.
But it's not implemented on this model (it's compiled but not working at the moment).

Ваша камера - y29ga.
На данный момент этот хак его не поддерживает.
При проверке резервной копии кажется, что вы пытались применить хак y21ga, но, вероятно, это не сработало.
Обычно, чтобы использовать заблокированную камеру за пределами Китая, вам необходимо установить прокси, например proxychain.
Но на данной модели это не реализовано (скомпилировано, но пока не работает).

Thank you for fast reply, tell me please what can i do to make this process goes faster ? I can send you this camera if it helps .

@InterStellar223
Try this hack:
y29ga_0.1.6.tar.gz

does this hack comes with proxychain so that i could edit /home/yi-hack/etc/proxychains.conf?

proxychain is compiled and installed but there is no switch to enable it in the web page.
Try to run it manually.

@InterStellar223
Please send me 2 or 3 copies of the file /dev/shm/fshare_frame_buf
Make a copy, wait 5 secs and make another copy.
I hope your cam is not in the bathroom :)
EDIT
Is it a home or dome?
ethernet or wifi only?

(/dev/shm/fshare_frame_buf) I will try to send you these files tomorrow. Because first I need to get to the place of work with a Linux computer. Then try to figure out how to do it.
It is a home and it has wifi only and it demands china app only.
I tried hack you sent, here the files after trying to connect: https://drive.google.com/file/d/1wBx94iw7xsyPqa813m2OwjO7mTgB15PL/view?usp=sharing
I hope your cam is not in the bathroom :) - Haha, no :)
P.S. THANK YOU FOR HELPING ME :)


add default empty chrome args

This fixes a bug where the user doesn't have a config.json file.

+1


[TIR] TIR Schedule Misc Update

This PR adds some minor changes to TIR schedule codebase.
cc: @junrushao1994 @Hzfengsy

There was a Github outage, rebasing or restarting the CI should fix the current CI issue.


Getting started code does not work

As of today after a fresh download of SC in a new pyenv the example code in the Getting Started portion of the ReadMe does not work.

@AllenDBoston could you elaborate on which portion of the getting started guide that doesn't work? And which version of SC you are using.

@AllenDBoston it appears to be a bug in the way python handles multiprocessing for spawn.
It's updated in: https://github.com/siliconcompiler/siliconcompiler/pull/1856

I think you may have to remove the quotes around asic_demo.

In fact the last line that includes "sc -remote -target "asic_demo"" works fine for me.
Again, what I did was I downloaded SiC using a new pyenv then I run the following lines of python as given in the getting started readme:
import siliconcompiler                             # import python package
chip = siliconcompiler.Chip('heartbeat')           # create chip object
chip.load_target('skywater130_demo')               # load a pre-defined target
chip.input('heartbeat.v')                          # set input sources
chip.clock('clk', period=10)                       # set constraints
chip.set('option','remote', True)                  # enable remote execution
chip.run()                                         # run compilation
chip.summary()                                     # print summary
chip.show()                                        # show layout
In a new pyenv, on initial run of the code above I get that there is no module found for 'altair.vegalite.v4'. Therefore I fix with installing the correct version asked by SiC by executing "pip install altair==4".
After that a new error related to multiprocessing spawn as mentioned above by @gadfort. As of today the getting started code still does not work. Thanks, Allen

@AllenDBoston we updated the instructions: https://docs.siliconcompiler.com/en/latest/user_guide/quickstart.html
The issue you are running into is how Python multiprocessing works with spawning. It will reload your original file, which causes all code to be re-executed and python does not like that. This is a known issue with spawning and the solution is to wrap your code as shown in https://docs.siliconcompiler.com/en/latest/user_guide/quickstart.html#id1
It's not 100% clear to be if you are using the docs or the github README.
What version of python are you using? (for the altair issue)

I've added an additional node to the github readme: https://github.com/siliconcompiler/siliconcompiler/pull/1876

@AllenDBoston I also added: https://github.com/siliconcompiler/siliconcompiler/pull/1880 thanks for the suggestion.

Looks like the fix to include if name == "main": fixed the issue with the getting started code on the GitHub readme.

@AllenDBoston thats great to hear, in that I'll close this. If you encounter any other issues, please feel free reopen this or file a new issue.


Enable set authorization header

I want set authorization header, when I use graphal-client for cli.
ex)
graphql-client introspect-schema https://api.github.com/graphql --authorization "Bearer xxxxxx"

Thanks for the PR! It looks good, I'll wait for CI to pass and merge right away.


add(starter): Jekyll Starter

Name
Link

jekyll-tailwindcss-starter
https://github.com/shenlu89/jekyll-tailwindcss-starter

A dead simple, comprehensive Jekyll boilerpalte styling with Tailwind CSS.
Features

Integrated with Tailwind CSS v2.2+, including PostCSS, PurgeCSS
Compatiable with Mordern Browsers except IE 11+
Syntax Highlighting with Typography
Commenting support powered by Disqus
Optimized for search engines.
Support Google Analytics
Latex syntax through Mathjax

[x] My item is in the right category
[x] My item is logically grouped below similar items
[x] My item's name and description respects the conventions of the list
[x] My item is awesome
[x] My item is in line with the Tailwind brand usage guidelines
[x] I have read and followed the contribution guidelines

Thanks!


Webrtc Camera and Audio not available on MacOS Webview

Environment:

Mac OS latest

Problem:

The WebView that is part of the Mac OS does not allow access to webrtc for me

Reproduction:

Code is here: https://github.com/getcouragenow/packages/tree/master/mod-ion

Screen shot:

Image on left is Chrome browser with webrtc working.
Image on Right is same js code running inside Zserge webview.

So i am wondering:

Is this a restriction that Apple places on its OS Webview ? Hence its impossible for it to work
Is it actually that ZSerge webview does not implement the needed call signature ?

Can confirm:
ackage main

import "github.com/zserge/webview"

func main() {
        debug := true
        w := webview.New(debug)
        defer w.Destroy()
        w.SetTitle("Minimal webview example")
        w.SetSize(800, 600, webview.HintNone)
        w.Navigate("https://meet.jit.si/asdfasdfasdfasdf")
        w.Run()
}

Try to give the permissions in the plist then it should work as it expected

exactly which permissions are those

Mic access, just a question have u try it on windows or Linux build? Do they work ?
Kind Regards
Jason Shen
Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: nothingismagick<EMAIL_ADDRESS>Date: 17/06/2020 02:18 (GMT+08:00)
To: webview/webview<EMAIL_ADDRESS>Cc: jason-shen<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [webview/webview] Webrtc Camera and Audio not available on MacOS Webview (#368)
exactly which permissions are those
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/webview/webview/issues/368#issuecomment-644928817, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANWB45N77EVFCUDEE6QUOLRW6ZNRANCNFSM4M4EEBNA.

Cross posting some research from https://github.com/tauri-apps/tauri/issues/630:
https://forums.developer.apple.com/thread/88052
https://bugs.webkit.org/show_bug.cgi?id=208667#c17

Apple just want to control FaceTime and wont allow it on Desktop or IOS Webviews.
In the end i went with PWA added to home screen. This does have access to the Webrtc features.

i don't think thats the reason u can always use Chrome to do this, its just the fact webview is little behind Chrome thats the fact
Kind Regards
Jason Shen
Sent from my Samsung Galaxy smartphone.
-------- Original message --------
From: Joe<EMAIL_ADDRESS>Date: 24/06/2020 18:54 (GMT+08:00)
To: webview/webview<EMAIL_ADDRESS>Cc: jason-shen<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [webview/webview] Webrtc Camera and Audio not available on MacOS Webview (#368)
Apple just want to control FaceTime and wont allow it on Desktop or IOS Webviews.
In the end i went with PWA added to home screen. This does have access to the Webrtc features.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/webview/webview/issues/368#issuecomment-648748960, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANWB44ENOSWU4YWD6RIJZ3RYHLNRANCNFSM4M4EEBNA.

@jason-shen

i don't think thats the reason u can always use Chrome to do this, its just the fact webview is little behind Chrome thats the fact Kind Regards Jason Shen Sent from my Samsung Galaxy smartphone.
…
-------- Original message -------- From: Joe<EMAIL_ADDRESS>Date: 24/06/2020 18:54 (GMT+08:00) To: webview/webview<EMAIL_ADDRESS>Cc: jason-shen<EMAIL_ADDRESS>Comment<EMAIL_ADDRESS>Subject: Re: [webview/webview] Webrtc Camera and Audio not available on MacOS Webview (#368) Apple just want to control FaceTime and wont allow it on Desktop or IOS Webviews. In the end i went with PWA added to home screen. This does have access to the Webrtc features. — You are receiving this because you commented. Reply to this email directly, view it on GitHub<#368 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AANWB44ENOSWU4YWD6RIJZ3RYHLNRANCNFSM4M4EEBNA.

We need to run it on Mac, and there it defaults to using the Mac OS webview.   UNless i missed something


Error on deploying the data connector

Describe the bug
When clicking to deploy the data connector from Sentinel it gives the following error message: "There was an error downloading the template from URI 'https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Auth0/Data Connectors/azuredeploy_Auth0_FunctionApp.json'. Ensure that the template is publicly accessible and that the publisher has enabled CORS policy on the endpoint. To deploy this template, download the template manually and paste the contents in the 'Build your own template in the editor' option below. "
To Reproduce
Steps to reproduce the behavior:

Go to 'Sentinel > Data Connectors > Auth0 Access Management'
Click on 'Deploy to Azure'
See error

Expected behavior
Expected to install the conector (worked 3 months ago)
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Windows 11
Browser Edge and Chrome
Version 125

Additional context
Add any other context about the problem here.

Hi @net-imp, Thanks for flagging this issue, we will investigate this issue and get back to you with some updates by 25-06-2024 . Thanks!

Hey @net-imp, We have fix the link, Kindly check and let us know if your issue resolved. Thanks!

Looking good now! Thank you!

Working as expected again. Closing


Use dill and Apache Arrow directly for caching & storing hidden states

Right now we save hidden states as a HF dataset so that we can use its magical caching abilities.  I expect we could get at least a 2x speedup from this for large models, and the code could be cleaner. It would also remove the confusing "Downloading and preparing" messages that currently pop up when we extract hiddens

This is kinda low priority but would still like to do this at some point


Blazor QuickGrid coverage enhancements

Addresses #28001
Addresses #28161
@Nick-Stanton, do you want to take a look at rough 8.0 draft coverage for QuickGrid? The coverage is a WIP 🚧 that I'll be picking back up with late next week, as I'm going to be OOF Monday thru Wednesday. I'll probably merge this now but come back with another PR late next week. If you don't have time to provide feedback now but will have time later, I can ping u on the next PR next week.
Note in passing that we might want to have a more advanced example than this. However, we're linking to the QuickGrid for Blazor app, and that might be all we need to do for an advanced example.
Note also that this whole subject (section) might be better off in a dedicated topic. I'm really feel'in the idea because the Components overview article is already too long. I'm looking for ways to shorten the whole topic generally, and this would stand nicely as its own article in the Components node (folder). Yeah! The more I think about it, the more I LIKE IT! 😆 I'll split it out on the next PR tho, next week.

Internal previews

📄 File
🔗 Preview link

aspnetcore/blazor/components/index.md
aspnetcore/blazor/components/index

This looks great @guardrex! I would suggest is adding that for people using EF IQueryables, we suggest installing the separate Microsoft.AspNetCore.Components.QuickGrid.EntityFrameworkAdapter package.

Thanks @Nick-Stanton ...
WRT the package, that is versioned here, so that should be ok. I'll look it over one more time tomorrow to confirm.
WRT EF IQueryables, yes, I'll work that into the coverage.

@Nick-Stanton ... Is the Microsoft.AspNetCore.Components.QuickGrid.EntityFrameworkAdapter package going to come in transitively under .NET 8? If so, then I only need to instruct that it be explicitly added for .NET 7.
Also, is there an example somewhere of that API being used with an EF IQueryable that I can drop into the coverage as an example?

I added a line to install the EF adapter package for .NET 7 to use IQueryable with EF Core. I'm going to add a cross-link for the Basic Test App EF Core component next.
If the adapter package is transitively added for .NET 8, then the earlier bit on data sources probably don't require modification: An IQueryable<T> is for any query provider AFAIK, and I don't think we need to say anything specific about EF there. However, I'll add something if you like.

I'm not sure we have specific tests for the EF IQueryables, which may need to be reevaluated. Here's an example of how it might be consumed from Steve's samples.
https://aspnet.github.io/quickgridsamples/datasources
The project reference looks a little funny here because it's referring to the version in the repo instead of from NuGet.
https://github.com/aspnet/AspLabs/blob/cbca15978abbf6e0eb865d78dd9d8640790fbebf/src/QuickGrid/samples/QuickGridSamples.Server/QuickGridSamples.Server.csproj#L26
https://github.com/aspnet/AspLabs/blob/cbca15978abbf6e0eb865d78dd9d8640790fbebf/src/QuickGrid/samples/QuickGridSamples.Server/Program.cs#L13
FYI, I moved teams and am no longer working on Blazor. I'm happy to answer what I'm able to when I have time, but @SteveSandersonMS has deeper knowledge of how QG works.

Sorry for the delay to reply, @Nick-Stanton ... I'm OOF for a few days. I'll get back to this later this week when I'm back on my feet. 🤒

Here's an example of how it might be consumed from Steve's samples.

I have a feel'in that that's going to be too point-in-time for us to document from. Those types of examples go stale and break. I think we can cross-link to the SampleQuickGridComponent component, as that will be updated over time as they go.
WRT ...
builder.Services.AddQuickGridEntityFrameworkAdapter();

I see. Yes, I'll get that in here.
... and WRT the package reference, I see that I was incorrect about that from the following error language in the ref source (emphasis added) ...

throw new InvalidOperationException($"The supplied {nameof(IQueryable)} is provided by Entity Framework. To query it efficiently, you must reference the package Microsoft.AspNetCore.Components.QuickGrid.EntityFrameworkAdapter and call AddQuickGridEntityFrameworkAdapter on your service collection.");


Where can I download previous versions?

Hi, I worked on my project a while ago and used the following versions:
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.2.6'
implementation 'com.github.pedroSG94:RTSP-Server:1.1.8'

import com.pedro.encoder.input.video.CameraOpenException;
import com.pedro.rtplibrary.util.BitrateAdapter;
import com.pedro.rtplibrary.view.OpenGlView;
import com.pedro.rtsp.utils.ConnectCheckerRtsp;
import com.pedro.rtspserver.RtspServerCamera1;
import com.pedro.rtspserver.RtspServerCamera2;

After some time, I needed to make a few changes to my project's code, but I found out that the old versions are no longer supported. When I specify the new versions, I encounter a lot of errors. I only need to change a couple of lines in my code, but I can't do it because of the old library versions.
Please send me these old versions, as I really don't want to rewrite my code. The old versions suited me perfectly. Thank you!

Hello,
You only need change to this:
  implementation 'com.github.pedroSG94.RootEncoder:rtplibrary:2.2.6'
implementation 'com.github.pedroSG94:RTSP-Server:1.1.8'

Or you can get the source code from here:
https://github.com/pedroSG94/RootEncoder/tags
https://github.com/pedroSG94/RTSP-Server/tags

build.gradle:
implementation 'com.github.pedroSG94.RootEncoder:rtplibrary:2.2.6'
implementation 'com.github.pedroSG94:RTSP-Server:1.1.8'

Clean -> Rebuild:
Duplicate class com.pedro.rtsp.utils.TLSSocketFactory found in modules rtsp-2.1.8-runtime (com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtsp:2.1.8) and rtsp-2.2.6-runtime (com.github.pedroSG94.RootEncoder:rtsp:2.2.6)

Then I wrote:
implementation('com.github.pedroSG94.RootEncoder:rtplibrary:2.2.6')
implementation('com.github.pedroSG94:RTSP-Server:1.1.8') {
    exclude group: 'com.github.pedroSG94.rtmp-rtsp-stream-client-java', module: 'rtplibrary'
}

Clean -> Rebuild - BUILD SUCCESSFUL, but:
import com.pedro.rtspserver.RtspServerCamera2; - Cannot resolve symbol 'rtspserver'

Hello,
Apparently that version of RTSP-Server had an error in jitpack. I recompiled it and now should be working.
Try to compile the project again.

Unfortunately, the error remains..

Hello,
Are you sure about it? I just tested it and it is working fine.
    implementation 'com.github.pedroSG94.RootEncoder:rtplibrary:2.2.6'
    implementation ('com.github.pedroSG94:RTSP-Server:1.1.8') {
        exclude group: 'com.github.pedroSG94.rtmp-rtsp-stream-client-java', module: 'rtplibrary'
    }

Remember add jitpack maven:
allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

Try with a clean project to make sure and clear the project properly deleting build folders

Also, remove the import just in case that your import is not correct and use the IDE to import it

Hello! I apologize a thousand times) It turns out that for several days I was trying to restore the wrong project... I had already downloaded and imported your libraries into my working project a long time ago, and everything works fine. Phew...


Content Picker should have Culture filter

In case of multilingual site, Content Picker should have Culture filter attached.

Generally content lists could have a culture filter (e.g. a drop-down).

Content list has already one, content picker not...
On Tue, Jul 28, 2015, 12:56 Zoltán Lehóczky<EMAIL_ADDRESS>wrote:

Generally content lists could have a culture filter (e.g. a drop-down).
—
Reply to this email directly or view it on GitHub
https://github.com/OrchardCMS/Orchard/issues/5580#issuecomment-125532541
.


Regex not working. I'm new to this plugin

So, i'm trying to make a custom mask and i want to allow special characters, like " _ - / () "
But i cant.. This is the jquery code i'm using:
$('.m-tel').inputmask({
mask:'()*******',
regex:'/^[a-zA-Z0-9-_]+$/'
});
What should i do?

@celsomtrindade ,
If you want to use the regex extension then you cannot use it like above; but like this
$('.m-tel').inputmask("Regex", {
regex:'/^[a-zA-Z0-9-_]+$/'
});

Be aware that the regex alias does not show any placeholder.


attributeChangedCallback isn't called for initial attribute of a created element

Hi,
When an instance of a custom element is created it seems the specs (4.3.8) say that attributeChangedCallback() have to be fired for all initial attributes.
e.g.
<my-dom test="mytest">test</my-dom>
class MyDom extends HTMLElement {

  static get observedAttributes() {
    return ['test'];
  }
  attributeChangedCallback(name, oldValue, newValue) {
    console.log(name + ':' + newValue);
  }
}
customElements.define('my-dom', MyDom);

should fire attributeChangedCallback() when the element is parsed and created.
And as you can see in this jsfiddle it's not the case.
I'm on chrome beta but it's the same in firefox.
And you can test the same code in chrome canary with custom element enabled here
Thanks

actually only for initial attribute that are available, not just all of them. Thanks for filing this

fixed and tested in latest push.


Add support for new osbuild stages required for RHEL EC2 SAP image

Add support for the following osbuild stages:

org.osbuild.selinux.config - https://github.com/osbuild/osbuild/pull/799
org.osbuild.tmpfilesd - https://github.com/osbuild/osbuild/pull/801
org.osbuild.pam.limits.conf - https://github.com/osbuild/osbuild/pull/802, https://github.com/osbuild/osbuild/pull/807
org.osbuild.sysctld - https://github.com/osbuild/osbuild/pull/804
org.osbuild.dnf.config - https://github.com/osbuild/osbuild/pull/798
org.osbuild.tuned - https://github.com/osbuild/osbuild/pull/797

The required osbuild version in SPEC file was not updated, because the new stages are not yet used by any image type.
This pull request includes:

[x] adequate testing for the new functionality or fixed issue

added unit tests for all new stages

[x] adequate documentation informing people about the change such as

[x] create a file in news/unreleased directory if this change should be mentioned in the release news
[ ] submit a PR for the guides repository if this PR changed any behavior described there: https://www.osbuild.org/guides/

I reflected the rename of pam_limits.conf stage to pam.limits.conf...


AttributeError error of the fetchone function of the DictCursor class

Hello! In version 0.2.2, the fetchone function raised an AttributeError error when row == None. In version 0.2.3, when row == None, {} is returned.
I would like to know the reason for this change. After the update, the logic in my application broke down.
Thank you in advance.
class DictCursor(Cursor):
    async def fetchone(self):
        row = await super(DictCursor, self).fetchone()
        if self._columns and row:
            return dict(zip(self._columns, row))
        else:
            raise AttributeError("Not fould valid columns")

async def fetchone(self):
        row = await super(DictCursor, self).fetchone()
        if self._columns:
            return dict(zip(self._columns, row)) if row else {}
        else:
            raise AttributeError("Invalid columns.")

@Cooh12 , hello, it was done here, I suppose - https://github.com/long2ice/asynch/compare/v0.2.2...v0.2.3#diff-a7386b71af40b83dd660607c7cc63d0c3593f6c9170b9cebecfd0b85d3a5144eR356-R376 . Do you have any pros about returning an empty container in lieu of None entity? Moreover, in what cases None should be returned?


Fix typo

I did fix the typo "focussed".
I did add an or in config.lua to not break user's existing config.
I did also fix comment typos with https://github.com/crate-ci/typos

This is a great spot, thank you! Before I merge, I am going to add a deprecation warning as there maybe some people using it in its current wrongly spelled format.

No deprecation warning is needed since I did add edit this line:
https://github.com/Mo8it/onedarkpro.nvim/blob/a92297b47accfdf69e30664ca01a803ae37764ec/lua/onedarkpro/config.lua#L113
But if you want to keep the code clean, then I can remove this line with the or and you can add the deprecation warning.

Great spot. Thanks very much!
I deleted my earlier comment as I saw the or you added. I'll add some deprecation warnings anyway as I plan to move people over to a new api over the coming months and want to give them a lot of warning.

Thank you for the great theme :heart:


Add All Members

Add base structure for all team members

There's some discussion related to this in Lepovirta/lepovirta.org#6.


Change github actions for publish

This commit is to change GitHub Actions for publish to nuget.org.

close #30


{{ salesChannel.name }} not added to the mail subject for languages <> default language

The value for {{ salesChannel.name }} is not added to a mail subject for languages <> default language. This is only the case if the {{ salesChannel.name }} is specifically defined per language. The fallback out of the default language currently is not used if that is not the case.

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-39976
[created from NEXT-39976, comment 522602]

[public]

Priority changed to: High

Thank you for your report. Based on the information in this report, we have decided to investigate this issue in more detail and are planning to provide a fix for this issue. Although we are always eager to solve such problems as soon as we can, we can't give you a more specific time frame right now. We appreciate your patience and thank you for your understanding.
[created from NEXT-39976, comment 525512]


How can I modify the program to accommodate non-square kernels?

Hello, Thank you very much for your excellent work. I want to build a Dcls2d convolution with non-square kernels, unequal stride, padding, and dilation. However, it seems like 'kernel_count' only supports 'int'. Is it feasible to modify it for non-square kernels?
non-square kernels and unequal stride and with padding and dilation
import torch
from DCLS.construct.modules import  Dcls2d
Dcls2d(16, 33, kernel_count=(3, 1), dilated_kernel_size=(7, 1), stride=(2, 1),padding= (1, 0))
input = torch.randn(20, 16, 50, 100)
output = m(input)
loss = output.sum()
loss.backward()
print(output, m.weight.grad, m.P.grad)
The anticipation for your response is greatly appreciated!

Hello,
Actually, the kernel count is the number of kernel elements inside the kernel. Kernel count should be an int greater or equal to 1.
The dilated kernel size controls the limits of the kernel. So if you want a rectangular kernel you should do dilated_kernel_size =(5, 7) for example.
Then you mention the number of kernel elements inside it by doing kernel_count = 10 for example

In your example, the problem is more with giving a dimension of 1 to th width dilated kernel size.
Is it really your use case ?

Hello, I actually want to replace the nn.Conv2d layers in my original model with your Dcls2d. I may have misunderstood the 'kernel_count'; initially, I thought it was equivalent to 'kernel_size'. In my original network model, the convolutional layer is defined as follows: nn.Conv2d(16, 33, kernel_size=(3, 1), dilation=(7, 1), stride=(2, 1), padding=(1, 0)). Now, I think I understand that this convolutional layer should be equivalent to: Dcls2d(16, 33, kernel_count=3, dilated_kernel_size=(7, 1), stride=(2, 1), padding=(1, 0)). Am I correct in this interpretation?
The convolutional kernels in my model are indeed elongated, with a kernel size of (7, 1).

Hi @Lutong-Qin
First of all, thanks a lot for your interest in our work!
I think you should increase the dilated_kernel_size.
You should think in terms of receptive field (RF). Your Conv2d layer with kernel_size=(3, 1) and dilation=(7, 1) has a RF size of (15,1), so I would use at least that for the dilated_kernel_size.
The kernel_count is a free parameter.
For the stride, I would use the same as in your Conv2d layer (stride=(2, 1))
You may want to increase the padding to have the same output size.
I hope this helps.
Do not hesitate if you have other questions!

@Lutong-Qin
I've released a new method called Dcls2dK1d which is more appropriate for your use case of flat convolutions as it avoids to create positions across the non-flat dimension. Here is a use case:
import torch
from DCLS.construct.modules import  Dcls2dK1d

m = Dcls2dK1d(
    out_channels=32,
    in_channels=32,
    kernel_count=3,
    dilated_kernel_size=11,
    flat_dim=0, # the flat dimensions dimension, here it is equivalent to torch.nn.Conv2d with kernel_size=(1,11)
    groups=1,
    padding=(0, 11 // 2),
)
# The last dimension of the input is always where positions are learned
input = torch.randn(8, 32, 56, 56)
output = m(input)
loss = output.sum()
loss.backward()
print(output.size(), m.weight.grad.size(), m.P.grad.size())

You can either use this one which is cleaner or Dcls2d.

Also, to make your life easier, here is a snipet that permits to change all the flat 2D convs (1,7) and (7,1) in a model by the suitable Dcls2dK1d. This code synchronizes positions along h and W separately for all convolutions inside the same stage.
We have tried that on  ParCNetv2 model that makes use of flat convs.
import copy
# Helper function that replaces all ".int." patterns
# by "[int]" in a character string
def replace_dots_brackets(name):
    name_split = name.split(".")
    name_split = ["[" + i + "]" if i.isdigit() else "." + i for i in name_split]
    return "".join(name_split[:-1]), name_split[-1][1:]

# Helper function that replaces all the
# 2D depthwise separable convolution in
# a model by synchronized Dcls2d ones
def replace_depthwise_dcls(model, version="gauss"):
    in_channelsh, in_channelsw, Ph, SIGh, Pw, SIGw, = 0, 0, None, None, None, None
    # Loop over all model modules
    for name, module in model.named_modules():
        # if the module is a depthwise separable Conv2d module
        if (
            isinstance(module, nn.Conv2d)
            and module.groups == module.in_channels == module.out_channels
            and len(module.kernel_size) == 2
            and min(module.kernel_size) == 1
        ):
            print(name)
            name_eval, last_layer = replace_dots_brackets(name)
            dilated_kernel_size = max(module.kernel_size)
            dcls_conv = Dcls2dK1d(
                module.in_channels,
                module.out_channels,
                kernel_count=dilated_kernel_size // 3,
                dilated_kernel_size=dilated_kernel_size,
                padding=module.padding,
                groups=module.groups,
                version=version,
                bias=module.bias is not None,
                flat_dim=module.kernel_size.index(dilated_kernel_size),
            )

            nn.init.normal_(dcls_conv.weight, std=0.02)
            if module.bias is not None:
                nn.init.constant_(dcls_conv.bias, 0)

            # Synchronise positions and standard
            # deviations belonging to the same stage
            if in_channelsh < module.in_channels and module.kernel_size[0] == 1:
                in_channelsh = module.in_channels
                Ph, SIGh = dcls_conv.P, dcls_conv.SIG

            if in_channelsw < module.in_channels and module.kernel_size[-1] == 1:
                in_channelsw = module.in_channels
                Pw, SIGw = dcls_conv.P, dcls_conv.SIG

            if module.kernel_size[0] == 1:
                dcls_conv.P, dcls_conv.SIG = Ph, SIGh

            if module.kernel_size[-1] == 1:
                dcls_conv.P, dcls_conv.SIG = Pw, SIGw

            setattr(eval("model" + name_eval), last_layer, dcls_conv)
    return model

@register_model
def parcnetv2_dcls_tiny(pretrained=False, **kwargs):
    model = ParCNetV2(
        depths=[3, 3, 12, 3],
        dims=[64, 128, 320, 512],
        token_mixers=ParC_V2,
        mlps=partial(BGU, mlp_ratio=5),
        **kwargs,
    )
    model = replace_depthwise_dcls(copy.deepcopy(model), version="gauss")
    return model

I see, 'dilated_kernel_size' refers to the concept of an 'effective kernel size for dilated convolutions'.
The following two are equivalent in form.
`class CNN(nn.Module):
def init(self, input_channel, num_classes):
super(CNN, self).init()
    self.layer1 = self._make_layers(input_channel, 64, (3,1), (2,1), (1,0), (3,1))
    self.layer2 = self._make_layers(64, 128, (3,1), (2,1), (1,0), (3,1))
    self.layer3 = self._make_layers(128, 256, (3,1), (2,1), (1,0), (3,1))
    self.fc = nn.Linear(256*4*1, num_classes)

def _make_layers(self, input_channel, output_channel, kernel_size, stride, padding, dilation):
    return nn.Sequential(
        Dcls2d(input_channel, output_channel, kernel_count=3,
               dilated_kernel_size=((kernel_size[0]+(kernel_size[0]-1)*(dilation[0]-1)),(kernel_size[1]+(kernel_size[1]-1)*(dilation[1]-1))),
               stride=stride,
               padding=padding),
        nn.BatchNorm2d(output_channel),
        nn.ReLU(inplace=True)
    )

def forward(self, x):
    x = self.layer1(x)
    x = self.layer2(x)
    x = self.layer3(x)
    x = F.max_pool2d(x, (4,3))
    x = x.view(x.size(0), -1)
    out = self.fc(x)
    return out`

    `class CNN(nn.Module):
def __init__(self, input_channel, num_classes):
    super(CNN, self).__init__()

    self.layer1 = self._make_layers(input_channel, 64, (3,1), (2,1), (1,0), (3,1))
    self.layer2 = self._make_layers(64, 128, (3,1), (2,1), (1,0), (3,1))
    self.layer3 = self._make_layers(128, 256, (3,1), (2,1), (1,0), (3,1))
    self.fc = nn.Linear(256*4*1, num_classes)

def _make_layers(self, input_channel, output_channel, kernel_size, stride, padding, dilation):
    return nn.Sequential(
        Dcls2d(input_channel, output_channel, kernel_count=3,
               dilated_kernel_size=((kernel_size[0]+(kernel_size[0]-1)*(dilation[0]-1)),(kernel_size[1]+(kernel_size[1]-1)*(dilation[1]-1))),
               stride=stride,
               padding=padding),
        nn.BatchNorm2d(output_channel),
        nn.ReLU(inplace=True)
    )

def forward(self, x):
    x = self.layer1(x)
    x = self.layer2(x)
    x = self.layer3(x)
    x = F.max_pool2d(x, (4,3))
    x = x.view(x.size(0), -1)
    out = self.fc(x)
    return out`


fix: Media Live Button style changes during live window

Makes the live indicator remain visually active while we are within the live window, as opposed to going grey immediately after pausing
Shows disabled cursor for the button while within the live window, mimics old behaviour

@cjpillsbury can you double check these are as we discussed

Disabled cursor 👍
Gray on pause was intentional. @gkatsev called out before that this was how video.js worked by default, and it make sense for the other default workflow where we auto seek to live on unpause. We can add an option to make that behave differently when we introduce DVR.
Unless there's a good argument otherwise we should revert that part of this PR. And maybe it deserves a note in the CSS to make it more clear it's intentional as the default behavior.

Got the additional details on this one in Slack (reminder not to skimp on the details for why we're doing something in the PR).
When the video paused the red light would turn gray, but clicking the button was still disabled until the playhead was out of the live window. So the two behaviors were off in an unexpected way. 👍 We'll fix the intended behavior in a followup.


InfluxDB - Backup of multiple databases fails

Script contains for loop over $DB_NAME values likely to support backup of multiple InfluxDB databases but there is no setting for target in each iteration. So backup fails with stat: can't stat '/tmp/backups/influx_home_assistant telegraf_<IP_ADDRESS>_20201110-233711.sql': No such file or directory.
Adding target=influx_${DB}_${dbhost}_${now} solved problem for me.

Did you want to submit a PR on this and we can merge this in?

Ok, will do that tomorrow.


SyncBot: filter events before creating messages

Reduce noise on synced threads by passing received events through a filter

Change-Type: patch

Contributor checklist

[x] Build output been rebuilt and tested
[ ] Introduces security considerations
[ ] Tests are included
[ ] Documentation is added or changed
[ ] Affects the development, build or deployment processes of the component

Reviewer Guidelines

When submitting a review, please pick:

'Approve' if this change would be acceptable in the codebase (even if there are minor or cosmetic tweaks that could be improved).
'Request Changes' if this change would not be acceptable in our codebase (e.g. bugs, changes that will make development harder in future, security/performance issues, etc).
'Comment' if you don't feel you have enough information to decide either way (e.g. if you have major questions, or you don't understand the context of the change sufficiently to fully review yourself, but want to make a comment)

@hedss I'd hope this PR would take under a minute to review and would be a really nice one to get out sooner rather than later.


Support 1.19

As this is the best trade system I can find, please support 1.19 as soon as possible.

it's aleady on progress there is no eta.


transactional keyword is not supported for anonymous functions

In current implementation, transactional keyword is not supported for anonymous functions and function pointers.

This was fixed by #25808


transaction / claim / support data missing until confirmed

Similar to https://github.com/lbryio/lbry-sdk/issues/2462, but there no error or it's being supressed:
I've seen instances (and other users have run into this also) where stream / channel / transaction / support list don't return the information until it's confirmed. Other transactions will show fine in that period (i.e. a new incoming tx).  Not easy to reproduce, and the next transaction will work just fine.

It seems like this happens when a UXTO that's already pending is used again in a new transaction. If all UTXOs are confirmed, it won't happen.


Bug: Clicking on preview image does not show large image in Firefox "Quantum"

It appears the gallery HTML is injected into the DOM as expected (verified in console), but the spinner is not going away after the large image is loaded.

Hi @TonganJedi could you give me link to this large image or set in plunker https://plnkr.co/edit/D1tdBCeFo6L9tMOCOb9p?p=preview ?

Additional testing has demonstrated this might be a local browser config issue instead. Let's close this for now. Thank you!


Asynchronous programming: stream example added

@afred-khan I've resolved the conflicts, please review/approve.
Thanks


nothing is printed

I am out of shape. I have not been coding for a few years. I set the setting values with my keys. I put a username of my choice. I commented the post command and tried only the get one. However, nothing is displayed. I am not sure what it's wrong. I set the E_ALL in php.ini to show error but nothing is shown at all. Any ideas?
here is my code:
 '79029053####',
    'oauth_access_token_secret' => 'f42ur3s####,
    'consumer_key' => 'fJiOZy9####',
    'consumer_secret' => 'XmLR4###'
);

/** URL for REST request, see: https://dev.twitter.com/docs/api/1.1/ **/
$url = 'https://api.twitter.com/1.1/blocks/create.json';
$requestMethod = 'POST';

/** POST fields required by the URL above. See relevant docs as above **/
$postfields = array(
    'screen_name' => 'usernameToBlock',
    'skip_status' => '1'
);

/** Perform a POST request and echo the response **/
/*
$twitter = new TwitterAPIExchange($settings);
echo $twitter->buildOauth($url, $requestMethod)
             ->setPostfields($postfields)
             ->performRequest();
*/
/** Perform a GET request and echo the response **/
/** Note: Set the GET field BEFORE calling buildOauth(); **/
$url = 'https://api.twitter.com/1.1/followers/ids.json';
$getfield = '?screen_name=usernamehere';
$requestMethod = 'GET';
$twitter = new TwitterAPIExchange($settings);
echo $twitter->setGetfield($getfield)
             ->buildOauth($url, $requestMethod)
             ->performRequest();

Hi j7mbo...thanks for the class. works fine for me pretty much all the time . Here's the interesting problem I have. When I try to wrap the call in a class method, i get null returned as other people above. Doesn't seem to be a certificate issue since it works when not wrapped in a class method. Trying to implement this for an application written using the MVC pattern, therefore the need for a class. Here's the very simple code im using to test it. Note ..I did a var_dump to make sure the twitterObj is actually being created ok, and it looks fine. I'm on MAC, dreamhost linux virtual hosting.Any ideas?
public function tweetMiner()
{
$getfield='arsenal';
$requestMethod='GET';
$url='https://api.twitter.com/1.1/search/tweets.json';
 //get all the info twitter responds with
 $twitterObj = new TwitterAPIExchange($this->settings);
 $response=json_decode( $twitterObj->setGetfield($getfield)->buildOauth($url,$requestMethod)->performRequest() );

 echo '<pre>';
 var_dump($response);
   }

settings is public in the class and In the class constructor I have this:
public function __construct(){
require_once 'TwitterAPIExchange.php';
require_once 'Database.php';
  $this->settings=array(
                  'oauth_access_token'=>"#####",
                  'oauth_access_token_secret'=>"#####",
                  'consumer_key'=>"#####",
                  'consumer_secret'=>"#####"
                  );
}


WIP Generate runtime store

TODO:

[x] Build All metapackage

Using artifacts.props

[x] Build RuntimeStore
[x] Build HostingDeps
[x] Create delta zips

using previous manifests

[x] Cleanup

I will port the installer builds steps in a separate PR.

Ready for review.


Render empty geojson/mvt if no results returned from SQL query

This is probably a bug - we return 0 byte file if no results are returned - probably should return and empty file instead (a tile with no features).

Now returns 204 no content if the MVT is empty.


Links in README.md are dead

The links to the official hue resource no longer work.

Thanks for the nudge. Links are updated.


Inactive tabs are not unmounted

Version

react-native-router-flux v3.2.7
react-native v0.22.2
iOS

Expected behaviour
When a tab is inactive it should be unmounted and/or new props should not be passed to it.
Actual behaviour
A surprise when I changed my implementation from TabBarIOS to this component--- all tabs are always active. This caused the performance issue I mentioned in Issue #520. In my main tab, say TAB A, I have a component that the user interacts with frequently, a counter button. In TAB B I have a history of all the events that happened in TAB A. The history list is implemented with react-native-tableview reactModuleForCell, which is a little expensive. It works fine to rerender when the user clicks TAB B, but if it also rerenders every time the user does something on TAB A, it slows everything down. This does not happen with TabBarIOS.
I thought I could use componentShouldUpdate() on TAB B, checking its NavigationState prop to see if it is active, but unfortunately the TabBar component somehow lies to its children, changing NavigationState to tell each of them that IT is the active scene. I ended up subscribing to a flux store in TAB B that holds the latest router action. I send the action to the store in reducerCreate. If my app used redux I probably could have used that as well.

Duplicate of #521 which is being worked on upstream in React Native.

@cridenour Any idea if this has been fixed? Thanks.

@ciriac Unfortunately I haven't been able to keep up with upstream changes recently so I can't say either way.


run_all missing in examples

The doc says there should be a run_all in the examples directory, but there is none. Also, no lines.fit example. Please supply.

Thanks for the info. I did not notice. run_all.sh is added to the repository now. Please verify if it works for you or if additional things are missing. The git repository may have gotten out of sync at some point...


Branch filtering and keyrefs [DOT 2.x]

If in the DITA Map has in it a construct like:
<topicref keyref="topicKey">
  <ditavalref href="filter.ditaval"/>
</topicref>

the DITAVAL filter will not get applied on the referenced topic.
From what I've seen the branch filtering stage seems to be applied before resolving keys and this might be the reason for it.
If you want and if it is not a known issue I can try to provide a complete sample for this.

Yes, branch filtering takes place before key resolution. This is because ditavalref can change the key scope name and DITA-OT has not support for delayed branch filtering.
In the future this may change, but the initial DITA 1.3 implementation has this limitation.


Search for other sensitive credentials

Aside from shared database and network proxy passwords. Class JabRefPreferences is a good starting point.

Having analysed both the GUI and the code, no other sensitive credentials were found


Set your preferences in Azure DevOps Services How-to guides

Helpful documentation here to change the date format. Thanks.

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

ID: d28a6661-50d4-527e-9727-ab5974da951d
Version Independent ID: fdac329a-b9b4-77d0-916a-dee6d2576379
Content: View, change user preferences - Azure DevOps
Content Source: docs/organizations/settings/set-your-preferences.md
Product: devops
GitHub Login: @chcomley
Microsoft Alias: chcomley

Thanks so much, @johncrossland, glad to hear it.


Update several calls for new interfaces

I think this PR is wrong because obviously a bunch of breaking stuff wasn't just merged on the very day the next release was scheduled.
This makes things work again for my application but I did not have a lot of time to do testing.
CC: @ghcs27

Oh, #573 should not have broken any code. What kinds of errors do you get?

I see what the problem is: The current arguments to the calls don't match the signature given by iter_actions().
We should just revert #573 before the release, and then I'll look into how to make that PR backwards-compatible.

Yes, that was the error I got. Couldn't tell whether that was right or wrong.
Also note the other issue: self._build_album_art_full_uri is used by core, but that was removed in #542.

Could you please remove the changes pertaining to #573? I'll make another PR for that problem.
But we should get the self._build_album_art_full_uri changes in.

Okay, I just pushed an updated branch with only the album art changes.

Is it okay to call an underscored method across modules?

@amelchio looks good. Regarding the underscored method. In general no, I think we should promote that method to being public. Since underscored methods are considered internal implementational details, we wont have to worry about backwards compatibility.

@amelchio do you want to add that change to this PR?

Well, I removed the underscores now, not sure if anything is needed documentation wise when making a method public?
Also, I rebased to exclude the service extension fixes that were reverted and I changed the title to make it fit the new content ... it may be better to just open a fresh PR?
Interestingly, music_library is calling self.soco._update_album_art_to_full_uri (i.e. with an underscore) ...

@amelchio No need for changes documentation wise, if the doc string is clear.
You don't need to open a new PR. The history is clean enough and we can find our way around here.

Interestingly, music_library is calling self.soco._update_album_art_to_full_uri (i.e. with an underscore) ...

You mean that music_library is calling _update_album_art_to_full_uri on a SoCo instance. That is a mistake and must have been missed during the migration. Probably the most important part of a change like this is grepping though the code to make sure to catch all calls to this methods, no-matter where it comes from.

This is included in #596 so I will close this PR now.


Transitive dependencies of API dependencies should not be exposed on consumers compile classpath

Expected Behavior
Transitive dependencies of API dependencies should not be exposed on to consumers compile classpath, they should only be exposed on the runtime classpath of consumers.
Current Behavior
As by the documentation for the java-library plugin:

Dependencies appearing in the api configurations will be transitively exposed to consumers of the library, and as such will appear on the compile classpath of consumers.

Context
This is a feature request and aims to have a more explicit and controlled way to define what is exposed on to consumers classpath. Since authors of a java-library project need to already separate between what are internal dependencies (through the implementation configuration) and what's exposed to consumers (through the api configuration) one could go even further and not expose those transitive dependencies of api dependencies automatically on the consumers compile classpath.

If you use library foo (it doesn't matter if you use it as an api or implementation dependency), then you need the API dependencies of foo, otherwise you can't compile against it. E.g. if foo uses a Guava CharMatcher on a public signature, then you need Guava to use that method. Implementation details of foo on the other hand will not be leaked (again - no matter if you use foo as api or implementation detail).
This already works correctly for project dependencies. What still needs to be fixed is making this work when resolving from Maven repositories. See #977

@oehme What I found confusing is that this bug (now re-labeled as feature) regarding the resolution of maven dependencies is described as a the correct/desired behavior in the java-library documentation. Anyway thanks for the explanation!

The documentation of the java-library plugin states that api dependencies will be exposed to clients, which is correct and desired.
The other issue you linked is about the fact that implementation/runtime dependencies currently get leaked if you go through a Maven repository. That is undesired and will be fixed.

hi @oehme is there an issue open for the dependency leak issue you mentioned? did this ever get fixed?

https://github.com/gradle/gradle/issues/977, fixed in 4.5


Jaeger produces OOM for production workloads

Jaeger sidecars eventually get large storing events in memory. There should be a workaround to disable jaeger for prod, limit storage size, or use a real DB

Another option is to have only one worker with the jaeger sidecar

One last option is to implement sampling


libdisplay-info: update patch phase

Description of changes

Replace prePatch with postPatch (suggested at https://github.com/NixOS/nixpkgs/pull/216315#discussion_r1110075815);
Don't touch meson.build and only the python script shebang instead (smaller area of patching).

Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

@ofborg eval


Missing file - images/loading.gif

The custom.min.css requires the loading.gif.  Currently https://cdnjs.cloudflare.com/ajax/libs/gentelella/1.3.0/images/loading.gif is returning a 404 not found.  Checked the production/images file and this file was deleted last year.
Thanks

Already merged a PR with this.


[2.10] Bump calico & canal to support v1.31

Bump calico & canal to v3.29.0 (reference) to support k8s v1.31

Validated on rancher v2.10-d268d218b4bc29b029ae9b3433d1a9ac49a6f370-head

Provisioned v1.31.3-rancher1-1 using calico and canal CNI.
Validated calico and canal version and it's bumped to v3.29.0

rancher/mirrored-calico-kube-controllers:v3.29.0
rancher/mirrored-calico-node:v3.29.0

All network checks also passed as part of KDM checks.


Possible to set a "nice" level or a throttle of some sort?

First of all, thanks for this excellent library!
I'm using it in an electron app and the end user can point the app at any directory they'd like, and then the app finds and processes particular types of files in that folder using a glob pattern.
If the user points it at a particularly large folder then the glob process can take several seconds (or minutes!) and the application becomes very sluggish while this happens.
It would be awesome to be able to set a "nice" level or somehow be able to indicate that a slower walk is acceptable in exchange for not clobbering the system.

我看邮件的反应很迟钝。。。如果有事发短信提醒我看邮件。。。。。。

I took some time to try to make this work, by setting a max number of readdir calls that could be in progress at any one time.
At least a simple naive approach to this sent performance going off a cliff if the max parallel number was less than a couple thousand. ("Cliff" = about a 20% reduction in performance.) Afaict, the slowdown happens just due to the added work of pushing into an array and checking the status.
Putting the throttling up higher (ie, around walkCB2 or walkCB3) isn't possible, because it's a "fan out" kind of action, so it'll deadlock if it hits the limit.
Doing this properly without a significant perf hit looks like it might be a pretty significant refactor.

Información sobre ivex


View new market proposals

As a console user
I want to be able to view market proposals
So that I can see if a market idea has already been tabled or to create my own
Acceptance Criteria
I can see what markets are existing
I can see what markets new markets have been proposed
I can see relevant details about the new proposed markets (TBC)
I can click on the new market proposal and be taken to the proposal details
Tasks

[ ] Add tabs to /markets page (markets, proposed markets)
[ ] Render a table of NewMarket proposals with status of STATE_OPEN, STATE_PASSED and STATE_WAITING_FOR_NODE_VOTE

Note no subscription required as this data will be fairly static. Instead lets poll every 10 seconds

[ ] Render the following columns

[ ] Market (NewMarket.instrument.code)
[ ] Description (NewMarket.instrument.code)
[ ] Settlement asset (FutureProduct.settlementAsset)
[ ] State (Proposal.state)
[ ] Vote data, yes/no  (Proposal.votes)

Note. Lets hold off on the progress bar UI and just display the data for now. This already exists in the token app. We need to move the logic and component to the governance lib and consume it from there

[ ] Closing date (Proposal.terms.closingDatetime)
[ ] Enactment date (Proposal.terms.enactmentDatetime)

Are we thinking this would just be a link to https://token.vega.xyz/governance or are we bringing the list of proposals into Console?

Matt's confirmed we can show the list of proposals into Console.

Initial idea here: https://www.figma.com/file/K49Nx7XfocShhHcwwQzQkm/Console-V2?node-id=3911%3A36550

Proposed fields, and my best guesses at where they come from:
Market - Proposal.terms.change.instrument.code
Description - Proposal.terms.change.instrument.name
Settlement asset - Proposal.terms.change.instrument.futureProduct.settlementAsset
State - Proposal.state
Voting - Proposal.votes
Closing date - Proposal.terms.closingDatetime
Enactment date - Proposal.terms.enactmentDatetime

Lets do the above but as a new tab on /markets. This will be much simpler to implement as well as test

Some columns disappear when the screen is re-sized @PeteWilliams how would this work here in this case, which columns are priority? Or do we make this scrollable? And / or perhaps we show less columns but again link to the markets page to see all markets with all data?


🎨 Add media plugin #1840

Thanks @padms - one question; can we have the dark background back as well? (better for accessibility/Trude's eye sight) :smile: Otherwise is this approved.

@meols  You can switch to dark theme anytime. [Private Zenhub Image](Private Zenhub Image

Great! Thanks! Approved! :thumbsup:


Add button launch shortcut

Hi! Thanks for the app.
Would you consider adding the ability to launch the flashlight from lock screen with buttons only? It is very convenient. I see four options:

Put a hook on volume buttons, the same way Torchie [1] does it through accessibility service.
Register your app as an assistant app, and trigger it through long-press of power button, but only for enabling flashlight.
The same but with camera
Do background polling the same way KeyMapper [2] does. Not very convenient as it drains the battery.

What do you think?
[1] https://github.com/anselm94/Torchie-Android
[2]: https://github.com/keymapperorg/KeyMapper

Could be a nice-to-have feature.
The most convincing method seems to be the first point you mentioned, via accessibility service.
But I would have to look it up how it works.
Furthermore Torchie does not work on my phone.

A Torchie-like feature is implemented in Version 2.1.0.


Not Allowed Cursor Missing on Disabled Inputs

https://getbootstrap.com/docs/4.2/components/forms/#default-stacked states

Disabled checkboxes and radios are supported, but to provide a not-allowed cursor on hover of the parent , you’ll need to add the disabled attribute to the .form-check-input. The disabled attribute will apply a lighter color to help indicate the input’s state.

All of these examples have a disabled attribute, yet none of them have the not-allowed cursor. I've tried firefox and chrome. Also not sure what it means by parent label. Aren't all the labels in the example siblings of the input rather than a parent? I'm wondering if this meant putting disabled on the .form-check since this is the parent of both the label and the input.
OS: Windows 10 Enterprise (Build 16299.666)
Chrome: 72.0.3626.81
Firefox Quantum: 64.0.2

Currently the disabled attribute isn't widely supported. If you right click the disabled element and simply add cursor:not-allowed; to the example I believe it will give you the behavior you would want.
With this being the case I would assume you would need to apply the css cursor: not-allowed; until the disabled attribute is more widely adopted.

the shorter answer is: we removed cursor: not-allowed ages ago, but missed this reference in the docs
https://github.com/twbs/bootstrap/commit/7056f702408a97f01cb32bc6075d88ec27cdcf52

can't find the original discussion on this, but basically the rationale is along the same lines as here https://github.com/twbs/bootstrap/pull/23485#pullrequestreview-56624098


Change stats source

My API's /stats endpoint is deprecated and will be removed in a future version. See this is issue here for an alternate solution: https://github.com/ahmedsadman/covid19-bd/issues/5. Please update your stats source as soon as you can.

Updated the stat source


copr: request build perms for custom project automatically

...so we don't have to do it manually, which is pretty tedious

Implemented and merged a few hours ago in #776

The docs part was updated here:
https://github.com/packit/packit.dev/pull/154

but still not in prod, hence my confusion

but still not in prod, hence my confusion

Looks like they have multiple error messages for that...  https://github.com/packit/packit-service/pull/783


Awaiting server intialization does not succeed

I have the following code:
package cdt;
import org.apache.log4j.*;
import spark.Spark;
import java.sql.*;

public class App {

    public static void main(String[] args) throws ClassNotFoundException, SQLException {

        int maxThreads = 8;
        int minThreads = 2;
        int timeOutMillis = 30000;
        Spark.threadPool(maxThreads, minThreads, timeOutMillis);

        System.out.println("began initialization.");
        Spark.awaitInitialization();
        System.out.println("finished initalizing");
        Spark.get("/hello", (req, resp) -> "Hello World");

    }

}

the problem is "finished initializing" is never logged. Why? :(

If I remove the Spark.awaitInitialization(); call, I get this error:
[WARNING]
java.lang.NoSuchMethodError: org.eclipse.jetty.util.thread.QueuedThreadPool.<init>(III)V
        at spark.embeddedserver.jetty.JettyServer.create(JettyServer.java:43)
        at spark.embeddedserver.jetty.EmbeddedJettyServer.ignite(EmbeddedJettyServer.java:91)
        at spark.Service.lambda$init$0(Service.java:349)
        at java.lang.Thread.run(Thread.java:745)

awaitInitialization(); blocks the thread until the server has started, so you need to call it after get("/hello", (req, resp) -> "Hello World"); (this is the method call which initializes the server).
It's in the docs: http://sparkjava.com/documentation#awaitinit

If no routes have been registered yall need to throw an error, otherwise bad dev experience.

a call to get() should flip a boolean on Spark object. if the boolean has not been set, and awaitInitialization(); is called, then please throw an err people, it helps us newbs.

If one of you can make a PR, I'll merge it.

I am so out of the loop in the Java world, I haven't coded Java in years

I submitted a pull for this. There is already a boolean which tracks server initialization which can be tapped into.

@mlitcher thanks


Recognise GADT records with typeclass constraints

Thanks for the fix!
Looks like the travis breakage is my fault, I'll look into that.


[iOS] Our custom audio cue sounds stops device music from playing

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Break down in numbered steps
Expected Result:

Music/audio should continue after the cue sound is played

Actual Result:

Music/audio does not continue after the cue sound is played

Platforms:

This was only reported for iOS, other platforms haven't been tested.

[ ] Android: Native
[ ] Android: mWeb Chrome
[x] iOS: Native
[ ] iOS: mWeb Safari
[ ] MacOS: Chrome / Safari
[ ] MacOS: Desktop

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0106c5e948f3fd9c47
Upwork Job ID:<PHONE_NUMBER>278660096
Last Price Increase: 2024-02-21

Issue OwnerCurrent Issue Owner: @Julesssss
Issue OwnerCurrent Issue Owner: @Julesssss

I'm ready to work on this ticket 👍

Thanks, yeah. I found an alternative way of testing and will get back to you shortly 👍

@Julesssss just a friendly ping, you wrote that 4 days ago 👀

I found an alternative way of testing and will get back to you shortly 👍

Do you have any updates?

Thanks for the reminder, will test today.

Here's iOS. It's not perfect, but music does start playing after the notification was received. Closing this, we can improve further later on.
https://github.com/Expensify/App/assets/10736861/56f5508f-0b3a-488e-968a-ed54dc7bad6c


FancyZones_ Replace the default Windows display when hovering over the 'maximize' icon

Description of the new feature / enhancement
I would like the available FancyZone templates to display instead of the default Windows Snap templates when I hover the mouse over a window 'maximize' icon
Scenario when this would be used?
I wouldn't have to open FancyZones to change / select a new layout
Supporting information
No response

/dup #21603


How to obtain the subject dynamically?

How to obtain the subject dynamically?

Set the subject line in your backend code. Here is a tutorial on how to do it in C#.
https://sendgrid.com/docs/for-developers/sending-email/v2-csharp-code-example/


Add new annotations in service.yaml

With expressions it it currently possible to replace the values of existing annotations (there are only two). It would be great if it would be possible to add new ones, too. My use case is networking.istio.io/exportTo which adds support for the Istio ingress (don't know if it's the standard way, in our Kubernetes cluster it's done this way).

Unfornately, this is not supported by YamlPath. This tool only supports replacement of values, not adding new values. So, you can't achieve this using configuration.
The good thing is that you can provide your custom Service resource with this annotation. See how you can do this: https://quarkus.io/guides/deploying-to-kubernetes#using-existing-resources

I won't close this issue, but will add a label "won't fix".

Thanks for your answer, I had that already done as workaround. Sorry to hear it's not possible, I think it would have been a valuable enhancement.


Cannot re-order WAN firewall rules

For my WAN interface, I added a few rules.  The first two rules are the non-editable ones: "Block private networks" and "Block bogon networks".
Moving one of my rule to the third position (just after the 2 non-editable ones) is not working:  The page reloads with a message telling that the firewall rule configuration has been changed and I must apply the changes.  However, the rule I moved is still at the same position.
Note that moving a rule to another position (ex: 4th) is working.

I forgot to mention that I'm running OPNsense <IP_ADDRESS>-i386,  with Chrome 43.0.2357.81.

It seems that I no longer see the issue after having tried to reproduce with Firefox.  So after being able to move my rule to the 3rd position with Firefox, moving any rule in Chrome is also working.  This is strange...

I'm closing this issue for now.


Use gzifstream where appropriate in corpora

We should be able to use gzifstream for at least line_corpus and save quite a bit of disk space for our datasets.

This is actually a bigger pain that I thought it would be.

We can't get the number of documents in a compressed line-corpus format without completely decompressing it to count the lines.

We can't report progress while doing so: we have no idea how big the original file was.

Once we've counted the number of lines, we need to recreate the gzifstream again since they don't currently support "rewinding".

This is significantly uglier than it should be. At this point, I think it might be better to define a third corpus format that has some additional required metadata files (like one that contains just the number of documents) so that we don't have to hack our way around the above problems.

Merged in e2ca148.


correct package name

from sklearn (which works but does not yield the correct package version) to scikit-learn

@krokrob release works correctly 👌


Throwing exceptions across extension host RPC boundaries doesn't preserve Error.name

Does this issue occur when all extensions are disabled?: No

VS Code Version: 1.69.2
OS Version: macOS 12.4 arm64

Steps to Reproduce:

Clone https://github.com/AddieCohen/auth-provider-error
npm install & run the extension.
Run the command "Login with Azure DevOps"
Check the debug console, the error name property is "Error" instead of LoginTimeOutError.

The line in: https://github.com/microsoft/vscode/blob/2980862817f29911a2231f4c88bfc783bd763cab/src/vs/workbench/services/extensions/common/rpcProtocol.ts#L428 doesn't seem to work to preserve the exception name.

Unfortunately we cannot serialize/deserialize arbitrary Error subclasses across RPC boundaries. Having a certain subclass of Error does not automatically lead to the .name property to be set to the subclass name. e.g.

There is a line in the RPC code that tries to preserve the name property but it isn't working, see the issue description.

@segevfiner Please see the screenshot I posted and note how the name property is always Error even for a custom error class that subclasses Error

Exactly. See the issue description, this line tries to preserve it: https://github.com/microsoft/vscode/blob/2980862817f29911a2231f4c88bfc783bd763cab/src/vs/workbench/services/extensions/common/rpcProtocol.ts#L428
But it doesn't work. Probably an Object.defineProperty blocking changing it?

@segevfiner The OP is doing debugging and is under the impression that the debugger displays the .name property of an error in the debugger. But that is false, the debugger displays the ctor name.
The following code snippet demonstrates that simply subclassing from Error does not define the .name property:
export class LoginTimeOutError extends Error {
    constructor(message?: string) {
        super(message);
    }
}
const y = new LoginTimeOutError();
console.log(y.name); // prints Error

In order for the .name property to be changed, a manual step must be taken by whomever is writing the custom class e.g.:
export class LoginTimeOutError extends Error {
    constructor(message?: string) {
        super(message);
        this.name = 'LoginTimeOutError';
    }
}
const y = new LoginTimeOutError();
console.log(y.name); // prints LoginTimeOutError

So the problem here is that the OP and you believe that there is a problem with the RPC code, but the RPC code is doing its job just fine, it serializes the name Error and restores the name Error. The root problem is that the initial error doesn't have a custom name.

This could be it. Do we have any docs about this? If we don't, can we improve the documentation so it's obvious that this how this should be used?

PR to improve docs are always welcome. @jrieken do you have any ideas where we could document how errors are transported across processes?


Persistent damage and holy/unholy traits

There doesn’t seem to be a way to add the holy or unholy trait to persistent damage. Using the AdjustStrike RE to add the holy trait to the damage roll of the initial strike works only with the instant damage application.
This matters for effects like Divine Smite interacting with holy IWR.

Duplicate of #11524


Colors as Computed Properties

I would prefer seeing the generated colours added as computed properties, as we are simply accessing a defined value of a particular type - and not doing any functional computation or state changing.

I like the idea. Something like:
extension UIColor {
    /// Color #FFC034 (alpha 255)
    static var myColor: UIColor {
        return UIColor(named: "MyColor") ?? .clear
    }
}

Accessing like:
UIColor.myColor

I will implement it 👍

Done on 0.5.1


trying to use this operator as a dependency for another operator

I want to automatically install a service mesh control plane and member roll when the operator I'm working on installs an instance. This is through openshift marketplace/operatorhub. The operator I'm working on is https://github.com/SeldonIO/seldon-deploy-operator
But I find that installing the ServiceMeshControlPlane and ServiceMeshMemberRoll through another operator has some limitations.
Installing them on the command line and I can install the control plane and then wait until the pods in istio-system are up and install the other and that works. The wait seems to be necessary or else the ServiceMeshMemberRoll never gets a status and any members I add to it don't get registered in the mesh.
So I need a similar wait condition in the automated install. I can do that by adding a helm hook with a sleep in it. But once all the istio objects are created then istio somehow blocks the operator itself from creating further resources:
{"level":"error","ts":1592242827.2561026,"logger":"helm.controller","msg":"Release failed","namespace":"seldon","name":"example-seldondeploy","apiVersion":"machinelearning.seldon.io/v1alpha1","kind":"SeldonDeploy","release":"example-seldondeploy","error":"failed to install release: failed post-install: warning: Hook post-install seldon-deploy/templates/openshift-istio.yaml failed: admission webhook \"smmr.validation.maistra.io\" denied the request: user 'system:serviceaccount:openshift-operators:seldon-deploy-operator' does not have permission to access namespace(s): [seldon]"

That doesn't happen from the command line. The extra-weird thing is that post-install hook isn't even trying to install anything in the seldon namespace, at least not directly. It's trying to create a ServiceMeshMemberRoll in the istio-system namespace and mark the seldon namespace as a member. I guess I am not creating any default member roll at that point. Not sure what it does when there is no member roll.
Any ideas on what could be going on here or what I might be able to do to work around it?

I think the issue here might be that the serviceaccount needs permissions to add a label to the project (maistro.xxxx to identify it as a service mesh member)
this may do the trick, added to permissions in the CSV
  - apiGroups:
          - project.openshift.io
          resources:
          - projects
          verbs:
          - update
          - patch

The issue is that when you're editing the ServiceMeshMemberRoll, the Maistra operator's ValidatingWebhook will make sure that the user editing it (in this case this seems to be your ServiceAccount seldon-deploy-operator) has update permissions on Pods in the namespace that you're trying to add. The reason for this is that adding a namespace potentially means injecting containers into pods.
Granting your ServiceAccount permission to update pods in that namespace should be sufficient:
  - apiGroups:
    - ""
    resources:
    - pods
    verbs:
    - update

Actually I've realised there's a different problem which is actually more of an issue for us. I had missed that to get back to a fresh state I had to remove the istio CRDs manually. Now I see that these CRDs like Gateway and VirtualService are only created when a ServiceMeshControlPlane instance is created.
This imposes a limitation for us as we are installing our operator as a helm operator and we have Gateway and VirtualService resources in our manifest. I was hoping we could create the ServiceMeshControlPlane in a helm pre-install hook but by then it is already too late. Helm checks that it can build the objects in the manifest before it executes any pre-install hooks.
So now I've got a fresh cluster state with just the mesh operator and no control plane and I run the seldon deploy chart with a helm hook to create the control plane... and I get this helm error:
unable to build kubernetes objects from release manifest: [unable to recognize "": no matches for kind "Gateway" in version "networking.istio.io/v1alpha3", unable to recognize "": no matches for kind "VirtualService" in version "networking.istio.io/v1alpha3"]

So I guess we will just have to tell users to install both the mesh operator and a control themselves by following the mesh install instructions.

Closing this as we don't use GitHub issues. If you encounter a bug, please file an issue on our Red Hat JIRA

Closing this as we don't use GitHub issues. If you encounter a bug, please file an issue on our Red Hat JIRA


Prometheus targets are down

What happened?
Followed the installation instructions to get kube-prometheus running on my kops cluster. Initially, I used the default jsonnet file, when that did not work I added the kops mixin. In both cases, many of the Prometheus targets were down. Alertmanager was also on a crashback loop
Did you expect to see some different?
I expected to see all Prometheus targets up and Grafana displaying the information. However, many targets were down and Grafana did not work (templating init failed, bad gateway)
How to reproduce it (as minimally and precisely as possible):
Add the kops mixin line ((import 'kube-prometheus/kube-prometheus-kops.libsonnet') to the jsonnet file. Then compile with the build script given and then deploy on cluster.
Environment

Prometheus Operator version:
quay.io/coreos/prometheus-operator:v0.30.0

Kubernetes version information:
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-20T04:49:16Z", GoVersion:"go1.12.6", Compiler:"gc", Platform:"darwin/amd64"} Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:36:19Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}

Kubernetes cluster kind:
Used kops to create a cluster on AWS. Gossip network was used

Manifests:

KOPS Configuration

apiVersion: kops/v1alpha2
kind: Cluster
metadata:
  creationTimestamp:
  name: test.k8s.local
spec:
  api:
    loadBalancer:
      type: Public
  authorization:
    rbac: {}
  channel: stable
  cloudProvider: aws
  configBase: s3://.....
  etcdClusters:
  - cpuRequest: 200m
    etcdMembers:
    - instanceGroup: master-ap-southeast-1a
      name: a
    memoryRequest: 100Mi
    name: main
  - cpuRequest: 100m
    etcdMembers:
    - instanceGroup: master-ap-southeast-1a
      name: a
    memoryRequest: 100Mi
    name: events
  iam:
    allowContainerRegistry: true
    legacy: false
  kubelet:
    anonymousAuth: false
    authenticationTokenWebhook: true
    authorizationMode: Webhook
  kubernetesApiAccess:
  - <IP_ADDRESS>/0
  kubernetesVersion: 1.14.3
  masterPublicName: api.test.k8s.local
  networkCIDR: <IP_ADDRESS>/19
  networkID: vpc-xxxxxxxx
  networking:
    kubenet: {}
  nonMasqueradeCIDR: <IP_ADDRESS>/10
  sshAccess:
  - <IP_ADDRESS>/0
  subnets:
  - cidr: <IP_ADDRESS>/24
    id: subnet-xxxxxxxx
    name: ap-southeast-1a
    type: Public
    zone: ap-southeast-1a
  topology:
    dns:
      type: Public
    masters: public
    nodes: public

---
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
  creationTimestamp:
  labels:
    kops.k8s.io/cluster: test.k8s.local
  name: master-ap-southeast-1a
spec:
  cloudLabels:
    Name: k8s-master
  image: kope.io/k8s-1.12-debian-stretch-amd64-hvm-ebs-2019-05-13
  machineType: m4.large
  maxSize: 1
  minSize: 1
  nodeLabels:
    kops.k8s.io/instancegroup: master-ap-southeast-1a
  role: Master
  rootVolumeSize: 40
  subnets:
  - ap-southeast-1a
---
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
  creationTimestamp:
  labels:
    kops.k8s.io/cluster: test.k8s.local
  name: nodes
spec:
  cloudLabels:
    Name: k8s-node
  image: kope.io/k8s-1.12-debian-stretch-amd64-hvm-ebs-2019-05-13
  machineType: m4.large
  maxSize: 2
  minSize: 2
  nodeLabels:
    kops.k8s.io/instancegroup: nodes
  role: Node
  rootVolumeSize: 20
  subnets:
  - ap-southeast-1a

*JSONNET FILE
local kp =
  (import 'kube-prometheus/kube-prometheus.libsonnet') +
  (import 'kube-prometheus/kube-prometheus-kops.libsonnet') +
  // Uncomment the following imports to enable its patches
  // (import 'kube-prometheus/kube-prometheus-anti-affinity.libsonnet') +
  // (import 'kube-prometheus/kube-prometheus-managed-cluster.libsonnet') +
  // (import 'kube-prometheus/kube-prometheus-node-ports.libsonnet') +
  // (import 'kube-prometheus/kube-prometheus-static-etcd.libsonnet') +
  // (import 'kube-prometheus/kube-prometheus-thanos-sidecar.libsonnet') +
  {
    _config+:: {
      namespace: 'monitoring',
    },
  };

{ ['00namespace-' + name]: kp.kubePrometheus[name] for name in std.objectFields(kp.kubePrometheus) } +
{ ['0prometheus-operator-' + name]: kp.prometheusOperator[name] for name in std.objectFields(kp.prometheusOperator) } +
{ ['node-exporter-' + name]: kp.nodeExporter[name] for name in std.objectFields(kp.nodeExporter) } +
{ ['kube-state-metrics-' + name]: kp.kubeStateMetrics[name] for name in std.objectFields(kp.kubeStateMetrics) } +
{ ['alertmanager-' + name]: kp.alertmanager[name] for name in std.objectFields(kp.alertmanager) } +
{ ['prometheus-' + name]: kp.prometheus[name] for name in std.objectFields(kp.prometheus) } +
{ ['prometheus-adapter-' + name]: kp.prometheusAdapter[name] for name in std.objectFields(kp.prometheusAdapter) } +
{ ['grafana-' + name]: kp.grafana[name] for name in std.objectFields(kp.grafana) }

Prometheus Operator Logs:

[prometheusoperator.txt](https://github.com/coreos/kube-prometheus/files/3396316/prometheusoperator.txt)

Prometheus Logs:

[prometheus.txt](https://github.com/coreos/kube-prometheus/files/3396341/prometheus.txt)

Grafana Logs:

[grafana.txt](https://github.com/coreos/kube-prometheus/files/3396349/grafana.txt)

Anything else we need to know?:

How did you fix this?