Diagram incorrect

Documentation feedback

Page title: Joins
Page URL: https://crate.io/docs/crate/reference/en/latest/concepts/joins.rst
Source: https://github.com/crate/crate/blob/master/docs/concepts/joins.html

The png diagram for Figure 5, is incorrect for the right hand side join. It should be Y<10 not Y>100

@doreilly257 Thanks for your contribution! A PR has been made to fix this issue. :)


[bug] Persistant connection fails to persist

Hello,
I noticed that even if I ticked the "autoconnect" box on the login screen, I was disconnected after a while (about 1/2 work day), it's quite annoying since I may be disconnected right after validating a new comment on an existing task.

Should be fixed now?

Indeed :)
:+1:
welldone !

Hooray :+1:  Please remember to close the issue :smile:


fixed deprecated functions in vacuum.py and map.py

I can confirm that this solved the issue

Additional fix necessary for Image.ANTIALIAS, which needs to be Image.Resampling.LANCZOS for the live map to work again.


Add support for @contentful/app-sdk

I am working on creating an entry editor for some content model. I am using @contentful/app-sdk and @contentful/forma-36-react-components. I am able to have the UI the way I want with the forma-36 components but I also want to use @contentful/field-editor-reference to have access to the original functionality of the field.
The problem I am running into is when I pass sdk to the MultipleEntryReferenceEditor component from @contentful/field-editor-reference. I get the following error
Type ‘import("/node_modules/@contentful/app-sdk/dist/types").FieldExtensionSDK’ is not assignable to type ‘import("/node_modules/contentful-ui-extensions-sdk/dist/types").FieldExtensionSDK’.
I believe Contentful recommends using @contentful/app-sdk over contentful-ui-extensions-sdk but @contentful/field-editor-reference has a transient dependency on contentful-ui-extensions-sdk.

I experience the same issue but found a way to get around it. So until it's properly fixed, you can maybe try that.
In stead of using the sdk directly, I convert it to the type any.
import { MultipleEntryReferenceEditor } from '@contentful/field-editor-reference';

// ...

const Field = (props: FieldProps) => {
  // If you only want to extend Contentful's default editing experience
  // reuse Contentful's editor components
  // -> https://www.contentful.com/developers/docs/extensibility/field-editors/
  const { sdk } = props
  const sdkCast: any = sdk as any;
  return (
    <MultipleEntryReferenceEditor
      isInitiallyDisabled={false}
      hasCardEditActions={true}
      sdk={sdkCast}
      viewType='link'
      parameters={{
        instance: {
          showCreateEntityAction: true,
          showLinkEntityAction: true,
        },
      }}
    ></MultipleEntryReferenceEditor>
  );
};

I experience the same issue but found a way to get around it. So until it's properly fixed, you can maybe try that.
In stead of using the sdk directly, I convert it to the type any.
import { MultipleEntryReferenceEditor } from '@contentful/field-editor-reference';

// ...

const Field = (props: FieldProps) => {
  // If you only want to extend Contentful's default editing experience
  // reuse Contentful's editor components
  // -> https://www.contentful.com/developers/docs/extensibility/field-editors/
  const { sdk } = props
  const sdkCast: any = sdk as any;
  return (
    <MultipleEntryReferenceEditor
      isInitiallyDisabled={false}
      hasCardEditActions={true}
      sdk={sdkCast}
      viewType='link'
      parameters={{
        instance: {
          showCreateEntityAction: true,
          showLinkEntityAction: true,
        },
      }}
    ></MultipleEntryReferenceEditor>
  );
};

Thanks @caroillemann. Now it is showing some errors in index.tsx. The app works fine without the MultipleReferenceEditor component.
src/index.tsx
import React from 'react';
import { render } from 'react-dom';

import {
  AppExtensionSDK,
  FieldExtensionSDK,
  SidebarExtensionSDK,
  DialogExtensionSDK,
  EditorExtensionSDK,
  PageExtensionSDK,
  BaseExtensionSDK,
  init,
  locations
} from '@contentful/app-sdk';
import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>import './index.css';

import Config from './components/ConfigScreen';
import EntryEditor from './components/EntryEditor';
import Page from './components/Page';
import Sidebar from './components/Sidebar';
import Field from './components/Field';
import Dialog from './components/Dialog';

import LocalhostWarning from './components/LocalhostWarning';

if (process.env.NODE_ENV === 'development' && window.self === window.top) {
  // You can remove this if block before deploying your app
  const root = document.getElementById('root');
  render(<LocalhostWarning />, root);
} else {
  init((sdk: BaseExtensionSDK) => {
    const root = document.getElementById('root');

    // All possible locations for your app
    // Feel free to remove unused locations
    // Dont forget to delete the file too :)
    const ComponentLocationSettings = [
      {
        location: locations.LOCATION_APP_CONFIG,
        component: <Config sdk={(sdk as unknown) as AppExtensionSDK} />
      },
      {
        location: locations.LOCATION_ENTRY_FIELD,
        component: <Field sdk={(sdk as unknown) as FieldExtensionSDK} />
      },
      {
        location: locations.LOCATION_ENTRY_EDITOR,
        component: <EntryEditor sdk={(sdk as unknown) as EditorExtensionSDK} />
      },
      {
        location: locations.LOCATION_DIALOG,
        component: <Dialog sdk={(sdk as unknown) as DialogExtensionSDK} />
      },
      {
        location: locations.LOCATION_ENTRY_SIDEBAR,
        component: <Sidebar sdk={(sdk as unknown) as SidebarExtensionSDK} />
      },
      {
        location: locations.LOCATION_PAGE,
        component: <Page sdk={(sdk as unknown) as PageExtensionSDK} />
      }
    ];

    // Select a component depending on a location in which the app is rendered.
    ComponentLocationSettings.forEach(componentLocationSetting => {
      if (sdk.location.is(componentLocationSetting.location)) {
        render(componentLocationSetting.component, root);
      }
    });
  });
}

src/components/EntryEditor.tsx
import React from 'react';
import { Accordion, AccordionItem, TextField } from '@contentful/forma-36-react-components';
import { EditorExtensionSDK, FieldExtensionSDK } from '@contentful/app-sdk';
import { MultipleEntryReferenceEditor } from '@contentful/field-editor-reference';
interface EditorProps {
  sdk: EditorExtensionSDK;
}

interface MyReferenceEditorProps {
  sdk: FieldExtensionSDK
}

const LinkedField = (props: MyReferenceEditorProps) => {
  const { sdk } = props
  const sdkCast: any = sdk as any;
  return (
    <MultipleEntryReferenceEditor
      isInitiallyDisabled={false}
      hasCardEditActions={true}
      sdk={sdkCast}
      viewType='link'
      parameters={{
        instance: {
          showCreateEntityAction: true,
          showLinkEntityAction: true,
        },
      }}
    ></MultipleEntryReferenceEditor>
  );
};

const Entry = (props: EditorProps) => {
  const { sdk } = props
  const { entry } = sdk;
  const { fields } = entry;
  return <>

      <TextField
        name="abc"
        id="123"
        labelText="User Name"
        countCharacters
        value={fields.description.getValue()}
        width="full"
      />

      <Accordion>
        <AccordionItem title="What payment methods do you accept?">
          Customers on the Team tier can pay with a credit card (American Express,
          MasterCard or Visa). Enterprise customers have the choice of paying with a
          credit card or wire transfer.
          </AccordionItem>
      </Accordion>

    <LinkedField sdk={sdk as any} />
  </>;
};

export default Entry;

error

Thanks @caroillemann. Now it is showing some errors in index.tsx. The app works fine without the MultipleReferenceEditor component.
src/index.tsx
import React from 'react';
import { render } from 'react-dom';

import {
  AppExtensionSDK,
  FieldExtensionSDK,
  SidebarExtensionSDK,
  DialogExtensionSDK,
  EditorExtensionSDK,
  PageExtensionSDK,
  BaseExtensionSDK,
  init,
  locations
} from '@contentful/app-sdk';
import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>import<EMAIL_ADDRESS>import './index.css';

import Config from './components/ConfigScreen';
import EntryEditor from './components/EntryEditor';
import Page from './components/Page';
import Sidebar from './components/Sidebar';
import Field from './components/Field';
import Dialog from './components/Dialog';

import LocalhostWarning from './components/LocalhostWarning';

if (process.env.NODE_ENV === 'development' && window.self === window.top) {
  // You can remove this if block before deploying your app
  const root = document.getElementById('root');
  render(<LocalhostWarning />, root);
} else {
  init((sdk: BaseExtensionSDK) => {
    const root = document.getElementById('root');

    // All possible locations for your app
    // Feel free to remove unused locations
    // Dont forget to delete the file too :)
    const ComponentLocationSettings = [
      {
        location: locations.LOCATION_APP_CONFIG,
        component: <Config sdk={(sdk as unknown) as AppExtensionSDK} />
      },
      {
        location: locations.LOCATION_ENTRY_FIELD,
        component: <Field sdk={(sdk as unknown) as FieldExtensionSDK} />
      },
      {
        location: locations.LOCATION_ENTRY_EDITOR,
        component: <EntryEditor sdk={(sdk as unknown) as EditorExtensionSDK} />
      },
      {
        location: locations.LOCATION_DIALOG,
        component: <Dialog sdk={(sdk as unknown) as DialogExtensionSDK} />
      },
      {
        location: locations.LOCATION_ENTRY_SIDEBAR,
        component: <Sidebar sdk={(sdk as unknown) as SidebarExtensionSDK} />
      },
      {
        location: locations.LOCATION_PAGE,
        component: <Page sdk={(sdk as unknown) as PageExtensionSDK} />
      }
    ];

    // Select a component depending on a location in which the app is rendered.
    ComponentLocationSettings.forEach(componentLocationSetting => {
      if (sdk.location.is(componentLocationSetting.location)) {
        render(componentLocationSetting.component, root);
      }
    });
  });
}

src/components/EntryEditor.tsx
import React from 'react';
import { Accordion, AccordionItem, TextField } from '@contentful/forma-36-react-components';
import { EditorExtensionSDK, FieldExtensionSDK } from '@contentful/app-sdk';
import { MultipleEntryReferenceEditor } from '@contentful/field-editor-reference';
interface EditorProps {
  sdk: EditorExtensionSDK;
}

interface MyReferenceEditorProps {
  sdk: FieldExtensionSDK
}

const LinkedField = (props: MyReferenceEditorProps) => {
  const { sdk } = props
  const sdkCast: any = sdk as any;
  return (
    <MultipleEntryReferenceEditor
      isInitiallyDisabled={false}
      hasCardEditActions={true}
      sdk={sdkCast}
      viewType='link'
      parameters={{
        instance: {
          showCreateEntityAction: true,
          showLinkEntityAction: true,
        },
      }}
    ></MultipleEntryReferenceEditor>
  );
};

const Entry = (props: EditorProps) => {
  const { sdk } = props
  const { entry } = sdk;
  const { fields } = entry;
  return <>

      <TextField
        name="abc"
        id="123"
        labelText="User Name"
        countCharacters
        value={fields.description.getValue()}
        width="full"
      />

      <Accordion>
        <AccordionItem title="What payment methods do you accept?">
          Customers on the Team tier can pay with a credit card (American Express,
          MasterCard or Visa). Enterprise customers have the choice of paying with a
          credit card or wire transfer.
          </AccordionItem>
      </Accordion>

    <LinkedField sdk={sdk as any} />
  </>;
};

export default Entry;

error

All field editors were updated to use app-sdk. Please update to the latest version.

@suevalov if I run yarn add @contentful/field-editor-reference@latest and then pass sdk from entry editor to MultipleEntryReferenceEditor I get the same error as above.
What is the way to fix this?

Hi @tonyneel923, do you know if there is an official solution for getting access to the fieldsdk from then entrysdk ? Or do we still need this workaround?

Why is this closed? Is it solved yet?


Support allowVolumeExpansion option for storage classes

Storage Classes have option allowVolumeExpansion: true which enables resizing of existing PVCs. Currectly, the CSI driver ignores the param, so that it is not possible to change size of an existing PVC connected to a specific app.
Please add this functionality. Consider using one of the existing GUI rest call (POST quota) for changing GPFS quota.

Since the volume expansion feature is still in Beta in k8s we can not support it.
This is in our todo list but it should be GA'ed first.

The Volume expansion feature is now GA'ed.

Since the volume expansion feature is still in Beta in k8s we can not support it.
This is in our todo list but it should be GA'ed first.

The Volume expansion feature is GA'ed from k8 side so we will be working on including it CSI driver

Closing since feature is implemented and will be available as part of 2.4.0


bump: helm to 3.10.2

Signed-off-by: yxxhero<EMAIL_ADDRESS>bump: helm to 3.10.2

@mumoshu @itscaro @xiaomudk ping

LGTM.


Bottom Tile don't show full text when side tile text is long.

Step 1 - Rotate -90 degree.
After that , text is not showing full text.

You can wrap the BarChart with padding widget and give required padding for bottom attribute. That should work

Or you can increase reservedSize in SideTitles


Can the plugin use default export?

Thank you for this plugin.
I find the usage for this plugin is a little verbose.
Can we simply do this
import SkipIcon from<EMAIL_ADDRESS>
instead of
import  {VueComponet as SkipIcon} from<EMAIL_ADDRESS>
I see an equivalent react plugin here: https://developer.aliyun.com/mirror/npm/package/vite-plugin-svg-react
I just thought their usage is more concise.

Ah, I just learned your example project, I see why.

Yes, I wanted to keep the default behavior, but I could check whether making it an option would be something feasible.

I'm still fairly new to using ES module imports, is there a benefit I'm not aware of for having the export named rather than using default (when there's only one class being exported). Or is retaining the VueComponent name a concern of backward compatibility?


Titlebar menu

I would like to be able to add custom items to the title-bar menus. Not the title-bar itself, but the menus it invokes. These menus do not seem to be regarded as part of the workbench and so there does not appear to be a contribution point for new menu items.
I ask because I wrote an extension and the very first issue raised was a request to add "Print" to the File menu instead of putting a printer icon on the title-bar. That was my own first thought -- the icon is a fallback position.
Even though it's a bit fringe, we're talking about support for extensions. Shell integration is an inevitable requirement and that's why the notion of contributions exists, so I hope you'll consider adding this capability.

/cc @jrieken  @aeschli

/duplicate #69137


Get trolley locations from Greenlink API

Trolleys are now running dual beacons for location tracking.   Greenlink has requested that we obtain beacon information from their API so that they can eliminate the second cellular data plan from each trolley.
Syncromatics RTPI API documentation is at https://syncromatics.docs.apiary.io/# .

This is now running on the dev server at http://yeahthattrolley.azurewebsites.net/DBVisualizer?ActiveFilter=1 ; Trolley colors will update to match the route as the driver logs in.
4 routes are displayed 24/7, but trolleys will be shown only while running.   Extra routes (Arts / Augusta) don't start running until May.
Need a way to migrate to production server and easily fall back to using original beacon if there is a problem while testing.

So on the first day of monitoring - Trolley 1702 (Heart of Main) stalled out on the development display at about 1:30 and never restarted for the rest of the day.   This also matched its position on the "Find Greenlink" app, so it wasn't problem with our Syncromatics interface layer.  1701 ran good for the afternoon.
At the close of the night, trolley 1701 was 'dancing' in jumps of about 40 meters between South Main street and Augusta St near that intersection.  Our beacon showed the trolley was actually about 300 meters away at the Greenlink depot down the street.  After the trolley headed back to Falls Park Drive, the Syncromatics interface finally started tracking the 1701 trolley again.  That type of error is very unusual for a GPS fix unless there is an interference signal near the antenna.  It didn't look like it was inside the building so I don't think that was the problem.
Our original beacons are still running as they should be and helped me confirm the nature of the problem!  I'll follow up with Greenlink.

Blows my mind that what is essentially a retrofitted student project running on a consumer grade cell phone could be more reliable than a profe$$ional solution... hope that is an outlier and not the norm!

This is now ready to go - switch between Beacons or Syncromatics via Database/Application Settings menu.  Will continue running existing beacons until reliability problem is solved.

Greenlink updated the routes to match the routes in Syncromatics.   The Combination route is used when one trolley is out of service.
I've switched the trolleys to use Syncromatics for now so that trolley colors match the route and they will show passenger load percentage.

Generally, the Syncromatics interface went well for Friday-Sunday.  A trolley was missing on Thursday night, but the original beacon wasn't reporting either , so I don't know what the issue was there.
There is a quirk regarding driver breaks - when the driver goes on break, the routing tablet is put on some sort of pause mode and they drive to a break location.   As soon as the tablet goes into pause mode, there is no more reporting.   So our system shows the trolley sitting at that position until it goes inactive after 5 minutes.   Then nothing until the driver re-activates the route on the tablet.   So there is no way to know when the trolley will show up at the first stop after break, or even that the trolley is on break.     And if the driver forgets to take the tablet out of pause, the trolley will be invisible as it resumes the route.   This actually happened where started on the route for a bit until I could ask the driver about the pause mode without distracting him.
Depending on the driver's actions, the passenger load may or may not be useful.  It is good at counting adults but may miss some children.    But a bigger problem is related to the pause mode; the system does not count entries / exits when in pause.   So if pause mode is selected when clearing the last stop before break, exiting passengers are not counted.    In our case we had 3 aboard, but it said we had 17 passengers because it wasn't counting departing passengers at the last stop.


error: null reference. when I do console.log, isAuthorized always return false, PermissionAccess.write always return undefined

Hello,
First of all, great work! Im so excited to try this plugin.
I tried using this with RN 0.62, (using autolinking).
if I run without checking isAuthorized, it always gives null reference error. So, I put some console.log(s) and found out isAuthorized always return false, PermissionAccess.write always return undefined.
Did I miss a step in setting up this plugin, or maybe there's missing step in the usage?
Thanks in advance, pardon if the snippet is a bit messy
const permissions = [     { kind: Fitness.PermissionKind.Step, access: Fitness.PermissionAccess.Write } ];
`const logSteps = async () => {
console.log("permission:", permissions); // the result is {access: undefined, kind: 0}
Fitness.isAuthorized(permissions)
  .then(async (authorized) => {
    let initialDate = new Date();
    let startDate = new Date(initialDate.getFullYear(), initialDate.getMonth(), initialDate.getDate(), 0, 0, 0);
    let endDate = new Date(initialDate.getFullYear(), initialDate.getMonth(), initialDate.getDate(), 23, 59, 59);
    let formattedStart = startDate.toISOString();
    let formattedEnd = endDate.toISOString();
    console.log('start:', formattedStart);
    console.log('end:', formattedEnd);
    // Do something
    console.log('auth result:', authorized); // always return false
    if(authorized){
      let result = await Fitness.getSteps({
        startDate: formattedStart,
        endDate: formattedEnd,
        interval: 'days'
      });
    }
  })
  .catch((error) => {
    // Do something
    console.log('Failed auth', error);
  });

}
`

I finally managed to make it work by adding this to my build.gradle dependencies:
implementation "com.google.android.gms:play-services-base:+" implementation "com.google.android.gms:play-services-auth:+" implementation "com.google.android.gms:play-services-fitness:+"
the permission request works, now the authorization returns true, but I still only get empty array even though I have steps data in my google fit account. can anyone help in this? thanks

It works, the app can only get the google fit data in the same, not cross-device.

@philipusmartin9 Thank you for explain the issue. Glad to hear it works in some way


KID not found (error 205)

I am trying to login to the keybase app and receive the same error across Windows, macOS, and Android: KID not found (error 205)
The error occurs in the app as well as CLI.
Steps to reproduce:

I enter my username
I select my paper key
I enter my paper key
Presented with KID not found (error 205)

or

I enter my email address
I enter my passphrase
I select my paper key
I enter my paper key
Presented with KID not found (error 205)

my log id: 657a0d0af8e7ce05d86e0f1c

What are the first two words of your paper key? (They are public)
On Tue, May 23, 2017 at 2:15 AM dbradmit<EMAIL_ADDRESS>wrote:

I am trying to login to the keybase app and receive the same error across
Windows, macOS, and Android: KID not found (error 205)
The error occurs in the app as well as CLI.
Steps to reproduce:

I enter my username
I select my paper key
I enter my paper key
Presented with KID not found (error 205)

or

I enter my email address
I enter my passphrase
I select my paper key
I enter my paper key
Presented with KID not found (error 205)

my log id: 657a0d0af8e7ce05d86e0f1c
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/keybase/client/issues/7104, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA05_z0B5bGt0C42DWnM8uF0wG7OguTgks5r8nmHgaJpZM4NjOKb
.

@patrickxb  can you check this one out?

The first two words of the paper key are "pact panic".

Yes, I'll look

@dbradmit I'm sure you've tried this, but can you double-check that you are entering the correct paper key?  From the log, it looks like the paper key you are entering appears to be valid (we do some sanity-checking on the input), but it is not matching the pact picnic one in your account.

@dbradmit ah, I just read your comment.  Looks like you got it working.

Still that error message is pretty rought.

Yeah, the error message is rough but my issue is resolved.
Thanks!

@patrickxb can you make a ticket to fix the error experience here? thanks!

@maxtaco Yes.  Surprising thing is that it was a valid paper key.  Current error messages handle most typos...

cool thanks


feat(SNW-172): Add footer items to Text Components

Footer title and links were added to the TextColumnSingle, TextColumnDouble and TextImageColumnDouble components


const > let

This is really just a shade PR for @ryanflorence so please, feel free to reject it out of hand. Have codemod, will travel.

No 💜


Does this library support multiple audio

When i open video with the source file that ended up with .m3u8 format, there are two audios file in there but there is no options to select audio in the player.

Use getInternalPlayer('hls') to get the instance of hls.js. From there you can access audioTracks and set audioTrack.
Untested example below. No idea if this will work but hopefully it starts you off:
class Player extends React.Component {
  ref = player => {
    this.player = player
  }
  handleReady = () => {
    const hls = this.player.getInternalPlayer('hls')
    console.log(hls.audioTracks)
    console.log(hls.audioTrack)
    hls.audioTrack = hls.audioTracks[1]
  }
  render () {
    return (
      <div>
        <ReactPlayer
          ref={this.ref}
          url='https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8'
          playing
          controls
          onReady={this.handleReady}
        />
      </div>
    )
  }
}

Is there a way to show UI to change audio on the client side.

I'm afraid you'd have to build that UI yourself. ReactPlayer is just a proxy for the various player APIs and uses the built in controls for each player.


Bug: 2 different protos in one package with same field names go into name clash

If there is a required field called 'name' in 2 proto files the generated code will generate 2 NameIfcs and NameImpls that cannot coexist in one package

Fixed by qualifying interface and implementation names with class name


Updating vulnerable dependencies according to assessment report : 666846c37154d156beeac114

Summary Report

Scenario
Upgrades
Critical
High
Medium
Low

Full Upgrade
0
0
0
0
0


feat: add an explicit allowlist rule for sbom external references

I decided that I needed this feature once I learned that re2 doesn't support negative lookarounds. I intended to use the "disallowed" external packages feature with a negative regex that forbade any external reference that didn't match a small number of permitted urls. That's just not possible with golang regular expressions.
With this, I add a new rule that by default permits every package, but when rule data is provided, it will deny every artifact with packages in its sbom that do not appear explicitly in its allow list of external references.

Codecov Report
Attention: Patch coverage is 86.66667% with 4 lines in your changes missing coverage. Please review.

Project coverage is 99.92%. Comparing base (0cdcba3) to head (9bd792f).

Additional details and impacted files

@@             Coverage Diff             @@
##              main    #1065      +/-   ##
===========================================
- Coverage   100.00%   99.92%   -0.08%
===========================================
  Files          111      111
  Lines         5500     5526      +26
===========================================
+ Hits          5500     5522      +22
- Misses           0        4       +4

Files
Coverage Δ

policy/release/sbom_cyclonedx_test.rego
100.00% <100.00%> (ø)

policy/release/sbom_cyclonedx.rego
96.15% <80.00%> (-3.85%)
:arrow_down:

Thanks Zoran!


Search without sorting

Hi there,
I have a large select with years. Let's say 1900 until 2018. And add them with setChoices(). The items are already sorted so they do not need to be sorted again.
Two things:

If I add the years as integers the search is not giving any results. If I add them as strings it is working. Not a big deal and that is not what this issue is about.
If I search with string 20 the first result is 2009 and after that is is nicely sorted as expected: 2018, 2017, 2016, 2015, etc. The same thing happens when I search on 19: the first record is 1949 and after that the results are 1999, 1998 is missing (is somewhere below) 1997, 1996, 1995, 1994, etc.

I can't see why this is happening. As far as I can see the results from fuse are correctly sorted (read: unchanged).
new Choices(document.getElementById('select'), {
          shouldSort: false,
          silent: true,
          searchResultLimit: 100,
          itemSelectText: '',
          fuseOptions: {
              shouldSort: false,
              includeScore: false,
              includeMatches: false,
              threshold: 0,
              location: 0,
              distance: 100,
              maxPatternLength: 32,
              minMatchCharLength: 1,
              keys: ["value"]
          }
});

See also this example https://plnkr.co/edit/d1hsGPour408YC5OqVSf?p=preview
v3.0.3
Is there any way to just keep the sorting as it is?

I see this happening in chrome but not in firefox.This PR is related to the issue but only solves it for non search items: https://github.com/jshjohnson/Choices/pull/34
Would it be an option to include an option: shouldSortSearch ?

Im also seeing this, I've created a plunker showcasing the issue
https://next.plnkr.co/plunk/XPnOW1C3ujgjgYIA
Here I first directly use Fuse to search my array, and then use a copy of that array with Choices.
The plunker is set to search for "1" in the Fuse example. And the results show up as expected.  But if you input a 1 in the search field in Chocies, the results are sorted differently. But only in Chrome browsers (not in Firefox or Edge).

Also, it seems that search results always get sorted.
At least as far as I can see in renderChoices.
Shouldnt there be a way to configure how to display search results?


使用FileDownloadSerialQueue把每一个BaseDownloadTask加入到queue中，如何取消在队列中等待下载的任务

Before Issue

Please search on the Issues
Please search on the wiki
Please set FileDownloadLog.NEED_LOG=true and review the Logcat output from main process and :filedownloader process ( pay attention to Warn and Error level logcat)

Issue

What problem do you get?
Which version of FileDownloader are you using when you produce such problem?
How to reproduce such problem?
Do you set FileDownloadLog.NEED_LOG=true?
Could you please reproduce this problem and provide all main process and :filedownloader process logcat
Can you fix it by yourself and request PR, if not, what's problem do you get when you try to fix it

P.S. If you don't know how to get :filedownloader process, it's recommended to using pidcat to just filter all your application logcat, or define process.non-separate=true on filedownloader.properties

请在Issue前认真的跟进上面提到的建议，这样将可以极大的加快你遇到问题的处理。
如题，如果使用FileDownloadSerialQueue把一系列的任务加入到队列中，如果在下载过程中想要取消还在队列中未开始下载到任务，查阅FileDownloadSerialQueue相关文档没有找到API

请在这里查看FileDownloadSerialQueue#shutdown方法。


Add REVERTED state to TransactionStates.

Related: https://github.com/ainblockchain/ain-blockchain/issues/879

Thanks for the review, now merging~


Wrong Warning useEffect

Description
Despite using the suggested syntax for useEffect with Async Functions, I keep getting the following alert:
Warning: useEffect must not return anything besides a function, which is used for clean-up.

It looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, write the async function inside
your effect and call it immediately:

useEffect(() => {
  async function fetchData() {
    // You can await here
    const response = await MyAPI.getData(someId);
    // ...
  }
  fetchData();
}, [someId]); // Or [] if effect doesn't need props or state

Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching

React Native Version
0.72.4
Output of npx react-native info
info Fetching system and libraries information...
System:
  OS: Windows 10 10.0.18362
  CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  Memory: 798.59 MB / 7.88 GB
Binaries:
  Node:
    version: 18.17.1
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.5
    path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
  npm:
    version: 9.6.7
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    Versions:
      - 10.0.18362.0
      - 10.0.19041.0
IDEs:
  Android Studio: AI-223.8836.35.2231.10406996
  Visual Studio:
    - 16.8.30804.86 (Visual Studio Community 2019)
Languages:
  Java: 11.0.20
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.4
    wanted: 0.72.4
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Steps to reproduce
Just create a blank project in RN, assign the useEffect hook running a function that is asynchronous, as example below:
const [user, setUser] = useState({name: "Bruno", password: "123", id: "456", filterShops: []})
const [start, setStart] = useState(true)
const fetchData = async() => {
        if (!user.id) {
            const userData = await getData()
            if (userData.id) {
                console.log('Go')
            } else {
                setStart(false)
            }
        } else {
            setStart(false)
        }
    }

useEffect(() => fetchData(), [user])

Snack, screenshot, or link to a repository
https://github.com/bedsistemas/useeffect_warning.git

you're returning a promise in your effect hook. arrow functions implicitly return the value of their expressions.
useEffect(() => fetchData(), [user])

instead, you can add curly braces and ensure that nothing is returned
useEffect(() => { fetchData() }, [user])

that should get rid of your warning

@nnnoel
Thx man, javascript basics :-)
I opened this issue with another account and I can't close it. But the solution was given. Please close this issue. Thx again.


Nnet rewrite

Small rewrite of nnet module.

in create_weights: use rand::distributions::range::Range as advised on rand doc

removed initialize_weights function and put the logic directly in create_weights

in compute_grad: remove an  unecessary intermediary grad vector. On my very unscientific test, running the example nnet-and_gate is 2.5 % faster.

Thanks for the PR! It will take a me a little while to figure out all the changes but I'm happy to hear we get some performance gains from this!

I've given a few comments - I may have a couple more things as I digest more.
I've also got to commend you on working through the code in the nnet module! It's pretty messy and difficult to follow - thanks so much for putting the time in.

Pushed a new commit with your comments. I set gradients capacity to weights.len(). I think it is correct.

@tafia I'm not sure if that is correct as the each layer's weights will contain some bias weights which will always be equal to 1 (and so not updated by the gradient).
It's too late in the night for me to figure out the maths, but I imagine it will be something like weights.len() - self.layer_sizes.iter().take(self.layer_sizes.len() - 1).sum() - where sadly we cannot use sum :). That is because the left column of each layer's weights will be bias weights - which means all but the last layer will contribute it's size in bias weights.
I'll have to actually verify that... Also it isn't critical - we can always just shrink_to_fit after the fact.
Thanks again for your hard work on this.

I'm new in machine learning...

You've jumped into some pretty rudimental stuff here - hopefully it wasn't too painful :).

if we look at the regularization part only, it looks like the bias are included in the gradient matrix, at least this is how I interpreted the first zero row.
This is confirmed when I print gradient.len() and weights.len().

Yes you are absolutely correct! I believe this wraps up the PR then, thanks once more.

Great!
Thanks, I will continue learning on the code. It is very interesting!

Just wanted to add that if there's anything I can do to help you figure out the code please don't hesitate to reach out!

Thanks!!
Much appreciated
On 25 Jul 2016 12:08, "James Lucas"<EMAIL_ADDRESS>wrote:

Just wanted to add that if there's anything I can do to help you figure
out the code please don't hesitate to reach out!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AtheMathmo/rusty-machine/pull/105#issuecomment-234832077,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHAszmpgHkRBBsZo1zPtjyEwt7KLmxuCks5qZDbCgaJpZM4JTU9O
.


Implement intensity gradient

Implement the intensity gradient method by Rowlands and colleagues, link.
Calculations needed:
Time spent in intensity bins in 25 mg (milli-gravity units) increments from 0-4000 mg and from 4000-8000 mg (variable y). (allow the bin size etc to be entered rather than hardwired at this stage to allow exploration of effects of altering these)

From bins averaged across days, i.e. from summary data
Individual days
User selected time windows on user selected days

Label each intensity bin with mid-range of mg, i.e. 0-25 = 12.5 mg; 25-50 = 37.5 mg…. 4000-8000 = 6000 mg (variable x).
Take natural log of x and y
Run linear regression analysis and return gradient, y intercept and R2 of the log-log regression line.
Output requirements:
Intensity gradient, constant (y intercept), R2 for

Overall
Day by day
User selected time windows on user selected days

Specific action points:

[x] Create function with x and y as input, and coefficients and R2 as output:

[x] Write test for function that produces intensity gradient.
[x] Write function.

[x] Embed this function within g.part2 such that it can be applied per day and/or per window and averaged over the measurement.

More specific action points:

[ ] Create function with x and y as input, and coefficients and R2 as output.
[ ] Embed this function within g.part2 such that it can be applied per day and/or per window and averaged over the measurement.

We cannot take the log of zero, so I assume for now that zeros are ignored.

I think I have now implemented it, key action points are now:

[ ] Update changelog with these additions
[ ] Check that there is a test for the new code
[ ] Wrap up as test version
[ ] Check with Alex that zero bins can be ignored
[ ] Merge changes into GGIR master branch
[ ] Prepare new GGIR release

I will submit a new GGIR version to CRAN this weekend, including the intensity gradient functionality. Now extended with intensity gradient applied to the averageday (the "_fullRecording" variables)


release problem

Hello, I am trying to us the plugin with flutter 3.3.8 and I am experiencing crashes when running in release mode.
I saw this kind of documented in some issues of the original project, but not really here. So here my take on this.
This is what I added in the manifest:
        <receiver android:name="yukams.app.background_locator_2.BootBroadcastReceiver"
            android:enabled="true" android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
            </intent-filter>
        </receiver>

        <service android:name="yukams.app.background_locator_2.IsolateHolderService"
          android:permission="android.permission.FOREGROUND_SERVICE"
          android:exported="true"
          android:stopWithTask="true"
          android:foregroundServiceType = "location"/>

        <service android:name="yukams.app.background_locator_2.LocatorService"
          android:permission="android.permission.BIND_JOB_SERVICE"
          android:exported="true"
          android:stopWithTask="true"/>

I added the pragma to the callback function like:
@pragma('vm:entry-point')
  static void callback(LocationDto locationDto) async {

  }

I am not getting much of a readable error from this, but maybe you can work with it.
Here in the code I call BackgroundLocator.initialize and then BackgroundLocator.registerLocationUpdate, the log then shows some errors (the ones with the X in front of the line, even if no real error  message is given):
Type	Time	PID	Tag	Message
X 11:03:51.950	18232	BackgroundLocatorPlugin	startIsolateService
X 11:03:51.990	18232	IsolateHolderService	startLocatorService: Start Flutter Engine
X 11:03:51.107	18232	IsolateHolderExtension	service initialized
X 11:03:51.110	18232	IsolateHolderService	onStartCommand => intent.action : START
X 11:03:51.110	18232	IsolateHolderService	startHolderService
11:03:51.112	1511	LocationManagerService	gps provider added registration from 10460/eu.hydrologis.smash/76256C68 -> Request[@+1s0ms HIGH_ACCURACY, WorkSource{10460 eu.hydrologis.smash}]
11:03:51.112	1511	LocationManagerService	try to release motion power when coming new active request
X 11:03:51.113	3421	RequestManager_FLP	[LocationManager] Location request 76256C68(Listener) gps interval=1000ms (min=1000ms) from eu.hydrologis.smash (10460_FINE_fg_true_foreground)
11:03:51.114	1511	CompatibilityChangeReporter	Compat change id reported: 73144566; UID 10460; state: ENABLED
11:03:51.114	1511	GnssLocationProvider	setRequest ProviderRequest[@+1s0ms, HIGH_ACCURACY, WorkSource{10460 eu.hydrologis.smash}]
11:03:51.114	1511	GnssLocationProvider	mStarted =  false, isEnabled = true
11:03:51.114	1511	GnssLocationProvider	stopBatching
11:03:51.114	1511	GnssLocationProvider	startNavigating
11:03:51.114	1511	GnssLocationProvider_ex	Data status WIFI connected
11:03:51.114	1511	LocationManagerService	network provider added registration from 10460/eu.hydrologis.smash/76256C68 -> Request[@+1s0ms LOW_POWER, WorkSource{10460 eu.hydrologis.smash}]
X 11:03:51.117	3421	RequestManager_FLP	[LocationManager] Location request 76256C68(Listener) network interval=1000ms (min=1000ms) from eu.hydrologis.smash (10460_FINE_fg_true_foreground)
11:03:51.117	1511	GnssLocationProvider	setting position_mode to standalone
11:03:51.117	1378<EMAIL_ADDRESS>gps_set_position_mode: lowPowerMode(F)
11:03:51.118	1373	gpsd	WakeLock(Acquire,GPSD)

11:03:51.118	1373	gpsd	WakeLock(Release,GPSD)

11:03:51.121	1378<EMAIL_ADDRESS>start: IGnss impl: start request
11:03:51.121	1373	gpsd	WakeLock(Acquire,GPSD)

11:03:51.122	3421	SettingManager_FLP	Location icon is enabled by eu.hydrologis.smash(10460)
11:03:51.122	3421	GnssEngineManager_FLP	updateEngineEnabled, true / isFromAp=true
11:03:51.122	3421	GnssEngineManager_FLP	updateEngineEnabled, register stationary

Then, at some point I also get the following:
Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 18287 (1.ui), pid 18232 (ydrologis.smash)

and and it crashes with:
Revision: '7'
ABI: 'arm64'
Processor: '5'
Timestamp: 2022-11-17 11:03:51.196259533+0100
Process uptime: 264s
Cmdline: eu.hydrologis.smash
pid: 18232, tid: 18287, name: 1.ui  >>> eu.hydrologis.smash <<<
uid: 10460
signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
Abort message: '../../third_party/dart/runtime/vm/message_snapshot.cc: 576: error: expected: !lib.IsNull()'
    x0<PHONE_NUMBER>000000  x1<PHONE_NUMBER>00476f  x2<PHONE_NUMBER>000006  x3  0000007d0adf0410
    x4<PHONE_NUMBER>808080  x5<PHONE_NUMBER>808080  x6<PHONE_NUMBER>808080  x7<PHONE_NUMBER>800000
    x8<PHONE_NUMBER>0000f0  x9  0c618253e961ed3b  x10<PHONE_NUMBER>000000  x11 ffffff80fffffbdf
    x12<PHONE_NUMBER>000001  x13<PHONE_NUMBER>00005c  x14<PHONE_NUMBER>000000  x15<PHONE_NUMBER>000058
    x16 0000007e18f59d30  x17 0000007e18f32cd0  x18 0000007d05148000  x19<PHONE_NUMBER>004738
    x20<PHONE_NUMBER>00476f  x21 00000000ffffffff  x22 0000007d0adf0968  x23 b400007ce917f412
    x24 b400007d60f0cf00  x25<PHONE_NUMBER>000001  x26<PHONE_NUMBER>000000  x27 0000007d07983000
    x28 0000007d07986000  x29 0000007d0adf0490
    lr  0000007e18ee2e90  sp  0000007d0adf03f0  pc  0000007e18ee2ebc  pst<PHONE_NUMBER>001000
backtrace:
      #00 pc<PHONE_NUMBER>08bebc  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168) (BuildId: 62a3df020a8897fe2ee2211519054ca7)
      #01 pc<PHONE_NUMBER>696484  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #02 pc<PHONE_NUMBER>6ea7bc  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #03 pc<PHONE_NUMBER>6eefc0  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #04 pc<PHONE_NUMBER>6d7a84  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #05 pc<PHONE_NUMBER>6dde88  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #06 pc<PHONE_NUMBER>5b3e4c  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #07 pc<PHONE_NUMBER>68d918  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #08 pc<PHONE_NUMBER>3460cc  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #09 pc<PHONE_NUMBER>349658  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #10 pc<PHONE_NUMBER>01716c  /system/lib64/libutils.so (android::Looper::pollInner(int)+916) (BuildId: eee35419973f1d9330ba7fca3b3f5bf7)
      #11 pc<PHONE_NUMBER>016d6c  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+116) (BuildId: eee35419973f1d9330ba7fca3b3f5bf7)
      #12 pc<PHONE_NUMBER>017510  /system/lib64/libandroid.so (ALooper_pollOnce+104) (BuildId: 1199f5b6a507bffc9402e8d87cc7759b)
      #13 pc<PHONE_NUMBER>349764  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #14 pc<PHONE_NUMBER>347d8c  /data/app/~~Vaq6ie_lSi2zkwnZuw9uWg==/eu.hydrologis.smash-4iRIUBr6LiPmMKuIxFC3MA==/lib/arm64/libflutter.so (BuildId: 2cf88341252c95e1c57ab402a766496ee4430dec)
      #15 pc<PHONE_NUMBER>0f1194  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+264) (BuildId: 62a3df020a8897fe2ee2211519054ca7)
      #16 pc<PHONE_NUMBER>08d7f0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68) (BuildId: 62a3df020a8897fe2ee2211519054ca7)

Any help would be great here, this is an odd showstopper.
Thank you

I wish @gauravmehta13 . I still have one thing to try, which is the patch of this PR: https://github.com/bornakpaul/background_locator/tree/patch-2
In there the entrypoint has been moved to the upstream class. If you are able to give it a try, let us know. I won't be able to test this today.

This is fixed by 2.0.6


"Which git" prompt placeholder

My gitsh prompt contains the string git at the end of the prompt, both to remind me of my context and to let me know that everything is getting a git prefix.
project (feature-branch @) git>

I get this with %D (%c%b %#%w) git> .
I have hub installed, and use it frequently, but typically only to interact with github (again, this is for context purposes). However, occasionally I want to fire up gitsh with hub (gitsh --git "$(which hub)"). Most often I do this in a split tmux pane via a hotkey.
I would like to be able to see the "git binary" being used in my prompt.
Would it be possible for gitsh to support a prompt placeholder that resolves to the currently-used git binary?
Something like
%g        basename of current git binary
%G        full name of current git binary

Then the prompt %D (%c%b %#%w) %g>  would become

project (feature-branch @) git>  when run normally
project (feature-branch @) hub>  when run with hub
&c.

This extends to gh and other git providers (??) as well.

Great suggestion, thanks @benknoble.
This probably overlaps a bit with #231 too.

Actually, in keeping with the current gitsh prompt strings, I think it makes sense to reverse the meaning of %g and %G mentioned above.

Furthermore, were I to try to implement this, would it make sense to strip usr/bin/env from the "full path" to binary" and env from the basename?
Without stripping, we get things like
project (feature-branch @) /usr/bin/env git>
project (feature-branch @) env git>

when run normally, which I'm not a fan of, but I could see a use-case of something like gitsh --git "/usr/bin/env hub" (weird as it seems) where knowing that env was used might be important.


Remove Resilience workarounds and describe fixed-size global resilient

This pull request cherry-picks
Add a -force-public-linkage IRGen flag for LLDB.  …
In LLDB expressions, references to private metadata accessors may be
emitted and need to be bound to symbols available in the attached
program, even if these symbols are only supposed to have private
visibility within the program.
Also rdar://problem/48018240
(cherry picked from commit e1f92cc)
75aeaa5
@adrian-prantl
adrian-prantl
Remove Resilience workarounds and describe fixed-size global resilient  …
variables in DWARF.
rdar://problem/48409386
(cherry picked from commit 0b8fc3d)

test with https://github.com/apple/swift-lldb/pull/1410

test with https://github.com/apple/swift-lldb/pull/1410
@swift-ci test

Build failed
Swift Test OS X Platform
Git Sha - 0e1101774c79d2d11c66d0f21b23c2e5e23d3b84

Build failed
Swift Test Linux Platform
Git Sha - 0e1101774c79d2d11c66d0f21b23c2e5e23d3b84

test failed with git checkout error.

test with https://github.com/apple/swift-lldb/pull/1410
@swift-ci test


Adding extra operators to filelog receiver

Hello,
I'm trying to add some extra recombine configuration to the filelog receiver (such as grouping java traces into a single log block). But I don't see a way of doing this when using your presets, which I want to keep and avoid maintaining.
I was wondering if you'd consider a small patch to allow appending new operators to the filelog receiver? I was thinking of something like
in values.yaml :
presets:
  logsCollection:
    enabled: true
    includeCollectorLogs: true
    extraFileLogOperators: []

in config.tpl :
diff --git a/charts/opentelemetry-collector/templates/_config.tpl b/charts/opentelemetry-collector/templates/_config.tpl
index 7488e9e..80254b0 100644
--- a/charts/opentelemetry-collector/templates/_config.tpl
+++ b/charts/opentelemetry-collector/templates/_config.tpl
@@ -276,6 +276,9 @@ receivers:
       - type: move
         from: attributes.uid
         to: resource["k8s.pod.uid"]
+     {{- if $.Values.presets.logsCollection.extraFileLogOperators -}}
+     {{ toYaml $.Values.presets.logsCollection.extraFileLogOperators | nindent 6 -}}
+     {{- end }}
       # Clean up log body
       - type: move
         from: attributes.log

We have no plans to add extensibility directly to the preset configuration interface. Our current stance is that the presets should be extremely simple, only allowing enabling/disabling to handle configuring very opinionated configuration. We very much want to avoid configuring the componet via the presets interface.
If you want to extend the preset's configuration you can use .Values.config.receivers.filelog.operators, but remember that lists are not merged in Helm so you'd need to include all the operators the preset is configuring.

Yep, I wanted to avoid that precisely. Anyway, i understand your point, thanks taking some time replying.


Vague tip

The tip regarding third-party tools is very vague. My customer would like to know what is not supported from the data management landing zone and what third party tools can be used in the case that the abilities are not currently supported.
I've mentioned to them that:
Some things in the Data management landing zone are not currently supported by Microsoft Purview. For example, Master Data management, or Data Quality management. (Emphasis on the CURRENTLY)
For the most part, it's the things under governance-rg-2 (optional).
For those governance features, which Microsoft Purview currently doesn't support, if you want to implement them in your management landing zone, you'll need to use some other tools.
Can we update the tip to be a little clearer? I doubt we can actually list third-party tools, but any additional information here would be helpful.

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

ID: dc42c384-f5c3-b47b-1903-9d3ae4a71247
Version Independent ID: a6a5e0de-1d1e-af9b-2eea-c06440102b76
Content: Cloud-scale analytics - Microsoft Cloud Adoption Framework for Azure - Cloud Adoption Framework
Content Source: docs/scenarios/cloud-scale-analytics/index.md
Service: cloud-adoption-framework
Sub-service: scenario
GitHub Login: @mboswell
Microsoft Alias: mboswell

cc @zeinab-mk @abdale.
Thanks @whhender, we are aware of this issue from other sources and as you say we are very constrained as to what we can do with this. Governance-rg-2 are solution accelerators from our partners.

I understand.
My query here is less about the constraint, and more wondering if we can reference possible next steps/solutions in the note itself. Because most documentation reading is skimming, and if we can point them to the suggestions the documentation already has later on, even better.

@mboswell - it looks like this feedback has gotten to the right folks. Is there anything else we need in this issue before we close it out? (FYI @Zimmergren)

#please-close
(feel free to reopen if needed!)


TeamCity pixi cannot solve this:
14:59:34   ERROR: Unable to locate a modulefile for 'gcc/11.3.0'
14:59:35   pixi 0.22.0
15:00:21     × failed to solve the conda requirements of 'py312' 'osx-64'
15:00:21     ╰─▶ Cannot solve the request because of: qgis >=3.34 cannot be installed
15:00:21         because there are no viable options:

I wonder if this is because the pixi version is older on TeamCity.

I ran pixi run install-ci with pixi version of 22.0 (same as TC) locally and got the same error. I ran with pixi newest version and it's error free.
Anyway, I asked Willem to update pixi version to v28.0 for all our Windows agents, and I will ask Maarten to do so for Linux ones

@evetion do we still use osx-64, or can we remove it from our list? Since you are using the arm version.

I'm fine with removing osx, Github now has free arm runners as well.

@visr can you fix my pixi.lock file? pixi crashes every time on my computer.

@visr can you fix my pixi.lock file? pixi crashes every time on my computer.

Did you try deleting the .pixi directory in the project?

@visr can you fix my pixi.lock file? pixi crashes every time on my computer.

Did you try deleting the .pixi directory in the project?

Yes removed the .pixi folder and the lock file, but still got it crashing after ~10 minutes

Pixi doesn't seem to appreciate having to resolve with more than one channel, channels = ["conda-forge/label/qgis_ltr", "conda-forge"]. My laptop has been trying to resolve it for quite a while and is getting quite hot. I just killed it because I was afraid it would take off.
Now that we have some automatic testing of QGIS LTR via Docker in #1774, perhaps we should leave the QGIS in pixi to the latest release. As such we'll have some automatic testing for both versions. Would still be good to separately remove osx-64 if we don't use it.

There's a conflict in pixi.lock. What commands did you use to run this? Does this only remove osx-64 or also update dependencies?
Are you planning on fixing the Docker LTR tag in a separate issue?

There's a conflict in pixi.lock. What commands did you use to run this? Does this only remove osx-64 or also update dependencies?
Are you planning on fixing the Docker LTR tag in a separate issue?

I talked with @evetion about the LTR version. But if I change it to qgis/ltr, then we will automatically upgrade to the latest LTR every x years. @evetion didn't know if that was desirable.
I did a pixi update as well, because it didn't seem to "just resolve" the lock file for me when I removed osx.

Yeah probably 3.34 is better than LTR. Our docs and plugin metadata also say 3.34.

Closing in favor of #1777.


❓ [Question] How to build latest TRTorch with Pytorch 1.9.0

❓ Question
I am trying to build latest TRTorch with Torch 1.9.0 but I am getting some issue. I follow the instruction from here
Also followed https://nvidia.github.io/TRTorch/tutorials/installation.html but not able to build. Please help!
What you have already tried

Environment

Build information about the TRTorch compiler can be found by turning on debug messages

PyTorch Version: 1.9.0
CPU Architecture: x86_64
OS: Linux (Ubuntu 18.04)
How you installed PyTorch (conda, pip, libtorch, source): pip from here
Build command you used (if compiling from source):  bazel build //:libtrtorch --compilation_mode opt and cd py && sudo python3.7 setup.py install
Are you using local sources or building from archives: local
Python version: 3.7
CUDA version: 11.1
CUDNN version: 8.1
TensorRT: <IP_ADDRESS>
Bazel: 4.0.0
GPU models and configuration: RTX 2070 super 8GB
Any other relevant information:

Additional context
Attached the error I got while I run bazel build //:libtrtorch --compilation_mode opt or cd py && sudo python3.7 setup.py install
user@test ~/Documents/TRTorch/py
 └─ (master) $ sudo python3.7 setup.py install
running install
building libtrtorch
INFO: Analyzed target //cpp/api/lib:libtrtorch.so (18 packages loaded, 2249 targets configured).
INFO: Found 1 target...
ERROR: /home/user/Documents/TRTorch/core/lowering/passes/BUILD:10:11: Compiling core/lowering/passes/op_aliasing.cpp failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 62 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 62 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from ./core/util/prelude.h:10:0,
                 from core/lowering/passes/op_aliasing.cpp:3:
./core/util/trt_util.h: In function 'std::ostream& nvinfer1::operator<<(std::ostream&, const nvinfer1::EngineCapability&)':
./core/util/trt_util.h:90:38: error: 'kSTANDARD' is not a member of 'nvinfer1::EngineCapability'
     case nvinfer1::EngineCapability::kSTANDARD:
                                      ^~~~~~~~~
./core/util/trt_util.h:92:38: error: 'kSAFETY' is not a member of 'nvinfer1::EngineCapability'
     case nvinfer1::EngineCapability::kSAFETY:
                                      ^~~~~~~
./core/util/trt_util.h:94:38: error: 'kDLA_STANDALONE' is not a member of 'nvinfer1::EngineCapability'
     case nvinfer1::EngineCapability::kDLA_STANDALONE:
                                      ^~~~~~~~~~~~~~~
Target //cpp/api/lib:libtrtorch.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 8.640s, Critical Path: 6.17s
INFO: 8 processes: 8 internal.
FAILED: Build did NOT complete successfully

Workspace modified file:
workspace(name = "TRTorch")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

http_archive(
    name = "rules_python",
    sha256 = "778197e26c5fbeb07ac2a2c5ae405b30f6cb7ad1f5510ea6fdac03bded96cc6f",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.2.0/rules_python-0.2.0.tar.gz",
)

load("@rules_python//python:pip.bzl", "pip_install")

http_archive(
    name = "rules_pkg",
    sha256 = "038f1caa773a7e35b3663865ffb003169c6a71dc995e39bf4815792f385d837d",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
    ],
)

load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")

rules_pkg_dependencies()

git_repository(
    name = "googletest",
    commit = "703bd9caab50b139428cea1aaff9974ebee5742e",
    remote = "https://github.com/google/googletest",
    shallow_since = "1570114335 -0400",
)

# CUDA should be installed on the system locally
new_local_repository(
    name = "cuda",
    build_file = "@//third_party/cuda:BUILD",
    path = "/usr/local/cuda-11.1/",
)

new_local_repository(
    name = "cublas",
    build_file = "@//third_party/cublas:BUILD",
    path = "/usr",
)
#############################################################################################################
# Tarballs and fetched dependencies (default - use in cases when building from precompiled bin and tarballs)
#############################################################################################################

# Download these tarballs manually from the NVIDIA website
# Either place them in the distdir directory in third_party and use the --distdir flag
# or modify the urls to "file:///<PATH TO TARBALL>/<TARBALL NAME>.tar.gz

####################################################################################
# Locally installed dependencies (use in cases of custom dependencies or aarch64)
####################################################################################

# NOTE: In the case you are using just the pre-cxx11-abi path or just the cxx11 abi path
# with your local libtorch, just point deps at the same path to satisfy bazel.

# NOTE: NVIDIA's aarch64 PyTorch (python) wheel file uses the CXX11 ABI unlike PyTorch's standard
# x86_64 python distribution. If using NVIDIA's version just point to the root of the package
# for both versions here and do not use --config=pre-cxx11-abi

new_local_repository(
    name = "libtorch",
    path = "/usr/local/lib/python3.7/dist-packages/torch",
    build_file = "third_party/libtorch/BUILD"
)

new_local_repository(
    name = "libtorch_pre_cxx11_abi",
    path = "/usr/local/lib/python3.7/dist-packages/torch",
    build_file = "third_party/libtorch/BUILD"
)

new_local_repository(
    name = "cudnn",
    path = "/usr/",
    build_file = "@//third_party/cudnn/local:BUILD"
)

new_local_repository(
   name = "tensorrt",
   path = "/usr/",
   build_file = "@//third_party/tensorrt/local:BUILD"
)

#########################################################################
# Testing Dependencies (optional - comment out on aarch64)
#########################################################################
pip_install(
    name = "trtorch_py_deps",
    requirements = "//py:requirements.txt",
)

pip_install(
    name = "py_test_deps",
    requirements = "//tests/py:requirements.txt",
)

pip_install(
    name = "pylinter_deps",
    requirements = "//tools/linter:requirements.txt",
)

❓ Question
I am trying to build latest TRTorch with Torch 1.9.0 but I am getting some issue. I follow the instruction from here
Also followed https://nvidia.github.io/TRTorch/tutorials/installation.html but not able to build. Please help!
What you have already tried
Environment

Build information about the TRTorch compiler can be found by turning on debug messages

PyTorch Version: 1.9.0
CPU Architecture: x86_64
OS: Linux (Ubuntu 18.04)
How you installed PyTorch (conda, pip, libtorch, source): pip from here
Build command you used (if compiling from source):  bazel build //:libtrtorch --compilation_mode opt and cd py && sudo python3.7 setup.py install
Are you using local sources or building from archives: local
Python version: 3.7
CUDA version: 11.1
CUDNN version: 8.1
TensorRT: <IP_ADDRESS>
Bazel: 4.0.0
GPU models and configuration: RTX 2070 super 8GB
Any other relevant information:

Additional context
Attached the error I got while I run bazel build //:libtrtorch --compilation_mode opt or cd py && sudo python3.7 setup.py install
user@test ~/Documents/TRTorch/py
 └─ (master) $ sudo python3.7 setup.py install
running install
building libtrtorch
INFO: Analyzed target //cpp/api/lib:libtrtorch.so (18 packages loaded, 2249 targets configured).
INFO: Found 1 target...
ERROR: /home/user/Documents/TRTorch/core/lowering/passes/BUILD:10:11: Compiling core/lowering/passes/op_aliasing.cpp failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 62 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 62 argument(s) skipped)

Use --sandbox_debug to see verbose messages from the sandbox
In file included from ./core/util/prelude.h:10:0,
                 from core/lowering/passes/op_aliasing.cpp:3:
./core/util/trt_util.h: In function 'std::ostream& nvinfer1::operator<<(std::ostream&, const nvinfer1::EngineCapability&)':
./core/util/trt_util.h:90:38: error: 'kSTANDARD' is not a member of 'nvinfer1::EngineCapability'
     case nvinfer1::EngineCapability::kSTANDARD:
                                      ^~~~~~~~~
./core/util/trt_util.h:92:38: error: 'kSAFETY' is not a member of 'nvinfer1::EngineCapability'
     case nvinfer1::EngineCapability::kSAFETY:
                                      ^~~~~~~
./core/util/trt_util.h:94:38: error: 'kDLA_STANDALONE' is not a member of 'nvinfer1::EngineCapability'
     case nvinfer1::EngineCapability::kDLA_STANDALONE:
                                      ^~~~~~~~~~~~~~~
Target //cpp/api/lib:libtrtorch.so failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 8.640s, Critical Path: 6.17s
INFO: 8 processes: 8 internal.
FAILED: Build did NOT complete successfully

Workspace modified file:
workspace(name = "TRTorch")

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

http_archive(
    name = "rules_python",
    sha256 = "778197e26c5fbeb07ac2a2c5ae405b30f6cb7ad1f5510ea6fdac03bded96cc6f",
    url = "https://github.com/bazelbuild/rules_python/releases/download/0.2.0/rules_python-0.2.0.tar.gz",
)

load("@rules_python//python:pip.bzl", "pip_install")

http_archive(
    name = "rules_pkg",
    sha256 = "038f1caa773a7e35b3663865ffb003169c6a71dc995e39bf4815792f385d837d",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
        "https://github.com/bazelbuild/rules_pkg/releases/download/0.4.0/rules_pkg-0.4.0.tar.gz",
    ],
)

load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")

rules_pkg_dependencies()

git_repository(
    name = "googletest",
    commit = "703bd9caab50b139428cea1aaff9974ebee5742e",
    remote = "https://github.com/google/googletest",
    shallow_since = "1570114335 -0400",
)

# CUDA should be installed on the system locally
new_local_repository(
    name = "cuda",
    build_file = "@//third_party/cuda:BUILD",
    path = "/usr/local/cuda-11.1/",
)

new_local_repository(
    name = "cublas",
    build_file = "@//third_party/cublas:BUILD",
    path = "/usr",
)
#############################################################################################################
# Tarballs and fetched dependencies (default - use in cases when building from precompiled bin and tarballs)
#############################################################################################################

# Download these tarballs manually from the NVIDIA website
# Either place them in the distdir directory in third_party and use the --distdir flag
# or modify the urls to "file:///<PATH TO TARBALL>/<TARBALL NAME>.tar.gz

####################################################################################
# Locally installed dependencies (use in cases of custom dependencies or aarch64)
####################################################################################

# NOTE: In the case you are using just the pre-cxx11-abi path or just the cxx11 abi path
# with your local libtorch, just point deps at the same path to satisfy bazel.

# NOTE: NVIDIA's aarch64 PyTorch (python) wheel file uses the CXX11 ABI unlike PyTorch's standard
# x86_64 python distribution. If using NVIDIA's version just point to the root of the package
# for both versions here and do not use --config=pre-cxx11-abi

new_local_repository(
    name = "libtorch",
    path = "/usr/local/lib/python3.7/dist-packages/torch",
    build_file = "third_party/libtorch/BUILD"
)

new_local_repository(
    name = "libtorch_pre_cxx11_abi",
    path = "/usr/local/lib/python3.7/dist-packages/torch",
    build_file = "third_party/libtorch/BUILD"
)

new_local_repository(
    name = "cudnn",
    path = "/usr/",
    build_file = "@//third_party/cudnn/local:BUILD"
)

new_local_repository(
   name = "tensorrt",
   path = "/usr/",
   build_file = "@//third_party/tensorrt/local:BUILD"
)

#########################################################################
# Testing Dependencies (optional - comment out on aarch64)
#########################################################################
pip_install(
    name = "trtorch_py_deps",
    requirements = "//py:requirements.txt",
)

pip_install(
    name = "py_test_deps",
    requirements = "//tests/py:requirements.txt",
)

pip_install(
    name = "pylinter_deps",
    requirements = "//tools/linter:requirements.txt",
)

Hi,
Your TensorRT version is not suited to build the master branch. "kSTANDARD", "kSAFETY" ...  can be found at TensorRT8.0.x but not TensoRT<IP_ADDRESS> .
So, maybe it works when you update your TensorRT.
I am also interested in the latest TRTorch,  Hope you can reply to me if you make it works.

Hi,
Your TensorRT version is not suited to build the master branch. "kSTANDARD", "kSAFETY" ... can be found at TensorRT8.0.x but not TensoRT<IP_ADDRESS> .
So, maybe it works when you update your TensorRT.
I am also interested in the latest TRTorch, Hope you can reply to me if you make it works.

Yeah, likely the issue is that you are using using TensorRT 7.x. The master branch targets TensorRT 8.0. Do you require support for 7.x?


feat: directory creation in scripts

Component
Other (please describe)
Describe the feature you would like
I found an issue when writing to a file using vm.writeFile() where the script breaks if the file is being written into a directory that does not yet exist. vm.writeFile() is only able to write to existing directories, and I have not seen functionality to create a directory directly from a script. This would be helpful, for example, if I want to write some of the output from script/Deploy.s.sol into my own script/output/{chainName}/Deploy.json file after broadcasting instead of needing to work with the whole Broadcast.json.
Since I'm working with the script on multiple chains, I don't always have the {chainName} directory created, and this feature would be much appreciated.
Additional context
No response

Is the feature request here to have vm.writeFile automatically create the directory if it doesn't exist, or to add a vm.mkdir cheat to create directories? Both seem reasonable to me, though just updating writeLine seems sufficient and would be my preference—it keeps the cheat interface smaller/simpler and accomplishes the same goal

The request would be the former - that vm.writeFile would automatically create the directory.  vm.mkdir would be a nice to have but in terms of development process vm.writeFile should do all the lifting IMO

anybody working on this? would be a killer feature to have.

Update: Since #4803 vm.createDir(string,bool) now exists with bool indicating whether the missing directories should be created recursively.
Is this still proposed feature still desired? I think the existing vm.createDir should suffice in most cases.

Thanks for the ping @zerosnacks. This issue is now resolved.


Table footer not rendered

Hi,
I've noticed that there is no <tfoot> rendered in the table.  Even after setting these options:
hideFooter: false,  hideTfoot: false,
and I can't put column search fields in footer using this example: https://datatables.net/examples/api/multi_filter.html
I've also noticed in the template file that there is a columnSearch option but it does nothing - nothing changes after setting it to true.

/**
* true to hide the individual column search of the table
*
* @type Boolean
*/
columnSearch: {
type: Boolean,
default: false
},

How to implement individual column search with input fields in the footer?

Ok,
I've figured it out. The columnSearch option works if its configured in the <vdtnet-table> component not in Vue data().


How to deal with more complex tasks?

We have the following use case:
We integrate a security scan tool into the CD pipeline which needs to run inside a build tool-specific container. The type of image used for the container depends on the content of the repo. So far we identify the technology at runtime and then start a pod containing the correct container.
Maybe I am on the wrong track but I was thinking about integrating the scan as a task.
I could imagine to perform the logic of identifying which image to use in the first step of the task but I guess this is already too late unless it is possible to manipulate the containers in the pod from within a task.
Another aspect which even complicates the situation is that depending on the project to scan we may need to trigger multiple scans (ideally in parallel) for individual sub-projects/sub-modules often using different build technologies.
After all the scans have been executed we consolidate the results.
Do you have any suggestion about a best approach to tackle this with Tekton or is this rather a potential requirement?
If you are interested in more details, the current logic is available in a Jenkins Shared library. At some point we may consider bringing scan executions also onto Tekton.
You find the scanning step here.
Thanks for any hint!

I follow issues and discussions but so far have no real idea about how to solve the above challenge of identifying a task's/step's container image at runtime?
Maybe I am on the wrong track as well and solving this should rather be done outside of Tekton by automatically generating a suitable PipelineRun?
Also not sure if #1136 could be of help?
@afrittoli maybe you could comment on this?
Any hint is highly appreciated!

There are a couple of ways you could solve this that I can think of:

Have a set of Tasks or Pipelines, one for each image. Run a Task to identify the image to be used. At the end of the Task send a CloudEvent and include the type of image identified and type of scans needed (you cannot include custom data in the notification body today, but there may be ways around this). Use triggers to receive the cloudevent and create a Task/PipelineRun that uses the correct image type. #1136 would help to keep this async approach under one PipelineRun, instead of two separated ones.

Use Conditionals. Include a Task the perform every possible scan type in your pipeline, and add a Condition to each of them, so that it only runs when needed.


else/graph~ hangs pure data

In trying to change the graph output to have a Y range of 0 to 100, i found that doing this using properties->dialog box didn't work. The gui would still be from -1 to 1 but the properties would show a range of 0 to 100. Using open, and doing the same on the graph there yielded the same issue where the gui would still be from -1 to 1. Using open yet again on this graph, and doing properties->dialogbox, the pd main window would show
Tcl) UNHANDLED ERROR: wrong # args: should be "pdtk_array_dialog mytoplevel name size flags newone"     while executing
Eventually the entire gui hangs and the audio is no longer responsive to changes in the gui.

please provide a minimal patch as an example so I can try to reproduce and debug

please provide a minimal patch as an example so I can try to reproduce and debug

It's a process issue though.

Open a new patch, put a [else/graph~ ]
start changing the Y range
observe the actual drawn output doesn't change,
open the graph ( B )
change Y range of B
observe the drawn output doesn't change
unhandled pdtk_array_dialog in main pd console window

It's probably something to do with tcl/tk and pd rather than the else library itself.

It's a process issue though.

Open a new patch, put a [else/graph~ ]
start changing the Y range
observe the actual drawn output doesn't change,
open the graph ( B )
change Y range of B
observe the drawn output doesn't change
unhandled pdtk_array_dialog in main pd console window

It's probably something to do with tcl/tk and pd rather than the else library itself.

sorry, I can't get it, maybe a video helps, but sometimes even processes can be clear if there are instructions in a patch

sorry, I can't get it, maybe a video helps, but sometimes even processes can be clear if there are instructions in a patch


Issue with config's and stages

Looks like the config in get_timeout is not correctly getting the staged values.
for example
"stages":{
"dev":{
            "api_gateway":{
                "deadline":3600
           } }},

in a stage doesn't work
but on the main route it works as expected.
"api_gateway":{
                "deadline":3600
           }

looks like it may be only occuring when running goblet openapi xxx vs goblet deploy


names of columns in «edit board»

Here's the problem,
when I delete a column in «edit board», then I can't rename the other columns.

I don't get what is the problem?


ScrollingLabel's "autoStart" property not working

Hello,
I was trying out the ScrollingLabel as explained in the ScrollingLabel example provided in the documentation here. The documentation explains that we can tell the ScrollingLabel to not start scrolling automatically using the property autoStart. This doesn't actually work.
Steps to reproduce:
Use the example from the documentation and set the autoStart property to false.
Expected Behaviour:
The label should not start scrolling automatically.
Current Behaviour:
The label always starts scrolling automatically, autoStart property is ignored.
I will submit a PR for this.

Issue fixed in version 1.2.4


New feature: Caching instagram response option

I have tested this commit and can confirm its efficiency. There are no errors after a hundred of page reload in a row.

I have invited you to be contributor @mahotilo so you could review the code too :)

@jsanahuja,
really, it is an honour for me. I will try my best, but I'll refrain from rash actions :)

I made some small changes:

According to Semantic Versioning, any new feature should change the x.Y.z number so in this case it should be 1.5.0. As I think this feature should be enabled by default, I have set a default cache_time to 2 hours and as this would change the 1.4.1 version behavior we will release the 2.0.0 version.
I have changed the code to use the localStorage API (setItem and getItem) instead of treating it as an object.
Changed the localStorage keys to use username/tag instead of the url.

Thank you, really a great feature and a good work :)
Should solve #99 #96 #95 #94 among others.

Is not 2 hours too long for cache expire?

I don't really know, depends on how often does people publish on their Instagram accounts. If you have instagramFeed cached and I publish a picture it would take you 2 hours at most to see it in the website. If you guys think this is too much we can change it

If you have instagramFeed cached and I publish a picture it would take you 2 hours at most to see it in the website. If you guys think this is too much we can change it

I am just afraid of a new wave of bugs like "I have published post, but the script doesn't show it" :)

If you have instagramFeed cached and I publish a picture it would take you 2 hours at most to see it in the website. If you guys think this is too much we can change it

I am just afraid of a new wave of "bugs" like "I have published post, but the script doesn't show it" :)

I think that is better than  "Stopped working" haha


It doesn't work shortcuts

Microsoft PowerToys version
v0.84.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
Keyboard Manager
Steps to reproduce
it doesn't work the shortcuts which I choose and I set when I active the keyboard maneger. How do I solve this problem
✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

what shortcuts are you trying to set?
/needinfo

I dont know about him, but for me if I remap for example the "Numpad 1" to "Shift"+"F13"...when I press Numpad 1, the Shift key will be "stuck", I need to press Shift Key to unlock it


StoreDevtoolsModule.instrumentStore not compatible with AOT

StoreDevtoolsModule.instrumentOnlyWithExtension()  works with AOT.
StoreDevtoolsModule.instrumentStore not compatible with AOT
getting an error of:
ERROR in Error encountered resolving symbol values statically. Calling function 'StoreDevtoolsModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in C:/msweb/studiotouch/src/app/app.module.ts, resolving symbol AppModule in C:/msweb/studiotouch/src/app/app.module.ts

And we rely on instrumentStore as we need to provide maxAge, otherwise our dev tools will not work (large data set)
can we please fix it so it works just like instrumentOnlyWithExtension
angular-cli: 1.0.0-beta.25.5
node: 6.5.0
os: win32 x64
@angular/common: 2.4.3
@angular/compiler: 2.4.3
@angular/core: 2.4.3
@angular/forms: 2.4.3
@angular/http: 2.4.3
@angular/platform-browser: 2.4.3
@angular/platform-browser-dynamic: 2.4.3
@angular/router: 3.2.1
@angular/compiler-cli: 2.4.3
@angular/language-service: 2.4.3

thanks as always,

Sean

Here StoreDevtoolsModule.instrumentOnlyWithExtension() stopped working recently.

instrumentOnlyWithExtension works but we have to use instrumentStore  becuase of maxAge, otherwise everything slows down to a halt

Definitively an issue. Probably tracking should continue at ngrx/store-devtools#48

I we can get a fix quickly... tx!

I am ready to test anytime... regards!

ok, a solution to use this method with AOT was provided on the ngrx/store-devtools#48 thread by @brandonroberts
@born2net could you please close this issue as well?


chore: redirect e2e logs to stdout and file

Redirects e2e logs to stdout

ohh if we redirect it consider all info as error

@rishabh625  it seems this is a duplicate of #674

yeah thanks @ishitasequeira closing as its duplicate


resolves #59 use correct property to get label (aka id) of ref

The converter for the inline ref was extracting the label (aka id) from the text. However, the label is already available as a property. In Asciidoctor < 1.5.6, the label was stored on the target property. Although still supported, the preferred property is id. I have set up to converter look at the id property first and fallback to the target.
This fixes a NilClass exception when using Asciidoctor LaTeX with Asciidoctor >= 1.5.6.

I'm confident this is the right fix.


Reading zip files into a stream

Hi.
Trying to use CU 706, ZipStreamWrapper, to read the zip archive entries from a zip archive of json files into separate instream objects that I could then read into separate Json Objects.  The zip archive entries are not exposed to work directly with them.   I could write an entry to an outstream object but I need to create separate instream objects for each zip archive entry.
Unless there is a better way to do this.  The end goal is to read each json file in the zip archive into a a separate json object, respectively.
"target": "Extension" in my app.json.

Hi,
What would be your proposal for making this easier for you?
You can open the zip, get the entries, get an outstream for each entry, save it to a blob, create an instream from the blob and use that to create a json object.
It seems to me you have all you need.
br/Gert

I'm closing the issue for now.
br/Gert

Thanks Gert.  The methods to get the zip archive entries were changed to external after I submitted this issue, which made this possible.


Fix CMakeLists.txt for container library

Symbols defined in raw_hash_set.cc are missing from `absl::container``.

Seems #173 already fix it, did you rebase your commit on HEAD ?

And have been lost by c16d5557cd05119b5b7b1318ef778ebe3195b4a1
@Abseil-team seriously, you should really reconsider your current workflow...
i.e. Start by never trust copybara (for google/or-tools we do a manual sync in/out)


Building the webX team page

Detailed description
It seems that the webX team page is not updated with the information and the profile pictures of the team members.
The profile photos are not available and the links are not valid.
Context
I will update the information of the team members so that it is available on the website.
Possible implementation
No response
Additional information
No response
Checklist

[X] I have read the Contributing Guidelines
[X] I have checked the existing issues
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

@Anmol-Baranwal Please check this issue!

duplicate of #436


Optimizing AST node visitor

This PR optimizes the forEachChild visitor function. The function previously used nested helper functions that caused closure allocations, but those helpers are now regular functions and the additional information is passed as a parameter. The Monaco project compiles ~6% faster on node.js (v0.10.35) and ~2% faster on Chakra with this optimization.

:+1:

:+1:


(PUP-7627) Fix CreateSymbolicLinkW BOOL return type

CreateSymbolicLinkW was intermittently returning non-zero on
different tests hosts, under similar circumstances.
Some discussion in:
https://github.com/puppetlabs/puppetlabs_spec_helper/pull/192
Note the original PR was wrong and updated in:
https://github.com/puppetlabs/puppetlabs_spec_helper/commit/bb46874846eeefbb0f03939bb66129bfa4a02236

The signature for CreateSymbolicLinkW should return a BOOLEAN
(BYTE - aka unsigned char) value not a BOOL (4 byte / 32-bit
signed int).
Based on the presence of random data in the incorrectly sized
return value, the code may behave incorrectly.

Fix the problem by sizing the return value correctly

Supercedes #5953

Per https://msdn.microsoft.com/en-us/library/windows/desktop/aa363866(v=vs.85).aspx, confirmed return on signature is BOOLEAN:

BOOLEAN WINAPI CreateSymbolicLink(
In LPTSTR lpSymlinkFileName,
In LPTSTR lpTargetFileName,
In DWORD  dwFlags
);

Per https://msdn.microsoft.com/en-us/library/aa383751(VS.85).aspx, BOOL is an int, while BOOLEAN is a byte. BYTE is an unsigned character.
Per FFI types, use https://github.com/ffi/ffi/wiki/Types#types, uchar (unsigned 8-bit). 👍

@MosesMendoza @Iristyle this shouldn't really affect a ruby API user, correct?
they'll just correctly get ruby boolean true/false upon return now?
actually depending upon the error you can get things like:
    Errno::EEXIST:
       File exists @ syserr_fail2_in - /Users/erict/etcpasswd
     # ./lib/puppet/file_system/file_impl.rb:124:in `symlink'
     # ./lib/puppet/file_system.rb:263:in `symlink'
     # ./spec/integration/apply/test1.rb:6:in `block (3 levels) in <top (required)>'

(on osx here)
and if i handle that exception i get false returned
forgive me, i guess i've never used the ruby API before...
what would Puppet::Filesystem.#symlink return on windows, prior?
it appears from the spec_helper discussion it would not raise under certain circumstances as non-Administrator in windows?
so a good test for this would just be to ensure it raises?


selected item positions mistakenly adjusted when view state restored

In the case where the adapter's view state is restored, and that restoration includes the selected item positions, and if this happens before the adapter's data set is updated, then when the actual data is updated with an animation (i.e. it causes insertion notifications, not just a single change notification which a non-animated update would do), then the selected item positions are adjusted as if they were inserted before that update (which, until now, there were not).
For example

an adapter that had 2 items, both selected, has its state restored (e.g. after a rotation).
state restoration happens (via Fragment#onViewStateRestored()) before the adapter's data set is populated
the adapter's data set is populated with animation (e.g. via LoaderManager.LoaderCallback#onLoaderFinished())
this causes AdapterDataObserver#onItemRangeInserted() calls for all items (because the adapter was previously empty)
the adapter's internal observer observes this, and calls adjustPositions() for the selected item positions
selected item positions (0 & 1) are offset to (2 & 3), but the data set only contains 2 items (at positions 0 & 1)

Workarounds include making sure your initial updateDataSet() is not animated, delaying view state restoration until after the initial update, or perhaps just handling the selection restoration logic yourself. You could also (if it's the initial update), take incorrect selection before updateDataSet(), and apply it after the update. But remember that an animated update is multithreaded, so it'll have to be done probably via an overload to FlexibleAdapter#onPostUpdate
(FWIW I would suggest that if the adapter is null when the state is restored it should be cached until the adapter is set non-null)

@technicalflaw, I think you already understood to do the restoration after adapter has been filled.

Fragment.onCreate().
Fragment.onActivityCreated().
Fragment.onViewStateRestored().
Activity.onRestoreInstanceState().
I suppose the async update occurs here.
Call here mAdapter.onRestoreInstanceState().

In the demoApp the items are taken synchronously from memory, passed to the constructor and selection restored synchronously from the Activity.
Animation is not important here, the thing important is to have the items in the adapter list!
Also, the logic for rotation has to be done only if the Bundle savedInstanceState is not null.
In the future versions, I might move the selection state in the adapter items and remove the adjustSelection.


Add the possibility to create an instance as a clone of another instance

Hi,
We would like to leverage the clone feature from the google_sql_database_instance terraform resource. That would allow module's users to create a new Cloud SQL Instance as a clone from another instance.
Can I craft a Pull Request to add this feature into the terraform-google-sql-db Terraform module?
Thanks

I'm not sure if we want to support this in the module. The clone functionality is not especially declarative and has been error-prone in the past.
If you already have the other instance settings in Terraform, can you simply create a new instance with the same settings?


Updated recipe/meta.yaml to version 3.44.4

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

@conda-forge-admin, please rerender


[hazelcast-cpp-client] Fix build with Boost 1.86.

I think we should give upstream some time to consider before taking this but making this PR to record that I have a fix.

(Sorry, I realize I forgot to update this with 'now that the patch is shorter I think we can take this')


Create fcien.txt

Adding www.fcien.edu.uy as university

@ftraiman Pull request merged. Thank you!


Add endpoint for procedure

definition of done
add endpoint for procedures that will return all nodes children of the maxo node 'diagnostic procedure' https://www.ebi.ac.uk/ols/ontologies/maxo/terms?iri=http%3A%2F%2Fpurl.obolibrary.org%2Fobo%2FMAXO_0000003&lang=en&viewMode=All&siblings=false

@belkassaby Where is this node used?

I find these NCIT terms

@BethSundberg yest that's the procedure codes


Deno is not defined when using supabase client in island component

When I import supabase js client library from https://esm.sh/@supabase/supabase-js@2
in my island's button onClick handler, I got this error:
constants.ts:198  Uncaught ReferenceError: Deno is not defined
This error occurred since 2023.1.14, same code works before that time,
and it works fine in api route since I can get correct data response from request ( fetch data from database ).
Things I've tried:

Run deno cahce --reload main.ts command
Change supabase version
Change deno version

I also just ran into this. There were no code changes in the past few weeks, but all of sudden I was seeing Uncaught ReferenceError: Deno is not defined when any component tried to use Supabase.
I'm on the latest versions of Deno Fresh and using Deno Deploy

I ran in to something similar while I was working on a little toy application this week. I'll preface this with a disclaimer that I'm new to deno and fresh so I'm no expert, but I'd wager you're seeing that error because the islands' code is running in the browser and Deno is probably not available in that context.
What worked for me was to move the supabase import and query/mutation logic out of the islands layer and into the corresponding route's handler function. Then, back in my island, I replaced it with an http fetch to that route.
If it's of any help, the toy application I mentioned is available here on github. The route handlers perform the database operations while the island performs the http request.
Hope that helps! 🤞

Hi @stephenmelnicki thanks for sharing. You are definitely right that there is island code that is running on the browser, which is why Deno is not available.
I can't find any references to server-side code that would be running on the browser, but the stranger part is that the exact same code worked a few weeks ago and is now broken.

Thank you for sharing. Similar to your solutions, my final solution is to move the clientside supabase code to an independent api route.
But according to the api documentation, this library should be able to run on the browser, so I deduce that the problem lies in esm.sh？

@lucis Thank you! The target query parameter worked for me! Do you know why?

@lucis Thank you! The target query parameter worked for me! Do you know why?

haha, I wish...
I don't know why it stopped working (I had used it before without target), but it's possibly related with changes in https://github.com/ije/esm.sh
But there's docs about this feature in https://esm.sh/

@lucis Thank you for the information! It also works on my machine.

Has anyone here been able to get Supabase running within an island? If so, are you able to provide the code?

@ieiekk try importing it from something like https://esm.sh/@supabase/supabase-js@2.2.3?target=es2022

@iuioiua This did it for me

I did that before, but it did not work. However, I tried again now and voila! I must've done something wrong before. Thank you.


Null checks for vrcParams

Avoids a crash I was encountering

Thanks for the PR! I'll merge it and release it soon


[Rule] [Optane] [ipmctl_show_-a_-dimm] SKUViolation != 0

Analyzer Module: Optane
Input File: ipmctl_show_-a_-dimm
Parameter: SKUViolation
Description: This rule should check if SKUViolation != 0 and report an INFO message to the user
Rule Passes:
   SKUViolation=0

Possible values:
SKUViolation
           The configuration of the PMem module is unsupported due to a license issue. One of:

           •   0: False

           •   1: True

Closing as a duplicate of #27


Refactor the config.toml, split the consensus parameters.

Contact Details
No response
Propose-a-new-feature
What is "consensus parameters"?
If it changed, the chain state will be changed, then it is a consensus parameter.
Why I propose this feature?
Same reason as #1275: the executable binary should be halt when it found the consensus parameters are changed, to make sure no inconsistent data are stored.
My solution is:

Serialize all consensus parameters in a specify order and calculate a hash, store the hash into storage, check it when axon runs.

But the problem is:

Consensus parameters are not a separated.

In axon's config.toml:

accounts section are consensus parameters.
https://github.com/axonweb3/axon/blob/8f3eded7d2d3a4e844d45e37faf585a3739d81b0/devtools/chain/config.toml#L10-L12

consensus section is consensus parameters.
https://github.com/axonweb3/axon/blob/8f3eded7d2d3a4e844d45e37faf585a3739d81b0/devtools/chain/config.toml#L65-L66

But, other parameters are not consensus parameters, for example, http_listening_address, maxconn and log_path.

In future, there will be more consensus parameters, such as contract_limit, hardfork_height.
So, if those consensus parameters are split, things will be easier.
Alternatives you've considered
No response
Anything else?
No response

Does consensus.sync_txs_chunk_size affect the consensus?

No. It only controls how many transactions that will be pull once to reduce the press of network.

Besides accounts and consensus.sync_txs_chunk_size, is there any other parameters can affect the consensus?
For example, crosschain_contract_address, wckb_contract_address, executor.light.

These three configs should be removed. They are outdated.


Name conflict when compiling with zlib

Hi, My code uses both Synet and zlib, and there are compiling errors under VS2022. The cause is that alloc_func is defined both in Cpl/Xml.h:
template<class Ch = char> class MemoryPool
{
public:
    typedef void *(alloc_func)(size_t);
    typedef void (free_func)(void *);
...

and zlib/zlib.h:
typedef voidpf (*alloc_func)(voidpf opaque, uInt items, uInt size);
...

It is common for programs to deal with both xml and zip, so in your opinion, what is the proper way to solve this conflict? thanks.

Thank you for bug report. I changed this type name.

Great. My code now compiles successfully.


Dump the environment for debugging.

Not for merging.  Not to be put into the twisted organization namespace.  The goal of this branch is to leak the environment for debugging the travis-ci failure to run the integration tests.

Questions answered.


[#159] Improvement/issue 159 validate library version

Resolves #159

@levisingularity  Please review this PR as well to make sure client/handle communication is OK


go.mod: removed a bunch of unnecessary dependencies

Thank you for forking and maintaining the library.
I'm looking to use your fork in kopia but it has a bunch of unnecessary dependencies, which are not really used, would be great to remove them.

Thanks for your contributions! I'm using it for my own project, so I have a small list of bugs that are going to get fixed here as well.


[di] Show the swift code necessary to generate some of the derived self cases.

[di] Show the swift code necessary to generate some of the derived self cases.
This will make it easier to understand how these test cases come up in the wild.
rdar://31880847

@swift-ci smoke test and merge


Adding django-elasticsearch-dsl

I am currently maintaining the package. So I think this can be added in the list.

@safwanrahman Please resolve conflicts.

@s4kibs4mi vai, fixed it.