Structured Buffer not being read correctly in compute shader replay

Description
I have an issue where a structured buffer isn't being read correctly in the compute shader replay. I have a repro, but I need to send a capture.
Steps to reproduce
Open the capture. Observe how the buffer is correctly populated (if looking at it in the buffer viewer) but the replay thinks all reads are 0. Therefore debugging the subsequent results is incorrect. I have now verified that this works in renderdoc 1.4.
Environment

RenderDoc version: 1.5
Operating System: Windows 10
API: D3D11

Yes this was a regression in 1.5 while fixing some other cases of buffer loads. It has since been fixed so if you run a recent nightly build it should work correctly. If it is still broken please let me know.

Ah I see. I'll stick to 1.4 for now then. Thanks for the quick reply.


Inference

Kindly share the code for inference step for ae.

Is this available now ?

We are aiming for a newer version of this code base and hope to implement one in that version.

Is this available now ? Could you please point me to it ? Thanks.

Is it available?


Buildasaur hangs on Build Template View when using with Xcode 8

My System Setup
10.11 macOS El Capitan
Xcode 8
Buildasaur v1.0.3
My Project setup
iOS
CocoaPods
Fastlane
Bundler
I have a few shared schemes as well
4 build configurations (this seems it could likely be the culprit):

Debug
Alpha
Beta
Release

Same here. I can select a scheme from the dropdown but the Build,Test dropdown never gets populated with simulators/devices and the spinner in the top left never stops.

Where could I find logs to help me better understand the problem?

+1 Also seeing this as well... In my case, I'm able to see the devices list populated after a period of time, however the "Build,Test" list is never populated.

+1 Do you know any workaround for this issue?

I found something but not sure if it works always. Try to:

create a new template
enter template name
select Scheme

After that just wait some time until device list was filled with devices and "Build,Test" field become non-empty.
I catch this bug when I rushed through the fields filling them with values without waiting :)

Another issue with this case: even if simulators list will be populated, the build template will have an empty name and Syncer could not be started. I'm having issues with syncing simulators list (it works from time to time), with the Next button (it could be disabled sometimes for unknown reason) and even if it's enabled, going to the next page shows empty Template instead of what I created on previous screen.

+1
On macOS Sierra (10.12) and Xcode 8, Buildasaur v1.0.3 is unusable.

:+1:

Hi, I've also experienced the same issue, but only with specific project. As a workaround a can suggest to create a template manually.
Builda stores all configuration files under the folder ~/Library/Application Support/Buildasaur. There are all json files, with quite straight forward structure.
Here is an example:
{
  "id" : "0D024176-916D-4704-A854-8C21F6C5C30F",
  "project_name" : "CNISDK",
  "name" : "ios-sdk-default",
  "triggers" : [
    "9F1813E1-92ED-4007-8AE9-F2EF33577891",
    "64FA6E0C-F06C-4F08-9582-B599E596953F"
  ],
  "should_analyze" : true,
  "platform_type" : "com.apple.platform.iphoneos",
  "scheme" : "TestAllKits",
  "device_filter" : 3,
  "cleaning_policy" : 0,
  "testing_devices" : [
    "b116b840c4d61aa7defe731d1f01e978"
  ],
  "should_archive" : false,
  "should_test" : true,
  "schedule" : {
    "weeklyScheduleDay" : 0,
    "periodicScheduleInterval" : 0,
    "hourOfIntegration" : 0,
    "minutesAfterHourToIntegrate" : 0,
    "scheduleType" : 2
  }
}

The only tricky part is to get the device ID. The way I did it - I copied the device ID from another template, because for another one it worked. However you can use Xcode API to get the list of devices, which is not an easy solution, but work though.

@Antondomashnev, yeah I came to the same workaround. But from my experience, device IDs in Buildasaur template files are not the same as iOS Device IDs you could see in Xcode devices list.
For that I found another workaround: in a signal when Buildasaur obtain JSON with devices list from server, I dump this json to file.

@krin-san hah, nice 👍

@Antondomashnev I also found that by simply GETing https://your-server.local:20343/api/devices you will receive a nice JSON payload of devices (including their "_id") from the server. 😄

Buidlasaur hangs on this step because of xcodebuild -showSettings hanging bug. Half a day and dozens of verbose Logs helped to locate the traitor 😄
Ref: https://forums.developer.apple.com/thread/50372


Click on certain table headers to sort table

I would like to add sorting to the following tables, on certain columns. This would help with organizing and renumbering rolling stock/frames by sorting by type.

[ ] Frames

[ ] Type
[ ] Name
[ ] Number

[ ] Industries

[ ] Industry Type

[ ] Players

[ ] Steam ID
[ ] Name
[ ] Money
[ ] XP

[ ] Props

[ ] ID
[ ] Name

By default, there should be no sorting (i.e. default sorting).
When the header is clicked once, it should sort ascending by that column.
When the header is clicked again, it should sort descending.

It's a great idea for a pull request.
Sorting frame numbers is little bit more complicated than it sounds, because the "frame number" field is a text field, so it will not always contain a number.


Recording a  and audio stream

Love this! I'm still new to video processing so I'm not sure if this is possible.
My goal is to apply filters, trim, and draw on top of a video.
I have a <video> element as source (that has an audio track).
By updating the currentTime and listening to "seeked" I've successfully managed to record video frames for a section a given video (for example timestamp 2000 to 3500). This works perfectly and is a lot faster than using the MediaRecorder.
Now I also want to add the correct section of the AudioTrack and that's where I'm kind of lost?
I've tried to use the method in this issue and in the canvas drawing demo but it doesn't seem to work. The WritableStream write function gets called but the chunks in the AudioEncoder output have a byteLenght of only 3 which seems incorrect.
If you could give me a pointer in the right direction that would be amazing.
Also, happy to support this project, so if you have a donation link, please let me know. 🙏

Thank you so much! I have a Ko-fi! https://ko-fi.com/vanilagy
I'll look into your issue later, I'm quite busy right now.

Perfectly fine, take your time 😊 Just sent a coffee shipment 📦

Thank you so much for your generosity!
Alright so, I understand your use case - sounds like you want to build some sort of video cropper / editor. I think a good solution for the audio is using AudioContext.prototype.decodeAudioData on the raw video bytes to extract the audio (that works!) I wrote up some code to test it locally:
let response = await fetch('test.mp4'); // Get your video from wherever
let videoArrayBuffer = await response.arrayBuffer();
let audioBuffer = await audioContext.decodeAudioData(videoArrayBuffer);

// This was so I could hear the sound working
let node = audioContext.createBufferSource();
node.buffer = audioBuffer;
node.start();
node.connect(audioContext.destination);

// Define your "trimming extents"
let startTime = 3;
let endTime = 5.5;
let duration = endTime - startTime;

// You should ensure that duration * audioBuffer.sampleRate is an integer, like:
// duration = Math.round(duration * sampleRate) / sampleRate

// Now we want to create an array packed with all of the data
let data = new Float32Array(duration * audioBuffer.sampleRate * audioBuffer.numberOfChannels);

for (let i = 0; i < audioBuffer.numberOfChannels; i++) {
    data.set(
        audioBuffer.getChannelData(0).subarray(startTime * audioBuffer.sampleRate, endTime * audioBuffer.sampleRate),
        i * duration * audioBuffer.sampleRate
    );
}

let audioData = new AudioData({
    format: 'f32-planar',
    sampleRate: audioBuffer.sampleRate,
    numberOfChannels: audioBuffer.numberOfChannels,
    numberOfFrames: data.length,
    timestamp: 0,
    data
});

// Pass audioData into audioEncoder.encode

See if this gets you somewhere!

Thanks! The audio is playing, so the first part is working. My test mp4 has 6 channels, and a sampleRate of 48000.
I copy pasted your code, and for testing set the start and end to 0 and the total video duration.
TypeError: Failed to construct 'AudioData': data is too small: needs 870580224 bytes, received 145096704.
    at http://localhost:3000/pintura-video/pinturavideo.js:9567:27
    at async process (http://localhost:3000/pintura/module/pintura.js:7278:21)
    at async http://localhost:3000/pintura/module/pintura.js:7489:33

As 870580224 is 6 times 145096704 I suspect somehow the data.set is not adding enough data?

Aah no, I think I set numberOfFrames wrong. I think it's frames per channel. So it should be duration * sampleRate.

Alright, yeah that works! Alright, back to it, will let you know if it works :)

I'm very much out of my comfort zone with this 😅

const audioData = new AudioData({
    format: 'f32-planar',
    sampleRate: sampleRate,
    numberOfChannels: numberOfChannels,
    numberOfFrames: totalDuration * sampleRate,
    timestamp: 0,
    data,
});

audioEncoder = new AudioEncoder({
    output: (chunk, meta) => muxer.addAudioChunk(chunk, meta),
    error: (err) => {
        throw err;
    },
});

audioEncoder.configure({
    codec: 'opus',
    numberOfChannels: 2,
    sampleRate: sampleRate
});

audioEncoder.encode(audioData);

It throws
Input audio buffer is incompatible with codec parameters

I had to set number of channels to 2 on the encoder, it didn't accept 6.

This is the muxer:
const muxer = new Muxer({
    target: new ArrayBufferTarget(),
    video: {
        codec: 'V_VP9',
        width,
        height,
        frameRate,
    },
    audio: {
                    codec: 'A_OPUS',
                    sampleRate: sampleRate,
                    numberOfChannels: 2
    },
    firstTimestampBehavior: 'offset',
});

Well, your audio data has 6 channels tho! So you'll probably have to reduce it to stereo, picking two channels that you wanna keep. Is keeping the first 2 channels sufficient? (Should be front left and front right)

@Vanilagy Ooh I was expecting it to know how to limit that? Like merge all the channels.
Trying with 2 channels now :)
Truly appreciate your help.

It works 🎉 This is awesome, thank you so much.

Awesome!! Thanks for the coffee shipment :)


Revert "monorepo: add imported gRPC spec"

Reverts kubernetes-sigs/container-object-storage-interface-api#75

Thanks for reverting this. The original PR was supposed to be against monorepo which was my mistake
/approve
/lgtm


AttributeError: 'KMeansConstrained' object has no attribute '_check_fit_data' getting while fitting the data

AttributeError                            Traceback (most recent call last)
 in
6     if a>0:
7         km_constrained = KMeansConstrained(n_clusters=a,size_max=4,size_min=3,init='k-means++',n_init=100,random_state=None)
----> 8         km_constrained.fit(X)
9         #k_cons.append(km_constrained)
~\AppData\Local\Continuum\anaconda3.1\lib\site-packages\k_means_constrained-0.2.0-py3.7-win-amd64.egg\k_means_constrained\k_means_constrained_.py in fit(self, X, y)
621         """
622         random_state = check_random_state(self.random_state)
--> 623         X = self.check_fit_data(X)
624
625         self.cluster_centers, self.labels_, self.inertia_, self.n_iter_ = \
AttributeError: 'KMeansConstrained' object has no attribute '_check_fit_data'

Thank you for the error report. Unfortunately the first opportunity I have to look into this will be in two weeks time.
In the meantime can you please provide me the version of python, Skl warm and ortools you are using. And provide a minimal working example with dummy data.
Thanks

On 14 Feb 2020, at 07:19, Adinarayana Palvadi<EMAIL_ADDRESS>wrote:

AttributeError Traceback (most recent call last)
in
6 if a>0:
7 km_constrained = KMeansConstrained(n_clusters=a,size_max=4,size_min=3,init='k-means++',n_init=100,random_state=None)
----> 8 km_constrained.fit(X)
9 #k_cons.append(km_constrained)
~\AppData\Local\Continuum\anaconda3.1\lib\site-packages\k_means_constrained-0.2.0-py3.7-win-amd64.egg\k_means_constrained\k_means_constrained_.py in fit(self, X, y)
621 """
622 random_state = check_random_state(self.random_state)
--> 623 X = self.check_fit_data(X)
624
625 self.cluster_centers, self.labels_, self.inertia_, self.n_iter_ = \
AttributeError: 'KMeansConstrained' object has no attribute '_check_fit_data'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

scikit-learn version is 0.21.2 and
or tools version is  7.5.7466
The dummy code is as follows
X = df_size_7[['Latitude','Longitude']].head(5).values array([[14.6625047, 77.5828207],        [14.6975793, 77.5834339],        [14.6865696, 77.5916512],        [14.6772115, 77.5933416],        [14.6780301, 77.5935025]])
KMeansConstrained(n_clusters=5,size_min=2,size_max=1).fit(X)
AttributeError                            Traceback (most recent call last)
 in
----> 1 KMeansConstrained(n_clusters=5,size_min=2,size_max=1).fit(X)
~\AppData\Local\Continuum\anaconda3.1\lib\site-packages\k_means_constrained-0.2.0-py3.7-win-amd64.egg\k_means_constrained\k_means_constrained_.py in fit(self, X, y)
621         """
622         random_state = check_random_state(self.random_state)
--> 623         X = self.check_fit_data(X)
624
625         self.cluster_centers, self.labels_, self.inertia_, self.n_iter_ = \
AttributeError: 'KMeansConstrained' object has no attribute '_check_fit_data'

@adinarayanaPalvadi The problem should now be fixed with the latest version (v0.3.1). The easiest way to install is using PyPI:
pip install k-means-constrained

Let me know if you have any problems

Closing as no reply. Please comment again if you require further help.


NullPointerException at ProGuardMojo

I'm configuring a existing [maven] project to use ProGuard and I'm no being able to find the cause of this error:
Failed to execute goal com.github.wvengen:proguard-maven-plugin:2.0.11:proguard (proguard) on project xxxx: Execution proguard of goal com.github.wvengen:proguard-maven-plugin:2.0.11:proguard failed. NullPointerException
...
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution proguard of goal com.github.wvengen:proguard-maven-plugin:2.0.11:proguard failed.
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
Caused by: java.lang.NullPointerException
	at com.github.wvengen.maven.proguard.ProGuardMojo.execute(ProGuardMojo.java:506)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)

I'm using:
proguard-maven-plugin:2.0.11
spring-boot-maven-plugin:1.2.8.RELEASE
I also tried to avoid this part of the code by adding:
includeDependency:false and includeDependencyInjar:false but the error still occurs
Does anyone has the same or related problem, or have any clue how to overcome this error?
Thanks in advance

@MdSE Were you able to fix this?

@cmorty Yes, i was. The solutions was related with bad configuration/understanding of maven plugin. You can find the correction here: http://stackoverflow.com/questions/35065609/nullpointerexception-proguard-spring-boot

@MdSE OK, I'll close it. A patch to catch that null-pointer and say something like "Empty library - ignoring" - or whatever you think best - is still welcome.


PublishTestResults V2 task: What is the best way to report on retried tests

Required Information
Question, Bug, or Feature?
Type: Question
Enter Task Name:
PublishTestResultsV2
Environment
Server
Issue Description
I'm publishing a "hand-rolled" NUnit v2 results file, that my custom testing tool generates.
When a tests fails, after retry, the results file contains multiple <failure> elements under the <test-case> element, one for each failed attempt, but when I publish that NUnit result file I only see the first failure in the Azure Dev Ops UI in the Debug tab. What is the best way to see all of the failures?
I see that the task is mostly a shell that calls an EXE, if there is a better place to post this question please let me know.

@iansul This is the desired behaviour. We only get the first failure inside the testcase for displaying in the UI.
If you want more help, can you please share your xml file.

@iansul Is the issue resolved for you?

@iansul Is the issue resolved for you?


Hooks to extend autocompletion suggestions

We have been working on an extension for vscode, where we want to extend the autocompletion functionality of Python, with some information specific to our use case. We can't use "onHover" suggestion hook provided by vscode extension API, because we need the parsed AST.
It would be amazing if we can have some hooks to extend the autocomplete suggestions.

Exposing an API for extending pylance's completion suggestions (along with the internal parse tree representation used within pylance) would be fraught with problems — compatibility, robustness, etc., so it's not something we'd be likely to do unless the need was extremely compelling. Even then, we'd look for alternative solutions before exposing an extensibility mechanism.
Let's see if there are ways to address your needs that don't involve exposing an extension mechanism. Could you provide more details about your use case?

Hi @erictraut. We want to provide specific autocompletions for strings in certain functions, based on the function name. Eg
pd.readTable("<>") we would want to provide user with names of the specific tables they have in their catalog, for <>.
Similarly, we have a bunch more libraries we are integrating with, where such non standard autocompletions are required. We can provided limited functionality with the existing registerhoverProvider but we would rather not parse AST on our own.

Extensibility mechanisms are notoriously difficult to get correct. You need to protect against things like crashes in the extension, memory exhaustion, performance issues (e.g. if the extension takes a long time to respond), and forward/backward compatibility issues. VS Code implements a robust extensibility mechanism already. Implementing a parallel extensibility mechanism in pylance would require us to replicate all of that infrastructure and functionality.
Here are some alternative approaches you might want to consider:

If your extension is written in Python, you can use the Python interpreter to generate the AST. Then you can simply walk the AST to extract the information you want.
If your extension is written in TypeScript or Javascript, you could reuse the open-source parser from pyright, which is the type checker upon which pylance is built. This parser builds an AST that you could use in the same manner as suggestion 1.
If the "certain functions" in your use case are isolated to specific modules, you could auto-generate type stubs for those modules. When you import from these modules, pylance will use the type information in the stubs to inform its completion suggestions.

I like the second suggestion, as long as we can be sure that the pyright parser will respect all the same settings as pylance. Eg extraPaths, stubPath etc.
We are making a vscode extension, so it is entirely in Typescript.

as long as we can be sure that the pyright parser will respect all the same settings as pylance

The parser is just a parser. It produces an AST (abstract syntax tree) data structure. It doesn't provide any semantic analysis of the parse tree or resolve imports, so pylance settings like extraPaths and stubPath are not applicable here.

Pardon my limited knowledge here, but a static analyser needs to resolve imports at some point to figure out types of imported objects? So that would mean there should be a way to wire together the parser and "import resolver" to build a more comprehensive structure?

Closing as a duplicate of https://github.com/microsoft/pylance-release/discussions/2718


Making it possible to use extra args on init

This PR makes it possible to use XO's other arguments and they will then be added to package.json when initializing.
E.g. running: xo --init --space will add xo --space to scripts.test, instead of just xo.
What do you think?

Actually, I don't think this is a good solution.
From the CLI help:

Put options in package.json instead of using flags so other tools can read it.

You really shouldn't be using the CLI flags when in package.json as other tools can't read from it.
How about instead of adding CLI flags we add xo option to the package.json.
Eg. xo --init --space adds the following to package.json:
{
  "xo": {
    "space": true
  }
}

That sounds like a great solution! I'll rework this PR to that :)

@sindresorhus what do you think?

@sindresorhus have you had any time looking at this? I squashed the commits...

Sorry about the delay. I'm travelling. Looks excellent. See inline comments :)

Maybe also add a test with the following argv:
xo --init --space --esnext --no-semicolon --env=foo --env=bar --global=foo --global=bar --ignore=foo --ignore=bar

Just to make sure everything is covered.

No worries! Fixed now, looking good?
Should I squash or leave it like this?

Landed. Thanks for yet another excellent contribution :)
Will do a release today or tomorrow. Just need to get into some other stuff.

Thanks! :)

Alright, new version of XO is out. Ideas for further XO improvements more than welcome! :)


Handle 429 error on Invoke-PowerBIRestMethod

Some API's have throttling a great enhancement would be a switch parameter on the "Invoke-PowerBIRestMethod" to automatically handle the 429 errors:
Invoke-PowerBIRestMethod -handleThrottleException
On a 429 error the cmdlet will automatically sleep the Retry-Seconds and execute the API again in the end handling the token expiration.

Bumping this up. I just ran into this issue and also found two issues.

Invoke-PowerBIRestMethod seems to not be getting the "Retry-Seconds" returned to it.
Invoke-PowerBIRestMethod is not handling the 429 as an error, so a try/catch can't handle it.

Bumping this up.
This does cmdlet does not output any data if an error occurred, so 429 response code cannot be controlled without referring to $Error.
I assume there is no timeline involved, but it would be great if something is added to this cmdlet.


[Snyk] Security upgrade nginx from mainline-alpine to 1.25.3-alpine3.18

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

Dockerfile.ui

We recommend upgrading to nginx:1.25.3-alpine3.18, as this image has only 0 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

514
Out-of-bounds Read SNYK-ALPINE318-LIBX11-6042396
No Known Exploit

514
Loop with Unreachable Exit Condition ('Infinite Loop') SNYK-ALPINE318-LIBX11-6042397
No Known Exploit

614
Integer Overflow or Wraparound SNYK-ALPINE318-LIBX11-6042398
No Known Exploit

586
Improper Check for Unusual or Exceptional Conditions SNYK-ALPINE318-OPENSSL-6055795
No Known Exploit

586
Improper Check for Unusual or Exceptional Conditions SNYK-ALPINE318-OPENSSL-6055795
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

This is not needed. mainline-alpine has already been updated to 1.25.3.


This PR tries to solve several issues regarding the 'delete' feature in loqusdb

Add function so that SVs are also deleted together with case
Add functionality to delete/update variants in bulks, which should be
more time efficient. Currently for each variant to be deleted in a case, this single variant is first queried and then deleted/updated. This means a lot of operations on the database.

Hi @moonso! I took the liberty fixing some things in loqusdb. At the moment the time taken to delete variants from a case is quite slow, I think this PR will speed things up a little. Also I've added so that structural variants can also be deleted.

Updated the changelog as well. Maybe we should bump version when this is merged.

Nice work @adrosenbaum !


Initial Infrastructure setup doesn't work on a Windows machine

Running the infrastructure-setup.sh doesn't work on a Windows machine. The issue is with the cdk.json file and how the app is specified. Currently, it is set to:
./mvnw -e -q compile exec:java

This fails on Windows due to the forward slash.
If I run a brand new cdk init app --language=java on a Windows machine the cdk.json file is set to:
mvn -e -q compile exec:java

Propose updating the default to support Windows, Mac and Linux.

Going through the rest of the workshop, none of the commands starting with ./mvnw work on a Windows machine.

Currently the workshop is supposed to run within AWS Cloud9 only. But as I'm a Windows user as well, it's definitely an improvement to work on...

I found that if I only changed labs/unicorn-store/infrastructure/cdk/cdk.json line 2 - it would work just fine on my Windows machine.
"app": "mvn -e -q compile exec:java",


Scheduler and Workflow Executions Fixes

A wide variety of fixes and improvements to support the initial, successful executing workflow.
The PR should remain in draft status until #185 is complete.

Well, this is interesting.  The check is currently failing due to test failures for the dmod.dataservice package.  I am able to reproduce those failures on a Linux machine, but not on my main development machine, which is a Mac.   I'll have to look more into what is happening.

The previous issue with the checks has been resolved, so marking this as ready for review.


SOH character returned by get?

It looks like there is a zookeeper bug where it'll return SOH for get commands in some cases. see https://github.com/docker/libkv/commit/035e8143a336ceb29760c07278ef930f49767377
Should implement

fixed in https://github.com/strava/go.serversets/pull/17


[CI]: Add workflow for paper compilation

add .pdf files to .gitignore
write paper.yml workflow triggered on push and PR events to compile the paper and add it to the project website

claim

propose #990


How to use memflow.hpp to read/write physmem?

I tried to implement it using the following method but with no success,I think I definitely misunderstood their usage,could you give me some guidance?Thank you very much!
int physicalMemoryRW(const char *proc_name)
{
    int ret;
    if (!(ret = os.process_by_name(CSliceRef<uint8_t>(proc_name), &proc.hProcess)))
    {
        const ProcessInfo *info = proc.hProcess.info();
        PhysicalAddress phy_address;
        proc.hProcess.virt_to_phys(info->address, &phy_address);  // Convert from virtual address to physical address

        // A custom sized area to read the address I need
        uint8_t eprocess[0x100];
        memset(eprocess, 0xff, sizeof(eprocess));

        auto physMemory = conn->phys_view();  // Get physical memory view? Not sure

        bool read_result = physMemory.read_raw_into(phy_address.address, CSliceMut<uint8_t>((char *)eprocess, sizeof(eprocess)));
        if (!read_result)
        {
            printf("Read failed!\n");
            return;
        }
        bool write_result = physMemory.write_raw(phy_address.address, CSliceRef<uint8_t>((char *)eprocess, sizeof(eprocess)));
        if (!write_result)
        {
            printf("Write failed!\n");
            return;
        }
    }
    return ret;
}

And a common initialization.
int init()
{
    inventory = mf_inventory_scan();
    if (!inventory)
    {
        mf_log_error("unable to create inventory");
        return 1;
    }
    printf("inventory initialized: %p\n", inventory);

    const char *conn_name = "kvm";
    const char *conn_arg = "";

    const char *conn2_name = "qemu";
    const char *conn2_arg = "";

    const char *os_name = "win32";
    const char *os_arg = "";
    static ConnectorInstance<> *conn = 0;
    ConnectorInstance connector;
    conn = &connector;

    if (conn)
    {
        if (mf_inventory_create_connector(inventory, conn_name, conn_arg, &connector))
        {
            printf("unable to initialize connector\n");
            mf_inventory_free(inventory);
            return 1;
        }

        printf("connector initialized: %p\n", connector.container.instance.instance);
    }

    OsInstance<> os;
    if (mf_inventory_create_os(inventory, os_name, os_arg, conn, &os))
    {
        printf("unable to initialize OS\n");
        mf_inventory_free(inventory);
        return 1;
    }

    printf("os plugin initialized: %p\n", os.container.instance.instance);
    return 0;
}

I assume function read_raw_into and write_raw return 0 means sucesss.

I assume function read_raw_into and write_raw return 0 means sucesss.

Yes! you are right.even if I remove the correctness verification it still doesn't work, because the key to the problem is how to read the physical memory correctly.The current approach doesn't work.

iirc eprocess on windows lives in the ntoskrnl virtual memory, not physical memory - when you resolve the virtual address to the physical one via the process's dtb the result might be a valid address but pointing to the wrong location. you'd need the kernel's dtb and then do a virtual read to the eprocess/kprocess address.

iirc eprocess on windows lives in the ntoskrnl virtual memory, not physical memory - when you resolve the virtual address to the physical one via the process's dtb the result might be a valid address but pointing to the wrong location. you'd need the kernel's dtb and then do a virtual read to the eprocess/kprocess address.

I use memflow_qemu and memflow_win32 to connect to windows kvm, I try to read/write the physical memory of this system, in fact it has nothing to do with eprecess, it's just an example:)
In the examples here, I saw that reading physical memory using memflow.h.I'm wondering how this should be achieved using memflow.hpp, this is what I'm asking

iirc eprocess on windows lives in the ntoskrnl virtual memory, not physical memory - when you resolve the virtual address to the physical one via the process's dtb the result might be a valid address but pointing to the wrong location. you'd need the kernel's dtb and then do a virtual read to the eprocess/kprocess address.

Is it possible to obtain the memory operation object of the vm system by using auto physMemory = os->phys_view();?


Feature enhacement:

Describe the feature
Free E-Books Section
Added an underline effect to the title section of Free E-Books  for visual enhancement. The title is now wrapped with a <span> tag with the class has-underline, which applies the underline effect. The CSS styles for the underline effect are defined in the provided CSS file. This improvement enhances the aesthetics of the Free E-Books section,
Add ScreenShots
before:

After:

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@anuragverma108


Addition of axlWMATIC

Per Robo on discord: @JeremyParish69, Hello! Wanted to explain the decision to use the Hexagonal Logo instead of the weird M Matic logo.
While Axelar is currently using the M logo for their Satellite app, I would contest against using this as our standard image for $MATIC. From what I can gather from Trust Wallet and other sources is that $WMATIC that is native to Polygon should be using the hexagonal logo. $WMATIC that is native to Ethereum should use the strange "M".
In an effort for design consistency across the "prewrapped" assets. I've copied the design of the $WBTC and $WETH we are using within the color guidelines given by Polygon's Media guide.
Discord convo starts here. If you'd like to reach out I'll be keeping an eye on the PR :) Thank you!

Updated the svg to use an outline instead of a font.. sorry about that!


Update graphrbac.json

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of “no breaking changes
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

[ ] Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

Adding new API(s)
Adding a new API version
Adding a new service

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If there are following updates in the PR, ensure to request an approval from API Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in stable version
[ ] Removing properties in stable version
[ ] Removing API version(s) in stable version
[ ] Updating API in stable version with Breaking Change Validation errors
[ ] Updating API(s) in preview over 1 year

Please follow the link to find more details on PR review process.

/azp run automation - sdk

@HarveyLink are there any other properties that need this fix, or are we good to merge?

@HarveyLink are there any other properties that need this fix, or are we good to merge?

Thanks Joel, base by my experience, this is the only fix we need to make it work.


pg connector pass client options

pg connector sends all client options in startup message. options specified in secretless config take precendence over those sent by the client
Desired Outcome
Please describe the desired outcome for this PR.  Said another way, what was
the original request that resulted in these code changes?  Feel free to copy
this information from the connected issue.
Implemented Changes
Describe how the desired outcome above has been achieved with this PR. In
particular, consider:

What's changed? Why were these changes made?
How should the reviewer approach this PR, especially if manual tests are required?
Are there relevant screenshots you can add to the PR description?

Connected Issue/Story
Resolves #[relevant GitHub issue(s), e.g. 76]
CyberArk internal issue link: insert issue ID
Definition of Done
At least 1 todo must be completed in the sections below for the PR to be
merged.
Changelog

[ ] The CHANGELOG has been updated, or
[ ] This PR does not include user-facing changes and doesn't require a
CHANGELOG update

Test coverage

[ ] This PR includes new unit and integration tests to go with the code
changes, or
[ ] The changes in this PR do not require tests

Documentation

[ ] Docs (e.g. READMEs) were updated in this PR
[ ] A follow-up issue to update official docs has been filed here: insert issue ID
[ ] This PR does not require updating any documentation

Behavior

[ ] This PR changes product behavior and has been reviewed by a PO, or
[ ] These changes are part of a larger initiative that will be reviewed later, or
[ ] No behavior was changed with this PR

Security

[ ] Security architect has reviewed the changes in this PR,
[ ] These changes are part of a larger initiative with a separate security review, or
[ ] There are no security aspects to these changes

Internal issue: ONYX-14961.


Added the described features

Features Added:

5-Day Weather Forecast: Users can now retrieve a 5-day weather forecast for any specific city.
Weather Alerts: The system now displays weather alerts for the specified city using geographic coordinates (latitude and longitude).
Temperature Units Selection: Users can choose between metric (°C), imperial (°F), and Kelvin units for temperature display.
Improved Error Handling: Enhanced error handling provides clear guidance for invalid inputs and API responses, ensuring more robust user interaction.
Favorite Cities: Implemented functionality to save and retrieve favorite cities using a JSON file, allowing quick access to weather information.
Remove Favorite Cities: Added a feature that allows users to remove cities from their list of favorite cities.
Logging for API Calls and Errors: Introduced logging to track API calls and log errors for debugging and monitoring purposes.

have conflicts

Merge that all in weather_info.py so it works in main_assistant.py
On Wed, 9 Oct, 2024, 5:22 am Kritika Singh, @.***>
wrote:

have conflicts
—
Reply to this email directly, view it on GitHub
https://github.com/suryanshsk/Python-Voice-Assistant-Suryanshsk/pull/88#issuecomment-2401005532,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AVBBZFOUPT7WWEDWIJL322TZ2RV2ZAVCNFSM6AAAAABPTKCRHKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRGAYDKNJTGI
.
You are receiving this because you are subscribed to this thread.Message
ID: <suryanshsk/Python-Voice-Assistant-Suryanshsk/pull/88/c2401005532@
github.com>


How to Unit Test a Component that extends a base Class

I'm unable to get my Jasmine tests to work on my Component that extends a base class.  I have tried using a mock for the base class, but it seems to be ignored.
Here's the SupplierComponent (simplified) that I need to test.  See how it extends the BaseEditComponent
import { Component } from '@angular/core';
import { BaseEditComponent } from '../base-edit.component';

@Component({
  selector: 'app-supplier',
  templateUrl: './supplier.component.html',
  styleUrls: ['./supplier.component.scss'],
})
export class SupplierComponent extends BaseEditComponent {
  constructor() {
    super();
  }
}

BaseEditComponent is defined as just an abstract class (not a Component).   A similar inheritance setup is discussed in this blog entry.
Here's how I have configured my TestBed.  See how I have told it to useClass MockBaseEditComponent instead of BaseEditComponent in the providers.
import { } from 'jasmine';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SupplierComponent } from './supplier.component';
import { BaseEditComponent } from '../base-edit.component';

export class MockBaseEditComponent {
}

describe('component: SupplierComponent', () => {

  let component: SupplierComponent;
  let fixture: ComponentFixture<SupplierComponent>;
  let editService: ProgramEditService;

  beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [SupplierComponent],
      providers: [
        { provide: BaseEditComponent, useClass: MockBaseEditComponent },
      ],
    }).compileComponents();
  }));

  beforeEach(() => {
    fixture = TestBed.createComponent(SupplierComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  });

  it('should create', () => {
    expect(component).toBeDefined();
  });

});

When I run, I get an exception because Jasmine has loaded the real BaseEditComponent which has an unfulfilled dependency, instead of loading my empty MockBaseEditComponent.

Did you find any answers? I am struggling with same thing. If it is this hard to find resources for this problem, could it mean this approach is wrong approach?

I would also love to know if you have found a solution?

+1

I'm also looking for the solution.

Angular does not provide a way to replace the base class with a stub.  However, I have discovered that isn't really necessary.
An important realization that I had was: a class is really the combination of itself with its base class.
We can create a Jasmine Spy for each of the methods in the base class, and verify they have been called.
That relieves us from testing all of the base class implementation when we just want to focus on the sub class.
If there are injected dependencies to the sub class, or the super class, we do have the chance to replace these with Mocks using the TestBed.configureTestingModule.  If our sub class has its own constructor, the Mocks will be injected there and passed to the super class with the call to super() found in the subclass's constructor.  If our sub class doesn't have its own constructor, Angular will call the base class's constructor directly, with the injected Mock services we have set up.
Therefore, no special setup or config is needed to unit test this situation.  We just need to make sure to mock all the dependencies and they will be injected as expected, whether it's in the base or the sub.
For a large project with lots of classes that extend a base class, I have found that it is useful to create Mocks for each of my injected services.  For a service named supplier.service.ts beside that in the same folder I am now in the habit of making a supplier.service.mock.ts which has the same interface as the real service but has only Jasmine Spys for all of the method implementations.  Then, each time I need to test a component that extends a base, I just inject all the mocks that are needed by the base with the TestBed.configureTestingModule.  There is some boiler plate setup that appears in all of my tests, but at least the mock itself is just implemented in one place.
Finally, if you do decide to create *.mock.ts files for your services, they need to be registered somewhere to get your AOT build to work.  I created a separate module just for unit testing, where all of my mock services are registered.

Closing this issue, since this does not need attention from Angular team.
The bottom line is, Angular doesn't have a way to replace a base class with a mock.  But, we shouldn't need to.  Instead, we can use spies for methods on the base component, and/or we can use mocks for the dependencies of the sub class and the base class.

Closing this issue, since this does not need attention from Angular team.
The bottom line is, Angular doesn't have a way to replace a base class with a mock.  But, we shouldn't need to.  Instead, we can use spies for methods on the base component, and/or we can use mocks for the dependencies of the sub class and the base class.

:(

In this tutorial they create a mocked version of the class and extend it from AuthService and override the function isAuthenticated().
https://codecraft.tv/courses/angular/unit-testing/dependency-injection/
/* tslint:disable:no-unused-variable */
import { TestBed, ComponentFixture, inject } from '@angular/core/testing';
import { LoginComponent } from './login.component';
import { AuthService } from "./auth.service";

class MockAuthService extends AuthService {
    isAuthenticated() {
        return 'Mocked';
    }
}

describe('Component: Login', () => {

    let component: LoginComponent;
    let fixture: ComponentFixture<LoginComponent>;
    let testBedService: AuthService;
    let componentService: AuthService;

    beforeEach(() => {

        // refine the test module by declaring the test component
        TestBed.configureTestingModule({
            declarations: [LoginComponent],
            providers: [AuthService]
        });

        // Configure the component with another set of Providers
        TestBed.overrideComponent(
            LoginComponent,
            { set: { providers: [{ provide: AuthService, useClass: MockAuthService }] } }
        );

        // create component and test fixture
        fixture = TestBed.createComponent(LoginComponent);

        // get test component from the fixture
        component = fixture.componentInstance;

        // AuthService provided to the TestBed
        testBedService = TestBed.get(AuthService);

        // AuthService provided by Component, (should return MockAuthService)
        componentService = fixture.debugElement.injector.get(AuthService);
    });

    it('Service injected via inject(...) and TestBed.get(...) should be the same instance',
        inject([AuthService], (injectService: AuthService) => {
            expect(injectService).toBe(testBedService);
        })
    );

    it('Service injected via component should be and instance of MockAuthService', () => {
        expect(componentService instanceof MockAuthService).toBeTruthy();
    });
});


Blank page when starting AFN

I have strange behavior on one computer.
If I open the link inside terminal, except from the fact I can't render properly,  I can see AFN answering and serving the content :
root@oem-ThinkPad-P15-Gen-1:~# lynx -dump http://localhost:60125
   IFRAME: [1]/actions-for-nautilus-configurator.html

   IFRAME: [2]/actions-for-nautilus-configurator-help.html

Références

   1. http://localhost:60125/actions-for-nautilus-configurator.html
   2. http://localhost:60125/actions-for-nautilus-configurator-help.html
root@oem-ThinkPad-P15-Gen-1:~#

But the link doesn't render at all inside browser :

Bizarre! What's the browser?
On Mon, Feb 12, 2024 at 1:04 PM Creteil @.***> wrote:

I have strange behavior on one computer.
If I open the link inside terminal, except from the fact I can't render
properly, I can see AFN answering and serving the content :
@.***:~# lynx -dump http://localhost:60125
IFRAME: [1]/actions-for-nautilus-configurator.html
IFRAME: [2]/actions-for-nautilus-configurator-help.html
Références

http://localhost:60125/actions-for-nautilus-configurator.html
http://localhost:60125/actions-for-nautilus-configurator-help.html
@.***:~#

But the link doesn't render at all inside browser :
image.png (view on web)
https://github.com/bassmanitram/actions-for-nautilus/assets/27310214/64eaab50-737a-4665-a464-cdbfc2a30078
—
Reply to this email directly, view it on GitHub
https://github.com/bassmanitram/actions-for-nautilus/issues/59, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ADAKLWXELS3WX6EUMRHUA6DYTIAMLAVCNFSM6AAAAABDETJXBSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZDSOJZGUYDCNY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

oem@oem-ThinkPad-P15-Gen-1:~$ dpkg -l | grep firefox
ii  firefox                                          122.0.1+build1-0ubuntu<IP_ADDRESS>~mt1                        amd64        Safe and easy web browser from Mozilla
ii  firefox-locale-en                                122.0.1+build1-0ubuntu<IP_ADDRESS>~mt1                        amd64        English language pack for Firefox
ii  firefox-locale-fr                                122.0.1+build1-0ubuntu<IP_ADDRESS>~mt1                        amd64        French language pack for Firefox
oem@oem-ThinkPad-P15-Gen-1:~$

That version FF "works here" :)
Try the F12 key - that brings up the developer tools. Then click on
"console" and see if you have any error messages
On Tue, Feb 13, 2024 at 10:45 AM Creteil @.***> wrote:

@.:~$ dpkg -l | grep firefox
ii  firefox                                          122.0.1+build1-0ubuntu<IP_ADDRESS>~mt1                        amd64        Safe and easy web browser from Mozilla
ii  firefox-locale-en                                122.0.1+build1-0ubuntu<IP_ADDRESS>~mt1                        amd64        English language pack for Firefox
ii  firefox-locale-fr                                122.0.1+build1-0ubuntu<IP_ADDRESS>~mt1                        amd64        French language pack for Firefox
@.:~$
—
Reply to this email directly, view it on GitHub
https://github.com/bassmanitram/actions-for-nautilus/issues/59#issuecomment-1940951100,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADAKLWVWH4VOSNMU5KUQWY3YTMY2HAVCNFSM6AAAAABDETJXBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBQHE2TCMJQGA
.
You are receiving this because you commented.Message ID:
@.***>

There is 2 Warning :

They respectively send to explanation :

Quirks Mode
Partitioned: All third-party storage access requests - Privacy on the web

The good news is that on the other computer where everything work properly, these 2 warning doesn't exist :

There is 2 Warning :

They respectively send to explanation :

Quirks Mode
Partitioned: All third-party storage access requests - Privacy on the web

Found the culprit !!!
This is « ESET Endpoint Antivirus » that avoid all the browser's to connect as « http » to « localhost ».
You can close the ticket, I will have to find the way to put exclusion on this behavior...

Can you check if the suggestion made relating to cookie partitioning makes
it work?
On Tue, Feb 13, 2024 at 11:16 AM Creteil @.***> wrote:

The good news is that on the other computer where everything work
properly, these 2 warning doesn't exist :
image.png (view on web)
https://github.com/bassmanitram/actions-for-nautilus/assets/27310214/2ac00dac-e019-4d53-b832-adcf99ab54d4
—
Reply to this email directly, view it on GitHub
https://github.com/bassmanitram/actions-for-nautilus/issues/59#issuecomment-1941071488,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADAKLWSBKE5HXPNYLKJJNALYTM4O7AVCNFSM6AAAAABDETJXBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBRGA3TCNBYHA
.
You are receiving this because you commented.Message ID:
@.***>

Yes checked this suggestion but it nothing changed, this is due to the « ESET Endpoint Antivirus » on the host.
I have set an exclusion in the « ESET PROTECT Cloud console » and everything work smooth since that... 👍

Ah ok. Glad it's working now
On Tue, Feb 13, 2024, 19:58 Creteil @.***> wrote:

Yes checked this suggestion but it nothing changed, this is due to the «
ESET Endpoint Antivirus » on the host.
I have set an exclusion in the « ESET PROTECT Cloud console » and
everything work smooth since that... 👍
—
Reply to this email directly, view it on GitHub
https://github.com/bassmanitram/actions-for-nautilus/issues/59#issuecomment-1942194260,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADAKLWRS5DAU7A5AEJZFSJ3YTOZWDAVCNFSM6AAAAABDETJXBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBSGE4TIMRWGA
.
You are receiving this because you commented.Message ID:
@.***>


[BUG REPORT]Typescript breaks with conditional branching if an text gets converted into an array

Bug Report
What search terms did you use when trying to find an existing bug report?
List them here so people in the future can find this one more easily.
Array, Conditional branching, If statements
When did you start seeing this bug occur?
Version 4.6.0
⏯ Playground Link
https://www.typescriptlang.org/play?ts=4.6.0-dev.20220116#code/JYOwLgpgTgZghgYwgAkgZzARmQbwLABQyyAJgPYC2AKgJ4AOEAXMgEQCiANhBROCwNyFi5Cp268wzMT3CCipOGDjMcAXznEEAC2AcSUXswAU6LMgA+qCBgBMASgDaAXTmrChUJFiIUpm7iFSSloGZhYqCAAPMAFAkWkJZgjo13cCAHp05ABhMhIUAHcyKABrNGQAKwBXDGQYUEKtXiDqehRgcpAyMGQ4EF6oKDgaZAAjKp64ZAwoUABzNJgqkAQwYDJ+0yMyUYrmU2xLPzsA+WAYZG3dgDoREJQAXifWBL4T-HliHYrbyleeh5BBBVGRga4IAyKCD-IwsUwsOwaYjIBAbNBkLjXDhkOZXH4kRRwRGBYgwYqXLg9YDIQEABn4yGpAB5kN9wTo9AYQFjeHMwFoGcAANRC94k5FbNnaXT6XgOYBOYmfZBueSqZAQDhodoXPG-VoMGnPcJRGJi5XkYGg8GQyDJMAAOTyEFh8KVxFVqrSnmg8CQVgwmAA+uM5qdhME2swHOwuKCWC44n844lkP8kQSlCp1IFpZzDJcDiGqmGjtYwDZi3NHImCF6CD7vP6-FXwy17tGTdEExnk+JwElTakCIRMsgAJI9UaQsrIApNfrAMDlVEgABu0EgJEZ4DIvX6AEFBsM58ASPzSBB6iAINuAMqaiCrdYgRbLZ8bANgKt4qv7cvBqGFhfpWobmsQ5yXN8Vb6vcDi0k4RqArG-Zmm2Xy7DB8QpuANJAiCEg2hAUIwnC5YIkixDiqu6KYtiuLQaGtyEu6yJklAFIQFSeH0oyyAsoxJbsjKXI8iAfICoyIrgcixCSphTF5rKIDyoqlEqoE6qatqjK6oJcywW08GIU8yH2gi6H4daELEXappOvkrrkaxnqEEAA
The code:
interface test1 {
  domType: "Element";
  domElement: Element;
  data: {};
  children: (test1 | test2)[];
}

interface test2 {
  domType: "Text";
  domElement: Text;
}

// Code works just fine when domType is not an array but a string

function test(obj: test1 | test2) {
  if (obj.domType === "Element") {
    obj.domElement = document.createElement("test");
    console.log(obj.data);
    for (let i = 0; i < obj.children.length; i++) {
      test(obj.children[i]);
    }
  } else if (obj.domType === "Text") {
    document.createTextNode("test");
  }
}

interface test1_bug {
  domType: ["Element"];
  domElement: Element;
  data: {};
  children: (test1_bug | test2_bug)[];
}

interface test2_bug {
  domType: ["Text"];
  domElement: Text;
}

// It breaks when its converted into an Array width defined Selection

function test_bug(obj_bug: test1_bug | test2_bug) {
  if (obj_bug.domType[0] === "Element") {
    obj_bug.domElement = document.createElement("test");
    console.log(obj_bug.data);
    for (let i = 0; i < obj_bug.children.length; i++) {
      test(obj_bug.children[i]);
    }
  } else if (obj_bug.domType[0] === "Text") {
    document.createTextNode("test");
  }
}

🙁 Actual behavior
When I put the domType into a predefined array Typescript doesn't run the if statements in the function correctly. It only works if its a string
🙂 Expected behavior
There shouldnt be a difference if
type: "Element"
Or
type: ["Element"]
Both should work the same since its a predefined and Required Array
Edit, fix suggested by @ajitjha393

@Autumnlight02

There was typo in accessing the "data" from the interface
You have named it as "data_bug"
Playground link with Updated change

Typescript at the moment, only supports type guards which work only one level of depth
Hence when you are accessing obj_bug.domType[0]  // Depth => 2
Hence the inference fails, this is how the tsc compiler works
Not a bug!
In order to achieve this functionality, you can create your own type guard like this to solve your problem
const getType = (x: test1_bug | test2_bug): x is test1_bug => x.domType[0] === 'Element'

Link to Playground

Thank you and sorry for reporting it as a wrong bug, I'm new to ts and thought that this is a strange behavior, I was not aware that this is a current limitation by the engine. Now I got a better grasp of ts!

Hey It's totally fine, we all learn by experimenting!
All the best :)

@Autumnlight02 You know you can close the issue yourself, right?

@fatcerberus Did not know that, thank you for that info!
@ajitjha393 Sorry for bothering you again, but how would I convert that into a switch statement check? I could build more functions and run them with if-else but I am unsure if that's the best approach with it.

If you’re using switch statements you really want to have a discriminated union — which is what you had when domType was a string literal.  Using type predicates would be really inconvenient for that use case.

Ohh okay, i guess if Statements for the go then!

I totally agree with @fatcerberus
Discriminated Union is the better approach for this use case!
As far as type guard inference depth limitation
There is a library that allows you to overcome it up to any level of nesting
import { pa, p } from '@sthir/predicate'

if(pa(obj_bug, p('.domType.0 === ', "Element"))) {
    // obj_bug will be inferred as test1_bug and so on
}

Repo -> sthir


Breadcrumbs do not display the localized page title

When you define web pages with localized content (two languages), and view the page in either language, each bread crumb displays the title of the root page, not the localized page title.

Can you please provide a screenshot?

Here are some screen shots.  The page that is being viewed, the last crumb is grabbing the title correctly (as it grabs from the current page), but the parent pages of the bread crumbs is grabbing the title of the root page, not the localized pages up the sitemap tree.
English Bread crumbs

French Bread Crumbs:

French Parent Page

I'm seeing the same behaviour.

+1
I have observed this behaviour as well.

Please try the sitemap-language-fix branch to see if it fixes the issue.

@amervitz So the branch doesn't build for me - VS2015. Could be I'm doing something daft as I don't tend to live in Visual Studio much these days but the main branch builds fine.

I tested it out.  Built with VS 2017, and it works for me, Thanks.

Thanks Shawn :-/

Fixed by commit https://github.com/Adoxio/xRM-Portals-Community-Edition/commit/23f13966621ef626cf884332f9d146cf6dcb5eb5.


A note would be nice in the client address pool section

Client address pool - The address pool from which IP addresses will be automatically assigned to VPN clients. For more information, see About client address pools.

The most important thing in the about client address pools article referenced in the statement above is,

Address pools must be distinct. There can be no overlap between address pools.

If you choose an overlapping address range, users will connect to the VPN and not be able to reach anything. Would also be nice of the product group checked the routes packaged with the vpn client, and the address pool and let administrators know it the address pool was misconfigured.

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

ID: cb0224af-2059-f88c-bb14-926ef69bd835
Version Independent ID: c8859d92-dced-ecaa-a409-7af3cc064187
Content: Tutorial: Create a User VPN connection to Azure using Azure Virtual WAN
Content Source: articles/virtual-wan/virtual-wan-point-to-site-portal.md
Service: virtual-wan
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

Oh, the request is to add a "Note" or "Important" callout for that section saying something like,

Client address pools must be distinct. There can be no overlap with other address ranges in the vWAN

@jonwbstr
Thanks for your feedback! We will investigate and update as appropriate.

@jonwbstr, As a general rule, any network range in a Hybrid set-up (Azure + OnPrem) would be required to be distinct unless and until NATed. However, I shall assign this thread to the author @cherylmc to consider adding a note.
Regarding the address space check, I would suggest you raise this feedback in Azure Feedback Hub to get our Product Team's notice.

I opened two separate feedback items on two different documents.
This item is to add a "note" so readers do not need to visit the related article to see an important piece of information.
#101698, which was closed, is requesting clarification around the "address pool" language. Terms like subnet, or address range are more common when talking about the other networks connected through the vWAN. "address pool" speaks more to a DHCP assigned address pool specific to the VPN users.
Tutorial: Create a site-to-site connection using Azure Virtual WAN
https://learn.microsoft.com/en-us/azure/virtual-wan/virtual-wan-site-to-site-portal
Says,

Decide the IP address range that you want to use for your virtual hub private address space. This information is used when configuring your virtual hub. A virtual hub is a virtual network that is created and used by Virtual WAN. It's the core of your Virtual WAN network in a region. The address space range must conform the certain rules:
The address range that you specify for the hub can't overlap with any of the existing virtual networks that you connect to.
The address range can't overlap with the on-premises address ranges that you connect to.
If you're unfamiliar with the IP address ranges located in your on-premises network configuration, coordinate with someone who can provide those details for you.

#reassign:siddomala

Thank you for you dedication to our documentation.
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


[extension] Add support to search users

Notes for Reviewers
This PR adds support to search users. Would be helpful for users lookup components.
New API added: /api/identity/users
Updated docs ✔

This PR fixes #
Also, updated existing hardcoding of a remote provider API /api/identity/profile/<ID> to instead use capability to determine the API.


Sorting on numbers and dates not correctly ordered

Hi, I'm hoping there's a solution to this or I've missed something.  I'm loading all the data to the client side to paginate through.  When I sort by a string based column it works as in alphabetical order as expected.  However, when I try and sort a numerical column of floating point data the order comes out incorrect.  Also, I have data formatted as a date however it also is not sorting correctly however I'm pretty sure it is treating it as a string.  Is there anyway to specify the sort approach to a column of data or a workaround.
Many thanks in advance for any suggestions.

Okay, so I've had a go at recreating the problem on Plunkr.  I think it's a misunderstanding about how your header ties to the row data.  Anyway, I'm dealing a more complex data structure that is maybe causing the issue.  I've created a plunkr to try and demonstrate the scenario, although this version will not sort on the floating point based column period..
http://plnkr.co/edit/TvJWuTLYeqjwe5ECrjsG?p=preview

Hi @dangergeowolf
So you want sorted by a key name "float.value", that's pretty interesting, I think I never did that before.
I usually make a flat array after I get the data from back-end.
I believe it's an important improvement ngTasty should have, I will make it happen. Thanks

Thanks.
Sent from my iPhone

On 13 Nov 2015, at 19:48, Leonardo Zizzamia<EMAIL_ADDRESS>wrote:
Hi @dangergeowolf
So you want sorted by a key name "float.value", that's pretty interesting, I think I never did that before.
I usually make a flat array after I get the data from back-end.
I believe it's an important improvement ngTasty should have, I will make it happen. Thanks
—
Reply to this email directly or view it on GitHub.


todo: on unregister on error, what do do with the frames between our cursor and the unregister?

will be addressed by #28


List variant of DefineClass

We need a DefineClassList or something. Not sure if it should be in this project or elsewhere. My question is does it need to have anything special that DefineClass doesn't have? If so it's essentially just DefineClassList = define(Array) whereas DefineClass is DefineClass = define(Object). Is there a real different that requires extra code?

Superseded by #55


Optimizations for integration test runtime

This patch adds a new env flag NO_BUILD_IMAGE which prevents building an
image when running the all-up-test.sh this should dramatically reduce
the runtime of our integration tests by only having the happy path geth
test build the docker container.
Another minor fix made here is to move the solidity contract building into
the container and out of the all-up-test-internal.sh so that it can also
only be run once.
Finally we build the test runner specifically rather than the entire orchestrator folder. Reducing the amount of re-building that goes on each image run.

Before

After


Fix Email Settings bug

This prevents the bug/error by testing for the case of 'PHP mail()' and ignoring the error if that is the case. Fixes #694.

Thank you for your contribution!


add status to DNS policy for ignored wilcard hosts

When a gateway has wildcard listeners and does not create health probes for them, it should be more obvious that it has skipped them.
Verification

Create a gateway with no wildcard listeners
Target with DNS Policy with health check spec
see status on DNS policy is:

  healthCheck:
    conditions:
    - lastTransitionTime: "....."
      message: 'all gateways routes are creating health checks'
      observedGeneration: 1
      reason: NoGatewaysWithWildcardHosts
      status: "True"
      type: NoIgnoredHosts

Add a wildcard listener to the gateway
See status on DNS Policy is:

  healthCheck:
    conditions:
    - lastTransitionTime: "...."
      message: 'gateways with ignored wildcard hosts: <NAMESPACE>/<GATEWAY NAME>'
      observedGeneration: 2
      reason: NoGatewaysWithWildcardHosts
      status: "False"
      type: NoIgnoredHosts

Closes
#726

@philbrookes wondering what you want to do with this PR? Coming back to it?

If this is still required it will need to be moved to the kuadrant operator repo


updated NCCL version breaks nightly pip wheel builds

Description
nightly pip wheel builds were building successfully until December 30th. On December 31st the builds started failing for these build flavors:
cu90
cu100
cu101
cu90mkl
cu100mkl
cu101mkl
Error Message
All builds failed with the same error message:
/usr/bin/ld: /root/pip_build/mxnet-build/staticdeps/usr/lib/x86_64-linux-gnu/libnccl.a(init.o): unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [lib/libmxnet.so] Error 1
make: *** Waiting for unfinished jobs....
/usr/bin/ld: /root/pip_build/mxnet-build/staticdeps/usr/lib/x86_64-linux-gnu/libnccl.a(transport.o): unrecognized relocation (0x2a) in section `.text.startup'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [bin/im2rec] Error 1

To Reproduce
Build using the docker container used in the CI:
mxnetci/publish.ubuntu1404_cpu
./tools/staticbuild/build.sh $mxnet_variant pip

@mxnet-label-bot update [Build]

working on it in https://github.com/szha/mxnet/commit/f2035bf4b2d282e8fd5344e4afddcc6f21cd7fc1


Make "Publish" for files stored on Gitlab the same as for files stored on Google Drive

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
I'd like to share non-editable views of diagrams that are stored in GitLab with my company colleagues in a manner similar to the functionality for files stored on Google Drive.  But the current process for "publish"-ing a non-Drive diagram does not allow it.
Describe the solution you'd like
Right now, one can generate a non-editable view of a diagram using the File->Publish->Link menu option.  For files stored on Google drive, the URL that is generated from that process containing "https://viewer.diagrams.net/" essentially links back to the version of the document stored on Google Drive.  In other words, if changes are made to the diagram after the "publish" URL is generated, the changes will still appear when a user loads the URL at a later date.  Also, if a person who does not have the correct Google Drive permissions to access the document manages to get access to the URL, they are prevented from accessing the view of the diagram.
For every other file storage option, the "Publish" option has different behavior.  It generates a URL that encodes the entire diagram, so that it is a self contained expression of the content.  It does not refer back to the file at its original storage location, so updates to the file will not be reflected by users of the URL.  And the users of the URL do not need to have the credentials from the original file location; anyone with the URL can view the diagram.
Especially for files stored in Gitlab, I would like have the "File->Publish->Link" behavior mimic the current behavior for files based out of Google Drive... that the "https://viewer.diagrams.net/" reference the current version in the repository and require the right credentials to access.  I'm sure this same feature would be useful for files stored in other version controlled and access restricted repositories as well.
Describe alternatives you've considered
I've tried messing around with writing my own viewer of SVG files stored in Gitlab, but to no avail.
Additional context
N/A

Try adding the hash property of the URL (ie. #A...) after https://viewer.diagrams.net/

I tried that, but get the following error after authorizing the app in Gitlab

Try https://app.diagrams.net/?lightbox=1#A...

That did about 95% of what I needed! After inspecting the URL from a "publish" of my diagram, I tried
https://app.diagrams.net/?lightbox=1&highlight=0000ff#A...  and that got me the other 5% of what I needed!
Looking through the elements of the "publish" URL some more, is there any documentation on what some of the other fields do.  I can guess some of them from playing around, but others aren't immediately clear.

?tags=%7B%7D

???

&highlight=0000ff

This looks like it generated the highlights around the links

&edit=_blank

this looks like it adds the menu option to open a new copy of the diagram... from playing around, I think I see how to reference the original diagram as well

&layers=1

???

&nav=1

???

&title=MyDiagram.svg

This looks it just sets the title for the tab in the browser.

Are there any others that would be useful to know about?

Nav enables collapse/expand icons for containers.
Tags and layers enables the respective buttons if tags/layers are used in the diagram, eg.

Ah... so that's what's documented here.   Thanks!


store SM2 precomputed basepoint table in source

Store the precomputed P-256 basepoint table in source rather than computing it at runtime, saving ~88kB from the heap. The flip side is that this increases binary sizes by ~77kB.
Reference the changes of

crypto/elliptic: store P-256 precomputed basepoint table in source
crypto/elliptic: use a const string for precomputed P256 table

v0.5.0


Local proxy?

Is it possible or planned to enable running the tool with a local proxy for the queried SPARQL endpoints instead of the default http://vowl.visualdataweb.org/ldvowl/proxy.php? For example, it would be useful to be able to run a local proxy to access non-public SPARQL endpoints.

Yes of course that's possible, you only have to provide the URL of your local proxy and pass it to the production build:
First create a config file named production.conf.json at the root level of this project and provide a proxy URL there, e.g.
{
  "proxyUrl": "http://localhost/proxy.php"
}

Then run the script for the production build: npm run-script deploy
After that deploy the files in the /dist folder on your local server next to the proxy (same origin).
I used a small PHP script as a proxy which sends a request to the provided endpoint and returns the response. The target is provided as an additional parameter in the URL:
endpoint=<URL-encoded endpoint URL>
I just tested this using a docker container running PHP. If you have further questions feel free to ask.


version/release tagging

Hi there, it would be nice to create some initial version/release tag.

mentioning @AirisX explicitly :)


clippy: allow dead code for custom heap example (BumpAllocator)

Problem
some changes for bumping Rust version: https://github.com/anza-xyz/agave/pull/1309

Summary of Changes
it's 4-year-old code but looks still useful 🤔  allow dead code as a stopgap.

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

Project coverage is 81.6%. Comparing base (186befe) to head (9924192).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #1312     +/-   ##
=========================================
- Coverage    81.6%    81.6%   -0.1%
=========================================
  Files         867      867
  Lines      368767   368767
=========================================
- Hits       300967   300948     -19
- Misses      67800    67819     +19

Wait, this is only for the tests. And if the tests don't use it, it isn't used at all. I think we can remove it.

Oh! Actually, BumpAllocator seems like an example of a custom heap in ./programs/sbf/rust/custom_heap. I think if we remove it, then the whole directory will have no reason to exist. 🤔 should I remove it in this PR haha

The program is built as BPF at https://github.com/anza-xyz/agave/blob/7d7e0d468e7078bd4c44693263f8c176ac4e27be/programs/sbf/build.rs#L73 in order to be tested at https://github.com/anza-xyz/agave/blob/7d7e0d468e7078bd4c44693263f8c176ac4e27be/programs/sbf/tests/programs.rs#L288 -- this is just making sure that the custom allocator isn't always used.
It may be clearer to gate all this on target_os = "solana", like in the sdk: https://github.com/anza-xyz/agave/blob/7d7e0d468e7078bd4c44693263f8c176ac4e27be/sdk/program/src/entrypoint.rs#L164


Invalid cursor values for Europeana

Description

Identified in a production Europeana run. It seems like some Europeana cursor values are not being encoded properly, resulting in a 400.
Reproduction

Run the Europeana DAG with the following for initial_query_params (but replace the value for wskey with the correct api key):
{"wskey": "***", "profile": "rich", "reusability": ["open", "restricted"], "sort": ["europeana_id+desc", "timestamp_created+desc"], "rows": "100", "media": "true", "start": 1, "qf": ["TYPE:IMAGE", "provider_aggregation_edm_isShownBy:*"], "query": "timestamp_update:[2024-01-25T00:00:00Z TO 2024-01-26T00:00:00Z]", "cursor": "AoIvLzEwMjgvRTAwMjc3MjQyc/yK+Z+NAw=\u001d"}

The DAG will fail immediately.
The cursor is AoIvLzEwMjgvRTAwMjc3MjQyc/yK+Z+NAw=\u001d. It is url encoded, resulting in the URL that is requested by the DAG: https://api.europeana.eu/record/v2/search.json?wskey=***&profile=rich&reusability=open&reusability=restricted&sort=europeana_id%2Bdesc&sort=timestamp_created%2Bdesc&rows=100&media=true&start=1&qf=TYPE%3AIMAGE&qf=provider_aggregation_edm_isShownBy%3A*&query=timestamp_update%3A[2024-01-25T00%3A00%3A00Z+TO+2024-01-26T00%3A00%3A00Z]&cursor=AoIvLzEwMjgvRTAwMjc3MjQyc%2FyK%2BZ%2BNAw%3D
The full API response is:
{
  "apikey":"***",
  "success":false,
  "error":"Invalid cursor value. Please make sure you encode the cursor value before sending it to the API.",
  "message":"Please make sure you encode the cursor value before sending it to the API.",
  "code":"400-SC"
}

Hi there! Thanks for flagging this, I've passed this on to our API staff, who have looked into if this could be an issue on Europeana's end. They wanted me to pass on that the cursor values that our API generates are created by Solr. Solr uses Base64 encoding to generate these cursor values. This means that the following characters can appear in the cursor value: "the upper- and lower-case Roman alphabet characters (A–Z, a–z), the numerals (0–9), and the "+" and "/" symbols, with the "=" symbol as a special suffix code."
We therefore believe that the \u001d character should not be able to be generated by our API cursor generator. I hope this helps narrowing down your issue!
Best
Jolan


[Suggestions] Automatic language for first start

The steam store page of the game is in english for none chinese users.
If you have installed the game and then start it the first time, the game is always in chinese language.
To change the language the user needs to guess the correct menu and that will be a huge turn off to many people trying this game out.
So much suggestion:
On first start, please check if the user is from china. If not, use the english language for first start.
Maybe you can check the user's language for example with:

steam language
system language

The default language for the game should be English. I will check again


bug: buttons half-unclickable in the expanded details popup in Chrome

(Problem encountered on Windows 11, Chrome 128.0.6613.138)
The green area is unclickable, causing issues when clicking buttons on the right.

The problem is this property (attached to the expanded details popup that has class="sd-detailsPopup sd-focusPopup"), it seems there's an invisible vertical scrollbar that takes up 16.667 pixels on the right, and that's what causes issues.
overflow: hidden auto !important

It can be fixed by using this instead:
overflow: hidden hidden !important

I'm not sure if this should be edited directly, of if you rely on some programming logic/some framework to generate this property, but given the info given, I think fixing this shouldn't be a too hard fix ^^

I can't recreate the issue, but I will change the approach on those elements to prevent that padding to affect those buttons. I can't apply your idea (which will in fact remove the padding) because I need the area to be scrollable.
I will, instead apply the overflow auto only to the element that actually needs it, leaving those buttons on the right in the clear.

Oh, you're right, I didn't notice it disabled scrolling 😂
This sounds like it should fix the issue ^^
After testing this a bit more, it looks like I don't have this issue on all websites, I think it's related to websites that have a custom scroll bar. I had this problem in ChatGPT, it's there I took the screenshot.
The problem seems to be that the CSS of the ChatGPT website affects the injected code, so the scrollbar styling meant to be for the ChatGPT website applies to your scrollbar.

I'm not sure if there's a way to stop the CSS from the parent website to affect your popup, though that would be a nice way to prevent similar future issues with other websites.

Yes, unfortunately, because the popup is "injected" onto the web page, it takes any CSS from that page that hasn't been overriden by me. At the time, I tried applying some "unsets" with "!important" to some properties of the popup, thus overriding whatever is set by the web page, but I must have missed some.
I guess a cleaner approach would be to put the popup on an iframe, maybe. Or there might be another way to "isolate" the popup, but I haven't really found anything.

I think Shadow DOM might be what you're looking for!
https://developer.mozilla.org/docs/Web/API/Web_components/Using_shadow_DOM
This reply from ChatGPT 4o should help if you want to use it.

Oh, it might actually be the solution. I will look into it, thanks!

No, thank you for your hard work on this extension ^^

Yes, go for it, it helps me remember it later. Thanks!

Done -> #40


Uncaught TypeError: Cannot read property 'mainModule' of undefined

I just installed DocBlockr. When I hit /** + Enter/Tab, the console opens up with the following error.
Uncaught TypeError: Cannot read property 'mainModule' of undefined /Users/curtisblackwell/.atom/packages/docblockr/lib/docblockr-worker.js:719
  module.exports.DocBlockrAtom.write                                 /Users/curtisblackwell/.atom/packages/docblockr/lib/docblockr-worker.js:719
  module.exports.DocBlockrAtom.parse_command                         /Users/curtisblackwell/.atom/packages/docblockr/lib/docblockr-worker.js:273
  (anonymous function)                                               /Users/curtisblackwell/.atom/packages/docblockr/lib/docblockr-worker.js:64
  jQuery.event.dispatch                                              /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676
  elemData.handle                                                    /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360
  module.exports.KeymapManager.dispatchCommandEvent                  /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:395
  module.exports.KeymapManager.handleKeyboardEvent                   /Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:176
  (anonymous function)                                               /Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:90
  jQuery.event.dispatch                                              /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676
  elemData.handle                                                    /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360

Do you think there's a conflict with another plugin, or do you have any other idea what might be going wrong?
Thanks!
P.S.
Running Atom 0.103.0 on Mac OS X 10.9.3

Got bitten by this as well. Is there no way to check first, instead of throwing exceptions at the end user?

@curtisblackwell , I had the same issue and it was fixed the same way, of course. But, isn't there a dependency reference to add in package.json to prevent this classic kind of issue ?

Is there any solution to this?

@marines The solution for everyone so far was to enable the core snippets package.

thanks :) dunno how I've missed that


The “real” privacy setting?

Describe your problem and - if possible - how to reproduce it
Redundant entries for making profile completely private - slightly confusing.
Add a Link to the page with the problem
Go to the "Privacy Settings" section of this page.
https://www.freecodecamp.org/settings
Tell us about your browser and operating system

Browser Name: Firefox
Browser Version: 60.0.1
Operating System: macOS 10.13.5

If possible, add a screenshot here

@numoonchld, the profile is the user page as a whole, whereas the portfolio is a part of the profile where there are addable elements for projects, pull requests and articles completed by a user (different things).

Thanks for the explanation.


[FEATURE] Integrating DSPy framework to optimize LM Prompts

Langchain has integration with DSPy, a framework for optimizing LM prompts and weights in a LM pipeline. I would like to have a Node or set of Nodes in Flowise UI which provides DSPy features to optimize the user provided prompt with help of LLM and finally optimizes your LLM response.
For more details :
https://python.langchain.com/docs/integrations/providers/dspy/
https://github.com/stanfordnlp/dspy

DSPy is a python framework, Flowise is a JS based project, so unfortunately we can't integrate that


Preprocessor macro breaks when using new SDK but old OS

Hi,
Specifically this:
https://github.com/ptmt/react-native-macos/commit/81e58885b150ff36131f1e337dcea8111940f210
Breaks in runtime:
[RCT Button button With Title:target:action:]: unrecognized selector sent to class

because when you have 10.11, but using an updated Xcode, it will reports 10.12 and break in runtime.
I would recommend reverting back to the runtime check, which I've been using successfully.

You're right. It seems it needs both methods, because there is also people who using old SDK on the old macOS and runtime check doesn't work there. https://github.com/ptmt/react-native-macos/issues/124#issuecomment-258825808.
Would you mind to make a pull request?

Sure, I will probably only be avail. to do it over the weekend - I hope I get to it.


Post/Patch Body with Array generates ts error.

What are the steps to reproduce this issue?

A schema having array as a request body

Schema
  /api/v1/test/start:
    post:
      operationId: api_v1_test_start_create
      tags:
        - Test
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/UserList'
        required: true
      security:
        - {}
      responses:
        '200':
          description: No response body

Conifg file:
module.exports = {
 testApp: {
    input: {
      target: './test.yml',
    },
    output: {
      target: './src/api/generated.ts',
      client: 'react-query',
      override: {
        mutator: {
          path: './src/api/useAxios.ts',
          name: 'useAxios',
        },
      },
    },
  },
};

What happens?
This generates something like this:
export const useApiV1TestStartCreateHook = () => {
  const apiV1TestStartCreate = useAxios<void>();

  return (userList: UserList[]) => {    //--> Possible Error here
    return apiV1TestStartCreate({
      url: `/api/v1/test/start`,
      method: 'post',
      headers: { 'Content-Type': 'application/json' },
      data: userList,   // --> Got Typescript error  here
    });
  };
};

Observe the return function.
What were you expecting to happen?
I think useList:UserList[] should be userList:BodyType<UserList[]>. Because I am getting this ts error:
Type 'UserList[]' has no properties in common with type '{ headers?: any; }'.

What versions are you using?
I am using:
"orval": "^6.17.0",
"@tanstack/react-query": "^4.16.1",
"typescript": "^5.1.3"
openApi 3

Could be a bug  from here:
https://github.com/anymaniax/orval/blob/b11e58bbc40ce970f07707b5467479426b377025/packages/query/src/index.ts#L334-L340
I changed this to:
 let bodyDefinition =body.definition.replace('\[\]','\\[\\]')

    let propsImplementation =
      mutator?.bodyTypeName && body.definition
        ? toObjectString(props, 'implementation').replace(
            new RegExp(`(\\w*):\\s?${bodyDefinition}`),
            `$1: ${mutator.bodyTypeName}<${body.definition}>`,
          )
        : toObjectString(props, 'implementation');

which solved the problem..
Lemme know if I need to  open PR. Thank you.

I am receiving this error with the client swr as well.
@ctrlx-altf4 Thanks for your research into the problem!

Please submit a a PR with the fix.


Evaluating cityscapes model errors

Reproduction

What command or script did you run?
I use ATSS to train on cityscapes dataset, and all the configurations are exactly the same as the official faster-rcnn. AP75 is always -1 at the time of evaluation.
Did you make any modifications on the code or config? Did you understand what you have modified?
What dataset did you use?
cityscapes
Environment
sys.platform: linux
Python: 3.7.9 (default, Aug 31 2020, 12:42:55) [GCC 7.3.0]
CUDA available: True
GPU 0,1,2,3: GeForce RTX 2080 Ti
CUDA_HOME: /usr/local/cuda
NVCC: Cuda compilation tools, release 10.2, V10.2.89
GCC: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
PyTorch: 1.6.0
PyTorch compiling details: PyTorch built with:

GCC 7.3
C++ Version: 201402
Intel(R) Math Kernel Library Version 2019.0.5 Product Build 20190808 for Intel(R) 64 architecture applications
Intel(R) MKL-DNN v1.5.0 (Git Hash e2ac1fac44c5078ca927cb9b90e1b3066a0b2ed0)
OpenMP 201511 (a.k.a. OpenMP 4.5)
NNPACK is enabled
CPU capability usage: AVX2
CUDA Runtime 10.2
NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_75,code=sm_75
CuDNN 7.6.5
Magma 2.5.2
Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -DNDEBUG -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DUSE_VULKAN_WRAPPER -O2 -fPIC -Wno-narrowing -Wall -Wextra -Werror=return-type -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-unused-local-typedefs -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,

TorchVision: 0.7.0
OpenCV: 3.4.11
MMCV: 1.3.0
MMCV Compiler: GCC 7.3
MMCV CUDA Compiler: 10.2
MMDetection: 2.11.0+f726387
Error traceback
Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.392
Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=1000 ] = 0.640
Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=1000 ] = -1.000
Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.174
Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.393
Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.575
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.494
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=300 ] = 0.494
Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=1000 ] = 0.494
Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=1000 ] = 0.247
Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=1000 ] = 0.491
Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=1000 ] = 0.702
2021-07-19 23:45:47,394 - mmdet - INFO - Exp name: atss_r50_fpn_1x_cityscapes.py
2021-07-19 23:45:47,395 - mmdet - INFO - Epoch(val) [8][2965]	bbox_mAP: 0.3920, bbox_mAP_50: 0.6400, bbox_mAP_75: -1.0000, bbox_mAP_s: 0.1740, bbox_mAP_m: 0.3930, bbox_mAP_l: 0.5750, bbox_mAP_copypaste: 0.392 0.640 -1.000 0.174 0.393 0.575

Hi, you can find the evaluation code,  https://github.com/open-mmlab/mmdetection/blob/5590f80edf6f45c7a69fab883b3200d68dc9b213/mmdet/datasets/cityscapes.py#L331-L332
cityscapes do not evaluate the AP@75 so it set Average Precision (AP) @[ IoU=0.75 | area= all | maxDets=1000 ] = -1.000

It is suggested to debug the code. if you use the coco metric to evaluate the result, -1 means that there is no gt-bbox in the area.(You can find the explanation in FAQ)


Introduce consistent scheme to setters naming in ServiceBuilder

Now in ServiceBuilder bunch of methods are started with "use" and bunch just repeat underlying field name. We have to develop consistent scheme for setters naming and refactor ServiceBuilder according to it

Also methods for change scheme, domain, port and path are not return this


⚠ Samsung has degraded performance

In ded573e, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2257 ms

Resolved: Samsung performance has improved in 51be546.


📝[Docs]: Adding Installation and Setup Guide

Description
GitHub Desktop Contribution Instructions
Fixes:  #442
Fixes:  #443

Type of change

[] This change requires a documentation update

Checklist:

[] My code follows the style guidelines of this project
[] I have performed a self-review of my own code
[] I have commented my code, particularly in hard-to-understand areas
[] I have made corresponding changes to the documentation
[] My changes generate no new warnings

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK
Check HERE
Chech HERE

@iamkanhaiyakumar check here i made the change few minutes back should be updated in the leaderboard by today night or tommorrow morning


Allow callbacks in all cross-validation methods

This is for my Hacktoberfest mojo!!
Anyone feel free to review!


Improvements to ceph-csi-cephfs helm chart

Describe what this PR does
Introduce priorityClassName to the Helm chart of ceph-csi-cephfs.
Is there anything that requires special attention
Do you have any questions?
Is the change backward compatible?
Yes
Are there concerns around backward compatibility?
Yes
Provide any external context for the change, if any.

https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/

Related issues
None
Future concerns
None

Already implemented


bug: cannot use   keys inside lazygit window after update to v13.2.0

Did you check docs and existing issues?

[x] I have read all the LazyVim docs
[x] I have updated the plugin to the latest version before submitting this issue
[x] I have searched the existing issues of LazyVim
[x] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
v0.10.2
Operating system/version
MacOS 14.6.1 (23G93)
Describe the bug
Cannot use   combo keys, or any other keys that clash with the current neovim, to move commits in the commit history inside the Lazygit window after updating to LazyVim 13.2.0
Steps To Reproduce

Open lazyvim in a folder with a repository
Open LazyGit
Go to the Commit - Reflog panel
Try moving commits using  or  combo keys
the focus is moved to the currently opened code buffer

Expected Behavior
when using  or  combo keys (or any other keys that clash with the current opened neovim) it should allow to move commits
Repro
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "LazyVim/LazyVim", import = "lazyvim.plugins" },
    -- add any other plugins here
  },
})

Cannot reproduce with default LazyVim installation from scratch. Following screencast
https://github.com/user-attachments/assets/0b534ba1-c7f6-4f6d-b0e8-04382dedbbc9

@dpetka2001 you are right, I had a very old autocommand that was adding some keybindings on termopen event but for some reason it was not causing this issue before, just after the lazyvim update to the version 13.
Thanks for your help.


Create gh-pages branch

For viewing live examples not just source codes.

Agree, would like to add to react.rocks.