Customize console output color?

I was looking at the console logs of one of my builds recently that had KtLint errors, and at first they didn't stand out to me. I have the color option on, but noticed that when we color things, they're gray by default: https://github.com/pinterest/ktlint/blob/master/ktlint-reporter-plain/src/main/kotlin/com/pinterest/ktlint/reporter/plain/PlainReporter.kt#L56
Against a black console, this doesn't really stand out to me. Other code quality tools like Detekt will output these using a sharper color like yellow.
I'm curious if we could change the color to something that stands out a little more against a dark console, or if the output color is something that could be customized?
An example of how hard this was to read:

Comparison to Detekt:

Well it wouldn't be very plain then, would it? :)
I don't have strong feelings about this either way - you could easily write another custom reporter with nice colors, or this could be customizable...maybe by passing a color to the --color flag? e.g. ktlint --color="(255, 0, 0)" or something

I like that idea! I notice we already have a bunch of colors defined here: https://github.com/pinterest/ktlint/blob/master/ktlint-reporter-plain/src/main/kotlin/com/pinterest/ktlint/reporter/plain/internal/Color.kt
Ideally I could reference these, and maybe we can do --color="RED" and parse the color from that name. If no name is supplied, it could just default to the DARK_GRAY` we already use.
I don't know much about how KtLint works now and it may take me a while to figure out how to implement this but I will try. If anyone sees this and knows a quick way to the solution feel free to take it from me. :)

Here's my take on that: https://github.com/pinterest/ktlint/pull/585

Closed via #585


[Removal]: Blurry Chocolate Cod

Hotspot Name
Blurry Chocolate Cod
Hotspot b58 Address
112YYCyUPsAFvucBFwUff2AhEpX6VA1SzCMbK5Fu24bF9eYqa3zH
Discord Handle
No response
Hotspot Manufacturer
pantherX1
Removal Reason
Request removal, no cheating
Modifications
No
Extra forwarders
No
Extra antennas
No
Additional Information

We have taken into account this removal request in the next iteration of the denylist. It may take some time before it's processed. This is an automated comment due to the volume of addition and removal requests. A future tool is in the works to provide more insight into the analysis approach made by the Helium team and community members that maintain this list.


fix(rules/sandbox): update rule desc of "Kubernetes Client Tool Launched in Container"

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind feature

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area rules

/area registry

/area build

/area documentation

Proposed rule maturity level

Uncomment one (or more) /area <> lines (only for PRs that add or modify rules):

/area maturity-stable

/area maturity-incubating

/area maturity-sandbox

/area maturity-deprecated

What this PR does / why we need it:
Complete the cleanup for rule "Kubernetes Client Tool Launched in Container" @LucaGuerra, ty!
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: incertum, LucaGuerra
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [LucaGuerra,incertum]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 0b45e472c88d30c2bc750cff1761e2d0a07306a1


Connecting parallel searches from other sources

Experimenting with querying DbPedia (initially) and now Wikidata in parallel with the keywords entered by the user.  Could use this for search suggestions and/or autocomplete suggestions while ensuring that suggestions tie back to what is actually in the catalog

Have implemented a "related searches" feature in a blacklight-cornell instance. The search suggestions are pulled from DBpedia, Wikidata and the LoC subject heading authority. In some cases the suggestions are very good, in others confusing and not necessarily "related." Needs more review and more refinement, if possible.

The initial part of this issue has been completed as far as connecting to searches.  The second part is to connect back to searches in the catalog (and see if results are possible)

The second part is addressed in issue  #29 .


Caching bug

Observation
When the @cache directive is applied to the entire Query type, as shown in the first configuration, it doesn't enable caching for the egress requests made by the fields within the Query type. Specifically, the request made to /posts isn't cached:
type Query @cache(maxAge: 30000) {
  posts: [Post] @http(path: "/posts")
}

In contrast, applying the @cache directive directly to the posts field within the Query type, as demonstrated below, successfully caches the egress request to /posts:
type Query {
  posts: [Post] @http(path: "/posts") @cache(maxAge: 30000)
}

Expected Behavior
The expectation is that applying the @cache directive at the Query type level should enable caching for all the egress IO operations defined within the Query type, for the specified maxAge. This means that all fields under the Query type should have their responses cached, based on the maxAge value provided in the @cache directive at the type level.

/bounty 200$

May I attempt this?

@amitksingh1490 I cannot reproduce this issue. When using @cache on the entire Query type, it works as expected, writing and reading from the cache. It may be from something else from the config?

@adelinaenache Are you on latest master?

@amitksingh1490 yes I am

please check again. There is no log for cache in current version of main


@conda-forge-admin, please add bot automerge

@conda-forge-admin, please add bot automerge

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/sphinxcontrib-qthelp-feedstock#3.


Mime fix

Hi @rejas. This completes a basic filter with respect to file extensions.

Methinks this is working now.


Bouncer generates/deletes workers & routes on a loop

Hi,
I am on a paid Workers plan. I followed the setup guide last night and installed the bouncer.
If I run crowdsec-cloudflare-worker-bouncer -s, it does everything correctly. I log in, my worker is there as are all my routes.
 It's on an endless loop of creating and deleting the worker & routes.
Here's the loop from the bouncer's log — there are no errors.
time="02-05-2024 08:00:13" level=info msg="Done cleaning up existing workers" account=redacted
time="02-05-2024 07:59:48" level=info msg="Cleaning up existing workers" account=redacted
time="02-05-2024 07:59:46" level=info msg="Done creating turnstile widget" account=redacted zone=redacted
time="02-05-2024 07:59:44" level=info msg="Adding 24731 decisions" account=redacted
time="02-05-2024 07:59:44" level=info msg="Received 24731 new decisions"
time="02-05-2024 07:59:44" level=info msg="Received 3 deleted decisions"
time="02-05-2024 07:59:44" level=info msg="Done creating turnstile widget" account=redacted zone=redacted
time="02-05-2024 07:59:44" level=info msg="Creating turnstile widget" account=redacted zone=redacted
time="02-05-2024 07:59:44" level=info msg="Successfully deployed infra for all accounts"
time="02-05-2024 07:59:44" level=info msg="Successfully deployed infra for account redacted"
time="02-05-2024 07:59:44" level=info msg="Binded worker to route *redacted.com/" account=redacted zone=redacted
time="02-05-2024 07:59:40" level=info msg="Binding worker to route *redacted.com/" account=redacted zone=redacted
time="02-05-2024 07:59:38" level=info msg="Creating worker crowdsec-cloudflare-worker-bouncer" account=redacted
time="02-05-2024 07:59:37" level=info msg="Creating KVNS CROWDSECCFBOUNCERNS" account=redacted
time="02-05-2024 07:59:37" level=info msg="Done cleaning up existing workers" account=redacted
time="02-05-2024 07:59:30" level=info msg="Cleaning up existing workers" account=redacted
time="02-05-2024 07:59:29" level=info msg="Using API key auth"
time="02-05-2024 07:59:29" level=info msg="config is valid"
time="02-05-2024 07:59:29" level=info msg="Using API key auth"

Through trial and error, I learned that a zone without an A/AAAA record had to have been causing this loop. Marking as closed.


--as_gid and --as_uid arguments are not available for onevm create command

Description
The oenvm create command help shows that --as_gid and --as_uid arguments are available but they are not supported by the oned for that call.
Expected behavior
CLI help do not show incorrect information.
Details

Affected Component: CLI

Additional context
Add any other context about the problem here.

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

PRs to merge in 6.2 & master:

code
docs


[WIP] odo list component shows components running on podman

What type of PR is this:
/kind feature
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes #6297
PR acceptance criteria:

[ ] Unit test

[ ] Integration test

[ ] Documentation

How to test changes / Special notes to the reviewer:

Blocked by #6374

/override ci/prow/v4.11-integration-e2e


[BUG] It's possible to flare an empty message.

See the following flare:
https://flare.adi.so/flare/cl0p8jxij195641nvpzxpq4cnbc

Yup. Need to add a validation before posting a flare.


Feature/saves

Description

can choose, save, and delete judges
can choose, save, and delete cases

Fixes # (issue)

checkbox on chart no longer appears active when a row is selected. This issue might be obsolete when these charts switch to Ant D.
saved cases sometimes does not render correctly. May need to comment out cases.length in RenderHomePage later. Need to inspect issue further, will revisit after tables are changed to Ant D.

Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have removed unnecessary comments/console logs from my code
[x] No duplicate code left within changed files
[x] Size of pull request kept to a minimum
[x] Pull request description clearly describes changes made & motivations for said changes

Will need to remove console.logs once we're sure there's no conflict and all is good.


Fix uwsgi config

Codecov Report

Merging #3 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop       #3   +/-   ##
========================================
  Coverage    79.18%   79.18%
========================================
  Files           30       30
  Lines          418      418
  Branches        24       24
========================================
  Hits           331      331
  Misses          75       75
  Partials        12       12

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 3f801aa...b2b98de. Read the comment docs.


Setting to Disable Outline Sidebar

Search Terms
performance, outline, sidebar, settings, markdown, typescript
Suggestion
A setting to disable the sidebar outline altogether.
userSettings.outline.isDisabled = true;
workspaceSettings.outline.isDisabled = true;

Alternatively, if it could be hidden by default and the work could be deferred until the first expansion that would be satisfactory.
userSettings.outline.shouldHideByDefault = true;
workspaceSettings.outline.shouldHideByDefault = true;

Use Cases

Outline sidebar can cause UI non-responsiveness. Particularly on large markdown documents.
Personally, I dislike the visual noise so would at least like a setting to hide by default. Having to manually collapse it upon opening every window is frustrating.

Examples
The following are bugs, but represent a few reasons why a developer might want to disable the outline to improve performance. At least until a plugin's performance issues are resolved, which could be dependent on a 3rd party.

https://github.com/microsoft/TypeScript/issues/28389
https://github.com/yzhang-gh/vscode-markdown/issues/42

Checklist
My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

Right click on an explorer side bar header, then uncheck Outline:

Thank you! If this setting is not stored in settings, where is it stored?


[WIP - do not merge] Rake tasks for snapshot restore

Start snapshot
Monitor snapshot
List snapshots in bucket
Get latest snapshot
Restore a named snapshot
Monitor a restore
Switch aliases to a restored index

The ongoing snapshot process will be managed from a cron or jenkins job,
and we plan to add a jenkins job for restoring as well.
In addition to this we already have a nightly job that rebuilds the indexes,
which will be extended to clean up old snapshots.
Elasticsearch's APIs don't handle multiple snapshot/restore operations at
the same time. If we are unable to take a snapshot for this reason, we will just
let the job the fail. Snapshot freshness will be monitored by icinga.

Pairing with @jackscotti
We still need to sort out the lint and do some refactoring, but these tasks will form the core of the snapshot/restore process we're working on. @rboulton @tijmenb would appreciate any feedback you have on the work so far.

As a side note, I would like to mention the fact that we would have wanted to use the official Elasticsearch gem. It would have made code much simpler and easier to read/understand. Sadly we could not use it because of namespace clashes with the internal files of this repository.
https://github.com/elastic/elasticsearch-ruby

:point_up: I think if we do a refactor to separate out the indexing code from the search code, that would be a great time to introduce this gem. It would allow us to remove the API client class and a lot of code that interfaces with it.

Closing as we are going to continue on a new branch, picking up #573


Add Backend Route for specific Alert

Describe the task
a backend route, that given the alert id, will return all the data for that specific event
Acceptance Criteria

[ ] a backend route (api/v1/alert/) that returns a single alert json struct.
[ ] tests that verify specific routes
[ ] tests that verify the database code

PR https://github.com/bcgov/nr-rfc-alertauthoring/pull/24

this is GET only access... subsequent tickets will address post / patch


Earlier cookies causing error after git pull and make install

I had a local dev environment where had set up a user for a proofreading project. I did git pull and probably make install which I shouldn't have done (#174). Now when I try to load http://localhost:5000/ I get the following error (works fine in an incognito window):

[0] <IP_ADDRESS> - - [20/Aug/2022 17:09:54] "GET / HTTP/1.1" 500 -
[0] Traceback (most recent call last):
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask/app.py", line 2095, in __call__
[0]     return self.wsgi_app(environ, start_response)
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask/app.py", line 2080, in wsgi_app
[0]     response = self.handle_exception(e)
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask/app.py", line 2077, in wsgi_app
[0]     response = self.full_dispatch_request()
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask/app.py", line 1525, in full_dispatch_request
[0]     rv = self.handle_user_exception(e)
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask/app.py", line 1523, in full_dispatch_request
[0]     rv = self.dispatch_request()
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask/app.py", line 1509, in dispatch_request
[0]     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
[0]   File "/Users/shreevatsa/websites/ambuda-v5/ambuda/views/site.py", line 11, in index
[0]     return render_template("index.html")
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask/templating.py", line 147, in render_template
[0]     ctx.app.update_template_context(context)
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask/app.py", line 756, in update_template_context
[0]     context.update(func())
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask_login/utils.py", line 417, in _user_context_processor
[0]     return dict(current_user=_get_user())
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask_login/utils.py", line 384, in _get_user
[0]     current_app.login_manager._load_user()
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask_login/login_manager.py", line 367, in _load_user
[0]     user = self._load_user_from_remember_cookie(cookie)
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask_login/login_manager.py", line 405, in _load_user_from_remember_cookie
[0]     user_id = decode_cookie(cookie)
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask_login/utils.py", line 63, in decode_cookie
[0]     if hmac.compare_digest(_cookie_digest(payload, key=key), digest):
[0]   File "/Users/shreevatsa/websites/ambuda-v5/env/lib/python3.9/site-packages/flask_login/utils.py", line 392, in _cookie_digest
[0]     return hmac.new(key, payload.encode("utf-8"), sha512).hexdigest()
[0]   File<EMAIL_ADDRESS>line 170, in new
[0]     return HMAC(key, msg, digestmod)
[0]   File<EMAIL_ADDRESS>line 53, in __init__
[0]     raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).__name__)
[0] TypeError: key: expected bytes or bytearray, but got 'NoneType'

It works fine in an incognito window, so it's my cookie from earlier that's causing a problem. I haven't looked into whether it's just my local dev environment that's broken (is there supposed to be a SECRET_KEY in the environment?) or whether it's really possible for the right sort of cookie on the client (user) end to cause a server error.

Sorry for the rough edge here. Yes, a SECRET_KEY should be defined. #185 should fix this going forward.


Different inference results

Hi, I was testing Teachable machine on the browser and good pretty good results for a personal project. However, when downloading the generated model to Keras and using the code snippet that you provide, the inference results are totally different with the same test set. Could it be because the Keras snippet is resizing the images in a different way to the teachable machine application in the browser?  Any ideas on how to fix it?
Many thanks for your help!

Hi! We have recently updated the snippet available in Teachable Machine's Export panel to resize the images exactly how they are resized in the web app.  Check it out and see if your classification performance improves.

I reproduced the error @HalfdanJ  and @GautamBose.
I tried it with both your version and with the fixed normalization I have in Pullrequest #81
Class 2-samples (2).zip
Class 1-samples (1).zip

Teachable machine returns 49-51 Class-1 Class-2
And Keras returns [0.546911   0.45308906] - or [0.5456604  0.45433962] with the new normalization
Should I upload the model, too?

Hi! I suspect that something is causing models trained on different OS's, hardware, or browsers to behave differently. For example, when I downloaded your dataset and trained my own model, Teachable Machine gave me 78-22 Class-1 Class-2 on that test image... and keras returns [0.7885991  0.21140094], with the original normalization.
This is on MacOS 10.14.16 and Chrome 80.0.3987.116
To get to the bottom of this, what OS / browser are you using?

Mac OS 10.15.2 (19C57) and Chrome 80.0.3987.106 (64-bit)

So I have tried training it again, and I got a result of 60-40
Then I tried again because it makes sense that we have some randomness in the way you guys probably shuffle the image before training. ( I didn't look into the source code )
So the second time I got a result of 89 -11
The third time I got a 33 - 67
I used Colab for Keras, did you run it locally?
So I ran all of them in Colab and got this :

60- 40   -> [[0.831798   0.16820198]]
89- 11    -> [[0.906152   0.09384797]] (this ones good)
33 - 67  -> [[0.3598008 0.6401992]]

Colab uses : Python 3.6.9 and Ubuntu 18.04.3 LTS

Is there any solve for this problem ? How can I get better result ?

Having the same issue here, UI results are very accurate and in the form of x: 10%, y: 90% but the downloaded files using the provided code snippet for tensorflow.js are very different in the form of x: 0.47, y: 0.53 for the same test images


Type error in ClippingPolygon.equals

What happened?
The static ClippingPolygon.equals() method is typed wrong.
The parameters left and right should be typed as ClippingPolygon not Plane.
Reproduction steps

Create two ClippingPolygon
Try comparing them using ClippingPolygon.equals(left, right)
TypeScript will throw an error:

Argument of type 'ClippingPolygon' is not assignable to parameter of type 'Plane'.
Type 'ClippingPolygon' is missing the following properties from type 'Plane': normal, distance
Sandcastle example
No response
Environment
Browser: -
CesiumJS Version: 1.124.0
Operating System: -

The typing error looks uncontroversial for me, and I opened a PR at https://github.com/CesiumGS/cesium/pull/12394 to fix this.
Broader questions:

Usually, classes that have a ClassName.equals function also have a ClassName.prototype.equals function that delegates to the first one. Should this be added here as well? (I'd be in favor of "yes")
Usually, for these ClassName.equals functions, both parameters are optional. There are very few exceptions to that, and  Plane (which this equals function was copied-and-pasted from) is one of these few. For some others (like Spherical or OrientedBoundingBox), the parameters are optional, but not declared to be optional via the [brackets]. This should be made more consistent...
What is "equality"? 🙂

The last one refers to the fact that one could very reasonably expect the following to print true:
const polygonA = new Cesium.ClippingPolygon({
  positions: [
    new Cesium.Cartesian3(0, 1, 2),
    new Cesium.Cartesian3(2, 3, 4),
    new Cesium.Cartesian3(4, 5, 6),
  ]
});
const polygonB = new Cesium.ClippingPolygon({
  positions: [
    new Cesium.Cartesian3(0, 1, 2),
    new Cesium.Cartesian3(2, 3, 4),
    new Cesium.Cartesian3(4, 5, 6),
  ]
});
console.log(Cesium.ClippingPolygon.equals(polygonA, polygonB));

But it prints false, because it is comparing arrays via ===. I'd consider to 1. fix this, and 2. add an equalsEpsilon function, like it is done in similar classes...


Build and train a transformer-based model for prediction of MSMS spectra

Adapt the transformer model in aiproteomics.rt.models.transformer_rt to make it predict MSMS spectra for non-phosphorylated peptides.
It might make sense to start by training with the prosit fragmentation data (but other approaches are fine).

This was fixed already by the addition of the model in frag.models.transformer_frag


Updating PMU test files

Codecov Report

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

@@           Coverage Diff           @@
##           master     #113   +/-   ##
=======================================
  Coverage   69.83%   69.83%
=======================================
  Files          80       80
  Lines        5583     5583
=======================================
  Hits         3899     3899
  Misses       1684     1684

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 9678ad9...ab77a78. Read the comment docs.


Fixes hasProperty returning true even when there's an empty getter.

Fixes: https://github.com/facebook/react-native/issues/14810
Problem described in more detail here: https://stackoverflow.com/questions/43967489/could-not-get-unknown-property-repositoryurl-for-project

Closing because no reviewers have been found is not a good reason to close this.


I dont know want to do with this kind of notification

Type: Bug
I got the notification of this when i click on it . It took me to running Extension file and there few extensions like "Microsoft edge" and " Live server" showing Unresponsible please help we what should I do with this kind of notification and erro
Extension version: 2.1.1
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Intel(R) Pentium(R) 3558U @ 1.70GHz (2 x 1696)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: disabled_offopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
undefined

Memory (System)
3.91GB (0.92GB free)

Process Argv
--crash-reporter-id 028f39b7-1392-456c-a832-2d851bbb4fcf

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
i497e931:30553904
vsccc:30566497
pyindex848:30577860
nodejswelcome1:30587005
fc301958:30573243

Thanks for this issue. Unfortunately, I'm having a hard time understanding what the problem is exactly.
Could you please provide more detailed information for the team to repro this?
What would help is a detailed set of steps that you took, that led to the notification.
And also a screenshot of the notification itself.
Thanks.

Not applicable


Lists 'Favourited by' and 'Rebooted by" returns only first 10 accounts

Lists 'Favourited by' and 'Rebooted by" returns only first 10 accounts and when we scroll then the same accounts are added at the end.
Pixelfed issue: https://github.com/pixelfed/pixelfed/issues/4182

For now workaround has been implemented and we always show first 40 accounts ("Followed by" or "Rebooted by").


Scrolling does hide input and send button partially

Hello,
since iOS 8.1.1 the input field and the send button get hidden after i scroll up having the keyboard open.
Do you have any idea what it might be or what I could do? Is this known bug?
I'm using the latest version of pod.. (Not the development branch)
Thank you very much

Hey @paatz04 - I noticed this behavior tonight, though not as you describe it.
My findings:

begin dragging toolbar
drag up and down rapidly
animations get glitchy, toolbar sometimes partially/completely hides behind keyboard (as pictured above)

@jessesquires I'm working on replacing current implementation with inputAccessoryView. As of now, It works great for iOS7 and there is a minor animation curve difference between keyboard animation and scroll view animation (setting both insets and content offset). So I guess it will solve this bug. What do you say?

@anilanar - I'd love to see it!

@jessesquires Currently I've accomplished docking a toolbar with a growing UITextView on top of the keyboard using inputAccessoryView and UIScrollViewKeyboardDismissModeInteractive for a typical UICollectionView without using a pan gesture recognizer, handling all discrepancies between iOS7 and iOS8, orientations and hardware keyboard.
I assume that it will be very easy to integrate it with JSQMessagesViewController, probably fixing #763, #558, #405 and many others related to keyboard frame change animations. I'm working on it so I'll let you know soon.

@jessesquires I have integrated it with JSQMessagesViewController. However, there are a few restrictions:

A height constraint must be used for input toolbar for iOS 8 because superview of inputAccessoryView (some private API class) uses AutoLayout and modifying the frame manually breaks things. Currently there is a height constraint already so I guess this is OK.

Input toolbar is an inputAccessoryView of the collection view. For input toolbar to be visible, either the collection view or a subview of input toolbar must be the first responder. For example, using an UIActionSheet breaks this mechanism as it steals first responder status from them. This can be circumvented by using a custom UIActionSheet. I don't know what other cases can be a problem with this restriction.

For iOS7: when a navigation controller is used and if another view controller is pushed and popped back, input text view will resign first responder status even if it was the first responder pushing another view controller.

I will try to publish a proof of concept in a few days.

Here we go: https://github.com/anilanar/MessagesTableViewController/commit/979e996cd7d2138f1101ded3322ca25f9c3c5495
I didn't test it for iOS7.0. It seems to work OK with 7.1 and 8.1.
It probably won't look good with iPad undocking and keyboard splitting in its current state but they are fixable.
Just check the new keyboard controller and see how unpredictable iOS keyboard events are (hardware keyboard, rotations, input view accessory size changes etc.). There are some basic rules but for some cases, they are broken beyond imagination.

@jessesquires Have you checked it yet? If you like the idea of inputAccessoryView way, I can work on it as I have free time nowadays.

@anilanar - not yet, but I'll try to get to it this week!

@jessesquires: Hi Jesse, I noticed that you have UIScrollViewKeyboardDismissModeNone in JSQMessagesCollectionView. Isn't it redundant and probably also cause of this keyboard troubles? - you manage keyboard frame in your custom JSQMessagesKeyboardController. I tried removing it in your demo and it works like a charm.

@jardamach - awesome! thanks.
sounds like UIScrollViewKeyboardDismissModeInteractive was a mistake. does removing that resolve this issue?

@jessesquires I believe so. And also I think that in observeValueForKeyPath inside JSQMessagesKeyboardController you should convert newKeyboardFrame to contextView coordinate system ->
CGRect keyboardEndFrameConverted = [self.contextView convertRect:newKeyboardFrame fromView:nil];
and send keyboardEndFrameConverted instead of newKeyboardFrame - like this:
[self jsq_notifyKeyboardFrameNotificationForFrame:keyboardEndFrameConverted];
Because for example in jsq_handleKeyboardNotification you are converting this rect but inside observeValueForKeyPath you don't -> There may be layout problems if the contextRect has origin different than CGPointZero.

Thanks @jardamach ! Super helpful info.
Much of this changed (broke) going from iOS 7 to iOS 8

fixed in 97bfef2
still investing @jardamach's comment above on frames

Updating -[JSQMessagesKeyboardController observeValueForKeyPath:...]
breaks iOS7
The steps to reproduce are as follows (iPad iOS 7.1.2):

enable "load extra messages" option in settings
go to chat
rotate to landscape
tap on input
slowly drag collection view until input text view disappears
release your finger, keyboard should jump back to original position

Result: keyboard is presented, but input toolbar is not visible
I believe I've seen this scenario in some issue's discussion, but can't find which one
On iOS8 things are even worse in this scenario:
during slow dragging keyboard with toolbar can suddenly jump to half-visible position and
remain at it until input loses focus.
Reverting mentioned change fixes iOS7 case, but nothing changes on iOS8.
I'm investigating iOS8 case further

The frame is observed on the keyboardView so the rect is in its superview coordinate space (unlike frames from keyboard notifications which are in window's),
so I suppose it'd be correct to replace
CGRect keyboardEndFrameConverted = [self.contextView convertRect:newKeyboardFrame fromView:nil];

with this:
CGRect keyboardEndFrameConverted = [self.contextView convertRect:newKeyboardFrame fromView:self.keyboardView.superview];

Arh, didn't notice this problem happening on iPad iOS7.1.2. Sorry about that. @erysaj's solution fixes the problem.
however, I was unable to reproduce iOS8 scenario. Everything worked fine on the current version. I just experienced some issues with media cell.

I happened to check on a device with pretty old version - 8.0
as a result +[UIDevice jsq_isCurrentDeviceBeforeiOS8] worked incorrectly - it compares
current version to @"8.0.0" so the window height was determined as if it is iOS7 and caused a mess.

thanks @erysaj and @jardamach ! :+1:
re-opened this issue and tagged it for the 7.0.1 milestone


Updating to final Susy 2.2 release.

Changes

Update dependency to use final Susy 2.2 release. :nail_care:

For review: @DoSomething/front-end

looks good to me :100:

:+1:

official!


ui.cc: use struct to store lead status

Your new struct is just a subset of the existing LeadData struct from capnp. Can we just use the one from capnp?

save reader to UIScene for better performance.
from the document of capnproto:

Here are some tips for using the C++ Cap’n Proto runtime most effectively:
Accessor methods for primitive (non-pointer) fields are fast and inline. They should be just as fast as accessing a struct field through a pointer.
Accessor methods for pointer fields, on the other hand, are not inline, as they need to validate the pointer. If you intend to access the same pointer multiple times, it is a good idea to save the value to a local variable to avoid repeating this work.

Example:

// BAD
frob(foo.getBar().getBaz(),
     foo.getBar().getQux(),
     foo.getBar().getCorge());

// GOOD
auto bar = foo.getBar();
frob(bar.getBaz(), bar.getQux(), bar.getCorge());


Consider Repackaging SDK Classes

What is your feature request?
Currently the SDK public APIs, as well as SDK internal implementation details, are not clearly disambiguated in the package structure of the SDK.  This is a feature request to make that more clear.
It could be implemented by moving the public APIs to their own package (e.g. .api) or moving the internal APIs to their own package (e.g. .internal).
Using the .internal approach is more likely to be able to avoid breaking changes to SDK consumers.
How would this feature help you?
As an SDK maintainer, it will be much more clear what changes would be a breaking API for SDK clients.  We could also choose to apply ProGuard to the non-public package when publishing, further obfuscating it so that it isn't readily visible to touch.
As an SDK consumer, it will be much more clear what is the actual surface area of the SDK.

I'd like to pair up with you to know which are the public APIs you are referring and also evaluating making those changes in the iOS SDK too if applicable

Looking forward to collaborating.
To make the idea more clear, this is an example using the entry point to the SDK: Synchronizer is an interface and SdkSynchronizer is the default implementation of that interface. Both are public and in the same package.  A top level function is used as the factory to create SdkSynchronizer and this function lives in the SdkSynchronizer.kt file.
One possible refactoring of this:

Keep Synchronizer where it is
Move SdkSynchronizer to a .internal package to make it more clearly non-public
Add a Companion object to Synchronizer with a factory function, like new or default

Clients would then call Synchronizer.new().
The public API now lives in Synchronizer, and both maintainers and consumers have a much clearer idea as to the public API contract.
This would be a breaking API change.  There are some things we can do, such as keeping the existing top level initializer and marking it as deprecated during a migration period.
This is just one example, and we'll need to work through the public API surface area on both platforms to identify what other APIs we should consider doing this for.

I think these two components. will actually be used in the next app.  so they might stay where they are
cash.z.ecc.android.sdk.type.UnifiedAddressAccount
cash.z.ecc.android.sdk.type.UnifiedAddress

I see the rest being fine. Nobody actually used the compact block processor on it's own so I think it's fair to actually make it an internal component


fix NewArm64 ins jump lost

When Arm64Mnemonic.B:  but  this jump is in method range  just goto this branch

There's way too many changes here, I can't merge this.

Sorry， it's my test bransh to codegen arm64 to C# Code。  it's don't need to merge

〃恋嗳插曲♂
@.***

------------------ 原始邮件 ------------------
发件人: "Sam @.>;
发送时间: 2024年9月24日(星期二) 晚上9:10
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [SamboyCoding/Cpp2IL] fix NewArm64 ins jump lost (PR #314)
There's way too many changes here, I can't merge this.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


Added call to lodash noConflict.

@dcneiner @rniemeyer Wouldn't mind a second pair of eyes, regardless of how small the change is here. :)

Looks good to me @ifandelse


Support for local-tar basebackups of replicas with 9.6+ and pgespresso

As a general comment we need documentation for the fact that this requires a non-replication connection. (our current documentation seems to omit talking about this completely afaik)

Some documentation comments but the code itself looks fine. (though green travis tests would be great)

Updated documentation a bit and added a couple of commits to fix issues in Travis tests.


Please mark tags with alpha/beta/stable and provide install instructions, specific to php, Laravel, etc.

Hello,
Earlier, I somehow managed to install HashtagCMS on php 7.4.27. Initially it threw errors because a few columns in tables were missing, like site_id in categories (not in categories_sites), etc. After I manually created them, it began to work. Going through different areas in Admin, I was logged out as the plug-in in my browser logged me out. Thereafter, I had difficulties to login. I found that sessions in file works and not in the database.
I removed this installation and tried to install it once again. I could not. Then I tried to install on php 8.0. It installed with Laravel Framework 8.77. I could login in admin. Clicking on each menu, more than half of the links gave error. See my first parallel issue (open). Afterwards, I tried to install them on both php platform. I received disappointing results. What worked did not work.
I have realized that this is because composer had installed different packages during the installs, while I have followed install instruction published by you.
In a nutshell, I found that the Readme.md file you have published was very old and did not match with the recent Laravel Framework. Earlier, HashtagCMS versions used illuminate modules. Recent version does not and Laravel Framework is automatically installed.
I find the HashtagCMS  is a powerful script but difficult to use because specific and clear install instructions are missing.
Thus, I suggest:

Please mark tags of HashtagCMS with alpha, beta and stable for others to identify, which version to use it for install.

Please give clear instructions on fundamental requirements in relation to php, Laravel, etc.  For e.g. install instructions on:

php 7.4.27 plus HashtagCMS 1.3.0,

php 8.0+ plus HashtagCMS 1.3.0

which Laravel version should be installed with php versions above

Only these minor things are missing. In absence of above clear instructions, it becomes very difficult for others to use the HashtagCMS.

Thank you for using this. I will surely keep this in mind for my future upgrade. Will provide clear instructions.  All changes are reflected in changelog.md
Please try to use v3.0.  If you are upgrading from 1.2.9 it's breaking changes.

php artisan optimize:clear
php artisan migrate
chmod -R 0777 storage
chmod -R 0777 bootstrap/cache
Replace fe/basic/_layout/index.blade.php form vendor/marghoobsuleman/hashtagcms/resources/views/fe/basic/layout/index.blade.php
php artisan vendor:publish
hashtagcms.assets
hashtagcms.views.all
hashtagcms.config

Hello Marghoob,
I did a fresh install of Laravel and HashtagCMS 1.3. Then I applied the changes as mentioned in the issue https://github.com/marghoobsuleman/hashtagcms/issues/17
Everything is working fine as expected.
From all the software I have installed for testing purposes, HashtagCMS is amongst them extremely clever. It is just amazing because of its fundamental logic. You have designed the basics to exploit the power of many Laravel bundles in its maximum!
Many sincere thanks. I really appreciate your work and support.
Yes, please close this issue.

I simply deleted /xxx/public_html/hashtagcms/storage/framework/sessions/* and everythng began to work fine with the new default database.
May be i should import  the old database and see if this error is there (with sessions cleared).
Will report here.


I lost my head 😱 (head isn't rendering)

For every player skin, the head part isn't rendering AT ALL, causing this funny effect :

France in 1798...
Here's my logs, every mod should be up to date (maybe not the ones that are from CF)
latest.log

Hm second report so far. Haven't been able to determine what exactly is causing that(which other mod).

Binary searching time so 👀
I'll let you know if I find anything 👍
(Also I didn't have this issue before)

The odd thing is, the update didn't change anything about the head logic. So no clue why it suddenly is an issue.

Ok it's not a mod thing, even tho I saw a little problem with cosmetica hats, nothing too complicated
Basically, on servers with a RP, the head disapears after loading the RP, which wasn't the case before
More related to the recent update, with a cosmetica hat on, we can see the hat on our head, but moving wrongly in 1st person :
https://youtu.be/qZop_9ipVf0

Hm, that hat/helmet should not be visible at all. This is most likely a bug from cosmeticas end(ignoring the fabric api/player feature renderers/head position).
The other person also had the issue with some server RP, but I'm not sure how that could be connected(maybe some custom shader logic inside the RP?).

The server's RP is hosted on https://download.mc-packs.net/pack/1dbd40d0a3306ad8f1aa9acf640595bb649f7fbe.zip
Also I'll try to figure out if Wynncraft have any shader on too

With that resource pack loaded, still not having this issue(also putting stuff into the headslot).

Update: Figured it out. The latest version of Essential is incompatible.

The lack of head was just an incompat with TooManyPlayers, now gotta check for th cosmetica issue 👌


Service incorrectly appearing in every list of calls

I'm running network-mapper 1.0.4 and am seeing a service incorrectly in the list of calls for every service listed.  E.g.
zookeeper in namespace kafka calls:
  - unused-service in namespace example
  - zookeeper in namespace kafka
kafka in namespace kafka calls:
  - unused-service in namespace example
  - zookeeper in namespace kafka
prometheus in namespace monitoring calls:
  - unused-service in namespace example
  - kafka in namespace kafka
  - zookeeper in namespace kafka

In the example above, there should be no calls from zookeeper or kafka to unused-service.  Is there a way to drill down and determine why a certain service appears in the call list?

Hey @abohne!
Without any further configuration, the network mapper uses DNS traffic and /proc/net entries to determine connections between pods and pods, as well as pods and services.
There are various situations where pod IP addresses can be re-used, in particular on AWS EKS. In practice, the network mapper has mitigations that deal with these cases, comparing the hostname of the pod that is reported from the control plane with the hostname seen in /proc on the node by the network sniffer pods. This is just an example and I don't believe this is what's happening in your case.
To understand this better, could you share some more information? In particular:

A set of Kubernetes YAMLs that result in this situation, if you have them. Is the example in the issue a synthetic deployment you created to reproduce this problem, or is it part of a larger deployment that exhibits the problem?
Are there constantly pods and services going up and down in this deployment, or is it largely static? This can help understand if the network mapper is misresolving pods or services because of stale cache entries, or because of another issue. A static deployment strongly suggests that it's unrelated to the cache.
Which Kubernetes distribution are you using? Such as which cloud provider, or if it's self-managed Kubernetes, which flavor.
Which CNI are you using and which version?

If you are not sure how to answer some of these questions, happy to chat on Slack (join us at https://joinslack.otterize.com) or hop on a short Zoom to find the answers together. :)

Hey @abohne, checking again if you can provide some more details :)

Thanks for getting back to me @orishoshan.  Suggestion 2 ended up being very helpful.    I ended up telling istio to exclude that namespace, reset the network mapper state, and let things run for a while.  The problematic service doesn't show up anymore.
FWIW, we're running EKS with AWS VPC CNI and istio CNI chained.

That is a significant hint! That shouldn't happen no matter what was happening, but we'll try and reproduce this with Istio and look into whether the Istio network mapping is susceptible to this kind of misresolving.

To provide some more context, we weren't actually using the istio mapping component.  The pods that were flapping were also not in the same namespace as the bogus service we were seeing.

I see. Was the bogus service part of the service mesh? Meaning, did it have a sidecar?

Yes, the bogus service was part of the service mesh.

Thanks @abohne! This helps a lot. We'll try and reproduce it using a similar scenario and Istio. Have you experienced this again since then?

I haven't seen the issue reappear since I fixed the flapping service.


BUG: nextTick scheduler throwing when calling setImmediate in Chrome

Looks like an oversight on my part. Here is a JSBin demoing the broken behavior.

It's still a problem. :\

Is it repro on all chrome instances? I've able to repro with attached JSBin onetime, and following attempt does not shows same results.

@kwonoj I've got it fixed now. I could reproduce it in JSBin. It was a silly mistake. All better now.


Not able to add a project to an api token

Describe the bug
Hello,
We are trying to add another project to an api token, here is what the plan looks like:
  # unleash_api_token.ax_frontend_token will be updated in-place
  ~ resource "unleash_api_token" "ax_frontend_token" {
      ~ project     = "ax-aut-routeco, xxx, xxx, ..." -> (known after apply)
      ~ projects    = [
          + "ax-auth_poc",
            # (15 unchanged elements hidden)
        ]
      ~ secret      = (sensitive value)
        # (4 unchanged attributes hidden)
    }

And we get this error:
╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to unleash_api_token.ax_client_token, provider "provider[\"registry.terraform.io/unleash/unleash\"]" produced an unexpected new value: .projects: planned set element
│ cty.StringVal("ax-auth_poc") does not correlate with any element in actual.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵

To workaround this, we deleted the API token in the UI to then recreate it using Terraform and got this error:
╷
│ Error: Request cancelled
│
│ The plugin6.(*GRPCProvider).ReadResource request was cancelled.
╵
╷
│ Error: Request cancelled
│
│ The plugin6.(*GRPCProvider).ReadResource request was cancelled.
╵
╷
│ Error: Request cancelled
│
│ The plugin6.(*GRPCProvider).ReadResource request was cancelled.
╵
╷
│ Error: Request cancelled
│
│ The plugin6.(*GRPCProvider).ReadResource request was cancelled.
╵

Stack trace from the terraform-provider-unleash_v1.1.0 plugin:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1408665]

goroutine 127 [running]:
github.com/Unleash/terraform-provider-unleash/internal/provider.(*apiTokenResource).Read(0xc0002a0068, {0x1944038, 0xc000896c60}, {{{{0x19475c0, 0xc000613680}, {0x1737d00, 0xc0006131a0}}, {0x1948700, 0xc000136050}}, 0xc0002a0078, ...}, ...)
	github.com/Unleash/terraform-provider-unleash/internal/provider/api_token_resource.go:215 +0x325
github.com/hashicorp/terraform-plugin-framework/internal/fwserver.(*Server).ReadResource(0xc00021d600, {0x1944038, 0xc000896c60}, 0xc000897020, 0xc0003635f8)
	github.com/hashicorp/terraform-plugin-framework@v1.4.2/internal/fwserver/server_readresource.go:101 +0x60e
github.com/hashicorp/terraform-plugin-framework/internal/proto6server.(*Server).ReadResource(0xc00021d600, {0x1944038?, 0xc000896450?}, 0xc000815000)
	github.com/hashicorp/terraform-plugin-framework@v1.4.2/internal/proto6server/server_readresource.go:55 +0x27b
github.com/hashicorp/terraform-plugin-go/tfprotov6/tf6server.(*server).ReadResource(0xc00023b220, {0x1944038?, 0xc00061bb00?}, 0xc0005ace40)
	github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/tf6server/server.go:787 +0x49e
github.com/hashicorp/terraform-plugin-go/tfprotov6/internal/tfplugin6._Provider_ReadResource_Handler({0x17f1200?, 0xc00023b220}, {0x1944038, 0xc00061bb00}, 0xc0001a6150, 0x0)
	github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov6/internal/tfplugin6/tfplugin6_grpc.pb.go:431 +0x170
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0003201e0, {0x1947778, 0xc000294680}, 0xc0007a0900, 0xc0003f41b0, 0x1de3d68, 0x0)
	google.golang.org/grpc@v1.57.1/server.go:1358 +0xe13
google.golang.org/grpc.(*Server).handleStream(0xc0003201e0, {0x1947778, 0xc000294680}, 0xc0007a0900, 0x0)
	google.golang.org/grpc@v1.57.1/server.go:1735 +0xa1b
google.golang.org/grpc.(*Server).serveStreams.func1.1()
	google.golang.org/grpc@v1.57.1/server.go:970 +0xca
created by google.golang.org/grpc.(*Server).serveStreams.func1
	google.golang.org/grpc@v1.57.1/server.go:981 +0x15c

Error: The terraform-provider-unleash_v1.1.0 plugin crashed!

This is always indicative of a bug within the plugin. It would be immensely
helpful if you could report the crash with the plugin's maintainers so that it
can be fixed. The output above should help diagnose the issue.

Removing the api token from the Terraform state solved it, we were able to recreate it.
Steps to reproduce the bug
No response
Expected behavior
We are expecting to be able to add a project to an api token.
Logs, error output, etc.
No response
Screenshots
No response
Additional context
No response
Unleash version
v1.1.0
Subscription type
None
Hosting type
None
SDK information (language and version)
No response

Hi there, thanks for providing this.
API tokens in Unleash are mostly immutable. Its only the expiry data that can be updated after they are created.
The error produced is not very useful though, and the provider should handle this better.


Example docker

why'd you close it @creactiviti ?

My bad. It was an accident. Can I reopen @acao ?


Environment variables not working in Netlify output

Jeff-Chew created the following on Sep 16:

Detailed description
Even if environment variables are set in the Netlfiy configuration, they are not being picked up in the Storybook output.
Steps to reproduce the issue

Go to https://deploy-preview-78--ibmdotcom-patterns-react-experimental.netlify.com
See that experimental feature LeadSpace is not visible even though LEADSPACE variable is set to true

Additional information

Log into Netlify using ibmdotcom-bot
Settings for patterns-react in: https://app.netlify.com/sites/ibmdotcom-patterns-react-experimental/settings/deploys#continuous-deployment

Original issue: https://github.ibm.com/webstandards/digital-design/issues/1703

On Sep 16, Jeff-Chew commented:
Fix has been applied, the environment variables have to be set a certain way for Storybook to pick up. Documentation has been added here:
https://ibm.ent.box.com/notes/497580921328


Highlight selected building

For both circle and boudling footprint, add a 3px #000 stroke to the shape for selected building:

Needs to track selection on zoom change back and forth between circles and footprints.

I've got a solution in place, that hooks into the existing render to re-render the highlights when crossing the zoom threshold.
Despite that, it's pretty hacky. I'm definitely not fetching the footprint geojson per Backbone conventions. That said, doing so would be very time consuming, and it's not clear that its worth it. Especially given the aging infrastructure here per #63

Even in the current setup a building can have multiple footprints, which we need to handle from the GeoJSON response
An example is THE PITTSBURGH, 117 JOHN ST Seattle, WA 98109

https://greeninfo-network.github.io/seattle-building-dashboard/#seattle/2021?layer=total_ghg_emissions&sort=total_ghg_emissions&order=desc&lat=47.61960&lng=-122.35423&zoom=19&building=28006
Seems to work as expected. Can we close this out?

Done and deployed


mdd data access?

if the output of a lookup made in a mdx file is something like that (a link) :
@@@LINK=みち【道・路・途】

how should we lookup the actual content in the mdd file?
is there any function to do so?

As far as I know, you should find the word at mdx file, as your example, you may handle the link word 'みち【道・路・途】' as a key word to find in mdx file.
| |
ChenQuan
|
|
@.***
|
---- Replied Message ----
| From | @.> |
| Date | 12/27/2024 12:01 |
| To | dictlab/mdict-cpp @.> |
| Cc | Subscribed @.***> |
| Subject | [dictlab/mdict-cpp] mdd data access? (Issue #13) |
if the output of a lookup made in a mdx file is something like that (a link) :
@@@LINK=みち【道・路・途】
how should we lookup the actual content in the mdd file?
is there any function to do so?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

you're right, i should pass that same string to the lookup function again, but without the "@@@LINK="
thanks!


Share cookie/state between two browsers running same dev server

Examples bug report
Example name
with-redux
Describe the bug
On login, the API returns an access token and access token saved in cookie to use from with-redux-store.js to load initial redux state from API using that token.
I am getting an issue that sometimes two open browsers mix the cookie and redux states.
Example, two different user logged-in from Chrome and Safari and has a different token set as cookie and getting the token from appContext.ctx.req.headers.cookie in with-redux-store.js, but the Safari sometimes returns the cookie set in Chrome and vice-versa.
I believe am missing something or doing something wrong but can't figure out exactly what's wrong there and anything I should aware of?
Expected behavior
Cookie should be different for the different browser.
System information

OS: macOS
Browser: Chrome, Safari
Version of Next.js: 7.0.2

Next.js doesn't handle cookies, neither does the redux example, so I'm not sure how to help here.

Getting same issue: next js sharing cookie with different browser.

I was actually doing it wrong and I believe you too. I am not sure whey states shared between browsers (didn't dig deeper) but got it working as expected.
What is doing now is get the access token from the cookie on server render and there a function responsible for fetching the initial states/data or undefined.
// Get initial state from the cookie.
const stateFromCookie = await initialStateFromCookie(
    appContext.ctx.req && appContext.ctx.req.headers.cookie,
    appContext.ctx.res,
 );

const reduxStore = getOrCreateStore(stateFromCookie);

Here initialStateFromCookie function fetches initial data from the server if valid cookie found or return undefined and in that case, redux create a store with reducers initial data.


error in postgresql_tabular description.js

the code is not executing from this line..dont know whats wrong..can you please help
module.exports = {
name: 'PostgreSQL tabular',
isPostgreSQL: true,
server: {},
singleWriteQuery : "",
startup: function (host, cb) {
var insertColumns = ['id'];
var binds = [];

Hi,
are you getting any error message or other output?

I got it sorted thank you. Just one more question..can I get the sample dataset for mysql? I'm trying to migrate it from postgres to mysql but having difficulty .

also, I'm having issues running neighbours and neighbours2 queries...it doesn't return any data


Feature/multi run

This pull request adds the ability to run workloads over a cartesian product of workload parameters.

Ideally #22 would get included in here, but it's such a large scope on its own that I'm gonna go ahead and close this out.

Codecov Report

Merging #21 into develop will increase coverage by 37.03%.
The diff coverage is 96.92%.

@@             Coverage Diff              @@
##           develop      #21       +/-   ##
============================================
+ Coverage    51.42%   88.46%   +37.03%
============================================
  Files           12       14        +2
  Lines          140      182       +42
  Branches         0        2        +2
============================================
+ Hits            72      161       +89
+ Misses          68       21       -47

Impacted Files
Coverage Δ

...la/com/ibm/sparktc/sparkbench/cli/CLIKickoff.scala
0% <ø> (ø)
:arrow_up:

...arkbench/workload/mlworkloads/KMeansWorkload.scala
81.57% <0%> (+60.52%)
:arrow_up:

...com/ibm/sparktc/sparkbench/workload/Workload.scala
100% <100%> (+100%)
:arrow_up:

...m/sparktc/sparkbench/workload/WorkloadConfig.scala
100% <100%> (ø)

...rkbench/datageneration/DataGenerationKickoff.scala
100% <100%> (+100%)
:arrow_up:

.../sparktc/sparkbench/workload/WorkloadKickoff.scala
100% <100%> (+100%)
:arrow_up:

...la/com/ibm/sparktc/sparkbench/cli/ArgsParser.scala
100% <100%> (+57.14%)
:arrow_up:

...rktc/sparkbench/datageneration/DataGenerator.scala
100% <100%> (ø)
:arrow_up:

...arktc/sparkbench/workload/WorkloadConfigRoot.scala
100% <100%> (ø)

...a/com/ibm/sparktc/sparkbench/cli/ScallopArgs.scala
100% <100%> (ø)
:arrow_up:

... and 6 more

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 939ad73...bd4dc2b. Read the comment docs.


Adding hosts via private networks leaves host without any public IP registerd

When setting host registration to use the private network the new host is added correctly however the only IP address that gets registered is the private IP of the host. Then when adding a balanced service the load balancer is configured on the private ip and so you can never get to the service.
New hosts should try and be intelligent with their IP reporting. Typically eth0 is the public interface, or there should be a way to specify the IP address of a host.

Note this is mostly a UI issue in that when you create a host using the EC2 api or DO api for example I don't want to have to login to those accounts to work out how to access my containers

This also causes things like viewing container logs and executing console on hosts doesn't work

@haswalt thanks for the feedback. Wi'll look into all the issues you mentioned, but want to start with the last one first: I'm surprised that this causes logs and exec not to work. Do you have behind a elastic load balancer or any other proxy?
Next, we do have a way to allow you to explicit set a host's IP, but it's only available when you add a custom host and execute the docker run ... rancher/agent command on the host yourself. When you do that, you can add -e CATTLE_AGENT_IP=<desired ip>.
Next, I don't have a great answer for your balanced service problem. Will need to investigate it a little more.
Can you share the version of Rancher that are you using? If you inspect the rancher/server container, you'll see an environment called CATTLE_RANCHER_SERVER_IMAGE that has that information.

I'm currently using v0.31.0-rc3.
There is no load balancer or proxy in front of the instances. Hosts talked to the server via the private network. The websocket proxy is also running over the private network as well.
I get no error messages or log output when attempting to connect to the container console or get logs.
If I change the CATTLE_AGENT_IP won't that mean that the host won't communicate over the private network?
In my setup in attempting to get all orchestration traffic to run over the private network (99% works) and only expose the public network to incoming container traffic such as web.

I've just found the issue for the connecting to the console and it is related. Basically because the host gets configured with the private ip the browser then attempts to use the private ip for the web socket connection which it can access. I'd expect some way to allow rancher to handle public traffic and let orchestration between host and server to go over the private network

A couple things don't line up here.  I'll investigate further.  The IP of the host is used only to setup the private network and nothing else.
The console/logs go directly to the server now.  In the past the web browser would connect to the host but that is no longer the case.  You web browser needs to talk to the rancher/server and nothing else.
When we bind a load balancer to the host we actually don't bind it to a specific IP.  It is essentially all IPs.  In the case of EC2 the load balancer will be available on your EIP if you have your security groups setup.  If you create a host through the UI unfortunately the default behavior of Docker Machine is to not open any ports except those needed by Docker.

@ibuildthecloud So here is some more information:
I added the hosts manually and I started the agent with this command:
docker run -d --privileged -e CATTLE_AGENT_IP=<IP_ADDRESS> -v /var/run/docker.sock:/var/run/docker.sock rancher/agent:v0.7.11 http://<IP_ADDRESS>/v1/scripts/3329F2900677B4EC9733:1438534800000:nMBfjQpEeEIWsYSWoL1YLhPMQmo

So you can see that the CATTLE_AGENT_IP is set to the public IP of host and the private IP address is used to connect tot he server.
If I try to view container logs in the browser for a container running on this host I see the following in the browser:
Socket connect 3 to ws://<IP_ADDRESS>:9000/v1/stats/9e9e74bc3e2411a4b848f5f6cba20ecd041745a186b11b696ede2ec817f95f19...

Of course that fails as the private IP can't be accessed over the WAN.

Currently use:
Component	Version
Rancher	v0.32.0
Cattle	v0.75.0
User Interface	v0.40.0
Rancher Compose	beta/latest

@haswalt Did you install rancher using our simple single-node setup or do you have a multi-node setup? "Node" in this case refers to instances of rancher/server.
Also, I see that in your docker run, the connection URL is http://<IP_ADDRESS>/v1, with no port and in the socket connect error, it is ws://<IP_ADDRESS>:9000/v1/, with port 9000. So, what do you have running on port 9000 and where did you configuring that?
I'm going to take a guess and say that you followed this multinode setup:
http://docs.rancher.com/rancher/installing-rancher/installing-server/multi-nodes/
and set ...-e CATTLE_HOST_API_PROXY_HOST="<IP_ADDRESS>:9000" ... is that right?

@cjellick Your guess is correct, and yes the CATTLE_HOST_API_PROXY_HOST is set with the port number. Everything works as expected that i can see except for the viewing of logs and stats for hosts and containers due to the proxy connecting issue above

@haswalt The IP you configure for the websocket proxy needs to be accessible from your browser and from the hosts. The hosts make outbound connections to it and browsers connect directly to it as well.
So, CATTLE_HOST_API_PROXY_HOST for rancher/server would need to have the public IP of the server running the websocket proxy and the websocket proxy's -listen-address=<ip:port> param would need to be <IP_ADDRESS>:9000.

@cjellick Thanks for the tip. Maybe worth adding some hinst about these environment settings and how they should be configured to make it clearer for others trying the same setup as me

We've added more docs to make it clearer. https://github.com/rancher/rancher.github.io/pull/79


Dialog sizing issue on some Linux desktop environments

I've upgraded from 1.7.1 to 1.8.0 and see the following when trying to create new wallet:

The only message I see in the console is the following:
(Sparrow:6487): Gdk-WARNING **: 17:27:07.369: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.
When reverting back to 1.7.1 everything works well.
OS: Debian GNU/Linux trixie/sid x86_64
Kernel: 6.5.0-3-amd64
DE: GNOME 44.5

Can you try v1.7.9?

Just tried 1.7.9. There's no such issue there.

Ok - the only change I can think of that would affect this is setting the ownership of the dialogs you are using (https://github.com/sparrowwallet/sparrow/commit/31539a27ac7bf3548d529bf6b9ff61ef5503c210). Looks like a GNOME bug tbh, since there should be no problem with doing this. I have tested it without issues on Ubuntu and Debian 11.3.

hi, same error after upgrade sparrow wallet

Just tried 1.7.9. There's no such issue there.

i can confirm, on this version, all work as expected.

Any errors in sparrow.log? See Help menu

2023-11-13 14:06:58,340 WARN [Thread-15] c.s.s.n.ExchangeSource [null:-1] Error retrieving currency rates (Server returned HTTP response code: 403 for URL: https://api.coinbase.com/v2/exchange-rates?currency=BTC)
2023-11-13 14:07:15,342 WARN [Thread-18] c.s.s.n.ExchangeSource [null:-1] Error retrieving currency rates (Server returned HTTP response code: 403 for URL: https://api.coinbase.com/v2/exchange-rates?currency=BTC)
2023-11-13 14:07:15,376 ERROR [JavaFX Application Thread] c.s.s.p.GeneralPreferencesController [null:-1] Error retrieving currencies
java.lang.NullPointerException: Cannot read field "rates" because "com.sparrowwallet.sparrow.net.ExchangeSource$2.getRates().data" is null
	at com.sparrowwallet.sparrow@1.8.0/com.sparrowwallet.sparrow.net.ExchangeSource$2.getSupportedCurrencies(Unknown Source)
	at com.sparrowwallet.sparrow@1.8.0/com.sparrowwallet.sparrow.net.ExchangeSource$CurrenciesService$1.call(Unknown Source)
	at com.sparrowwallet.sparrow@1.8.0/com.sparrowwallet.sparrow.net.ExchangeSource$CurrenciesService$1.call(Unknown Source)
	at javafx.graphics@18/javafx.concurrent.Task$TaskCallable.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at javafx.graphics@18/javafx.concurrent.Service.lambda$executeTask$6(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at javafx.graphics@18/javafx.concurrent.Service.lambda$executeTask$7(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
2023-11-13 14:07:19,102 WARN [Thread-20] c.s.s.n.ExchangeSource [null:-1] Error retrieving currency rates (Server returned HTTP response code: 403 for URL: https://api.coinbase.com/v2/exchange-rates?currency=BTC)

I switched my DE to try the issue on Plasma 5.27.9 on my system and re-created there as well. The graphic glitches a bit different there, but I can always re-create by the following steps:

File - New Wallet - Create Wallet
Click on any type of wallet to create
Close the dialogue if not re-created and try step 2 again several times

Ok, I've managed to reproduce it. Looking into this further...

It appears to be some kind of a thread race issue on these Linux DEs causing some dialogs to resize to their minimum possible size. I have fixed these occurrences in 9391a397, either by setting a minimum size explicitly or making the dialog resizable, which seems to work as well.
Please can you test the beta build at https://github.com/craigraw/beta/releases/tag/1.8.1-plasmafix.
@aglkm I would particularly appreciate testing on GNOME 44.5, which I don't currently have.

good news, on my sistem work as expected

thanks for quick fixing.

Fixed in GNOME 44.5. Thank you.

Great, thank you for the quick testing. Closing this off, but if you see any further issues, please comment here.


Fix https://trello.com/c/tLFrSFFh, refactor suspend basal code

The existing code to apply suspended basals was hard to follow. The new
code is more obvious and maintainable.

Fixes https://trello.com/c/tLFrSFFh

 [6-series] Basal Schedule change occurring within a temp basal during a Suspend uploads incorrectly


param json reader test case

Hi @grant-xuexu , the file you submit is in lack of the license header, would you add it like the other source files?


Clear, thanks for your feedback !

Clear, thanks for your feedback !
Originally posted by @mathieubellon in https://github.com/GitGuardian/ggshield/issues/935#issuecomment-2250700922

Closing as this looks like an operator mistake.


Python Docker images are missing dbm.gnu support

Hi,
I tested multiple of the official Python 3.x Docker images and they all are missing support for dbm.gnu.
While there is a <lib>/dbm/gnu.py file that imports _gdbm, the corresponding _gdbm.cpython.*.solibrary in <lib>/lib-dynload/ is missing.
I tested on python:3.4, python:3.5, python:3.6, python:3.4-alpine - all with the same result.
# python3
Python 3.4.5 (default, Sep 24 2016, 05:29:30)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbm.gnu
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.4/dbm/gnu.py", line 3, in <module>
    from _gdbm import *
ImportError: No module named '_gdbm'

Sebastian

Looks like we need libgdbm-dev and since we already are adding it to ruby images I think this makes it a candidate for addition to buildpack-deps so they can share the layer.  As a bonus it won't increase the image size by much:
After this operation, 167 kB of additional disk space will be used.

We'll still need to add the appropriate packages to slim and alpine variants here, but I've started a PR to add it to buildpack-deps. https://github.com/docker-library/buildpack-deps/pull/49

Appears this was resolved with https://github.com/docker-library/buildpack-deps/pull/49 / https://github.com/docker-library/python/pull/153. :tada:
$ docker pull python:3
3: Pulling from library/python
Digest: sha256:4748e00099548b67f250ee6f1210f1f5675113948ed0aae48e195ad6c8e12a32
Status: Image is up to date for python:3

$ docker run -it --rm python:3
Python 3.6.5 (default, Mar 31 2018, 01:15:58)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dbm.gnu
>>>


[test-triage] chip_csr_bit_bash

Hierarchy of regression failure
Chip Level
Failure Description
  Offending '$past(dst_update_i, 1)'

UVM_ERROR @ 2167.719000 us: (prim_reg_cdc_arb.sv:169) [ASSERT FAILED] HwIdSelCheck_A
UVM_INFO @ 2167.719000 us: (uvm_report_catcher.svh:705) [UVM/REPORT/CATCHER]
Steps to Reproduce

https://github.com/lowrisc/opentitan/tree/e7fcdad95951dc92314348fd4661757f17bd04cd
./util/dvsim/dvsim.py -t vcs -w fsdb hw/top_earlgrey/dv/chip_sim_cfg.hjson -i chip_csr_bit_bash  -s<PHONE_NUMBER> -r 1

Tests with similar or related failures

[ ] chip_sw_clkmgr_escalation_reset
[ ] chip_sw_flash_ctrl_idle_low_power
[ ] chip_sw_aon_timer_irq
[ ] chip_sw_aon_timer_sleep_wdog_sleep_pause

assigning to @tjaychen for initial triage.

the prim_reg_cdc_arb assertion forgot to account for the case where a hardware update was made while a handshake is ongoing.
I'm trying a fix to see if it helps.


Validate only once type length is correct?

Hi just wondering if it was possible to expose credit card type/length information so we could kick off validation only once the user has entered the minimum number of characters for a given card type.

Or would it be possible to inject the types provided by the angular credit cards library in to a directive outside of the project?

so we could kick off validation only once the user has entered the minimum number of characters

That's not an option with the way ngModelController works. Validation is run every time the model changes. There's no possibility of "kicking off" validation when a particular condition is met, short of dynamically adding a validation rule (terrible idea).
What it sounds like you want to do is not show an error message until it's clear that the data is invalid and the user is finished entering it. Personally I use the ngModelController.$touched property with ngIf to hide the ngMessages until the field has been blurred.
If you can walk me through the exact UI you're trying to create I can better understand whether there needs to be a feature here.

Hi Ben,
All good I implemented it  like so:
link: ($scope: ng.IScope, element: JQuery, attrs: any, ngModel: any) => {
if (!ngModel) return;
            var minCardTypeLengths = {
                'Visa': 13,
                'MasterCard': 15,
                'American Express': 15,
                'Diners Club': 14,
                'Discover': 16,
                'JCB': 16,
                'UnionPay': 16
            }

            var form: ng.IFormController = ngModel[1];

            var inputName: string = element.attr("name");
            var dirtySet: boolean = false;
            var validationApplied: boolean = false;

            $scope.$watch(attrs.cardViewModel, function (value:

string[]) {
var preliminaryCardType =
form['cardNumber'].$ccEagerType;
var minCardLengthBeforeValidation = 16;
if (preliminaryCardType && preliminaryCardType.length >
0) {
minCardLengthBeforeValidation =
minCardTypeLengths[preliminaryCardType] || 16;
}
                if ((value && value.length > 0 && value.join('').length

= 0)) {
ngModel[0].$setViewValue(value.join(''));
ngModel[0].$render();

                    if (!dirtySet) {
                        ngModel[0].$pristine = false;
                        ngModel[0].$dirty = true;
                        ngModel[0].$setTouched();
                        dirtySet = true;
                    }

                    if (value.join('').length >=

minCardLengthBeforeValidation) {
validationApplied = true;
if (form[inputName].$invalid) {
element.closest('.input-wrap').removeClass('is-valid');
element.closest('.input-wrap').addClass('is-invalid');
} else {
element.closest('.input-wrap').removeClass('is-invalid');
element.closest('.input-wrap').addClass('is-valid');
}
} else if(validationApplied) {
element.closest('.input-wrap').removeClass('is-valid');
element.closest('.input-wrap').removeClass('is-invalid');
}
                } else if(dirtySet) {
                    console.log('removing class');

element.closest('.input-wrap').removeClass('is-valid');
element.closest('.input-wrap').removeClass('is-invalid');
}
}, true);
}
it's a bit dirty for now but will clean it up later
On 23 February 2015 at 23:02, Ben Drucker<EMAIL_ADDRESS>wrote:

so we could kick off validation only once the user has entered the minimum
number of characters
That's not an option with the way ngModelController works. Validation is
run every time the model changes. There's no possibility of "kicking off"
validation when a particular condition is met, short of dynamically adding
a validation rule (terrible idea).
What it sounds like you want to do is not show an error message until it's
clear that the data is invalid and the user is finished entering it.
Personally I use the ngModelController.$touched property with ngIf to
hide the ngMessages until the field has been blurred.
If you can walk me through the exact UI you're trying to create I can
better understand whether there needs to be a feature here.
—
Reply to this email directly or view it on GitHub
https://github.com/bendrucker/angular-credit-cards/issues/20#issuecomment-75530142
.

--
Tom Fulcher
Creative Designer and Developer
[image: Envoy]
Envoy Advanced Technologies Pty Ltd
Level 1, 194 Miller St, North Sydney NSW 2060
Mobile Apps | Software Development | Custom Applications | Fully Managed
Hosting
http://www.envoyat.com | m: 0403 316 714 | p: +61 2 8097 7328 | skype:
thomen12

This email and any attachment is only intended for the use of the
individuals or entities to whom it is addressed and may contain
confidential, privileged information. If the reader of this information is
not the addressee, please be advised that any dissemination, distribution
or copying of this email is strictly prohibited. If you receive this
communication in error, please return this email to Envoy Advanced
Technologies at the above email address and delete it from your files.
Thank you.

Please post this stuff from GitHub in the future since it's impossible to read w/ your mail client's formatting.
Definitely have to advise very strongly against shipping something like this. It's incredibly brittle. You're basically undoing a huge chunk of Angular's form handling.
As mentioned, I want to encourage you to think about validations the way Angular does. Validations are just a set of functions that return true/false. The place for complex logic is in determining how to convey validation state to the user and apply it to your interface.

Hi Ben,
I was trying to find a neater way to do it but I have 4 text boxes which take the credit card input which then populate a hidden with a single string representing the credit card number as a combination of all 4 inputs.
The problem I had was that angular doesn't set the hidden as being dirty or touched or anything similar when it gets updated from the view:

                                Card number

                                    <input type="text" pattern="[0-9]*" size="4" maxlength="4" class="group4" id="cardNumber1" name="cardNumber1" data-ng-model="payment.viewCardNumber[0]" data-only-numbers placeholder="XXXX" />
                                    <input type="text" pattern="[0-9]*" size="4" maxlength="4" class="group4" id="cardNumber2" name="cardNumber2" data-ng-model="payment.viewCardNumber[1]" data-only-numbers placeholder="XXXX" />
                                    <input type="text" pattern="[0-9]*" size="4" maxlength="4" class="group4" id="cardNumber3" name="cardNumber3" data-ng-model="payment.viewCardNumber[2]" data-only-numbers placeholder="XXXX" />
                                    <input type="text" pattern="[0-9]*" size="4" maxlength="4" class="group4" id="cardNumber4" name="cardNumber4" data-ng-model="payment.viewCardNumber[3]" data-only-numbers placeholder="XXXX" />
                                    <input type="hidden" data-ng-model="payment.creditCardNumber" data-card-view-model="payment.viewCardNumber" data-cc-number data-cc-eager-type="payment.creditCardType" name="cardNumber" data-ng-model-options="{ allowInvalid: true }" />

                                            Bad credit card #

Not sure why it's not set as dirty. Seems like a lot of effort here for something that's probably frustrating your users.

Yeah I couldn't figure out why it wasn't being set as dirty. I was thinking of spiking it in to a codepen or plunkr or something and having more of a look

http://plnkr.co/edit/Cr0aSShpXvxxK77E8Qgw?p=preview
This is the current implementation.. if you remove the manual setting of dirty and things like that you'll see it doesn't update. I think it is because the field is a hidden field and maybe needs to be a text input with display: none

http://stackoverflow.com/a/18446730/906162


Search in answers

In order to delete volunteers who left the Red Cross, we need a tool to filter by some texts like "quit", "leave" etc.
From this tool, an admin could access a volunteer's profile and disable it.

Duplicate of #399


some minor cleanup

Codecov Report

Merging #522 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #522   +/-   ##
=======================================
  Coverage   91.64%   91.64%
=======================================
  Files          36       36
  Lines        2802     2802
=======================================
  Hits         2568     2568
  Misses        234      234

Impacted Files
Coverage Δ

vent/menus/add_options.py
87.27% <100%> (ø)
:arrow_up:

vent/menus/main.py
66.19% <100%> (ø)
:arrow_up:

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 740bab0...8c0b183. Read the comment docs.


Collective name not shown on expense page

When looking at an expense page, there is nothing indicating which Collective it's under (besides the URL string). The only way to find out is knowing to click the nondescript icon next to 'contribute' in the top left corner to go to the Collective's page.

In this instance I was reviewing an expense as a host admin, but I think this could be relevant in a lot of situations. Maybe it could say the full Collective name instead of the generic "Collective Balance" on the upper right side?

I need help with the copy. Do the following sentences work?
From user's summary POV:
Summary of your Invoice to CollectiveName / Summary of your Reimbursement to CollectiveName
From the host admin's summary POV:
Invoice Summary to CollectiveName / Reimbursement Summary to CollectiveName
(Here the Collectivename will be hyperlinked to the Collective home page)
Here is how it would look

As discussed with @Betree, we're not implementing the POV variation because of the complexity of deciding who's the submitter.


Use the usage flag from TCGC directly

Unfortunately this is currently blocked by our patch operations.
We did not include patch operation's convenience method, therefore those methods should not be considered during usage calculation, but currently TCGC does not have a way to let us have the filter.


IObit.DriverBooster9 version 10.0.0

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.2 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Close with reason: Fixed with PR 82826 under a new package ID with AppsAndFeatures to allow upgrades from version 9 to version 10 to work;


Ovirt favicon

React favicon replaced by green 'O' symbol copied from webadmin.

@mareklibra please review


replace deprecated junit.framework.Assert class with org.junit.Assert

I won't merge this PR as I would prefer use AssertJ assertions instead of JUnit.
I haven't taken the time to do it with the JUnit to AssertJ script but this is in my todolist (#386)


⚠ Processors has degraded performance

In 9902bfc, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 46 ms

Resolved: Processors performance has improved in a2194b0.


Refactor the code so that there are different Cells with assigned Rulesets

I.e., constructor for the Cell would be: Cell(Vector, RuleSet).

Done in V0.1 branch.


Should not resolve type alias when generate mock files

Actual behavior A clear and concise description of what the bug is.
we have an interface that uses "github.com/tikv/client-go/v2/tikv".Codec. And that type is defined as
under "github.com/tikv/client-go/v2/tikv":
import "github.com/tikv/client-go/v2/internal/apicodec"
...
type Codec = apicodec.Codec

In the generated mock files, it directly imports "github.com/tikv/client-go/v2/internal/apicodec" which is not allowed for the non-internal usage.
Expected behavior A clear and concise description of what you expected to
happen.
It should import "github.com/tikv/client-go/v2/tikv" instead
To Reproduce Steps to reproduce the behavior

...
...

Additional Information

gomock mode (reflect or source): default value
gomock version or git ref: v0.5.0
golang version: 1.23

Triage Notes for the Maintainers

Hey @lance6716 - how is the Codec type being used in terms of the interface you're trying to mock? Can you show us:

The definition of the interface you're trying to mock
The mockgen command you're running

Thanks

@JacobOaks I pushed example code here https://github.com/lance6716/mock/tree/show216/example
The command is cd example && mockgen -package mock . Foo > ./mock/gen.go
And can you take a look at https://github.com/uber-go/mock/pull/171 ? Thanks.


Add function to transform dynamics using polynomial T transformation

Got F and H, need to figure out G and jacobian


Luci errors on master : RPC call to luci/getFeatures failed with error -32000: Object not found

Fresh master branch build, Luci system rpc seems broken

I see the same with LuCI Master (git-20.304.73778-5a485f8) / OpenWrt SNAPSHOT r14809-37ef2197e6
RPCError

RPC call to luci/getFeatures failed with error -32000: Object not found
  at handleCallReply (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-20.304.73778-5a485f8:11:3)

or
RPCError
RPC call to luci/getFeatures failed with error -32000: Object not found
at handleCallReply (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-20.304.73778-5a485f8:11:3)
at promise callback*parseCallReply (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-20.304.73778-5a485f8:9:70)
at promise callback*call (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-20.304.73778-5a485f8:5:110)
at declare/

And Firefox shows the exception/breakpoint as

Paused on exception
RPCError: RPC call to luci/getFeatures failed with error -32000: Object not found at handleCallReply (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-20.304.73778-5a485f8:11:3) at promise callbackparseCallReply (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-20.304.73778-5a485f8:9:70) at promise callbackcall (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-20.304.73778-5a485f8:5:110) at declare/</< (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-20.304.73778-5a485f8:23:320) at declare/< (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-20.304.73778-5a485f8:20:436) at probeSystemFeatures (https://<IP_ADDRESS>/luci-static/resources/luci.js?v=git-20.304.73778-5a485f8:188:162) at setupDOM (https://<IP_ADDRESS>/luci-static/resources/luci.js?v=git-20.304.73778-5a485f8:199:378) at promise callback*init (https://<IP_ADDRESS>/luci-static/resources/luci.js?v=git-20.304.73778-5a485f8:152:362) at ClassConstructor (https://<IP_ADDRESS>/luci-static/resources/luci.js?v=git-20.304.73778-5a485f8:11:78) at (https://<IP_ADDRESS>/cgi-bin/luci:38:6)

same problem.

same problem.

same problem.

Can confirm this is indeed broken.

Rofl missing quotation mark, someone didn't run test.

Fixed by #4560

This is back, right(?):
RPC call to luci.wireguard/getWgInstances failed with error -32000: Object not found
at ClassConstructor.handleCallReply (http://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-21.226.86205-376af36:11:3)

@lynxthecat
Confirm issue come back
RPCError RPC call to luci.wireguard/getWgInstances failed with error -32000: Object not found   at ClassConstructor.handleCallReply (https://<IP_ADDRESS>/luci-static/resources/rpc.js?v=git-21.267.65414-1d9067b:11:3)

So this needs to be reopened, right? Let us know what extra info if any needed!

I think this issue needs to be re-open.
I get the getFeatures error if busybox symlinks are installed in /bin instead of /usr/sbin. The error is caused by missing /usr/bin/env

same problem

Actually I have a slight suspicion this could be related to just needing to clean browser cache. Did you try that @rendiix?


Better error if git not installed

Fixes #953.
The output when git is not installed is still not 100% crisp, and we could do with bypassing the context stack for these "known" cases.  But this at least gives the specific message pointing the finger at git:
# --- Template case ---
$ spin templates install --git https://github.com/fermyon/spin
Copying remote template source
Error: Failed to install one or more templates

Caused by:
    0: Failed to get template source
    1: Error cloning Git repo https://github.com/fermyon/spin: `git` command not found - is git installed?

# --- Plugin case ---
$ spin plugin install js2wasm
Error: failed to connect to endpoint https://github.com/fermyon/spin-plugins/: Error cloning Git repo https://github.com/fermyon/spin-plugins/: `git` command not found - is git installed?

I'm not sure there is a sensible way to deduplicate this with the current cratification of the Spin CLI, bar lots of micro-crates or the spin-util crate of shame, but I'm open to ideas!
Signed-off-by: itowlson<EMAIL_ADDRESS>

For deduplication, should we create a single git crate that both templates and plugins use, containing the pulling and error capabilities?

@itowlson it seems like this could be a larger discussion we could have around what the criteria for utility crates are in spin. We could leave duplication for now and create an issue around the discussion?

@kate-goldenring I opened #965 but yeah, it would be nice not to have to wait on that discussion!


Release: 1.2.2

@Kong/team-docs Kong 1.2.2 packages are pushed, as per our release process, this is now good to merge!


Make compatible with Varnish 5

VCL_EVENT_USE is no longer defined, see fbd1c18cc891cd915dd33be55afb43371de1c8a6 and 25647b4833e8a3dfa163133ebfe01d92e7299e6f.

Hi @joshuaspence,
Thanks a lot for the PR! :) The problem is I stopped maintaining this VMOD some time ago. It's internal implementation is poor but I don't plan to improve it because I don't think the VMOD is very useful. Additionally, updates to the build infrastructure are pending, if I remember well it contains a few bugs, code coverage is also pending, etc. So, if you want to fork the VMOD and work on pending stuff I'll be happy to link your repo in the README.md file.

Thanks for your response. May I ask why you don't think that the VMOD is useful? I had planned t use this VMOD for templatizing a generic error page, and it certainly seems useful for my use case.

Usefulness of the VMOD is relative, but I think you can easily implement a pure VCL-based solution for templatizing a generic error page. There is not need to complicate things using a VMOD for that.


Database support?

It's mostly question. PHP framework without any trace DB support? Others 'miro' does provide something like providers. So how to handle this here?

Hi, by default we provide a Doctrine DBAL connection which you can use in your controller through the Inject annotation i.e.:
class FooController extends ControllerAbstract
{
    /**
     * @Inject
     * @var \Doctrine\DBAL\Connection
     */
    protected $connection;
}

The DB credentials must be defined in the configuration.php file. If you want to use another DB library you need to add the library to the DI container. Please check the DI chapter (http://psx.readthedocs.org/en/latest/design/dependency_injection.html) of the manual to see howto add/use a service.

Sounds good enough. No ORM suppost from Doctrine I suppose.


DSL: Simplify AST

#27 is about to be closed, but I have a little more simplification to offer in the AST. I'd love feedback on this from all. This PR makes the changes I propose below, both in the AST and in the parser. It works correctly on all our sample programs.
However, please treat the text below and the PR itself as a proof of concept. It's not trying to be "set in stone" or prescriptive in the slightest; please do chime in with your thoughts.
At present we have:
type clss = string
type var = string

type declare =
| DeclareClasses of clss list

type policy =
| Class of clss
| Fifo of policy list
| Fair of policy list
| Strict of policy list
| Var of var

type assignment =
| Assn of var * policy

type statement =
| Declare of declare
| Assignment of assignment
| Seq of statement * statement
| Return of policy

type program =
| Prog of declare * (statement list)

Since we have a statement list, we don't really need a Seq constructor in statement. We just need to actually parse a list of statements as a list, not a Seq. If we take on that responsibility at the parser level, our AST gets to be a little simpler:
type statement =
| Declare of declare
| Assignment of assignment
(* | Seq of statement * statement *)
| Return of policy

type program =
| Prog of declare * (statement list)

We should probably also drop the | Declare of declare constructor from statement, so that the user gets one and only once chance to declare their classes up top. That gets us to:
type declare =
| DeclareClasses of clss list

...

type statement =
(* | Declare of declare *)
| Assignment of assignment
(* | Seq of statement * statement *)
| Return of policy

type program =
| Prog of declare * (statement list)

In the same spirit you may want to drag return out into its own type, such that the user can only have one return at the end of the program.
type declare =
| DeclareClasses of clss list

type return =
| Return of policy

...

type statement =
(* | Declare of declare *)
| Assignment of assignment
(* | Seq of statement * statement *)
(* | Return of policy *)

type program =
| Prog of declare * (statement list) * return

And now you observe that statement is nothing more than a silly wrapper for Assignment, so why not just change statement list into assignment list and be done with it?
type clss = string
type var = string

type declare =
| DeclareClasses of clss list

type policy =
| Class of clss
| Fifo of policy list
| Fair of policy list
| Strict of policy list
| Var of var

type return =
| Return of policy

type assignment =
| Assn of var * policy

type program =
| Prog of declare * (assignment list) * return

Sounds good to me! Should make my job with the interpreter easier.

Super, thank you both! Gonna go ahead and merge then. And yes, @csziklai, I think this will force the user to write "nice" programs more often, so that should be helpful to you! Also, we now actually parse and generate a prog of type Ast.program, and I suspect that will save us from some grief later on 😅

One drive-by thought: The declaration/statement distinction is something Dahlia also has but one thing it suffers from is bad error messages. If declarations and statements are interleaved, the parser just says "parser error". I would recommend adding an error rule in the parser that successfully parses a declaration after a statement and then immediately throws an error.


input contains NaN, infinity or a value too large for dtype('float64'). `

File "/root/miniconda2/lib/python2.7/site-packages/mlens/ensemble/base.py", line 614, in predict     X, _ = check_inputs(X, check_level=self.array_check)   File "/root/miniconda2/lib/python2.7/site-packages/mlens/utils/validation.py", line 562, in check_inputs     X = _check_array(X)   File "/root/miniconda2/lib/python2.7/site-packages/mlens/utils/validation.py", line 510, in _check_array     warn_on_dtype=False  # Mute as 'dtype' is 'None'   File "/root/miniconda2/lib/python2.7/site-packages/mlens/externals/sklearn/validation.py", line 388, in check_array     _assert_all_finite(array)   File "/root/miniconda2/lib/python2.7/site-packages/mlens/externals/sklearn/validation.py", line 46, in _assert_all_finite     " or a value too large for %r." % X.dtype) ValueError: Input contains NaN, infinity or a value too large for dtype('float64').
I have checked the data which is no nan and i can train the data with single model.my code show in the below:
ensemble.add('stack',model['ex']) ensemble.add('blend',model['ex']) ensemble.add('subsemble',model['ex']) meta = "ls" ensemble.add_meta(model[meta]) ensemble.fit(X_train,y_train) preds1 = np.exp(ensemble.predict(X))

There seems to be something in your data that the sklearn data validation routine doesn't like. You can turn it off in the ensemble with array_check=0, and it should work (unless your estimators gives you an error)