Why is max speed hardcoded as 230400?

Looking at https://github.com/tonyg/erlang-serial/blob/master/c_src/serial.c#L88 maximum speed is hard-coded as 230400 baud, but there's no explanation given for said cap.
We might need speeds up to 460800 baud in the current project, so I wonder if there is a reason for the current speed limit?

There is no reason other than "historical reasons" for the cap. A patch to add additional speeds would be welcome. (It's a shame the relevant ioctls don't permit easy mapping from a number to an ioctl constant, otherwise we could accept arbitrary speeds...)

Thanks for the pointer! I've found the same hardcoded constants in termios manpage so that's where the limitation seems to come from. I'll see if I find a way to set arbitrary speeds on modern systems.


Poor performance of WorkQueueManager in Py3 WMAgent (1.5.2)

Impact of the bug
WorkQueueManager (but it could be affecting the whole agent as well)
Describe the bug
As the production job pressure goes down, I started investigating why the new Py3 agents are not pulling more work from global workqueue.
An initial debugging of vocms0280, suggests that WorkQueueManager - actually WorkQueueManagerWMBSFileFeeder thread - isn't performing well and it's taking many seconds (or a minute or more) to prepare one single workqueue element into the database [1]
It needs further investigation, but it could well be an unexpected behaviour from the bytes/string objects, and how the databases index are created.
How to reproduce it
Create a big amount of work(?)
Expected behavior
In short, the WorkQueueManagerWMBSFileFeeder thread should be quick, and not take hours to prepare 100 workqueue elements.
Honestly, we need to assess whether there is indeed a degradation performance. If so, we need to find what the root cause is and get it fixed.
Additional context and error message
[1]
2021-09-02 19:18:58,939:140215758370560:INFO:WorkQueue:Running WMBS preparation for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395 with ParentQueueId 7c4999e9737e68539048cd26b1da1591,
  with common location ['T3_US_FNALLPC', 'T1_US_FNAL_Disk']
2021-09-02 19:18:58,945:140215758370560:INFO:Fileset:Fileset created: pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395-TOP-RunIISummer20UL18NanoAODv9-00079_0-/TTTo2L2Nu_mtop175p5_TuneCP5_13TeV-powheg-pythia8/RunIISummer20UL18MiniAODv2-106X_upgrade2018_realistic_v16_L1v1-v1/MINIAODSIM#e59d03dc-ffe6-47ed-b688-ee1200d6c67d
2021-09-02 19:18:59,013:140215758370560:INFO:WMBSHelper:Top level subscription 38914 created for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395
2021-09-02 19:18:59,028:140215758370560:INFO:WMBSHelper:Child subscription 38838 created for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395
2021-09-02 19:18:59,036:140215758370560:INFO:WMBSHelper:Child subscription 38839 created for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395
2021-09-02 19:18:59,046:140215758370560:INFO:WMBSHelper:Child subscription 38840 created for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395
2021-09-02 19:18:59,056:140215758370560:INFO:WMBSHelper:Child subscription 38841 created for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395
2021-09-02 19:18:59,073:140215758370560:INFO:WMBSHelper:"pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395" Injecting block /TTTo2L2Nu_mtop175p5_TuneCP5_13TeV-powheg-pythia8/RunIISummer20UL18MiniAODv2-106X_upgrade2018_realistic_v16_L1v1-v1/MINIAODSIM#e59d03dc-ffe6-47ed-b688-ee1200d6c67d (11 files) into wmbs.
2021-09-02 19:18:59,074:140215758370560:INFO:WMBSHelper:Adding files into WMBS for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395 with PNNs: ['T1_US_FNAL_Disk']
2021-09-02 19:18:59,076:140215758370560:INFO:WMBSHelper:Inserting 11 files in bulk into WMBS for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395
2021-09-02 19:18:59,166:140215758370560:INFO:WMBSHelper:Inserting 11 files in bulk into DBSBuffer for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395
2021-09-02 19:18:59,204:140215758370560:INFO:WMBSHelper:Transaction committed: True, for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395
2021-09-02 19:18:59,204:140215758370560:INFO:WorkQueue:Created top level subscription 38914 for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395 with 11 files
2021-09-02 19:18:59,340:140215758370560:INFO:WorkQueue:LQE 7c4999e9737e68539048cd26b1da1591 set to 'Running' for request pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395
2021-09-02 19:19:44,040:140215758370560:INFO:WorkQueue:Running WMBS preparation for pdmvserv_task_TOP-RunIISummer20UL18NanoAODv9-00079__v1_T_210829_174743_1395 with ParentQueueId 81efcab7b59fa91d0b12f21ae56f12d6,
  with common location ['T3_US_FNALLPC', 'T1_US_FNAL_Disk']

Likely not an issue, since agents are all filled with work and without any heartbeat alerts. I will have another look during the week though and close it if it's not really a concern.

I verified the WorkQueueManager logs in vocms0243, and the component seems to be behaving properly with no delays in LQE --> WMBS data acquisition.
The only delay I see is actually related to the ACDC workflows, which add something like ~20secs, likely when fetching data from the ACDC server:
2021-09-07 12:54:16,521:140141549713152:INFO:WorkQueue:Running WMBS preparation for cmsunified_ACDC0_task_HIG-RunIIFall18wmLHEGS-04855__v1_T_210907_115743_9418 with ParentQueueId 4e0a7ddeda9cdfb6a68cc3a65e6b94ab,
  with common location ['T1_UK_RAL_Disk']
2021-09-07 12:54:16,526:140141549713152:INFO:Fileset:Fileset created: cmsunified_ACDC0_task_HIG-RunIIFall18wmLHEGS-04855__v1_T_210907_115743_9418-HIG-RunIIAutumn18DRPremix-03989_0-/acdc/cmsunified_ACDC0_task_HIG-RunIIFall18wmLHEGS-04855__v1_T_210907_115743_9418/:haozturk_task_HIG-RunIIFall18wmLHEGS-04855__v1_T_210207_152551_1166:HIG-RunIIFall18wmLHEGS-04855_0:HIG-RunIIAutumn18DRPremix-03989_0/0/7
2021-09-07 12:54:51,841:140141549713152:INFO:SandboxCreator:Created sandbox cmsunified_ACDC0_task_HIG-RunIIFall18wmLHEGS-04855__v1_T_210907_115743_9418-Sandbox.tar.bz2 with size 21796331

I think it's safe to close this issue. If I'm proved wrong, we can always reopen it.


Add erbr-ot as contributor

Background
The TSC Project Roles defines the main roles for the Zephyr Project, including
Maintainer, Collaborator, and Contributor.
By default anyone that contributes code or documentation is a Contributor, but
with the lowest GitHub Permission Level of Read. For example, Contributors
with Read permission do not have the permission to add reviewers to a pull
request.
Use this template to nominate a GitHub user for the Contributor role with
Triage permission level, which allows the user to add reviewers to a pull
request and be added as a reviewer by other users.
Nomination
@erbr-ot , to be added to the Zephyr GitHub collaborator list, so he can triage issues and PRs and his approvals count.
GitHub User
Provide the following information about the GitHub user:

Erik Brockhoff
@erbr-ot

Supporting Documents

https://github.com/zephyrproject-rtos/zephyr/pulls?q=is%3Apr+author%3Aerbr-ot+
Has been a Bluetooth controller "collaborator" for many years. He is already listed in the MAINTAINERS file.

CC @erbr-ot @jhedberg @cvinayak @carlescufi @wopu-ot @thoh-ot @kruithofa @mtpr-ot

I have added erbr-ot to the GitHub collaborator team since he is already listed as a collaborator in the MAINTAINERS.yml.


Finished the Desc of everything.

Finished all the descriptions of the attacks, I have not checked if everything is there for pokemon x digimon can someone check it for me?

Travis tests have failed
Hey @AshleyPikachu,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

     npm test

><EMAIL_ADDRESS>test /home/travis/build/Lycanium-Z/Pokemon-Showdown
> eslint --cache . && tsc && mocha

/home/travis/build/Lycanium-Z/Pokemon-Showdown/mods/digimon/moves.js
  3226:3  error  Parsing error: Unexpected token onPrepareHit

✖ 1 problem (1 error, 0 warnings)

npm ERR! Test failed.  See above for more details.


Needs to be rerun data binding option in common functions

The common functions should have an option for rerunning a read data binding.

Fixed


[Issue 89] Changing withAuthFileWithAuthResponse to re-authenticate for each tenant to return all the subscriptions

Issue 89 shows that interactiveLoginWithAuthResponse is not returning any subscription for personal accounts with one or more tenants. This issue is not perceivable until the code explicitly calls to _getSubscriptions, which returns an empty array for those cases.
Upon investigation, a possible solution was to call interactiveLoginWithAuthResponse again with one of the received tenants from a previous execution of the same function as the domain parameter of this new call.
Another alternative seemed to set organizations as the domain, which should work in the v2.0 of the OAuth2 authentication workflow, as described in:

The {tenant} value in the path of the request can be used to control who can sign into the application. The allowed values are common, organizations, consumers, and tenant identifiers. For more detail, see protocol basics.
(Source)

However, passing in organizations as the domain causes the network requests to answer with status code 400. This is likely because ms-rest-nodeauth is using v1.0 of the API (adal-node specifically uses version 1.0 by default: https://github.com/AzureAD/azure-activedirectory-library-for-nodejs/blob/dev/lib/oauth2client.js#L73).
Assuming a change of OAuth API version is out of the table, the repeated authentication approach could be narrowed down to a modification of withInteractiveWithAuthResponse, in which after retrieving the tenants, we could re-generate the credentials from adal-node to retrieve the subscriptions. For example: in lib/login.ts, in withInteractiveWithAuthResponse:
  let creds = await new Promise<DeviceTokenCredentials>((resolve, reject) => {
    // ...
      try {
        creds = new DeviceTokenCredentials(
          // ...
          interactiveOptions.domain, // <-- What we want to change
          // ...
        );
      } catch (err) {
    // ...
  });

  const tenants = await buildTenantList(creds);

  creds = await new Promise<DeviceTokenCredentials>((resolve, reject) => {
    // ...
      try {
        creds = new DeviceTokenCredentials(
          // ...
          tenants[0], // <-- What we changed
          // ...
        );
      } catch (err) {
    // ...
  });

That change in the domain parameter could also be done by altering the DeviceTokenCredentials's parent class, TokenCredentialsBase to allow setting this domain internally, by extracting this functionality from the constructor into a public function and changing _authContext to be a private property:
export abstract class TokenCredentialsBase implements TokenClientCredentials {
  private _authContext?: AuthenticationContext;

  public constructor(/* ... */) {
    // ...
    this.setDomain(domain);
  }

  get authContext(): AuthenticationContext {
    return this._authContext!;
  }

  public setDomain(domain: string): void {
    this.domain = domain;
    const authorityUrl = this.environment.activeDirectoryEndpointUrl + this.domain;
    this._authContext = new AuthenticationContext(authorityUrl, this.environment.validateAuthority, this.tokenCache);
  }

With that in hand, and to overcome the limit of just one tenant, we decided to loop over the tenants, fetch the organizations and concatenate them into a single array, with the following code at the end of withInteractiveWithAuthResponse:
  const tenants = await buildTenantList(creds);
  let subscriptions: LinkedSubscription[] = [];

  for (const tenant of tenants) {
    creds.setDomain(tenant);
    subscriptions = [
      ...subscriptions,
      ...await _getSubscriptions(creds, tenants, interactiveOptions.tokenAudience)
    ];
  }

  return { credentials: creds, subscriptions: subscriptions };

This code makes ADAL do a new request to refresh the token for each tenant we work with. The logs from ADAL can be seen here:

Relevant ADAL logs before the change: https://gist.githubusercontent.com/sadasant/430cf03f08182d298ec9c41a7805cde3/raw/c0397579b5583d454a27313072bc658b86771a26/no-change-authentication
Relevant ADAL logs after the change, where it shows that a new token is requested and received, which will happen once for each tenant received with this change: https://gist.githubusercontent.com/sadasant/430cf03f08182d298ec9c41a7805cde3/raw/c0397579b5583d454a27313072bc658b86771a26/authentication-after-changing-the-domain

These logs were produced by using adal-node's Logging:
Logging.setLoggingOptions({
  log: function(level, message, error) {
    console.log({ level, message, error });
  },
  level: 3,
  loggingWithPII: false  // Whether to log personal identification information.
});

If after feedback this PR happens to get approved, the following is true:
Fixes #89

Closing on favor of: https://github.com/Azure/ms-rest-nodeauth/pull/91


name: Why not support chinese characters if it's to be used by general HR (for all companies)

add n/陈贤汉 p/12341234<EMAIL_ADDRESS>j/swe2024 t/tp

scope in the user guide.
specify that it will be used in companies with english as communication language

All names have romanisation


Sample C++ using MinGW

I am new to C++. The sample is very simple and good.
I have tried lot to run the sample code but always says some header file missing.
I don't where the header files are available.  I have tried this with MinGW
Can you provide sample with required header files ?
How can i run it and build to windows 32 and windows 64 using my windows 64 machine ?

Please see the updated readme with examples and information about MinGW if you are still interested in this.


CMake: failed to find msgpack when building

--   Found sqlite3, version 3.41.0
CMake Error at src/CMakeLists.txt:254 (find_package):
  By not providing "Findmsgpack.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "msgpack", but
  CMake did not find one.

  Could not find a package configuration file provided by "msgpack" with any
  of the following names:

    msgpackConfig.cmake
    msgpack-config.cmake

  Add the installation prefix of "msgpack" to CMAKE_PREFIX_PATH or set
  "msgpack_DIR" to a directory containing one of the above files.  If
  "msgpack" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!
See also "/build/migraphx/src/build/CMakeFiles/CMakeOutput.log".
See also "/build/migraphx/src/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in build().

@acxz
It should work  with existing FindPackage() logic if you were to provide CMAKE_PREFIX_PATH to cmake.

On Arch Linux the config file is located on the following path:
/usr/lib/cmake/msgpackc-cxx/msgpackc-cxx-config.cmake
What would be the proper solution in this case? Thanks.

Well probably change CMake to check if package is found, then use msgpack-cxx.

Ah yeah that's a good idea!

I have this error again.
CMake Warning at src/CMakeLists.txt:251 (find_package):
  By not providing "Findmsgpackc-cxx.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "msgpackc-cxx", but CMake did not find one.

  Could not find a package configuration file provided by "msgpackc-cxx" with
  any of the following names:

    msgpackc-cxxConfig.cmake
    msgpackc-cxx-config.cmake

  Add the installation prefix of "msgpackc-cxx" to CMAKE_PREFIX_PATH or set
  "msgpackc-cxx_DIR" to a directory containing one of the above files.  If
  "msgpackc-cxx" provides a separate development package or SDK, be sure it
  has been installed.

CMake Error at src/CMakeLists.txt:253 (find_package):
  By not providing "Findmsgpack.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "msgpack", but
  CMake did not find one.

  Could not find a package configuration file provided by "msgpack" with any
  of the following names:

    msgpackConfig.cmake
    msgpack-config.cmake

  Add the installation prefix of "msgpack" to CMAKE_PREFIX_PATH or set
  "msgpack_DIR" to a directory containing one of the above files.  If
  "msgpack" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
    ```

Now on Arch Linux the config file is located on the following path:
/usr/lib/cmake/msgpack-cxx/msgpack-cxx-config.cmake


Authentication configuration

Hi, I'm struggling to setup and test a simple authentication. So far I've been using sample signaling server from https://github.com/anastasiia-zolochevska/signaling-server. I switched to the versions from https://github.com/anastasiia-zolochevska/signaling-server-http-auth and https://github.com/anastasiia-zolochevska/3dtoolkit-identity-management with proper support (although the latter fails to start with authentication disabled). I have an active Azure AAD that might be used to generate endpoints and ids.
The configuration seems quite complex and lacking documentation (or rather consisting of multiple confusing descriptions under different issues as I dug a little deeper). Would you please provide me with more details on how to set up authentication for server/client? Also what signaling server would you recommend to use?

cc @bengreenier

Hi @machur, The configuration is definitely not super well documented today. our core team is making a push to better document and test much of our work here over the next month. That said, here's a start:

We're consolidating all of our different signaling server implementations into this project and are currently considering it a beta release. If you'd be willing to test and give feedback on the cutting edge stuff, that would be super valuable. I'll describe the steps below for the signaling implementations you call out above, and note the differences in this new one.
Prework:

Create an AAD Tenant
Create an AAD B2C Application (used for client login)
Create a Normal AAD Application (used for server login)
Record tenant name and app id's for use below
(optional) setup TURN if you need to support advanced NAT traversal scenarios. We have an article about how we did this here.
(optional) record TURN postgres credential information

Setup Signaling Authentication:

This secures transmission of sdp messages, which are the session establishment messages. It's how our clients find servers, and vice versa.

deploy signaling to azure. This is greatly simplified in the beta (just click the deploy button), but to learn more please see this walkthrough.
in App Settings set the following (note: for beta these are defined in the readme):

AAD_TENANT_ID your aad tenant info. ex: 3dtoolkit.onmicrosoft.com
AAD_B2C_CLIENT_APPLICATION_ID your add client app id. ex: aacf1b7a-104c-4efe-9ca7-9f4916d6b66a
AAD_B2C_POLICY_NAME your aad b2c policy name. ex: b2c_1_signup
AAD_RENDERING_SERVER_APPLICATION_ID your aad server app id. ex: 5b4df04b-e3bb-4710-92ca-e875d38171b3

Setup Identity Management:

This secures TURN such that short lived temporary credentials are used, and further ensures that only AAD authenticated users can retrieve said credentials. If you aren't using TURN in production, you don't need this.

deploy identity management to azure. This is still needed even in the beta.
in App Settings set the following:

PGUSER your TURN postgres username
PGDATABASE your TURN postgres database name
PGPASSWORD your TURN postgres password
PGHOST your TURN postgres hostname/fqdn
PGPORT your TURN postgres port
AAD_TENANT_ID your aad tenant info
AAD_B2C_CLIENT_APPLICATION_ID your add client app id
AAD_B2C_POLICY_NAME your aad b2c policy name
AAD_RENDERING_SERVER_APPLICATION_ID your aad server app id
AAD_B2C_CLIENT_APPLICATION_SECRET your aad client app secret
AAD_B2C_REDIRECT_URI your aad client app redirect uri (should be identity management service site with a specific path. ex: <siteName>.azurewebsites.net/device/login)

Setup OAuth24D:

This hands out credentials to clients, using short-lived device tokens and a user device to login. We have an article about how we did this, and why it exists here.

modify app.js to use a real passportjs strategy, likely passport-azure-ad (no public example yet, see https://github.com/bengreenier/oauth24d/issues/2).
deploy the modified oauth24d to azure. This is still needed even in the beta.
in App Settings set the following:

AUTH_URI the user facing authentication url (should be oauth24d service site with a specific path. ex: <siteName>.azurewebsites.net/login)
Optional settings exist, please see the readme for more info

Configuration:

See webrtcConfig for more info

For the client, we need to point it to the oauth24d service. This requires two urls in the authentication config section in webrtcConfig.json:
"authentication": {
    "codeUri": "<siteName>.azurewebsites.net/new",
    "pollUri": "<siteName>.azurewebsites.net/poll"
}

This tells the client to use the oauth24d authentication flow to direct a user to a uri to login, and give the application a token it can use to authenticate to the other services.
For the server, we need to point it to azure ad. This requires a few values in the authentication config section in webrtcConfig.json:
"authentication": {
    "authority": "<an oauth2 authority uri, tested against aadv1>",
    "resource": "<the oauth2 resource, commonly the same as clientId>",
    "clientId": "<the oauth2 authority application id>",
    "clientSecret": "<the oauth2 authority application secret>"
}

These are the same values as observed in setup above, with one caveat - authority maps to https://login.microsoftonline.com/AAD_TENANT_ID.onmicrosoft.com/oauth2/token. For instance, https://login.microsoftonline.com/3dtoolkit.onmicrosoft.com/oauth2/token. This tells the server to use client_credentials aad grant to get a token it can use to authenticate to other services.
Realtime data:
Realtime data channel messaging is encrypted using DTLS by default. Please note that if you're using TURN, data will be decrypted on the TURN node, while it is handed off to the other peer (effectively exposing MITM potential on that node). Realtime video channel communications are encrypted using SRTP by default. You can learn more here.

I captured this info into the wiki as well. As such, i'm going to close this one out for now. ✔
@machur please let me know if this isn't detailed enough or you find any issues, would be happy to clarify/improve this and re-open the issue if needed! 🚀


Bug: Gantt view not working in Playnite 10 and GameActivity 3.0

At least for me, the gantt view is not working anymore since updating to Playnite 10 and GameActivity 3.0. Everything else is working perfectly, but when I click on gantt view there is just nothing, as seen here:

same here

can you post your extension.log?


description seems insecure

There's no way we know whether or not the description is legitimate or something used to trick the user into getting tracked.
I think I raised that point before, but I cannot find a reference.

I agree: I don't see how we could safely use an arbitrary description in user agent UI.
Was there any other use for it?

I don't think so.


Pickleing?

Hi maebert!
I love this code. I was about to write my own, but I think yours accomplishes everything I could possibly want!
I'd like to help out to improve, if I can. I was thinking about contributing something to help speed up the code. I found that a 600k file took about 11 seconds everytime I wanted to access it. I dropped in a bunch of printed time statements, but couldn't find the main culprit. Do you know the limiting step?
My guess is that that the slow step might be the loading/sorting of the entries. In this case I think it may be useful to store/load a "state" file via Pickle to help the loading speed.
Thanks!!

Hi, thanks for your feedback! Is your journal encrypted?
I think parsing and sorting takes a lot of time indeed. If you're familiar with profiling in python, go right at it! If not, great time to learn it! Huy Nguyen had a nice article on line-by-line profiling a while back: http://www.huyng.com/posts/python-performance-analysis/

I just tried using jrnl with my DayOne journal of 2500 entries on a brand new, 2015 MacBook Pro.  4 seconds of CPU time to list the most recent entry:

$ time jrnl dayone --short -n 1
2015-05-18 13:41 I played with Eston today and made him lunch.

real	0m4.469s
user	0m4.007s
sys	0m0.225s
$

I agree that some sort of caching could be done.  In my opinion, sqlite would be best, because it could be selectively updated when entries change.  The solution would be such that it could be applied to any journal type.
I will start poking around at this, but don't expect anything in the next couple weeks.

Hmmm. I think for journal types with individual files it maybe makes more sense to build an index file with the dates and filenames. Currently writing an entry or loading the most recent ones requires loading ALL entries into memory, which is entirely unnecessary.

I'm with you on there being no need to load everything into memory like is happening now.
I think that by using sqlite, dates, tags, etc could be added and the filtering method could be made very efficient.  You would essentially duplicate the entire journal in the temporary database file, but I doubt anybody's journal would exceed an order of 100MB, and it would make reading much, much quicker.  If the single file journal changes outside of jrnl, jrnl will notice the timestamp and re-load the .txt into .sqlite (it would have loaded the entire thing into memory anyway, so the only overhead we're adding is writing it out to .sqlite whenever it changes outside of jrnl.  For changes inside jrnl, jrnl can be intelligent and write to the .txt file and .sqlite both).  If DayOne gets new .xml files with a timestamp newer than the latest update, they would be added to the .sqlite file.
I think it's important that the solution can be used transparently on top of any journal type to avoid special cases in the filter method in cli.py.
This would add a bit of complexity to the script, but the entire implementation would be absolutely transparent to the users, and transparent to programmers who create new journal types.  They would still have their plain text journal.
I'm not sure how much sense I'm making.  A diagram and sample code might be explain my idea better.
@maebert In your suggestion of an index file, how would it be used during the filter?  Could it be used to alleviate the slowness in @schollz's single file journal, too?

I'm with you on there being no need to load everything into memory like is happening now.
At first I was imagining an sqlite layer that wraps all journals and is essentially stores the entire journal, including entries.  It would add the complexity of another layer, but it would be an implementation detail, so to users jrnl is still a plain text journal.  It would be intelligently updated when entries are added and deleted, and would be rebuilt if the journal changes outside of jrnl.  The benefit of this approach is it would increase the performance of DayOne, plain text journals that @schollz originally wrote about, and any future types.

We'd run in all sorts of synchronicity issues there.
That said, I'm all for having SQLite as an optional back-end for people who need performance! So the options now would be

plain text journal
encrypted journal
individual plain text files
individual encrypted files
DayOne
SQLite

An SQLite back-end is ok, but I don't see it solving this issue with slow plain text journals, or my issue with slow DayOne journals.
I think the synchroncity issues you will encounter storing a copy of the journal in SQLite will be the same as those you would encounter using an index file that contains only dates, tags, and filename pointers.
When thinking through the design, it actually seems straight-forward:

Event
Result

Entry is created/edited/deleted using jrnl
SQLite is updated in addition to the real Journal file

Journal file changes outside of jrnl
When jrnl runs, it notes the timestamp on the .txt has changed and reloads the .txt into SQLite.

@maebert Am I oversimplifying things?
If you're still not a fan of bunging all entry text in the SQLite I will make an index file (SQLite) for DayOne journals and see how much I can share with plain text files to address the speed problem in this post.

Um, Why is SQLite being given a secondary status? I mean, what would be the problems in just having a SQLite database and storing all the data there?
We would still have the export functions, so users can easily export all their entries in whatever format they want.
I think a SQLite db indexed with the timestamp of jrnl entry will be the best way to store the data.
Thoughts?

The way I see it is that one of the big features of jrnl is that it's plain text.  People like that.  If you make the primary storage SQLite, one of the main selling points of jrnl is lost.  maebert has previously supported the idea of somebody making an additional jrnl type of SQLite.  What I was suggesting in this thread was using SQLite internally, transparent from the user, for speed increases.


[Logging v1] Backport v2.6.0 fixes to v2.5.10

v2.5.10 (new) chart: https://github.com/rancher/system-charts/tree/dev-v2.5/charts/rancher-logging/0.2.5
v2.5.9 (current) chart: https://github.com/rancher/system-charts/tree/dev-v2.5/charts/rancher-logging/0.2.4
Relevant issue: https://github.com/rancher/rancher/issues/34548

Rancher version: v2.5-head Commit ID 777b5d4d
Logging v1 version: v0.2.5
RKE1 DO k8s v1.20.13
I was able to do P0 test cases and I was no longer experiencing the ruby errors of the previous version.


Input elements in MUI modal are blurred after first focus

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
I am using material UI  component and I am facing this issue: When I open modal and try to focus any input element in modal (for example  or  the first focus is blurred immediately. The second focus and so on are behaving correctly (the focus is persisted). I tried using Modal props  disableAutoFocus, disableRestoreFocus,  disableEnforceFocus but none of this works
This is my minimal example code: (when I open the modal and focus the Textfield for the first time, the focus is immediately blurred)
 <Modal
        open={!!editTemplateId}
        onClose={() => setEditTemplateId(undefined)}
      >
        <Box
          sx={{
            width: '600px',
            ...modalStyles,
          }}
        >
          <TextField
            variant="filled"
            label={t('edit-modal.subject')}
            sx={{ width: '100%', mb: 2 }}
            value={ts}
            onChange={(e) => st(e.target.value)}
          />
        </Box>
      </Modal>

Current behavior 😯
Input elements in the  component are blurred for the first time they are focused
Expected behavior 🤔
Focus on input element should persist
Context 🔦
No response
Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

@adammartiska Could you make a repro in CodeSandbox? You can fork this template: https://mui.com/r/issue-template-latest

Hello, I don't know why but I am running same example in my app as it is here in code-sandbox (only the hierarchy of the components is slightly different - Modal is outsourced in separate component), but in my app it still blurs after first focus, in the code-sandbox this problem is not reproducible ( I also matched MUI versions in dependencies - I am using 5.6.1)
Here is the sandbox - https://codesandbox.io/s/gifted-star-3dcyjk?file=/src/App.tsx

Here is short video of the current behaviour
https://github.com/mui/material-ui/assets/55830313/5c9ae35e-d783-44e7-b974-c49f2050489f

Bump

We're also experiencing this issue, though we've found it behaving differently in different environments, 2 people on the same browser, same version, same code - one gets the bug and one doesn't. Which would mirror the behaviour experienced in this sandbox post. If we stumble onto a solution we'll post it here

Same issue happened to me and since I had a multiple input elements I found another way to keep autoFocus in focused element and the solution is;
const [state, setState] = useState({
    openDialog: false,
    address: {},
    formError: {},
    autoFocus: ''
  });

I defined an autoFocus field in my state and set the field name in each input value like;
      <TextField
            required
            id="firstName"
            name="firstName"
            label="First name"
            error={!!errors["firstName"]}
            helperText={errors["firstName"]}
            value={address.firstName}
            onChange={(e) =>{
              setState((prev) => ({
                ...prev,
                address: { ...prev.address, firstName: e.target.value },
              }))
            }}
            fullWidth
            variant="standard"
            onClickCapture={() => setState(prev => ({ ...prev, autoFocus: 'firstName' }))}
            autoFocus={autoFocus === 'firstName'}
          />

by doing this I can capture the focused element and I set autoFocus for that particular element and issue has gone!


Update gradle wrapper to the latest version

See https://docs.gradle.org/current/userguide/upgrading_version_7.html for more information.

Done in #531


refactor: [M3-7436] - Update Account Queries to use Query Key Factory

Description 📝

Updates all account related queries use a query key factory 🏭
Cleans up file/folder structure for account queries 📁 🧹

Preview 📷

[!note]
There should be no UI changes

How to test 🧪

Test general account related functionality 👤

Payments/Invoices
Betas
Login History
Settings
Users
Availabilities

Open the React Query dev tools and ensure query keys look correct 🔑
Test parent/child features and verify this does not break any of it 👪

As an Author I have considered 🤔

[ ] 👀 Doing a self review
[ ] ❔ Our contribution guidelines
[ ] 🤏 Splitting feature into small PRs
[x] ➕ Adding a changeset
[ ] 🧪 Providing/Improving test coverage
[ ] 🔐 Removing all sensitive information from the code and PR description
[ ] 🚩 Using a feature flag to protect the release
[ ] 👣 Providing comprehensive reproduction steps
[x] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

Sorry this PR got so big 😢
It still needs 1 more review! I'll be sure to merge it after we cut the 3/18 release branch so it has time to sit in develop


ansible extension becomes inactive

Sanity check

[X] I certify that the redhat.ansible extension is in use and the language of the document in this bug report shows up as Ansible

Summary
It works fine days ago. Today the ansible extension stops working. No lint, no grammar checking, no completion, nothing works. The Runtime status become Not yet activated.. I tried to reinstall the extension. It does not work.
Suspicious change was I upgraded the ansible yesterday
Path to ansible is: ansible, Path to ansible-lint is : ansible-lint.
trace is set to verbose
Extension version
v0.11.10
VS Code version
1.69.2
Ansible Version
ansible [core 2.13.2]
  config file = /home/user/.ansible.cfg
  configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/user/.local/lib/python3.8/site-packages/ansible
  ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/user/.local/bin/ansible
  python version = 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0]
  jinja version = 3.1.2
  libyaml = True

OS / Environment
Ubuntu 20.04
Relevant log output
no output at all

Please update to v0.11.12 (pre-release). Let us know if it still doesn't work!

v0.11.12 works fine

Pre-release v0.11.12 fixed this for me as well!


Phone-ring icon animation

Describe the project you want to add with tech stack

This project contains a phone-ring icon animation.Can you assign this task to me?
Expected behavior

Screenshots (optional)

Additional context (optional )

@MohitGupta121 ,@TusharKesarwani Can you assign this task to me?


Can this work be extended to RGB inputs?

Thanks for your impressive work. I only have RGB images, Can this work be extended to RGB inputs?

Thanks for your impressive work. I only have RGB images, Can this work be extended to RGB inputs?

Hi SuyueLiu!
Were you able to recreate the results presented in the paper using the provided implementation over the provided dataset?
If you did, i'd love to contact.
Or


Remove cluster.hosts

Description:
Since Cluster's load_assignment field is implemented (#3864), remove Cluster's hosts.
Risk Level: Medium
Testing: Existing tests
Release Notes: TBA
Fixes #4618
Signed-off-by: Dhi Aurrahman<EMAIL_ADDRESS>

Hit by stoi: no conversion somewhere. I think this is still WIP then.

@htuch I think the relevant conversation is here: https://github.com/envoyproxy/envoy/pull/3261#discussion_r185686821 I'm more than happy to support both hosts and load_assignment and set to have hosts for DNS addresses.

@dio yeah, IDK, I think now that we have DNS supported inside EDS load assignments, we've basically unlocked the Pandoras box, so what you have in this PR is fine. It would be nice to have some variant of ClusterLoadAssignment that was essentially flattened, or a canonical form, that had less boiler plate and locality for the common case of flat DNS discovery.

It would be nice to have some variant of ClusterLoadAssignment that was essentially flattened, or a canonical form, that had less boilerplate and locality for the common case of flat DNS discovery.

Cool. Yeah, I agree with this.

@dio that said, I'm basically OK with what you have here. It would be ideal to validate as many of the examples as is reasonable. FWIW, in an ideal world it would be awesome to be able to consume all our examples from buildable/testable configs. But, that's probably more work than it's worth.


Error when doing RNBoundary.add

I'm using the sample code provided in the Readme.md, and I'm getting this error in the log.
I think it has to do something with the configuration in the index.js, but I'm unsure how to correct it. Please help.
'error :(', { [TypeError: null is not an object (evaluating 'RNBoundary.add')] line: 192577, column: 19, sourceURL: 'http://localhost:8081/index.delta?platform=android&dev=true&minify=false' }

Can I see how you import RNBoundary? And what are you passing into add?

I actually was just able to reproduce this by not running react-native link react-native-boundary. Can you check if you've linked the library?

Closing the issue as I strongly suspect this is just a misconfiguration. If I'm wrong, I'll reopen.

I linked it manually and it didn't work. Once I used react-native link react-native-boundary, it worked. Thankyou so much

@eddieowens would be nice to document this one!

'react-native' is not recognized as an internal or external command, operable program or batch file.
Please help.


UI changes - guest users

Title of section 2- Your location details

Change titles here

[ ] Select the most suitable category

[ ] Enter details here
(In bullet points below in smaller text under the main title)

explain your matter clearly

include facts and specific details

state any urgent circumstances.

[ ] Attach related files (documents, images, audio/video)

Make these drop downs sentence case:

COVID-19
Samurdhi
Diplomats/Embassies/NGOs
Government Organization

[ ] Make subcategory extend on two lines

[ ] Make changes to category list: https://github.com/LSFLK/request-management/issues/10#issuecomment-613823601

[ ] Remove date and time as these are auto-logged when the user submits the request

[ ] When you select tamil or sinhala, step 3 does not get translated. It remains in english

Can't move on and attach files, and submit request:
https://github.com/LSFLK/request-management/issues/84

[ ] In the Location information section, include the instruction:
If the location where help is required differs from your address, please fill in this section w/ the location details.

[ ]  Make all fields in Location information optional, no asterisks.

[ ] https://github.com/LSFLK/request-management/issues/82#issuecomment-617115480

[ ] Guest user form: Make drop downs for category or district more mobile friendly


Another option to get meta language

 Issue by mercuree
Sun Dec 25 15:36:24 2016
Originally opened as https://github.com/codelucas/newspaper/pull/312

Yet another place where we can get meta language (used by independent.co.uk)
http://ogp.me/#optional

mercuree included the following code: https://github.com/codelucas/newspaper/pull/312/commits

is implemented


babel-eslint error on "declare module.exports: {" flow declaration

Please also refer to: https://github.com/flowtype/flow-typed/issues/161
In this declaration, used for flow type checking:
https://github.com/flowtype/flow-typed/blob/master/definitions/npm/express_v4.x.x/flow_>%3Dv0.25.x/express_v4.x.x.js#L227
Eslint fails with Parsing error: Unexpected token on it. The declaration is correct from flow syntax point of view.

This was forwarded to babel/babylon#70

This was fixed in Babylon v6.9.0 https://github.com/babel/babylon/pull/72


feat: include clang-format as a stripped package

Working on the stripped package mentioned #147 to allow a much lighter weight clang-format package for use in tools like pre-commit.
Not sure about quite a few things, but hopefully this is a start. I'm not sure where the files are coming from - I'd like to reuse them from the ones built in clang-tools if possible - and it seems like there are there, except the tests show clang-format missing when I build it locally.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Thank you for the help! JK, why is this clang-format-12? Isn't this already versioned, clang-format==12?

Usually I need different clang-format versions because of projects using different versions since the versions are incompatible with each other. Thoughts?

I'd generally trust package numbers via pinning (==12.*), and would expect to call clang-format rather than clang-format-X, where I have to keep changing X every time this updates. However, it's not unreasonable if you want it that way. My interest is in writing a .pre-commit-hooks.yaml (like black, for example), and for that, the executable can be specified, so it's not too bad if you really think having it numbered is better.

Is anything else needed?

Thanks! However, this is still 287 MB (better!) and has a lot of files that shouldn't be there, like c-index-test and libLLVM:
# du -sh bin/* | sort -hr
35M	bin/c-index-test
18M	bin/clangd
11M	bin/clang-tidy-12-12
11M	bin/clang-tidy-12
1.3M	bin/clang-doc-12-12
1.3M	bin/clang-doc-12
808K	bin/openssl
732K	bin/diagtool
732K	bin/clang-change-namespace-12-12
732K	bin/clang-change-namespace-12
720K	bin/find-all-symbols
...

# du -sh lib/* | sort -hr
110M	lib/libLLVM-12.so
70M	lib/libclang-cpp.so.12
12M	lib/libstdc++.so.6.0.29
3.2M	lib/libcrypto.so.1.1
924K	lib/libgomp.so.1.0.0

Also eventually needs a rerender to get the new outputs into the README.

has a lot of files that shouldn't be there, like c-index-test and libLLVM

These are needed as clang is dynamically linked in conda-forge:
$ ldd $(which clang-format)
	linux-vdso.so.1 (0x00007fffa9fe0000)
	libclang-cpp.so.12 => /home/cburr/miniconda3/envs/test/bin/../lib/libclang-cpp.so.12 (0x00007f0720d60000)
	libLLVM-12.so => /home/cburr/miniconda3/envs/test/bin/../lib/libLLVM-12.so (0x00007f071a9c1000)
	libstdc++.so.6 => /home/cburr/miniconda3/envs/test/bin/../lib/libstdc++.so.6 (0x00007f071a816000)

I thought libLLVM wasn't needed for clang-format, but that's fine - I just need it under 250MB, and removing all the other bin contents (c-index-test would almost do it, one or two more, like clangd or clang-tidy, would ensure it).

The lines
    files:
       - bin/clang-format      # [unix]
       - bin/clang-format.exe  # [win]

were supposed to avoid other clang tools, like c-index-test, I thought. Is it coming from somewhere else?

Should we add a script to delete the extra binaries? Is there something we can do to "fix" the files command? Or, maybe best, is there a way to only build clang-format and not all the rest of the tools? Maybe I should look into that next?

Stripping libLLVM-12.so and libclang-cpp.so.12 can also save another 21MB if that's an practical option (or modifying the cmake configuration to avoid the bloat in the first place).
Something is also fishy as I can see clang-format-12 contains the unversioned binary but clang-format only has the versioned binaries.

I understand what's happening bit better now, looking at the Conda-build docs for outputs. Looks like script: and file: are both trying to copy files from the original build directory (which happens outside of the output, good). So adding these to file doesn't filter what's already been copied by script:, which is everything.

Stripping libLLVM-12.so and libclang-cpp.so.12 can also save another 21MB if that's an practical option (or modifying the cmake configuration to avoid the bloat in the first place).

Should we make this a new issue so it can be looked into eventually? The package is small enough to make me happy now, but if we can reduce the size further, that wouldn't hurt. I also don't understand why libLLVM is required at all here, as it's apparently not required when you build clang-format with GCC.


Fixed Grammar in Steps 8 and 10 of Accessibility Quiz Challenge

Checklist:

[ x] I have read freeCodeCamp's contribution guidelines.
[ x] My pull request has a descriptive title (not a vague title like Update index.md)
[x ] My pull request targets the main branch of freeCodeCamp.
[ x] I have tested these changes either locally on my machine, or GitPod.

Closes #48238

Happy to keep editing the grammar, just wanted to get this in for Hacktoberfest.

Hi @disabledandfab, Congrats on your first pull request (PR)! 🎉
Thank you for your contribution to the page! 👍
We are happy to accept these changes and look forward to future contributions. 📝


Unexpose methods and property for binding children to Bones in Skeleton3D

These methods have been marked "Deprecated Soon" since 0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac. They can't be removed, because they are used by BoneAttachment, which is what should be used to bind a Node to a Bone.
Closes https://github.com/godotengine/godot-docs/issues/2177

Thanks!


Define proper identifiers/aliases in each sample application

Define proper identifiers/aliases in each sample application

Thanks for the fix @dinithis! I have now merged this pull request to master branch.


[vi] Supervised Learning

@shervinea I'm translating Supervised Learning Cheatsheet into Vietnamese, could you add in progress label for me? Thank you a lot.

Hi @shervinea . I have force pushed to my brach vi_translating_cheatsheet_supervised_learning. Is there any problem if you merge this pull request to your project? Just tell me if you feel uncomfortable with my force pushed commit, I'll re-create a new pull request for this translation. Many thanks.

Hi @damminhtien . Many thanks to your review, I have finished my translation on cheatsheet_supervised_learning. Could you continue reviewing its content for me?

@shervinea I have finished my translation on cheatsheet_supervised_learning. Could you change the label of this pull request for me? Thanks.

Hi @damminhtien . Many thanks to your review, I have finished my translation on cheatsheet_supervised_learning. Could you continue reviewing its content for me?

In my view, your work is totally awesome. No longer comment. Let's others review.

@tuananhhedspibk Thank you for all your work! Just did it.

Hey @minhbk , @damminhtien , could you guys check this translation 's content for me once more times? Many thanks!

@damminhtien , I have fixed it. Please check once more time for me. Thanks

Thank you @tuananhhedspibk, @damminhtien, @hungnguyen95 and @minhbk for all your hard work! Merging this PR right now.


Add Centro Universitario UNIFACIG

LINK

Official website
URL

Long-term (>1 year) IT related course is offered by the university
Here you will find information about the Systems Analysis and Development course

Proof that the university recognizes the domain
Here you will find a screenshot of the access to e-mail with the university's domain

@alexm4tos Pull request merged. Thank you!