insertOnConflictUpdate fires an 'UpdateKind.insert' during conflict/update

When calling 'insertOnConflictUpdate' that triggers a conflict and hence branches to perform an UPDATE, the code fires an 'insert' event.
Should probably fire an 'update' so UI knows to update existing records rather than perform a reload/insertion...
insert.dart
  Future<int> insert(
    Insertable<D> entity, {
    InsertMode? mode,
    UpsertClause<T, D>? onConflict,
  }) async {
    final ctx = createContext(entity, mode ?? InsertMode.insert,
        onConflict: onConflict);

    return await database.doWhenOpened((e) async {
      final id = await e.runInsert(ctx.sql, ctx.boundVariables);
      database
          .notifyUpdates({TableUpdate.onTable(table, kind: UpdateKind.insert)});
      return id;
    });
  }

The idea of the UpdateKind enum is  to properly consider triggers added to the database when considering which streams need updating. E.g. we when there's a trigger AFTER UPDATE ON foo BEGIN INSERT INTO bar ... END, we know that updates on foo also invalidate streams listening on bar.
There's no way for us to know whether an upsert ran an insert or an update since that decision happens in the database engine and not in Dart. The general statement we're running is an insert, and that's what we're reporting.

so UI knows to update existing records rather than perform a reload/insertion...

That's not really an accurate way to check for new records. The UI should react to changes of the current snapshot (by comparing the rows with the previous snapshot if necessary).
I'll document the limitation, but I don't think we should try to infer the update kind for upserts.

Thanks @simolus3,
That makes sense.
How I came about that conclusion (which may be incorrect), is I was calling 'insertOnConflictUpdate', which internally looks like this:
Future<int> insertOnConflictUpdate(Insertable<D> entity) {
    return insert(entity, onConflict: DoUpdate((_) => entity));
}

So it looked like it was an explicit decision happening in application code, to respond to a failed insert, with an update....
  Future<int> insert(
    Insertable<D> entity, {
    InsertMode? mode,
    UpsertClause<T, D>? onConflict,
  }) async {
    final ctx = createContext(entity, mode ?? InsertMode.insert,
        onConflict: onConflict);

    return await database.doWhenOpened((e) async {
      final id = await e.runInsert(ctx.sql, ctx.boundVariables);
      database
          .notifyUpdates({TableUpdate.onTable(table, kind: UpdateKind.insert)});
      return id;
    });
  }

But I guess, as you've explained, there is more going on there - perhaps other code paths to get to that point.
Thanks!


[FLINK-18683][table-common] Support @DataTypeHint for table/aggregate function output types

What is the purpose of the change
Allows to use @DataTypeHint(...) as a synonym @FunctionHint(output = @DataTypeHint(...)) for table and aggregate functions.
Brief change log
Search for a single @DataTypeHint(...) on top of method/class if reflection extraction is used.
Verifying this change
This change added tests and can be verified as follows: TypeInferenceExtractorTest
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): yes
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn/Mesos, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? yes
If yes, how is the feature documented? JavaDocs

Thanks for your review @aljoscha. I addressed your comments. Will merge this if you have no objections.

Ok, please go ahead.


No need to inherit from object, all classes do this implicitly.

As per the 3.5.1. docs:

For example, all classes inherit from object, so any case of multiple inheritance provides more than one path to reach object.

Note: I haven't actually tried running this since I don't want my account banned. Fairly confident this should work though...

If I or someone in the future decided that they wanted a Python 2.7 version, I believe this will cause an issue. I don't believe that in Python 2 all classes inherit from object.
Any thoughts?

Same thing goes for 2.7. Maybe some older python than that fails, but does anyone really use anything less than 2.7?

You learn something every day, thanks for the pull request. I see no need to support anything less than 2.7. Merged.


#490 - Part 1: Add ability to override neovim path

I suspect that the Windows crash is fixed in the latest neovim build, so I want to test it out locally before bumping the neovim version. This change adds the ability to point to a local version of neovim.
The intention is to use this primarily for troubleshooting between versions of Neovim, but not something to be used day-to-day. I'd like to package neovim builds so that it is a friction-free setup (and all the features work out of the box), and potentially look at leveraging a WebAssembly build of Neovim later.

Troubleshooting for #490  - need to validate if moving to a different Neovim version addresses the crash


Blacklist or Catch urls without using Catch All

So I enabled catch all so that I could get a list of urls that are not being handled.
Now nothing can visit robots.txt, humans.txt or sitemap.xml.
Is there a way to catch 404s while also letting craft handle just serving up the 404 template if it thinks it is needed.
If that is not something that can happen I would love to have a don't catch blacklist option.

Please let me know if this is fixed in version 1.0.20


Intellisense sometimes doesn't work

VSCode Version: Code 1.11.2 (6eaebe3b9c70406d67c97779468c324a7a95db0e, 2017-04-13T07:56:42.517Z)
OS Version: Darwin x64 15.6.0
Extensions:

Extension
Author
Version

vscode-eslint
dbaeumer
1.2.8

flow-for-vscode
flowtype
0.5.0

vscode-icons
robertohuertasm
7.5.1

Align
steve8708
0.2.0

Hi guys, first of all, vscode is a very powerful tool. I use it for my frontend development, Lately I have been facing issues with iIntellisense, i.e. sometimes it doesn't work. When I hover over a variable, it just show loading text. When I cmd + click on a particular function, it doesn't go to the it's definition.
Whenever I encounter it I have to restart the vscode to make it working.
I don't have steps to reproduce, but I suspect |vscode-eslint|dbaeumer|1.2.8| is impacting the intellisense.

To check if an extension is the root cause here, try running code using the --disable-extensions flag.
If you still see this issue, you may also want to try the current VSCode insiders build. This includes a number of fixes for these sort of hangs while working with JS/TS files.
Let me know if either of those solve the problem for you

Closing as we need more information to investigate this.
@haani104 Please try out the latest vscode insiders build with extensions disabled and let me know if you are still seeing this issue

Hi,
I have installed the insiders build, i.e. Version 1.12.0-insider (1.12.0-insider) and when intellisense doesn't work below errors I see in dev console.
Cannot convert undefined or null to object: TypeError: Cannot convert undefined or null to object
    at e.onModelDecorationsChanged (file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:651773)
    at t._onEvents (file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:661808)
    at t.onEvents (file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:659485)
    at file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:657461
    at r (file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:40311)
    at t._emitEvents (file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:44047)
    at t.e._emitCollected (file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:43392)
    at t.e.endDeferredEmit (file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:43135)
    at t.changeDecorations (file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:957491)
    at t.deltaDecorations (file:////Users/haani/Downloads/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28:958244)

@haani104 Did you try disabling extensions? That an exception is hit seems like a bug on our side, but an extension may be causing this in the first place

Ok, I am having themes installed. Will disable all extension and if the error comes again, will update here.

Still getting the same error after disabling the extensions

@haani104  Can you give the latest VSCode 1.12.2 a try and also the latest insiders builds to see if this was fixed.
Also, this looks like the same stack trace as in #25822. Is that the case? The javascript intellisense getting disabled may just be a symptom of some other problem here


Fix Web WhatsApp session is not working with new Multi-device beta

To reproduce join Multi-device beta and try to save session and restore session it is failing to restore session
from tithiwa import *

tithiwabot = Tithiwa()
tithiwabot.generate_session("01")

tithiwabot1 = Tithiwa()
tithiwabot1.open_session("01")

On diff checking between two session strings I found most key-value pairs were the same except a few like "debugCursor", could they be using values from those keys to verify if the session was newly initiated?

good findings, we can investigate it by experimenting about how web WhatsApp is storing sessions by trying to remove local storage or/and indexDB. Then we might figure out that both local storage and indexDB matter for sessions so, we have to get both local storage and indexDB from the browser in order to extract sessions.


Updated ZUUIRevealVC to initialize from xib / storyboard

A simple addition of -initWithCoder method will ensure that we can even initialize the ZUUIRevealController from xib / storyboard.

Sorry wrong pull request!


Datastore - Datastore object creation fails with version 1.5.1

I'm trying to upgrade from version 1.2.3 of the Datastore API to the latest version, 1.5.1. The below sample code fails creating the Datastore object/service.
Datastore datastore = DatastoreOptions.newBuilder().build().getService();

Tests are running on my laptop with gcloud installed. Version 1.2.3 works fine by fetching the defaults (e.g. project/credentials) from Google Cloud SDK. Version 1.5.1 is producing the below exception:
Exception in thread "main" java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in path at index 45: https://datastore.googleapis.com/v1/projects/<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><meta http-equiv="refresh" content="0;url=http://finder.cox.net/main?ParticipantID=96e687opkbv4scrood8k84drs6gw5duf&FailedURI=http%3A%2F%2Fmetadata.google.internal%2FcomputeMetadata%2Fv1%2Fproject%2Fproject-id&FailureMode=1&Implementation=&AddInType=4&Version=pywr1.0&ClientLocation=us"/>
	at com.google.datastore.v1.client.DatastoreFactory.validateUrl(DatastoreFactory.java:118)
	at com.google.datastore.v1.client.DatastoreFactory.buildProjectEndpoint(DatastoreFactory.java:104)
	at com.google.datastore.v1.client.DatastoreFactory.newRemoteRpc(DatastoreFactory.java:111)
	at com.google.datastore.v1.client.DatastoreFactory.create(DatastoreFactory.java:65)
	at com.google.cloud.datastore.spi.v1.HttpDatastoreRpc.<init>(HttpDatastoreRpc.java:71)
	at com.google.cloud.datastore.DatastoreOptions$DefaultDatastoreRpcFactory.create(DatastoreOptions.java:61)
	at com.google.cloud.datastore.DatastoreOptions$DefaultDatastoreRpcFactory.create(DatastoreOptions.java:55)
	at com.google.cloud.ServiceOptions.getRpc(ServiceOptions.java:472)
	at com.google.cloud.datastore.DatastoreOptions.getDatastoreRpcV1(DatastoreOptions.java:179)
	at com.google.cloud.datastore.DatastoreImpl.<init>(DatastoreImpl.java:55)
	at com.google.cloud.datastore.DatastoreOptions$DefaultDatastoreFactory.create(DatastoreOptions.java:51)
	at com.google.cloud.datastore.DatastoreOptions$DefaultDatastoreFactory.create(DatastoreOptions.java:45)
	at com.google.cloud.ServiceOptions.getService(ServiceOptions.java:459)
	at com.jmethods.catatumbo.DatastoreTest.main(DatastoreTest.java:29)
Caused by: java.net.URISyntaxException: Illegal character in path at index 45: https://datastore.googleapis.com/v1/projects/<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><meta http-equiv="refresh" content="0;url=http://finder.cox.net/main?ParticipantID=96e687opkbv4scrood8k84drs6gw5duf&FailedURI=http%3A%2F%2Fmetadata.google.internal%2FcomputeMetadata%2Fv1%2Fproject%2Fproject-id&FailureMode=1&Implementation=&AddInType=4&Version=pywr1.0&ClientLocation=us"/>
	at java.net.URI$Parser.fail(URI.java:2848)
	at java.net.URI$Parser.checkChars(URI.java:3021)
	at java.net.URI$Parser.parseHierarchical(URI.java:3105)
	at java.net.URI$Parser.parse(URI.java:3053)
	at java.net.URI.<init>(URI.java:588)
	at com.google.datastore.v1.client.DatastoreFactory.validateUrl(DatastoreFactory.java:116)
	... 13 more

I have traced it down to ServiceOptions.getAppEngineProjectId method where it tries to get the project ID from Metadata Server. Apparently, the http request executed by that method returns some string, and that string is assumed to be project ID. In my case, the default project ID is coming up as -
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><meta http-equiv="refresh" content="0;url=http://finder.cox.net/main?ParticipantID=96e687opkbv4scrood8k84drs6gw5duf&FailedURI=http%3A%2F%2Fmetadata.google.internal%2FcomputeMetadata%2Fv1%2Fproject%2Fproject-id&FailureMode=1&Implementation=&AddInType=4&Version=pywr1.0&ClientLocation=us"/>

Looks like this is an error from my Internet Service provider connecting to http://metadata.google.internal
I do not have any environment variables such as GOOGLE_* set, and solely relying on the environment set up by the gcloud tool. Why is code running on my laptop trying to find the AppEngine project ID from the metadata server? Is anyone else experiencing this?

Running the same code with 1.5.1 on a different network/ISP works fine. The lookup of project ID from the Metadata Server fails as expected with -
java.net.UnknownHostException: metadata.google.internal

and continues on with the subsequent searches - finds google cloud SDK's configuration file (config_default) and finds the correct project ID.
Looks like this is an issue with some ISPs? My ISP at home is Cox and there we are getting a 200 OK response with some error text to indicate page not found for the URL http://metadata.google.internal/computeMetadata/v1/project/project-id, and the API is assuming that the error message is a project ID.

This is perhaps a classic example of DNS Hijacking by my ISP? Cox is listed on the page below.
https://en.wikipedia.org/wiki/DNS_hijacking#Manipulation_by_ISPs

I changed my DNS at home to Google Public DNS and the issue is resolved. Not sure if there is anything that could be done in the API, like, check the returned string from the metadata server and make sure it is even a valid (length, the characters in the string, etc) project ID.

@sai-pullabhotla Thanks for providing the detailed information.  Metadata server is the last resort to fetching project id (see code here). A recommended way is to explicitly set environment variable to project id.

@neozwu  -
Technically speaking, fetching from gcloud settings is the last resort. In my specific case, there is a false positive from the metadata server lookup, which returns a huge HTML/JavaScript combination as the project ID. Instead of assuming it as a valid project ID, it would be nice to have some sanity check on the response to ensure it can possibly be a  project ID. For example, there might be something in the response header that could be validated (e.g. Server) or to ensure the response is a valid project ID based on its length and the characters in the string.
For example -
Project ID must be between 6 and 30 characters.
Project ID can have lowercase letters, digits or hyphens and must start with a lowercase letter.
If these conditions evaluate to false, return null, so the code can continue with the next options.

@sai-pullabhotla This indeed makes sense. I will label this as a P2 bug and will implement the validation logic.
/cc @lesv

metadata.google.internal should only be hit if you are running in the cloud.  The environment variables should be set that you aren't in production.
Production is true if any of these EnvVar's are set:
GAE_DEPLOYMENT_ID |<PHONE_NUMBER>36086879
GAE_ENV | standard
GAE_INSTANCE | 00c61b117c3c060e0818e8018dc0bd8dcb7397a6ca2c8ca943c2c677c170a95b93027639697422
USER | appengine
GAE_VERSION | gaeinfo:20170722t140621
GAE_RUNTIME | java8
That said, I would check the Java System Property:
com.google.appengine.runtime.environment  == Production  or  Development
If Development, don't try to hit metadata.google.internal

#2822  fixes this.

What @lesv describes here is true for App Engine, but not for GCE/GKE. Ideally we would fix this no matter where a user is running. @hzyi-google's work in validating the response from the metadata service is a good start. If we were to check the Metadata-Flavor header we could cover GCE cases easily, and for App Engine environments we shouldn't need to contact the metadata service for this information anyway (it's in the GOOGLE_CLOUD_PROJECT environmental variable, cf. b/64313434).


Unlocker not working on Genshin version 5.1 for global version

Hello,
The unlocker doesn't seem to be working on latest release 3.3.0. I ran exe as administrator, the FPS seems stuck on 58, VSync is off as well. Monitor refresh rate is 240Hz
OS Name: MS Windows 11 Home
OS Version:  10.0.22631 Build 22631
Nvidia driver version: 565.90
Genshin version: 5.1
Unlocker release version: 3.3.0

I tried fullscreen and borderless 4k, still same issue. I usually have 2 monitors but I disabled one and ran it only on the 240Hz monitor, still stuck on 58 fps. I repaired installation on HoyoPlay as well, no luck.
Let me know of any suggestions on how to potentially fix it, thanks.

The tool does work. It is just that MSI afterburner cannot capture the correct FPS. Try to  open the game without the tool then move camera around, u will see the difference.

I did try with and without unlocker, I see no visual difference. This tool used to work for me almost a year ago(even with MSI). I also tried another fps monitoring tool after your comment, but I still get the same 58 fps. I feel like my pc might be cursed or something.

I did try with and without unlocker, I see no visual difference. This tool used to work for me almost a year ago(even with MSI). I also tried another fps monitoring tool after your comment, but I still get the same 58 fps. I feel like my pc might be cursed or something.

What is the refresh rate of your monitor? I would suggest following steps:

turn off V-sync ingame
reinstall GPU driver with clean install option (wipe all previous setting)
Run the FPS unlocker tool as admin

I am not sure if it impacts the tool but both my PC and laptop have "Memory integrity" setting in Windows Security turned off. You may want to take a look at this too.

Mem integrity is already off for me. Clean install drivers fixed it. Thanks a lot 👍


Cannot read property 'name' of undefined

I've the following problem, following the example I see the below error:
Cannot read property 'name' of undefined
My code is:
import {createIconSetFromIcoMoon} from "react-native-vector-icons";
import icoMoonConfig from "../../assets/fonts/climatempo.json";
export default createIconSetFromIcoMoon(icoMoonConfig, "climatempo", "climatempo.ttf");

I checked a twice, and the fonts and files are right, some idea the  how to solve that ?

I'm also seeing this error.  Examining the JSON, it appears that the format has changed (again?).  Here's a thread discussing that from 2013.
https://groups.google.com/forum/#!topic/icomoon/8TZV8pjCZi8
The current format looks significantly different.  I'll see if I can modify the source code to support the new format.

Closing this as duplicate then 👍


add an option for xi18n tool to detect Inconsistency for ID content

🚀 Feature request
Command (mark with an x)

[ ] new
[ ] build
[ ] serve
[ ] test
[ ] e2e
[ ] generate
[ ] add
[ ] update
[ ] lint
[x ] xi18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Description
With angular i18n, If the same message ID is used in several different places in the source code , but contains different messages, the extracted.xlf contains only one occurence of the ID, one source message (the first one found in sources) and the different locations where the message have been found.
But sometimes during developement process, for different reasons (copy/paste, modification of the message in one source and not in others, etc ....) the same ID, does not contain the same message, and it generates bugs because the messsage will be replace by the only one translation.
In one angular application the same i18n ID used in different places MUST refer the same message. If not, it means there is a problem to be fixed.
example:
<button mat-menu-itemi18n="@@MY_TEXT_LABEL"(click)="openAuthenticationConfigurationModal()">   The first Text </button>
and somewhere else in the code
<app-readonly-field i18n-label="@@MY_TEXT_LABEL" label="Another Text">{{getLabelFor()}}</app-readonly-field>
Describe the solution you'd like
To avoid this problem, it would be nice to have an option for xi18n tool to detect if a message ID , used several times, refers the same message or not.
something like :
--checkIdContentConsistency
--checkIdSourceConsistency
The xi18n tool has all information to do this check easily
Describe alternatives you've considered
I've thought to develop some scripts to do, but no easy to implement a angular code parser to extract all messages from code

Transferring to the Framework repo for the moment, since this is where the message extractor lives.


Installation via pip doesn't work

First - thanks for this package, it sounds amazing.
The issue I'm facing is actually in installation - keep getting the following error after (installing via pip in anaconda):
!pip3 install pyfinance
Collecting pyfinance
Using cached https://files.pythonhosted.org/packages/74/20/7dd8767ec785cfcdce714e170a0a7b1c79feb7085e6217ec8dc43b4a74d3/pyfinance-1.1.1.tar.gz
Requirement already satisfied: beautifulsoup4>=4.6.0 in c:\users\mi113\appdata\local\continuum\anaconda3\lib\site-packages (from pyfinance) (4.6.0)
Requirement already satisfied: matplotlib>=1.1 in c:\users\mi113\appdata\local\continuum\anaconda3\lib\site-packages (from pyfinance) (2.1.0)
Requirement already satisfied: numpy>=0.7.0 in c:\users\mi113\appdata\local\continuum\anaconda3\lib\site-packages (from pyfinance) (1.13.3)
Exception:
Traceback (most recent call last):
File "c:\users\mi113\appdata\local\continuum\anaconda3\lib\site-packages\pip_internal\basecommand.py", line 141, in main
status = self.run(options, args)
File "c:\users\mi113\appdata\local\continuum\anaconda3\lib\site-packages\pip_internal\commands\install.py", line 299, in run
resolver.resolve(requirement_set)
File "c:\users\mi113\appdata\local\continuum\anaconda3\lib\site-packages\pip_internal\resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
File "c:\users\mi113\appdata\local\continuum\anaconda3\lib\site-packages\pip_internal\resolve.py", line 261, in _resolve_one
check_dist_requires_python(dist)
File "c:\users\mi113\appdata\local\continuum\anaconda3\lib\site-packages\pip_internal\utils\packaging.py", line 46, in check_dist_requires_python
feed_parser.feed(metadata)
File "c:\users\mi113\appdata\local\continuum\anaconda3\lib\email\feedparser.py", line 175, in feed
self._input.push(data)
File "c:\users\mi113\appdata\local\continuum\anaconda3\lib\email\feedparser.py", line 103, in push
self._partial.write(data)
TypeError: string argument expected, got 'NoneType'
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

Hi @miqbal92 : just wanted to make sure this issue went away?
I'm not seeing any error when installing via pip on Mac OSX or Linux Ubuntu.


[web-component-tester] runner always needs to inject mocha for the generated index

I forgot to inject mocha into the scripts to load and that's totally necessary or generated index or wct-mocha/browser.js will complain that Mocha isn't loaded.
Also, I removed the definition of a default wctPackageName option in config.ts since webserver.ts now assigns (if undefined) in terms of the first resolved WCT client package when attempting to resolve them in order of wct-mocha, wct-browser-legacy, web-component-tester.

I caught the issue of Mocha not being injected in my wct-mocha integration tests (the only place it wasn't happening, since it happens for wct-browser-legacy and web-component-tester already).  I'm piece-mealing the mega PR over in chunks, so the coverage is coming in the add wct-mocha package PR.


Document the two bundles in lib/README.md

The lib/README.md refers to the old browser/xpoc.min.js; we need to update it to describe usage of the two ("esm" and "iife") bundles.

Fixed in #125


interface/vlan rename/rearrange support

I've built a test environment (pfsense/opnsense) on a VM and I want to migrate it to a physical opnsense. However the hardware NIC names of both are different: em1 or vmx1 and these cause issues with assignments and VLAN. Is it possible to check/modify those in the conversion process?

I've built a test environment (pfsense/opnsense) on a VM and I want to migrate it to a physical opnsense. However the hardware NIC names of both are different: em1 or vmx1 and these cause issues with assignments and VLAN. Is it possible to check/modify those in the conversion process?

Should be able to. I should have time to work on some of these items this weekend.


Nvidia GeForce RTX 4070 doesnt load llama 7b

System Info

GPU (Nvidia GeForce RTX 4070)
CPU AMD Ryzen 9 5900X 12-Core Processor
64 Gig RAM
2 Tb SSD

I downloaded huggingface llama 7b model.
https://huggingface.co/meta-llama/Llama-2-7b-chat-hf
I am trying to load it using following command
Build the LLaMA 7B model using a single GPU and FP16.
python build.py --model_dir ./tmp/llama/7B/ \
                --dtype float16 \
                --remove_input_padding \
                --use_gpt_attention_plugin float16 \
                --enable_context_fmha \
                --use_gemm_plugin float16 \
                --output_dir ./tmp/llama/7B/trt_engines/fp16/1-gpu/

It gives following error.
[01/17/2024-22:14:09] [TRT] [W] Tactic Device request: 16512MB Available: 12281MB. Device memory is insufficient to use tactic.
[01/17/2024-22:14:09] [TRT] [W] UNSUPPORTED_STATESkipping tactic 0 due to insufficient memory on requested size of 16512 detected for tactic 0x000000000000001d.
[01/17/2024-22:14:09] [TRT] [W] Tactic Device request: 16512MB Available: 12281MB. Device memory is insufficient to use tactic.
[01/17/2024-22:14:09] [TRT] [W] UNSUPPORTED_STATESkipping tactic 1 due to insufficient memory on requested size of 16512 detected for tactic 0x000000000000001e.
[01/17/2024-22:14:09] [TRT] [W] Tactic Device request: 16512MB Available: 12281MB. Device memory is insufficient to use tactic.
[01/17/2024-22:14:09] [TRT] [W] UNSUPPORTED_STATESkipping tactic 2 due to insufficient memory on requested size of 16512 detected for tactic 0x000000000000001f.
[01/17/2024-22:14:10] [TRT] [I] [GraphReduction] The approximate region cut reduction algorithm is called.
[01/17/2024-22:14:10] [TRT] [I] Detected 73 inputs and 33 output network tensors.
[01/17/2024-22:14:18] [TRT] [E] 2: [virtualMemoryBuffer.cpp::nvinfer1::StdVirtualMemoryBufferImpl::resizePhysical::140] Error Code 2: OutOfMemory (no further information)
[01/17/2024-22:14:18] [TRT] [E] 1: [virtualMemoryBuffer.cpp::nvinfer1::StdVirtualMemoryBufferImpl::resizePhysical::127] Error Code 1: Cuda Driver (invalid argument)
[01/17/2024-22:14:18] [TRT] [W] Requested amount of GPU memory<PHONE_NUMBER>0 bytes) could not be allocated. There may not be enough free memory for allocation to succeed.

I think this happens because my GPU has only 8 Gig VRAM.
Can you please suggest which model should I use?
I would like to parse text data and output text data only.
Please suggest new model which I can load and use?
Or Is there any other way I can load llama 7b in my GPU 4070 RTX?
Who can help?
No response
Information

[x] The official example scripts
[ ] My own modified scripts

Tasks

[x] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction
Download llama 7b hf model
https://huggingface.co/meta-llama/Llama-2-7b-chat-hf
Build the LLaMA 7B model using a single GPU and FP16.
python build.py --model_dir ./tmp/llama/7B/
--dtype float16
--remove_input_padding
--use_gpt_attention_plugin float16
--enable_context_fmha
--use_gemm_plugin float16
--output_dir ./tmp/llama/7B/trt_engines/fp16/1-gpu/
Expected behavior
It should give output with trt engine
actual behavior
It cant load the actual model 7b llama.
additional notes
NA

weight only int4 gptq-int4 you can try it.
other model ? Qwen 1.8b may work well, it only need 4GB GPU memory.

Hi @dhruvildarji do u still have further issue or question now? If not, we'll close it soon.


Raise exception when there's no config version set

Checklist:

[ ] Commit Message Formatting: Commit titles and messages follow guidelines in the
conventional commits.
[ ] Changelog updated with breaking and/or notable changes for the next minor release.
[ ] Documentation has been updated, if necessary.
[ ] Unit tests have been added, if necessary.
[ ] Integration tests have been added, if necessary.

I have created PR #1831 with a minimum fix and extensive tests for the problem. The PR credits @alinaryan for finding the bug and solution.
I suggest to land my PR first, then rebase this PR and see if any of the other changes are needed.

@tiran thanks for taking this on


Synology Instalation help

hello , can someone help me out step by step how to install
pyatv (docker)
ffmpeg (docker)
and make this plugin work ?
i have also homebridge inside docker also
thank you

Hi, you can try to use this Docker image: https://hub.docker.com/r/pkushchak/homebridge-pyatv


Force glog to stderr & honore pvc annotation cloneOfPVC

changes:

force glog to log to stderr
honor cloneOfPVC annotation in PVC

Testing: build, manual
Image: nimblestorage/kube-storage-controller:bleeding

@raunakkumar would you give this a look?


fix(LocaleModal): esc key closes the Locale Modal filtering

Related Ticket(s)
Locale selector:- Keyboard - Select region modal dialog #1769
Description
If the user is filtering the region at the LocaleModal and press the Escape key on the keyboard it closes the filter.
Changelog
New

keydown eventListener in LocaleModal to detect the Escape key press.

@chetankan @jeffchew @guilhermelMoraes Sorry I'm a little late to this but I wasn't aware of #1769. I'm not sure this is the correct interaction. This code is working in the LocaleModal story, but will fail in the Footer story since esc closes the entire modal, which is pretty much the standard behavior for all modals.
We should either trap the modal esc while filtering country/lang, or better yet, leave this as it is. This isn't an accessibility issue. What do you guys think?

@jeffchew @guilhermelMoraes Ram re tested this on staging and Learn page, It is working fine. We are able to close the dialog by pressing escape key.

@jeffchew @guilhermelMoraes Ram re tested this on staging and Learn page, It is working fine. We are able to close the dialog by pressing escape key.

@Praveen-sr what exactly is closing when do you press the Esc key? The entire modal or only the filter part?

@guilhermelMoraes sounds like we should just close this PR.


Fix clear login attempts logging

This PR adds

a function successful_authenticated which should be called after every successful login. This happens at the moment during revalidations and in the UI/views
log only when failed attempts was > 0

We could also discuss, whether it is useful to register something when the validation failed (session modification).

revalidate_user_token_based: no registration when API key doesn't exists
revalidate_user_session_based: no registration for failed calls

We could also discuss, whether it is useful to register something when the validation failed (session modification).

revalidate_user_token_based: no registration when API key doesn't exists
revalidate_user_session_based: no registration for failed calls

I guess it would make sense, but the question is if this is allowed in terms of those data protection papers...

We could also discuss, whether it is useful to register something when the validation failed (session modification).

revalidate_user_token_based: no registration when API key doesn't exists
revalidate_user_session_based: no registration for failed calls

I guess it would make sense, but the question is if this is allowed in terms of those data protection papers...

I think that should not be a problem, it is required to log successful and failed logins. I think it's not necessary to register those events, however, I thought it's not intuitive to do nothing.


Provide code action invokation has no diagnostics and range set if context.only === source

It was my understanding that for code actions the call contains the diagnostics relevant for the call so that they can be used to compute the necessary edits.
If context.only === 'source' I would have expected that:

all diagnostics of the file are provided
the range of the call is the whole file

Is there any reason why this is not the case?
For ESLint I have for example optimizations that if the file has no eslint errors I don't go bother the server.

@jrieken FYI.

I don't understand the problem. How are you trying to get the code actions? Using the command?

From the UI execute Source Actions from the context menu in the editor. This calls the registered code action provider, but no diagnostics are passed in the context. To my understanding a code action provider should in this case provide code actions applicable to the file (not cursor position). Hence I would expect to get all diagnostics of the file in the context.

@mjbvz any comments? Is there anything else you need.

Not sure about this. The current design treats source actions just like normal code actions,  so they are passed the editor selection and diagnostics in that selection. We leave it up to the extension's source action provider to determine they care about the entire document or just the selection
Could eslint use the new diagnostic reading apis to check the diagnostics in the file?
Any thoughts @jrieken?

Hm, my initially feel would have been that source actions are requested for the entire source file

I can workaround this but at a minimum we need to specify what we do. I had the same feeling as @jrieken that if a source action is for the whole file I get the diagnostics for the whole file.

@jrieken Any concerns about the number of diagnostics we will end up sending for large files?
If we start treating source actions differently, we must document that they are intended to apply to the entire file. When we originally designed source actions, we said that something like format selection could become a source action. With this change, you could have a format source action but not a format selection action

number of diagnostics we will end up sending for large files?

We actually not sending them but we re-collecting them on the extension host side: https://github.com/Microsoft/vscode/blob/5c21818cfb3128f9512acc012eed7fb03564806e/src/vs/workbench/api/node/extHostLanguageFeatures.ts#L312-L318

If we start treating source actions differently, we must document that they are intended to apply to the entire file.

How about this: An empty selection becomes the whole document and the non-empty selection remains what it is?


Update Documentation : Update Features in User Guide

Codecov Report

Merging #145 (245857e) into master (7be124f) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #145   +/-   ##
=========================================
  Coverage     54.17%   54.17%
  Complexity      689      689
=========================================
  Files           150      150
  Lines          2852     2852
  Branches        281      281
=========================================
  Hits           1545     1545
  Misses         1204     1204
  Partials        103      103

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7be124f...245857e. Read the comment docs.


[SPARK-33544][SQL][FOLLOW-UP] Rename NoSideEffect to NoThrow and clarify the documentation more

What changes were proposed in this pull request?
This PR is a followup of https://github.com/apache/spark/pull/30504. It proposes:

Rename NoSideEffect to NoThrow, and use Expression.deterministic together where it is used.
Clarify docs in the expressions that don't throw exceptions

Why are the changes needed?
NoSideEffect virtually means that Expression.eval does not throw an exception, and the expressions are deterministic.
It's best to be explicit so NoThrow was proposed -  I looked if there's a similar name to represent this concept and borrowed the name of nothrow.
For determinism, we already have a way to note it under Expression.deterministic.
Does this PR introduce any user-facing change?
No
How was this patch tested?
Manually ran the existing unittests written.

cc @tgravescs, @viirya, @cloud-fan, @rednaxelafx. I received an offline feedback about this and discussed a bit. Then I realised that this is actually pretty much a valid point. These are still sort of minor as they are all internal/comment stuff but hope this makes sense to you guys as well.

Test build #132045 has started for PR 30570 at commit 69ed2a0.

Test build #132046 has started for PR 30570 at commit 36d2805.

Build finished.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/36643/

Build finished.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/36645/

Test build #132046 has finished for PR 30570 at commit 36d2805.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class CreateNamedStruct(children: Seq[Expression]) extends Expression with NoThrow

Build finished.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/132046/

Test build #132045 has finished for PR 30570 at commit 69ed2a0.

This patch fails SparkR unit tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
case class CreateNamedStruct(children: Seq[Expression]) extends Expression with NoThrow

GA passed, merging to master!

Build finished.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/132045/

Late LGTM, thank you very much for helping to make the semantics more explicit! It's nice to have a marker trait for NoThrow.
I had been thinking about the constraint expressions like KnownNotNull that wraps around an existing expression, but that's for dynamically annotating an expression for extra properties. In the case of NoThrow, it's statically known from the type so an empty marker trait as-is makes more sense.


Some questions regarding this extension

Hey guys I have some questions regarding this extension:

If I installed this extension as well as neovim on Windows, then I am able to use all the shortcuts vim has to offer as well as I would get the usual visual, normal and edit mode?
If 1 is true, then if I am in insert mode, am I able to still use ctrl+c and ctrl+v, you know like use vscode like a normal text editor?

yes

Ok thanks mate

It takes like 5 minutes to just try it and find out.


Traefik and named servers

Moved from https://github.com/plasmabio/plasmabio/pull/6#issuecomment-592466901.
There seems to be an issue with the routing of named server when using Traefik as a proxy: jupyterhub/traefik-proxy#91
Related fix: jupyterhub/jupyterhub#2957
This would require bumping the version in the Dockerfile when the fix lands: https://github.com/plasmabio/plasmabio/blob/master/hub/Dockerfile

Maybe we could wait to meet IRL before going any further with Traefik?
I'd like to be sure to understand what exactly are its pros and cons.

The built-in support for Let's Encrypt is quite useful.
Also being able to start it in its own container helps to decouple the hub from the proxy and make the deployment more robust.
Happy to reconsider that at some point, as switching back to the default configurable-http-proxy (https://github.com/jupyterhub/configurable-http-proxy) should be quite straightforward.

For now it is still possible to reach the named server by manually adding a / at the end of the URL.

This is now fixed in https://github.com/jupyterhub/traefik-proxy/pull/96.
Since TLJH uses jupyterhub-traefik-proxy==0.1.* to define the dependency, rerunning the Ansible playbook will pickup the latest minor version.


OscoreCxt housekeeping (remove context on some events)

This aims to partially implements #1230.

I think we can integrate this in oscore branch ? Tell me if you think this is not ready.

I think we can integrate this in oscore branch ? Tell me if you think this is not ready.

Yes I believe this can be integrated now.

I integrated this PR in oscore branch in the squashed commit b69c16dd2babbe2201a886299b85198ce7a97414


[5.7] CSApply: Handle unbound references to methods found via dynamic lookup

Description: Plumbs support for unbound references to methods found via dynamic lookup, which used to crash the compiler. Cherry-picked to accompany closely related fixes from #41849
Scope: Unbound method references
Risk: Low. Besides tweaking the logic to build a thunk for these specific references, this change merely delegates some conversions to the thunk when a reference is unbound.
Reviewers: @slavapestov, @xedin
Testing: CI (smoke & source compatibility)
Original PR: #41978

cc @hborla

@swift-ci please test


Use Separate ELB for Vault

For end to end TLS for Vault
See https://www.vaultproject.io/guides/operations/production.html
Make this be "optional"

Use https://github.com/hashicorp/terraform-aws-vault/tree/master/modules/vault-elb instead.
Terminate TLS through ELB.


Question: is this package the right one for my use case?

I am looking for a way to simplify my DTOs.
Currently, I am using class-validator and class-transformer decorators (e.g. IsOptional, IsString) to handle the validations of JSON payloads on POST requests as well as swagger annotations (ApiProperty, ApiPropertyOptional) withing those DTO classes.
My gut feeling tells me that this is quite error prone they way I am doing it
For example - this DTO:
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import { IsOptional, IsString } from 'class-validator';

export class MyDto {
  @ApiProperty({ example: 'the-lastname', description: 'Last name' })
  @IsString()
  lastName: string;

  @ApiPropertyOptional({
    type: 'string',
    example: 'birth-day',
    description: 'the birth day'
  })
  @IsString()
  @IsOptional()
  birthDay?: string;
}

If I wanted to change the birthDay to be required, I would have to

remove the ? operator
change ApiPropertyOptional to ApiProperty
remove the IsOptional

It's easy to forget one of these steps and the things might break

IsOptional and changing ApiPropertyOptional to ApiProperty is forgotten: swagger would not mark the field as required. User might send DTO with missing birthDay and not expect that the request will be denied with code 400

Change of field "birthDay" from type string to Date

need to change @IsString to @IsDate
need to change ApiPropertyOptional.type from string to date

Would this package solve my problem and save me from inconsistencies in my DTO definitions?

Yes, this package was created to solve exactly this problem and it does it really well (being used in a decent number of production services).
It is able to handle most DTO definition cases and you'll very rarely need to fallback to @nestjs/swagger + class-validator.

That sounds great :) I will try it as soon as I find the time :)


Node v18+

I'm getting an error during install that this is only compatible with node v17?

I will look into this as soon as possible. Otherwise you can make a pull request.


.schema support

purify-ts can generate valid JSON schemas from codecs, and JSON schema supports many of the options these extra codecs have defined. It would be cool if these codecs had the .schema method too and could produce eg.
{
  type: 'string',
  maxLength: 10
}

from StringLengthRangedIn({ lte: 10 })

nice.
I promise making its changes but my computer was broken now, so it takes some days.
or pull request welcome

I was thinking about pull request but didn't quickly figure out how schema would work with chaining codecs and decide if should change extendCodec signature or wrap just the built in codecs with another wrapper that adds the schema.

@vesse I'm checking purify-ts documents to set JSON schema, but there are no way to set specific schema from out of purify-ts, so this feature can't realize. sorry 😢

Hmm, what do you mean there is no way to set schema? I needed StringLengthRangedIn with schema support but with less options so I did this:
const rangedLengthString = ({ gte, lte }: RangedLengthStringOptions): Codec<string> =>
  Codec.custom<string>({
    decode: (value) =>
      string.decode(value).chain((value) => {
        const length = value.length
        if (gte != null && length < gte) {
          return Left(`length of ${value} must be greater than equal ${gte}`)
        }
        if (lte != null && length > lte) {
          return Left(`length of ${value} must be less than equal ${lte}`)
        }

        return Right(value)
      }),
    encode: string.encode,
    schema: () => ({
      type: 'string',
      ...(gte ? { minLength: gte } : undefined),
      ...(lte ? { maxLength: lte } : undefined),
    }),
  })

which as you can see is pretty similar to yours but with added schema function which produces the JSON schema I needed for my Fastify route handler.

ahh I see. schema option is undocumented so I missed.

@vesse
I added basic functionality support of schema.
Released v0.6.0 https://github.com/airtoxin/purify-ts-extra-codec/releases

Awesome, thanks!


User-defined regexes?

This is slightly related to the idea of symbol groups #10 . Another idea might be to have a char for regexes, for example æ, the key to the left of the right pinky. Then the key coming after the æ would stand for a user defined regex.
I would use it like this: sæf to search with the regex (defined by me in a dotfile) ^def \w+):.
This way I could quickly find all python function definitions with sæfsss (I always forget the function names). Another one could be sæp to find @property, etc.
I would probably create a different regex map for the different language modes.
This is probably more of a poweruser feature, but just throwing it out there. You could even have a crowd-configured library of useful regexes like yasnippet.

Actually, this was exactly what I had planned to implement to solve #10. User-defined symbol groups. Additionally, each symbol group can be differently scoped.
For instance: (add-to-list 'evil-snipe-symbol-groups '("[" "[{(" buffer)) would make searches for sa[ jump to the next instance of a[, a{ or a( anywhere in the entire buffer. The third parameter would be take anything that evil-snipe-scope accepts.

And done. I haven't implemented symbol-group specific scopes, so right now it only takes character => regex pattern, like so:
(add-to-list 'evil-snipe-symbol-groups '(?[ "[[{(]"))

Shouldn't this be?
(add-to-list 'evil-snipe-symbol-groups '(?\[ "[[{(]"))

Yes, it should. My mistake!
—Henrik
On Sun, Mar 1, 2015 at 4:31 AM, Patrick<EMAIL_ADDRESS>wrote:

Shouldn't this be?
(add-to-list 'evil-snipe-symbol-groups '(?\[ "[[{(]"))

Reply to this email directly or view it on GitHub:
https://github.com/hlissner/evil-snipe/issues/12#issuecomment-76589545

Ok, then you might have to correct the docstring for evil-snipe-symbol-groups.

The question mark means any of the preceding chars, so if you search with the command sa[ it will replace it with a regex that matches a [ or ( or {. But will it work with s[a? Will try it out and see.
Thanks for implementing this, btw.

How would you add the opposite, i.e. ] matches ])}? No regex I produce seem work (which isn't strange since ] closes the regex brackets. I couldn't get escaping it to work either. Perhaps (]|)|})...

How would you add the opposite, i.e. ] matches ])}?

(add-to-list 'evil-snipe-symbol-groups '(?\] "[]})]"))

Brilliant, thanks.

Ok, then you might have to correct the docstring for evil-snipe-symbol-groups.

And done. Also, I've discovered a bug: symbol groups are ignored when repeating searches. I'm on that now.

I'm now unable to repeat searches with fFtT. Anyone else have the same problem?

At all? Just in case this is a MELPA issue, could you check out evil-snipe.el and tell me if you have 1.6.2 or 1.6.3?

;; Version: 20150301.2131
;; X-Original-Version: 1.6.2

But this might be something wrong with the config on my end. When calling M-x evil-snipe-override-mode it works.

Is evil-snipe-override-evil set to t?

Oh, actually, you seem to be one version behind (the latest was 1.6.3, pushed ~15 minutes ago). I just bumped it to 1.6.4. I'm not sure how often MELPA checks for changes though.

I'm not sure how often MELPA checks for changes though.

In my experience MELPA updates every 10-30 minutes.

Yes, that variable is set. Still not working, but that might be the setup on my side, so if no-one else has that problem please ignore.
Now using
;; Version: 20150302.49
;; X-Original-Version: 1.6.4

This works for me now with the new version. Thanks.


Remove Operator construction overhead from consolidate blocks

What should we add?
Right now transpiling large circuits at optimization_level=3 can be dominated by the consolidate blocks pass, the majority of that time is spent constructing the unitary of the block using the Operator class. There is a fair amount of overhead in the operator class as it's designed to be more general. For the compiler pass we just need to work with the raw matrix which we can get directly from the matrix. A similar thing was done for the 1q decomposer ~2 yrs ago: https://github.com/Qiskit/qiskit-terra/pull/5909
For some concrete data, running:

import cProfile

from qiskit.compiler import transpile
from qiskit.providers.fake_provider import FakeRochesterV2
from qiskit.circuit.library import QuantumVolume

qc = QuantumVolume(50, seed=12345678942)
qc.measure_all()

cProfile.run("transpile(qc, FakeRochesterV2(), optimization_level=3)", filename='qv_100.prof')

yields the following profile

Similarly scaling up to 100 qubits with:
import cProfile

from qiskit.compiler import transpile
from qiskit.providers.fake_provider import FakeWashingtonV2
from qiskit.circuit.library import QuantumVolume

qc = QuantumVolume(100, seed=12345678942)
qc.measure_all()

cProfile.run("transpile(qc, FakeWashingtonV2(), optimization_level=3)", filename='qv_100.prof')

returns:

In that case ~40% of the transpile() time in the profile is spent constructing Operator objects (between consolidate blocks and unitary synthesis).

Lol apparently I already opened this in https://github.com/Qiskit/qiskit-terra/issues/8779


reCaptchaValidator: AjaxError!

Hi, i got a little noob problem here :)
I am trying to use your acf-demo files on my website: http://athletia.net/acf-demo.html
I uploaded all content from /dist to my web server and edited acf-demo.js and the config.php with my Google reCaptcha keys and my email adress in $to.
I also deleted the email confirmation, attachments upload and privacy policy form-groups from the markup because i don't need them.
When i now fill in all fields in the form, tick the reCaptcha and click send the spinner shows up but doesn't stop and the reCaptcha says "It seems that you are a robot!".
In the Chrome Dev Tools console there is a reCaptchaValidator: AjaxError! on line 8 in ajaxContactForm.pack.min.js so i replaced the minified version with the normal version and now the error is on line 2403.
But that's all. I don't really know how to investigate further from here.
Can you help me with that problem or give me a hint? ;)
Thanks a lot and greetings,
Jan

Hi @anybany i don't know. I can only help you step by step. The only error that now i can imagine it's a recaptcha private key issue. Are you sure that your domain is correctly registered (one time only) on Google Recaptcha?

Hi @Gix075 thanks for your answer.
Yes, i only registered athletia.net and to make sure i deleted the old key and registered the domain again to get a new key. but without success.


Fix dynakube always being set to error phase

Description
https://dt-rnd.atlassian.net/browse/DAQ-1842
Currently the Dynakube is always set to error phase if there is no kubernetesMEID (e.g because no automatic api monitoring) since the logModule Reconciler always returned an error in this case
How can this be tested?
Create a cloudNative Dynakube without kubernetes-monitoring and without automatic-api-monitoring -> check if the phase is correctly set to Runninng

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.39%. Comparing base (4544430) to head (0b92756).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3956   +/-   ##
=======================================
  Coverage   64.39%   64.39%
=======================================
  Files         384      384
  Lines       25803    25803
=======================================
  Hits        16616    16616
  Misses       7888     7888
  Partials     1299     1299

Flag
Coverage Δ

unittests
64.39% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


Populate Homepage

#Functionality:

Public Forum

[x] All users can post

Website Updates

[x] Admins can release updates

School Update

[x] Students and teachers can post

[x] Restrict usage for anonymous users

[ ] Make cooldown

#Implementation:

To submit without reloading
- use js to make post request to server and update when approved
use js to get cooldown data and run timer

you can check off the last one now


Update runtime versions in apis-functions.md

Update missing runtime versions according to https://learn.microsoft.com/en-us/azure/static-web-apps/languages-runtimes#api

@craigshoemaker
Can you review this old PR and determine whether it needs to be closed or merged?

I sent an email to the content owner today.

#sign-off


errorHandler does not catch uncaught exceptions

Version
2.4.2
Reproduction link
https://jsfiddle.net/5tp9mm4p/2/
Steps to reproduce
Use errorHandler to handle errors.
Create a this.$http.get request.
Throw an error within the request.
What is expected?
errorHandler should catch the error
What is actually happening?
errorHandler does not catch the error

errorHandler cannot catch errors thrown asynchronously, similar to how try... catch cannot do that. You are responsible for anything thrown from within a Promise chain.

I guess a very dirty hack would be something like this?:
window.addEventListener("unhandledrejection", (e) => {
	Vue.config.errorHandler.call(this, e.reason, this, e.type);
});


Feedback/logging for build performance analysis

Details

Project URL: http://www.github.com/plaidml/plaidml/
Build URL (if applicable): https://readthedocs.org/projects/plaidml/builds/6965966/
Read the Docs username (if applicable): vertexai

Expected Result
The sphinx build takes 47 seconds on my unremarkable dev laptop, using a clean virtualenv using only the packages linked from docs/requirements.txt, so I expected that readthedocs.org would be able to build the docs and publish them.
Actual Result
Each build spins away for 15-16 minutes before timing out.  The last entry in the log is cat docs/conf.py which is obviously not something that is going to take a lot of time, so presumably there is some other task following it which is failing and not being logged.
I am happy to work on the system to do whatever needs to happen to make the build run faster, however I have no idea where to start. I can't find any logs or profiling options or performance optimization suggestions. I don't know whether something in the build is getting stuck and running forever, or whether there is some part of the process which runs much more slowly on the RTD server for some reason. Is there anything I can do to get some feedback about what's going on?

It's not clear that it's happening, but the last command to complete is the cat conf.py step. The command that is failing (and not displayed as running yet) is the first pass at a Sphinx build. Do you get similar results running a full build (make clean; make html)?

I think a related problem here is the user not able to see what command has failed. I'll try to see why is this happening (I think the command is only recorded after it is executed only, and due being killed by timeout isn't saved).

We migrate to Azure recently, the build process is a little faster, can you check if your docs can be built now?

I just trigger a new build, but it's failing because of another problem, feel free to reopen if you are still seeing the timeout problem.
I also opened https://github.com/rtfd/readthedocs.org/issues/4288 for the other issue commented here.


Support Guzzle 6 as well

After very rudimentary testing, this seems to be all that's necessary to accommodate Guzzle 6 and Laravel 5.4 and PHP 7.1
Fixes #2

Thanks @drbyte
for those (like me) looking for how to install this version (before it gets merged) :
in composer.json :
    "require": {
        ...
        "appstract/laravel-opcache": "dev-master"
    }
    ...
    "repositories": [
        ...
        {
            "type": "git",
            "url": "git@github.com:drbyte/laravel-opcache.git"
        }
    ],

I was about to try this after the weekend, I suppose I can try it now as it already seems to work :)

Oh cool. Thanks! That was speedy!
Will be grateful if you'll tag a new release after you're satisfied with it. ;)

Yes I was already busy doing that :P. Thanks for your contribution!

👍  Cheers!


Azure.Identity

Create the identity library
azure::identity

[ ] Determine how we will incorporate MSAL

[ ] Define AuthenticationClient abstract class

[ ] Define types of authentication that are in scope, initially

[ ] client secret credential
[ ] client certificate credential
[ ] environment credential
[ ] managed identity credential
[ ] default azure credential

[ ] Implement proposed API including underlying private classes

[ ] Create unit and integration tests

Scott's suggestion is to implement the same as Go did.
Ge suggests the following:

client secret credential
client certificate credential
environment credential
managed identity credential
default azure credential

Client certificate credential will require some SSL library dependency, most likely we will take OpenSSL.
Two most expensive credential types to implement are Client Certificate and Managed Identity.
Scott thinks it will take 8 weeks total to implement these, Managed Identity taking 3 weeks out of 8.

Let's also check with Speech and Storage which credentials they need, during our Friday sync.

@antkmsft Can you open an Issue for each credential and attach to this Epic.

@antkmsft Consolidate this Epic with the December Identity epic and then close this epic

Thank you @Jinming-Hu
Hello,
We have an application which runs on azure VM and uses azure C++ storage sdk to interact with blob storage. We need to authenticate this application to have blob storage access. Currently we do it by passing storage account and account key as input from the user and create a storage client. However since we are running on azure VM, we want to avoid getting credentials from user.
Does the azure C++ storage sdk(Or identity Library) support reading required credentials from VM or getting managed identities?  Basically is there any functionality similar to instance profiles in AWS/Default service account in GCP for azure C++ sdk(Azure identity Library)?
Thanks a lot!


Add mobile screenshot of in readme.md for each login page

Hey I can help you with first 6 mobile screen shots. Can you assign it to me?

@nshanbhag20001412  assigned ,
still if anyone raise PR early related to this issue can be reassigned.
or if you are not able to work on it let me know i can reassign.

I'll complete this till tomorrow and as soon as hacktoberfest starts I'll send a PR

hey are you working on this and if yes till which login page are you making?

@Yash-sudo-web  I'll be working of first 6

okay ill try doing for the next 6 then

https://github.com/nshanbhag20001412/awesome-login-pages i complete the project let me know if its fine

Please assign me the rest. I shall send a PR on 1 oct.

@Yash-sudo-web @nshanbhag20001412
7 screenshot updated, if any one is raise PR for rest of mobile screenshots ?

i guess @Yash-sudo-web  was going to do for the rest

I can contribute to the rest if he is not doing it

i've opened the pull request for next 7.

@nshanbhag20001412  PR raised till 13 , would you like to  take from 13 to last ?

okay will do

is anything left here which I can contribute to?

@TechSpiritSS still there are mobile screenshot are pending for remaining login forms, if you like to contribute , you are welcome

@abhir9  I have sent a PR  , for the remaining screen shots

sir can you plz assign me this issue, i can send you other screenshots of the remaining login forms

hello @abhir9 i would love to work o  this issue
if some screenshots are remaning can you please assign it to me .

is there anything I can contribute to?

There are still few Screen Shot left for some login pages, like login-form-v15 & login-form-v16 . Can I add a mobile Screen Shot for them? I would like to contribute here.

Already opened a PR regarding that 6 days ago, maintainer didn't checked it I guess

@abhir9 is there any work left , I would love to do it ,can you assign it to me ?


Merge rc-3.5.1 into dev

This PR is not ready to be merged. The MHK_RM1_Floating and 5MW_Land_BD_Linear test cases are failing and I need help resolving this issue.
Feature or improvement description
This PR merges the rc-3.5.1 branch into the dev branch to keep the developments in sync. We started having to retroubleshoot issues in dev that had already been resolved in rc-3.5.1.
Related issue, if one exists
#1688, #1703, #1704, #1705
Impacted areas of the software
HydroDyn, SeaState, AeroDyn, Regression Tests
Test results, if applicable
The baselines for MHK_RM1_Floating and 5MW_Land_BD_Linear may need to be updated

I suspect that because of #1694 we might have to update the baselines of the lin cases of dev a bit more often until we find a better solution.
We might need to introduce some test specific "if" statements in the python code. It seems that sometimes negative frequencies and highly damped modes show up in the eigenvalue analysis. We could try and increase the output fmt resolution of the lin files, that should help the robustness of the EVA.
For now I would not worry if only the lin cases are failing...


Handle Arrays

It takes in a array in a hash e.g. name: [ 1 , 2, 3] and converts it to <name>1</name><name>2</name><name>3</name>. should solve sathishfreshdesk's issue. I have tested this for the get order call.

oops, I didnt see the tests.

So, @SpeerJ , you don't want to merge in this change?

 It's working fine as is.


Linking error VS2015

When I tried linking it to my framework in VS2015, I got following linking error. I used VS2010 solution file, automatically upgraded to VS2015, compiled the static libs.
unresolved external symbol __imp_strncat referenced in function "int __cdecl AppendExtensionToSpecBuf(char const *,char *,unsigned __int64)" (?AppendExtensionToSpecBuf@@YAHPEBDPEAD_K@Z)	GL_Framework
C:\SourceControl\gl_framework\nfd_d.lib(nfd_win.obj)	1

unresolved external symbol __imp_strncpy referenced in function NFDi_UTF8_Strlen	GL_Framework	C:\SourceControl\gl_framework\nfd_d.lib(nfd_common.obj)	1

After changing options in "Code Generation>>Runtime Library" to /MTd instead of /MDd, my problem was solved. Maybe useful for someone in future.

In all Windows cases, you need to match the linked runtime library with the base executable's.  If switching it to /MTd worked, that's because you are linking against the static version of the library in your calling executable.
It is perfectly okay to make that change in the upgraded project file.

Thanks for the reply & pretty awesome utility repo :)


TLS on Patroni REST API

Codecov Report

Merging #33 (bdca5d4) into tls-integration-test (abc324f) will increase coverage by 0.04%.
The diff coverage is 35.71%.

@@                   Coverage Diff                    @@
##           tls-integration-test      #33      +/-   ##
========================================================
+ Coverage                 60.62%   60.67%   +0.04%
========================================================
  Files                         6        6
  Lines                       795      801       +6
  Branches                    123      123
========================================================
+ Hits                        482      486       +4
- Misses                      285      287       +2
  Partials                     28       28

Impacted Files
Coverage Δ

src/charm.py
53.63% <0.00%> (-0.13%)
:arrow_down:

src/cluster.py
56.42% <38.46%> (+0.87%)
:arrow_up:

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


[incubator/kafka] SSL encryption for inter node and client-broker communication

[incubator/kafka]
Is there a way in this chart using which I can enable SSL encryption for inter node and client-broker communication ?

I'm interested in this topic too, the documentation is unclear about this point.
I also have the same question about authentication, (SASL) whether it's kereberos, Oauth, plain or SCRAM


Possible "blank error" being generated

I think that this line is generating a blank error as the first error is appended. It seems unintentional?
https://github.com/kat-co/vala/blob/master/validation.go#L74
It could probably be:
return &Validation{make([]string, 0, numErrors)}
That way the memory is allocated for a single element, but no element is actually added. In fact, instead of validationFactory() you could simply use: &Validation{} in it's place, as even if the slice is nil, append will work just fine and create a new slice.
Thanks for the library

Thanks for the PR @aarondl. I'm currently at Gophercon and unable to focus on much, but I'll TAL sometime in the next week or so.


Commands finish but with errors

I am running the newest versions of fish, omf, etc. This example is with the command clear
Note: This only happens on this theme
Details:
No command 'string' found, did you mean:
Command 'spring' from package 'spring' (universe)
Command 'spring' from package 'ruby-spring' (universe)
Command 'strings' from package 'binutils' (main)
Command 'strings' from package 'binutils-multiarch' (main)
string: command not found
/.local/share/omf/themes/pure/__parse_current_folder.fish (line 1): string replace $HOME '' $PWD
^
in function “__parse_current_folder”
called on line 3 of file ~/.local/share/omf/themes/pure/fish_title.fish
in command substitution
called on line 1 of file ~/.local/share/omf/themes/pure/fish_title.fish
in function “fish_title”
called on standard input
with parameter list “clear”
in command substitution
called on standard input
No command 'string' found, did you mean:
Command 'strings' from package 'binutils-multiarch' (main)
Command 'strings' from package 'binutils' (main)
Command 'spring' from package 'spring' (universe)
Command 'spring' from package 'ruby-spring' (universe)
string: command not found
/.local/share/omf/themes/pure/__parse_current_folder.fish (line 1): string replace $HOME '' $PWD
^
in function “__parse_current_folder”
called on line 44 of file ~/.config/fish/functions/fish_prompt.fish
in command substitution
called on line 42 of file ~/.config/fish/functions/fish_prompt.fish
in function “pre_prompt”
called on standard input
in event handler: handler for generic event “fish_prompt”
No command 'string' found, did you mean:
Command 'strings' from package 'binutils' (main)
Command 'strings' from package 'binutils-multiarch' (main)
Command 'spring' from package 'spring' (universe)
Command 'spring' from package 'ruby-spring' (universe)
string: command not found
~/.local/share/omf/themes/pure/fish_title.fish (line 1): string replace -r '^.*/' '' -- $PWD
^
in command substitution
called on line 1 of file ~/.local/share/omf/themes/pure/fish_title.fish
in function “fish_title”
called on standard input
in command substitution
called on standard input
No command 'string' found, did you mean:
Command 'spring' from package 'ruby-spring' (universe)
Command 'spring' from package 'spring' (universe)
Command 'strings' from package 'binutils' (main)
Command 'strings' from package 'binutils-multiarch' (main)
string: command not found
/.local/share/omf/themes/pure/__parse_current_folder.fish (line 1): string replace $HOME '' $PWD
^
in function “__parse_current_folder”
called on line 3 of file ~/.local/share/omf/themes/pure/fish_title.fish
in command substitution
called on line 1 of file ~/.local/share/omf/themes/pure/fish_title.fish
in function “fish_title”
called on standard input
in command substitution
called on standard input

Can you provide version for fish, omf, OS and echo $SHELL
Also formatting your question properly would help.

Fish version 2.2.0, omf version 6, Linux Mint 18.3 (note: i think this is it, just installed in my rpi and it works beautifully), echo $SHELL produced /usr/bin/fish

I also have a USB flash of Mint and it occurs there too. It seems to be the OS. I have had similar problems in Mint based on permissions of files, so I did chmod 7777 ~/ and it didn't work. I also searched for anything related to omf elsewhere and did chmod on that too. It didn't work

Hope this info is helpful. I really want to be able to use pure

Your fish version is too old, string was introduced in fish 2.3.0 here is my setup:
❯ fish --version
fish, version 2.7.1

❯ lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description:    Linux Mint 18.3 Sylvia
Release:        18.3
Codename:       sylvia

There is an official PPA


default values from Field being ignored in ThirdPartyType

Initial Checks

[X] I confirm that I'm using Pydantic V2

Description
A few coworkers and I have been migrating from Pydantic v1 -> v2 in our application and have been running into issues with migrating our previous custom types for handling dates.
We largely prefer to utilize instances of Arrow in our application code but also need to account for a number of scenarios when creating instances of various models, including but not limited to:

receiving values of different types, primarily an ISO formatted str and a timestamp (in seconds or milliseconds) as an int
optional fields may or may not be present on received data passed to the model but should  be present in the JSON-serialized output
optional fields don't consistently have the same default values

The ExampleRecord class should hopefully summarize the different scenarios as code:
class ExampleRecord(DeserializerModel):
    id: UUID
    description: Optional[str] = Field(...)
    published_on: DeserializerArrowType = Field(..., alias="publishedAt")
    published_date: Optional[DeserializerArrowType]
    completed_on: Optional[DeserializerArrowType] = None
    special_event_date: Optional[DeserializerArrowType] = Field(
        default=arrow.get(1970, 1, 1), alias="eventDate"
    )

Our implementation of the DeserializerArrowType class to handle these cases is mostly getting the job done. However, we're encountering issues with the default values in Field being ignored.  We were hoping that we could access the details about the field being validated/serialized so that we could programmatically return the default type but the suggestions in the Access to field names section of the Types doc didn't yield any results; in fact, adding a __init__ to the class does nothing (it doesn't even get called!) and both handler.field_name and info.field_name are None.
I've delved through the docs to try to find examples/ideas of how this might be done but didn't find anything helpful; there are examples for all of the different "pieces" of our usage but there really aren't any examples of using a custom type with Field (i.e. either special_date: CustomDateType = Field(default=arrow.get(2000, 1, 1), alias="dawnOfNewAge") or special_date: Optional[CustomDateType] = Field(default="wut", alias="dawnOfNewAge")).
Our implementation is largely based off examples from:

Handling third-party types
#8737

We actually also tried to utilize Annotated types but those wouldn't accept Arrow, either by itself or as part of a Union  🫠
I'm hoping that it'll be possible to access the default value within our class. In the case that it isn't, however, is there some other avenue you all would suggest we take?
Example Code
# utils/pydantic_types.py
import arrow
from arrow import Arrow
from pydantic import (
    ConfigDict,
    BaseModel,
    GetCoreSchemaHandler,
    alias_generators
)
from pydantic_core import core_schema
from typing import Any

class DeserializerArrowType(arrow.Arrow):
    @classmethod
    def __get_pydantic_core_schema__(
        cls,
        _source_type: Any,
        _handler: GetCoreSchemaHandler,
    ) -> core_schema.CoreSchema:

        def validate_as_or_coerce_to_arrow(value, info):
            try:
                if isinstance(value, Arrow):
                    return value
                return arrow.get(value)
            except Exception:
                raise ValueError(
                    f"DeserializerArrowType: can not parse value {value} of type {type(value)}"
                )

        def arrow_serialization(value: Arrow, handler, info):
            if info.mode == "json" and value is not None:
                return int(value.int_timestamp * 1000)
            return value

        return core_schema.with_info_before_validator_function(
            function=validate_as_or_coerce_to_arrow,
            schema=core_schema.union_schema(
                [
                    core_schema.str_schema(),
                    core_schema.int_schema(),
                    core_schema.datetime_schema(),
                    core_schema.is_instance_schema(Arrow),
                ]
            ),
            serialization=core_schema.wrap_serializer_function_ser_schema(
                arrow_serialization, info_arg=True
            ),
        )

class DeserializerModel(BaseModel):
    model_config = ConfigDict(
        alias_generator=alias_generators.to_camel_case,
    )

# models/example.py
import arrow
from pydantic import BaseModel, Field
from typing import Optional
from uuid import UUID

from pydantic_utils import DeserializerArrowType, DeserializerModel

class ExampleRecord(DeserializerModel):
    id: UUID
    description: Optional[str] = Field(...)
    published_on: DeserializerArrowType = Field(..., alias="publishedAt")
    published_date: Optional[DeserializerArrowType]
    completed_on: Optional[DeserializerArrowType] = None
    special_event_date: Optional[DeserializerArrowType] = Field(
        default=arrow.get(1970, 1, 1), alias="eventDate"
    )

Python, Pydantic & OS Version
pydantic version: 2.6.4
        pydantic-core version: 2.16.3
          pydantic-core build: profile=release pgo=false
                 install path: /Users/some-guy/Development/Work/SubFolder/best-app-evar/server/.poetry-cache/virtualenvs/best-app-evar-dp-ODgI3-py3.9/lib/python3.9/site-packages/pydantic
               python version: 3.9.18 (main, Nov  2 2023, 17:06:16)  [Clang 14.0.3 (clang-14<IP_ADDRESS>.1)]
                     platform: macOS-14.4-x86_64-i386-64bit
             related packages: typing_extensions-4.9.0 fastapi-0.109.1 mypy-1.4.1
                       commit: unknown

@saurookadook,
Thanks for the detailed question / bug report. Before we move forward, could you try pulling down the latest code from main and see if you're still experiencing this issues? I recall that we fixed some default value issues, which have yet to be released. Happy to help once we confirm that all of your concerns are still relevant!

@sydney-runkle welp, I was hoping that pulling the latest from main would be relatively easy but after a full day of fighting with Poetry and our Docker environment, I don't think I can reasonably test that the latest changes will solve the problem in the context of our application. 😅
I think we've figured out a workaround for now that we're ok with, despite it not being ideal. Do you have any idea when those recent changes will make it into the next release? I'd be happy to test it then!

@saurookadook,
Ah ok! We'll release the beta next week, and the official release the week after. I'll close this for now then, but feel free to ping me if you'd like to reopen later!

@sydney-runkle Sounds good 🙂
And for anyone else having this issue, we ended up doing something like...

NOTE: the following assumes the rest of the example provided in the issue description above

def generic_validator_function_with_default(class_ref, value, info):
    return (
        value
        if value is not None
        else get_default_value_from_field_config(class_ref, info)
    )

def get_default_value_from_field_config(class_ref, info):
    field = class_ref.model_fields[info.field_name]
    return field.default_factory() if callable(field.default_factory) else field.default

class ExampleRecord(DeserializerModel):
    id: UUID
    description: Optional[str] = Field(...)
    published_on: DeserializerArrowType = Field(..., alias="publishedAt")
    published_date: Optional[DeserializerArrowType]
    completed_on: Optional[DeserializerArrowType] = None
    special_event_date: Optional[DeserializerArrowType] = Field(
        default=arrow.get(1970, 1, 1), alias="eventDate"
    )

    @field_validator("special_event_date", mode="before")
    @classmethod
    def handle_field_default(cls, value, info):
        return generic_validator_function_with_default(cls, value, info)


ci: use latest td-agent package

Thanks!
I think we need to fix commonvar file for yum as well as apt.
https://github.com/fluent/fluent-package-builder/blob/master/fluent-package/yum/systemd-test/commonvar.sh

Thanks, fixed it.


[generics] could not find function body in _test packages

go version devel +2dc2987ac87 Tue Jun 23 23:41:16 2020 +0000 linux/amd64

working directory: bug2
bug2_test.go
package bug2_test

import "testing"

func TestT(t *testing.T) {
	x([]int{1}, 1)
}

func x(type T)(v []T, t T) {

}

Error: (the same with go2go test)
> go tool go2go build
could not find function body for "x"

The bug doesn't appear if:
a) I change package name to bug2, or
b) I move x function to another package (and export it)

Thanks.  This test case, at least, should now be fixed on the dev.go2go branch.  I wouldn't be very surprised if there are problems in this area.


Move exchange stock definitions to config file instead of hardcoding

The available items and packages in the three exchange services are currently all hardcoded into the classes with their prices. This, however, should be moved to a config file that the plugin reads from the plugins directory in the server.

Closed with #3


Only using tweaks does not send an A/B test event to Mixpanel

If the only feature of A/B testing I use is tweaks, then there is no data sent to Mixpanel. The A/B testing dashboard is looking for an event called '$experiment_started' with a given 'experiment_id'.
In the library code, it appears this event is sent in the viewcrawler here:
https://github.com/mixpanel/mixpanel-android/blob/e93ed2edc0ffcd2c763d9e35655e9855970611fa/src/main/java/com/mixpanel/android/viewcrawler/ViewCrawler.java#L1021
The issue is that tweaks never calls this method. You can see the method handleEditorTweaksReceived below which is called upon a tweak being retrieved from Mixpanel:
https://github.com/mixpanel/mixpanel-android/blob/e93ed2edc0ffcd2c763d9e35655e9855970611fa/src/main/java/com/mixpanel/android/viewcrawler/ViewCrawler.java#L731-746
However, this method does not make a call to initializeChanges as the method for handleVariantsReceived does:
https://github.com/mixpanel/mixpanel-android/blob/e93ed2edc0ffcd2c763d9e35655e9855970611fa/src/main/java/com/mixpanel/android/viewcrawler/ViewCrawler.java#L748-758
If I make a UI change to my app it will send the $experiment_started event, but in some cases I prefer to run the entire test using ONLY tweaks. If this is the case, I will never see this information recorded in Mixpanel.
A workaround for now is changing the background slightly to force the event to send. A potential fix is to call $experiment_started either when a tweak is retrieved from the server or applied on the device.

Thanks, @ryanseams-mp ! This should be addressed in the next library release.

Addressed in 4.6.2


Scanner should recognize non-ASCII punctuation chars

Hi stsewd, thank for your awesome rst parser!
I found this parser works no so well when parse documentation written in CJK.
For example: :strong:`text`。 (trailing with a Chinese full stop 。, in Engish it is .) is a valid inline markup (OK for rst2pseudoxml), but can not be correctly recognize by tree-sitter-rst.
How to reproduce
$ echo ':strong:`text`。' > example.rst
$ rst2pseudoxml example.rst
<document source="example.rst">
    <paragraph>
        <strong>
            text
        。
$ tree-sitter p example.rst
(document [0, 0] - [1, 0]
  (ERROR [0, 0] - [0, 8]
    (role [0, 0] - [0, 8]))
  (paragraph [0, 8] - [0, 17]))
example.rst        0.03 ms         607 bytes/ms (ERROR [0, 0] - [0, 8])

How to fix
According to Inline markup recognition rules:

Inline markup start-strings must start a text block or be immediately preceded by

whitespace,
one of the ASCII characters - : / ' " < ( [ {
or a similar non-ASCII punctuation character. [18]

Inline markup end-strings must end a text block or be immediately followed by

whitespace,
one of the ASCII characters - . , : ; ! ? \ / ' " ) ] } >
or a similar non-ASCII punctuation character. [19]

I have make a PR(#10) for this, but it is not a good fix.
Docutils provides some regex for matching these non-ASCII punctuation characters. According to my current understanding, matching them in src/tree_sitter_rst/chars.c::is_{start,end}_char should fix this issue.

Just FYI, I am working on this, by generating C chars array from docutils.utils.punctuation_chars, and replacing the valid_chars inside is_{start,end}_char function.
I will file PR soon.


Update tests and documentation

Update the documentation to reflect the API.
Update the tests to include negative cases and invalid arguments.

v1.0.0 completes this issue.


Confusion regarding Datasets API

Confusion regarding datasets API upload (POST /api/datasets)

Example curl request to upload a BEL Script:
## Datasets - Upload
curl -X "POST" "http://localhost:9292/api/datasets"
-H "Authorization: Bearer "
-H "Content-Type: application/bel"
-F @.bel


Add Async Suffix to async Task methods

See: https://stackoverflow.com/a/24627122/13729

There are no longer any.


[Task]: Revert to previously set version after discarding version-related changes

SubTasks
https://www.notion.so/appsmith/cdd277bfe8524f648e73cf2587218dc1?v=c80faa651e644294bea86f10c17b874f&p=10dfe271b0e2806c9a85ec0c92e0e87e&pm=s

Revised job story with JIT pull is here: https://www.notion.so/appsmith/Pull-package-references-when-doing-pull-or-discard-and-pull-in-git-13bfe271b0e280d9aa71f4edd544dbd8
Under explicit versioning of consuming packages, it should be taken care of.


Re-enable any() & all()

These were commented out, presumably due to a compilation error. I do get an error when I commented them out but I have reshaped the functions somewhat, forcing the bool function and checking it's result, which seems to be working.
Also added tests.


update README.md

Updates  - links to libraries used and basic steps to start testing the code

approved


Jetty ALPN/NPN failure

I can't build from master (even before 4c02b1354e34) because of a failure in the Pub/Sub Module
Caused by: java.lang.ClassNotFoundException: org/eclipse/jetty/alpn/ALPN
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at io.grpc.netty.JettyTlsUtil.isJettyAlpnConfigured(JettyTlsUtil.java:34)
	at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:153)

I got the same error while running inside of alpine so had to:
1 - include below two libraries
2 - I had to install the lib6-compat in alpine
compile group: 'io.netty', name: 'netty-tcnative-alpine', version: '2.0.8.Final'
compile 'org.conscrypt:conscrypt-openjdk-uber:1.1.4'

RUN apk add --no-cache libc6-compat

also use this as a reference of which libraries to use:
https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty


Added Unix Toolbox (a great resource)

Hello! Before sending a PR please note the following:

make sure the adding cheat-sheet is not in README.md :rocket: -> it's not ;)

Thanks!

great! 👍

Thanks!


POC: Make get object usage also work on streamfields

This is a proof of concept to show how one could make Image usage also take into account images that are used in StreamFields. As mentioned in https://github.com/wagtail/wagtail/issues/3886, this is currently not the case.
To see it in action, use the Wagtail Bakery demo site:

Add IMAGE_USAGE_SEARCHES_STREAMFIELDS = True to your settings
Find an image that is used in a "HOME CONTENT BLOCK" section StreamField
You'll see that with the setting on, the image usage count is 1 and the usage page contains a links to the homepage.

This is done by madifying the Image models get_usage() method, so installation could be quite simple.
The proper way to implement this would likely be to create an extra package with a Mixin class, and tell developers that if they want their images listed in this manner, they need to subclass that and use a proxy model. (Using StreamFields is for developers anyway, right?)

Nice work! I’m currently rewriting this query so it’ll be more efficient.

Closing in favour of #4702


[Question] Equivalent of configureScene

I know that configureScene has been deprecated, but how would you go about doing it using the new API? I also saw that the RN team has just killed NavigationAnimatedView according to this, so what now?

@aksonov what is the equivalent of configureScene on the newest version?

@rclai u can try to use https://github.com/aksonov/react-native-router-flux/blob/master/docs/API_CONFIGURATION.md#animation

Thanks.


[🧹 CHORE]: OTEL UDP Client

No duplicates 🥲.

[X] I have searched for a similar issue.

What should be improved or cleaned up?
We're trying to use the Jaeger Agent with Roadrunner, but it seems like this is not supported by the OTEL Plugin for Roadrunner.
Specifically the Agent only exposes UDP ports while Roadrunner needs HTTP or gRPC.
I don't think this is a big change and if I were more proficient in Go I'd even make a PR but as I'm not I really hope you could make that change.

Hey @L3tum 👋🏻
HTTP or gRPC clients are used only for the OTLP protocol and do not affect Jaeger. You may try to remove the client option and set a UDP endpoint for the Jaeger exporter.

Got u. I'll try to reproduce the problem, thanks for the report.

@L3tum Hey 👋🏻
I guess that the Jaeger OTEL client doesn't support UDP protocol because there is no sense in keeping it since we have the gRPC and HTTP endpoints.
The endpoint for the Jaeger should be in the following form (example):
http://localhost:14268/api/traces (full endpoint URL)

RR sends the traces directly to the Jaeger. However, Jaeger agent and OTEL SDK support the UDP protocol. The problem is that RR doesn't support agents.

I'll add a new jaeger_agent exporter to support the udp agents.

  otel:
    insecure: false
    compress: true
    exporter: jaeger_agent
    endpoint: localhost:6831
    service_name: rr_test
    service_version: 1.0.0

Misklicked.
This is the sample configuration with the jaeger_agent, which will be available in 2.10.7. There is no need to use the UDP scheme in the endpoint because jaeger agents work only via UDP.

Oh wow, that was fast! Thank you, that looks pretty good. I'll test it out as soon as 2.10.7 is released :)

@L3tum PR will be merged today. You may build RR from the master branch with Velox. Release scheduled for this Thursday 😃

Tested and it works!

Thank you very much! I don't think I've had a turnaround for a bug/request this fast ever before^^

My pleasure ⚡  Enjoy RR 😃


Adding Notebook controller

Description
Add Notebook controller to RHODS.
How Has This Been Tested?

Install 1.15.0-qe-nbc-v3 livebuild.

./setup.sh quay.io/modh/rhods-operator-live-bundle:1.15.0-qe-nbc-v3

Wait until RHODS is deployed:

$ oc get pods -n redhat-ods-operator
NAME                                      READY   STATUS    RESTARTS   AGE
cloud-resource-operator-5449867d4-w8xc7   1/1     Running   0          88m
rhods-operator-65f5fd5fdf-bx7zn           1/1     Running   0          19m

$ oc get pods -n redhat-ods-applications
NAME                                               READY   STATUS      RESTARTS      AGE
11.4.2-cuda-s2i-base-ubi8-1-build                  0/1     Completed   0             63m
11.4.2-cuda-s2i-core-ubi8-1-build                  0/1     Completed   0             69m
11.4.2-cuda-s2i-py38-ubi8-1-build                  0/1     Completed   0             56m
11.4.2-cuda-s2i-thoth-ubi8-py38-1-build            0/1     Completed   0             49m
jupyterhub-1-cw69x                                 1/2     Running     0             57m
jupyterhub-1-deploy                                0/1     Completed   0             57m
jupyterhub-1-j6dmr                                 2/2     Running     0             57m
jupyterhub-1-ltgf5                                 1/2     Running     0             57m
jupyterhub-idle-culler-1-deploy                    0/1     Completed   0             57m
jupyterhub-idle-culler-1-xqzld                     1/1     Running     0             57m
notebook-controller-deployment-7894d75c8-lm9dt     1/1     Running     0             35m
odh-notebook-controller-manager-855cd5f87f-g2cs2   1/1     Running     0             35m
rhods-dashboard-d555ddcb5-dr89m                    2/2     Running     0             7m31s
rhods-dashboard-d555ddcb5-t4jpd                    2/2     Running     0             7m31s
s2i-minimal-gpu-cuda-11.4.2-notebook-1-build       0/1     Completed   0             43m
s2i-pytorch-gpu-cuda-11.4.2-notebook-1-build       0/1     Completed   0             31m
s2i-tensorflow-gpu-cuda-11.4.2-notebook-1-build    0/1     Completed   0             31m
traefik-proxy-64cf44f574-8qwjs                     2/2     Running     3 (55m ago)   57m
traefik-proxy-64cf44f574-ps2td                     2/2     Running     3 (55m ago)   57m
traefik-proxy-64cf44f574-wzczv                     2/2     Running     2 (56m ago)   57m

Go to the dashboard and create a notebook using JH and NBC:

$ oc get pods -n rhods-notebooks
NAME                                       READY   STATUS    RESTARTS   AGE
jupyter-nb-htpasswd-2dcluster-2dadmin-0    2/2     Running   0          17s
jupyterhub-nb-htpasswd-2dcluster-2dadmin   1/1     Running   0          7m18s

Merge criteria:

[x] JIRA link(s): https://issues.redhat.com/browse/RHODS-3472
[x] The Jira story is acked.
[x] Live build image: quay.io/modh/rhods-operator-live-bundle:1.15.0-qe-nbc-v3
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has manually tested the changes and verified that the changes work.
[ ] QE contact acknowledges that this has been tested and is approved for merge.

Merge https://github.com/red-hat-data-services/odh-manifests/pull/232 first and restore .gitmodules

/hold
Merge https://github.com/red-hat-data-services/odh-manifests/pull/232 first

A fresh livebuild based of this operator and submodule worked for me

/hold cancel
https://github.com/red-hat-data-services/odh-manifests/pull/232 merged


template/guidance graduation review umbrella comment issue

collecting comments and lgtm's for our first docs that need graduation reviews so other projects can start using them. much of this has already been PR'ed into the cncf/project-template repo, hence the need for an umbrella GitHub after-the-fact issue. this is in response to the email sent to the contributor strategy mailing list. Copy the following list below in your review comment and indicate - lgtm (looks good to me), no opinion/comment, [insert your comments/change requests] - for each.
Graduation Reviews: (last call)

https://github.com/cncf/project-template- everything in there now
reviews:

[ ] CONTRIBUTING.md
[ ] GOVERNANCE-elections.md
[ ] GOVERNANCE-maintainer.md
[ ] GOVERNANCE-subprojects.md
[ ] GOVERNANCE.md
------ (in another repo)
[ ] contributor-ladder.md

Governance Advisory Documents:

[ ] Leadership Selection
[ ] What Is Governance

targeting end of week Jan 8/9 for final community review and next steps with Saad and Matt.

This was done a while ago.


Small UI bug

I think this should be:
widget.enableHostControl == null || widget.enableHostControl  == false

Now, if you put false, it still shows them, actually you can't make them disappear.
https://github.com/AgoraIO-Community/VideoUIKit-Flutter/blob/726f3ad71ed824ed5a91e4b833e380c52532f01c/lib/src/layout/floating_layout.dart#L257
https://github.com/AgoraIO-Community/VideoUIKit-Flutter/blob/726f3ad71ed824ed5a91e4b833e380c52532f01c/lib/src/layout/floating_layout.dart#L373
https://github.com/AgoraIO-Community/VideoUIKit-Flutter/blob/726f3ad71ed824ed5a91e4b833e380c52532f01c/lib/src/layout/floating_layout.dart#L450

@Meherdeep looks like @ag84ark is right here.
or the condition could be changed to widget.enableHostControl != true.

Fixed with v1.2.0


Missing file extension in screenshot

I don't think there needs to be a big description for this 😉

Thank you ☺


CSS before jstree finishes rendering

I'm rendering a tree with ~1000 leaves, read from the html, with the "wholerow" plugin.
Since it takes time for jstree to complete its rendering of the tree, it is noticeable that the tree is unstyled before the job is complete.
Is there any css class that can be added to the tree div (as in https://www.jstree.com/docs/html/), such that the tree will have an initial styling similar to how the tree will appear after jstree finishes running?
Thx for a great plugin

I will need a demo in order to help. Are you using raw HTML as input, and waiting for jstree to parse it? That is the only option to have unstyled content (I guess). If that is it - are you using the worker option? It should take parsing to a separate JS worker and leave the user with an empty DIV and a spinner - try that.
As for classes - it would require a lot of those - I am not sure it will be a nice solution. However you can try something else - set a class to you DIV, for example tree and then use this css:
.tree { display:none; }
.tree.jstree { display:block; }

This is a crude and untested example - you can of course substitute the display:none with something nicer.
Let me know if neither the worker, nor the CSS dirty fix work and I will reopen the issue. But please provide a little of you code - just a sample - the DIV, sample data, and how you configured jstree.
Best regards,
Ivan

Thx Ivan,
I am using the raw input and waiting for jstree to parse it.
I chose using html data because:

Let users that block js to view the tree's content.
Knowing that jstree can take time to complete, allow users to view the content before it does.

I'm not forced to using html data, I could have ajax the entire tree, or use json instead. I currently prefer the unstyled html. I thank you for the new solutions you suggested, but it's better to go with the ajax option.
I think that a nice future feature of JStree would be to supply a css, given to the  class alone, and the tree would be styled before javascript, similar to how it would have been styled afterwards.
I don't know to what extent it is feasible, and I think its a huge effort of rewriting css code, so I don't know whether it's worth it, so I'm keeping this issue closed.
As to my setup, it's pretty standard:
I have several trees on the same page looking like this:

1
                .... many more  +  like these, different icons

Thank you again for all your help.


feat: add schemas and tests

Adds the WIP schemas and I just duplicated the yazi.toml and keymap.toml from https://github.com/sxyazi/yazi/tree/main/config/preset for testing.

Thank you!

Thank you!

No problem! I'll have another PR in a moment for checking the schemas automatically along with a fix or two.


Better controller support (+music)

Added music

Those are quite large files; do you think we could not include any songs and let those who wish to add them put them in a music directory which is read on startup?

Change so it does not include music but has a link where to get it