Updates for SDK

Some updates I made in the process of preparing the SDK

I previously implemented https://github.com/EOSIO/eos/blob/master/libraries/chain/wast_to_wasm.cpp
I would suggest removing eos::utilities::assembl_wasm in favor of the wast_to_wasm and wasm_to_wast functions defined in chain.
I will merge for now, but we should remove this kind of duplicate code.

Ahh, whoops, I missed it. I'll fix that.


export async function proposal

ES2015 has no native asynchronous modular system.
Why not to use a mix of export and async function to resolve modules somewhere inside?
It will allow us to load any module asynchronously without any changes to our apps.
import fs from 'fs';

export default async function() {
  return await fs.readFile('somefile');
};
// or even
export default new Promise(resolve => resolve(15));

/cc @domenic @douglascrockford

export default async function() {
  return await fs.readFile('somefile');
};

This is already a valid syntax for the async function exports.
If I get it right you can achieve desired behavior by doing the following:
export default (async function() {
  return await fs.readFile('somefile');
})();

The main idea to let modular system to resolve promises by self.
The current code can use Promise.resolve() to resolve the result of module if it's a promise. It's called asynchronous provide, afair.
Btw, what's the case of exporting async function atm? Can't imagine a single one, even if it's a valid syntax.

Btw, what's the case of exporting async function atm? Can't imagine a single one, even if it's a valid syntax.

E.g.:
fetch.js
export default async function(url) {
   var data = await request(url);

   return JSON.parse(data);
}

index.js
import fetch from './fetch';

fetch('http://example.com').then(data => {
   ...
});

@inikulin Am I right that you have code like this in your projects? I have a lot of synthetical examples, but have no a single one from the real life.

@zxqfox yep, why not? There is no difference between this and exporting a function that returns Promise.

@inikulin Hmm. Sorry, I've missed your point about a function that returns a Promise.
So you suppose to use export async IIFE to force resolution of the module on the side of modular system? It's fine for me, actually. If I see it right it's the same as exporting a Promise.
What you think about putting this in standard somehow or discuss about it? Because I don't see why we shouldn't.

Are you saying you want the async function to get evaluated and to have the result set as the export?

@RangerMauve Yeah, exactly.
Thanks for correction. IIAFE ;-)

Yeah, I think that might be much further down the road, and not really in the scope of this proposal. Maybe after async functions come along, it might make sense to propose async module exports as something separate.

Not going to do this. But, I think this is possible with the module loader (which can intelligently decide what to do with exported values).

Btw, what's the case of exporting async function atm? Can't imagine a single one, even if it's a valid syntax.

E.g.:
fetch.js
export default async function(url) {
   var data = await request(url);

   return JSON.parse(data);
}

index.js
import fetch from './fetch';

fetch('http://example.com').then(data => {
   ...
});

if I need export the data in index.js. how can i get it? please help me. thank you.


install error - unable to resolve dependency tree

Hi Guys,
I'm running a fresh strapi install and getting the following error when trying to install  the firebase-auth plugin.

Node Version: 20.11.1
npm i @swensonhe/strapi-plugin-firebase-authth

Error -

use yarn


No ScreenShot.png

It would be cool to have it, so people finding the project could see how it looks like right out of your splash page.

Sorry i somehow missed the fact i hadn't uploaded it! Now you should see it.

I would embed it into the README file.


Hackathon results are in the wrong part of the TOC

File: hackathon/index.md, CC @johndmulhausen
@johndmulhausen it doesn't make sense for them to be under the Archives link, does it?

Closing this ticket due to its age, and the impending refactor. If you think this is in error, feel free to reopen. Thanks!


Fix sessionServiceName to b dynamic in authenticated and application routes

The sessionServiceName was hard coded to session in some of the files, namely the AuthenticateRouteMixin and ApplicationRouteMixin.  I imported configuration so it is dynamic with the environment.js file.

+1

Missed one. Here's a patch to the pull request:
--- a/lib/torii/routing/authenticated-route-mixin.js
+++ b/lib/torii/routing/authenticated-route-mixin.js
@@ -14,14 +14,14 @@ export default Ember.Mixin.create({
   },
   authenticate: function (transition) {
     var route = this;
-    var isAuthenticated = this.get('session.isAuthenticated');
-    if (isAuthenticated === undefined) {
+    var session = this.get(configuration.sessionServiceName);
+    if (session.isAuthenticated === undefined) {
       this[configuration.sessionServiceName].attemptedTransition = transition;
       return this[configuration.sessionServiceName].fetch()
         .catch(function() {
           return route.accessDenied(transition);
         });
-    } else if (isAuthenticated) {
+    } else if (session.isAuthenticated) {
       // no-op; cause the user is already authenticated
       return Ember.RSVP.resolve();
     } else {

Put in the fixes, I can make  new fork and have the changes all in one commit if desired

@bmeyers22 what happened here? Not actually an issue?

It's definitely still an issue and this pull request (with my patch) definitely solves it!

@mwpastore there is no actual code to merge in this PR. I believe @bmeyers22 is moving the effort to https://github.com/Vestorly/torii/pull/228.

@mixonic closed in favor of #228

Didn't see that one. Great!


use newer chefdk + add chefdk_0_17 dockerfile for compat reasons

and provide it in a different way

Changes Unknown when pulling 2892c1d6e4f3d6e5b698072bf82ca5fcb5dfc894 on StefanWB:master into ** on MissionCriticalCloud:master**.

Changes Unknown when pulling 674e295658b10d25e320d98d26acd5f4c0dae25a on StefanWB:master into ** on MissionCriticalCloud:master**.

Changes Unknown when pulling a5744d25bfa979e46cf854a0210a9097fea1c381 on StefanWB:master into ** on MissionCriticalCloud:master**.

@stefanwb as discussed via another channel; latest_dependencies uses latest (seen working) ChefDK (0.19) now.
As dockerhub doesn't support (environment) variables to be supplied for separate tags, we duplicate the Dockerfile, only with a different/specific ChefDK version.


Providing extra fields in an env file tries to translate all values to flags

command:
om --env config.yml configure-authentication --config config.yml
could not execute "configure-authentication": could not parse configure-authentication flags: flag provided but not defined: -target

our config.yml has the following properties
target:
skip-ssl-validation:
username:
password:
decryption-passphrase:

Use case:
Since configure-authentication shares username & password fields in the env file, we want to just provide one file that can be used in both places. But since env file contains target and skip-ssl-validation, which are not recognized by `configure-authentication, it triggers the above error.
Proposal:
Ignore any unknown fields in the config file.
affected commands:
configure-authentication & configure-saml-authentication & import-installation

Classic UX question, do you error on unknown fields or not? As you're describing allowing unknown fields allows you to simplify things in CI. Also sometimes makes upgrades easier as a single config file can be used in both old and new envs as long as you can add new keys which the old env ignores. However, I've been bitten countless times by typoing a property or nested under the wrong key in BOSH only to see my deploy error 20 minutes later. If BOSH would have yelled at me immediately that it didn't understand a given key I would have been so much happier.
Given the UX gotchas with not validating unknown flags, I'd be in favor of keeping the existing validation. Your CI tasks now have to create two files instead of one, but this seems like a minor implementation detail of your CI task that the consumers of that task probably won't notice. Also feels like there's some clarity in having a single env.yml that all tasks consume and each task creates a second file containing values relevant to that task.

A more specific example, you run configure-product with a config file containing the key product_network which you accidentally gave an underscore rather than a hyphen. Instead of failing with "unknown key", your CI task goes green but silently fails to configure the network. You now get even more confusing errors as your next CI job fails due to the tile not being fully configured.

If BOSH would have yelled at me immediately that it didn't understand a given key I would have been so much happier.

That's true, as we talked about the potential solution, we realized that the error message is actually a valid one, fixing this 'bug' feels like a hack 😞. So we wanted to open up an issue to discuss with you guys first before we brute forced it to make it work.
An alternative might be to go through some effort and ignore flags from the env file, but, again, might be more of a hack(or at the very least it's unclean) than a good solution.

Something to note and/or fix:
the --env flag is handled by the yaml unmarshal (not jhanda like the above issue)
the behavior for --env does actually ignore unknown fields. If we'd like to keep the experiences the same, should we enforce this same behavior?

the behavior for --env does actually ignore unknown fields

Having --env using the same parsing logic as all the nested commands seems like a good thing to do.

After discussing with @ljfranklin, we are going to try and consolidate the config logic between --env, --config, and --config on product/director.

This behavior is not yet fixed. For example, env.yml:
target: "example.com"
skip-ssl-validation: true
username: username
password: password
decryption-passphrase: passphrase
bogus: not-real

run with the command:
○ →om --env env.yml staged-config --product-name cf
product-name: cf
product-properties:
  .cloud_controller.allow_app_ssh_access:
    value: true

This will be released in the next version of om (Currently: 1.0.1. Potentially 1.1.0 depending on if new features are added)


Serverside Inspect changes + Contributor Group Role Check

yes yes u understand :)

hehe

Yeah so possibly in the future someone else or myself like add this as a function to Admin.lua or service or whatever it is so plugins can use it dynamically too


[QUERY] Storage Queues: Why there are no overloads that accepts CancellationToken only?

Query/Question
Here's the method signature for QueueClient.CreateIfNotExists():
public virtual Response CreateIfNotExists(Metadata metadata = default, CancellationToken cancellationToken = default) =>

What means metadata can be null.
Then why there is no overload:
public virtual Response CreateIfNotExists(CancellationToken cancellationToken = default) =>

So I could write less chatty code:
await queueClient.CreateIfNotExists(cancellationToken);

instead of current
await queueClient.CreateIfNotExists(cancellationToken: cancellationToken);

Environment:

Name and version of the Library package used:

Azure.Storage.Queues 12.5.0

Hosting platform or OS and .NET runtime version:

.NET SDK (reflecting any global.json):
 Version:   5.0.101
 Commit:    d05174dc5a

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.19042
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\5.0.101\

Host (useful for support):
  Version: 5.0.1
  Commit:  b02e13abab

.NET SDKs installed:
  3.0.100 [C:\Program Files\dotnet\sdk]
  5.0.101 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 3.1.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

IDE and version:

Microsoft Visual Studio Enterprise 2019
Version 16.8.3
VisualStudio.16.Release/16.8.3+30804.86
Microsoft .NET Framework
Version 4.8.04084

Thank you for your feedback.  Tagging and routing to the team best able to assist.

This would require us to redo not just this API, but all of our APIs (across all libraries) for unpretty call for consistency. @seanmcc-msft @tg-msft Not sure if we have any SDK guidelines or suggestions that would prevent us from adding all these overloads.

I don’t think needed to specify ‘cancellationToken: cancellationToken’ is a major inconvenience.

Convince/inconvenience is quite subjective so I'd not go there :)
But the overall cost of the maintenance of an API having (numerous) overloads is a good argument in my mind though. Especially when consistency across numerous libraries is added to the mix.
After looking at the overall API surface of QueueClient I see no methods have any overloads. And as you say, that was a design decision.
Is there a public doc explaining the rationale behind this decision? I'd like to learn about it.

It might be in here - https://azure.github.io/azure-sdk/dotnet_introduction.html

It might be in here - https://azure.github.io/azure-sdk/dotnet_introduction.html

hi @seanmcc-msft, the article you linked reads as:

Simple methods should follow standard .NET Framework Design Guidelines for parameter list and overload design.

Complex methods should use option parameter to represent the request payload, and consider providing convenience simple overloads for most common scenarios.

The .NET Framework Design Guideline doesn't mention getting rid of overloads, it states quite the opposite:

Overloading is one of the most important techniques for improving the usability, productivity, and readability of reusable libraries.

So I'm still looking for technical justification for the new design. /cc @JeffreyRichter.

hi @seanmcc-msft, the article you linked reads as:

Simple methods should follow standard .NET Framework Design Guidelines for parameter list and overload design.

Complex methods should use option parameter to represent the request payload, and consider providing convenience simple overloads for most common scenarios.

The .NET Framework Design Guideline doesn't mention getting rid of overloads, it states quite the opposite:

Overloading is one of the most important techniques for improving the usability, productivity, and readability of reusable libraries.

So I'm still looking for technical justification for the new design. /cc @JeffreyRichter.

It is common to have simple overloads for common cases and overloads that take completely different things. But we deem passing a CancellationToken to be NOT common and so the overload that accepts it accepts all parameters. We can't add overloads for all methods that just take a CancellationToken. Some of this is historical with the idioms of C#/.NET.

It is common to have simple overloads for common cases and overloads that take completely different things. But we deem passing a CancellationToken to be NOT common and so the overload that accepts it accepts all parameters. We can't add overloads for all methods that just take a CancellationToken. Some of this is historical with the idioms of C#/.NET.

Hi @abatishchev, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.


Add support for Protobuf RepeatedField collections

Protobuf generated entities seem to work well with BuilderGenerator but collections don't get generated. Protobuf collections are of type RepeatedField which are read-only properties that implement IEnumerable.

Looking into the code, one could argue that it's worth adding support for read-only collections leveraging something like Add() or AddRange() in the implementation template.

Hmm. The trouble with IEnumerable is that it doesn't have Add or AddRange. You need ICollection to get those. I took a quick glance, though, and it looks like it inherits from IList, which would have those. The more general problem is knowing exactly which type of collection to generate. I'll need to think about that.

Yeah, I think you are right supporting IEnumerable is tricky (enumerator functions, backed fields, etc.) but ICollection shouldn't be hard (just use AddRange and forget about it).

Expanding collection support is on my list, but I'm not sure when it'll get done. I think it will require more reflection than what the code is doing now. It will need to be intelligent about whether to just clear the collection or to replace it completely, depending on the properties of the collection itself. What if the class has a settable collection and it's empty. If you've told the builder to put something in the collection, it will have to be smart enough to set it to an appropriate type and then fill it. I like that the library is useful to others, and I'm starting to suspect that it's going to grow into a much larger project than it is. As such, I'm trying to tackle some optimizations first before moving forward. I'll keep this here so that I don't lose track, though.


Explore using cyclonedx gomod as a library

What would you like to be added:
CycloneDX gomod exposes a fairly comprehensive way of generating accurate sboms for go based projects in 3 modes, app, mod and bin.
Explore if this is something that can be utilized by syft to improve its output or not.
The app mode in particular might be useful during build time sbom generation.
Why is this needed: More accurate go sboms
Additional context:

This functionality is still pending release at https://github.com/CycloneDX/cyclonedx-gomod/pull/114
cc: @nscuro for his amazing work on this.

Thanks @samj1912! Happy to answer any questions regarding cdx-gomod, or discuss improvements that may be necessary for it to be a viable option for Syft 🙂

I think this is a great idea. @nscuro had to do a lot of work digging into the technical details of how go projects can be built to be able to accurately generate a BOM. Makes sense to me to leverage the work that's already been done.

Hey! I'm highly interested in options here for integration between these two projects 👍
I want to start by framing some of philosophies that Syft has today (and where they may be going in the future). Today Syft trys to be a self-contained static analyzer in a few different ways:

there is no shelling out to execute other code or utilities
we don't pull down state or resources via the network (the only exception to this today is checking for the latest available version of syft)
we try to limit our dependence on disk state where possible
syft is distributed as a static binary with no dependence on shared libraries or CGO functionality

That being said there are some facets that I think will change in the future, and most of the conversation on "how" has not happened yet. We want to elevate syft's functionality to be able to use external state to enrich or validate what is found statically. For instance, reaching out to maven.org to pull package dependency information to get a point-in-time transitive dependency list for a java package.
This would necessarily mean lifting or changing some of the restrictions we have in place today (such as accessing a network to get package state and leveraging state on disk more often). My instinct, if we were to go this direction, is to make such changes opt-in: users of syft would continue to use it as a static analyzer but can enable other more "dynamic" functionalities via configuration or CLI flags.
This context relates to cyclonedx-gomod in a couple of ways:

there is a dependency on shelling out to go to get the necessary information
much of the results depend on searching a gomod cache directory, which implies two things: a) heavy reliance of on disk state, and b) requiring the network to build this state

I took a small look to see what it would take to get the go mod * functionality without shelling out... it looks like it would mean copying out a large portion of go's internal source code, which is not ideal (but a possible path). This, coupled with the fact that the network would be needed to build the go mod cache, leads me to conclude that an integration with cyclonedx-gomod would be a good first candidate for exploring "opt-in + dynamic" capabilities in syft.
Happy to chat further on this @samj1912  @nscuro @coderpatros 👍

Totally agree that Syft's core should stay true to the philosophies listed. Having tools with minimal runtime dependencies is super useful (and even required in some environments).
I'd be happy to assist in figuring out how external tools can be integrated with Syft, with cdx-gomod being a potential guinea pig for experiments. 😄

I think we should revisit this... Now that people are using Syft in more parts of the SDLC, it'd be really useful to have the additional support for more use cases in the Go ecosystem.

This is a good idea and we had a look at this library, however we are leaning towards implementing the ability to shell-out to individual tools appropriate to an ecosystem, such as go and mvn. I'm going to close this issue in favor of: https://github.com/anchore/syft/issues/1562 but please reopen if you feel this is a superior solution!


client: Map preferences cameras

Start implementing Preferences component
Add '/v2/wildfirecheck/preferences' route
Display map in preferences
Plot cameras on map
Plot cameras’ radii
Fit zoom level to plotted cameras/radii


broken links are not broken

Thanks for a cool project.
I tried it, but it doesn't seem to be working for me.
I ran link_check content got this (trimmed to just 2 results):

ERROR: The Following Broken Links or Paths were found:

- 'https://github.com/slowkow/circles' was found in the following pages:

- 'pubmed.ncbi.nlm.nih.gov/31110316' was found in the following pages

As I go ahead and manually test all of the links, it seems none of them are broken.
Am I missing something?

Same issue here, github links tend to fail. I tested directly the urlcheck function:

In text format:
urlcheck('https://www.bing.com/')

urlcheck('https://www.github.com/')

urlcheck('https://github.com/')

urlopen('https://github.com/').status

urlcheck('http://github.com/')

urlcheck('https://google.com/')

urlcheck('https://www.google.com')

Same here!

I am getting the same error. I did some digging and found that its because of timeout argument in urlopen function. Removing the timeout argument worked for me. But now it's taking much longer to check all the broken links.
Also, sometimes, it simply freezes. Under the hood, parallel method from fastcore is used to check all the URLs. Hence, the code will wait for all the threads to complete. I am guessing, without timeout argument, if any single thread is still under execution, the complete code is stuck.

I am getting the same error. I did some digging and found that its because of timeout argument in urlopen function. Removing the timeout argument worked for me. But now it's taking much longer to check all the broken links.
Also, sometimes, it simply freezes. Under the hood, parallel method from fastcore is used to check all the URLs. Hence, the code will wait for all the threads to complete. I am guessing, without timeout argument, if any single thread is still under execution, the complete code is stuck.


WIP: Add dependent node properties for hardware modules to allow for tracking across renames

[x] This contribution adheres to CONTRIBUTING.md.

What does this Pull Request accomplish?
Add dependent node properties to the Routing and Faulting custom device that point to the hardware custom devices. This allows tracking the dependent custom devices on fully qualified path changes, e.g. when the controller or SLSC chassis is renamed.
Remaining work (currently deferred to avoid breaking other in progress work):

[ ] Update all pages to perform the relocated module fix
[ ] Move subVIs out of the System Explorer lvlib into the Scripting lvlib to avoid a dependency inversion

Why should this Pull Request be merged?
Currently the Routing and Faulting custom device configuration breaks when a hardware custom device is renamed.
What testing has been done?
Hand testing, added new unit tests to test the rename logic.

We are looking at implementing this functionality using a different mechanism. Closing for now.


Maximize current editor group (or temporarily hide other editor groups)

It would be great if there was a way to quickly hide other editor groups to focus on a single editor (or editor group) without actually closing all the other files. A common workflow for me is to flip between having multiple files open side by side, and having just the currently focused file shown, which is pretty painful to do now.
This is akin to the zen mode or no-distraction mode you see in other software. https://packagecontrol.io/packages/MaxPane also implements this for Sublime.

There are some commands to do this:

Maximize editor group and hide side bar
Minimize other editor groups

Please give them a try.

Sorry, I just saw this. This helps get into a MaxPane-like mode, but it doesn't help getting out of it. Ideally, there would be an easy way to maximize the editor group and restore the previous layout.

Even Editor Group Widths

Is it possible to actually use it as a toggle (maximize/even) and bind that to a key?

I'd like this as well - I have a similar feature I use in Vim, ZoomWin, and for this feature to be useful, it has to be able to restore to the previous state... thanks!

Related to #12940.

So if the workbench.action.maximizeEditor command isn't going to be a toggle, then what's the complementary command to undo the action when you're done and want to go back to the previous layout?

@rob3c If you set Even Editor Group Widths you can go back. It wont have the same layout as you had before but will split the editors to be even widths which is pretty much there. I had to set up a keybinding for each though as they arent toggles

Are these settings (e.g. workbench.action.maximizeEditor and etc.) still available in vscode?
I don't seem to able to find them.
Version 1.14.2

A toggle that retains the previous layout would be ideal. The maximise editor groups / even editor group widths combination is just about good enough - please consider a complete solution though 😃


Error when run anything

I also tried other kernels that written by you, they are fantastic.
I wanted to learn Visual Basic Script by the notebook, but error happends when I tried to run anything. It says
[MyVBSKernel154949] Info:The process :C:\Users\Ewsdj\jupyter-MyVBScript-kernel\jupyter_MyVBScript_kernel\tmpd26d8j0_.vbs
[MyVBSKernel154949] Error:'VBScriptKernel' object has no attribute '_logln'

and the console logged:
[W 2023-01-21 15:55:29.573 ServerApp] wrote error: 'Forbidden'
[W 2023-01-21 15:55:29.573 ServerApp] 403 GET /api/sessions?1674287729564 (<IP_ADDRESS>) 0.95ms referer=None

I know nothing about VBScript or jupyter notebook. What should I do? Please help solve the problem, thanks.

[MyVBSKernel154949] Error:'VBScriptKernel' object has no attribute '_logln'

This bug has been fixed


Testing the Add-Remove function

In this Pair programming exercise, we:

Used jest to test the functions
In a testfile we added the add and remove tests
The functions were pure and we created tests to check the DOM display and LocalStorage
We achieved this by using the describe() method

Thanks, @EricMbouwe.


Merge lightning into main

Description
I created a tag/release with the bugfix on main (v0.2.2) and created a pre-lightning branch for convenience. Now I will merge the lightning branch into main to prepare for the new release.

(besides #54 that makes the tests fail, we should be ready to go)


Keep keys secret

Write an system that will take a text file and output scrutiny keys that we can authenticate with.

and keep our burn after reading junk in der too

#13 Duplicate


FALCON-1906 upgrade falcon to java 8

@PraveenAdlakha There are Falcon modules where source and target version is 1.7 for "maven-compiler-plugin". Can you just check other modules to upgrade to 1.8.

@peeyushb  have made the changes please review.

👍 Looks good to me. Please comment on end2end testing done for this Jira.

Why do you want to disable JDK 7 support?

@vrangan Right now we are not using any code which is specific to java 8 so should not cause any problem,we can do testing for the same.
But we should migrate to java 8 as java 7 already had its end of life.Any suggestions that you have are welcome.

There are  customers that still use JDK 7 as the platforms.     Building with JDK 7 does not preclude use of JDK 8 as the runtime platform.   So, we should defer until there is a real need to change the source compatibility to JDK 8


PHP: fix build failure on mac

PHP build is failing on jenkins new macos-node2. https://grpc-testing.appspot.com/job/gRPC_master/2791/config=dbg,language=php,platform=macos/console
Looks like a similar issue to one I encountered when I was setting up macos homebrew testing on Jenkins: https://github.com/grpc/grpc/blob/master/tools/jenkins/run_distribution.sh#L102

LGTM, please merge once green.

Merging this. Got past the previous error but the build failed at a later point with a new error.


INSTALLATION.md: use correct Hubble image

Hey @tklauser would be great to have it also on the UI activation command here cilium hubble enable --ui---> cilium hubble enable --relay-version -service-mesh:v1.11.0-beta.1 --ui

Thanks @youssefazrak! Now updated the cilium hubble enable --ui command as well.

This used to work with cilium-cli v0.10.0 without specifying --relay-version, so this is really a regression in cilium-cli v0.10.1.
Not sure whether we still want to merge this PR as a temporary solution to prevent service mesh beta users from hitting issues until we've fixed cilium-cli and released a new version?

Closing this in favor of https://github.com/cilium/cilium-cli/pull/694 which will fix the underlying issue in cilium-cli.


[JAX] Sharding Utils

Description
Adding sharding utils, like getting rank or group of a specific device, for further development of parallelism.
Fixes # (issue)
Type of change

[ ] Documentation change (change only to the documentation, either a fix or a new content)
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Infra/Build change
[ ] Code refractor

Changes

Adding a device list with all detected devices and a proper sharding.
Adding two functions to get rank and group ID of the given mesh axis and device ID.

Checklist:

[x] I have read and followed the contributing guidelines
[x] The functionality is complete
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Hi @mingxu1067, do you have documentation on how group and size are defined here? It seems they follow some rules, but I'm not understanding them well.

Hi @mingxu1067, do you have documentation on how group and size are defined here? It seems they follow some rules, but I'm not understanding them well.

I followed the MPI concept to design the functionalities of group and rank. In short, rank is the local ID of devices in the given axis, that is to specify which the part of the device belongs to in the axis. For example, if we have Mesh={'TP': 8}, then rank of TP of GPU-0 is 0. Similarly, GPU-1 is 1 and -2 is 2. group is to specify which GPUs are in the same group to perform communications. For example, if we have Mesh={'DP':2, TP:'4'}, then GPU 0-3 is in the same TP group to perform AllReduce. Similarly,  GPU 4-7 is in the same TP group to perform AllReduce.

/te-ci jax

As @zlsh80826's suggestion, jax.lax.axis_index() might be a in-built solution to obtain rank. Testing.


Play Button?

So I'm coming to this project after using Split play and not keeping up with the project for awhile.  I've downloaded 2.0 Alpha3 and after selecting the number of players and setting up the screen for Borderlands The Pre Sequel I dont see a play button at all. After setting everything up how do I launch and set the magic in motion?
In previous ver of Splitplay there was a play button
Thanks.

This was a bug that I've messed up, but the Release 4 fixes that =)
https://github.com/lucasassislar/nucleuscoop/releases/tag/v2.0-alpha-4


Tailwind styles not applied on gmail

Hi,
Thanks for the work on the Tailwind styles processing!
However, I still have issues to render tailwind styles on gmail with the UnoCSS update.
The generated html seems much cleaner, but as it is still internal and not inline CSS, some of the same issues arise.

Component or Package Name: jsx-email
Component or Package Version: 1.2.0
@jsxp-email/cli Version?:
Operating System (or Browser): macOS
Node Version: 18.16.0
Link to reproduction (⚠ read below):

Here is a simple reproduction: https://stackblitz.com/edit/jsx-email-repro-syfmkd?file=templates%2FReproduction.tsx
The generated HTML is the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

This is our email body text

This is our email body text

which don't render on gmail (and even strip the "class" attribute of the
).
If I simply replace .text-green{color:rgb(74 222 128 / 1); by .text-green{color:rgb(74, 222, 128);, it is correctly rendered.
It is a simple example, the issue is also still the same with ! or [...], for instance:
.\!m-0{margin:0 !important;}
.max-w-\[600px\]{max-width:600px;}
.p-1\.5{padding:0.375rem;}

Nonetheless, these ones are less critical as they can be avoided using production flag as a workaround.

Thanks for looking into this. I'll take a look to see what we can do about how those colors are being written.

We might have to run the css through https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-functional-notation - unocss recently changed to space separation notation and I'm not sure they'll support the commas

Let's see if the unocss guys answer to your question :)
In the meanwhile, indeed, postcss-color-functional-notation works.
I just had to use the production flag and add a class prefix in the uno transformer, otherwise I had some odd classnames generated: .\36 g4h0b{margin-top:0.5rem;}

Let's do a separate issue for the funky prefix/class name so we can track that too

@xsyann PR is up for the commas fix. I'll need another repro for the strange classnames and can tackle that one.


Prefetch and loading Script via URL parameter

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Prefetch and loading Script via URL parameter.
A potential design of this feature will be like:
http://hedgehog-lab.github.io/?auto_run=[TRUE OR FALSE]&your_url=[YOUR_ENCODED_URL]
in which the script will be running automatically when auto_run is set to true, and with a URL of hedgehog script (on Github): https://gist.githubusercontent.com/lidangzzz/2adebd6a771f50e6430a34ec61d928af/raw/1f9add39370b00dfbb3f5d20c8bc203dd09f52c2/my_first_notebook.hss
And user can generate a link to share with teammates/students/collegues in this format:
http://hedgehog-lab.github.io/?auto_run=true&your_url=https%3A%2F%2Fgist.githubusercontent.com%2Flidangzzz%2F2adebd6a771f50e6430a34ec61d928af%2Fraw%2F1f9add39370b00dfbb3f5d20c8bc203dd09f52c2%2Fmy_first_notebook.hss
which allow them to click the URL and execute the whole script immediately, or even embed an  into personal website or project page with a full demo of code and execution results.
Describe alternatives you've considered
No
Additional context
No

ref #71


Bug: Multiple hard-coded initial Admin01.

Make sure that Admin01 is a "singleton" -- only one hard-coded user named Admin01 instead of having multiple versions.

Hey Anthony, I added the Admin01 in Userstore, Admin01 should be only added once (Line 69 of UserStore); do you have any insights what caused the multiple versions? Thanks =)

It looks like an Admin01 user gets added every time the server restarts.


HACKS for in-tree compatibility

xml files are individually xz compressed, instead of tarballed and gzipped
create empty ci_summary.html if it don't exist

3. supposed to be already unique.  this had broken, but is fixed again…

Ah. :) That explains that.


[IMPROVEMENT] Show "Storage Schedulable (File System)" on dashboard page

Is your improvement request related to a feature? Please describe (👍 if you like this request)
Show "Storage Schedulable (File System)" rather than "Storage Schedulable" on dashboard page

Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@derekbit is this for v1 data engine only? It seems we have two data engines now. Would it cause some confusion?

@derekbit is this for v1 data engine only? It seems we have two data engines now. Would it cause some confusion?

It counts the storage shedulable for filesystem-type and block-type disks.
I think Storage Schedulable (File System)/Storage Schedulable (Block) is much clearer than Storage Schedulable /Storage Schedulable (Block). WDYT?


Year Dropdownlist range

How to show years from 1957 to 2017 in year dropdown list

You can set minDate and maxDate in the options. The list displayed has a limit but if you select a very early year it will update again to load more earlier years

Yeah sir. But i want to extend that limit range

Check out the original picker http://www.daterangepicker.com/
We are only porting it to Angular so if you find a way in the documentation it should work in Angular as well


Release Google.Cloud.Dialogflow.V2 version 4.23.0

Changes in this release:
New features

Add options of query_source, search_config, end_user_metadata and exact_search (commit a08e4da)
Expose metadata in AnswerSource (commit a08e4da)
Added support for ALAW encoding (commit b206f21)
Add options of query_source, search_config and context_size (commit b206f21)

Created release for Google.Cloud.Dialogflow.V2-4.23.0


Debugging Morgoth in Kapacitor

Setting the -log-level debug argument in Kapacitor does not work and just gives an error, also if I have my alerts to also log info nothing comes out. Is there some way to see what is going on internally in Morgoth?
var cpu = stream
    |from()
        .measurement('win_cpu')
        .groupBy('host','domain')
    |window()
        .period(5m)
        .every(5m)
        .align()
    |default()
        .field('% Processor Time', 0.0)
  @morgoth()
    .field('% Processor Time')
    .scoreField('anomalyScore')
    .sigma(3.5)

cpu
    |alert()
        .info(lambda: 'anomalyScore' > 0.0)
        .warn(lambda: 'anomalyScore' > 1.0)
        .crit(lambda: 'anomalyScore' > 3.0)
        .log('/tmp/cpu_morgoth.log')

@elvarb Can you share you Kapacitor config for how you setup Morgoth?
What error are you getting?

`[udf]
Configuration for UDFs (User Defined Functions)
[udf.functions]
[udf.functions.morgoth]
prog = "/opt/morgoth/morgoth"
timeout = "10s"
`
This is the config.
I'm getting no errors at all.
when I do kapacitor show cpu_morgoth I get this, so something is happening at least
`DOT:
digraph cpu_morgoth {
graph [throughput="0.00 points/s"];
stream0 [avg_exec_time_ns="0" ];
stream0 -> from1 [processed="3577"];
from1 [avg_exec_time_ns="87.5µs" ];
from1 -> window2 [processed="3577"];
window2 [avg_exec_time_ns="45.85µs" ];
window2 -> default3 [processed="168"];
default3 [avg_exec_time_ns="66.4µs" fields_defaulted="2796" tags_defaulted="0" ];
default3 -> morgoth4 [processed="168"];
morgoth4 [avg_exec_time_ns="156.498µs" ];
morgoth4 -> alert5 [processed="2"];
alert5 [alerts_triggered="0" avg_exec_time_ns="0" crits_triggered="0" infos_triggered="0" oks_triggered="0" warns_triggered="0" ];
}
`

Add the -log-level as an arg to the morgoth command.
[udf]
# Configuration for UDFs (User Defined Functions)
[udf.functions]
    [udf.functions.morgoth]
      prog = "/opt/morgoth/morgoth"
      args = ["-log-level", "debug"]
      timeout = "10s"

Then the logs will show up with the Kapacitor logs.

After letting Kapacitor and morgoth run on a cpu metric for a long long time I got 22 info hits where info was defined as
.info(lambda: TRUE)
Even thousands of events were sent to Morgoth it only returned 22 events as suspicious. The Anomaly score was 0.9 of those events. Is this normal or should Morgoth be sending everything it finds down the chain?
stream0 [avg_exec_time_ns="0" ];
stream0 -> from1 [processed="350"];

from1 [avg_exec_time_ns="6.7µs" ];
from1 -> window2 [processed="350"];

window2 [avg_exec_time_ns="4.7µs" ];
window2 -> default3 [processed="6"];

default3 [avg_exec_time_ns="0" fields_defaulted="177" tags_defaulted="0" ];
default3 -> morgoth4 [processed="6"];

morgoth4 [avg_exec_time_ns="2.8µs" ];
morgoth4 -> alert5 [processed="0"];

alert5 [alerts_triggered="0" avg_exec_time_ns="0" crits_triggered="0" infos_triggered="0" oks_triggered="0" warns_triggered="0" ];

I'm monitoring multiple cpu metrics and this is the debug information in the logs
[cpu_morgoth:morgoth4] 2016/09/05 14:06:04 I!P 2016/09/05 14:06:04 D! *sigma.Sigma anomalous? false support: 0.500000
[cpu_morgoth:morgoth4] 2016/09/05 14:07:04 I!P 2016/09/05 14:07:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:07:04 I!P 2016/09/05 14:07:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:07:04 I!P 2016/09/05 14:07:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:08:04 I!P 2016/09/05 14:08:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:08:04 I!P 2016/09/05 14:08:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:12:04 I!P 2016/09/05 14:12:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:12:04 I!P 2016/09/05 14:12:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:12:04 I!P 2016/09/05 14:12:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:12:04 I!P 2016/09/05 14:12:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:12:04 I!P 2016/09/05 14:12:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:12:04 I!P 2016/09/05 14:12:04 D! *sigma.Sigma anomalous? false support: 0.666667
[cpu_morgoth:morgoth4] 2016/09/05 14:16:04 I!P 2016/09/05 14:16:04 D! *sigma.Sigma anomalous? false support: 1.000000
[cpu_morgoth:morgoth4] 2016/09/05 14:17:04 I!P 2016/09/05 14:17:04 D! *sigma.Sigma anomalous? false support: 1.000000

The timestamps there do not match the pattern of the metrics its processing, so what triggers a debug log write?
What do the numbers mean at the end?

@elvarb Answers to your questions below...

Even thousands of events were sent to Morgoth it only returned 22 events as suspicious. The Anomaly score was 0.9 of those events. Is this normal or should Morgoth be sending everything it finds down the chain?

Morgoth only sends the anomalous events down the chain. You can use join to join the original data back up with the anomalous score if need be. As for only getting 22 events out of thousands that is initially at least a good sign that Morgoth is not spewing false positives ;)

The timestamps there do not match the pattern of the metrics its processing, so what triggers a debug log write?

The timestamps on the logs are from the system time. Kapacitor can process points for any time period. How far off are the timestamps? If you are sending the data in real time then they should be close but may not match up exactly.

What do the numbers mean at the end?

Support is from the Lossy Counting algorithm, it is essentially saying how frequently this kind of window has been seen before. A larger number means it is more frequent aka normal, and a smaller number means it is less frequent and potentially anomalous. The default minimum support is 0.05,  meaning if a window has a support greater than 0.05 it is considered normal otherwise it is anomalous. The support can be interpreted as a percentage and ranges from 0-1. For example  a  minimum support of 0.05 means events less than 5% frequent are anomalous.
The minimum support can be set via the minSupport property:
var cpu = stream
    |from()
        .measurement('win_cpu')
        .groupBy('host','domain')
    |window()
        .period(5m)
        .every(5m)
        .align()
    |default()
        .field('% Processor Time', 0.0)
  @morgoth()
    .field('% Processor Time')
    .scoreField('anomalyScore')
    .sigma(3.5)
    // set minimum support
   .minSupport(0.1)

cpu
    |alert()
        .info(lambda: 'anomalyScore' > 0.0)
        .warn(lambda: 'anomalyScore' > 1.0)
        .crit(lambda: 'anomalyScore' > 3.0)
        .log('/tmp/cpu_morgoth.log')

Hope that helps.

I understand this much better now!
The modified tick script looks like this
var cpu = stream
    |from()
        .measurement('win_cpu')
        .where(lambda: "% Processor Time" >= 0.0)
        .groupBy(time(1m), 'host', 'domain')
    |window()
        .period(5m)
        .every(1m)
    @morgoth()
        .field('% Processor Time')
        .scoreField('anomalyScore')
        .minSupport(0.1)
        .sigma(2.0)

cpu
    |alert()
        .info(lambda: TRUE)
        .warn(lambda: 'anomalyScore' > 1.0)
        .crit(lambda: 'anomalyScore' > 3.0)
        .log('/tmp/cpu_morgoth.log')

The major changes I did was to add a where line to only select data if that metric value is used. The default setting I had before was throwing the detection way off. Also there is a groupby time setting because the metrics are only coming in every minute.
Setting minsupport meant that more would be passed through Morgoth.
The stats now make more sense also
stream0 [avg_exec_time_ns="0" ];
stream0 -> from1 [processed="4289"];

from1 [avg_exec_time_ns="73.125µs" ];
from1 -> window2 [processed="857"];

window2 [avg_exec_time_ns="31.212µs" ];
window2 -> morgoth3 [processed="351"];

morgoth3 [avg_exec_time_ns="278.18µs" ];
morgoth3 -> alert4 [processed="27"];

Next step for me is to write the anomaly score back to InfluxDB so its easier for me to see the relationship between the metrics and the score. Thanks for your help.


Development Environment Setup Documentation

As a new contributor, I want instructions on how to setup a best practice development environment to work on and debug the project code and other assets.
Acceptance Criteria:

[ ] Publish Development Environment Setup Instructions by either

[ ] Adding a section to CONTRIBUTING.md (or asciidoc)
[x] Creating separate document in docs.

https://github.com/anuvu/zot/blob/master/CONTRIBUTING.md
Fixed here ^


Enable ability for user to pass in a list of CBO rules that should be…

… disabled for a context

Codecov Report

Merging #389 (ce978db) into main (f601325) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #389      +/-   ##
==========================================
- Coverage   88.94%   88.91%   -0.03%
==========================================
  Files          68       68
  Lines        3337     3337
  Branches      653      653
==========================================
- Hits         2968     2967       -1
+ Misses        298      295       -3
- Partials       71       75       +4

Impacted Files
Coverage Δ

dask_sql/context.py
100.00% <100.00%> (ø)

dask_sql/_version.py
32.27% <0.00%> (-0.29%)
:arrow_down:

Continue to review full report at Codecov.

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


Unable to highlight text in mWeb or in small window size

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!
https://www.upwork.com/jobs/~01daa81ee3a89e111e

Action Performed:

Navigate to e.cash in mWeb or Web
Try to highlight text in a conversation

Expected Result:
User should be able to highlight text in the conversation.
Actual Result:
User is unable to highlight text in conversation in mWeb and in Web (if the window is small enough to hide the LHN)
Workaround:
N/A
Platform:
Where is this issue occurring?
Web ✔
iOS
Android
Desktop App ✔
Mobile Web ✔
Version Number: 1.0.77-2
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/44479856/125509699-9f1c572a-028a-4604-b92c-2d42b31d1bba.mp4
View all open jobs on Upwork
https://www.upwork.com/jobs/~01daa81ee3a89e111e

From @mallenexpensify https://expensify.slack.com/archives/C01GTK53T8Q/p1626201217178800

Unable to copy specific text in a message on e.cash desktop when width is minimized and LHN is hidden.

Triggered auto assignment to @MariaHCD (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

Triggered auto assignment to @laurenreidexpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

We need to fix the logic that was added to fix the Context Menu on the mobile devices.
It currently blocks the selection for all Smallscreen devices which includes resized browsers on the Web and desktop.
There are three places we are blocking selection.
https://github.com/Expensify/Expensify.cash/blob/bb5ae3e99ca3ea85a0dc7505429981f5756699e0/src/pages/home/report/ReportActionItemFragment.js#L68
https://github.com/Expensify/Expensify.cash/blob/bb5ae3e99ca3ea85a0dc7505429981f5756699e0/src/pages/home/report/ReportActionItem.js#L275
https://github.com/Expensify/Expensify.cash/blob/bb5ae3e99ca3ea85a0dc7505429981f5756699e0/src/components/RenderHTML/index.js#L11
To fix this issue we need to replace
a) the isSmallScreenWidth check with !canUseTouchScreen() || !isSmallScreenWidth for 1 & 3.
b) the isSmallScreenWidth check with this.props.isSmallScreenWidth && canUseTouchScreen() && ControlSelection.block() for 2.

Triggered auto assignment to @iwiznia (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Nice, that sounds good @parasharrajat. @laurenreidexpensify can you hire him?

hired!

Paid 👍🏽


Rebalancing game based on growth rates

Pony Clicker needs to be rebalanced in a more consistent way. In order to achieve this, there must be some way to numerically codify the growth rate of any elementary function. However, this is nontrivial, because growth rates don't work like that - they obey the Big O notation and fall into certain discrete categories based on the mathematical operations involved.
Pony Clicker is predicated on the idea of buying items with ever increasing growth rates, but in order to accurately balance the game, the growth rate increase needs to approximate a smooth curve. There are a few ways to deal with this. If we define 0 as a lower limit and pick some arbitrary higher limit (1 nonnillion?), we can take a finite segment of the growth rate curve. We could either try to measure the curvature of the curve, measure the y-intersect of the curve at our limit, or take the angle of the y-intersect from the vertical (so very fast growth would be near 0 degrees, very slow would be near 45 degrees).
Once we pick some numerical codification of the growth rate, we can map this to a curve and ensure we pick functions that follow some linear or otherwise smooth increase in growth rate. It is crucial that the functions we choose prioritize Friends over Ponies as much as possible. This ensures that it is always to the players advantage to maximize friends, which lets us parameterize ponies in terms of friends (by solving an inverted triangular number relation, which the code does right now). How buildings will be handled is still up for debate - one possible change would be for a building to only be able to benefit from itself and buildings below it. This would make it easier to do a hueristic function on guessing how many buildings the player likely owns at some point.
Once we have growth rates stretching over a known curve, we can more accurately model what the cost curve of each building must be in terms of it's growth rate and the growth rate of the buildings preceeding it. Then an initial cost curve can be chosen such that each new building roughly doubles the SPS when it is first bought (which is what cookie clicker does, or some other curve value can be chosen).
This should allow the progression of the game to be calculated over a per time basis, on the assumption of clicking the pony once per second, which can then be adjusted to fit how long we want the endgame to take, and where we would want to trigger the mirrorpocalypse (see #27 )
Thoughts? Better ideas? Good growth rate classification schemes I don't know about?

I'm super-gung-ho about increasing the pony count drastically and marking specific friendships, and if that's a direction you want to head eventually it will necessitate rebalancing anyway.  I think balancing needs to be considered more long-term than short-term.
Specifically, if you want to add more ponies you have to remove the exponentials and factorials which rely on them.  Exponentials belong as enhancements, which can be limited.  I mentioned this on the other topic.

I think you're going to start running into problems if you increase the pony count and decouple it from friendships, because then it becomes enormously difficult to parameterize. However, we want to encourage more friendships anyway, which means most of the functions that we add should have the friendship component dominate the growth function in the long term.

Pony growth wouldn't be a problem if friendship costs became relativistically cheaper as the number of ponies increased (which is kind of what you just said I think).


Hi,I can’t figure out how to load "the depth completion model trained on ScanNet",or more specific,the "data.pkl"

I use torch.load("the path of pretrained model")
but it says ”_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.“
my pytorch'version is 1.8.1
I want to konw your pytorch'version on save "data.pkl",
Sorry to trouble you，this bug has bothered me for a long time.
I hope you can solve my confusion.
Thanks！！！

Hi, it was trained with pytorch version 1.9.0+cu111
Maybe the information here helps.

@barbararoessle
I had the same problem here. I have tried pytorch version like 1.8.0+cu111, 1.9.0+cu111, 1.10.2+cu111, 1.12.1+cu116, but unfortunately none of these worked. It is very likely that the checkpoint has been corrupted. By the way, I cannot extract the 20211027_092436.tar on Linux platform, but I can extract on Win11, I am not sure what is wrong with the pretrained model downloaded here.
_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.

I load the checkpoint with something like: torch.load("./experiments_denseDepthPriors/20211027_092436/archive/data.pkl").
I have no idea on the way to solve it, I would truly appreciate if some hints are given.


Unable to run in node when using markdown

See https://github.com/PrismJS/prism/commit/2b355c98720b7c4f697200d666ddfdcfc3350dbe#diff-12f505384949e8ade50a6337e923bbe2ac037b951fb003617889a165758b4d3c
This commit and other commit include document, then it makes prism unable to run under node environment.
This is absolutly a breaking change in prismjs, and should be consider as a bug.

Thanks for the report @Mister-Hope! Will fix asap

l

https://github.com/atom-material/atom-material-syntax/issues/46#issue-190180050 #2975


ZIO not supported

Because ZIO has multiple type arguments and Sloth assumes the first one is the return type ZIO cannot work with sloth.
Actually replacing head with last in following would probably solve it:
https://github.com/cornerman/sloth/blob/master/sloth/src/main/scala/internal/Macros.scala#L116
https://github.com/cornerman/sloth/blob/master/sloth/src/main/scala/internal/Macros.scala#L116

Good Point! You are right, it should be enough to just assume the return value in the last type argument - which is also more intuitive.
Can you please try this branch?
libraryDependencies += "com.github.cornerman.sloth" %%% "sloth" % "last-typearg-SNAPSHOT"

@somdoron Were you able to try this out?


Fix #8866 - bump datamodel-codegen

Describe your changes :

Fix #8866
This should allow us to generate definitions with the same name in different json schema files

Type of change :

[x] Bug fix
[x] Improvement
[x] New feature
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation

Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

this breaks sample data. looking

Noticed a change on how the ConnectionOptions and arguments are generated. From
class ConnectionOptions(BaseModel):
    pass

    class Config:
        extra = Extra.allow

to
class ConnectionOptions(BaseModel):
    __root__: Optional[Dict[str, str]] = None

This kind of messes up some connection building we have. Will check with the dev team in case that is expected. If it is, I'll update the logic of the connections on this same PR.
Thanks

ahh this also modifies the componentConfig property used in the workflow. On it


The updated video looks good

I have to get back when I have a fresh windows installed on a machine to try out Visual Studio 2019 on its own, without Android Studio and the Android Emulators that comes with it.

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

ID: b4445585-af8f-09d3-5d35-762c3aac187b
Version Independent ID: fa9263db-60d6-eb98-eb74-842351ba5387
Content: Build your first Xamarin.Forms app - Xamarin
Content Source: docs/get-started/first-app/index.md
Product: xamarin
Technology: xamarin-forms
GitHub Login: @conceptdev
Microsoft Alias: crdun

Thanks @Darlanio, hope it goes well!


Configure Pylint and Pytest on each push to ingestor branch

Fixed with https://github.com/airavata-courses/dexlab/commit/5792a97dc239894ec6a8daa9e712082c30a7b96f


Implement resume and suspend on OfflineAudioContext

https://www.w3.org/TR/webaudio/#OfflineAudioContext-methods
Notice the suspend function has the rather odd feature that you can specify the suspend time. We can implement that (later) as an addiditonal method suspend_at

[disclaimer] Not related to OfflineAudioContext and really not sure about that but,

I wonder if we shouldn't have the context suspended by default.
From what I understand from the spec, that's not mandatory (https://webaudio.github.io/web-audio-api/#allowed-to-start) because the context can be somehow allowed to start (mainly for not breaking early demos and web page I think). But I'm not sure that gives a good hint when you are used to the JS API, where you have to do (except in some magical conditions I've never understood and that may differ between browsers):
const context = new AudioContext();
$someButton.addEventListener('click', async () => {
   await context.resume();
   // now it's safe to use the `context`
});

I say that because, I was basically thinking that resume, suspend and close where just not fully implemented or working, when I realized that I didn't need to resume first (and true... I didn't took any time to test anything there :)

Fixed with #412


Differentiate between testing and production release

I am building a maintenance system that should updates builds but hopefully updates versions as well but I noticed the API does not state if that the latest version is still in testing.  if some Identifier could be added, at least in the message or summary of the build stating it's test version.  I will have an option in my program .ini to only warn for new updates but not act, but if this piece of the API response could be added I would appreciate that.

I don't think the PaperMC project even has a concept of "release" versus "testing". If there is, it's impossible to tell from the downloads page. I just only ever see a list of per-commit builds.
I had assumed for quite some time that there was some sort of project discipline or QC to keep new commits from breaking things, but the recent "auto-updaters are strictly forbidden" change seems to suggest otherwise and simultaneously indicate there's a complete lack of interest in addressing that issue.

Yeah, that's totally why I recently added channels and promoted builds.

Auto updaters have been frowned upon for years, nothing has changed in that regard
This is a project which relies upon multiple upstream projects of which don't have a proper lifecycle either, as much as I love the sponge peeps, I also don't feel that there is much of a need to adopt a recommended build setup where you have recommended builds or a "production" style branch and then have a separate branch for pulling stuff into, this is far too much of a volatile environment with changes especially when many times people won't/can't run the RBs due to needing fixes on the dev branch, not to mention the drastic increase of dev time that would be required for this given the project setup, etc
larger patches are generally tested through the release of test builds, smaller patches are often tested by the devs, etc this may change in the future towards something more tenable, but will probably be a post hardfork thing if ever

Yeah, that's totally why I recently added channels and promoted builds.

Mea culpa, apparently. Is there anywhere else this could be found outside of that commit log? I was literally searching for weeks for something exactly like this and couldn't find it, so I'm kind of wondering if this is a "documentation needs a fix" issue or a "Viqsi can't see her hand in front of her face" issue.

only velocity currently uses this mechanism given the issues above


How do I use the latest upstream version?

I would like to use this wrapper to simplify the installation of dependencies in my GitHub workflows. In one of my projects, actionlint is the only dependency that isn't a Python package.
The latest version of your wrapper is 1.6.24.
The latest version of the upstream project is 1.6.25.
It seems a trivial difference now, but that gap will grow. Without a clear way for me to get the latest upstream version I'm hesitant to depend on this wrapper.

Well, if you are doing something production, then it is not a great idea to depend on this repo.
This is my first time releasing the package, and the forked code is not obvious, although I managed to develop nice automation for it.
I just updated it to newest version.
I just updated readme and documented a bit more.
The best way would be to probably automate it fully...
What would you like to see in this repo?

I would love to move away from setup.py but learning how to extend build system in pyproject.toml is quite involving.

Thanks! I will try it now to replace the "Install actionlint" step of my workflow with your pre-commit hook.
My own pre-commit hook looks like this:
      - id: actionlint
        name: actionlint
        entry: actionlint
        types: [yaml]
        files: .github/workflows
        language: system

And I install actionlint like this:
      - name: Install actionlint
        uses<EMAIL_ADDRESS>        with:
          binary: actionlint
          version: 1.6.25
          download_url: "https://github.com/rhysd/actionlint/releases/download/v${version}/actionlint_${version}_linux_amd64.tar.gz"
          tarball_binary_path: "${binary}"
          smoke_test: "${binary} --version"

      - name: Install Python dependencies
        run: poetry install --no-interaction

      - name: Run pre-commit checks
        run: poetry run pre-commit run --all-files --verbose

The best way would be to probably automate it fully...

You could run your auto-update script on a schedule and run the rest of the steps if it makes changes.

would love to move away from setup.py but learning how to extend build system in pyproject.toml is quite involving.

Have you tried Poetry? It generates a pyproject.toml file and can manage the dependencies parts automatically.

using pre-commit you should be able to skip the giantswarm/install-binary-action, but I am too tired to to test it today, I've done this scrpt a while back.
The auto update script is only partial automation of process, i would still  need to write and action to reelase a package, we will see.
I know the pyproject. But the hard part is customizing build system: see #2 (just created)

Yes, that's exactly what I've just done: https://github.com/iainelder/aws-org-tree/commit/8ce7b501eed0aa5ebcac65796928ffefde3d9d97
Good luck with the release automation! My own workflow automates a GitHub release and a publication to PyPI. You might be able to to reuse part of it.
Thank you for your help.


VAC BANNED - DETECTED

DO NOT USE internal version, wait for external version, got a VAC BAN after 1/2 Game.
EDIT: they pushed an update 10 hours ago
EDIT2: looks like its an Developer VAC BAN https://support.steampowered.com/kb_article.php?ref=6899-IOSK-9514&l=english

Hi, sorry but im new to modding, what do you mean by external?

nope its not true i played yet for 4 hours and nothing happens.

the game isn't vac protected retard

Just as an update for anyone looking through closed issues, the game itself does not currently have an anti-cheat and it is not detected. OP is talking about a manual Developer Ban issued by the development team of Fall Guys, this may only happen if you were reported for cheating and caught afterwards.


LT instance for Option is unused/not useful to have at this kind of base level.

Prerequisites

[X] Put an X between the brackets on this line if you have done all of the following:

Check that your issue is not already filed.
Reduce the issue to a minimal, self-contained, reproducible test case. Avoid dependencies to mathlib4 or std4.

Description
The file Init/Data/Option/Basic.lean contains a function Option.lt, an instance of LT for Option A inherited from a LT A, and a decidability instance for that relation.
The definition that it uses is one which sets none < some a and some a < some b just when a < b. This is a perfectly sane definition, but making this choice at such a low-level seems counter-intuitive to me. Different libraries might want to choose different definitions for LT on Option. Back in Mathlib 4 land, WitBot A and WithTop A are synonyms for Option that are based off this ordering and the obvious dual one. The base Option type having a LT instance as a core feature of lean4 - when as far as I can see this isn't used anywhere - removes the ability of downstream projects like std4 or mathlib4 to make different choices.
Context
I was doing some work in Mathlib4 and I used < in some statements about Option, It worked (because the instance is defined), and some stuff is RFL-true and so it wasn't until substantially later that I realised that this instance wasn't particular doing what I had expected and didn't have any nice API. I discussed this in a Zulip thread here: https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there-code-for-X.3F/topic/Preorder.20on.20Option
I think downstream in Mathlib4 (or maybe std4 but I am not as sure how to contribute to that) we should add an instance, but in the context of this project I think it should simply be removed - it isn't useful and it creates footguns like what happened to me.
Steps to Reproduce

Write down the following code:

example {A : Type*} [LT A] {a : A} : (none : Option A) < some a := sorry`

The code is trivially true (I think trivial works as a proof through I am not sure.)
And this typechecks.

Expected behavior:
I would expect the default behaviour of LT on Option to be either:
a) LT is not defined, and so this shouldn't typecheck/synthesise a correct instance.
b) An instance is defined, and in it, this is not a true statement. Why should none < some a be true, and some a < none not? You don't have to make a choice.
Actual behavior:
A choice is made: this statement is true.
Versions
4.30
Windows 11 running Ubuntu WSL2
Additional Information
None.
Impact
Add :+1: to issues you consider important. If others are impacted by this issue, please ask them to add :+1: to it.

I have created a draft PR here, mainly to experiment and see if this breaks anything upstream by just removing it. That is #3102.

It seems that lt was turned into an instance in https://github.com/leanprover/lean4/commit/75a67ceb295a46a0125862e223566f7f5f6e27a4.

Indeed, in a sense I'm proposing directly reverting that commit.

Happily, #3102 seems to not break anything! So we lose literally nothing by doing this. There is a question of where an appropriate place for Option instances then is - my gut says that it should be in std4 for the basic instances and mathlib4 for anything in the actual order hierarchy? But ideally this would be resolved first.

Indeed, in a sense I'm proposing directly reverting that commit.

I don't think you are; reverting that commit would mean downgrading the instance to a def. You're proposing the other reasonable thing of deleting it entirely!

I'm personally in favour. It's great to see that the Mathlib CI shows this isn't being used. I agree this is the sort of thing where the choice should be made via instances for synonyms. (Perhaps someone needs an IncomparableNone synonym? Great!)

NB that there is more discussion in https://github.com/leanprover/lean4/pull/3102#issuecomment-1865876110.

Also in the Zulip thread linked above, which is probably a better place than any individual PR for hashing out details.

(While this issue pertains only to core, there's discussions that span the up-downstream spectrum.)

Also in the Zulip thread linked above, which is probably a better place than any individual PR for hashing out details.

Thanks for the pointer. I see that Mario is arguing as I do, so I think it’s well taken care of :)

I agree, but Zulip is probably the appropriate place for discussing the latter too.


DM will report error when upstream MySQL has no data change

What did you do?
When upstream has no data and enables GTID, its binlog position is at (mysql-bin.000001, 154) and has empty GTID set.
Then if user starts an all mode task...
[2022/09/09 06:17:52.285 +00:00] [INFO] [subtask.go:371] ["unit process returned"] [subtask=test-infra] [unit=Load] [stage=Finished] [status="{\"progress\":\"100.00 %\",\"metaBinlog\":\"(mysql-bin.000001, 154)\"}"]
[2022/09/09 06:17:52.285 +00:00] [INFO] [subtask.go:382] ["switching to next unit"] [subtask=test-infra] [unit=Load]
...
[2022/09/09 06:17:52.734 +00:00] [WARN] [syncer.go:3811] ["fail to get gtids for global location"] [task=test-infra] [unit="binlog replication"] [pos="position: (mysql-bin.000001, 154), gtid-set: "] [error="invalid position (mysql-bin.000001, 154) or GTID not enabled in upstream"] [errorVerbose="invalid position (mysql-bin.000001, 154) or GTID not enabled in upstream\ngithub.com/pingcap/tiflow/dm/pkg/binlog/reader.GetGTIDsForPosFromStreamer\n\tgithub.com/pingcap/tiflow/dm/pkg/binlog/reader/util.go:129\ngithub.com/pingcap/tiflow/dm/syncer.(*Syncer).adjustGlobalPointGTID\n\tgithub.com/pingcap/tiflow/dm/syncer/syncer.go:3809\ngithub.com/pingcap/tiflow/dm/syncer.(*Syncer).Run\n\tgithub.com/pingcap/tiflow/dm/syncer/syncer.go:1612\ngithub.com/pingcap/tiflow/dm/syncer.(*Syncer).Process\n\tgithub.com/pingcap/tiflow/dm/syncer/syncer.go:697\nruntime.goexit\n\truntime/asm_amd64.s:1571"]
[2022/09/09 06:17:52.736 +00:00] [INFO] [syncer.go:1501] ["received ungraceful exit ctx, exit now"] [task=test-infra] [unit="binlog replication"]
[2022/09/09 06:17:52.737 +00:00] [INFO] [subtask.go:371] ["unit process returned"] [subtask=test-infra] [unit=Sync] [stage=Paused] [status="{\"syncerBinlog\":\"(mysql-bin.000001, 154)\",\"binlogType\":\"remote\"}"]
[2022/09/09 06:17:52.737 +00:00] [ERROR] [subtask.go:392] ["unit process error"] [subtask=test-infra] [unit=Sync] ["error information"="ErrCode:50000 ErrClass:\"not-set\" ErrScope:\"not-set\" ErrLevel:\"high\" Message:\"invalid position (mysql-bin.000001, 154) or GTID not enabled in upstream\" "]

What did you expect to see?
No response
What did you see instead?
No response
Versions of the cluster
master
current status of DM cluster (execute query-status <task-name> in dmctl)
(paste current status of DM cluster here)

workaround: insert some data to upstream before starting dm task.

/found automation


Sidekiq fails to start when RAILS_ENV=production is set after upgrading to Rails 7 and using turbo-rails-1.0.0

Edit: The scope of this issue has changed to affect every Active Job running through Sidekiq and it also affects all environments. The first reply to this issue has more details. I left the original issue here for extra context which is still worth reading.
Sidekiq starts successfully with RAILS_ENV=development, but fails to start with RAILS_ENV=production.
Here's the stack trace:
worker_1    | 2021-12-18T15:43:09.829Z pid=1 tid=2ut INFO: Booting Sidekiq 6.3.1 with redis options {:url=>"redis://redis:6379/1"}
worker_1    | /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:95:in `require': cannot load such file -- /usr/local/bundle/gems/turbo-rails-1.0.0/app/channels/turbo/streams (LoadError)
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:95:in `const_get'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:95:in `cget'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:239:in `block (2 levels) in eager_load'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:26:in `block in ls'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:18:in `each_child'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader/helpers.rb:18:in `ls'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:227:in `block in eager_load'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:212:in `synchronize'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:212:in `eager_load'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:312:in `each'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/loader.rb:312:in `eager_load_all'
worker_1    |   from /usr/local/bundle/gems/railties-7.0.0/lib/rails/application/finisher.rb:79:in `block in <module:Finisher>'
worker_1    |   from /usr/local/bundle/gems/railties-7.0.0/lib/rails/initializable.rb:32:in `instance_exec'
worker_1    |   from /usr/local/bundle/gems/railties-7.0.0/lib/rails/initializable.rb:32:in `run'
worker_1    |   from /usr/local/bundle/gems/railties-7.0.0/lib/rails/initializable.rb:61:in `block in run_initializers'
worker_1    |   from /usr/local/lib/ruby/3.0.0/tsort.rb:228:in `block in tsort_each'
worker_1    |   from /usr/local/lib/ruby/3.0.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
worker_1    |   from /usr/local/lib/ruby/3.0.0/tsort.rb:431:in `each_strongly_connected_component_from'
worker_1    |   from /usr/local/lib/ruby/3.0.0/tsort.rb:349:in `block in each_strongly_connected_component'
worker_1    |   from /usr/local/lib/ruby/3.0.0/tsort.rb:347:in `each'
worker_1    |   from /usr/local/lib/ruby/3.0.0/tsort.rb:347:in `call'
worker_1    |   from /usr/local/lib/ruby/3.0.0/tsort.rb:347:in `each_strongly_connected_component'
worker_1    |   from /usr/local/lib/ruby/3.0.0/tsort.rb:226:in `tsort_each'
worker_1    |   from /usr/local/lib/ruby/3.0.0/tsort.rb:205:in `tsort_each'
worker_1    |   from /usr/local/bundle/gems/railties-7.0.0/lib/rails/initializable.rb:60:in `run_initializers'
worker_1    |   from /usr/local/bundle/gems/railties-7.0.0/lib/rails/application.rb:369:in `initialize!'
worker_1    |   from /app/config/environment.rb:5:in `<top (required)>'
worker_1    |   from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:148:in `require'
worker_1    |   from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:148:in `require'
worker_1    |   from /usr/local/bundle/gems/zeitwerk-2.5.1/lib/zeitwerk/kernel.rb:35:in `require'
worker_1    |   from /usr/local/bundle/gems/sidekiq-6.3.1/lib/sidekiq/cli.rb:273:in `boot_application'
worker_1    |   from /usr/local/bundle/gems/sidekiq-6.3.1/lib/sidekiq/cli.rb:37:in `run'
worker_1    |   from /usr/local/bundle/gems/sidekiq-6.3.1/bin/sidekiq:31:in `<top (required)>'
worker_1    |   from /usr/local/bundle/bin/sidekiq:25:in `load'
worker_1    |   from /usr/local/bundle/bin/sidekiq:25:in `<main>'
hellorails_worker_1 exited with code 1

If I exec into the worker container I'm able to stat /usr/local/bundle/gems/turbo-rails-1.0.0/app/channels/turbo/streams which returns back that the directory does exist as seen below:
ruby@97b98bc1dd6b:/app$ stat /usr/local/bundle/gems/turbo-rails-1.0.0/app/channels/turbo/streams
  File: /usr/local/bundle/gems/turbo-rails-1.0.0/app/channels/turbo/streams
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: bdh/189d        Inode: 290588      Links: 2
Access: (0755/drwxr-xr-x)  Uid: ( 1000/    ruby)   Gid: ( 1000/    ruby)
Access: 2021-12-18 15:26:58.040000000 +0000
Modify: 2021-12-18 15:26:29.950000000 +0000
Change: 2021-12-18 15:26:55.900000000 +0000
 Birth: 2021-12-18 15:26:55.900000000 +0000

What's weird is the error mentions cannot load such file but that path it not a file, it's a directory on disk.
What's also interesting is the web, worker and cable containers that run all use an identical Dockerfile and the only difference is the command that gets run (such as puma or sidekiq). Both the web and cable containers come up fine. It's only worker that fails.
Running the same stat command in the web and cable containers produce the same output.

The scope of this issue has changed since its creation.
It's now an issue with RAILS_ENV=development but only when a job is about to execute. Executing a Sidekiq job will throw this error:
worker_1    | 2021-12-18T18:54:20.325Z pid=1 tid=d35 WARN: LoadError: cannot load such file -- /usr/local/bundle/gems/turbo-rails-1.0.0/app/channels/turbo/streams
Perhaps this has to do with lazy loading modules in development vs pre-loading modules in production? At least it happens in both environments now. Question is whether this is a turbo-rails, sidekiq, Rails 7 or a user issue. From my end all I did was execute a default Rails 7 mailer through Active Job using deliver_later.

Same problem here. Any known workaround?

I think the best we can hope for now is to mention it's happening in https://github.com/hotwired/turbo-rails/issues/285 and monitor that issue until a resolution is found. Attempting to fix this one is above my pay grade.

Same problem w/ an older application I'm trying to move to Rails7.
I did enable the Rails autoloader log and I can see it 'autovivifying' one of my dirs  under sidekiq's docker container.
But, I'm also seeing the exact symptom
2021-12-27T14:50:46.829Z pid=1 tid=1uy1 WARN: LoadError: cannot load such file -- /app/app/blah/blah2
where the mysterious thing is that the above is a dir and not a file, just like the original post.
I did spot this, this morning - thinking it may have resolved things
https://github.com/fxn/zeitwerk/issues/198
But, even after getting zeitwerk 2.5.2 installed, it does not resolve the symptom for me (even if I turn off bootsnap in my case).

I also upgraded zeitwerk to 2.5.2 but I'm seeing the same issue as with 2.5.1. Thanks for linking that.

This is currently fixed on the main branch based on https://github.com/nickjj/docker-rails-example/commit/ed7e99c52ab35e4d0143373342bafb14a8183319.
I'm still going to leave this open until it's properly fixed in the related repo(s) since the current fix might be a workaround, although it feels completely reasonable to do. I'm not sure what would cause needing to do this now but not in previous versions of Rails or Zeitwerk.

The root cause has been found by the creator of Zeitwerk. He wrote up a great explanation of everything here: https://github.com/hotwired/turbo-rails/issues/285#issuecomment-1005528129
The TL;DR is it's not a bug, it's more so a documentation issue with Bundler and that using the bundle exec sidekiq approach as per the commit in the previous comment is the way to go regardless of it working previously.
Rails also been patched for 7.0.1 which will delay loading Zeitwork just a little bit to make things work how they did before but technically you should use bundle exec. In this repo's case the implications of not using bundle exec never came up because we're always running Sidekiq that's a part of this Gemfile.


added new sample script to export channel conversations to html file

This PowerShell script is designed to export the conversations from a Microsoft Teams channel into an HTML file that's well-structured and easily readable. The HTML file generated includes an expand-collapse feature based on Teams and channels, making it convenient to navigate.

Hey @siddharth-vaghasia, awesome script sample, thank you, this will be live shortly 🤩🎉😍


Write action_parser, to do something after a parse that doesn't involve a transformation

With accompanying act or action modifier (naming tbd)

If the function can be invoked with *std::move(result), then invoke it with the argument
Otherwise if the function can be invoked with no arguments, then do that

This parser may end up not being useful, given that this is an expression template library. There may not be a reasonable use case for it, it's still to be determined.

I'm not going to write this parser unless I see a reason it's needed. filter can just be used for the same purpose


Initial spec file

Initial spec file for mariner-installer.  It purposely does not package the hooks/ and modules/ directories right now, as there is nothing in there we need yet.  But it's nice to see how they will go in once something is added there.
Signed-off-by: Travis Rhoden<EMAIL_ADDRESS>

LGTM! we can iterate later if needed


Pre-prod deployment

related to #1475

[ ] define required versions of repo to the destination env.

master...

[ ] apply the required versions of repo to the destination env.

[ ] ehealth.api
[ ] prm.api
[ ] mpi.api
[ ] annon
[ ] ael_api
[ ] digital_signature_api
[ ] man_api
[ ] mithril_api
[ ] ops
[ ] uaddresses
[ ] otp_verification_api
[ ] nhs.auth.web
[ ] nhs.portal.web - TBD
[ ] nhs.admin.web -TBD
- [ ] man.web
[ ] uaddresses.web - TBD

[ ] IL.dictionaries - add/update if any. IDs should be the same.
[ ] PRM.global_parameters - add/update if any. IDs should be the same
[ ] uaddresses - add/update records if any. IDs should be the same
[ ] GW.apis - migrate config

[ ] GW.apis - Exclude temp dev routes

[ ] GW.plugins
[ ] Mithril config

[ ] client_types - add/update if any changes.
[ ] roles - add/update if any changes.
[ ] user_roles - for admin fronts
[ ] clients for mithril.admin, nhs.admin, uaddresses.admin
[ ] tokens - generate new tokens with new scopes in case if new endpoints are released
[ ] approvals - generate or copy MIS approvals

[ ] man templates - add/update if any. IDs should be the same
[ ] DS - migrate certificates - no need

Release notes: (TBD)

reimbursement

bug fixing and improvements

fraud db replication
Ehealth 1251 parties verifications (#1353)
1250 divisions verifications (#1347)
fix LE verifications: addresees, phones(#1249)
Ehealth 1233 Declaration Verification: arrays, addresses, phones (#1301)
Add Refresh secret API
В getDeclarationByID не повертаються дані по опікуну і emergency contact (#1208)
check is user blacklisted on new employee_request creation (#1391)
MIS authorization (#214)
make region optional in List Of Districts By Search Params #1330
[Declaration request] Replace Gandalf call with hardcoded logic #1311
wrong db migration for il.declaration_requests field :printout_content #1148
OTP SMS delivery metrics #1333
Update "updated_at" after auto approve and auto terminate #1288
Capitation Report Changes #1302
[Capitation report] Exclude inactive red msps from report #1443
В getDeclarationByID не повертаються дані по опікуну і emergency contact #1208
Review and create db indexes #1089
make documents a unique list on create declaration (#1411) - hotfix
add logging to all microservices calls (#1298)
removed danger default values from config (#1007)
HTTP 500 responses on prod #1436
NHS admin

Block/Unblock users NHS admin portal #1273
[Admin] Reset MPI authorization method via admin console #72
preprod admin portal is not showing attachments #1365

UAddressesd

new pagination

Mithrill admin

Block/Unblock MSPs Mithril admin portal #1276
new pagination

Uaddresses admin

new pagination applied

GW

save logs to google stackdriver instead of db

auth

auth page returns all dictionaries in js element #1326

As a one-time action, Swift storage must be configured. See https://github.com/edenlabllc/ehealth.api/issues/1309#issuecomment-343883994


Same glyph displays both properly and improperly in the prompt

Describe Your Issue
I have a custom prompt set up to display time and date. Time is preceded by uf017 (clock) glyph and date is preceded by uf073 (calendar) glyph. The calendar glyph displays just fine, moreover, the built in clock glyph displays fine but the uf017 glyph displays improperly.
echo "\uf017" prints the proper clock glyph

Have you tried to debug or fix it?
I read the troubleshooting guide and tried some fixes suggested there but nothing has helped.
Environment Information
zsh 5.0.2 (armv7hl-redhat-linux-gnu)
Oh-My-ZSH
Installed by cloning the repo
P9K v 0.6.6
iTerm2 ssh'ed into Linux
Issues with Fonts & Icons
nerdfont-complete
font-issues.zsh:
https://gist.github.com/ruslaniv/1bbcd50b5a10cb5d3dea7e9b54afeb97
$ get_icon_names looks correct? - Yes
zshrc:
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_TIME_FORMAT="%D{\uF017 %H:%M \uf073 %d.%m.%y}"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context os_icon newline dir dir_writable vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs time)
POWERLEVEL9K_MODE='nerdfont-complete'
#POWERLEVEL9K_TIME_ICON=""

There are both date and time segments... You could use POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs time date_joined) to do the same and just set each segments separate icon using $'\uF017' format.

You mean something like this?

POWERLEVEL9K_TIME_FORMAT="%D{%H:%M}"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context os_icon newline dir dir_writable vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs time date_joined)
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_TIME_ICON="\uf017"
But then how can I move the icons to be in front of the time and date respectively?
And why does the clock glyph displays fine this way but when I use it as:
POWERLEVEL9K_TIME_FORMAT="%D{\uf017 %H:%M}"
it does not work?


Reset cloudflare cache when rounds open/close

@frjo has lowered the cache times and this seems to be fixed the issue for now.


make guru work on windows (iff files are on default drive)

In response to discussion on issue #218

Thanks for the pr!
The expected format is file:line:col. Instead of checking for windows-nt and something that looks like a widows drive name can we pop the last two values off the list and then join any remaining values on ':'?

guru is unmaintained and doesn't support Go modules. The way forward is to use gopls instead. We won't tinker with the existing implementation.


LiveData.delay

Implement delayStart operator for LiveData.
val delayedLiveData = liveData.delayStart(timeInMillis = 1000L)

val delayedLiveData = liveData.delayStart(timeInMillis = 1000L, context = viewModelScope.coroutineContext)

This won't guarantee the order, but it's probably a good start:
fun <T> LiveData<T>.delay(
    timeInMillis: Long,
    context: CoroutineContext = EmptyCoroutineContext
): LiveData<T> {
    val result = MediatorLiveData<T>()
    result.addSource(this) { value ->
        val source = liveData(context) {
            delay(timeInMillis)
            emit(value)
            result.removeSource(source)
        }
        result.addSource(source) { x -> result.value = x }
    }
    return result
}

With LiveData, which only remembers latest emitted value, delaying each element makes no sense. It is probably more reasonable to use throttleWithTimeout() instead.
However, it might be a good idea to delay start of emitting values, i.e. throttle, but only for first element(s).

Implemented: 3cc62cbf


Allow overriding ActiveCameraData

Hey! Fantastic library. I love the ease of setup, and it works great by default in most environments.
The one thing I'd like to request is that you allow some way to override ActiveCameraData on a specific camera, to change the circumstances under which a given camera receives input. I have a setup where I have a main 3d camera that renders to a texture, and then a 2d camera downscales that and sends it to the main window's render texture. As is, I can't get the library to move the main camera, and I also can't overwrite the ActiveCameraData resource, because it gets rewritten when input is detected.
If I could set something like CameraDataOverride as a struct on my 3d camera to tell the library that it uses the main window, with such and such window dimensions, and this is the size of the viewport, that would be awesome.
Again, great library. I use it for 3 other projects as-is with no issues. Also, optionally, if you give some direction as to how this should be implemented, I can submit a PR.

Hi! Thanks for the praise, and the suggestion!
To confirm my understanding, it sounds like you want a way to tell a particular instance of PanOrbitCamera to always read input events from a particular viewport/window, no matter what. This would break the built in multiple viewport/window support most likely, but it sounds like you don't care about that. Is that correct?
Perhaps I could allow something like CameraDataOverride as you describe, which when used totally disables the built in ActiveCameraData code, giving full control over which viewport/window is used for input and when. I'll start looking into possible solutions.

Hello again. I've added a branch that hopefully solves your issue: https://github.com/Plonq/bevy_panorbit_camera/tree/manual-input-override
Check out the manual_override example and ActiveCameraData documentation to see how it works. Please let me know if this works for your use case.

I'll check it out, thanks!

That works perfectly! For reference, this is a compatibility module I built to use it.

use bevy::prelude::*;
use bevy_panorbit_camera::{PanOrbitCamera, ActiveCameraData};
use super::*;

pub struct LowResPanOrbitCompatPlugin;

impl Plugin for LowResPanOrbitCompatPlugin {
  fn build(&self, app: &mut App) {
    app
      .add_systems(Update, maintain_active_data.run_if(window_size_changed));
  }
}

fn maintain_active_data(
  camera_q: Query<(Entity, &LowResCamera), With<PanOrbitCamera>>,
  window_q: Query<&Window, With<PrimaryWindow>>,
  mut active_camera_data: ResMut<ActiveCameraData>,
) {
  if let Some((entity, lowres_camera)) = camera_q.iter().next() {
    let window = window_q.single();

    let texture_size = calculate_texture_resolution(window.width(), window.height(), lowres_camera.pixel_size);

    active_camera_data.set_if_neq(ActiveCameraData {
      entity: Some(entity),
      viewport_size: Some(texture_size),
      window_size: Some(Vec2::new(window.width(), window.height())),
      manual: true,
    });
  }
}


NIFI-5929 Support for IBM MQ multi-instance queue managers

Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically master)?

[x] Is your initial contribution a single, squashed commit?

For code changes:

[x] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[x] Have you written or updated unit tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[x] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.

Hello, super PR and of course useful, but can we have a status on it ? Since last build was 6 month ago ...

Hello, super PR and of course useful, but can we have a status on it ? Since last build was 6 month ago ...

Status:

Code done
Maintainers requested an integration test
Integration test will be performed as soon as possible, very likely tomorrow

@ijokarumawak @volvicoasis @joewitt
Integration test have been performed.
The tests was performed using Docker and latest version of IBM MQ and patched Apache NiFi image. The NiFi image was patched with JMS NAR bundle files compiled from code in pull request. Furthermore client library IBM MQ classes for Java was added into the NiFi image.
Two test cases was tested. In both cases the objective was to test automatic failover/reconnection. This feature/behaviour is further explained here.
In both cases following steps was performed:

Put some messages into a MQ message queue.
Configure JMSConnectionFactoryProvider controller service with Broker URI containing list of two brokers (called queue managers in MQ terminology).
Run ConsumeJMS processor using JMSConnectionFactoryProvider from previous step

In the first test case the first broker in the list is unreachable, the second broker is running and reachable.
In the second test case the first broker is running and reachable, the second broker in the list is unreachable.
The expected outcome in both test cases is ConsumeJMS outputting 1 or more flowfiles. The actual test outcome was as expected, both tests passed.

Thank you @vkcelik for sharing the test results! And sorry for the late response. LGTM +1. Merged to master. We appreciate your patience and great contribution!


Create implementation (#291)

This PR is the implementation of Create as proposed in #291.

Closing because #291 has been closed.