Store vault key in TPM sealed and legacy

We can hit problems with storing of storage key because of no
connectivity to the controller or attestation template mismatch. In that
case after reboot we will try to unseal key from TPM but if PCR values
changed across reboots we will hit an error while unlock.
In this PR I store vault key in legacy mode (without sealing) alongside
with sealed one and use legacy key as a fallback. To properly handle
attestation process we should remove legacy key. I remove it on event
of keys received from the controller (on next attestation process,
for example after reboot), so we will wait for successful
storing and responding of keys from the controller to not hit the
problem with loosing of keys.
Signed-off-by: Petr Fedchenkov<EMAIL_ADDRESS>

replaced by https://github.com/lf-edge/eve/pull/2755


MacOS Sequoia 15.0 "instanceInfo" is not defined

Versions

NodeJS: v22.6.0
mongodb-memory-server-*: 9.4.1
mongodb(the binary version): mongod-arm64-darwin-6.0.16
mongodb(the js package): MONGOOSE
mongoose: 8.6.1
system: 15.0 (24A335)

package: mongo-memory-server-global

What is the Problem?

MongoMS:MongoMemoryServer Mongo[unknown]: stop: "instanceInfo" is not defined (never ran?) +0ms
Error: Instance failed to start within 10000ms
    at Timeout.<anonymous> (/Users/lucasaguiar/Projects/woovi/woovi/node_modules/mongodb-memory-server-core/lib/util/MongoInstance.js:148:29)
    at listOnTimeout (node:internal/timers:581:17)
    at process.processTimers (node:internal/timers:519:7)

Debug Output

Debug Output

MONGOMS_DEBUG=1 pnpm jest packages/service-main/src/modules/integration/mutations/metaPixel/__tests__/IntegrationEditMetaPixel.spec.ts
swc-jest
Determining test suites to run...  MongoMS:ResolveConfig Debug Mode Enabled, through Environment Variable +0ms
  MongoMS:ResolveConfig findPackageJson: Found package.json at "/Users/lucasaguiar/Projects/woovi/woovi/package.json" +0ms
  MongoMS:MongoMemoryServer create: Called .create() method +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: start: Called .start() method +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance: Called MongoMemoryServer._startUpInstance() method +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: getStartOptions: forceSamePort: false +0ms
  MongoMS:DryMongoBinary generateOptions +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: '6.0.16',
  downloadDir: '',
  os: { os: 'darwin' },
  platform: 'darwin',
  arch: 'arm64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +1ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  homeCache: '/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16',
  modulesCache: '/Users/lucasaguiar/Projects/woovi/woovi/node_modules/.cache/mongodb-memory-server/mongod-arm64-darwin-6.0.16',
  relative: '/Users/lucasaguiar/Projects/woovi/woovi/mongodb-binaries/mongod-arm64-darwin-6.0.16',
  resolveConfig: ''
}  +0ms
(node:21715) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
  MongoMS:DryMongoBinary generateDownloadPath: Found binary in homeCache: "/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16" +1ms
  MongoMS:GetPort EXP_NET0LISTEN false +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance: Creating new MongoDB instance with options: {
  instance: {
    port: 33082,
    dbName: '',
    ip: '<IP_ADDRESS>',
    storageEngine: 'ephemeralForTest',
    replSet: undefined,
    dbPath: '/var/folders/sh/2k7php4119sfy_g51zlxld100000gn/T/mongo-mem-NRbgrZ',
    tmpDir: '/var/folders/sh/2k7php4119sfy_g51zlxld100000gn/T/mongo-mem-NRbgrZ',
    keyfileLocation: undefined,
    launchTimeout: undefined,
    args: undefined,
    auth: false
  },
  binary: { systemBinary: undefined, skipMD5: true },
  spawn: undefined
} +5ms
  MongoMS:MongoInstance create: Called .create() method +0ms
  MongoMS:MongoInstance Mongo[33082]: start +0ms
  MongoMS:MongoBinary getPath +0ms
  MongoMS:DryMongoBinary generateOptions +2ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: '6.0.16',
  downloadDir: '',
  os: { os: 'darwin' },
  platform: 'darwin',
  arch: 'arm64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +1ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  homeCache: '/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16',
  modulesCache: '/Users/lucasaguiar/Projects/woovi/woovi/node_modules/.cache/mongodb-memory-server/mongod-arm64-darwin-6.0.16',
  relative: '/Users/lucasaguiar/Projects/woovi/woovi/mongodb-binaries/mongod-arm64-darwin-6.0.16',
  resolveConfig: ''
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Found binary in homeCache: "/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16" +0ms
  MongoMS:MongoBinary getPath: MongoBinary options: {
  "version": "6.0.16",
  "downloadDir": "/Users/lucasaguiar/.cache/mongodb-binaries",
  "os": {
    "os": "darwin"
  },
  "platform": "darwin",
  "arch": "arm64",
  "systemBinary": "",
  "checkMD5": true
} +1ms
  MongoMS:DryMongoBinary locateBinary: Trying to locate Binary for version "6.0.16" +0ms
  MongoMS:DryMongoBinary generateOptions +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: '6.0.16',
  downloadDir: '/Users/lucasaguiar/.cache/mongodb-binaries',
  os: { os: 'darwin' },
  platform: 'darwin',
  arch: 'arm64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  homeCache: '/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16',
  modulesCache: '/Users/lucasaguiar/Projects/woovi/woovi/node_modules/.cache/mongodb-memory-server/mongod-arm64-darwin-6.0.16',
  relative: '/Users/lucasaguiar/Projects/woovi/woovi/mongodb-binaries/mongod-arm64-darwin-6.0.16',
  resolveConfig: '/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16'
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Found binary in resolveConfig (DOWNLOAD_DIR): "/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16" +0ms
  MongoMS:DryMongoBinary locateBinary: running generateDownloadPath +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Generating Download Path, preferGlobal: "true" +0ms
  MongoMS:DryMongoBinary generatePaths {
  version: '6.0.16',
  downloadDir: '/Users/lucasaguiar/.cache/mongodb-binaries',
  os: { os: 'darwin' },
  platform: 'darwin',
  arch: 'arm64',
  systemBinary: ''
} +0ms
  MongoMS:DryMongoBinary getBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generatePaths: resolveConfigValue is not empty +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary combineBinaryName +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Paths: {
  homeCache: '/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16',
  modulesCache: '/Users/lucasaguiar/Projects/woovi/woovi/node_modules/.cache/mongodb-memory-server/mongod-arm64-darwin-6.0.16',
  relative: '/Users/lucasaguiar/Projects/woovi/woovi/mongodb-binaries/mongod-arm64-darwin-6.0.16',
  resolveConfig: '/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16'
}  +0ms
  MongoMS:DryMongoBinary generateDownloadPath: Found binary in resolveConfig (DOWNLOAD_DIR): "/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16" +1ms
  MongoMS:DryMongoBinary locateBinary: found binary at "/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16" +0ms
  MongoMS:MongoBinary getPath: Mongod binary path: "/Users/lucasaguiar/.cache/mongodb-binaries/mongod-arm64-darwin-6.0.16" +1ms
  MongoMS:MongoInstance Mongo[33082]: start: Starting Processes +2ms
  MongoMS:MongoInstance Mongo[33082]: _launchMongod: Launching Mongod Process +0ms
  MongoMS:MongoInstance Mongo[33082]: prepareCommandArgs +0ms
  MongoMS:MongoInstance Mongo[33082]: prepareCommandArgs: final argument array:["--port","33082","--dbpath","/var/folders/sh/2k7php4119sfy_g51zlxld100000gn/T/mongo-mem-NRbgrZ","--storageEngine","ephemeralForTest","--bind_ip","<IP_ADDRESS>","--noauth"] +0ms
  MongoMS:MongoInstance Mongo[33082]: _launchKiller: Launching Killer Process (parent: 21715, child: 26761) +1ms
  MongoMS:MongoInstance Mongo[33082]: constructor: Instance has thrown an Error: Error: Instance failed to start within 10000ms +10s
  MongoMS:MongoInstance Mongo[33082]: stop +0ms
  MongoMS:utils Mongo[33082] killProcess: mongodProcess: sending "SIGINT" +0ms
  MongoMS:MongoMemoryServer Mongo[unknown]: _startUpInstance threw a Error:  GenericMMSError: Instance failed to start within 10000ms
    at Timeout.<anonymous> (/Users/lucasaguiar/Projects/woovi/woovi/node_modules/mongodb-memory-server-core/lib/util/MongoInstance.js:148:29)
    at listOnTimeout (node:internal/timers:581:17)
    at process.processTimers (node:internal/timers:519:7) +10s
  MongoMS:MongoMemoryServer Mongo[unknown]: stop: Called .stop() method +2ms
  MongoMS:MongoMemoryServer Mongo[unknown]: stop: "instanceInfo" is not defined (never ran?) +0ms
Error: Instance failed to start within 10000ms
    at Timeout.<anonymous> (/Users/lucasaguiar/Projects/woovi/woovi/node_modules/mongodb-memory-server-core/lib/util/MongoInstance.js:148:29)
    at listOnTimeout (node:internal/timers:581:17)
    at process.processTimers (node:internal/timers:519:7)

Do you know why it happenes?
MacOS update ( ? )

i dont think there is anything we can do about this, there is no error (aside from the launch timeout) and no logs from the mongod process, indicating that the system is not properly executing it, or there was a change in the macos update that broke mongodb.
maybe try:

manually starting the binary and see if that works?
deleting the binary and let it re-download?
use the x86_64 version via rosetta by setting MONGOMS_ARCH=x64?

I was able to resolve my problem by increasing the default timeout to 100 seconds. I believe this adjustment is necessary due to recent changes in the operating system that affect the default runtime.
What I Did
I manually changed the launchTimeout default value in the following file:
/node_modules/mongodb-memory-server-core/lib/util/MongoInstance.js:148

My Attempt to Configure launchTimeout via the Create Function
I tried to set the launchTimeout using the create function configuration as shown below:
const mongod = await MongoMemoryServer.create({
  binary: {
    systemBinary: process.env.MONGODB_BINARY,
    checkMD5: false,
  },
  instance: {
    launchTimeout: 100_000, // 100 seconds timeout
  },
});

I've did something wrong on the config?
However, this configuration did not work as expected. The launchTimeout remained undefined in the logs.
Debugging Steps
I added a debug line to inspect the timeout configuration, but it didn't reflect the changes I made:
debug command after
node_modules/mongodb-memory-server-core/lib/util/MongoInstance.js:55

this.debug('constructor: Instance Options', this.instanceOpts);

MongoMS:MongoInstance Mongo[16546]: constructor: config Options {
  instance: {
    port: 16546,
    dbName: '',
    ip: '<IP_ADDRESS>',
    storageEngine: 'ephemeralForTest',
    replSet: undefined,
    dbPath: '/var/folders/sh/2k7php4119sfy_g51zlxld100000gn/T/mongo-mem-eQSWP2',
    tmpDir: '/var/folders/sh/2k7php4119sfy_g51zlxld100000gn/T/mongo-mem-eQSWP2',
    keyfileLocation: undefined,
    launchTimeout: undefined,
    args: undefined,
    auth: false
  },
  binary: {
    systemBinary: '/Users/lucasaguiar/.cache/mongodb-binaries/mongodb-8.0.0',
    skipMD5: true
  },
  spawn: undefined
} +1ms

As you can see, the launchTimeout remains undefined despite my configuration attempt.
Questions

How can I properly change the launchTimeout using the create function configuration?

Is there an alternative method to set the launchTimeout without modifying the source file directly?

Any assistance or guidance on how to correctly configure the launchTimeout would be greatly appreciated. Thank you!

My Attempt to Configure launchTimeout via the Create Function

that is the way it should work, and from my current attempts, it also gets properly passed down (at least in 10.0.1 and 9.4.1)
my test:

add a console.log('test launch', this.instanceOpts); just before const timeoutTime is set
run the script

let mms = require("./lib/") // or "mongodb-memory-server-core", just did it in the project itself
await mms.MongoMemoryServer.create({ instance: { launchTimeout: 100_000 } })

observe the output containing test launch { ... launchTimeout: 100000,

(Note: i did it via the node-repl)

Is there an alternative method to set the launchTimeout without modifying the source file directly?

like i said above, it should have worked, and no, the above (ie configure in start / create) is the only way (aside from manually setting the opts after construction but before starting)
PS: i just noticed your are on MMS 9.x consider upgrading 10.x


fyi - boost::system can be header-only for beast

this trick works (last answer):
http://stackoverflow.com/questions/5089245/boost-asio-as-header-only/40729439#40729439
I can't tell but it might not work for the tests.  Works fine for my application, no need to link to boost::system, the whole thing becomes header-only.

Now that is very interesting! I didn't know that!

Thinking about it, there's nothing really for me to do here, since Beast is header-only. This is good advice for those looking to integrate Beast in their projects, but there's nothing actionable for me so I'm going to go ahead and close this. Thanks!


RPC method personal_newAccount not supported.

If I set testrpc as the provider for web3
const TestRPC = require("ethereumjs-testrpc");
const web3 = new Web3(TestRPC.provider());

and I try to create a new account:
web3.personal.newAccount(password, (error, address) => {

});

I get the next error:

RPC method personal_newAccount not supported.

If this a current limitation of testrpc? If that so, are you planning to give support to expose this API thought testrpc?
Thanks.

Thanks for the bug report @VictorAlbertos  - thanks to @axic's hard work in #262, this is now fixed/implemented.


Prepare the mod for translation

Describe the feature you'd like to see
There are a lot of hardcoded values in the mod source code that are used to display messages in the interface.
Because the values are hardcoded we can't translate the mod properly.
The hardcoded value example Text.literal:

we need to convert such values to translatable text pieces like this one Text.translatable:

This is done in three steps:

Find any Text.literal
Take text from it to a new key in the resources file resources/assets/minefortress/lang/en_us.json
Replace Text.literal with Text.translatable with that key

Please feel free to refer to these issues in any PR where you make such changes. When all texts are moved to translation files we will close this issue.

Is it okay if I take this issue and try to complete? Deadline planned?

If I want to add a translation file, should I make a fork for it, or just push it on master ?

If I want to add a translation file, should I make a fork for it, or just push it on master ?

Yes, check this PR #14

Is it okay if I take this issue and try to complete? Deadline planned?

No deadline, but please open PR early, so your work will be visible and also it will be visible that the PR is not abandoned


reduce bundle size by adjusting imports

This should especially tree-shake a large part of the graphql package that showed up in https://github.com/apollographql/apollo-client-nextjs/issues/126#issuecomment-1875590159

/release:pr

Released in https://github.com/apollographql/apollo-client-nextjs/releases/tag/v.0.6.0


Remove declarations of functions that Sodium 1.0.6 no longer exports

After updating the DLL to the latest version, I had assertion failures. According to the Sodium release notes, these functions were implementation details that no-one should be calling. Therefore I'm proposing to remove the declarations.

thank you for the heads up.  I used it as a basis to upgrade to 1.06.  I also added the new functions since 1.04, so feel free to give the update a try, especially if you may need some of those new features.


More fully document CLI push and pull

We're running into issues using the push and pull CLI commands: old, revised translations are cropping up where they should've been fixed.
I've searched the documentation for a clear, precise explanation of what push and pull do, and haven't found anything.  I've also looked through the API docs, but they're at a much more granular level and don't appear to address the CLI's push and pull.
Request: Please update the documentation to explain exactly what operations push and pull perform.  Ideally there would be some small sample cases that demonstrate correct usage.  It might even be worth showing a sample case or two with incorrect usage just to help with troubleshooting in cases like ours.

Hi @rlundy what do you consider missing from https://support.phrase.com/hc/en-us/articles/5808300599068-Using-the-CLI-Strings#push-and-pull-0-6?
Under the hood, push and pull rely on API endpoints for creating uploads and downloading locales respectively.


[#2845] Display temp max on character sheet HP bar

I think we should show the total hit points on the meter rather than having the base hit points with a (+/- X). Part of the advantage of using a VTT is that it does these sorts of calculations for you, so that you can see exactly how many max hit points your character currently has. If we have an ActiveEffect adding +5 to an ability score, we don't display it as 15 (+5), for example.
If we're worried about people forgetting they have a temporary adjustment applied, I might suggest something like this which shows a bonus indicator. There's the danger that a user thinks they have 25 HP + another 5 of course, so it's not perfect, but the best I've been able to come up with for now. Any further suggestions/iteration are welcome.

We add an additional +5 and the styles are just:
.dnd5e2 .meter .label {
  color: var(--color-text-light-0);
  position: relative;
  padding: 0 0.75rem 0 0.5rem;
  display: flex;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.dnd5e2 .meter .label .base {
  margin-left: auto;
  font-size: var(--font-size-14);
  opacity: .8;
}

Any further suggestions/iteration are welcome.

When affected by hp.tempmax, additionally changing the maximum to a blueish color could help indicate that it is not the default maximum. (In addition to the inserted span.)

Restyled and added hp.effectiveMax to avoid having to recalculate that value throughout the code like we were before.
Modified the color based on whether the temp is positive or negative, here's how that looks:


Improve testing developement documentation

Context
F3D has a short doc about adding tests when contributing: https://f3d.app/doc/dev/TESTING.html
This doc could be expanded and improved so that new developpers have a easier time figuring it out.
Suggested solution

Expand the current doc to cover all usecases, especially the bit about interaction test and recover baseline from CI

Skills

Markdown

Please assign this to me

any news on this one @kidharb ?

I have entered a rabbit, ie I am learning cmake as well as the testing environment in f3d.
I will start improving the docs soon.

Any ongoing work on that @kidharb ? :)

Thanks for following up.
In addition to the above mentioned topics of retrieving baselines and interactive testing, I will also cover recording tests cases and abit about the testing framework is implemented with cmake.
I should have something by the end of this week

Awesome!

Can we close this issue?


Graph message: "No data points" with subquery

grafana v6.1.6 clickhouse-datasource 1.8.1
Working Query: as result i see graph
SELECT
    $timeSeries as t,
    count() as c
FROM $table
WHERE $timeFilter
GROUP BY t
ORDER BY t

result in query inspector:
{
  "xhrStatus": "complete",
  "request": {
    "method": "GET",
    "url": "api/datasources/proxy/8/?query=SELECT%20%20%20%20%20(intDiv(toUInt32(EventTime)%2C%201)%20*%201)%20*%201000%20as%20t%2C%20%20%20%20%20count()%20as%20c%20FROM%20em.users%20WHERE%20EventDate%20%3E%3D%20toDate(1558019528)%20AND%20EventTime%20%3E%3D%20toDateTime(1558019528)%20GROUP%20BY%20t%20ORDER%20BY%20t%20FORMAT%20JSON"
  },
  "response": {
    "meta": [
      {
        "name": "t",
        "type": "UInt64"
      },
      {
        "name": "c",
        "type": "UInt64"
      }
    ],
    "data": [
      {
        "t": "1558019633000",
        "c": "91"
      },
      {
        "t": "1558019634000",
        "c": "216"
      }
    ],
    "rows": 2,
    "statistics": {
      "elapsed": 0.003194378,
      "rows_read": 9777,
      "bytes_read": 58662
    }
  }
}

But if i try to do subquery:
SELECT * FROM (
  SELECT
      $timeSeries as t,
      count() as c
  FROM $table
  WHERE $timeFilter
  GROUP BY t
  ORDER BY t
)
GROUP BY c, t

i see same result in query inspector as previously:
{
  "xhrStatus": "complete",
  "request": {
    "method": "GET",
    "url": "api/datasources/proxy/8/?query=SELECT%20*%20FROM%20(%20SELECT%20%20%20%20%20(intDiv(toUInt32(EventTime)%2C%201)%20*%201)%20*%201000%20as%20t%2C%20%20%20%20%20count()%20as%20c%20FROM%20em.users%20WHERE%20EventDate%20%3E%3D%20toDate(1558019589)%20AND%20EventTime%20%3E%3D%20toDateTime(1558019589)%20GROUP%20BY%20t%20ORDER%20BY%20t%20)%20GROUP%20BY%20c%2C%20t%20FORMAT%20JSON"
  },
  "response": {
    "meta": [
      {
        "name": "t",
        "type": "UInt64"
      },
      {
        "name": "c",
        "type": "UInt64"
      }
    ],
    "data": [
      {
        "t": "1558019634000",
        "c": "216"
      },
      {
        "t": "1558019633000",
        "c": "91"
      }
    ],
    "rows": 2,
    "statistics": {
      "elapsed": 0.003641224,
      "rows_read": 9777,
      "bytes_read": 58662
    }
  }
}

but instead graph, i see message:
"No data points"
without any messages about errors.

With grafana-6.2.0-beta2 i have the same result :(

Same here with 6.7.1.
Moreover, it shows "No data" if I specify fixed time range. Presets like "Last X days" work fine. Defined ranges, like "From now-30 to now-1" produce "No data".

Same here with 6.7.1.
Moreover, it shows "No data" if I specify fixed time range. Presets like "Last X days" work fine. Defined ranges, like "From now-30 to now-1" produce "No data".

Figured out why I'm seeing it. We have a DateTime column named "t". So I was able to overcome my issue by changing :
SELECT
    $timeSeries as t

to
SELECT
    $timeSeries as time

@dmitrysdm
if you change your query
from
SELECT * FROM (
  SELECT
      $timeSeries as t,
      count() as c
  FROM $table
  WHERE $timeFilter
  GROUP BY t
  ORDER BY t
)
GROUP BY c, t

to
SELECT * FROM (
  SELECT
      $timeSeries as t,
      count() as total
  FROM $table
  WHERE $timeFilter
  GROUP BY t
)
ORDER BY t

I will see results
"no data" which you see related to behavior how to clickhouse-grafana plugin detect which columns should be represented as "groups" or "labels" and which columns should be represented as "value"
please look to:

https://github.com/Vertamedia/clickhouse-grafana/blob/2.0.2/src/datasource.ts#L109
https://github.com/Vertamedia/clickhouse-grafana/blob/2.0.2/src/datasource.ts#L164

when SQL query contains GROUP BY
all columns used in GROUP BY should be combined to "label values" or name of time series depends on how much columns not used  in GROUP BY
so, when you use GROUP BY c, t you automatically exclude "c" from list of columns which should represent as "value"


Reload after submit breaks the page

I think this is breaking the page in the following scenario:

page1 is a form, after submit goes to page 2
page 2 has some results from the form.
If I navigate in tabs, it will add the tab #Name in the url
If I refresh, I lost the form data, and page comes without data.

Gonna do a test in the office in the morning.

hi, this fork is only for the nuget packaging, and lags behind the official version

if it's an issue with upstream that hasn't been fixed there please report it there https://github.com/aidanlister/jquery-stickytabs/issues
if it's been fixed and released upstream and just needs packaging for nuget then mention that here and I'll endeavour to release a new package

thanks


Vim / Emacs Keybindings

Since StackEdit uses the ACE editor, is it possible for you to enable Vim and Emacs keybindings?

Why not to add an option to enable vim keybindings in the settings? Is this project still supported by its developers?

Are there any plans to support Emacs/Vim keybindings in StackEdit? If ACE is not used anymore, what it was replaced with? Can the new editor control be taught to use emacs keybindings?

Any update on this?

I really love this tool and it's interface, but also would like to have Vim bindings.

Oh man, I loved this tool too. I will still likely use it sometimes.  I just can't work without VIM bindings - so long as there are alternative editors that support such bindings.
Please consider adding Vim and Emacs support.
Thank you for this great tool!

Which editors are those?

hemlo, any updates ?

In 2021, it's a pity that still doesn't support vim or emacs keybindings 😅

StackEdit is awesome but the only deal breaker for me is the lack of vim keybindings. I find myself getting frustrated after 10 min and having to fall back to using a scratchpad in VSCode.
I hope this article can convince the author(s) to prioritize this: https://medium.com/incerto/the-most-intolerant-wins-the-dictatorship-of-the-small-minority-3f1f83ce4e15

Any updates?

vim please.


Initialise web app with basic requirements

Add package.json, .bablerc and webpack.config.js.

Fixed in 4c3c57c7a44ee05c8c7cb2a6bcc05d7564d2d5d9.


⚠ Bofrost.de has degraded performance

In 7ed8baf, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 832 ms

Resolved: Bofrost.de performance has improved in a03f9fa.


Does not watch for added/removed/changed files in source-path

Hi @joshtynjala ,
I did notice yesterday that adding new file/class in Moonshine is not recognizable - Is this what you mean by this issue ?
Another question is - Does your changes in this issue will require also some changes in Moonshine's code for that area. - Of course if you know at this early stage. I'm asking cause if it is I will raise an issue there additionally.
Thanks,
Piotr

If the file is in the project directory, all changes will be detected. Files added/removed in an external directory added with the -source-path compiler option are not currently detected. This issue also affects Moonshine.

Yesterday when I was using Moonshine for Flex project adding file into the project directory wasn't work for me. Class wasn't visible in code completion. However I have seen today that there were one time where after adding new class to the project it was discovered. Right after that error #121 occurred and I was trying add another class and The second one wasn't discovered. I hope update will helps with some of that weird behavior.
Thanks Josh.


Allow pentesters access to integration

@issyl0 is there anything else I need to add for this?

Integration? I thought the pentest was on staging?

Yes, and this is for access to CI


Small fixes

Fixed a bug in LabelEvaluation.toHTML which produced incorrect accuracy numbers.
Fixed some exception handling issues in the Classification TrainTest programs.
Fixed a test failure on Windows due to path issues.

I made sure that the branch small-fixes built on my Windows box disconnected from the vpn with my local settings removed (i.e. I renamed ~/.m2/settings.xml to eliminate proxy settings, etc.).  I also removed my local c:\tmp directory - and it still works.


python3Packages.pydata-google-auth: init at 1.7.0

python3Packages.pydata-google-auth: init at 1.7.0

Description of changes
Initialize the pydata-google-auth package at version 1.7.0.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] 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

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 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 python310Packages.pydata-google-auth


Surface normals

Hi!
Can i get the normal vector at any point, i.e. dense normal map such as depth map?

At the moment we don't have a normal map shader, although this is a relatively easy addition. It sounds perfect for a community contribution. Would you be interested in contributing to this?

Hi, I wonder if there was any motivation to re-consider adding the surface norm? Or can you point to any direction of how to add it?


Full Screen on Multi-video Scrollview

[x] react-native-af-video-player version: 0.1.9

[x] React Native version: 0.55.2

[x] OS: mac OS

[x] Has this issue already been raised? I haven't seen it yet.

[x] Have you clearly read and understood the Readme? Yes, specifically, https://github.com/abbasfreestyle/react-native-af-video-player#fullscreen-videos-inside-a-scrollview

[x] Code and explanation to replicate this issue:

    <ScrollView style={{ flex: 1 }}>
        <Text>{"Text message"}</Text>
        <Container>
          {this.state.url != null ? (
            <Video
              url={this.state.url}
              rotateToFullScreen={true}
              lockPortraitOnFsExit={true}
            />
          ) : (
            <View />
          )}
        </Container>
        {this.state.url != null ? (
          <Video
            url={this.state.url}
            rotateToFullScreen={true}
            lockPortraitOnFsExit={true}
          />
        ) : (
          <View />
        )}
        <Text>{"Text message"}</Text>
      </ScrollView>

Explanation:
I am trying to use scrollview to include multiple videos in my view. Including the videos works awesome! Thanks for your awesome component. The problem that I am facing is more towards full screen of the videos. Like in the images attached (the third screen shot) below, you can see that when I click on the full screen button on the second video, the first one gets full screen and the other one is played.
Though the result that I would expecting was the other way round. Any help on that matter would be well appreciated.
Thanks.

[ ] Are there any console logs?

[x] Include Screeshots / Video:

Video:
SampleVideo.mp4.zip

Hi @mianusmankhalid,
Thanks for your kind words :). Try again with version 0.2.0
It should be good enough to achieve what you're looking for however, it's not perfect and still needs more work.

Hi @abbasfreestyle,
You're most welcome :) I tried version 0.2.0 as you mentioned but I believe up-to no luck.
I also want to raise a point here, I believe I haven't mentioned it yet. Previously I was just using Video component from your repo barely. However, I now want to use it with a wrapper around. I have seen a comment on using the scroll-viewer under your repo, that it might not be possible at the moment. Is it the case?
Sorry to push you for it, but after a lot of research I have found an awesome video player for react native that is behaving well platform independently, and I don't want to start looking for options again. Rather I want to help make it super awesome :)

@abbasfreestyle
Hope you are doing well. Just wanted to discuss if you can spare some time and take a look at this.  That will be very helpful for me.  I just need your attention towards wrapping up this component.
Thanks in advance.

I found a temporary fix, which maybe clunky when the screen rotates, but it has worked for me.
so i realised that when a user pressed the fullscreen button on any videos in a vertical list, it just rotates the screen and at the same time the whole list is scrollable. So i decide to just hide those items that i didn't click on, and for that i need to remember the index of the video i clicked.
to listen to Fullscreen button clicked:

open up node_modules\react-native-af-video-player\components\Video.js near line 238

toggleFS() {
this.props.onFSToggled();//add this line

and near line 436

Video.propTypes = {
onFSToggled: PropTypes.func, //and this line

now in FlatList renderItem do something like this:

<FlatList
        ....
        renderItem={({item, index}) =>{
             var {fullScreen, currentFSIndex} = this.state;
             return(
                 <View>
                    {(!fullScreen || (fullScreen && currentFSIndex===index)) &&
                     <Video
                        onFullScreen={state => {
                         this.setState({fullScreen:state});
                          }
                        }
                        onFSToggled= {()=>{
                           this.setState({currentFSIndex:index});
                          }
                        }
                     />
                   }
              </View>
            )
        }

/>

So now after rotated to fullscreen the clicked video is still in Flatlist but other videos are hidden and there's nothing else to scroll to


Correct player order

Let's sort players according to their rank to increase visibility for the winner

Nice. Btw maybe you should pull the latest version of this repository. Looks like yours is an old version.

Nice. Btw maybe you should pull the latest version of this repository. Looks like yours is an old version.

True, I just didn't push master, was on the latest version locally


Delete Item (Motorcycle) (Backend)

When the user clicks the "Delete item" link in the navigation panel they can see a list of all items with title and "Delete" button.
When the user clicks the "Delete" button, the selected item is marked as removed and does not show on the main list anymore.

This taks is assigned to Fernando


dask cannot handle data larger than its memory resources

I had some issues reading large tables with dask. dask cluster has three nodes, each node 1g memory, I need to read 5G size table in MPP database through this dask cluster, perform corresponding update operation and store back in MPP database. However, at the beginning of the read_sql_table statement, all three workers have failed. From the dask dashboard, you can see that the workers have spilled memory data to disk, but they still do not work. How can I avoid this situation? For Dask, I think it should be able to handle more data than its own memory resources.
The code is shown below:
df = dd.read_sql_table('test_mpp_5g', conn, index_col="id", schema="schema")   # error
df = df[df["col3"].notnull()]
df.to_sql("test_after_process", conn, if_exists="replace")

I have encountered the same problem. Can no one answer it?

Hi @Reggieharden, I'm sorry you had a problem. Were you able to see in worker logs what exception happened on those workers?

@j-bennet The worker log shows that the memory is over 95% and restarted. By the way, our dask cluster is deployed on k8s.  Is there any way to solve this situation, through parameter settings or otherwise?

@Reggieharden looks like you are deploying workers with only 0.93GiB of memory. This is very little considering that the interpreter and a couple of default libs (e.g. pandas, dask, sqlalchemy) already take up more than 100MiB and it's not unheard of having the interpreter + imports use much more.
read_sql_table is, by default, attempting to fetch chunks in size of 256MiB but this depends on your data, the database, etc.
So, with a say 200MiB interpreter overhead, a ~300MiB chunk you are already at almost 55% of memory utilization. We're already starting to spill to disk at a 60% threshold (see https://distributed.dask.org/en/stable/worker-memory.html#thresholds-configuration) so I recommend to increase your worker sizes a bit and see if this issue persists. Also, please ensure that you are using the latest version of dask since memory utilization has improved considerably over the last couple of months.
If you need help figuring out how to better deploy your K8s cluster, I recommend opening a topic in https://dask.discourse.group/c/deploying-dask/9 We try answering usage related questions in discourse and keep the issue tracker open for bugs, feature requests, etc.
@ChenhanXmu I recommend to move to discourse as well and describe the problem you're seeing or open a new ticket with your problem with more information.

@fjetter Thanks, I'll try to increase the worker memory to see if that solves.


adding IR feed to "multifeed" mode

IR feeds can be very useful for doing CV with camera/projector set-ups. I see in Kinectron that Infrared is available for sending as a single stream. Is it possible to add this to the multi-stream mode as well?

It seems that the underlying node module used in Kinectron, Kinect2 node, has not yet implemented Infrared in the multiSourceFrame. I've just submitted an issue there. If/when it is implemented, I will be able to make it available here as well.
https://github.com/wouterverweirder/kinect2/blob/85af6c6aef3c4c8eda829d705af4fc50d3079ced/src/kinect2.cc#L1752
https://github.com/wouterverweirder/kinect2/issues/67

Kinect2 node module now includes Infrared in the multiSourceFrame. I will look into integrating it into Kinectron before the end of August.
https://github.com/wouterverweirder/kinect2/issues/67

Circling back on this. Adding Infrared requires updating to kinect2 v2 (^0.2.1). I'm running into a weird bug with the upgrade on the RGB feed (see #100). Once I am able to resolve that bug I can complete this.


How to recover lost username

How to recover lost username, I'm out of clues for my previous user name, can I create new?

Hi @ravidattani, there is no built in method. The only way would be to check the contents of the mongodb it is connected to.


Scheduled maintenance 6 Feb 2022 IST

We will be having planned maintenance on Sunday, 6th Feb 2022 IST.  The inconvenience is regretted.

https://status.chatwoot.com/incident/14

Chatwoot will be performing scheduled maintenance on February 5, 2022 beginning at 10:00pm PT. During this time, our website will be inaccessible. Expected downtime is estimated to be 2-4 hours.

We are back up.


v0.55 .URL deprecated,and .RSSlink deprecated

starting with hugo v.055
WARN Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.
WARN Page's .RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like: {{ with .OutputFormats.Get "RSS" }}{{ . RelPermalink }}{{ end }}.

Thanks for fixing this! I have made some comments in the code. Furthermore, the .URL field for the paginator is not deprecated, so these should not change to .RelPermalink.

okay, closing.


docs: added logo in README

Fixes Issue
**My PR closes #389
👨💻 Changes proposed(What did you do ?)
Added logo and badges
✔ Check List (Check all the applicable boxes)

[X] My code follows the code style of this project.
[X] This PR does not contain plagiarized content.
[X] The title and description of the PR is clear and explains the approach.

Note to reviewers

📷 Screenshots

PR Compliance Checks
Thank you for your Pull Request! We have run several checks on this pull request in order to make sure it's suitable for merging into this project.  The results are listed in the  following section.
Protected Branch
In order to be considered for merging, the pull request changes must  not be implemented on the "main" branch. This is described in our Contributing Guide.  We are closing this pull request and we would suggest that you implement your changes as  described in our Contributing Guide and open a new pull request.

Take a look at this error 👆🏽@the-amazing-atharva

Extremely sorry, sent a new PR


[Feature]: When will support for 6000 series for WSL2 + ROCm?

Suggestion Description
Will you consider supporting 6000 series?
Operating System
wsl2
GPU
6800xt
ROCm Component
No response

at this point, never, indie company, no devs, please understand, only 260billion market cap company

Consolidating the ask of additional GPU support on WSL to https://github.com/ROCm/ROCm/issues/3863.


[FCM] click_action replacement for iOS

There is currently no way on iOS to implement a custom action if the user clicks on a Firebase notification since the click_action key is unsupported on iOS. From what I've found, it is possible to bypass this by using the category key for iOS instead. By default, the category key is used to display a dialog to perform a quick action instead of opening the application. This way it'll be possible to implement a custom behavior inside Delphi (just as with click_action for Android), or even create and register a UNNotificationCategory (although it's probably not worth the hassle).
References:
Apple docs - Configuring Categories and Actionable Notifications
Firebase docs - Notification payload support
SO - just a confirmation other people have done it

Just FYI - I started work on something like this not long ago. The first link you provided has made me change direction a bit. I will be implementing something :-)

Just FYI - I started work on something like this not long ago. The first link you provided has made me change direction a bit. I will be implementing something :-)

Glad I could be of help!

Added support for category (and action). The demo has been updated to illustrate how to add categories/actions, however to also illustrate here:
procedure TfrmMain.AddCategories;
var
  LCategory: INotificationCategory;
begin
  LCategory := FCM.AddCategory('category1', Category1Handler);
  LCategory := FCM.AddCategory('category2');
  LCategory.AddAction('action1', 'Confirm', Category2ConfirmHandler);
  LCategory.AddAction('action2', 'Deny', Category2DenyHandler);
end;

The first line of the routine is the simplest case - a category with no actions. When the user taps the notification, Category1Handler is called.
The rest of the routine demonstrates adding actions to a category. The action "buttons" are presented when the user swipes down on the notification itself (i.e. instead of tapping it), and tapping one of the action buttons will invoke the relevant handler:

NOTE: For this to function properly when the app is not running, or is in the background, you need to ensure that remote-notification is selected in the UIBackgroundModes property in Version Info in the Project Options:

Hi Dave,
Great work! Looking forward to trying this out.
Just one thing, the way I would need to use it is to build the actions dynamically from a call to the server.
Having a handler method with no parameters makes it difficult to do this as we don't know which action was tapped.
If it could pass the action ID to the handler method, we could build the actions at runtime, use the same handler for all actions and then send the pressed action id back to the server for any required processing.
Hope this makes sense, let me know if not 👍

Yes, it made sense. Let me know if the changes I just pushed suit you, which allows adding of actions optionally without a handler, and use OnNotificationCategory to handle categories and/or actions generically

Yes, this is exactly what I meant, makes it much more flexible!
Thanks a lot save, will be trying this later today.

Asking for, finally it is posible to pass action ID to the handler method?... how can I do this?

Asking for, finally it is possible to pass action ID to the handler method?... how can I do this?

Please read the previous comments on this issue, especially this one.


Expose mock method api

When used with Elemental it's quite handy to be able to override Js.asPropertyMap and other static methods to return something remotely useful. Providing list of such methods is not in the scope of this PR, but by exposing the necessary API anyone can subclass GwtMockitoRunner and mock the methods in their implementation. The alternative -- mocking those methods using powermock or mockito inline -- is very cumbersome because of the different classsloaders.

@ekuefler could you please check this PR?

Thanks for the PR. I see the value of this but am hesitant to expose any API in StubGenerator - like the javadoc in that class mentions, that class (and the rest of the impl package) is intended to be called only by generated code and not invoked by users directly. There might also be some unexpected behavior since StubGenerator is invoked only in certain circumstances: https://github.com/google/gwtmockito/blob/06b21bbcff700f791984e1d271ec21fa7ab13c0a/gwtmockito/src/main/java/com/google/gwtmockito/GwtMockitoTestRunner.java#L449
Do you think it would be possible to expose this API via a protected method on GwtMockitoTestRunner that users could override? Something like getMethodsToReplace that returns a collection of ReplacementMethods, which each defines a class, name, and implementation function? GwtMockitoTestRunner  could then consult that method before going through the internal stub generator.


rarityDelimiter bug for folders

Changing the rarity delimiter from "#" to a different one doesn't get registered for directories with the new delimiter.
The culprit is in "line 62" of "main.js"
const exp = /#(\d*)/;

Although I manually changed the "#" to my custom delimiter and fixed my issue, I wasn't able to figure out how to insert the variable "rarityDelimiter" into that regex for a proper solution.

The fix for this breaks probability/rarity configured folders in a nested structure.
After trying this out I get only random layers appearing from the hierarchy and not the full set.
my dir structure:
Type
 - Type1#150
    -- 010 (this is done to order my layers so I can adjust the orders of compatibility)
      -- Fur
         -- fur_1#150
         ... so on
   -- 020 (this has sub layers etc)

I think the regex is somehow skipping these folders with numbers on them. when it has the # its fine.
What about making the regex a template string passing the delimiter value?
const exp = new RegExp(`${rarityDelimiter}(\\d*)`);

one line fix. tested and works for me.

Thank you for catching this. Will implement

Fixed in 884bc739678ee07e0d14297738d015e712bbac66


The 'Pods-Runner' target has transitive dependencies that include statically linked binaries

Hi,
Thanks again for this, just letting you know that as of the latest Flutter versions (3.3.7 upwards), I'm encountering the below error when trying to build:
- Running pre install hooks
    [!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries:
    (/<project-name>/ios/Pods/Mux-Stats-AVPlayer/XCFramework/MUXSDKStats.xcframework)

If I comment out the flutter_to_airplay dependency in pubspec.yaml, then I can build.
Any ideas?
FYI - I'm targeting iOS 11 in my Podfile and my stackoverflow question is here:
Cheers!

same error

I can't build either, however with a different error message:
Error (Xcode): '/Users/vagrant/git/build/ios/Debug-staging-iphoneos/XCFrameworkIntermediates/Mux-Stats-AVPlayer/MUXSDKStats.framework/MUXSDKStats' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/vagrant/git/build/ios/Debug-staging-iphoneos/XCFrameworkIntermediates/Mux-Stats-AVPlayer/MUXSDKStats.framework/MUXSDKStats' for architecture arm64

I can't build either, however with a different error message:
Error (Xcode): '/Users/vagrant/git/build/ios/Debug-staging-iphoneos/XCFrameworkIntermediates/Mux-Stats-AVPlayer/MUXSDKStats.framework/MUXSDKStats' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/vagrant/git/build/ios/Debug-staging-iphoneos/XCFrameworkIntermediates/Mux-Stats-AVPlayer/MUXSDKStats.framework/MUXSDKStats' for architecture arm64

Mux-Stats-AVPlayer is being used internally by this Flutter plugin.

I made a PR #26


Containerise frontend and add landing page

Containerise frontend and update docker compose
Implement landing page
Modify home (matching) page title & subtitle
Modify navbar and styling slightly

Actually I think the /home page belongs to the next milestone right?

Actually I think the /home page belongs to the next milestone right?

ohya I'll comment it out in a new PR then


Add script to generate tables; add data in yml; add more features

I recently added Fodderator to my game recently which uses the DCC-Tabbed-Sheet and found that it didn't work. These are the fixes I made which kind of snowballed (I found editing the table text files manually really mentally exhausting, so I put the data in YAML files and added a generator to build the tables themselves).
Here's what it adds:

data now stores in YAML tables (for easy editing and cross-referencing)
fixed attribute assignment to work with DCC-Tabbed-Sheet (this may break things for people who don't use that sheet)
generates the repeating row for the DCC-Tabbed-Sheet
added support for weapons that are both ranged and melee
sets the appropriate birth augur attribute (when applicable)
removed damage type (piercing/blunt/slashing) - as far as i can tell neither character sheets make use of it

I'm not sure this is something you want to merge or not, depends on if you're still using Fodderator and how. But feel free to let me know if you have any feedback!

@rgould Thanks for contributing back. I let this languish a little since I had a bout of GM burnout. Looking at your fixes, though.

Awesome work!

Merged to version 0.1.0. I've only done an initial test pass but will want to test it some more and clean up some other stuff that I want in 0.1.0 before merging it to Master.

@kevinsearle thanks for the merge! Let me know if you have any other suggestions or run into any issues (especially with regards to generating the tables)
I currently don't plan to make any more changes, at least until I modify the character sheet itself some more (such as adding in the missing birth augurs)


PageViewDotIndicator ERROR

I use Pageview in my widgets I use PageViewDotIndicator too
I get this error when I switching between pageview pages
PageViewDotIndicator(
                                                    currentItem: pageController
                                                            .page
                                                            ?.round() ??
                                                        0,
                                                    count: session.length,
                                                    unselectedColor:
                                                        Colors.white,
                                                    selectedColor:
                                                        Theme.of(context)
                                                            .colorScheme
                                                            .secondary,
                                                    duration: const Duration(
                                                        milliseconds: 200),
                                                    boxShape: BoxShape.circle,
                                                  ),

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown building:
Page value is only available after content dimensions are established.
'package:flutter/src/widgets/page_view.dart':
package:flutter/…/widgets/page_view.dart:1
Failed assertion: line 396 pos 7: '!hasPixels || hasContentDimensions'

Hi @saranafisa,
Please provide your flutter doctor -v and flutter run --verbose logs, and a minimal complete reproducible code sample preferably without any third-party packages along with steps to reproduce so that we can investigate this issue.
Thank you


CFLAGS activation

Comment:
Hello, in a recipe I need to have both the linux-64 gcc (to build a tmp tool) and the linux-ppc64le gcc. The recipe has the ppc64le cross-compiler in build and I try to install the 64 gcc inside a local conda environment. When I retrieve CFLAGS from that environment, it seems to include the cross-compiler CFLAGS:
INFO: activate-gcc_linux-64.sh made the following environmental changes:
-build_alias=powerpc64le-conda-linux-gnu
+build_alias=x86_64-conda-linux-gnu
...
+CFLAGS=-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/zig-0.13.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/zig-0.13.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix
-CFLAGS=-mcpu=power8 -mtune=power8 -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O3 -pipe -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/zig-0.13.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix

The new CFLAGS seems to be a concatenation of 64 CFLAGS and ppc64le CFLAGS
I looked inside this recipe, but do not see where the activation/deactivation scripts reside

I looked inside this recipe, but do not see where the activation/deactivation scripts reside

That would be in https://github.com/conda-forge/ctng-compiler-activation-feedstock
If you install gcc_linux-ppc64le into a build environment on a linux-64 agent, you'll necessarily also have a working compiler for linux-64. If you need to compile something for the build architecture, you can so something like:
if [[ "${CONDA_BUILD_CROSS_COMPILATION:-0}" == 1 ]]; then
  (  # open new scope so that variables don't get overwritten for main build
    CC=${CC_FOR_BUILD}
    CXX=${CXX_FOR_BUILD}
    # remove architecture flags (won't match build architecture)
    CFLAGS="$(echo ${CFLAGS} | sed 's/ -march=[^ ]*//g' | sed 's/ -mcpu=[^ ]*//g' | sed 's/ -mtune=[^ ]*//g')"
    CXXFLAGS="$(echo ${CXXFLAGS} | sed 's/ -march=[^ ]*//g' | sed 's/ -mcpu=[^ ]*//g' | sed 's/ -mtune=[^ ]*//g')"
    # point to correct prefix
    CFLAGS=${CFLAGS//$PREFIX/$BUILD_PREFIX}
    CXXFLAGS=${CXXFLAGS//$PREFIX/$BUILD_PREFIX}
    LDFLAGS=${LDFLAGS//$PREFIX/$BUILD_PREFIX}
    # compile something for build-arch here
  )
fi

That's what I was doing but then I have to install a bunch of libs/tools and wanted to have a cleaner build: so I did this:
  mamba create -n qemu-execve -y -c conda-forge \
    gcc_linux-64 \
    sysroot_linux-64=2.28 \
    ...

      local CC=$(mamba run -n qemu-execve which x86_64-conda-linux-gnu-gcc | grep -Eo '/.*gcc' | tail -n 1)
      mamba run -n qemu-execve bash -c 'echo "${CFLAGS:-}" > _cflags.txt' >& /dev/null
      local CFLAGS=$(< _cflags.txt)
      CFLAGS=${CFLAGS//-mcpu=power8 -mtune=power8/}

So I thought that there would not be any 'leakage' between environments, but I had to add the last CFLAGS line when in that environment there should be no ppc64le related information
Am I missing something?

but then I have to install a bunch of libs/tools and wanted to have a cleaner build:

what does that mean? why should libs/tools care about what other things are in the build environment, much less fail based on that?

I felt it would be cleaner to have a build: section that only had packages required for the specific recipe (in this case zig), and that the packages needed to build intermediate tools would be better organized within the build script under a dedicated environment. Within that dedicated environment, I was surprised to see that the environment variables had definitions from the build environment, even though the activation/deactivation scripts seemed to indicate that old variables were removed and new variables where set as in:
-CFLAGS= -mtune=power8 ....  # ppc64le build environment
+CFLAGS= -march=nocona -mtune=haswell ... # x86_64 dedicated environment

But this discussion probably stems from my ignorance and you seem to confirm that it is the case. I have a solution for the recipe in question, so we can close this issue
Thank you


How do I navigate the deserialized data?

Trying to get each item in a key just gives me an array of each letter that was there... I am completely lost. And I don't seem to be able to navigate to sub-keys either >.>

Not sure what you mean, can you give me an idea of what you're trying to deserialize?
For example, I'd use something like this to navigate the TF2 Schema:
            dynamic prop = VdfConvert.Deserialize(vdf);
            Console.WriteLine(prop.Value["qualities"]["vintage"]);```

http://media.steampowered.com/controller_config/firmware/firmware.vdf This and Hmmm... I'll try that in the morning.

This worked for me:
dynamic prop = VdfConvert.Deserialize(firmware);
foreach (dynamic firmwareType in prop.Value["4354"].Children())
    Console.WriteLine(firmwareType.Value["firmwarebinary"]);

and printed:
/firmware/vcf_wired_controller_d0g_55393371.bin
/firmware/vcf_wired_controller_d0g_555bf9c5.bin
/firmware/vcf_wired_controller_d0g_5567949d.bin
/firmware/vcf_wired_controller_d0g_556e46b0.bin
/firmware/vcf_wired_controller_d0g_557248e3.bin

Sorry, I meant to reply - thanks, this worked :+1:


added heroku support

Description of changes
Added Procfile, moved dotenv to dependencies because Heroku does not install devDependencies & updated README
Test
Tested it with Heroku, and both Discord and Twitter works seamlessly

@0xSooki Thank you for taking the time to create this pull request.
I intentionally excluded the Deployment section from the Readme.
In my opinion, deployment options should be decided by the developer.
But good catch on the dotenv install dependency issue. I should move it to the dependencies.
Could you create another pull request that contains only the changes to the dotenv dependencies? I would like to merge the pull request.

On it, thanks for the quick and amazing response


Update UG with screenshots

I also changed the addm command to auto-convert any lowercase input of Module code into uppercase.
ie. addm m/ cs2109s will now display CS2109S

Codecov Report
Base: 63.55% // Head: 63.55% // No change to project coverage :thumbsup:

Coverage data is based on head (7791dce) compared to base (888b9a1).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #129   +/-   ##
=========================================
  Coverage     63.55%   63.55%
  Complexity      557      557
=========================================
  Files           102      102
  Lines          1885     1885
  Branches        217      217
=========================================
  Hits           1198     1198
  Misses          619      619
  Partials         68       68

Impacted Files
Coverage Δ

.../java/seedu/address/logic/commands/AddCommand.java
100.00% <ø> (ø)

...in/java/seedu/address/logic/parser/ParserUtil.java
77.02% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

My bad Dao Fu didnt realise you also added a findm and findp function.


Fix api docs not escaping pipe character in tables

I've found that the pipe characters in [0-9]+(ms|s|m|h|d|w|y) as seen in markdown tables generated from types were actually parsed as column separators by Github's markdown parser.
This PR adds an escape function to po-docgen and uses it to escape pipe characters when generating a markdown table.
Ran make generate to rebuild the docs following this fix.

Rather than adding a new function and a new formatting point for fields, we should escape the | character in the same place where we escape all the other characters in the Godoc body https://github.com/coreos/prometheus-operator/blob/master/cmd/po-docgen/api.go#L184-L188


ci: disable bazel tarball cache on Windows

Now that we have the GCS cache working, and the libcurl library is
cacheable on Windows we should be able to disable the tarball cache
altogether.
The windows/bazel build reports:
INFO: 3121 processes: 3116 remote cache hit, 5 local.

https://source.cloud.google.com/results/invocations/4df0be5f-6a84-4874-8e6a-ac49b257ccd6
That seems like a good hit rate :slightly_smiling_face: many of the tests
did not need to run because they reused the cache.
The windows/bazel-release build reports:
INFO: 3121 processes: 2331 remote cache hit, 790 local.

https://source.cloud.google.com/results/invocations/b36ac25e-cb99-4b25-8c74-cd990c04fd77
That is not nearly as good. OTOH, that build has been all over the place for the last few days.

The second run was under 15m for both:
https://source.cloud.google.com/results/invocations/01b48f7f-fc50-41ef-a90f-a671c4cb5350
https://source.cloud.google.com/results/invocations/fff9a3cb-bd6e-4924-bcb7-b1c74f5cfaf2


feat: custom version increment strategies

Allow for version incrementing strategies other than conventional
commits. The first example is "always-patch" which completely ignores
conventional commits and hard-codes a "patch" level version bump. This
strategy is useful in cases where the "major" and "minor" numbers are
set by conditions outside the package codebase but the "patch" number
is still available for representing changes as a new version.

sorry, got distracted - been meaning to follow up out of band with @chingor13 to discuss a more generic solution for my needs + Java use cases.

@joeldodge79 👍 will leave it to you and @chingor13 to discuss, let me know when/if my review is needed.

I'd love to figure out how to unblock this work next quarter, perhaps we can have a catch up soonish? Apologies for leaving this to stagnate.

@joeldodge79 okay, @chingor13 has landed his refactor that pulls versioning into its own class.
I think it should be a good starting point for you to finally implement this functionality.

The always-bump-patch versioning strategy is built-in to the new refactored version. You can mix and match any language strategy with a versioning strategy. Previously the always-bump-patch semantics were bundled with the java-backport ReleasePR type, but now any component can specify it.

@chingor13 awesome, thanks! could you point me to the code or examples of using always-bump-patch - we'd want to apply it to a subset of packages in the release-please-config.json of our monorepo

@joeldodge79 okay if we bring this conversation to chat? I think the functionality is likely close to where you need it, and @chingor13 just needs to point you towards it.


core: add end to end CLI command

CI failures will be addressd in follow-ups. This is ready

mypy issues will be resolved in later PRs. The other CI jobs have been updated now. This is good to go.


feat: show error after submit. show message to the user

closes #97
I also added a validation for amounts greater than 1,000,000

@osdiab I saw the video, but seems that the changes weren't impacted. The same with #103 . Could be something wrong with the deployment? Or should I do something before push the changes?

Oh yeah maybe the Vercel demo isn't working unless you build and commit? I'll check tomorrow if that's the case, would be better if it weren't.

oh, i see - the vercel instance run by p22 (every-month) doesn't update but the one run by us at Every.org (donate-button) does. @jake-nz can you turn off the every-month vercel instance?

I'll merge this but follow up issue, the error messages shouldn't cause the button to move.

oh, i see - the vercel instance run by p22 (every-month) doesn't update but the one run by us at Every.org (donate-button) does. @jake-nz can you turn off the every-month vercel instance?

Done ✅


Documentation on Logging in Python Operator

I am wondering how to leverage logging if writing Python code. Can I somehow retrieve the Java logger and use it within Python?

Hello, @friendofasquid
IIUC, Digdag execute python command. So there is no interface for logging.
https://github.com/treasure-data/digdag/blob/master/digdag-standards/src/main/java/io/digdag/standards/operator/PyOperatorFactory.java#L140
https://github.com/treasure-data/digdag/blob/master/digdag-standards/src/main/resources/digdag/standards/py/runner.py
If you want to see task log in server mode, Digdag records stdout (maybe stderr too) as a task log.


Create new Environment::getAsBoolean() method

Currently to check if an environment variable represents a true-like value, developers have to decide what they will accept as true-like.
Setting MY_ENV_VAR=true and MY_ENV_VAR=false will both correctly return true and false from Environment::getEnv('MY_ENV_VAR')
Setting MY_ENV_VAR=off will return the string "off" which is truthy, even though the intention is clearly a false-like value.
We should introduce a getAsBoolean() method which uses filter_var($envVarValue, FILTER_VALIDATE_BOOL, FILTER_NULL_ON_FAILURE) to determine if the value is a true-like, false-like, or not valid boolean value.
See https://www.php.net/manual/en/filter.filters.validate.php for more information about what the filter_var line above would return.
To decide (turn these into ACs)

If the env var hasn't been set, should this be considered false-like or not-boolean?
If an env-var is not a valid boolean-like value, should we return null (which is what filter_var above returns) or throw an exception? Or just treat all non-boolean values as false?

If we throw an exception we should also implement an isBoolean() method... but maybe we should do that anyway?

Acceptance criteria

[ ] A new Environment::getAsBoolean() method is created which returns the environment variable as a boolean
[ ] Injector config does not use this method when getting environment variables
[ ] Usage of Environment::getEnv() in core and supported modules are evaluated to check if they should be using the new method

My 2 cents for the decisions/questions:

if it's not set, it's not set and is empty, so return null
if it's set and not a boolean-like, then getAsBoolean should imho return false (we should NOT use the FILTER_NULL_ON_FAILURE flag).

if it's not set, it's not set and is empty, so return null

I tend to agree with that.

if it's set and not a boolean-like, then getAsBoolean should imho return false (we should NOT use the FILTER_NULL_ON_FAILURE flag).

What's your thinking there? To me that seems more like someone has set an incorrect value for that variable and we shouldn't try to guess at what their intention was. I lean towards throwing a RuntimeException in that scenario. We could provide people with a valueIsBoolean() method as well if we want to provide a way to avoid exceptions and try/catching.

if it's set and not a boolean-like, then getAsBoolean should imho return false (we should NOT use the FILTER_NULL_ON_FAILURE flag).

What's your thinking there? To me that seems more like someone has set an incorrect value for that variable and we shouldn't try to guess at what their intention was. I lean towards throwing a RuntimeException in that scenario. We could provide people with a valueIsBoolean() method as well if we want to provide developers with a way to avoid exceptions and try/catching.

Get 'whatever' as boolean. We shouldn't be guessing, as you say. If it was named getBoolean then we can throw an exception if not boolean-like.

So it's really a question of naming rather than functionality? I'd be happy with naming it getBoolean() to get the safer behaviour.

Well, the name ideally indicates what the functionality will be. We can have both (getBoolean and getAsBoolean) or just the latter with an optional param to be strict/er. I think we're on the same page, let's see what others think.

just the latter with an optional param to be strict/er

I like that idea

I’d be in favour of implementing only getBoolean() and throwing an exception on a non-boolean value. If you’re trying to get a boolean value from an environment variable and someone has set a non-boolean value, that’s an error that should be highlighted. I can’t really imagine a valid use case for the getAsBoolean() soft-fail version

Right, but equally you could try to set a value to true, miss a typo and it’ll silently fall back to false with no warning/error - that sounds worse to me. Environment variables tend to be critical to a site operating properly, I’d rather be notified if I’d set something incorrectly than it silently fall back to a value I may or may not have intended


The app doesn't allow me to download stuff from udemy business

Can you please provide more information? What error message you are seeing and at which steps exactly?

i am able to login, view all the courses but unable to download. It says you "you do not have access to this content"
This happens with token login also

Have you enrolled and paid for the courses you are trying to download?

Hi Bro I have logged in to my business account and able to see the enrolled courses. However when I click on download it says "you do not have permission to access the course"

I had issues with latest version too with the business account. But the issue was different. I tried previous version one by one and it worked fine with v1.8.0.
Try this version if you think it's worth trying.

Wonderful bro. It works with v1.8.0. I'm able to download it using business account.

Glat that worked for you.
This issue seems to be related to #490.


N35: Release

Part of #1065
Netlify preview (475547c1ed05a823ece9b360d7ad3fad5842f0d9): https://sharp-aryabhata-9cc78b.netlify.app/news/035

Looking over it now :)

Rebased with last minute PRs, new preview link: https://62c710bb8eb5db113c1e6919--sharp-aryabhata-9cc78b.netlify.app/
⏰ Going to merge in the next few hours if no objections.

Ohai, a quick drive-by review 😀 I spotted two things:
It seems that "Chimera Rancher" ended up in the "Engine Updates" section -- not sure if that's intentional.
quad-gif has "[Game name]" as its header.

Good spot, thank you! I am too tired to be reviewing PRs 😅


Disable server side rendering in layouts / pages / configuration

Putting this in so it's not lost and / or for anyone has any further thoughts. After an earlier discussion with @Atinux on Gitter.
The change
Allow us to turn off server side rendering for selected areas of our applications, configured in a similar way to middleware, via nuxt.config.js, layout or pages.
Why?
For us, it's related to JWT token authentication. At present it's not possible to re-hydrate our Vuex User and related stores after the users refreshes, until after the application has rendered (forcing the user through middlewares that cannot see they're authenticated and kicking them out). If we attempt to force the store population on the client side before the application is rendered, the HTML between the server and client is different and we understandably receive:

[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content.

This means it's not currently possible to support JWT easily in Nuxt. I'm pretty certain there'll be other legitimate use cases for forcing SSR: false on selected areas of an application.

+1 - this would be really useful

Meanwhile is there any solution to keep the user logged in after refresh?
i tried this

but doesn't work with middlewares...

You might want to take a look at the auth0 example. You can have a global middleware that checks for the token in cookie and adds it to the store.
I integrated Nuxt with Laravel, and I have a middleware like that that checks for the JWT token then fetches the user from my Laravel app and by the time the app is rendered the user is already in the store.

Related to #240

@cretueusebiu i did that too but i have a little bug on reloading on the nav bar, some time it desappear showing this error

knowing that its content depends on the state of the store

it worked for me guys , it was an error in my default layout.
thanks for helping :peace_symbol:

+1 from me,
just wanted to create this question.
Many modules are not compatible with ssr. if you know you'll be hosting static and use some of these modules, it would be create to be able to just globally ssr: false in nuxt config so it doesnt bother you anymore.

@max-schu it's true some things aren't compatible, however I wouldn't encourage the use of ssr: false in the broader sense, isomorphic rendering is a (the?) primary reason to use Nuxt in the first place.

Exactly, you won't have any advantage for SEO.
But I believe Nuxt.js can be more than only SSR, using Vue files, middleware, layouts, ES6, code-splitting and all the best practices can be also a great experience for developing static web applications too.

@ggn06awu i get your point, but there are many different use cases for nuxt.js. If you use nuxt.js to develop a webapp i'm totally on your side. However using nuxt.js as a static site generator to build simple websites such as blogs/portfolios etc, ssr is obsolete because in most cases it will be hosted static and the generated build is prerendered (SEO) anyway.
Telling you how I use it at the moment: for some projects it's a better version of vue-cli webpack template for me as it saves me the effort of defining routes, components and making things easier overall. However the more modules are used in combination with nuxt, the likelier it is you have to build workarounds because of ssr. Then simplifying things in fact makes it more complicated.

I like SSR more than prerender  .
prerender need more time to render it , and you must know that userAgent you want feed prerender page .
so ,  for my personal view , I recommend use SSR  ( I know it have obsolete problem ) , some thing not generate page use prerender .
but I still want page ssr:false   , like user page ... etc ... that really don't need SSR .

Global (router) middleware works great for authentication, in fact it's the only solution that I've seen working in my case (Feathers+Nuxt.js). See https://github.com/lewebsimple/feathers-nuxt for implementation details. I still have to experience the [Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content warning, I will report back if I encounter this.
Not sure if offering the option to turn off SSR is necessary, maybe it would be simpler to have nuxtServerInit (or another similar action like nuxtClientInit) be run on both the client and/or server side.

Closing it since https://github.com/nuxt/nuxt.js/issues/240 is open

I ran into a similar issue with .. tags.  By adding inline-template (e.g. ...), I was able to get nuxt/vue to ignore parsing that tag.  It's a hack, but it works, and nuxt doesn't throw an error, and the browser renders everything correctly with or without JS enabled.  I'm posting this here, because I stumbled upon this thread in my quest to search for an answer, and so, hopefully this will help people in the future who are looking for something similar.  For reference, https://vuejs.org/v2/guide/components.html#Inline-Templates


Add warning for Singleton + outer transaction

See https://issues.jboss.org/browse/JBPM-4755

Merged @ https://github.com/droolsjbpm/kie-docs/commit/05435e613067910c58880853ef920e478a045489

Thanks, Toshiya!


snapshot format for style is weird

Do you want to request a feature or report a bug?
bug
What is the current behavior?
the snapshot for style should be a string, but be formatted as an object.

If the current behavior is a bug, please provide the steps to reproduce and possibly a minimal demo or testcase in the form of a Next.js app, CodeSandbox URL or similar

use with-jest example
split style to styles.js and adjust pages/index.js as below

import styles from './style';

export default () => (

Hello World!

)

use enzyme for snapshot test

const app = shallow(<App />)
expect(app).toMatchSnapshot()

What is the expected behavior?
originally, the snapshot for style should be a string as below

Environment (include versions)

OS: macOS
styled-jsx (version): 3.0.2

Did this work in previous versions?
no, roll back to the previous version unable to fix this problem.

we don't have an official serializer for styled-jsx. Usually I recommend to not use styled-jsx in tests, after all you don't need to test that styled-jsx works. See https://github.com/zeit/styled-jsx#rendering-in-tests and mock styled-jsx/css

I try to use styled-jsx/babel-test, but unable to remove style.

create a repo to reproduce this error, I think this start at next 7.
In my project, apply babel-test is not able to solve the problem.
One solution is to follow (with-jest)[https://github.com/zeit/next.js/tree/canary/examples/with-jest] example, use react-test-renderer for snapshot test rather than enzyme.
But hope someone can help to find the root cause, or provide some idea for me to dig deeper, thanks.

We're also running into this problem while upgrading to Next.js 7 😄 Basically the snapshots change into these "monsters" :joy: with crazy amount of lines as there's a newline after each character inside JSXStyle:

next/babel preset seems to force(?) styled-jsx/babel into the mix and adding styled-jsx/babel-test into babelrc or babel.config.js doesn't seem to fix this. There's another person wondering about this also: https://github.com/zeit/next.js/issues/6205 – might make sense to move discussion there as?

@giuseppeg Thanks for the tip on the other issue 😊
I managed to add styled-jsx/babel-test to plugins, though I still get the weird snapshot where each character is on their own line, it's just now a


Update UI of Grading side-content tab

Update UI of Grading side-content tab
Summary: Resolves #569.
Changelog

Re-implement entire Grading side-content tab with flex containers instead of HTMLTable components

Grading tab now re-arranges its layout to accommodate different side-content widths down to a minimum of 192px, without distorting text as seen in #569.

Improve adjustment inputs to display valid input range as placeholder text instead of a static string
Improve adjustment inputs to warn users of invalid input values with a red tint

Bugfixes

Fix code blocks in last line of side-content text rendering an unintended extra inner scrollbar

Screenshots
UI bug (code blocks in last line of side-content render extra inner scrollbar)

Demonstration of resizing behaviour of Grading side-content tab

Placeholder text for adjustment inputs when empty

Red tint of adjustment inputs for invalid input values

Last updated 22 May 2020, 4:30AM

Pull Request Test Coverage Report for Build 3560

0 of 4 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.07%) to 36.9%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/academy/grading/GradingEditor.tsx
0
4
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/components/academy/grading/GradingEditor.tsx
1
7.78%

Totals

Change from base Build 3552:
-0.07%

Covered Lines:
2694

Relevant Lines:
6527

💛  - Coveralls

Tested it out and works as expected, thanks for the hard work Keven! 💯


Update load-balancer-outbound-connections.md

@anavinahar : Thanks for your contribution! The author(s) have been notified to review your proposed change.


[BUG] nullability on some decimal operations is wrong

Describe the bug
There are some expressions where we set nullable incorrectly.
CheckOverflow always has it set to true, but we have it set to child.nullable an inherited by unary.
In https://issues.apache.org/jira/browse/SPARK-39316 which made some changes to how arithmetic operations are calculated for decimal in changed the default nullable implementation for BinaryArithmatic
https://github.com/apache/spark/blob/ce12f6dbad2d713c6a2a52ac36d1f7a910399ad4/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/arithmetic.scala#L253-L263
Ours no longer matches this and still does left.nullable || right.nullable. This can result in crashes if we do a ColumnarToRow operation and it is not expected to be null.
We should probably audit this for all expressions and see if we are setting it correctly.
Steps/Code to reproduce bug
The good news is that it is kind of hard to reproduce. You need to overflow the decimal operation on one of these, and have the input marked as not-nullable. But Spark tends to mark all inputs as nullable unless it is a constant or comes from spark.range so it would be good to come up with a way to test this generally, but I don't know of one right now.

You need to overflow the decimal operation on one of these, and have the input marked as not-nullable

Hi, does the input means the input of a ColumnarToRow ?

This can result in crashes if we do a ColumnarToRow operation and it is not expected to be null

Is it because we tell Spark the data is not nullable but there are nulls in rows. Spark will not check the nullability of data by calling isNullAt when reading the data ?

does the input mean the input of a ColumanrToRow? Not it means the input to the query.

No it means the input to one of the decimal operations. Turns out this can cause data corruption too :(.
spark.range(20).selectExpr("CAST(id as DECIMAL(38,0)) as dec_num").selectExpr("99999999999999999999999999999999999991 + dec_num as over").show(false)

If you run it on the CPU you get a null as the output for the columns that would overflow the add, but if you run it on the GPU you get an empty string out.  But if you do a collect instead of a show you get bad results back instead of nulls.
spark.range(20).selectExpr("CAST(id as DECIMAL(38,0)) as dec_num").selectExpr("99999999999999999999999999999999999991 + dec_num as over").collect.foreach(println)

This happens for all of the binary ops in some form.
spark.range(20).selectExpr("CAST(id as DECIMAL(38,0)) as dec_num").selectExpr("99999999999999999999999999999999999991 - -dec_num as over").collect.foreach(println)
spark.range(20).selectExpr("CAST(id as DECIMAL(38,0)) as dec_num").selectExpr("99999999999999999999999999999999999991 * dec_num as over").collect.foreach(println)

Thanks a lot.


Important: This package is not actively maintained.

Does anybody knows a alternative package or has started a maintained fork?

https://github.com/spatie/laravel-html but without bootstrap support :(

https://github.com/dwightwatson/bootstrap-form this is for you :)

https://github.com/marvinlabs/laravel-html-bootstrap-4
An extension to Spatie's package with all the goodness of Adam Wathan forms package :)
Made for Bootstrap 4 though


Maven Package Fails

While running mvn clean ; mvn package -DskipTests=true  I get the error message at the end of this description.
Here is more information:

OS: Ubuntu 20
java -version -> openjdk version "1.8.0_312"
scala -version -> Scala code runner version 3.1.3
mvn -version -> Apache Maven 3.6.3
git log -> commit ed0e0344df881091ca5659c42a0cdb92b3b8c70f ;  Date:   Wed May 11 14:12:34 2022 +0200
git status -> On branch main ; Untracked Files : cs

The error message:
mvn clean ; mvn package -DskipTests=true
....
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:06 min
[INFO] Finished at: 2022-07-24T10:39:49+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.3.0:shade (default) on project spark-connector: Error creating shaded jar: Some problems were encountered while processing the POMs:
[ERROR] [ERROR] 'build.plugins.plugin[io.github.evis:scalafix-maven-plugin_${scala.compat.version}].dependencies.dependency.artifactId' for com.github.liancheng:organize-imports_${scala.compat.version}:jar with value 'organize-imports_${scala.compat.version}' does not match a valid id pattern. @ line 533, column 25
[ERROR] [ERROR] 'build.plugins.plugin[io.github.evis:scalafix-maven-plugin_${scala.compat.version}].dependencies.dependency.artifactId' for com.github.vovapolu:scaluzzi_${scala.compat.version}:jar with value 'scaluzzi_${scala.compat.version}' does not match a valid id pattern. @ line 538, column 25
[ERROR] : 2 problems were encountered while building the effective model for com.exasol:spark-connector:1.2.0
[ERROR] [ERROR] 'build.plugins.plugin[io.github.evis:scalafix-maven-plugin_${scala.compat.version}].dependencies.dependency.artifactId' for com.github.liancheng:organize-imports_${scala.compat.version}:jar with value 'organize-imports_${scala.compat.version}' does not match a valid id pattern. @ line 533, column 25
[ERROR] [ERROR] 'build.plugins.plugin[io.github.evis:scalafix-maven-plugin_${scala.compat.version}].dependencies.dependency.artifactId' for com.github.vovapolu:scaluzzi_${scala.compat.version}:jar with value 'scaluzzi_${scala.compat.version}' does not match a valid id pattern. @ line 538, column 25
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

@morazow  Is this just an incompatible version of scala ?

Hello @jpizagno,
Thanks for the feedback!
I am going to check it soon. Yes, you might be right that is related to Scala versions of compiler plugins.

Hey @jpizagno,
I think the issue is with shade plugin. Somehow, it cannot pickup property values for inner plugin dependencies by default.
            <plugin>
                <groupId>io.github.evis</groupId>
                <artifactId>scalafix-maven-plugin_${scala.compat.version}</artifactId>
                <version>0.1.4_0.9.31</version>
                <dependencies>
                    <dependency>
                        <groupId>com.github.liancheng</groupId>
                        <artifactId>organize-imports_${scala.compat.version}</artifactId>
                        <version>0.6.0</version>
                        <scope>compile</scope>
                    </dependency>
                    <dependency>
                        <groupId>com.github.vovapolu</groupId>
                        <artifactId>scaluzzi_${scala.compat.version}</artifactId>
                        <version>0.1.21</version>
                        <scope>compile</scope>
                    </dependency>
                </dependencies>
            </plugin>

So far, I could not understand why they are not picked up by default activation profile.
However, explicitly setting the profile value works fine:
mvn clean; mvn package -DskipTests=true -Pspark3.2

Note: At this moment you may get the audit error, you can skip them using ossindex.skip:
mvn clean; mvn package -DskipTests=true -Dossindex.skip=true -Pspark3.2

or wait until the #119 is merged.

Hey @jpizagno,
Can we close this issue?
Thanks and best

Hi @jpizagno,
We are going to close this ticket for now. Please let us know if there are more issues.

Hi @jpizagno, We are going to close this ticket for now. Please let us know if there are more issues.

Hey @morazow Sorry for the late reply. (I was on vacation.)
Confirmed.  If I use the latest master and java 11, then mvn clean; mvn package -DskipTests=true -Pspark3.2 successfully builds a Jar file in target.
thanks


Webpack 4 issue with Visual Studio 2017 .net core 2.0.7

My project is based on the Angular template for VS 2017 .net core 2.0 (not the new 2.1 templates, yet).
I've upgraded my project to webpack 4. I have update the webpack.config files (main and vendor) to handle the changes and have tweaked the csproj file to use the new --mode parameter required by webpack 4. I can build and publish ok and can run both webpack configs (main and vendor) without problems.
However, when I launch the app in dev mode (CTRL-F5) and VS automatically re-runs webpack, I get a console warning that 'mode' option has not been set and it falls back to Production mode.
How to I make VS call the hot middleware webpack rebuild with the new --mode=development parameter?
Is it an option in startup.cs? Maybe an additional option here?
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions {
                    HotModuleReplacement = true
                });

Webpack V4 is currently unsupported as far as I'm aware.
Here's the still open issue about it.

OK, then. I'll have to roll back. Thanks.

@AlejandroFlorin,
As far as I know, HMR middleware just calls 'webpack' command, without any parameters.
So to provide a mode option to HMR you need to specify it in your webpack config file:
module.exports = (env) => {
    const isDevBuild = !(env && env.prod);
    const mode = isDevBuild ? 'development' : 'production';
    const config = {
        mode: mode
    };
    return [config];
};

You could found more details in the official docs: https://webpack.js.org/concepts/mode

Thanks for answering, @zhaparoff!
Also note that we just released an updated aspnet-webpack 3.0.0 that adds Webpack 4 support.

I have upgraded to aspnet-webpack 3.0.0 as well as used @zhaparoff recommended settings. I still get the warning but I assume that is innocuous as setting the mode inside the webpack.config.js directly covers it?

This is still no good. The middleware is doing a full webpack rebuild with every TS change.

@AlejandroFlorin,
Looking at your current config, mode isn't included in any output.
You should add mode setting into sharedConfig directly:
const sharedConfig = {
        mode: mode,
        stats: { modules: false },
        context: __dirname,
        ...
}

OR
merge 'config' whith 'sharedConfig':
const sharedConfig = merge(config, {
        stats: { modules: false },
        context: __dirname,
        ...
});


FileNotFoundError: [Errno 2] No such file or directory: 'outputs/my_export2/export_scene.blend/bathroom_0/0_ceiling'   In call to configurable 'export_curr_scene' (<function export_curr_scene at 0x7f3e2cdd9bd0>)

Describe the bug
Hello, After I finished Hello Room,I wanted to export the furniture inside the building as a single obj, so I executed the following command：
python -m infinigen.tools.export --input_folder outputs/indoors/coarse  --output_folder outputs/my_export2 -f obj -r 1024 --individual
report errors:
FileNotFoundError: [Errno 2] No such file or directory: 'outputs/my_export2/export_scene.blend/bathroom_0/0_ceiling'
In call to configurable 'export_curr_scene' (<function export_curr_scene at 0x7f3e2cdd9bd0>)

Steps to Reproduce
first I use the "python -m infinigen_examples.generate_indoors --seed 0 --task coarse --output_folder outputs/indoors/coarse -g fast_solve.gin singleroom.gin -p compose_indoors.terrain_enabled=False restrict_solving.restrict_parent_rooms=["DiningRoom"]",
and then i use the "python -m infinigen.tools.export --input_folder outputs/indoors/coarse  --output_folder outputs/my_export2 -f obj -r 1024 --individual "，after that, the program reported two errors.
What version of the code were you using?
Commit 0fd9e541c351da4d49d62e902e827b5727e364ff
What command did you run?
python -m infinigen.tools.export --input_folder outputs/indoors/coarse  --output_folder outputs/my_export2 -f obj -r 1024 --individual
What are your FULL output logs?
FileNotFoundError: [Errno 2] No such file or directory: 'outputs/my_export2/export_scene.blend/bathroom_0/0_ceiling'
In call to configurable 'export_curr_scene' (<function export_curr_scene at 0x7f3e2cdd9bd0>)
Platform

OS & OS Version: Ubuntu 20.04.6 LTS
GPU (?) : GTX 4080 super
GPU Driver Version (?) : NVML Version:12.550.120
RAM (GB):32GB

The path is wrong because the filename is 'bathroom_0/0_ceiling' with a '/' in itself.

The path is wrong because the filename is 'bathroom_0/0_ceiling' with a '/' in itself.
Sorry, I don't understand what you mean,and if I use "python -m infinigen.tools.export --input_folder outputs/indoors/coarse --output_folder outputs/my_export2/ -f obj -r 1024", there is no error.

Thanks for your reply

对象名称中的斜杠“/”会导致错误。如果您在 blender 中检查对象名称，您会注意到一些网格被命名为“xx0/xx1/xx2”。因此，当您单独导出这些对象时，保存路径也将是“/xx0/xx1/xx2”，这意味着将对象“xx2”保存到文件夹“/xx0/xx1”中。但显然，文件夹“/xx0/xx1”不存在。您需要修改代码，以便在保存对象名称之前替换它们中的每个“/”。

Thank you for your help,after I modified the following code, the code outputs the obj file normally
edit file: infinigen/tools/export.py

Feel free to PR this, otherwise @David-Yan1 can patch


Set up minimum configuration for FastAPI Italian docs

Starting the Italian translation efforts for the FastAPI documentation.
Here's the PR.

Waiting for it to be merged, although some coverage checks are failing.
I'm not sure why those checks are failing if I've only added some docs files. The impacted file is fastapi/concurrency.py (missing coverage), however I've made no changes to that affected that file.


How to make my own drawer of colliders using pure WebGL

Hello. I know that Matter.js has its own drawer of colliders. Is it possible to get coordinates of colliders?

You can get collisions from pairs via engine collision events or iterating over engine.pairs.list. You can see how they are rendered here in Matter.Render.collisions and see docs for collision objects.

I'll try to post an example or my question with an example if I run into problems. Thank you!


uncaught exception while using regex

Hello,
While using input mask with regex i am getting following error:
"uncaught exception: Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ^(?!.*?[.]{2})[a-zA-Z.\s&-]{1,40}"
Although the regex was working with with javascript test function, only giving error when using in the plugin.
This regex does the following:
a.) Only characters
b.) No consecutive spaces, dots (.) and underscore (_) are allowed
c.) Dot must not be followed by underscore and vice versa.
Please help me to solve this.
Thanks

@saurabhparmar ,
Also see #1775
It is propably by the negative lookahead in the regex, which the Inputmask doesn't handle correctly.


Charge and charge link distribution to Grid companies w. local postal office

Description
Purpose of this feature is to create outbound messages from the charge domain and make them available for distribution, based on created charges and charge links.
This feature focus solely on messages intended for the grid companies.
The messages cover handling of tariffs, newly created metering points, and charge links.  Gather all needed data to create an RSM file of the types {RSM-031, RSM-034}, in CIM XML, to be fetched from the general postal office.
A template version of a local postal is made available from team titans
Acceptance Criteria

[ ] A local postal office in the charge domain
[ ]  All data needed for an RSM-034 message is handed to the local postal office, for tariffs
[ ]  All data needed for an RSM-031 message is handed to the local postal office, for charge links (including default charge link for created metering points)

Estimate
5 man sprint.

@PerTHenriksen, as far as I can tell the following would be the business equivalent ACs for this feature. Please read carefully as I'm definitely not sure I got it right...
(BRS-004)
Given the charges domain
When a grid access provider submits a new metering point
And the grid access provider subsequently peeks
Then the grid access provider receives a bundle with the CIM NotifyBillingMasterData_MarketDocument notification (RSM-031)
for each tax tarif linked to the metering point
(BRS-033)
Given the charges domain
When the TSO creates a tax tarif
And a grid access provider subsequently peeks
Then the grid access provider receives a bundle with a CIM NotifyPriceList_MarketDocument notification (RSM-034)
(BRS-033)
Given the charges domain
When the TSO stops a tax tarif
And a grid access provider subsequently peeks
Then the grid access provider receives a bundle with the CIM NotifyBillingMasterData_MarketDocument notification (RSM-031)
(BRS-037)
Given the charges domain
When an energy supplier submits a tax tarif
And a grid access provider subsequently peeks
Then the grid access provider receives a bundle with a CIM NotifyBillingMasterData_MarketDocument notification (RSM-031)
with a link to the tarif for each metering point with the given metering point type in the grid area
(BRS-037)
Given the charges domain
When TSO creates a tax tarif
And a grid access provider subsequently peeks
Then the grid access provider receives a bundle with a CIM NotifyBillingMasterData_MarketDocument notification (RSM-031)
with a link to the tarif for each metering point with the given metering point type in the grid area


CLI: always report vendoring for a single file

Fixes #216 by always reporting vendoring fact for a single file use-case.

The code coverage is unhappy, but in a trivial way that I do not think matters.