collapsing row

Hello again!
Is there any way to manually collapse or expand a row?
Thanks in advance.

Manually would be by clicking on it or using the keyboard. Do you mean collapse/expand via code? If so, rowsExpanded is probably the option you want. You can see it used in the expandable-rows example. You can use a state variable here and switch the rows like you can with rowsSelected.

@gabrielliwerant thank you for your reply. I'm looking more like keeping a ref to the table and send it the collapse message with a row parameter. I wonder if it's possible to do that.
My code is like this:
const cancelEdit = (id?: number) => {
    if (id) {
      const index = data.map(client => client.id).indexOf(id)
      console.log('row index : ', index);
    } else {
      console.log('cancel add client');
    }
  }

const options: MUIDataTableOptions = {
    filter: true,
    serverSide: true,
    count: count,
    page: page,
    download: false,
    print: false,
    expandableRows: !isLoading,
    expandableRowsOnClick: !isLoading,
    customSearchRender: (searchText: string, handleSearch: any, hideSearch: any, options: any) => {
      return <Input name='text_search'
        placeholder='Search by name or email'
        value={textSearch}
        onChange={searchByKeyword}
        onKeyDown={onKeyDown}
        onKeyUp={onKeyUp}
      />
    },
    renderExpandableRow: (rowData: string[], rowMeta: { dataIndex: number; rowIndex: number }) => {
      const client = data[rowMeta.dataIndex];
      return <TableRow>
        <TableCell colSpan={columns.length + 1}>
          <AddClient client={client} cancel={cancelEdit} />
        </TableCell>
      </TableRow>
    },
  };

It should be possible, but you'll need to track and update the rowsExpanded option.
(psuedocode)
// No rows expanded to start
state = {
  rowsExpanded: []
};

const cancelEdit = id => {
  const { rowsExpanded } = this.state;

  // if id is good, collapse row by removing it from expanded rows
  const index = rowsExpanded.findIndex(id);
  rowsExpanded.splice(index, 1);

  this.setState({ rowsExpanded });
}

const options = {
  rowsExpanded: this.state.rowsExpanded,
  onRowsExpand: data => this.setState({ rowsExpanded: data }), // Track which rows have been expanded
  ...
}

<MUIDataTable options={options} data={data} columns={columns} />

See if something along those lines works for you.

thanks for the reply. It actually does it, but there's no onRowsExpand option.
So while it works, if I have more than one row expanded, it collapses all expanded rows.

Feel free to update the types if you want, but the option is available in 2.12.0 if you pull that version into your project.

@gabrielliwerant I already have the max for the types, which is 2.10.3

managed to make it "work" with
onTableChange: (action, tableState) => {
      if (action === 'expandRow') {
        const indexes = tableState.expandedRows.data.map(value => (value as any).dataIndex) as number[]
        setRowsExpanded(indexes)
      }
    }

but I get a [Violation] 'click' handler took 287ms warning

There are a couple of options to help out. The simplest way is just to keep the definitely typed (https://github.com/DefinitelyTyped/DefinitelyTyped) definitions up to date. This library does not official typescript support, but that would be the unofficial place for it. As far as I know, you can use whatever js libraries you want with typescript, you either have to define the types yourself or just forgo the type safety for that particular library. It would be quite limiting otherwise.
The other way, which is much bigger, is to add type definitions to this library. There has been some attempts at this in the past by people, but they went ahead and converted the library to typescript. It's not my intention to convert it, I like my js just fine. But I respect that other people want a range of options, so I have no problems with adding dual support to this library, kind of like how material-ui does it. If you wanted to work on that, that would be great. Let me know and I can create an issue for you if you like.

This can be closed once https://github.com/DefinitelyTyped/DefinitelyTyped/pull/38981 has been merged bumping @types/mui-datatables to v2.12.0

This can be closed once DefinitelyTyped/DefinitelyTyped#38981 has been merged bumping @types/mui-datatables to v2.12.0

that's amazing. thank you so much @Favna


Cannot use variables in certain queries

Hello!  This might just be me being obtuse, but I cannot get the following query to work with variables
Here is my config object with the query
{
      resolve: `gatsby-source-github-api`,
      options: {
        token: process.env.GITHUB_ACCESS_TOKEN,
        graphQLQuery: `
        {
          search(type: REPOSITORY, query: "user:$userName topic:$topicName", last: 50) {
            repos: edges {
              repo: node {
                ... on Repository {
                  url
                  openGraphImageUrl
                  name
                  description
                }
              }
            }
          }
          user(login: $userName) {
            pinnedItems(first: 10) {
              nodes {
                ... on Repository {
                  id
                  name
                  description
                  watchers {
                    totalCount
                  }
                  languages(first: 2) {
                    nodes {
                      color
                      name
                    }
                  }
                }
              }
            }
          }
        }
          `,
        variables: {
          userName: "RyanCross",
          topicName: "game-jam"
        }
      }
    }

The first part of the query works just fine (tested on its own), but this second piece fails
user(login: $userName) {
I believe this has to do with the surrounding quotes, if I replace it with the original value "RyanCross" the query executes fine.
Tried wrapping the variable with quotes in the template string and tried something like:
{
variables: {
          userName: "RyanCross",
          userName2: "\"RyanCross\""

}

Query still failed on build though :(. Any ideas?

Your query is malformed, and doesn't work in the Explorer.
You are missing this on the first line:
query($userName:String!){
reference: https://github.com/graphql/graphiql/issues/156#issuecomment-236762354
query($userName:String!){
          search(type: REPOSITORY, query: "user:$userName topic:$topicName", last: 50) {
            repos: edges {
              repo: node {
                ... on Repository {
                  url
                  openGraphImageUrl
                  name
                  description
                }
              }
            }
          }

          user(login: $userName) {
            pinnedItems(first: 10) {
              nodes {
                ... on Repository {
                  id
                  name
                  description
                  watchers {
                    totalCount
                  }
                  languages(first: 2) {
                    nodes {
                      color
                      name
                    }
                  }
                }
              }
            }
          }

}

I'm not 100% sure if this fixes your problem, but I hope it helps!

@RyanCross did my suggestion work? I sure hope so. I'll close this issue in about ~3 months if I don't hear back from you or anyone else, as I believe it was an issue of how to format the query rather than an actual issue with the plugin
(see my previous answer for more info)


next-css: Use postcss in specified path

I need to use postcss plugins only in /pages/mobile.
So my next.config.js is as follow:
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
// ...
module.exports = withCSS({
    // ...
    webpack(config, { buildId, dev, isServer, defaultLoaders }) {
      config.module.rules.push({
        test: /\.css$/,
        include: [path.join(__dirname, 'pages/mobile')],
        use: [
          !isServer && dev && 'extracted-loader',
          !isServer && MiniCssExtractPlugin.loader,
          {
            loader: isServer ? 'css-loader/locals' : 'css-loader',
            options: {
              minimize: !dev,
              modules: false,
              sourceMap: dev,
              importLoaders: 1,
            },
          },
          {
            loader: 'postcss-loader',
            options: {
              ident: 'postcss',
              plugins: [
                require('postcss-px-to-viewport')({
                  viewportWidth: 750,
                  viewportHeight: 1334,
                  unitPrecision: 3,
                  viewportUnit: 'vw',
                  selectorBlackList: [],
                  minPixelValue: 1,
                  mediaQuery: false,
               }),
              ],
            },
          },
        ].filter(Boolean),
    });
    // ...
    return config;
  }
})

And I got this error:

ERROR  Failed to compile with 1 errors
2:59:39 PM

error  in ./pages/mobile/kline-index/kline-index.css

Module build failed (from ./node_modules/@zeit/next-css/node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
Error: Didn't get a result from child compiler
at childCompiler.runAsChild (/Users/longxingren/Public/projects/web/node_modules/mini-css-extract-plugin/dist/loader.js:121:23)
at compile (/Users/longxingren/Public/projects/web/node_modules/next/node_modules/webpack/lib/Compiler.js:290:11)
at hooks.afterCompile.callAsync.err (/Users/longxingren/Public/projects/web/node_modules/next/node_modules/webpack/lib/Compiler.js:547:14)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/longxingren/Public/projects/web/node_modules/tapable/lib/HookCodeFactory.js:32:10), :33:1)
at AsyncSeriesHook.lazyCompileHook (/Users/longxingren/Public/projects/web/node_modules/tapable/lib/Hook.js:154:20)
at compilation.seal.err (/Users/longxingren/Public/projects/web/node_modules/next/node_modules/webpack/lib/Compiler.js:544:30)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/longxingren/Public/projects/web/node_modules/tapable/lib/HookCodeFactory.js:32:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/longxingren/Public/projects/web/node_modules/tapable/lib/Hook.js:154:20)
at hooks.optimizeAssets.callAsync.err (/Users/longxingren/Public/projects/web/node_modules/next/node_modules/webpack/lib/Compilation.js:1296:35)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/longxingren/Public/projects/web/node_modules/tapable/lib/HookCodeFactory.js:32:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/longxingren/Public/projects/web/node_modules/tapable/lib/Hook.js:154:20)
at hooks.optimizeChunkAssets.callAsync.err (/Users/longxingren/Public/projects/web/node_modules/next/node_modules/webpack/lib/Compilation.js:1287:32)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/longxingren/Public/projects/web/node_modules/tapable/lib/HookCodeFactory.js:32:10), :6:1)
at AsyncSeriesHook.lazyCompileHook (/Users/longxingren/Public/projects/web/node_modules/tapable/lib/Hook.js:154:20)
at hooks.additionalAssets.callAsync.err (/Users/longxingren/Public/projects/web/node_modules/next/node_modules/webpack/lib/Compilation.js:1282:36)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/longxingren/Public/projects/web/node_modules/tapable/lib/HookCodeFactory.js:32:10), :6:1)
at runLoaders ...

How to deal with it ? Help please!

Hi, thanks for creating an issue. We currently recommend using https://nextjs.org/docs/basic-features/built-in-css-support as the plugins have been deprecated in favor of the built-in support.


chore: bump version to v1.10.0

关联的Issues (Related Issues)

close
改动 (Proposed Changes)

附注 (Additional Info)

自查清单 (Checklist)
在你认为本 PR 满足被审阅的标准之前，需要确保 / Before you mark the PR ready for review, please make sure that:

[ ] 符合Venus项目管理规范中关于PR的相关标准 / The PR follows the PR standards set out in the Venus project management guidelines
[ ] 具有清晰明确的commit message / All commits have a clear commit message.
[ ] 包含相关的的测试用例或者不需要新增测试用例 / This PR has tests for new functionality or change in behaviour or not need to add new tests.
[ ] 包含相关的的指南以及文档或者不需要新增文档 / This PR has updated usage guidelines and documentation or not need
[ ] 通过必要的检查项 / All checks are green

Codecov Report

Merging #127 (ded505b) into release/v1.10 (b416ef5) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

@@              Coverage Diff               @@
##           release/v1.10     #127   +/-   ##
==============================================
  Coverage          33.46%   33.46%
==============================================
  Files                 40       40
  Lines               2456     2456
==============================================
  Hits                 822      822
  Misses              1496     1496
  Partials             138      138

Flag
Coverage Δ

unittests
33.46% <ø> (ø)

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

Impacted Files
Coverage Δ

cli/wallet.go
0.00% <ø> (ø)


Sandbox Feature

We shall support a sandbox feature to allow users to test and update the logic of existing production job easily, which requires

No test data can pollute the production data.
Easy way to compare the test results with production data.

One approach is to replace the table's location to some safe address space on the fly, while keeping the table name the same. One challenge is when a table is both input and output. In this case, simply replacing the whole table would case read failure. We can enforce the clients must create unique name for both input and output tables to work around this challenge.
Another approach is to make the output immutable so that each run wouldn't override existing data. But this way is not transparent to clients and require clients have some immutable design in table schema like some version numbers.

Design of the First approach:
The CLI should be like
# run a job
npx moonset sandbox \
    --plugin '@moonset/plugin-platform-emr'  \
    --plugin '@moonset/plugin-data-glue' \
    --job '{
    "input": [{
        "glue": { "db": "foo", "table": "apple", "partition": {"region_id": "1", "snapshot_date": "2020-01-01"}}
    }],
    "task": [{
        "hive": {"sql": "insert overwrite table foo.pineapple partition (region_id=1, snapshot_date=\"2020-01-01\") select foo from foo.apple;"}
    }],
    "output": [{
        "glue": { "db": "foo", "table": "pineapple", "partition": {"region_id": "1", "snapshot_date": "2020-01-01"}}
    }]
}'

One problem is the glue input & output dataset's dbName and tableName can be the same. For example, I want to depend on the history of the same dataset. How to enforce each input and output are unique in this use case?


Using node-webkit

Sorry, but for use this implementation with node-webkit, what i have to do?. The docs show a index.html (https://github.com/nwjs/nw.js/), but in the case of the mean.js we need to start the aplication first :(. Its posible?

With something like this, work for me.

<head>
    <script>

        //function bodyOnLoad(){
          //  window.location.assign('http://localhost:3000/');
        }
    </script>
</head>
<!--<body onload="bodyOnLoad()"> -->
<body>

	APP IS RUNNING IN PORT 3000
</body>


How can I turn off the debug message?

I am using the Region.exists() and a while loop to perform an operation that looks for a desired object on the screen and waits until it appears if is not shown up yet. However, it is quite annoying that it continuously displays debug messages on the console. Like Couldn't find '{}' with enough similarity.
I would like to turn off these debug messages so that my log doesn't look that messy.
One way I can think of is to add an option flag to the function. For example  exists(self, pattern, seconds=None,debug=True). The debug parameter is used to control this behavior. And the implementation looks like this:
if debug:
    Debug.info("Couldn't find '{}' with enough similarity.".format(pattern.path))

Not sure if this is the best way to go. If there any possible solutions?

You should be able to set the global Settings flag to disable the Action, Info, and Debug logs individually:
Settings.ActionLogs = True (message prefix: [log])
Settings.InfoLogs = True (message prefix: [info])
Settings.DebugLogs = False (message prefix: [debug])

If this doesn't work, there may be a deeper issue I need to fix. Try it and let me know!

This functionality is for compatibility with Sikuli script conventions:
http://sikulix-2014.readthedocs.io/en/latest/scripting.html#debuglog

It works!
Thanks very much.


feat: lru cache for batchstore

Addresses #3992

Hey, nice PR, it's a good step in the right direction.
It would be good to cache all statestore items, but it's not the right time to tackle this as there is large rewrite of the localstore and statestore.
Once the rewrite is out, we can come back to this. So for now, closing this.

related #4177


can not pass the [TC-DD-2.1] in the VMware, it's Ubuntu

Reproduction steps
step 14b,c execution failed and I'm not sure if I need to install some tools
Bug prevalence
many times
GitHub hash of the SDK that was being used
esp-idf
Platform
esp32
Platform Version(s)
1.0.2
Type
Test Improvement
Anything else?

@bzbarsky-apple

@vivien-apple

dns-sd is only available on Darwin (MacOS/iOS/etc), and is always available there.
If you're on Ubuntu, you should be using avahi, and the verification steps should be listing the relevant avahi commands.

@bzbarsky-apple @vivien-apple

but I also have a small problem with the instruction "'avahi-browse _matterc._udp -r" in Step 15b on ubuntu. I am not getting the expected results.

@lisaaaas What are you getting?  What do you expect to be getting?

@bzbarsky-apple

@lisaaaas That does not answer my questions.  Again: What output are you getting (not the first line, the full output) and what output do you expect to be getting?

in Step 15b，My output are as follows：
real log.txt
The expected output is:
expected  log.txt
According to the description of this test case:

@bzbarsky-apple

OK, so which part is unexpected?  The spreadsheet gives an example, so obviously your hostname and instnace name and whatnot will be different, and the spreadsheet is listing the old formatting, and chip-tool has changed how exactly it prints things, in various ways (timestamp format is different, formatting of the log message prefix is different, the logging is obviously different, because you are running it on Linux and the spreadsheet is showing it running on Mac, and they have different dns-sd implementations with different logs, etc.
But the test is not saying "you must have this exact output", right?  That would be completely unreasonable; for example different devices have to have different values for the hostname, and instance names are randomly generated.  What is the actual test condition that is supposed to be passing and is not @lisaaaas ?


Improve links in management UI

Fixes #3196
Release Page

Change to "Manage"

Add "Manage version" title

Release Page Detail

Add "Download file" title

Limit link underline length

Thanks @pgadige!

:tada:


Send feature types and resources

Send csWeb compatible feature types with the JSON schema (see NLeSC/sim-city-cs#18)

Fixed with f86409d9d54e5a941c9e00e89010748bf79d6229


Update Deprecated warning from "warn" to "warning"

Describe the bug
While running test cases there is deprecation warning for warn
Updated some left out files with warning
To Reproduce
NA
Expected behavior
NA
Environment (please complete the following information):

OS: [LINUX]
Browser [chrome]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Updated in PR

closing as PR #605 is merged


Error "Invalid params" when send a big mount of transaction(old versions before 21.10.9 dont have this issue)

Description
I am using Caliper to test the performance of besu(IBFT2.0 and Clique). However, there is one transaction in the middle of it was failed with error "Invalid params". It cause the nonce gap because Caliper sends consecutive nonce number of transaction. All the transactions after the failed transaction will stuck in the txpool.
I found an exactly same issue form Caliper repo's  issue:
https://github.com/hyperledger/caliper/issues/1474
But, the old version of Besu(before 21.10.9) doesn't have this issue. So I assume the new version's update triggered it.
Can anyone help?
Steps to Reproduce (Bug)
https://github.com/hyperledger/caliper/issues/1474
Here is the reproduce process someone posted. I guess it will happen when there is a huge amount of transactions send the the node.
Versions (Add all that apply)

Software version: [besu --version]
above besu-22.10.1

I see that you found the issue around the tx-pool limit flag. In our next release we also have a new transaction pool that would not cause these transactions to be stuck. OK to close this issue? With the right config it should allow Caliper to continue

how to solve this issue, as it exists in 23.1.3 when I benchmark with caliper

@chenqping yes, I also still have this error even with version 23.1.4. But I noticed if I set it to a lower txNumber(txNumber: 1500), there is no error. This error is occurring around 1700~1900 tx.
@non-fungible-nelson Would you please send me the pool limit flag fix issue number or code commit? The error still there.


Configurable source dirname?

Currently it is a requirement that source is under /src, I'm wondering whether it would be possible to make this path configurable as opposed to fixed.
I've found this workaround, but its tightly coupled to the current implementation: https://stackoverflow.com/questions/44448851/how-do-i-change-src-folder-to-something-else-in-create-react-app
Would it be possible to support this type of behavior directly?

Sorry, but this isn't something we are going to make configurable.
Your react-app should live in its own directory, so folder names shouldn't really matter.

Yup the react app is in its own directory. I'm using it within an electron app, however I have other source in my repo that isn't used directly within that react app but communicates with it (osc over udp) and so with those other external components, I'm left with a situation where I can either

have a bunch of descriptively named directories in parallel with a generically named src directory that actually holds the electron react app
put code not directly used within the react app under the src directory
split things out at the top level and deal with the overhead of managing separate package.json for each top level dir

None of these are particularly great and . Is there a technical reason making this configurable isn't possible or is it a philosophical decision?

Philosophical. 😄

lol well i guess it's a good thing that at least you've all figured out the first half of "make the easy things easy, and the hard things possible"

Well, it's good its a philosophical decision because philosophies change over time in this field.


Error, while starting GPT by the code

Console log:
MoodleGPT.js:1 Uncaught TypeError: Cannot read properties of null (reading 'style')
    at MoodleGPT.js:1:6979
    at HTMLBodyElement.<anonymous> (MoodleGPT.js:1:7110)

Hello, I never saw this error before. Could you give me screen of the console and show me where the error came from the code ?

Ok thx. I don't know why you are getting this error but I will fixe it in the next version. For the moment you can use the version on the dev branch and tell me if it fixe it.
https://github.com/yoannchb-pro/MoodleGPT/tree/dev

See: https://github.com/yoannchb-pro/MoodleGPT/tree/dev#set-up to set up the extension from the download


Improve SceneLauncher

[ ] Add an easier way to add all the scenes in the project and enabling the buttons on the prefab.
[ ] Determine if we want to have all the toolkit scenes in the editor build settings.

See Comments

I see three goals for scene management of the scene(s) when you build and run on device:

Make it easy to run the current scene that you're working. This currently works well because when there are no scenes in the build settings, builds automatically use the current scene.
Run all scenes in HoloToolkit. This can be used for testing multiple scenes so that you don't have to build and run each scene individually. It is currently cumbersome to do this, requiring a number of manual steps in both the build settings and the SceneLauncher settings.
New user experience. I'm guessing that new users would want to run on device and see demos of various scenes from HoloToolkit. Although experienced users can configure option 1 or 2 above, how to do so may be discoverable for new users. What should the default be if you get HoloToolkit for the first time? I'm thinking SceneLauncher with all scenes would be the best outcome, but I worry this conflicts with the first option because then it would be more difficult to run a single scene.

I'd be curious to hear opinions about which of these goals is highest priority or ideas for how we can meet goal 3 without making 1 more difficult.

Closing issues older than 180 days. If this is still an issue, please reactivate with recent information.


Add tests for core.util

Mock now a requirement

Codecov Report

Merging #138 into develop will increase coverage by 0.12%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #138      +/-   ##
===========================================
+ Coverage    73.61%   73.73%   +0.12%
===========================================
  Files           14       14
  Lines         1622     1622
  Branches       355      355
===========================================
+ Hits          1194     1196       +2
+ Misses         349      348       -1
+ Partials        79       78       -1

Impacted Files
Coverage Δ

src/datreant/core/util.py
100% <0%> (+25%)
:white_check_mark:

Continue to review full report at Codecov.

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

This adds mock as a requirement (because it's not standard library till 3.something).  I think I've put it in all the right places for it to be a requirement when installing/building


Fix loadEditorScriptAssets for duplicate items

We had a problem where we had (due to merging) multiple files, creating the same script.
This caused an exception when loading the assets.
This fix will skip items that are no longer found, because they have been already processed.
Note: It may lead to unexpected behavior if the "wrong" script is loaded first.

Thanks for the PR, it seems that Github missed sending me a notification., apologies for the delay.


chore(ci): Change bb and srs_db to generate new images

Second attempt at fixing the CI (see #1798)

Closing. Just manually deleting image tags fixed it. See https://app.circleci.com/pipelines/github/AztecProtocol/aztec-packages/8222/workflows/e1f657e7-3ddc-4bd9-bfc3-d22e3b763bf8.


Update latest-version.html of KFP

Part of KFP weekly release. Thanks!

This change is

/assign @Bobgy

Hi @numerology, can you follow instruction in the release playbook to update this file without adding a newline at the end of file. You cannot use github UI to make the change, it will always append an newline at the end

Heh you're right @Bobgy - I just tried removing the empty line and it didn't work.

Oh I missed that. Thanks @Bobgy @sarahmaddox for reminding!

/lgtm

/approve


model: expose port-forwards as endpoints

Hello @landism, @yuindustries,
Please review the following commits I made in branch nicks/ch704/portforwards:
f91278a447fe54a46a57c6202443a373239b6d62 (2018-11-16 16:47:58 -0500)
model: expose port-forwards as endpoints

note that after this change, you can open any servantes frame individually


memory leak

Because powa background worker run constantly it has memory leak.
I suggest exit background worker periodically (by config, default 1 hour for example), and postgres will restart it itself.

after some days process powa eats 15.1GB (RES)

That's surprising as there have never been any report of memory leak in the past.
Which version of powa-collector are you using, and how much RAM do you have on your server and what is the value of your shared_buffers setting?  Can you paste the output of cat /proc/$pid/smaps where $pid is the pid of powa collector?

how much RAM do you have on your server

64 GB

Can you paste the output of cat /proc/$pid/smaps where $pid is the pid of powa collector

attached
cat.log

I suggest exit background worker periodically (by config, default 1 hour for example), and postgres will restart it itself.

for example, https://github.com/RekGRpth/powa-archivist/commit/d53ef46978904bbc51fe1b50be10420b2009981b

This patch has multiple problems.  The biggest I see, apart from the poor indentation that makes it extremely hard to read is that it doesn't preserve the regular snapshot frequency, so you can end up with two snapshots being done seconds apart.  We definitely don't want to do that.
More generally, what are you trying to achieve here?  As mentioned in that thread, you didn't show any evidence of memory leak.  Also, I saw dozens of systems with powa being alive for months or years without any issue so I highly doubt that there is any memory leak.  Similarly, I don't foresee any need to do any change in the bgworker code at any point in the future so I see no reason to think that any leak might be introduced.
As far as I can see the only problem you're solving is a broken monitoring system that doesn't know how to properly report memory usage.  You can try hard to make sure that you never have any persistent connection on your database, but the only thing this will do is significantly decrease the overall performance of your system.


feature: hybrid mode with ring allreduce

type
file
changes

modified
examples/distributed_training/dataset_1.json
changed realm to be the same to run distributed training

modified
examples/distributed_training/dataset_2.json
changed realm to be the same to run distributed training

modified
examples/distributed_training/dataset_3.json
changed realm to be the same to run distributed training

modified
examples/distributed_training/job.json

modified
examples/distributed_training/schema.json
modified schema to run distributed training with flame system control

--
--
--

created
lib/python/flame/examples/hybrid/trainer/config_eu_org1.json
rename

created
lib/python/flame/examples/hybrid/trainer/config_eu_org2.json
rename

created
lib/python/flame/examples/hybrid/trainer/config_us_org1.json
rename

created
lib/python/flame/examples/hybrid/trainer/config_us_org2.json
rename

--
--
--

modified
lib/python/flame/mode/distributed/trainer.py
example config

modified
lib/python/flame/mode/hybrid/trainer.py
major change of this commit

This commit adapt the ring all-reduce method from distributed training to the hybrid mode as hybrid mode uses distributed training among the grouped trainers.
There is one issue that needs to be resolved in this PR.

The system works if there is one trainer and one aggregator.
The system works if there are two trainers from two different groups respectively with one aggregator.
The system works as expected when two trainers of the same group start first, and then start the aggregator.
The system fails when starting with one trainer and one aggregator, and then start another trainer of the same group (i.e., a new trainer joins in the midst of training).

There is one issue that needs to be resolved in future PR for distributed learning example.

When there are 2 trainers already forming 2-node ring topology and close to the end of training, a new trainer joins and cannot form an agreement of the 3-node ring topology. It's possible that the new trainer is selected as one of the nodes saving the local model, which isn't what we want. This case won't occur in the hybrid mode because a new trainer in hybrid mode will fetch the latest weights from the aggregator first.
Currently, a number of selected trainers picked by COMMIT-COUNT will be the representative sending the weights to the aggregator. However, this isn't necessary as after ring all-reduce operation all trainers should share the same weights. They should still select a trainer to send the weights instead of multiple.

Closing this PR since PR #170 is created.


Automation Templating (from_state/to_state) doesn't allow access to attributes

Home Assistant release (hass --version):
.64.3
Python release (python3 --version):
3.5.2
Component/platform:
Automation
Description of problem:
When using trigger.from_state and trigger.to_state, trying to access the attributes from the states doesn't seem to work.
To debug this, I am printing specific attributes as well as the states. The first three (printing attributes) does not work, but printing the state does work.
Expected:
Access the attributes of the state at that time.
Problem-relevant configuration.yaml entries and steps to reproduce:
  action:
    service: notify.hass_synchat
    data_template:
      message: >
        Roomba is done cleaning.
        Area cleaned: {{trigger.from_state.attributes.cleaned_area}}.
        Cleaning time: {{trigger.from_state.attributes.cleaning_time}}.
        Cleaning time: {{trigger.from_state.attributes.cleaning_time}}.
        Cleaning time debug1: {{trigger.from_state.state}}.
        Cleaning time debug2: {{trigger.to_state.state}}.

Put above, or similar, into your config
Fire off an automation
Note that only the .state s print a value, and nothing from attributes

I haven't tried this yet, but can you try trigger.entity_id instead of trigger.from_state?

Also, just to confirm {{trigger.to_state.attributes.cleaned_area}} works?

@arsaboo I haven't tried any of the {{trigger.to_state.}} attributes because the attributes I care about get dropped from the new state, which is why im trying to access the old state's attributes.
Presumably trigger.entity_id wouldn't work (at least for my case) since I'd presume trigger.entity_id is the current state (which wouldn't have attributes anyway).
Fro my read of the docs, https://home-assistant.io/docs/automation/templating/, trigger.entity_id is just a name, so not a state object?

Correct. entity_id is the entity ID. You should be able to access trigger.from_state. It's even tested: https://github.com/home-assistant/home-assistant/blob/dev/tests/components/automation/test_state.py#L66 (although attributes are not).
If you can make that test fail on a from_state attribute, that would be a great start towards a fix.

This as a mistake on my end :( trigger.to_state and trigger.from_state (both the same in this case) are derived template sensors from vacuum attributes, and it is the vacuum that have the rest of the attributes i want, not the derived sensors.


update observe dependency

lmk if you want me to do a minor version bump versus a bug fix, this really should have been released with 0.16.3 though which is why im doing it as a bug fix.

@sigmundch is flying. LGTM :smile:


How to optimize keeping the docker container database up to date

I want to maintain a image with up-to-date vulnerability databases up to 4 hours. I was trying to reduce the pulls to the NVD by recursively building the image and running a database update. ever 4 hours. I noticed the size of the container is expanding exponentially so I was thinking of instead using a multi-stage docker build.
What folders do I need to copy over in a multi-stage docker build?

In a multi-stage build after running the update you would have to copy over the contents of /usr/share/dependency-check/data
If you have an environment with external persistent storage available to your containers you could avoid the periodic container-build/push by mounting the datalocation as a volume (which is what is done in the script referenced in our documentation for running the container - https://github.com/jeremylong/DependencyCheck?tab=readme-ov-file#docker)
Also be aware of that the docker image (which uses the CLI) is only recommended as a scanner of last resort. If your project is built by a tool for which there is a dedicated build-tool based plugin you will typically get much better results (fewer false positives)


how to make otg reads the biomes on the existed map files

Is your feature request related to a problem? Please describe.
I'm always frustrated when i want to use a map created by worldpainter,which means there are sevreal biomes waiting otg to generate trees,ores,and etc.But in fact,when otg opens a map(I copied the regions to a current OTG files),it just generate trees and ores using its seeds.
Describe the solution you'd like
hope there are a config files which can manage options whether read a existed worldpainter map or not.If this option is set to true,the OTG will follow the biomes contained in the map file to generate trees and buildings.

Hey @3094300238 , please join us on the OTG Discord for questions like this. as there are more people who can help you there. I don't personally use WorldPainter, but users like NLBlackEagle do. Thanks!


Manpage 2

use backticks "`" where appropriate
use tab indent for code block and whitespace changes
use definition lists for command-line options
remove % author to remove duplicate AUTHORS section

This looks fine, though I would prefer to avoid using definition lists for the args since it can automatically introduce linebreaks.

I tried looking at the man page using man -l keyd.1.gz and there is no line break. It looks like pandoc is smart about this.

In this case the lines are short enough but they may change at a later
point. I would prefer to use explicit formatting to avoid this. I'm fine
with using them for the config options where the effect is desirable.
On Sat, Aug 28, 2021 at 5:19 PM eNV25 @.***> wrote:

I tried looking at the man page using man -l keyd.1.gz and there is no
line break. It looks like pandoc is smart about this.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/rvaiya/keyd/pull/21#issuecomment-907691015, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOP7GLHILDORFNIHLM4PPLT7FHHRANCNFSM5C7PXCOA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I just tested this real quick by copy-pasting a line and that's not the case. There is no line break after the option and everything is properly formatted like a paragraph.
There is only a line break when you have both short option and long option. **-m**, **--monitor**.

If you want I can remove the commit and force push anyway.

There is only a line break when you have both short option and long option. -m, --monitor.

So it would seem. In any event, it is non-intuitive behaviour and might cause confusion in future amendments.

If you want I can remove the commit and force push anyway.

No need, I've already merged your changes and reverted the arg change.
Thanks for making separate commits, however in this case it was probably
unnecessary. These are all related to the man page and don't involve a lot of
superficial formatting changes like the last one, so a single commit is fine.
To this end I've taken the liberty of squashing them.

Thanks for merging.

To this end I've taken the liberty of squashing them.

Next time you can use Github's "Squash and Merge" feature. This way the PR will show as merged.

Yes, but I don't know what that actually does and I don't trust/like github
:P.
On Sun, Aug 29, 2021 at 6:40 PM eNV25 @.***> wrote:

Thanks for merging.
To this end I've taken the liberty of squashing them.
Next time you can use Github's "Squash and Merge" feature. This way the PR
will show as merged.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/rvaiya/keyd/pull/21#issuecomment-907888648, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOP7GJJU7RZYV4FPUHTBF3T7KZOZANCNFSM5C7PXCOA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Plans for release?

This is an awesome project and is just what I'm looking for to support feiertag. I'd like to start kicking the tires on this repo and was wondering if you have plans to cut a dev release on pypi? In the interim I can add it as a directly-installable lib from git.

There are some things that are still undecided so any release at this point will be experimental, but I think we should be able to make a dev release soon.
@erip, in the mean time - we are definitely looking for more people to help with this project. (provide feedback, discuss, and pitch in with pull requests).

I'm happy to start developing against what's in the main branch now and can let you all know what I find. 🙏

@erip Sounds great.
I'll be making another big push next week to get as much useful content into the main branch as I can. Do you have any requests for specific configuration files that aren't already in the repo that would be immediately useful to your project?

Nope! Between the standard pytorch optimizers, losses, etc. that are documented in the issues and the hydra-lightning repo, I should be set. 😎

Is this project stalled? Are there plans to retake it and complete the package release? Thanks.

@jzazo please see this issue: https://github.com/pytorch/hydra-torch/issues/78


Unable to ssh-add private key

Describe the bug
I have installed Ansible on my Rundeck host, ansible inventory is working fine but i'm unable to connect to node with protected ssh key.
On my nodes i have an ansible user and i'm using a passphrase protected private key.
I added the key on my project key storage and i configured Ansible Ad-Hoc Node executor like this :
Executable : /bin/bash
Ansible config path : /etc/ansible/ansible.cfg
SSH authentication : privateKey
SSH user : ansible
SSH key file path : keys/project/test
SSH key storage path : keys/project/test/ansible_rsa
Use ssh-agent : YES
SSH passphrase : keys/project/test/ansible_pass
SSH Passphrase from secure option : option.sshKeyPassphrase
Use become privilege escalation : YES
Here is my framework.properties :
framework.ssh.keypath = /var/lib/rundeck/.ssh/ansible_rsa
framework.ssh.user = ansible
My Rundeck detail

Rundeck version: 4.3.1
install type: deb
OS Name/version: Ubuntu 20.04
DB Type/version: default
Ansible version : tried with 2.9.6 and 2.12.6

To Reproduce

Create a project with Ansible node executor and a job
Launch the job
See error : Failed: AnsibleError: ERROR: ssh-add returns with non zero code:[/usr/bin/ssh-add, /tmp/rundeck/ansible-runner2936769464804268420id_rsa]
Connect ssh to Rundeck host
Try to add  the key : ssh-add /tmp/rundeck/ansible-runner2936769464804268420id_rsa
See error : Error loading key "/tmp/rundeck/ansible-runner2936769464804268420id_rsa": invalid format
Open the file with vim and convert the file to unix format : set ff=unix and save it
Try to add  the key : ssh-add /tmp/rundeck/ansible-runner2936769464804268420id_rsa
ssh-agent ask you to type the passphrase

Expected behavior
ssh key must be added
Thank you for your support.

if i replace SSH key file path : keys/project/test by SSH key file path : /var/lib/rundeck/.ssh/ansible_rsa
and empty SSH key storage path everything is working


Support stream generation with JavaObjectTransformer

In order to make JavaObjectTransformer  generate a stream of values through method
    public Stream<Object> generateStream(final Schema<Object, ?> schema, long limit)

I had to inject a clazz variable sourceClazz.
sourceClazz acts as the input Class for apply.

Hi @gatear , what's the state of this PR? It looks good to me, do you want it merged?

@bodiam yes, it's ready to merge 👍


commands: Add create realm command

This PR add a cli command "create_realm" to create reamls.
It also creates a user that is the realm owner.
This is discussed at #production-help>Automatic deployment

I just tested this and it seems to work well :)
Only thing that wasn't super clear to me from the --help text is that the --string-id controls the subdomain the realm runs on, but that could very well be because I'm pretty new to Zulip.
Is anything else I can do to make sure this gets reviewed by a Zulip team member?

Related: https://github.com/zulip/docker-zulip/pull/325

I don't expect to do much further Zulip work before the holidays. Addressing the comments would be helpful, but I will try to process whatever remains and then merge this before the 5.0 final release.
If not, it's not a big deal -- I expect this patch to apply cleanly to future Zulip versions without issue.

Hello,
I see that this patch has not been included in 5.0-rc1.
@timabbott I did not know how to correct this to include your comment about the password.
Will you have the time to look at it before the 5.0 release?
Thank you.

OK, I reviewed this, and then determined it was easier to rewrite the pull request, and ended up with a relatively long branch. Since it appears @gdelafond has disabled the GitHub feature to let maintainers push to this pull request, I'm closing it in favor of #21496, which contains my rewrite.
The one feature I've not included in my version is the invite_required option that you had in this initial pull request. I'm not sure it makes sense conceptually to include, given that we don't offer an option to toggle that when creating a realm via the UI, and it seems like if you're going to reconfigure the realm's settings after creation, it'd be most appropriate to do that via the API.

The one feature I've not included in my version is the invite_required option that you had in this initial pull request.

I just found out that this one is important to us. Our use-case:
We set up OIDC as the only way of logging in, because we're running servers with several different applications linked together. The OIDC accounts should be able to log in as soon as they're created in the central user management. For that reason, we disable invite-only as soon as we create our realm.
I looked at ways of doing this through the API, but because we're already creating the realm through the management command, it would be easier to add a separate management command that can set the invite_required for the realm we just created, similar to the change_realm_subdomain command. I actually just copied that and changed it a bit:
from argparse import ArgumentParser, BooleanOptionalAction
from typing import Any

from zerver.lib.management import ZulipBaseCommand

class Command(ZulipBaseCommand):
    help = """Change realm's invite_required setting."""

    def add_arguments(self, parser: ArgumentParser) -> None:
        self.add_realm_args(parser, required=True)
        parser.add_argument("--invite-required",
                            action=BooleanOptionalAction,
                            help="Set the realm's invite_required option")

    def handle(self, *args: Any, **options: str) -> None:
        realm = self.get_realm(options)
        assert realm is not None  # Should be ensured by parser

        realm_invite_required = options["invite_required"]
        realm.invite_required = realm_invite_required
        realm.save()
        print("Done!")

Would you see yourself merging this if I would turn this into a PR? Or is there a better way to achieve what I need?


fix(client): BREAKING CHANGE - Jsonable tightening

overlay of proposed new "Jsonable" type over the existing one. There are breaks in client making this change that are not addressed. One common case is not allowing undefined, which is not encodable.

Introduction of alternative new types: #21725


Update NetMonitor.qplug

Adds OID for uptime and associated UI adjustments.  Tested for uptime accuracy to within a minute or two.  Certainly within margin of error for a polling rate of 1 minute.

Looks good! Merged :-)


Question 1: Political Action Committees

Question title
Super Political Action Committee (Super PAC) Contribution Limits
Description (will display on homepage)
This measure would limit contributions to Super PACs.[5]
The gist
This measure would limit contributions to Super PACs to $5,000 per year for individuals, businesses, unions, or other PACs.[2]
Ballot question (exact text of the question)
"An Act to Limit Contributions to Political Action Committees That Make Independent Expenditures, Do you want to set a $5,000 limit for giving to political action committees that spend money independently to support or defeat candidates for office?"[5]
Yes means
I am in favor of limited contributions to Super PACs to $5,000 per year.
No means
I don't want to limit contributions to Super PACs.
Tell me more
Super PACs are political action committees that make independent expenditures. They operate under different rules than regular political action committees and cannot give directly to political parties or politicians, but can independently campaign for or against candidates. Regular PACs, which can contribute directly to political parties or policitians,  have a $5,000 contribution limit and cannot accept contributions from businesses or unions.[2]
This question is a citizen’s initiative, which is a way for Mainers to propose new laws. In order to become a valid initiative, a petition supporting the initiative must collect over 60,000 signatures.
Follow the money
It would cost $75,000 to update a campaign contribution database to impose the limit.[5]
Pros
The primary arguments for this referendum are:

It would reduce the influence businesses or people with a lot of money can have on elections.
It would be a test case for other states to follow. [3]

Cons
The primary arguments against this referendum are:

Some consider limiting campaign contributions to be a limit on free speech.[5]
If passed, the law is likely to be challenged in court. [3]

Who cares [2]
Support

Citizens to End Super PACs
Equal Citizens

Opposition
There is no registered opposition.
Further reading
Full text
Ballotpedia article
Portland Press Herald Article
References
Put the number in brackets above to indicate a footnote to a reference.

Maine State Legislature. PAC Legislation. Accessed September 28, 2024.
Ballotpedia State Desk. Maine Question 1, Limit Contributions to Super PACs Initiative (2024). Ballotpedia. Accessed September 28, 2024.
Russell, Eric. Measure to limit PAC contributions in Maine could be headed for November ballot. Portland Press Herald. Accessed September 28, 2024.
Russell, Eric. Here’s the order of 5 Maine ballot questions, including PAC limits, state flag. Portland Press Herald. Accessed September 28, 2024.
Bellows, Shenna. Maine Citizen’s Guide to the Referendum Election. Accessed September 28, 2024.

Image
Use same image as this question: https://www.maineballot.org/november 2023 election/q1_quasiborrowing/
Tags
Citizen's Initiative, Super PAC, Campaign Contributions
Election date
November 5, 2024

Content is drafted. @inomyabcs or @relspeedwagon Do one of you want to review?

@shannonmcharg Reviewed. 👍


Add with() method to support external ServiceInstanceListSupplier(#988)

Add with() method to support external ServiceInstanceListSupplier extension(#988)

Fixes gh-988.

@chenzhiguo

[ERROR] /home/appuser/project/spring-cloud-loadbalancer/src/main/java/org/springframework/cloud/loadbalancer/core/ServiceInstanceListSupplierBuilder.java:252: First sentence should end with a period. [JavadocStyle]

Basically, you need to add a full stop at the end of the first javadoc sentence (in line 254).


Graph across labels rather than time

I'd like to view a CDF of an Instant query which returns multiple series differing by their label.  For this query, there isn't any time axis.    The query data would look like this:

time
value[id="X"]
value[id="Y"]
value[id="Z"]
value[id="W"]

t1
1
5
3
2

Hi,
the cdf plugin will draw per each series a CDF within the same graph.
The time field will by anyhow dropped, so there are no daubts that it will not work.
BR,
Sebastian
Von: Alan Somers @.>
Gesendet: Dienstag, 7. Februar 2023 21:55
An: telekom/sebastiangunreben-cdf-plugin @.>
Cc: Subscribed @.***>
Betreff: [telekom/sebastiangunreben-cdf-plugin] Graph across labels rather than time (Issue #3)
I'd like to view a CDF of an Instant query which returns multiple series differing by their label. For this query, there isn't any time axis.  The query data would look like this:
time
value[id="X"]
value[id="Y"]
value[id="Z"]
value[id="W"]
t1
1
5
3
2
—
Reply to this email directly, view it on GitHubhttps://github.com/telekom/sebastiangunreben-cdf-plugin/issues/3, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUDZJISOSEZKFWGSG7BYV6TWWKZARANCNFSM6AAAAAAUUOGHCQ.
You are receiving this because you are subscribed to this thread.Message ID<EMAIL_ADDRESS>


seed cache with local copy

@hhravn Thanks!
@Froelund What do you think?

@hhravn Want to update the readme? :)

Done


firebird-emu: support darwin

firebird-emu supports darwin, but the derivation has not been tested on macOS. until now
This commit adds darwin support to the derivation, with the necessary tweaks to support building for a darwin target. Namely, adds a workaround for https://github.com/NixOS/nixpkgs/issues/19098, and adds a missing dependency, qtquickcontrols.
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@ofborg build firebird-emu firebird-emu.passthru.tests


Instance name formatting is broken when instance name tooo large

use https://mui.com/system/display/#text-overflow for display and tooltip for full name.


add a console emulator

This is probably better handled in a separate project, see https://github.com/kevinbarabash/consemu.


Chore/update angular

Closes https://github.com/springwolf/springwolf-core/pull/199
Closes https://github.com/springwolf/springwolf-core/pull/198
Closes https://github.com/springwolf/springwolf-core/pull/197
Closes https://github.com/springwolf/springwolf-core/pull/196


OrdinationResults fails to write

When trying to write an skbio.stats.ordination.OrdinationResults object to a file, the .write() method fails. Seems to be a NumPy deprecation.
Reproducible example:
import biom
from skbio.stats.ordination import pcoa
from skbio.diversity import beta
from scipy.spatial.distance import pdist, squareform

tbl = biom.example_table
counts = tbl.transpose().to_dataframe(dense=True)
dm = squareform(pdist(counts.values, "braycurtis"))

ord_res = pcoa(dm)
ord_res.write("./ordination.txt"

Error Message

/home/grahman/miniconda3/envs/gemelli-dev/lib/python3.8/site-packages/skbio/io/format/ordination.py:414: FutureWarning: In the future `np.str` will be defined as the corresponding NumPy scalar.
  formatted_vector = '\t'.join(np.asarray(vector, dtype=np.str))
Traceback (most recent call last):
  File "bug.py", line 11, in <module>
    ord_res.write("./ordination.txt")
  File "/home/grahman/miniconda3/envs/gemelli-dev/lib/python3.8/site-packages/skbio/io/registry.py", line 673, in write
    return registry.write(self, into=file, format=format, **kwargs)
  File "/home/grahman/miniconda3/envs/gemelli-dev/lib/python3.8/site-packages/skbio/io/registry.py", line 619, in write
    writer(obj, into, **kwargs)
  File "/home/grahman/miniconda3/envs/gemelli-dev/lib/python3.8/site-packages/skbio/io/registry.py", line 1082, in wrapped_writer
    writer_function(obj, fhs[-1], **kwargs)
  File "/home/grahman/miniconda3/envs/gemelli-dev/lib/python3.8/site-packages/skbio/io/format/ordination.py", line 370, in _ordination_results_to_ordination
    _write_vector_section(fh, 'Eigvals', obj.eigvals)
  File "/home/grahman/miniconda3/envs/gemelli-dev/lib/python3.8/site-packages/skbio/io/format/ordination.py", line 387, in _write_vector_section
    fh.write(_format_vector(vector.values))
  File "/home/grahman/miniconda3/envs/gemelli-dev/lib/python3.8/site-packages/skbio/io/format/ordination.py", line 414, in _format_vector
    formatted_vector = '\t'.join(np.asarray(vector, dtype=np.str))
  File "/home/grahman/miniconda3/envs/gemelli-dev/lib/python3.8/site-packages/numpy/__init__.py", line 305, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'str'.
`np.str` was a deprecated alias for the builtin `str`. To avoid this error in existing code, use `str` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.str_` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecation

Versions

NumPy: 1.24.3
Scikit-Bio: 0.5.6
Scipy: 1.10.1

What about with skbio 0.5.8? It looks like this may have been fixed 2 years ago, see https://github.com/biocore/scikit-bio/blame/master/skbio/io/format/ordination.py#L414

That'll do it. Thanks - should've checked the version. I think I installed via the anaconda channel (which is only up to 0.5.6) instead of the conda-forge channel. Updating to 0.5.8 works.


Update active-directory-security-groups.md

Description:
Members of this group can perform administrative actions on key objects within the forest.

@mwalschburger thanks for this contribution. Can you also provide the Well-known SID/RID for Enterprise Key Admins group?

@mwalschburger sorry I see now you sent me the RID in email, please disregard.


Update README.md

TODO is already implemented in the code.

Pull Request Functional Test Report for #2161 / af9579b0a1336dc783c2cce7eef2dafd18f6873d
No tests identified for validation.
Help

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1347

Relevant Lines:
2947

💛  - Coveralls


streamSettings available parameters

Hello
Thank you for such useful information and library. I'm not sure what the settings are expected with the function streamSettings(bitrate, resolution). Could you please list the possible ones? Thx.
Camera: Hero4 Black.

For HERO4 Black: bitrate choose from here: https://github.com/KonradIT/gopro-py-api/blob/master/goprocam/constants.py#L81
for resolution: from here to here


Create instruct model

Could it be used for code comments or features over code?

Let's use a text model as instruct


Add files via upload

these changes allow user to have mutual friends between 2 users with @user1.get_mutual_friends(@user2)
We can also have the invitation request itself with @user1.get_invitation_request(@user2). This can be usefullif we want to display the created_at of an invitation request

Coverage decreased (-0.4%) to 99.394% when pulling 902a9ee829ec296bacd5c528b73b86845d572e52 on lethunder:lethunder-patch-1 into 83368e8f8b6ced80bd8d1ac9681d6f9a1aa05343 on sungwoncho:master.

@lethunder 👋 do you have the time to revive this PR? If not, I'd suggest we drop close for now and revisit later.

Hey, sorry for the delay. I'll do my best to update it during week-end.
Le jeu. 29 nov. 2018 à 19:51, Kevin Brown<EMAIL_ADDRESS>a
écrit :

@lethunder https://github.com/lethunder 👋 do you have the time to
revive this PR? If not, I'd suggest we drop close for now and revisit later.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sungwoncho/has_friendship/pull/44#issuecomment-442949375,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF7gVKIKq23axC1SA2tg72W4foWFi7OKks5u0CyngaJpZM4NeaIA
.

Hey Kevin,
sorry not possible for me now to handle this. Too busy... I think you can
close or i can delete the PR. We can revisit later ...
Le ven. 30 nov. 2018 à 08:36, Didier BANLOCK<EMAIL_ADDRESS>a
écrit :

Hey, sorry for the delay. I'll do my best to update it during week-end.
Le jeu. 29 nov. 2018 à 19:51, Kevin Brown<EMAIL_ADDRESS>a
écrit :

@lethunder https://github.com/lethunder 👋 do you have the time to
revive this PR? If not, I'd suggest we drop close for now and revisit later.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/sungwoncho/has_friendship/pull/44#issuecomment-442949375,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF7gVKIKq23axC1SA2tg72W4foWFi7OKks5u0CyngaJpZM4NeaIA
.

--
Cordialement,
Didier Banlock


Update submodules

Add solver-service fix for old commits: https://github.com/ocurrent/solver-service/pull/35

I thought @tmcgilchrist reverted this commit for the solver-service live branch because it was causing issues. Was it the case, or was it the representation of another bug?

It is a representation of another bug.


Fix head not hashed

in https://github.com/paritytech/substrate/pull/3344 I wrongly change the specification of linkedmap
before the key of the head of the linkedmap was stored at $hash("head of " ++ module_name ++ " " ++ storoagename) and after it was stored at "head of " ++ module_name ++ " " ++ storoagename.
Fix PR Fixes it.

you can see the old code here https://github.com/paritytech/substrate/pull/3344/files#diff-33d847aa282ef513a046d0fa420fbaccL587-L589

at least linked_map is used at:
./srml/elections-phragmen/src/lib.rs:151:		pub VotesOf get(votes_of): linked_map T::AccountId => Vec<T::AccountId>;
./srml/democracy/src/lib.rs:293:		pub Delegations get(delegations): linked_map T::AccountId => (T::AccountId, Conviction);
./srml/staking/src/lib.rs:574:		pub Validators get(validators): linked_map T::AccountId => ValidatorPrefs<BalanceOf<T>>;
./srml/staking/src/lib.rs:577:		pub Nominators get(nominators): linked_map T::AccountId => Vec<T::AccountId>;

but not in polkadot repo*

in case we can't make it in this is the consequences:

for each linkedmap the head of the linkedmap is stored at "head of "++$module_name++" "++$storagename this is with substrate modules of length > 28 byte which is probably ok
making a transition might be doable but might be difficult


Fix broken hot-reload behaviour.

Addresses #138. Our efforts to persist a debug transport
connection during a hot-reload resulted in an intermittent crash
due to dangling references to global state. There is currently
no sensible way to reset the global state in duktape without
disposing of the duk_context. So, for now lets fix hot-reload
and a future improvement will be to detect that we had an active
debug session before reloading, after reload we'll then await
debug connection again. To complement this, we'll need to fork
the VSCode debug client and add support for a reconnect possibly
parameterised with a timeout. Josh M also has designs on a
duktape clion plugin.

❤
Helpful context: https://github.com/svaarala/duktape/issues/2376
Fixes: #138


Create separate folder for dart and add hello world

I am adding hello world for the Hacktoberfest2022

@nirajpdn it's really fun and love to contribute!!
thank you for merged!!


"Find" doesn't maintain highlighting

Hi
with this plugin, the "Find" feature of ST3 (CTRL+F) hightlights the first occurence, but if you keep pressing ENTER to highlight the next occurences, it doesn't maintain the highlighting.
Can you fix this easily ?
Thanks

@zhengbli , this is the feature I want, and it's not working properly, hence my issue

please see my video screen capture https://www.youtube.com/watch?v=SjK_XxsKNvg&feature=youtu.be

Hi @louisdoe I understand your issue, what I was saying is that this feature does not work because it conflicts with another feature this plugin brings called "hightlight occurence". Because of the way sublime implements it, it is hard to have both features working as expected at the same time. Therefore you can choose to disable that particular feature to get your "find" hightlight back.


Breaking! Mount view by replacing given DOM element.

Summary
In app(state, actions, view, element), replace element with your rendered view instead of appending to it.
Examples
(I)
//
//

//

app(state, actions, () =>
Hello
, document.getElementById("app"))

//
//
Hello

//

(II)
//
//

//

app(state, actions, () => (

Hello

), document.getElementById("app"))

//
//

//
Hello

//

//

(III)
//
//

//

app(state, actions, () => (

Hello

), document.body)

//
//
Hello

//

Why?
Because it favors the most common use case: rendering into some container instead of document.body and it's consistent with Hyperapp not allowing returning arrays from the top view. It's also nice not having a dummy container enclosing the app.
Notes
This PR is competing with #590.
See Also

https://medium.com/@dan_abramov/two-weird-tricks-that-fix-react-7cf9bbdef375

I think replacing a container is a bad idea, because the ref to it could be used by third party code and when you need to unmount hyperapp, you don't know know which element to remove.
I still prefer #591 over this.

... because the ref to it could be used by third party code and when you need to unmount hyperapp, you don't know know which element to remove.

This is only true if you replace the given element with an element of a different type, which doesn't make much sense, as it would for example defeat the purpose of hydration.
const myRoot = document.getElementById("app")
const state = ...
const actions = ...
const view = (state, actions) => (

{state.count}

    <button onclick={() => actions.down(1)}>-</button>
    <button onclick={() => actions.up(1)}>+</button>

)

app(state, actions, view, myRoot)

Another disadvantage is you need to duplicate the same node in the DOM and in a view.

Why is that a disadvantage?

Because of DRY principe, why do you need to do it twice? Why not just create a container in the DOM and mount your view into it..

I dont see this as a disadvantage. It make a lot more sense to me :  Your app container is your view root.
It make a lot more sens that : Your app container will be whiped out and the view root will be added to it.

I think the main reason I like this change is that it gives absolute control to the user over where the top-element of the app gets placed in the rest of the dom.
The old (=current) solution only lets you specify the container. And if you want your app mounted at a specific place among siblings (without an extra wrapper div)  you're out of luck -- unless that place is "first".
This control makes mounting a lot easier to reason about, and much easier to explain in the docs as well.

Also I think this change may cause a lot of headache to users in case of misunderstanding of the concept and misuse. Immutable container is much more robust in this sense IMO. I like when users do not have a way to misuse things.

Well, it was nice to dream about this.

I'm on board with this. I really like that It allows the developer to control the container in code rather than externally define it (ie in the dom/html page) and do some magic to maintain it.
I think it needs to be clear in the documentation that this is the behaviour to avoid confusion, but I think this is the most correct approach.

Has this option been discussed?
app(state, actions, view, container, elementToReplace)
elementToReplace argument is optional, and if it's a child of container, then it'll be replaced.
That is how preact does it.

@swandir see #590 and #591

@swandir I don't mind that option either, but some people think it's too ugly, which I can't disagree with. My favorite is #590.

I am going to keep the current behavior for the time being, but might reconsider in the future.
To summarize the current behavior is to append your rendered view to the provided container element. If the container is not empty, we'll attempt to recycle existing content. 🎉


Issues with yarn install. I can't run the next app locally on my Windows machine

I deployed the starter project to vercel, as shown in the documentation, but after installing the dependencies in the root folder using yarn and trying to run the next app using yarn dev,  to run the next app on my own machine, I ran into some issues.
C:\Users\Yassi\Documents\GitHub\app>yarn install
➤ YN0000: ┌ Resolution step
➤ YN0002: │ @dripsy/core@npm:3.8.1 doesn't provide react (p39ef1), requested by @react-native-community/hooks
➤ YN0002: │ @dripsy/core@npm:3.8.1 doesn't provide react-native (p4982e), requested by @react-native-community/hooks
➤ YN0002: │ @expo/cli@npm:0.6.2 doesn't provide expo-modules-autolinking (pe2591), requested by @expo/prebuild-config
➤ YN0002: │ @expo/webpack-config@npm:0.17.3 doesn't provide expo (p28ee1), requested by expo-pwa
➤ YN0002: │ app@workspace:packages/app doesn't provide @babel/core (pf955d), requested by react-native-reanimated
➤ YN0002: │ app@workspace:packages/app doesn't provide react (pa3194), requested by @react-navigation/native-stack
➤ YN0002: │ app@workspace:packages/app doesn't provide react (pf0099), requested by @react-navigation/native
➤ YN0002: │ app@workspace:packages/app doesn't provide react (pccf59), requested by react-native-reanimated
➤ YN0002: │ app@workspace:packages/app doesn't provide react-native (p48ecd), requested by @react-navigation/native-stack
➤ YN0002: │ app@workspace:packages/app doesn't provide react-native (pd7871), requested by @react-navigation/native
➤ YN0002: │ app@workspace:packages/app doesn't provide react-native (p8d7a1), requested by react-native-reanimated
➤ YN0002: │ app@workspace:packages/app doesn't provide react-native-safe-area-context (p5aecf), requested by @react-navigation/native-stack
➤ YN0002: │ app@workspace:packages/app doesn't provide react-native-screens (p1dbcd), requested by @react-navigation/native-stack
➤ YN0002: │ babel-preset-expo@npm:9.2.0 doesn't provide @babel/core (p2866c), requested by @babel/plugin-proposal-decorators
➤ YN0002: │ babel-preset-expo@npm:9.2.0 doesn't provide @babel/core (p15336), requested by @babel/plugin-transform-react-jsx
➤ YN0002: │ babel-preset-expo@npm:9.2.0 doesn't provide @babel/core (p793ac), requested by @babel/preset-env
➤ YN0002: │ babel-preset-expo@npm:9.3.0 doesn't provide @babel/core (p0df83), requested by @babel/plugin-proposal-object-rest-spread
➤ YN0002: │ babel-preset-expo@npm:9.3.0 doesn't provide @babel/core (p645fb), requested by @babel/plugin-proposal-decorators
➤ YN0002: │ babel-preset-expo@npm:9.3.0 doesn't provide @babel/core (p0e101), requested by @babel/plugin-transform-react-jsx
➤ YN0002: │ babel-preset-expo@npm:9.3.0 doesn't provide @babel/core (pb43f2), requested by @babel/preset-env
➤ YN0002: │ expo-asset@npm:8.9.0 doesn't provide expo (pa7bf1), requested by expo-constants
➤ YN0002: │ expo-asset@npm:8.9.0 doesn't provide expo (pcf5ad), requested by expo-file-system
➤ YN0002: │ expo-linking@npm:3.2.2 doesn't provide expo (pd9e25), requested by expo-constants
➤ YN0002: │ expo-splash-screen@npm:0.18.1 [72208] doesn't provide expo-modules-autolinking (p45296), requested by @expo/prebuild-config
➤ YN0002: │ moti@npm:0.20.0 [f87a9] doesn't provide react (pbc0e2), requested by framer-motion
➤ YN0002: │ moti@npm:0.20.0 [f87a9] doesn't provide react-dom (p35671), requested by framer-motion
➤ YN0002: │ next-app@workspace:apps/next doesn't provide eslint (p27b06), requested by eslint-config-next
➤ YN0060: │ next-app@workspace:apps/next provides next (pb6520) with version 13.0.1, which doesn't satisfy what @expo/next-adapter requests
➤ YN0060: │ next-app@workspace:apps/next provides react (pcce7b) with version 18.2.0, which doesn't satisfy what @expo/next-adapter requests
➤ YN0002: │ next-app@workspace:apps/next doesn't provide react-native-web (p39316), requested by @expo/next-adapter
➤ YN0002: │ next-app@workspace:apps/next doesn't provide webpack (p9164a), requested by next-fonts
➤ YN0002: │ next-app@workspace:apps/next doesn't provide webpack (p051c4), requested by next-images
➤ YN0002: │ react-native-codegen@npm:0.71.5 doesn't provide @babel/preset-env (pdcb72), requested by jscodeshift
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed in 0s 377ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ yargs-parser@npm:21.1.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yargs@npm:13.3.2 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yargs@npm:15.4.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yargs@npm:17.7.1 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yocto-queue@npm:0.1.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 1m 4s
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed in 0s 237ms
➤ YN0000: Done with warnings in 1m 4s

C:\Users\Yassi\Documents\GitHub\app>yarn web
ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: @expo/next-adapter tried to access @expo/config, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: @expo/config (via "@expo\config\paths")
Required by: @expo/next-adapter@virtual:1e21ed5e542f04ac0725f80f20538bd288a2542912556a71424e0ef86756859fcedbc2507675d93c28d09cc2e230d8793e424a169e257d21ba5cb20fce2d2238#npm:4.0.13 (via C:\Users\Yassi\Documents\GitHub\app\.yarn\__virtual__\@expo-next-adapter-virtual-644de5c67a\0\cache\@expo-next-adapter-npm-4.0.13-3a58c94e90-b3cb86af18.zip\node_modules\@expo\next-adapter\build\)

Require stack:
- C:\Users\Yassi\Documents\GitHub\app\.yarn\__virtual__\@expo-next-adapter-virtual-644de5c67a\0\cache\<EMAIL_ADDRESS>- C:\Users\Yassi\Documents\GitHub\app\.yarn\__virtual__\@expo-next-adapter-virtual-644de5c67a\0\cache\<EMAIL_ADDRESS>- C:\Users\Yassi\Documents\GitHub\app\apps\next\next.config.js
    at Function.require$$0.Module._resolveFilename (C:\Users\Yassi\Documents\GitHub\app\.pnp.cjs:31208:13)
    at Function.mod._resolveFilename (C:\Users\Yassi\Documents\GitHub\app\.yarn\__virtual__\next-virtual-4e12e97bba\0\cache\next-npm-13.0.1-fffb8ad028-50f5f19a9b.zip\node_modules\next\dist\build\webpack\require-hook.js:23:32)
    at Function.require$$0.Module._load (C:\Users\Yassi\Documents\GitHub\app\.pnp.cjs:31058:42)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (C:\Users\Yassi\Documents\GitHub\app\.yarn\__virtual__\@expo-next-adapter-virtual-644de5c67a\0\cache\@expo-next-adapter-npm-4.0.13-3a58c94e90-b3cb86af18.zip\node_modules\@expo\next-adapter\build\withExpo.js:3:17)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Object.require$$0.Module._extensions..js (C:\Users\Yassi\Documents\GitHub\app\.pnp.cjs:31252:33)
    at Module.load (node:internal/modules/cjs/loader:981:32)

Am I missing something here? How do I fix? I can't run the next app locally on my machine now.

I just fixed this for the existing starter apps. So you could run the starter app script again, or see the upgrade guide here: https://github.com/nandorojo/solito/releases/tag/v3.1.0

I just fixed this for the existing starter apps. So you could run the starter app script again, or see the upgrade guide here: https://github.com/nandorojo/solito/releases/tag/v3.1.0

Still doesn't work. I created new application today on linux from the updated template. I am facing the same issue.


Integrating the latest msbuild preview into a Docker container

As posted on StackOverflow https://stackoverflow.com/questions/46883458/how-to-apply-the-latest-msbuild-in-a-docker-image I would like to know how I can get a Docker container running with the latest msbuild preview as part of Visual Studio 2017 preview 15.5.0 version 1.0. Here msbuild carries version <IP_ADDRESS>837.
I already spotted the following blog:
https://blogs.msdn.microsoft.com/heaths/2017/09/18/installing-build-tools-for-visual-studio-2017-in-a-docker-container/
Which looks promising. Only now I need to know the magic string for this particular preview build of the vs_buildtools.exe executable.

We also would like to evaluate the new build tools in a container because of this issue: https://github.com/Microsoft/vstest/issues/940
Is there a roadmap when version 15.5 will be released?


add tab challenge leaderboard

Description

It would be of interest to have combined leaderboard from all the events run for one challenge.
This would be visible to all the users but the links to the actual solutions should be deactivated.
If one user takes part in more than one event only his/her best solution score should be displayed
Steps/Code to Reproduce

Expected Results

Actual Results

Versions

This would be nice. In the workshops I did keep asking if their scores were good or not compared to others in the beginning of the challenge.

sounds useful indeed !


extend generation logic tests

Added tests to better define the behaviour of the extend generation logic in dsp/primitives/predict.py.
They currently don't pass with either version of the extend generation logic! I'm not sure what the intended behaviour should be - can @XenonMolecule, @okhat @arnavsinghvi11 please explain what these tests should look like?
Cheers!

Hey @mikeedjones, thanks so much for the deep dive! The changes do need to be reverted for now, because they break more fundamental things than the regressions you mentioned, although these are very important too.
In the longer run, I like the direction of this PR overall. Let's think of what the right long-term behavior is for parsing.
The original DSPy behavior, which strikes a very good compromise IMO but needs to be better documented, is: when you ask for n=1 completion, you'll always get it back. If you request n>1 completions, you get at least one. No guarantees. If you need guaranteed n > 1 behavior, create multiple modules with temperature=0.7 + i*0.001.

Hi @okhat - I think what I show above is that the reverted logic isn't currently working as I expect? At least according to the test cases.
The logic from #920 is also failing on 2/3 test cases.
What should the test cases for this logic look like? Given that #920 was merged - think it makes sense to revert and add some tests so someone else can't come and inadvertently break something further down the line!

Updated the tests and added a comment to each including the logged lm calls. This branch has been pointing at https://github.com/stanfordnlp/dspy/tree/mipro_v2 and the tests are passing for the reverted logic. I think the dummy LM generations are representative - but I'm not sure the behaviour demonstrated by the tests is desired?


An api which can help us get assets folder path

An New API
Source(In hello_imgui_assets.cpp)
    std::string GetAssetFolderPath() {
        std::string a = FileUtils::GetCurrentDirectory();
#if defined(__ANDROID__)
        a+="/";
#else
        a += "\\";
#endif
        a += gAssetsSubfolderFolderName;
        return a;
    }

How to use
    ImGui::Text("%s", HelloImGui::GetAssetFolderPath().c_str());

Photo

I know, the assets API is a bit complex.
However, there are up to four possible different locations for the assets folder, as shown by computePossibleAssetsFolders(), and they are all tested in succession when trying to look for an asset:

gOverrideAssetsFolder (valid only if it was filled by manually calling SetAssetsFolder())
Current executable folder + "/" + gAssetsSubfolderFolderName (gAssetsSubfolderFolderName = "assets" by default)
Current working directory + "/" + gAssetsSubfolderFolderName
"/" + gAssetsSubfolderFolderName (emscripten only)

In practice, it will mainly vary between 3 and 4.
As such, providing GetAssetFolderPath() is not that easy.

Thank you, your solution is very helpful!


Behaviour for use of composition uid's in POST requests needs clarification

Even though @wolandscat has pointed out that use of OBJECT_VERSION_IDs for COMPOSITION.uid values does not imply any versioning semantics as per the specifications, at least one vendor and probably more (according to slack comments) use meaningful uid values for COMPOSITIONs.
The discussion on slack did not produce an answer to the following question: "do we consider this non-standard, yet widely(?) applied practice for rest specifications".
If the answer to the above question is yes, then we need to clarify what the REST endpoint should do when

a system id that is different than the REST endpoint's is provided as in xyz::some_other_system::1
a version that is not equal to 1 as in xyz::rest_implementing_system::3
Because in case of meaningful COMPOSION.uid s the above conditions imply imports rather than creating new compositions.

if the answer to the above question is no, there are still decisions to be made.
If the REST back end simply ignores the whole (OBJECT_VERSION_ID) uid or components of it, does this constitute a problem REST wise, since we're creating a resource that is different than the one provided (uid dropped)?  If we're determining the identifier of the resource (via setting its uid), should not this be a PUT? RESTful design assumes POST will create the resource identifier as far as I remember
Also, @bjornna  made a point regarding client side generation of UIDs which is required to commit a folder and compositions together where the folder has uids of compositions referenced. I am not sure if this is possible with the current REST api, but assuming this will be introduced later, this requirement conflicts with the behaviour in which server silently drops incoming uid values.
I tried to come up with a set of rules that satisfy all conditions above and failed, even when we assume uid has no versioning semantics. Suggestions are welcome.

This is a question for spec not just the REST api.

This relates to https://openehr.atlassian.net/browse/SPECPR-322

on a duplicate issue, Thomas replied:

My view (and actually, the documentation's view) is that COMPOSITION.uid should just be a simple Guid, if it is populated. There are questions about whether, if it is not populated on the client side, whether the server should add a Guid, and also what should be in that field on a retrieve.
https://github.com/openEHR/specifications-ITS-REST/issues/71#issuecomment-416964944


Use forward slash for ZIP file paths

Using backslashes in ZIP file paths causes problems
when extracting on Linux servers

I'll refactor at night or tomorrow.

Been busy, almost forgot. I've refactored.

No worries, awesome work and thanks for the help.


Create API for web view to request the user's location

A web view requesting a user's location via JavaScript will prompt the user for permission every time the location is requested.
It would be convenient to use the native OS's location so that permission is only requested once and passed into the webview via a js callback.

Thanks @tupakapoor.  I think that's a great addition.
@angelodipaolo this is outside of the scope of the other work we're doing, but would be a nice add in the near future.

:+1: great idea


Building wheel for dm-tree (setup.py) ... error

When I use command: "
python pkgs
pip3 install --upgrade pip
&& pip3 install -r ./requirements.txt
&& pip3 install --upgrade "jax[cuda111]" -f
https://storage.googleapis.com/jax-releases/jax_releases.html"
and the feedback

me too
but I use conda install dm-tree==0.1.5

Thanks，conda does work
---Original---
From: @.>
Date: Sun, Aug 1, 2021 22:05 PM
To: @.>;
Cc<EMAIL_ADDRESS>Subject: Re: [deepmind/alphafold] Building wheel for dm-tree (setup.py) ... error (#84)
me too
but I use conda install dm-tree==0.1.5
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Thank you for reporting. This is likely due to the Linux distribution you're using not having a corresponding PyPi wheel for dm-tree, requiring it to be compiled from source. I'm glad to hear the conda repository works for your setup, if you have any further issues please reach out to the dm-tree maintainers.


Gallery not working when container div is hidden (display:none)

I want the swiper gallery to show after clicking on a "Show the gallery" link.
But it looks like Swiper is not working properly if initialized inside an hidden div.
Here is my page:

<!— Swiper —>

…

<!— Add Arrows —>

<!— End Swiper —>

Maybe there is a javascript trick?
I read about a setTimeout function that could fix this issue.
Any suggestion?

It is far easier than this.
Just add:
observer: true,
observeParents: true,

To the swiper initialization.

@wwwwwwoorks, thanks it works 👍

@wwwwwwoorks You are Great man for me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@wwwwwwoorks thank you !!!

@wwwwwwoorks Great, worked for me, too. Thank you!

@wwwwwwoorks Thanks a lot!!

Thank you. You save my day!

@wwwwwwoorks Not all heroes wear capes.

thank you x1000000

oh thanks, spent half hour to figure out why my swiper doesn't work in popup lol

Thank you my man !

thank!! you saved my time!

Wow, thank you so much that was a frustrating bug!

Thank you!

Thank you! You saved my life!

thank you!

Worked on my react proj. Order of elements is important. hidden class should be added first

PREV

Thank you!


Preview https://github.com/google/horologist/blob/0503f3b5c3cbec83e06d20cad1da18657570eb0e/README.md

@yschimke PR description is 🔝 🔝 🔝 😄


[vite-typescript]: need to set cacheDir by default?

The following discussion is from PR: #3178. In order to facilitate the discussion and make it easier for other community members to participate, I have created this issue to track this problem.

erikian:
Looks like Vite's default cache directory is node_modules/.vite, so we end up packaging that folder along with the project dependencies when building the project. Do you think it would be possible to use cacheDir: './.vite' as the default in the Vite configs, either here  or maybe directly in the Vite plugin?
caoxiemeihao:
The directory node_modules/.vite is esbuild Pre-Bundling cache dir, it's only work vite serve phase and ignored vite build phase by default. (@electron-forge/plugin-vite just run vite build)
Even if it is used in the vite build phase, it is rebuild by Vite into the dist folder.
erikian:

The directory node_modules/.vite is esbuild Pre-Bundling cache dir

That's why we don't need it in node_modules when the app is packaged - the contents of this folder are not necessary for the app to run, but it's being included anyway 😅
In my case, I tested the template with a hello world React app (just electron-squirrel-startup, react and react-dom as dependencies), and my out/<project_name>/resources/app/node_modules/.vite folder was about 2.5 MB. No big deal, but I'm thinking it might become more of a problem for larger apps with multiple dependencies, so it might be worth addressing that somehow (maybe just deleting the folder from node_modules before packaging or using the packageAfterCopy hook could do the trick here).
That being said, I have zero experience with Vite and I don't how large this folder can get - if it never exceeds a couple megabytes, it might not be worth the hassle.

Originally posted in https://github.com/electron/forge/pull/3178#discussion_r1293586847

/cc @caoxiemeihao @erikian @GitMurf @ronaldcurtis

In my case, node_modules is not included in the built app directory, even if we need some runtime dependencies to build with node_modules, node_modules/.vite is not included in the final app directory.
Of course, this Demo uses electron-builder, I have not had time to replace it with forge, I will try to replace it with forge later.
Demo 👉 https://github.com/electron-vite/electron-vite-vue

Fixed in #3336


Refresh tests dependency and formats

I updated the dependency of JSON-Schema-Test-Suite to tag 2.0.0 (still on draft4, just updated tests).
In doing so I also noticed that:

several formats are not implemented according to spec and reimplemented them (date-time, email, hostname).
$ref behavior isn't identical to the spec (if there are other properties on the same level, they compose with the properties that the $ref is pointing to).

This is awesome, thanks!


Used rules in tslint.json

I added this on PR #109 with following modifications:
Original
"quotemark": [true, "double"],
"sort-object-literal-keys": true,

Modified
"quotemark": [true, "single"],
"sort-object-literal-keys": false,

@mgechev suggested that we open new issue and discuss about these rules.

I added some comments here https://github.com/mgechev/angular2-seed/pull/109/files
Great job in developing the gulp task! I'd want to make the tslint.json config not too opinionated. My idea is to provide a generic tslint.json, which includes only a few rules, which are generally considered as best practices.

One thing we could do is to provide a basic foundation as suggested by @mgechev and provide another empty tslint.json file (for customization) inside the tools folder that we extend with the default one.
We could also do the same for jshint.
this way we have a seamless integration of customize config.

Or we can stick to TypeScript and use it for gulp as well. This way we won't need jshint as dependency.

yep, make sense


Fix: Separates Navbar and NavbarSlider css module imports

What's the purpose of this pull request?
The NavbarSlider is not opening on mobile because it was inheriting Navbar's css module file.
How it works?
Now NavbarSlider has its own css modules.
How to test it?
The NavbarSlider should open on click.
faststore/core application:

Run yarn dev
Check Navbar on mobile view

Starter Deploy

Starter PR
Deploy link

Nice! I've tested and the Navbar slide is now opening as expected 🚀
But I noticed something strange when clicking on the Office link. The NavbarSlide is open twice and not closing after that. 🤔
https://github.com/vtex/faststore/assets/3356699/24910a9f-3f8a-42bd-8cd9-e80a59f12982

Nice! I've tested and the Navbar slide is now opening as expected 🚀
But I noticed something strange when clicking on the Office link. The NavbarSlide is open twice and not closing after that. 🤔
RPReplay_Final1688512403.mov

Same here, I took a quick look on the navigation logic but didn't find anything wrong/different from what we had before 🤔

Nice! I've tested and the Navbar slide is now opening as expected 🚀
But I noticed something strange when clicking on the Office link. The NavbarSlide is open twice and not closing after that. 🤔
RPReplay_Final1688512403.mov

Same here, I took a quick look on the navigation logic but didn't find anything wrong/different from what we had before 🤔

I couldn't reproduce it here. This is only happening on a mobile device for me. And I am still looking for the reason.
But maybe we could solve this issue in another PR, I think having the NavbarSlider opening for this PR has a higher priority. WDYT?


Fix flash notice on revision restore

Coverage remained the same at 99.208% when pulling 63314cb9e2260e975f3ee851c86b172c092d2c34 on DanielKuhn:fix/flash-notice-on-revision-restore into 8e90c5f6b10a287a46b46a0b6beb662d964b20da on codevise:master.


Idea: Embedded Deleted Tweets

Not a new idea, but realized I never added it to the repo. It would be nice to allow users to embed Politwoops in a style similar to Twitter so the source/link back is clear.

I have been thinking about this a long time already. The point was, that at the time I was running Politwoops on a really small server, which made the idea somewhat unfeasible. But I have a big server now, so I want this as well :)


feat(api,robot-server): hardware emulation integration

Overview
This provides the ability to run the robot-server on a PC with a fully emulated backend. Smoothie and module emulation is running in a separate application. The robot-server is configured to have hardware drivers connect to the emulators over a socket.
As far as the robot-server is concerned, it is talking GCODE to an OT2.
The output of emulation app on the left and robot-server on the right.

The run app connected to local robot-server communicating with emulated modules.

Changelog

added environment variables to use specific port for smoothie, magdeck, tempdeck, and thermocycler.
added  dotenv file to robot-server to connect use emulator.
added make emulator to api Makefile. it starts the emulator application.
added make emulator to robot-server Makefile which uses emulator application backend.

Review requests
thermocycler is not supported as the driver requires root access.
In the future it would be nice to generalize discovery of drivers. Perhaps have emulators be clients that connect to the robot-server to announce themselves. That is for another day.

in api run make emulator
in robot-server  run make dev-with-emulator
run opentrons app. should seem like there are pipettes, a magdeck, and tempdeck attached.

Risk assessment
A little. Changes how we initialize the hardware controller.

Thanks for making the version & model changes.
Excited to use these emulators!


Remove unnecessary layout inflations

The result of these inflations is not used and actual layout inflation
is performed by parent class, so they can be safely removed.
NB: I didn't bother to benchmark if there is any startup speed
difference, but it should be ever so slightly faster.

Yeah, I don't think there would be any measurable performance impact, but deleting unused code is always good 👍


error : Could not open Source file: Could not find file 'Web.config;Web.config'

This issue is just to log this error in case anyone else encounters it:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VisualStudio\v17.0\Web\Microsoft.Web.Publishing.targets(1552,5):
error : Could not open Source file: Could not find file 'C:\Project\Web.config;Web.config'. [Project.csproj]

This happened when a project was migrated to SDK-style, while keeping the explicit Content items.
Fix: Add <EnableWebFormsDefaultItems>false</EnableWebFormsDefaultItems> or remove the explicit items.
Thanks for building this package!

@aelij Thanks for logging this - there is 'special' handling for web.config files, including publishing, transforming and deploying, as well as handling updating binding redirects.
In many cases, you don't need to have the Content or Compile items at all in your project file.
As you say, you can also disable the default includes if you wish to keep the explicit items in the project file (although that loses one of the advantages of the sdk style projects).
Otherwise, I hope you are finding this project useful. Please let us know if there are any other issues you find using the project.


dep(*): move sync_diff_inspector from tidb-tools to tiflow

What problem does this PR solve?

Issue Number: close #11672
What is changed and how it works?
Check List
Tests

Unit test
Integration test
Manual test (add detailed scripts or steps below)
No code

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
Please refer to [Release Notes Language Style Guide](https://pingcap.github.io/tidb-dev-guide/contribute-to-tidb/release-notes-style-guide.html) to write a quality release note.

If you don't think this PR needs a release note then fill it with `None`.

/retest

/test verify

/retest

/retest

/hold
merge it when v8.5.0 released.


Failed to Query

Hi,
I found this project really interesting and I am trying to figure out how to use it, but ever time I do so (even after following your examples) I get following output:

./bin/blacklist-checker ip <IP_ADDRESS> --verbose

Failed to query: read udp <IP_ADDRESS>:56510-><IP_ADDRESS>:53: i/o timeout for <IP_ADDRESS> on spam.spamrats.com with query <IP_ADDRESS>.spam.spamrats.com.
Failed to query: read udp <IP_ADDRESS>:58112-><IP_ADDRESS>:53: i/o timeout for <IP_ADDRESS> on noptr.spamrats.com with query <IP_ADDRESS>.noptr.spamrats.com.
Failed to query: read udp <IP_ADDRESS>:51462-><IP_ADDRESS>:53: i/o timeout for <IP_ADDRESS> on dyna.spamrats.com with query <IP_ADDRESS>.dyna.spamrats.com.
Checking <IP_ADDRESS>.spam.spamrats.com.
Checking <IP_ADDRESS>.dyna.spamrats.com.
Checking <IP_ADDRESS>.noptr.spamrats.com.

What am I doing wrong? Is server name the issue, or?

Hi, @cepa995
Probably spam DNS sites do not exist anymore.
The easiest way is to remove the items from https://github.com/ilijamt/blacklist-checker/blob/master/blacklists.go, and recompile the application. Probably a lot of them are dead one, initially I took the list off https://mxtoolbox.com/problem/blacklist/ but it's probably too much .
Just remove all you don't need to and leave the ones you want to and recompile the application and you will not have a problem.

I've refactored the application, it's been a long time coming.
You can specify your own blacklist now from the command line.