Compilation errors when building with xcode

I'm trying to build xi-editor and getting this:
rope/src/lib.rs:454:33: 454:41 error: use of unstable library feature 'convert': waiting on RFC revision (see issue #27729)
rope/src/lib.rs:454:46: 454:54 error: use of unstable library feature 'convert': waiting on RFC revision (see issue #27729)
rope/src/lib.rs:1060:75: 1060:83 error: use of unstable library feature 'convert': waiting on RFC revision (see issue #27729)
I just cloned the project and run open XiEditor.xcodeproj and hit Run.
What am I doing wrong?

you must use beta or nightly version of rust to build this.

No, I'm building with stable, currently 1.8. What's your Rust version?

Yes, the problem was that I tried building with rust 1.4.0 once I upgraded it to 1.8.0 it worked. Thanks.


Certificates for local development domains (like *.test)

Hi there, please, is there any way we can generate ssl certificates for local dev domains, like xxx.test (which are not reachable on the internet)? I can generate SSL certificates manually, but I don't like it :)
Thanx!

Hi @maximkrusina
This is a duplicate of #8
@JrCs explained in that issue that he doesn't want to implement this feature on his project, I'll ask him if he'd reconsider, that seems like a good idea to me and not too hard to implement.
In the meantime you can use openssl from inside the container with docker exec, that's pretty straightforward and probably the easiest way for now.

Would be awesome!

@buchdag any updates with this issue yet? I got your workaround here https://github.com/nginx-proxy/acme-companion/issues/8#issuecomment-381893731 working for me, but it feels a bit hacky and I'd like to get as close to "one-click" for my dev environment as possible. It also continues to ping the LE staging server (or prod server if you don't change ACME_CA_URI) every hour.
Any progress on support for this would be deeply appreciated!


Workbench failed to connect to the server

I repeatedly get these errors when trying to access a codespace I'm using for CS50x

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.
Happy Coding!


Dimension of subsequent layers in Hypernetwork

Hi, I was reading through your implementation of HyperLSTM and the associated paper. I got lost in the shaping of the layers after the first layer. Could you please explain why the input size is 2*main_lstm_hidden_size?

Unspoken Felt

Sorry for the very late reply. I'm not sure what you are referring to exactly, could you please point to a line or a section of code please?

Lines 221-223 in class HyperLSTM state:
self.cells = nn.ModuleList([HyperLSTMCell(input_size, hidden_size, hyper_size, n_z)] +
                                  [HyperLSTMCell(hidden_size, hidden_size, hyper_size, n_z) for _ in
                                   range(n_layers - 1)])

This chunk calls Line 120 in the initialisation function.
self.hyper = LSTMCell(hidden_size + input_size, hyper_size, layer_norm=True)
Thus, the first layer created by the code chunk is
LSTMCell(hidden_size + input_size, hyper_size, layer_norm=True)
Then the next layer is:
LSTMCell(hidden_size + hidden_size, hyper_size, layer_norm=True) <-----I am confused about the 2*hidden_size dimension here.


Update Analytics disabling info in README.md to have a Swift info as well.

LGTM w/ 1 comment.

LGTM


Write down the first version of Coprocessor chapter

https://github.com/tisonkun/tikv-dev-guide/blob/main/src/understanding-tikv/coprocessor/intro.md

I’ll take this, maybe this month.

@skyzh cheers! Thanks for your help.

I’ll take this, maybe this month.

Any plan to updates on this? Maybe I can write some part of it too.

Not any yet. Shall we first elaborate some ideas on this 🤪🤪

Some quick ideas:
Contrary from things like "TiKV source code reading", I would focus on how a request is served and transformed from TiDB to local KV storage this time. Developers should know how data are like when a request reaches a certain stage. e.g. How is DAG represented, how does evaluation framework represents a vector, how storage layer stores key value pairs.

Overall Architecture of TiKV Coprocessor: DAG, Analyze, Checksum handler. We would focus on the first part (DAG).
What is a TiDB request like? (kvproto / tipb introduction)
How does Coprocessor handle cross-region requests? (Intro to storage snapshot, region, pd, and how TiDB aggregates results from TiKV)
What happens inside Coprocessor?

DAG
Executor
Aggregator
Expression Evaluation Framework
In-memory representation (chunk format)

How does copr get key-value from storage, and how are keys / values parsed?
Raw Coprocessor, copr2.0 or Coprocessor Plugin

Does this outline look good to you? cc @andylokandy @Xuanwo

how a request is served and transformed from TiDB to local KV storage

What is a TiDB request like? (kvproto / tipb introduction)

As a newbee, I also think this will be very helpful! BTW, maybe we can also add a similar chapter (or link) in tidb-dev-guide?

What is a TiDB request like? (kvproto / tipb introduction)

This may be related? @skyzh  https://github.com/pingcap/tidb-dev-guide/pull/72/files#diff-6757fa0daa0222e227ad8ba44971b32f53b7f8e9ff5a9ccff8a3964caa920c37R169-R175

@xxchan Looks good!

Hi @skyzh, I have a question, which seems to be contained in your outline:
Why the executors in the DAG request are an array? How to represent a DAG in an array? (There's no explanation about the representation.) 🤔
From the source code, I guess it's just unary executors from bottom to top...

I guess it is stored as RPN. I’ll cover this part in the dev guide.

Do you have a schedule? I'm eager to read it 😍😍😍

Do you have a schedule? I'm eager to read it 😍😍😍

2-3 weeks :)

@skyzh I think it is two weeks later 🐶

I've been busy last two weeks, so I'll begin this this week!


Check return from nxsem_wait_uninterruptible()

Resolution of Issue 619 will require multiple steps, this part of the first step in that resolution:  Every call to nxsem_wait_uninterruptible() must handle the return value from nxsem_wait_uninterruptible properly.  This commit is for all HCI UART drivers under arch/.

NOTE:  The Tiva HCI UART will fail the nxstyle checks because it uses two pre-processor definitions that contain 8th.  These come from Tiva header files and will be need to be address in the future because that change is out of the scope of this PR.


Change pydantic to be compatible with typing-extension==4.6.1

port https://github.com/pydantic/pydantic/commit/c4d3dee621884670eabbeb9b57b973508193c664
Selected Reviewer: @dmontagu

please review

Do we need to backport the pydantic/v1 subdirectory?

I've updated the v1 by the lastest 1.10.8.

Looks good! Please merge when you feel this is ready.

Ok, it's ready @adriangb


How to modify the hello-world-client-cpp20 example to unblock on timeout or response?

In hello-world-client-cpp20.cpp, how could it be modified to have a timeout getting the response?
Am I correct that the:
co_await agrpc::finish(*reader, response, status);

Would wait indefinitely for a response?
How to make one 'blocking' (actually co_await) call that would resume execution upon either timeout or reception of the response?
Then, how would I know whether it 'unblocked' due to timeout or response reception?
Also, what if the server later sends the response after the timeout? Would it get thrown away or could it get accidentally processed as the response to the next request?

gRPC provides two ways of handling cancellation of RPCs:

Set a deadline for the entire RPC. In that case, if the deadline is reached during the call to agrpc::finish the grpc::Status will be set to DEADLINE_EXCEEDED. The returned bool will still be true because the call actually made it to the server successfully, see also here.

grpc::ClientContext::TryCancel(). If the cancellation was successful then apgrc::finish's grpc::Status will be set to CANCELLED. You could e.g. have a shorter deadline for an individual RPC step like so:

grpc::Alarm alarm;
agrpc::wait(alarm, std::chrono::system_clock::now() + std::chrono::seconds(1),
            boost::asio::bind_executor(grpc_context,
                                        [&](bool alarm_expired)
                                        {
                                            if (alarm_expired)
                                            {
                                                client_context.TryCancel();
                                            }
                                        }));
co_await agrpc::finish(*reader, response, status);
alarm.Cancel();

and I might be able to get this to work with the new awaitable operators at some point as well. Note that for those to work the grpc::ClientContext would need to be passed to agrpc::finish so that it can be cancelled which is not yet possible.

Thanks @Tradias for your answer.

@Tradias : Since you are going to update some of the examples based on issue #7 , perhaps you could give an example of setting a deadline timer for one of the rpc calls.

I have added an example on how to cancel a RPC step. The example is based on a unary RPC which should rather be deadlined with grpc::ClientContext::set_deadline, but it can be applied to streaming RPC steps as well. I leave it as an exercise to you to do that :).
    grpc::ClientContext client_context;
    client_context.set_deadline(std::chrono::system_clock::now() + std::chrono::seconds(5));


Error using external ruleset with Compile-AppInBcContainer

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
When I try and use the Compile-AppInBcContainer command with an external ruleset, I get an error. I do not get the same error when I compile my app with the same external ruleset in VS Code.
Scripts used to create container and cause the issue
Before running below script:

Create a valid BC container....version and localization does not matter
Prepare a valid AL project folder in a folder shared with container
Upload a valid ruleset to Blob storage

Compile-AppInBcContainer -appProjectFolder "C:\ProgramData\BcContainerHelper\Extensions\bc-nextminor\my\app" `
    -containerName bc-nextminor `
    -updateSymbols `
    -enableCodeCop `
    -enableExternalRulesets `
    -rulesetFile "https://xxxxxxxxx.blob.core.windows.net/default/rulesets/my.ruleset.json"

Full output of scripts

Additional context
I have this exact setup in my AL workspace file to use the same external ruleset and it works as expected:

The rulesetfile in Compile-AppInBcContainer doesn't support URL's
You would need to download the ruleset to f.ex. $bcContainerHelperConfig.HostHelperFolder and provide that path.


Vis: Fix violin vis selection events

Closes list issues numbers here
Developer Checklist (Definition of Done)
Issue

[ ] All acceptance criteria from the issue are met
[ ] Tested in latest Chrome/Firefox

UI/UX/Vis

[ ] Requires UI/UX/Vis review

[ ] Reviewer(s) are notified (tag assignees)
[ ] Review has occurred (link to notes)
[ ] Feedback is included in this PR
[ ] Reviewer(s) approve of concept and design

Code

[ ] Branch is up-to-date with the branch to be merged with, i.e., develop
[ ] Code is cleaned up and formatted
[ ] Unit tests are written (frontend/backend if applicable)
[ ] Integration tests are written (if applicable)

PR

[ ] Descriptive title for this pull request is provided (will be used for release notes later)
[ ] Reviewer and assignees are defined
[ ] Add type label (e.g., bug, feature) to this pull request
[ ] Add release label (e.g., release: minor) to this PR following semver
[ ] The PR is connected to the corresponding issue (via Closes #...)
[ ] Summary of changes is written

Summary of changes

fixed selection events in violin plot not working properly
fixed:  vis configurations not applied in storybook

Screenshots
Additional notes for the reviewer(s)

Thanks for creating this pull request 🤗

Thanks for this PR @dvmartinweigl! I have tested it in BioInsight, and for me it works as expected :+1:


adding otp flag set with get for speeding up things

works great with xclip (linux) and pbcopy (mac osx)

Nice addition. There can be multiple entries for similar identifier. Eg: 2 entries for Google. Would be good if we can use both Issuer and Identifier (something like ISSUER:IDENTIFIER)


Multiple v-scroll-to cause bug

https://jsfiddle.net/9kc98fqv/
click all buttons will scroll to element2

https://jsfiddle.net/9kc98fqv/1/ works as expected in v2.6.4! Let me know if you have any more issues.

Thanks!


Allows to pass base container as build-arg

At least, using buildah 1.28.0, it seems to be stable enough to pass the images as proper build-arg, allowing to provide a clean interface to override the ones we want.
With this patch exposing all of the images as build arguments, we can even override the golang base container.
Proper usage is, for instance:
buildah bud -t my-test:latest \
        --build-arg KEYSTONE_BUNDLE=custom.local/openstack-k8s/keystone-operator-bundle:latest .

/ok-to-test

@cjeanner thanks. I had tried doing this a long time ago and it didn't work with podman at the time. Seems to be good now though (I'm on FC37 now) so lets do it.

/lgtm


Temporary failure in name resolution

While posting/reposting a vehicle ad:

Still happening. Goes away after a few hours.

Still happening. Goes away after a few hours.

Turns out it was an issue caused by my resolv.conf file in /etc. Had different DNS resolutions setup for work. Clearing out the file and adding the following worked.
nameserver <IP_ADDRESS>

Turns out it was an issue caused by my resolv.conf file in /etc. Had different DNS resolutions setup for work. Clearing out the file and adding the following worked.
nameserver <IP_ADDRESS>


fix: 4725 - refresh of the ios folder for background tasks

What

On ios, the standard app folders change regularly. The files are still there, but the folder is different.
This PR fixes a top sentry issue, where in background tasks we cannot find temporary files because the folder name changed.

Fixes bug(s)

Fixes: #4725

Impacted files

background_task_crop.dart: now using new safe method getFile instead of just File
background_task_image.dart: now using new safe method getFile instead of just File
background_task_upload.dart: now fixing the ios directory
crop_page.dart: now using a shared directory

Codecov Report

Merging #4772 (2329a09) into develop (21469af) will decrease coverage by 0.01%.
Report is 1 commits behind head on develop.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           develop   #4772      +/-   ##
==========================================
- Coverage     9.89%   9.89%   -0.01%
==========================================
  Files          312     312
  Lines        15809   15818       +9
==========================================
  Hits          1565    1565
- Misses       14244   14253       +9

Files
Coverage Δ

packages/smooth_app/lib/pages/crop_page.dart
0.00% <0.00%> (ø)

...mooth_app/lib/background/background_task_crop.dart
0.00% <0.00%> (ø)

...ooth_app/lib/background/background_task_image.dart
0.00% <0.00%> (ø)

...oth_app/lib/background/background_task_upload.dart
0.00% <0.00%> (ø)

:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

FYI, @g123k is off this week.

Thank you @g123k for your review!


[opt](index compaction)Use RAM dir to create tmp index_writer (#41371)

Proposed changes
bp #41371

run buildall

This optimization is not very necessary for branch-2.0.


Refactor and implement k8s pipeline builds

What this PR does:
This PR does follow two things

Refactor buildQuickSyncPipeline
Implement BuildPipelineSyncStages

Why we need it:

Refactor buildQuickSyncPipeline

I want to refactor this because there are some unnecessary codes.
My poor understanding of the codes introduced them in the past PR.

Implement BuildPipelineSyncStages

the pipedv1 deployment plugin spec needs this.

Which issue(s) this PR fixes:
Part of #4980
Does this PR introduce a user-facing change?: No

How are users affected by this change:
Is this breaking change:
How to migrate (if breaking change):

@Warashi Out of scope, but please note that in v1, we want to enable user to use XXX_SYNC stage while defining there pipeline 👀


refactor MigrationVersion

This PR improves readability of compareTo() and a few other improvements.

Does this actually resolve a problem?

This is only about performance and readability.

Sorry. This feels a little like bikeshedding. Won't merge.


Add Jack Scotti's 2nd SSH key

You'll need to update your git config in vagrant to get the commit properly attributed to your account (it's<EMAIL_ADDRESS>now).

@tijmenb updated

@jackscotti do you still need this? Seems to be unusual.

I am okay with getting this not merged but would like someone to expand a bit more on the reason why we are not happy with adding new ssh keys.

Had a chat with @alexmuller in real life. Closing this for now.


Refactored _try_get_base_connection

Coverage decreased (-0.2%) to 93.617% when pulling 29d91c3396aeae610d66385ca6084c82fb37d8d9 on refactor-_try_get_base_connections into aca016d081d162a130345279ea4acb31f3ac07ea on refactor-schema-graph.


400 response on sonarr v3

Describe the bug
I recreated the container to use SYNCARR_AUTO_SEARCH=0 and now it returns 400 when syncing.
Version
Docker, syncarr/syncarr.
Tried syncarr/syncarr:develop as well, no dice.
Command ran (domain redacted):
docker run -d --name syncarr-sonarr -e SONARR_A_URL=https://sonarr720.domain.com:443 -e SONARR_A_KEY=20591e9a1f1f4af2b5688f36930ca5bb -e SONARR_B_URL=https://sonarr.domain.com:443 -e SONARR_B_KEY=3fbaae2fdaa0442491d8f7d298697e18 -e SONARR_B_PROFILE_ID=6 -e SONARR_B_LANGUAGE_ID=1 -e SONARR_B_PATH=/mnt/unionfs/Media/TV/TV -e SYNC_INTERVAL_SECONDS=300 -e SYNCARR_AUTO_SEARCH=0 -e LOG_LEVEL=10 syncarr/syncarr
Debug logs
Both Sonarrs are v3 so I'm not sure why checkV3 is returning false on the destination. That could be the problem. Domain redacted.
2020-02-07 17:02:14,393 [MainThread  ] [INFO ]  syncing content title "Grey's Anatomy"

2020-02-07 17:02:14,393 [MainThread  ] [DEBUG]  {'tvdbId': 73762, 'qualityProfileId': 1, 'monitored': True, 'rootFolderPath': '/mnt/unionfs/Media/TV/TV', 'images': [{'coverType': 'fanart', 'url': 'https://sonarr.domain.com:443/MediaCover/556/fanart.jpg?lastWrite=637166373468245530'}, {'coverType': 'banner', 'url': 'https://sonarr.domain.com:443/MediaCover/556/banner.jpg?lastWrite=637166373468965540'}, {'coverType': 'poster', 'url': 'https://sonarr.domain.com:443/MediaCover/556/poster.jpg?lastWrite=637166373470205560'}], 'title': "Grey's Anatomy", 'titleSlug': 'greys-anatomy', 'seasons': [{'seasonNumber': 0, 'monitored': False, 'statistics': {'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 7, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}, {'seasonNumber': 1, 'monitored': True, 'statistics': {'previousAiring': '2005-05-23T01:00:00Z', 'episodeFileCount': 9, 'episodeCount': 9, 'totalEpisodeCount': 9, 'sizeOnDisk':<PHONE_NUMBER>, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 2, 'monitored': True, 'statistics': {'previousAiring': '2006-05-16T01:45:00Z', 'episodeFileCount': 27, 'episodeCount': 27, 'totalEpisodeCount': 27, 'sizeOnDisk':<PHONE_NUMBER>9, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 3, 'monitored': True, 'statistics': {'previousAiring': '2007-05-18T01:00:00Z', 'episodeFileCount': 25, 'episodeCount': 25, 'totalEpisodeCount': 25, 'sizeOnDisk':<PHONE_NUMBER>0, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 4, 'monitored': True, 'statistics': {'previousAiring': '2008-05-23T01:45:00Z', 'episodeFileCount': 17, 'episodeCount': 17, 'totalEpisodeCount': 17, 'sizeOnDisk':<PHONE_NUMBER>1, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 5, 'monitored': True, 'statistics': {'previousAiring': '2009-05-15T01:45:00Z', 'episodeFileCount': 24, 'episodeCount': 24, 'totalEpisodeCount': 24, 'sizeOnDisk':<PHONE_NUMBER>0, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 6, 'monitored': True, 'statistics': {'previousAiring': '2010-05-21T01:45:00Z', 'episodeFileCount': 24, 'episodeCount': 24, 'totalEpisodeCount': 24, 'sizeOnDisk':<PHONE_NUMBER>8, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 7, 'monitored': True, 'statistics': {'previousAiring': '2011-05-20T01:00:00Z', 'episodeFileCount': 22, 'episodeCount': 22, 'totalEpisodeCount': 22, 'sizeOnDisk':<PHONE_NUMBER>, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 8, 'monitored': True, 'statistics': {'previousAiring': '2012-05-18T01:00:00Z', 'episodeFileCount': 24, 'episodeCount': 24, 'totalEpisodeCount': 24, 'sizeOnDisk':<PHONE_NUMBER>, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 9, 'monitored': True, 'statistics': {'previousAiring': '2013-05-17T01:00:00Z', 'episodeFileCount': 13, 'episodeCount': 13, 'totalEpisodeCount': 24, 'sizeOnDisk':<PHONE_NUMBER>0, 'percentOfEpisodes': 100.0}}, {'seasonNumber': 10, 'monitored': True, 'statistics': {'previousAiring': '2014-05-16T01:00:00Z', 'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 24, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}, {'seasonNumber': 11, 'monitored': True, 'statistics': {'previousAiring': '2015-05-15T01:00:00Z', 'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 24, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}, {'seasonNumber': 12, 'monitored': True, 'statistics': {'previousAiring': '2016-05-20T01:00:00Z', 'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 24, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}, {'seasonNumber': 13, 'monitored': True, 'statistics': {'previousAiring': '2017-05-19T01:00:00Z', 'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 24, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}, {'seasonNumber': 14, 'monitored': True, 'statistics': {'previousAiring': '2018-05-18T01:00:00Z', 'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 24, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}, {'seasonNumber': 15, 'monitored': True, 'statistics': {'previousAiring': '2019-05-17T01:00:00Z', 'episodeFileCount': 0, 'episodeCount': 0, 'totalEpisodeCount': 25, 'sizeOnDisk': 0, 'percentOfEpisodes': 0.0}}, {'seasonNumber': 16, 'monitored': True, 'statistics': {'nextAiring': '2020-02-14T02:00:00Z', 'previousAiring': '2020-02-07T02:00:00Z', 'episodeFileCount': 1, 'episodeCount': 1, 'totalEpisodeCount': 14, 'sizeOnDisk':<PHONE_NUMBER>, 'percentOfEpisodes': 100.0}}], 'tvRageId': 3741, 'seasonFolder': True, 'languageProfileId': 3, 'tags': [], 'seriesType': 'standard', 'useSceneNumbering': False, 'addOptions': None}

2020-02-07 17:02:14,394 [MainThread  ] [DEBUG]  checkV3: "False" for https://sonarr.domain.com:443

2020-02-07 17:02:14,394 [MainThread  ] [DEBUG]  get_content_path: https://sonarr.domain.com:443/api/series?apikey=3fbaae2fdaa0442491d8f7d298697e18

2020-02-07 17:02:14,582 [MainThread  ] [DEBUG]  https://sonarr.domain.com:443 "POST /api/series?apikey=3fbaae2fdaa0442491d8f7d298697e18 HTTP/1.1" 400 None

2020-02-07 17:02:14,583 [MainThread  ] [ERROR]  server sync error for Grey's Anatomy - response 400

400 response would mean the auth didn't work. Something's wrong with the api key

API keys are correct.
https://imgur.com/a/ALqF7eB

so not setting SYNCARR_AUTO_SEARCH works? and this is v2 to v3 sonarr sync?

This is v3 to v3. I'll test the behavior without SYNCARR_AUTO_SEARCH and will report back.

What version does it say in the logs? Shoukld be one of the first things it prints. checkV3 was removed in a previous version. Should be at v1.7.3. I setup two v3 sonarrs and everything worked on my end. If you have to latest version, try checking that the profile_id exists, or trying the profile (name) instead of id. If that didn't work maybe reset the api keys?

The version appears to be the problem!
When running the docker run command it looks like it's pulling 1.4.1 for some reason? I was able to get it to re-pull the latest image using portainer but now it stops with this error:
2020-02-12 23:22:05,085 [MainThread  ] [ERROR]  cannot have more than one *arr type profile(s) setup at the same time
I have another syncarr for radarr running. Is that a problem?

yeah that's weird. `syncarr/syncarr:latest should pull v1.7.4. If you're using docker container they should be isolated ENV wise. I think it's trying to read the config.conf file as a back up. I'll update in v1.7.5

should be fixed in 1.7.5 might a take a few for docker hub to update

Thx, I'll try it in a bit.

I changed the key and recreated the container from scratch using the latest docker tag, now the API key works but the language profile fails:
response: [

  {

    "propertyName": "LanguageProfileId",

    "errorMessage": "Language profile does not exist",

    "attemptedValue": 0,

    "severity": "error",

    "errorCode": "LanguageProfileExistsValidator",

    "formattedMessageArguments": [],

    "formattedMessagePlaceholderValues": {

      "propertyName": "Language Profile Id",

      "propertyValue": 0

    }

  }

]

I don't have it set up on profile 0 so I don't know where that's coming from.
[
  "SONARR_A_URL=https://sonarr720.domain.com:443",
  "SONARR_A_KEY=20591e9a1f1f4af2b5688f36930ca5bb",
  "SYNC_INTERVAL_SECONDS=300",
  "LOG_LEVEL=10",
  "SONARR_B_URL=https://sonarr.domain.com:443",
  "SONARR_B_KEY=9464edbba11147af8006f358a51c46ed",
  "SONARR_B_PROFILE_ID=4",
  "SONARR_B_LANGUAGE_ID=1",
  "SONARR_B_PATH=/mnt/unionfs/Media/TV/TV",
  "SYNCARR_AUTO_SEARCH=0",
  "PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
  "LANG=C.UTF-8",
  "GPG_KEY=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D",
  "PYTHON_VERSION=3.6.10",
  "PYTHON_PIP_VERSION=20.0.2",
  "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/d59197a3c169cef378a22428a3fa99d33e080a5d/get-pip.py",
  "PYTHON_GET_PIP_SHA256=421ac1d44c0cf9730a088e337867d974b91bdce4ea2636099275071878cc189e",
  "IS_IN_DOCKER=1",
  "SYNCARR_BIDIRECTIONAL_SYNC=0",
  "SYNCARR_MONITOR_NEW_CONTENT=1"
]

When saving in sonarr and looking at dev tools the ID's are correct:
Profile URL: https://sonarr.domain.com/api/v3/qualityprofile/4?
Lang URL: https://sonarr.domain.com/api/v3/languageprofile/1?

Do you need the language id? If you're just sending 1 I think that's the default already. I saw one little bug and fixed it in 1.7.6 in latest

I had to add the variables when using :latest because python complained that they weren't defined and I just left them when I used the develop tag. Is that the bug you fixed in 1.7.6?

I'm not sure what you mean. You just need to include the required ENV vars for docker. you can get v1.7.6 from the latest tag


First error: npsp:Too many query rows: 50001

The error is being caused by the batch run of the 'RLLP_OppContactRollup_BATCH' class (see screenshot attached) and also by an iATS Brickwork Batch process (which creates and updates opportunity records). Note that there is similar query error noted for the 'RD_RecurringDonations_BATCH' class as well (noted in screenshot).
I've adjusted the batch size for iATS down to 50 records and also the NPSP Donor Statistics rollup batch size to 50 and the error is still occurring. Please see attached the NPSP error log noting the error list and one of the errors. Please let me know how I can help troubleshoot this further.
Thanks!

@TannerWells-IdealistConsulting We don't provide troubleshooting and support here in Github. Please post in the Power of Us Hub and feel free to tag the IATS folks as well. Thanks for understanding.


Respond with PURL on creation endpoint

As API consumer I expect that the API returns the PURL I just created. This allows me to directly save / forward this to my application.
This requires updating this endpoint:
https://github.com/fabiante/persurl/blob/9a75f019555857c1d6c1f434f1fbfcd73812eb5a/api/openapi.yml#L59-L60
        200:
          description: PURL created or updated.
          content:
            application/json:
              schema:
                type: string
                example: http://localhost/r/your-domain/your-purl-name

[ ] The returned URL should match the host used to communicate with this service.

I fear that responding with the full URL (host + path) may be more compilcated due to the host.
In the simplest case the Host header can be used on inspection. But often services run behind proxies / gateways and may be called with a differen host they don't know anything about. In that case, would the request still hold the information required to determine the host?
An alternative would be to configure the "public host" which persurl should simply assume on every request. This is done by systems like Keycloak which also have to explicitly be told what public URL they are served with.
If this is implemented without the host but simply the URL path, then this would be less complicated.

Handling the host part is deferred. I may add that once it becomes important for integrators.


Update build instructions in readme to include instructions for configuring social account logins

The build instructions need to be updated to include configuration for social account logins. Add this so that this knowledge is transferred on handover.

Will get on this next week


Config is overwritten when running tests

As mentioned here by @bugsounet the config.js is overwritten when running local tests.
Possible solution: Make a backup of the config before starting the testsuite.

@rejas: is it really urgent or can it wait until v2.26?
I want to try to familiarize myself with the test suite
But if it's really urgent for you, code it :)


Correlated subqueries

Previously, we would get a ValueError: Not all divisions are known, can't align partitions. Please use set_index to set the index. for something like:
SELECT name, price
FROM paintings
WHERE price> (
    SELECT AVG(price)
    FROM paintings
)

Not sure if this is the way we should go about this (not generalizable enough?), but here is an initial quick fix for that example.

Fixes example in #320

Codecov Report

:exclamation: No coverage uploaded for pull request base (datafusion-sql-planner@c8259b9). Click here to learn what that means.
The diff coverage is n/a.

@@                    Coverage Diff                    @@
##             datafusion-sql-planner     #683   +/-   ##
=========================================================
  Coverage                          ?   66.95%
=========================================================
  Files                             ?       73
  Lines                             ?     3640
  Branches                          ?      753
=========================================================
  Hits                              ?     2437
  Misses                            ?     1057
  Partials                          ?      146

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

cc @andygrove in case you have some thoughts on this

I filed an issue against DataFusion to add support for this type of query: https://github.com/apache/arrow-datafusion/issues/3266

Looks like this was resolved on the DataFusion side with https://github.com/apache/arrow-datafusion/pull/3287 !


SSL/TLS encryption issue

Hi,
It seems the messages are not properly encrypted when using SSL.
I have monitored the network with Wireshark and I don't see any SSL or TLS packets when communicating with the uWS server that uses SSL.
Everything works well in terms of communication between the client and uWS server, it just seems that there's no encryption performed.
When I communicate with the echo server (wss://echo.websocket.org) I can see the TLS packets that are exchanged.

This is the output from connecting via OpenSSL tools to a C++-only server:
[alexhultman@localhost ~]$ openssl s_client -connect localhost:3000
CONNECTED(00000003)
depth=0 C = AU, ST = Some-State, O = Internet Widgits Pty Ltd
verify error:num=18:self signed certificate
verify return:1
depth=0 C = AU, ST = Some-State, O = Internet Widgits Pty Ltd
verify return:1
---
Certificate chain
 0 s:/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
   i:/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDXTCCAkWgAwIBAgIJAKR7EGcgjf/7MA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV
BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQwHhcNMTYwNjA3MTI1MDM0WhcNMTYwOTE1MTI1MDM0WjBF
MQswCQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50
ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
CgKCAQEAq0wm9p0s8o+YEiExDynO+svqW//foQ8h4FkPMNzc2s9XDGdXN51J4Gqy
5TwJylG46345k0Vw0eOAphKGXrIcd5WZ3R80Y9ncPY2qyRW005bh+fD1pmLEpJz9
Qn3alNFfPss5sLV/oyXWYp61Ua04Gb+EoiypWKHw+tqd5MMxnFhdTRrJUjrRSQ7M
ikE9nCJarggpnjUdFDw2RppTHMjYA0y0sNwavcJ+uFW9h4Y/1ydZgsLbolCgUxlC
PHjLL7/lL0lX/NPCDKFg1a4EfX1zGbJszy4or6/YkdqCkdrrdZCzL/9t/u78UM24
mf+ngf7lflVqm6TBKKR1QvSBTxZt9wIDAQABo1AwTjAdBgNVHQ4EFgQUek6Q4+ia
ZFL1aU5uBWay3rQSCfwwHwYDVR0jBBgwFoAUek6Q4+iaZFL1aU5uBWay3rQSCfww
DAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAH8eggajAwN/vj0YiDN6+
Pp8pwevoy7PwAw30hUhgxAPz0riK3ThcvcphpOJSb8a2ylC8s6gYuASurRcX2q1x
7+R1UNhQzKYAMeZFWKRg0fow1kgLAkvoZbO0wQQ1kcrTgBatWUQOxtpsKyMSWocY
IP/XnzY6BXXgp6wiZKLSg1FQesTH4beGyIRlB/DCGx+d807fH5udH7BNWilHvPPN
klPUqb72+/cMMDDniOYatRjwhvwdSlPAXwRcY1V2Mp7ki1fOV3GrWF8wXWxB4Q7u
Pvfy8STWleh3W63el1v97N9Akb2XDQAOcjsQ95AZZfK9IGHWzoFYLpM6VtZmNmY2
pQ==
-----END CERTIFICATE-----
subject=/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
issuer=/C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
---
No client certificate CA names sent
---
SSL handshake has read 1178 bytes and written 525 bytes
---
New, TLSv1/SSLv3, Cipher is AES128-GCM-SHA256
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : AES128-GCM-SHA256
    Session-ID: 64B522BB991EF5A944D0C0AFAF83AA1B49B6E6B9D270A8CFA4191A1AB504463C
    Session-ID-ctx:
    Master-Key: 9906ADFE50A8258BD7471645C6B85EE0980365DEC54471567FE44EB02B7C519428D63AE131554DBFE52B3E143196B8C5
    Key-Arg   : None
    Krb5 Principal: None
    PSK identity: None
    PSK identity hint: None
    TLS session ticket lifetime hint: 300 (seconds)
    TLS session ticket:
    0000 - d3 b0 ad d2 4e f1 68 e5-8e e0 eb 87 0b 5f c5 d2   ....N.h......_..
    0010 - 41 5a 07 f9 1a 14 9b c5-e1 57 c1 11 0b 37 4c 59   AZ.......W...7LY
    0020 - 68 f0 f4 1f c6 bd 89 45-44 42 fb e1 d3 27 c7 f0   h......EDB...'..
    0030 - b8 38 97 9b 39 10 c5 aa-52 e3 d3 38 c1 d5 c5 39   .8..9...R..8...9
    0040 - bf d7 38 e9 a3 30 43 28-20 df e1 db ee ca a1 ef   ..8..0C( .......
    0050 - d1 79 b4 d6 8a a6 f8 27-73 c0 d7 c5 0f cc 30 f5   .y.....'s.....0.
    0060 - 19 bf ac 98 7d f0 96 19-ba ad d9 16 8e ed 9f 8b   ....}...........
    0070 - 70 db 7e 47 96 37 f0 b2-2a 68 19 4e d8 df 91 7e   p.~G.7..*h.N...~
    0080 - 91 02 d3 4a f2 04 7f 20-5a 1c fd 3d cd dc 15 46   ...J... Z..=...F
    0090 - 2d 35 18 29 3c d7 53 a6-21 63 7f 4d 4a 2b ce 66   -5.)<.S.!c.MJ+.f

    Start Time:<PHONE_NUMBER>
    Timeout   : 300 (sec)
    Verify return code: 18 (self signed certificate)
---
read:errno=0

Yes I do have a similar output with openssl s_client
Can you try with a browser or a nodejs client with the option NODE_TLS_REJECT_UNAUTHORIZED=0 and let me know if you capture SSL/TLS packets with wireshark? For me all the exchange seems to occur non encrypted.

QuanoX, eh? How's that working out?

Yeap QuanoX. For now everything is good, just started in June. There's a lot to be done, we have something like one year to prepare the minimum product.
Going back to the issue. For instance this code
<!DOCTYPE HTML>

  Run WebSocket

Gives me this wireshark trace:

If now I connect to wss://echo.websocket.org instead of wss://localhost:3000 I'll have this trace, which has SSL/TLS messages:

I was fired in May.

Fired? Why?

Economical black magic™

Sorry for that.. I didn't know. I don't know all that happened with the previous team.

http://stackoverflow.com/questions/25874304/wireshark-doesnt-show-ssl-packets-with-python-ssl-sockets
According to that post, Wireshark doesn't sniff SSL packets on any port other than 443 (the 80 of SSL). Try running the server on that port. Also, if you need an OpenCL guy you could hire me remotely :tada: :balloon:

Yes, you're right. That's an issue with wireshark.
Thanks!


TensorFlow Lite Android example doesn't compile with Bazel

TensorFlow Lite Android example doesn't compile with Bazel, as explained in its README.
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 17.10
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): master (c0662f1620c2b97abb79b8ae6a8a30f7c7719475)
Python version: 2.7.14
Bazel version (if compiling from source): 0.7.0
GCC/Compiler version (if compiling from source): 7.2.0
CUDA/cuDNN version: (not using cuda)
GPU model and memory: (not using GPU)
Exact command to reproduce: bazel build --cxxopt='--std=c++11'   //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo

Describe the problem
When trying to compile the TF Lite Android demo with Bazel, it doesn't work, yielding:
WARNING: The major revision of the Android NDK referenced by android_ndk_repository rule 'androidndk' is 16. The major revisions supported by Bazel are [10, 11, 12, 13, 14]. Defaulting to revision 14.
INFO: Analysed target //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo (0 packages loaded).
INFO: Found 1 target...
ERROR: /home/santiago/repos/tensorflow/tensorflow/contrib/lite/kernels/internal/BUILD:273:1: C++ compilation of rule '//tensorflow/contrib/lite/kernels/internal:tensor_utils' failed (Exit 1)
In file included from tensorflow/contrib/lite/kernels/internal/tensor_utils.cc:24:
In file included from ./tensorflow/contrib/lite/kernels/internal/optimized/neon_tensor_utils.h:21:
In file included from ./tensorflow/contrib/lite/kernels/internal/optimized/cpu_check.h:21:
external/androidndk/ndk/sources/android/cpufeatures/cpu-features.h:31:10: fatal error: 'sys/cdefs.h' file not found
#include <sys/cdefs.h>
         ^~~~~~~~~~~~~
1 error generated.
Target //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 14.636s, Critical Path: 7.92s
FAILED: Build did NOT complete successfully

I have already tried installing all APT packages that contain a file named sys/cdefs.h, including g{cc,++}-{5,6,7}-multilib. NDK 16 is installed, along with LLDB 3.0 and cmake.
Source code / logs
tf_env.txt:
== cat /etc/issue ===============================================
Linux s.local 4.13.0-16-lowlatency #19-Ubuntu SMP PREEMPT Wed Oct 11 19:51:52 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
VERSION="17.10 (Artful Aardvark)"
VERSION_ID="17.10"
VERSION_CODENAME=artful

== are we in docker =============================================
No

== compiler =====================================================
c++ (Ubuntu 7.2.0-8ubuntu3) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

== uname -a =====================================================
Linux s.local 4.13.0-16-lowlatency #19-Ubuntu SMP PREEMPT Wed Oct 11 19:51:52 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

== check pips ===================================================
numpy (1.13.3)

== check for virtualenv =========================================
True

== tensorflow import ============================================
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "tensorflow/python/pywrap_tensorflow.py", line 25, in <module>
    from tensorflow.python.platform import self_check
ImportError: No module named platform

== env ==========================================================
LD_LIBRARY_PATH /home/santiago/torch/install/lib:/home/santiago/torch/install/lib:
DYLD_LIBRARY_PATH /home/santiago/torch/install/lib:/home/santiago/torch/install/lib:

== nvidia-smi ===================================================
/dev/fd/63: línea 105: nvidia-smi: orden no encontrada

== cuda libs  ===================================================

I have met this error also.
Try different with NDK version,  get fatal error complaining different head file not found.
#include <sys/xxx.h>
Any one have a look at this?

i am now trying to compile the demo by Android Studio,but i want to know how you get the libtensorflow_lite.so,the new source recompiled  just get libtensorflow_inference.so,but in this so file no model named org.tensorflow.lite.Interpreter,can anyone help me.

I'm running into this problem too on Docker (I'm the one who wrote the build instructions). @bryant1410, could you also post the contents of your WORKSPACE file?
The build has been working in our internal Bazel tests, so my initial assumption is that this is an environmental configuration issue of some kind.

I cloned HEAD on my work machine and successfully built the app:
git clone http://github.com/tensorflow/tensorflow /tmp/tf
cd /tmp/tf
vim WORKSPACE
./configure
bazel build //tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo --cxxopt='--std=c++11' --config=android_arm

Here's what WORKSPACE looks like:
android_sdk_repository(
    name = "androidsdk",
    api_level = 23,
    build_tools_version = "26.0.1",
    path = "<my sdk path>",
)

android_ndk_repository(
    name = "androidndk",
    api_level = 14,
    path = "<my ndk path>",
)

And the output of bazel version:
Build label: 0.8.0
Build target: bazel-out/local-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Mon Nov 27 13:19:39 2017<PHONE_NUMBER>)
Build timestamp:<PHONE_NUMBER>
Build timestamp as int:<PHONE_NUMBER>

So there's... some critical environmental difference going on.

This is ultimately caused by https://github.com/bazelbuild/bazel/issues/4068. NDK version 16 rearranged important includes, and Bazel doesn't support it yet.
You should be able to work around this by manually downloading NDK version 15, which you'll have to search around online for (the sdk manager doesn't let you download older versions). You can also try messing with the NDK developer recommendations for build toolchain changes, which I haven't had time to experiment with.

Our official workaround at the moment is to download an older NDK and point to that instead. @bryant1410 , can you verify that works for you?

@angersson yes, that works. Thanks!

Thanks @angersson, reverting to NDK v14 worked for me!


Adding Control D mirror of the Unified blocklist

Steven, thanks for entertaining the PR.

Thank you for this Yegor @yegors.
Two things.

First: this repo has 16 readme files, one for each variant generated with each release. The file you need to edit is readme_template.md.
Second: Please put this in the Interesting Applications section. Please take only as much space as the other items presently under this sections. That's 3-lines max.

Thanks!

Thanks Yegor @yegors yes, this is good!
Merging.


SEED 715 Ref: Molo Polls app - templates refactor

@peterp you can compare and review
Semi Old:

Update:


@braintree/sanitize-url Cross-site Scripting vulnerability

could the dependency version be updated in package.json ?

Closing, see #672


Algolia Cyber Self-Assessment - October 2024

Initiative to complete Cyber self-assessment (CSA) for all applications in Equinor.com scope by end of 2024.
CSA are created via link below:
https://security.surecloud.com/core/home/(show:application_group/24367)
Algolia CSA is requested to be completed by end of October 2024.

this is completed


Conditionally uninitialized output variable Re in Modelica.Fluid.Dissipation.HeatTransfer.HeatExchanger.kc_flatTube used

Reported by jfrenkel on 17 Feb 2014 14:34 UTC
In the function Modelica.Fluid.Dissipation.HeatTransfer.HeatExchanger.kc_flatTube the output Re is only specified if IN_con.geometry == TYP.LouverFin or IN_con.geometry == TYP.RectangularFin is. True the enumeration does not yet comprise other possibilities. But if someone include on more possibility this is a good point for an undiscovered error. Initialise Re with a default value would prevent this easily.

Migrated-From: https://trac.modelica.org/Modelica/ticket/1429

Comment by jfrenkel on 17 Feb 2014 14:36 UTC
The same issue is in the function Modelica.Fluid.Dissipation.HeatTransfer.HeatExchanger.kc_roundTube.


don't do a request with expired main context

client: fix unnecessary request when context is expired
Following code should not delete key:
ctxStop, _ := context.WithTimeout(context.Background(), time.Nanosecond)
...
_, err := nkAPI.Delete(ctxStop, path, nil)

From my point of view the following test is wrong. We should not get closed body when  we know that context have already expired. Because we don't do any request at all.
func TestSimpleHTTPClientDoCancelContextResponseBodyClosedWithBlockingBody(t *testing.T) {
	tr := newFakeTransport()
	c := &simpleHTTPClient{transport: tr}

	ctx, cancel := context.WithCancel(context.Background())
	body := &checkableReadCloser{ReadCloser: &blockingBody{c: make(chan struct{})}}
	go func() {
		tr.respchan <- &http.Response{Body: body}
		time.Sleep(2 * time.Millisecond)
		// cancel after the body is received
		cancel()
	}()

	_, _, err := c.Do(ctx, &fakeAction{})
	if err != context.Canceled {
		t.Fatalf("expected %+v, got %+v", context.Canceled, err)
	}

	if !body.closed {
		t.Fatalf("expected closed body")
	}
}

Following code should not delete key is not guaranteed by the function. It only guarantees that if the context is done, it will return immediately.
Why should we support this guarantee? If you don't want to delete the key, why do you call the Delete function?

Why should we support this guarantee? If you don't want to delete the key, why do you call the Delete function?

I don't always can and want to check context expiration before run command.
And  anyway this code:

Makes redundant request.
Function  func (c *simpleHTTPClient) Do(ctx context.Context, act httpAction) (*http.Response, []byte, error) misleads with return.  We don't get response with already canceled context – this complicate debuging  in case of not-idempotence requests.
Fail-Fast, return-early and so on.

Makes redundant request.

I don't see that it makes redundant request anywhere.

Function func (c *simpleHTTPClient) Do(ctx context.Context, act httpAction) (*http.Response, []byte, error) misleads with return. We don't get response with already canceled context – this complicate debuging in case of not-idempotence requests.

It returns context error if it exits due to context passed in is done. Please check.

Fail-Fast, return-early and so on.

This could be done if you check the context before sending it into the function.

@brk0v Friendly ping.

The behavior has changed in today's client code. Please check again. Thanks!


Build crashes if input techniques have no platforms defined

As an individual or organization seeking to host an ATT&CK Extension via the ATT&CK website, I want to be able to view techniques while they are still being drafted.
Currently the ATT&CK website build will crash if any techniques in the input STIX data have an empty array for platforms:
$ python3 update-attack.py --modules clean website_build techniques matrices
clean                  : ---------------------------------------- 0.01s
matrices               : ---------------------------------------- Running...Traceback (most recent call last):
  File "update-attack.py", line 154, in <module>
    ptr['run_module']()
  File "/Users/jtrahan/working/workspaces/attack/attack-website/modules/matrices/__init__.py", line 18, in run_module
    return (matrices.generate_matrices(), matrices_config.module_name)
  File "/Users/jtrahan/working/workspaces/attack/attack-website/modules/matrices/matrices.py", line 35, in generate_matrices
    matrix_generated = generate_platform_matrices(matrix, notes, side_menu_data)
  File "/Users/jtrahan/working/workspaces/attack/attack-website/modules/matrices/matrices.py", line 52, in generate_platform_matrices
    data['matrices'], data["has_subtechniques"], data["tour_technique"] = get_sub_matrices(matrix)
  File "/Users/jtrahan/working/workspaces/attack/attack-website/modules/matrices/matrices.py", line 125, in get_sub_matrices
    platform_techniques = util.buildhelpers.filter_techniques_by_platform(techniques, matrix['platforms'])
  File "/Users/jtrahan/working/workspaces/attack/attack-website/modules/util/buildhelpers.py", line 786, in filter_techniques_by_platform
    if platform in obj["x_mitre_platforms"]:
  File "/Users/jtrahan/working/workspaces/attack/attack-website/env/lib/python3.8/site-packages/stix2/base.py", line 179, in __getitem__
    return self._inner[key]
KeyError: 'x_mitre_platforms'

To reproduce, simply delete the platforms values from any technique in the stock Enterprise-ATT&CK STIX data and build the website from that data. Example technique with no defined platforms:
{
            "created": "2020-02-11T18:46:56.263Z",
            "modified": "2020-03-20T15:56:55.022Z",
            "kill_chain_phases": [
                {
                    "kill_chain_name": "mitre-attack",
                    "phase_name": "credential-access"
                }
            ],
            "type": "attack-pattern",
            "id": "attack-pattern--d0b4fcdb-d67d-4ed2-99ce-788b12f8c0f4",
            "description": "Adversaries may attempt to dump the contents of /etc/passwd and /etc/shadow to enable offline password cracking. Most modern Linux operating systems use a combination of /etc/passwd and /etc/shadow to store user account information including password hashes in /etc/shadow. By default, /etc/shadow is only readable by the root user.(Citation: Linux Password and Shadow File Formats)\n\nThe Linux utility, unshadow, can be used to combine the two files in a format suited for password cracking utilities such as John the Ripper:(Citation: nixCraft - John the Ripper) # /usr/bin/unshadow /etc/passwd /etc/shadow > /tmp/crack.password.db\n",
            "name": "/etc/passwd and /etc/shadow",
            "created_by_ref": "identity--c78cb6e5-0c4b-4611-8297-d1b8b55e40b5",
            "object_marking_refs": [
                "marking-definition--fa42a846-8d90-4e51-bc29-71d5b4802168"
            ],
            "external_references": [
                {
                    "url": "https://attack.mitre.org/techniques/T1003/008",
                    "external_id": "T1003.008",
                    "source_name": "mitre-attack"
                },
                {
                    "description": "The Linux Documentation Project. (n.d.). Linux Password and Shadow File Formats. Retrieved February 19, 2020.",
                    "url": "https://www.tldp.org/LDP/lame/LAME/linux-admin-made-easy/shadow-file-formats.html",
                    "source_name": "Linux Password and Shadow File Formats"
                },
                {
                    "description": "Vivek Gite. (2014, September 17). Linux Password Cracking: Explain unshadow and john Commands (John the Ripper Tool). Retrieved February 19, 2020.",
                    "url": "https://www.cyberciti.biz/faq/unix-linux-password-cracking-john-the-ripper/",
                    "source_name": "nixCraft - John the Ripper"
                }
            ],
            "x_mitre_platforms": [

            ],
            "x_mitre_is_subtechnique": true,
            "x_mitre_version": "1.0",
            "x_mitre_permissions_required": [
                "root"
            ],
            "x_mitre_detection": "The AuditD monitoring tool, which ships stock in many Linux distributions, can be used to watch for hostile processes attempting to access /etc/passwd and /etc/shadow, alerting on the pid, process name, and arguments of such programs.",
            "x_mitre_data_sources": [
                "Command: Command Execution",
                "File: File Access"
            ]
        }

Supersedes #328.


External Mag Rotation

With a fresh pixhawk (all params reset) and an external mag there doesn't seem to be a way to set the rotation in QGC sensor calibration. Unless I've missed something it appears that you're only prompted for the rotation if CAL_MAGi_ID is set and CAL_MAGi_ROT >= 0 (external), but those aren't set until you calibrate.
https://github.com/mavlink/qgroundcontrol/blob/master/src/AutoPilotPlugins/PX4/SensorsComponent.qml#L109
One way to fix this would be filling in CAL_MAG*_ID in sensors. It gets a bit more complicated with the possibility of external mags coming and going and not wanting to throw away calibration until you have to.
https://github.com/PX4/Firmware/blob/master/src/modules/sensors/sensors.cpp#L1386

You should be prompted for rotations with a side dialog after cal completes.

On May 15, 2016, at 8:18 PM, Daniel Agar<EMAIL_ADDRESS>wrote:
With a fresh pixhawk (all params reset) and an external mag there doesn't seem to be a way to set the rotation in QGC sensor calibration. Unless I've missed something it appears that you're only prompted for the rotation if CAL_MAGi_ID is set and CAL_MAGi_ROT != -1, but those aren't set until you calibrate.
https://github.com/mavlink/qgroundcontrol/blob/master/src/AutoPilotPlugins/PX4/SensorsComponent.qml#L109
One way to fix this would be properly filling in CAL_MAG*_ID in sensors. It gets a bit more complicated with the possibility of external mags coming and going and not wanting to throw away calibration until you have to.
https://github.com/PX4/Firmware/blob/master/src/modules/sensors/sensors.cpp#L1386
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Ha, I totally missed that. Thanks Don
On Sun, May 15, 2016, 20:46 Don Gagne<EMAIL_ADDRESS>wrote:

You should be prompted for rotations with a side dialog after cal
completes.

On May 15, 2016, at 8:18 PM, Daniel Agar<EMAIL_ADDRESS>wrote:
With a fresh pixhawk (all params reset) and an external mag there
doesn't seem to be a way to set the rotation in QGC sensor calibration.
Unless I've missed something it appears that you're only prompted for the
rotation if CAL_MAGi_ID is set and CAL_MAGi_ROT != -1, but those aren't set
until you calibrate.

https://github.com/mavlink/qgroundcontrol/blob/master/src/AutoPilotPlugins/PX4/SensorsComponent.qml#L109

One way to fix this would be properly filling in CAL_MAG*_ID in sensors.
It gets a bit more complicated with the possibility of external mags coming
and going and not wanting to throw away calibration until you have to.

https://github.com/PX4/Firmware/blob/master/src/modules/sensors/sensors.cpp#L1386

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/PX4/Firmware/issues/4550#issuecomment-219325435


Set Image path from executable file (Image Module)

I just made a small tweak in the image module to get the image path from an executable file. Here is a sample configuration.
 "image/album-art": {
	  "exec":"~/.config/waybar/custom/spotify/album_art.sh",
	  "size": 32,
	  "interval": 5,
    },

If there is a path config exist, then it will load the image from the path config; otherwise, it will check for an exec configuration and execute the script, which should return a file path, and then it will load the image.
Here is a simple executable file
#!/bin/bash
album_art=$(playerctl -p spotify metadata mpris:artUrl)
if [[ -z $album_art ]]
then
   # spotify is dead, we should die to.
   exit
fi
curl -s  "${album_art}" --output "/tmp/cover.jpeg"
echo "/tmp/cover.jpeg"

@Alexays any update ?

@Alexays  is it okey

@Alexays

LGTM, can you update the wiki and the github one?
And i'll merge the PR :)

@Alexays  updated man page and  wiki

@Alexays  any update


Show Fix Bubble issue

VSCode Version: Code 1.17.1 (1e9d36539b0ae51ac09b9d4673ebea4e447e5353, 2017-10-10T14:21:18.489Z)
OS Version: Linux x64 4.4.0-97-generic
Extensions:

Extension
Author (truncated)
Version

html-class-suggestions
And
1.0.7

ng-template
Ang
0.1.7

material-icon-theme
PKi
2.2.2

vscode-intelephense-client
bme
0.7.2

npm-intellisense
chr
1.3.0

path-intellisense
chr
1.4.2

vscode-todo-plus
fab
1.5.2

auto-rename-tag
for
0.0.14

icon-fonts
idl
1.8.2

code-beautifier
mic
1.7.2

vscode-scss
mrm
0.6.2

debugger-for-chrome
msj
3.3.1

vscode-todo-highlight
way
0.5.11

(3 theme extensions excluded)

Show Fix Bubble is not showing in the right place. Its always show in one line above. It's okay till the last update. It doesn't make any sense. Hope it would be fixed in the next release.

This is as designed.

But it looks odd


Fixes #4 and #8

Fixes #4
Fixes #8

I am open to making more changes (if required)

The Anchor tags have changed (they were linked to different elements before).

think it maybe better to not change color for portfolio code

So, should I change the on-hover colour to some shade of grey?

yes

@bilalakhter Done. Please review the changes.

the reference anchor tags are still same anyways glad you contributed i will close this PR now


glibc: use --enable-static-pie only on supported platforms

Motivation for this change
https://github.com/NixOS/nixpkgs/pull/123989#issuecomment-872360134
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

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

[x] Fits CONTRIBUTING.md.

@ofborg eval
(Sorry, ofborg's certs recently had an issue, meaning that it was unable to
react to PRs. This has been fixed, but all PRs filed in this period will need
ofborg to be manually kicked off.)

If I read the announcement for glibc 2.35 right, we'll be able to simply drop the flag, as it should be auto-enabled where supported.  /cc PR #165979


Add the ability to have child navigation links in sitenavigation

Also add the ability to set the order of the links.

I need an example of how to do this one there john.


Scala Incremental Compilation for Multi-Module projects broken in 7.x

Scala Incremental Compilation for Multi-Module projects is broken in 7.x (tested in 7.4) when it works in 6.9.2.
Expected Behavior
Proper incremental compilation on a single source file change.
Current Behavior
Full recompilation of a module for a single source file change in that module.
Context
Working in 6.9.2, but does not work in 7.x (7.3.3, 7.4)
Steps to Reproduce
We have a large, proprietary codebase, where nested classes are being invalidated for dependent modules.  The repo https://github.com/justinb99/gradle7-scala-incr-compile-issue trivially reproduces the problem.
In 7.4, a debug log shows that numerous nested class files from dependent modules become invalidated, so even changing one source file in a module triggers a full rebuild of that module.  Based on the observed logs, it looks identical to a previous issue in the Maven Scala Plugin, and it appeared the proper analysis information wasn't being carried between modules: https://github.com/davidB/scala-maven-plugin/issues/368
Below is an abbreviation of our full project build logs running Gradle 7.4
2022-03-05T13:27:37.579-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompilerFactory] Invalidating '/project/module1/build/classes/scala/main/module1/SafeThrowable.class' because module1.SafeThrowable$SafeThrowableWrapper is now provided by /project/module1/source/.../SafeThrowable$SafeThrowableWrapper.class**

# 70 other invalidations of nested class files

Initial source changes:
	removed:Set()
	added: Set()
	modified: Set(/one/single/scala/file.scala)
Invalidated products: Set()
External API changes: API Changes: Set()
Modified binary dependencies: Set(/all/nested/class/files/previously/identified...)
Initial directly invalidated classes: Set(/one/single/scala/file.scala)

2022-03-05T13:27:37.792-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompilerFactory] Recompiling all sources: number of invalidated sources > 50.0% of all sources

For the referenced sample project, after a full compilation, make a change to Independent.scala (and IndependentTest.scala) and recompile/re-run tests (./gradlew :module2:scalaTest --debug).  From the Zinc logs, even though only Independent.scala changes, the StringUtil.class is invalidated:

Invalidating '/justinb99/gradle7-scala-incr-compile-issue/module1/build/classes/scala/main/justinb99/module1/StringUtil.class' because justinb99.module1.StringUtil$StringExtension is now provided by /justinb99/gradle7-scala-incr-compile-issue/module1/build/classes/scala/main/justinb99/module1/StringUtil$StringExtension.class

Below is a portion of the relevant build log from https://github.com/justinb99/gradle7-scala-incr-compile-issue during incremental compilation running Gradle 7.4:
2022-03-07T14:21:43.774-0600 [INFO] [org.gradle.api.internal.tasks.scala.ZincScalaCompiler] Compiling with Zinc Scala compiler.
2022-03-07T14:21:44.215-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompiler] Inputs(compilers: Compilers(scalac: Analyzing compiler (Scala 2.12.14), javaTools: sbt.internal.inc.javac.JavaTools$$anon$1@6ff3a6c4), options: CompileOptions(classpath: [Ljava.io.File;@6daa65bb, sources: [Ljava.io.File;@ada1ea5, classesDirectory: /justinb99/gradle7-scala-incr-compile-issue/module2/build/classes/scala/main, scalacOptions: [Ljava.lang.String;@209bfb9a, javacOptions: [Ljava.lang.String;@52acaccb, maxErrors: 100, sourcePositionMapper: xsbti.compile.CompileOptions$1@6c159c98, order: Mixed, temporaryClassesDirectory: Optional.empty), setup: Setup(perClasspathEntryLookup: org.gradle.api.internal.tasks.scala.ZincScalaCompiler$EntryLookup@36e08889, skip: false, cacheFile: /justinb99/gradle7-scala-incr-compile-issue/module2/build/tmp/scala/compilerAnalysis/compileScala.analysis, cache: sbt.internal.inc.FreshCompilerCache@49d8f2e4, incrementalCompilerOptions: IncOptions(transitiveStep: 5, recompileAllFraction: 0.5, relationsDebug: false, apiDebug: false, apiDiffContextSize: 5, apiDumpDirectory: Optional.empty, classfileManagerType: Optional[TransactionalManagerType(backupDirectory: /justinb99/gradle7-scala-incr-compile-issue/module2/build/tmp/scala/classfileBackup/compileScala.bak, logger: org.gradle.api.internal.tasks.scala.SbtLoggerAdapter@3e1467e0)], useCustomizedFileManager: false, recompileOnMacroDef: Optional[false], useOptimizedSealed: false, storeApis: true, enabled: true, extra: {}, logRecompileOnMacro: true, externalHooks: org.gradle.api.internal.tasks.scala.ZincScalaCompiler$LookupOnlyExternalHooks@c02046b, ignoredScalacOptions: [Ljava.lang.String;@24388dd, strictMode: false), reporter: sbt.internal.inc.LoggedReporter@5219c7a0, progress: Optional.empty, extra: [Lxsbti.T2;@4faf8164), previousResult: PreviousResult(analysis: Optional[Analysis: 2 Scala sources, 4 classes, 1 binary dependency], setup: Optional[MiniSetup(output: SingleOutput(/justinb99/gradle7-scala-incr-compile-issue/module2/build/classes/scala/main), options: MiniOptions(classpathHash: [Lxsbti.compile.FileHash;@6406d58c, scalacOptions: [Ljava.lang.String;@591c08fb, javacOptions: [Ljava.lang.String;@2b4b0e1b), compilerVersion: 2.12.14, order: Mixed, storeApis: true, extra: [Lxsbti.T2;@501094d2)]))
2022-03-07T14:21:44.215-0600 [INFO] [org.gradle.api.internal.tasks.scala.ZincScalaCompiler] Prepared Zinc Scala inputs: 0.441 secs
2022-03-07T14:21:44.603-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompilerFactory] Invalidating '/justinb99/gradle7-scala-incr-compile-issue/module1/build/classes/scala/main/justinb99/module1/StringUtil.class' because justinb99.module1.StringUtil$StringExtension is now provided by /justinb99/gradle7-scala-incr-compile-issue/module1/build/classes/scala/main/justinb99/module1/StringUtil$StringExtension.class
2022-03-07T14:21:44.610-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompilerFactory]
Initial source changes:
	removed:Set()
	added: Set()
	modified: Set(/justinb99/gradle7-scala-incr-compile-issue/module2/src/main/scala/justinb99/module2/Independent.scala)
Invalidated products: Set()
External API changes: API Changes: Set()
Modified binary dependencies: Set(/justinb99/gradle7-scala-incr-compile-issue/module1/build/classes/scala/main/justinb99/module1/StringUtil.class)
Initial directly invalidated classes: Set(justinb99.module2.Independent)

Sources indirectly invalidated by:
	product: Set()
	binary dep: Set(/justinb99/gradle7-scala-incr-compile-issue/module2/src/main/scala/justinb99/module2/Dependency.scala)
	external source: Set()
2022-03-07T14:21:44.610-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompilerFactory] All sources are invalidated.
2022-03-07T14:21:44.803-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompilerFactory] Created transactional ClassFileManager with tempDir = /justinb99/gradle7-scala-incr-compile-issue/module2/build/tmp/scala/classfileBackup/compileScala.bak
2022-03-07T14:21:44.809-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompilerFactory] Initial set of included nodes: justinb99.module2.Independent
2022-03-07T14:21:44.814-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompilerFactory] Recompiling all sources: number of invalidated sources > 50.0% of all sources
2022-03-07T14:21:44.816-0600 [DEBUG] [org.gradle.api.internal.tasks.scala.ZincScalaCompilerFactory] About to delete class files:
	/justinb99/gradle7-scala-incr-compile-issue/module2/build/classes/scala/main/justinb99/module2/Dependency.class
	/justinb99/gradle7-scala-incr-compile-issue/module2/build/classes/scala/main/justinb99/module2/Dependency$.class
	/justinb99/gradle7-scala-incr-compile-issue/module2/build/classes/scala/main/justinb99/module2/Independent.class
	/justinb99/gradle7-scala-incr-compile-issue/module2/build/classes/scala/main/justinb99/module2/Independent$.class

Your Environment
macOS 12.2.1, Gradle 7.4, openjdk 11.0.2, Scala 2.12.14

Running into the same issue on 7.5.1, this is quite a productivity killer. https://xkcd.com/303/

I did some digging/logging around the invalidation code and I'm pretty sure something's wrong here:
https://github.com/gradle/gradle/blob/master/subprojects/scala/src/main/java/org/gradle/api/internal/tasks/scala/ZincScalaCompiler.java#L232
I see two Stamps of different types compared, where previousAnalysis holds stamps of type farm whereas gradle uses lastModified. So they simply cannot compare equal. I guess that's something that changed in zinc and gradle needs to follow suit?

@tgodzik @dubinsky @ijuma Hey folks, any chance someone with Zinc knowledge can chime in?
Is there some way to resolve this without having to revamp the way Gradle works?

Some more investigation: if the above is fixed on the Gradle side (use hash instead of last modified), the example starts working. zinc can now properly recognize that moduleA.jar has not changed. But this is still not sufficient unfortunately.
In combination with the java-library plugin, the inter-module dependencies turn from "moduleB class" -> "moduleA jar" into more fine-grained "moduleB class -> moduleA classfile" dependencies (as advertised, and the way one wants it to be.
However, zinc is not really prepared for this - if classpath entries are directories its own comparison does bad things (compares classfiles to classpath directories, see a comment I left on zinc . When I hack zinc to properly compare classfile to classfile it kind of starts working, but even then there seem to be bugs regarding dependency tracking with inner classes.
Somewhat surprising.

@ljacomet I haven't noticed the different hash types when upgrading zinc, sorry about that! I see that @mernst-github has already done a great job investigating and we should probably update the hash used for changedBinaries. Would you be able to make that change in Gradle @mernst-github? Or do you need help with that?
As for the second point, I am not sure I understand what is going on, but I see that Eugene has already turned it into an issue:
https://github.com/sbt/zinc/issues/1140
I will monitor that issue and see if it's something I can help with.

@tgodzik Thanks for responding!
@mernst-github Thanks for the analysis!
We could balance the jar to classfile issue by having Scala request jars and not classes. While I agree it is conceptually better, losing incremental compilation for saving on creating a JAR does not seem like a good trade-of.
The Groovy plugin already does something like that since it may need files in resources as well:
https://github.com/gradle/gradle/blob/3193f06be6e89337b2b1c055708ea094ecec60d4/subprojects/plugins/src/main/java/org/gradle/api/plugins/GroovyBasePlugin.java#L137-L142
Although for Scala, I would request LibraryElements.JAR since that's what Zinc requires for now.

NOT A CONTRIBUTION
There's no need for the Gradle plugin to even have an external lookup implementation - zinc's default is perfectly adequate and correct for the case of using just the Scala plugin (since that creates jar->jar dependencies).
The classes dependencies you get when you add the java-library plugin, and the ensuing "classpath entry is a directory" is a separate issue that can be fixed in zinc. I wouldn't hobble the plugin because of that, especially when the zinc version is configurable.

Sorry for the wait while I got the necessary things together. I'm proposing to completely remove Gradle's faulty "has binary dependency changed" customization in the above PR, and rely on Zinc's default. This is working well for us (modulo https://github.com/sbt/zinc/issues/1140).

Fixed through #22786


HA restarts on configuration

Describe the bug
When I try to set up the vacuum cleaner (via Dreame account), HA crashes and restarts.
(Beta installed v2.0.0b8)
To Reproduce
I came until the facility is confirmed. The same every time.
Expected behavior
Screenshots

Additional Information (please complete the following information)

Model Name [e.g. dreame.vacuum.p2028]: Dreame L10s Ultra // RLS6LADC
Firmware Version [e.g. 1156]: 4.3.9_3031
Home Assistant Version:
Core 2023.11.2
Supervisor 2023.11.3
Operating System 11.1
Frontend 20231030.2
Configuration Type [With or without map support]: with map
Errors or warnings shown in the HA logs (if applicable): see above

I tried the option with low resolution. --> It works for me.
I think it has something todo with my RP3 ... Try to switch to VM next days.


Pre defined headings

Currently we only have the Heading component that only outputs an h2 html element. We should add individual components for h1-h6 with pre-defined (opinionated) sizes. These components should use the Heading component internally. Should also add a setting in Heading to output h1-h6

referenced: #27


Timeline alternate-reverse

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
Hi, I am using timeline and I love it, the only thing is that there is no option for Timeline to say that OK I want it to alternate but in reverse mode. when we write:
<Timeline position="alternate">
  <TimelineItem>
    <TimelineSeparator>
      <TimelineDot />
      <TimelineConnector />
    </TimelineSeparator>
    <TimelineContent>Eat</TimelineContent>
  </TimelineItem>
  <TimelineItem>
    <TimelineSeparator>
      <TimelineDot />
      <TimelineConnector />
    </TimelineSeparator>
    <TimelineContent>Code</TimelineContent>
  </TimelineItem>
</Timeline>

The first item is in right and you cannot say that the first item should be in left
Examples 🌈

I know I can do it by passing position to each TimelineItem but it is a lot of work and I prefer a something like this: <Timeline position="alternate-revert">.
Motivation 🔦
Less coding and cleaner code

Hii @gzrae
I am new to open-source contributions.
I am excited to implement the proposed requirement and I have implemented it on my local machine.

Please assign it to me.

How would I add media query for position props, it's possible?

Not sure if it is relevant to this issue @Metax7 but also your question is so vague. Or at least that's how I see it. Maybe ask it somewhere else

Thanks for this @abhinavkmrru for this


helm: Add default divisor for GOMEMLIMIT and GOMAXPROCS

Please provide a description of this PR:
When deploying istio via ArgoCD with auto-sync, this field is flagged as being removed since Kubernetes appears to add the default after-the-fact.

Hi @Kellen275. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Is this really the only field that we don't have a default explicitly set?
FWIW I think this is solveable already in argo. Not an expert but I think https://github.com/argoproj/argo-cd/issues/11574 is the relevant link. Basically Argo is not aware of defaults by default.
I think its a bit silly to expect every helm chart to explicitly specify every default value, and Argo pushes this problem to all charts in the world. But it is also cheap to fix so probably worth while.

https://github.com/argoproj/argo-cd/issues/11139

In my particular case, I'm attempting to sync the following istio charts

base
istiod
cni
gateway
This CNI chart is the only one Argo is reporting a diff on. Admittedly I can't speak to the other charts or different configurations of the same charts.


Failed to set hostkey "ssh_host_rsa_key"

Hi,
I can't connect netopeer2-cli with netopeer-server.
**SERVER ERROR
netopeer2-server[28562]: Accepted a connection on <IP_ADDRESS>:830.
[2018/02/28 10:13:55.196794, 1] ssh_bind_options_set_algo:  Setting method: no algorithm for method "server host key algo" (/usr/local/etc/keystored/keys/ssh_host_rsa_key.pem)
netopeer2-server[28562]: Failed to set hostkey "ssh_host_rsa_key" (/usr/local/etc/keystored/keys/ssh_host_rsa_key.pem).
CLIENT ERROR
connect
nc ERROR: Starting the SSH session failed (Socket error: disconnected).
cmd_connect: Connecting to the localhost:830 as user "root" failed.**
Can you help me? THX.
Laura.

Hi Laura,
I have a vague memory of seeing this error with an old libssh version, which do you use?
Regards,
Michal

Hi Michal,
I use 0.7.5 version.
Regards,
Laura

Hi Laura,
so that should not be the problem, how did you get the private key? Did you generate it using keystored or used some you already had? I am quite lost because what you see is a libssh error (but possibly caused by a problem in our software).
Regards,
Michal

Hi Michal,
I'm using keystored. But I need to install manually ietf-keystore.yang and ietf-netconf-server.yang using sysrepoctl. Maybe is sysrepo?
If I don't, in make install:
[100%] Built target keystored
Linking C shared library CMakeFiles/CMakeRelink.dir/libkeystored.so
Install the project...
-- Install configuration: "debug"
-- Up-to-date: /usr/local/lib/pkgconfig/keystored.pc
-- Up-to-date: /usr/local/etc/keystored/keys
-- Importing module ietf-x509-cert-to-name into sysrepo...
-- Importing module ietf-keystore into sysrepo...
CMake Error at cmake_install.cmake:96 (message):
Command sysrepocfg export failed:
[ERR] Module 'ietf-keystore@' is not present in the dependency graph.
[ERR] Module 'ietf-keystore:' is not installed.
[ERR] Get module 'ietf-keystore' failed
[ERR] Getting data tree failed (10) for xpath '/ietf-keystore://.'
[ERR] rp_dt_prepare_data failed
[ERR] Get items failed for '/ietf-keystore://.', session id=1669898316.
[ERR] Error by processing of the get-items request (session id=1669898316): Requested schema model is not known.
[ERR] Sending get_items request failed '/ietf-keystore:*//.'
[ERR] (srcfg_get_module_data:249) Error by sr_get_items_iter: Requested schema model is not known
Errors were encountered during exporting. Cancelling the operation.
Makefile:61: recipe for target 'install' failed
make: *** [install] Error 1
Thanks,
Laura

Hi Laura,
that is certainly not necessary, if you stick to the guide in netopeer2/server/configuration/README.md. This particular problem is fixed by installing keystored, it will also install ietf-keystore.yang.
Regards,
Michal

Hi Michal,
Doesn't work U-U. I will try to fix it. If I have any news i will say it to you.
Thanks for your time and help,
Laura

It work's if you before install manually:
cp<EMAIL_ADDRESS>/root/sysrepo/build/repository/yang/
cp<EMAIL_ADDRESS>/root/sysrepo/build/repository/yang/
cp<EMAIL_ADDRESS>/root/sysrepo/build/repository/yang/
cp<EMAIL_ADDRESS>/root/sysrepo/build/repository/yang/
cp<EMAIL_ADDRESS>/root/sysrepo/build/repository/yang/
cp<EMAIL_ADDRESS>/root/sysrepo/build/repository/yang/
cp ietf-keystore.persist /root/sysrepo/build/repository/data/
cp ietf-keystore.running /root/sysrepo/build/repository/data/
cp ietf-keystore.running.lock /root/sysrepo/build/repository/data/
cp ietf-keystore.startup /root/sysrepo/build/repository/data/
cp ietf-keystore.startup.lock /root/sysrepo/build/repository/data/
sysrepoctl --install<EMAIL_ADDRESS>--owner=root:root --permissions=666
sysrepoctl --install<EMAIL_ADDRESS>--owner=root:root --permissions=666

Please, post the output of sysrepoctl -l before trying to install keystored and failing. Also, what sysrepo version are you using and from which branch?
Regards,
Michal

Hi Michal,
The sysrepo master version,

Regards,
Laura

Hi Laura,
it would be best if you rebuild and reinstall the whole sysrepo before installing keystored but it may be enough for you to remove the models ietf-x509-cert-to-name, ietf-keystore, ietf-netconf-server, and ietf-system (# sysrepoctl -u -m <module-name>). You have done so successfully if they do not show up in the output of sysrepoctl -l. If you then try to install keystored, it should succeed.
Also, the sysrepoctl -l output you posted is invalid because ietf-keystore, ietf-netconf-server, and ietf-system do not have data files. I assume it is the result of your manual installations so please do not do that, you will almost certainly break something that way.
Regards,
Michal

Hi Michal,
The previous image is the result of:
git clone https://github.com/sysrepo/sysrepo.git
cd sysrepo; mkdir build; cd build
cmake .. && make -j8 && make install
Regards,
Laura.

Hi Laura,
that is possible only if some old repository was used, sysrepo does not include the last 7 models in your output. So, if you look at the first 2 lines of sysrepoctl -l output they should look like this
Sysrepo schema directory: <schema-path>
Sysrepo data directory: <data-path>

The paths should end with /repository/schema and /repository/data. Best would be if you removed the whole /repository directory and try it all again. I guarantee you, if done properly, you will not have ietf-keystore or any other from those last models installed.
Regards,
Michal

ACK Michal, I will try it!
Thank you very much for your time.
Regards,
Laura

Hi @lrodrin - did you resolve the issue successfully? I am having the exact same issue as yours and I am stuck searching for solutions. Would appreciate your feedback.

Hi @agva123,
My problem came from sysrepo, libyang and libnetconf2 old libraries. Using ldconfig -p I found and erased the old and repeated libraries. Then when you re-compile and re-build libyang, libnetconf2, sysrepo and netopeer2 keystored, server and cli was perfect.
For example, I used ldconfig -p | grep libyang. Remove manually the old libraries. And execute again ldcondig for changes.
You need to have something like:

Problem solved! Thank you @lrodrin for your great suggestion! It looks like ldconfig points to an old version of libssh (4.4.1), while it looks like sysrepo works with libssh 4.5.0.
After I removed /etc/ld.so.cache and regenerate with sudo ldconfig, and re-run sysrepo and netopeer2, it worked well and I am now able to ssh to port 830.
Thanks again.

You are welcome @agva123! I'm glad you've solved the problem :D
Best regards,
Laura.

Hi @agva123,
My problem came from sysrepo, libyang and libnetconf2 old libraries. Using ldconfig -p I found and erased the old and repeated libraries. Then when you re-compile and re-build libyang, libnetconf2, sysrepo and netopeer2 keystored, server and cli was perfect.
For example, I used ldconfig -p | grep libyang. Remove manually the old libraries. And execute again ldcondig for changes.
You need to have something like:

Problem solved! Thank you @lrodrin for your great suggestion! It looks like ldconfig points to an old version of libssh (4.4.1), while it looks like sysrepo works with libssh 4.5.0.
After I removed /etc/ld.so.cache and regenerate with sudo ldconfig, and re-run sysrepo and netopeer2, it worked well and I am now able to ssh to port 830.
Thanks again.

Hi,
I seem to have the latest libraries for libyang, libsysrepo, libnetconf2 and libssh (the version numbers might be different from when these were posted on this forum). But I still get this error: **
"Failed to set hostkey "ssh_host_rsa_key" (/usr/local/etc/keystored/keys/ssh_host_rsa_key.pem)."
And here is the

Hi,
well, based on this output you, too, have 2 versions of libssh installed so that may be again the problem. You should remove one, run # ldconfig, and recompile the applications.
Regards,
Michal

Hi,
I did a "sudo apt-get purge libssh-4" which succeeded but "sudo apt-get purge libssh" complained "Unable to locate package".
Anyway I did a reinstall of libssh from source based on this link: (since my Ubuntu 16.04 doesn't support the libssh4 it seems): https://github.com/CESNET/Netopeer2/blob/master/.travis-install-libs.sh .
But the issue still occurs.
Here is what I get even now if i check ldconfig for libssh:

Hi,
did you try running just # ldconfig to update your links? Anyway, you can actually have 2 libssh versions on your system, you just need to make sure libnetconf2 and netopeer2 is linked with the right (new) one. You can check that if you run ldd <binary-path> on netopeer2-server, for example.
Regards,
Michal

Hi Michal,
Thank you very much for replying. Unfortunately, both libnetconf2 and netopeer2-server seem to be using the same version of libssh.so as can be seen in the attached screenshot:

Hi,
the key seems fine but please, DO NOT use it for any real use-case because you have just compromised it (I forgot to tell you not to paste it here). So, do you know which of the 2 libssh versions is the new one? My guess is that netopeer2 is still not linked with that one. Even when having several shared library versions installed you can force one of them to be used as some flags for compilation.
Regards,
Michal

Hi Michal,
It seems both netconf2 and netopeer2-server are pointing to the same version of libssh. Here is what I get :

Look, what we are solving right now is how to link libnetconf2 and netopeer2 with a particular library version (you still have not told me whether /usr/lib/libssh.so.4 or /usr/lib/x86_64-linux-gnu/libssh.so.4 point to the new version). That is not a netopeer2 problem but a generic Linux one so search for the solution rather than waste my time. When you get to the point that you know for certain that you are using correct libssh version and still get an error, then you can come back and ask us for help. Although I am not sure what would I tell you then because it is working for us and lots of other people. Sorry.
Regards,
Michal

I think when I did an uninstall/purge for libssh-4 , the "ldconfig -p | grep libssh.so" was only showing: /usr/lib/libssh.so (Neither /usr/lib/libssh.so.4 and /usr/lib/x86_64-linux-gnu/libssh.so.4" was shown). This means that both /usr/lib/x86_64-linux-gnu/libssh.so.4 and /usr/lib/libssh.so.4 are installed when we install libssh-4 from source. I am not sure what to look for to tell that either one points to the latest version or if they are both different libraries for either x86_64 ? But anyway both netconf2 and netopeer2 point to the same one: /usr/lib/x86_64-linux-gnu/libssh.so.4.

Hi,
I doubt installing libssh from source would install it to more locations, the problem is in something else.
Regards,
Michal


It's not really a issue but proposition for a future update...

Can you add option for bulk buying/selling items?
For example in right site of the offer (near this light blue icon) can be some small window which you can put number of items which you want buy or sell.

This sounds like a decent idea, but i will almost certainly not have the time to add it. I'll close this as unplanned.


getFileChooserNative() missing for Builders

Title self explanatory. FileChooserNative is highly encouraged especially when an app is shipped with Flatpak in order to call the proper native APIs: https://lazka.github.io/pgi-docs/Gtk-3.0/classes/FileChooserNative.html#Gtk.FileChooserNative.

No idea why it is missing, have to ask Mr. Bassi and Mr. Droege, see
https://discourse.gnome.org/t/does-gtkfilechoosernative-implements-name-buildable/5308

No idea why it is missing, have to ask Mr. Bassi and Mr. Droege, see
https://discourse.gnome.org/t/does-gtkfilechoosernative-implements-name-buildable/5308

I have just added it manually. You can try with
nimble install gintro@#head
But I have not tested it myself. As you may have seen from the discussion on Gnome forum it was not really clear if FileChooserNative has GtkBuilder support at all and why one may want it. Let me know it should not work.

I have just added it manually. You can try with
nimble install gintro@#head
But I have not tested it myself. As you may have seen from the discussion on Gnome forum it was not really clear if FileChooserNative has GtkBuilder support at all and why one may want it. Let me know it should not work.

not really clear if FileChooserNative has GtkBuilder support

It does, just like (very nearly) all GObjects
So you can do it, just unclear why you would
(Part the problem here appears to be GtkBuilder vs GtkBuild able)

not really clear if FileChooserNative has GtkBuilder support

It does, just like (very nearly) all GObjects
So you can do it, just unclear why you would
(Part the problem here appears to be GtkBuilder vs GtkBuild able)

I have just added it manually. You can try with
nimble install gintro@#head
But I have not tested it myself. As you may have seen from the discussion on Gnome forum it was not really clear if FileChooserNative has GtkBuilder support at all and why one may want it. Let me know it should not work.

Seems to work as intended with --gc:arc on my end (Fedora Linux 33). Feel free to close it if you wish.

I have just added it manually. You can try with
nimble install gintro@#head
But I have not tested it myself. As you may have seen from the discussion on Gnome forum it was not really clear if FileChooserNative has GtkBuilder support at all and why one may want it. Let me know it should not work.

Seems to work as intended with --gc:arc on my end (Fedora Linux 33). Feel free to close it if you wish.


make key cert rotation job works for VM

#22176

set and export ·alwaysValidTokenFlag=true` on VM to make the rotation job work
outputCertToDir in rotation job as well to make sure key/cert on dir has been updated
Define getClientCert for getTLSDialOption
do not rely on port 15102 to see whether mtls enabled

@irisdingbj: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-local-tests_istio
a840b05260c9c0cafe50da24efacfe09d2f06a98
link
/test integ-local-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@lei-tang PTAL, Thanks!

@irisdingbj Approved. Thank you!

@irisdingbj: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
ac5c70a584b46a1dd79bcb57d5cd901fa745cd55
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-pilot-k8s-tests_istio


Cannot compile hello world

Hi.
I tried to compile a hello world example:
// Hello world!
extern fn print(str *u8)

fn main()
  print("Hello world!")

with congo and it fails with the following error:
Compile finished in 0.00372612 sec (84 kb). 0 warnings detected
/usr/sbin/ld: release/main.o: relocation R_X86_64_32 against `.rodata' can not be used when making a PIE object; recompile with -fPIC
/usr/sbin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status

Trying manually with gcc gives me the same result.
I'm on ArchLinux.
Thanks for your help.

I can compile manually with gcc when I provide the -no-pie flag.
I'm not sure if this is the solution in your case, but that might explain something.

Thanks for trying out Cone. Evidently, the ArchLinux default for gcc is to compile executables as position independent. I have a PIC option on the Cone compiler, but I don't think it is currently hooked up (something I need to correct). I'm glad you found a work-around for now.


[BUG] Build fail on main branch

What is the bug?
Build fail on main branch. OS core main branch change Metadata members from ImmutableOpenMap to Map. And this makes sql fail to compileJava.
How can one reproduce the bug?
Steps to reproduce the behavior:

checkout to latest main branch
./gradlew run

What is the expected behavior?
Need to be modify code in sql to adapt to the changes in OS core.

Duplicate of #1570, fixed by #1571


Getting this error after installing

installed 2times using the script. after reboot got this same error messege both time. Any solutions?

There was a disk error in setup script should be fixed now


⚠ Bofrost.fr has degraded performance

In 578d159, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1588 ms

Resolved: Bofrost.fr performance has improved in 1154068.


chore: release main

:robot: I have created a release beep boop
@markdown-confluence/lib: 4.0.1
4.0.1 (2023-04-26)
Miscellaneous Chores

@markdown-confluence/lib: Synchronize obsidian packages versions

@markdown-confluence/mermaid-electron-renderer: 4.0.1
4.0.1 (2023-04-26)
Miscellaneous Chores

@markdown-confluence/mermaid-electron-renderer: Synchronize obsidian packages versions

Dependencies

The following workspace dependencies were updated

dependencies

@markdown-confluence/lib bumped from 4.0.0 to 4.0.1

obsidian-confluence: 4.0.1
4.0.1 (2023-04-26)
Miscellaneous Chores

obsidian-confluence: Synchronize obsidian packages versions

Dependencies

The following workspace dependencies were updated

dependencies

@markdown-confluence/lib bumped from 4.0.0 to 4.0.1
@markdown-confluence/mermaid-electron-renderer bumped from 4.0.0 to 4.0.1

obsidian-confluence-root: 4.0.1
4.0.1 (2023-04-26)
Bug Fixes

Only build and release docker when release is created (fe26002)
package-lock.json out of date (1468cb1)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/obsidian-confluence/obsidian-confluence/releases/tag/%40markdown-confluence/lib-v4.0.1 :sunflower:

:robot: Release is at https://github.com/obsidian-confluence/obsidian-confluence/releases/tag/obsidian-confluence-root-v4.0.1 :sunflower: