Bug: null-coalescing operator on deserialized int? causes strange results (only on iOS)

Expected behavior
Getting results from nullable types via the ?? operator should return the same value on every platform.
Actual behavior
On iOS calling ?? with a default value of 0 causes the program to return a seemingly random number:<PHONE_NUMBER>
Steps to reproduce

New project
Import jillejr.newtonsoft.json-for-unity via UPM
Add following script to scene:

private string json = "{'NullableIntJson': null}".Replace("'", "\"");
public int? NullableIntProperty { get; set; }

void Start()
{
    Debug.Log("Deserialize...");
    var dc = JsonConvert.DeserializeObject<SimpleResponse>(json);
    Debug.Log("NullableIntProperty.HasValue: " + NullableIntProperty.HasValue);
    Debug.Log("NullableIntProperty: " + (NullableIntProperty ?? 0));
    Debug.Log("NullableIntJson.HasValue: " + dc.NullableIntJson.HasValue);
    Debug.Log("NullableIntJson: " + (dc.NullableIntJson ?? 0));
}

public class SimpleResponse
{
    public int? NullableIntJson { get; set; }
}

Build the game for iOS
Run it and observe the Xcode console

Expected Prints:
Deserialize...
NullableIntProperty.HasValue: False
NullableIntProperty: 0
NullableIntJson.HasValue: False
NullableIntJson: 0
Observed Prints:
Deserialize...
NullableIntProperty.HasValue: False
NullableIntProperty: 0
NullableIntJson.HasValue: False
NullableIntJson:<PHONE_NUMBER>
You can test in the editor and will see that the results are as expected in comparison to an iOS build.
Changing the default value in line  Debug.Log("NullableIntJson: " + (dc.NullableIntJson ?? 0)); from 0 to anything else, will also result in expected outputs. However using 0 always returns a large random number.
As you can see, this only happens if the int? was priorly deserialized by Json-for-Unity, an untouched properties are not affected.
Details

Unity build target: iOS
Newtonsoft.Json-for-Unity package version: 13.0.102
I was using Unity version 2020.3.0f1

Woa! This issue is wild! Extreamly interesting find @Noblauch!
Your other issue (#114) was kind of my go-to response, but this one I have not the slightest of ideas why this is happening. I want to try reproduce this as best I can and investigate further
Only thing I could imagine that could solve this is if you marked int? to be fully preserved.
I will test this myself later, but what happens if you add the following link.xml file? :
<linker>
	<assembly fullname="*">
		<type fullname="System.Nullable`1<System.Int32>" preserve="all" />
	</assembly>
</linker>

Copy that snippet and save that to a file named link.xml inside your Assets directory. Any subdirectory of the Assets directory will also work.

Also the obvious workaround is to make sure you use the .HasValue instead of comparing with null as the ?? op does. But that might get ugly and is not that intuitive.
This issue seems highly related to https://issuetracker.unity3d.com/issues/il2cpp-does-not-compile-null-coalescing-operator-properly-for-bool which is stated to have been fixed since 2020.3.2f1. Could you try updating to the 2020.3.2f1 or beyond?

Thanks for the quick reply! I added the link.xml and it seems like it doesn't have any effect. The outcome is still the same.
I'll try the update!
Yep, we are using: var result = variable.HasValue ? variable.Value : 0; for now.
The issue is, that as the project grows, the workaround pile grows bigger. And adding restrictions that you must know and are hard to debug, like this one are making it hard to write solid code. Especially for new developers in the team.

I understand the pain, been there as well. I'll investigate this and see what I can do about it, even if it is resolved by updating, so it doesn't happen for those who are locked to a certain version.

Updating to 2020.3.4f1 indeed fixed the issue. 😦
Good eye ;) We have no problem updating. I think people having issues will find this post as-well, thank you!


IMAP doesn't sync correctly - BAD 'Command Error' following APPEND

Expected behavior
After setting up an IMAP account in K9 mail I'm having perfect 2-way synchronisation with a Desktop mail client application. Everything I do (read, delete) in either application reflects in the other. I would have expected that it stays this way.
Actual behavior
After using it for some month perfectly this way, suddenly about 2 weeks ago I got syncing errors and they do not go away. Issues observed:

When I read a mail in K9, it is marked as such. But after the next sync, it is marked as unread again. Older messages from before the issue (older than 2 weeks when it started happening) stay marked as read (as they should). It seems the 'read' mail status is not propagated.

When I delete a mail in K9, I do not see it anymore in the list, even after a new sync as expected. But if then goto the Desktop mail client, the deleted messages still appear. It seems the deleted messages in K9 are not deleted from the Server. This used to work perfectly.

Steps to reproduce
For the 'read mail' issue:

Read an unread mail in K9 -> it is marked as such
Sync mail again -> the mail is marked as unread again
Steps 1 and 2 can be repeated...

For the 'delete mail' issue:

Delete a mail from K9 -> it is removed from the mail list
Sync mail again -> it does not re-appear again (good)
Sync mail in Desktop mail client -> deleted mail still appears

Environment
K-9 Mail version: Latest 5.010
Android version: 6.0.1 on Rooted Samsung GT-N7100
Account type (IMAP, POP3, WebDAV/Exchange): IMAP
Attached Logs
I have attached 5 logs (filtered from logcat using 'k9' Regex) in chronological order

Read Mail.txt -> Read 1 mail on account 'Henk @ Primestream'
Sync Mail.txt -> Sync mail directly after that (log might show traces of multiple IMAP account)
Sync Mail (Warning Level).txt -> Same as above, but filtered for 'Warning Level' messages
Delete Mail.txt -> Delete one mail from account 'Henk @ Primestream'
Sync Mail.txt -> Sync mail directly after that

1. Read Mail.txt
2. Sync Mail.txt
3. Sync Mail (Warning Level).txt
4. Delete Mail.txt
5. Sync Mail.txt
Errors I see in logs
Looking at the logs, I see at least the following when Syncing mail:
com.fsck.k9.mail.MessagingException: Could not find UID for message based on Message-ID
Caused by: java.io.IOException: readStringUntil(): end of stream reached

Might it be that the issues start happening when there are too many items in a mail folder: I was experiencing the problems during a holiday, when the number of items in the Inbox folder exceeded a few hundred (now it is around 300). Normally I keep the Inbox 'clean' (around 50 messages or so).

Interesting. Just before the exception following the append we get  [BAD, Command Error. 10] but with an unexpected tag.
The series of messages is odd - a continuation followed by a BAD command with an unknown tag.
Because the tag doesn't match the message we sent we ignore it.
But it looks like from that point onwards the connection is dead because we then don't get a response to our UID SEARCH (hence end of stream).
I'm not sure why outlook is throwing a fit here.
Any ideas @cketti ?
11-22 09:19:32.632 12496-12514/com.fsck.k9 V/k9: conn42368062>>> 5 NOOP
11-22 09:19:32.779 12496-12514/com.fsck.k9 V/k9: conn42368062<<<#5# [OK, NOOP completed.]
11-22 09:19:32.788 12496-12514/com.fsck.k9 V/k9: conn42368062>>> 6 APPEND "Sent" (\Seen) {30411}
11-22 09:19:32.926 12496-12514/com.fsck.k9 V/k9: conn42368062<<<#+# [Ready for additional command text.]
11-22 09:19:33.170 12496-12514/com.fsck.k9 V/k9: conn42368062<<<#<br# [BAD, Command Error. 10]

I'm wondering if my issues have the same cause; when mail is marked as read in one of the clients, after a little while I get a new "ghost" mail in my desktop client. There is no new mail, just the notification and signalling of a new mail.

If there is anything I can do to reproduce, test, look at code (?) or whatever, please let me know. I could imagine that removing and adding the IMAP account with this behaviour might get rid of the issue (I have other IMAP accounts in K9 that don't have this problem), but I rather keep it in this state, so if needed I can reproduce & test. Downside is that Inbox sync now only works one way: from Desktop to K9, not reverse. Please advise...

I exported my Account setting for this account from K9, then removed the account and re-imported the saved Account settings. That got rid of the problem, now K9 can sync Read status and delete messages in sync with my other mail clients for the same account. So I guess something got stuck/corrupted in a K9 cache/setting...
Anyway I'm happy that it works again and will notify when it happens again in the future. Should I close this item (even though it has been marked as 'bug') ?

No. There's some bad behaviour here we need to fix.

I can confirm this behaviour. I see it on my two IMAP accounts with two devices:
Device 1:

Android 5.0.1
k9 Mail 5.207

Device 2:

Android 4.1.2
k9 Mail 5.207

Desktop:

Windows 10
Thunderbird Mail Client

Unfortunatly I did not check/compare my logs with this ticket.

Maybe related to #1437

Maybe related to #1437, #1748, #1155, #1809

not K-9 related but imaplib append keeps failing with imaplib.abort: command: APPEND => unexpected response: b'}</style><!--[if BAD Command Error. 10' when }</style><!--[if in message

I have had a similar problem with Geary, and after finding and reading both this bug report and https://github.com/jstedfast/MailKit/issues/542, I think the problem is that my message has a line that is nearly 30,000 characters long. Could your problem also be a line that is longer than the IMAP standard allows?

IMAP shouldn't care about the line length. However, RFC 5322 only allows 1000 characters per line.
K-9 Mail had a bug where it could have generated a message that exceeded this line length limit (see #822). This particular bug has been fixed in K-9 Mail 5.700.
Closing this issue because I don't think there's more we can learn from the logs provided.

And to add from the original issuer of this ticket:

I don't think (but can not tell for sure) that I normally have (or had) mails with ultra-long lines (1000 or even 30.000 chars), but then again can't be 100% sure
I have been using K9 mail ever since and always auto-updated to the latest version. I have not experienced the raised problem since a long time, so I consider it fixed in 'some' (5.700 or other) version

Thanks for everybody contributing to K9, great work !


comments-time-machine-links only works if clicked the three dots menu

Please ensure:

[X] The bug is caused by Refined GitHub. It doesn't happen if I disable the extension.

Include in this issue:

[ ] Screenshots/video/gif demonstrating the bug, if it’s visual
[ ] Console errors, if any

Description
comments-time-machine-links used to work on all comments automatically. But 86b173b (#4893) changed it to work only if you clicked the three dots icon of a comment. This behavior is not documented nor is it commented somewhere.
(Reviews said nothing about it,is the change intended or is it just went unnoticed?)
Example URL
https://togithub.com/denoland/dotland/issues/1768
Browser(s) used
Chrome

To prevent regression like this in future, shall we add a screenshot of inline links to the documentation?


"You need to pass auth instance to use gRPC-fallback client in browser. Use OAuth2Client from google-auth-library."

Hello Guys,
i'm currently working in Node.js and Electron to program a desktop application that extracts information from an image. ( with help from Google Cloud Vision)
So far so good, but if I now try to authorize myself :
const vision = require('@google-cloud/vision');
const client = new vision.ImageAnnotatorClient({
  keyFilename: 'client_secrets.json',
 });

I get the Error mentioned in the title.
I've been trying to find a solution to this (simple) problem for two days. The proposed solutions on Github to this issue did not lead to any improvement.
I would be happy to receive your suggestions
Best Regards,
Yannick

Sorry for the trouble, Yannick. Are you able to do the analyzing on the backend portion of the app, and use a service account JSON key file? Those can be downloaded in the same place as the OAuth-format client_secrets.json.

Hello stephen,
first of all, thank you for the quick response !
Yes, I first wanted to make the solution uncomplicated with Keyfile.json. Just like here:
https://cloud.google.com/blog/products/ai-machine-learning/how-realtimecrm-built-a-business-card-reader-using-machine-learning
But i got the same error again.
I have tried a different API as well to see if it's caused by the APi itself, but didn't change a thing.
maybe there is an easier method for my use case.
To feed you with some information about my project, here is a short summary:
I program a business card reader, which uses a scanned business card to evaluate the photo using the Vision Api and afterwards uses the Natural Language API to split it into categories.
Looking forward to your replies!
Regards

Interesting! That article links to the authentication guide that shows how to generate an API key, which is the name for a string token-like code, as opposed to a “key file”. They didn’t actually use an “API key”, but a service account key file. Did you try getting a key file like they show in this guide:? https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account
You would store that file locally, then pass it as “keyFilename” in the constructor. Alternatively, you can create an environment variable, “GOOGLE_APPLICATION_CREDENTIALS” that is a path to the file and our library will pick it up automatically.

@stephenplusplus @Zanyy browser-side support for our gRPC clients is possible, but experimental. Our peer Alex documents the approach here:
https://github.com/googleapis/google-cloud-node/issues/2933#issuecomment-547657659

@stephenplusplus Good Morning Stephen!
Yes i have tried that already. I also created an environment variable  but unfortunately without success.
I found this Issue_Thread:
https://github.com/googleapis/nodejs-dialogflow/issues/405
Have tried every suggestion but still no changes..
@bcoe I will give it a try, seems interesting!
Haven't seen this solution until now.
I will keep you updated
Regards

A little supplement :
I am a quite inexperienced but inquisitive young programmer. It can be, that there are easier ways to authentificate than the way i try to go.
So I can workaround the problem !
Regards

@Zanyy with Electron, I believe there are two parts to the application, one that runs browser-side (which would require the fallback) and one that runs in Node.js. I think you could potentially start up a server when your application starts that the browser then talks to, this server would not require the gRPC fallback, and might be the better design;
You're being bitten by the fact that our libraries are designed primarily to run on Node.js not in the browser.

Hello all,
sorry for the delayed response, I was working on a workaround.
Decided to use the REST-API, so all my Problems are gone for now.
But thank you @bcoe  and @stephenplusplus for your quick help!
Best Regards
Yannick

:+1: awesome @Zanyy. Let us know if you end up having any more questions.


[WFLY-13782] Tests and documentation for the automatic generation of a self-signed certificate on first use

https://issues.redhat.com/browse/WFLY-13782
Requires https://github.com/wildfly/wildfly-core/pull/4341 to be merged.

I reviewed the tests and have no issues there, the coverage matches the proposed test plan too, so for that part this is ready to be merged.


Bug Report: Takeover accessory not supported

Describe The Bug:
Originally this was an ADP system that was taken over by Xfinity.
Restart Homebridge and system displays messages about unsupported devices (new since update to 3.x).
OS: Synology DSM
Error:
Takeover: Unknown accessory!
To Reproduce:
Restart Homebridge
Expected behavior:
No error messages about unsupported devices
Logs:
[[1/10/2023, 2:08:07 PM] [[[Xfinity Home][ [Takeover: Unknown accessory! [
[[1/10/2023, 2:08:07 PM] [[[Xfinity Home][ [Takeover: Please open an issue about this. [
[[1/10/2023, 2:08:07 PM] [[[Xfinity Home][ [Takeover: {[
[  "firmwareVersion": "0x0001001f",[
[  "hardwareId": "15000d6f000234b774.1",[
[  "hardwareVersion": "1",[
[  "manufacturer": "SMC",[
[  "serialNumber": "000d6f000234b774.1",[
[  "status": "online",[
[  "technology": "zigbee",[
[  "_links": {[
[    "self": {[
[      "href": "/client/icontrol/device/15000d6f000234b774.1"[
[    }[
[  },[
[  "model": "SMCTB01-Z",[
[  "deletable": true,[
[  "deviceType": "peripheral",[
[  "properties": {[
[    "type": "takeoverKeypad",[
[    "label": "Takeover"[
[  },[
[  "name": "Takeover",[
[  "icontrolModel": "SMCTB01-Z",[
[  "id": "15000d6f000234b774.1.0",[
[  "deviceSubtype": "default",[
[  "trouble": [][
[} [

Config:
{
    "bridge": {
        "name": "ZZZ",
        "username": "0E:EE:84:98:C2:5B",
        "port": 51810,
        "pin": "255-19-737",
        "advertiser": "bonjour-hap",
        "bind": [
            "bond0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "name": "Xfinity Home",
            "refreshToken": ******
            "pin": "1597",
            "temperatureSensors": true,
            "logLevel": 3,
            "logWatchdogErrors": false,
            "_bridge": {
                "username": "0E:CA:A4:35:02:C7",
                "port": 52433
            },
            "platform": "XfinityHomePlatform"
        }
    ]
}

Operating System:
Other
Node Version:
v16.16.0
NPM Version:
8.11.0
Homebridge Version:
1.6.0
Plugin Version:
3.0.4

Sorry for the delay, please try version 3.2.0 and let me know if you have any further problems.

Positive confirmation. Fixed.


feat: add code formatter

What is the purpose of the change
EngineConn-Core defines the the abstractions and interfaces of the EngineConn core functions.
The Engine Service in Linkis 0.x is refactored, EngineConn will handle the engine connection
and session management.
Related issues/PRs
Related issues: #2340
Brief change log

add scalafmt, and add it to spotless,
add spotless pom formatter,
reorganize parent pomfile,
upgrade spotless-maven-plugin to 2.24.1, and add to validate phase
scala-maven-plugin to 4.7.1

Checklist

[x] I have read the Contributing Guidelines on pull requests.
[ ] I have explained the need for this PR and the problem it solves
[ ] I have explained the changes or the new features added to this PR
[ ] I have added tests corresponding to this change
[ ] I have updated the documentation to reflect this change
[ ] I have verified that this change is backward compatible (If not, please discuss on the Linkis mailing list first)
[ ] If this is a code change: I have written unit tests to fully verify the new behavior.

主要修改文件有
parent pom文件，
增加.scalafmt.conf
从spark同步了scalastyle-config.xml
增加code-style-idea.xml
其它大多数是自动格式化引起的


Filesystem Trim Support

https://github.com/longhorn/longhorn/issues/836

This PR is ready for review but we need to wait for the dependencies merge first.

@shuo-wu Is this ready for review?

Yes. We need to wait for the engine im PRs before merging this.

In general, LGTM, but have question about ListVolumesFollowsGlobalSettingsRO.

I just update the commit VolumeController enqueue Setting RemoveSnapshotsDuringFilesystemTrim for this issue. PTAL.


[QUESTION] Markdown files with handlebars

My question is: is it possible to use markdown and have it turned into html, then used in a handlebars template with layouts?
For example:
{{#partial 'content'}}
# Heading 1
Bla bla bla
- 1
- 2
- 3
{{/partial}}
{{> myTemplate}}

I think, it is possible using a helper that compiles partials containing MD content.
But I'm not sure whether such helper exists.
To render markdown files into HTML I use the pug-plugin which has build-in :markdown filter. This filter supports the syntax highlighting, see the :markdown examples.

I found the helper-markdown for handlebars.

const markdown = require('helper-markdown');
[...]
    preprocessorOptions: {
      partials: ['src/views/partials/', 'src/views/pages/'],
      helpers: {
        markdown,
      },
    }

npm install --dev helper-markdown

{{#markdown}}
# Heading
bleh blah

{{/markdown}}


Add support for active authentication

Right now, we only use passive authentication by checking the passive attestation placed by country signing authorities in the SOD file. This has some drawback:

It's possible for an attacker to copy the data and generate a proof of passport without physically owning the passport anymore
It's hard to do a privacy preserving nullifier, see tradeoff and implementation ideas here

We want to support active auth and/or chip auth. See country coverage here.
The active auth pubkey is in the DG15 of the SOD file which can be easily checked like the DG1 is currently.
Note that it's apparently been done in Noir by Michael here, his implementation could help.

How can we identify a passport holder exectly own this passport? Can we authenticate the public key of the passport holder in chip by using active authentication?

Hi,
There is no biometric check or password so we have to assume the person that physically owns the passport is the holder.
With active authentication, the passport's public key is hashed in the DG15 with is then signed by the issuing authority, so we can authenticate the validity of the public key.

OK, thank you

Just found another problem about the active authentication. The length of the challenge to be signed is just 8 bytes which is not enough for most use cases. Do you have any idea about this problem?

Hi
If there is no way of signing more data at once, my guess is doing multiple signatures to cover a whole hash.

I think the problem is that an attacker may be able to combine four signatures for 8 bytes. And then pass all the signatures verification step.

Very interesting question. My guess is the following:

if implemented in a circuit, the signatures can be passed as private inputs so this is not a problem. You would reconstruct the 32 bytes sha-256 transaction hash in the circuit from 4 signatures of 8 bytes
if implemented in solidity, as long as the hash function is preimage-resistant this should not be a problem either. The number of possible rearrangements grows as (4n)^4 but finding a meaningful preimage still looks infeasible.

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
I have developed lots of systems that had to handle safety, authorization and authentication taking into account the structure and dynamics of the system and how it's used.
How I plan on tackling this issue
The approach would depend on what works with the original user experience but solves the problem, which as of yet I have not determined

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged
Electrical engineer with 3 years using c++
How I plan on tackling this issue
Circom and using active verification

Hi, There is no biometric check or password so we have to assume the person that physically owns the passport is the holder. With active authentication, the passport's public key is hashed in the DG15 with is then signed by the issuing authority, so we can authenticate the validity of the public key.

I am new to this project, so I apologize for lack of knowledge on the implementation of the authentication scheme. Without government cooperation, I understand one of the only plausible alternate means of identity verification for initial setup would be comparing the picture in the passport to the picture of the current physical owner--a verification which could likely be bypassed on many mobile devices by simply uploading images readily available on the internet, rather than taking a live picture.
This issue could be mitigated if there was a means to enforce the policy that a single passport can only be registered with open passport once. Thus, the initial holder, before the passport is stolen or used by an alternate individual, could register their passport via some means that verifies it has never previously been registered. What measures are in place to ensure the physical passport can not be used by multiple individuals? Passports are most susceptible to theft or access when they are actually being used--which is the purpose of having them in the first place--so this also presents the most risk of malicious cloning.

Correct.
One approach would be to do a liveliness check with a video like many KYC providers do today. As this would be impractical with zk today, it could be done in a TEE.
We prevent reuse of a passport by storing a nullifier derived from hashing the signature of the passport. It's possible to build a recovery scheme that allows someone to regain control of an identity by doing a new passport proof.


consider scrapping the omgd code channel plan and focus on dedicated servers

this is not to say dropping nakama support, but rather getting rid of the channel idea as a repeatable pattern.
it's a lot to continue to support, dedicated servers are there, and the current / other examples can show the pattern just as well if not better (different languages, approaches, etc)
mostly it's a lot of / the only occurence of omgd requiring logic - it may be better as just a build / deploy tool at any rate, and again the examples can be reproduced by anyone.
a slightly big move but may be better long term. can always bring back deleted code. think about it.

consider expanding (the deletions) to this:
no new projects anymore, just bare and examples - the reasoning being with a lot of new and upcoming adjustments, everything will be more and more driven by the profile, a set of folder expectations, and then a set of Dockerfile && docker-compose.yml files, which allows a clean separation of the tool omgd is and whatever game engines / docker containers are being run
the examples can and will still serve as new projects for many as they're so minute, but this approach limits the omgd code tool to a bit less of a burden yet still allows for some manner of accessibility as well as expressed by #223 , which this approach should solve by limiting examples thus far to:

omgd code examples/godot3-nakama
omgd code examples/godot3-dedicated

and a potential third

omgd code examples/godot3-nakama-dedicated


Add OutputType Attribute - wave 7 (Site)

Adds OutputType Attribute to the next 23 cmdlets, for better command completion.
Follow up to https://github.com/pnp/powershell/pull/1763#issuecomment-1099695169

Awesome stuff @fowl2 as always, thank you so much for adding these !


Importing in Typescript

What's the right way to import this library in Typescript?
import * as Amplitude from 'amplitude-js' imports the module, but the typings don't match the actual library. The functions I need to access are in Amplitude.default, but the typing file claims that property doesn't exist: Property 'default' does not exist on type 'typeof import("/Users/chris/bagel/node_modules/@types/amplitude-js/index")'.
import amplitude from 'amplitude-js' fails to compile with this error: Module '"/Users/chris/bagel/node_modules/@types/amplitude-js/index"' has no default export.
const amplitude = require('amplitude-js').default works but is ugly. Is there something I'm missing?

In RN importing with import amplitude from 'amplitude-js/amplitude'; seems working

With the latest version of both the library and the separately published types file I see no issues.

Announcement 📣
Amplitude is introducing a new TypeScript SDK for Browser [BETA]. This new SDK provides improved developer experience, helps users instrument data more seamlessly and provide more control over data being instrumented using custom plugins. The new SDKs also comes with:

Browser env support
Web worker env support
Server-side rendering framework support (ie Next.js)
Tree-shaking support
Custom plugins
Built-in type definitions

To learn more about the new SDK, here are some useful links:

NPM: https://www.npmjs.com/package/@amplitude/analytics-browser
GitHub: https://github.com/amplitude/Amplitude-TypeScript
Documentation: https://developers.amplitude.com/docs/typescript-browser-beta


Update regions

Importing the latest regions, adding a /regions/ and using a bit of hypermedia in the responses to be more awesome.
My Testing:

CURL against the routes

I am going to remake this to separate the generated files out.


br_netfilter is not loadable as a module.

See issue #13969.

It can be a module: CONFIG_BRIDGE_NETFILTER=m in the kernel's config, thus requiring modprobe to load.
NOT LGTM

As writen in net/Kconfig file (Linux source code), CONFIG_BRIDGE_NETFILTER cannot be compiled as a module:
config BRIDGE_NETFILTER
bool "Bridged IP/ARP packets filtering"
Bool means you can only write
CONFIG_BRIDGE_NETFILTER=y
or
CONFIG_BRIDGE_NETFILTER is not set
Trying to use CONFIG_BRIDGE_NETFILTER=m will lead to CONFIG_BRIDGE_NETFILTER=y
Options that can be compiled as a module are "tristate", not "bool".
This way to do is documented in Documentation/kbuild/kconfig-language.txt (Linux source code).

Here's the module I've got out of that option: /lib/modules/3.18.16/kernel/net/bridge/br_netfilter.ko.

Indeed, the BRIDGE_NETFILTER option is tristate since this commit:
https://github.com/torvalds/linux/commit/34666d467cbf1e2e3c7bb15a63eccfb582cdd71f
My bad.
Do you think we have to make a test before trying to load the module? Maybe it had been built using =y, not =m...

@mdavranche I think something like this would work:
(pseudo-code following)
err = modprobe_module
if ok = check_if_bridge_netfilter_is_ok; err != nil && ok != nil {
     error_out
}

I totally agree with this way to do.
I updated my pull request with this (see commit 061b47c87fc351db7d8321639ae754f52c893906).

@unclejack What do you think about this new code?
Thanks in advance for your answer.

@mdavranche Does it actually fail when br_netfilter isn't loaded?

@unclejack I made a few tests to explain exactly what happens.
Test 1: br_netfilter is compiled as a module. Docker with or without patch (same behaviour).
None of the modules that Docker will attempt to load are loaded:
$ lsmod | grep -E "bridge|nf_nat|br_netfilter"
$
Let's start Docker daemon:
docker -d
No warning, everything works well. Easy =)
Test 2, docker without the patch:
docker version
Client version: 1.8.0-dev
Client API version: 1.20
Go version (client): go1.4.2
Git commit (client): 51264fa-dirty
OS/Arch (client): linux/amd64
Server version: 1.8.0-dev
Server API version: 1.20
Go version (server): go1.4.2
Git commit (server): 51264fa-dirty
OS/Arch (server): linux/amd64
We use a 3.16.0 kernel, with br_netfilter builtin:
$ grep BRIDGE_NETFILTER /boot/config-3.16.0
CONFIG_BRIDGE_NETFILTER=y
None of the modules that Docker will attempt to load are loaded:
$ lsmod | grep -E "bridge|nf_nat|br_netfilter"
$
Let's start Docker daemon:
docker -d
We have the following warning:
WARN[0000] Running modprobe bridge nf_nat failed with message: insmod /lib/modules/3.16.0-ovh-amd64/kernel/net/llc/llc.ko
insmod /lib/modules/3.16.0-ovh-amd64/kernel/net/802/stp.ko
insmod /lib/modules/3.16.0-ovh-amd64/kernel/net/bridge/bridge.ko
insmod /lib/modules/3.16.0-ovh-amd64/kernel/net/netfilter/nf_conntrack.ko
insmod /lib/modules/3.16.0-ovh-amd64/kernel/net/netfilter/nf_nat.ko
, error: exit status 1
This is a false positive: "modprobe -va bridge nf_nat br_netfilter" returns an error exit code because the br_netfilter module does not exist. The output is also wrong: it is the stdout of the "modprobe -va bridge nf_nat" command.
 Let's see what happens on next start:
lsmod | grep -E "bridge|nf_nat|br_netfilter"
nf_nat_ipv4            12912  1 iptable_nat
nf_nat                 18241  3 ipt_MASQUERADE,nf_nat_ipv4,iptable_nat
nf_conntrack           87424  6 ipt_MASQUERADE,nf_nat,nf_nat_ipv4,xt_conntrack,iptable_nat,nf_conntrack_ipv4
bridge                106102  0
stp                    12437  1 bridge
llc                    12745  2 stp,bridge
docker -d
We now have the following warning:
WARN[0000] Running modprobe bridge nf_nat failed with message: , error: exit status 1
Same reason: "modprobe -va bridge nf_nat br_netfilter" returns an error exit code because the br_netfilter module does not exist. The output is now empty as "modprobe -va bridge nf_nat" returns nothing (already loaded). Note that we should see an error. The pull request #13980 fixes this output problem.
Note that everything works well, we just have a false warning.
 Everything is fine. bridge and nf_nat modules had been loaded:
lsmod | grep -E "bridge|nf_nat|br_netfilter"
nf_nat_ipv4            12912  1 iptable_nat
nf_nat                 18241  3 ipt_MASQUERADE,nf_nat_ipv4,iptable_nat
nf_conntrack           87424  6 ipt_MASQUERADE,nf_nat,nf_nat_ipv4,xt_conntrack,iptable_nat,nf_conntrack_ipv4
bridge                106102  0
stp                    12437  1 bridge
llc                    12745  2 stp,bridge
When we restart Docker daemon, no warning too, everything works well.

Please, apply this change in https://github.com/docker/libnetwork. We can vendor the library in docker when the change is merged in its master branch.
Closing this PR. Thanks for taking time testing this behavior!

Hello,
A question in lines of "bridge under /proc/sys/net/ being unavailable". Is there a way to modprobe in docker or any other solution to make it available?
Any inputs greatly appreciated!
Thanks!

My personal opinion is that it is not Docker's purpose to do that. I hope Docker will never alter my kernel modules, or whatever system prerequisite it'll need. Such things should be handled by your configuration management system (Puppet, or whatever).


Solving issues

Points 1, 4, 5, 6 from Roadmap ( #63 ).
First 8 commits were in PR #65 (now closed) .
0075d18 contains 2 parts: "Add paper-radio-group" and "Change Protected to Visibility without changing the data type (for this request)". I would prefer not to revert considering 1298ace overwrites some of the files .
Added commits relating validation that don't have any issue reference:

28cc90e checks that the value of the Url field isn't already in the database table
a22e852 checks that the characters of the value of the Url field are URL valid (and it also changes the structure of the validation flow by creating validation functions instead of nested if-then-else statements).

Meh, this includes the commits of the previews pull request. Sorry for the mistake! Let me know if I have to revert.

I have no idea what's going on in the PR. Could you please give an explanation? And there should never be this many PR open at the same time. Please take care of issues like https://github.com/Starcounter/Guidelines/issues/31 while waiting for a review

Description updated.

I get two warnings when building:
warning CS0108: 'MessageAlert.Type' hides inherited member 'CmsItemPage.AlertJson.Type'. Use the new keyword if hiding was intended.
warning CS0108: 'MessageAlert.Target' hides inherited member 'CmsItemPage.AlertJson.Target'. Use the new keyword if hiding was intended.

It also seems like the saving doesn't work properly:

What do you mean by "the saving doesn't work properly"?
I made the steps from you gif and hit F5 at the end and everything is ok (the data was saved).

What do you mean by "the saving doesn't work properly"?
I made the steps from you gif and hit F5 at the end and everything is ok (the data was saved).

I tried again on another machine. This time it worked.

It is :| .
If you can reproduce it again, please let me know so that I can look into it.
Thanks!

I think it's ready to be merged now, These fixes exposed another quite bad issue: https://github.com/StarcounterApps/Content/issues/70


MEP_Klaytn_light_client Proposal

Hey Musala,
thanks for submitting the PR, the team want to query about the estimation delivery of the light client? Or when we can review the contract demo?

The development is already in progress and we already have some code snippet. The eta for the demo should be at the end of the month, I can commit to my own github for MAPO team to review after proposal is passing


Use Locale.ROOT instead of Locale.US

Warnings

:warning:
It looks like this PR contains functional changes without a corresponding test.

  Generated by :no_entry_sign: dangerJS against a4115d8d424d6a847ef4ab32468040ab722de2c8


Is it possible for the resource to refer to a path nested in an array?

For example, consider the following:
const allowExample = new IdentityBasedPolicy({
  statements: [
    {
      resource: ["bd:company:${user.test.abc}"],
      action: "create"
    }
  ]
});

const contextForAllowExample = { user: { test: {abc: ['2']} } };

allowExample.evaluate({
  action: "create",
  resource: "bd:company:2",
  context: contextForAllowExample
}); // true

The above works, which is amazing, but what about:
const allowExample = new IdentityBasedPolicy({
  statements: [
    {
      resource: ["bd:company:${user.test.$.abc}"], // or alternatively ${user.test.[0].abc}
      action: "create"
    }
  ]
});

const contextForAllowExample = { user: { test: [{abc: '2'}] } };
// or even { user: { test: [{abc: ['2']}] } };

allowExample.evaluate({
  action: "create",
  resource: "bd:company:2",
  context: contextForAllowExample
}); // true

hi @yaser-ali-s, sure for example if you want to reference:
const contextForAllowExample = { user: { test: [{abc: '2'}] } };

you could use: user.test[0].abc, so will get '2'

From your example:
const allowExample = new IdentityBasedPolicy({
  statements: [
    {
      resource: ["bd:company:${user.test[0].abc}"], // this is the path to your value
      action: "create"
    }
  ]
});

const contextForAllowExample = { user: { test: [{abc: '2'}] } };

allowExample.evaluate({
  action: "create",
  resource: "bd:company:2",
  context: contextForAllowExample
}); // true


🐛 biome.json ignored when multiple folders open in a VS code session

VS Code version
1.87
Extension version
2.2.2
Biome version
1.6.1
Operating system

[ ] Windows
[X] macOS
[ ] Linux

Description
So I found a nasty bug where my biome.json is ignored when I have two projects open in a single VS code session.
But, the bug only happens if the project that uses Biome is the 2nd workspace.
This works fine, biome.json is found
typescript-project
  - biome.json
python-project

This does not. My "tabs as spaces" configuration is ignored.
python-project
typescript-project
  - biome.json

I assume the bug is the VS code extension assumes one folder or always picks the first one.
Steps to reproduce

Create a new VS code workspace
Add a folder and select a project that does not have a biome.json at its root
Add a folder that has a biome.json
Configure format on save
Go into a typescript file in the 2nd folder, edit and save. Spaces will be replaced with Tabs

Here's my biome.json:
{
  "$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
  "organizeImports": {
    "enabled": true
  },
  "linter": {
    "enabled": false,
    "rules": {
      "recommended": true,
      "suspicious": {
        "noExplicitAny": "off"
      }
    }
  },
  "formatter": {
    "enabled": true,
    "formatWithErrors": false,
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 80,
    "lineEnding": "lf",
    "ignore": []
  },
  "javascript": {
    "formatter": {
      "indentWidth": 2,
      "indentStyle": "space"
    }
  },
  "json": {
    "formatter": {
      "indentWidth": 2,
      "indentStyle": "space"
    }
  }
}

Expected behavior
The Biome extension should be aware of multiple workspaces and use the settings specific to each project.
Does this issue occur when using the CLI directly?
No
Logs
No response

This is a duplicate of https://github.com/biomejs/biome/issues/1630


query response is empty when trying to log in

info: Fetching EVERYTHING...
debug: [fcw] Querying Chaincode: account_read()
debug: [fcw] Sending query req chainId=mychannel, chaincodeId=end2end, chaincodeVersion=v1, fcn=account_read, args=[krhoyt, abc123], txId=df379ff15a4a6339c9d581c619bf28cdba6bc478a2264f58da636e3e4ea67fc0
debug: [fcw] Peer 0 len 4
debug: [fcw] Peer 0 type object
debug: [fcw] Query response is empty undefined
debug: Results from query_function invoke_cc:
debug: { parsed: null,
peers_agree: true,
raw_peer_payloads: [ 'null' ] }
debug: null
debug: Query parameters : [object Object]

I have gone thru the entire repo step by step without getting any errors. When I log in to the application and enter the user id and password nothing happens, I do not get into the application. And in the console window I get the following message:
Any idea how to fix this issue?
info: Fetching EVERYTHING... debug: [fcw] Querying Chaincode: account_browse() debug: [fcw] Sending query req chainId=mychannel, chaincodeId=end2end, chaincodeVersion=v1, fcn=account_browse, args=[], txId=6c68872f0b748c22a69a005847aed398fb3819e496189cb86fdd74c3bd2d3722 error: [Peer.js]: GRPC client got an error response from the peer "grpc://localhost:7051". Error: failed to obtain cds for end2end - transaction not found end2end/mychannel     at /Users/arnelennartfrantzell/Blockchain/todolist/todo-list-fabricV1-master/todo-list-fabric-server/node_modules/grpc/src/node/src/client.js:434:17 error: [Chain.js]: Chain-sendPeersProposal - Promise is rejected: Error: failed to obtain cds for end2end - transaction not found end2end/mychannel     at /Users/arnelennartfrantzell/Blockchain/todolist/todo-list-fabricV1-master/todo-list-fabric-server/node_modules/grpc/src/node/src/client.js:434:17 debug: [fcw] Peer 0 len 81 error: [fcw] query resp looks like an error string Error: failed to obtain cds for end2end - transaction not found end2end/mychannel debug: [fcw] Query response is empty undefined debug: Results from query_function invoke_cc:  debug: { parsed: null,   peers_agree: true,   raw_peer_payloads: [ 'Error: failed to obtain cds for end2end - transaction not found end2end/mychannel' ] } debug: null

@BechirHouas The login dialog contains an IBM logo. Alt+Click on that logo to preload data into the blockchain. The only indication that this operation has been completed is a transaction ID in the developer console.


Feature/LEWW-70 | updating landing (es/en), how-to/organization, other sections + IaC Lib renamed

What?
Commits on Jun 18, 2021

@exequielrafaela - LEWW-70 | updating /user-guide/organization sections - 611e48e
@exequielrafaela - LEWW-70 | Adding new landing and sections figures - 65c98f2
@exequielrafaela - LEWW-70 | updating name from "DevOps Automation Code Library" to "Infrastructure as Code (IaC) library" - b704f0e
@exequielrafaela - LEWW-70 | several eng/spa landing updates. - 72aa728
@exequielrafaela - LEWW-70 |new how-it-works sub-sections + varios sections updated - a455244

Why?

https://github.com/binbashar/le-ref-architecture-doc/issues/66
https://github.com/binbashar/le-tf-infra-aws/issues/47
BIZDEV-43 | [commercial] presentation improvements

@diego-ojeda-binbash I've addressed the improvements suggested in your comments here:

@exequielrafaela - LEWW-70 | improving eks convention support info - 720dfdf
@exequielrafaela - LEWW-70 | introducing leverage cli + sintaxt improvements - 76ef167


does it support running in docker ?

does it support running in docker ?

Yes, you can follow those instructions


feature/void-rpc

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 71.64948% with 55 lines in your changes missing coverage. Please review.

Files with missing lines
Patch %
Lines

src/brokrpc/retry.py
81.67%
15 Missing and 9 partials :warning:

src/brokrpc/rpc/server.py
30.00%
14 Missing :warning:

src/brokrpc/cli.py
58.33%
5 Missing :warning:

src/brokrpc/spec/v1/consumer_pb2.py
0.00%
5 Missing :warning:

src/brokrpc/middleware.py
25.00%
3 Missing :warning:

src/brokrpc/rpc/client.py
66.66%
3 Missing :warning:

src/brokrpc/driver/aiormq.py
85.71%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines
Coverage Δ

src/brokrpc/options.py
79.72% <100.00%> (ø)

src/brokrpc/plugin.py
100.00% <100.00%> (ø)

src/brokrpc/driver/aiormq.py
88.04% <85.71%> (+0.19%)
:arrow_up:

src/brokrpc/middleware.py
68.00% <25.00%> (+33.15%)
:arrow_up:

src/brokrpc/rpc/client.py
90.62% <66.66%> (-9.38%)
:arrow_down:

src/brokrpc/cli.py
72.89% <58.33%> (+72.89%)
:arrow_up:

src/brokrpc/spec/v1/consumer_pb2.py
0.00% <0.00%> (ø)

src/brokrpc/rpc/server.py
65.07% <30.00%> (-7.40%)
:arrow_down:

src/brokrpc/retry.py
83.87% <81.67%> (+29.10%)
:arrow_up:

... and 5 files with indirect coverage changes

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


Validation error messages namespace to gateway

Fixes #1072

These changes look good though I'm not sure they are all encompassing of everything that needs to be updated.

Todo:

Remove Cypress file
Remove logger stuff


[All hosts](community call) Add agenda for October 2022

Learn Build status updates of commit 5d2a031:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/overview/office-add-ins-community-call.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

Learn Build status updates of commit 499b8ac:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/overview/office-add-ins-community-call.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Fixed search icon href

The href for the search icon previously pointed to # instead of /search. I corrected that, although it could be removed altogether as it's redundant to the search nav item and is only present on the dashboard.

That icon is there for searching reasons on the ex dashboard, not as a link to search


Fix missing control flow format argument

Calls to CodeInspection.inspect_controlflow are missing the required format argument. This causes inspect4py to fail when using the -cf flag.
The formatter "png" is now passed as an argument.

@rosafilgueira


Duplicate entries shown in VS Code intellisense whenever type definitions (@types) are installed

VSCode Version: 1.10.2
OS Version: Mac OS Sierra

Steps to Reproduce:

Create a folder and open it in VS Code
Initialize npm, via npm init
Install a few packages, along with its type definition

npm install --save-dev mocha chai chai-http
npm install --save-dev @types/mocha @types/chai @types/chai-http

Create a typescript file, and import one of the modules.

Current behavior:
VS Code intellisense shows duplicate entries while showing intellisense

Expected behavior:
Avoid duplicate entries while showing intellisense.
(Note: This issue does not happen if @types packages isn't installed)

Duplicate of this issue tracked upstream on the TypeScript side: https://github.com/Microsoft/TypeScript/issues/13373


[BEAM-11689] Use public.nexus.pentaho.org for pentaho dependencies in…

…stead of Spring.
The Spring-hosted repository has been made password-protected.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @chamikaramj

R: @chamikaramj

LGTM. Thanks.

LGTM. Thanks.


Lookbehind is unsupported in Safari

Hey this is a very useful package — thanks for publishing it! I did notice however that it doesn't seem to work correctly in Safari. At first glance it seems like the issue is being caused by decamelize and its use of lookbehind which isn't supported in Safari. Here's the error I am seeing in case this is something you want to address:

I confirm this issue appears on Safari Version 15.0 (176<IP_ADDRESS>)

We encountered this today.

Maybe the readme should be updated similarly to how it's here: https://github.com/sindresorhus/decamelize#install

If you're using yarn you can add
"resolutions": {
  "humanize-string/decamelize": "3.0.0"
}

to your package.json

It's finally there on Safari 16.4 🎉


Chore: Extracted the dns monitor to its own monitor-type

⚠⚠⚠ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:

[x] I have read and understand the pull request rules.

Description
This PR lifts the DNS-monitor from the gigantic monitor.js into its own monitor-type
Type of change

Other

Checklist

[x] My code follows the style guidelines of this project
[x] I ran ESLint and other linters for modified files
[x] I have performed a self-review of my own code and tested it
[x] I have commented my code, particularly in hard-to-understand areas
(including JSDoc for methods)
[x] My changes generate no new warnings
[ ] My code needed automated testing. I have added them (this is optional task)

Screenshots (if any)
Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.

I can test more of the monitors' functionality if requested, but given that this is just a code-move,  I don't feel that this would be able to uncover any further bugs. (I have not touched the code at all, just where it lives)
Secondary reason:
It is really hard to find example domains to test against 😅


where is CircularReveal

include ':app',	':lib:CircularReveal:circualreveal'

try git submodule update.I'll add this to read me

OK

Please check again if you have any problems let me know

OK,thank you[?]


[stable/mongodb] MongoDB root password configmap changes on helm upgrade

Describe the bug
When running helm upgrade on mongodb helm chart. The upgrade replaces the configmap with a new configmap for the root user password. This configmap password does not actually update the root user (thank god) but it replaces the actual root user configmap password
Version of Helm and Kubernetes:
Kubernetes: v1.14.6
Helm: v2.14.3
Which chart:
stable/mongodb
What happened:
helm chart replaced the configmap mongodb-root-password when running a helm upgrade
What you expected to happen:
I expect if a configmap already exists, that it wouldn't replace the value in it
How to reproduce it (as minimally and precisely as possible):
Run a helm upgrade on an existing stable/mongodb helm chart

Hi,
Given the stable deprecation timeline, this Bitnami maintained Helm chart is now located at bitnami/charts. Please visit the bitnami/charts GitHub repository to create Issues or PRs.
In this issue we tried to explain more carefully the reasons and motivations behind this transition, please don't hesitate to add a comment in this issue if you have any question related to the migration itself.


getting error in blend mode after auto update

Traceback (most recent call last):
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 337, in run_predict
output = await app.get_blocks().process_api(
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1015, in process_api
result = await self.call_function(
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 833, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "D:\stable-diffusion-webui\extensions\a1111-sd-webui-haku-img\hakuimg\blend.py", line 98, in blend
for alpha, mask_blur, mask_str, mode, img in reversed(zip(*chunks)):
TypeError: 'zip' object is not reversible
maybe its unrelated, not sure. the preview window to the right gets an error box and shows no images

@gsgoldma update again, I already fixed this error


Discussion: ability to load a remote secrets values file

It is a good idea to also load the secrets files from a remote repository, just like described here (for values files): https://github.com/roboll/helmfile#loading-remote-environment-values-files ?
There are some useful use cases, like delegating the whole App config and secret management to developers and separate the helm/helmfile charts from the app code and config.

May be this will help you https://github.com/roboll/helmfile/pull/906

@reixd Did you find solution to pass secret.yaml from external repo?

@zystem thank you for the hint, but I need to use SOPS.
@czomo well yes, but not pretty. Clone the repo with the config and secret files before applying helmfile :D
It's basically the same that helmfile would do, although I would prefer to hide that in my pipeline code


[BUG] height of grouping expand all and select all button

The height of grouping expand all button changed after scrolling which cause expand button and it's row not in the same line. expand A open B....
see the official demo:
http://ui-grid.info/docs/#/tutorial/209_grouping

Can you clarify what you're describing? Maybe with a screenshot?
I'm not experiencing what I understand you are describing. Is this occurring for you in multiple browsers?

My guess it that this is another duplicate of #3394. If not, please provide some screenshots, as suggested earlier.

yes  it's duplicated of #3394 .

then you should probably close this one then @edenchen123 :)


Typo in reference to _refreshData

I suspect "this._refreshData = this.refreshData.bind(this);" should be "this._refreshData = this._refreshData.bind(this);"

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

ID: 3fc8bc19-4e5e-b6f4-34ef-77b004c2afd6
Version Independent ID: 847c467c-0015-1eb9-bdc7-720a40f1cdba
Content: Create your first component using Power Apps Component Framework in Microsoft Dataverse - Power Apps
Content Source: powerapps-docs/developer/component-framework/implementing-controls-using-typescript.md
Service: powerapps
Sub-service: pcf
GitHub Login: @HemantGaur
Microsoft Alias: hemantg

@vieil-in
Thanks for your feedback.
This sample code has been tested and the published code matches the code in the sample index.ts file.
I'm going to need a bit more than a suspicion to change something that I've previously tested and know to work.


CSS should be scoped for every class

From Chrome Web Store:
Some users have seen our styles being overridden.
We could significantly reduce the chance of this happening by prefixing all of our classes with var_masterpiece_{class_name}

Although there is still room for improvement, I think PR #17 fixed this good enough for now :)


10173 Misc date and other cleanup

Issue #: /bcgov/entity#10173
Description of changes:

replaced some hex colours with variables
added dialog text for invalid NR
changed expiry date format (per Tracey)
fixed (1) and (2) "buttons"
added date mixin "pacific" methods
cleaned up Legal API mixin
moved NR fetch to Legal API mixin
added nr mixin name check to isNrValid
implemented legal-api-mixin unit tests
implemented name-request-mixin tests
renamed dateToDateString -> dateToYyyyMmDd
renamed dateToTimeString -> dateToPacificTime
renamed fullFormatDate -> dateToPacificDateTime
renamed apiToDateAndTimeString -> apiToPacificDateTime
updated DateMixin to match other UIs
renamed dateToApiIsoDateTimeString -> dateToApi
updated unit tests
updated browsers list
misc cleanup
app version: 0.6.23

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).

Re: code coverage
I am working on new unit tests for a few modules, which should satisfy the minimum coverage %.

No functionality in here has really changes, so I believe this PR is safe to merge to Dev (and beyond).

Re: code coverage
I am working on new unit tests for a few modules, which should satisfy the minimum coverage %.

Woohoo - we now have 100% coverage of legal-api-mixin.ts and name-request-mixin.ts !


0.16.1 No known server / java.lang.RuntimeException

Please provide a detailed title (e.g. "Broker crashes when using TopN query with Bound filter" instead of just "Broker crashes").
Affected Version
0.16.1
Description
I use these files to start druid by docker-compose up -d
docker-compose.yml
environment
but there are some exception

@laglangyue 0.16.1 is quite an old version of druid. Suggest you try with the latest version 25.0 and see if you run into the same issue.

@laglangyue 0.16.1 is quite an old version of druid. Suggest you try with the latest version 25.0 and see if you run into the same issue.

yes，the 24.0.1 is ok, and 0.17.0 is so on. And my customer uses this version. I just want to deploy this version to test my code

Do you know how to solve it

In fact, once I modify the port mapping, this error will occur

Without logs for the broker we cant really assist here as it seems like you are describing two different problems in your issue statement.

Is cluster instability (broker) crashing when running topN queries
Cluster setup when using docker-compse (Services likely either not being deployed or crashing) resulting in the error you are receiving

Without logs for the broker we cant really assist here as it seems like you are describing two different problems in your issue statement.

Is cluster instability (broker) crashing when running topN queries
Cluster setup when using docker-compse (Services likely either not being deployed or crashing) resulting in the error you are receiving

You can reproduce this problem on your local computer，just The recurrence step is to deploy version 0.16.1 using docker-compose up - d.
After deployment, open router(web console), and these exceptions will appear.

@laglangyue Initially with version 25.0.0 i was not having any problem but when i siwtched to mysql this problem arised any solution?

sorry, I don't know, In my opinion, I think it caused by docker host addressing.


sweep: add docs and remove dead code

Straightforward PR - removes the dead code, and adds a readme file.
Accidentally closed #8670, think what happened was the based branch was deleted, so the following PR is automatically closed?

Could we describe in the sample.conf that this setting: ; sweeper.budget= should not be set or has no effect and only the settings in the sweeper.budget group should be used ? I think we need to adopt the sample.conf check script so that we don't need to list it in the first place.


update min requirements

What does this PR do?
Update req because of Optimizer bus
Before submitting

[ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
[ ] Did you read the contributor guideline, Pull Request section?
[ ] Did you make sure your PR does only one thing, instead of bundling different changes together? Otherwise, we ask you to create a separate PR for every change.
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?
[ ] Did you verify new and existing tests pass locally with your changes?
[ ] If you made a notable change (that affects users), did you update the CHANGELOG?

PR review

[ ] Is this pull request ready for review? (if not, please submit in draft mode)

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃

Hello @Borda! Thanks for updating this PR.

In the file pl_bolts/utils/__init__.py:

Line 10:45: W292 no newline at end of file


Novel miRNA annotation hanging?

Hello again,
I'm running the novel annotation pipeline using the following commands:
miRge3.0 -rr -s <file_dir> -lib /miRge3_Lib/ -db mirbase -o mirbase_novel_dir -cpu 6 -on human -ie -ai -mEC -nmir
However after 2 days, the pipeline is still stuck on the following process:
Predicting novel miRNAs
I've ran this twice now with the same result. I understand novel miRNA discovery is likely to take some time to compute, I just wondered if this kind of time scale was normal, or if the program is hanging in some way. The amount of memory being used generally stays at around 23Gb for the discovery process for the full 2 days.

Hi @Glfrey,
I had previously not tested resume function with nmir, I believe the -mEC can't be used with resume function, since error correction happens before the collapsing of reads. Can you try this command again with just -nmir?
miRge3.0 -rr -s <file_dir> -lib /miRge3_Lib/ -db mirbase -o mirbase_novel_dir -cpu 6 -on human  -nmir
Thank you,
Arun.

Hi @arunhpatil
Doh! Of course, that would make sense. I'm running it now and I'll let you know what it does. Thank you for replying so rapidly!
Gill

Hi @arunhpatil,
I left it overnight and it's still on:
`Predicting novel miRNAs
Performing prediction of novel miRNAs...
Start to predict`
Is this expected or indicative of an error. The program has been steadily using 21GB of RAM since the prediction started.

Hi @Glfrey,
This is not expected unless there are too many samples to analyze!. I will test out a sample on my end and get back to you. I apologize for the inconvenience.
Thank you,
Arun.

I agree with what Arun wrote.  Can you give us a sense of how large the input FASTQ file was? Also, have you run this without novel miRNA detection to confirm that the file can be processed? And if so, can you give us a sense of how large the unmapped.csv file was?  That can help inform whether the software is hanging (likely) or overwhelmed (possible). The novel miRNA discovery is slow.

Hi @Glfrey,
I have tried with two samples. The run was successful, please see the commands below.
Can you obtain these two files (SRR772403, SRR772404) from NCBI and try them on your machine? If this fails then we can figure out why.
 miRge3.0 -s SRR772403.fastq.gz,SRR772404.fastq.gz -a illumina -lib /mnt/d/Halushka_lab/Arun/GTF_Repeats_miRge2to3/miRge3_Lib/revised_hsa -on human -db mirbase -o output_dir -spl
bowtie version: 1.3.1
cutadapt version: 4.1
Samtools version: 1.6
Collecting and validating input files...

miRge3.0 will process 2 out of 2 input file(s).

Cutadapt finished for file SRR772403 in 6.4198 second(s)
Collapsing finished for file SRR772403 in 0.0403 second(s)

Cutadapt finished for file SRR772404 in 15.0359 second(s)
Collapsing finished for file SRR772404 in 0.3675 second(s)

Matrix creation finished in 0.1452 second(s)

Data pre-processing completed in 22.4049 second(s)

Alignment in progress ...
Alignment completed in 10.4587 second(s)

Summarizing and tabulating results...
Summary completed in 1.0301 second(s)

The path to ourput directory: /mnt/d/Halushka_lab/Arun/datasets/output_dir/miRge.2023-01-12_20-02-41

The analysis completed in 34.7819 second(s)

Resuming to utilize nmir function
miRge3.0 -s /mnt/d/Halushka_lab/Arun/datasets/output_dir/miRge.2023-01-12_20-02-41  -lib miRge3_Lib -on human -db mirbase -o output_dir -rr -nmir
bowtie version: 1.3.1
cutadapt version: 4.1
Samtools version: 1.6
RNAfold version: 2.4.14
Collecting and validating input files...

miRge3.0 will process 2 saved run(s) from binary pickle file.

Alignment in progress ...
Alignment completed in 11.2452 second(s)

Summarizing and tabulating results...
Summary completed in 0.9763 second(s)

Predicting novel miRNAs

Performing prediction of novel miRNAs...
Start to predict
Prediction of novel miRNAs Completed (63.73 sec)

The path to ourput directory: /mnt/d/Halushka_lab/Arun/datasets/output_dir/miRge.2023-01-12_20-05-10

The analysis completed in 79.5234 second(s)

Hi @Glfrey,
The earlier samples didn't yield novel miRNAs may because they were samll. I tried, two other samples and it resulted in few novel miRNAs. You may try them instead.
miRge3.0 -s SRR9856179.fastq.gz -a AGATCGGAAGAGCACACGTCTGAACTCC -lib /mnt/d/Halushka_lab/Arun/GTF_Repeats_miRge2to3/miRge3_Lib/revised_hsa -on human -db mirbase -o output_dir -spl
and
miRge3.0 -s SRR8487219.fastq.gz -a illumina -lib /mnt/d/Halushka_lab/Arun/GTF_Repeats_miRge2to3/miRge3_Lib/revised_hsa -on human -db mirbase -o output_dir -spl
Thank you,
Arun

Hi @arunhpatil and @mhalushka,
Thank you for your help so far. I have ran the pipeline without novel miRNA detection and it runs without fault and very quickly. It could be that my data is too large as the files range from 9-20GB (uncompressed) and there's 18 files in total. The unmapped.csv is 1.5Gb.
Interestingly running the pipeline with error correction and novel miRNA detection induces a fault:
Command:
miRge3.0 -s /Users/gillianreynolds/Documents/smRNA2/raw2 -lib /Users/gillianreynolds/Documents/smRNA2/mirge/miRge3_Lib/ -db mirbase -o mirbase_novel_dir -cpu 6 -on human  -nmir -mEC
Fault:
Traceback (most recent call last):
  File "/Users/gillianreynolds/Library/Python/3.7/bin/miRge3.0", line 10, in <module>
    sys.exit(main())
  File "/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/__main__.py", line 138, in main
    pdDataFrame,sampleReadCounts,trimmedReadCounts,trimmedReadCountsUnique = bakingEC(args, fastq_fullPath, base_names, workDir)
  File "/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/digestEC.py", line 236, in bakingEC
    run_merEC(args, kmc_exe, kmc_dump_exe, miREC_fq_exe, i)
  File "/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/digestEC.py", line 107, in run_merEC
    kmc_EC = subprocess.run(str(kmcExec), shell=True, check=True, stdout=subprocess.PIPE, text=True, stderr=subprocess.PIPE, universal_newlines=True)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc -k15 -fq -ci1 ./correct_read.fastq tmp15 ./' returned non-zero exit status 126.

I'll run the other files with the commands you supplied and I'll let you know what happens.

Hi @Glfrey,
The sample size of  18, could be the reason for it being slow. With regard to -mEC and -nmir, this combination of parameters shouldn't cause errors. If you have run with -mEC in the past, and the software stopped/forcefully stopped then there are intermediate files that are generated. These files are in the same execution directory. When you start miRge3.0 afresh and use -mEC, those intermediate files will cause these problems. The simple answer is, if you find any files as listed below, please delete them and re-run miRge3.0 with both -mEC and -nmir option.
correct_read.fastq, input.fq, ID_read_quality_cor.txt, expreLevel_cor.txt, ID_read_quality_input.txt, id_read.txt, *.freq,   changed_detail.txt, changed_list.txt, and  tmp*
Thank you,
Arun.

Hi @arunhpatil,
I downloaded the two files you provided in your second response (SRR9856179 and SRR8487219) and mirge still hangs with no progress for the novel miRNA detection. I used the following commands:
miRge3.0 -s SRR9856179.fastq -a AGATCGGAAGAGCACACGTCTGAACTCC -lib /Users/gillianreynolds/Documents/smRNA2/mirge/miRge3_Lib/ -on human -db mirbase -o output_dir -spl
miRge3.0 -s /Users/gillianreynolds/Documents/test/output_dir/miRge.2023-01-14_18-35-17 -lib /Users/gillianreynolds/Documents/smRNA2/mirge/miRge3_Lib/  -on human -db mirbase -o output_dir -rr -nmir
and received this output:
miRge3.0 -s /Users/gillianreynolds/Documents/test/output_dir/miRge.2023-01-14_18-35-17 -lib /Users/gillianreynolds/Documents/smRNA2/mirge/miRge3_Lib/  -on human -db mirbase -o output_dir -rr -nmir
bowtie version: 1.3.0
cutadapt version: 4.2
Samtools version: 1.16.1
RNAfold version: 2.1.9
Collecting and validating input files...

miRge3.0 will process 1 saved run(s) from binary pickle file.

Alignment in progress ...
Alignment completed in 52.7066 second(s)

Summarizing and tabulating results...
Summary completed in 4.8962 second(s)

Predicting novel miRNAs

Performing prediction of novel miRNAs...
Start to predict

I also tried to predict without resuming which also hung with the same memory usage as above.
miRge3.0 -s SRR9856179.fastq -a AGATCGGAAGAGCACACGTCTGAACTCC -lib /Users/gillianreynolds/Documents/smRNA2/mirge/miRge3_Lib/ -on human -db mirbase -o output_dir_combined -spl -nmir
bowtie version: 1.3.0
cutadapt version: 4.2
Samtools version: 1.16.1
RNAfold version: 2.1.9
Collecting and validating input files...

miRge3.0 will process 1 out of 1 input file(s).

Cutadapt finished for file SRR9856179 in 65.7478 second(s)
Collapsing finished for file SRR9856179 in 1.2663 second(s)

Matrix creation finished in 1.2057 second(s)

Data pre-processing completed in 69.5889 second(s)

Alignment in progress ...
Alignment completed in 55.3385 second(s)

Summarizing and tabulating results...
Summary completed in 5.1632 second(s)

Predicting novel miRNAs

Performing prediction of novel miRNAs...
Start to predict

There is no progress past this point and the memory usage is stuck at around 9GB.
I can think of a few potential problems which may help with your troubleshooting:

I'm running a Mac with an M1 chip
I had to install RNA fold via conda.

I'm aware conda now supports M1 chips but I also know that the authors of RNA fold have had issues with the M1 Macs:
"At the moment, our pre-compiled installer doesn't work for recent models based on Apples M1 Chip. Users who want to install the ViennaRNA Package on their Mac computer with Apple silicon M1 chip are advised to compile and install from source code." from https://www.tbi.univie.ac.at/RNA/#download
However I couldn't install from source due to various errors so I went with conda. I'm going to try and see if I can solve those errors to rule out it being a conda-related RNA fold problem and I'll let you know how I get on.

Hi @Glfrey,
I am sorry, I faced problems with Mac in the past, when I was testing miRge3.0. While this is for good reason, Mac decided to choose different path of work around compared to Windows/Linux due to security reasons. I am not sure if this is due to the chip, however, I want test few things to confirm.
I have saved temporary files that are dealt with RNAfold, I have uploaded the zip folder here (unmapped_tmp.zip). The commands are run in the backend by miRge, if you can run those commands directly and it doesn't hang then we get an idea.

rnafld_exec = str(rnafoldCmdTmp) + " " + str(infile_pre) + " --noPS --noLP > " + str(outfile_str) in miRge3.0, you can run on your machine as: RNAfold SRR9856179_precursor.fa  --noPS --noLP > SRR9856179_precursor_tmp_Glfrey.str

There are many functions in that one parameter. I want to try this out first. This may help us debug further. (The attched linked files belong to SRA: SRR9856179)
Thank you,
Arun.

Hi @arunhpatil,
Unfortunately it's hanging with that command and nothing is being printed to "SRR9856179_precursor_tmp_Glfrey.str". Interestingly, if I activate RNA-fold and input the read data directly, it works great:
(mirge_packages) gillianreynolds@Gillians-MacBook-Pro unmapped_tmp % RNAfold

Input string (upper or lower case); @ to quit
....,....1....,....2....,....3....,....4....,....5....,....6....,....7....,....8
UUUUUUGUGAAUUCUUCGAUAAUGGCCCAUUUGGGCAAAAAGCCGGUUAGCGGGGGCAGGCCUCCUAGGGAGAGGAGGGUGGAUGGAAUUAAGGGUGUUAGUCAUGU
length = 107
UUUUUUGUGAAUUCUUCGAUAAUGGCCCAUUUGGGCAAAAAGCCGGUUAGCGGGGGCAGGCCUCCUAGGGAGAGGAGGGUGGAUGGAAUUAAGGGUGUUAGUCAUGU
.........((((((((.((....((((....)))).....(((..........)))...((((((......)))))))).)).)))))).................
 minimum free energy = -26.00 kcal/mol

I don't know if this suggests a problem reading in or opening the file?

Hi @Glfrey,
I hope, this is not the new method of using RNAfold in the recent versions. I couldn't find the mention of this in their change log. I use 2.4.14. Can you create an issue and mention the problem reading file?
https://github.com/ViennaRNA/ViennaRNA/issues
Thank you,
Arun.

Hi @arunhpatil,
I can certainly do that, although you might be a few versions ahead of me for RNAfold as mine is 2.1.9. I'll see if I can install the same version as you and try everything again. If that also fails I'll seek their advice and see what they say.

@arunhpatil , it worked! I upgraded RNAfold to your version (2.4.14) via conda and novel miRNA prediction worked beautifully. Evidently there's some issue with version 2.1.9 and either my computer architecture (M1) or mirge3.0 in general.
I'm just going to run it on my data to make sure there's nothing else going on but that's progress!

Hi @arunhpatil,
I got another error running it on my data. I think this is the same error as I posted before but I made sure there were no intermediate results in the directory by creating a new one and running the commands:
miRge3.0 -s /Users/gillianreynolds/Documents/smRNA2/raw2/ -lib /Users/gillianreynolds/Documents/smRNA2/mirge/miRge3_Lib/ -db mirbase -o mirbase_novel_dir -cpu 6 -on human -ie -ai -mEC -nmir
bowtie version: 1.3.1
cutadapt version: 4.2
Samtools version: 1.16.1
RNAfold version: 2.4.14
Collecting and validating input files...

WARNING: File /Users/gillianreynolds/Documents/smRNA2/raw2/.DS_Store is neither fastq or fastq.gz format!
Omitting file /Users/gillianreynolds/Documents/smRNA2/raw2/.DS_Store

WARNING: File /Users/gillianreynolds/Documents/smRNA2/raw2/.DS_Store is neither fastq or fastq.gz format!

miRge3.0 will process 18 out of 19 input file(s).

Traceback (most recent call last):
 File "/Users/gillianreynolds/Library/Python/3.7/bin/miRge3.0", line 10, in <module>
   sys.exit(main())
 File "/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/__main__.py", line 138, in main
   pdDataFrame,sampleReadCounts,trimmedReadCounts,trimmedReadCountsUnique = bakingEC(args, fastq_fullPath, base_names, workDir)
 File "/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/digestEC.py", line 236, in bakingEC
   run_merEC(args, kmc_exe, kmc_dump_exe, miREC_fq_exe, i)
 File "/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/digestEC.py", line 107, in run_merEC
   kmc_EC = subprocess.run(str(kmcExec), shell=True, check=True, stdout=subprocess.PIPE, text=True, stderr=subprocess.PIPE, universal_newlines=True)
 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 512, in run
   output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc -k15 -fq -ci1 ./correct_read.fastq tmp15 ./' returned non-zero exit status 126.

Hi @Glfrey,
Glad to know about RNAfold. The miREC function is returning no output, can you try this command (the last line of the error):
/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc -k15 -fq -ci1 ./correct_read.fastq tmp15 ./
Can you let me know the version release of miRge3.0, you can get that from here:
conda list | grep "mirge"
mirge3                    0.1.1              pyh7cba7a3_0    bioconda
The miREC is most time consuming process. Can you try without that option and see if that runs completely?
Thank you,
Arun

Hi @arunhpatil,
Sure, the first command gives:
/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc -k15 -fq -ci1 ./correct_read.fastq tmp15 ./
zsh: exec format error: /Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc

Mirge isn't installed via conda on my system as the dependencies clash with the dependencies for RNAFold so I can't have both in the same environment. It's installed via pip which gives the version:
mirge3.0 --version
3.0

I'm running it without miREC now, I'll let you know what happens.
Thank you!

Hi @Glfrey,
Before we reinstall miREC, I want to check the permissions on that executable file. Can you print the output of
ls -li /Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc.
If possible, try setting
chmod 777 /Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/miREC_fq
chmod 777 /Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc*
Then test  /Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc -h. If this doesn't print anything, then we have to install that again. This is again OS specific (sorry). If the above doesn't work, then you can install miREC from here.
Ok. That should not be a problem in general, let me know how it goes with novel miRNA prediction. You can use pip list | grep  "mirge" on Pip.
Thank you,
Arun.

Hi @arunhpatil,
Sure thing.
/Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc.: No such file or directory
Still got an exec error after chmods:
(mirge_packages) gillianreynolds@Gillians-MacBook-Pro miRge.2023-01-05_19-51-22 % /Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc -h zsh: exec format error: /Users/gillianreynolds/Library/Python/3.7/lib/python/site-packages/mirge/libs/kmc
Also, for the version:
pip list | grep  "mirge" mirge3             0.1.2
I'll install kmc now and let you know how it goes. The miRNA predictions I ran on my own data failed, but that's because it was killed for running out of memory so I'm running smaller tests now. I'll keep you updated.
Thank you!
Gill

Hi @Glfrey,
Ok. I would recommend running files in a batches of 11 (I tested larger combinations,  based on the computer, the memory chokes). If you can test it just for one sample, it would be faster to figure out. Also, if one of the sample has an error, the whole chain may fail.
If you want to combine the counts or RPMs later, you could use scripts from miROme. The input for this is, output_dir for miRge3.0 (which has many folders that has name and date stamps (eg. miRge.2023-01-19_11-35-48).
Thank you,
Arun.

Hi @arunhpatil,
Unfortunately installing kmc for an M1 Mac is proving very challenging. As it happens my company is migrating some analysis to AWS for scalability purposes so it may be that I just have to perform kmc + novel miRNA annotation on there.
Your suggestion to splitting up the files is a good one, thank you. I'll let you know how I get on with using mirge3.0 on AWS.

Hi @Glfrey,
I am sorry about OS architecture. However, this is not just for Mac, On windows I installed Ubuntu v22 on WSL2  (Windows subsystem for Linux). I had the same issue yesterday with miREC, when I changed it to WSL1, it worked. The issue was mentioned on MS team, they asked to change the version of WSL2 for other (common compiler) issue. I don't know how it will affect Mac in the future.
Please let me know if you need any help with AWS. (I have improved the performance of miRge3.0, and I am testing it). There is a slight improvement in speed and a better improvement towards memory usage. I will update your suggestion on resume function and make a new release (hopefully this week).
Thank you,
Arun.

Hi @arunhpatil,
I can confirm Mirge3.0 runs successfully for all processes on Ubuntu (although I have a new error on a new Ubuntu server to share with you on another issue) so I'll close the issue now.
Thank you for all of your help.
Best wishes,
Gill


proposal to reserve "attributes" member at top level of resource objects

At the moment, we reserve id, type, links, and meta members in resource objects. We feel pretty dang sure these are the only ones we will ever need. However, the possibility remains that at some point in the future, we may wish to reserve another. Doing so would be additive/backwards-compatible with the spec, but it would not be backwards compatible with implementations if they are currently using that member as an attribute in their data.
There has been quite a bit of discussion around the prefixing or not-prefixing of reserved members since the inception of the spec (e.g. #313, #362, #558, #569) and we've always landed on not prefixing. I personally agree with this approach, but I'd like to propose an alternate representation for resource objects that should completely eliminate these concerns by walling off implementation-specific attributes under their own namespace.
{
  "id": "1",
  "type": "book",
  "attributes": {
    "name": "J. R. R. Tolkien",
    "date_of_birth": "1892-01-03",
    "date_of_death": "1973-09-02"
  },
  "links": {
    "chapters": {
      "self": "/books/1/links/chapters",
      "related": "/books/1/chapters"
    }
  }
}

Not only does this form prevent future conflicts, it would serve to simplify the normative language of the specification--terms like members and attributes would be reflected in the data structure itself.
Pending positive feedback from people currently implementing servers and clients I would like to make a PR for this change.

I like your idea to wrap the attributes!
I also thought about this way to handle the problem, but decided against suggesting it, because of the additional wrapping elements... but when I see your example, it's much more readable than my suggestion (#569), but offers the same new flexibility:
The reserved member names don't need to be reserved anymore (for attributes). One could discuss if it is a good practice or not, but I think many API designers would love to get the "type" back. :)
{
  "id": "1",
  "type": "book",
  "attributes": {
    "name": "J. R. R. Tolkien",
    "type": "hardcover",
    "date_of_birth": "1892-01-03",
    "date_of_death": "1973-09-02",
    "links": {
      "amazon": "http://www.amazon.com/dp/B0079KT81G/"
    }
  },
  "links": {
    "self": "/books/1/links/chapters",
    "related": "/books/1/chapters"
  }
}

What I have to add to this suggestion is an additional (optional) top level member "extensions", which enables extensions to add additional data without creating conflicts (as described in #569).
One example:
I thought about an extension to sign requests and responses, therefore I would have to add signature information to the document. To avoid conflicts (with attributes, other top level members and other extensions), every extension needs its own namespace.
So I would suggest to wrap them like in the following example (example name of the extension is "signature"):
{
  "id": "1",
  "type": "book",
  "attributes": {
    "name": "J. R. R. Tolkien",
    "type": "hardcover",
    "date_of_birth": "1892-01-03",
    "date_of_death": "1973-09-02",
    "links": {
      "amazon": "http://www.amazon.com/dp/B0079KT81G/"
    }
  },
  "links": {
    "self": "/books/1/links/chapters",
    "related": "/books/1/chapters"
  }
  "extensions": {
    "signature": {
      "value": "...",
      "algorithm" : "...",
      "canonicalization": "...",
      "key": "..."
    }
  }
}

What do you think?

I think the notion of an extension member seems interesting, but that discussion around it should happen in a separate thread. Would you mind opening another issue for that? Also, if you feel comfortable that this would resolve #596, could you please close that issue?

Closed the old one and opened a new one for the "extensions" member.

@tkellen I'm definitely +1 on this, but I'm guessing that this change will be pretty hard to sell so close to 1.0. If it can happen though, let's make it happen :)

+1. This is quite an importatant and valuable idea. Especially having in mind, that by default Ruby on Rails (and others?) uses 'type' column for Single Table Inheritance.

:+1: from me as well. It brings a nice consistency to the spec, in addition to removing the restrictions on attribute names.

I agree with others that this proposal makes object format cleaner. It will make more sense when (I bet it is "when" and not "if") more resource-level attributes are added (https://github.com/json-api/json-api/issues/575#issuecomment-96447358, perhaps?)
Interestingly, the proposed approach would help to resolve the issue which I unsuccessfully tried to raise in #361. It places JSON API resource ID to a different level than attributes, hence it would allow to map ID to different attributes. E.g., in the examples below, JSON API resource ID is mapped to something omitted (possibly id) for comments and to username for users:
{
  "data": {
    "id": "123",
    "type": "comments",
    "attributes": {
      "text": "abc"
    }
  }
}

{
  "data": {
    "id": "jsmith",
    "type": "users",
    "attributes": {
      "username": "jsmith",
      "first_name": "john",
      "last_name": "smith"
    }
  }
}

Would it make sense for the spec to elaborate on possibility of such mapping, perhaps in non-normative notes?
Further, would it make sense to explicitly state spec's position towards attributes.id (I assume, indifferent)? In the example above, even if id is present in the DB table containing users, the purpose of using username as ID at API level is to completely hide surrogate key on API level in favor of meaningful but still unique natural key.
Also, would not it make sense to shorten the key name to attrs, atrs, something else short? Full English words are nice, but, e.g., id is an abbreviation, so it will not be a precedent. Given that paths will have to include it (e.g., fields[TYPE]=attributes.name), it would slightly decrease level of verbosity.

@hhware I'm pretty indifferent on the naming of the column. It wouldn't actually be required to prefix the container for fields--it's already stated normatively in the spec that fields controls the visibility of attributes.
Given the positive response to this, I'm going to open a PR for this tomorrow. We can bikeshed the property name a bit there, if need be!

It wouldn't actually be required to prefix the container for fields

Right!

@maxdumas curious to get your take on this too, seeing as you'd have to update our client implementations (with the BC break being the most obvious downside)

@ethanresnick I am all for this as it would definitely give us some more freedom in how we define our data, and any changes to parsing on my end would be pretty trivial. My one concern is that 'attributes' is definitely a bit verbose. 'attrs' is a pretty standard abbreviation of that which I would prefer.

@maxdumas Good to hear! Yay for more consensus.
Re the property name: personally, I'm in favor of "attributes" because it aligns better with the text of the specification. That makes understanding the spec easier, which is a win for adoption. Plus, a good client will only have to write this key in one or two places anyway, and gzipping will make the data size difference largely irrelevant. That said, from a broader perspective, I agree with @tkellen that the key really doesn't matter much and we shouldn't spend too much time bikeshedding it.

:+1: cause we're doing that nasty thing with underscore prefixing for "system" fields in order to avoid conflicts. This proposal looks native like it's supposed to be here since the very beginning :)


wargaming.net.txt: fix 2 typos, add 3 new domains

Hi @rotanid
Thanks for the PR, Can you please fill out the merge template. I'm particularly interested in seeing the capture method and testing bits before we merge.
What CDN does this PR relate to

Does this require running via sniproxy

Capture method

Testing Scenario

Testing Configuration
<!-- Paste either your docker run command from the DNS container OR explain how you have setup DNS zone files etc to test this issue -->

Sniproxy output
Please paste the output from docker logs <sniproxy container name/id> | sed 's/.*\:443 \[//;s/\].*//' | sort | uniq -c below
<!-- If you are running sniproxy paste the output to the following command
docker logs <sniproxy container name/id> | sed 's/.*\:443 \[//;s/\].*//' | sort | uniq -c
-->

sorry, the event i used this on is over and i won't have the chance to test things for a year now.
feel free to close my PR if you don't want the contribution under these circumstances.

@rotanid quite happy to take the PR, just tell us what you did to test it, how many people etc ;P
If you don't have the sniproxy output thats fine, leave that bit blank

so the first part of the PR are simply two typo fixes, there is no DNS record "dl.wargaming.net" but only "dl1.wargaming.net", and "wargaming.net.edgesuite.ne" also does not exist - but i just noticed that correcting it doesn't change anything as "wargaming.net.edgesuite.net" also does not exist :-D
i just updated this PR to only include the additional domain names and put the fixes in a separate PR #47
we used the docker-compose setup on an event with about 1.200 attendees in Neumünster/Germany.
our DNS setup is based on BIND

OOI, where did you find the new domains from? Wireshark or bind logs?

looking at our git they seem to have been included at a smaller event on which i wasn't present, so: sorry, i don't know - and i can't look up logs of the recent event anymore, too...

Sorry @rotanid I forgot this one over christmas, All merged! 👍


Fix error windows message

Hi, when you are a windows user you have an error on console The system can not find the path specified. for tput
Note: If you need install this command on windows tell me which is because i have tried to find it without success results.

Ported relevant functionality to https://github.com/tolidano/commandox/pull/17

I created a PHP 5.4-7.1 version of this and then a PHP 7.2 version: https://github.com/tolidano/commandox/releases


How to disable 'Sort' tooltip / hint?

Hi
Is there a way to disable the tool tip / hint on the column header which says 'Sort' without actually disabling sorting functionality.
When I use column option { hint: 'My Tooltip' }, this tooltip in addition to the"Sort' tooltip is displayed in an overlapping fashion causing one of them to not be readable.
It would be good if I can make only the custom tooltip be shown without 'Sort' covering it up.
Thanks.

Tech
Version

Material-UI
4.5.0

MUI-datatables
2.12.0

React
16.10.2

browser
Firefox  69.0.2

Hm, sounds like it might be a material-ui v4 bug. Can you confirm if this happens in material-ui v3? If not, I'd much rather fix the behavior than add a new option. They should ever overlap. The way it works for me now with material-ui v3 is that they show/hide based on where your cursor is so that they never overlap.

@gabrielliwerant
Can verify overlaps in Material-UI 4.x but not in 3.x
Codesandboxes:

with Material-UI 3.9.0 - expected behaviour
with Material-UI 4.5.0 - overlapping tooltips

@andygock Thanks for your help in reproducing this. I was able to confirm with your examples. I have a fix up as a PR.

Great, thanks @gabrielliwerant

any update?

so any way to disable the sort tooltip?

Any updates on this?
This is still an issue with latest releases Material-UI 4.7.0 and mui-datatables 2.13.1

Hi! Is there are some updates on this issue?

Sorry for the delay. Fix should now be in 2.13.3.

Hi,
Is there a way to display a custom tooltip with { hint : "my tooltip" } instead of displaying "sort" even if sorting is enabled ?

Hi! Put the following to your MUIDataTable options:
const options: MUIDataTableOptions = {
    textLabels: {
        body: {
            columnHeaderTooltip: (column: MUIDataTableColumn) => functionThatGivesYouTheRightTooltip(column)
        }
    }
};

Best regards,
Willy


Unable to connect to the device

This form is for reporting bugs.  If you have encountered a bug, you should
generally have some log messages or device diagnostics to show something is
going wrong.  If your problem is more of a question or a request for help,
then Discussions is
probably a more suitable venue.
Describe the bug
Adding BHT-6000 Thermostat integrartion report an error like image attached

To Reproduce
Steps to reproduce the behavior including the device the issue was observed with:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
If the bug involves a device, then please include device diagnostics from
Settings / Devices & Services / Tuya Local (your device) / "1 device"
Please check if there are messages from Tuya Local in the Home
Assistant log (Settings / System / Logs), and include those too.
If applicable, add screenshots to help explain your problem.

Also tried with protocol auto nothing else

See discussion #522 for possible causes and solutions.  Without further evidence this cannot be considered a bug, as there are too many external variables that can affect the ability to make a connection to the device, and the integration is only reporting the underlying network connectivity issue.


Revise SetState on Stater to Ensure State is Updated Before Invoking

The current implementation of the SetState function in Stater system fires observer notifications before updating the state internally. This may lead to inconsistencies and race conditions, e.g observers react to a state change that has not yet been fully applied.
data.Stater.Changed:Connect(function(currentState)
    warn(currentState, data.Stater:GetCurrentState())
    -- output: "X", "Y"
end)

Fixed! Thank you for the notice.


Clean up: stimulation activity

MINOR changes:

improved instruction
establish correct order within property
replaced category stimulus with stimulusType because category stimulus does not exist
renamed property stimulus to stimulusType according to change in its links

MAJOR changes:
none
SPECIAL ATTENTION:

added uniqueItems to stimulusType because it seems pointless to state the same one several times within one activity

I just created a pull request to add stimulus category. So please modify this pull request appropriately.


Clean up runtime environment variables implementation

See: https://github.com/ansible-community/molecule/pull/3516

I like that you merge the values here instead of just overwriting one with another.
Yet the solution feels somewhat hacky: you introduce special handling only for ANSIBLE_ROLES_PATH and ANSIBLE_COLLECTIONS_PATH. How do we know that those are the only env vars that need to be merged? What about ANSIBLE_LIBRARY_PATH? There may be more such variables, how should we treat them and why?
Also, the code is not exactly DRY and has a potential to become even more repetitive. What if we decide that another variable needs to follow the same logic? I think that merging of colon-separated lists should be split off into a function.

Thanks for the feedback, I'll get to work on updating the pull request.

I like that you merge the values here instead of just overwriting one with another.
Yet the solution feels somewhat hacky: you introduce special handling only for ANSIBLE_ROLES_PATH and ANSIBLE_COLLECTIONS_PATH. How do we know that those are the only env vars that need to be merged? What about ANSIBLE_LIBRARY_PATH? There may be more such variables, how should we treat them and why?

I was about to suggest writing a modified version of utils.merge_dicts() but I'm not sure how to make this function generic. I mean there's no way to know how to merge two variables without knowing what the env variables contain.

@sio
I hope this implementation is much cleaner. I've also added some tests.

Hi @ssbarnea
The original issue is ~/.cache/ansible-compat/DEADBEEF/collections:... is not in ANSIBLE_COLLECTIONS_PATH
Could you please consider the following implementation?

Insert cache_dir into ANSIBLE_ROLES_PATH and ANSIBLE_COLLECTIONS_PATH #3514
install role in cache dir  https://github.com/ansible/ansible-compat/pull/135

@bonddim has verified they can fix #3404.

@webknjaz
If you have the time today, could review this pr?
Thank you.

Can you please rebase this?


Java 20.4: Default,marker annotations,single member annotations

Description
Add audio, documentation, and video regarding the Default,marker annotations,single member annotations
Location of File to be added The files should be added inside the  AnnotationTypes  will be inside Annonations folder which will be inside of Java folder. If the folder is not present, create the folder with this exact name.

The documentation file can be in the .md/.py/.ipynb format.
Audio should be in .mp3 format and to be submitted through a Google drive link.
Video can be in any format and should be submitted through a Google Drive link.

Note:
You are required to comment with \assign CONTENT_TYPE, so that other content types can be created at the same time. Failing to comment in the above manner will lead to the removal of assignment from the issue even if the bot assigns. You are required to do a PR within 7 days otherwise you will be unassigned and others will be assigned. Issues will be assigned on a first come first serve basis.
Domain
Java_Domain
Type of Contribution
Audio, Video, Documentation
Code of Conduct

[x]    I follow Contributing Guidelines & Code of conduct of this project.

/assign documentation

@jaigora24 You have been asigned documentation


Update README.md

oh, that's a valuable contribution, thanks!!

Thanks! and next time be careful with copy/paste ;)


The layout model is from PP-Structurev2-layout?

The layout model is from PP-Structurev2-layout?  or the PP-Structurev1  ?

From this link, I am not clear what is PP-StructureV2 or V1.


Any experiments on reasoning or world modeling ?

This paper talks about long context length for a language model which is extended to be a vision-language model. I wonder why is it called World Model. It is not obvious in the paper. This paper seems focus more on the long context and evaluation of related retrieval ability with little discussion on the world modelling.
I wonder is there any specific discovery on the model ability that improves along with long context training. Does it make it more robust against prompt variations? More robust on reasoning ? More semantically riched in concept representations ? Better ontological/hierarchical learning towards the meaning ?
Will be curious on hearing more about the findings from the authors.
Thanks a lot for any insights in advance : )

the same wondering about world modeling? It's seems to be a tricky claim.


JavaDoc Generation

Some nice JavaDoc should be generated at least from the Metrics class by now, so it's time to put that claim to test :)

Completed in 55c82d7