fix(update_range): api changes on nightly #17462

see https://github.com/neovim/neovim/pull/17462

Highlighting is currently broken due to the way update_range is called in internal.lua.
It should be noted that this fix is only intended for people using neovim-nightly.
As the README doesn't say anything about the targeted neovim version and nvim-treesitter is recommending using nightly anyway this might be fine.

Thanks


GitHub API wrapper

As part of our API introduction milestone, we will implement the GitHub API.
A GitHub API wrapper needs to be created so that we can just put the name of the endpoint and get the data.
All methods related to this implementation can be placed under src/api

What info should be gathered?
And should the response be processed in the wrapper, then sent out just like in the existing API (like this export const getIntro)? I never made an API wrapper before, but I'd like to now.

@thtauhid  assign this to me .  Also clarify me some things
I will be creating a file under src/api folder  as /api/Github/index.js
and this file will be containing all the endpoints , with Methods , options and  returned body

Is there any standard way to do this .


Support HttpClient span tracing without using AddOutgoingGoogleTraceHandler

I'm evaluating the usage of either, or both of, OpenTelemetry and Google.Cloud.Diagnostics. I cannot find the equivalent of OpenTelemetry.Tracing.TracerProviderBuilderExtensions::AddHttpClientInstrumentation which adds child spans for HTTP requests without also adding span propagation. This is something that is possible as seen in OpenTelemetry's console export for a debugging API call of mine named greeting which makes an HTTP request to itself on localhost for currentDateTimeOffset and returns something like {"message":"Hello, Kris. Today is 8/23/2022. The time is 4:31 PM"}:
Activity.TraceId:          67a9020e3c07ac5849b3771e8094e93c
Activity.SpanId:           5556dd9133f22cc2
Activity.TraceFlags:           Recorded
Activity.ActivitySourceName: OpenTelemetry.Instrumentation.AspNetCore
Activity.DisplayName: /debugging/greeting
Activity.Kind:        Server
Activity.StartTime:   2022-08-23T21:06:04.4546850Z
Activity.Duration:    00:00:00.2880370
Activity.Tags:
    http.host: localhost:5000
    http.method: GET
    http.target: /debugging/greeting
    http.url: http://localhost:5000/debugging/greeting?name=Kris
    http.user_agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
    http.status_code: 200
   StatusCode : UNSET
Resource associated with Activity:
    service.name: my-api
    service.version: 1.0-local
    service.instance.id: b2e0b56b-f3d7-4ea7-a2aa-7b81f3266a14

Activity.TraceId:          67a9020e3c07ac5849b3771e8094e93c
Activity.SpanId:<PHONE_NUMBER>d43dd5
Activity.TraceFlags:           Recorded
Activity.ParentSpanId:    5556dd9133f22cc2
Activity.ActivitySourceName: OpenTelemetry.Instrumentation.Http
Activity.DisplayName: HTTP GET
Activity.Kind:        Client
Activity.StartTime:   2022-08-23T21:06:04.4638920Z
Activity.Duration:    00:00:00.1671190
Activity.Tags:
    http.method: GET
    http.host: localhost:5000
    http.url: http://localhost:5000/debugging/currentDateTimeOffset
    http.status_code: 200
   StatusCode : UNSET
Resource associated with Activity:
    service.name: my-api
    service.version: 1.0-local
    service.instance.id: b2e0b56b-f3d7-4ea7-a2aa-7b81f3266a14

If I only use AddGoogleTraceForAspNetCore, then the two requests show up as separate server-side spans:

But if I use something like services.AddHttpClient("google").AddOutgoingGoogleTraceHandler() and use the injected IHttpClientFactory to create a "google" HttpClient then I can see the parent child relationship like this as I'd like to see:

** Feature Request **
There are two parts to this feature request:
First, ideally, I'd like to have a configuration option to have child spans published to Google Trace from HttpClients without the use of the IHttpClientFactory -- as shown above it is possible in the OpenTelemetry library. In addition to usually not needing to inject an IHttpClientFactory for my own code, tracing the duration of HTTP requests made by third-party libraries should work out of the box.
Second, being able to configure just having HttpClient spans without propagation using the IHttpClientFactory method should also be available.
If what I'm looking for is already possible, then please repurpose this issue as a documentation and example request, as it wasn't readily clear whether this was possible or not. The closest issue I could find regarding this issue was #800.

Thanks for creating this issue. I've assigned it to Amanda, who is back from vacation tomorrow.

I'll take a look at this next week and reply when I know more.

Great, thanks! I am moving to use IHttpClientFactory in my own code by creating a span in a DelegatingHandler and making it easy to add through an extension on IHttpClientBuilder. Perhaps if any refactoring is done for supporting plain HttpClient usage, similar code could be exposed for end-users.

Having looked into this in more detail it's not certain that would want to implement either of your feature requests.

Using IHttpClientFactory is MS's recommended approach. Ideally all (modern) (third party) libraries have a way to integrate with IHttpClientFactory.
There's no .NET public API that allows to intercept all HTTP incoming and outgoing requests (other than IHttpClientFactory). The OpenTelemetry implementation is relying heavily on reflection (of private members in most cases) and that's an approach we are not happy with.
We could consider allowing configuration of non injected HTTP clients, but still the whole Google.Cloud.Diagnostics library depends on DI and you'd need to provide a ServiceProvider at some point, so not sure where the gain would be there?
With the current implementation, you can create a child span for each outgoing HTTP request (performed with an HttpClient configured by calling AddOutgoingGoogleTraceHandler) without propagating the tracing context. See the documentation for Custom Trace Context for outgoing HTTP requests and simply specify a propagation function that does nothing, i.e., that does not modify the request.

@kriswuollett Any extra comments you want to add?
As per my previous comment I'm tempted to close this request. I believe we are supporting current MS recommendations on HttpClient usage and interception, and adding new code to support other ways seems like a step backwards.
I understand that some third party libraries may not be up to date in recommendations, but that seems to be more of a request for them to modernize than for us to support alternatives?

@amanda-tarafa I'd agree, from what it sounds like there wasn't an easy integration point that did not use reflection. I wouldn't expect the effort to go into building for clients that don't follow the best practices (IHttpClientFactory) which seems to be to just adding AddGoogleOutgoingTraceHandler.

Perfect, thanks for replying back! I'll close these issue now, but of course create new ones if you encounter any other problems.


Ignore node selector labels for provisioning

Description
What problem are you trying to solve?
We have nvidia operator which installs nvidia runtime etc.. on karpenter nodes after they are provisioned, operator runs feature discovery and applies appropriate nvidia labels, we need to place pods on these karpenter nodes depending on these nvidia labels. Problem is that when i place nvidia labels in nodeSelector on pod, which are not in NodePool, because they are placed on nodes during node runtime by nvidia operator,  karpenter will fail to provision nodes. Solution might be e.g. placing some annotations on pod e.g. karpenter.sh/ignore-label=somelabel so that karpenter ignores this label during provisioning
How important is this feature to you?

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

operator runs feature discovery and applies appropriate nvidia labels

What kind of feature discovery are you talking about here? Is it stuff related to the properties of the instance type that we are launching?

https://github.com/NVIDIA/gpu-feature-discovery?tab=readme-ov-file#deploy-nvidia-gpu-feature-discovery-gfd
gfd adds labels after the nodes have already been created.
$ kubectl get nodes -o yaml
apiVersion: v1
items:
- apiVersion: v1
  kind: Node
  metadata:
    ...

    labels:
      nvidia.com/cuda.driver.major: "455"
      nvidia.com/cuda.driver.minor: "06"
      nvidia.com/cuda.driver.rev: ""
      nvidia.com/cuda.runtime.major: "11"
      nvidia.com/cuda.runtime.minor: "1"
      nvidia.com/gpu.compute.major: "8"
      nvidia.com/gpu.compute.minor: "0"
      nvidia.com/gfd.timestamp: "1594644571"
      nvidia.com/gpu.count: "1"
      nvidia.com/gpu.family: ampere
      nvidia.com/gpu.machine: NVIDIA DGX-2H
      nvidia.com/gpu.memory: "39538"
      nvidia.com/gpu.product: A100-SXM4-40GB
      ...
...

basically you are requesting that we create a node with those labels, but the nodepool is not aware of these labels and we wont be aware of them. They aren't added until gfd goes and adds them.  They are added after gpu nodes are provisioned?

basically you are requesting a workload requiring a node with those labels that we create a node with those labels, but the nodepool is not aware of these labels and we wont be aware of them. They aren't added until gfd goes and adds them. They are added after gpu nodes are provisioned? = yup that's right
How can karpenter know these traits? Seems relevant to per instance type overrides. If you know particular instance types will have particular traits then we can override a configmap to say these instance types have these values for the overrides. - i don't know how karpenter precisely works internally, it is probably possible to know these labels, at least part of them ahead of time and configure them statically, best would be if we would not need to define them
Do these values differ from node to node? Seems cuda runtime is dependent on the gpu drivers installed on the node? We can't just cache them directly. - we have e.g. all AWS g5 intances in one nodepool so for sure they will be different for each instance type, depending on gpu type on instance type, having each instance type in separate nodepool would be quite impractical

DRA -> https://github.com/kubernetes-sigs/karpenter/issues/1231 probably solve thing = "knowing before" as third-party drivers would present noderesourceslices when running on cluster

Also e.g. node feature discovery adds labels to nodes e.g CPU capabilities

best would be if we would not need to define them in config statically

I think the ideal state here is defining what the different configurations can be for the GPU feature discovery operator and then see if we can surface first-class support for these in Karpenter directly.
Like you mentioned, having to statically configure all of these values is going to be a huge pain, ideally Karpenter can auto-discover them by matching its logic up with what Nvidia tells us should be on these instance types.

I'm wondering if it makes sense to retitle this issue to be more specific to the use-case. Something like: "Support Nvidia GPU Feature Discovery"

/triage accepted

@jonathan-innis renamed


Add inline attribute to segment functions

Continuation of https://github.com/rust-osdev/x86_64/issues/125 I suppose.

To add some context, we noticed this lack of inlining while switching some CPU-local storage code from using inline assembly to using this crate's segment base register access functions.


[s390x] Improve handling of negative i32 constants

After https://github.com/bytecodealliance/wasmtime/pull/6850 was merged, the s390x back-end now always uses iilf instead of lhi to load negative constants, which is a small code size regression.
Fix the isle predicate to get back lhi whenever possible.

Looks like a flaky test with wasi-sockets (cc @sunfishcode?) -- retrying the merge.

Hmm, the socket test is failing again -- @sunfishcode would you mind taking a look at this test? The PR changes only s390x stuff so shouldn't affect a macOS/x86-64 execution.


Auto update list

closes #104
Will add test cases in v1.4/after @hyngkng is done changing all addresss book to ProductiveNus

Codecov Report

Merging #144 into master will decrease coverage by 0.04%.
The diff coverage is 40.00%.

@@             Coverage Diff              @@
##             master     #144      +/-   ##
============================================
- Coverage     51.95%   51.90%   -0.05%
- Complexity      559      561       +2
============================================
  Files           113      114       +1
  Lines          2458     2487      +29
  Branches        301      302       +1
============================================
+ Hits           1277     1291      +14
- Misses         1099     1113      +14
- Partials         82       83       +1

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/seedu/address/model/AddressBook.java
69.14% <35.00%> (-9.52%)
23.00 <1.00> (+1.00)
:arrow_down:

.../java/seedu/address/model/task/UniqueTaskList.java
35.29% <60.00%> (ø)
7.00 <3.00> (ø)

...eedu/address/logic/parser/DeleteCommandParser.java
100.00% <0.00%> (ø)
2.00% <0.00%> (-2.00%)

...eedu/address/logic/parser/RemindCommandParser.java
100.00% <0.00%> (ø)
2.00% <0.00%> (ø%)

...ava/seedu/address/logic/commands/CommandLogic.java
84.61% <0.00%> (ø)
9.00% <0.00%> (?%)

...va/seedu/address/logic/commands/RemindCommand.java
87.87% <0.00%> (+2.16%)
10.00% <0.00%> (ø%)

...in/java/seedu/address/logic/parser/ParserUtil.java
74.00% <0.00%> (+2.57%)
15.00% <0.00%> (+2.00%)

...va/seedu/address/logic/commands/DeleteCommand.java
100.00% <0.00%> (+7.14%)
7.00% <0.00%> (-8.00%)
:arrow_up:

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 8751dc7...3aacdec. Read the comment docs.

LGTM! I was at first worried about nested loops but figured there isn't a much better way anyways

I refactored the code so that the nesting isn't that bad and made the code neater :)


(html) Input field in mathjax rendered equation ?

I'm currently trying to convert a piece of code (that I didn't write) from mathjax 2.7 tot mathjax 3.
At https://github.com/XimeraProject/server/blob/master/public/javascripts/main.js#L317 you will find code that (maybe in a hacky way?) makes it possible to add an \answer command which places an input field at that location.
For example: \frac {4}{(m+1)!}-\frac {1}{m!}=\frac {\answer {3-m}}{(m+1)!} gives

It uses a lot of mathjax 2 specific things it seems, so I can't find how to port this to mathjax 3. I tried reading the mathjax 3 api documentation, but the documentation doesn't seem to be done yet.
My question actually is: 'Is it possible to easily let a custom tex command add an html input tag inside mathjax ? Or is it somehow possible to add an input field ?'

Here is a quick and dirty example of a configuration that provides an input field in CommonHTML output (there is a bug in the SVG support for annotation-xml that prevents it from working there).  There is also a but in the TeX input handling of annotation-xml nodes, but the code below includes a patch for that, which will not be needed when that bug is fixed.
Of course, you would probably want to create a custom TeX extension rather than doing this in-line, as in this example, but this allows you to try it out without compiling or webpacking anything.  The things referring to MathJax._ would normally be handled via import commands if you are making a custom extension, and you would load the extension using the loader block rather than setting a startup.ready() function.
Anyway, perhaps that can get you started.
MathJax = {
  tex: {packages: {'[+]': ['input']}},
  startup: {
    ready() {
      const Configuration = MathJax._.input.tex.Configuration.Configuration;
      const CommandMap = MathJax._.input.tex.SymbolMap.CommandMap;
      const TEXCLASS = MathJax._.core.MmlTree.MmlNode.TEXCLASS;

      MathJax._.input.tex.FilterUtil.default.cleanAttributes =
        function (arg) {
          arg.data.root.walkTree((mml) => {
            const attribs = mml.attributes;
            if (!attribs) return;
            for (const key of attribs.getExplicitNames()) {
              if (attribs.attributes[key] === mml.attributes.getInherited(key)) {
                delete attribs.attributes[key];
              }
            }
          });
        };
      new CommandMap('input', {input: 'Input'}, {
        Input(parser, name) {
          const xml = parser.create('node', 'XML');
          xml.setXML(MathJax.startup.adaptor.node('input', {xmlns: 'http://www.w3.org/1999/xhtml'}));
          parser.Push(
            parser.create('node', 'TeXAtom', [
              parser.create('node', 'semantics', [
                parser.create('node', 'annotation-xml', [
                  xml
                ], {encoding: 'application/xhtml+xml'})
              ])
            ], {texClass: TEXCLASS.ORD})
          );
        }
      });
      Configuration.create('input', {handler: {macro: ['input']}});

      MathJax.startup.defaultReady();
    }
  }
};

@dpvc Thanks for your answer. I didn't get the time to test it yet.
I'm currently plauing around with the new server side rendering and i'm wondering how your answer would change for server side rendering ?

There is an issue with using this server-side, which is that MathJax needs to be able to measure the HTML in order to tell how big it is, and that is done by asking the browser to measure the bounding box for the HTML.  That works in the browser, but not on the server (the LiteDOM doesn't do any actual layout).
The intended solution is to have you provide explicit size information in the <annotation-xml> node, but that currently isn't implemented.
On the other hand, the computation of the size of the <annotation-xml> also isn't implemented yet in the browser, either, so in that sense, it doesn't really matter.  MathJax will not know the size of the input box, and that may cause layout issues in some expressions (whether it was created in the browser or the server at the moment).

@dpvc
Hi. In my project I also need use input element inside equation. I just discovered your code:
 const xml = parser.create('node', 'XML');
      xml.setXML(MathJax.startup.adaptor.node('input', {xmlns: 'http://www.w3.org/1999/xhtml'}));
      parser.Push(
         parser.create('node', 'TeXAtom', [
            parser.create('node', 'semantics', [
               parser.create('node', 'annotation-xml', [
                  xml
               ], {encoding: 'application/xhtml+xml'})
            ])
         ], {texClass: TEXCLASS.ORD})
      );

Unfortunetly I ve got "Cannot read property 'outerHTML' of null" when use xml node inside this parser. Could you provide me any tips how to resolve it?

@baszczewski:
The update mentioned in the code turned out to require an additional parameter to the mml.setXML() command (to pass it the adaptor being used).  That is why you are getting the outerHTML call of null error.  So you need to change
xml.setXML(MathJax.startup.adaptor.node('input', {xmlns: 'http://www.w3.org/1999/xhtml'}));

to
xml.setXML(MathJax.startup.adaptor.node('input', {xmlns: 'http://www.w3.org/1999/xhtml'}), MathJax.startup.adaptor);

It turns out that the issue was arising because of the assistive MathML extension, which need to serialize the internal MathML in order to create the hidden MathML in the page for assistive technology to use.  That also serializes the contents of the annotation-xml node, but as it is HTML, it ends up being serialized without closing tags for the input element, and that means it is not valid XML, and causes an additional error.  To resolve that use
xml.setXML(MathJax.startup.adaptor.node('input', {xmlns: 'http://www.w3.org/1999/xhtml'}), MathJax.startup.adaptor);
xml.getSerializedXML = function () {return this.adaptor.outerHTML(this.xml) + '</input>'};

This is a hack to get the closing tag in this case, but a more general solution is needed to handle arbitrary annotation-xml content.  That will be for a future update.

Could you update the docs with an exact example an walkthrough?

FYI. Working demo here https://github.com/evenstensberg/mathjax-input-demo


target changed to _blank for social links in footer

The socials in footer were being opened in the same tab. Updated them to open the socials in new tab.
@DeveloperAshish8 kindly merge the pr with hacktoberfest tags.

Sorry @avibedi1768 , we are not merging minor changes as of now to avoid any exclusion.


Add Name as wordClass Option for Word Documents

Is your feature request related to a problem? Please describe.
The Igbo API should start supporting Igbo names. In order to do that, there needs to be a new wordClass option Name. This way, users of the API can be served with hundreds of Igbo names.
Describe the solution you'd like

Add a new field in the WordClass.js constants file and add { value: 'NM', label: 'Name' }
Create a test that new word class is served via the API

Describe alternatives you've considered
N/A
Additional context
N/A

This ticket has been closed


Fixes and new features

[ ] Ordinations in datatables does not work
[ ] When modify product, pictures are deleted
[x] Datetime widget is missing (coupons for example)
[x] Missing new entities buttons
[ ] Missing delete entities buttons
[x] Missing filters in datatables
[ ] In languages, currency, attributes tabs displays "Showing 1 to 0 of entries"
[x] Banners are empty
[ ] Reports are empty

Are those fixed now?

I think all of those are fixed now. Open a new specific issue if anything.


Comparison algorithm

Why not compare with UCtransNet, or with the latest 2022 algorithm?

The model size and complexity of Uctransnet are significantly higher than our models so it wouldn't be a fair comparison. Our aim here is to improve Unet and its variants at a slight parameter and complexity increase rather than building an end-to-end model like Transunet, Uctransnet, Swinunet etc.


If a vendor signs up to an opportunity without having signed up for categories, they don't get a welcome email

Is this the desired behavior? I feel like we haven't really thought about this use case all the way.

hmm, that is the point of oppselected.html / txt emails. Perhaps we didn't write the notification correctly for them?

This issue was moved to dobtco/beacon#1


Create VM groups

Being able to create groups for VMs, to reduce clutter. This would make it easier to find VMs if you have a lot of them.

Duplicate of #3960 (in the "Future" milestone) and #3305


Introduce on demand Goro implementation

The implementation tries to bind to the worker service when one of Goro methods is invoked.
Then it passes all the tasks to Goro instance behind the service and unbinds.
Closes #4.

/cc @lampapos @Vandalko

:+1:
I understand your approach with factory methods, but it makes extending / tweaking Goro nearly impossible - each implementation is a black box, but I wish they was a bit more open and available for user to modify...

:) You can fork.
The philosophy of this library is that there should not be any need to extend Goro class to modify it.
It should be just plugged. Have you ever though about extending cat in unix?
Goro has a single task: organize tasks in queues. You can change how they are actually executed supplying a delegate executor (createWithDelegate). Another task (not it's not what Goro class is responsible for) is moving operations to the service context.


Declared MIT License and updated "nuspec" with license and copyright

Type: Missing
Summary:
Declared MIT License and updated "nuspec" with license and copyright
Details:
Source found (https://www.nuget.org/packages/sharpcompress/0.22.0) license found (https://github.com/adamhathcock/sharpcompress/blob/master/LICENSE.txt)
Resolution:
Updated with Declared license and "nuspec" with license and copyright
Affected definitions:

SharpCompress 0.22.0

https://github.com/adamhathcock/sharpcompress/blob/0.22/LICENSE.txt


Takes some times to open search page

Description
I noticed that on the LinkFree website when I click any nav link it takes some time to open that page.
I added a Screen recording you can see.
Screenshots
https://user-images.githubusercontent.com/88102392/221829931-c057c1d6-b0f1-4a1b-8df3-daf0398bcc5c.mp4
Additional information
No response

Thank you for raising. This is a duplicate of https://github.com/EddieHubCommunity/LinkFree/issues/2815
We currently load all profiles, as the list grows it will get slower - we should move the search functionality to the backend


adding name

precious cinnamon roll must protecc oooh so relatable so awkward and nervous and shy and wow look at her hair its so messy and greasy does she shower?

Is not LGTM


ElevenLabs backend issue

Hello, I hope you're doing well. I'm facing an issue with some code. My primary programming language is Python, so I'm not very familiar with Node.js. From what I've gathered from GitHub and the existing code, it seems we need a backend server to process requests and return responses. I set up a simple Flask server for this purpose.
I also developed a backend function to handle requests and confirmed its functionality through separate testing - it worked. However, when I integrated it with the frontend, I received neither output nor error messages. Further investigation revealed that the function requires an 'alignments' dictionary detailing the start time, word, and total duration of the word in the audio. I've adjusted the backend to accommodate this.
After making these changes, I tried again and received audio output, but it was just white noise, not the expected word-related audio. I'm not using Nginx or Apache2 servers. Then I again tried some changed to the function which on checking I am now getting no error and no audio.
Thank you so much for your assistance in advance.
Here are some code samples:
Backend flask function:
def elevenSpeak_adapted(text):
    CHUNK_SIZE = 1024
    url = "https://api.elevenlabs.io/v1/text-to-speech/EXAVITQu4vr4xnSDxMaL"

    headers = {
        "Accept": "audio/mpeg",
        "Content-Type": "application/json",
        "xi-api-key": "49ed4d0f9499e7a5d26339731f8a16cd"
    }

    data = {
        "text": text,
        "model_id": "eleven_monolingual_v1",
        "voice_settings": {
            "stability": 0.5,
            "similarity_boost": 0.5
        }
    }

    chunks = b""
    chunks_list = []
    response = requests.post(url, json=data, headers=headers)

    for chunk in response.iter_content(chunk_size=CHUNK_SIZE):
        chunks += chunk
        chunks_list.append(chunk)

    file_name = 'output_audio.mp3'
    with open(file_name, 'wb') as audio_file:
        audio_file.write(chunks)

    base64_audio = base64.b64encode(chunks).decode("utf-8")
    audio_bytes = base64.b64decode(base64_audio)
    audio_buffer = io.BytesIO(audio_bytes)

    audio = AudioSegment.from_file(audio_buffer)
    duration_ms = len(audio)

    print(f"Audio duration: {duration_ms} milliseconds")
    ALIGNMENTS = estimate_word_timings_enhanced(text, duration_ms)
    ALIGNMENTS = {
        "audio":[],
        "words":ALIGNMENTS[0],
        "wtimes":ALIGNMENTS[1],
        "wdurations":ALIGNMENTS[2]
    }

    print("Audio data returned")
    return base64.b64encode(chunks).decode("utf-8"), ALIGNMENTS

@socketio.on('speak_request')
def handle_speak_request(json_data):
    text = json_data.get('text')
    print("Got direct speak request!")

    if text:
        audio_data, ALIGNMENTS = elevenSpeak_adapted(text)
        print("Returning the audio data!")
        emit('speak_response', {'audio_data': audio_data, 'ALIGNMENTS':ALIGNMENTS})

Frontend Js function:
async function elevenSpeak(s, node=null) {
if (!elevenSocket) {
elevenInputMsgs = [
elevenBOS,
{
"text": s,
"try_trigger_generation": true,
}
];
let url = location.protocol + '//' + document.domain + ':' + '5000';
console.log("Sending request to " + url);
console.log(cfg('voice-lipsync-lang'))
console.log(cfg('voice-eleven-id'))

// Make the connection
elevenSocket = io.connect(url);

// Connection opened
elevenSocket.on("connect", function(){
  console.log("Socket is opened")
  elevenOutputMsg = null;
  while (elevenInputMsgs.length > 0) {
    console.log(`Sending to servers through socket ${JSON.stringify(elevenInputMsgs.shift())}`)
    elevenSocket.emit("speak_request", elevenInputMsgs.shift());
  }
});

// New message received
elevenSocket.on("speak_response", function (r) {
  console.log("Received message")
  console.log(r)

  // Speak audio
  if ((r.isFinal || r.normalizedAlignment) && elevenOutputMsg) {
    console.log("r.isFinal || r.normalizedAlignment) && elevenOutputMsg")
    head.speakAudio(elevenOutputMsg, { lipsyncLang: cfg('voice-lipsync-lang') }, node ? addText.bind(null, node) : null);
    elevenOutputMsg = null;
  }

  if (!r.isFinal) {
    // New part
    console.log(1)
    if (r.alignment) {
      elevenOutputMsg = { audio: [], words: [], wtimes: [], wdurations: [] };
      console.log(2)

      // Parse chars to words
      let word = '';
      let time = 0;
      let duration = 0;
      for (let i = 0; i < r.alignment.chars.length; i++) {
        if (word.length === 0) time = r.alignment.charStartTimesMs[i];
        if (word.length && r.alignment.chars[i] === ' ') {
          elevenOutputMsg.words.push(word);
          elevenOutputMsg.wtimes.push(time);
          elevenOutputMsg.wdurations.push(duration);
          word = '';
          duration = 0;
        } else {
          print(duration)
          duration += r
          duration += r.alignment.charDurationsMs[i];
          word += r.alignment.chars[i];
        }
      }
      // Add the last word if it's not empty
      if (word.length) {
        elevenOutputMsg.words.push(word);
        elevenOutputMsg.wtimes.push(time);
        elevenOutputMsg.wdurations.push(duration);
      }
    }

    // Add audio content to message
    if (r.audio && elevenOutputMsg) {
      console.log(r.audio)
      console.log(elevenOutputMsg)
      elevenOutputMsg.audio.push(head.b64ToArrayBuffer(r.audio));
    }
  }
});

elevenSocket.on("disconnect", (reason) => {
  if (reason === 'io server disconnect') {
      console.log("Socket connection has been closed by the server");

    } else {
      console.warn('Connection died', reason);
  }
  elevenSocket = null;

});
elevenSocket.on("connect_error", (error) => {
console.error("Connection error:", error);
});
} else {
// If the socket is already open, send the message directly
let msg = {
"text": s,
"try_trigger_generation": s.length > 0
};
elevenSocket.emit("speak_request", msg);
}
}

Here is the output from all console.log in console:

![image](https://github.com/met4citizen/TalkingHead/assets/162581671/f2e0a534-cf4d-4663-b8f4-9adb3aa8e23f)

Please know that I removed the jwt from frontend wherever it was required or used.

Hope that you can help with this issue.
Thank u so much
Arsal

Hi, thank u so much for your quick reply.
I see, so we can directly run from the frontend. Sorry, as I also have limited knowledge of js/Nodejs  can you tell how can I do that? Like what changes do I have to do to run it? where to place API, etc?
Thank u

Sure, I can give you detailed instructions on how to modify the index.html example app so that it calls the ElevenLabs WebSocket API directly. I must, however, point out that you should never put your private API key in any client-side code unless you are sure that you are the only user and the only one having access to that code. What you really should do is find out how to make a WebSocket proxy. But, like I said, I can't help you with that because I have never used Flask.

In the index.html file there is the URL template for the ElevenLabs API proxy called elevenTTSProxy. Change it to point directly at the ElevenLabs WebSocket API endpoint:

const elevenTTSProxy = [
  "wss://api.elevenlabs.io",
  "/v1/text-to-speech/",
  "/stream-input?model_id=eleven_multilingual_v2&output_format=pcm_22050"
];

Add your ElevenLabs API key to the Beginning of Stream message elevenBOS:

const elevenBOS = {
  "text": " ",
  "voice_settings": { "stability": 0.8, "similarity_boost": true },
  "generation_config": {
    "chunk_length_schedule": [500,500,500,500]
  },
  "xi_api_key": "<insert-your-api-key-here>"
};

Remove the JSON Web Token from the URL:

let url = elevenTTSProxy[0];
// url += await jwtGet();
url += elevenTTSProxy[1];
url += cfg('voice-eleven-id');
url += elevenTTSProxy[2];

That's it.

Sure, I can give you detailed instructions on how to modify the index.html example app so that it calls the ElevenLabs WebSocket API directly. I must, however, point out that you should never put your private API key in any client-side code unless you are sure that you are the only user and the only one having access to that code. What you really should do is find out how to make a WebSocket proxy. But, like I said, I can't help you with that because I have never used Flask.

In the index.html file there is the URL template for the ElevenLabs API proxy called elevenTTSProxy. Change it to point directly at the ElevenLabs WebSocket API endpoint:

const elevenTTSProxy = [
  "wss://api.elevenlabs.io",
  "/v1/text-to-speech/",
  "/stream-input?model_id=eleven_multilingual_v2&output_format=pcm_22050"
];

Add your ElevenLabs API key to the Beginning of Stream message elevenBOS:

const elevenBOS = {
  "text": " ",
  "voice_settings": { "stability": 0.8, "similarity_boost": true },
  "generation_config": {
    "chunk_length_schedule": [500,500,500,500]
  },
  "xi_api_key": "<insert-your-api-key-here>"
};

Remove the JSON Web Token from the URL:

let url = elevenTTSProxy[0];
// url += await jwtGet();
url += elevenTTSProxy[1];
url += cfg('voice-eleven-id');
url += elevenTTSProxy[2];

That's it.

Hi there, thank you so much again for your kind help and prompt followup, which helped a lot indeed!  We have tried your approach and sucuesslly get it done! :)
However, we encountered another issue that the sound from Elevenlabs always has some unnatural pauses every 3 to 5 seconds. It seems to us that the voice synthesis by Elevenlabs cannot catch up with the text generation by ChatGPT.  Here's a video example of the issue: https://youtu.be/nSbze3ITL94
We are wondering whether the issue is attributed to the real time streaming approach?  Maybe it could be resolved if we only start the voice synthesis process with Elevanlabs after the whole text is generated by ChatGPT, but we are not sure how to make such a change, because we know that the whole project is built based on this setting.
It should be very much appreciated if you have any idea about how to resolve the issue. And again, thank you so much for this wonderful project and your kind help with every issues that we encountered along the way!  Have a nice weekend!  👍

Thanks!
Based on some posts in their own forum, the gaps between audio chunks are a well-known issue with the ElevenLabs WebSocket API. The audio chunks they send are not seamless, and as far as I know, there isn't much we can do about it. It seems that they have had to make some compromises with the audio quality to decrease latency. I hope they can fix the issue because only their WebSockets API can provide time-to-audio alignment information.
The gaps aren't the only problem with ElevenLabs. There is also some variance in the tone of the voices, and in longer texts, the voice volume sometimes starts to drop towards the end. The biggest issue for me, however, is the price. In my own use case of the TalkingHead class, I now use Google TTS for free, whereas the same amount of characters in ElevenLabs would cost me $330 per month.

I just watched the video you linked again. It really shouldn't sound that bad. I think we can improve it by disabling the ElevenLabs' automatic try_trigger_generation and flushing the generation manually after each sentence. This way, the gaps occur mostly between sentences, and you hardly notice them.
I just pushed a quick fix to the index.html file. Just three lines. I hope it helps. You can still hear some gaps in longer sentences, but it should be much better now.


Stitched schema not handling error from external schema

Describe the bug
I noticed that when my external graphql api returns an error, the gateway graphql server (using a stitched schema) returns invalid json and throws the following exception:
System.InvalidOperationException: StatusCode cannot be set because the response has already started.
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ThrowResponseAlreadyStartedException(String value)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.set_StatusCode(Int32 value)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.Microsoft.AspNetCore.Http.Features.IHttpResponseFeature.set_StatusCode(Int32 value)
   at Microsoft.AspNetCore.Http.DefaultHttpResponse.set_StatusCode(Int32 value)
   at HotChocolate.AspNetCore.QueryMiddlewareBase.InvokeAsync(HttpContext context)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

To Reproduce
I've created a minimal repository to reproduce the error: https://github.com/SniC/hotchocolate-stitching-error
Expected behavior
A valid response from the gateway with an error.
Desktop:

OS: Windows 10
Hotchocolate Version 10.4.0

Thanks for creating a repro. Will look into this. We are at the moment collecting issues for a patch release. We probably start working on this next week.


Sequence of text processing

Are you requesting a feature, reporting a bug or ask a question?
Question
What is the current behavior?
I have a Comment question type with a description property that has a custom parameter:
"description" : "Regarding your goal of: {p_itc_improvementgoal}, what happened?"
All good. I wanted the data substituted for the parameter to be  so I added markdown (I am using Showdown) so it looked like this:
"description" : "Regarding your goal of: {p_itc_improvementgoal}, what happened?"
and (of course) the _itc_ bit of the parameter was converted to itc so then the parameter would not be replaced because it was "corrupted" by the html:
ie = {pitcimprovementgoal}
What is the expected behavior?
I was wondering whether the sequence could be changed to do the parameter substitution before the onTextMarkdown() ? As a workaround I changed the parameter token to remove the "markdown syntax" ( ie parameter token is now {pxitcimprovementgoal} ) , so all good for now.
In other parts of my app the data that is substituted is a whole paragraph and I might want to include markdown in that block of text. Under the current sequence the markdown conversion would occur before the paragraph of data had been substituted so the substituted paragraph would contain the markdown syntax and not the converted html.
So, would it work if the parameter substitution was done before the onTextMarkdown() process runs?
Thanks,
Murray.
Specify your

browser:
browser version:
surveyjs platform (angular or react or jquery or knockout or vue):
surveyjs version: v0.12.30

@murrah I would say it is a bug. It is unexpected behaviour. I will work on the fix.
Thank you,
Andrew

Again, thank you!

@murrah https://github.com/murrah I would say it is a bug. It is
unexpected behaviour. I will work on the fix.
Thank you,
Andrew
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/surveyjs/surveyjs/issues/697#issuecomment-333471013,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AChhbtSk9-Hb9L5WXz-oDXG9P9OVT7pWks5soJ5mgaJpZM4PqSLk.


Update .gitignore

Summary

Changes

Closes:
Task list

[x] For workflow changes, I have verified the Actions workflows function as expected.
[x] For content changes, I have reviewed the style guide.

test


Default example DiaglogAndMenuExample has errors.

Tried to run the default scene on Hololens device but getting error. In Unity Editor, no issues running.
Class: HUX.Buttons
Line 132:
currentDatum = Profile.ButtonStates[(int)newState];
Output Debug:
Exception thrown: 'System.NullReferenceException' in Assembly-CSharp.dll
Any fix for this?

Error only occurs while debugging from VS. Once running the App standalone.. no issues.

OK - thanks for the heads up. This isn't the first issue that we're having related to button profiles. We're planning to create a tutorial called "A Primer for Button Profiles" so that people have a good sense of how they're setup and how to use (and debug) them effectively.

Hi @markleeyw We're updating some of these features to work with Unity 2017. We've just pushed a change to make the button profiles more stable. Please feel free to try them out now, and let us know if you're still getting null errors related to button profile states.


Update-docs

Codecov Report

Merging #28 (4120291) into main (bfa1ac8) will decrease coverage by 0.27%.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main      #28      +/-   ##
==========================================
- Coverage   93.06%   92.80%   -0.27%
==========================================
  Files           5        5
  Lines         375      375
==========================================
- Hits          349      348       -1
- Misses         26       27       +1

Impacted Files
Coverage Δ

src/Dispersion.jl
95.65% <ø> (ø)

src/FirstChern.jl
95.12% <ø> (ø)

src/QuantizedBerryPhase.jl
81.42% <ø> (ø)

src/Z2Invariants2D.jl
95.55% <ø> (-0.75%)
:arrow_down:


merge from template-coveralls

.github/workflows/update_package_lock.yml

chore: (on.schedule)

:tada: This PR is included in version 6.4.5 :tada:
The release is available on:

npm package (@latest dist-tag)
v6.4.5
GitHub release

Your semantic-release bot :package::rocket:


[hive] fix date casting in explore view

Based on the docs here and some testing:
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types#LanguageManualTypes-TimestampstimestampTimestamps
fixes https://github.com/apache/incubator-superset/issues/3383

Coverage decreased (-0.06%) to 69.262% when pulling 075f052a2d75447a8f9325b17f2f533a4debd1d2 on mistercrunch:fix_hive_date_cast into c3ab7967341943bc06464494726644f5b5c03560 on apache:master.

LGTM


Remove OptionalAttr from VHLO

Continuing to explore the design principle of aligning VHLO with the
spec, I realized that having optional attributes goes against that.
In the spec, we deliberately skipped the notion of optional attributes
and default values, treating all attributes as mandatory. Given that,
I think it's worth considering doing the same in VHLO.
More concretely, for all OptionalAttr and Default...Attr in StableHLO,
this PR changes the corresponding VHLO attributes from
OptionalAttr<VHLO_AnyAttr> to VHLO_AnyAttr. (FWIW, the three attributes
modeled via DefaultValuedStrAttr in StableHLO have already been modeled
via VHLO_AnyAttr in VHLO).
Furthermore, the StableHLO => VHLO conversion is changed to add these
attributes to VHLO operations in case they are missing from StableHLO
operations. And vice versa - the VHLO => StableHLO conversion is changed
to remove these attributes from VHLO operations if they have default
values.
This means that the StableHLO => VHLO => StableHLO roundtrip is no
longer an identity function as far as syntax is concerned (it can remove
explicitly provided StableHLO attributes which have default values).
Semantically, the roundtrip remains an identity function.
Closes #1056.

Looks like stablehlo/integrations/python/tests/vhlo.py needs to be updated to include vhlo.func attributes


How can I use the microphone feature? I see that this section of code is disabled. How can I enable this functionality?

How can I use the microphone feature? I see that this section of code is disabled. How can I enable this functionality? Thank you.

It is commented out because the functionality does not exist. At one point it was slated to be done but now is not on the roadmap. All this comment does is hide the icon but the entire backend to support this does not exist at this time


lazy evaluation? benchmarks? updates

Does zsnap do any lazy evalution? such as I don't want to do any evaluation until conditions such as prompt available or command pattern matched for completion?
do you have any comparison times with other frameworks?
how does zsnap update plugins and itself? do I need to write a cron/timer?

That’s a lot of questions for one issue. 😉

Does zsnap do any lazy evalution? such as I don't want to do any evaluation until conditions such as prompt available or command pattern matched for completion?

Can you give some concrete examples of how you would want to use this and why?

do you have any comparison times with other frameworks?

I don’t. What would be a meaningful comparison to you?

how does zsnap update plugins and itself?

znap status checks for updates to Znap and of your (plugin) repos in parallel.
znap pull without arguments will update Znap and all repos, or you can pass as arguments the specific repos you want to update.

do I need to write a cron/timer?

I have not yet implemented an auto-update feature, because I personally don’t want that. But I am now considering perhaps to implement a selective auto-update mechanism.


Not Working on IOS 15 Pro

When i use in web view its working fine. when I use in emulator local host mobile view the pop up not showing
I attached the SS

Hi. Thanks for reporting. I'll try to find time to replicate the problem.

We can connect and I will elaborate on the issue.
On Thu, 22 Aug 2024, 2:00 am koichia, @.***> wrote:

Hi. Thanks for reporting. I'll try to find time to replicate the problem.
—
Reply to this email directly, view it on GitHub
https://github.com/koichia/flutter_web_file_selector/issues/2#issuecomment-2303004788,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQMSATBHCVGJEQ3RP6KHHPLZST5YBAVCNFSM6AAAAABM3SVSN2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBTGAYDINZYHA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Update cache-best-practices-development.md

Added about OCSP not being supported

@flang-msft -

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

NOTE: to clear validation, the new link will need to be edited to be site-relative ... remove the https://learn.microsoft.com/en-us from it so that it starts with /openspecs/
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#please-close


Audio Extraction takes extraordinarily long to extract audio from multi audio track video (1hour in length)

Bug description
AutoEditor seems to get stuck or freezes when extracting audio, taking about an hour just for one track.
What's your platform?
Python Version: 3.11.9 64-bit
Platform: Linux 6.8.5-zen1-1-zen x86_64
FFmpeg Version: 4.2.2
FFmpeg Path: /home/jordancruz/anaconda3/envs/AutoEditor/bin/ffmpeg
Auto-Editor Version: 24w13a

running under conda because my primary install of python is 3.12, which is too new.

What command did you use
auto-editor /run/media/jordancruz/WorkDrive/Video Workspace/Footage/2023-01-26_22-44-33.mov --edit audio:stream=all --export resolve

and

auto-editor /run/media/jordancruz/WorkDrive/Video Workspace/Footage/2023-01-26_22-44-33.mov --edit audio:stream=all --export premiere

What properties does your input video have?
auto-editor info

video:

track 0:

codec: mjpeg
fps: 60
resolution: 1920x1080
aspect ratio: 16:9
pixel aspect ratio: 1
duration: 3349.7
pix fmt: yuvj420p
color range: 2 (pc)
color space: 5
color primaries: 1 (bt709)
color transfer: 1 (bt709)
timebase: 1/15360
bitrate: 115668739

audio:

track 0:

codec: pcm_s16be
samplerate: 44100
channels: 2
duration: 3349.664217687075
bitrate: 1411200

track 1:

codec: pcm_s16be
samplerate: 44100
channels: 2
duration: 3349.664217687075
bitrate: 1411200

track 2:

codec: pcm_s16be
samplerate: 44100
channels: 2
duration: 3349.664217687075
bitrate: 1411200

container:

duration: 3349.7
bitrate: 119918495

ffmpeg
Metadata:
major_brand     : qt
minor_version   : 512
compatible_brands: qt
encoder         : Lavf60.16.100
Duration: 00:55:49.70, start: 0.000000, bitrate: 119918 kb/s
Stream #0:0: Video: mjpeg (Baseline) (jpeg / 0x6765706A), yuvj420p(pc, bt470bg/bt709/bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 115668 kb/s, 60 fps, 60 tbr, 15360 tbn, 15360 tbc (default)
Metadata:
handler_name    : VideoHandler
encoder         : Lavc60.31.102 mjpeg
Stream #0:1: Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz, stereo, s16, 1411 kb/s (default)
Metadata:
handler_name    : SoundHandler
Stream #0:2: Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz, stereo, s16, 1411 kb/s
Metadata:
handler_name    : SoundHandler
Stream #0:3: Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz, stereo, s16, 1411 kb/s
Metadata:
handler_name    : SoundHandler
Comments
It has been a while since I've used auto editor, but I don't remember it being this long of a wait

Your ffmpeg is too old. Use ffmpeg 6. We support Python3.12 now. I'm not suprised it's taking so long because of codec: mjpeg and pix fmt: yuvj420p. You should use more normal formats like h264 and aac and let your hardware accel do the rest, which should be used by default.


Deprecated get_losses_for function in migration guide

URL(s) with the issue:
https://www.tensorflow.org/guide/migrate?hl=en
Description of issue (what needs changing):
In the Custom model_fn with minimal changes section of the migration guide,  it is recommended to use get_losses_for but this function is deprecated and mapped to the model.losses property.
https://github.com/tensorflow/tensorflow/blob/v2.3.0/tensorflow/python/keras/engine/base_layer.py#L1895
Furthermore, in the example this function is called two times with differents parameters (None and features) which would results in adding the regularization loss twice.

Thanks, Can you submit a PR?

Ok.
So to be sure, currently, one can simply use model.losses ?

@MarkDaoust,
Can you please confirm if we can close this issue with respect to this PR and with respect to this Commit? Thanks!

Yes, this was fixed by: https://github.com/tensorflow/docs/commit/ca65d8e310d33de95f721da6f0405f00ef6a4aed


[HUDI-8275] DO NOT MERGE 5

Change Logs
asfdsafs
Impact
sdafdsfs
Risk level (write none, low medium or high below)
none
Documentation Update
N/A
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

Closing this testing-only PR.


v1.1.0 is not available at PyPI

While we have v1.1.0 tag in this repo, it is still not available at PyPI.
https://pypi.org/project/sqlalchemy-spanner/
Most of Python users including me use PyPI to download packages through pip/poetry.
Could you make v1.1.0 available at PyPI ?
Context:
#192

@vi3k6i5 Friendly reminder.

cc: @asthamohta

Version 1.1.0 is now available on PyPI here.


Create pt.json

Add translation of the program into Portuguese

Thank you!  This will be included in the next release, probably saturday or sunday

Thank you and I'm glad I could help. There are many people in my country using this program. As a content creator, I end up spreading your program a little.

Sweet!  For what it's worth, I also uploaded your work to here: https://crowdin.com/project/fsg-mod-assistant/pt-PT
I am happy to take new / changed translations either from there, or via a pull request like this one - whichever you find easier is fine with me.


[storage][jellyfish_merkle][1/3] Define node_type in jellyfish merkle tree

Motivation
We are going to change curent sparse merkle tree to jellyfish merkle
tree, which is more efficent than current merkle in the aspects of IOPS,
compaction overhead and space. This diff will first introduce the data
structures of two kinds of nodes in the tree and corresponding unit tests.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
cargo test
Related PRs

close for now. will change some data structure and reopen it.

lgtm, please squash

This looks like it's good to go!
It would be great if we could have a cleaner history for this PR, though. Would you mind squashing your commits in the best succinct organization before we merge?

squashed.


az account: 'create' is not in the 'az account' command group

Create Azure Enterprise subscriptions Programmatically
I'm trying to use the "az account create" to create a new subscription via the azure cli. The az cli gives me a warning stating that the azure client account command does not have the "create" instruction.
Description of Issue
Using the following URL.
https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/azure-resource-manager/programmatically-create-subscription.md
azure-cl --> 2.0.61
Is it still in preview? What other options do I have?
Thanks,
Fernando

To use this preview extension, install it by running az extension add --name subscription first.

You need to install the extension first.


how to Disable Right Click to exit

hello !
how to Disable Right Click to exit i need to use right click without  close anything

On Android, right click is rarely used. Typically, you get contect menu with long left-click.
That's why in scrcpy right-click is mapped to BACK.
Why do you need right-click?

can i remapped   right-click?
i use keyboard mapper app to play pubg mobile in scrcpy   but in app  i need to use  right-click  to unlock mouse
in app i cant change  map  right-click
So i need to change mappedin scrcpy from back to nothing
and thank you

can i remapped right-click?

No, you can't without modifying the source code.

how i can get  source code to  modifying ? or  i need devloper ?

@rom1v  please i need I need a solution

Basically, let right-click being forwarded to the device:
diff --git a/app/src/input_manager.c b/app/src/input_manager.c
index 5258bed..58a1325 100644
--- a/app/src/input_manager.c
+++ b/app/src/input_manager.c
@@ -409,10 +409,6 @@ input_manager_process_mouse_button(struct input_manager *input_manager,
                                    const SDL_MouseButtonEvent *event,
                                    bool control) {
     if (event->type == SDL_MOUSEBUTTONDOWN) {
-        if (control && event->button == SDL_BUTTON_RIGHT) {
-            press_back_or_turn_screen_on(input_manager->controller);
-            return;
-        }
         if (control && event->button == SDL_BUTTON_MIDDLE) {
             action_home(input_manager->controller, ACTION_DOWN | ACTION_UP);
             return;

But in practice, it seems to do the same action as left click in many apps.

Can you tell me what tools should I use to get here?

I have download  scrcpy-master and edit in input_manager.c  and change  BUTTON RIGHT  event to this
`input_manager_process_mouse_button(struct input_manager *input_manager,
const SDL_MouseButtonEvent *event,
bool control) {
if (event->type == SDL_MOUSEBUTTONDOWN) {

   if (control && event->button == SDL_BUTTON_RIGHT) {

       press_back_or_turn_screen_on(input_manager->controller);

       return;

   }
   if (control && event->button == SDL_BUTTON_MIDDLE) {
       action_home(input_manager->controller, ACTION_DOWN | ACTION_UP);
       return;`

but now i dont now how to run it with scrcpy    can you help me

and change BUTTON RIGHT event to this

(the - means you need to remove the lines)

but now i dont now how to run it with scrcpy can you help me

Follow BUILD.

yes i remove  -
man i try Follow BUILD.  But I didn't know anything  its hard steps I did not understand how to do it

If you find a link to explain from YouTube please help me

i use windows 10

Ref #1302

I wish there was some way to disable the right-click and scroll-wheel-click always going back and closing whatever I'm working on.  It drives me CRAZY and makes scrcpy almost unusable for me.  I guess I have an overly sensitive mouse but I constantly bump the middle mouse scroll-wheel button and then whatever I'm in the middle of doing instantly vanishes or is closed, sometimes to detrimental effect, with my losing data/information/work.  I can't believe there's not a simple override for this feature :(

https://github.com/Genymobile/scrcpy#right-click-and-middle-click

Well, I totally agree, right click is regular shot in the head, I hadn't
bothered to look for a workaround.  And as far as mousing, because I
roasted my 5th screen so I'm using scrcpy or I can't do anything, the
scrolling and clicking, get's far more a chore than a finger...
But, I stay away from the droid interface if I can help it, it reminds me
of lunchbox mac's, except it's 500 islands direction like unix binary
compatibility was...  And the silly vendors  packing on their extra's some
of which is nearly impossible to use in the mouse situation..
Having done OTG, I can't remember, but I think the right button was doom
that way too.
On Sun, Aug 1, 2021 at 11:05 PM richaardvark @.***>
wrote:

I wish there was some way to disable the right-click and
scroll-wheel-click always going back and closing whatever I'm working on.
It drives me CRAZY and makes scrcpy almost unusable for me. I guess I have
an overly sensitive mouse but I constantly bump the middle mouse
scroll-wheel button and then whatever I'm in the middle of doing instantly
vanishes or is closed, sometimes to detrimental effect, with my losing
data/information/work. I can't believe there's not a simple override for
this feature :(
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Genymobile/scrcpy/issues/732#issuecomment-890717414,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQVTVJDB6OWOFVQ2GW4Z6LT2YRQDANCNFSM4IMOSQOA
.


Instana Agent Operator 0.1.3

Thanks submitting your Operator. Please check below list before you create your Pull Request.

Flat operator directory structure is obsolete from 23-rd of October 2019, only nested directory structure will be accepted.

Updates to existing Operators

[x] Is your new CSV pointing to the previous version with the replaces property?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

@dlbock PR should be signed from @fstab (original contributor).

@J0zi I'm confused. Original contributor? The last 2 updates to our operator was made by my colleague Will (@wiggzz) : https://github.com/operator-framework/community-operators/pulls?q=is%3Apr+is%3Aclosed+author%3Awiggzz
What am I missing?

@dlbock, sign off is mandatory now. As you never contributed to this operator, I should ask you to  sign your commit by an author. As a workaround, your commit can be signed also from @wiggzz. Thanks for understanding.

@J0zi Ok will do. So what exactly is needed? An original contributor to sign the commit? Or approve the PR?

@dlbock, see here

@J0zi I have read that and have signed my commit. That page doesn't say anything about original contributors needing to sign commits/PRs. I'm sorry, but not understanding how getting an original contributor to sign my work (when the Author and Signed-off-by lines must match) helps enable a new person to contribute to an operator? I don't mean to be obtuse, just not quite understanding.
I can get @fstab to rewrite this commit and sign off as well, but not sure how that helps me contribute PRs in the future if needed? @wiggzz is off on leave.

@J0zi I added a Signed-off-by to the commit message and force-pushed an update. Is that what you need?

@J0zi Can we get a re-review on this PR? Many thanks.

@J0zi just checking in, looks like the latest Travis build on master failed after this PR was merged. Wondering if I missed anything or can help with anything?

@J0zi The current version of the Instana agent operator on OperatorHub is still listed as v0.1.2. It doesn't look like v0.1.3 has been published. Can you help us look into that?


AttributeError: module 'schist' has no attribute 'inference'

I am following single-cell best practice tutorial, when I ran this code:
import schist as scs
scs.inference.nested_model(adata, samples = 100, random_seed = 5678)
It raised this error.
I am using schist version 0.7.16+2.gb762b76
Thank you so much for assisting me!

Hello @ngvananh2508 , apologies for the late reply.
Would you mind to actually post the error message you got?

I am sorry but I do not hold the context now. If I confront it again, I will let you know.
Thank you.

Ok. In case feel free to reopen the issue. Closing right now


Table documenting all Basis choices

In particular: this will include a list of all the bases, a "recommended mode" (conv vs. eval), a plot of evalute_on_grid, and maybe an example use in the literature.


Does not work on deno 1.2

Hello.
I'm currently using
deno 1.2.0
v8 8.5.216
typescript 3.9.2
But when I try to use the upload middleware, this error pops up on the terminal.
`deno run --allow-env --allow-net --allow-read --allow-write --allow-plugin   --unstable  app.ts
Check file:///Users/omar/DeNo/sec25DeNo/app.ts
error: TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
Type 'URL' is not assignable to type 'string'.
return new URL(url).pathname
~~~
at https://deno.land/std@0.55.0/path/win32.ts:917:18
TS2345 [ERROR]: Argument of type 'string | URL' is not assignable to parameter of type 'string'.
Type 'URL' is not assignable to type 'string'.
return new URL(url).pathname;
~~~
at https://deno.land/std@0.55.0/path/posix.ts:438:18
Found 2 errors.`

I updated the std branch, I think it will work now, but you need to test it. thank you.

Added the flag --reload and now i'm able to see the sent file be created in the specified folder in my route.
router.post('/feed/post',upload('images', { extensions: ['jpg', 'png','jpeg'], maxSizeBytes: 20000000, maxFileSizeBytes: 10000000 }),createPost);
Is it possible to not create so many folders? from what i can tell its images/year/month/hour/minutes/seconds/random string/file
Just the random string seems fine.
I'm getting this error even if im able to see the file.
Listening on: 5000 OPTIONS http://localhost:5000/feed/post - Mon Jul 20 2020 16:36:28 GMT-0400 (EDT) imageUrl  images/2020/7/20/16/36/28/d47af1fe-c1b8-4c10-b8b5-a552f82544c6/Screen%20Shot%202019-11-29%20at%2010.02.19%20AM.png Unable to find multi-part boundary. POST http://localhost:5000/feed/post - Mon Jul 20 2020 16:36:28 GMT-0400 (EDT)
Trying to see if its an error on my side.
export const createPost = async (ctx:any)=>{     try{            const imageUrl: string= ctx.uploadedFiles.imageUrl.url;         console.log('imageUrl ', imageUrl);         if(!ctx.request.hasBody){             throw new HttpError("Body not found",422);         }         const result = ctx.request.body({type:"form-data"});         const temp = await result.value;         // const tempFile = {...temp};         // const files = (await tempFile.read()).files;         // console.log(JSON.stringify(files));         const body = (await temp.read()).fields;         console.log(body);         console.log(title ${body.title});         console.log(content ${body.content});         console.log(creator ${body.creator});

Yes, with New useDateTimeSubDir option

Thank you!. Now the file is stored on folder.


Fixes #469: Analytics token is replaced at deployment time

Though not sure why I was appointed :-)

@Ladicek I wanted a third set of eyes, thanks for the review.

Seems like all discussion was resolved, so LGTM then. @inoxx03, can you please merge?

merging

merged 08f1e186a0e99b53d304dce19f8f4e8487a677ba


Make space copyable

I see no reasons for space to be non-copyable.

Copy - is for implicit copying. It is an edge measure and is only allowed if the type semantics so require. For example primitive types. Space is not a primitive type, or anything like that. Accordingly, it does not need Copy.
Clone might be useful. There really are no technical obstacles. But then you need not to point-wise add where the need arises, but to comb the entire code base for adding Clone. At least it can be added to Index, possibly somewhere else.
Could you describe your case? It might be possible to resolve your issue without merging this pull request.


Standardized cover page for each chapter?

I like what @jdwilkins75 did with including a link to his Twitter so people can follow him. Same with the online presence added by @abrignoni in his section. I also like how @jijames and I have images on the first page of our respective chapters. I feel like we should have some sort of standardized first page for each chapter, especially given that this book is not written by one person. Each chapter is its own entity from the other parts of the book, if that makes sense.
Loosely thinking something like this
Chapter Name Goes Here

[text](image_filename.jpg)

By: FirstName LastName

**something should go here for Twitter or whatever preferred social media presence**

Anything more? Anything less? Anything different? Let me know your thoughts!

Seems good with me, I do think we should include the chapter number alongside the title.
Chapter XX

Seems good with me, I do think we should include the chapter number alongside the title.
Chapter XX

I thought so too but when I viewed it in a PDF and in the table of contents, it would be duplicative a bit. I'll post snips of examples here in a bit.

Alright, let's see what we think about these examples:

# Chapter # - Chapter Title

## Subheadings goes here
## Subheadings goes here
## Subheadings goes here
## Subheadings goes here
## Subheadings goes here
## Subheadings goes here

Content goes here. Remember, only what is put here is parsed by Leanpub to generate the PDF/MOBI/EPUB files.

# Chapter number goes here

## Chapter Title

### Subheadings goes here
### Subheadings goes here
### Subheadings goes here
### Subheadings goes here
### Subheadings goes here
### Subheadings goes here
### Subheadings goes here

Content goes here. Remember, only what is put here is parsed by Leanpub to generate the PDF/MOBI/EPUB files.

ignore the bad grammar in the above examples, I whipped them up very hastily, but it gets the point across. Thoughts on which one (or option C) that we should use?

Chapter # - Chapter Title... PLEASE

Yes, agreed with Josh
Chapter # - Chapter Title looks the cleanest

I agree with all the above, as well. Unless a few others disagree, then we'll roll with this. I'll make the changes now to set the stage for others.

https://github.com/Digital-Forensics-Discord-Server/CrowdsourcedDFIRBook/commit/c651da09ab69d0c013c929449e926bee86641996 and https://github.com/Digital-Forensics-Discord-Server/CrowdsourcedDFIRBook/commit/0d5342e071cbff97fbe1ebc27f777c9c96122b20 are live now

New preview files added: https://github.com/Digital-Forensics-Discord-Server/CrowdsourcedDFIRBook/commit/d300c1a9803a7d39aa2ad733d3fa735c27fa4c38
Will close this Issue for now. Thanks all 👍


Make SQL Server tests configurable

Two scenarios:

our CI agents that use LocalDB and overwhelm its capability => test failures. LocalDB locks due to slow file I/O on azure VMs and the number of create/delete db operations in universe testing.
x-plat. LocalDB does not exist on Windows.

Possible solution: use what EF does:
See SqlConnectionStringBuilderExtensions.cs and SqlServerConfiguredConditionAttribute.cs
cc @divega @dougbu

@HaoK after talking to @natemcmaster, we should try the solution that increases the timeout first. If that is not enough, then we can move from LocalDB to SQLExpress (we are not 100% confident that doing so helped us much on EF).

Increased timeout to 30s to match EF tests for now: 7ae091d2a4f3624229fd6c8eddde0865abddf77b


Flaky SharedArbitrationTest.reclaimFromCompletedJoinBuilder

Bug description
https://app.circleci.com/pipelines/github/facebookincubator/velox/30999/workflows/7cfbfe5f-f223-4adb-a84b-a1202e67ba1b/jobs/195729
The following tests FAILED:
	170 - SharedArbitrationTest.reclaimFromCompletedJoinBuilder (Child aborted)

System information
n/a
Relevant logs
No response

https://github.com/facebookincubator/velox/pull/6038 has fixed this issue.


summaryRecord data not found mindspore 0.3alpha

Environment
Hardware Environment(Ascend/GPU/CPU):

Uncomment only one  /device <> line, hit enter to put that in a new line, and remove leading whitespaces from that line:

/device cpu

Software Environment:

MindSpore version (source or binary): 0.3 A source
Python version (e.g., Python 3.7.5): Python 3.7.7
OS platform and distribution (e.g., Linux Ubuntu 16.04): Linux 18.07
GCC/Compiler version (if compiled from source): 7.5
**MindInsight version (source or binary) **: 0.2 A

Describe the current behaviour
Trying to reproduce the tutorial for mind insight. Using summary record with scalarsummary etc
But having some error on summary_record, not data not found error.
Describe the expected behaviour
Steps to reproduce the issue

https://www.mindspore.cn/tutorial/zh-CN/master/advanced_use/visualization_tutorials.html

Related log / screenshot

Special notes for this issue
The following is my Jupyter Notebook used for trying MindInsight. https://github.com/MicaTeo/mindSpore/blob/master/MindInsight.ipynb

Hi, I'm WEN Kai from the MindSpore team. Thanks for trying summary operators. Because ScalarSummary and other summary operators are not supported on CPU, there is no summary data recorded. You can try it on GPU or Ascend 910 :)
To get up-to-date operator list information, please visit https://www.mindspore.cn/docs/en/master/operator_list.html


Import/Export Markers

A way to Import/Export Markers, preferably by way of .gpl type files.

Would it only store the hex code?

It would, so the user will either get prompted to make a name for every color uploaded or we do it via .txt where the name and/or id will be stored after the color values


如果可以的话，请添加菜单外部链接跳转功能，感谢！

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

已添加


Node.js Mentorship team Meeting 2020-01-10

Time
UTC Fri 10-Jan-2020 16:00 (04:00 PM):

Timezone
Date/Time

US / Pacific
Fri 10-Jan-2020 09:00 (09:00 AM)

US / Mountain
Fri 10-Jan-2020 10:00 (10:00 AM)

US / Central
Fri 10-Jan-2020 11:00 (11:00 AM)

US / Eastern
Fri 10-Jan-2020 12:00 (12:00 PM)

London
Fri 10-Jan-2020 17:00 (05:00 PM)

Amsterdam
Fri 10-Jan-2020 18:00 (06:00 PM)

Moscow
Fri 10-Jan-2020 19:00 (07:00 PM)

Chennai
Fri 10-Jan-2020 21:30 (09:30 PM)

Hangzhou
Sat 11-Jan-2020 00:00 (12:00 AM)

Tokyo
Sat 11-Jan-2020 01:00 (01:00 AM)

Sydney
Sat 11-Jan-2020 02:00 (02:00 AM)

Or in your local time:

https://www.timeanddate.com/worldclock/fixedtime.html?msg=Node.js+Foundation+Community Committee+Meeting+2020-01-10&iso=20200110T16
or https://www.wolframalpha.com/input/?i=04PM+UTC,+Jan+10,+2019+in+local+time

Agenda
Extracted from mentorship-agenda labelled issues and pull requests from the nodejs org prior to the meeting.
nodejs/mentorship

Add Meeting Notes from 2019 October 04 and 18 #175
Minimum Requirements For Mentees to be in the program #172
Topics for Node AMAs #171
Mentorship Program Administration Tool #170
Cohort1 #159
Commit cohort 1 diaries into repo instead of issues #156
Application and selection process feedback #154
Candidate review tooling #148
Cohorts schedule #127
CommunityBridge for Mentorship #117
Want to attend a meeting, but the time doesn't work for me :( #103
Notify attendee about successful registration #97
Mentorship Program Administrative Tasks #95
Move future Bios, Diaries, etc to files instead of issues? #94
Create processes/guidelines for handling undesirable events during the program #86
Mentorship selection process criteria #152
Using Barbra as a knowledge repository #140
Create mailing lists for mentees and mentors #106
"Bookmarks" for mentors #65
task list of an education assistant and administrative assitant #78
Mentorship Directory #26
Create a forum for the program #20

Invited

Mentorship Members: @nodejs/mentorship

Observers/Guests
Feel free to follow along on the YouTube live stream, or attend meeting as a guest
by calling in to Zoom, using the links below. If you will be attending as a guest,
please comment on this issue to let us know you'll be joining.
Notes
The agenda comes from issues labelled with mentorship-agenda across all of the repositories in the nodejs org. Please label any additional issues that should be on the agenda before the meeting starts.
Joining the meeting

Link for participants: < will be updated >
For those who just want to watch: https://www.youtube.com/nodejs-foundation

Invitees
Please use the following emoji reactions in this post to indicate your
availability.
👍 - Attending
👎 - Not attending
😕 - Not sure yet

Hello All,
We have 40 open issues, from the exception of this one and those we use to track mentors bios and pair ups i would like to suggest us to take a look in those 20 issues that require our attention to resolve as soon as possible.
thanks

sounds good to me!
On Mon, Jan 6, 2020 at 7:08 PM Saulo Nunes<EMAIL_ADDRESS>wrote:

Hello All,
We have 40 open issues, from the exception of this one and those we use to
track mentors bios and pair ups i would like to suggest us to take a look
in those 20 issues that require our attention to resolve as soon as
possible.
thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nodejs/mentorship/issues/177?email_source=notifications&email_token=AKYQ3QOOGZD4WKIPJD2OM3DQ4PWZ3A5CNFSM4KDP7MTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIHRFPA#issuecomment-571413180,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKYQ3QMGK23EEC6EO6BVOXDQ4PWZ3ANCNFSM4KDP7MTA
.

--
Eva Howe
Operations Manager
This Dot Labs
<EMAIL_ADDRESS>


⚠ WSINGRESOS - GENERICO has degraded performance

In 5b4871a, WSINGRESOS - GENERICO (https://srvshyweb.yucatan.gob.mx/cgi-bin/wspd_cgi.sh/WService=wsingresos/internet/servicios/wsGenericoPagosWeb.r) experienced degraded performance:

HTTP code: 200
Response time: 6219 ms

Resolved: WSINGRESOS - GENERICO performance has improved in dcc2a77 after 33 minutes.


!! Call for Oracle !! Make Oracle database images available at docker hub for Travis like tests.

Dear Oracle.
Open source community makes lot of effort on implementing oracle database support in lot of database related projects. Just naming some of them:
https://github.com/typeorm/typeorm
http://docs.sequelizejs.com/en/v3/
All thease projects suffer from luck of testing for oracle support. And all this is because driver is only aiviable whith signing to OTN.
Some workarounds exists, but nobody is sure enough they are legal to use.
Please be so kind and allow developers to use published oracle image for software testing purposes.

We have already published the Oracle Instant Client and Oracle Database Enterprise Edition to the Docker Store:
https://store.docker.com/images/oracle-instant-client
https://store.docker.com/images/oracle-database-enterprise-edition
These can be used at no charge after accepting the license via the Docker Store.


question about human eva results

Thanks for your excellent research, and i want to follow your work. However, i cannot reproduce the results that evaluated in Human eva dataset. I guess there is something wrong with my 2D dectections. So could you please release a link for human eva data used in your experiments?

No. We do not have plans to provide code to reproduce those results.

Actually, if you just want the detections, you may contact @rayat137. That part was mostly his and he might still have the detections somewhere.

OK. Thanks anyway!


[Enhancement] "Frame" widget

Most of the GUI frameworks have a "Labelled frame" widget.  These are container type widgets that group widgets like other containers.  It draws a border around the contents and places a label in the upper left corner usually.
Here is what one looks like in tkinter:

I didn't see anything in the PDF that seemed like the right thing.
Or do I construct one by setting a border on a VBox or HBox?

@MikeTheWatchGuy I will provide you a solution soon

@MikeTheWatchGuy here is a possible Frame class implementation:
class CLASSframe( gui.Widget ):
    def __init__(self, title, *args, **kwargs):
        super( CLASSframe, self ).__init__(*args, **kwargs)
        self.style.update({"overflow":"visible","border-width":"1px","border-style":"solid","border-color":"#7d7d7d"})
        self.frame_label = Label('frame label')
        self.frame_label.style.update({"position":"relative","overflow":"auto","background-color":"#ffffff","border-width":"1px","border-style":"solid","top":"-7px","width":"95px","height":"24px","left":"10px"})
        self.append(self.frame_label,'frame_label')
        self.set_title(title)

    def set_title(self, title):
        self.frame_label.set_text(title)

@dddomodossola why not the HTML fieldset?

Thank you @MaxMorais , this is a really good idea. I will implement this using fieldset!

@dddomodossola I thought I would leave my 2 cents here.
I personally implemented this in my wheelers-wort-works-online:
class remi_form(gui.Widget):
	@gui.decorate_constructor_parameter_types([])
	def __init__(self, *args, **kwargs):
		super(remi_form, self).__init__(*args, **kwargs)
		self.type = 'form'

class remi_fieldset(gui.Widget):
	@gui.decorate_constructor_parameter_types([])
	def __init__(self, *args, **kwargs):
		super(remi_fieldset, self).__init__(*args, **kwargs)
		self.type = 'fieldset'

class remi_legend(gui.Widget, gui._MixinTextualWidget):
	@gui.decorate_constructor_parameter_types([str])
	def __init__(self, text='', *args, **kwargs):
		super(remi_legend, self).__init__(*args, **kwargs)
		self.type = 'legend'
		self.set_text(text)

class remi_labelframe(gui.Widget):
	def __init__(self, legend_text='', *args, **kwargs):
		super(remi_labelframe, self).__init__(*args, **kwargs)

		self.form = remi_form(width='100%', height='96%')
		self.append(self.form, 'form')
		self.form.style['position'] = 'relative'

		self.fieldset = remi_fieldset(width='100%', height='100%')
		self.form.append(self.fieldset, 'fieldset')
		self.fieldset.style['position'] = 'relative'

		self.legend = remi_legend(text=legend_text)
		self.fieldset.append(self.legend, 'legend')

Thank you a lot @jimbob88 !

I [still] haven't implemented this yet, but think it would be good to do because I made a Sudoku game board that works on the other 3 ports very nicely

It's one of those "show off" kinds of programs because it's only 1 line of code.  To be honest, I personally write them as they feel like little logic puzzles rather than an attempt to show off.  They always feel to me like "how can I combine these atoms to make interesting molecules".  That's how PySimpleGUI programs feel to me, especially the 1-line ones.
import PySimpleGUI as sg, random

sg.Window('Sudoku',[[sg.Frame('',[[sg.I(random.randint(1,9), justification='r', size=(3,1),key=(frow*3+row,fcol*3+col)) for col in range(3)] for row in range(3)]) for fcol in range(3)] for frow in range(3)]+ [[sg.B('Exit')]]).read()

With the Remi port however, I am temporarily using the Column element as the Frame  element.  Which means where will be no line drawn around the boxes.
It appears that I'm also not doing the right justification of the inputs either.

Right now they way I'm making Column elements it to create a new VBox and recursively call my "packer" code which will put the column's layout inside the VBox just like it were a window.
To show just how primitive and actually easy Remi makes it to do this stuff, here's the code to make a Frame (copied from Column) and add it to a window (or another container like a Column, Frame, etc):
            elif element_type == ELEM_TYPE_FRAME:
                element = element   # type: Frame
                element.Widget = column_widget = remi.gui.VBox()
                if element.BackgroundColor not in (None, COLOR_SYSTEM_DEFAULT):
                    column_widget.style['background-color'] = element.BackgroundColor
                PackFormIntoFrame(element, column_widget, toplevel_form)
                tk_row_frame.append(element.Widget)

The function this code is contained within is PackFormIntoFrame which is where the recursive bit happens.
ANYWAY....
What approach do you suggest I use from the ones listed here?
Do replace VBox with something else?
I'm sorry that while I use Remi throughout my code, I'm not a Remi expert.  The reality of the situation is that I have / am writing a single Remi program.  (I still feel guilty being able to leverage the power of Remi like this).

OMG Davide!!! I got it to work by modifying your little class.....
class CLASSframe( remi.gui.VBox ):
    def __init__(self, title, *args, **kwargs):
        super( CLASSframe, self ).__init__(*args, **kwargs)
        self.style.update({"overflow":"visible","border-width":"1px","border-style":"solid","border-color":"#7d7d7d"})
        self.frame_label = remi.gui.Label('frame label')
        self.frame_label.style.update({"position":"relative","overflow":"auto","background-color":"#ffffff","border-width":"1px","border-style":"solid","top":"-7px","width":"0px","height":"0px","left":"10px"})
        self.append(self.frame_label,'frame_label')
        self.set_title(title)

    def set_title(self, title):
        self.frame_label.set_text(title)

Using the theme "Default" it's easier to see the lines:

That has got me thinking that Frame needs to be changed to include being able to set the COLOR for the lines!
I also need to change the code that the text is displayed.  The code supplied was placing a large white box at top of the frames for the Sudoku board.  The goal for that program was to make a frame with no label, which I managed to do by hacking your supplied class by setting the label size to 0px by 0px.
I have to look at how the other ports look to determine how best to deal with the frame with Remi.  It's a relief to know there's a way to do this!!!  WOW, what  a huge leap forward for the Remi port today.  Thank you, as usual, for helping!

Hello @PySimpleGUI ,
I'm really happy you got it working! And compliments about that cool one line example, that's incredible!


Solar and consumption data wrong

I noted following problem:
last night I turned off the esp32 running OpenDTU for 2 hours.
This morning I got a huge solar and consumption peak at the time when the inverter starts: ( they started 07:50)

The solar and consumption peak is 22kW/h, what is exactly the total yield total:

I don't think, that this issue is from your code. I could imagine following:
After restart the OpenDTU at night, there would be a total Yield total of "0", because OpenDTU don't store this value.
In the morning it will get the "total yield total" of e.g. 22kW/h and set it for one cycle as a peak production.
Would you suggest to implement a workaround in your code (e.g. limiting this value) or to open this issue in the openDTU?
I think this problem would be really annoying, when you have a high "total yield total" in your hoymilles, and this would ruin your stats.

Hi, I had this as well, when I added a second Script for testing with the multi inverter problem. Can you check if Deviceinstance has changed?

I had two, but the other was 7 days old. I changed the ID 7 days ago, because there was problems during coding the last change.
So I think that this isn't the problem because it is 7 days ago. I delete it now, and test it again.

I have now included to not write a zero for Energy, when no data is received, hope that fiexes it.

But now you cannot see the power in VRM, will have a final look tomorrow. Need to drop off now.

it seems to work, will test tonight with a reboot

it worked for me, no spikes.

It is fixed for me, let me know otherwise

Did you already updated code?

Yes on Saturday

Hi, I tested, but there is still the issue.
what was the change in the code what should solve this?

you are right, it seems I have not checked in the code change, will do first thing tomorrow

These are the fixes:
https://github.com/henne49/dbus-opendtu/blob/7e194c6b013e503d25e67f4afb9b4758260a74a5/dbus-opendtu.py#L195
https://github.com/henne49/dbus-opendtu/blob/7e194c6b013e503d25e67f4afb9b4758260a74a5/dbus-opendtu.py#L213

Fair point, the wait. I have an idea to multiply and only update when alle are online

Von: Fideus @.>
Gesendet: Monday, December 5, 2022 5:23:11 PM
An: henne49/dbus-opendtu @.>
Cc: henne49 @.>; State change @.>
Betreff: Re: [henne49/dbus-opendtu] Solar and consumption data wrong (Issue #7)
Hi henne, sorry for late reply.
I would test this this night. But I assume, that this would give a problem with multiple inverter, because I don' think they all start exactly at the same time.
I would let you know tommorow.
—
Reply to this email directly, view it on GitHubhttps://github.com/henne49/dbus-opendtu/issues/7#issuecomment-1337657831, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABDSINSJ6KGSXCZH4UU2TYDWLYJG7ANCNFSM6AAAAAASL6UKAY.
You are receiving this because you modified the open/close state.Message ID: @.***>

Hello Henne,
the last two times it worked. But I still think that this could be a problem, if they don't start at the same time.
I restarted the esp32, and if I look in the victron, the last total yield is still visible.
So I assume, it is also possible to read this data and compare with the new data? e.g. something like this:
      if total > self._dbusservice[pre + '/Energy/Forward'] :
        self._dbusservice[pre + '/Energy/Forward'] = total

The result would be, that we only update the total power, if we are higher.

I‘ll check this, but l‘m currently on work travel.
Will check as soon as I can.

I had a look at it.
when you reboot the opendtu it shows empty values.
Therefore it should only update when new values are larger than the old ones. but I cannot check the old values from Venus, as it is volatile and needs initialization. So if there is only slight delay with restart of other hoymiles, I do not think Victron is making a problem. I had mine for 20 minutes initialized with a low value and it did not do a spike.
I do not have any good and easy idea. The only good idea is to save somewhere the old value. but not sure if that is the best idea, ie in a file.

I tested it two days again, and it seems to work.
But I think, that when this problem occur e.g. in a few month, there would be the whole statistics ruined. Or is there a way to delete this spikes?
When we could not access the victron data, maybe we could store the old value in a global variable? Then we only could get this problem when the venus device and the esp32 restart over night.
Additional we could only update total yield when we have more than ~20W total power. This would give the inverter some time to Start in the Morning.
if total_power > 20 :
   if total_yield > total_yield_old :
    total_yield_old = total_yield
    self._dbusservice['/Ac/Energy/Forward'] = total_yield

there is no way to fix history data on victron I checked that. I have implemented your idea already yesterday, but was not happy as you need to cover multiple cases.
We also need to cover a restart of the venus python script, because for initialization at script startup, the value is empty. Not when opendtu restarts, then I can rely on venus. A global variable or in a file would also help. I'll have a look, if you find a good global variable in venus, let me know.

Hi,
I had no errors the last weeks, even when restarting. All additions and changes complicate the script and may introduce more bugs than it helps. What maybe helpful is to change the log interval large enough in vrm portal configuration

what do you think?


WIP: Move ginkgo testing to a separate module

An experimental MR to see if moving tests to a separate module would reduce the number of dependencies in client modules.

While this approach appears to work, it is not really according to Go conventions and might create issues down the road. Will skip for now.


use always the newest pip in new virtual environments?

Very often python comes with an old pip version which may produce different kinds of problems.  After using pip command in a fresh virtual environment, user usually sees a text like this:
WARNING: You are using pip version 20.2.1; however, version 21.3.1 is available.
You should consider upgrading via the 'c:\python\venvs\someproj\scripts\python.exe -m pip install --upgrade pip' command.

it might be actually handy to have the venvlink new venv creation process to automatically do this. This could be also an option in the venvlinkrc.

Yes, I just noticed this. Even when using -S.
Why is it using the old version?
Where in the code is this done?

Right now what is passed to venv creation is

name of the venv
workdir (project directory)
system site packages argument

Source code is at: https://github.com/fohrloop/venvlink/blob/099ec9845a51697fb15b40f483cd69d030efd518/venvlink/main.py#L45


 I recommend these guidelines when writing commit messages.

This should be ready to be merged


[FEATURE] Simple data iterator for deeplake.Dataset

🚨🚨 Feature Request

[ ] Related to an existing Issue
[x] A new implementation (Improvement, Extension)

Is your feature request related to a problem?
The current implementation requires TensorFlow or PyTorch to generate the iterator on the Windows.
Of course, I could use deplake.Dataset.dataloader to accomplish something like this question.
I would like to provide a simple method that can be done identically in all environments.
For example, I have assumed an implementation to preprocess all data in turn on the CPU using this feature.
To create data similar with the current deeplake would require some conversion process.
I assume that all series data is NumPy, and that all other data can be obtained with appropriate types such as str, int, list, etc.
Description of the possible solution
A deeplake.Dataset.tensorflow() includes generator function that yields dictionary of records.
I guess customizing its implementation.
An alternative solution to the problem can look like
ds = deeplake.empty("./example")
ds.create_tensor("image", htype="image.rgb")
ds.create_tensor("tags", htype="list")
ds.create_tensor("caption", htype="text")

for dict_of_tensor in ds.numpy():
    print(dict_of_tensor) # {"image": np.ndarray, "tags": list of str, "caption": str}

hey I have solved this issue can I put a pull request
    def dict_record(self):
        from deeplake.enterprise import dataloader
        return iter(map(lambda row: dict(row[0]), dataloader(self).numpy()))

this is the code I have added

Hi @pyther-hub, absolutely! Go for it.

Hi @pyther-hub, absolutely! Go for it.

sir I have put a pull request please review it

Is something still left to be done?

can I do work on this again? @tatevikh

Closing the feature request. Explanation please find below
This particular feature is not available to implement efficiently without using the dataloader object which is doing dataset streaming(prefetching)
and to achieve the desired functionality with the dataloader object there is an argument decode_method where simply needs to pass the tensor decode method as numpy
links to the feature
link 1:  https://docs.deeplake.ai/en/latest/deeplake.core.dataset.html#deeplake.core.dataset.Dataset.pytorch
link 2:  https://docs.deeplake.ai/en/latest/Dataloader.html#deeplake.enterprise.dataloader.DeepLakeDataLoader.numpy


Updated Hard Gate Feature Readme file

updated the HardGate.md doc with examples
updated access modifiers for a class IPAddress in com.znsio.teswiz.tools

@snehith07 why are the build failing?


Fix #933 [Bug][Pdr Submitter Mgr] Predictions are submitted before <= 60s

Fixes #933
Changes proposed in this PR:

Calculate all the predictions first
Submit the ones where epoch is still active
New test for the test_calc_stakes_across_feeds function

Updated logs with waiting:

Looks much better!

progress dots seem to be messing up the logs a bit

I've found them acceptable.

Without them it feels dead.
And with more verbose logging than dots, it's hard to filter to see the important logs.
So let's keep them as is


resources.md: add luacheck

This commit also improves the clarity of the list of linting options

Looks great, thanks!


Chart prevents vertical scroll on touch devices

I was unable to create a chart that would scroll horizontally on iOS, yet wouldn't prevent user from scrolling the page vertically. The chart captures touch events and doesn't let them through.
I expected that one of the following options would have worked for me, but neither did:
handleScroll: {
  pressedMouseMove: false
}

// Nope, disables all scroll on touch devices

OR

handleScale: {
  mouseWheel: false
}

// Nope, still captures vertical scroll on touch devices

We've added 2 new options for handle scroll of the chart: horzTouchDrag and vertTouchDrag.
For more information see #92 and https://github.com/tradingview/lightweight-charts/blob/76a3dc2ccb1b4932ade6ac3b5d3dd53b3781c479/docs/customization.md#scrolling-options for docs.
These fixes will be published to npm soon (I believe in couple of days).

The version 1.0.0 is just published.

@timocov thank you so much 🙏

@vladmoroz this is an old case but is the solution worked for you?

@onur-celik Sorry, this was a while ago and I don't remember. Not working on anything that uses this package currently.

oh ok @vladmoroz thanks anyway.

@Amiram1 what exact issue? This issue was marked as a bug and closed long time ago.

Hey @timocov what I am trying to do is actually same with this page.
If you open this url on a mobile device ( I've checked both iOs and Android devices ) https://tr.tradingview.com/symbols/BIST-GARAN/ you will see that user is available to scroll page down touching right over the chart. But I could not make the same thing. Even I set both handleScroll and handleScale to false, you can not scroll the page up or down if the chart cover all over the screen.

I have the same problem @timocov

But I could not make the same thing. Even I set both handleScroll and handleScale to false, you can not scroll the page up or down if the chart cover all over the screen.

@emrahtunc14 @onur-celik can you please prepare a reproduction for your issue?

Is there anyone that still has this issue other than myself? Using 3.6.1 currently with charts can't seem to allow scrolling.


Conditionally set Rating and RatingIcon tabIndex when element is disabled

As raised in #3252, RatingIcons can be individually focused when navigating with Tab, which doesn't make sense as users cannot select disabled elements anyway.
However, thinking a bit further, still makes sense to be able to focus the whole element so it can still be accessible (i.e.: users with vision impairment can still be aware of its existence).
So the solution was to set RatingIcon tabIndex = -1 (reference) and at the same time keeping tabIndex = 0 in the Rating component, when the whole element is in disabled state.
The demo:

Also added test cases.
PS.: I just noticed that some lines in the test file where unintentionally reformatted, I guess we have new lint/prettier rules?
(closes #3252)

Codecov Report

Merging #3308 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3308   +/-   ##
=======================================
  Coverage   99.92%   99.92%
=======================================
  Files         170      170
  Lines        2803     2803
=======================================
  Hits         2801     2801
  Misses          2        2

Impacted Files
Coverage Δ

src/modules/Rating/RatingIcon.js
100% <ø> (ø)
:arrow_up:

src/modules/Rating/Rating.js
100% <ø> (ø)
:arrow_up:

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 94711d3...63ba1f5. Read the comment docs.

Fantastic, thanks for the work, write up, and tests ❤


package/solaris: Adds alias method for upgrade_package.

This follows the same convention that the AIX package provider has done and adds an alias_method.
/cc @pburkholder @acaiafa

:+1:

This is fine :+1:
We need to fix load_current_resource since I suspect that you're seeing that :install with this provider behaves like :upgrade anyway...


v2.0.0

2.0.0 will eventually contain:

#14 reorganise interface
#17 switch to default export

Pull Request Test Coverage Report for Build 55

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 53:
0.0%

Covered Lines:
52

Relevant Lines:
52

💛  - Coveralls