Enhance module code for student

This PR fixes #57
Changes to Student Model

Student now contains a mandatory filed of a set of moduleCode

Changes to StudentParser

StudentParser now parse multiple moduleCodes
student n/StudentName m/CS2001 m/CS2101 m/CS2102...

Changes to EditCommand

User can edit the list of moduleCodes by adding or removing moduleCode from the set of moduelCodes

** Storage**

created JsonAdaptedModuleCode to ease storage of moduleCodes for students

UI change

displays moduleCodes or moduleCode in dark purple box

Codecov Report

Merging #60 (69688c7) into master (92b235e) will decrease coverage by 0.76%.
The diff coverage is 57.74%.

@@             Coverage Diff              @@
##             master      #60      +/-   ##
============================================
- Coverage     62.14%   61.38%   -0.77%
+ Complexity      464      463       -1
============================================
  Files            87       88       +1
  Lines          1749     1805      +56
  Branches        208      219      +11
============================================
+ Hits           1087     1108      +21
- Misses          566      589      +23
- Partials         96      108      +12

Impacted Files
Coverage Δ

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

...in/java/seedu/address/logic/parser/ParserUtil.java
74.19% <0.00%> (-7.95%)
:arrow_down:

...edu/address/logic/parser/StudentCommandParser.java
6.25% <0.00%> (-0.42%)
:arrow_down:

src/main/java/seedu/address/ui/PersonCard.java
0.00% <0.00%> (ø)

.../java/seedu/address/model/util/SampleDataUtil.java
31.57% <37.50%> (+11.57%)
:arrow_up:

...java/seedu/address/logic/commands/EditCommand.java
71.92% <63.63%> (-0.46%)
:arrow_down:

...a/seedu/address/storage/JsonAdaptedModuleCode.java
80.00% <80.00%> (ø)

.../main/java/seedu/address/model/person/Student.java
75.00% <88.88%> (-11.37%)
:arrow_down:

...in/java/seedu/address/model/person/ModuleCode.java
81.81% <100.00%> (+11.81%)
:arrow_up:

...address/storage/JsonAdaptedPersonDeserializer.java
77.77% <100.00%> (ø)

... and 7 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Can't import existing datadog service integration

What happened?
When attempting to import any existing datadog service integration, I receive the following error:
terraform import module.app.module.databases.aiven_service_integration.pg_reporting_datadog_integration <my project>/<my id>

Error: cannot copy api response into terraform schema: Invalid address to set: []string{"datadog_user_config"}

Other service integrations can be imported just fine.
What did you expect to happen?
Expect to be able to successfully import existing datadog service integrations
What else do we need to know?
terraform --version
Terraform v1.2.8
on darwin_arm64
+ provider registry.terraform.io/aiven/aiven v3.5.1
+ provider registry.terraform.io/cyrilgdn/postgresql v1.14.0
+ provider registry.terraform.io/datadog/datadog v3.14.0
+ provider registry.terraform.io/hashicorp/aws v4.28.0
+ provider registry.terraform.io/hashicorp/external v2.1.0
+ provider registry.terraform.io/hashicorp/google v4.34.0
+ provider registry.terraform.io/hashicorp/google-beta v4.34.0
+ provider registry.terraform.io/hashicorp/random v3.1.0
+ provider registry.terraform.io/strongdm/sdm v3.2.1

Hi @victorcatalyst!
Could you kindly share more details or probably you tf file (wo sensitive data) please?
This page might help with knowing "what's going on" https://www.terraform.io/internals/debugging
Or you can update provider to the latest version (v3.6.0) and try again.
Thanks!

Awesome, great news. Ill upgrade to the next build and try this out


feat: text nested variants

Summary
Fixes an issue reported on Discord.
If there are two text nodes with a parent <-> child relationship, there was a bug where the child's variants would override the parent's variants. This PR fixes that by ensuring variants are rolled out from the child to the parent, so every node now has the correct variant attached. It also supports cases where React Native Text nodes inherit parent styles, similar to regular React Native behavior.
For:
<React.Fragment>
      <ThemedText type="title">
        Parent
        <ThemedText>
          Amother ThemedText
        </ThemedText>
      </ThemedText>
      <ThemedText type="title">
        Parent
        <Text>
          RN Text
        </Text>
      </ThemedText>
</React.Fragment>

We should get following result:

Requires regression testing before merging for #433

Looks good with variants nested Pressables regression


Interpreter Zoo

As I've been thinking about common effects and compatibility with existing libraries, I started thinking about an interpreter zoo.
The main thing that comes to mind is the pile of logging abstractions and exception handlers floating around Hackage.
It makes some kind of sense for common effects (Input, Output, State, etc.) to live in the polysemy "core" since they can be defined without any dependencies, but interpreters potentially require arbitrary dependencies. If there's an identifiable common API between these log libraries, for instance, the effect could be written once in polysemy, then a user could use polysemy-co-log or polysemy-monad-logger or whatever rather than writing their own interpreters.
To this end, it'd be interesting to work on an ecosystem of interpreters for a variety of primitive effects. Mainly because there are some non-trivial optimizations that need to happen (late specialization, INLINE pragmas, your compiler plugin, etc.) to make things really fast, and paying that cost the minimum number of times would be nice.
Is this sensible? Or is the vision for the library that it ought to be easy enough to write these interpreters that having "blessed" configurations would be unnecessary? On the other hand, are interpreters so application-specific as to make sharing them sort of pointless?

My dream is to turn all "implementation details" into library code, which only works if there's a library to put them in!
I agree with trying to keep the core library as lightweight as possible. To that end I've been thinking about a polysemy-contrib where users can open PRs for any effects/interpreters they write and find useful. Clearly beneficial ones should eventually end up in polysemy proper. Common dependencies (bytestring, text, transformers, lens, etc) would be fine to pull into polysemy-contrib, but I'd prefer to keep it away from dependencies we wouldn't expect people to already have in their project.
In addition, I'm ok with writing lots of similar-feeling effects, eg Input/Reader, Trace/Output/Writer, so long as we choose one to be the "official" effect, and provide interpretations to/from the official one. c.f. runTraceAsOutput.
More exotic dependencies can indeed live in their own packages, polysemy-co-log or something.
The Random effect is a good example of something that should probably live in polysemy-contrib as a starting point.
If this makes sense to you, I'd love any help I can get in making it a reality!

Along those lines, here are a list of some interpreters I think should exist in polysemy but I haven't gotten around to writing yet:
type InterpreterOf e r = forall x. Semantic (e ': r) x -> Semantic r x
type ReinterpretationOf e e' r = forall x.   I've got a version of that.  Should there be multiple random effects or should they somehow have the same interface and there be different interpretations?  That question exists in the logging space as well.
If you collect them, it's be good to have some coding guidelines, as well as some---hmm--philosophical (?) ones about what sorts of interpreters to include or not and whether to provide the convenience of (mtl) compatibility where possible with instances of constraints.
Anyway, I'd be pleased to see this happen and happy to contribute.  I've got the random-fu thing.  Also a log thing that probably doesn't belong until I re-write it in terms of your output stuff.

I'm absolutely interested! I'd prefer for only one Random effect, with interpreters to transform between them, but I wouldn't fight for it if it doesn't seem worthwhile.
Coding guidelines and philosophy are a good idea; @pkinsky, @cassiebaer, @runarorama, @Voltir, @tathougies --- IIRC, we used to have some documentation on this at Takt. Do you recall what our guidelines behind writing new effects and interpreters was?

I guess the next actions here are for me to write up these guidelines!

You could also start a library, structured how you like and then I'd be happy to add a PR for random-fu and then you can decide what you don't like about that and guidelines might evolve from that? Either way.  I'm happy to wait until some exist also.
I don't think it'd be so easy to make one effect two interpretations without taking a pretty strong stand on how randomness ought to work.  The "primitives", are quite different. Maybe they are isomorphic in a way I don't see but, well, I don't see it.
Also, maybe it's better to let the zoo be a little zoo-ish?  And then occasionally use acquired clarity about what is good and useful or what can be generalized or whatever to promote things to the core lib?

Welcome to the zoo: https://github.com/isovector/polysemy-zoo/


[MNOE-205] Add style to unlock page

@x4d3 @ouranos

@ouranos  corrected.
Thanks.

All good, I'll merge it against 3.0 as that can be regarded as a bug introduced back then


Prometheus crashes if it can't write logs to /tmp

Bug Report
What did you do?
We copy the Prometheus binary into a from-scratch Docker container and run it as a non-root user to reduce our footprint and threat surface. This is a practice we follow with all applications we run in our Kubernetes environment. Recently we upgraded to prometheus v2.4.2 from v2.3.0, where in both cases we were running in containers using this method.
What did you expect to see?
Prometheus should run fine, as v2.3.0 seemed to.
What did you see instead? Under which circumstances?
Prometheus is repeatedly crashing with this error:
W1026 14:54:21.157256       1 reflector.go:341] github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:306: watch of *v1.Pod ended with: too old resource version: 19430593 (19430983)
log: exiting because of error: log: cannot create log: open /tmp/prometheus.prometheus-75f465d4d4-hjztt.unknownuser.log.WARNING.20181026-145421.1: no such file or directory

This seems to be a glog error message which occurs when glog can't write a logfile. However, I don't want glog writing to any files at all; it should write all logs to stderr, since we are running in a Docker container and want to delegate log management to Docker. However, I see no way to configure Prometheus or glog to not log to files.
glog apparently has a --logtostderr flag, but it's not being exposed by Prometheus.
Note that the crash is ALWAYS preceded by a warning log from Kubernetes service discovery, so this may be the source of the bug.
This error was also reported on coreos/prometheus-operator here: https://github.com/coreos/prometheus-operator/issues/1932 Notice that the crash in that report is ALSO preceded by a warning from Kubernetes service discovery.
Environment

System information: no uname in a scratch container.

Prometheus version:

prometheus, version 2.4.2 (branch: HEAD, revision: c305ffaa092e94e9d2dbbddf8226c4813b1190a0)
  build user:       root@dcde2b74c858
  build date:       20180921-07:22:29
  go version:       go1.10.3

Logs:

W1026 14:54:21.157256       1 reflector.go:341] github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:306: watch of *v1.Pod ended with: too old resource version: 19430593 (19430983)
log: exiting because of error: log: cannot create log: open /tmp/prometheus.prometheus-75f465d4d4-hjztt.unknownuser.log.WARNING.20181026-145421.1: no such file or directory

Related issue: https://github.com/kubernetes/kubernetes/issues/61006

It is possible to set the flag programmatically, so we should look into doing that, I think.

Ah, glog :roll_eyes:
FWIW I'm working on moving Prometheus to use Go modules and it should be possible then to replace the use of glog by https://github.com/kubermatic/glog-gokit hopefully

Just a painkiller instead of a cure, but it will take a long time until we actually get to remove glog from Kubernetes, so a good option I think @simonpasquier. I'm all for doing that.

@brancz fyi, we have klog now in main k/k repo (fork of glog with some stuff fixed)


Unable to execute '$make third_party' command on Google colab with "Source installation on linux"

What version of OR-Tools and what language are you using?
Version: or-tools 9.0.9048
Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
Not yet installed or-tools
What operating system (Linux, Windows, ...) and version?
Ubuntu-18.04-LTS on Google Colab
What did you do?
Steps to reproduce the behavior:
---On Colab---
1 : !sudo apt-get install python3-dev python3-pip python3-venv python3-six
2 : !python3 -c "import platform; print(platform.architecture()[0])"
3 : !git clone https://github.com/google/or-tools
4 : !ls
5 : !cd or-tools/
6 : !make third_party
What did you expect to see
I expected the make file to be executed by building the source of third party packages.
What did you see instead?
I saw the error message :
'make: *** No rule to make target third_party.  Stop.'
Make sure you include information that can help us debug (full error message, model Proto).
My colab notebook on github is here
Anything else we should know about your project / environment
On Google cloud (gcp always free tier) :
I attempted same steps on the gcp terminal  :
Commands :
$sudo apt-get install python3-dev python3-pip python3-venv python3-six
$python3 --version
$python3 -c "import platform; print(platform.architecture()[0])"
$python3 -m pip --version
$git clone https://github.com/google/or-tools
$cd or-tools
$make third_party
But for the final 'make third_party' command,  I again got an error :
make: *** [makefiles/Makefile.third_party.unix.mk:210: dependencies/install/lib/libprotobuf.a] Error 1 :
Output message on gcp is :
cloudshell:~/or-tools$ make third_party
/bin/sh: - : invalid option
/bin/sh: - : invalid option
/bin/sh: - : invalid option
cd dependencies/sources/protobuf-v3.15.8 &&
   /usr/bin/cmake -Hcmake -Bbuild_cmake
    -DCMAKE_PREFIX_PATH="/home/vikranth_info/or-tools/dependencies/install"
    -DCMAKE_BUILD_TYPE=Release
    -DCMAKE_CXX_STANDARD=17
    -DCMAKE_CXX_STANDARD_REQUIRED=ON
    -DCMAKE_CXX_EXTENSIONS=OFF
    -DCMAKE_POSITION_INDEPENDENT_CODE=ON
    -DBUILD_SHARED_LIBS=OFF
    -DBUILD_TESTING=OFF
    -Dprotobuf_BUILD_TESTS=OFF
    -Dprotobuf_BUILD_EXAMPLES=OFF
    -DCMAKE_CXX_FLAGS=""
    -DCMAKE_INSTALL_PREFIX=../../install &&
  /usr/bin/cmake --build build_cmake --config Release -v -- -j 4 &&
  /usr/bin/cmake --build build_cmake --config Release --target install
-- <IP_ADDRESS>
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user-name/or-tools/dependencies/sources/protobuf-v3.15.8/build_cmake
Unknown argument -v
Usage: cmake --build  [options] [-- [native-options]]
Options:
            = Project binary directory to be built.
  -j [] --parallel [] = Build in parallel using
                   the given number of jobs. If  is omitted
                   the native build tool's default number is used.
                   The CMAKE_BUILD_PARALLEL_LEVEL environment variable
                   specifies a default parallel level when this option
                   is not given.
  --target  = Build  instead of default targets.
                   May only be specified once.
  --config  = For multi-configuration tools, choose .
  --clean-first  = Build target 'clean' first, then build.
                   (To clean only, use --target 'clean'.)
  --use-stderr   = Ignored.  Behavior is default in CMake >= 3.0.
  --             = Pass remaining options to the native tool.
make: *** [makefiles/Makefile.third_party.unix.mk:210: dependencies/install/lib/libprotobuf.a] Error 1

Maybe you didn't notice but your notebook is a .ipynb I.e. this is running inside a "Python Kernel" (you can see it as a super python interpreter) so this is not a complete Linux VM, to have python or-tools simply use !pip install ortools
e.g.  https://github.com/google/or-tools/blob/stable/examples/notebook/constraint_solver/cvrp.ipynb

@Mizux , I followed the instructions after setting runtime to defaults and it worked strikingly in the first shot. Thank you so much !


How to configure and read log_query from multiple active clickhouse clients

Hi, I have several connected clients to my clickhouse-server, e.g. clickhouse-client, dbeaver database manager, python mymarilyn/clickhouse-driver.

Is there an SQL command to display active connections to clickhouse-server ? How do I view connected clients ?

I am sending queries from all these clients and I want to read information from the query_log table

For example, read the 10 most recent queries:
SELECT
    user,
    client_hostname AS host,
    client_name,
    type,
    formatDateTime(query_start_time, '%T') as started,
    query_duration_ms AS msec,
    round(memory_usage/1048576) AS MEM_MB,
    result_rows AS RES_CNT,
    toDecimal32(result_bytes/1048576, 6) AS RES_ΜΒ,
    read_rows AS R_CNT,
    round(read_bytes/1048576) AS R_MB,
    written_rows AS W_CNT,
    round(written_bytes/1048576) AS W_MB
FROM system.query_log
WHERE type=2
ORDER BY started DESC
LIMIT 10;

DESCRIBE TABLE system.query_log

I searched documentation on query_log and log_queries but it is still at a premature stage. I am trying to understand what is this type field  and how the following settings affect the logged queries ?
SELECT name, value
FROM system.settings
WHERE name LIKE '%log%'

┌─name──────────────────────┬─value──┐
│ log_queries               │ 0      │
│ log_queries_cut_to_length │ 100000 │
│ log_profile_events        │ 1      │
│ log_query_settings        │ 1      │
│ log_query_threads         │ 1      │
│ send_logs_level           │ none   │
└───────────────────────────┴────────┘

Are these true/false values ? After set log_queries = 1
I ran several queries from my clients but only those from clickhouse-client were recorded in the query_log table.
How can I get the last N queries sent from all my clients with a query similar to the one I wrote above ?

Use show processlist, or select * from system.processes
log_queries is a user/session level setting. You can enable it in a session by sending set log_queries = 1; or for the particular user by editing users.xml section; or for default user profile if you want to enable that globally.

I am trying to understand what is this type field

Please check: https://github.com/yandex/ClickHouse/issues/847#issuecomment-306013716

I am trying to understand ... how the following settings affect the logged queries ?

SELECT *
FROM system.settings
WHERE name LIKE '%log%'

┌─name──────────────────────┬─value──┬─changed─┬─description────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ log_queries               │ 0      │       0 │ Log requests and write the log to the system table.                                                                                │
│ log_queries_cut_to_length │ 100000 │       0 │ If query length is greater than specified threshold (in bytes), then cut query when writing to query log. Also limit length of printed query in ordinary text log. │
│ log_profile_events        │ 1      │       0 │ Log query performance statistics into the query_log and query_thread_log.                                                                                │
│ log_query_settings        │ 1      │       0 │ Log query settings into the query_log.                                                                                │
│ log_query_threads         │ 1      │       0 │ Log query threads into system.query_thread_log table. This setting have effect only when 'log_queries' is true.                                                    │
│ send_logs_level           │ none   │       0 │ Send server text logs with specified minumum level to client. Valid values: 'trace', 'debug', 'information', 'warning', 'error', 'none'                            │
└───────────────────────────┴────────┴─────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

6 rows in set. Elapsed: 0.004 sec.

Hi @filimonov  thanks for the reply, I was a bit confused with the session/user/global settings. I have edited users.xml for my user and I confirm that I was able to get query log for the last N queries. It also seems the type setting I used is the most appropriate in my case. According to @alexey-milovidov

successful start of query execution

successful end of query execution

exception before start of query execution

exception while query execution

Each query create one or two events in query_log table:

two events with types 1 and 2: usual, successful case;
two events with types 1 and 4;
single event with type 3;

It will help others if log_query is properly documented with an example like the one above ;-)


Don't display warrning about removing not existing file on upgrade

High-level description
We do not need to display warring about deleting not existing file – debug will be enough.
Refs: https://github.com/dcos/dcos/pull/6924
Corresponding DC/OS tickets (required)

COPS-6506

Related tickets (optional)

D2IQ-ID JIRA title / short description.

@mesosphere-mergebot changelog-not-required internal

@mesosphere-mergebot request-review @jongiddy @pierrebeitz  @DominikDary

@mesosphere-mergebot test all

All  tests have passed, although some have not notified GitHub

@mesosphere-mergebot label Ship It

@mesosphere-mergebot backport 2.1


[fix] (build index) fix build index coredump

What problem does this PR solve?

Introduced by #41625

Related PR: #42882
Problem Summary:
Check List (For Committer)

Test

[ ] Regression test
[ ] Unit Test
[x] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No colde files have been changed.
[ ] Other reason

TEST

Upgrade the BE first, then use build index, and it will core dump.
Manual testing shows that it doesn't core dump after the upgrade.

Execute ADD INDEX
Upgrade BE
Execute BUILD INDEX

Behavior changed:

[x] No.
[ ] Yes.

Does this need documentation?

[x] No.
[ ] Yes.

Release note

None

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall

Manual Test


Adding school to JetBrains

Respected Sir/Ma'am,
I am Hari Krishn Tiwary and I've create this pull request to add my school to JetBrains

@HariKrishnTiwary ihsvaranasi.txt I am sorry, I have to close the request without merging, because you made a mistake in a request and did not specify any filepath. Please ensure that you are familiar with this repository rules located at the bottom of this page and make a new correct request. Thank you for your understanding!


Application doesn't reopen in same place and size

In Version 3.1.0, when i reopen the application it goes in the center of the screen.
It doesn't resize and position to the place of the last session.

Duplicate of https://github.com/danielbuechele/goofy/issues/323.


Feature/helper methods

@leevw @ryanapierce
Hi team, I created a helper methods file. Which I thought would be useful for storing logic related to the project.
Specifically, I added 3 functions:
One for retrieving stock data.
One for testing co-integration between to series using statsmodel
One for performing a adfueller test using statsmodel


build(deps): bump google/flatbuffers from 2.0.0 to 22.9.29

Bumps flatbuffers from 2.0.8 to 22.9.29.

Release notes
Changelog
Commits

Envoy Mobile needs to update the dep because the previous version has a compilation failure with Xcode 14.
Signed-off-by: JP Simard<EMAIL_ADDRESS>

/lgtm deps

/retest

/retest

Coverage job was stuck. Merging from main again just to push a commit to restart all CI and hope for better luck.


Add ContibutingGuidelines.md

The Contributing Guideline documentation will contain set of guidelines that will help contributors during the contribution process.
File type markdown.

@UBA-GCOEN could you please assign this issue to me.
Thank you!

Go for it @shanvijha30
Filename should be CONTRIBUTING.md

Also include the point to comment on idsue before creating pr.

And to refer the respective issue in their prs.
No prs will be accepted without issue reference.
You can refer the internet for  the best contributing.md file structure.

okay

Its a request to complete it as early as possible as it is an issential issue....🥲

@Naresh-chandanbatve Added PR #49


Is Ecto 2 supported?

Please have a look here: @ #91 #84

@bAmpT great I need this urgent in a project

The work is being done in the mentioned PRs. If you want to speed it up, you can help with the update. Unfortunately, because of other obligations, this is not a priority for me at the moment.

@mrkaspa The adapter is not 100% finished, but I am already using it in a project of mine. Depending on the parts of the adapter you need, you may already be able to use in its current state.


InvalidToken while using AWS WebIdentityTokenFile within EKS to offload a topic

Hi,
Describe the bug
As deploying Pulsar inside AWS EKS (Kubernetes hosted by AWS), while trying to use the WebIdentityTokenFile to assume the AWS role in order to offload ledgers into S3 Bucket, I've encountered exceptions like:
java.util.concurrent.CompletionException: org.jclouds.aws.AWSResponseException: request POST https://pulsar-cluster.s3.amazonaws.com/f3889033-79f9-4273-9f50-82fa0f8992e4-ledger-6908?uploads HTTP/1.1 failed with code 400

...logs omitted for clearity and safety (see screenshot below)...

code='InvalidToken', message='The provided token is malformed or otherwise invalid.'

To assume a role inside a pod inside EKS, we rely on a environement variable called AWS_WEB_IDENTITY_TOKEN_FILE which is pretty much a standard IAM authorization process to communicate with AWS resources.
After looking in to the code, I've realized that if not defining the s3ManagedLedgerOffloadRole (or left empty), the org.apache.bookkeeper.mledger.offload.jcloud.provider.JCloudBlobStoreProvider#AWS_CREDENTIAL_BUILDER will use DefaultAWSCredentialsProviderChain which contains already the WebIdentityTokenCredentialsProvider.
Strange things is that with the following command inside the container, we've succeeded to get the role identity:
root@pulsar-broker-0:/pulsar# aws sts get-caller-identity
{
    "UserId": "AROAZPRHQZGMZXSZDNXWZ:botocore-session-1612264367",
    "Account": "xxx",
    "Arn": "xxx"
}

Yet the offloader still has trouble to upload to S3.
To Reproduce
Steps to reproduce the behavior:

Deploy Pulsar Broker within a EKS pod, if that is too costy, you can inject environement variables like this:

env:
    - name: AWS_DEFAULT_REGION
      value: cn-northwest-1
    - name: AWS_REGION
      value: cn-northwest-1
    - name: AWS_ROLE_ARN
      value: arn:aws-cn:iam::xxx:role/your-iam-role-with-s3-privileges
    - name: AWS_WEB_IDENTITY_TOKEN_FILE
      value: /var/run/secrets/eks.amazonaws.com/serviceaccount/token

Here I assume you have the knowledge of using web identity token, but if that's not the case, the file AWS_WEB_IDENTITY_TOKEN_FILE contains a JWT token as such:
eyJhbGciOiJSUzI1NiIsImtpZCI6IjU2MzgwMzI2NDQ1YTcxNjAwOGU0YWY0ZTFmYzc4ODIwN2YzZTE0ZTQifQ.eyJhdWQiOlsic3RzLmFtYXpvbmF3cy5jb20iXSwiZXhwIjoxNjEyMzQ3MTk0LCJpYXQiOjE2MTIyNjA3OTQsImlzcyI6Imh0dHBzOi8vb2lkYy5la3MuY24tbm9ydGh3ZXN0LTEuYW1hem9uYXdzLmNvbS5jbi9pZC9EOEYzMDMyOUIxQjU5ODBEREJCNUFDMTc2MDI4MUVDOCIsImt1YmVybmV0ZXMuaW8iOnsibmFtZXNwYWNlIjoicHVsc2FyIiwicG9kIjp7Im5hbWUiOiJwdWxzYXItYnJva2VyLTAiLCJ1aWQiOiIwZWIxMGZhOC00NjUzLTQ0NmYtOWY1OS0wMDllY2E2MzZmNDMifSwic2VydmljZWFjY291bnQiOnsibmFtZSI6InB1bHNhci1icm9rZXIiLCJ1aWQiOiIzNDRmZGYwZi0wZjZkLTRlODgtODZiYi04YTc0ZjNlMzkxOWEifX0sIm5iZiI6MTYxMjI2MDc5NCwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50OnB1bHNhcjpwdWxzYXItYnJva2VyIn0.mJfqLrCNvQwS8Yg8pFlo9TA8pbp4OFodBNiQScB0NcXMDz0wWSr2SkzsSqjnkzRk91QukkT8eUuiEvt3KEM4HmLfjjnKU-qIrAP4HcwOD9LaSWxURzDg5rramsvpgZu1nOB-igTBH3dTGpjEDu3iHWtCKHU9G-OOdX5w-eEcU7S-TpwdEEgrnYejCXnr-M7sJF3zQfT3rbZFhb6bRWt7_67pjpritfACRh5xw9eabXcaDL_Xi9Xla21bSlAIiPVJO-nMGvNLLoXOzUEEB8gfHp-ZJh598kaCNvp72sdQa9UJWNUdN3aGoXPNpsaIwXTU0XXh63uzNUAvq3W0zqFyuQroot

Start Pulsar Broker with offload config as such:

  managedLedgerOffloadDriver: "aws-s3"
  s3ManagedLedgerOffloadBucket: "pulsar-cluster"
  s3ManagedLedgerOffloadRegion: "cn-northwest-1"

Run some test messages under a topic while setting retention policies to -1 (avoid deleting the messages too early)
With pulsar-admin, do offload on that topic
Check the logs and there will be exceptions quoted above.

Expected behavior
With WebIdentityTokenFile, a successful upload to S3 bucket
Screenshots

Desktop (please complete the following information):

OS: Docker Image of apachepulsar/pulsar-all:2.6.3

Thanks for trying, may you try to use the pulsar binary?
https://pulsar.apache.org/en/download/
So that we can find the problem is caused by Pulsar or the docker image.

@YanshuoH this should already be fixed in master by  https://github.com/apache/pulsar/pull/9387. There was a regression in using tokens that can expire. The fix should land in 2.6.4 and 2.7.1.

Thanks guys.
Didn't look into the latest code, my bad.
The MR seems fine. I'll wait the 2.6.4 to land. By the way, do we have an ETA for that?
Feel free to close this issue if needed.

Sorry but I got to reopen the issue.
Currently upgraded to pulsar 2.7.3, the failure still occurs.
I've created another pod with the same AWS credentials injected, upload file to s3 works fine:
bash-4.2# aws sts get-caller-identity
{
    "UserId": "<omit>:botocore-session-1629808715",
    "Account": "651844176281",
    "Arn": "arn:aws-cn:sts::<omit>:assumed-role/pulsar-broker-sa/botocore-session-1629808715"
}

bash-4.2# aws s3 cp thing.txt s3://pulsar-cluster/pulsar-standby/
upload: ./thing.txt to s3://pulsar-cluster/pulsar-standby/thing.txt

I wonder if there is something that I've missed?
I could always use a pair of static AK/SK but it seems a regression.
Thanks.


tflint does not catch unused variables

I recently noticed that the tflint configuration does not catch unused variables.
Example:
https://github.com/Azure/terraform-azurerm-avm-ptn-aks-production/pull/59/files
The root cause seems to be terraform_unused_declarations disabled in the configuration:
https://github.com/Azure/tfmod-scaffold/blob/1949cd5a69cd3424fc84312995bb60ddc62542a7/avm.tflint.hcl#L90-L93

This is fixed now thanks to #39


Return this in expectErrors()

Return this in expectErrors() to enable writing
expect(subscribeSpyTo(observable).expectErrors().getError()).toStrictEqual(error);

Closes #46

Thanks @petrzjunior ! 🙏

Can you please also add it to the README (as a one liner, so people will know it's possible)
Thanks!

@shairez README updated

@all-contributors please add @petrzjunior for their code tests documentation and ideas


css: Don't render message failed  buttons.

We used to make message failed button (retry / cancel) invisible when the message is successfully send instead of not rendering them. This resulted in them being accessible via keyboard when they are not visible. I couldn't find a reason for retry and cancel buttons to use visibility to be hidden instead of just being not rendered via
display: none.
discussion: https://chat.zulip.org/#narrow/stream/9-issues/topic/extraneous.20.22Retry.22.20and.20.22Cancel.22.20tooltips
No UI changes.
@alya FYI

Merged, thanks for debugging this @amanagr!


Convert client to use full firehose

Per blog post here, Jetstream is not ideal for driving moderation.
Data formats
CAR
DAG-CBOR
Parsers
nlohmann-json supports CBOR parsing
See also tiny-cbor (small, C code)
Could port JavaScript CAR reader from here

Fast track by porting this code and crediting accordingly in our License file
https://github.com/MarshalX/atproto/blob/main/packages/atproto_firehose
[Still can use SAX-style stream parsing]

Parsing to JSON inline is working


Prior art ref: gon

I'm not sure what you're working on here, but I just want to link you https://github.com/mitchellh/gon in case it might be helpful for hugo macos releases
We use it for releasing macOS fat binaries built from golang well 👍
wait i lied we used to. now:
https://github.com/slackhq/nebula/blob/c2259f14a7d230464613c46e36cbe82116fa2de8/.github/workflows/release.yml#L86-L107
ah, we used to use gon in a private repo, but now we do everything manually due to lack of universal binary support in gon

Thanks, I have seen that, but I need something that does not need to be run on a Mac.

ah, nice! I'll keep an eye on this then :) curious to see how it goes

https://gregoryszorc.com/blog/2021/04/14/pure-rust-implementation-of-apple-code-signing/ looks interesting from a quick search too - though it sounds like notarizing is still undeveloped?

Oh, well, I have the notarizing part working (need to clean up the code before I can commit), but I may have been a little optimistic about the binary signing part...

fun, fun

I have wrapped up my work on this in the readme here: https://github.com/bep/buildpkg


Secp256k1 support submodule

Depends

[x] #219
[ ] #221

Problem
We don't have a Secp256k1 module to implement support for interop with tz2 addresses
Solution
Add a Secp256k1 submodule to crypto module in tezos_interop.
Related

#199

please clean the commit history for this PR.

done.


Additional improvements to README

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@elamaran11 feel free to merge pls


Is it possible to separate, extract the wall from the background (window, etc.)?

Hello,
I am working on a image processing project where the goal is to extract the wall from the background using depth image from the D415 camera. But, the depth information of the wall is acting like a background and after the binarization the information loss is large from the wall and it is not possible to recover it. The high accuracy preset was used with edge preserving filters in Viewer.
Is there something wrong with the camera settings and use? Are there any appropriate settings for this kind of capturing?
Thank you.

Hi @TDVL,
Any test update? Do you have a try of D435 also?

Hello,
Sorry for late response, I had some other projects to finish.
Yes, I have tried, but without success. The same problem persists.
Laslo
On Fri, Jul 26, 2019 at 11:22 AM RealSense Customer Support <
<EMAIL_ADDRESS>wrote:

Hi @TDVL https://github.com/TDVL,
Any test update? Do you have a try of D435 also?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/IntelRealSense/librealsense/issues/3962?email_source=notifications&email_token=ALKSSJ7BI6T4INEW5ZZM6TDQBK65HA5CNFSM4HMLIKOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD24AO5Y#issuecomment-515377015,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALKSSJYKV4ASYT3PV67FBFTQBK65HANCNFSM4HMLIKOA
.

Hi @TDVL,
One example in below link. Please check if it's helpful for your use case.
https://github.com/pedropro/CAPE


Disable specific CWE

We have hundreds of
Heuristic SQL Injection CWE-89
but we do not have any SQL at all.
It would be great to disable a CWE check by config or as interactive mode for all findings of that CWE

Link
CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
https://cwe.mitre.org/data/definitions/89.html
Suggestion
Question
It seems the orchestrated SAST tool has a bug when it declares a heuristic SQL injection where no SQL is there at all.
Could you please add some  anonymized example source snippet for the part with the false positive in this issue ?
I would like to have an example here - maybe the matching could be enhanced before we try to find workarounds.
Alternative
If it's not possible to improve the product matching, we could maybe provide a possiblity inside the SecHub Go client to mark all findings of an report with a given CWE as false positives. Inside SecHub plugins (eclipse,intelliJ, vscode) we could provide this as well (in the future). But these features should be only the last option if it's not possible to improve the ouputs.

Disabling of an entire CWE category might not make sense in this case. In my opinion it should be possible exclude the combination of CWE and class. In this case, the CWE category is 89 and the class is Heuristic SQL Injection. In addition, one could include the severity in the combination: CWE + class + severity. In this case: CWE 89 + Heuristic SQL Injection + Low.
In general, having the ability to mark false-positives based on different detection attributes could be a useful feature. This feature could be generalized to be able to filter not only SAST findings, but findings from DAST and Infrastructure scans as well.

Either

integrate server communication
or
generate a JSON file for upload with the SecHub client.


Eldritch Horrors

I wasn't quite ready for #2347 to be merged yet.  My bad for not marking it as a draft.
Anyway, this PR adds setters.  They are very cursed and it's completely fine if this gets rejected.

Nevermind, this was probably a bad idea.


RequestError: unable to verify the first certificate

dcli Version: 1.0.0 Windows
OS version: Windows 10 Enterprise 21H2
When trying to log in using dcli-win.exe sync I am receiving an error as follows after entering my email address:
RequestError: unable to verify the first certificate
    at ClientRequest.<anonymous> (C:\snapshot\dashlane-cli\node_modules\got\dist\source\core\index.js:970:111)
    at Object.onceWrapper (node:events:642:26)
    at ClientRequest.emit (node:events:539:35)
    at ClientRequest.<anonymous> (C:\snapshot\dashlane-cli\node_modules\@szmarczak\http-timer\dist\source\index.js:43:20)
    at TLSSocket.socketErrorListener (node:_http_client:454:9)
    at TLSSocket.emit (node:events:527:28)
    at emitErrorNT (node:internal/streams/destroy:157:8)
    at emitErrorCloseNT (node:internal/streams/destroy:122:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
    at TLSSocket.onConnectSecure (node:_tls_wrap:1532:34)
    at TLSSocket.emit (node:events:527:28)
    at TLSSocket._finishInit (node:_tls_wrap:946:8)
    at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:727:12) {
  code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE',
  timings: {
    start:<PHONE_NUMBER>941,
    socket:<PHONE_NUMBER>942,
    lookup:<PHONE_NUMBER>948,
    connect:<PHONE_NUMBER>957,
    secureConnect: undefined,
    upload: undefined,
    response: undefined,
    end: undefined,
    error:<PHONE_NUMBER>967,
    abort: undefined,
    phases: {
      wait: 1,
      dns: 6,
      tcp: 9,
      tls: undefined,
      request: undefined,
      firstByte: undefined,
      download: undefined,
      total: 26
    }
  }
}

While it is the case that I am running this in a corporate environment with a firewall that does HTTPS inspection, the appropriate CA certificate is installed in the computer's Trusted Root Certificates store, so the server certificate should be able to be verified.
The Dashlane web app and browser extension do not experience any issues.

Hello,
As I understand your problem, your company is using a self-signed certificate for your HTTPS connection.
If that's the case, indeed it can cause such issue because we're using NodeJS.
In NodeJS the list of certificate authorities is done in a weird way, it's basically hardcoded, read more here: https://github.com/nodejs/node/issues/4175
It seems so far that there are no programmatic way of adding custom certs and nodejs is not picking custom certs from the OS store. But there is an environment variable to add custom certs: https://nodejs.org/docs/latest-v16.x/api/cli.html#node_extra_ca_certsfile
NODE_EXTRA_CA_CERTS=/<...>/.ssl/extra_certs.pem
Unfortunately I'm not working in an environment with such self-signed cert so I'll let you test this solution and let me know if that works.
That said, I found a package (https://www.npmjs.com/package/win-ca) that could be interesting for getting the custom certificates on Windows. I'll have to explore this a bit more and assess if it meets our security requirements before implementing it.

But there is an environment variable to add custom certs: https://nodejs.org/docs/latest-v16.x/api/cli.html#node_extra_ca_certsfile

NODE_EXTRA_CA_CERTS=/<...>/.ssl/extra_certs.pem
Unfortunately I'm not working in an environment with such self-signed cert so I'll let you test this solution and let me know if that works.

A hardcoded certificate store seems like it might be problematic as it won't allow for situations such as CA certificates which are revoked or new ones that get added (e.g. Let's Encrypt). If you're able to verify against certificates in the OS certificate store this would be better as these are typically updated on a regular basis, and for enterprise use the OS certificate store will usually also contain any custom CA certificates that may be needed.

Great that it solves the issue, it's clearly not ideal but it's something at least.
Root certificates don't change that often (see the updates in https://github.com/nodejs/node/blob/main/src/node_root_certs.h) and I believe most providers will think of updating it there unless they want to break a lot of customers apps.
I'll have a deeper look at how other apps handle this issue and I'll try to come up with a long term solution.

I just figured out that there is an option to use the OpenSSL default CA's store instead of the Node.js one, as per https://nodejs.org/api/cli.html#--use-bundled-ca---use-openssl-ca (I believe this doesn't solve the issue on Windows as they use their own cert store)
One solution could be to export this variable NODE_OPTIONS=--use-openssl-ca.
The previous method we talked about is also documented in our website now: https://dashlane.github.io/dashlane-cli/troubleshooting#requesterror-unable-to-verify-the-first-certificate
I'm considering this issue closed as there is nothing we can integrate into the code of the CLI (I looked at the win-ca package and it's not an acceptable dependency) and the solution seems acceptable to me, please re-open if there is additional problems.


Proposed worked example for auditd(8) documentation

It'd be great to see an example in auditd(8), ausearch(8)and/oraureport(8)docs that shows a few fully worked examples, taking account of common configuration like the defaultnever,task` rule that will otherwise confuse new users.
I had no idea auditd was so amazing because the docs just didn't give me any clue how powerful it is, or make it easy to get started trying it out. I got stuck for some time with it seeming to just "not work" because of the never,task rule, too.
Proposed full example
Generate a summary of all syscalls made by a process.
# Enable auditing on new processes if it's disabled - see "DISABLED BY DEFAULT" in "auditd(8)"
auditctl -d never,task
# Match all system calls for the target process. Note that this will not audit syscalls in child processes of the audited process.
auditctl -A always,exit -S all -F exe=/bin/ls -k audit_ls
# Run the program to generate an audit trail
ls
# view individual audit records for the rule, showing names of syscalls, users, etc instead of numbers
ausearch -i -k audit_ls
# summarise the syscalls made by the audited process
ausearch --format raw -k audit_ls | aureport -s -i --summary
# Remove the audit rules if desired
auditctl -d -k audit_ls

Note that I would prefer this worked example to instead start with something like:
# Enable auditing for new instances of the target executable. See "DISABLED BY DEFAULT" in "auditd(8)"
auditctl -A always,task -F exe=/bin/ls -k audit_ls

but couldn't get a per-task exception to work, so I've left it as above.

Warn users about the never,task rule
I also propose a DISABLED BY DEFAULT section in auditd(8), reading something like this

DISABLED BY DEFAULT
On many systems auditd is configured to install an -a never,task rule by default.
This rule sets a flag on every new process that skips all audit rule processing for that process, so the small performance overhead imposed by syscall auditing is completely eliminated. If you want to use auditd, you will need to remove this rule with auditctl -d never,task or insert more specific rules for targeted processes above it, e.g. auditctl -A always,task -x /executable/to/audit.
If you have defined audit rules that are not matching when they should, check auditctl -l to make sure there is no never,task rule there.
Note that any processes that were started with a never,task rule will be ignored for auditing purposes even

It should have a clear x-ref to it in ausearch(8) and auditctl(8) that is easily found with keywords like "empty" or "match" or "nothing" in the NOTES section, pointing users to why their rules may not be matching anything or their searches are failing to find any hits for rules they defined. Something like:
This should also be x-ref'd from PERFORMANCE TIPS in auditctl(8).
A few more examples
I also suggest the existing auditctl(8) example

To see all syscalls made by a specific program:
auditctl -a always,exit -S all -F pid=1005

become

To see all syscalls made by a specific program:
# by pid:
auditctl -a always,exit -S all -F pid=1005
# by executable name
auditctl -a always,exit -S all -F comm=ls
# by executable path
auditctl -a always,exit -S all -F exe=/bin/ls

as they're particularly obvious things people will want to do.

Hi @ringerc, thanks for the suggestions!  I am going to transfer this over to the audit-userspace repo as it seems like most of these suggestions apply to the audit-userspace manpages.


cannot find pickle file

I am trying to run keyframes2.py.
But I got error of wordFrameLabelPerVideo.pickle.
I cannot find this file.
Could you share  wordFrameLabelPerVideo.pickle??

I am very sorry for the late response. I am aware of the problem of missing files. I was busy  lately with work so i didn't have time to clean and fix the code errors. Hopefully in the next few weeks i will get back to it.
Thank you for your understanding :)


Optimizing metadata loading (detecting unique identifiers etc...) (mariadb)

Is your feature request related to a problem? Please describe.
Way too slow query involving  INFORMATION_SCHEMA.CHECK_CONSTRAINTS and INFORMATION_SCHEMA.TABLE_CONSTRAINTS.
Describe the solution you'd like
The current query is:
SELECT cc.CONSTRAINT_NAME, cc.CHECK_CLAUSE, tc.TABLE_NAME
FROM INFORMATION_SCHEMA.CHECK_CONSTRAINTS cc, INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc
WHERE cc.CONSTRAINT_NAME = tc.CONSTRAINT_NAME
AND cc.CONSTRAINT_SCHEMA = 'schema' AND tc.TABLE_NAME = 'table'
ORDER BY cc.CONSTRAINT_NAME;

it takes forever when having a lot of databases and tables (because I think it is reading them all on disk).
The way we could do it (I think it is equivalent):
SELECT cc.CONSTRAINT_NAME, cc.CHECK_CLAUSE, tc.TABLE_NAME
FROM (SELECT CONSTRAINT_NAME, CHECK_CLAUSE
FROM INFORMATION_SCHEMA.CHECK_CONSTRAINTS
WHERE CONSTRAINT_SCHEMA = 'schema'
ORDER BY CONSTRAINT_NAME) cc,
(SELECT TABLE_NAME, CONSTRAINT_NAME
FROM  INFORMATION_SCHEMA.TABLE_CONSTRAINTS
WHERE TABLE_SCHEMA = 'schema' AND  TABLE_NAME = 'table') tc
WHERE cc.CONSTRAINT_NAME = tc.CONSTRAINT_NAME
ORDER BY cc.CONSTRAINT_NAME;

Describe alternatives you've considered
N/A
Additional context

@itschrono Thank you for the suggestion

Query changed. Implemented in DBeaver 21.2.5

Verified


merge package template from Kronos-Tools/npm-package-template-minimal

package.json

chore(devDependencies): update<EMAIL_ADDRESS>from template

Codecov Report

Merging #233 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #233   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           2      2
  Lines           9      9
=====================================
  Hits            9      9

Continue to review full report at Codecov.

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


[Microsoft.DigitalTwins] April 2023 release for azure-digitaltwins-core

Description
April 2023 release for azure-digitaltwins-core.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


When are you going to release the full mesh VPN Network mgmt console

Hi
I appreciate your done, it was great, but i have a question When are you going to release the full mesh VPN Network mgmt console

https://www.wireguard.com/todo/
When wg-dynamic is ready, I will gladly implement it 😊

Hi
But this is regarding dynamic public IPs, but what I requested was to have a full mesh of networking with auto advertising of any new changes in the topology,
E.g. I should be able to add new peers via the GUI and these peers should be added automatically to all other existing peers in the topology.
If I delete or change the keys of one peer or I remove the the peer config from GUI, it should be reflected to the whole topology .

If you read more closely, the wg team plan the feature to appear as part of wg-dynamic:

It is possible to build a mesh network out of WireGuard using WireGuard as the building block. Write a tool that builds meshes and has peers discover each other, taking into account important authentication and trust properties. Build onto of wg-dynamic.

Therefore, to not invent the wheel twice, I will await this future until wg-dynamic is ready

True, thanks a lot for your fast response


Can the LoRA extract script be improved for lesser RAM usage?

Currently on Kaggle, with 29 GB ram and 15 GB VRAM it is failing to extract LoRA from SDXL DreamBooth models for 128x128 rank regular LoRA
I don't think so it should require this big requirements

Every time I extract the lora I have to select the cpu Device and then manually set the virtual memory to a very high level.

Every time I extract the lora I have to select the cpu Device and then manually set the virtual memory to a very high level.

yes currently using huge RAM. I told the Kohya and he said he could load 1 model into GPU and 1 model into RAM to reduce this. makes sense

--load_precision

thank you so much. if model is BF16 --load_precision we shouldnt use right?

If the model is bf16, --load_precision bf16 can reduce memory usage without losing precision.

awesome ty


Basic functionality complete for Blacklist dictionary generator.

Blacklist subroutine working. Potentially requires change away from Timestamp Objects to Strings.

Will complete the Unit Test.

In theory, work is complete.


Resubmit of #86 (security policy)

Resubmitting #86. No clue why this got lost but can't find it on the main branch nor on the 2.x branch.

I have no idea either, thanks for catching this! 👍

Fixed


Indexing const basic_json<> with const basic_string<char>

I cannot index const basic_json<> with a const basic_string<char> anymore.
In file included from my/json.hpp.cpp:2:
my/json.hpp:30:11: error: no viable overloaded operator[] for type 'const json' (aka 'const basic_json<>')
  return j[name];
         ~^~~~~
src/json.hpp:2593:15: note: candidate function not viable: 'this' argument has type 'const json' (aka 'const basic_json<>'), but method is not marked const
    reference operator[](size_type idx)
              ^
src/json.hpp:2634:21: note: candidate function not viable: no known conversion from 'const string' (aka 'const basic_string<char>') to 'size_type' (aka 'unsigned long') for 1st argument
    const_reference operator[](size_type idx) const
                    ^
src/json.hpp:2671:15: note: candidate function not viable: 'this' argument has type 'const json' (aka 'const basic_json<>'), but method is not marked const
    reference operator[](const typename object_t::key_type& key)
              ^
src/json.hpp:2718:15: note: candidate template ignored: could not match 'const T [n]' against 'const string' (aka 'const basic_string<char>')
    reference operator[](const T (&key)[n])

OK it seems that fixing #135 caused this.
Right now I have a lot of code that passes const basic_json<> objects around, asserts on debug mode that the elements exists, and uses operator[] const to access the elements. Most of the assertions are coalesced, e.g. on object construction, and before loops. In release mode nothing is checked.
The "workaround" proposed on #135 is to use at which performs the checks on every access. This is not good enough for me since I know that the elements are there when I use operator[] const.
Basically what I need for my use case is:

unchecked const access with undefined behavior if the element is not there.

I would have prefer if, instead of removing opeartor [] const, the NDEBUG macro would have been used to assert or throw if the element is not there.
Sadly I didn't knew about #135 till all my code broke.
Next time such an API breaking change is being discussed it might be worth to use the [[deprecated]] macro for a couple of weeks. That would produced a warning and allowed me to chime into the discussion.

Hi @gnzlbg, sorry for the inconvenience. As there are no proper releases yet, I cannot really deprecate functionality, because everything in the master branch is basically just a development snapshot. I hope to have a "proper" 1.0 done soon and finally get some roadmap. Then, deprecating functions can be properly documented.
As for #135, I though quite a while, but better similarity to STL was the reason to change the API. Once again, sorry for your troubles.

No worries! I understand the motivation to do as the STL does and can live with an older version. If a method for unchecked const access is ever added please cite this issue so that I notice it.

If you are sure the key (let's say mykey) exists in your object, why don't use *j.find("mykey")?

This is one of the things i'm doing in a loop (i is an index):
... j["files"][i]]["fields"][name];

Using at adds 4 unnecessary checks and looks like this (which is not that
bad):
... j.at("files").at(i).at("fields").at(name);

Using find it looks like:
... *(*(*(*j.find("files")).find(i)).find("fields")).find(name);

On Tue, Dec 15, 2015 at 6:45 PM, Niels<EMAIL_ADDRESS>wrote:

If you are sure the key (let's say mykey) exists in your object, why
don't use *j.find("mykey")?
—
Reply to this email directly or view it on GitHub
https://github.com/nlohmann/json/issues/157#issuecomment-164836821.

iterator also has operator->
j.find("files")->find(i)->find("fields")->find(name);

That should work, thanks!


Add --runtime-root to ctr

Signed-off-by: Michael Crosby<EMAIL_ADDRESS>

Just for my understanding, how is this new argument for ctr going to be used?
https://www.mankier.com/1/ctr
Thanks.

@boddumanohar for v2 runtimes, you provide a directory path for the runtime to use as a state dir.  This allows you to change the default path for runc to something else, incase you are running multiple instance or have different dir structures on your servers.


Consider synced flow when validating gossip messages

Motivation
Right now lodestar has "StrictNoSign" signature policy, and a synced msgIdFn, running synced version of "handleReceivedMessage" and "validateReceivedMessage" (hard-coded in node_modules) gives us some improvement in a contabo machine

Less dropped jobs - before 40 % in average, after >20% in average

p7 is down to -337 vs consistently 0

Thanks for that "min" peer score is almost 0

We need to write a benchmark to see if it's worth to implement a "syncedHandleReceivedMessage" flag

First we should quantify the cost of promises. This could lead to a lot of duplicate code and make the maintenance much more annoying. So we should have a big incentive to pursue it.
For context, validation is async because libp2p's sha256 is async. It's because they use the in-browser native crypto for browsers, which has an async API.

@twoeths If you still think this will give us benefits, please investigate or else we can close this.

gossipsub is moved to network thread and very stable there, not worth to investigate


Sticky modifier

Like the one Freedom2000 used to have.
Might be out of scope but since no one else is doing it and Marnit doesn't have time to add it to construction anarchy I'm creating an issue for it anyway.

logic for this is easy.
listen for event (like alt being held down), release a raycast into the world and place the object at the hit position orientated to hit normal by rotating by difference between last up vector (this keeps your right/forward vector from changing too much)


Domino CE don't start - EndNotes Error - Can't delete setup database

Hi,
I've installed the domino ce 10 FP2 edition.
ibmcom/domino-ce    10.0.1FP2           f443198d5473        33 minutes ago      1.64GB
ibmcom/domino-ce    latest              f443198d5473        33 minutes ago      1.64GB

So, now if I start the server I cannot connect the port 80 or 443. The server freeze on start
vagrant@docker:/nodejs/domino-docker$ sudo docker run -it -e "ServerName=Server1" -e "OrganizationName=MyOrg" -e "AdminFirstName=Thomas" -e "AdminLastName=Hampel" -e "AdminPassword=passw0rd" -h wien.demo.com -p 80:80 -p 1352:1352 -p 443:443 --name server1 ibmcom/domino-ce:10.0.1FP2
Checking for persistent storage mount point :  /local/notesdata-pod
./java -cp cfgdomserver.jar lotus.domino.setup.DominoServerProfileEdit -AdminFirstName Thomas /local/notesdata/SetupProfile.pds
Silent setup of server with the following settings:
isFirstServer = true
AdminFirstName = Thomas
AdminIDFile = *default
AdminLastName = Hampel
AdminMiddleName = *default
AdminPassword = <hidden>
CountryCode =
DominoDomainName = DominoDomain
HostName = *default
OrgUnitIDFile = null
OrgUnitName =
OrgUnitPassword = <hidden>
OrganizationIDFile = *default
OrganizationName = MyOrg
OrganizationPassword = <hidden>
OtherDirectoryServerAddress =
OtherDirectoryServerName =
ServerIDFile = *default
ServerName = Server1
ServerPassword = <hidden>
SystemDatabasePath = null
./java -ss512k -Xmso5M -cp jhall.jar:cfgdomserver.jar:./ndext/ibmdirectoryservices.jar lotus.domino.setup.WizardManagerDomino -data /local/notesdata -silent /local/notesdata/SetupProfile.pds /local/notesdata/setuplog.txt
All runtime errors will be logged to /local/notesdata/errorlog.txt
*Warning all runtime debug info will be logged to /local/notesdata/setuplog.txt
--- Starting Domino Server ---

No log file to archive

Starting Domino for xLinux (notes)
Warning: LANG is not set!
done PID is 300

The errorlog.txt is empty.
The setuplog.txt have following content:
Startup arguments = -data /local/notesdata -silent /local/notesdata/SetupProfile.pds /local/notesdata/setuplog.txt
Creating new WizardData instance
argument 0 -data
Processing -data parameter
argument 2 -silent
About to wait on DominoAPIThread.callAPI()
dominoAPI.run.init
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
detected jsetdom JNI interface
launch path= /local/notesdata
Set writable helpdir /local/notesdata
Current directory is /opt/ibm/domino/notes/10000000/linux
Changing current directory to /local/notesdata
Current directory after change is /local/notesdata
Setting current path to include datapath /local/notesdata
Setting new path to /local/notesdata:/local/notesdata:/opt/ibm/domino/notes/latest/linux:/opt/ibm/domino/notes/latest/linux/res/C:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
path after set= /local/notesdata:/local/notesdata:/opt/ibm/domino/notes/latest/linux:/opt/ibm/domino/notes/latest/linux/res/C:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
DominoConstants.getWritableDirectory()
writable directory = /tmp
Silent error log is /local/notesdata/errorlog.txt
DominoConstants.getWritableDirectory()
writable directory = /tmp
Default data directory = /local/notesdata
WizardManager: Testing if DominoServer is installed
SetupProgressBar - initialize
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.initNotes
DominoAPI - initializing notes
Thread= Thread[Thread-5,5,main]
create session
create session complete
create directory /local/notesdata
create directory complete
DominoAPI - initializing notes complete
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
Performing resource check
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.getDominoVersion
Notes Version = Release 10.0.1FP2|May 24, 2019
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
Sample resource is 'Release 10.0.1FP2|May 24, 2019'
loading setup profile /local/notesdata/SetupProfile.pds
WizardData.load()
Calling dominojni.isIISInstalled()
Calling dominojni.isIISInstalled() exit
calling dominojni.initNetworkPorts()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.initNetworkPorts
adding port TCP/IP port no= 0 notes network=TCPIP Network port addr= wien.demo.com
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
getNotesINIValue key= ASPInstall
No =notes.ini parm detected, trying the data directory
DefaultDataPath= /local/notesdata
Trying to opening notes.ini file at /local/notesdata/notes.ini
getNotesINIValue ASPInstall=0
Replacing setting *default with null
Replacing setting *default with
Replacing setting *default with null
Replacing setting *default with
Replacing setting *default with
Replacing setting *default with null
Replacing setting *default with null
Replacing setting *default with
Replacing setting *default with
Replacing setting *default with
Replacing setting *default with
Replacing setting *default with
RunWizard - silent
WizardManager: Creating state machine
orgName= MyOrg
getNotesINIValue key= DI_ENABLE
No =notes.ini parm detected, trying the data directory
DefaultDataPath= /local/notesdata
Trying to opening notes.ini file at /local/notesdata/notes.ini
getNotesINIValue DI_ENABLE=null
SetupProgressBar - initialize
SetupProgressBar - DisplayProgressBar
UpdateProgressBar %=1 step=
completeServerSetup
SetupProgressBar - changeProgressBar// 1
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.getDocument
createDatabase
openDatabase
isDatabase
database files = setupdomwizard.nsf
m_dir.getFirstDatabase(DbDirectory.DATABASE)
m_dir.getFirstDatabase(DbDirectory.DATABASE) exit
isDirDatabase exit
openDatabase - no existing file exit
Checking if file exists /local/notesdata/setupdomwizard.nsf
m_dir.createDatabase setupdomwizard
m_dir.createDatabase complete
db.setTitle Setup Wizard Database
db.setTitle complete
createDatabase exit
createDocument
createDocument exit
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue ServerType=1
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue SerialPort=-1
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue ServerIDFile=0
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue ServerIDFileName=server.id
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue $CountryCode=null
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue OrgName=MyOrg
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue CertIDFile=0
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue CertIDFileName=cert.id
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue CertifierPassword=******
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue DomainName=DominoDomain
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue LastName=Hampel
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue FirstName=Thomas
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue Middle=null
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue MinPasswordLength=5
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue AdminIDFile=0
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue AdminIDFileName=null
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue AdminPassword=******
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue AdminUserIDPath=null
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue DirectoryChoice=0
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
DominoServer - setupCommonServer
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue ServerName=Server1
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue ServerTasks=Update,Replica,Router,AMgr,AdminP,CalConn,Sched,LDAP,RnRMgr
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
setNotesINIValue DisableLDAPOnAdmin=0
DefaultDataPath= /local/notesdata
opening notes.ini file at /local/notesdata/notes.ini
setNotesINIValue exit -
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setListValue
setListValue Ports=0
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setListValue
setListValue PortNames=TCPIP
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setListValue
setListValue NotesNamedNetwork=TCPIP Network
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setListValue
setListValue NotesNamedNetworkCustom=0
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setListValue
setListValue NetworkAddress=wien.demo.com
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setListValue
setListValue Encryption=1
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setListValue
setListValue Compression=1
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue ServerHostName=wien.demo.com
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue Log_Replication=1
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue Log_Sessions=1
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue IISInstalled=0
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue ProhibitAnonymousAccess=1
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.setValue
setValue LocalDomainAdmins=1
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.saveDocument
Document saved   NoteID= 8F6
DominoServer - SetupProgressBar SETUP_PROGRESS_DISABLE
SetupProgressBar - changeProgressBar// SETUP_PROGRESS_DISABLE
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar SETUP_PROGRESS_ENABLE
SetupProgressBar - changeProgressBar// SETUP_PROGRESS_ENABLE
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar   5
SetupProgressBar - changeProgressBar//   5
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  10
SetupProgressBar - changeProgressBar//  10
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Begin registering /MyOrg...
SetupProgressBar - changeProgressBar// Begin registering /MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Creating ID for /MyOrg...
SetupProgressBar - changeProgressBar// Creating ID for /MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Begin certifying /MyOrg...
SetupProgressBar - changeProgressBar// Begin certifying /MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Updating Certification Log
SetupProgressBar - changeProgressBar// Updating Certification Log
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar
SetupProgressBar - changeProgressBar//
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Done certifying /MyOrg...
SetupProgressBar - changeProgressBar// Done certifying /MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar /MyOrg successfully registered.
SetupProgressBar - changeProgressBar// /MyOrg successfully registered.
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  20
SetupProgressBar - changeProgressBar//  20
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  30
SetupProgressBar - changeProgressBar//  30
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Creating ID for Thomas Hampel/MyOrg...
SetupProgressBar - changeProgressBar// Creating ID for Thomas Hampel/MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Begin certifying Thomas Hampel/MyOrg...
SetupProgressBar - changeProgressBar// Begin certifying Thomas Hampel/MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Updating Certification Log
SetupProgressBar - changeProgressBar// Updating Certification Log
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar
SetupProgressBar - changeProgressBar//
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Done certifying Thomas Hampel/MyOrg...
SetupProgressBar - changeProgressBar// Done certifying Thomas Hampel/MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  40
SetupProgressBar - changeProgressBar//  40
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Creating the Domino Directory for your domain...
SetupProgressBar - changeProgressBar// Creating the Domino Directory for your domain...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  50
SetupProgressBar - changeProgressBar//  50
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Begin registering /MyOrg...
SetupProgressBar - changeProgressBar// Begin registering /MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Adding /MyOrg to the Domino Directory...
SetupProgressBar - changeProgressBar// Adding /MyOrg to the Domino Directory...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar /MyOrg successfully registered.
SetupProgressBar - changeProgressBar// /MyOrg successfully registered.
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  60
SetupProgressBar - changeProgressBar//  60
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  65
SetupProgressBar - changeProgressBar//  65
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Begin registering Server1...
SetupProgressBar - changeProgressBar// Begin registering Server1...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Creating ID for Server1/MyOrg...
SetupProgressBar - changeProgressBar// Creating ID for Server1/MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Begin certifying Server1/MyOrg...
SetupProgressBar - changeProgressBar// Begin certifying Server1/MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Updating Certification Log
SetupProgressBar - changeProgressBar// Updating Certification Log
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar
SetupProgressBar - changeProgressBar//
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Done certifying Server1/MyOrg...
SetupProgressBar - changeProgressBar// Done certifying Server1/MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Adding Server1/MyOrg to the Domino Directory...
SetupProgressBar - changeProgressBar// Adding Server1/MyOrg to the Domino Directory...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Server1/MyOrg successfully registered.
SetupProgressBar - changeProgressBar// Server1/MyOrg successfully registered.
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  70
SetupProgressBar - changeProgressBar//  70
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  75
SetupProgressBar - changeProgressBar//  75
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Begin registering Thomas Hampel...
SetupProgressBar - changeProgressBar// Begin registering Thomas Hampel...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Creating mail file for Thomas Hampel/MyOrg...
SetupProgressBar - changeProgressBar// Creating mail file for Thomas Hampel/MyOrg...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Adding Thomas Hampel/MyOrg to the Domino Directory...
SetupProgressBar - changeProgressBar// Adding Thomas Hampel/MyOrg to the Domino Directory...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Thomas Hampel/MyOrg successfully registered.
SetupProgressBar - changeProgressBar// Thomas Hampel/MyOrg successfully registered.
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  76
SetupProgressBar - changeProgressBar//  76
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  77
SetupProgressBar - changeProgressBar//  77
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  78
SetupProgressBar - changeProgressBar//  78
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  80
SetupProgressBar - changeProgressBar//  80
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  80
SetupProgressBar - changeProgressBar//  80
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  85
SetupProgressBar - changeProgressBar//  85
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Updating network settings...
SetupProgressBar - changeProgressBar// Updating network settings...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  90
SetupProgressBar - changeProgressBar//  90
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar Configuring default ACLs for all databases...
SetupProgressBar - changeProgressBar// Configuring default ACLs for all databases...
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar  99
SetupProgressBar - changeProgressBar//  99
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar
SetupProgressBar - changeProgressBar//
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar 100
SetupProgressBar - changeProgressBar// 100
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar SETUP_PROGRESS_DISABLE
SetupProgressBar - changeProgressBar// SETUP_PROGRESS_DISABLE
DominoServer - SetupProgressBar exit
DominoServer - SetupProgressBar SETUP_PROGRESS_DISABLE
SetupProgressBar - changeProgressBar// SETUP_PROGRESS_DISABLE
DominoServer - SetupProgressBar exit
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
Trying to delete the setup database
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.deleteDB
DominoAPI - deleteDB
Thread= Thread[Thread-5,5,main]
DominoAPI - deleting the setup database
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
Successful setup
RunWizard: silent wizard has ended
endWizard
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.endNotes
DominoAPI - endNotes terminating notes
Thread= Thread[Thread-5,5,main]
Deleting setup db
DominoAPI - deleteDB
Thread= Thread[Thread-5,5,main]
EndNotes Error - Can't delete setup database
**DominoAPI - endNotes NotesThread.stermThread()**
About to notify api caller
About to wait on run
Woke in DominoAPIThread.callAPI()
About to wait on DominoAPIThread.callAPI()
Woke up from wait on run
dominoAPI.run.term
About to notify api caller
Woke in DominoAPIThread.callAPI()
DominoConstants.getWritableDirectory()
writable directory = /tmp
Close silent log

My docker start command
vagrant@docker:/nodejs/domino-docker$ sudo docker run -it -e "ServerName=Server1" -e "OrganizationName=MyOrg" -e "AdminFirstName=Thomas" -e "AdminLastName=Hampel" -e "AdminPassword=passw0rd" -h wien.demo.com -p 80:80 -p 1352:1352 -p 443:443 --name server1 ibmcom/domino-ce:10.0.1FP2

Maybe someone can help me.

just back from holidays... sorry for the delay.
we need more information. are you sure the server is "frozen"?
did you try to look into the notes.log or use the server console?
you can run a bash into the container and have a look directly.
and you can use the "domino" script inside the container to check.
also it might be easier to use the management script to run the image and to bash into it etc ..
it covers all the different docker commands and there is an environment file that you can fill instead of the variables used separately. but your setup should work as well.
-- Daniel


feat: add WIP metrics SDK

This is the start of a ground-up rewrite of the metrics SDK. Even if we decide not to move forward with #2598 I think it makes sense to rethink the SDK from the beginning.

/easycla


test: increase unit test coverage in /pkg/client/redhatsso

Description
Increase unit test coverage in /pkg/client/redhatsso
Jira : https://issues.redhat.com/browse/MGDSTRM-8140
Coverage Before: 0%
Coverage After: 45.3%
Verification Steps

Run make test
Run make test/html/coverage/report
Should be able to see the increased test coverage

Checklist (Definition of Done)

[x] All acceptance criteria specified in JIRA have been completed
[x] Unit and integration tests added that prove the fix is effective or the feature works (tested against emulated and non-emulated OCM environment)
[ ] Documentation added for the feature
[ ] CI and all relevant tests are passing
[ ] Code Review completed
[ ] Verified independently by reviewer
[ ] All PR comments are resolved either by addressing them or creating follow up tasks
[ ] Required metrics/dashboards/alerts have been added (or PR created).
[ ] Required Standard Operating Procedure (SOP) is added.
[ ] JIRA has been created for changes required on the client side

@JasonPowr - I think NewSSOClient and GetToken are testable as well? WDYT?

@ziccardi would you mind having another look?


Hide/Reveal individual point features.

Allow Points layer to be expanded, so user can hide/reveal specific points

Done.


[Submarine Spark Security] "Drop Table" Access Control Bypassed / Ignored

Hi, I am using Spark 2.4.5 and Ranger 1.2.0, and built the submarine-spark-security plugin on commit 2ff3339 with mvn clean package -Dmaven.javadoc.skip=true -DskipTests -pl :submarine-spark-security -Pspark-2.4 -Pranger-1.2.
Upon creating a user in Ranger with no permissions (or in my case, precisely, I created an user in OpenLDAP, synced it via ranger-usersync, and did not assign any permissions for the new user), it is expected the user will get permission denied error (e.g. SparkAccessControlException) for all SQL operations (e.g. SELECT, INSERT, DROP).
However, the permission denial only works for SELECT & INSERT.
"DROP TABLE" was still allowed despite the user having no permissions at all, and the table was dropped as a result.
I am setting spark.sql.extensions=org.apache.submarine.spark.security.api.RangerSparkSQLExtensionif it matters. hive.server2.authentication is also set to LDAP in /spark/conf/hive-site.xml.

cc @xunliu

Do you mind if you can create a PR to fix this @atomeel ?

Have you solved the problem？ @atomeel @yaooqinn

I have fixed this problem locally，but I found that this model has been removed. Where do I submit the pull request ?
@yaooqinn

Besides the drop table  permission problem, there are also the insert and  alter table permission problem.

We will maintain this module in apache/incubator-kyuubi later. Currently, we haven't finished the initial setup yet, would you like to help?

OK

does there are any solutions in this case now? I found the same question now

ranger-2.3.0 hive-3.1.3 hdfs-3.3.6


iOS not returning bool.

Only on iOS this occur.
When checking isAppInstalled, it will return null when it is not installed, and will return 1 when it is installed. While on android it will return true or false. A bit of a pain to have to distinguish between platforms the return value. Unsure if this is happening to anyone else. I understand the return type is dynamic.

Also having this same issue on June 10, 2022.


Running StardewXNBHack on MacOS gives me a "too many symbolic links" error message

Hi! I'm new to modding and github so I hope I am doing this issue submission correctly. I would like to view the contents of Stardew XNB files, so I downloaded StardewXNBHack and unzipped it into my game folder so that "StardewXnbHack.exe" and "StardewXnbHack.command" are in the same folder as "StardewValley.exe".
When I double-clicked on "StardewXnbHack.command", I got this error, and no XNB files were unpacked:

(I am not sure if this is an issue with StardewXNBHack, or a user error on my part.)

I fixed the path error via 5193c618c57bb0a802b3cf811d63409f39b6abc5 for the upcoming 1.0.2, and sent you a test build to try on Discord. Feel free to reply there if you still have any issues!
(I'm not sure what's causing the "too many levels of symbolic links" messages, but they don't seem to be causing any issues.)


load algoliasearch V2 when jsDelivr latest detected

This will make the V3 update handle the latest/algoliasearch.min.js
usage.
fixes #63
@redox @bobylito
When manually upgrading to V3 without modifying usage:

When using latest version tag from jsdelivr:

Super nice. :+1:

Love it ! :)

credits to @redox who thought about the doc.write idea


Viewer cant handle some IPS's

[ips.json](https://github.com/jddamore/IPSviewer/files/12920468/ips.json)
 -error is reproduceable with the attached IPS.

Jens,
So I didn't see the error from your screenshot, but in the sample you posted, there are a few issues:

https://build.fhir.org/ig/HL7/fhir-ips/StructureDefinition-Bundle-uv-ips.html
The fullUrls were missing but are required by standard. The IPS viewer uses those to crosslink entries

The sample had some sections with no data

The sample had what appeared to be "Immunization" resource in the Allergies section.

You reference the Medications in the section for Medications (but better to just reference the MedicationStatements as guided here: https://build.fhir.org/ig/HL7/fhir-ips/StructureDefinition-Composition-uv-ips-definitions.html#diff_Composition.section:sectionMedications

I went ahead and attempted to "fix" the four above issues. For the sections with no data, I just removed them. The new sample is posted here: https://github.com/jddamore/IPSviewer/blob/main/samples/connectathon_samples/DK_Jens_Villadsen_02.json
That sample will render with no edits to viewer. There might be some improvements to make, which we can discuss here. It will tell you some requried sections are missing and that you have missing references (your sample didn't contian the referenced Immunization resource). Let me know if you have another sample with the "includes" error as you screenshot above.

Thx for the response. I fixed 1) and it did the job. 2) I can live with. 3) is now fixed - thx. 4) I dont entirely follow you. I've added both MedicationStatements and Medications. From https://build.fhir.org/ig/HL7/fhir-ips/ipsStructure.html#list-of-profiles it looks like both should be there. Do you suggest that I remove the Medications from the section and just have them referenced from the MedicationStatement.medication?.

Just reference the Medication resources from the MedicationStatement. Don't include "Medication" resources in the Composition.section.entry for the medications section since it's not in the definition of expected resource profiles (i.e. Reference(MedicationStatement, MedicationRequest, MedicationAdministration, MedicationDispense, DocumentReference from that link)

One could get the idea that if its mentioned there, then it should be part of the section

The text could be understood so:

Following are the profiles that have been defined for each section. (R) denotes a required section (i.e. must be present in an IPS), (S) denotes a recommended section, the others are optional

I agree that's confusing. I opened a JIRA to change that wording: https://jira.hl7.org/browse/FHIR-42937 Comment there for change to standard. That said, add more here if the viewer isn't working (or needs improvement) as you dig further.

👍


[a11y walker] does not move consistently

Walking up sometimes jumps two levels.
Example: summation formula, navigating into the sigma (go all the way down, then one up will take you up two levels)

Fixed in SRE.

:+1:


[FreeBSD] Unbreak libdemangle build, libbsd is not required.

Trying to fix the FreeBSD build until we get proper CI :)

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 4946d9f66de9a61366a9af243ca5a06fff4b71ae

Addressed Jordan's comment.

@swift-ci please test

Build failed
Swift Test Linux Platform
Git Sha - 4946d9f66de9a61366a9af243ca5a06fff4b71ae

Build failed
Swift Test OS X Platform
Git Sha - 4946d9f66de9a61366a9af243ca5a06fff4b71ae


Truncate Support

First of all, thank you for the flatterer tool, it's great.
Is it possible to add truncate support just like the drop or something similar to a type definitions? The API I'm pulling data from doesn't have a JSON Schema so I ended up making a couple of changes to the postgresql_schema.sql file. I'm looking for ways to update the data in the database (remove old, add new) without recreating the tables.
I was hoping to achieve this through the fields file but the documentation says it's ignored.

@itopaloglu83 I am sorry I do not understand what you mean here.  Could you try and add more detail or an example.

Sure thing.
Currently, there are two different ways to push data to a database. One can either a) append the data to an existing table, or b) replace the entire table with the new data (the drop table option). I was wondering if it would be possible to add a third option that truncates all the existing data in the table and then appends the new data into that existing table.
What's the use case? When using data analysis tools like Metabase, it would be quite handy to just replace the data with the updated one without recreating the tables etc. It ensures that underlying SQL queries do not error out due to schema changes.

Thank you!


The ECONNREFUSED exception should be caught

I'm running into an issue attempting to send email. This SMTP server requires authentication which I'm supplying, but I'm getting an error:
/usr/local/lib/ruby/2.0.0/net/smtp.rb:541:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)

Currently the Mail Gem is not catching this exception and it should to provide more details as to why the connection was refused to aid in debugging.

require 'mail'

mail = Mail.new do
  from<EMAIL_ADDRESS>  to<EMAIL_ADDRESS>  subject  'Here is the image you wanted'
  body     'Hey there!'
  #add_file :filename => 'somefile.png', :content => File.read('/somefile.png')
end

Mail.defaults do
  delivery_method :smtp, { :address    => "smtp.gmail.com",
                          :port       => 587,
                          :user_name  =><EMAIL_ADDRESS>                          :password   => ENV['PASSWORD'],
                          :authentication => :plain,
                          :enable_starttls_auto => true
                        }
end

mail.deliver!

Stacktrace:
 ruby send_emails.rb
/usr/lib/ruby/2.1.0/net/smtp.rb:541:in `initialize': Connection refused - connect(2) for "localhost" port 25 (Errno::ECONNREFUSED)
	from /usr/lib/ruby/2.1.0/net/smtp.rb:541:in `open'
	from /usr/lib/ruby/2.1.0/net/smtp.rb:541:in `tcp_socket'
	from /usr/lib/ruby/2.1.0/net/smtp.rb:551:in `block in do_start'
	from /usr/lib/ruby/2.1.0/timeout.rb:91:in `block in timeout'
	from /usr/lib/ruby/2.1.0/timeout.rb:101:in `call'
	from /usr/lib/ruby/2.1.0/timeout.rb:101:in `timeout'
	from /usr/lib/ruby/2.1.0/net/smtp.rb:550:in `do_start'
	from /usr/lib/ruby/2.1.0/net/smtp.rb:520:in `start'
	from /var/lib/gems/2.1.0/gems/mail-2.6.3/lib/mail/network/delivery_methods/smtp.rb:112:in `deliver!'
	from /var/lib/gems/2.1.0/gems/mail-2.6.3/lib/mail/message.rb:252:in `deliver!'
	from send_emails.rb:21:in `<main>'

Okay got my mistake!
Mail.defaults should be the first thing to do.


Getting New Lines

Using
fastapi[all]==0.103.1
jinja2-fragments==1.0.0
I'm getting lots of \n new lines all over the block when using the Jinja2Blocks
{% block test_items %}

            {% for item in items %}

{{ item }}

            {% endfor %}

{% endblock %}

Output and it is stringified with quotations
"\n
\n
\n\n \n
 Item1
\n \n
 Item2
\n \n
\n
\n"

but if I put this in a partial html file with just

    {% for item in items %}

{{ item }}

    {% endfor %}

Then comes out perfect

Item1
Item2

Can you understand why it might be creating extra line items.
Using python3.11-bullseye docker container

We recently changed the behavior for FastAPI to return a Response object instead of pure text, but I never released a packaged version with that change. I just did that and pushed it to PyPi as 1.1.0. Could you download the new version and check if that works as you would expect, please?

Hi!

Then comes out perfect

Can you show the code for it, please?
No matter what I do, I get these extra newlines and this behavior is expected / on par with the default Jinja2 environment. The FastAPI (Starlette) templating works similarly.
Code
from fastapi import FastAPI
from fastapi.requests import Request
from fastapi.templating import Jinja2Templates
from jinja2_fragments.fastapi import Jinja2Blocks

app = FastAPI()

templ_default = Jinja2Templates(directory="templates")
templ_blocks = Jinja2Blocks(directory="templates")

@app.get("/blocks/full_page")
async def full_page_blocks(request: Request):
    return templ_blocks.TemplateResponse(
        "items.html.jinja",
        {"request": request, "items": range(5)},
    )

@app.get("/blocks/items")
async def only_content_blocks(request: Request):
    return templ_blocks.TemplateResponse(
        "items.html.jinja",
        {"request": request, "items": range(5)},
        block_name="items",
    )

@app.get("/default/full_page")
async def full_page_default(request: Request):
    return templ_default.TemplateResponse(
        "items.html.jinja",
        {"request": request, "items": range(5)},
    )

Tempaltes
base.html.jinja

<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>This is the title</title>

This is a header

    {% block items %}
    {% endblock %}

items.html.jinja

{% extends "base.html.jinja" %}
{% block items %}

    {% for item in items %}

{{ item }}

    {% endfor %}

{% endblock %}

Rendered HTML
blocks_full_page.html

<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>This is the title</title>

This is a header

0

1

2

3

4

blocks_items.html

0

1

2

3

4

default_full_page.html

<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>This is the title</title>

This is a header

0

1

2

3

4

If you don't want that extra whitespace, you may want to check this.
Here's how it looks:
templ_blocks = Jinja2Blocks(
    directory="templates",
    trim_blocks=True,
)

blocks_full_page.html (trim)

<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>This is the title</title>

This is a header

0

1

2

3

4

There's also lstrip_block=True which removes even more space.

Closing as @senpos provided an explanation of the behavior, and it's consistent with default jinja output.


Issue with Active Navigation Ignore

Describe the bug
A clear and concise description of what the bug is.
When trying to patch Active Navigation Ignore now no longer green menu works
I updated my toolbox from 4.1 to 4.2A but 1st added added the files from NavActiveIgnore.jar into the LSD folder.
However like butOkt after import GEM.jar from Custom/GEM/ I can no longer go into the Green menu.
When I click on test mode it goes onto the next screen showing title of Green Menu but then clicking on this just takes you to a black screen
Can no longer reinstall toolbox from backup as can not get onto the green menu.... Or reinstall tool box again as the start button is not highlited because its recognising same version number.
Any ideas?
Version MHI2_ER_VWG13_P4521_MU1367
Maybe next update can have different version number to allow update.

However like butOkt after import GEM.jar from Custom/GEM/ I can no longer go into the Green menu.

What do you mean here, did you run an import gem menu item in toolbox?

Ok I will close this now as I manage to redo a full recovery by re applying my original firmware. This has got the green menu working again. Re did tool box and applied the patch and all working. Nav on AID works whilst google maps running. Thanks for all efforts and help.


Zeyrek lemmatizes "içişleri" to "içmek"

I'm not Turkish, but as far as I know, this is incorrect. İçmek means to drink whereas İçişleri means interior; quite different words semantically.

Thank you for reporting, @abhi-kr-2100 ! You are right that these words don't have the same lemma. If I remember correctly, lemmatizer is very dumb, and it simply returns the first analysis result. This is not always the correct one, as in this case. Unfortunately, I don't have a clear idea on how to implement the selection of the best lemma from a list of options.
You can get all possible options if you use analyzer instead of lemmatizer.


[9.x] Fixes Command::setHidden()

This pull request fixes the Command::setHidden() method that was not actually hidden the command from the list command.
This regression was introduced on the https://github.com/laravel/framework/pull/37941 pull request, and I've added a few tests to ensure this don't happen in the future.

Thanks for adding this back Nuno. 👍🏻

hmm yeah that could indeed be it.