Support for ruby 2.2.0

Hi, just a heads up, but by accident I noticed that you don't yet support ruby 2.2.0
https://travis-ci.org/rgevaert/puppet-saslauthd/jobs/135814997

Puppet don't support 2.2.0 for puppet 3.x.
https://docs.puppet.com/guides/platforms.html#ruby-versions
I'm going to add more rubies to our travis testing anyway but we're unlikely to support 2.2.0
thanks for the report


Adding feedback from Alejandro on instructions

Adding more details to pyrrha-simulator section. The other changes are from formatting the markdown file locally.
Signed-off-by: Upkar Lidder<EMAIL_ADDRESS>Describe at a high level the solution you're providing
A clear and concise description of what you changed.
Is this a patch, a minor version change, or a major version change
Patch, minor, or major.
Is this related to an open issue?
Please provide the link.
Additional context
Add any other technical detail or considerations here.

Thank you @Aquijada52!


IDVA6-1343 Hide Add User Button

Conditional statement to check if a user is an owner or admin then show add user button and manage users, if the user is a standard user then show view user and hide add user button.
Before

After

CI: No security warnings found


invoke update failing with error

Please verify that this bug has NOT been raised before.

[X] I checked and didn't find a similar issue

Describe the bug*
I'm running a version that is a few weeks old. Did a sync to github and trying to invoke update and getting a error:
inventree@inventree:~/src$ invoke update
Traceback (most recent call last):
  File "/usr/bin/invoke", line 11, in <module>
    load_entry_point('invoke==1.4.1', 'console_scripts', 'invoke')()
  File "/usr/lib/python3/dist-packages/invoke/program.py", line 373, in run
    self.parse_collection()
  File "/usr/lib/python3/dist-packages/invoke/program.py", line 465, in parse_collection
    self.load_collection()
  File "/usr/lib/python3/dist-packages/invoke/program.py", line 696, in load_collection
    module, parent = loader.load(coll_name)
  File "/usr/lib/python3/dist-packages/invoke/loader.py", line 76, in load
    module = imp.load_module(name, fd, path, desc)
  File "/usr/lib/python3.10/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.10/imp.py", line 172, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 719, in _load
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/inventree/src/tasks.py", line 326, in <module>
    def update(c, skip_backup=False, no_frontend: bool = False, frontend: bool = False):
  File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 338, in inner
    obj = klass(
  File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 76, in __init__
    self.positional = self.fill_implicit_positionals(positional)
  File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 167, in fill_implicit_positionals
    args, spec_dict = self.argspec(self.body)
  File "/usr/lib/python3/dist-packages/invoke/tasks.py", line 153, in argspec
    spec = inspect.getargspec(func)
  File "/usr/lib/python3.10/inspect.py", line 1245, in getargspec
    raise ValueError("Function has keyword-only parameters or annotations"
ValueError: Function has keyword-only parameters or annotations, use inspect.signature() API which can support them

Steps to Reproduce

git pull origin master

inventree@inventree:~/src$ git log -1
commit 4e0f22aa00d92638ef69372d4afe4b9ad661301a (HEAD -> master, origin/master, origin/HEAD)
Run invoke update
Expected behaviour
invoke update should upgrade the version.
Deployment Method

[ ] Docker
[X] Bare metal

Version Information
Version Information:
InvenTree-Version: 0.13.0 dev
Django Version: 3.2.20
Commit Hash: 370021b
Commit Date: 15/07/2023
Commit Branch: master
Database: mysql
Debug-Mode: True
Deployed using Docker: False
Platform: Linux-5.15.0-76-generic-x86_64-with-glibc2.35
Installer: GIT
Active plugins: False
Please verify if you can reproduce this bug on the demo site.

[ ] I can reproduce this bug on the demo site.

Relevant log output
No response

Hello @StormTrooper ,
which version of invoke do you have installed? You could check that via pip freeze | grep invoke. Maybe this is related: https://github.com/pyinvoke/invoke/issues/357

inventree@inventree:~/src$ pip freeze | grep invoke
invoke==1.4.1

Thanks, will look into the link

Looks like invoke 1.4.1 is the latest on Ubuntu 23.04
Downloaded 2.2.0 from source and manually installed. This has fixed the issue.

I've run into the same issue and I can confirm that
pip install --upgrade invoke
solved the issue for me.


ci: add a ecosystem-ci-trigger workflow

/ecosystem-ci run

Oops, I meant to test on my own repo first… It's not fully ready.


Update a scheme

Could we do an "update a scheme" feature?

I second this. Just started looking into the database a bit more in detail and would like to, e.g., add notes to some schemes.


Copy icon not working in Ray and does not copy the selected window text to the clipboard

On my linux machine where I use dockrezied Laravel environment when I click on Copy icon see below, Ray does not send the text to clipboard.
Versions

Ray version: 2.6.4
spatie/ray 1.37.2
spatie/laravel-ray 1.32.4
PHP version: 8.1.11
Laravel version: 9.52.9

To Reproduce

In the code write in  ray()->showQueries();
Run the app and get the query in Ray
Click on the far right icon to copy the query to clipboard

Expected behavior
Get the FULL query into clipboard.
Actual result
Clipboard does NOT contain the query.
Screenshots

Desktop:
Ubuntu 22.04.3 LTS

Hi @mbaric
In the ray app v2.6.5 we use the browsers built in Clipboard.writeText API to copy to the clipboard, this should be more stable across different machines.
Can you check on your end if this has solved your issue?

Hi @Sam-Apostel .
All good and working with version 2.6.5. Thank you.

All good and working with version 2.6.5. Thank you.

Thank you for confirming!


AOT UnitTest support

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [X ] feature request

Versions.
`
angular/cli: 1.4.1
node: 6.9.0
os: darwin x64
@angular/animations: 4.3.6
@angular/common: 4.3.6
@angular/compiler: 4.3.6
@angular/core: 4.3.6
@angular/forms: 4.3.6
@angular/http: 4.3.6
@angular/platform-browser: 4.3.6
@angular/platform-browser-dynamic: 4.3.6
@angular/router: 4.3.6
@angular/cli: 1.4.1
@angular/compiler-cli: 4.3.6
typescript-collections: 1.2.3
typescript: 2.3.4
`
Desired functionality.
Are there any plan to support AOT unittests ?

There is a PR for it (https://github.com/angular/angular-cli/pull/8007), as as mentioned inhttps://github.com/angular/angular-cli/pull/8007#issuecomment-336973766 this support is still experimental and we'll wait until the feature stabilizes before incorporating it into the CLI.

This is a duplicate of #6650, isn't it? If yes this one should be closes IMO 👍

@timbru31 good catch, will close as duplicate of #6650.


[SuperEditor] Fix selection when the editor has autofocus (Resolves #883)

[SuperEditor] Fix selection when the editor has autofocus. Resolves #883
When the editor has autofocus, the selection isn't set and we get the following exception:
flutter: Initializing logger: ExampleApp

════════ Exception caught by foundation library ════════════════════════════════
The following NoSuchMethodError was thrown while dispatching notifications for FocusNode:
The method 'findLastSelectablePosition' was called on null.
Receiver: null
Tried calling: findLastSelectablePosition()

When the exception was thrown, this was the stack
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:38:5)
#1      _EditorSelectionAndFocusPolicyState._onFocusChange
package:super_editor/…/default_editor/document_focus_and_selection_policies.dart:110
#2      ChangeNotifier.notifyListeners
package:flutter/…/foundation/change_notifier.dart:351
#3      FocusNode._notify
package:flutter/…/widgets/focus_manager.dart:1038
#4      FocusManager._applyFocusChange
package:flutter/…/widgets/focus_manager.dart:1804
(elided 2 frames from dart:async)
The FocusNode sending notification was: FocusNode#2c45c([PRIMARY FOCUS])
    context: Focus
    PRIMARY FOCUS
════════════════════════════════════════════════════════════════════════════════

The cause is that the focus change listener is called before we can access the document layout. We have tests to ensure the selection is set when the editor has autofocus, but this doesn't seem to happen during tests.
This PR changes EditorSelectionAndFocusPolicy to check if we can access the document layout before we try to find the last selectable position.
Other possible solutions:

Change EditorSelectionAndFocusPolicy to receive a function that returns a bool indicating if the document has been laid out, instead of a GlobalKey to the DocumentLayout.
Change DocumentLayoutResolver to return a nullable DocumentLayout. This approach might be the more appropriate one, but it will require changes in many places.

This PR also overrides the attributed_text dependency, because we have a method that isn't present yet in the pub.dev released version.

Can you try to get a test to fail with this? I know you said our existing tests don't. I'm wondering if that's due to the pumpAndSettle() when we pump a document. I'd like for us to have a failing test for the existing problem.

Can you try to get a test to fail with this? I know you said our existing tests don't. I'm wondering if that's due to the pumpAndSettle() when we pump a document. I'd like for us to have a failing test for the existing problem.

In the tests, even with a single pump we can access the document layout when the focus change callback is called.
The focus change callback seems to be called at a different moment in the tests. Maybe we should try to write a minimal sample and file an issue in flutter.

Maybe we should try to write a minimal sample and file an issue in flutter.

Sure. See if you can create a minimal code sample that tries to access a state object, which fails with regular Flutter, but passes in a test.


Route by HTTP Method

Is it possible to route based on HTTP Method, e.g. GET/POST ?

That's a good idea and a good candidate for extension for the router module

I'm using it from code:
init
routing

What syntax do you propose for this functionality?

{
":inbox_tray:domain/": "3000/outgoing/[1]",
":postbox:domain/": "2000/incomming/[1]"
}

json supports emoji, right? :ghost:

:rabbit:

So i don't have much experience with this project -- what characters are not parsed currently?
this seems straightforward enough, but might conflict a bit
{
"GET:domain/* ": "3000/get/[1]",
"POST:domain/* ": "2000/post/[1]"
}

we could do whatever is easiest really
{
"GET=domain/* ": "3000/get/[1]",
"POST=domain/* ": "2000/post/[1]"
}

and i mean easiest not just out of laziness but also keeping the code simple and maintainable

how about this?
ports: {
  80: {
    router: {
      'domain/*': {
        GET: '3000/get/[1]',
        POST: '2000/post/[1]'
      }
    }
  }
}

@Rush CAPS is waste of keystrokes, btw, get or post would be sufficient and equally semantic. :)

Caps are needed to differentiate domains from http actions. Domains would be low caps.

i like that expansion. would you need to differentiate if you were using an object like that?
ports: {
  80: {
    router: {
      'domain/*': {
        domain: '3000/get/[1]',
        ACTION: '2000/post/[1]'
      }
    }
  }
}

In your example "domain" is already matched so it would be:
ports: {
  "80": {
    "router": {
      "domain/*": {
        "ACTION": "2000/post/[1]",
        "*": "3000/get/[1]"
      }
    }
  }
}

@Rush But domain is already defined in "domain/*", so having another domain one level deeper doesn't make sense, no?

If the "domain" matches couple of times no harm is done but as I've posted, it wouldn't be necessary.

:+1: :smile_cat:


Header not precised in the README

I downloaded the library.
I tried to use it but Xcode did not recognized SwipeCard.
It was not written on the README: please let the users know they need to import Shuffle_iOS in order to use the library
Thank you

This is something that is generally understood when it comes to importing external libraries. But sure, I will add something

Yes thank you ! By the way the library is impressively well implemented. Good job !

Thank you 😄 Updated README here #111


Bazel fix env

Motivation for this change
This fix three bugs:

it restores the usage of /etc/bazel.bazelrc if users want to override bazel setting on a system-wide fashion.
it removes /usr/local/bin from the path searched by bazel in "strict action env" mode. This increases reproducibility in this context.
it adds diff and zip in the bazel test runner context. They are needed on some cases of test and where failing if bazel was used with strict action env.

Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Notify maintainers
cc @flokli @Profpatsch

@jonringer Thank you, I'm investigating it.
What exactly do you mean with:

then again, I think most of this is broken to begin with

I have decided to spend a few time this week to improve bazel quality on nixpkgs, so if you have some ideas about what can be improved, please tell me.

tensorflow is broken, and a lot of packages rely on it

see https://github.com/NixOS/nixpkgs/pull/71282

@jonringer I do apologize for the build issues you have with bazel 1.0, I did the upgrade without ensuring that dependencies are working. I won't do that issue again. Eventually we'll solve tensorflow build, but I think that's unrelated to the current pull request.
@flokli I applied the changes you suggested.

@GrahamcOfBorg build bazel.tests

@GrahamcOfBorg build bazel.tests

@flokli : as discussed in a private conversation, I dropped the configuration file commit, so this PR only focus on bazel environment with strict action env.

@GrahamcOfBorg build bazel.tests

This seems to fail on darwin:
src/main/tools/process-wrapper-legacy.cc:58: "execvp(external/local_config_cc/cc_wrapper.sh, ...)": No such file or directory
INFO: Elapsed time: 10.199s, Critical Path: 0.39s
INFO: 1 process: 1 processwrapper-sandbox.

Yep, definitely seen it before, I'm pretty sure it's already broken on master, note it's in bazel.tests, not in bazel, so it doesn't prevent the nix binary cache from having a darwin bazel build, that's why we haven't focused on figuring that out.

In that case, I don't see any strong reasons not to merge this in.


[question] ppo2 and prioritized experience replay

I need to test ppo2 with a prioritized experience replay and I wonder if anyone wrote a similar integration before I go ahead and write it from scratch.

Hello,
PPO is meant to be on-policy (the policy that generates samples needs to be the same that is optimized (and not an older version)) so I don t think it really makes sense to have an experience replay in that case.

My bad, I meant to say dueling dqn. I was coding a ppo2 and was stuck in my head.

Well then, i don t really understand your question neither. Prioritized experience replay is already implemented for ddqn in stable baselines

I see, I missed that in the code. I'll give it a second look.


update dependency to published release version of py-RDF-store

avoid the current git-based dependency
this waits for https://github.com/vliz-be-opsci/py-RDF-store/milestone/1

note: best not to make it an explicit version dependency he --> in future we want make update to be able to catch up with newer releases

we are already at 'main' revision of py-rdf-store
the new plan is to join up te release management of the various parts and separate libs that make up the sembench functionality
when we achieve that the dependency management should become explicit


cli build folder of heml files.

Would be great if the cli could build a folder of heml files.  At the moment it appears the build command just accepts a single file.
Thanks for a great tool

Would be great if the cli could build a folder of heml files. At the moment it appears the build command just accepts a single file.
Thanks for a great tool

This would be really great and helpful.


[ValSet-Pref] Add WithdrawDelegationRewards message

Part of : https://github.com/osmosis-labs/osmosis/issues/2579
What is the purpose of the change
Adds new message WithdrawDelegationRewards.

WithdrawDelegationRewards withdraws all the delegation rewards from the validator in the val-set.
Delegation reward is collected by the validator and in doing so, they can charge commission to the delegators.
Rewards are calculated per period, and is updated each time validator delegation changes.

Brief Changelog
n/a
Testing and Verifying
Added msg_server test for to check functionality
Documentation and Release Note

Does this pull request introduce a new feature or user-facing behavior changes? (yes / no)
Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? (yes / no)
How is the feature or change documented? (not applicable   /   specification (x/<module>/spec/)  /  Osmosis docs repo   /   not documented)

@ValarDragon @czarcas7ic added more tests coverage as you suggested

@ValarDragon @czarcas7ic added test cases and logic for existing staking position that's not valset. lmk what you think


postinstall doesn't populate database

The post install doesn't populate the database with correct values, nor does the installation instructions (that I've seen yet) indicated what defaults need to be changed.
If we ask the installer/user for information we should update that information in the database. We should also note specifically which other profile/db entries need to be edited for proper function.

the new postinstall takes care of this


Update sql-server-linux-availability-group-configure-ha.md

at that point the  login does not yet exist, it is created in the next document after setting up pacemaker, i think the added link can make things clearer.

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

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

#sign-off

Thanks. I had made a note go back and see if this just didn't work on staging due to the somewhat odd link. Otherwise, I was going to switch to an absolute link. -jb
From: Gene Milener<EMAIL_ADDRESS>Sent: Monday, August 26, 2019 10:31 AM
To: MicrosoftDocs/sql-docs<EMAIL_ADDRESS>Cc: Jeff Borsecnik (Aquent LLC<EMAIL_ADDRESS>State change<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/sql-docs] Update sql-server-linux-availability-group-configure-ha.md (#2774)
The link appending of #create-a-sql-server-login-for-pacemaker.md was incorrect, because there should not be any trailing .md on this mere H2 anchor label.
Warning surfaced in:

MicrosoftDocs/sql-docs-pr#11689https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fsql-docs-pr%2Fpull%2F11689&data=02|01|v-jeffbo%40microsoft.com|656ac87569de4c7d7e2908d72a4b3382|72f988bf86f141af91ab2d7cd011db47|1|0|637024374791076677&sdata=fNyrK1%2FSHx4BnsSQc%2FGtOpg1m2WOQy0Tn4kLyUxgzlM%3D&reserved=0

I will fix it. Thanks, G.
cc: @MikeRayMSFThttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMikeRayMSFT&data=02|01|v-jeffbo%40microsoft.com|656ac87569de4c7d7e2908d72a4b3382|72f988bf86f141af91ab2d7cd011db47|1|0|637024374791086673&sdata=2laqPyfbpM0fWC2dLJDxgcG8id7jVz%2F0j7in33W3XGY%3D&reserved=0
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fsql-docs%2Fpull%2F2774%3Femail_source%3Dnotifications%26email_token%3DAIW2RCIXUS2X3KM7CIVW7RTQGQHOJA5CNFSM4IOEYFXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5FCD3A%23issuecomment-524952044&data=02|01|v-jeffbo%40microsoft.com|656ac87569de4c7d7e2908d72a4b3382|72f988bf86f141af91ab2d7cd011db47|1|0|637024374791086673&sdata=OkHJAqWb2h0EQ7cDXYtEZnPdPf8xgo6%2B15yTk6EZ1aU%3D&reserved=0, or mute the threadhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAIW2RCJF6HFWOR4RZ4AGZYDQGQHOJANCNFSM4IOEYFXA&data=02|01|v-jeffbo%40microsoft.com|656ac87569de4c7d7e2908d72a4b3382|72f988bf86f141af91ab2d7cd011db47|1|0|637024374791086673&sdata=UigLOhGBOA%2Bw6V0gJQX3XhMvBBV%2F%2F09z9q%2BRdnprJ0w%3D&reserved=0.


[Bug]: Can't view supabase docs

Package
lucia-auth
Describe the bug
https://lucia-auth.com/adapters/supabase gives Internal Server Error

Maybe related with this #325

Closing this - Supabase adapter might be added again but we don't provide docs for it since it was removed pre 1.0


gdextension, add missing ISteamMatchmakingServerListResponse implementation

add an implementation

ISteamMatchmakingServerListResponse
ISteamMatchmakingPingResponse
ISteamMatchmakingPlayersResponse
ISteamMatchmakingRulesResponse

return additional data from Steam::getServerDetails
fix wrong ip conversions for requests

Steam::pingServer
Steam::playerDetails
Steam::serverRules

Hey, thank you so much for tackling this!  I will check it out!

@Gramps just added another change which fixes the filters for the server list requests

Could our IP checks for other functions be replaced with the SteamNetworkingIPAddr stuff?  Might clean things up around here even more.

One last note, we do not want to update godot-cpp to the latest stable otherwise it become incompatible with previous versions of Godot; at least for GodotSteam.  We are keeping it on branch 4.1 because all the fixes get cherry-picked to it for maximum compatibility.  You didn't update the godot-cpp in this PR, but just to note why we don't do it.  Thank you again so much!

Could our IP checks for other functions be replaced with the SteamNetworkingIPAddr stuff? Might clean things up around here even more.

I guess everything IP related should go through that type for consistency and compatibility with the steamworks sdk.

I started making a test for it, see if it works.  If so, I"ll convert everything over to it.


Firefox fix

Firefox uses textContext instead of innerText

Hi @jgaya, can you please fix the issue I raised in my comment and squash your commits ?
Thanks!

Hi, thank you it looks now.
Please squash your commits and I'll merge it in.

awaiting for this merge :s

@asafdav You can now squash commits when merging in changes. Can you please get this change in.


Text gets default color from Style

This required moving (a copy of) Style to Assets.

Thanks for the PR, lgtm!


Tracking flaky tests

Is there an existing issue for this?

[X] I have searched the existing issues

Problem Statement
Currently, we're missing data points to tell exactly which test cases tend to fail occasionally while running them against the main branch (being "flaky"). It makes tracking the individual flaky test cases harder as it requires manual issue creation while somebody spots a failure. It also makes prioritizing harder due to not being able to tell how often the test case fails (given it fails very rarely, we could assign it a lower priority).
As a project maintainer, I'd like to have insights on the healthiness of test suites running against the main branch.
Proposed Solution

track test suites history by exporting JUnit xmls and storing them as build artifacts
find a tool that will help with visualizing the test suites' healthiness (examples: https://github.com/F-Secure/flaky-tests-detection, https://github.com/marketplace/actions/buildpulse)
integrate the chosen tool with our workflows to provide basic visibility
(optional) automatically create a GH issue tracking a flaky test once it is detected
(optional) link to every pipeline failure due to the detected flaky test case in the GH issue

Additional information
Paper on the topic that's probably worth looking into: "Modeling and ranking flaky tests at Apple".
Acceptance Criteria

[x] KIC's workflows (test.yaml, nightly.yaml, e2e.yaml) are configured to report test results to BuildPulse on every run against main branch
[x] BuildPulse displays summaries regarding particular tests' flakiness for KIC

Yeah, the buildpulse seems to be the easiest solution, that's the one I mentioned during retro - it's paid $99 a month and has 14d free trial.

We've decided to go with BuildPulse trial, I've updated the issue's ACs to reflect that.

Closing as it's been implemented in KIC.


[TACHYON-794] Added test case for MasterWorkerInfo

https://tachyon.atlassian.net/browse/TACHYON-794

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/4425/
Test PASSed.

Just a minor comment, but looks good! Thanks!

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/4440/
Test PASSed.

LGTM

+1 LGTM


Inlining tests & more

I promise there is a relevant point at the end of this if you stick with me for a second.
An increasing number of language have a way to write various types of tests inside of source files. For example, in Rust: Demo
// math.rs
pub fn add(a: i16, b: i16) -> i16 {
  a + b
}

#[cfg(test)]
mod tests {
  use super::*;

  #[test]
  fn add_test() {
    assert_eq!(add(35, 7), 42);
  }
}

Module blocks provide a similar sort of syntax. And you could envision something like this:
// math.js
export function add(a, b) {
  return a + b
}

/** @test */
module {
	import { add } from ".."

	export function addTest() {
    assert(add(35, 7) === 42)
	}
}

module {} is dead code, and (once supported) your average optimizing compiler would remove this code. So you can easily avoid it at runtime.
Most JavaScript testing frameworks are already apply various compile-time transforms today, so they already have all the pieces they need to find these modules blocks and execute them in a test environment.
The biggest limitation of the JS module blocks proposal right now is that you cannot import functions, classes, etc from the parent module.
In Rust:
mod tests {
  use super::*;
  // ...
}

Maybe in JavaScript?
module {
  import { add } from ".." // where ".." is whatever syntax makes most sense
  // ...
}

It's easy to imagine how this could be useful for the web workers use case as well.
export function fibSync(n) {
  if (num === 1) {
    return 0
  } else if (num == 2) {
    return 1
  } else {
    return fibSync(num - 1) + fibSync(num - 2)
  }
}

export async function fibAsync(num) {
  if (num < 40) {
    return fibSync(num)
  } else {
    return await worker({ num }, module {
      import { fibSync } from ".."

      export default function ({ num }) {
        return fibSync(self.data.num)
      }
    })
  }
}

Note: I would expect the parent module to evaluate twice for the different environments.

I know this isn't the sort of thing TC39 normally considers when designing features. But I hope this doesn't just get dismissed as a tooling problem. There are way too many of those, and the result ends up being the same syntax with different behaviors depending on the tool you're using (see existing module behavior in webpack, jest, etc.).

Interesting point. While not ideal, you can solve this with dynamic import:
export function fib(n) { /* ... */ }

/** @test */
module {
  import {expect} from "chai"
  const {fib} = await import(import.meta.url);

  expect(fib(4)).to.equal(24);
}

I think thee “JavaScript Bundles” proposal that is mentioned in the README might help here. It’s likely out of scope for Module Blocks directly.

Interesting point. While not ideal, you can solve this with dynamic import:
export function fib(n) { /* ... */ }

/** @test */
module {
  import {expect} from "chai"
  const {fib} = await import(import.meta.url);

  expect(fib(4)).to.equal(24);
}

I think thee “JavaScript Bundles” proposal that is mentioned in the README might help here. It’s likely out of scope for Module Blocks directly.

That would only be possible if import.meta.url is the URL of the containing document (#26) - but i do like the idea that a module block could import * as ns from parent; or something.

That would only be possible if import.meta.url is the URL of the containing document (#26) - but i do like the idea that a module block could import * as ns from parent; or something.

I like the idea of inlining test modules, but import * as ns from parent does not look good to me

I like the idea of inlining test modules, but import * as ns from parent does not look good to me

We could pick any non-string specifier :-) the entire design space is open.

We could pick any non-string specifier :-) the entire design space is open.

I think this is an interesting use case, but it'd be best if we had a way to address the test module from the outside, so it can be imported by the test framework from the outside, rather than relegating it to dead code, requiring transpilation based on magic comments to make it work. I have some ideas about this, and hope to get back soon with a proposal (more closely related to "JS module bundles" rather than "JS module blocks").

I think this is an interesting use case, but it'd be best if we had a way to address the test module from the outside, so it can be imported by the test framework from the outside, rather than relegating it to dead code, requiring transpilation based on magic comments to make it work. I have some ideas about this, and hope to get back soon with a proposal (more closely related to "JS module bundles" rather than "JS module blocks").

@littledan to draw inspiration from TypeScript's import type syntax, do you mean something like this:
// myModule.js
export type Foo = { ... } // example from ts syntax
export test myModuleTests = module { ... }

// myOtherModule.js
import type { Foo } from "myModule.js" // example from ts syntax
import test { myModuleTests } from "myModule.js"

Where type imports are used at type-checking-time, stripped out before runtime, and are statically restricted from being used in non-type positions.
So could test imports be used at testing-time, stripped out before runtime, and be statically restricted from being used in non-test positions, aka:
// myModule.js
export test myModuleTests = module {
  export function foo() {}
}

let newName = myModuleTests // Error: Cannot reference myModuleTests in non-test position
let exports = import(myModuleTests) // Error: Cannot reference myModuleTests in non-test position

// myOtherModule.js
import { myModuleTests } from "myModule.js" // Error: Cannot reference myModuleTests in non-test position
import test { myModuleTests } from "myModule.js" // (No Error)

I don't like a syntax level solution for this problem (the import test and export test). Unless we made it a more general form

I wrote out a JS module fragments proposal, where testing could be done like this:
// math.js
export function add(a, b) {
  return a + b
}

module "#test" {
	import { add } from "./math.js" // Hmm, maybe there should be shorthand for this, indeed

	export function addTest() {
    assert(add(35, 7) === 42)
	}
}

Then, the test framework can import math.js#test and do the appropriate thing with it, with no special transpilation needed.

Perhaps we could add a proposal for something like import.meta.super which contains information of the parent module and allow it as a URL specifier during imports:
// whatever.js
export function add(a, b) {
  return a + b
}

module "#test" {
  import { add } from import.meta.super.url

  export function addTest() {
    assert(add(35, 7) === 42)
  }
}

I received the email notifying me of someone comments this:

Perhaps we could add a proposal for something like import.meta.super which contains information of the parent module and allow it as a URL specifier during imports:

But I cannot find that comment in the thread. I think this idea is cool to resolve the import.meta.url problem. Maybe import.meta.superUrl

There’s no single concept of a “parent module”, because 0, 1, or 57 modules might import the one in question.

I think by "parent module of X" it doesn't mean "the module which imports X", but "the module inside of which X is declared".
However, we could still have 57 nested module blocks.

This proposal doesn't have the goal to extend the import syntax: module expressions can only use the existing import { ... } from "string specifier" declaration format.
However, https://github.com/tc39/proposal-built-in-modules does attempt to expand the import syntax to allow referring to "syntactic modules", and we could consider a "import from the parent" feature as part of that proposal. I opened https://github.com/tc39/proposal-module-fragments/issues/20 to keep track of this.


414 Request URI Too Long

Hi, I was trying to load an excalidraw diagram (tried using both embedded and external files), but I get this error from kroki because the URI is too long:
Error 414: The request URI's length exceeds 4096. You can update this value by setting KROKI_MAX_URI_LENGTH environment variable. Please read: https://docs.kroki.io/kroki/setup/configuration/#_max_uri_length for more information.

According to https://github.com/yuzutech/kroki-go/issues/11, a possible solution would be to use POST requests for longer payloads.
To give you a reference, your excalidraw test is 16KB/695 lines long and it works fine, while mine is 33KB/1483 lines.

we can't use post request because of CORS.
kroki.io doesn't support CORS request
Access to fetch at 'http://kroki.io/plantuml/svg/' from origin 'http://<IP_ADDRESS>:8080' has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.
 If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

about CORS , you can read this article
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

Hi @zuisong, sorry in advance if my reply doesn't make a lot of sense, I'm not an expert in Javascript or CORS.
I tried to reproduce the error using a plain html+js file while serving it on localhost using a python server, but I was able to get the svg from kroki.

This is the code I used:
<!-- kroki.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>title</title>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <svg></svg>
    <script>

      diagram = `
      [Person]
      *name
      height
      weight
      +birth_location_id

      [Location]
      *id
      city
      state
      country

      Person *--1 Location
      `
      fetch('https://kroki.io/erd/svg', {
        method: 'POST',
        body: diagram,
        headers: {
          'Content-Type': 'text/plain'}
        })
        .then(res => res.text())
        .then(svg => document.body.insertAdjacentHTML("afterbegin", svg));
    </script>
  </body>
</html>

# run with: python3 server.py
import http.server
import socketserver

class MyHttpRequestHandler(http.server.SimpleHTTPRequestHandler):
    def do_GET(self):
        if self.path == '/':
            self.path = 'kroki.html'
        return http.server.SimpleHTTPRequestHandler.do_GET(self)

# Create an object of the above class
handler_object = MyHttpRequestHandler

PORT = 8000
my_server = socketserver.TCPServer(("", PORT), handler_object)

# Star the server
my_server.serve_forever()

Does this setup make any sense at all? I wonder why it's working in this case.
Thanks 🙂

the kroki server can only support cross domain using the https protocol. I use the http protocol, so cross domain is not supported
then. next version will support use use POST requests for longer payloads.

1.0.20 released,  now this plugin support use use POST requests for longer payloads.
website must hold on https protocol


⚠ SolarOscp has degraded performance

In 6cdb3b4, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 375 ms

Resolved: SolarOscp performance has improved in 81982eb after 10 minutes.


services.ananicy: add rulesProvider option

Motivation
I wanted to configure services.ananicy to use CachyOS' ananicy rules, however there wasn't an ergonomic way to do that with the existing options. Even if I came up with a way to plug all the rules to extraRules, I'd still be missing custom types and cgroups. I ended up modifying the option definitions such that I could source /etc/ananicy.d/ from a different package. I thought upstream would benefit from something like this.
Proposal
Add an option services.ananicy.rulesProvider (or rules, rulesPackage, rulesetProvider, rulesetPackage... Looking for feedback on naming.) of type package, which accepts a package that provides /etc/ananicy.d/. Default value would be pkgs.ananicy. This option would be used for configuring ananicy with alternative rulesets.
services.ananicy is currently hardcoded to use the ruleset from pkgs.ananicy. We would change this to cfg.rulesProvider instead. We would package alternative rulesets like CachyOS', minq-ananicy's (well this is actually a whole ananicy fork) and maybe in the future ananicy-cpp's community rules to go with this option.

Is this something that would fit nixpkgs? Would something like an overridable package option be a better fit? Is packaging configs the wrong approach here? I suppose we should also implement extraTypes and extraCgroups, but even then I'd still like a way to easily use rulesets from the mentioned git repos.
In case this seems feasible, I could take a shot at creating a PR.

https://github.com/NixOS/nixpkgs/pull/242309 for extraX

so it's merged I see, what options are available now for rulesProvider?

so it's merged I see, what options are available now for rulesProvider?

ananicy-rules-cachyos


Remove warning message about Parsec compatibility

The SE driver should work with any version of Parsec. This will need to
be tested later on. Only keep the Mbed TLS versions.

Put the cross-compilation tests in their own worflow since we removed the toolchains from the container


Broken bash window

VSCode Version: 1.39.0-insider
OS Version: Linux Mint 19.2 Cinnamon 4.2.3 Kernel 4.15.0-60-generic

When press CTRL + SHIFT + 5 or "split terminal" button to open a new bash window it doesn't  work. But on open more windows only odd windows works
Steps to Reproduce:

Press CTRL + SHIFT + F5 or "split terminal" button

Does this issue occur when all extensions are disabled?: Yes
Screenshots:
With some extensions enabled:

With no extensions enabled:

note that there are three bash windows open but only two work

/duplicate  #80404


Top nav menu: Remove Indicators link

Remove the Indicators link from the top nav.

@axoplasm @sanjuroj Given what we discussed in the developer summit -- that we're going to regularly push Mangosteen features into production but be selective about what end users see --  how will we handle this, from a testing perspective?
For example, I want to make sure that we separate out any top nav related tickets -- i.e. this one and #564 -- and test those somewhere, without setting them on a path to be merged into production.

@jennyhavah : What does this mean. "without setting them on a path to be merged into production"?

@mariebakke I wrote that back when we were thinking of releasing Mangosteen to Production in stages. That's no longer a concern. So if the ticket is looking good, it can go into Done!


Two oh

This incorporates #39 and also removes daml-ctl git submodule in favour of a data-depenency.
Just waiting for 2.0 release that fixes --target=dev.1; then we'll bump daml.yaml files to release.

So we have a bit of a problem, which we'll also have in the finlib. The CI needs to know how to handle external dar dependencies.
I removed the git submodule I was using to build daml-ctl. But now the CI doesn't know how to build it. We have to make the dependency dar available somewhere (I am not checking into git) i.e. it has to have a stable path that the CI can download it from.
I'm tempted to just keep the submodule for the time being, as there are no other libraries (to my knowledge) using daml-ctl. Also worth asking colleagues how they are handling this. cc @bame-da

We have to make the dependency dar available somewhere

Further discussion with @georg-da , we've decided to use github releases; this means we need to manually upload the *.dar, but it should provide a stable path that the CI can then refer to. Well do the same with daml-ctl.

@lucianojoublanc-da what's stopping you in CI from checking out another repo and building it?

what's stopping you in CI from checking out another repo and building it?

I suppose this is what we were previously doing, albeit via a submodule; in that case the dependency is explicit in the codebase (the submodule points to a specific commit in the dependency). We wanted to avoid this.
I guess the answer to your question is CI time, and complexity of CI configuration. In this particular case, it's not too much of an issue, but say we have a customer project that depends on finlib, which depends on contingent-claims, which depends on daml-ctl. That means you're going to have to build three sub-projects in your CI ...


kiosk feature request: networked multiplayer

Integrate functionality of https://arcade.makecode.com/--multiplayer into kiosk.

This comes with some interesting design questions:

how to support emoji reactions with only a shoebox controller?
how will join/matchmaking work (again, with only a shoebox controller)?


bufferTime with bufferCreationInterval leaks memory

Bug Report
Current Behavior
A clear and concise description of the behavior.
When I call bufferTime(10, 50) or bufferTime(50, 10), I get memory leaks (ts-node v4.1.0, node v9.11.1).  Same code (modulo Node-specific heap size determination; I used Chrome debugger) does not appear to leak on Chrome Version 68.0.3440.106 (Official Build) (64-bit).
Reproduction

REPL or Repo link:
https://gist.github.com/arielshaqed/9114b5801d8f650b8a1ea7626b0887b4

// Leak memory using Rx.bufferTime.
import * as Rx from 'rxjs';
import * as op from 'rxjs/operators';

declare var window: any;

function getHeap() {
  return process.memoryUsage().heapUsed;
}

const bufSize = 4096;

const startMsecs = Date.now();
const startHeap = getHeap();

let n = 0;

function repeat(s: string, n: number): string {
  return new Array<string>(s).fill(n).join('');
}

const s$ = Rx.interval(1).pipe(
  op.map((i) => repeat(i, 1000)),
  op.bufferTime(10, 10),
).forEach(() => {
  n++;
  if (n % 50 === 0) console.log(Date.now() - startMsecs, getHeap() - startHeap);
});

If I omit the second bufferTime argument, memory does not increase.
Expected behavior
Numbers should fluctuate around several hundred thousand, but remain bounded.
Actually, they increase without bound.
Environment

Runtime: ts-node v4.1.0, node v9.11.1
RxJS version: 6.3.1
(If bug is related) Loader, build configuration: [e.g webpack, angular-cli version, config]

Possible Solution
Specifying bufferCreationInterval takes the bufferTime code on a somewhat different path.
Additional context/Screenshots
When I run it on my MBP:
flutterby:LeakRx ariels$ ts-node --target es6 --module commonjs leaker.ts
534 -13957112
1060 -10093664
1587 -10248296
2101 -7352416
2623 -7611384
3143 180632
3657 3135656
4174 9960824
4692 4826968
5212 16375664
5744 18128216
6264 20596432
6784 25276480
7296 31470312
7806 39427360
8323 49389320
8842 50295592
9356 63838840
9884 68792288
10397 73684480
10922 80035688
11441 91109032
11963 100696920
12482 104292168
13003 118677824
13517 123799992
14036 138397864
14556 150215408
15087 158630392
15601 171176016
16139 182235160
16666 185696504
17192 205358072
17705 208343936
18233 220496096

Updated gist, please use this as the leaker:
// Leak memory using Rx.bufferTime.

import * as Rx from 'rxjs';
import * as op from 'rxjs/operators';

declare var window: any;

function getHeap() {
  return process.memoryUsage().heapUsed;
}

const bufSize = 4096;

const startMsecs = Date.now();
const startHeap = getHeap();

let n = 0;

function repeat(s: string, n: number): string {
  let ret: string = '';
  for (let i = 0; i < n; i++) ret += s;
  return ret;
}

const s$ = Rx.interval(1).pipe(
  op.map((i) => repeat(i.toString(), 1000)),
  op.bufferTime(10, 10),
).forEach(() => {
  n++;
  if (n % 50 === 0) console.log(Date.now() - startMsecs, getHeap() - startHeap);
});

Just double confirming, am I reading correct same piece doesn't leak on browser but only on node.js?

Just double confirming, am I reading correct same code snippet doesn't leak on browser but only on node.js?

I appreciate your skepticism, but yes.  I can run the same code (in Chrome) and it does not leak.  Possibly related: nodejs/node#7346, which appears to regress:
flutterby:xenu ariels$ node --version && node -e 'start = Date.now(); i = 0; cancel = setInterval(() => { if (++i % 50 === 0) console.log(Date.now() - (start + (i + 1) * 20)); }, 20)' | head
v10.9.0
121
245
351
488
629
749
877
1006
1146
1295

Sounds very promising if it's related to upstream nodejs side (as you mentioned), might need few verification over different node / browser targets.

Peeking this again, I came to feel this isn't bug actually : node, browser shows same behavior, and it's due to keep allocating resources - bufferTime creates new array each time given time window passes, and it just keep going on until source completes. In here, source never completes so there's no chance allocated resources being GC'ed. I still may wrong, if you can observe env specific (I could observe this in chrome as well), please feel free to open new issue with repro codes. Sorry for taking time to get back.


Name newly-empty rooms based on last user to leave

This relieves clients from tracking the total number of users who have
ever been in a room and the name of the earliest-sorted user, and
ensures that the display name change resulting from the transition from
a 1:1 room to an empty room is intuitive. Wording is also tweaked to
ensure that the above holds if the last user in a room was banned.

matrixbot: ok to test

@Ralith: we aren't quite convinced by this change.
Firstly, long-term we have hopes of moving some of this logic to the server (I have just raised https://matrix.org/jira/browse/SPEC-425 to track this). Changes made with the intention of making clients' lives easier may therefore be misguided. We should instead consider what the most desirable behaviour is. (In the meantime, clients can get away with not following the letter of the spec, as it's a SHOULD rule. As, indeed, vector-web does.)
As to whether the suggested change is desirable in itself: we don't see that special-casing the last person to leave is necessarily preferable.
So, thanks for the PR, but I'm going to reject this.

Thanks for the considered reply! I still feel that the change has significant value in itself, even ignoring the simplicity of implementation. With the current wording, a room may transition upon departure of the last other user from having the name "Bob" to "Empty room (was Alice and 3 others)". Since these names have nothing whatsoever in common with eachother, I feel that this represents a source of confusion, which the proposed change corrects.
It's somewhat arbitrary, yes, but as the spec TODO notes, so is sorting based on user ID, and at least this approach provides continuity.


Queue updates on multiple nodes

Is your feature request related to a problem? Please describe.
Some nodes take longer than other nodes to apply firmware, and you also cannot upload multiple nodes at once.
Describe the solution you'd like
I would like to be able to select multiple node that are the same device type and apply 1 firmware update and for it to cycle through the devices so I don't have to do one at a time. I am sure there are ways to enhance that to include more than one device type and 1 firmware file, but the solution is the floor.
Describe alternatives you've considered
There are none.
Additional context
N/A

There could be an alternative to this ATM but requires you to write a custom driver function. You should place the fw file in store dir and from the function pass it from all the nodes you want to update. I add this to my TODOs btw I dunno when I will implement it


CB-22606: Reverted Kerberos caching behavior to be backward compatible

why is this not in the base part instead of final stage?

The file gets installed later than the base part (for Runtime images it gets created by  saltstack/hortonworks/salt/kerberos/kerberos.sls, for FreeIPA it gets created during the IPA server installation)

why don't you just remove the whole file?

I'm not familiar with the service's reaction for deleting the whole file. Documentation clearly says "To disable the KCM credential cache, comment out the following lines." so I simply followed documentation.

The file gets installed later than the base part (for Runtime images it gets created by saltstack/hortonworks/salt/kerberos/kerberos.sls, for FreeIPA it gets created during the IPA server installation)

thanks, makes sense in this case

I'm not familiar with the service's reaction for deleting the whole file. Documentation clearly says "To disable the KCM credential cache, comment out the following lines." so I simply followed documentation.

it shouldn't cause any issues, as only this 2 lines are in the config, and this is just an additional config file under conf.d


Allowed number of HTTP/2 continuation frames

nghttp2 1.61.0 limits the number of HTTP/2 continuation frames and provides the new function nghttp2_option_set_max_continuations(). By default, 8 continuation frames are allowed.
Envoy increased the value to 1024 in this commit: https://github.com/envoyproxy/envoy/commit/7d0c5220cf28a4c77d1db92b193ba2cb9c40b3f0
Are 8 HTTP/2 continuation frames enough? Should the value be part of the configuration, or could mod_h2 calculate a value based on LimitRequestLine, LimitRequestFields and LimitRequestFieldSize ?

Since mod_h2 now RSTs the stream after 100 incoming headers exceeding the limit, we could safely raise the number of frames. Some people, I learned, work with really huge headers.


Can´t install PIP with Python

I can´t get install pypjsekai with Python using PIP, how can I do that?

Never mind that, I solve that


Add files via upload

@sfwise Can you fix this?

I think I uploaded the wrong version of my layout, that shouldn’t be there
I’ll go take a look.
On Thu, 8 Feb 2024 at 10:19 pm, Hang Bobby Zou @.***>
wrote:

@sfwise
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsfwise&data=05|02|sfwisem%40clemson.edu|5d87d427f23d4a4f8ea608dc291debe4|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430455694929280|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=NDt85nAC%2F233Tgr0cYcDUx7QOaSx8u6LfhEmIFTvqVM%3D&reserved=0
Can you fix this?
image.png (view on web)
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSiEPIC%2FopenEBL-2024-02%2Fassets%2F45744171%2F1e11e62b-f967-4ab7-8b8a-1e36866ed4db&data=05|02|sfwisem%40clemson.edu|5d87d427f23d4a4f8ea608dc291debe4|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430455694929280|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=4BEv6gln%2BPEahqM1KOdm%2BhMyo6dgAWfAA%2FTZm9nTVu8%3D&reserved=0
—
Reply to this email directly, view it on GitHub
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSiEPIC%2FopenEBL-2024-02%2Fpull%2F157%23issuecomment-1935277446&data=05|02|sfwisem%40clemson.edu|5d87d427f23d4a4f8ea608dc291debe4|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430455694929280|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=XHH335IU%2FQIsDTUiZx9sgP2wRJlnH%2FGG%2B7P0mbVBxJE%3D&reserved=0,
or unsubscribe
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Fun!
 subscribe-auth%2FBGA2ZZ35ZYLY6MFCSBC62DTYSWIT5AVCNFSM6AAAAABDAQS4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZVGI3TONBUGY&data=05|02|sfwisem%40clemson.edu|5d87d427f23d4a4f8ea608dc291debe4|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430455694929280|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=KPGSO2Ia3viAhhi5XVw9TOYAHEnBgjNxuCabPXAbHO0%3D&reserved=0
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi I have added a new submission, I have never used GitHub so I am unsure
if I have created the pull request correctly. The final file should just be
EBeam_sfwise.gds and has the comment ' this is my final design'
On Thu, Feb 8, 2024 at 10:59 PM Sarah Wiseman @.***> wrote:

I think I uploaded the wrong version of my layout, that shouldn’t be there
I’ll go take a look.
On Thu, 8 Feb 2024 at 10:19 pm, Hang Bobby Zou @.***>
wrote:

@sfwise
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fsfwise&data=05|02|sfwisem%40clemson.edu|5d87d427f23d4a4f8ea608dc291debe4|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430455694929280|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=NDt85nAC%2F233Tgr0cYcDUx7QOaSx8u6LfhEmIFTvqVM%3D&reserved=0
Can you fix this?
image.png (view on web)
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSiEPIC%2FopenEBL-2024-02%2Fassets%2F45744171%2F1e11e62b-f967-4ab7-8b8a-1e36866ed4db&data=05|02|sfwisem%40clemson.edu|5d87d427f23d4a4f8ea608dc291debe4|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430455694929280|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=4BEv6gln%2BPEahqM1KOdm%2BhMyo6dgAWfAA%2FTZm9nTVu8%3D&reserved=0
—
Reply to this email directly, view it on GitHub
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSiEPIC%2FopenEBL-2024-02%2Fpull%2F157%23issuecomment-1935277446&data=05|02|sfwisem%40clemson.edu|5d87d427f23d4a4f8ea608dc291debe4|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430455694929280|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=XHH335IU%2FQIsDTUiZx9sgP2wRJlnH%2FGG%2B7P0mbVBxJE%3D&reserved=0,
or unsubscribe
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Fun!
 subscribe-auth%2FBGA2ZZ35ZYLY6MFCSBC62DTYSWIT5AVCNFSM6AAAAABDAQS4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZVGI3TONBUGY&data=05|02|sfwisem%40clemson.edu|5d87d427f23d4a4f8ea608dc291debe4|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430455694929280|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=KPGSO2Ia3viAhhi5XVw9TOYAHEnBgjNxuCabPXAbHO0%3D&reserved=0
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi
I noticed on the newest merge file both of my layouts are there. The top
one on the left shown in the image with only 7 devices shouldn't be there.
The one below which is the EBeam_sarahfwise.gds should be my only design
(the one highlighted in the cell selection window and shown in the image
with 8 devices). The EBeam_sarahfwise_v5.gds was an error as I uploaded the
incomplete file.
[image: image.png]
On Fri, Feb 9, 2024 at 3:20 AM Lukas Chrostowski @.***>
wrote:

Merged #157
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSiEPIC%2FopenEBL-2024-02%2Fpull%2F157&data=05|02|sfwisem%40clemson.edu|a04ba9f2d5e74caea7bf08dc2947f69c|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430636254555827|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=LIi17CAotyqT0kOu7JZkpuvFarSpb9gOQEmN19KSqro%3D&reserved=0
into main.
—
Reply to this email directly, view it on GitHub
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSiEPIC%2FopenEBL-2024-02%2Fpull%2F157%23event-11755066378&data=05|02|sfwisem%40clemson.edu|a04ba9f2d5e74caea7bf08dc2947f69c|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430636254555827|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=LsoFgJ0%2Fevl61PJTPj7OOzcCsKQ7mRxIxA9ousgYs0I%3D&reserved=0,
or unsubscribe
https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FBGA2ZZ5BNIMCFCYEKYWQLGDYSXL4PAVCNFSM6AAAAABDAQS4XSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRG42TKMBWGYZTOOA&data=05|02|sfwisem%40clemson.edu|a04ba9f2d5e74caea7bf08dc2947f69c|0c9bf8f6ccad4b87818d49026938aa97|0|0|638430636254555827|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|0|||&sdata=lT5WLWPEqREAU7nk7%2BY0Gnx%2FXN0mgH2WI1TWtOmB6Rc%3D&reserved=0
.
You are receiving this because you were mentioned.Message ID:
@.***>


Table Formating, page formating, broken link fixed

@v-hearya,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

patterns-practices/reference/backgroundeventsubscription-tpayload-properties-mspp-pubsubevents.md
:white_check_mark:Succeeded

patterns-practices/reference/contentcontrolregionadapter-adapt-method-mspp-regions.md
:white_check_mark:Succeeded

patterns-practices/reference/contentcontrolregionadapter-createregion-method-mspp-regions.md
:white_check_mark:Succeeded

patterns-practices/reference/delayedregioncreationbehavior-onupdatingregions-method-mspp-regions-behaviors.md
:white_check_mark:Succeeded

patterns-practices/reference/iconfirmnavigationrequest-confirmnavigationrequest-method-mspp-regions.md
:white_check_mark:Succeeded

patterns-practices/reference/inavigateasync-requestnavigate-method-uri-action-navigationresult-mspp-regions.md
:white_check_mark:Succeeded

patterns-practices/reference/inavigationaware-isnavigationtarget-method-mspp-regions.md
:white_check_mark:Succeeded

patterns-practices/reference/region-requestnavigate-method-uri-action-navigationresult-navigationparameters-mspp-regions.md
:white_check_mark:Succeeded

patterns-practices/reference/regionmanagerregistrationbehavior-onupdatingregions-method-mspp-regions-behaviors.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


API calls return {status: false} (Error 500) on deploy step

Following guide, on this step: http://serverless-stack.com/chapters/deploy-the-apis.html
Running this piece returns tokens just fine
aws cognito-idp admin-initiate-auth \
  --region us-east-1 \
  --user-pool-id $MY_COGNITO_USER_POOL_ID \
  --client-id $MY_COGNITO_APP_CLIENT_ID \
  --auth-flow ADMIN_NO_SRP_AUTH \
  --auth-parameters USERNAME=admin@example.com,PASSWORD=Passw0rd!

I take the value of idToken returned and put into the example call from the same page of the guide, replacing my values as necessary. Looks similar to:
curl https://<my-app-id>.execute-api.us-west-2.amazonaws.com/prod/notes/ \
  -H "Authorization: <my-identity-token>" \
  -d "{\"content\":\"hello world\",\"attachment\":\"hello.jpg\"}

But I get back a 500 error with the body of {success: false}
Tests run from CLI using event.json worked fine.
How could I debug this? Typically I would toss a console.log around here: https://github.com/AnomalyInnovations/serverless-stack-demo-api/blob/master/get.js#L27

Can you double check in your DynamoDB console and ensure the key names for 'notes' table are 'userId' and 'noteId'. Both key names are in camel case with capital 'I'.

They are in fact userId and noteId.
I added line that helps with debugging in this case in the try block.
catch(e) {
  callback(null, failure({status: false, error: e}));
}

This aids in debugging a bit when testing the production API. I'm seeing now it's a AccessDeniedException. The IAM user access/key I am using however has full admin access. I wonder if the mixmatch of regions I am using is affecting it?
I will follow up.

I see. Were you able to get a 200 response when invoking the lambda functions locally?

serverless webpack invoke

I was having the same issue. Mine was due to a region mismatch since my DynamoDB table was created in us-west-2 while the lambda function was set-up for us-east-1.
Specifically, insert the region where your DyanmoDB table is created in the following line Resource: "arn:aws:dynamodb:DYNAMO_DB_REGION_HERE:*:*" in serverless.yml

Closing this.


Individuals without definition

Description of the issue
We have in oeo-model a lot of individuals without definition (sorted by types):

analytical approach #1147
boolean variable #1148
data format and file format #1149
solver #1150

Type
Individual
Updated
Definition

methodical focus
econometric

methodical focus
monte carlo

methodical focus
spreadsheet

modus
active

modus
inactive

modus
passive

software framework
c++

software framework
fortran

software framework
gams

software framework
gnu

software framework
java

software framework
math prog

software framework
matlab

software framework
modelica

software framework
ms_excel

software framework
php

software framework
python

software framework
r

software framework
ruby

software framework
vba

uncertainty approach
deterministic

uncertainty approach
stochastic

At least some of them are not unambiguous without a definition. Just three examples:

Does csv only include comma-separated values or does csv any character-separated values?
What is the difference between passive and inactive?
Why is spreadsheet a methodical focus and not a data format or a software framework?

Ideas of solution
If you already have ideas for the solution describe them here
Workflow checklist

[x] I discussed the issue with someone else than me before working on a solution
[x] I already read the latest version of the workflow for this repository
[x] The goal of this ontology is clear to me

I am aware that

[x] every entry in the ontology should have a definition
[x] classes should arise from concepts rather than from words

@christian-rli : I assigned you to this issue as most of the individuals are related to software and data.

@christian-rli @Ludee : Do you already have some ideas for this issue?

We haven't gotten into this yet @l-emele . As @Ludee is getting into ontology deveopment now however, I think that this might be a good issue to begin with. I put it on our internal agenda.

@Ludee : I assigned this issue now to you. Do you already have some proposals for definitions of these individuals?

@OpenEnergyPlatform/oeo-domain-expert-energy-modelling @OpenEnergyPlatform/oeo-domain-expert-linked-open-data : Any suggestions for definitions? Maybe at least for some of these individuals? We do not necessarily have to implement all at once...

I think, that some of the individuals have the wrong type. I would describe c++, fortran, php, python etc not as software framework [^1] but as programming language [^2]:
[^1]: A software framework is a Software that is generic and can be adapted to a specific application.
[^2]: IAO_0000025: A language in which source code is written that is intended to be executed/run by a software interpreter. Programming languages are ways to write instructions that specify what to do, and sometimes, how to do it. (Not yet imported from IAO into OEO.

I will start collecting good definitions now.
Not sure how to proceed with the import from IAO.

Thanks for the help @l-emele.
I rushed in the implementation because I thought individuals are not the same as classes.
I added a copy of the definitions in the table above.
Another good option would be separate issues for each type.

Thank you very much for your proposals. They are a great start for discussion. Some comments:
abc is an analytical approach and a system design approach that xyz: These definitions break mono-hierarchy. As we dont't have system design approach in the OEO, I suggest to shorten these definitions to abc is an analytical approach that xyz. Apart from that, I like the definitions of the analytical approach individuals, as they also show the relations to other things. However, I am asking myself whether these individuals in fact subclasses. @stap-m @jannahastings , what do you think?
The individuals true and false are fine to me.
When thinking about the data formats, I am asking myself whether we have here more like a subclass hierarchy. Also I think, we have to distinguish between a data format and a file. And then something like file 'has data format' some 'data format' and `' csv file' 'has data format' some 'csv file format'. What about introducing the following subclass structure:

data format: A data format is a data descriptor that describes in which format the data is encoded. (As it is currently implemented._

file format: A file format is a data format that describes in which format data is encoded in a file.

text file format: A text file format is a file format that is structured as a sequence of lines of electronic text.

delimiter separated file format: A delimiter separated file format is a text file format that uses delimiter-separated values (also DSV) to store two-dimensional arrays of data by separating the values in each row with specific delimiter characters.
comma separated file format: A comma separated file format is a delimiter separated file format that uses comma (,) as delimiter.

binary file format: A binary file format is a file format that is not a text format. [^1]

GAMS data exchange format: A GAMS data exchange format is a binary file format used by General Algebraic Modeling System (GAMS).

microsoft excel workbook (xls): .tbd
microsoft excel workbook (xlsx): tbd
The file classes than can be implemented as equivalent classes, e.g. A character separated value file is a file that has a character separated file format with the axiom: 'comma separated value file' 'Equivalent To' some (file and 'has data format' some 'comma separated file format'. However, for that we need to define or import a general file class.
Additionally I suggest csv file as alternative term to comma separated file and csv as alternative term to  both comma separated file and comma separated file format
[^1]: Derived from https://en.wikipedia.org/wiki/Binary_file

Regarding the solvers:  I like the definition of gurobi: Gurobi is a solver to solve numerical programming tasks. ...
Others need some refinement:

coin-or lp: COIN-OR LP (CLP) is an open-source linear programming solver written in C++. ... What about: COIN-OR LP (CLP) is a solver that is written in C++ and has an open source license. This a) explicitly names the precise class solver and b) shows the relation to open source.
ibm ilog cplex optimiser: IBM ILOG CPLEX opimiser (CPLES) is a ~popular~ solver with an API for several programming languages, and also has a modelling language and works with AIMMS, AMPL, GAMS, MPL, OpenOpt, OPL Development Studio, and TOMLAB. Free for academic use.
Similar changes to the other solvers...

Oops, that is now a very long comment. Maybe it is worth to create a separate issue for

the data/file (format)s
the solvers

Hi Lukas,
thank you for this detailed comment.
I had the same thoughts on the data formats and your suggestion includes and combines everything very nicely.
Let's discuss them in separate issues.

I'll remove the release milestone from the meta issue, as the sub-issues are tracked and discussions are still ongoing.

In my view the following are not instances of software framework but programming languages

c++
fortran
java
php
python
r
ruby
vba

To me, it is hard to define, what differentiates each of these programming languages. But maybe it is enough, do specify where these programming languages come from. Also as the individuals are proper nouns or abbreviations I suggest to capitalise the labels. So here are some proposals for definitions:

C++: C++ is a programming languages designed by Bjarne Stroustrup and standardised by ISO/IEC.
Fortran: Fortran is a programming language designed by John Backus, developed by IBM and standardised by ISO/IEC.
Java: Java is a programming language designed by James Gosling and developed by Oracle.
PHP: PHP is a programming language designed by Rasmus Lerdorf.
Python: Python is a programming language designed by Guido van Rossum and developed by the Python Software Foundation.
R: R is a programming language designed by Ross Ihaka and Robert Gentleman and the R Core Team.
Ruby: Ruby is a programming language designed by Yukihiro Matsumoto.
VBA: VBA is a programming language based on Visual Basic and developed by Microsoft for use within the Microsoft Office software package.

Matlab is a special case, I think there are two entities to differentiate: A software framework and the programming language the software framework uses; Wikipedia describes it as: MATLAB (an abbreviation of "MATrix LABoratory" is a proprietary programming language and numeric computing environment developed by MathWorks. So I suggest two individuals:

Rename the existing matlab to Matlab software framework and define it as: The Matlab software framework is a proprietary software framework developed by MathWorks that uses the Matlab programming language.
Add an individual: `The Matlab programming language is a programming language developed by MathWorks for use in the Matlab software framework._

Both individuals could get the alternative label Matlab. The reason to split Matlab into two is that users of the OEO can then differentiate. Also there is third-party that can use code written in the Matlab programming language, for example GNU Octave. R might be a similar case, but I do not now enough about that programming language.
Sources: Wikipedia pages of the respective programming languages.

For almost a year, no one reacted and especially no one objected to my proposals above. So I will implement the definitions for the programming languages now.

SWO unfortunately has no nice definitions for their classes, but contails classes for plenty of languages. We should map them, once we introduced the "skos:close to" annotation.

I updated the table in the issue start for the individuals we already updated.
Regarding the remaining:

class methodological focus with individuals monte carlo, econometric and spreadsheet => I think this whole concept needs a restart, I'll open a separate issue for that.
gams: Like with Matlab, I think we need to differentiate here between the software framework and  the programming language.

General Algebraic Modeling System: The General Algebraic Modeling System (GAMS) is a proprietary software framework developed by GAMS Development Corp. that uses the GAMS programming language. (Alternative label: GAMS)
GAMS programming language: The GAMS programming language is a programming language developed by GAMS Development Corp. for use in the General Algebraic Modeling System. (Alternative label: GAMS)

class uncertainty approach with individuals deterministic and stochastic => Sounds like qualities of models, I'll open a separate issue for that.


Speedgoose, TypeError: Cannot read properties of null (reading '_id')

i don't know why but it speedgoose is giving me typeerror that cannot read properties of id when trying query a single document in a collection. It is working fine if collection is not empty and it does not throw any errors but in case of empty collection it is throwing me error.
    static async stats(
        req: Request<TGetProductSchema>,
        res: Response,
        next: NextFunction,
    ) {
        try {
            const product = await ProductModel.findOne({})
                .sort({ price: -1 })
                .limit(1)
                .cacheQuery();
            ResponseService.sendResponse(res, 200, true, {
                max_price: (product?.price || 0) + 10,
            });
        } catch (error) {
            console.log(error);
        }
    }

this is the whole error
TypeError: Cannot read properties of null (reading '_id')
    at generateCacheKeyForSingleDocument (/home/madara/Documents/main/server/node_modules/speedgoose/lib/src/utils/cacheKeyUtils.js:22:30)
    at getHydratedDocument (/home/madara/Documents/main/server/node_modules/speedgoose/lib/src/utils/hydrationUtils.js:29:76)
    at hydrateResults (/home/madara/Documents/main/server/node_modules/speedgoose/lib/src/utils/hydrationUtils.js:57:123)
    at prepareQueryResults (/home/madara/Documents/main/server/node_modules/speedgoose/lib/src/extendQuery.js:19:101)
    at execQueryWithCache (/home/madara/Documents/main/server/node_modules/speedgoose/lib/src/extendQuery.js:34:16)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

To check, thanks for another catch!

Fixed in<EMAIL_ADDRESS>please retest and close the ticket.
Btw i've noticed that you're fetching the data streight from the db and passing it directly to the response. To speed up your app i sugesst You to use the lean() option to avoid unnecessary hydration (which might take a few ms per each document.

Thanks for advice.


Add use cases to strategy

Reference

https://docs.google.com/document/d/1J4vtH3C_s_VI1qVw7GyjnFYAEilTB_6ZMRn4X_00UvY/edit#
https://docs.google.com/document/d/1k7w-sgK3T4B_kLi9wuEIvvMdRp4hPd0YtsUt0UpwvsU/edit#
https://docs.google.com/document/d/1VF07uhoxRVw4VO0Vhrrk_AjDTeVdJYUGSTYdvGtCzLg/edit#

Closing this since it looks like we're using some other process.


Can't run on Windows 10 with Python 2.7.13

Found a bug? Please fill out the sections below. 👍
Issue Summary
Can't run on Windows 10 64 bit with Python 2.7.13 64 bit.
Traceback (most recent call last):
  File "manage.py", line 12, in <module>
    execute_from_command_line(sys.argv)
  File "F:\company\env\lib\site-packages\django\core\management\__init__.py", line 363, in execute_from_command_line
    utility.execute()
  File "F:\company\env\lib\site-packages\django\core\management\__init__.py", line 355, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "F:\company\env\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "F:\company\env\lib\site-packages\django\core\management\commands\runserver.py", line 62, in execute
    super(Command, self).execute(*args, **options)
  File "F:\company\env\lib\site-packages\django\core\management\base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "F:\company\env\lib\site-packages\django\core\management\commands\runserver.py", line 101, in handle
    self.run(**options)
  File "F:\company\env\lib\site-packages\django\core\management\commands\runserver.py", line 110, in run
    autoreload.main(self.inner_run, None, options)
  File "F:\company\env\lib\site-packages\django\utils\autoreload.py", line 332, in main
    reloader(wrapped_main_func, args, kwargs)
  File "F:\company\env\lib\site-packages\django\utils\autoreload.py", line 303, in python_reloader
    exit_code = restart_with_reloader()
  File "F:\company\env\lib\site-packages\django\utils\autoreload.py", line 289, in restart_with_reloader
    exit_code = subprocess.call(args, env=new_environ)
  File "c:\python27\Lib\subprocess.py", line 168, in call
    return Popen(*popenargs, **kwargs).wait()
  File "c:\python27\Lib\subprocess.py", line 390, in __init__
    errread, errwrite)
  File "c:\python27\Lib\subprocess.py", line 640, in _execute_child
    startupinfo)
TypeError: environment can only contain strings

Steps to Reproduce
An initial project, haven't edit any files.
Technical details
python --version
Python 2.7.13

pip freeze
beautifulsoup4==4.6.0
certifi==2<IP_ADDRESS>
chardet==3.0.4
Django==1.11.3
django-modelcluster==3.1
django-taggit==0.22.1
django-treebeard==4.1.2
djangorestframework==3.6.3
html5lib==0.999999999
idna==2.5
olefile==0.44
Pillow==4.2.1
pytz==2017.2
requests==2.18.2
six==1.10.0
Unidecode==0.4.21
urllib3==1.22
wagtail==1.11.1
webencodings==0.5.1
Willow==0.4

Seems like an error related to Python & not directly Wagtail.
You probably have a non-ASCII character inside the path to your Wagtail project. Renaming the folder(s) containing unicode should fix the problame.

@BertrandBordage The project is under F: root directory, doesn't have any non-ASCII character in the project.

I suspect this is https://code.djangoproject.com/ticket/28174 - upgrading to Python 3 or downgrading Django to 1.10.x should resolve it.

(Funny to have a Windows report by someone called @gotounix ^^)

#28174 is fixed in the latest Django release 1.11.4, and everything will be OK.


Set up adoption pipeline

Discuss the possibility of Tezos Commons directing startups to Homebase

Brainstorm and discuss potential user acquisition strategies that involve directing users from Tezos grants.

Write pieces on DAO governance with Homebase that could go viral.
Identity key influencers who can retweet it
Make a specific ask in that so that people or groups whose interest is piqued have a clear pathway to get started.


Page doesn't load when platform.twitter.com is unresponsive

Possibly related to the current AWS outage, I'm observing that http://melpon.org/wandbox/ doesn't load (it just hangs forever).
The HTTP request that it's waiting on is a GET of http://platform.twitter.com/widgets.js , i.e., this line: https://github.com/melpon/wandbox/blob/84dcce441138f2e83927a161aba306f9e20e7186/kennel2/src/root.tmpl#L68
It would be very nice if the page would still load even when platform.twitter.com is down. I'm not sure of the details, but I imagine that basically you could load the page and then make the request to Twitter in the background, populating the Twitter-dependent widgets only once the response was received.

@melpon
Quick fix way: Replace it to: <script src="//platform.twitter.com/widgets.js" async></script>

@Quuxplusone fixed. Thank you for reporting.
@fetus-hina Thank you for your advice.


Move Umbrel installation to ~/umbrel

You're sometimes using /home/umbrel instead of /home/${FIRST_USER_NAME}, but that is in files, which aren't parsed by pi-gen, but run on the final system. I think you should add a sed command in the XX-run.sh file everywhere this problem occurs, to make changing the username easier. I can also do this in a separate PR later.

You're 100% right.

I think you should add a sed command in the XX-run.sh file everywhere this problem occurs, to make changing the username easier.

This would be very neat!


Are there any way to check the availability of a certain CIDR range via using API

Let say I wanna allocate a subnet from within a certain CIDR range, from my administration application, via using API request. I just wanna make sure this CIDR range is available and not overlapped with others.
At this moment, can I do that with API request, to IPAM engine?

Hi @trandangtri, this is an excellent use case!
Just to be clear, we're talking about checking if a CIDR is in use withing a specific Space/Block, correct?
Whould an API like this make sense:
/api/spaces/ExampleSpace/blocks/ExampleBlock/cidrCheck
Or perhaps this might fit better under the Tools section:
/api/tools/cidrCheck
What are your thoughts here?

Hi @DCMattyG
Thanks for your response. Meant, we didn't support this function at this moment yet?
In that case, did you know are there any way to work around?
Highly appreciated

Hi @DCMattyG
Thanks for your response. Meant, we didn't support this function at this moment yet?
In that case, did you know are there any way to work around? Highly appreciated

Hey @trandangtri, there's not workaround within the product today, but perhaps you could do some calculations using something like the netaddr library in Python. Not sure what environment you're using here.
I can get this feature added in fairly quickly. I'm finishing up some major updates this week, so I can likely have this done by the end of this month. Did you have a preference on how this API should be presented (from my comment above)?

Hi @DCMattyG . That sounds great, thanks for support.
In general speaking, I prefer option #2, where I don't need to specify Space and Block as required. If I want to, I could do that with arguments.
/api/tools/cidrCheck
Regards

I'm on it @trandangtri!
I'll begin working on this right away 👍

Good afternoon @trandangtri, I wanted to run this by you...
Given an input CIDR of something like "<IP_ADDRESS>/16", would a response like the following make sense:
[
  {
    "name": "Test-vNET",
    "id": "/subscriptions/13599e70-8675-4012-ba4d-7508a8b9fd1e/resourceGroups/RG-TESTING/providers/Microsoft.Network/virtualNetworks/Test-vNET",
    "resource_group": "rg-testing",
    "subscription_id": "13599e70-8675-4012-ba4d-7508a8b9fd1e",
    "tenant_id": "9a885645-7e98-4479-8ae3-4118e0c13594",
    "prefixes": [
      "<IP_ADDRESS>/24"
    ],
    "containers": []
  },
  {
    "name": "Services-vNET",
    "id": "/subscriptions/57ff49dd-d5b5-48cb-b920-c5f0593c7f5b/resourceGroups/RG-SERVICES/providers/Microsoft.Network/virtualNetworks/Services-vNET",
    "resource_group": "rg-services",
    "subscription_id": "57ff49dd-d5b5-48cb-b920-c5f0593c7f5b",
    "tenant_id": "9a885645-7e98-4479-8ae3-4118e0c13594",
    "prefixes": [
      "<IP_ADDRESS>/16"
    ],
    "containers": [
      "/spaces/TestSpace/blocks/TestBlock"
    ]
  },
  {
    "name": "Marketing-vNET",
    "id": "/subscriptions/4bf4a48d-aa55-4c03-b575-fb612f52a218/resourceGroups/RG-MARKETING/providers/Microsoft.Network/virtualNetworks/Marketing-vNET",
    "resource_group": "rg-marketing",
    "subscription_id": "4bf4a48d-aa55-4c03-b575-fb612f52a218",
    "tenant_id": "9a885645-7e98-4479-8ae3-4118e0c13594",
    "prefixes": [
      "<IP_ADDRESS>/16"
    ],
    "containers": []
  }
]

You can see here it would show you all overlapping vNET's, and call out the ones that are container within existing Spaces/Blocks if such an association exists.
Is this what you are looking for?

Such wonderful. Although my initialized thought is to check the availability of a certain CIDR range, but in case we are able to dive deeper into the existing ranges like your response example, I would love to have a distinct container info:
[
  {
    "name": "Services-vNET",
    "id": "/subscriptions/57ff49dd-d5b5-48cb-b920-c5f0593c7f5b/resourceGroups/RG-SERVICES/providers/Microsoft.Network/virtualNetworks/Services-vNET",
    "resource_group": "rg-services",
    "subscription_id": "57ff49dd-d5b5-48cb-b920-c5f0593c7f5b",
    "tenant_id": "9a885645-7e98-4479-8ae3-4118e0c13594",
    "prefixes": [
      "<IP_ADDRESS>/16"
    ],
    "containers": [
      {
        "space": "TestSpace",
        "block": "TestBlock"
      }
    ]
  }
]

Then, I don't need to work on string parsing anymore, if I need to retrieve further information. Just my 2 cents

Hi @trandangtri, I've implemented this new API in the latest code changes from PR #181. Please restart your IPAM App Service to pull down the latest containers for testing.

Here's the details from the API Docs page:

Please give it a test and let me know if it meets all of your expectations. Thanks so much!

Good morning @trandangtri, just wanted to check-in with you on this item. Please let me know once you've had a chance to test everything out and have verified that the new API (above) meets your requirements.
Much appreciated!

Hi @trandangtri, I know it's been a while but I wanted to see if you've had a chance to test out this functionality and are satisfied with the implementation.
Let me know when you can, thanks so much!

Good afternoon @trandangtri, I'm circling back one last time before closing out this issue. Have you been able to test everything out, and if so is everything looking good or perhaps is there anything we need to tweak about this solution?
Appreciate the feedback!

Hey there @trandangtri, as this item has been addressed for quite some time now, I'm going to close this issue for the time being. If for any reason you aren't satisfied with the provided fix, please feel free to either re-open this issue or file a new one, and I'll make sure we get everything working as you expected.
Thanks for the contribution, and know we're always here if there's anything else you ever need. Thank you!


Error when compile when I try to run on the device

I develop in Microsoft Visual Studio 2015 with Visual Studio Tools for Apache Cordova.
when I try to compile the "device" the following error occurs:
Severity	Code	Description	Project	File	Line	Suppression State
Error		FAILURE: Build failed with an exception.	Pokemon JS		1
Error		* What went wrong:	Pokemon JS		1
Error		A problem occurred configuring root project 'android'.	Pokemon JS		1
Error		> Could not resolve all dependencies for configuration ':_debugCompile'.	Pokemon JS		1
Error		 > Could not find any version that matches com.google.android.gms:play-services-ads:+.	Pokemon JS		1
Error		 Searched in the following locations:	Pokemon JS		1
Error		 https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/maven-metadata.xml	Pokemon JS		1
Error		 https://repo1.maven.org/maven2/com/google/android/gms/play-services-ads/	Pokemon JS		1
Error		 file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-ads/maven-metadata.xml	Pokemon JS		1
Error		 file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-ads/	Pokemon JS		1
Error		 Required by:	Pokemon JS		1
Error		 :android:unspecified	Pokemon JS		1
Error		* Try:	Pokemon JS		1
Error		Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.	Pokemon JS		1
Error		Error code 1 for command: cmd with args: /s,/c,""d:\projetos\Pokemon JS\Pokemon JS\platforms\android\gradlew" cdvBuildDebug -b "d:\projetos\Pokemon JS\Pokemon JS\platforms\android\build.gradle" -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"	Pokemon JS		1

**_"Pokemon JS" is the name of my app_**

See: Could not find any version that matches com.google.android.gms:play-services-ads:+.
It seems that you failed to get the library from Maven repo...
Did you install the android extras libraries and repos?


gradients and the PBC module?

hello -- is it possible to perform geometry optimizations / transition state searches in periodic systems with PySCF? I don't see any modules: is it right or am I missing something?
thanks,
Mario

Gradients are currently available w.r.t. the internal coordinates of the
atoms in the cell, but not w.r.t. the lattice parameters of the cell.
On Sun, Jun 21, 2020 at 4:01 PM mariomotta<EMAIL_ADDRESS>wrote:

hello -- is it possible to perform geometry optimizations / transition
state searches in periodic systems with PySCF? I don't see any modules: is
it right or am I missing something?
thanks,
Mario
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/pyscf/pyscf/issues/642, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN5NRDQKF3SAHABSTKO5YLRX2GNHANCNFSM4OECADBA
.

Hi Mario, pyscf.pbc.geomopt module can do internal coordinates relaxation uses geomeTRIC library. Some notes to keep in mind is that the gradient module currently supports only FFTDF with no ewald correction(Unless range separated Coulomb is used, ewald corrections yields zero contribution to the nuclear gradient, so it's fine to  just do mf and geometric optimization with exxdiv=None).


Implement a Fit Score(?) Algorithm

Implement function or methods to measure how well the created models fit to training data

Further discussion will be made under issue #52


Query task group state failed in rust.

When I query task group state in rust, it returns err: (InvalidFormat, parse json string error: value=Download, err: (InvalidParam, unknown trans group type: Download, None), None)
rust code:
stack.trans().get_task_group_state(TransGetTaskGroupStateOutputRequest {         common: NDNOutputRequestCommon {             req_path: None,             dec_id: None,             level: NDNAPILevel::Router,             target: Some(ood_id.clone()),             referer_object: vec![],             flags: 0,         },         group: group_id.clone(),         group_type: TransTaskGroupType::Download,         speed_when: None,     }).await

This should be caused by the inconsistency between the default serde codec format of the TransTaskGroupType enumeration type and the ToString trait implementation
Request initiation side (cyfs-lib)
TransGetTaskGroupStateOutputRequest uses the serde macro implementation
https://github.com/buckyos/CYFS/blob/e5e8b3a8f801755cfcaf58eda98727c9fe9dafc8/src/component/cyfs-lib/src/trans/output_request.rs#L259-L265
Receiving request side (cyfs-stack)
TransGetTaskGroupStateInputRequest uses the older JsonCodec encoding, while the encoding of the TransTaskGroupType field here uses the FromString implementation, and required is all lowercase
So the problem is either that the FromtStr trait implementation of TransTaskGroupType is compatible with both forms of strings, or TransTaskGroupType needs to use a uniform encoding

The json encoding of TransTaskGroupType has been fixed using serde_with crate and is now based on the ToString(Display trait) and FromStr trait implementations, consistent with the JsonCodec implementation:
https://github.com/buckyos/CYFS/blob/8dca8fcd207d9ca57a3255f644dcc091553d179f/src/component/cyfs-lib/src/trans/output_request.rs#L225-L230

Great job, looking forward to using the new version soon


add bypass.hunger

treats hunger like you're in peaceful

Discussed on discord.

Players which have all permissions * will not lose hunger, which might be annoying / confusing for some players


Parses self-closing tags differently than the "old way"?

I'm using the following XML string for some pugixml unit tests:
string buffer =
            "<?xml version='1.0' encoding='ASCII' ?>\n"
            "<Parent file='test' md5sum='8e5db7acffe6249ba3351f50c7e9eb5f' version='1.0' >\n"
            "\t<Child1 child1_attribute='child1_attribute_value' />\n"
            "</Parent>";

When I load this buffer with the following code:
	pugi::xml_document doc;
	doc.load_string(buffer.c_str());

The resulting DOM object has the right data.  However, if I use the old style tag, or if I add text to the Child1 element, e.g.:
"\t<Child1 child1_attribute='child1_attribute_value' ></Child1>\n"
or
"\t<Child1 child1_attribute='child1_attribute_value' >child1_text</Child1>\n"
the DOM object is incorrect.  What happens is that the Child1 node magically gets another child node with a null name, and has a value of "Child1".  I've tried to force my code to ignore this extra node by comparing the type to node_null, but that doesn't appear to work.
Since I'm new to pugixml, I figure I could be doing something wrong -- however, I don't think that's the case, because of the difference in behavior between the self-closing tag and non-self-closing tag.

In your second example, you should expect that Child1 node has a child with type node_pcdata and value child1_text. See https://pugixml.org/docs/manual.html#node_pcdata.
In your first example, there's no text between the opening and closing tag so there should be no children - the tree representation should be exactly the same between <child1/> and <child1></child1>.


rails admin with active storage and private S3 bucket often uploads files twice

I'm using rails_admin to upload multi-gigabyte files to active_storage. often after the progress indicator reaches 100% it starts from 0% again uploading the file a second time.
Sometimes killing the duplicate upload leaves the file intact, while sometimes this leaves the file in a corrupted state.
The files are being saved with active storage to a private S3 bucket.
This is mostly just the default config for rails admin and active storage. Any idea what the issue could be?
is it perhaps related to the AWS consistency model similar to https://github.com/rails/rails/pull/37901?
rails, activerecord, activestorage: <IP_ADDRESS>
rails_admin: 2.0.2
aws-sdk-s3: 1.73.0

I think I found the problem
The server was timing out after 30 seconds, I'm not sure exactly why that would cause it to upload twice, but this seems to be the determining factor of when it happens.


branch-2.1 fix TLoadTxnBeginRequest backend_id's field no

Make backend_id's field no the same with master branch.
For upgrading, change backend_id's field no is safe, because old fe can torrent with TLoadTxnBeginRequest not setting backend id.

run buildall


busybox: 1.25.1 -> 1.26.1

busybox is part of stdenv, right? This is why I am sending this to staging...

No, it's not part of stdenv directly. (A copy of busybox is included in the stdenv bootstrap tools, but those must be updated manually.) So this can go to master directly.


Korean text is not rendered properly

Windows Terminal version
1.19.10302.0
Windows build number
10.0.22621.3155
Other Software
No response
Steps to reproduce
Certain Korean text doesn't render properly. Example
curl.exe https://gist.githubusercontent.com/pandaninjas/388ef63712016c853675dd33f0ab6864/raw/7c4f5b1d3107b2ee60c6a78d7c3a3e882ec2ebd2/korean-text.txt
Expected Behavior
Renders properly. Ex:

Actual Behavior
Korean text is printed weirdly

I think Terminal is correct here. The text file you provided contains two letters ᄅ(U+1105) and ᅳ(U+1173).
The browser seems to be combining those two together to render them as 르(U+B974), which I don't think should be happening.

I think Terminal is correct here.

It used to be correct! But nowadays, terminals are supposed to mostly handle grapheme clusters as per UAX#29 correctly (the Unicode Text Segmentation standard). The width of a glyph is the maximum width of each character in a grapheme cluster as per UAX#11 (the East Asian Width standard).
The two glyphs are syllable type L (leading consonant) and V (vowel), as per:

https://codepoints.net/U+1105?lang=en
https://codepoints.net/U+1173?lang=en

UAX#29 specifies that L×V do not break apart, which means that Windows Terminal has at least 1 bug: It should treat 르 as a single unit for cursor navigation, etc.
I'm not entirely sure whether 르 should be drawn as 르, because I'm not a native Korean speaker. But given the above it should definitely only get allocated 1 cell, which would mean that it should be drawn as 르, because it won't fit otherwise. I believe the only reason it currently gets drawn as 르 is because we rely on DirectWrite whose builtin support for modern Unicode is still incomplete. For instance, you can try pasting 르 into Word and it'll be broken just like it is in Windows Terminal. Both are built on top of DirectWrite. 😕

Found the answer: https://devblogs.microsoft.com/oldnewthing/20201009-00/?p=104351
tl;dr: Windows (DirectWrite) does it ""right"" but they're literally the only one to do so, which is why Windows is effectively wrong. There's no alternative to DirectWrite though... Hmm, I hope I can figure something out because normalizing the input text to NFC first would be super awkward and make performance optimizations difficult.


Add campaign-admin to CMS_TEST=1 on travis

We want to remove this implicit dependency (through cms)
by fully decoupling campaign-admin (https://github.com/silverstripe/silverstripe-campaign-admin/issues/1),
but for now this is required.

Improves tests even though it doesn't fix all of them.