Rails 7 with Turbo: Coloris doesn't initialize correctly

I use Coloris in a small Rails 7 app with Turbo enabled.
On the first page load / page refresh everything is working fine. But after navigation to another page, Coloris doesn't bind to the input fields and after focusing the input the following error appears:
Uncaught TypeError: Cannot set properties of null (setting 'checked')
I tried to re-initialize Coloris by calling
$(document).on('turbo:load', function () {
	Coloris({
		alpha: false,
		swatches: ['#264653', '#2a9d8f', '#e9c46a']
	});
});

But that doesn't work either. Do you have any suggestions or workarounds?

Please link to a page where I can reproduce the issue.

@mhuegel I am using Coloris in a Rails 7 app with Turbo and it works perfectly.
This is how I am doing it, maybe helps you:
import Coloris from '@melloware/coloris'

document.addEventListener('turbo:load', function () {
  const colorisElements = document.querySelectorAll('[data-coloris]')
  if (colorisElements) {
    Coloris.init()
    Coloris({
      theme: 'polaroid',
      themeMode: 'light',
      alpha: false,
      wrap: false,
      clearButton: false
    })
  }
})

BTW: I am working on a stimulus wrapper 🙂

@mdbassit That's not possible at the moment, because it's all tied to Shopify Login Credentials but i recorded a short video that shows the behaviour: https://www.loom.com/share/9205902f5f524a73b23c3b36a2fee78e
My observation so far: turbo replaces the whole body-element while switching pages, so the #clr-picker div gets lost in the process.


Problem with slash "/" when rendering canvas

When I try to add / in the image header, it overlaps with the previous work
The editing:

The result:

Also, the description text doesn't contain spaces.

Hi @nadzyah!
I am so sorry for my late reply. I was on vacations 😅 but I'll start working on it.
Could you tell me what fonts you were using please ?
Greetings!

Hi @leviarista!
Thanks for taking a look at the issue. These are the fonts and sizes that I use for the text

Please, notice, that the result image doesn't contain spaces in the description:


Disable module maps feature since it is not supported by the toolchain

Fix for https://github.com/grailbio/bazel-compilation-database/issues/101
See https://github.com/bazelbuild/rules_cc/blob/2f8c04c04462ab83c545ab14c0da68c3b4c96191/examples/my_c_compile/my_c_compile.bzl for instance.
I haven't found what this feature actually does or whether it is an issue not to support it.
They do that in the CC example, so I would assume it is for other languages than C/C++?

Thanks. Would be better to document this properly, but is OK as-is.

How can I document this properly? I can do a followup PR.
Though as I said I do not really understand what this feature does and why we need to disable it. I couldn't find anything in the bazel documentation.

I would have liked more investigation/information into what's happening here. For example, does it affect both gcc and clang configurations? Is it true for both linux clang and osx clang? What about clang configured through bazel-toolchain. If only a specific type of clang, then what's missing in clang and where in the bazel codebase is the gating logic.

Looks like it does not work only on linux clang. It works on linux gcc, and osx clang. I will send a PR.

Let me reopen the issue and follow up there.


emit information diagnostics for dependency resolution

motivation: provide transperancy / debug information when needed
changes:

add a new dependency resolver that emits debug diagnostics for resover callbacks, wire it into the observability system
this information will only show when running in verbose mode
deprecate TracingDependencyResolverDelegate which was a bespose solution serving the same need
add test

UX:
~/code/swift/sourcekit-lsp ± ● main
❯ ~/code/swift/swift-package-manager/.build/debug/swift-package update --verbose | grep DependencyResolver
info: [DependencyResolver] derived 'swift-argument-parser' requirement '0.4.1..<0.5.0'
info: [DependencyResolver] derived 'yams' requirement '4.0.0..<4.1.0'
info: [DependencyResolver] derived 'swift-crypto' requirement '1.1.4..<1.2.0'
info: [DependencyResolver] resolving 'swift-crypto'
info: [DependencyResolver] resolved 'swift-crypto' @ '1.1.6'
info: [DependencyResolver] resolving 'swift-argument-parser'
info: [DependencyResolver] resolved 'swift-argument-parser' @ '0.4.4'
info: [DependencyResolver] resolving 'yams'
info: [DependencyResolver] resolved 'yams' @ '4.0.6'
info: [DependencyResolver] solved 'yams' (https://github.com/jpsim/Yams.git) at '4.0.6'
info: [DependencyResolver] solved 'swift-argument-parser' (https://github.com/apple/swift-argument-parser.git) at '0.4.4'
info: [DependencyResolver] solved 'swift-crypto' (https://github.com/apple/swift-crypto.git) at '1.1.6'
info: [DependencyResolver] solved 'swift-package-manager' (https://github.com/apple/swift-package-manager.git) at 'main'
info: [DependencyResolver] solved 'swift-tools-support-core' (https://github.com/apple/swift-tools-support-core.git) at 'main'
info: [DependencyResolver] solved 'sourcekit-lsp' (/Users/tomerd/code/swift/sourcekit-lsp) at 'unversioned'
info: [DependencyResolver] solved 'swift-driver' (https://github.com/apple/swift-driver.git) at 'main'
info: [DependencyResolver] solved 'indexstore-db' (https://github.com/apple/indexstore-db.git) at 'main'
info: [DependencyResolver] solved 'swift-llbuild' (https://github.com/apple/swift-llbuild.git) at 'main'
info: [DependencyResolver] dependency resolution complete!

@swift-ci please smoke test


Clarified the organizations that get visibility on 'internal' repositories

Why:
Clarified the visibility especially for 'internal' repositories to make it clear that this stays within the enterprise.
What's being changed:
Text only
Check off the following:

[x] I have reviewed my changes in staging (look for the latest deployment event in your pull request's timeline, then click View deployment).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[ ] This pull request impacts the contribution experience

[ ] I have added the 'writer impact' label
[ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

Follow up on #7801 that got invalidated due to a deleted fork.
Tagging @lecoursen for reference


[BUG]: Can't access table config column index information

What version of drizzle-orm are you using?
0.23.11
Describe the Bug
I'm writing a Drizzle adaptor for Tableland (https://tableland.xyz) and need to implement table creation myself because Tableland doesn't yet support migrations in the way drizzle-kit does them. Getting the table config using getTableConfig has worked well and allows me to get the information I need to construct a create table... statement, except for I can't seem to access information about the columns within indexes defined in the schema. If I write the following code:
const foo = sqliteTable(
  "foo",
  {
    id: integer("id"),
  },
  (foo) => {
    return {
      idIndex: uniqueIndex("idUniqueIdx").on(foo.id),
    };
  }
);

const config = getTableConfig(foo);
const column = config.indexes[0].config.columns[0]

the column value only has this _ property on it which is undefined. I don't have access to any of the other properties of AnySQLiteColumn like name.
If I console.log(column), I see all that information:
<ref *1> SQLiteInteger {
  table: SQLiteTable {
    id: [Circular *1],
    [Symbol(OriginalName)]: 'foo',
    [Symbol(Name)]: 'foo',
    [Symbol(Schema)]: undefined,
    [Symbol(BaseName)]: 'foo',
    [Symbol(InlineForeignKeys)]: [],
    [Symbol(ExtraConfigBuilder)]: [Function (anonymous)],
    [Symbol(Columns)]: { id: [Circular *1] }
  },
  config: {
    name: 'id',
    notNull: false,
    default: undefined,
    primaryKey: false,
    autoIncrement: false
  },
  name: 'id',
  notNull: false,
  default: undefined,
  hasDefault: undefined,
  primary: false,
  autoIncrement: false
}

Is there some way to get that information I'm not seeing? Thanks,

Oh interesting, this seems to work:
const column = config.indexes[0].config.columns[0] as any;
console.log(column.name);

Outputs id.
So maybe this is just a typing issue?

If you check the column type, you'll see that it is IndexColumn, which is an alias for AnySQLiteColumn | SQL. That's because you can make indexes on SQL expressions, not just columns. So you need something like column instanceof SQLiteColumn.


Web Site

The Kiali website could use a lot of help in terms of design and what we could be doing here.

it is already taken care of :)  - I'm working on this with Mary from the UX team.
@mwringe can we close the issue?

Oh, awesome. I wasn't aware.
Any idea when we would be getting some updates on this?
And thanks, glad to see someone is looking into this :)

@mwringe most of the work is tracked here:
https://patternfly.atlassian.net/browse/OSUX-663


No longer works after update

I did the cardinal sin of updating Windows and my iPad at the same time.  I updated Windows to 11 24H2.  After the update my external wifi adapter was not recognized by the computer, so after several troubleshooting attempts if just connected to an ethernet port.  At the same time, I updated my iPad to IOS 18.1.  Now, FS2FF shows connected, but I can't connect to FF on my iPad.

My guess is that you have the auto detect checked. ForFlight sends a broadcast packet that says "here's my IP" and FS2FF uses it. Now that your PC is wired and your iPad is still wireless the router might be blocking the packets from one subnet to the next. You will need to look on the iPad for it's IP address then put that IP in the input box of FS2FF. I've been doing updates to FS2FF on my branch and have it working with the more efficient GDL90 protocol. It works with any EFB that supports GDL90 of ethernet: https://github.com/jeffdamp-wave/fs2ff/releases/tag/v1.8.4

Thank you for your reply.
I had already added my iPad ip address and tried to manually connect to no avail.  I loaded the new version (1.8.4, thank you) and it still did not work.  I will have to go with it is a Windows 11 24H2 issue.  I am reading that it has many internet connectivity problems.
https://www.techradar.com/computing/windows/new-windows-11-24h2-fail-kills-the-internet-for-some-users
[https://cdn.mos.cms.futurecdn.net/VkvE6eNH75xit53BmwXpB7-1200-80.jpg]https://www.techradar.com/computing/windows/new-windows-11-24h2-fail-kills-the-internet-for-some-users
New Windows 11 24H2 fail kills the internet for some usershttps://www.techradar.com/computing/windows/new-windows-11-24h2-fail-kills-the-internet-for-some-users
No internet blues
www.techradar.com

From: Jeff D. @.>
Sent: Wednesday, October 30, 2024 8:50 PM
To: astenlund/fs2ff @.>
Cc: tbennett8877 @.>; Author @.>
Subject: Re: [astenlund/fs2ff] No longer works after update (Issue #100)
My guess is that you have the auto detect checked. ForFlight sends a broadcast packet that says "here's my IP" and FS2FF uses it. Now that your PC is wired and your iPad is still wireless the router might be blocking the packets from one subnet to the next. You will need to look on the iPad for it's IP address then put that IP in the input box of FS2FF. I've been doing updates to FS2FF on my branch and have it working with the more efficient GDL90 protocol. It works with any EFB that supports GDL90 of ethernet: https://github.com/jeffdamp-wave/fs2ff/releases/tag/v1.8.4
—
Reply to this email directly, view it on GitHubhttps://github.com/astenlund/fs2ff/issues/100#issuecomment-2448960862, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BMR2FNLT7MNYDQZZFLAMKU3Z6GSITAVCNFSM6AAAAABQ5IQEJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBYHE3DAOBWGI.
You are receiving this because you authored the thread.Message ID: @.***>

I cannot ping my iPad or router with the firewall on or off (<IP_ADDRESS>/<IP_ADDRESS>).  I can however ping websites.
[cid:19a56689-5e68-4a71-a2ea-1128c6554c37]

From: Jeff D. @.>
Sent: Thursday, October 31, 2024 9:19 AM
To: astenlund/fs2ff @.>
Cc: tbennett8877 @.>; Author @.>
Subject: Re: [astenlund/fs2ff] No longer works after update (Issue #100)
A couple more thoughts. FS2FF uses simple UDP packets to send data. Could be a firewall setting in windows that isn't auto opening. Ports to enabled would be UDP 4000, UDP 49002, UDP 63093. Maybe also double check that the iPad didn't turn on private IP. https://support.apple.com/guide/ipad/use-a-private-network-address-ipad5f03c96d/ipados. Finally check to make sure you can ping the iPad from your PC. command prompt.
—
Reply to this email directly, view it on GitHubhttps://github.com/astenlund/fs2ff/issues/100#issuecomment-2450289291, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BMR2FNLEPVR7QFSRYCAAJTLZ6JJ7NAVCNFSM6AAAAABQ5IQEJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJQGI4DSMRZGE.
You are receiving this because you authored the thread.Message ID: @.***>

I had to delete Windows and do a new Windows install.   It took Microsoft 2 weeks to figure it out.  I appreciate your help.
Tony Bennett
On Oct 31, 2024, at 9:19 AM, Jeff D. @.***> wrote:

A couple more thoughts. FS2FF uses simple UDP packets to send data. Could be a firewall setting in windows that isn't auto opening. Ports to enabled would be UDP 4000, UDP 49002, UDP 63093. Maybe also double check that the iPad didn't turn on private IP. https://support.apple.com/guide/ipad/use-a-private-network-address-ipad5f03c96d/ipados. Finally check to make sure you can ping the iPad from your PC. command prompt.
—
Reply to this email directly, view it on GitHubhttps://github.com/astenlund/fs2ff/issues/100#issuecomment-2450289291, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BMR2FNLEPVR7QFSRYCAAJTLZ6JJ7NAVCNFSM6AAAAABQ5IQEJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJQGI4DSMRZGE.
You are receiving this because you authored the thread.Message ID: @.***>

Probably unrelated but I cannot get the app to work with the latest version of 2024, it was working perfectly before but now it enters the auto-connect loop and manually connecting fails to access the simulator.


Upgrade pip to 18.1 (or later)

Currently we pin pip to 10.0.1 but newer versions are available. We should upgrade our tests to pin on a newer pip.

Maybe u shuld considering logged in as super user first and then try to install it
su
pip install -U pip' (if its python 2.x)  or pip3 install -U pip` (if its python 3.x)
it's worked for me

@lanolunip correct. This is an issue to track updating the pip version that we pin for our test infrastructure to run. We do want to pin to an exact version of pip to ensure are tests are robust and reproducible and won't break when pip updates ship, but we need to manually update the pinned version on a regular basis.

ah.. i see


Having different loading path and url

I'm using this script in a WordPress theme and instead of loading an entire HTML document on subsequent page loads on scroll I'm making a manual ajax request to only request required markeup. For this I'm using some code like this:
		$('.grid').infiniteScroll({
			append: '.grid-item',
			path: 'http://localhost/wordpress/theme-name/wp-admin/admin-ajax.php?action=ajax_load_more&type=portfolio&page={{#}}',
			loadOnScroll: true,
		});

It works fine and loads and append only the necessary markup (thus faster loading time). Now, the issue is the URL shown in the bar is similiar to the loading path, which I don't want. I want 'loading path' and 'url in the bar' to be different in format. For example:
Loading Path: http://localhost/wordpress/theme-name/wp-admin/admin-ajax.php?action=ajax_load_more&type=portfolio&page={{#}}
Path in url bar: http://localhost/wordpress/page/1/
Is it possible with this plugin?

Thanks for submitting this issue. If you wish to set the browser URL to a different URL than Infinite Scroll's path, then you'll have to disable history: false and set URL with your own code, on append or load event. I would look something like
// get Infinite Scroll instance
var infScroll = $grid.data('infiniteScroll');

$grid.on( 'append.infiniteScroll', function() {
  // use loadCount property to set custom URL & title
  var title = 'Page ' + infScroll.loadCount;
  var url = '/wordpress/page/' + infScroll.loadCount;
  history.replaceState( null, title, url );
});

Thanks for your response, your solution makes sense, however, I'm guessing by using the append event the URL in the address bar won't change on scroll-up/down once the append event has fired on the initial scroll. Shouldn't we use the history event here?

Well, turns out history event does not fire when we set history: false. If we are able to fire history event when the URL is supposed to change I think it would be more flexible.

If we are able to fire history event when the URL is supposed to change I think it would be more flexible.

Thanks for this feedback. Infinite Scroll v3 is still new. I'll wait until others request this feature before considering to add it.

Thanks, I'm closing this issue now.

I think I found an inelegant but seemingly effective way to do this with history:
Have the following options set:
history: 'replace',
historyTitle: true

Pass post_name of the next post as a URL param in your AJAX path. You might update yours to:
http://localhost/wordpress/theme-name/wp-admin/admin-ajax.php?action=ajax_load_more&type=portfolio&page={{#}}?slug=next-post-slug'
When the history event fires, you can parse the path value to get your slug, then set the URL to what you want with history.replaceState().
Mine ended up looking like this:
infiniteScroll.on('history', function(title, path) {
  var permalink = path.split('?slug=');
  history.replaceState( null, null, permalink[1]);
});

There's a slight flash in the address bar since we're changing the URL twice. Ideally the user is more interested in page content than the address bar, though.
Hope that helps if anyone else is looking for a way to do this. If there's a cleaner/better way to accomplish this please let me know.

@nateluzod Thanks for posting your solution. Your code overwrite Infinite Scroll's history behavior. I would recommend disabling history and using load or append event as I've mentioned in previous comment. You still have access to the path argument, and you can get the page title from response.title.
infiniteScroll.on( 'append', function( response, path ) {
  var permalink = path.split('?slug=');
  // update URL
  history.replaceState( null, null, permalink[1]);
  // update title
  document.title = response.title;
});


Variable name can not be constructor or __proto__

I am writing a debugger adapter, and i found if the variable name is constructor, then it can not be displayed in Variable view.

And the return value is [{"name":"constructor","value":"Function","variablesReference":1009}]

On the vscode side we are not doing anything special with the variable names since VSCode is language agnostic.
What adapter are you using, do you use something on top of node-debug?
Assigning to @weinand since he might have an idea

This is my own adapter, and the view is the client view. The launch.json of the client view is
{
    "version": "0.2.0",
    "debugServer": 4711,

    "configurations": [{
        "name": "mock test",
        "request": "launch",
        "type": "node",
        "request": "attach",
        "port": "5086",
        "stopOnEntry": false
    }
}

@isidorn I can easily reproduce. Since the response object is OK, I suspect that somewhere in the UI the variable name 'constructor' is stored as an object property which collides with the JavaScript reserved name 'constructor'. I remember we had this issues already with the variable names "prototype". IIRC you had to prefix variable name to avoid the clash.

@isidorn variables with the name __proto__ don't work either.

@weinand
Yep, it also met __proto__ issue too.

@isidorn Today I was running again into the problem that I cannot inspect the "proto" property in VS Code. Could you please consider to use Maps for storing variables? Those don't suffer from the problem that some variable names collide with some builtin object properties in JavaScript.


Unable to add proxy configuration to EKS Blueprints Lambdas

Describe the documentation issue
We need to add http_proxy, https_proxy, and no_proxy system environment variables to our Lambdas in order for them to properly get outbound to the internet and communicate with EKS control plane API. We have attempted to do this with Aspects. Following is our code:
class Lambdaaspects implements cdk.IAspect {
  private environmentProps: any;

  constructor(environmentProps: any) {
    this.environmentProps = environmentProps;
  }

  public visit(node: IConstruct): void {
    // Check if we're dealing with a Function
    if (node instanceof CfnFunction) {
      // Set environment variable here
      this.addEnvironment(node);
   }
 }

private addEnvironment(node: CfnFunction): void {
    node.addOverride('Properties.Environment', this.environmentProps);
  }
}

const environmentProps = {
  Variables: {
    http_proxy : 'http://webproxyeva.fpl.com:8080',
    https_proxy: 'http://webproxyeva.fpl.com:8080',
    no_proxy: '*.fpl.com,*.neeaws.local,*.us-east-1.amazonaws.com,*.eks.amazonaws.com'
  },
};

// Apply the aspect to the stack
cdk.Aspects.of(app).add(new Lambdaaspects(environmentProps));

This does not have the desired effect of propagating the proxy environment variables to the EKS Blueprints Lambda functions.
What could we be missing or is there a better approach to adding these environment variables to the Blueprints Lambda functions.
Links
https://docs.aws.amazon.com/cdk/v2/guide/aspects.html
https://stackoverflow.com/questions/60269108/how-to-automatically-put-environment-variable-to-all-lambdas-created-in-my-cdk-p

@mkorejo there are two requests in the issue: 1/ communication with the EKS control plane API and 2/ communication with the internet.
On the first request if you are talking about general EKS API communication, then you can use AWS Private Link  (since Dec 2022) to communicate with the EKS API (not control plane, but AWS CLI/API) privately. Here is documentation on this.
If you need to communicate with the API endpoint, then you should be able to do so by placing the lambda functions in the target VPC of the cluster.
For outbound access and injecting env variables to the custom resources produced by CDK, I believe CDK main repo would be a better choice for the issue: https://github.com/aws/aws-cdk/issues. Potentially related to https://github.com/aws/aws-cdk/issues/12171.


Search policies by subject and resource

Hi everyone,
as far as I could read from the api docs there only exists the possibility to search policies by subject (/policies?subject=john.doe). Is there a way/is it planned to narrow down the search results by also specifying a resource like for example "/policies?subject=john.doe&resource=resource:devices"?
Best regards,
Sebastian

Unfortunately, this is currently not implemented and there is currently no plan to do so, but I welcome PRs and will put it on the backlog

Removed from the backlog as this is now an issue in Keto. Feel free to reopen there and discuss possible PRs.


integration_tests don't seem to run

It appears as if the integration tests aren't being run when running colcon's test function. That seems to be causing code coverage problems. The other two test sets (test_unit_polly and test_unit_synthesizer) seem to run just fine. I don't really understand colcon enough to know why this is.

Hi @mjsobrep, the integration tests weren't intended to run with colcon test, like the way the unit tests are. The integration tests never contributed to the code coverage.
There are some additional environment settings needed in order for the integration tests to run successfully. We will improve our documentation to indicate how the integration tests should be run.

@mm318 I see, thanks for the clarification. I was having trouble in #36 with getting code coverage with only the unit tests. I'll have to dig deeper to figure out how to do that.

Closing this as no further action is warranted.


Refactor data source filter type doc #2560

Responding to DataSource::determineFilterType()'s doc is wrong #2560.

Merged as 2a7360ae


Support for OXY2DEV/markview.nvim

Suggestion
Hi, @scottmckendry. Can you add support for OXY2DEV/markview.nvim?
By default, the plugin currently looks like this.

Dark mode

Light mode
Unfortunately, I have no idea how much of the colorscheme is respected by it(since I can't actually test it with transparent background). So, it would be great if you could add support for this plugin.
You can find all the highlight groups here.

Thanks @OXY2DEV,
I've updated the existing extension with the new highlight group names. I can also confirm that transparency works as expected 🙂


FetchError: request to Link failed, reason: read ECONNRESET

This happens when I try to go to a video or search something
What do I do?

try with any proxys or anything that could interfere with your internet disabled. also check that everything with your connection is alright

I disabled all extensions using proxies, restarted yt2009 (closed cmd and started node yt2009setup.js and node backend.js again) but the result remains the same

It’s been a while, does the problem still occur on the latest version?

If all else fails see if anything odd is showing up in Wireshark.

fixed with https://github.com/ftde0/yt2009/commit/49869cd1a11f581a8a6be358a15766d53805860a.


Revert "Merge pull request #52 from Abhiek187/feature/review"

This reverts commit 2c8b57cf94c073f2ad279d4b78deb70665c3ab52, reversing changes made to ec729014ad158df5a8b9b4f20f28e16eaba69bbc.
Testing to see if the following errors are due to a simulator bug or one of my changes from #52

::error file=/Users/runner/work/ez-recipes-ios/ez-recipes-ios/EZ Recipes/EZ RecipesUITests/EZ_RecipesUITests.swift,line=171::    testSearchRecipes, Failed to synthesize event: Neither element nor any descendant has keyboard focus. Event dispatch snapshot: TextField, {{16.0, 155.0}, {343.0, 44.0}}, placeholderValue: 'food', value: food

::error file=/Users/runner/work/ez-recipes-ios/ez-recipes-ios/EZ Recipes/EZ RecipesUITests/EZ_RecipesUITests.swift,line=162::    testSearchRecipes, Failed to failed to scroll to visible (by AX action) Button, {{9.0, 27.0}, {52.5, 44.0}}, identifier: 'ToggleSidebar', label: 'Show Sidebar', error: Error kAXErrorCannotComplete performing AXAction kAXScrollToVisibleAction on element AX element pid: 11578, elementOrHash.elementID:<PHONE_NUMBER>.46. (Underlying Error: Error kAXErrorCannotComplete performing AXAction kAXScrollToVisibleAction on element AX element pid: 11578, elementOrHash.elementID:<PHONE_NUMBER>.46)

Well this is awkward...


vendors-sdk - Update the packages

Status
Ready
Related Content Pull Request
Related PR: link to the PR at demisto/content
Related Issues
Related: link to the issue
Description
updated the poetry.lock file for docker/vendors-sdk

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hi @samuelFain,
thank you for the quick response, in this PR I only update the poetry.lock as mostly the packages (including the domaintools-api) has the version in the pyproject.toml is set to * , I think I just need to update the lock file and not the toml file to update the packages/dependencies. (correct me if I'm wrong)

for the PR related, as of the moment No we haven't raised the PR in the content repo as it's still in progress and this package update is needed so we can test it in our dev and staging environment.

Let me know if I missed something or I need to change anything. Thank you!

@briluza Everything looks good to me then.
Just a quick note: due to a technical issue we are currently experiencing, the
ci/gitlab/gitlab.xdr.pan.local and native_docker_image_labeled GitHub actions cannot run on a contribution PR to the dockerfiles repository - like this one. This is a merge blocker.
To save us all the waiting time, I went ahead and opened an internal PR  with the changes of this PR so I can merge it.
This will mean that I'll merge the internal PR with the changes from this PR instead of merging this PR.
Please let me know if you are OK with this action, and if you do, please verify the changes in https://github.com/demisto/dockerfiles/pull/34782 and let me know we are good-to-merge.

I checked and verify that the changes in poetry.lock also updates the domaintools-api package in the latest version. Thank you!

Internal PR merged. Closing this PR.


⚠ Samsung has degraded performance

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

HTTP code: 200
Response time: 2597 ms

Resolved: Samsung performance has improved in df9fc2b.


-Waggressive-loop-optimizations UB warning in to_words52 on 3.0.x, but not 3.1.x/master

Config:
$ perl configdata.pm --dump

Command line (with current working directory = .):

    /usr/bin/perl ./Configure

Perl information:

    /usr/bin/perl
    5.36.1 for x86_64-linux

Enabled features:

    afalgeng
    aria
    asm
    async
    autoalginit
    autoerrinit
    autoload-config
    bf
    blake2
    bulk
    cached-fetch
    camellia
    capieng
    cast
    chacha
    cmac
    cmp
    cms
    comp
    ct
    deprecated
    des
    dgram
    dh
    dsa
    dso
    dtls
    dynamic-engine
    ec
    ec2m
    ecdh
    ecdsa
    engine
    err
    filenames
    gost
    idea
    legacy
    loadereng
    makedepend
    md4
    mdc2
    module
    multiblock
    nextprotoneg
    ocb
    ocsp
    padlockeng
    pic
    pinshared
    poly1305
    posix-io
    psk
    rc2
    rc4
    rdrand
    rfc3779
    rmd160
    scrypt
    secure-memory
    seed
    shared
    siphash
    siv
    sm2
    sm3
    sm4
    sock
    srp
    srtp
    sse2
    ssl
    ssl-trace
    static-engine
    stdio
    tests
    threads
    tls
    ts
    ui-console
    whirlpool
    tls1
    tls1-method
    tls1_1
    tls1_1-method
    tls1_2
    tls1_2-method
    tls1_3
    dtls1
    dtls1-method
    dtls1_2
    dtls1_2-method

Disabled features:

    acvp-tests          [cascade]        OPENSSL_NO_ACVP_TESTS
    asan                [default]        OPENSSL_NO_ASAN
    buildtest-c++       [default]
    crypto-mdebug       [default]        OPENSSL_NO_CRYPTO_MDEBUG
    devcryptoeng        [default]        OPENSSL_NO_DEVCRYPTOENG
    ec_nistp_64_gcc_128 [default]        OPENSSL_NO_EC_NISTP_64_GCC_128
    egd                 [default]        OPENSSL_NO_EGD
    external-tests      [default]        OPENSSL_NO_EXTERNAL_TESTS
    fips                [default]
    fips-securitychecks [cascade]        OPENSSL_NO_FIPS_SECURITYCHECKS
    fuzz-afl            [default]        OPENSSL_NO_FUZZ_AFL
    fuzz-libfuzzer      [default]        OPENSSL_NO_FUZZ_LIBFUZZER
    ktls                [default]        OPENSSL_NO_KTLS
    md2                 [default]        OPENSSL_NO_MD2 (skip crypto/md2)
    msan                [default]        OPENSSL_NO_MSAN
    rc5                 [default]        OPENSSL_NO_RC5 (skip crypto/rc5)
    sctp                [default]        OPENSSL_NO_SCTP
    trace               [default]        OPENSSL_NO_TRACE
    ubsan               [default]        OPENSSL_NO_UBSAN
    unit-test           [default]        OPENSSL_NO_UNIT_TEST
    uplink              [no uplink_arch] OPENSSL_NO_UPLINK
    weak-ssl-ciphers    [default]        OPENSSL_NO_WEAK_SSL_CIPHERS
    zlib                [default]
    zlib-dynamic        [default]
    ssl3                [default]        OPENSSL_NO_SSL3
    ssl3-method         [default]        OPENSSL_NO_SSL3_METHOD

Config target attributes:

    AR => "ar",
    ARFLAGS => "qc",
    CC => "gcc",
    CFLAGS => "-Wall -O3",
    CXX => "g++",
    CXXFLAGS => "-Wall -O3",
    HASHBANGPERL => "/usr/bin/env perl",
    RANLIB => "ranlib",
    RC => "windres",
    asm_arch => "x86_64",
    bn_ops => "SIXTY_FOUR_BIT_LONG",
    build_file => "Makefile",
    build_scheme => [ "unified", "unix" ],
    cflags => "-pthread -m64",
    cppflags => "",
    cxxflags => "-std=c++11 -pthread -m64",
    defines => [ "OPENSSL_BUILDING_OPENSSL" ],
    disable => [  ],
    dso_ldflags => "-Wl,-z,defs",
    dso_scheme => "dlfcn",
    enable => [ "afalgeng" ],
    ex_libs => "-ldl -pthread",
    includes => [  ],
    lflags => "",
    lib_cflags => "",
    lib_cppflags => "-DOPENSSL_USE_NODELETE -DL_ENDIAN",
    lib_defines => [  ],
    module_cflags => "-fPIC",
    module_cxxflags => undef,
    module_ldflags => "-Wl,-znodelete -shared -Wl,-Bsymbolic",
    multilib => "64",
    perl_platform => "Unix",
    perlasm_scheme => "elf",
    shared_cflag => "-fPIC",
    shared_defflag => "-Wl,--version-script=",
    shared_defines => [  ],
    shared_ldflag => "-Wl,-znodelete -shared -Wl,-Bsymbolic",
    shared_rcflag => "",
    shared_sonameflag => "-Wl,-soname=",
    shared_target => "linux-shared",
    thread_defines => [  ],
    thread_scheme => "pthreads",
    unistd => "<unistd.h>",

Recorded environment:

    AR =
    ARFLAGS =
    AS =
    ASFLAGS =
    BUILDFILE =
    CC =
    CFLAGS =
    CPP =
    CPPDEFINES =
    CPPFLAGS =
    CPPINCLUDES =
    CROSS_COMPILE =
    CXX =
    CXXFLAGS =
    HASHBANGPERL =
    LD =
    LDFLAGS =
    LDLIBS =
    MT =
    MTFLAGS =
    OPENSSL_LOCAL_CONFIG_DIR =
    PERL =
    RANLIB =
    RC =
    RCFLAGS =
    RM =
    WINDRES =
    __CNF_CFLAGS =
    __CNF_CPPDEFINES =
    __CNF_CPPFLAGS =
    __CNF_CPPINCLUDES =
    __CNF_CXXFLAGS =
    __CNF_LDFLAGS =
    __CNF_LDLIBS =

Makevars:

    AR              = ar
    ARFLAGS         = qc
    CC              = gcc
    CFLAGS          = -Wall -O3
    CPPDEFINES      =
    CPPFLAGS        =
    CPPINCLUDES     =
    CXX             = g++
    CXXFLAGS        = -Wall -O3
    HASHBANGPERL    = /usr/bin/env perl
    LDFLAGS         =
    LDLIBS          =
    PERL            = /usr/bin/perl
    RANLIB          = ranlib
    RC              = windres
    RCFLAGS         =

NOTE: These variables only represent the configuration view.  The build file
template may have processed these variables further, please have a look at the
build file for more exact data:
    Makefile

build file:

    Makefile

build file templates:

    Configurations/common0.tmpl
    Configurations/unix-Makefile.tmpl

$ gcc --version
gcc (Gentoo Hardened 13.1.1_p20230527 p3) 13.1.1 20230527
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

With OpenSSL 3.0.9, I get the following while building with -O2 or -O3:
gcc  -I. -Iinclude -Iproviders/common/include -Iproviders/implementations/include  -DAES_ASM -DBSAES_ASM -DCMLL_ASM -DECP_NISTZ256_ASM -DGHASH_ASM -DKECCAK1600_ASM -DMD5_ASM -DOPENSSL_BN_ASM_GF2m -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_CPUID_OBJ -DOPENSSL_IA32_SSE2 -DPOLY1305_ASM -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DVPAES_ASM -DWHIRLPOOL_ASM -DX25519_ASM -fPIC -pthread -m64 -Wa,--noexecstack -Wall -O3 -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib64/engines-3\"" -DMODULESDIR="\"/usr/local/lib64/ossl-modules\"" -DOPENSSL_BUILDING_OPENSSL -DNDEBUG  -MMD -MF crypto/bn/libcrypto-lib-rsaz_exp_x2.d.tmp -MT crypto/bn/libcrypto-lib-rsaz_exp_x2.o -c -o crypto/bn/libcrypto-lib-rsaz_exp_x2.o crypto/bn/rsaz_exp_x2.c
crypto/bn/rsaz_exp_x2.c: In function 'to_words52.constprop':
crypto/bn/rsaz_exp_x2.c:500:16: warning: iteration 19 invokes undefined behavior [-Waggressive-loop-optimizations]
  500 |         out_len--;
      |         ~~~~~~~^~
crypto/bn/rsaz_exp_x2.c:498:20: note: within this loop
  498 |     while (out_len > 0) {
      |            ~~~~~~~~^~~

But OpenSSL 1.1.1u and OpenSSL 3.1.1 are fine.
I spent a while staring at and comparing the branches and was avoiding looking at 3d2b47bcdf8cf407ef1e459d54d4501cc19f0227 given it's pretty large, but I think that's the commit which fixes it on 3.1.x. If I try to (very cheesily) cherry-pick it to 3.0.x just to see if it helps, that works.
That commit is unfortunately pretty large and includes some refactoring as prep work for the optimisation it adds, so it's hard as somone unfamiliar with the codebase to figure out quickly which bits are the actual substantive change suppressing the warning here, or if it's just by chance.

Any idea what's undefined here?
out_len is an int, so can go negative safely.  It's checked earlier and known to be positive to begin with.

For 1024 bit numbers, it's reaching the final element (20th).  I suspect the optimiser is thinking that it could go one further.

Yeah, this looks like a bug in the compiler. out_len is int so it can go negative without UB.

concur that its probably a compiler bug, though it looks super odd in disassembly:
 if (in_bitsize > DIGIT_SIZE) {
        uint64_t digit = get_digit52(in_str, 7);

        out[0] = digit & DIGIT_MASK;
 664:   48 21 f1                and    %rsi,%rcx
 667:   48 89 8a 90 00 00 00    mov    %rcx,0x90(%rdx)
        digit += (uint64_t)(in[in_len - 1]);
 66e:   0f b6 70 7f             movzbl 0x7f(%rax),%esi
 672:   0f b6 48 7e             movzbl 0x7e(%rax),%ecx
        digit <<= 8;
 676:   48 c1 e6 08             shl    $0x8,%rsi
        digit += (uint64_t)(in[in_len - 1]);
 67a:   48 01 f1                add    %rsi,%rcx
 67d:   0f b6 70 7d             movzbl 0x7d(%rax),%esi
        digit <<= 8;
 681:   48 c1 e1 08             shl    $0x8,%rcx
        digit += (uint64_t)(in[in_len - 1]);
 685:   48 01 ce                add    %rcx,%rsi
 688:   0f b6 48 7c             movzbl 0x7c(%rax),%ecx
 68c:   0f b6 40 7b             movzbl 0x7b(%rax),%eax
        digit <<= 8;
 690:   48 c1 e6 08             shl    $0x8,%rsi
        digit += (uint64_t)(in[in_len - 1]);
 694:   48 01 f1                add    %rsi,%rcx
        digit <<= 8;
697:   48 c1 e1 08             shl    $0x8,%rcx
        digit += (uint64_t)(in[in_len - 1]);
 69b:   48 01 c8                add    %rcx,%rax
        in_str += 6;
        in_bitsize -= DIGIT_SIZE;
        digit = get_digit52(in_str, BITS2WORD8_SIZE(in_bitsize));
        out[1] = digit >> 4;
 69e:   48 c1 e8 04             shr    $0x4,%rax
 6a2:   48 89 82 98 00 00 00    mov    %rax,0x98(%rdx)
    while (out_len > 0) {
        *out = 0;
        out_len--;
        out++;
    }
}
 6a9:   c3                      ret
 6aa:   66 0f 1f 44 00 00       nopw   0x0(%rax,%rax,1)

Reading -O3 bits is always really hard for me, but that to me looks like the compiler decided to optimize away the entire while (out_len > 0) loop.  out I believe gets stored in %rsi (which makes sense), but I don't ever see anything in that assembly that winds up storing a zero to %rsi in the unrolled loop


Gcve useragent

Description of Changes

Added functionality to be able to configure user agent by adding userAgent variable

Please check that the PR fulfills these requirements

[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
[ ] Add a changelog entry (for non-trivial bug fixes / features)
[ ] CI passes

Log Files
Logs / Second
CPU Avg (%)
CPU Avg Δ (%)
Memory Avg (MB)
Memory Avg Δ (MB)

1
1000
1.6379505
-0.275905
130.42767
+2.298233

1
5000
5.8794346
-0.17247343
140.02586
+0.54566956

1
10000
11.431252
-0.3620262
146.5951
+3.063034

1
50000
61.948795
-2.1721535
172.13618
-3.3806458

1
100000
131.6213
+4.3079376
231.24043
+5.591324

10
100
2.0862648
-0.034457445
132.52843
-1.4537964

10
500
7.0002007
+0.08609867
139.77182
-3.3298798

10
1000
13.517495
+0.3619976
147.27882
-1.4035645

10
5000
67.34584
-0.035614014
176.85426
+0.059143066

10
10000
133.26335
-1.5128479
231.19154
-1.4908447

Log Files
Logs / Second
CPU Avg (%)
CPU Avg Δ (%)
Memory Avg (MB)
Memory Avg Δ (MB)

1
1000
1.8620682
+0.08621621
130.01833
+0.06896973

1
5000
5.9827604
+0.22416306
140.46646
+0.6287689

1
10000
11.6554165
-0.3619585
144.10951
-2.0870056

1
50000
62.43145
-2.0006027
175.96027
-2.3628693

1
100000
138.03664
+9.10318
236.2985
-11.04808

10
100
2.4139128
+0.22430062
134.26038
+1.876358

10
500
7.6899447
-0.20650339
141.31007
+1.6412964

10
1000
13.396712
-0.034700394
148.0757
+0.42295837

10
5000
67.070595
-0.2763443
175.85695
+0.49905396

10
10000
133.67577
-0.93006897
237.75229
+8.60614


Sorting Collections

I am having some difficulty sorting collections with sorting collections on the client.
With the vanilla meteor-boilerplate code, how would one perform a natural sort on the default Items collection?
Should be something like:  Items.find({}, {sort: {'$natural': -1}});
but I have been unable to get this to work by modifying any of the obvious client code.
I've even experimented a bit with /meteor-boilerplate/both/controllers/dashboard.js:5 to no avail.
Am I missing something with the collection-related packages used by meteor-boilerplate?
i.e.
aldeed:collection2
dburles:collection-helpers
Thanks in advance.

Does it work?

I think my problems stem more from not quite understanding the orion workflow yet.
I'm still working on using orion to generate something like /items where I can view a demo collection.
No worries -- thanks for checking in.


Improve documentation to show how to call cffi functions taking struct arguments

Dear numba team,
I am trying to figure out how to call cffi functions that take struct arguments. The documentation about it: https://numba.pydata.org/numba-doc/dev/reference/pysupported.html
is mentioning:
-- snip start --
Additional type mappings for the conversion from a buffer to the appropriate C type may be registered with Numba. This may include struct types, though it is only permitted to call functions that accept pointers to structs - passing a struct by value is unsupported. For registering a mapping, use:
numba.cffi_support.register_type(cffi_type, numba_type)
-- snip end --
I am trying to figure out how to use cffi_support.register_type for an own struct. The only "example" I've found is "./numba/tests/cffi_usecases.py", but this example calls register_type with "complex128" as the argument for numba_type, which exists already as part of the numba source code.
How do I use numba.cffi_support.register_type for an own type, e.g.
-- snip start --
typedef struct {
int n;
double *values;
} dt;
-- snip end --
As value for the cffi_type I use "ffi.typeof('struct dt')". What do I use for numba_type? And how do I later use it in a jited numba function, e.g. I try the following, which does not work:
-- snip start --
@jit(nopython=True, parallel=True)
def tic(x,y,B=9, c=5):
dt = ffi.new("dt *")
dt.n = N
dt.values = ffi.cast("double *", x.ctypes.data)
r = dummytics(dt)
return r / len(x)
-- snip end --
Thanks a lot!
Christian

We don't have general support for structs in cffi yet.


ZbxTgDaemon.py stopped and not starting after receiving a command from a private group.

After receiving a command from a private group the daemon is stopped and not starting again.
root@vmh1000 /home/zabbix/bin # sudo -u zabbix python ZbxTgDaemon.py     {u'ok': True, u'result': {u'username': u'nXXXXXXbot', u'first_name': u'zabbix_bot', u'is_bot': True, u'id': 000000000}}                                                14d1ee10f78000000001218c0000067b                                                   Traceback (most recent call last):                                                   File "ZbxTgDaemon.py", line 221, in <module>                                         main()                                                                           File "ZbxTgDaemon.py", line 176, in main                                             print m["message"]["from"]["id"]                                               KeyError: 'message'
Credentials are modified in example for a security reasons.

@Varrkan82 seems like an old error, and I've fixed it already
flashpoint:Zabbix-in-Telegram lost$ git diff ZbxTgDaemon.py | wc -l
     413

Will try to push changes, sorry.


.env.local file doesn't appear in file search

Check for existing issues

[X] Completed

Describe the bug / provide steps to reproduce it

Create file with name .env.local in the open directory
Open file search pallete
Search for env or local

Environment
Zed: v0.85.4 (stable)
OS: macOS 13.3.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.
If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.
No response

Hey @mifopen, by chance, do you have the .env.local file .gitginored?

@JosephTLyons yes, 100%

And I see where it could come from. But I've been using JetBrains IDEs for a decade and believe that "having smth in .gitignore" doesn't equal "excluded from the global project search". It's a separate setting (you can mark directories/files as "excluded") in JB IDEs and it feels natural.

I think at the moment, that behavior is baked into zed on purpose, to prevent things like node_modules (and similar setups in other languages) from absolutely polluting the file finder results.  That being said, we should probably consider some sort of setting here:

https://github.com/zed-industries/community/issues/70

Totally agree

I agree as well but maybe add a option in the setting to override it.


automatically change popover direction if there is not enough room to…

Automatically change popover direction if there is not enough room to display the view in the original direction.
For example, when displaying a popover near the bottom of the view and the popoverType is .down , this will automatically change the direction to .up .

oops accidentally mixed some code from my extensions


[release-branch.go1.21] Remove long path support hack

This commit backports https://github.com/microsoft/go/pull/1171, https://go-review.googlesource.com/c/go/+/570995 and https://go-review.googlesource.com/c/go/+/574695 to the Go 1.21 release branch.
CL 570995 and CL 574695 have been backported because they fix many edge-cases related to long path not being supported by the system.
It is necessary for APIScan compliance.

I've split the different changes in this PR into dedicated patch files so they are easier to review and maintain.


⚠ Spryr has degraded performance

In e12682a, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 3017 ms

Resolved: Spryr performance has improved in 0866cda after 9 minutes.


PP-6989 Parity check email only for successful charges

WHAT YOU DID

Parity check email only when the charges state is successful. Frontend currently sends a separate PATCH request to update email, and email is sent to ledger after an authorisation attempt (included in PAYMENT_DETAILS_ENTERED event). If charge is cancelled or expired before authorisation, email is never sent to ledger which results into failed parity check.
Ignore email in this case (loses data which could potential help services to locate failed user attempts), or
to send separate event to ledger when email is patched (but we can't distinguish service pre-filled email to patch event for backfilling).

To be addressed by PP-7276


xSPIrmSettings resource

added new resource xSPIrmSettings for managing the SharePoint Irm RMS server settings.
Issue 262

This change is

close this one, I'll rebaseline my fork and rebranch so it can be merged.


TV: maybe mention direct back needed for deep link activation

https://github.com/DelphiWorlds/HowTo/tree/main/Demos/TV
mentions FPreventExit being used so that back doesn't exit
maybe this is also useful to be mentioned regarding having activated app via deep link (where one needs to immediately exit):
https://developer.android.com/training/tv/get-started/navigation#direct-back

I'm working on a more complete demo to add in to Kastri - I'll make sure this functionality makes it into it, thanks!


Fix user

Sets user to jovyan and user to 1000 if BINDER_CACHE option is specified.
Cleans up binder directory so that subsequent Action runs build from config files instead of the initially cached Binder Dockerfile.
Updated README to use master instead of pinning at a version until I am confident that it works for many people
Added more intuitive grouping for Action output

cc:/ @betatim @choldgraf

awesome, thanks! I am probably not the right person to review the Dockerfile language (it is still kind of black-magic to me) but in general the steps you describe seem good to me!

@choldgraf I just tagged on in the PR so you know "I'm working on it" but I will have to merge this PR and do some testing on my own, not sure a good way to test Binder works correctly in CI if anyone has any ideas around that I could write some tests.
I currently just have a battery of tests for the various options to see if repo2docker etc fails.  Its not as good test coverage as I like, but it is a start ....


Use configurable args

This PR uses configurable by specifying some arguments, rather than by hardcoding some thangs, as introduced in https://github.com/teacher-bot/configurable/pull/1.

Closing in favor of #3.


file uploading first reqest posting will shadow the post parameters.

I have found a bug not knowing if anyone ever reported.
I need to post image files and parameter updates to the server. There are two possible ways to send the data in sequences.

image last

 for (var key in data) {
   req.field(key, data[key]);
 }
 req
   .attach('image', __dirname + '/assets/images/merchandise.jpg');

2.image first
 req
   .attach('image', __dirname + '/assets/images/merchandise.jpg');
 for (var key in data) {
   req.field(key, data[key]);
 }

the test result differ due to the sequence difference.
method 1 will pass, and method 2 will failed due to the parameters can not be parsed by the request object .

method 1 will pass, and method 2 will failed

Post the error message.

@tjwebb
there are no error messages, but keys are missing from req.

Can you post a link to your code? You're not giving me a lot to go on here


ZOOMA web gives 404 error

ZOOMA web (http://localhost:8009/) gives a 404 "Not Found" error.
Please advice

Did you try http://localhost:8009/zooma as well?
We cant really debug this from a distance.. Note that maintaining a custom OLS/OxO/Zooma stack is a lot of work (!) - many groups do it and they all have people doing debugging, development and so on - it is not easy, and you should prepare yourself for a few weeks of figuring stuff out.. It took me weeks to figure it out, and I am sure this applies to other groups as well. We will try to help, but please be mindful that if you want help, you should have spent roughly 8 hours understanding the problem before making an issue - and leave 3-5 days for us to come back to you! I only say this to manage your expectations going forward, so you can save yourself some frustration!

I am sorry if I gave the impression that I haven't spent enough time on the OLS/OXO installation. I have been working on in since couple of weeks. I also did flag a part of oxo solr installation which needed the docker-compose file to be updated.
My main aim to create issues is to find help obviously but also have a place for other users to check if someone else is having the same kind of issues.
Thanks for this excellent repo and the work you have done and sorry if this was not one of the expected behavior from the users.

Don't worry @rpandey19 i am also just a user - not a OLS Maintainer! I just used to be one, and I remember that it was a huge amount of work debugging stuff. I feel a bit responsible because I am partly responsible for pushing more and more of this dockerisation stuff for the ontotools out, and it was not my intention to create so much extra work for the developers here. In any case, keep your questions coming, just keep in mind that answering them might take some time!


MailItemsAccessed should have an asterisk since it is now default

In the section "Logon types and mailbox actions" the MailItemsAccessed does not have an asterisk but it should because it is now enabled by default as long as the DefaultAuditSet is applied. I tested this in my tenant and confirmed it is enabled by default for all three logon types (Owner, Delegate and Admin)

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

ID: b1aac99b-5c65-74d3-7610-b7ba4fcac493
Version Independent ID: a0b2ab87-7d52-3429-630e-6b7a316b5f23
Content: Manage mailbox auditing - Microsoft 365 Compliance
Content Source: microsoft-365/compliance/enable-mailbox-auditing.md
Service: o365-seccomp
GitHub Login: @chrisda
Microsoft Alias: chrisda

@itguysocal  Thank you for your feedback. We have the Asterisks added to the option now, Let us know if there are any other changes required on this document.

Thanks
Sri

Closing


when I go into linux, some things require an admin password that I didn't set

Please paste the output of the following command here: sudo edit-chroot -all
name: precise
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/precise...
crouton: version 1-20160902144033~master:9f8e9a22
release: precise
architecture: amd64
xmethod: xorg
targets: touch,kde
host: version 8838.0.0 (Official Build) dev-channel clapper
kernel: Linux localhost 3.10.18 #1 SMP Mon Sep 26 03:08:30 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Not unmounting /mnt/stateful_partition/crouton/chroots/precise as another instance is using it.

#### Please describe your issue:
I go into linux and try to install the new release and it asks for an admin password. I enter the password i set but it doesn't work.

#### If known, describe the steps to reproduce the issue:
Open the update manager, click update, then enter my password.

I'm pretty sure you did set up a password at some point...

(


PerfView should run the debugging application as a normal user and not as an elevated (admin) user

Hello
When we run an application with PerfView (clicking on "Run a command", or by the menus "Collect" / "Run" (Alt-R), or by command line "run"), PerfView elevates itself then run the application as elevated too.
That is a security threat, and it prevents debugging Window Store applications (they fail running, see https://social.msdn.microsoft.com/Forums/en-US/41170c0f-405c-45d8-abcd-b7a376c70c48/failure-starting-process-in-perview-with-windows-10-universal-application?forum=wpdevelop).
PerfView, even elevated, should run the application as the normal non-elevated user.
It is obviously feasible as said here:
https://blogs.msdn.microsoft.com/winsdk/2013/06/17/launching-a-process-as-a-normal-user-from-an-elevated-user/
It is even easier in PerfView as when PerfView starts non-elevated, it knows who is the normal user and it can collect the non-elevated token and pass it to the elevated PerfView process.
Thank you.
Tested with PerfView <IP_ADDRESS>
TEST:

Run PerView.
Alt-R
Type-in command to the application.
Click on run command.
Check in the task manager that the application as been launched with elevated privileges (admin user).

IMPACT:

Windows Store applications can not been profiled this way.
That is a security threat since the application has admin rights, and usuallly it was not designed for that.
The developper can not profile its application as a normal non-elevated user (the behavior of the application can be very different).

I am assuming everyone understands the obvious work-around of simply using the 'Collect' rather than the 'Run' command.   If you start PerfView's collection you can then launch your app however you wish, (and in particular non-elevated).     This should not block investigations, and thus is a convenience/security feature.
This feature is a bit more complex because you probably want to expose the ability to run the app elevated as well as non-elevated (non-elevated can be the default).
I am generally supportive of this feature.    If anyone in the community wishes to tackle it I can provide advice about the details necessary to get it done.

Hey @vancem,
What about if we add a checkbox next to the Command text box (RunCommandDialog.xml) and if is checked then the process is started elevated.

@ppozeti  - Sure having a checkbox to choose is reasonable.    The solution is straightfoward, the issue is the priority.  Because it has such a simple work-around it has low priority.   If anyone wants to take a crack at it by all means do so.

Well, can I do this? I'm just starting at contributing to open source projects and I thought that would be a good start. Could you assign this to me?

GitHub won't let me actually set the assigned to field to you, but this note indicate that others should not work on it without interacting here.

@ppozeti is this something that you're still interested in working on?

Excellent.  Then I'll keep this issue around.  Do post if you have any questions or run into issues.  Thanks.

@ppozeti
Paulo, I'm assuming that you will address this issue for Windows only, right?

Hi @brianrob ,
Above, Vance seems to be indicating that Collect did not require escalation in the past (and that it would block investigations if it were to), but now it seems to be required. Is that the case? When and why did that begin? Is there a way to navigate around this requirement? Thanks for the help.

@windhandel, collection of kernel events including CPU samples has always required administrative privileges, and last I spoke with the ETW folks, there is no plan to change this.  I think Vance's point above is that it's reasonable to not want to run the application being profiled as an admin if you are using the PerfView.exe run command.

I think you can use runas /trustlevel:0x20000 yourapp.exe on the run command line in PerfView.
I'm not sure if it's exactly the same as "non-elevated", but from experience, it was good enough for my use case when I was working on Visual Studio startup performance many (15?) years ago.


Create an Urban Gardening Community

Description:
We're promoting urban gardening. Your task is to design a community platform for urban gardeners with a green and eco-friendly design.

Difficulty: beginner
Estimated Time: 4-5 hours

Hello User,
Thank you for your interest in working on this issue. I've assigned the issue to you, and you can now start working on it. If you have any questions or need any assistance, feel free to ask. Good luck with your contribution!
Best regards,
Jayesh

Hello User,
Thank you for your interest in working on this issue. I've assigned the issue to you, and you can now start working on it. If you have any questions or need any assistance, feel free to ask. Good luck with your contribution!
Best regards,
Jayesh


Add request_source header to API requests

This will allow us to log the source of incoming requests and will be helpful in determining how our tools are used.

Coverage remained the same at 83.601% when pulling 3f77a6e7926dd38697754b6a6c999274cbfd9549 on development into 470dd5a33e4f730b69133617e16ace12aa412c60 on master.


New version: TransferFunctions v0.6.1

Registering package: TransferFunctions
Repository: https://github.com/kunzaatko/TransferFunctions.jl
Created by: @kunzaatko
Version: v0.6.1
Commit: 0f870df7e556b3a01513fa21cdcd8e9e4e1ad6f7
Reviewed by: @kunzaatko
Reference: https://github.com/kunzaatko/TransferFunctions.jl/commit/0f870df7e556b3a01513fa21cdcd8e9e4e1ad6f7#commitcomment-150521062

Stop this!


Waveform is sometimes flat

Hello.
I'm having troubles with loading the waveform, only sometimes. It's mostly on the first-time page load that the generated waveform is flat, like this:

I'm assuming that I can still see each bar because of the barMinHeight, or else it would have been invisible.
Generally, after the page is reloaded, the waveform turns out to be correct, like this:

This doesn't happen in my local development environment, probably because localhost is fast enough to load the audio file and I haven't tried simulating slow network yet. However, on the production version on the server (Netlify), this happens almost on every first-time page load in incognito. So, I'm guessing, it's working fine on subsequent page loads due to cache.
The audio file is pretty small, just 39 seconds and < 1 MB in size. Even then, today I tried to supply a generated peak data as mentioned in the documentation. The result is still the same.
I'm supplying the audio file to my container like this:

and the generated peak data JSON is available at assets/aud1.json.
And then loading the waveform like this:
window.addEventListener('load', function() {
  var mediaA = document.querySelectorAll('.audio-player')
  if (mediaA != null) {
    mediaA.forEach(medium => {
      var wavesurfer = WaveSurfer.create({
        height: 75,
        barWidth: 3,
        pixelRatio: 1,
        barMinHeight: 1,
        normalize: true,
        responsive: true,
        container: medium,
        partialRender: true,
        waveColor: '#FFE078',
        cursorColor: '#03A9F4',
        progressColor: '#03A9F4'
      })
      var source = medium.getAttribute('src')
      fetch(source.substring(0, source.length - 3) + 'json').then(peaks => {
        wavesurfer.load(source, peaks.data)
      })
  }
})

The above script is placed in  after the wavesurfer script and both are using defer attribute.
Here's a live demo: https://600ba20690370f0007e10771--hrishikeshk.netlify.app/projects/dropbox/#radio-ads
Can someone please guide me on what I might be doing wrong? I'm using wavesurfer v4.4.0.
My website's Hugo source code is available here: https://www.github.com/Hrishikesh-K/Portfolio/tree/v2/

Is your fetch function a custom function made by you, or the browser fetch? Maybe I am wrong but this is how fetch is usually used with JSON:
fetch('http://example.com/movies.json').then(response => response.json()).then(data => console.log(data));
I have never seen this bug happen when generated peaks are supplied. So I think your problem is you don’t call response.json() first on the result of fetch, and you’re not actually using the peaks.

Is your fetch function a custom function made by you, or the browser fetch? Maybe I am wrong but this is how fetch is usually used with JSON:
fetch('http://example.com/movies.json').then(response => response.json()).then(data => console.log(data));
I have never seen this bug happen when generated peaks are supplied. So I think your problem is you don’t call response.json() first on the result of fetch, and you’re not actually using the peaks.

Oh yes, I was using the browser fetch, so your code does help. Now, the waveform is always shown correctly. Thanks a lot for that.
However, now it seems like the ready event is not fired. I now have it setup like this:
window.addEventListener('load', function() {
  var mediaA = document.querySelectorAll('.audio-player')
  if (mediaA != null) {
    mediaA.forEach(medium => {
      var wavesurfer = WaveSurfer.create({
        /* config as above */
      })
      var source = medium.getAttribute('src')
      fetch(source.substring(0, source.length - 3) + 'json').then(response => response.json()).then(peaks => {
        wavesurfer.load(source, peaks.data)
      })
      wavesurfer.on('ready', function() {
        medium.parentElement.querySelector('.time-display').innerHTML = new Date(wavesurfer.getCurrentTime() * 1000).toISOString().substr(14, 5) + ' / ' + new Date(wavesurfer.getDuration() * 1000).toISOString().substr(14, 5)
      })
  }
})

The time is not set unless the file is played. It works when its played because I have added the same function for audioprocess event. It was working fine in my previous setup even when the waveform did not generate as you can see in my first screenshot. Is there any workaround for this?
The live version is now available here: https://600bd6e182123b000706a5d9--hrishikeshk.netlify.app/projects/dropbox/#radio-ads

Oh yes, I was using the browser fetch, so your code does help. Now, the waveform is always shown correctly. Thanks a lot for that.
However, now it seems like the ready event is not fired. I now have it setup like this:
window.addEventListener('load', function() {
  var mediaA = document.querySelectorAll('.audio-player')
  if (mediaA != null) {
    mediaA.forEach(medium => {
      var wavesurfer = WaveSurfer.create({
        /* config as above */
      })
      var source = medium.getAttribute('src')
      fetch(source.substring(0, source.length - 3) + 'json').then(response => response.json()).then(peaks => {
        wavesurfer.load(source, peaks.data)
      })
      wavesurfer.on('ready', function() {
        medium.parentElement.querySelector('.time-display').innerHTML = new Date(wavesurfer.getCurrentTime() * 1000).toISOString().substr(14, 5) + ' / ' + new Date(wavesurfer.getDuration() * 1000).toISOString().substr(14, 5)
      })
  }
})

The time is not set unless the file is played. It works when its played because I have added the same function for audioprocess event. It was working fine in my previous setup even when the waveform did not generate as you can see in my first screenshot. Is there any workaround for this?
The live version is now available here: https://600bd6e182123b000706a5d9--hrishikeshk.netlify.app/projects/dropbox/#radio-ads

@Hrishikesh-K try it with the sample wav json data file like below and see if you still experience the issue,
      var source = medium.getAttribute('src')
      fetch('https://wavesurfer-js.org/example/media/demo-peaks.json')
      .then(response => {
            if (!response.ok) {
                  throw new Error('HTTP error ' + response.status);
            }
            return response.json();
      })
      .then(peaks => {

            // load peaks into wavesurfer.js
            wavesurfer.load(source, peaks);

      })
      .catch(e => {
            console.error('error', e);
      });

@Hrishikesh-K try it with the sample wav json data file like below and see if you still experience the issue,
      var source = medium.getAttribute('src')
      fetch('https://wavesurfer-js.org/example/media/demo-peaks.json')
      .then(response => {
            if (!response.ok) {
                  throw new Error('HTTP error ' + response.status);
            }
            return response.json();
      })
      .then(peaks => {

            // load peaks into wavesurfer.js
            wavesurfer.load(source, peaks);

      })
      .catch(e => {
            console.error('error', e);
      });

Thanks @entonbiba. I'm now getting mixed results, but it's probably fixed.
With your code from above, I'm getting a waveform + the ready event is working fine. All good.

So, I replaced, 'https://wavesurfer-js.org/example/media/demo-peaks.json' with source.substring(0, source.length - 3) + 'json' from my code as above and it seems to work fine too.

However, just like the demo code from https://wavesurfer-js.org/faq/ and my previous code, when I change wavesurfer.load(source, peaks) to wavesurfer.load(source, peaks.data), neither the waveform, nor the ready event works.

Then, if I keep my code from the previous reply untouched, the ready event isn't working as I have mentioned.

Finally, if I change wavesurfer.load(source, peaks.data) to wavesurfer.load(source, peaks) in that code, none of the 2 things work.

So my question is, it seems like, option 1 is working perfectly for my use case, but I don't understand why. Shouldn't it be peaks.data instead of peaks?
My JSON is available here: https://600bd6e182123b000706a5d9--hrishikeshk.netlify.app/projects/dropbox/assets/aud1.json.

Thanks @entonbiba. I'm now getting mixed results, but it's probably fixed.
With your code from above, I'm getting a waveform + the ready event is working fine. All good.

So, I replaced, 'https://wavesurfer-js.org/example/media/demo-peaks.json' with source.substring(0, source.length - 3) + 'json' from my code as above and it seems to work fine too.

However, just like the demo code from https://wavesurfer-js.org/faq/ and my previous code, when I change wavesurfer.load(source, peaks) to wavesurfer.load(source, peaks.data), neither the waveform, nor the ready event works.

Then, if I keep my code from the previous reply untouched, the ready event isn't working as I have mentioned.

Finally, if I change wavesurfer.load(source, peaks.data) to wavesurfer.load(source, peaks) in that code, none of the 2 things work.

So my question is, it seems like, option 1 is working perfectly for my use case, but I don't understand why. Shouldn't it be peaks.data instead of peaks?
My JSON is available here: https://600bd6e182123b000706a5d9--hrishikeshk.netlify.app/projects/dropbox/assets/aud1.json.

After some console.log statements, I have figured out that, peaks.data is indeed needed and that my code from https://github.com/katspaugh/wavesurfer.js/issues/2165#issuecomment-765886651 was correct. It produces the same result with my JSON and the demo JSON.

After some console.log statements, I have figured out that, peaks.data is indeed needed and that my code from https://github.com/katspaugh/wavesurfer.js/issues/2165#issuecomment-765886651 was correct. It produces the same result with my JSON and the demo JSON.

@Hrishikesh-K do you have CORS enabled on that mp3 file? add the headers to the response so we can test your mp3/json using codepen

@Hrishikesh-K do you have CORS enabled on that mp3 file? add the headers to the response so we can test your mp3/json using codepen

Done. All CORS enabled (access-control-allow-origin: *).
Here's the:
MP3: https://600c60595d5ff20009ef949d--hrishikeshk.netlify.app/projects/dropbox/assets/aud1.mp3
JSON: https://600c60595d5ff20009ef949d--hrishikeshk.netlify.app/projects/dropbox/assets/aud1.json
Thanks for taking a look into this.

Done. All CORS enabled (access-control-allow-origin: *).
Here's the:
MP3: https://600c60595d5ff20009ef949d--hrishikeshk.netlify.app/projects/dropbox/assets/aud1.mp3
JSON: https://600c60595d5ff20009ef949d--hrishikeshk.netlify.app/projects/dropbox/assets/aud1.json
Thanks for taking a look into this.

To be able to chain promises with .then() syntax you need to return them. so its return response.json() not just response.json() since that returns a promise.
If hugo supports ES6 (im sure theres a way to make it transpile the code) then I recommend using async/await syntax because you won't be confused by errors like this.
So the solution is:
var source = medium.getAttribute('src')
fetch(source.substring(0, source.length - 3) + 'json').then(response => {
  return response.json() // added return here
}).then(peaks => {
  wavesurfer.load(source, peaks.data)
})

or with async syntax:
var source = medium.getAttribute('src')
const response = await fetch(source.substring(0, source.length - 3) + 'json');
const peaks = await response.json();
wavesurfer.load(source, peaks.data);

To be able to chain promises with .then() syntax you need to return them. so its return response.json() not just response.json() since that returns a promise.
If hugo supports ES6 (im sure theres a way to make it transpile the code) then I recommend using async/await syntax because you won't be confused by errors like this.
So the solution is:
var source = medium.getAttribute('src')
fetch(source.substring(0, source.length - 3) + 'json').then(response => {
  return response.json() // added return here
}).then(peaks => {
  wavesurfer.load(source, peaks.data)
})

or with async syntax:
var source = medium.getAttribute('src')
const response = await fetch(source.substring(0, source.length - 3) + 'json');
const peaks = await response.json();
wavesurfer.load(source, peaks.data);

Sadly, both of them didn't work. As in, both work to load the waveform, but the ready event is still not fired. 😢

Sadly, both of them didn't work. As in, both work to load the waveform, but the ready event is still not fired. 😢

Does the ready event run when you click the waveform or when you do waveform.fireEvent('interaction') manually?

Does the ready event run when you click the waveform or when you do waveform.fireEvent('interaction') manually?

Yes, it does run when I click the waveform, as reported by my console.log statement.

Yes, it does run when I click the waveform, as reported by my console.log statement.

Either add backend: 'MediaElement' to your params. This will use HTML5 audio instead of WebAudio API. It has some limitations on iOS for example you cant set the volume or playback rate with that backend.
Or you can keep the deafult backend (WebAudio) and just add wavesurfer.fireEvent('interaction') right after your load() call. It won't cause any problems. It's probably like that because mobile browsers expect the user to interact with the site before allowing audio playback. In this case it's not actually being blocked though so it servers no purpose. Maybe in the past the browser behaved differently and that's why the requirement for interaction to fire exists.

Either add backend: 'MediaElement' to your params. This will use HTML5 audio instead of WebAudio API. It has some limitations on iOS for example you cant set the volume or playback rate with that backend.
Or you can keep the deafult backend (WebAudio) and just add wavesurfer.fireEvent('interaction') right after your load() call. It won't cause any problems. It's probably like that because mobile browsers expect the user to interact with the site before allowing audio playback. In this case it's not actually being blocked though so it servers no purpose. Maybe in the past the browser behaved differently and that's why the requirement for interaction to fire exists.

Since I needed to manipulate volume, I could not use MediaElement. But, wavesurfer.fireEvent('interaction') worked perfectly. Thanks a lot @sundayz @entonbiba. You guys have helped a lot! Much appreciated.

Since I needed to manipulate volume, I could not use MediaElement. But, wavesurfer.fireEvent('interaction') worked perfectly. Thanks a lot @sundayz @entonbiba. You guys have helped a lot! Much appreciated.


give example the ability to zoom in/out and scroll side to side

idk how to do this so i think it should be documented how to do it

As for panning, see the member pan_zoom of GraphEditorState.
Unlike the name suggests, though, zoom does not seem to be supported natively: https://github.com/setzer22/egui_node_graph/issues/53


Misc fixes & improvements

This is a mixed bag of tiny fixes and improvements that I came up with as I was browsing the docs and the code.

Thank you!!!


Resolve some circular imports in ajax/GoogleStorage

Split from #3447.
libs/ajax.js imports from libs/ajax/GoogleStorage.ts, which imports from libs/ajax.js.
This resolves that circular imports by...

moving withRequesterPays, fetchBuckets, and saToken from ajax.js to ajax/GoogleStorage.ts
moving canUseWorkspaceProject and the Billing request that it depends on to ajax/Billing.js
Copy getUser from libs/auth.js to libs/state.js to allow getting the current user without importing from libs/auth (which imports from libs/ajax)

Interestingly, there's still a circular import in ajax-common: it imports from auth which imports from ajax, which imports from ajax-common. But removing that import from auth makes the tests fail, because of another circular import between libs/auth and libs/error.
This also moves the checkBucketAccess and checkBucketLocation requests from ajax.js to ajax/GoogleStorage.ts.
Reviewing commit by commit may be easier.
Co-authored-by<EMAIL_ADDRESS>

@jdcanas was there a separate ticket for this?

@jdcanas was there a separate ticket for this?

No, I'll make a subtask under the main one for you to link for compliance, IA-3832

Rebased PR branch on dev.


Fix: ASB-2266 - E2E Testing - Document Links broken

Describe your changes
https://pins-ds.atlassian.net/browse/ASB-2266?atlOrigin=eyJpIjoiNjAyZDk3NWZlNTQ0NGRkOWJmYjFkN2EwNzNhMWM0MjkiLCJwIjoiaiJ9
Type of change 🧩

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[ ] Other (please explain in the description section above)

Checklist before requesting a review

[ ] I have performed a self-review of my own code
[ ] I have double checked this work does not include any hardcoded secrets or passwords
[ ] I have made corresponding changes to the documentation
[ ] I have provided details on how I have tested my code
[ ] I have referenced the ticket number above
[ ] I have provided a description of the ticket
[ ] I have included unit tests to cover any testable code changes

:tada: This PR is included in version 2.18.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Increasing Fault Domain in a Region

It seems we could increase the fault domain count to 3 if we select unmanaged disks for the deployment, the documents needs to reflect that.  For example, in Canada East and Australia regions the number of fault domains can be increased from 2 to 3 provided we use unmanaged disks.

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

ID: 948b29e3-d488-0a0e-89c7-42849a93522d
Version Independent ID: 8c986086-9343-4b99-ae53-f4fd1159d4f8
Content: Manage the availability of Windows VMs in Azure
Content Source: articles/virtual-machines/windows/manage-availability.md
Service: virtual-machines-windows
GitHub Login: @cynthn
Microsoft Alias: cynthn

Thanks for the feedback! We are currently investigating and will update you shortly.

This is true that 3 is the acceptable value for unmanaged disks. This doc talks about the fault domain number for managed disks. There is another GitHub issue open to update this information in the document. We will keep that issue open assigned to author to get it updated and close this issue.
If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.


How to set MXNET_CPU_WORKER_NTHREADS in R

How to set MXNET_CPU_WORKER_NTHREADS in R

You can set it just like other environmental variables.

I have set as Sys.setenv(MXNET_CPU_WORKER_NTHREADS = as.integer(1)) in the beginning of file and used ctx = mx.cpu()
It still takes all available COREs
Please guide how to use 6 out of 8 available core only

Hi,
I have set as Sys.setenv(MXNET_CPU_WORKER_NTHREADS = as.integer(1)) in the beginning of file and used ctx = mx.cpu()
It still takes all available COREs
Please guide how to use 6 out of 8 available core only
Thank you
Shiv
From: Qiang Kou (KK<EMAIL_ADDRESS>Sent: Wednesday, June 21, 2017 2:09 AM
To: dmlc/mxnet<EMAIL_ADDRESS>Cc: Shiv Onkar Deepak Kumar<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [dmlc/mxnet] How to set MXNET_CPU_WORKER_NTHREADS in R (#6759)
You can set it just like other environmental variables.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/dmlc/mxnet/issues/6759#issuecomment-309884065, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKntJT0KJfsgtfBHJYS8KJMaBKFzOCjPks5sGC3VgaJpZM4N_JW3.

Can you tell me which operating system and BLAS library you are using?

If you installed the prebuilt pkg provided by us, it should include openblas.
You can find how to change the number of threads in openblas from https://github.com/xianyi/OpenBLAS#set-the-number-of-threads-with-environment-variables

It would have helpful, is examples were given in R too.
I set
Sys.setenv(OPENBLAS_NUM_THREADS = as.integer(1))
ctx = mx.cpu()
and still all COREs are utilised. Lokks like "ctx = mx.cpu()" overriding all setups


⚠ Bofrost.es has degraded performance

In d96f8e5, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1707 ms

Resolved: Bofrost.es performance has improved in 5f2ab98 after 6 minutes.


Feature/66 muralform

Summary
Added showAll api calls for tour, collection, artist, borough,
as some of them will be necessary to complete the create mural form on frontend.
Lots of files changed, but it's all the same logic copy pasted so don't worry too much...
Test Plan
manually
Related Issues
contributes toward 66

Before merging, Vercel is blocked from building and deploying until the eslint warnings are fixed

Before merging, Vercel is blocked from building and deploying until the eslint warnings are fixed


fix(vite): fail to load components in the directory above package root

fix #344

Current behavior
For example, when loading ./src/foo.tsx, an import sentence is inserted like below:
import "virtual:kuma-ui/src/foo-(filehash).css";

(this logic is written in transform())
https://github.com/kuma-ui/kuma-ui/blob/0829b750ba1cf7eaef4206f6798c0394f01abceb/packages/vite/src/index.ts#L68-L76
However, using the relative path to their files for the import path is harmful when loading components in the directory above the current directory.
This situation often occurs in monorepo projects.
Let's say we have a project which has two packages ui and website.
When importing packages/ui/foo.tsx from whatever component exists in website, the import sentence is the following:
import "virtual:kuma-ui/../ui/foo-(filehash).css";

(Notice that Vite forces the current directory to be package root, so the current directory is set to packages/website.)
This is taken as ui/foo-(filehash).css, which can't recognize because it doesn't start with virtual:kuma-ui.

Behavior after this PR
The id which isn't related to the relative path is used for the import path, which is generated like this:
const cssTableId = `${Date.now().toString(16)}x${cssTable.length}`;
const url = `${virtualModuleId}/${cssTableId}.css`;

Based on the above suggestion, we have changed the behavior to use such path names. (thanks @kotarella1110 ;)
import "virtual:kuma-ui/(hash of path)/(filename)-(hash of css content).css";

e.g.)
import "virtual:kuma-ui/316724801/App-708560247.css";

With this change, CSS paths that have not been modified are now maintained and do not need to be reloaded when HMR.


Documentation clearification on tslint:recommended preset

Feature request
Is your feature request related to a problem? Please describe.
I use the tslint:recommended preset. Now I want to know if there is any advantage using this preset with the --project argument. I looked at https://github.com/palantir/tslint/blob/master/docs/usage/configuration/index.md#configuration-presets
at found only the info that tslint:all needs --project, but not if --project gives any value or costs only time for the other presets.
Describe the solution you'd like
Add a sentence to the documentation that say if tslint:recommended has any rules that needs --project

☠ TSLint's time has come! ☠
TSLint is no longer accepting most feature requests per #4534. See typescript-eslint.io for the new, shiny way to lint your TypeScript code with ESLint. ✨
It was a pleasure open sourcing with you all!

🤖 Beep boop! 👉  TSLint is deprecated 👈 (#4534)  and you should switch to typescript-eslint! 🤖
🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋


osdsdock stops backend pool discovery on empty pool list retrieval

Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
osdsdock stops backend pool discovery on empty pool list retrieval.
What you expected to happen:
osdsdock continues backend pool discovery even if it received an empty pool list.
How to reproduce it (as minimally and precisely as possible):
Try to setup an all-in-one opensds box with only ceph backend using the current master of opensds-installer.
Anything else we need to know?:
Please find my analysis below.
osdsdock stops backend pool discovery loop when Discover() got an empty pool list from the underlying driver.
Getting an empty list of pools here is not a failure, but a successful result originated from ListPools() of backend drivers. So, Discover() should not return an error (using fmt.Errorf())
at line 178:
https://github.com/opensds/opensds/blob/stable/capri/pkg/dock/discovery/discovery.go#L178
On the contrary, Discover() should return an error at line 167 because there 'err' contains error information from the underlying ListPools(). For example, communication failure with the b
ackend storage server.
https://github.com/opensds/opensds/blob/stable/capri/pkg/dock/discovery/discovery.go#L167
The below is terminal log that I took right after opensds-installer completion.
[ubuntu@ubuntu203 ~(opensds_admin)]$ osdsctl pool list
+----+------+-------------+--------+---------------+--------------+
| Id | Name | Description | Status | TotalCapacity | FreeCapacity |
+----+------+-------------+--------+---------------+--------------+
+----+------+-------------+--------+---------------+--------------+

[ubuntu@ubuntu203 ~(opensds_admin)]$ cat /var/log/opensds/osdsdock.INFO
Log file created at: 2019/08/23 13:02:18
Running on machine: ubuntu203
Binary: Built with gc go1.11.2 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0823 13:02:18.823034   21471 logs.go:75] [Info] LogFlushFrequency: 5s
I0823 13:02:18.828333   21471 dock.go:112] Dock server initialized! Start listening on port:[::]:50050
W0823 13:02:18.835255   21471 discovery.go:173] The pool of dock 1d725929-be84-5b4c-bd18-1e7c82c5cc3b is empty!
E0823 13:02:18.835434   21471 dock.go:96] when calling capabilty report method:There is no pool can be found.

In the last line above, "There is no pool can be found" is returned from line 178-179 of Discovery(), and osdsdock stops periodical discovery process.
Also, after restarting osdsdock, I got the result below.
[root@ubuntu203 opensds-hotpot-linux-amd64(opensds_admin)]# osdsctl pool list
+--------------------------------------+------+-------------+--------+---------------+--------------+
| Id                                   | Name | Description | Status | TotalCapacity | FreeCapacity |
+--------------------------------------+------+-------------+--------+---------------+--------------+
| 0517f561-85b3-5f6a-a38d-8b5a08bff7df | rbd  |             |        | 23            | 23           |
+--------------------------------------+------+-------------+--------+---------------+--------------+

ubuntu@ubuntu203:~$ cat /var/log/opensds/osdsdock.INFO
Log file created at: 2019/08/23 13:07:45
Running on machine: ubuntu203
Binary: Built with gc go1.11.2 for linux/amd64
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0823 13:07:45.932021   22590 logs.go:75] [Info] LogFlushFrequency: 5s
I0823 13:07:45.933064   22590 dock.go:112] Dock server initialized! Start listening on port:[::]:50050
I0823 13:07:45.944763   22590 discovery.go:161] Backend ceph discovered pool rbd
I0823 13:08:45.959946   22590 discovery.go:161] Backend ceph discovered pool rbd

# osdsdock contines to output the above lines while checking pool list of backend.

IMHO, this is related to multiple other issues.
For example, now opensds-installer has several issues of ceph backend installation, and some of them could have the same root cause.
https://github.com/opensds/opensds-installer/issues/255 etc.
Also, ceph mimic integration issue could have the same root cause.
https://github.com/opensds/opensds/issues/989
Environment:

Hotpot(release/branch) version: v0.6.1 (Capri)

OS (e.g. from /etc/os-release):  Ubuntu 16.04.6

Kernel (e.g. uname -a): Linux ubuntu203 4.4.0-157-generic #185-Ubuntu SMP Tue Jul 23 09:17:01 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Install tools: opensds-installer

Others:

@Shruthi-1MN please take a look at it

it's solved with pr opensds/opensds-installer#273, will close it now

@wisererik Ah, my installer side fix is just a workaround, and we need to pay attention to osdsdock side error handling while discovery process, IMHO.
So, please do not close this issue yet.
If my point makes sense and other folks are busy, I can work on this osdsdock side topic.

OK, Himanshu told me it's discoveried by osdsdock. will check again until there is no problem in master branch.

I have same issue. After There is no pool can be found came out, discovery is stopped.
I used kubernetes install(https://github.com/opensds/opensds/tree/master/install/kubernetes)
And I wonder how discover module find LVM volume. sometimes it looks not finding when I add new VG(vgcreate).

Hi,
I created a tentative PR for discussion.
https://github.com/opensds/opensds/pull/1014
I hope NOTEs lines can help core-dev members to understand my points.
Please note the PR is not intended for merge at the moment because it contains
discussion notes and does not contain test code.

Some additional notes from slack discussion with Himanshu and Ashit regarding https://github.com/opensds/opensds/pull/1014

There are 2 points.

Return a non-error result on empty pool list retrieval. (L179)

I think this is the root cause of this issue.

Return an error on backend pool list retrieval failure. (L168)

Also, another discussion point is that osdsdock handles multiple backends by a single process. Thus, the best resolution could be having per-backend state and stop polling on faulty backend(s) only using per backend error count in order to make 'osdsdock' keep working for healthy (survive?) backend(s).
In this sense, using goroutine per backend would also make sense, IMHO.


[TRI-1168] When indexing Jobs, if they fail to parse the errors don't get sent back to users

To reproduce create a Job with an interval of less than 60 seconds, and reun npx @trigger.dev/cli@latest dev
client.defineJob({
  // This is the unique identifier for your Job, it must be unique across all Jobs in your project
  id: "job-3",
  name: "Third job",
  version: "0.0.3",
  // This is triggered by an event using eventTrigger. You can also trigger Jobs with webhooks, on schedules, and more: https://trigger.dev/docs/documentation/concepts/triggers/introduction
  trigger: intervalTrigger({
    seconds: 5,
  }),
  run: async (payload, io, ctx) => {
    await io.logger.info("You console it! 🤦");
  },
});

This will silently fail to appear in the dashboard and will stop all other Jobs from registering as well.
We need to change this code to use safeParse and to return an error with the details if it fails.
https://github.com/triggerdotdev/trigger.dev/blob/1d7e5737a0234b5654a685b08f5c09720018fbb9/apps/webapp/app/services/endpointApi.server.ts#L131
From SyncLinear.com | TRI-1168

This isn't as easy as it sounds, because indexing an endpoint occurs in a background graphile worker task, and wouldn't make sense in the context of indexing production endpoints. We should probably surface the error in the dashboard in some way instead, and maybe an email as well (especially for production endpoints). We should also make it so this doesn't actually cause a parse issue. Another thing we could do is have the dev command poll an API endpoint with the EndpointIndex ID and that would give back information about what happened in the indexing and if there were any errors, that way the error would display in the CLI.

This is a duplicate of #514


Support theme color selection

I am also interested in this subject.
Having the ability to customize the theme color can enhance the user experience and make the interface more personalized.

oops, I created a new issue at #669


freeze Akka

test run: https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-community-build/824/consoleFull (404 til Jenkins catches up)


Antlr4 failure whenever running an az vm * command.  Stock install of CLI on WSL

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az vm create
Errors:
No module named 'antlr4'
Traceback (most recent call last):
lib/python3/dist-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
azure/cli/core/commands/__init__.py, ln 528, in execute
    self.commands_loader.load_arguments(command)
dist-packages/azure/cli/core/__init__.py, ln 300, in load_arguments
    loader.load_arguments(command)  # this adds entries to the argument registries
azure/cli/command_modules/vm/__init__.py, ln 31, in load_arguments
    from azure.cli.command_modules.vm._params import load_arguments
azure/cli/command_modules/vm/_params.py, ln 31, in <module>
    from azure.cli.command_modules.monitor.actions import get_period_type
azure/cli/command_modules/monitor/actions.py, ln 7, in <module>
    import antlr4
ModuleNotFoundError: No module named 'antlr4'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az vm create -n {} -g {} --public-ip-address-dns-name {} --image {} --data-disk-sizes-gb {} {} --size {} --generate-ssh-keys

Expected Behavior
Environment Summary
Linux-4.4.0-18362-Microsoft-x86_64-with-glibc2.29
Python 3.8.2
Shell: bash

azure-cli 2.0.81

Extensions:
azure-devops 0.17.0

Additional Context

@qwordy please take a look

Could you please upgrade to latest version and try again? 2.0.81 is old.

Or try sudo pip3 install antlr4-python3-runtime

Are you using the bundled Azure CLI of Ubuntu? The package is old and has some problems. Could you install the latest version and retry?
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

Any update?


[prefer-readonly-type] - Add an option to opt out of function parameters check

The readonly word in fn parameters when declaring a function takes up really much editor space. With my max-len settings my editor breaks up a simple functional component declaration into many lines.
I have another es-lint rule that checks that fn arguments are not mutated.
I like:
export function UserCanSeeStoryboardDashboard({text}: {text: string}): JSX.Element {
  // ...
}

I don't like:
export function UserCanSeeStoryboardDashboard({
  text,
}: {
  readonly text: string;
}): JSX.Element {
  // ...
}

I have another es-lint rule that checks that fn arguments are not mutated.

Are you referring to the rule prefer-readonly-parameters ?

@avalanche1, I assume you are creating a React Functional Component in the given example. Wouldn't it be best to pull out the prop's type into it's own declared type like this:
type Props = {
  readonly text: string;
}

export function UserCanSeeStoryboardDashboard({ text }: Props): JSX.Element {
  // ...
}

Also, the return type of such an function should be of type FunctionalComponentElement (rather than JSX.Element):
type Props = {
  readonly text: string;
}

type Element = React.FunctionalComponentElement<Props>;

export function UserCanSeeStoryboardDashboard({ text }: Props): Element {
  // ...
}

If you use an arrow function expression instead of a function declaration, you can just declare the function as a whole to be a FunctionalComponent. The parameter types and return type will then be inferred from this:
type Props = {
  readonly text: string;
}

type Component = React.FunctionalComponent<Props>;

export const UserCanSeeStoryboardDashboard: Component = ({ text }) => {
  // ...
}

Are you referring to the rule prefer-readonly-parameters ?

no-param-reassign

Wouldn't it be best to pull out the prop's type into it's own declared type like this

It depends. If there are multiple params - then yes. If there is one-two params - why the bloat?

Also, the return type of such an function should be of type FunctionalComponentElement (rather than JSX.Element):

JSX.Element has been working just fine for us so far

If you use an arrow function expression instead of a function declaration,

Our code style guide prohibits usage of  function expressions. We like top-down approach to code which Makes heavy use of function hoisting.

no-param-reassign doesn't prevent changing sub-properties of a parameter.

why the bloat?

In my opinion this wouldn't be bloat; instead it would be a separation of type and executable code.
As a side note, I'd also recommended exporting the props type (as well as the component type).

JSX.Element has been working just fine for us so far

JSX.Element vs React.FunctionalComponentElement<Props> is like Array<any> vs Array<SomeDataStructure>. It works but it's more generic.

I think I'm going to close this issue as parameters should be readonly.
#51 will make inline readonly parameter less ugly once it implemented.


Fix: Performance Degradation #811

EC usage: ScalarMult (and related methods) must be invoked directly on Curve and not on Params. This is in order to take advantage of the speedup introduced by go1.6.
Signed-off-by: Angelo De Caro<EMAIL_ADDRESS>

unit and behave tests passed. Merging


Reuse survey

Fixes #326 #339 #338

Adds the reuse survey link
Fixes the Verify At Source text
Changes the attribution/html embed copy button text

Developer Certificate of Origin Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors. 1 Letterman Drive Suite D4700 San Francisco, CA, 94129
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
(b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
(c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
(d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.

Button for rich text should read, "Copy rich text"
Reuse survey language underneath should read: "Let us know how you use this image in this quick survey."


Dcwc 2010 decision date

DCWC-2010
Description
Application received will now always show the estimated decision date.
List of proposed changes:

Removed logic to hide estimated decision date

What to test for/How to test
Additional Notes

The latest build seems to be hung, and unable to load.


Compatibility for tensorflow 0.11 (fix #11)

Because of op_scope -> name_scope, it will not work under 0.10 anymore.

Thanks.