Issue with System.Data.SqlClient.SqlException differences between Win/Mac Fx/Core

Hi
We are facing an issue with difference in behavior between our Windows (based on FX) and Mac (based on .NET 5) implementation for connecting to SQL server. We are trying to make an encrypted connection to a server that doesn't support it.
In both environments we will receive a SqlException, but in windows, we receive -2146893019 as the Number of the error, and in Mac it is 0. We use this number to identify the specific exception (that the user is trying to connect to a non-secure server), but on Mac this is broken.
Is there a bug here in the .NET core implementation ? Is there an alternative way to get this done ?
Some more details.
In windows, we receive the following error message:
"{"A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)"}"
ErrorCode: -2146232060
Source: ".Net SqlClient Data Provider"
Number: -2146893019
InnerException: {"The certificate chain was issued by an authority that is not trusted"} (System.Exception {System.ComponentModel.Win32Exception})
On Mac, we receive:
"A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)"
ErrorCode: -2146232060
Number: 0
InnerException: {System.Security.Authentication.AuthenticationException: The remote certificate was rejected by the provided RemoteCertificateValidationCallback. at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception) at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm) at System.Net.Security.SslStream.ProcessAuthentication(Boolean isAsync, Boolean isApm, CancellationToken cancellationToken) at System.Net.Security.SslStream.AuthenticateAsClient(SslClientAuthenticationOptions sslClientAuthenticationOptions) at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, Boolean checkCertificateRevocation) at System.Net.Security.SslStream.AuthenticateAsClient(String targetHost) at System.Data.SqlClient.SNI.SNITCPHandle.EnableSsl(UInt32 options)}
Source: Core .Net SqlClient Data Provider"

On windows can you set AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows",true);; somewhere ( I usually do it in main) before you touch any sql classes and see if that changes the reporting of the error?

@Wraith2 how will that help ? The problem is that the Mac version doesn't give me any indication I can use to detect that the authentication failed due to encryption not supported.

It'll let us see if the difference in error reporting is down to the network interface strategy and if it is then it can be replicated on windows with that switch which will make debugging much easier.

@Wraith2 for windows, we are using .NET FX 4.0 (yeah I know... ) is there an alternative to the SetSwitch API ? (AppContext doesn't exist)

It should be present on netfx 4.6 and later according to https://apisof.net/catalog/a9bb54b0-2ca2-4d6b-9ee3-120c58aad192 and if you're on an earlier version of the runtime then this library might not be supported (depending on version, one of the MS team will know the details) because it requires netfx 4.6 or later.

I see the mix up now. We are using System.Data.SqlClient (4.8.0). Its not part of this repo.

Yes. I understand. But unfortunately, we have a hard requirement to support older .NET FX versions so we need to still use the System.Data namespace. I will try to refactor to conditionally use the new Microsoft.Data on Mac (That won't be easy at all). Question would be if this issue is exhibited on Mac in the new implementation also. And in any case, I would not be able to help run with that AppContext switch indicated above, since in windows we will be using System.Data anyhow.

So the good news, that switching to Microsoft.Data.SqlClient was super easy (just needed to conditionally reference different namespace and nuget). But the actual issue remains on Mac. We don't get an indication in the error number that can be used to understand that the reason for the connection failure, unlike native windows.

Hi @odhanson, it seems to be an issue with managed SNI as I'm able to reproduce it on Windows using the AppContext switch mentioned by Wraith. I'll look into it.

@johnnypham thanks. Let me know if you need anything else.


Docker log history

If we can have log history be tracked. It'd be nice.
Thanks & Regards

Working on it


dependecy check could not analyze pom.xml for java

For java related projects, when build is successfully done and jar are created in target directory those are only analyzed by dependecy-check not the pom.xml separatly where all other dependecy are mentioned.
Need to provide feature like to analyze pom.xml.
Thank You in advance

The DependencyCheck Maven plugin analyzes poms.
https://jeremylong.github.io/DependencyCheck/dependency-check-maven/

Thank You Steve.
I think its quite hard to understand the example. Do you have any full
documentation to explain it could be great like build process , maven
through directory scanning example, any options in cli to provide only
pom.xml to scan ?
On Thu, May 10, 2018 at 10:31 AM, Steve Springett<EMAIL_ADDRESS>wrote:

The DependencyCheck Maven plugin analyzes poms.
https://jeremylong.github.io/DependencyCheck/dependency-check-maven/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jeremylong/DependencyCheck/issues/1270#issuecomment-387952505,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL-TzqIruULd7V1-LqpoEwv7loDCj4Lbks5tw8mXgaJpZM4T5Wtq
.

The CLI doesn’t understand poms which is why we recommend using the maven plugin for maven builds.
In its simplest form, the plugin can be executed from the command line similar to other maven plugins.
mvn org.owasp:dependency-check-maven:check

If you want to customize the execution or automate it as part of the build, the examples and the configuration link provides all necessary info.

I am also confused by this. when run org.owasp:dependency-check-maven working perfect，but why can not run cli in pom.xml's current directory?
why“CLI doesn’t understand poms ” ？

The CLI doesn't have dependencies on Maven core, so it doesn't know how to resolve Maven dependencies. This keeps the CLI lightweight and puts an emphasis on using best-practices. We've always recommended that if a Dependency-Check plugin exists for a given build system (Maven, Gradle, SBT, etc), then users are highly encouraged to use the plugin over the CLI. The results will be much more accurate.


Crash when using pyrotech fix

Using the same versions in your build.gradle
Pyrotech: 1.12.2-1.3.13
Athenaeum-1.12.2-1.17.14
log

It's due to SpongeForge not being present, I'll see if I can add a workaround so it doesn't crash when Sponge is missing.


TestPeerConnection_GetStats flaky on windows 10 (v2.2.15, v2.2.16, v2.2.17)

Your environment.

Version: v2.2.15, v2.2.16, v2.2.17
Browser: -
Other Information: -
Windows: Microsoft Windows [Version 10.0.18363.836]
Go ver: go1.14.4 windows/amd64

What did you do?
gotestsum -f dots --  -count 50 -run ^TestPeerConnection_GetStats$ ./...

What did you expect?
all 50 repeats ok
What happened?
flaky:
v2.2.15
··xxxx··xx·xxx·xx··xxx··x··xx···xx·xxxx····xx·xxxx
DONE 50 tests, 29 failures in 64.218s
v2.2.16
x··xxx·xxxx·xx·xxxx·xxxxx··xxx··xx··xxx···xx·x·xxx
DONE 50 tests, 33 failures in 44.085s
v2.2.17
·xxx·xxxxx··xx·xx·x·x··xxxxxx·x··xxxxx··xxx·x·xx·x
DONE 50 tests, 33 failures in 55.039s

Just reporting, haven't digged.

https://github.com/pion/webrtc/pull/1130
It had been also unstable on Linux, and I added sleep to the test to avoid missing the last packet.
I guess the sleep should be longer due to the timer resolution on Windows.

Closed for https://github.com/pion/webrtc/issues/1466


"panzoomstart" event not fired when zooming using trackpad or mouse wheel but works fine when panning

"panzoomstart" event is not firing when zooming using trackpad or mouse wheel but works fine for panning. same is the case with "panzoomend" event...
Is there any workaround to this that I can meanwhile try?
Thanks!

@hassanzaheer123 It's firing :)


Bug: the cpu usage is incorrect

The cpu usage ins incorrect. it should be valid float.

Can you provide steps to reproduce? From the screenshot, it appears this is on a non-running container?

its a running container (the green color). And its random it doesn't happen every time.

I'm also seeing some nonsensical cpu usages on a singe-core AWS container running Ubuntu and docker:

Probably not related; but I'm seeing some odd CPU numbers as well, https://github.com/bcicen/ctop/issues/200#issuecomment-804906125

closing for https://github.com/bcicen/ctop/issues/276


Update dig.py error handling

I have added an exception to the linux.dig action script to handle the situation where the dig command is not installed, which, it seems on CentOS/RHEL gets the user this error:
{
  "stdout": "",
  "result": "None",
  "stderr": "Traceback (most recent call last):
  File \"/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py\", line 334, in <module>
    obj.run()
  File \"/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py\", line 193, in run
    output = action.run(**self._parameters)
  File \"/opt/stackstorm/packs/linux/actions/dig.py\", line 30, in run
    stdout=subprocess.PIPE)
  File \"/usr/lib64/python2.7/subprocess.py\", line 711, in __init__
    errread, errwrite)
  File \"/usr/lib64/python2.7/subprocess.py\", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
",
  "exit_code": 1
}

This doesn't seem to be an issue on Ubuntu. It appears the dnsutils is installed. At least on the vagrant st2 dev environment. As you can see there is now a better error message if we get an OSError exception, suggesting that dig is either not on the PATH or installed.
I have also update the linux pack readme to include the dig action.
Since this is a core pack and installed by default, I opened the below PR to install bind-utils by default in EL7 distros.
https://github.com/StackStorm/st2-packages/pull/619

@blag updated based on your requests.

Thanks for the contribution!


The development environment is different from packaging, and yup is not packaged 。 .output\server\node_modules

Environment
Operating System: Windows_NT
Node Version: v18.12.1
Nuxt Version: 0.0.0
Nitro Version: -
Package Manager: unknown
Builder: webpack
User Config: -
Runtime Modules: -
Build Modules: -
Reproduction
https://gitee.com/WangJingXuan/new-team
Describe the bug
[nuxt] [request error] [unhandled] [500] Cannot find package 'yup' imported from E:\blogtest\server\chunks\index.get.mjs
at new NodeError (node:internal/errors:393:5)
at packageResolve (node:internal/modules/esm/resolve:860:9)
at moduleResolve (node:internal/modules/esm/resolve:909:20)
at defaultResolve (node:internal/modules/esm/resolve:1124:11)
at nextResolve (node:internal/modules/esm/loader:163:28)
at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
at ModuleWrap. (node:internal/modules/esm/module_job:76:40)
at link (node:internal/modules/esm/module_job:75:36)
I am running fine in the development environment. However, when I package the application and run it, I encounter the following error:
import {Schema, model} from 'mongoose';
import yup from 'yup'
import { getNextId } from '../tools/mongooseUtils';

const {modelName,fieldName} = {
  modelName:'Banner',
  fieldName:'bannerId'
}

const bannerSchema = new Schema({
[fieldName]: { type: Number, unique: true },
title: { type: String },
subtitle: { type: String, required: true },
image: { type: String, required: true },
enabled: { type: Number, required: true },
sort: { type: Number },
}, { timestamps: true });

bannerSchema.pre('save', async function (next) {
if (!this[fieldName]) {
  this[fieldName] = await getNextId(modelName, fieldName);
}
next();
});

export const Banner = model(modelName, bannerSchema)
export const BannerYup = yup.object().shape({
title: yup.string().required('Title is required'),
subtitle: yup.string().required('Subtitle is required'),
image: yup.string().required('Image is required'),
enabled: yup.number().required('enabled is required'),
sort: yup.number().required('sort is required'),
});
The endpoint directory is server/api/banner and the file is imported from server/models/Banner.
To reproduce the issue:
After packaging, run node .output/server/index.mjs (The issue occurs because the node_modules/yup is present locally in the project)
Move the packaged .output folder to a different directory
Run node .output/server/index.mjs from the new location, which triggers the error.
Question:
Why is the yup module not included in the node_modules directory when building?
Please ensure that the translation accurately conveys the information provided.
Additional context
No response
Logs
No response

当我在 nuxt 路由中的api路由为：
/api/banner.ts
此时打包 【yup】将被加入到 server\node_modules
当我在 nuxt 路由中的api路由为：
/api/banner/index.get.ts
/api/banner/index.post.ts
此时打包 【yup】将不会被加入到 server\node_modules

已解决  ：
多次 yarn install 不可行
升级 yarn
npm install yarn@latest -g
再次
yarn install
打包后的【yup】正常

@15844229646 Could you please provide a stackblitz/codesanbox/github reproduction ? I can't access your repository.

Hey! No reproduction was provided for a month. I'll close this issue here.
If it issue persists, feel free to raise a new issue with a reproduction and link this issue ☺


jsx-a11y/label-has-for false negative for component named Label

Hey 👋
I'm using jsx-a11y in my component library, and I noticed that I get a false negative for a component called Label which is actually not a form label and renders as a span. Label is just a name for a UI pattern we've got in our design system that doesn't have anything to do with forms.
My code:
  <LabelGroup>
    Default label
    Darker gray label
    Default outline label
  </LabelGroup>

The Label render function:
const Label = styled('span')`
  display: inline-block;
  font-weight: 600;
  line-height: ${theme.lineHeights.condensedUltra};
  color: ${colors.white};
  border-radius: 2px;
  &:hover {
    text-decoration: none;
  }

as you can see it's just a span with some CSS.
When trying to lint my tests, I get eslint errors for using this component without a htmlFor attribute. I've tried using eslint-disable-next-line jsx-a11y/label-has-for to just silence these linting errors for now but it doesn't seem to be respected

What's your eslint config? Is "Label" set up as a pseudo-label component name?

It is not! I just realized I need to do this, thanks!


Assorted README updates

Explain what soul refers to.
Wrap method names in backticks for easier readability.
Fix misspelling (Pergatory -> Purgatory)
Minor grammar fixes

@andyw8 , this PR has conflicts. Want to close?

I fixed the conflict. Maybe @dubroe can review these minor updates.


[ FEATURE REQUEST] Please add keyboard shortcuts

Mainly:
j and k for next/previous post
l for "like"
Thanks for  Nostrudel

I'd vote for "i" for new post as well and maybe "n" for notifications, "s" for search

Yes, please! Im in. Really good shortcuts are in Pinafore (a Mastodon client) btw.

I really like this idea. there is probably a million different keyboard shortcut I could add but I think ill start with "j" and "k" for navigating the timeline. then a few for some of the common nav items.
However I cant promise that the keyboard shortcuts will work on all views. so you wont be able to navigate around the whole app with just your keyboard. but it should make browsing the timeline a little easier :)

I really like this idea. there is probably a million different keyboard shortcut I could add but I think ill start with "j" and "k" for navigating the timeline. then a few for some of the common nav items.
However I cant promise that the keyboard shortcuts will work on all views. so you wont be able to navigate around the whole app with just your keyboard. but it should make browsing the timeline a little easier :)

That would be a great start.  It's mostly needed in the timeline and when you click on a post to navigate between comments.

Added keyboard shortcuts to the navigation menu in the alpha version

Released

Hello @hzrd149 and thanks for your work on Nostrudel.
Any plans on implementing navigational keyboard shortcuts as in the initial request?
Mainly:
j and k for next/previous post
l for "like"
Thanks

hmm, I forgot about that. Ill re-open the issue so I hopefully wont forget again although ill admit it not very high on my priority list

Great, thank you!

I have some issues with the specific hotkeys implemented here.

⌘+L interferes with browser hotkey for "Open Location", i.e. focus URL bar.
⌘+M interferes with macos hotkey for minimize window.

I have some issues with the specific hotkeys implemented here.
* `⌘+L` interferes with browser hotkey for "Open Location", i.e. focus URL bar.

* `⌘+O` interferes with browser hotkey for "Open File..."

* `⌘+M` interferes with macos hotkey for minimize window.

Are they customizable? I could not find any settings for this.

Same here for ctrl+L on linux. Maybe these should be user set or toggleable

You forgot the most important of all keyboard shortcuts! I probably pressed ESC a solid twenty times already trying to back out from threads or viewing images.

You forgot the most important of all keyboard shortcuts! I probably pressed ESC a solid twenty times already trying to back out from threads or viewing images.

Yes that would be very helpful


Repetitions for grain boundary creation

When creating a grain boundary the repetition is not functional. For example:
System.create.defect.grain_boundary(axis=[1,-1,0], sigma=3, gb_plane=[1,1,-2],
                    element = 'Fe',
                     structure = 'bcc',
                     lattice_constant = 2.83441,
                     uc_a=2, uc_b=2,
                     repetitions=(1, 1, 2),
                     graph = kg
                     )

Leave gb_code input as is, aimsgb input as in. Will have less functionality. Mode inbuilt should combine both, and have args which are common. Combine both features if possible.

In #163, the functions have been modified to support all arguments of GBCode and AIMSGB as they are. Docstrings are also updated to explain what arguments are used with each, and what the args mean. We still need to implemented a 'combined' method.


test-report-with-graphviz

Jenkins trigger for https://github.com/SpiNNakerManchester/sPyNNaker/pull/1080

It looks like graphviz is already installed on Jenkins.

As much a surprise to me as it is to you!  Must have got put on there for something else at some point...

That indeed worked.


rustls 0.22 support

I had a look at the reverted support for rustls 0.22, which should be unblocked now that tokio-rustls 0.25 has been released.
However, I found one change in rustls 0.22 that might force a breaking change to axum-server.
The problem lies here:
fn config_from_der(cert: Vec<Vec<u8>>, key: Vec<u8>) -> io::Result<ServerConfig> {
    // ...
}

The problem is that you can no longer build a ServerConfig directly from a private key in DER Vec<u8> form unless you know which flavor the key is. The expected input to a rustls ConfigBuilder is a PrivateKeyDer, which is defined as
pub enum PrivateKeyDer<'a> {
    /// An RSA private key
    Pkcs1(PrivatePkcs1KeyDer<'a>),
    /// A Sec1 private key
    Sec1(PrivateSec1KeyDer<'a>),
    /// A PKCS#8 private key
    Pkcs8(PrivatePkcs8KeyDer<'a>),
}

and there's no way to get a PrivateKeyDer from a Vec<u8>.
Is axum-server committed to this interface? It would be easier to implement this instead:
fn config_from_der(cert: Vec<PrivateKeyDer<'_>>, key: Vec<u8>) -> io::Result<ServerConfig> {
    // ...
}

but that would mean that the rustls and openssl interfaces diverge.  config_from_pem can stay the way it is, because rustls_pemfile functions return PrivateKeyDer values.

I would like to add that the rustls and openssl interfaces where never quite the same in the first place so for me this wouldn't be that big of an issue, and since axum_server is pre-v1.0.0 we can probably justify a breaking change while moving to v0.7.0.

I opened a draft PR in #106, if anyone else would like to have a look or test the changes.
It's a draft because I'm not sure if it's a good idea to land breaking changes since 0.6 just came out.

#124 closes this.


feat: add support for tuple enum variants

Hello,
I added a quick fix to support enum tuple fields. I'll keep working on this branch, please tell me if anything needs to be changed

IDL Events would be amazing

awsome


Feature Request: Set the default worksheet when the workbook is opened

There doesn't seem to be a way to configure the active worksheet when a workbook is opened.
It looks like EPPlus seems to support an API.
Would be neat if we can have this as a cmdlet.
https://stackoverflow.com/questions/59308799/epplus-set-default-worksheet

@merill Thanks for trying ImportExcel and the request. That can be done in a couple ways. Let me know how it goes. I'll add this to the examples folder.
$data = ConvertFrom-Csv @"
Region,State,Units,Price
West,Texas,927,923.71
North,Tennessee,466,770.67
East,Florida,520,458.68
East,Maine,828,661.24
West,Virginia,465,053.58
North,Missouri,436,235.67
South,Kansas,214,992.47
North,North Dakota,789,640.72
South,Delaware,712,508.55
"@

$xlfile = "$PSScriptRoot\spike.xlsx"
Remove-Item $xlfile -ErrorAction SilentlyContinue

function UseActivate {
    $data | Export-Excel -Path $xlfile -WorksheetName Tab1
    $data | Export-Excel -Path $xlfile -WorksheetName Tab2 -Activate
    $data | Export-Excel -Path $xlfile -WorksheetName Tab3 -Show
}

function UseSelectWorksheet {
    $data | Export-Excel -Path $xlfile -WorksheetName Tab1
    $data | Export-Excel -Path $xlfile -WorksheetName Tab2
    $data | Export-Excel -Path $xlfile -WorksheetName Tab3

    $xlpkg = Open-ExcelPackage $xlfile

    Select-Worksheet -ExcelPackage $xlpkg -WorksheetName Tab3
    Close-ExcelPackage $xlpkg -Show
}

UseSelectWorksheet

Amazing. That worked perfectly @dfinke thanks a lot.
Interestingly, I was trying to figure it out yesterday and copilot was totally hallucinating. It did get very close with Set-ActiveSheet instead of Select-Worksheet. Even the parameter names were correct.

Cool. When copilot first came out I was promoting it about PowerShell and Excel.  Didn’t know about my module. Took a few months is additional training. Then it knew some things and started hallucinating function names. I was like hmm, those are better ones than I came up with.


AbortController is missing

Is this a bug report?
Yes. AbortController is a new spec (you can find info here: https://developers.google.com/web/updates/2017/09/abortable-fetch)
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
  OS: Linux 4.13
  Node: 8.9.4
  Yarn: 1.3.2
  npm: 5.6.0
  Watchman: Not Found
  Xcode: N/A
  Android Studio: Not Found

Packages: (wanted => installed)
  react: ^16.0.0 => 16.2.0
  react-native: ^0.53.0 => 0.53.0

Steps to Reproduce

Istantiate an AbortController
Write a fetch request passing the signal
Try to abort the fetch request

Expected Behavior
The requested behaviour is to abort the fetch request.
Actual Behavior
Nothing happens
Reproducible Demo
Something like this:
const controller = new AbortController();
const signal = controller.signal;

setTimeout(() => controller.abort(), 5000);

fetch(url, { signal }).then(response => {
  return response.text();
}).then(text => {
  console.log(text);
});

My question is a technical one: is the react native core that needs to be updated in order to support this? Or is it something that babel can patch with a new version?

Having same issue. This should be in react-native too.

might be worth waiting for https://github.com/github/fetch/pull/572 to merge.

Very good, at least I should be able to use this polyfill right now in react native right?

I haven’t used it but should be able to use it. Might be worth posting here what you find out

Great, it works!
I'm not on a create react app, but I've just followed the instruction for it (I'm actually on a react-native project not even on a create react native app
So installed the module, imported it like this:
import 'abortcontroller-polyfill';

and then used it like this:
const AbortController = window.AbortController;
const controller = new AbortController()
const signal = controller.signal

I'd not close the issue, because we're still waiting for the official spec.
Thank you @chirag04 for linking me the right resource :relaxed:

@giacomocerquone the polyfill is working on react-native (https://github.com/facebook/react-native/issues/18115#issuecomment-368978604)
do u have an example of it?

Just doing what I wrote in the previous comment should be fine. All the code then would be equals to the one used in the browsers like the piece showed on mozilla doc: https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort
I've actually a production app where I'm using this. I can't share directly the code of course, but I can re-arrange an example if it is strictly needed :)

it works, but won't really cancel the request, it will just throw an exception
tks

Basically it just rejects the promise.
It's true that it won't cancel the request (we should also specify precisely what we mean when we write 'cancel'), but as far as I'm concerned, my interest was to not let the request hanging and to 'close the door' to all the responses that would have come after the abort call.

I just tried it today with the polyfills, and it doesn’t work.

Same problem.
Try to cancel fetch after timeout (5 sec), for simulating bad connection I'm using Network link conditioner

$ npm ls whatwg-fetch
└─┬<EMAIL_ADDRESS>  └─┬<EMAIL_ADDRESS>    └─┬<EMAIL_ADDRESS>      └──<EMAIL_ADDRESS>

I think the polyfill works as expected on RN 0.57. But sometimes, the abort event is received after the fetch promise has already resolved and won the Promise.race.
Probably because of using setTimeout that places the dispatch event on a queue.
One way to get around this is checking for controller.signal.aborted flag if you are no longer interested in the response. (e.g. the component is unmounted)

How do you solve the jest mocking when using @giacomocerquone solution?

I've tried to mock AbortController like below and won't work.
export default class AbortController {
  constructor() {
    this.controller = new AbortController();
  }
}

Apparently, this issue should not happen with react-native 0.57 since whatwg-fetch was remove with this commit but I'm not 100% sure.

The polyfill in that commit does not contain any logic for Abort controllers so I do not think it works on latest rn as well (since the vendored file is based on 1.0.0 of whatwg-fetch).

I wrote an article for all the people that were asking me to shed some light about this matter: https://blog.giacomocerquone.com/aborting-fetch-react-native/
In the next one I will give you some ready to use code to reject requests, but this time instead of giving you code I wanted to explain what is going on and how and why is useless to use polyfills in react native as of now.
Enjoy, hope I did a good thing!
As I wrote in the post, in the next article I will share with you my simple and short piece of code that I use to make requests that implements fetch rejection with few lines of code among other things

Seems like work on AbortController for RN was already done.
https://github.com/facebook/react-native/commit/5e36b0c6eb2494cefd11907673aa018831526750

@atkit Yes, work on this has been done, however, a comment on the issue related to this merge says that this work is focussed towards RN 0.60+, hence not support on previous versions.

@raunaqss as I've already said, an implementation from facebook was needed in order to make an abortion work, hence old version cannot be supported. Why the downvote?

Support for this was included in the new version; 0.60, which was released yesterday.
https://github.com/react-native-community/releases/blob/master/CHANGELOG.md#060

@JordanRichards-hx
I just created a fresh Rn project (0.60.5) with typescript. I see nothing added to fetch's RequestInfo and RequestInit interfaces. is the typescript definition files outdated or we must use RN's fetch API differently? I just confused about how I use the feature.

I found an example here:
https://github.com/facebook/react-native/commit/5e36b0c#diff-3e169de4973928b8c4e90923cac0651aR22
And I checked that it is possible to create instance of AbortController but yes @types/react-native still have no information about AbortController so typescript shows an error. I think it is good opportunity to contribute to @types/react-native

Is AbortController an RN built-in class? or I should install it from abort-controller repository
I'm asking because of the typescript issue. maybe it's possible to export a utility function to create it for the user and so there is no need to install the lib in the main project

As I can see from codebase it is installed as dependancy to react-native, but typing information is not yet in place for some reason. Typing information lives outside of react-native in repo for all typescript types. As it is a global class for React Native this typing needs to be provided.
I did not start using this AbortController in my apps yet, but I'm planning to implement timeout and cancel operations at some point. I checked quickly it does work and it cancels operation with special type of Error.


There is no issue in your project.... every thing Is Prefect .Read Me....

SIr i have question there is two more Live stream plat form Can you make these Views Bots of this website
++++++++++++++++++++++
One Is Rumble LiveStream
https://rumble.com/
++++++++++++++++++++++
2and Is This One : vkplay
https://vkplay.live/
Every thing and your project is 100% good Works fines 🥰

Hello, maybe I can try it. I have watched and I see I can do it easily for VK Play, but maybe it's more difficult for Rumble.

Thank you for feedback you can create it for vk i am waiting for vk also sir your Discord not working Thank you
when you have free time then make ok other wise all ok


Vim error: Error detected while processing function 211_SetAutoCmd:

Running vim or mvim causes the following error to output to console:
Error detected while processing function <SNR>211_SetAutoCmd:
line   22:
E117: Unknown function: setinterval

I looked at this github issue, and tried disabling all autocmd calls in ~/.yadr/vim/settings. I haven't tried doing that in ~/.vim/settings though.
Not really sure what's causing this. I did have a separate error earlier with tpope/surround.git. I had to uninstall it because vundle was complaining of a duplicate plugin. Not sure if that's related.

what mvim version are you on? I don't get this error

Sorry for the slow response. Custom Version 8.0 (110)

Would it help to completely uninstall and reinstall the dotfiles? Can you alternatively recommend a way I could debug this? I'm a bit at a loss for how to fix it.

I'm having a similar issue. I'll get back to you if I find a fix. Currently trying to reinstall .yadr, will uninstall macvim / vim and reinstall them afterwards.

@cdminigun Any chance you could document your process for uninstalling .yadr? I'm not entirely sure all the files that it writes to and how it installs or affects zsh? I'd like to uninstall and reinstall it as well but I'm nervous about breaking my environment setup.

Any word on this? @cdminigun Did you have any success?

Apologies for the late response.
I uninstalled pretty much everything and reinstalled and ended up resolving the issue. Unfortunately it has been a while and I don't recall if I had changed anything else.

Okay, thank you. I'll try that and update this ticket with my findings.
--
Andrew Hlavats
On January 24, 2017 at 4:13:44 PM, Christopher Doege<EMAIL_ADDRESS>wrote:
Apologies for the late response.
I uninstalled pretty much everything and reinstalled and ended up resolving the issue. Unfortunately it has been a while and I don't recall if I had changed anything else.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

However, make a copy of all the changes you've made to your dot files. These won't be saved if they were in yadr specific areas.

We didn't have more complaints about this and it's been a while, so I'm taking the liberty of closing this issue, ok? Feel free to reopen it if needed and please do post any relevant information for posterity sake :-) Thanks!!


TS strict aria hooks batch

Closes
Next batch of packages to have strict mode enforced
Please pay extra attention to FocusScope, it was very unsafe in its typing and could use some extra love while reviewing to make sure the intended logic didn't change. It may be helpful for you to turn on strictmode locally for FocusScope on main and go through the process of making it adhere to strictmode in order to review it.
✅ Pull Request Checklist:

[ ] Included link to corresponding React Spectrum GitHub Issue.
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[ ] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

Do you think we will need manual testing for this before release?

Given that this touches FocusScope fairly significantly, I would like to have manual testing for it before releasing it


Create a universal deployment workflow

The goal is to have a single workflow that can deploy to both Staging and Prod using same steps.
Additionally, there are optional parameters that can be used for initial migration from the current scheme (volume deletion, restoration from the backup).
The plan is to test this on staging and once ready, run it on prod to deploy the newest version and migrate to the common structure.
Testing:

successful restore-sanitized-db run
successful staging deploy

with everything: volume deletion, db restoration

Manual changes potentially required on prod:

sudo chown -R github-runner:nogroup /orbitar

Manual changes potentially required on prod:
sudo chown -R github-runner:nogroup /orbitar

We have SGID set on /orbitar, but not SUID, is this the desired behaviour?

@Lexy2 , I addressed all review comments.
Here is the last successful deployment to staging: https://github.com/spaceshelter/orbitar/actions/runs/3673186332/jobs/6210036305
Run with:
 gh workflow run 'Deployment (Universal)'  --ref  universal-deploy -f environment=stage -f delete-volumes=true -f restore-db=true


Travis not enabled

https://travis-ci.org/wilk/microjob

Yep, I was still in the setup phase 😄
Now it should work as expected.


Update .openpublishing.redirection.json (testing the redirect for task  # 25329 )

:x: Validation status: errors

File
Status
Preview URL
Details

.openpublishing.redirection.json
:x:Error

Details

.openpublishing.redirection.json

[Error] Error occurred: Invalid json syntax in W:\byjf-s.openpublishing.redirection.json

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Animation?

Just a question, what do the animations actually do? I have set it to quarteaseoutin but don't see any changes anywhere.
Can you please tell me what the animation animates and when it does that please!
Thanks!

It animates the taskbar icons to their new position.
https://streamable.com/x6npf2

Thank you


Does one ExoPlayer instance support playing back two or multiple audio file

Unfortunately we can't answer all questions. Unclear questions or questions with
insufficient information may not get attention.
Before filing a question:

Ask general Android development questions on Stack Overflow
Search existing issues, including issues that are closed
https://github.com/androidx/media/issues?q=is%3Aissue
For ExoPlayer-related questions, please also check for existing questions on
the ExoPlayer tracker:
https://github.com/google/ExoPlayer/issues?q=is%3Aissue

When filing a question:
Describe your question in detail.
In case your question refers to a problem you are seeing in your app:

Output of running $ adb bugreport in the console

In case your question is related to a piece of media:

URI to test content
For protected content:

DRM scheme and license server URL
Authentication HTTP headers

Don't forget to check ExoPlayer's supported formats and devices, if applicable
(https://developer.android.com/guide/topics/media/exoplayer/supported-formats).
If there's something you don't want to post publicly, please submit the issue,
then email the link/bug report to<EMAIL_ADDRESS>using a
subject in the format "Issue #1234", where #1234 is your issue number (we don't
reply to emails).

Does it support playing both vocal WAV and accompaniment WAV simultaneously? And it can modify the volume values of both tracks separately？   maybe, try myself custom audiorender?  Can you help me?

What you are trying to do is playing multiple concurrent audios, and mix them together. It's not doable in ExoPlayer but you could try CompositionPlayer with it. The set up process is mostly the same with ExoPlayer, but one difference is you need to use Composition objects instead of MediaItems like so
CompositionPlayer player = new CompositionPlayer.Builder(getApplicationContext()).build();
player.setComposition(
    new Composition.Builder(
            new EditedMediaItemSequence.Builder(
                    new EditedMediaItem.Builder(MediaItem.fromUri("Your audio 1"))
                        .setEffects(
                            new Effects(
                                ImmutableList.of(
                                    // Configure your channel mixer beforehand
                                    new ChannelMixingAudioProcessor()),
                                /* videoEffects= */ ImmutableList.of()))
                        .build())
                .build(),
            new EditedMediaItemSequence.Builder(
                    new EditedMediaItem.Builder(MediaItem.fromUri("Your audio 2")).build())
                .build())
        .build());
player.prepare();
player.play();

Please let us know any further questions you have, closing this issue for now.


Search on ID in default GridView gives SQL error

I get the following SQL error on search on the ID field:
Integrity constraint violation – yii\db\IntegrityException
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous
The SQL being executed was: SELECT COUNT(*) FROM `re_ingredient_group` LEFT JOIN `re_ingredient_group_lang` ON `re_ingredient_group`.`id` = `re_ingredient_group_lang`.`ingredient_group_id` WHERE (`id`='1') AND (`re_ingredient_group_lang`.language='en-US')

Error Info: Array
(
    [0] => 23000
    [1] => 1052
    [2] => Column 'id' in where clause is ambiguous
)

Caused by: PDOException
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous

The error is quite clear, the ID field in the where clause is not qualified by the table name. Any idea how to achieve, that the fully qualified field name is used?

Try to use table names at all times. Yii adds a table alias for its current model as: t, but you could easily add the tableName.id prefix. I know is a pain, but would solve your issues with it. I believe that Yii should avoid that conflict automatically but is not happening and its a personal opinion.

Could there be a method in ActiveQuery such that we can enforce custom aliases? For example,
MyModel::find()->as('mm_alias')->all();


feat(python): enable Perf map support

Requires Python 3.12. Alpine cannot be used as it is not built with Perf support.

Something I did not note about the docker.io/python image: it is not built with frame pointer, so the result is not great (https://docs.python.org/3.12/howto/perf_profiling.html#how-to-obtain-the-best-results)


Fix scroll issue on small screens

When the left column is scrolled and the screen goes small, the left column element shows in the scrolled position.
Need to create a menu-like element that will hold the current selected/active tab item and hide the scrollable <ul>. The scrollable <ul> will be visible by clicking a menu button.

Solved by commit d289816


Add support for sliders / tuples in widget interactions

Almost all my widets are setup as double-sided sliders, which return a tuple of values.  This produces an error in the widget interactions section of the report as tuples are not supported.

I don't know what it would take to enable this, but I would like to have that functionality available to me.

I have run into the same problem and agree that this functionality would be great to have. I will have a think about how it could be done.

Hey, thx for reporting and sorry for the long delay!
Just added a fix for this, tuple values now get converted to strings ((0, 100) -> "0 - 100"). Hope this works and doesn't cause other problems. It's on PyPI as version 0.3.1 :)


Fix operators that fail the synchronous firehose test

The following operators currently fail tests that were introduced in #5652 and those failing tests are currently skipped:

[x] catchError - see #5655
[ ] exhaust
[ ] exhaustMap
[ ] multicast
[ ] raceWith
[ ] refCount
[ ] repeat
[ ] repeatWhen
[ ] retry
[ ] retryWhen
[ ] share
[ ] shareReplay
[ ] single
[ ] skipLast
[ ] throttle
[ ] timeout
[ ] timeoutWith

The tests are marked with // TODO: fix firehose unsubscription comments.

:wave: @kobelb
This is the behavior that I would expect. Because exhaustMap will ignore any emissions from its source until the inner-observable hasn't completed. The code of the first example generates an emission into the source, before the inner observable has had a chance to complete. That's why I think that this should be the expected behavior.

the inner observable isn't marked as completed when the next callback is called

Keep in mind that once an observable has completed, then it can no longer emit any values. So, it's not possible to complete before emitting the value. First it emits and after it completes :slightly_smiling_face:
One way to address that would be to observe the resulting observable of exhaustMap through the asapScheduler, like this:
const subject = new BehaviorSubject<number>(0);
const obs$ = subject.pipe(
  tap(() => console.log('before')),
  exhaustMap((val) => {
    return Promise.resolve(val * 100);
  }),
  observeOn(asapScheduler),
  tap(() => console.log('after')),
);

let i = 0;
obs$.subscribe(x => {
  i++;
  console.log(x)
  if (i === 1) {
    subject.next(i); // the `exhaustMap` causes this to have no effect
  }
});

It feels like these two code-paths should behave the same

I disagree. In the second snipped, the inner observable of switchMap creates a micro-task that ensures that when the resulting observable emits the source of exhaustMap has completed. The code that should be equivalent (and it is equivalent), if the inner-observable of switchMap was synchronous, like this:
const subject = new BehaviorSubject<number>(0);
const obs$ = subject.pipe(
  tap(() => console.log('before')),
  exhaustMap((val) => {
    return Promise.resolve(val * 100);
  }),
  switchMap((val) => {
    return of(val);
  }),
  tap(() => console.log('after')),
);

I had to make a change in ConnectableObservable by adding an internal method prepare to prepare the connect subscription before calling connect. I didn't understand why "it's not going to be possible to make the multicast-based tests pass".


Gunicorn worker stops when using wagtail.core.middleware.SiteMiddleware and postgresql

Issue Summary
Gunicorn worker don't get responses when using wagtail and postgresql.
Steps to Reproduce

Start a new project with wagtail start myproject
Setup allowed_hosts
Add the wagtail installed apps

    'wagtail.contrib.forms',
    'wagtail.contrib.redirects',
    'wagtail.embeds',
    'wagtail.sites',
    'wagtail.users',
    'wagtail.snippets',
    'wagtail.documents',
    'wagtail.images',
    'wagtail.search',
    'wagtail.admin',
    'wagtail.core',
    'wagtail.contrib.settings',
    'modelcluster',
    'taggit',

Add the middleware

    'wagtail.core.middleware.SiteMiddleware',
    'wagtail.contrib.redirects.middleware.RedirectMiddleware',

Setup Database

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': os.environ.get('DB_NAME'),
        'USER': os.environ.get('DB_USER'),
        'PASSWORD': os.environ.get('DB_PWD'),
        'HOST': os.environ.get('DB_IP'),
        'PORT': os.environ.get('DB_PORT'),
        'OPTIONS': {'sslmode': 'require', },
    }
}

Or I can do it even faster using wagtail start site

wagtail start site

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': os.environ.get('DB_NAME'),
        'USER': os.environ.get('DB_USER'),
        'PASSWORD': os.environ.get('DB_PWD'),
        'HOST': os.environ.get('DB_IP'),
        'PORT': os.environ.get('DB_PORT'),
        'OPTIONS': {'sslmode': 'require', },
    }
}

python manage.py migrate

Then try to serve the app with gunicorn: gunicorn mysite.wsgi:application --bind <IP_ADDRESS>
And there is a loop of booting worker and a "The connection was reset", or a crash on heroku, depending on how you try to deploy it.
Technical details

Python version: 3.6.9 and 3.7.6
Django version: 3.0.5 and 2.2.12
Wagtail version: 2.8.1 and 2.8.0
Gunicorn version: 20.0.4 and 20.0.4

Looks like it's a bug with an other library that just need to be installed, not even called. Probably django-honeypot but I'm not sure about it.
Anyway I'm not sure there is a point in trying to get to the bottom of this bug.

After further testing, it looks like the problem came from
numpy==1.18.3
opencv-python==<IP_ADDRESS>

Since the "feature detection" with those two libraries is in the docs, I'm reopening the issue.

Hi @wipoulou - please could you provide a set of steps that reproduces the problem, starting from a clean environment?

I haven't tested it from a fresh start in that exact setup yet, (although I've been struggling with this problem for days now) but it should be the same as my first comment, but you also install opencv-python and numpy.
So it would be :

pip install wagtail opencv-python
wagtail start site
setup a postgresql database on a server (I used digital ocean)
python manage migrate
gunicorn mysite.wsgi
Try to access your app, the worker should loop between exit and start

I'm unable to reproduce this with the following steps (from a clean virtualenv created with mkvirtualenv gunicorntest --python=python3.7):
pip install wagtail opencv-python psycopg2 gunicorn
wagtail start gunicorntest
cd gunicorntest
createdb gunicorntest

edit gunicorntest/settings/base.py to contain:
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'gunicorntest',
    }
}

then
./manage.py migrate
gunicorn gunicorntest.wsgi

After this, visiting http://localhost:8000/ succeeds with no issues.

Maybe it's because in my setup the database is on an other server. I just posted it in case someone has the same problem, so they don't have to struggle for days.


[Bug] Incompatibility with LambaControls

Seems to be a Crash on Launch with LambaControls and this mod both installed. The easiest solution is to uninstall this mod, but I like it so... You Know.
crash-2021-01-18_20.20.39-server.txt

Duplicate of #4 , I plan to fix this soon, don't have access to a computer for a couple weeks so it might take a bit.

Duplicate of #4 , I plan to fix this soon, don't have access to a computer for a couple weeks so it might take a bit.


#import <Quickblox/Quickblox.h> not found

Steps for issue
download (https://github.com/QuickBlox/q-municate-ios)
create new demo application
add new pod file
copy all pod listed in downloaded project ,
copy in pod file  , created in new demo application ,
install pod (using github account)
Run application
here it says that , #import < Quickblox/Quickblox.h > not found  in QBChatMessage+QBDateDivider.h file

Hi,
Why are you creating a new podfile and what is the reasoning behind not using ours?

We have a project where chat is one module out of major 10 modules.
which require One to One Chat and Group chat with text , image , video , product and link sharing features so we have to import whole your project into our project so our other module also don't affect.
So kindly provide the suggestion why we are facing above issue.
Your help will be appreciated. Looing forward for your response.

Have you installed Quickblox framework? Through pods or manual installation (details).

i just copy Quickblox framwork package from Q-municate framwork folder . and drag in demo application framwork folder ,

You can't just drag and drop framework into project folder to make it work, please follow our installation steps here: http://quickblox.com/developers/IOS-how-to-connect-Quickblox-framework

@nectarbits  Any updates?

HI, Finally we successfully migrated into our development. Now we would like to utilize for video and link sharing. DO you have any idea how we can do that ?

@nectarbits Could you please create a new issue for your questions?
Closing this for now.


Achievements ordered in the players area in reverse order

This happens in reverse order right now:

The above picture occurred when achieving the 1, then 2, then 3.

I think this is a regression and not an enhancement.  The achievements are no longer in the order in which they were achieved (as what happens in production).  Its now a somewhat random ordering.

I should also note that the special achievements are placed in the right order, but the numbered achievements are not.

Right you are! This regression was introduced a few weeks ago when I was working on support for multiple achievements of the same age.


How Can I Customize The Style of My Lightbox?

I'm trying to put a white background behind my images because I can still see the spinner behind my png images. Also png files don't have a background and I'd like them to have one in general.
The default style that comes in the library, default.js, is applied to the Lightbox component right before it's exported in the last line of src/Lightbox.js:
export default useSheet(Lightbox, defaultStyles);
I've tried calling the react-jss method useSheet() on Lightbox after importing it to the file I'm using it in with my own jss stylesheet, but it doesn't seem to change anything.
I've also tried adding inline style to the Lightbox component.
Code from first approach:
import Lightbox from "react-images";
import reactJss from "react-jss";
import camelCase from "jss-camel-case";
import px from "jss-px";
import nested from "jss-nested";
import vendorPrefixer from "jss-vendor-prefixer";

const jss = create();
const useSheet = reactJss(jss);
jss.use(camelCase());
jss.use(nested());
jss.use(px());
jss.use(vendorPrefixer());

import myStyles from "./default.js";

const StylizedLightbox = useSheet(Lightbox, myStyles);

class MyLightbox extends Component {

[...]

render() {
    return (
        <StylizedLightbox
            [...]
       />

Code from second approach:
import Lightbox from "react-images";

class MyLightbox extends Component {

[...]

render() {
    return (
      <Lightbox style = {{ backgroundColor: "white" }}
        currentImage={this.props.currentImage}
      />
    );
  }

Thank you for any help.

You can at least override it in your own css file:
#react-images-container{
background-color: #FFF;
}

Possible solution: https://github.com/markdalgleish/react-themeable


How to stop reading XML?

I tried closing it using close() on XMLReader itself, but this triggers an exception:
"Sabre\Xml\ParseException: We hit the end of the document prematurely. This likely means that some parser "eats" too many elements. Do not attempt to continue parsing."
I want to stop reading the file once i found the element.

Could you post a code snippet which reproduces the problem?

Interesting use-case. I had not thought of this at all. There's no correct way to do this at the moment. The easiest would be to just throw an exception and catch it somewhere else.

We just figured that, though it's not the cleanest solution 😄
It's quite an interesting use-case when you don't want to reach the end of the document, especially when dealing with rather large XML files.

Check https://github.com/fruux/sabre-xml/pull/110 for a possible solutions to this.

I'm closing this ticket because it's been a while since the last comment.
If this is indeed still an issue, feel free to comment here so we can continue discussing.


hugo profile

Github link : https://github.com/gurusabarish/hugo-profile
Demo link: https://hugo-profile.netlify.app/
Thanks,

hi @gurusabarish thanks for the submission. Can you please ensure the demo site does not link to your personal site.

hi @gurusabarish thanks for the submission. Can you please ensure the demo site does not link to your personal site.

Hi @JugglerX , Thanks for your review.
Now, I changed the demo website look. You can check
Demo site: https://hugo-profile.netlify.app

Hi @JugglerX , please review my theme. I was opened this many days before.


[Road Map] Create an initial theme that people can use right away.

@themsaid I was thinking I can handle this feature of the Roadmap.
Before starting I would like to make a few questions:

Would you like to have a route macro like Route::winkDefault()? Once the package is installed, you just would need to add that line to your route files to load the default theme routes
Would it be correct to create a command like php artisan wink:default-theme or something like that to copy the assets (css mostly) to the public folder? There will be no need on copying views since that can be loaded from package folder. Some place like public/vendor/wink/default.css. Otherwise the default.css can be created on current install command.
I'm not good at the design, so I was thinking of copying your current theme on themsaid.com for now (without the top bar, and routes inside blog just in case it's installed in a currently running app). Would that be appropriate? Simple & Minimal

https://github.com/writingink/wink/pull/31
Closing this for now. Planning to do a fully publishable initial theme that people can use to build their own themes :)


Can't replace a dict attribute with save_changes

Hi,
In my project, I need to completely replace a dict attribute, but when using the state management and save_changes, the dict are merged instead of replaced. This is due to the logic in the following block: https://github.com/roman-right/beanie/blob/513865aadcf61f57c4ba921ce58bb0e7671036ee/beanie/odm/documents.py#L958-L968
How can I continue to use the state management, yet be able to override a whole dict attribute ?
Thanks for the help,

Hi,
Any idea how to replace a whole dict attribute while using the state management ?
Best,

Hey. Sorry for delay and thank you for the PR


Unfortunate conventions for references within  Volume 2

This is the current convention in PDF publication:
If I am in Vol 2a and I want to refer to another section in 2a, I will say, "See Section 3.a.b"
If I am in Vol 2a and I want to refer to a section in Vol 2b, I will say "See ITI TF-2b: 3.y.z"
Ideally over time, in HLTM, these would all change to "See ITI TF-2: 3.f.g"
Here's an example which appears in ITI TF-2: <IP_ADDRESS>.4:
See Section <IP_ADDRESS>.2.3.9 for details of how this message type affects results of a Registry Stored Query [ITI-18] transaction and the end of ITI TF-2b: <IP_ADDRESS>.3.3.2 to see how it affects the Register Document Set-b [ITI-42] transaction

Another note for making links to sections - in both cases, make the link to include the leading words, e.g.
See Section 3.a.b
See ITI TF-2b: 3.y.z
If the text is "See Sections F.G.H and I.J.K" I change it to "See Section F.G.H and Section I.J.K" to make the links consistent, and easier to hit.

I agree with Vassil's suggestion.  There is inconsistency today that can be cleaned up over time.

Have cleaned up references to 2a, 2b, 2c in publications and IGs.  Some will happen at their next publication.


mixtral-8x22b / command-r generation wanders off.

I'm doing my own quant using this:
export CUDA_VISIBLE_DEVICES=0,1,2
python3 convert.py -i ../models/mixtral-8x22b-instruct-oh -o mixtral-8x22b-exl2 -cf mixtral-8x22b-exl2 -l 2048 -b 6.0 -hb 8 -ss 8192
Works fine with a number of smaller models, including Smaug-mixtral-7x22B.
However, with the bigger models, e.g. above, generated output seems to wander off after a couple hundred tokens. Exact same model Q6_K_M.gguf stays on track using same prompt.
I'm sure its something I'm doing wrong, but have no idea what. Ideas? Anything obvious I should try?
(yes, I've played with temp and top_p, as well as prompt template variations, ad infinitum. Using prompt template as specified in mixtral-8x22b-instruct-oh tokenizer-config.json)
runtime:
tokenizer = ExLlamaV2Tokenizer(config)
cache = ExLlamaV2Cache(model)
# Initialize generator
generator = ExLlamaV2StreamingGenerator(model, cache, tokenizer)

# Settings
settings = ExLlamaV2Sampler.Settings()
settings.temperature = 0.1 # default - overriden at uvicorn endpoint
settings.top_k = 50
settings.top_p = 0.8 # default - overriden at uvicorn endpoint
settings.token_repetition_penalty = 1.15
settings.disallow_tokens(tokenizer, [tokenizer.eos_token_id])

# Make sure CUDA is initialized so we can measure performance
generator.warmup()

async def get_stream(request: Request):
    global stop_gen
    global generator, settings, tokenizer
    query = await request.json()
    print(f'request: {query}')
    message_j = query
    ... grab run conditions from query ...
    generator.set_stop_conditions(stop_conditions)
    generator.begin_stream(input_ids, settings)
    return StreamingResponse(stream_data(query, max_new_tokens = max_tokens, stop_on_json=stop_on_json))

Sorry. Amazing what a code review for a post can do. Not sure why this is there:
settings.disallow_tokens(tokenizer, [tokenizer.eos_token_id])
but removing it seems to fix things...

I was just about to say, you probably don't want to disallow the EOS token for an instruct model.
Also, that repetition penalty seems rather high. I try to either avoid it altogether or use a much lower penalty like 1.01, since it indiscriminately penalizes tokens like punctuation which can throw some models off.


#14 issue Create custom link component

@mshaka3 thanks for opening this! Unfortunately, I have taken this on myself in a v2 push of the site where I am planning a lot of other changes, so had to merge my changes into develop. This no longer makes sense given that.
Thank you for taking the time to open the PR originally though, I hope that doesn't deter you from contributing in the future, and I hope the resource has been useful for you! ✌


Fix 651 Make followers and following button into a <Link>

Fixes #651

Does this actually turn those buttons into <a> tags? I dont think it will unless we specify an href attribute on them

@pfrazee Even asAnchor and adding href doesn't seem to make them into <a> tags. I can look more into that but might be how some accessibilityType components get rendered.
Current solution makes the buttons accessible and gives current pointer type which is the main issue.

Ah yeah that's possible. If we include an href that should enable cmd/ctrl+click though yeah? Also maybe we want to drop the button accessibilityType prop if we're able to make it an <a>?

Makes sense @pfrazee I can do that

@pfrazee Done
Also made some improvements are de-duping some code, and making tracking events better


remove styled components

removed move of styled components and cleanup

Amazing, still need to test all the parts of the site to make sure styling is the same, but this looks great.
Can we also get rid of StyledComponentsRegistry as in app/layout.tsx? And references to styled-components in next.config.js and anywhere else in configs?

Amazing, still need to test all the parts of the site to make sure styling is the same, but this looks great.
Can we also get rid of StyledComponentsRegistry as in app/layout.tsx? And references to styled-components in next.config.js and anywhere else in configs?

Need to clean up just HomeScreen component and we can remove this as well

@AndrewCLu @vb7401 clean up done, can you please double check?

Score reveal modal is changed. Current:

Past:

Text in backup version is changed. Current:

Past:

@vb7401 both fixed ! thank you! :)


High contrast settings on Windows lead to poor color choices in app

I confirm (by marking "x" in the [ ] below: [x]):

[x] This is not a troubleshooting question. Troubleshooting questions go here: http://www.mattermost.org/troubleshoot/.
[x] This doesn't reproduce on web browsers (such as in Chrome). If it does, issue reports go to the Mattermost Server repository.
[x] I have read contributing guidelines.

Summary
With a high contrast theme in Windows enabled, the user-set color theme in Mattermost desktop gets overwritten with poorly visible colors.
Environment

Operating System: Windows 10
Mattermost Desktop App version: 4.7.1
Mattermost Server version:  5.36.1

Steps to reproduce
Choose a high contrast theme in Windows.
Expected behavior
Colors in Mattermost should be chosen sensibly.
Observed behavior
Mattermost defaults to a high contrast theme. I realize this is intentional, but the resulting colors are chosen poorly. For instance, the font of the active channel and channels with new messages is exactly the same as for other channels, so there is no way to check for new messages in the channel list.
This behavior seems to be caused by Electron, since I observe the same behavior in Chrome. However, in Chrome I can turn off this behavior under chrome://flags by setting "Forced Clors" to "disabled". Such an option is missing from Mattermost desktop, afaik.
Possible fixes
Add an option to ignore Windows high contrast settings. Another solution would be to choose more sensible colors for high contrast mode, but I assume these colors are set in Electron, so simply ignoring high contrast might be easier to realize.

Hi there, thanks for reporting!
can yo provide a screenshot? I'd like to file a bug, but I'd like to make sure I fill it correctly :)

I would have to obscure almost the whole screenshot due to sensitive information.
But the issue should be easy to reproduce: Activate a high contrast theme in Windows and then open some Mattermost channel. You will see that the font style of the active channel in the left panel is the same as for the inactive channels (normally, it is displayed in bold font).

ok, this is a webapp issue so I'll move to the appropiate repo but I'll also create the jira ticket


Updated CI dep

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.62%. Comparing base (5ba6622) to head (d2d1520).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master       #9   +/-   ##
=======================================
  Coverage   94.62%   94.62%
=======================================
  Files          11       11
  Lines         781      781
=======================================
  Hits          739      739
  Misses         42       42

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


works, but does not open in new window, just sets HTML at the bottom of screen

all the prompt stuff works but it gets added to the bottom of the screen and not into a new window?

What browser, and what version of a browser are you using?

Electron latest version.
On Aug 8, 2017 1:08 AM, "coderaiser"<EMAIL_ADDRESS>wrote:

What browser, and what version of a browser are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/coderaiser/smalltalk/issues/4#issuecomment-320883563,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF7q0VdPtKKD3xLivvWYaNT4VAiRDmcaks5sWBeKgaJpZM4Ov8zh
.

Actually smalltalk should not open new window, it is creates modal window inside webpage similar to ones used in chrome.
Could you show me screenshot?

Yea in about 5 hours when I get to work.. if I'm not half asleep.. xD it is
in the renderer process if that makes any difference
On Aug 9, 2017 12:04 AM, "coderaiser"<EMAIL_ADDRESS>wrote:
Actually smalltalk should not open new window, it is creates modal window
inside webpage similar to ones used in chrome.
Could you show me screenshot?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/coderaiser/smalltalk/issues/4#issuecomment-321171603,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF7q0Q6E_-tlSHuRYppxwA9HAY9dVVpvks5sWVnugaJpZM4Ov8zh
.

Closed due to lack of information.

This is happening in the latest install of electron. It doesn't matter if I call it in the renderer or the main window through IRPC its the same.
PFA screenshot below.

OK, sorry work has been EXTREMELY crazy lately...  the above screen shot is exactly what its doing except i was using the prompt as well.


Error Text

Error information can only displayed in a layout_error. Can you refer a feature like empty text?

There's already an empty view that you can customize with your own view.
Check here empty view

That's ok


Organize scripts

#928  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


How do i get _id property?

Hi
When i getting data, I cant get the _id key.
It is important for me to get it

try this:
http://books.zackyang.com/book?$select=id


Members/lyj branch

What is the purpose of the change

Add personal information of YajingLei

Brief change log

add a new Author: Yajing_Lei

add a Blog Post: Python-notes

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 4 committers have signed the CLA.:white_check_mark:<PHONE_NUMBER>:x: RulanWei:x: Rheaaaaayy:x: Wence-MayYou have signed the CLA already but the status is still pending? Let us recheck it.


cue cmd (run) thread and wait options

Is your feature request related to a problem? Please describe.
Yes this is related to a problem: I have a cue script which queries a rest api and saves content to local files.
These api's are customer-specific and beyond our control. A particular customer, although there are certain to be others,
has a load-balancer in front of their endpoints which is on the lookout for ddos attacks and therefore cancels any requests coming from the same client when they occur too quickly or with too many threads. However we do desire this concurrency,
we need to define, and configure per environment, how many threads and even possibly a wait time between the requests.
So cue tool requests 100 files from an endpoint with the http client and they all run as aggressively as possible and half of them just get cancelled altogether.
Describe the solution you'd like
Some additional fields in cue command definitions to have 'maxThreads' and 'pauseBetweenRequests' (the names need some work obviously) which can be optionally defined. Also, integrated command line flags for these would be nice also, but passing tags for this would also work.
Describe alternatives you've considered
basically having each command, which is defined dynamically, dependent on the previous command to serialize these requests. also having a wrapper function which calls out to 'sleep' at the cli before moving on to the next request.
Additional context
I think this also speaks a little to cue kindness/politeness where we don't want to completely hammer an endpoint system. It's easy for new and/or lazy developers to write the simplest thing that then has the potential to crash a service its retrieving data from. I think the defaults for these should be sensibly 'polite' and then require overrides to retrieve more aggressively.
I know I'm Canadian, but as a former consultant, what I don't want to hear about cue (and something i heard about other tools all the time), was that someone wrote a naive script and now the system is slow/brought to a crawl and therefore it's cue's fault and the api should be restricted or the script can only be run after hours. We should assume positive intent, but that the easy path to writing cue won't cause headaches for its less tech-inclined developers.

i'll add that this bit me a little too when running tool/exec for a large number of parallel tasks.
perhaps there should be a specific warning for this case as well.


Line break between section and previous paragraph

Line break between the "Kubernetes Basics Modules" and the previous paragraph, for consistency.

Contributor License Agreement (CLA) signed!

/check-cla

@stefkiourk Please try follow instructions here to debug CLA status if you have signed it.

I signed it

/assign @zparnold

/lgtm
/approve


Let the OpenshiftControllerManager service to be stopped

Signed-off-by: Miguel Angel Ajo<EMAIL_ADDRESS>

/retest

/retest

@copejon please see https://github.com/redhat-et/microshift/pull/637 for more details, I've moved work here to that PR and I believe I handled your concerns.
We also decided not to change the behaviour of services into soft-failures (@fzdarsky had a stronger opinion on this and didn't want that to be modified). So errors will be Fatalf which forces the process into exit in case of a failure.


Setup the repo's permissions

The project needs to branch and admin permissions set and review.
Acceptance Criteria

Dev should not be able to push to master without a reviewed pull request.
Only leads should able to delete branches.

Reviewed the branch protection and found we meet these requirements.


Setting retry delay on runtime.

Hello, 👋
I'm trying to create a retry strategy that retries based on Zendesk's rate limit response. The response looks something like this:
< HTTP/1.1 429
< Server: nginx/1.4.2
< Date: Mon, 04 Nov 2013 00:18:27 GMT
< Content-Type: text/html; charset=utf-8
< Content-Length: 85
< Connection: keep-alive
< Status: 429
< Cache-Control: no-cache
< X-Zendesk-API-Version: v2
< Retry-After: 93
< X-Zendesk-Origin-Server: ****.****.***.*****.com
< X-Zendesk-User-Id: 338231444
< X-Zendesk-Request-Id: c773675d81590abad33i
<
* Connection #0 to host SUBDOMAIN.zendesk.com left intact
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
Rate limit for ticket updates exceeded, please wait before updating this ticket again

In the headers, it tells us how many seconds to wait with Retry-After header. However,  looking at Tesla.Middleware.Retry, it does not seem like I can set delay base on the response on runtime. If this is something Tesla retry is missing, maybe I can submit a PR? 🙂

maybe I can submit a PR? 🙂
🥳 please do, I am gonna be helping you with it


create long-video QA samples

As mentioned in the paper (see Fig. 3 on page 3), the question-answer pairs were generated by a Large Language Model (LLM). What prompts were used by the LLM to generate the various categories of questions?

We have series of VILA papers coming out recently. If you are asking for LongVILA, then @yukang2017 @XueFuzhao can share more details.

@yukang2017 @XueFuzhao Can you provide me with the prompt?

LongVILA QA prompt. Thanks very much.


Support Podman for container runtime

As docker desktop is now paid license, Are you planning to support other container runtime like Podman which is free.

@KyleAure correct me if I'm wrong. But this question is out of scope for MicroShed. This is because MicroShed uses TestContainers dependency. For testcontainers to use Podman instead of Docker, this guide  can be followed and doesn't require a change in the code right?


Mixing Filtered and Unfiltered Cable Connectors Bug

First of all, I love the mod, thanks for your work!
This seems to happen specifically when first loading the chunks where there are both filtered and unfiltered cable connectors on a system.

Have an inventory hopper feed an inventory connector
Use cable to connect that inventory connector to a line of chests
First set of chests use filtered cable connectors to sort drops from a farm
Final chest in the line uses an unfiltered chest into an open crate in order to dump drops that aren't wanted

This works great, but when unloading and reloading the area, the system seems to prefer the unfiltered cable connector first and then dumps all items, instead of first going through the filtered connectors.  Simply breaking and re-placing the unfiltered cable connector seems to fix it, but it's a hassle to have to do that every time.
I would love to know if there is a better way to achieve what I am doing, however this way is fine if the bug gets fixed!

It seems like the priority of the link cables, filtered or unfiltered, depends on the order in which they are loaded or placed. Items are always placed in the earliest placed link cable that's valid if I place all my link cables without logging in or out.
I haven't been able to consistently reproduce the order changing because of the area loading/unloading, but I have a feeling like the chunk that is loaded earliest will be prioritized when finding an inventory to place items in.
This lack of deterministic prioritization is the one thing that keeps me away from using the mod at the moment, as I'm hoping to have mostly sorted chests, with a few "overflow" chests for unsorted items. As it stands, you can only determine what ends up in what chest if you filter every chest.
I absolutely love the look and feel of the mod apart from the lack of prioritization!

Just ran into this issue as well. Is there a workaround other than building everything into one chunk? This is quite a limiting factor for me right now.


Performance issue when having large object set to save

OrientDB Version: 2.2.20
Java Version: 1.8
OS: Windows 8
I´ve found a performance issue when having large sets of objects pending to save.
The problem occurs when setting a value in a POJO with another one that is already connected with DB (OIdentifiable)
Consider the situation when having 10.000 objects pending to save.
In the following code, the operation newRecords.addAll(newRecords) will insert 10.000 objects (and increasing), every time a setter is used on a POJO object. This code will take almost all the processing time of creating the object set.
public void merge(ODirtyManager toMerge) {
if (isSame(toMerge))
return;
final Set newRecords = toMerge.getNewRecords();
if (newRecords != null) {
if (this.newRecords == null)
this.newRecords = Collections.newSetFromMap(new IdentityHashMap<ORecord, Boolean>(newRecords.size()));
this.newRecords.addAll(newRecords);
}
final Set updateRecords = toMerge.getUpdateRecords();
if (updateRecords != null) {
if (this.updateRecords == null)
this.updateRecords = Collections.newSetFromMap(new IdentityHashMap<ORecord, Boolean>(updateRecords.size()));
this.updateRecords.addAll(updateRecords);
}
...

This situation may not be the most recommended one (using large set of pending objects), but I was not expecting this behaviour on every setter. I suppose it can be optimized or implemented in another way.

hi @jcgouveia,
Yes this is a good point, we rarely have really big transactions, but the case exists, it can be optimized easily moving the collection in case the target collection is empty and do some check on the size and merge the small in the big collection with relative swap if necessary, all this code not need to be multi-thread aware so easy to change.
In any case for a few more version orientdb will need to keep the transaction all in memory so the list has to exist.
thanks for the detailed report, I will work on some optimization soon, feel free to give more suggestion or propose a solution.
Regards

@tglman @lvca , any update on this issue. I am having a similar performance issue right now. Importing around 370,000 records to OrientDB (DB v 2.2.25 with default configure, win10 x64, JDK 1.8). At the first 2000 records, it runs real quick, but after that, it became 1 record/3 sec, and then stable with 1 record/4 sec.
the script:
BEGIN;
LET vol=CREATE VERTEX v_volume SET f_year=2017,f_quantity=59,f_recorded='2017-08-08 15:58:44';
LET province=UPDATE v_province SET f_name='Guangdong', f_recorded='2017-08-08 15:58:44' UPSERT RETURN AFTER @rid WHERE f_name='Guangdong';
LET city=UPDATE v_city SET f_name='Guangzhou', f_recorded='2017-08-08 15:58:44' UPSERT RETURN AFTER @rid WHERE f_name='Guangzhou';
LET pr=UPDATE v_plan_round SET f_name='PR67', f_number=67, f_recorded='2017-08-08 15:58:44', f_updated='2017-08-08 15:58:44' UPSERT RETURN AFTER @rid WHERE f_number=67;
LET brand=UPDATE v_brand SET f_name='Bentley', f_recorded='2017-08-08 15:58:44' UPSERT RETURN AFTER @rid WHERE f_name='Bentley';
LET model=UPDATE v_model SET f_name='Continental GT/GTC/SSp', f_recorded='2017-08-08 15:58:44' UPSERT RETURN AFTER @rid WHERE f_name='Continental GT/GTC/SSp';
CREATE EDGE e_in_pr FROM $vol TO $pr SET f_recorded='2017-08-08 15:58:44';
CREATE EDGE e_has_type FROM $vol TO $brand SET f_recorded='2017-08-08 15:58:44';
CREATE EDGE e_has_type FROM $vol TO $model SET f_recorded='2017-08-08 15:58:44';
CREATE EDGE e_has_type FROM $vol TO [#41:1,#47:0,#18:0,#22:0,#38:0,#29:0,#25:0] SET f_recorded='2017-08-08 15:58:44';
COMMIT RETRY 100;

Have you created indexes on all the fields you're looking up in the WHERE conditions?

@jcgouveia,
I did some optimization of your case that will be released in 2.2.27.
@HuangKBAaron for your case I agree whit the Luca suggestion to introduce indexing for the upsert/where fields
Regards

Hi,
My fix should have solved this problem, closing this issue.
Regards


Roll Flutter from b662d32a358e to 734c3c4f8d5d (8 revisions)

https://github.com/flutter/flutter/compare/b662d32a358e...734c3c4f8d5d
2022-02-04<EMAIL_ADDRESS>Text editing shift + tap + drag interaction (flutter/flutter#95213)
2022-02-04<EMAIL_ADDRESS>use 'dart pub' instead of calling the pub executable directly (flutter/flutter#97749)
2022-02-04<EMAIL_ADDRESS>Fix error in type cast. (flutter/flutter#97778)
2022-02-04<EMAIL_ADDRESS>[flutter_tools] Fix bundle file not found when flavor contains upperc… (flutter/flutter#92660)
2022-02-04<EMAIL_ADDRESS>docs: adjust the flutter.material.RawMaterialButton.mouseCursor template (flutter/flutter#88470)
2022-02-04<EMAIL_ADDRESS>Marks Linux_android opacity_peephole_fade_transition_text_perf__e2e_summary to be unflaky (flutter/flutter#97144)
2022-02-04<EMAIL_ADDRESS>Roll Engine from 91a7ee711403 to 1232caf92f83 (2 revisions) (flutter/flutter#97817)
2022-02-04<EMAIL_ADDRESS>Add dependabot for github actions workflows. (flutter/flutter#97760)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Plugins: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Interactive bot - Run bot, in infinite loop

Hello
I apologize to everyone for my lack of knowledge, is when you do not know where else to consult, I'm at this stage.
I am trying to keep the interactive bot always running and when it presents problems I made a sh script for it to restart. All this is new to me and the script causes it to stop responding and open the script several times.
I would like to know if someone has the script to leave the interactive bot in a loop, or even a link where I can consult how to do it the right way.
Admin, sorry to deviate a little from the subject.

Use cron every second?

You can use tmux or screen utility.


Support wildcards in workspace.members

I have a Cargo.toml at the root of my workspace, which looks like this:
[workspace]
members = ["crates/*"]

Output

Run katyo/publish-crates@v1
Searching cargo packages at '.'
Error: Manifest file 'crates/*/Cargo.toml' not found (ENOENT: no such file or directory, stat 'crates/*/Cargo.toml')

(Run: https://github.com/dblanovschi/robespierre/runs/3641460175)
This seems to be the relevant code:
https://github.com/katyo/publish-crates/blob/5cb50445e250bfeb7f823f4785be2de044f4ba7a/src/package.ts#L130-L136

@dnbln For now this should be supported. Could you help with testing?

Closed as fixed. Feel free reopen this issue.


Feature Request: Add bootstrap styling

Add bootstrap theme for styling.

Hi @Restingo,
Have you tried setting include_css to true? This will include the required CSS for Spotlight and should work with other CSS frameworks like Bootstrap.

Hi @PhiloNL, thanks for your fast reply! I've tried it but it destroys my template (I'm using AdminLTE from https://github.com/jeroennoten/Laravel-AdminLTE) because it includes Normalize.css I think?

Left side is without css, right side is with css.

@PhiloNL any idea?

Would also appreciate a way to enable/add custom css styling.


New solution format

For better serialization, the new solution will be based on Json.

Previous format are already hard implemented, too lazy.


Expose IBackupFileService interfaces to get lists of backed up files

Fixes #15718

@bpasero if this is close to what you had in mind feel free to merge and tweak as desired. One improvement that comes to mind is to store items in the IBackupFilesModel cache using Uri.fsPath instead of Uri.toString, wasn't sure if toString was chosen for a particular reason?

I included the fix for Untitled files with associated path behave very weird #15941 (hash untitled paths too) in this PR as it depends on these changes.


Upgrade spotbugs-maven-plugin version in ingest-batcher-submitter module

Background
Split from:

https://github.com/gchq/sleeper/issues/2048

Description
We would like to update the ingest-batcher-submitter module such that using the latest spotbugs maven plugin passes checks.

Closing as we'll disable the Spotbugs rule instead, see issue:

https://github.com/gchq/sleeper/issues/2133


OCaml 5.1 is not being tested for some reason

Context
capnp-rpc is not being tested on OCaml 5.1, even though the analysis step finds a solution.
See e.g. CI for https://github.com/mirage/capnp-rpc/tree/lwt.
Analysis says (not sure why there are two; 32-bit and 64-bit?):
2024-11-30 09:46.07 [INFO] debian-12-5.1_opam-2.3: found solution in 2.16 s
2024-11-30 09:46.08 [INFO] debian-12-5.1_opam-2.3: found solution in 2.89 s

But there are no 5.1 builds shown.
(found by opam-repo-ci when making a release)
Technical details
This code looks wrong to me:
https://github.com/ocurrent/ocaml-ci/blob/cc9bac43c99dedc42a48b4dc1982157f87a98132/lib/pipeline.ml#L79-L82

5.1 is being tested now after #989. See https://github.com/ocurrent/ocaml-ci/runs/34042001228
Thanks for the report!


Getting error after 1 min of app closed

Getting below error after 1 min of app closed and when tring to send notification
4-09 13:00:41.860  1367  1685 W ActivityManager: Background start not allowed: service Intent { act=com.google.firebase.MESSAGING_EVENT pkg=com.vrk.testFCM1 cmp=com.vrk.testFCM1/.MyFirebaseMessagingService (has extras) } to com.vrk.testFCM1/.MyFirebaseMessagingService from pid=27640 uid=10258 pkg=com.vrk.testFCM1
04-09 13:00:41.861 27640 27640 E FirebaseInstanceId: Error while delivering the message: ServiceIntent not found.
04-09 13:00:41.865  3362  3435 E WakeLock: GCMSEND release without a matched acquire!
04-09 13:00:41.865  3362  3435 W WakeLock: GCMSEND counter does not exist
I think its device specific, but need how to handle in code.

@vrkavathekar are you running the sample app from this repository?

yes

@kroikie have you ever seen this before?
@vrkavathekar can you provide the information about the device / OS / etc that was asked in the issue template?

@samtstern
same problem here.
device : Xiaomi redmi4x
Os:  android


"DataLoader worker exited unexpectedly"

Related to #13, in the sense that this issue is made worse by the indexing process not being resumable.
When indexing a large directory of various types of files (with 69834 images), I get this error:
Traceback (most recent call last):
  File "/home/rob/.local/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 872, in _try_get_data
    data = self._data_queue.get(timeout=timeout)
  File "/usr/lib/python3.9/multiprocessing/queues.py", line 113, in get
    if not self._poll(timeout):
  File "/usr/lib/python3.9/multiprocessing/connection.py", line 262, in poll
    return self._poll(timeout)
  File "/usr/lib/python3.9/multiprocessing/connection.py", line 429, in _poll
    r = wait([self], timeout)
  File "/usr/lib/python3.9/multiprocessing/connection.py", line 936, in wait
    ready = selector.select(timeout)
  File "/usr/lib/python3.9/selectors.py", line 416, in select
    fd_event_list = self._selector.poll(timeout)
  File "/home/rob/.local/lib/python3.9/site-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler
    _error_if_any_worker_fails()
RuntimeError: DataLoader worker (pid 541564) is killed by signal: Killed.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/rob/.local/bin/memery", line 8, in <module>
    sys.exit(__main__())
  File "/home/rob/.local/lib/python3.9/site-packages/memery/cli.py", line 30, in __main__
    app()
  File "/usr/lib/python3.9/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "/home/rob/.local/lib/python3.9/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/rob/.local/lib/python3.9/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/rob/.local/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/rob/.local/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/rob/.local/lib/python3.9/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/typer/main.py", line 497, in wrapper
    return callback(**use_params)  # type: ignore
  File "/home/rob/.local/lib/python3.9/site-packages/memery/cli.py", line 17, in recall
    ranked = memery.core.queryFlow(path, query=query)
  File "/home/rob/.local/lib/python3.9/site-packages/memery/core.py", line 59, in queryFlow
    dbpath, treepath = indexFlow(root)
  File "/home/rob/.local/lib/python3.9/site-packages/memery/core.py", line 31, in indexFlow
    new_embeddings = image_encoder(crafted_files, device)
  File "/home/rob/.local/lib/python3.9/site-packages/memery/encoder.py", line 18, in image_encoder
    for images, labels in tqdm(img_loader):
  File "/home/rob/.local/lib/python3.9/site-packages/tqdm/std.py", line 1133, in __iter__
    for obj in iterable:
  File "/home/rob/.local/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 435, in __next__
    data = self._next_data()
  File "/home/rob/.local/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1068, in _next_data
    idx, data = self._get_data()
  File "/home/rob/.local/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1034, in _get_data
    success, data = self._try_get_data()
  File "/home/rob/.local/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 885, in _try_get_data
    raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly'.format(pids_str)) from e
RuntimeError: DataLoader worker (pid(s) 541564) exited unexpectedly

I'm guessing that the DataLoader process is being killed by the Linux OOM killer? I have no idea what I can do about that though.
Let me know if there's any other information that would help

Wow, I've never seen this before. Have you watched your RAM increase during this process? Does it top out your memory?
Definitely need better support for resuming index. I am planning to convert the database dictionary to an SQLite file, maybe that will help

I'm afraid that it's probably batch 264 rather than a specific image. The
data loader is a pie torch feature on specifically using for batch
processing, so it's doing your 60,000 images in only 500 batches or
whatever.
It absolutely should log the current working file if it's going to crash
tho, you're right
On Tue, Aug 31, 2021, 8:44 AM Rob Miles @.***> wrote:

Good question! I logged the memory usage over time and got this:
https://i.imgur.com/ldJIlUb.png
X axis is seconds. Looks like each image uses a different amount of
memory, and some take a lot. The one at 1400 seconds or so is big but the
system can handle it, and then the one at the end is trying to use ~38 gig
of memory(?) and the OOM killer takes it out.
That's image 264. So either that image is... very large, or it's broken in
a way that makes memery leak memory like crazy. Either way I'd like memery
to tell me the path of the file it's working on, so I can figure this image
out.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/deepfates/memery/issues/22#issuecomment-909304812,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN7DJVE33ZTFBF62Z2V2HL3T7TTGXANCNFSM5C3L33IQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Ah, that makes sense. Does that mean I could maybe fix it in this instance by reducing the batch size?

That could work!
Still doesn't explain why that one batch uses so much memory but could get
you through the bottleneck for now.
I think I hard-coded some batch and number of workers variables that should
actually be flexible based on hardware 😬
On Thu, Sep 2, 2021, 3:25 AM Rob Miles @.***> wrote:

Ah, that makes sense. Does that mean I could maybe fix it in this instance
by reducing the batch size?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/deepfates/memery/issues/22#issuecomment-911445712,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AN7DJVA25GKCE2UPQAWG6TDT747IFANCNFSM5C3L33IQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.