Contrib: Add opencensus-contrib-opencensus-proto-util.

Fixes https://github.com/census-instrumentation/opencensus-java/issues/1456.
Currently this Util only supports converting Tracing data models. Most of the conversion between SpanData and SpanProto are identical to StackdriverV2ExporterHandler.

Codecov Report

Merging #1459 into master will increase coverage by 0.08%.
The diff coverage is 87.5%.

@@             Coverage Diff             @@
##             master   #1459      +/-   ##
===========================================
+ Coverage     82.22%   82.3%   +0.08%
- Complexity     1506    1538      +32
===========================================
  Files           234     235       +1
  Lines          7076    7228     +152
  Branches        669     688      +19
===========================================
+ Hits           5818    5949     +131
- Misses         1058    1066       +8
- Partials        200     213      +13

Impacted Files
Coverage Δ
Complexity Δ

...contrib/opencensus/proto/util/TraceProtoUtils.java
87.5% <87.5%> (ø)
32 <32> (?)

...census/implcore/trace/export/SpanExporterImpl.java
90.41% <0%> (-2.74%)
8% <0%> (ø)

Continue to review full report at Codecov.

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

Thanks!

Who else will use this?

Could be other exporters that directly connect to Collector, though for now it's only OC-Agent exporter who's using it. I'll move the utils to exporter for the moment.

Perfect, let's not make it an artifact if we don't have to.


[SPARK-42350][SQL][K8S][SS] Replcace get().getOrElse with getOrElse

What changes were proposed in this pull request?
This pr just a trivial fix, replcace get().getOrElse with getOrElse
Why are the changes needed?
Code simplification
Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass GitHub Actions

Can you look for more instances across the code base?

should be no more

Merged to master

Thanks @srowen


cheat "Beat with hammer"

add a cheat in the beginning, type "Beat with hammer" to use.

unlock the next 3 doors and give all items from previous doors to the player


a problem with eBay's sandbox; buy_browse_search does not work

Unit Tests & Example Code:
VVVVVVVVVVVVVVVVVVV
Four unit tests and the example in the Read Me currently fail.  To determine the extent of the problem, I wrote some test code.
Test code:
VVVVVVV
from ebay_rest import API, Error    # pip3 install ebay_rest    # learn more https://github.com/matecsaj/ebay_rest
for environment in ('sandbox_1', 'production_1'):
try:
    api = API(application=environment, user=environment, header='US')
except Error as error:
    print(f"api error -- environment: {environment}"
          f" number: {error.number} reason: {error.reason} detail: {error.detail}")
else:
    print(f"api success -- environment: {environment}")

    try:
        for record in api.buy_browse_search(q='Apple'):
            if 'record' not in record:
                print("Here we could get info about all the items, such as the number of items found.")
            else:
                item = record['record']
                print(f"Found item id: {item['item_id']}")
                break       # one item is enough for now
    except Error as error:
        print(f"search error -- number: {error.number} reason: {error.reason} detail: {error.detail}")

    try:
        result = api.commerce_taxonomy_get_default_category_tree_id('EBAY_US')
    except Error as error:
        print(f'Error {error.number} is {error.reason}  {error.detail}.\n')
    else:
        print(f"Found category id {result['category_tree_id']}")

Code output.
VVVVVVVVV
/usr/local/bin/python3.8 /Users/matecsaj/Documents/Projects/ebay_rest/tests/temporary.py
api success -- environment: sandbox_1
search error -- number: 99500 reason: Internal Server Error detail: b'{"errors":[{"errorId":12000,"domain":"API_BROWSE","category":"APPLICATION","message":"There was a problem with an eBay internal system or process. Contact eBay developer support for assistance."}]}'
Found category id 0
api success -- environment: production_1
Found item id: v1|133582061457|433039001727
Found category id 0
Process finished with exit code 0
eBay Developer Support.
VVVVVVVVVVVVVVVVV
After supplying all requested information, this was their response.
We filed a ticket that describes the issue with the appropriate engineering team. The team evaluates, prioritizes, and addresses an issue based on the impact it has on the API operations and other business logic. Your important issue will be handled accordingly, but may take time to triage and resolve.
We will update this ticket only when the status changes. The ticket will be kept open and in a Waiting-BugFix state and we will notify you when the status changes. You can also check the status of your ticket by visiting the My Tickets section of your eBay Developer account at https://developer.ebay.com/my/support/tickets.
Work Around
VVVVVVVVV
While we wait for eBay, use the production site when testing your code that involves that call.

eBay fixed the problem. Happy day!


folder stacking dvds not working (multiple entries in TMM)

What TMM version are you using?
latest
release, pre-release, nightly, or directly from GitHub/branch?
release
What is the actual behaviour?
Cannot get multiple folders of same release (2 DVDs) to detect as single entry in TMM
eg:
Title Part1/Video_TS/
Title Part2/Video_TS/
I have tried with Pt1/2 and DVD1/2 with same result (two entries in TMM)
What is the expected behaviour?
TMM folder stacking should detect a single release/entry and stack both DVD folders into one
Steps to reproduce:

first
second
...

Additional
Have you attached the Logfile from the day it happened?
Your Operating system? (win/mac/linux? version?)

we've migrated v3 to GitLab (https://gitlab.com/tinyMediaManager/tinyMediaManager) along with all issues. The issues for v2 at GitHub will be closed - we will respond to the corresponding issue in GitLab in the future
br
Manuel


[Prefix] Fix installation of packages in nightly

With Julia v1.9 we have to use Pkg.respect_sysimage_versions(false) to install
stdlib JLLs in our projects.
Opening as draft because tests are failing anyway for me even with this change, but I don't have the time to debug now.

Failure is
Setup: Test Failed at /home/runner/work/BinaryBuilderBase.jl/BinaryBuilderBase.jl/test/dependencies.jl:160
  Expression: readdir(joinpath(destdir(dir, platform), "logs")) == []
   Evaluated: ["LibCURL", "LibSSH2", "MbedTLS"] == Any[]
Stacktrace:
 [1] macro expansion
   @ /opt/hostedtoolcache/julia/nightly/x64/share/julia/stdlib/v1.9/Test/src/Test.jl:464 [inlined]
 [2] (::var"#37#59")(dir::String)
   @ Main ~/work/BinaryBuilderBase.jl/BinaryBuilderBase.jl/test/dependencies.jl:160

The new builds of LibCURL and other related stdlib JLLs used in Julia v1.9 have logs in subdirectories of ${prefix}/logs, rather than directly inside this directory.  So, I believe the failure is related to the broken test https://github.com/JuliaPackaging/BinaryBuilderBase.jl/blob/f78a16add67f313e8774550ed035688eeb872a93/test/dependencies.jl#L158-L159 which boils down to the fact we can remove only symlinked directories in cleanup_dependencies https://github.com/JuliaPackaging/BinaryBuilderBase.jl/blob/f78a16add67f313e8774550ed035688eeb872a93/src/Prefix.jl#L244 but non-symlinked directories have to be removed later.

The only thing I don't understand is this: this job was successful and it used
Julia Version 1.9.0-DEV.92
Commit 2e2c16a446 (2022-02-25 17:18 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: 2 × Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake-avx512)
  Threads: 1 on 2 virtual cores

which was already after https://github.com/JuliaLang/julia/pull/43250 was merged, so now I'm not sure why that one worked at it's failing only now with
Julia Version 1.9.0-DEV.98
Commit 2338f5d304 (2022-02-28 01:32 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: 2 × Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake-avx512)
  Threads: 1 on 2 virtual cores


Expose max_axis_index and max_axis_index for Vector2(i)

EDIT 3: This also renames them to have _index at the end as per @reduz's suggestion.
Also some cleanup with core's Vector3 methods so that it is consistent, for example it returns enums internally (GDScript still gets ints).
EDIT: Also now fixes #34190.
EDIT 2: max_axis and min_axis were added to Vector2(i) internally with #48629, but this PR exposes them and uses the enum as the type.

Done, but I used the names max_axis_index and max_axis_index instead of having get_ because none of the other Vector2/2i/3/3i methods start with get_. Ex: We have length not get_length.

Thanks!


Doesn't work fine for 'iphone x'

For see this problem you need:

Get Iphone X, open https://bodyscrolllock.now.sh/
Little scroll page to top, for hide bottom panel with navigation buttons
Slick 'disable body scroll'
Swipe page in the same place, where was bottom panel with nav buttons
As you can see, page still scrolled

You mean it doesn't stay at the same place when you force Safari to show its bars?

No, I mean, when you hide Safari bottom bar and touch and swipe on that place (where was bar), you can scroll page.

Can't reproduce on iOS 13. It only covers some content that was visible when the bars were hidden.

I ran into this problem.
This is only happening on Safari. Because when you swipe from the bottom, it calling the bottom bar out. (On fast swiping, the body will scroll) Bad iOS behaviors!

Just managed to trigger scroll in both directions when double tapping the top/bottom of the viewport. This was on the latest iOS 13 beta.

This is an old article concerning the "special" status of page areas where the menu bars sit: https://benfrain.com/the-ios-safari-menu-bar-is-hostile-to-web-apps-discuss/


How to perform username and password authentication when adding a private warehouse in the uplink

How do I put a private nexus on the uplink? The document does not describe in detail the authentication required for the uplink.
My Uplinks Settings

Is it that I use npm then I use the uplink named npmjs, I observe that my log verdaccio did not request other link addresses that I configured

First log in to the private warehouse address, and then get the token from ~ / .npmrc. The auth in the uplinks configuration uses a bearer.


Uncaught RuntimeError: unreachable

Overview
Hi there, I'm using<EMAIL_ADDRESS>and it's causing the entire page to freeze up throwing this error.
Sometimes I get an error Uncaught sometimes it's Uncaught RuntimeError: unreachable. There are no logs apart from it which might help figure out the issue here. I'm unsure if this is a bug withing the lib or my component.
This is happening with 0.8.8 as well as the latest 0.9.1 in development & production in both environments.
Uncaught RuntimeError: unreachable
    at dotlottie-player.wasm:0xc3cde
    at dotlottie-player.wasm:0x2704d
    at dotlottie-player.wasm:0xf24af
    at dotlottie-player.wasm:0xececb
    at DotLottiePlayer.requestFrame (d0272cb2-cdf38b08bff01206.js:1:12251)
    at I._draw (d0272cb2-cdf38b08bff01206.js:1:41755)

How to recreate

Go to speechify.com
Scroll down to the Lottie animation
Reload page - page should freeze.  As far as I can tell, this only happens when you reload the page while Lottie is in view.

Screenshots

Labels

[ ] Add the Type: Bug label to this issue.

@damnitrahul can you share with me the .lottie/lottie animation file ?

@damnitrahul kindly check again the latest<EMAIL_ADDRESS>release, i think it fixes this issue, you can try to test out the animation on https://lottiefiles.github.io/dotlottie-web/ for quick verification


tweak "show more" copy since it won't always show more

we should change the 'show more' copy on the developer apps carousel to make it clearer that it's linking to a developer's catalog page since it won't always 'show more' apps unless the developer has >6 apps.

So should we show it at all? Easiest would be hiding it.
https://github.com/razzeee/frontend/commit/a7cc6350b7f09b095e4a355b3202a3b1c8cf7591
If we want to go the other way, it might be interesting how to communicate this clearly.

We should help developers discover the link - this developer specific landing page has been a long term request of big app providers such as KDE otherwise yes, I'd have said only show if apps>6. I will have a think about some better copy. I like your initial change though, make it better first!

Yes, but that should be adressed in a different issue. At least parts of this will happen with the current contract and when we have dev logins, I'm happy to work on a statistics page.

To clarify, a developer specific landing page in this context is the developer collection page here https://flathub.vercel.app/apps/collection/developer/The GNOME Project helping developers find this so they can link to it on their site would be helpful.

Ah right, that sounds like two usecases, I meant something different above so nvm.

Landed the hiding of the button, if there are not more then 6 apps


Refactor generic pipeline

What this PR dose / Why we need it

Rename plugin name from pipeline-event to generic-event.
Refactor WorkflowRunListener to RunListener
Add ItemListener to watch create, update and delete of item
Refactor WorkflowRunData to EnhancedData, which might be a break change

Attention: Break change
I have refactored the render rule of WorkflowRunData with a break change. But it's a meaningful change for future enhancement. Considering if we change the structure of Run in the future, it's a break change for users who are using the old structure.

Before

{
    "multiBranch": true,
    "parentFullName": "my-devops-project/my-multi-branch-pipeline",
    "run": {
      "_class": "org.jenkinsci.plugins.workflow.job.WorkflowRun",
      "actions": [],
      "artifacts": [],
      "building": true,
      "description": null,
      "displayName": "#2",
      "duration": 0,
      "estimatedDuration": 1826,
      "executor": { "_class": "hudson.model.OneOffExecutor" },
      "fullDisplayName": "my-devops-project » my-multi-branch-pipeline » main #2",
      "id": "2",
      "keepLog": false,
      "number": 2,
      "queueId": 3,
      "result": null,
      "timestamp":<PHONE_NUMBER>982,
      "changeSets": [],
      "culprits": [],
      "nextBuild": null,
      "previousBuild": { "number": 1 }
    },
    "projectName": "main"
  }

After

{
        "_class": "io.jenkins.plugins.generic.event.data.WorkflowRunData",
        "actions": [],
        "artifacts": [],
        "building": false,
        "description": null,
        "displayName": "#1",
        "duration": 593,
        "estimatedDuration": 593,
        "executor": {"_class": "hudson.model.OneOffExecutor"},
        "fullDisplayName": "my-devops-project » my-multi-branch-pipeline » master #1",
        "id": "1",
        "keepLog": false,
        "number": 1,
        "queueId": 3,
        "result": "SUCCESS",
        "timestamp":<PHONE_NUMBER>544,
        "changeSets": [],
        "culprits": [],
        "nextBuild": null,
        "previousBuild": null,
        "_multiBranch": true,
        "_parentFullName": "my-devops-project/my-multi-branch-pipeline",
        "_projectName": "master"
    }

Considering no one else could review this PR currently, I'm going to merge this PR by myself.


to_i behaviour coherent with parser

This PR changes the behaviour of to_i in Strings to support all the derivatives from the parser (hex, bin, oct and underscores)
The change in behaviour helps clean a bit of literal, though some more factorization is yet to come

+1

Reroll: Fixed @privat and @BlackMinou's remarks

Reroll: fixed @xymus's remarks

The curl test failure looks network related.
ok to test

If remove_all were to take a pattern as an argument it could replace all 10 occurrences of replace(..., "") from the repo!
+1 anyway


msrest.exceptions.ValidationError: Parameter 'node_id' can not be None.

I am getting following error when submitting my spark job
Traceback (most recent call last):
  File "/usr/local/bin/aztk", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.6/site-packages/aztk_cli/entrypoint.py", line 35, in main
    run_software(args)
  File "/usr/local/lib/python3.6/site-packages/aztk_cli/entrypoint.py", line 63, in run_software
    func(args)
  File "/usr/local/lib/python3.6/site-packages/aztk_cli/spark/endpoints/spark.py", line 31, in execute
    func(args)
  File "/usr/local/lib/python3.6/site-packages/aztk_cli/spark/endpoints/cluster/cluster.py", line 81, in execute
    func(args)
  File "/usr/local/lib/python3.6/site-packages/aztk_cli/spark/endpoints/cluster/cluster_submit.py", line 139, in execute
    wait=False
  File "/usr/local/lib/python3.6/site-packages/aztk/spark/client.py", line 92, in submit
    cluster_submit_helper.submit_application(self, cluster_id, application, wait)
  File "/usr/local/lib/python3.6/site-packages/aztk/spark/helpers/submit.py", line 116, in submit_application
    task = affinitize_task_to_master(spark_client, cluster_id, task)
  File "/usr/local/lib/python3.6/site-packages/aztk/spark/helpers/submit.py", line 106, in affinitize_task_to_master
    master_node = spark_client.batch_client.compute_node.get(pool_id=cluster_id, node_id=cluster.master_node_id)
  File "/usr/local/lib/python3.6/site-packages/azure/batch/operations/compute_node_operations.py", line 368, in get
    'nodeId': self._serialize.url("node_id", node_id, 'str')
  File "/usr/local/lib/python3.6/site-packages/msrest/serialization.py", line 488, in url
    data = self.validate(data, name, required=True, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/msrest/serialization.py", line 558, in validate
    raise ValidationError("required", name, True)
msrest.exceptions.ValidationError: Parameter 'node_id' can not be None.

aztk spark cluster list
Cluster                           | State     | VM Size             | Nodes
----------------------------------|-----------|---------------------|-------
spark                             | active    | standard_a2         | 4

I am submitting my job using following command
aztk spark cluster submit --id spark --name mr101 /Users/kumar.pratik/test.jar --class com.kpratik.MainTest
Could you please let me know if I am missing something

This error happens when the master has not yet been selected for the cluster. The error here is not good but it has already been fixed in #479 and will be included in the next release.


Can't show directory size in linemode

What system are you running Yazi on?
Linux X11
What terminal are you running Yazi in?
kitty 0.30.1
Did you try the latest code to see if this problem got fixed?
Tried, but the problem still
yazi --debug output

$ yazi --debug
Yazi
yazi 0.2.4 (VERGEN_IDEMPOTENT_OUTPUT 2024-03-10)

Environment
OS: linux-x86_64 (unix)
Debug: false

Emulator
Emulator.via_env: ("xterm-kitty", "")
Emulator.via_csi: Ok(Kitty)
Emulator.detect: Kitty

Adaptor
Adaptor.matches: Kitty

tmux
TMUX: false

Zellij
ZELLIJ_SESSION_NAME: None

Desktop
XDG_SESSION_TYPE: Some("x11")
WAYLAND_DISPLAY: None
DISPLAY: Some(":0")

Ueberzug
Version: Ok(Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "Usage:\n    ueberzug layer [options]\n    ueberzug library\n    ueberzug version\n    ueberzug query_windows PIDS ...\n" })

WSL
/proc/sys/fs/binfmt_misc/WSLInterop: false

--------------------------------------------------
When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time.
You can find it in the "/home/jan/.local/state/yazi" directory.

Describe the bug
I'm not entirely sure if this is a bug, but it does seem to contradict the documentation as I understand it.
The default linemode function does this if it set to size:
			local size = f:size()
			spans[#spans + 1] = ui.Span(size and ya.readable_size(size) or "")

The documentation for the size() method says this:

size() - The size of this file, returns an integer representing the size in bytes, or nil if its a directory and it has not been scanned

However, this method always returns nil for me for directories, even after I have descended into the directories (which presumably implies that they got scanned). In addition the ya.readable_size() function wouldn't really make sense for parsing the size of a directory (assuming that "size" means the number of files in it).
Expected Behavior
Show the size (number of files) of a directory in the linemode
To Reproduce
Open a directory with subdirectories
Configuration
No response
Anything else?
It would be really useful if yazi could show the number of files in subdirectories, just like Ranger does. It would be totally fine if this information was gathered in a lazy/async way, or maybe even just after you have "hovered" over a directory.

Hi, the size() method here refers to the byte size of a file, not the number of files. But it currently has some usage limitations, see https://github.com/sxyazi/yazi/discussions/492
I'll create a PR to add more details to the document.

Done in https://github.com/yazi-rs/yazi-rs.github.io/commit/530091df74b72754df646e01a6e3e0c2e24e3043

Thanks, that's much clearer! I also saw that someone just posted in #51 exactly what I would like, simply showing the number of files in a directory by default. The actual (recursive) size could then be calculated following some kind of user action.

I also saw that someone just posted in https://github.com/sxyazi/yazi/issues/51 exactly what I would like, simply showing the number of files in a directory by default. The actual (recursive) size could then be calculated following some kind of user action.

Sounds good to me, I'll consider adding it.


Agile challenge-response for catching offline validators

Whenever the blake2-256 hash of the public random seed falls below some threshold T, a "roll call session" should be initiated at the start of the block. If a roll call session is currently live, does nothing. Roll call sessions last N blocks, during which each validator must provide a signature on the random seed at the start of the roll-call session.
If a validator does not provide a signature in this time, he is considered offline and is slashed.

NOTE: introduces a (fairly long) synchrony bound on the consensus. should be fine if we set it to 10 minutes or something.
Verifiable delay functions (https://eprint.iacr.org/2018/601.pdf) might have an application here for ensuring the time delay is strictly for censorship resistance and preventing "latecomers" from being able to respond without spending lots of power on compute resources.

This is essentially covered by ImOnline module, but it would be nice if validators that did not (yet) author a block got occasional randomised calls, like here, to provide proof that they're listening.

I presume "public random seed" means the BABE VRF output, not the epoch randomness.
Is there any treason this should start for everyone simultaniously?  You could make each BABE block cause a single role call for the validator with index number
vrf_inout.make_chacharng.next_u32() % num_validators

@burdges tracking of live "roll-call" sessions seems a bit tougher to do then, but probably we could do it like that.


Slides for Gunter-Beattie talk

Here's the slides for our talk.
The video is here (or will be by Sunday after some power maintenance is finished in our server room), which you are welcome to upload to the CollegeVille YouTube channel.
cc: @dangunter

Thank you.


change height

how can i change the views height, when i drawed views in xib, i override frame, this will  cause constraints conflict

`class STSiftView: YNDropDownView {
override var frame: CGRect {
didSet {
var newFrame = frame
newFrame.size.height = 225
newFrame.size.width = screenWidth
super.frame = newFrame
}
}
}`

Hello @MysteryRan,
Do you need to change view height when view is opened?
If not, use open func changeView(view: UIView, at index: Int) method

Please reopen this issue if it is not

        let locationView = dropDownViews?[0] as! STLocationView         locationView.frame = CGRect(x: 0, y: 0, width: screenWidth, height: 170)  change like this, it's the best method


Make mouse clicks work

there is code in there to process mouse clicks like an xterm, but it hasn't worked in years, I think.  (Since at least before I forked tty.js.)  But for applications like emacs that can understand xterm mouse clicks, this would be cool.

https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Mouse-Tracking
Mouse clicks actually don't work in Ubuntu 16.04 with emacs or vim running in an xterm, so maybe this is more broken than I realize?

see xtermjs/xterm.js/pull/2323
I think moving to xterm.js 4.x might help


Translate DateTime.Today

Queries with DateTime.Today used in-memory filtering.  I'm not sure I follow how these unit tests work. Let me know if I need to make any changes and I'll watch for CI errors.
ctx.SomeEntity.Where(s => s.CreatedDate == DateTime.Today);

SELECT *
FROM "SomemEntity" AS s
WHERE s."CreatedDate" == DATE_TRUNC('date', NOW());

There's no exactly equivalent NodaTime property - I think you'd get an Instant representing the current time, then you'd convert it to a LocalDateTime (via ZonedDateTime), and then invoke LocalDateTime.Date on that.
I wouldn't insist on including that in this PR :)

@roji Makes sense! Any objections to merging now?

One small comment for anyone actually using this - be very careful of timezone issues, as the date is going to vary based on your PostgreSQL session... That's pretty bad, but it is more or less aligned with the regular behavior of DateTime.Today in .NET, which is sensitive to the local machine-configured timezone. Anyone using this should carefully set the PostgreSQL timezone parameter in the connection string, in the PostgreSQL configuration or somewhere else.

@Douglas-Cleghorn Thanks for your contribution!

No problem. Thanks for accepting the PR.


add default sample_limit (and all other *_limit) to global

Proposal
it's possible to set global.scrape_interval and global.scrape_timeout which acts as a default value for all scrapes.
please also add all limits eg sample_limit as global.sample_limit so it can act as default as well.
eg:
global:
  scrape_interval: 30s
  scrape_timeout: 20s

  body_size_limit: 10MB
  sample_limit: 20000
  label_limit: 20
  label_value_length_limit: 200
  target_limit: 100

if sample_limit set in scrape it should override the global.sample_limit.
related to https://github.com/prometheus-operator/prometheus-operator/issues/5119 (prometheus operator team is asking for this feature in prometheus server)

Hi, I'm working on this. And I'm using this for the Kubecon ContribFest demo!

bump

I'm picking this up from @gouthamve

I've made a PR.


Fix some broken links

Couple of broken-link fixes:

Codepen's fine, it just doesn't respond OK to regular GET requests anymore, so this addds an exception for it.

Wallaroo's www host doesn't appears to be gone, but wallaroo.ai is still there, so this changes our link to point to that URL instead, removes a bit about the post also appearing on the Wallaroo blog -- Wallaroo appears to have two blogs now, but this post doesn't appear on either of them -- and removes a not-so-valuable heading that was causing the post to render as though it were two posts in the listing:

@zchase friendly ping. Thanks!


remove duplicate pgsql php extension from nginx/apache

It's not a big deal, I don't think it will reduce the build time... but still :)
ℹ  It seems to have been introduced in https://github.com/continuouspipe/dockerfiles/pull/331

Thank you @Oliboy50!


Add ping.

✨ Add ping

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix(Row): left Value consistent when scrolling past lazy scroll

Description
left value is consistent everytime it is run at each different button
References
LUI-1048
Testing
-copy the Row.js file from this branch to node_modules in IS repo
-install and run the application
-notice each time it is run, the left and x value of the Items within the Row is always the same at each button.

Test Execution Passed.

Could you flesh out exactly what we should be looking for when testing this? The directions are unclear, and the ticket doesn't have much more info. I tried following your steps, but I'm not sure what I should be checking the "left" value of, and the behavior seems like it might still be incorrect?

In addition to @ImCoolNowRight's comment, the PR description should include the issue the PR is addressing and how it's resolving the problem

Could you flesh out exactly what we should be looking for when testing this? The directions are unclear, and the ticket doesn't have much more info. I tried following your steps, but I'm not sure what I should be checking the "left" value of.

Test Execution Passed.

Test Execution Failed.

Test Execution Passed.

:tada: This PR is included in version @lightningjs/ui-components-v2.14.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Timestamps for chat

@keybase/react-hackers
Here's a PR for chat timestamps!  Changes:

On adding a new message ourselves, or receiving a new message, or going through a list of old messages:

We go through them pairwise, adding a timestamp if the current one is more than a constant (currently 15 mins) newer than the previous one.

A timestamp is a new kind of Message.  It's the only type without a MessageID (client generated rather than server generated).  I wasn't sure whether that was a good idea, it seems better than the alternatives (like annotating each Message that should also display a timestamp).

For formatting the timestamps, the messages view uses a different moment formatting string than the timestamps in the conversation list view.  There's less screen space for the conversation list view ones, so it makes sense to provide more detail here.

@chrisnojima bump (ready for another look), thanks!

But wasn't this logically the same before the time stamps
On Wed, Nov 30, 2016 at 12:32 PM Chris Ball<EMAIL_ADDRESS>wrote:

@cjb commented on this pull request.
In shared/chat/conversation/list.desktop.js
https://github.com/keybase/client/pull/4959:

@@ -248,7 +255,7 @@ class ConversationList extends Component<void, Props, State> {
}

class CellSizeCache extends defaultCellMeasurerCellSizeCache {

_indexToID: (index: number) => number;

_indexToID: (index: number) => ?number;

@chrisnojima https://github.com/chrisnojima
Without this change:
chat/conversation/list.desktop.js:45
45:     this._cellCache = new CellSizeCache(this._indexToID)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructor call
71:       return id
^^ possibly uninitialized variable. This type is incompatible with
258:   _indexToID: (index: number) => number;
^^^^^^ number
The code is:
  let id
  if (message) {
    if (message.type === 'Timestamp') {
      id = message.timestamp
    } else {

// We want a stable key -- messages have an outboxID but no
      // messageID, then later gain a messageID.  So if we prefer
      // outboxIDs to messageIDs for the key, every row keeps its key.

      id = message && (message.outboxID || message.messageID

)
}
}
if (id == null) {
console.warn('id is null for index:', messageIndex)
}
return id
}
So the function's capable of returning null (even though we never want it
to), but the flow type was requiring a number.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/keybase/client/pull/4959, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAfhU-qY3CHAm7LXsdzB9J8l37n6AASVks5rDbMugaJpZM4K-LNs
.

But wasn't this logically the same before the time stamps

Yeah.  The old code was:
  const id = message && (message.outboxID || message.messageID)

so perhaps flow felt capable of proving that message would always be a Message type (and so id would always be non-null) before, and now it doesn't feel that way for some reason.  I think the new type is more correct than the old type!

Hmmmm. Ok I'm not so worried about it at this point. Ship it!
On Wed, Nov 30, 2016 at 12:39 PM Chris Ball<EMAIL_ADDRESS>wrote:

But wasn't this logically the same before the time stamps
Yeah. The old code was:
const id = message && (message.outboxID || message.messageID)
so perhaps flow felt capable of proving that message would always be a
Message type (and so id would always be non-null) before, and now it
doesn't feel that way for some reason. I think the new type is more correct
than the old type!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/keybase/client/pull/4959#issuecomment-263940798, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAfhU0EutyFg8drnaheXRQMaYlaPdYAGks5rDbS9gaJpZM4K-LNs
.


Password displayed as plain String in Camunda dashboard - ensure the display field is encrypted.

The password variable field is displayed as plain String as shown in the attachement - ensure this is encrypted.

William suggestion: Wonder if BPMN has support for secrets?
A spike should be performed to determine if a secrets approach is forthcoming. If not, a secrets style implementation should be made in Mod Camunda.
Some open source solutions to secret management with java integrations are:

https://www.vaultproject.io/
https://github.com/lyft/confidant
https://github.com/bitnami-labs/sealed-secrets
https://github.com/manifoldco/torus-cli

We can also check with out operations team to see if Rancher, or Azure might be leveraged for this.

The solution must be designed to be portable to other entities and communities.
There should be no in-house solutions.

The Torus link above references this URL for documentation: https://torus.sh/docs.
This URL currently does not resolve for me and this does not bode well for using torus-cli as an option.

Upgrading to Camunda 8 has some potential:

https://forum.camunda.io/t/create-password-field-in-task-form/375
https://docs.camunda.io/docs/components/console/manage-clusters/manage-secrets/
https://camunda.com/blog/2022/07/a-technical-sneak-peek-into-camundas-connector-architecture/

Upgrading to Camunda 8 seems like the best path to take, but has the cost of needing to migrate and upgrade all of our existing workflows as necessary.


Stats

simple stat report in the model directory for stats that typically go straight into tables and/or presentations. closes #36.

No big deal, and known, but the state of this is a little confusing. It looks like it's all merged, or mostly merged, except for one changeset. (But also it looks like there was an accidental and backed-out merge in the history.)


redirect phishing bad sites

2cnjuh34jbpoint.com
exobafrgdf.com
sefsdvc.com
syndication.traffichaus.com
traffichaus.com
realsrv.com
syndication.realsrv.com
when i browse in sites i found som sites redirect to this sites, they are bad sites please block them!

@minutesinch we already carry the following.
realsrv.com
syndication.traffichaus.com
traffichaus.com

Closing


Cartan Trajectory of improved CNOT and SWAP targets

Use trajectory plotting to show for $\sqrt{iSwap}$ basis, how the decomp optimizations (family-extend + parallel drive), change. I expect for the improved case, the gate goes directly to the M-N midpoint rather than sqiswap first. We can make color bar be a function of duration, so it will visually show a shorter gate time.
Example: SWAP target using vanilla $\sqrt{iSwap}$ basis

Collected this data with some hardcoding, more future work could improve this functionality to be more general. For SWAP shape is right, but have some issues aligning things correctly with time scale still


Update preloaded JSON

Perks as crafting requirements for equipment modules are currently loaded as ingredients, but they should probably be loaded as modules instead.

The preloaded modules should also have their attributes set (specifically light and heavy armor for the preloaded armors).

Support needs to be added for modules to reference other modules. This is going to be less straightforward than attributes as, in the case of the preloaded data, the modules are going to be loaded at the same time. The modules are going to need to be loaded without module-module references, then those references will be added in after all of the modules have been loaded, so the references can all be found.

Turns out the existing system already supports this and the module-module relationship was as simple as any other relationship.


Add better error message when functions are not deployed

Source of the problem is that I started aws install without deploying functions to s3.
It fails with:
mantil aws install --aws-profile org5
==> Installing setup stack...
Error: cloudformation failed

log:
2021/11/02 19:24:14.801539 /Users/ianic/mantil-io/mantil/cli/main.go:74: version: v0.1.13-32-gc86b621, args: [mantil aws install --aws-profile org5]
2021/11/02 19:24:15.423443 /Users/ianic/mantil-io/mantil/cli/controller/setup.go:83: [cli.Info] ==> Installing setup stack...
2021/11/02 19:25:15.885644 /Users/ianic/mantil-io/mantil/cli/cmd/root.go:189: [cli.Error] cloudformation failed
2021/11/02 19:25:15.886303 /Users/ianic/mantil-io/mantil/cli/main.go:76: [ERROR] cloudformation failed: could not create stack mantil-setup-d6khbiq - MantilSetupLambda - Resource handler returned message: "Yo
ur access has been denied by S3, please make sure your request credentials have permission to GetObject for mantil-releases/dev/ianic/v0.1.13-32-gc86b621/setup.zip. S3 Error Code: AccessDenied. S3 Error Messa
ge: Access Denied (Service: Lambda, Status Code: 403, Request ID: 41276beb-14f2-46d6-a45a-3349ed07e162, Extended Request ID: null)" (RequestToken: 41d65f09-0acc-296b-04d3-daa3e1c48270, HandlerErrorCode: Acces
sDenied)
1 cloudformation failed: could not create stack mantil-setup-d6khbiq - MantilSetupLambda - Resource handler returned message: "Your access has been denied by S3, please make sure your request credentials have
 permission to GetObject for mantil-releases/dev/ianic/v0.1.13-32-gc86b621/setup.zip. S3 Error Code: AccessDenied. S3 Error Message: Access Denied (Service: Lambda, Status Code: 403, Request ID: 41276beb-14f2
-46d6-a45a-3349ed07e162, Extended Request ID: null)" (RequestToken: 41d65f09-0acc-296b-04d3-daa3e1c48270, HandlerErrorCode: AccessDenied)
        github.com/mantil-io/mantil/cli/cmd.newAwsInstallCommand.func1
        /Users/ianic/mantil-io/mantil/cli/cmd/commands.go:61
2 cloudformation failed: could not create stack mantil-setup-d6khbiq - MantilSetupLambda - Resource handler returned message: "Your access has been denied by S3, please make sure your request credentials have permission to GetObject for mantil-releases/dev/ianic/v0.1.13-32-gc86b621/setup.zip. S3 Error Code: AccessDenied. S3 Error Message: Access Denied (Service: Lambda, Status Code: 403, Request ID: 41276beb-14f2-46d6-a45a-3349ed07e162, Extended Request ID: null)" (RequestToken: 41d65f09-0acc-296b-04d3-daa3e1c48270, HandlerErrorCode: AccessDenied)
        github.com/mantil-io/mantil/cli/controller.(*Setup).Create
        /Users/ianic/mantil-io/mantil/cli/controller/setup.go:67
3 cloudformation failed: could not create stack mantil-setup-d6khbiq - MantilSetupLambda - Resource handler returned message: "Your access has been denied by S3, please make sure your request credentials have permission to GetObject for mantil-releases/dev/ianic/v0.1.13-32-gc86b621/setup.zip. S3 Error Code: AccessDenied. S3 Error Message: Access Denied (Service: Lambda, Status Code: 403, Request ID: 41276beb-14f2-46d6-a45a-3349ed07e162, Extended Request ID: null)" (RequestToken: 41d65f09-0acc-296b-04d3-daa3e1c48270, HandlerErrorCode: AccessDenied)
        github.com/mantil-io/mantil/cli/controller.(*Setup).create
        /Users/ianic/mantil-io/mantil/cli/controller/setup.go:85
4 cloudformation failed: could not create stack mantil-setup-d6khbiq - MantilSetupLambda - Resource handler returned message: "Your access has been denied by S3, please make sure your request credentials have permission to GetObject for mantil-releases/dev/ianic/v0.1.13-32-gc86b621/setup.zip. S3 Error Code: AccessDenied. S3 Error Message: Access Denied (Service: Lambda, Status Code: 403, Request ID: 41276beb-14f2-46d6-a45a-3349ed07e162, Extended Request ID: null)" (RequestToken: 41d65f09-0acc-296b-04d3-daa3e1c48270, HandlerErrorCode: AccessDenied)
        github.com/mantil-io/mantil/cli/controller.(*Setup).createSetupStack
        /Users/ianic/mantil-io/mantil/cli/controller/setup.go:124
5 could not create stack mantil-setup-d6khbiq - MantilSetupLambda - Resource handler returned message: "Your access has been denied by S3, please make sure your request credentials have permission to GetObject for mantil-releases/dev/ianic/v0.1.13-32-gc86b621/setup.zip. S3 Error Code: AccessDenied. S3 Error Message: Access Denied (Service: Lambda, Status Code: 403, Request ID: 41276beb-14f2-46d6-a45a-3349ed07e162, Extended Request ID: null)" (RequestToken: 41d65f09-0acc-296b-04d3-daa3e1c48270, HandlerErrorCode: AccessDenied)
        github.com/mantil-io/mantil/aws.(*CloudFormation).CreateStack
        /Users/ianic/mantil-io/mantil/aws/cloudformation.go:60

It's pretty much ok in the current version:
mantil aws install --aws-profile org5

Installing setup stack: 50% (2/4)
Error: could not create stack mantil-setup-41c1c71b - MantilSetupLambda - Resource handler returned message: "Your access has been denied by S3, please make sure your request credentials have permission to GetObject for mantil-releases/dev/ianic/v0.2.6-1-g5b160c2/setup.zip. S3 Error Code: AccessDenied. S3 Error Message: Access Denied (Service: Lambda, Status Code: 403, Request ID: a552d1e7-ebd5-4630-bb3a-18fcca7691e6, Extended Request ID: null)" (RequestToken: 9bd05575-59a3-8609-35f0-8f65588300b5, HandlerErrorCode: AccessDenied)
Error: installing setup stack failed

This error is only shown in development when a developer is running non released Mantil version  and didn't make deploy which creates S3 objects required for creating node.
From S3 we get access denied but we all know that means object not found ;).


$.selectOptionByValue() reports a misleading error message

Steps to reproduce:

Given a page with <select> and options val1 and val2.
Call method `$("select").selectOptionByValue("val3").
Selenide shows a misleading error message:

Element not found {By.cssSelector: select}
Expected: exist
Caused by: NoSuchElementException: Cannot locate option with value: val3

Expected result: Selenide should show a correct error message like "Option with value 'val3' is not found".
environment

Selenide Version: 4.10.01

@asolntsev are you sure expected results can be fulfilled? as I know it is hard to implement(

@BorisOsipov I don't know yet, I haven't researched it yet.

@asolntsev @BorisOsipov We can trick a little SelectOptionByValue method and get error message like:
Element not found<EMAIL_ADDRESS>@myrambler.ru, @rusmail.ru, @мыло.ру]}
Expected: value 'myrambler.ru1'

@asolntsev @BorisOsipov with little tuning of selectOptionByValue we can get error like:
Element not found {values<EMAIL_ADDRESS>@myrambler.ru, @rusmail.ru, @мыло.ру]}
Expected: value 'myrambler.ru1'

Fixed in https://github.com/codeborne/selenide/pull/780, will be released in Selenide 4.12.4


Query not updating when Set used in query key

Describe the bug
I am trying to make a react-query call that involves using a set as a query key. However, updating the set (changing the reference passed in, not just adding an element to the set) does not cause the query to re-run.
/** @param {Set} set */
const useSetQuery = (set) => {
  return useQuery({
    queryKey: ['set-query', set],
    queryFn: () => {
      return Array.from(set.values());
    },
  });
};

See this TRPC issue for further discussion.
Your minimal, reproducible example
https://stackblitz.com/edit/github-wgxcnf?file=src%2Findex.jsx
Steps to reproduce

Click "Add Item"

This creates a copy of a set and adds a new element. The set is used as a query key, but changes to the set do not cause the query to trigger. The "React State" list updates with the new values, but the "RQ Data" list does not.
Expected behavior
The query should re-run when the button is clicked, and the data returned from react-query should contain the most up-to-date list of the set content.
How often does this bug happen?
Every time
Screenshots or Videos
https://github.com/TanStack/query/assets/4711227/72954e24-434e-46b2-84ea-4b46f6c0a6cd
Platform

Chrome 124.0.6367.61
Linux (Codesandbox)
Windows 10

Tanstack Query adapter
react-query
TanStack Query version
5.32.0
TypeScript version
No response
Additional context
No response

we only support json serializable values in the key. If you need something more, you can provide your own queryKeyHashFn and use something like superjson to serialize Sets.


Help a noob out

Hey guys, im new to all of this. I have a server, got LAMP installed and cloned this to it. Where do i go from here? is there an install guide someone could point me to?

https://github.com/floens/uchan#docker-setup


Add buildifier check

I'm skeptical about this taking 0 seconds to run if it isn't filtering to only changed files: https://github.com/google/iree/pull/2243/checks?check_run_id=782661412 .
Have you tested with errors that buildifier reports?

You know, probably checking out the repository first would help a lot.... :facepalm:

Whelp finally got it to run, but there are a lot of warnings...

This is exciting!
One thing that would be nice to do as a cleanup is move all the linty things into the same workflow - then we wouldn't have 4 of them with redundant names at the top level and only see the failures that matter.

This is exciting!

Now I just have to fix those thousand lint warnings :-D

One thing that would be nice to do as a cleanup is move all the linty things into the same workflow - then we wouldn't have 4 of them with redundant names at the top level and only see the failures that matter.

Same workflow or same job? That is, are you complaining about extra status markers on PRs or about extra files in the directory?

These specifically:

If there was one "Format/Lint" workflow with buildifier/bazel-to-cmake/submodules/clang-format/clang-tidy/python linting/etc as steps then there's a nice hierarchy (like
)
This then shows as a nice grouping in the actions status page:

as opposed to our current one, which needs a bunch of clicky clicks:

Ah got it. Yeah I think that would be accomplished by making these separate jobs in the same file.

Since it's going to take a bit to clean up the buildifier check, I'm doing the reorganization as a separate PR. https://github.com/google/iree/pull/2314


service annotations currently broken

https://github.com/bat-bs/helm-charts/blob/aa308a287d734db44df48fc9d81f311e145610e3/charts/librechat/templates/service.yaml#L8
  annotations:
    {{- toYaml .Values.service.annotations | nindent 4 }}

current chart with service annotations. above is the fix.

Hi,
added the fix.
Feel free to ping me if something doesn't work as expected


[DCOS-37640][BACKPORT] Update Kafka to 1.1.0 && update kafka-client (#2542)

Backports #2542
Resolves DCOS-37640
This PR updates Kafka to version 1.1.0 and the kafka-client used in the Kafka tests. It also includes Dockerfiles needed to build the image.

Re. the code-checks failure in this PR:
From @elezar

Just a note here. We've merged flake8 and pylint checks into the dcos-commons repo, and there should be a "code-check" github hook that shows up in PRs. This is not a required check (yet) ... The original PR still needs to be backported so that these work in the sdk-0.40.


Implemented searching for simulations

Needs testing
Closes #42

Also, as a further step, I believe we should add partial matches as well? For example, if someone typed in oothpick instead of toothpick, then he doesn't have to go all the way back.

@shreyamalviya


Change chmod inside magento2 deployment with cap

Hi, sorry to come here but the SO doesn't seem very populated ;)
We have a capistrano for our magento application
The deploy are working fine from tools/cap/config/deploy.rb and run correctly each specific env we have like for example tools/cap/config/deploy/production.rb
The problem is that during the deploy process we would like to change the chmod command made by capistrano cause this is getting us some trouble we need to setup manually the rights after each deploy. (but not on every ones of our projects, so I don't think this is due to a cap bug neither, more likely to some internal configuration we have).
Anyway, we clearly see in the capistrano.log
INFO [db28dba5] Running /usr/bin/env find /var/www/ourwebsite/web/releases/20201117160947 -type f ! -perm 660 -exec chmod 660 {} + as domain@ip

So that chmod 660 must be defined somewhere...but I can't find where.
So I'm looking into a way to "extend" that capistrano behaviour...or at least to add a specific tasks at the end of the current deploy process that will do what we want.
I've seen there was a way to define specific tasks cause we got this in our Capfile
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }

But currently we didn't get any of them.
Thanks for your assistance.

change the chmod command made by capistrano

For this you will need to overwrite the task. This is a Rake feature, not a Capistrano feature, as we extend their DSL. You can learn about the tasks that are executed at deploy time here https://capistranorb.com/documentation/getting-started/flow/ and you can extend/overwrite/replace tasks such as by following this Rake guide: https://www.rubycommunity.org/articles/customizing-rails-rake-tasks
Note that "reopening" (Defining again, an already existing task) by default extends the definition, so in the above linked article you will note that they are "clear"ing the existing definition. You can see an example of a chmod in a task, all in situ here https://github.com/capistrano/capistrano/blob/f5a16779a7e6ddf6768ea2c1f39b101ffeba796b/lib/capistrano/scm/tasks/git.rake#L10 and copy whatever parts you need.

So that chmod 660 must be defined somewhere...but I can't find where.

Search in this repository for it, or post more complete logs. It's likely it doesn't come from capistrano/capistrano, but from a gem you are using on-top.

But currently we didn't get any of them.

That suggests your require line above (which looks correct) isn't being executed, or isn't finding any files. You can probably debug this yourself, but I can at least confirm that importing rakefiles is the correct approach.

I managed to do what I wanted with the following rake tasks
namespace :magento do
    namespace :setup do
       desc 'Custom rights on application'
       task :permissions do
           on release_roles :all do
              within release_path do
                  execute :find, release_path, "-type d ! -perm 755 -exec chmod 755 {} +"
                  execute :find, release_path, "-type f ! -perm 644 -exec chmod 644 {} +"
             end
         end
      end
   end
end


Unable to deploy OLM on minishift

Env:
[leseb@tarox~/operator-lifecycle-manager][master !] minishift status
Minishift:  Running
Profile:    minishift
OpenShift:  Running (openshift v3.11.0+948efc6-96)
DiskUsage:  11% of 39G (Mounted On: /mnt/sda1)
CacheUsage: 1.863 GB (used by oc binary, ISO or cached images)

Error log after running: make run-local-shift:
[leseb@tarox~/operator-lifecycle-manager][master !] make run-local-shift                                                                                [34/17639]
go: finding github.com/googleapis/gnostic/OpenAPIv2 latest
go: finding github.com/googleapis/gnostic/compiler latest
go: finding github.com/google/gofuzz latest
go: finding github.com/emicklei/go-restful/log latest
go: finding github.com/google/btree latest
go: finding github.com/modern-go/concurrent latest
. ./scripts/build_local_shift.sh
-- Starting profile 'minishift'
The 'minishift' VM is already running.
Logged into "https://<IP_ADDRESS>:8443" as "system:admin" using existing credentials.

You have access to the following projects and can switch between them with 'oc project <projectname>':

    default
    kube-dns
    kube-proxy
    kube-public
    kube-system
  * myproject
    openshift
    openshift-apiserver
    openshift-controller-manager
    openshift-core-operators
    openshift-infra
    openshift-node
    openshift-service-cert-signer
    openshift-web-console

Using project "myproject".
Sending build context to Docker daemon 77.39 MB
Step 1/3 : FROM golang:1.11
 ---> 901414995ecd
Step 2/3 : WORKDIR /go/src/github.com/operator-framework/operator-lifecycle-manager
 ---> Using cache
 ---> 34ea57fdac84
Step 3/3 : COPY . .
 ---> b06482cd582e
Removing intermediate container 24fb4d455f3f
Successfully built b06482cd582e
mkdir -p build/resources
. ./scripts/package-release.sh 1.0.0 build/resources Documentation/install/local-values-shift.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_00-namespace.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_14-olm-operators.configmap.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_02-clusterserviceversion.crd.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_03-installplan.crd.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_04-subscription.crd.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_05-catalogsource.crd.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_13-operatorgroup.crd.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_01-olm-operator.serviceaccount.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_12-aggregated.clusterrole.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_10-olm-operator.deployment.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_11-catalog-operator.deployment.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_15-olm-operators.catalogsource.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_16-operatorgroup-default.yaml
wrote /tmp/tmp.Flk2FRskCM/chart/olm/templates/0000_50_17-packageserver.subscription.yaml
. ./scripts/install_local.sh local build/resources
namespace "local" created
namespace "local" configured
clusterrole.authorization.openshift.io "system:controller:operator-lifecycle-manager" created
serviceaccount "olm-operator-serviceaccount" created
clusterrolebinding.authorization.openshift.io "olm-operator-binding-local" created
customresourcedefinition.apiextensions.k8s.io "clusterserviceversions.operators.coreos.com" created
customresourcedefinition.apiextensions.k8s.io "installplans.operators.coreos.com" created
customresourcedefinition.apiextensions.k8s.io "subscriptions.operators.coreos.com" created
customresourcedefinition.apiextensions.k8s.io "catalogsources.operators.coreos.com" created
deployment.apps "olm-operator" created
deployment.apps "catalog-operator" created
clusterrole.rbac.authorization.k8s.io "aggregate-olm-edit" created
clusterrole.rbac.authorization.k8s.io "aggregate-olm-view" created
customresourcedefinition.apiextensions.k8s.io "operatorgroups.operators.coreos.com" created
configmap "olm-operators" replaced
catalogsource.operators.coreos.com "olm-operators" created
operatorgroup.operators.coreos.com "global-operators" created
operatorgroup.operators.coreos.com "olm-operators" created
subscription.operators.coreos.com "packageserver" created
Waiting for rollout to finish: 0 of 1 updated replicas are available...

error: deployment "olm-operator" exceeded its progress deadline
make: *** [Makefile:68: run-local-shift] Error 1

However oc get deployment indicates the resource is running but not available:
[leseb@tarox~] oc get deployments --all-namespaces
NAMESPACE                       NAME                                     DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
local                           catalog-operator                         1         1         1            0           17m
local                           olm-operator                             1         1         1            0           18m
openshift-core-operators        openshift-service-cert-signer-operator   1         1         1            1           26m
openshift-core-operators        openshift-web-console-operator           1         1         1            1           24m
openshift-service-cert-signer   apiservice-cabundle-injector             1         1         1            1           25m
openshift-service-cert-signer   service-serving-cert-signer              1         1         1            1           25m
openshift-web-console           webconsole                               1         1         1            1           24m

Description of the resource:
[leseb@tarox~] oc describe deployment.apps/olm-operator -n local
Name:                   olm-operator
Namespace:              local
CreationTimestamp:      Fri, 08 Feb 2019 15:27:51 +0100
Labels:                 app=olm-operator
Annotations:            deployment.kubernetes.io/revision=1
                        kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"olm-operator"},"name":"olm-operator","namespace":"local"},"sp...
Selector:               app=olm-operator
Replicas:               1 desired | 1 updated | 1 total | 0 available | 1 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:           app=olm-operator
  Service Account:  olm-operator-serviceaccount
  Containers:
   olm-operator:
    Image:      quay.io/coreos/olm:local
    Port:       8080/TCP
    Host Port:  0/TCP
    Command:
      /bin/olm
    Args:
      -watchedNamespaces
      local
      -debug
      -writeStatusName

    Liveness:   http-get http://:8080/healthz delay=0s timeout=1s period=10s #success=1 #failure=3
    Readiness:  http-get http://:8080/healthz delay=0s timeout=1s period=10s #success=1 #failure=3
    Environment:
      OPERATOR_NAMESPACE:   (v1:metadata.namespace)
      OPERATOR_NAME:       olm-operator
    Mounts:                <none>
  Volumes:                 <none>
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Available      False   MinimumReplicasUnavailable
  Progressing    False   ProgressDeadlineExceeded
OldReplicaSets:  <none>
NewReplicaSet:   olm-operator-6ffbdc7886 (1/1 replicas created)
Events:
  Type    Reason             Age   From                   Message
  ----    ------             ----  ----                   -------
  Normal  ScalingReplicaSet  21m   deployment-controller  Scaled up replica set olm-operator-6ffbdc7886 to 1

Could this simply be a timing issue?
Is my minishift version too old? (minishift does not have any 4.0 alpha AFAIK)
Thanks.

We've been meaning to remove the minishift scripts from OLM. AFAIK it will not be available 4.0+. If you just need to run OLM, I suggest make run-local with minikube. If you need all of OpenShift, I would try the installer - I believe there are some instructions at try.openshift.com as well.

Thanks for your response, it seems to be starting on minikube v1.13.2, so perhaps we should update the build_local.sh script with this version, or is there any reasons to stick with 1.11? Thanks.

1.11 is the version of kubernetes minikube is deploying - our client modules depend on 1.11 and we haven't upgraded yet.

@njhale Thanks!


media_codec: Add support for asynchronous notification callbacks

Note that unlike the audio data callback, I do not provide a reference to the codec as a callback parameter. Happy to be overruled on this, but I find the notion of constructing a new MediaCodec which wraps an ffi::AMediaCodec already owned by another MediaCodec somewhere else to be a bit questionable. If you really need access to the MediaCodec within the callback than you can use a Mutex or something, but the reality is that you can't actually do very much within the callback. For example, if you try to release the output buffer in the 'output available' callback then the whole thing just deadlocks.
Typical usage might look something like this (sans proper error handling):
let (input_tx, input_rx) = channel(32);
let (output_tx, output_rx) = channel(32);
codec
    .set_async_notify_callback(Some(AsyncNotifyCallback {
        on_input_available: Some(Box::new(move |index| {
            input_tx.blocking_send(index).unwrap();
        })),
        on_output_available: Some(Box::new(move |index, _info| {
            output_tx.blocking_send(index).unwrap();
        })),
        on_format_changed: None,
        on_error: Some(Box::new(move |error, action_code, detail| panic!()))
    })).unwrap();

Elsewhere...
select! {
    buffer_index = input_rx.recv() => {
        let buffer_index = buffer_index.unwrap();
        let input_buffer = codec.input_buffer(buffer_index).unwrap();
        // Fill buffer...
        codec.queue_input_buffer_by_index(buffer_index, 0, buffer_len, 0, 0).unwrap();
    }
    buffer_index = output_rx.recv() => {
        codec.release_output_buffer_by_index(buffer_index.unwrap(), true).unwrap();
    }
}

Happy to be overruled on this, but I find the notion of constructing a new MediaCodec which wraps an ffi::AMediaCodec already owned by another MediaCodec somewhere else to be a bit questionable.

It is not only questionable, this should break on Drop unless AMediaCodec is internally refcounted and we can increase the refcount like we do for other Android objects in a custom Clone implementation.
Perhaps you can work something out to give a &MediaCodec back? Though this does rely on some weak/strong handle to a Mutex/Arc indeed, so that the callback can't technically get to a MediaCodec if it happens to be fired after the object has already been destroyed and deallocated. On the other hand Android might define this API to not call any callbacks after it was destroyed, meaning some "working around the borrow checker" might've been adequate.
In the past I've been wanting to have some unsafe fn borrrow_from_ptr<'a>(x: NonNull<...>) -> &'a Self but we can't really borrow it "from somewhere" nor cast a pointer to a borrow of said pointer.

@zarik5 you might want to see this!

Let's not have the PR link in the commit title (as if this was a final merge-commit) please :)

On the other hand Android might define this API to not call any callbacks after it was destroyed, meaning some "working around the borrow checker" might've been adequate.

Looking at the Android source code, when an AMediaCodec is deleted, it stops the looper used for asynchronous callbacks, and this appears to block while waiting for the looper thread to exit. Naturally this is not documented, but I don't think I would be too bothered about just assuming the AMediaCodec is still valid when we get called. It gives us an AMediaCodec pointer after all, so it would be a bit weird for that pointer to be potentially invalid.
Maybe we can pass a reference to the callback, but.. why? Even something as simple as AMediaCodec_getName deadlocks when invoked from a callback. As far as I can tell there is nothing useful you can do with the codec handle. It's just a footgun, luring you into doing something which is going to break your program.

Let's not have the PR link in the commit title (as if this was a final merge-commit) please :)

I was just copying the convention from previous commits. Is the PR number added to the commit automatically or something?

@spencercw oh I may have skimmed your question too quickly then and assumed the deadlocks were caused by wrapping things in a Mutex on the Rust side for lack of "temporarily borrowing" (e.g. preventing Drop to be called) a MediaCodec based on the ffi::AMediaCodec given to you. If you say that Android givind you that pointer is only a misleading black hole, let's not use that pointer for now.
(The only use I can think of then is typically using the same callback function for multiple objects, and being able to distinguish which of the codec objects just called the callback... But you can also use the userdata pointer for that, as already done by storing extra data in Box<dyn FnMut> closures)

Let's not have the PR link in the commit title (as if this was a final merge-commit) please :)

I was just copying the convention from previous commits. Is the PR number added to the commit automatically or something?

It'll be added automatically on squash merge by GitHub indeed :slightly_smiling_face: (and I think it'd try to add it twice otherwise).

@spencercw thanks for #412, it's merged now. Can you rebase this and perhaps look at / mark-as-resolved the above discussion items?

Rebased on master. I think that's all comments addressed now.

No worries. It's good to get it all polished up before merging :)


NA result for "classif.glmnet"

Now with working example:
http://localhost:8746/?algo=classif.glmnet&task=3&parameters={%22alpha%22:[0.9473684],%22lambda%22:[-7.894737]}

[{"setup_ids":2584374,"distances":0.0051,"impl_id":6766,"performance":"NA","alpha":0.9448,"s":0.01,"lambda":0.004}]

We have to delete Runs without evaluations somehow so that

We have to delete Runs without evaluations somehow so that they are not found as nearest neighbours.

I will do so with the new mysql reduce script.


Question: Skipping continuous integration

How does solidarity work for detecting that it is currently running on continuous integration?
Do I need to pass a flag? Example npx solidarity --ci
Also the question Should this rule be skipped on a Continuous Integration server? seems to output a "ci": true when selecting to skip the rule, is this intended or does "ci": true allow the rule to run on ci?

Example
{
  "requirements": [
    {
      "rule": "cli",
      "binary": "",
      "platform": [
        "macos",
        "linux"
      ],
      "ci": true
    }
  ]
}

It checks for an environment variable named "CI" which is usually set on most CI servers.  If it's not, you can set it on your CI server.
Secondly, and I might be misremembering, but if your ci: false it will skip the test when on CI

It checks for an environment variable named "CI" which is usually set on most CI servers.  If it's not, you can set it on your CI server.
Secondly, and I might be misremembering, but if your ci: false it will skip the test when on CI


Add DBASSParser, MIMParser, Mim2GeneParser and UniProtParser

Description
This PR ports DBASSParser, MIMParser, Mim2GeneParser and UniProtParser from ensembl (branch feature/xref_sprint for the former three, feature/UniProtParserETL for the latter) to ensembl-xref.
Use case
Part of the xref sprint. See ENSCORESW-2920, ENSCORESW-2926, ENSCORESW-2931 and ENSCORESW-2939.
Benefits
DBASS, OMIM and UniProt xrefs will be parseable using the new infrastructure.
Possible Drawbacks
None I can think of.
Testing
I have confirmed that all four parsers run (using Alessandro's modified version of the xref pipeline, as per instructions) and produce identical output, timestamps nothwithstanding, as their ensembl counterparts. Test suites will follow.

Pull Request Test Coverage Report for Build 124

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 49.717%

Totals

Change from base Build 94:
0.0%

Covered Lines:
614

Relevant Lines:
1235

💛  - Coveralls

Almost certainly as a separate PR, I shall most likely have to concentrate on other matters this week.

Was having a look at the parsers submitted as part of this PR and there are a large number of functions that are missing POD documentation.

As mentioned this morning, I've just begun working on adding this along with unit tests. At the moment documentation is largely taken care of (I'd still like to polish POD in UniProtParser some more) but I'll just make a single pull request next week.


master: utils.unsign does not extract the sign correctly if the value contains a period

Using signed cookie sessions that happen to store a users email address and the cookie value on next request would be reset because the sign would fail, as unsign calls val.split('.') and only uses the first returning array item.
To fix, I considered re-joining on length > 2 or a regex, but thought a slice with lastIndexOf would ultimately be faster, although I'm new to hard core js hacking and don't have a fast way to bench this and prove my assumption, so hopefully I'm making an ass of nobody ;)
Tests included

no worries about being paranoid with perf, it wont matter much here. Also thanks for the tests! appreciated


Ellipse

I was banned for asking questions while others spammed why?

Your question pertains to the hack.chat community, not the hack.chat software project.


Simple is beautiful

Tetherfi only needs to set up the WiFi properly, and other VPN apps can implement such  proxies. IP address and DHCP settings cannot be set yet in Tetherfi.

Hello, sorry, I am not sure I understand. Do you have a question, or is this an observation?

This is just one suggestion.
At 2024-06-15 09:14:05, "pyamsoft" @.***> wrote:
Hello, sorry, I am not sure I understand. Do you have a question, or is this an observation?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Ah I see, then I think there is a misunderstanding.
TetherFi uses WiFi direct to setup the WiFi properly, which we have very little control over.
Once started, the Android OS system runs a DHCP server and assigns a host IP address.
We have zero control over these steps, there is no option for us to not do one or the other.
Yes, any app can make the proxy server part, but the WiFi direct IP address, and DHCP are non configurable.

Yes. I found that root privileges are required to access the gateway's IP and DHCP. However, the setting of the proxy port is relatively redundant, and the successful connection seems to be unrelated to the hotspot, it is connecting to the proxy port. And most VPNs are designed very well for this. If the proxy port is removed, the connection indication directly utilizes the connection information of the hotspot, which is actually more specific and dedicated; It is positioned as a new Tether app.
At 2024-06-18 20:44:17, "pyamsoft" @.***> wrote:
Ah I see, then I think there is a misunderstanding.
TetherFi uses WiFi direct to setup the WiFi properly, which we have very little control over.
Once started, the Android OS system runs a DHCP server and assigns a host IP address.
We have zero control over these steps, there is no option for us to not do one or the other.
Yes, any app can make the proxy server part, but the WiFi direct IP address, and DHCP are non configurable.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Yes that is true, but a regular WiFi direct hotspot is local only and thus has no connection to the Internet.
The proxy is needed to allow the device to receive forwarded connections from client devices.
You don't have to use the proxy built into TetherFi, and can use any app you want that provides a host side forwarding setup.


Add "Register Wasm Transform" Action for Redpanda

Redpanda allows us to upload a WASM transform to the brokers through an Admin API call:

We need to identify what the admin api call is
We need to implement a Redpanda feature flag
Given a wasm url, upload the transform to redpanda with necessary parameters

https://github.com/redpanda-data/redpanda/blob/v23.3.6/src/go/rpk/pkg/adminapi/api_transform.go#L25


[#307] Android Gradle Plugin 7.0.3

We should wait until PR #320 is merged and we can rebase, to verify that this change doesn't break the CI build.


Google to pay JavaScript frameworks to implement performance-first code

Tried to write this on the forum, but it isn't working (it gives me a 403).
The news:
https://www.zdnet.com/article/google-to-pay-javascript-frameworks-to-implement-performance-first-code/
The signup link: https://bit.ly/framework-perf
Not sure if it's usefull, but, there is it =)

Thanks, signed up


Asset burn bug troubleshooting

My ongoing attempt towards trouble shooting https://github.com/lightninglabs/taproot-assets/issues/704
This PR shouldn't be merged.

Bug does not occur on main. See related issue: https://github.com/lightninglabs/taproot-assets/issues/704#issuecomment-1854612028


No "did you mean" suggestions available

when the "Multiple Topics Matched" topic triggered the JSON got a value that looked like this:

These are the suggested topics for the user, it will be amazing if it will be shown in the transcript.
right now it looks like this:

Can you share the full JSON here? (a message without any confidential information 😉). Should be possible to render this as a list / buttons. Otherwise, you can send this to<EMAIL_ADDRESS>I haven't had much time to work on this component to be honest, but great to hear that it is still being used! Perhaps during these silent days, I can make your change.

off course it's in use! 😄
please see the attached JSON.
Transcript Json example.txt

Thank will have a look! The format is not great tbh, thus I will need to have a look how this can be incorporated. Interesting that these buttons don't show up by default in the activity..
[
    {
        "id": "ac48dcb9-49e8-4553-af7a-ecf37166456d",
        "type": "event",
        "timestamp":<PHONE_NUMBER>,
        "from": {
            "id": "168f7f56-e730-d127-c3fa-f07918300f3e",
            "role": 0
        },
        "name": "DialogTracing",
        "channelId": "pva-studio",
        "attachments": [],
        "replyToId": "c1-60520f6f-4996-4010-aa88-48565db5f0d2",
        "value": {
            "actions": [
                {
                    "actionId": "sendMessage_g5Ls09",
                    "topicId": "cra5b_newCaptainZ.topic.MultipleTopicsMatched",
                    "triggerId": "main",
                    "dialogComponentId": "910c32b0-9cb0-4082-9943-336172c07434",
                    "actionType": "EditTable",
                    "conditionItemExit": [],
                    "variableState": {
                        "dialogState": {
                            "IntentOptions": [
                                {
                                    "DisplayName": "Delivery Order",
                                    "Score": 0.518455743789673,
                                    "TopicId": "cra5b_newCaptainZ.topic.DeliveryOrder_AcV",
                                    "TriggerId": "main"
                                },
                                {
                                    "DisplayName": "Schedules",
                                    "Score": 0.59152215719223,
                                    "TopicId": "cra5b_newCaptainZ.topic.Schedules",
                                    "TriggerId": "main"
                                },
                                {
                                    "DisplayName": "Track my shipment",
                                    "Score": 0.576404631137848,
                                    "TopicId": "cra5b_newCaptainZ.topic.testing12",
                                    "TriggerId": "main"
                                },
                                {
                                    "DisplayName": "None of these",
                                    "Score": 1,
                                    "TopicId": "NoTopic",
                                    "TriggerId": "NoTrigger"
                                }
                            ]
                        },
                        "globalState": {}
                    },
                    "exception": "",
                    "resultTrace": {}
                }
            ]
        }
    },
    {
        "id": "5e973c3e-f44c-4963-8738-d8aa103180da",
        "type": "message",
        "timestamp":<PHONE_NUMBER>,
        "from": {
            "id": "168f7f56-e730-d127-c3fa-f07918300f3e",
            "role": 0
        },
        "channelId": "pva-studio",
        "textFormat": "markdown",
        "text": "To clarify, did you mean:",
        "attachments": [],
        "replyToId": "c1-60520f6f-4996-4010-aa88-48565db5f0d2",
        "speak": "\\u003Cspeak version=\\u00221.0\\u0022 xml:lang=\\u0022en-US\\u0022 xmlns:mstts=\\u0022http://www.w3.org/2001/mstts\\u0022 xmlns=\\u0022http://www.w3.org/2001/10/synthesis\\u0022\\u003E\\u003Cvoice name=\\u0022en-US-ChristopherNeural\\u0022 xmlns=\\u0022\\u0022\\u003E\\u003Cprosody rate=\\u00220%\\u0022 pitch=\\u00220%\\u0022\\u003ETo clarify, did you mean: You can say Delivery Order, Schedules, Track my shipment, or None of these.\\u003C/prosody\\u003E\\u003C/voice\\u003E\\u003C/speak\\u003E"
    }
]


How to use in Vapor project?

Hi
My Vapor project used it's Redis library, that's library name same as this library.
So, how to coexist?

Why would you possibly want to use two Redis libraries? 🤔
And why wouldn't you want to use the included one? 🤔
You can make it work, but it requires you to setup a third helper module with a different name. Essentially you create a "MyXYZ" package, include one of the conflicting packages there, and then re-export the stuff under the new name (do a @_exported import XYZ in MyXYZ). Which you should then be able to import in the main application.

do a @_exported import XYZ in MyXYZ
thanks, I will try it.

Why would you possibly want to use two Redis libraries?

MyLibrary is not remove git package, but I want use swift-nio-redis.
My Package.swift
import PackageDescription

let package = Package(
    name: "QZPrivateBox_api",
    dependencies: [
        .package(url: "https://github.com/apple/swift-nio.git", from: "1.8.0"),
        .package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
        .package(url: "https://github.com/vapor/redis.git", from: "3.0.0-rc"),
        .package(url: "https://github.com/NozeIO/swift-nio-redis.git", .branch("develop")),
    ],
    targets: [
        .target(name: "MyLibrary", dependencies: ["<REDIS>"], path: "Libraries/MyLibrary/Sources"),
        .target(name: "App", dependencies: ["Redis", "Vapor", "MyLibrary"]),
    ]
)

Just drop the
    .package(url: "https://github.com/vapor/redis.git", from: "3.0.0-rc"),

line and you should be done.

Vapor App Package.swift
// swift-tools-version:4.0
import PackageDescription

let package = Package(
    name: "NIOSidekiqExample",
    dependencies: [
        .package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
        .package(url: "https://github.com/vapor/redis.git", from: "3.0.0-rc.2"),
        .package(url: "https://github.com/user/MyLibrary.git", .branch("master")),
    ],
    targets: [
        .target(name: "App", dependencies: ["Vapor", "Redis", "MyLibrary"]),
        .target(name: "AppRun", dependencies: ["App"]),
        .testTarget(name: "AppTests", dependencies: ["App"])
    ]
)

MyLibrary Package.swift
// swift-tools-version:4.0

import PackageDescription

let package = Package(
    name: "MyLibrary",
    products: [
        .library(
            name: "MyLibrary",
            targets: ["MyLibrary"]),
    ],
    dependencies: [
         .package(url: "https://github.com/NozeIO/swift-nio-redis.git", .branch("develop")),
    ],
    targets: [
        .target(
            name: "MyLibrary",
            dependencies: ["Redis"]),
        .testTarget(
            name: "MyLibraryTests",
            dependencies: ["MyLibrary"]),
    ]
)

When I swift build Vapor App, the error message is 'Redis' /Users/user/path/.build/checkouts/redis.git--22716008034766659: error: multiple targets named 'Redis'
So, I recommend use one library name "NIORedis"

Yes, again, drop:
    .package(url: "https://github.com/vapor/redis.git", from: "3.0.0-rc.2"),

Wy do you include it, if you don't want to use it?

Wy do you include it
We need use Vapor Redis In Vapor App.

you don't want to use it?
In library, the Vapor Redis is too heavy.

Can you merge #3 first ?

Hm, sorry, I don't understand any of this. You want to use it, but then you don't want to use it. Just choose one and stick to it.

So, I recommend use one library name "NIORedis" and one target name "NIORedis".

Not going to happen. NIORedis is the protocol implementation and Redis the client. That seems exactly right.
Looking at your Package.swift, that looks right to me. You may want to file an issue against Swift Package Manager, I think this should be supported if it isn't.

You may want to file an issue against Swift Package Manager

Yes, I think this is SPM issue, and maybe the solution status is WIP

NIORedis is the protocol implementation and Redis the client. That seems exactly right.

Yes, you are right.


List from JSON not being applied to resource

I am trying to connect a person resource with a list of who they knows, which are simply a url as a string.
The JSON looks like this:
{
    "birthDate" : "Mon Jan 11 1993 00:00:00 GMT+0100 (Vest-Europa (normaltid))",
    "email"<EMAIL_ADDRESS>    "knows" : ["http://www.wolftech.no/ontology/wayneRooney",
    "http://www.wolftech.no/ontology/philippeCoutinho"],
    "name" : "Sindre Moldeklev",
    "telephone" : "48271395",
    "worksFor" : "TV 2",
    "Uri": "http://www.wolftech.no/ontology/person/sndrem123",
    "Id": "sndrem123"
}

I have the following classes:
Interface IPerson:
[Entity(WolftechOntology.Person)]
public interface IPerson
{
    [Identifier(WolftechOntology.WolftechBaseUri + "person/", KeyProperties = new[] { "Id" })]
    string Id { get; }

    [PropertyType(WolftechOntology.Label)]
    string Label { get; set; }

    [PropertyType(SCHEMA.telephone)]
    string Telephone { get; set; }

    [PropertyType(SCHEMA.email)]
    string Email { get; set; }

    [PropertyType(SCHEMA.worksFor)]
    string WorksFor { get; set; }

    [PropertyType(SCHEMA.birthDate)]
    string Birthdate { get; set; }

    [PropertyType(SCHEMA.knows)]
    ICollection<string> Knows { get; set; }

}

Person.cs
[RdfClass(FOAF.Person)]
public class Person : Resource
{
    public Person(Uri uri) : base(uri)
    {
    }

    [RdfProperty(WT.Id)]
    public string Id { get; set; }

    [RdfProperty(RDFS.label)]
    public string Label { get; set; }

    [RdfProperty(SCHEMA.telephone)]
    public string Telephone { get; set; }

    [RdfProperty(SCHEMA.email)]
    public string Email { get; set; }

    [RdfProperty(SCHEMA.knows)]
    public ICollection<string> Knows { get; set; }

    [RdfProperty(SCHEMA.worksFor)]
    public string WorksFor { get; set; }

    [RdfProperty(SCHEMA.birthDate)]
    public string BirthDate { get; set; }
}

And for the controller which receives the JSON, I have the following model:
public class Person : Resource
{
    public Person(Uri Uri) : base(Uri)
    {
        Debug.WriteLine("Uri:" + Uri);
        Debug.WriteLine("Creating a new Person Resource");
    }

    public string Id { get; set; }
    public string Name { get; set; }
    public string Telephone { get; set; }
    public string BirthDate { get; set; }
    public string Email { get; set; }
    public string WorksFor { get; set; }
    public ICollection<string> Knows { get; set; }
}

All the other fields are being marked up correctly, but not the knows-property.
Any help here would be much appreciated!

It looks like you have maybe got some code that is transferring the property values from your Resource to the BrightstarDB entity. When you transfer the collection do you just set the property value directly (i.e. assign the list of string to the Knows property the Person instance)? When you are setting a collection property you might want to try instead iterating the source collection and adding the items to the target one at a time.


Custom color Status Bar

I am using this library but this is supporting custom color on status bar in Android L.
Please can anyone let me know about the status bar customization in SlidingFragmentActivity?

I have the same issue. I was keeping the status bar transparent but it was showing a grey color in the status bar.

I have the same issue ，this lib is not update???


Add Staticman data

Dear human,
Here's a new entry for your approval. :tada:
Merge the pull request to accept it, or close it to send it away.
:heart: Your friend Staticman :muscle:

Field
Content

name
Li

email
3d8c977eb9c1010458260a4df9a7a699

message
aaa

date
1498711034

layout
post

aanwezig
true

nieuwe_inschrijving
false

ok. This is a test.


Create new password-protected "expert settings" or "test config settings" menu

Parameters to be adjustable here:
Threshold
Color channel
SG smoothing window
Min distance between peaks

Perhaps this could be kind of a dev tool, where it allows more people to test these parameters on the fly. Maybe then hidden for deployed versions?


Test Connection Improvements

Ingestion / Backend:

Use PATCH for the response on the ingestion side to update steps and status (or a separate endpoint to manage updating responses only)
If the test connection has a serviceName, update the service lastTestConnection status with the results and showcase that on the UI
Short-circuit test connection if the first "access" check fails. This should validate networking and creds and stop the processing if cannot be accomplished.

UI:

Once the UI receives the test connection result, it should DELETE the workflow.

Note that now the UI does not allow to click multiple times on test connection until the workflow is finished.

Localization: Have locale keys for the test definition steps for cleaner naming. Get Views instead of GetViews, and handle translations. Same for descriptions: GetViews.description
Show non-mandatory failed tests as a yellow warning and communicate that only partial metadata will be ingested in this case

More feedback here https://github.com/open-metadata/OpenMetadata/pull/10660#issuecomment-1485465561 cc @Sachin-chaurasiya @chirag-madlani

More feedback here #10660 (comment) cc @Sachin-chaurasiya @chirag-madlani

Thanks @harshach, we will check that.


6IT-A Sparsh

Five questions are solved #79
Question:1]

Question:2]

Question:4]

Questions:5]

Question:3]


UseBranchWithServices extension method is not working with branched mvc apps.

filip's original sample of the UseBranchWithServices feature doesn't work any longer when using the extension method from WebApiContrib.Core
Following sample clearly illustrates/reproduces the problem.
https://github.com/paulvanbladel/aspnetcore-parallel-pipelines

This is a bug in controller discovery.
You could workaround it by explicitly adding your assembly to MVC controller discovery (AddApplicationPart(typeof(MyApiController).Assembly);).
            app.UseBranchWithServices("/api",
                s =>
                {
                    s.AddTransient<IHiService, ResourceService>();
                    s.AddMvc().ConfigureApplicationPartManager(manager =>
                    {
                        manager.FeatureProviders.Clear();
                        manager.FeatureProviders.Add(new TypedControllerFeatureProvider<MyApiController>());
                    }).AddApplicationPart(typeof(MyApiController).Assembly);
                },
                a =>
                {
                    a.UseMvc();
                });

An even more elegant version would be:
    public static class MvcCoreBuilderExtensions
    {
        public static IMvcBuilder AddSpecificControllersOnly<TController>(this IMvcBuilder builder) where TController : ControllerBase
        {
            return builder.ConfigureApplicationPartManager(manager =>
            {
                manager.FeatureProviders.Clear();
                manager.FeatureProviders.Add(new TypedControllerFeatureProvider<TController>());
            }).AddApplicationPart(typeof(TController).Assembly);
        }

        public static IMvcCoreBuilder AddSpecificControllersOnly<TController>(this IMvcCoreBuilder builder) where TController : ControllerBase
        {
            return builder.ConfigureApplicationPartManager(manager =>
            {
                manager.FeatureProviders.Clear();
                manager.FeatureProviders.Add(new TypedControllerFeatureProvider<TController>());
            }).AddApplicationPart(typeof(TController).Assembly);
        }
    }

And then you can just do:
            app.UseBranchWithServices("/api",
                s =>
                {
                    s.AddTransient<IHiService, ResourceService>();
                    s.AddMvc().AddSpecificControllersOnly<MyApiController>();
                },
                a =>
                {
                    a.UseMvc();
                });

Hey Filip,
That's a great workaround. Thanks a lot.
While it solves the issue in the project itself, the integration test project (making use of TestHost) cannot resolve services correctly when using UseBranchWithServices().
There is a second git branch called unittest-problem in
https://github.com/paulvanbladel/aspnetcore-parallel-pipelines, which demonstrates the problem.
Cheers
paul.

The other scenario you have:
        [Fact]
        public void WeHaveAProblemWhenResolvingServices()
        {
            var result = _server.Host.Services.GetService(typeof(IHiService));
            Assert.NotNull(result);
        }

doesn't work by design. Each branch has its own dedicated service provider which is different from the global service provider (that the test host surfaces).

Sure, I see. Thanks a lot.

Should this solution work if the controllers are being loaded from external assemblies?

yes

I should have left an example.
I created a sample app with the following structure

The contents of the files can be seen at: https://gist.github.com/amcorch/0173b2752c97269b7366bb5c920766b7
Every request I make to http://localhost:5000/resource or http://localhost:5000/admindata results in a 404 error. I'm surely missing something obvious which is causing a problem.
Any help is appreciated.

Hi @filipw , Can I customize to have view of controller in branch?


false negative result - incorrectly states TLS version support

tlsx version:
v0.0.6

Current Behavior:

I am trying to check the version support for all my subdomains. There are few subdomains I know are running on TLS 1.1 and 1.0 but tlsx returns TLS1.2 on them when used via -sv flag.
testssl shows TLS1.0 is supported but tlsx does not.
Expected Behavior:

Minimum tls version supported should be shown correctly.
Steps To Reproduce:
NA
Anything else:

By default, tlsx displays what version is used for the connection, tls version enum can be done with -ve flag.


fix(dsl): make 'after' github context field optional

There was no default value assigned, so in fact it was required in the
JSON.

#1423
#1422
#1424  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @krzema12 and the rest of your teammates on  Graphite

Merge activity

Apr 25, 11:11 AM EDT: @krzema12 started a stack merge that includes this pull request via Graphite.


How can I remove an attribute/property?

Same question here http://stackoverflow.com/questions/28339163/how-to-remove-attribute-with-haste

Currently there isn't a library function to do this. Expect a fix in the next release. In the meantime, you can use the FFI to implement this yourself:
unsetAttr :: Elem -> PropID -> IO ()
unsetAttr = ffi "(function(e, attr) {e.removeAttribute(attr);})"

Yes I have figured it out. May I ask why isn't this feature in the library?

 It should have been there since day one.


Back/forward buttons become disabled when they shouldn't

STR:
Open a new tab
Open http://www.npr.org/
Click on a link on that page
Press back
Notice the back and forward buttons are now disabled
Click on a link again
Back and forward buttons are still disabled
Note that cmd/ctrl arrow does navigate properly, so it seems like this is a frontend issue

I think we're not updating the canGoBack and canGoForward page state frequently enough. I'll look into it.

Note that keyboard back/forward navigation isn't possible at all after https://github.com/mozilla/tofino/pull/1111 but the problem described in my previous comment still stands.


Using in conjunction with standard data-bind

Hi there,
I'm really loving this! In the past I tended to create custom bindings whenever I apply more than two or three bindings and then move them to JS that way (i.e. using ko.applyBindingsToNode).
However, I wonder if it would be at all possible to still keep using data-bind as well as data-class?  That would save you from having to keep creating new items on the binding class for trivial things like text: name.
Anyway, great plugin and thanks for sharing! :smiley:

@JD-Robbs - there is an option you can pass when installing to plugin to fall back to data-bind. It would look like:
ko.bindingProvider.instance = new ko.classBindingProvider(bindings, { fallback: true });
Hope that helps!

Oops, sorry about this - I didn't realise it was a feature already. Thanks a bunch - this is amazing! :smiley:


Inaccurate information in documentation of the conversations in v4

In the official website of botkit, In the conversation documentation thread of v4 release, there is an inaccurate information provided.  https://botkit.ai/docs/v4/conversations.html
The problem is in the example of the threads including cheese topic.
The problem :
in the documentation you see ->
let convo = new BotkitConversation(controller, 'cheese');

this code runs into an error
The solution :
convo name must be the first argument and controller the second.
let convo = new BotkitConversation('cheese', controller);

Fixed! Thanks!
-> https://github.com/howdyai/botkit/blob/main/packages/docs/conversations.md#automatically-switch-threads-using-actions


Edited google cloud introduction

Provided every information required by a beginner to get started with google cloud

@all-contributors please add @Sakura74  for doc


Stroker order has wrong color and text shadow

I think maybe it's just the first unexpanded info section, but I noticed "Stroke Order" was ugly today:

I think we need to add something like:
.item-info-injector-accordion > button {
    color: var(--ED-text);
    text-shadow: none;
}

Oh! I forgot this was added by the Stroke Order user script.
It needs to go into that stylesheet.

Actually, scratch that. It affects any scripts that add an accordion section. The fix belongs in the main stylesheet.


Closing issue #183

Closing issue #183: enable p2p discovery port to have possibility of being exposed via custom port number

Hello @skatrych This will not work and needs the client to support it and needs to be raised there. Merely altering the ports will not provide the desired functionality because the address advertised will be the original discovery port of 30303 and that is the port clients connect to.
The proper alternative is to follow this up with [AWS] (https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/1608). The intended functionality works perfectly in Azure, GCP, even locally on Minikube


Infrastructure: Kuberay API server

What is the expected behavior?
Add kuberay API server helm to quantum serverless chart.
Should be optional (with condition).
Part of https://github.com/Qiskit-Extensions/quantum-serverless/issues/55

I'll take this


Feature Request: Ability to Set Default Query on Page Load

Thank you for the great library. However, there is no easy way to set the default query when the page is first loaded with the library or a new tab is created. The only way i can see around this is to first export the view, then somehow export the controller so as to pass the default query to use to the view. Looking at the view, the query state variable is set to an empty string by default, which just like the url could have been passed from the controller and there having been read from the exported config file, or have the config dynamically set.
I am looking forward to such a feature, I am also willing to work on it if it's ok.

You can customize this by publishing the view, as described in https://github.com/mll-lab/laravel-graphiql#customization. I do not plan on adding another way to do this.