Reduce the same query state update

Why are the changes needed?

Reduce the same query state update.
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

Codecov Report

Merging #3941 (ef864a9) into master (a0fc33c) will decrease coverage by 0.04%.
The diff coverage is 55.55%.

@@             Coverage Diff              @@
##             master    #3941      +/-   ##
============================================
- Coverage     51.91%   51.87%   -0.05%
  Complexity       13       13
============================================
  Files           508      521      +13
  Lines         29019    28772     -247
  Branches       3984     3851     -133
============================================
- Hits          15066    14925     -141
+ Misses        12525    12482      -43
+ Partials       1428     1365      -63

Impacted Files
Coverage Δ

...org/apache/kyuubi/operation/ExecuteStatement.scala
76.25% <55.55%> (-2.92%)
:arrow_down:

...uubi/plugin/spark/authz/util/SemanticVersion.scala
50.00% <0.00%> (-3.58%)
:arrow_down:

...rg/apache/kyuubi/ctl/cmd/log/LogBatchCommand.scala
63.93% <0.00%> (-1.64%)
:arrow_down:

.../org/apache/kyuubi/ha/client/DiscoveryClient.scala
34.78% <0.00%> (-1.59%)
:arrow_down:

...he/kyuubi/plugin/spark/authz/IcebergCommands.scala
96.29% <0.00%> (-1.38%)
:arrow_down:

...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala
80.74% <0.00%> (-0.63%)
:arrow_down:

.../plugin/spark/authz/ranger/RuleAuthorization.scala
80.95% <0.00%> (-0.45%)
:arrow_down:

...a/org/apache/kyuubi/ha/client/DiscoveryPaths.scala
100.00% <0.00%> (ø)

...uthz/ranger/RuleApplyRowFilterAndDataMasking.scala
91.66% <0.00%> (ø)

... and 25 more

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

thanks, merged to master and 1.6.2


Video Duration for Multi-Video Posts

LTT has started uploading FP exclusives with two videos: captioned / uncaptioned. When on the grid view, it seems to add all the lengths up so if the video is 30 mins, with 2 versions, it will count it as 1 hour. You can see this with the latest "meet the team".
I think the solution here (from a UI perspective) would be to change the type underneath the thumbnail from "Video" to "Multimedia" or "Videos". Then just not show a duration, then have individual durations under each video once you've clicked in.

You're correct! It looks like for multi-video uploads, the website doesn't show a duration. The duration I use comes from the blog post document metadata, which appears to be summing the total duration of all video attachments, not just the main video attachment.
I can remove the duration label for multi-video posts, since the metadata can't be trusted for display purposes, and the attachment-specific metadata isn't available in that part of the UI.

Fixed in 1.3.0-16. Uploaded to TestFlight. Closing, but please re-open if you see any issues! Thanks for bringing this to my attention :)


Parser does not respect inline 'allOf' definitions

It appears that, as of version 1.0.32, the Java Swagger parser suffers from the same issue referenced in https://github.com/swagger-api/swagger-ui/issues/1747 and https://github.com/swagger-api/swagger-js/issues/681.
Relevant code:
		SwaggerParser parser = new SwaggerParser();
		Swagger swagger = parser.read(input.getPath());
		Yaml.pretty().writeValue(output, swagger);

where input and output are both of type File
Specifically, given the file ref.yaml containing
definitions:

  ReferencedObject1:
    type: object
    title: ReferencedObject1
    properties:
      name:
        type: string
        description: My name
      number:
        type: string
        description: My number
    required:
      - name
      - number

  ReferencedObject2:
    type: object
    title: ReferencedObject2
    properties:
      address:
        type: string
        description: My address

and an input file bug.in.yaml containing
swagger: '2.0'
info:
  title: ParserBug
  version: '1.0'
  description: Demonstrates a parser bug
basePath: /parser
paths:
  '/':
    get:
      operationId: getItem
      responses:
        '200':
          description: successful response
          schema:
            allOf:
              - $ref: './ref.yaml#/definitions/ReferencedObject1'
              - $ref: './ref.yaml#/definitions/ReferencedObject2'

parser.read will generate
16:17:42.625 [main] WARN  io.swagger.util.PropertyDeserializer - no property from null, null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=null, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null}

when it encounters the allOf definition, and will produce an output Swagger object that deserializes to:
---
swagger: "2.0"
info:
  description: "Demonstrates a parser bug"
  version: "1.0"
  title: "ParserBug"
basePath: "/parser"
paths:
  /:
    get:
      operationId: "getItem"
      parameters: []
      responses:
        200:
          description: "successful response"

(Note that the schema is missing from the output).  The expected behavior was that an object with all of the members of the referenced items would have been produced as the schema.
If, however, the allOf is moved down to an explicit definition and referenced by the schema, like so:
swagger: '2.0'
info:
  title: ParserBug
  version: '1.0'
  description: Demonstrates a workaround to the parser bug
basePath: /parser
paths:
  '/':
    get:
      operationId: getItem
      responses:
        '200':
          description: successful response
          schema:
            $ref: '#/definitions/OutputObject'

definitions:
  OutputObject:
    allOf:
      - $ref: './ref.yaml#/definitions/ReferencedObject1'
      - $ref: './ref.yaml#/definitions/ReferencedObject2'

Then no warning is generated, and the Swagger object contains:
---
swagger: "2.0"
info:
  description: "Demonstrates a workaround to the parser bug"
  version: "1.0"
  title: "ParserBug"
basePath: "/parser"
paths:
  /:
    get:
      operationId: "getItem"
      parameters: []
      responses:
        200:
          description: "successful response"
          schema:
            $ref: "#/definitions/OutputObject"
definitions:
  OutputObject:
    allOf:
    - $ref: "#/definitions/ReferencedObject1"
    - $ref: "#/definitions/ReferencedObject2"
  ReferencedObject1:
    type: "object"
    required:
    - "name"
    - "number"
    properties:
      name:
        type: "string"
        description: "My name"
      number:
        type: "string"
        description: "My number"
    title: "ReferencedObject1"
  ReferencedObject2:
    type: "object"
    properties:
      address:
        type: "string"
        description: "My address"
    title: "ReferencedObject2"

Thus, the allOf is respected in an explicit object definition, but not in the implicit definition under schema.
Above files are attached
bug.zip

Related also with to #604

Hi @kdhunter  we have merged this PR, please check it out, and if the issue it's still there. Let us know.
Thanks!

The 20180316 snapshot seems to have corrected the problem.
Any ETA on the next non-snapshot release to Maven?

Hi, @kdhunter let me check.


WARN: Cloning resource attributes

Chef 12.x prints warning messages:
       [2015-07-03T09:52:13+00:00] WARN: Cloning resource attributes for rabbitmq_user[sensu] from prior resource (CHEF-3694)
       [2015-07-03T09:52:13+00:00] WARN: Previous rabbitmq_user[sensu]: /tmp/kitchen/cookbooks/sensu/definitions/rabbitmq_credentials.rb:6:in `block in from_file'
       [2015-07-03T09:52:13+00:00] WARN: Current  rabbitmq_user[sensu]: /tmp/kitchen/cookbooks/sensu/definitions/rabbitmq_credentials.rb:11:in `block in from_file'
       [2015-07-03T09:52:13+00:00] WARN: Cloning resource attributes for apt_repository[sensu] from prior resource (CHEF-3694)
       [2015-07-03T09:52:13+00:00] WARN: Previous apt_repository[sensu]: /tmp/kitchen/cookbooks/sensu/recipes/_linux.rb:26:in `from_file'
       [2015-07-03T09:52:13+00:00] WARN: Current  apt_repository[sensu]: /tmp/kitchen/cookbooks/uchiwa/recipes/repo.rb:30:in `from_file'

In my experience these warnings are quite common and rarely indicative of an actual problem. There are some efforts under way (e.g. https://github.com/chef/chef-rfc/issues/76) to address the problems raised in CHEF-3694 but at this time there's no clear path to move forward on addressing resource cloning. Closing as wontfix (for now).


Read time from timeStart

The app should also take time from timeStart (to generate file name) for extracting data from aggregate topics.

Fixed in #37.


Removing sandbox-web broke Vite documentation

Current Behavior
When you visit https://tamagui.dev/docs/guides/vite there's a broken link

For a full-featured example, you can reference the experimental tamagui.dev site written using vite.

( https://github.com/tamagui/tamagui/tree/master/apps/sandbox-web )
It appears commit 958de216da59d87c19b0f14f58a7ed639efe7007 from PR #952 removed sandbox-web.
Tamagui Version
Latest (v1.36.4)

fixed


undefined symbol: _ZN2at5sliceERKNS_6TensorElN3c108optionalIlEES5_l

Dear Haotian,Thanks for your great work!
I am trying to evaluate the detection model on a single GPU machine by running the following in terminal:
torchpack dist-run -np 1 python tools/test.py configs/nuscenes/det/transfusion/secfpn/camera+lidar/swint_v0p075/convfuser.yaml pretrained/bevfusion-det.pth --eval bbox
it gives me:
Traceback (most recent call last):
File "tools/test.py", line 14, in
from mmdet3d.apis import single_gpu_test
File "/home/ubuntu/workspace/bevfusion/mmdetection3d/mmdet3d/apis/init.py", line 2, in
from .train import *
File "/home/ubuntu/workspace/bevfusion/mmdetection3d/mmdet3d/apis/train.py", line 15, in
from mmdet.core import DistEvalHook
File "/home/ubuntu/workspace/bevfusion/mmdetection/mmdet/core/init.py", line 3, in
from .bbox import *  # noqa: F401, F403
File "/home/ubuntu/workspace/bevfusion/mmdetection/mmdet/core/bbox/init.py", line 8, in
from .samplers import (BaseSampler, CombinedSampler,
File "/home/ubuntu/workspace/bevfusion/mmdetection/mmdet/core/bbox/samplers/init.py", line 10, in
from .score_hlr_sampler import ScoreHLRSampler
File "/home/ubuntu/workspace/bevfusion/mmdetection/mmdet/core/bbox/samplers/score_hlr_sampler.py", line 3, in
from mmcv.ops import nms_match
File "/home/ubuntu/anaconda3/envs/bevf/lib/python3.8/site-packages/mmcv/ops/init.py", line 2, in
from .assign_score_withk import assign_score_withk
File "/home/ubuntu/anaconda3/envs/bevf/lib/python3.8/site-packages/mmcv/ops/assign_score_withk.py", line 5, in
ext_module = ext_loader.load_ext(
File "/home/ubuntu/anaconda3/envs/bevf/lib/python3.8/site-packages/mmcv/utils/ext_loader.py", line 13, in load_ext
ext = importlib.import_module('mmcv.' + name)
File "/home/ubuntu/anaconda3/envs/bevf/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: /home/ubuntu/anaconda3/envs/bevf/lib/python3.8/site-packages/mmcv/_ext.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN2at5sliceERKNS_6TensorElN3c108optionalIlEES5_l
Primary job  terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.

mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[11928,1],0]
Exit code:    1
I am not sure what could be the problem, could that be due to the version does not match, or something else?
A lot of thanks for your kindly reply .
The version is as follows:
Python==3.8
cuda==11.2
torch==1.10.0
torchpack==0.3.1
torchvision==0.11.1
mmcv-full==1.4.0
nuscenes-dev-kit==1.1.9
mmdet==2.20.0
mmdet3d==1.0.0rc4
mmsegmentation==0.27.0
OpenMPI==4.0.4 and mpi4py = 3.0.3
Pillow==8.4.0
tqdm==4.64.0

Hi, I have got exactly same error but it was due to some installation for sure. I have resolved by changing some versions but do not really remember what helped me, however you can find out below the installed version in my machine (rtx 3090 ti) and highlighted differences with bold text.
Python==3.8.0
cuda==11.3
torch==1.10.0
torchvision==0.11.1
Have used the below command to install pytorch
conda install pytorch==1.10.0 torchvision==0.13.1 torchaudio==0.10.0 cudatoolkit=11.3 -c pytorch -c conda-forge
torchpack==0.3.1
mmcv-full==1.4.0
nuscenes-dev-kit==1.1.9
mmdet==2.20.0
mmdet3d==0.0.0
OpenMPI==4.0.2 and mpi4py = 3.0.3
Pillow==8.4.0
tqdm==4.64.0

Thanks @VeeranjaneyuluToka for the discussion! The library versions are indeed quite important for the current BEVFusion repo. I would suggest @hmy-meng to also have a closer look at the mmcv and mmdet versions and make sure your configurations match our recommendations.

@VeeranjaneyuluToka @kentang-mit   Thanks a lot for your answer, I solved it, using this method ：https://github.com/mit-han-lab/bevfusion/issues/13#top

Great to hear that. I'm temporarily closing this issue since it is resolved.


Add a StyleVar for CellPadding

This allows setting a table-related style var which was introduced in imgui 1.80.
I also added cell padding to some related tests when I was at it. There's a couple of other style variables that not consistently tested, but that's for another time.

Thanks! Just needs the slightly tedious cargo fmt step fixed and I think this is good to merge

I was sure I ran it... oh well. Should be fixed now, thanks!


Fixed web support

Hello @OlehMarch ! Did you add fileName because of this error: ?

Cause I'm getting it right now with flutter v3.10.
Since you've tried to contribute to this repo, maybe you know a better tool for tdlib? Cause this repo looks dead.

Thanks for the PR. web plugin fixed in v1.6.0


Type-aware configs

Continuing this discussion:
Originally posted by @JoshuaKGoldberg in https://github.com/eslint-community/eslint-plugin-eslint-plugin/pull/433#discussion_r1479982423

I'm leaning toward a single type-checked config as likely making the most sense in our case rather than having a type-aware version of every one of our configs. Perhaps it makes sense for us @typescript-eslint which is more focused on types to have type-checked versions of each config of each config, but the same solution for us might be overkill.
Thoughts?

Curiosity: what was the motivation for making standalone rules-recommended & tests-recommended configs? I can guess from the names but was there strong user need mentioned anywhere?

I'll have to look back at the PRs that added those configs to see if there was any explanation mentioned for adding them.
However, they are theoretically useful for reducing false positives so we don't mistakenly detect rules or tests in files they shouldn't exist in, and for performance (although this isn't a huge concern in eslint plugins which are usually small).
Either way, I do think it's important to have a solution that can scale regardless of how many configs we have. There are many possible conceivable configs including for stylistic preferences, targeting older versions, etc.
In general, I think there should be a convention for type-aware rule configs that handles plugins with a variety or larger number of configs without causing excess maintenance burden or unnecessarily multiplying the API surface.


Does anyone know how to insert the window controls in the tab area like chrome?

Does anyone know how to insert the window controls in the tab area and manage downloads and download status?

Does anyone get help here

Does anyone get help here


The cursor moves when a suggestion is shown in typescript

Note: This issue might be due to Tide, please close it if that's the case.
Using Doom Emacs on a typescript project, sometimes I face this issue:

Basically I start a block, when I press the closing bracket (or parens), my cursor moves one character before the closing bracket.
This usually happens when the bracket is the last character in the line and does not reproduce when there's whitespace characters after it.
And when my block looks like this const my_block = ({  and I press } then ) the behaviour looks like this:

This only happens on Typescript files, while others (tested: Rust and plain text) seem to work as expected.
Turning off Copilot mode also fixes the issue.
Either way, thanks for making this project.

I got the same issue when typing parenthesis.
https://github.com/zerolfx/copilot.el/assets/49431747/0cc142b4-19d9-4b7b-8974-345088d2966a


A issue about the log of build scripts .

When I run  dist task , the log is
><EMAIL_ADDRESS>build ...
> npm run dist

><EMAIL_ADDRESS>predist ...
> rimraf dist/**

><EMAIL_ADDRESS>dist ...
> pixify -d dist -n PIXI -o pixi -t babelify

> Built pixi.js in 20.896 seconds
> Built pixi.js in 21.91 seconds

See the last  line.
I think  it should be   Built pixi.min.js .
.

@bigtimebuddy I know this was assigned to you, but thought i'd take a look at pixify! PR submitted; then you'd need to still do the magic of creating a new version, and pointing pixi to it

@bigtimebuddy I know this was assigned to you, but thought i'd take a look at pixify! PR submitted; then you'd need to still do the magic of creating a new version, and pointing pixi to it

On it. Thanks @themoonrat!

On it. Thanks @themoonrat!

Could you divid the dist step  into two steps :  build pixi.js & build pixi.min.js  in   scripts of package.json ?
I create a shell script to build PIXI , but some time I just want to do something to pixi.js only (e.g. in develop/test/debug mode) .
But now I have to wait until finish pixi.min.js building ( about 20 seconds ).

Could you divid the dist step  into two steps :  build pixi.js & build pixi.min.js  in   scripts of package.json ?
I create a shell script to build PIXI , but some time I just want to do something to pixi.js only (e.g. in develop/test/debug mode) .
But now I have to wait until finish pixi.min.js building ( about 20 seconds ).

If you set the command line watch flag to true, it won't build the minified version

npm run dist -- --watch
This will only watch and rebuild the unminified bundle.

@bigtimebuddy  I use the --watch , but the shell does exit .
><EMAIL_ADDRESS>lint<EMAIL_ADDRESS>> eslint scripts src test --max-warnings 0

><EMAIL_ADDRESS>predist<EMAIL_ADDRESS>> rimraf dist/**

><EMAIL_ADDRESS>dist<EMAIL_ADDRESS>> pixify -d dist -n PIXI -o pixi -t babelify "--watch"

> 3741625 bytes written (19.51 seconds)

It paused at this moment, not exits ,not continues.

@bigtimebuddy  @themoonrat  , my shell script is like this :
#!/bin/bash
if [[ "$1" == "all" ]]; then
    # lint & build pixi.js and pixi.min.js
    npm run build
    cp ./dist/pixi.js ~/DEV/www/MyGameTemplate/client/lib/
    cp ./dist/pixi.min.js ~/DEV/www/MyGameTemplate/client/lib/
    exit 0
fi

# lint & build pixi.js only
npm run lint
npm run dist -- --watch
cp ./dist/pixi.js ~/DEV/www/MyGameTemplate/client/lib/
exit 0

but use --watch not useful.

Correct @finscn, the shell does not exit. Whenever you save a file, it will rebuild. All the files are cached in memory, so you don't have to read all the files off the disk again. This makes rebuilding with watch very fast.

@bigtimebuddy , what shall I do , if I want to do something like my shell script ?

You should created a symlink within your project to the built file. For instance:
cd ~/DEV/www/MyGameTemplate/client/lib/
ln -s /path/to/pixi.js/dist/pixi.js pixi.js

My file need to push to my git server .  symlink is not a good choice.
Is there a parameter of  pixify  to build pixi.js only ?

@bigtimebuddy  ,  I found the pixify.js has  a option compress, but the command line no this parameter.

You can created a custom build script which only builds the uncompressed output. For instance:
var pixify = require('pixify');
pixify({
    output: 'pixi.js',
    name: 'PIXI',
    dest: './dist/',
    compress: false,
    transform: ['babelify']
});

Fixed in pixify v1.7.1


data structure for multiple states/reports

Current code has each state and report in a separate JSON document. There is a lot of repeated data between states/report instances for the same host and between hosts (e.g. teams with separate host copies). The potential size of state/reports adds up. The way the data is stored makes diff-ing between states/reports calculation intensive. The result of these is that insight queries have large bandwidth requirements and turnaround time is slow.
Proposal is to break up each document into a map of entries (e.g. entry 0 is User{name: "Bob"}) and a map of where these entries go (e.g. win7 instance 1, time 100, Users, position 0 is entry 0). With this scheme, multiple state/report queries and diff-ing should be more space and calculation efficient.

From further testing, a lot of time in the diff endpoints is waiting for the diffs and then serializing it. Made improvements to stream JSON report and state diffs. This has reduced the overall time.

Have done prototype code in python, and approach did result in less space for multiple states/reports, but was not successful at improving diff performance.

Not currently looking into this, may revisit if feasible.


Add operational metrics/logging

Server metrics and logs would be really nice to have to monitor stuff like:

Requests
Data I/O
Cache hits/misses
Host metrics (CPU, memory, etc.)
Nginx and Express logs

Self-hosted vs. external? Self-hosted is probably easier, no need to pay for external platforms.


fixed #172

there still more jobs todo:

when remote endpoint is shutdown, can not use Terminate State[/Behavior]
need add more events for control endpoint_watcher behavior change .

I have been thinking that maybe we need to merge endpoint watcher and endpoint writer.
That would allow us to get rid of state/behavior and there would be no need for complex event interactions.
Does this make sense or do you see any problems with this approach?

Maybe ,we get rid of state/behavior change ,add Heartbeat Event for FailureDetector is better.

cc @PotterDai is this something we should merge?

@rogeralsing It should have been fixed already in my previous PR.


chore: bump ts-loader

Separate PR because I had some issue locally and was looking for a culprit but everything seems fine actually.


SQUID-Acl: IP fields are too short

And also the menu markers render still being wrong.

OK, will improve it. Menu is wrong? You mean white dots on the lines? If so, what is your OS/Browser?

Yes, I mean the dots. Linux/Chrome  44.0.2403.52 beta

I also have Linux Chrome on the video and it's perfect. Did you make fonts look larger in SysConf?

Input will be the right size on the next release, 13.10. However, I have 3 systems (Fedora Linux with GNOME, Windows 7 and Apple OS), where I can't reproduce those funky big circles.

Unless you provide me with extensive debug information about your system configuration, I will not be able to assist here.


Shouldn't be allowed to scale External Service or Service Alias

Rancher Version: master 12/28
Steps to Reproduce:

Create a stack with service alias and a external service
Go to webhook ui
Create and run webhook for service alias and external service

Results: can create and run webhook for those services
Expected: Should not be allowed to create webhooks for those services.  Services should not show up in the UI.

@tfiduccia if you are saying that the services should not show up in the UI to pick from while creating the webhook, then that would be a UI change on @vincent99's side.
That said, we should also add validation on the create side that checks the service type.

Yes, changed in UI and agree API shouldn't allow it either.

Thankee

I verified that the UI was fixed and it is no longer showing External Service or Service Alias.
Soumya - can you check that the API is fixed?

Tested with v1.4.0-rc2. Scaling alias and external services are not allowed through webhooks as expected.
soumyas-MacBook-Pro:notes soumya$ curl -i -H 'Accept: application/json' -H 'Content-Type: application/json' http://<IP_ADDRESS>:8080/v1-webhooks/receivers?projectId=1a5 -X POST -d '{"name": "scalealiasup", "driver": "scaleService", "scaleServiceConfig": {"action": "up", "amount": 1, "serviceId": "1s7", "min": 1, "max": 4}}'
HTTP/1.1 400 Bad Request
Content-Length: 234
Content-Type: text/plain; charset=UTF-8
Date: Mon, 16 Jan 2017 22:44:21 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: Jetty(9.2.11.v20150529)
Set-Cookie: PL=rancher;Path=/
X-Api-Account-Id: 1a5
X-Api-Schemas: http://<IP_ADDRESS>:8080/v1/schemas
X-Rancher-Version: v1.4.0-rc2

{"actions":{},"links":{"self":"http://<IP_ADDRESS>:8080/v1-webhooks/receivers"},"message":"Can only create webhooks for Services. The supplied service is of type dnsService","status":"Server Error","statusCode":400,"type":"error"}

soumyas-MacBook-Pro:notes soumya$ curl -i -H 'Accept: application/json' -H 'Content-Type: application/json' http://<IP_ADDRESS>:8080/v1-webhooks/receivers?projectId=1a5 -X POST -d '{"name": "scalealiasup", "driver": "scaleService", "scaleServiceConfig": {"action": "up", "amount": 1, "serviceId": "1s8", "min": 1, "max": 4}}'
HTTP/1.1 400 Bad Request
Content-Length: 239
Content-Type: text/plain; charset=UTF-8
Date: Mon, 16 Jan 2017 22:44:06 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: Jetty(9.2.11.v20150529)
Set-Cookie: PL=rancher;Path=/
X-Api-Account-Id: 1a5
X-Api-Schemas: http://<IP_ADDRESS>:8080/v1/schemas
X-Rancher-Version: v1.4.0-rc2

{"actions":{},"links":{"self":"http://<IP_ADDRESS>:8080/v1-webhooks/receivers"},"message":"Can only create webhooks for Services. The supplied service is of type externalService","status":"Server Error","statusCode":400,"type":"error"}


How to get/calculate battery status?

In M5Stack I saw M5.Power.getBatteryLevel(), in this library there are getBatteryVoltage and getBatteryRaw, but how to get a power level (battery charge in percents)?

I have found this code - https://github.com/tuenhidiy/m5paper-weatherstation/blob/7c2ceaf38c6f53bfd66acbf63acae9a2bfd90559/src/main.cpp#L433
It seems to work (though it varies quite a lot). Here's my helper function, in case anyone is looking for one:
const uint32_t BAT_LOW = 3300;
const uint32_t BAT_HIGH = 4350;

float getBatteryPercent() {
    auto clamped = std::min(std::max(M5.getBatteryVoltage(), BAT_LOW), BAT_HIGH);
    auto perc = (float) (clamped - BAT_LOW) / (float) (BAT_HIGH - BAT_LOW) * 100.0f;
    return perc;
}


Migration to .NET 9

Todo :

Finish implementation and debug of HybridCache
Cache metadata (call database)
Finish implementation NFT storage classes
Finish API Gateway
In back office tool, add generation of :

EF auto model builder
Add function : PublishEventToHubAsync
Add function into PolkanalysisHub
Add model into EF db context automatically


Reconfiguration after Firefox-Update 115

Great add-on for mailcow. Using it since two weeks without a problem in Firefox. But updating to FF115 i had to do an initial setup of the add-on. Will there always a reconfiguration after every browser backup?

I ran into the same issue. I wasn't able to find any error logs the last time I debugged this. I will try to fix this when I am back home. If you have any potential solutions I'd appreciate it.

This should be fixed in the latest update (which is currently pending approval). Please let me know if this is still an issue after the new update.


Failing test for FailureMode.Retry times: 1

I'm unclear about the meaning of the times argument. Does it mean try this job x times, or try it the first time and then retry it x times if it fails? I tried setting times to 1 and it didn't behave as expected, so I thought I'd open an issue about it.

since tries is attached to the failure mode itself, it's the number of retries, not the number of tries. so it tries once (the standard behavior for all queues), then retries tries times.
so if tries was 1, you should see two attempts in total, one try and one retry.

mind just updating this for 1.2.0? should be pretty easy


Consider more maintainers?

Thanks for this awesome package! 🚀
I wonder does this package needs more maintainers? If so, I would like volunteer myself.
Regarding myself, I serve as the primary maintainer for emacs-dashboard and one of the maintainers for lsp-mode. I have developed over a hundred Emacs packages. Hope I am qualified to help maintain this package.
I've already opened my first PR to this repo in #245. :)

Done, I've opened a feature request in #247.

@emil-vdw I've made you an owner of the organization. You'll be able to grant additional write access to contributors and even add new owners in the future.
@jcs090218 It's very welcome. We do need more hands!

It's very welcome. We do need more hands!

I've made a feature request in #247. Hope this will help this package get published to MELPA soon.


Optimize case_fold_and_combine_ranges?

I haven’t timed it, but the case_fold_and_combine_ranges function introduced in #78 is probably slow for large sets of character ranges like \p{Lu}. (That is, slow to parse/compile a regex.) It can probably be improved to not consider individual chars when we can determine that none in a given range (or subrange) is affected by case folding.

Yeah, I saw that. I'm not terribly concerned with parsing/compiling performance. I'll take a pass over it in my parser rewrite. (Which I'm doing as part of #29.)

I think I have at least this optimization implemented in the parser rewrite: https://github.com/rust-lang/regex/blob/new-parser/regex_syntax/src/lib.rs#L148

Nice! I feel it might be more clever still, but this seems to be a nice compromise of optimizing some (most common?) cases while keeping it relatively simple. Have you measured it before/after and against case-sensitive for large classes like \p{Lu}?

Not yet. Once I finish the rewrite, I'll add some benchmarks and maybe do some profiling to see if I can pick off low hanging fruit.
But yeah, I feel like the entire way classes are constructed (particularly canoncalizing them) could be more clever. The code is pretty short/clear now though. :)

Weird that github didn't close this. Fixed by #87.


Add craft-plugin composer installer compatibility by moving things ar…

Add craft-plugin composer installer compatibility by moving things around
The "craft-plugin" composer installer directive assumes the plugin files in the root of the repository, instead of in a subfolder "supertable". Therefore using this plugin requires you to write extra scripts to move things around after installing or updating. To avoid this hassle, I'd rather move things around at the core ;-)

Closing for now - this won't be implemented, but thanks all the same. I much prefer having a folder which is copy/paste ready to go. I also don't like to bundle readme's, screenshots, etc along with installs. See also #27.
Lets wait until the Plugin store, which will make all this meaningless (and likely work with Composer!)


VRP - Preassign Node to Vehicle Very Slow

Hi,
I have a vehicle routing problem where some nodes are preassigned to certain vehicles while some nodes can't be visited by certain vehicles.
Right now i'm attempting to solve this using routing.VehicleVar(index).SetValues() but the solver is running for hours without producing any result. The problem I'm dealing with has about 200-300 nodes, 50-60 nodes with vehicle constraints, and 6 vehicles.
I've tried experimenting with different first solution strategy but they all take hours to run without any results. Any tips on how to speed this up? or how should I model this problem differently?

It means the problem you created has no solution.
Please check your code.
Le sam. 10 août 2019 à 18:56, aunahale<EMAIL_ADDRESS>a écrit :

Hi,
I have a vehicle routing problem where some nodes are preassigned to
certain vehicles while some nodes can't be visited by certain vehicles.
Right now i'm attempting to solve this using
routing.VehicleVar(index).SetValues() but the solver is running for hours
without producing any result. The problem I'm dealing with has about
200-300 nodes, 50-60 nodes with vehicle constraints, and 6 vehicles.
I've tried experimenting with different first solution strategy but they
all take hours to run without any results. Any tips on how to speed this
up? or how should I model this problem differently?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1484?email_source=notifications&email_token=ACUPL3JAR3HP5BILOPBON7LQD5WTNA5CNFSM4IK2XZM2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HER4VXQ,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACUPL3KTPIVI4SQRBQAILBTQD5WTNANCNFSM4IK2XZMQ
.


Fix typo in Stack component

Which package has an issue?
@yamada-ui/react
Package Version
1.4.5
Description
fix fix-content to fit-content
Link to Reproduction
No response
Steps to Reproduce
No response
Browser
None
Operating System

[ ] macOS
[ ] Windows
[ ] Linux
[ ] iPadOS
[ ] iOS
[ ] Android

Do you know how to fix the issue?
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix?
Yes
Additional Information
No response

I'll try it.


Trying to implement it to a real project

Hi
I wanted to implement it to a real project, but it's a bit complicated.
Is there a way that for each rotation, I will get this rows:
-> Complete result for each BUY orders processed
-> Complete result for each SELL orders processed
Returning both of them no matter it is a BID or ASK.
SO I can for example update users balance, send notifications via websocket to update orderbook, update database order history etc...
Your help will be appreciated !

@bcashier  did you get an answer yet?
I'm wondering about the same stuff.
I'm also trying to keep a record of each order so I changed it to write to a RDB.

The order book is just part of an exchange, you will not find it here!
https://app.showdobitcoin.com.br/#/trade/BTC_USDT

order book
wallet
blockchain
WS
accounts
console
chart

etc...

Hi
I wanted to implement it to a real project, but it's a bit complicated.
Is there a way that for each rotation, I will get this rows:
-> Complete result for each BUY orders processed
-> Complete result for each SELL orders processed
Returning both of them no matter it is a BID or ASK.
SO I can for example update users balance, send notifications via websocket to update orderbook, update database order history etc...
Your help will be appreciated !

The order book is just part of an exchange, you will not find it here!
https://app.showdobitcoin.com.br/#/trade/BTC_USDT

order book
wallet
blockchain
WS
accounts
console
chart

etc...

The order book is just part of an exchange, you will not find it here!
https://app.showdobitcoin.com.br/#/trade/BTC_USDT

order book
wallet
blockchain
WS
accounts
console
chart

etc...

Hi
I wanted to implement it to a real project, but it's a bit complicated.
Is there a way that for each rotation, I will get this rows:
-> Complete result for each BUY orders processed
-> Complete result for each SELL orders processed
Returning both of them no matter it is a BID or ASK.
SO I can for example update users balance, send notifications via websocket to update orderbook, update database order history etc...
Your help will be appreciated !

The order book is just part of an exchange, you will not find it here!
https://app.showdobitcoin.com.br/#/trade/BTC_USDT

order book
wallet
blockchain
WS
accounts
console
chart

etc...

Great thank you.

Understood orderbook is only one service/module of exchanges.
It seems like the exchange you mentioned is not yet live?

Great thank you.

Understood orderbook is only one service/module of exchanges.
It seems like the exchange you mentioned is not yet live?

In fact it is just a demonstration of my platform, I rent it to customers, in this version I made a bot to simulate actions.
But my clients already use it normally.

Hi guys, hope you are doing well !
In order to implement it with other operations, the main thing is to use GOROUTINE ! So that you execute tasks simultaniousely.
And like @nilber said, an exchange requires many parts:

Wallet API
Blockchain Server
Web Sockets
Databases
Orderbook
Kline datas
KYC
etc.

And for each part, you have to choose the right technology, and in memory database is a requirment as same as containerzing parts for performances, and a way to interact between them etc, some technologies for example:

Apache Kafka (A Distributed Streaming Platform)
Redis (In memory database)
Rabbit MQ (Websocket)
MySQL/Postgres (Database)
Docker (Containerize each service)
Kubernetes and others....

You have to combine each of them to get the best performances possible.
@nilber What kind of technology do you use KLINE datas ? Timeline database ?
Thank you

What kind of technology do you use KLINE datas ? Timeline database ?

Hi @bcashier,
I made my own algorithm/micro service in C# that works in memory (for a quick return to the user) observing the public data via the exchange's websocket. From time to time it does a disk persistence for a possible reload.

@nilber You are loading chart datas in memory? Only the last XXXX Frames or for all time frames ?
What if someone load a year of data into the chart ? How will your micro service will manage this please ?
Thanks again !

@bcashier Exactly, everything is in a list in memory and a thread for each pair of trades, to be consuming the webservice and accumulating the totalizers in RAM, according to the maximum time and intervals configuration.
As the list is in memory, the microservice makes consultations in this list, at a very high speed, so I have practically no delay in a consultation of 1 month or 1 year.
there are some specific uses and lists for each pair and time interval, this helps to segment and be even faster.

@nilber Thank you sir !
By reading you, I just learned about Redis Time Series, I hear good things about it.
I was thinking to use ElasticSearch, I read everywhere that it is fast and support big datas easily.

@bcashier
I don't really like external tools, mainly because of the cost when you need scale.
I always prefer to try to develop solutions, if they are not going to take a lot of time, obviously. I usually do it when the development time will be less than the apprehension time


Use rows library to convert values

jarbas could use some library to automatically identify and convert data types (from strings) instead of doing it itself (like on this serialize method). The rows library does it automatically and will probably remove a lot of jarbas code if used here, so the import management commands will be easier to write and maintain.
This issue strongly related to https://github.com/datasciencebr/serenata-toolbox/issues/101
cc @cuducos

I think it's a great idea to use rows to better handle data input here in Jarbas!

[Just pasting From (closed) #198]
rows already deals with a lot of common issues related to reading a CSV file and serializing data. With that in mind maybe we ca reduce the LOC to maintain in this project if we use rows to deal with:

[ ] importing and serializing reimbursement data (basically handling this transformation)
[ ] importing and serializing suspicions data (basically handling this transformation)
[ ] importing and serializing companies data (basically handling this transformation and paying attention to the creation of Activity data)

@cuducos,I think I can do this.

Sounds great @Ilozuluchris — I got started one of these days (check #242), so you can either:

Cover the scripts I haven't covered yet (if I remember right, suspicions and company importion)
Continue from where I left opening a PR to my branch
Throw away my code and do it all by yourself

Third option sounds like exaggerating, but might make sense in one or another scenario. Anyway I strongly recommend you to follow the advices @turicas left as a code review to my WIP PR over there ; )

This issue still need to be done?

Yep… there’s two WIP but still at least one case to be covered: take a look in the discussion and drafts on #242 and #262 and count on me ; )


GetOpenFileName workaround

Windows case: It's not always possible to call COM's functions, because it can be failed or not available (for old win versions). How about to use old plain win API if COM failed with a workaround like this:
BOOL ShowOpenFileDialog(_Out_ LPTSTR szBuffer, _In_ UINT iBufferSize)
{
    IFileDialog *pfd = NULL;
    HRESULT hr = CoCreateInstance(CLSID_FileOpenDialog, NULL, CLSCTX_INPROC_SERVER, IID_IFileDialog, (void**)&pfd);
    if (SUCCEEDED(hr))
    {
        // use IFileDialog as needed...
        pfd->Release();
    }
    else
    {
        // use GetOpenFileName() as needed...
    }
}

I haven't found this approach in the library, but I think it should be useful. Your opinion?

There is, explicitly, no support for Windows XP in Native File Dialog right now. (See the readme). This is due to the fact that I am not using OpenFileDialog et al., and instead am using a Vista-level API. Some versions of XP support it, and they won't crash, but there is no guarantee.
I would be open to a pull request that implements nfd_win_legacy.cpp which detects the windows version, and calls APIs that are guaranteed to exist on earlier versions of windows. It should be possible to route these at runtime, so every version of windows is served by Native File Dialog without a recompile.


Hydration error using use_server_future when navigating in Fullstack

Problem
Hydration errors when navigating from a route to a route that has a use_server_future. Does not appear when refreshing the page, or going directly to the URL.
Steps To Reproduce
Steps to reproduce the behavior:

Run dx serve
Go to http://localhost:8080
Click the links until hydration error appears

main.rs
use dioxus::prelude::*;

#[cfg(feature = "web")]
fn main() {
    dioxus::web::launch::launch_cfg(App, dioxus::web::Config::new().hydrate(true));
}

#[cfg(feature = "server")]
#[tokio::main]
async fn main() {
    let app = axum::Router::new()
        .serve_dioxus_application(ServeConfig::builder().build(), App)
        .into_make_service();

    let listener = tokio::net::TcpListener::bind("<IP_ADDRESS>:8080")
        .await
        .unwrap();

    axum::serve(listener, app).await.unwrap();
}

#[derive(Routable, Clone)]
pub enum Route {
    #[route("/")]
    Home,
    #[route("/page")]
    Page,
}

#[component]
pub fn App() -> Element {
    rsx! {
        ErrorBoundary {
            handle_error: |_| rsx! {
                "Hmm, something went wrong."
            },
            SuspenseBoundary {
                fallback: move |_| rsx! {
                    "Loading..."
                },
                Router::<Route> {}
            }
        }
    }
}

#[component]
pub fn Home() -> Element {
    let _calculation = use_server_future(calculate)?.suspend();
    rsx! {
        Link {
            to: Route::Page,
            "Go to page"
        }
    }
}

#[component]
pub fn Page() -> Element {
    let _calculation = use_server_future(calculate)?.suspend();
    rsx! {
        Link {
            to: Route::Home,
            "Go to home"
        }
    }
}

#[server]
pub async fn calculate() -> Result<u32, ServerFnError> {
    Ok(1 + 1)
}

Cargo.toml
[package]
name = "hydration-navigation-error"
edition = "2021"
version = "0.1.0"

[dependencies]
axum = { version = "0.7.5", optional = true }
dioxus = { version = "0.6.0-alpha.1", features = ["fullstack", "router"] }
tokio = { version = "1.38.0", features = ["net", "sync"], optional = true }

[features]
default = []
server = [
  "axum",
  "dioxus/axum",
  "tokio",
]
web = [
  "dioxus/web",
]

Dioxus.toml
[application]
name = "Fullstack"
default_platform = "fullstack"
out_dir = "dist"

[web.app]
title = "Fullstack"

[web.watcher]
index_on_404 = true
watch_path = ["src"]

[web.resource.dev]
script = []

[application.plugins]
available = true
required = []

Expected behavior
The hydration error should not appear.
Screenshots

Environment:

Dioxus version:  0.6.0-alpha.1
Rust version: v1.80.0 and v1.82.0-nightly
OS info: Arch Linux
App platform: fullstack

Questionnaire

[x] I'm interested in fixing this myself but don't know where to start
[ ] I would like to fix and I have a solution
[ ] I don't have time to fix this right now, but maybe later

The new version of dioxus-cli proxies fullstack behind a different port. Here is an updated reproduction that works with dx serve:
use dioxus::prelude::*;

fn main() {
    launch(App);
}

#[derive(Routable, Clone)]
pub enum Route {
    #[route("/")]
    Home,
    #[route("/page")]
    Page,
}

#[component]
pub fn App() -> Element {
    rsx! {
        ErrorBoundary {
            handle_error: |_| rsx! {
                "Hmm, something went wrong."
            },
            SuspenseBoundary {
                fallback: move |_| rsx! {
                    "Loading..."
                },
                Router::<Route> {}
            }
        }
    }
}

#[component]
pub fn Home() -> Element {
    let _calculation = use_server_future(calculate)?;
    rsx! {
        Link {
            to: Route::Page,
            "Go to page"
        }
    }
}

#[component]
pub fn Page() -> Element {
    let _calculation = use_server_future(calculate)?;
    rsx! {
        Link {
            to: Route::Home,
            "Go to home"
        }
    }
}

#[server]
pub async fn calculate() -> Result<u32, ServerFnError> {
    Ok(1 + 1)
}


macOS build failure due to conflicting defines in gdbremote/signals.hh

This commit breaks building on macOS https://github.com/gem5/gem5/commit/7230a3e7f0f23621d9d09df3f7420c08a08cc118 as EXC_* are already defined in exception_types.h. I'm happy to submit a PR undef'ing these, but I'm not certain if that is the desired fix?

I'm a bit surprised this hasn't been caught as we often test on MacOS. Could you send your exact host setup (version of MacOS, etc.) and the exact build command you're using?
The solution is probably guarding these with #ifdef macos or something like that (I forget the exact syntax).

macOS Ventura 13.4.1. I am building with scons build/ALL/gem5.opt with clang 11.1.0. The error arises from libSystem 11.0.0:
libSystem-11.0.0/include/mach/exception_types.h:87:33: note: expanded from macro 'EXC_BREAKPOINT' #define EXC_BREAKPOINT          6       /* Trace, breakpoint, etc. */
I don't think guarding these with ifdef is the solution as the values don't match. Let me know if there is any other info on dependencies needed.

I can't reproduce this on my Mac but I'm on Apple Silicon (ARM). @austinharris is your Mac Intel/X86? I can believe there are errors there as we don't test on those.

Hi, I am facing the same build error as @austinharris on macOS Apple Silicon (ARM). I have included notes on my error and details about my build environment below.
Explanation of the problem
It seems that there are name conflicts between mach/exception_types.h and gdbremote/signals.hh for the following names:
EXC_BAD_ACCESS
EXC_BAD_INSTRUCTION
EXC_ARITHMETIC
EXC_EMULATION
EXC_SOFTWARE
EXC_BREAKPOINT

mach/exception_types.h uses these names in #define macros and sets them to integer constants (for example, #define EXC_BAD_ACCESS 1), but gdbremote/signals.hh uses these names as variants in the enum class gem5::GDBSignal (for example, EXC_BAD_ACCESS = 145). Due to the name conflict, gdbremote/signals.hh fails to build with the error expected identifier, because the macro expansion results in the code 1 = 145, which is an invalid assignment.
Caveats
@austinharris's build is using mach/exception_types.h from libSystem, while my build is using mach/exception_types.h from XCode (I have provided my error logs below). I'm pretty sure the contents of these two files are the same, but not certain. If @BobbyRBruce is not facing the same errors on his Apple Silicon (ARM) machine, it may be because mach/exception_types.h is somehow not being used in the build...?
Possible solutions

Use an #ifdef guard so that we do not define gem5::GDBSignal::EXC_* for macOS. However, as @austinharris mentioned above, mach/exception_types.h and gdbremote/signals.hh uses different values for these names. Moreover, gdbremote/signals.hh is using these names as variants within an enum class, not as a #define macro.
Change the names of the gem5::GDBSignal::EXC_* in gdbremote/signals.hh and across the gem5 codebase?
Somehow avoid compiling mach/exception_types.h so that there are no macro naming conflicts?

Please let me know your thoughts or if I am missing anything. I'm happy to help open a PR to get this fixed and tested.
Build Environment
CPU: Apple M1 Pro (2021)
OS: macos 13.3.1 (Ventura)
Compiler toolchain: gcc (Homebrew GCC 13.1.0) 13.1.0
Scons version: v<IP_ADDRESS>fd4f633e9ef3cafbc0fec35306d7555ffd1db
gem5 version: commit f29bfc
Here's the build command that I ran:
$ python3 `which scons` build/X86/gem5.opt -j9

And here's the error log lines:
In file included from src/cpu/o3/probe/elastic_trace.cc:43:
In file included from src/cpu/o3/dyn_inst.hh:53:
In file included from src/cpu/checker/cpu.hh:51:
In file included from src/cpu/base.hh:60:
In file included from src/sim/system.hh:65:
In file included from src/sim/workload.hh:37:
ext/gdbremote/signals.hh:171:5: error: expected identifier
    EXC_BAD_ACCESS = 145, //could not access memory
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/exception_types.h:68:33: note: expanded from macro 'EXC_BAD_ACCESS'
#define EXC_BAD_ACCESS          1       /* Could not access memory */
                                ^
In file included from src/cpu/o3/probe/elastic_trace.cc:43:
In file included from src/cpu/o3/dyn_inst.hh:53:
In file included from src/cpu/checker/cpu.hh:51:
In file included from src/cpu/base.hh:60:
In file included from src/sim/system.hh:65:
In file included from src/sim/workload.hh:37:
ext/gdbremote/signals.hh:172:5: error: expected identifier
    EXC_BAD_INSTRUCTION = 146, //illegal instruction/operand
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/exception_types.h:72:33: note: expanded from macro 'EXC_BAD_INSTRUCTION'
#define EXC_BAD_INSTRUCTION     2       /* Instruction failed */
                                ^
In file included from src/cpu/o3/probe/elastic_trace.cc:43:
In file included from src/cpu/o3/dyn_inst.hh:53:
In file included from src/cpu/checker/cpu.hh:51:
In file included from src/cpu/base.hh:60:
In file included from src/sim/system.hh:65:
In file included from src/sim/workload.hh:37:
ext/gdbremote/signals.hh:173:5: error: expected identifier
    EXC_ARITHMETIC = 147, //arithmetic exception
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/exception_types.h:75:33: note: expanded from macro 'EXC_ARITHMETIC'
#define EXC_ARITHMETIC          3       /* Arithmetic exception */
                                ^
In file included from src/cpu/o3/probe/elastic_trace.cc:43:
In file included from src/cpu/o3/dyn_inst.hh:53:
In file included from src/cpu/checker/cpu.hh:51:
In file included from src/cpu/base.hh:60:
In file included from src/sim/system.hh:65:
In file included from src/sim/workload.hh:37:
ext/gdbremote/signals.hh:174:5: error: expected identifier
    EXC_EMULATION = 148, //emulation instruction
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/exception_types.h:78:33: note: expanded from macro 'EXC_EMULATION'
#define EXC_EMULATION           4       /* Emulation instruction */
                                ^
In file included from src/cpu/o3/probe/elastic_trace.cc:43:
In file included from src/cpu/o3/dyn_inst.hh:53:
In file included from src/cpu/checker/cpu.hh:51:
In file included from src/cpu/base.hh:60:
In file included from src/sim/system.hh:65:
In file included from src/sim/workload.hh:37:
ext/gdbremote/signals.hh:175:5: error: expected identifier
    EXC_SOFTWARE = 149, //software generated exception
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/exception_types.h:82:33: note: expanded from macro 'EXC_SOFTWARE'
#define EXC_SOFTWARE            5       /* Software generated exception */
                                ^
In file included from src/cpu/o3/probe/elastic_trace.cc:43:
In file included from src/cpu/o3/dyn_inst.hh:53:
In file included from src/cpu/checker/cpu.hh:51:
In file included from src/cpu/base.hh:60:
In file included from src/sim/system.hh:65:
In file included from src/sim/workload.hh:37:
ext/gdbremote/signals.hh:176:5: error: expected identifier
    EXC_BREAKPOINT = 150, //breakpoint
    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/exception_types.h:87:33: note: expanded from macro 'EXC_BREAKPOINT'
#define EXC_BREAKPOINT          6       /* Trace, breakpoint, etc. */

Yip! Can reproduce here! My issue was I was compiling with clang. Annoying Mac overrides 'gcc' and 'g++' with clang, so I needed to explicitly compile gem5 with CXX=g++-13 scons build/X86/gem5.opt -j12 after brew install gcc for the error to work.
I'll work on fixing this.
(Short term solution for those needing to compile quick: Install and use clang. I think CXX=clang++ scons build/X86/gem5.opt -j12 will work.

It's okay! Thanks for taking a look at this. Hopefully we can resolve this soon.
Just want to confirm that using clang++ didn't fix the problem for me. 🥲
For the record, my clang++ --version will output the following:
Apple clang version 14.0.3 (clang-14<IP_ADDRESS>.1)
Target: arm64-apple-darwin22.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Hey @chenbobby (the other Bobby): Can you see if #209 fixes your issue?
I cannot recreate this on my end but I suspect your idea of renaming the EXC_ would fix things. Can you see if incorporating this change fixes things for you?
I'm honestly not entirely sure how important these values in "ext/gdbremote/signals.hh" are. I hope this doesn't break anything.

Does anyone know why mach/exception_types.h is included in gem5's build? I can't imagine that gem5's build needs a MacOS-specific file.

Hi @BobbyRBruce, #209 does indeed fix this issue for me. 🙌 🙏
I'm now dealing with some build issues with protobuf 😅

@chenbobby : Great!
I've never tried using protobuf on a Mac before. If the issue persists then, if you have the time, please log it as an issue. If there are bugs or pitfalls here then I doubt you're the only one to encounter them.
FYI: protobuf isn't required for gem5 compilation but you do need it for trace generation and playback functionality. If you don't need that then it's safe to remove.

Does anyone know why mach/exception_types.h is included in gem5's build? I can't imagine that gem5's build needs a MacOS-specific file.

I believe it is just included in every user-level program in order to handle exceptions such as system calls.

This issue is fixed by the merging of #209 (at least, for now, on the develop branch).


KAFKA-10401: Fix the currentStateTimeStamp doesn't get set correctly

Fix the currentStateTimeStamp doesn't get set in GROUP_METADATA_VALUE_SCHEMA_V3, and did a small refactor to use the GROUP_VALUE_SCHEMAS.size - 1 replace the default hard-coded max version number. Also add test for it.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@abbccdda @vahidhashemian @hachikuji , could you help review this PR? Thanks.

@ijuma , thanks for your comments. I've updated in this commit: https://github.com/apache/kafka/pull/9202/commits/ae5ae323f159afc9bb384252e45bef640531ea94. I'm also adding one more test to test the unsupported version exception thrown case. Thanks.

@ijuma , could you help review this PR again? Thanks.

merge the latest trunk to have auto-build

tests/Build/JDK 11 and tests/Build/JDK 15 test passed

@ijuma  , could you help review this PR again? Thanks.

@ijuma , thanks for your good comments/suggestions. I've updated in this commit: https://github.com/apache/kafka/pull/9202/commits/f01aaa643840c871d613c9e0af538b79519f2667. Thanks.

@ijuma , could you check this PR again? Thanks.

@ijuma , thanks for the comments. I've updated in this commit: https://github.com/apache/kafka/pull/9202/commits/97fe0a53d450d103e25dae0669c3ac803d7afe40. Thank you!

Merge the latest trunk so that the flaky tests (addressed in https://github.com/apache/kafka/pull/9294) can be fixed.

tests/Build/JDK 15: pass
tests/Build/JDK 8: pass
tests/Build/JDK 11: failed 1 test case which is not related to my change.
kafka.network.DynamicConnectionQuotaTest.testDynamicListenerConnectionCreationRateQuota failed

@ijuma , test result is listed in the previous comment. I think it's good to merge. Thanks.


Powertoys Run: More shortcut options

Summary of the new feature/enhancement
Right now, it seems like only Shortcuts in the format of "Alt + KEY" or "Ctrl + KEY" are supported. Some people have special keys or remapped keys (my Capslock is F15 for example) and would like to use these as shortcut. Right now, it's not transparent what would be an accepted shortcut and what wouldn't. Right now the best workaround is to remap not accepted key combinations to combinations that would be accepted. This is awkward.
I propose that users should have more freedom in setting their shortcuts.

Yup, we are working improving the keyboard shortcuts capability (see #2325). Closing this issue as a duplicate.


Menus

Start menu, in game menu, and end game menus.

Created menus with a new branch. They build, but don't work quite right yet.

Finished menu code.


Will the Keep Screen On switch affect the awakeness state of my PC?

Provide a description of requested docs changes
That is just a question, seemingly not mentioned in docs.

@dend
It's an interesting question.

is the question, if you have Awake off but have keep screen on, will your PC fall asleep?
Like this screenshot?

/needinfo

is the question, if you have Awake off but have keep screen on, will your PC fall asleep?
Like this screenshot?  /needinfo

yes, this is my question

The monitor will revert to the power settings state if Awake is in the "off" state.  I also verified this behavior.
Code:
https://github.com/microsoft/PowerToys/blob/97fdf033c88e2ad196d4567e3e33f822c90073f1/src/modules/awake/Awake/Program.cs#L304-L339

https://github.com/MicrosoftDocs/windows-dev-docs/pull/4162 tweak on language


NTR autosomal genomic imprinting

Working with @colinlog on genomic imprinting
We need a new term to describe genomic imprinting of autosomal genes
Child of GO:0071514 genomic imprinting
sibling of GO:0060819 'inactivation of X chromosome by genomic imprinting'

+[Term]
+id: GO:0141068
+name: autosomal genomic imprinting
+namespace: biological_process
+def: "The establishment of epigenetic modifications (imprints) in autosomal (non-sexual) chromosomes during gametogenesis, and propagation of these imprints during the organism's life. Genomic imprinting leads to an asymmetry between the maternal and paternal alleles and differential expression of the corresponding alleles. This can happen through heterochromatin formation or differential chromatin loop formation." [PMID:31782494]
+is_a: GO:0071514 ! genomic imprinting
+property_value: term_tracker_item "https://github.com/geneontology/go-ontology/issues/25563" xsd:anyURI
+created_by: pg
+creation_date: 2023-06-16T13:21:42Z


QA: comment incentives based on their html tags

QA: comment incentives based on their html tags

/start


FE: the cards ui are not obvious that you can click on them

In user tests, no one clicked "into" or on a card to get to the full card page. We need to make it more obvious that cards can be clicked on

added a slight translate y on hover, this is what other platforms use https://github.com/webaverse/webaverse.com/commit/dbaa292cb4d6013b85bd41b62954f8bb5082e224


netsuite custome segment import settings page changes

This PR comments are fixed in https://github.com/fylein/fyle-integrations-app/pull/776


Go Code suggestions

:wave: Hello
I saw your project was using my HackerNews API bindings go-hn and wanted to contribute some changes back to improve the readability of the go code. This is not criticism of your code by any means and mostly represents Effective Go suggestions.
I've tried to keep each commit specific to a few ideas, reading the commits individually will be a lot easier than scrolling through the entire PR. Don't feel inclined to merge this PR for whatever reason, I did this mostly for fun :slightly_smiling_face:
Further suggestions

It would be a good idea to take a stab at removing all of the log.Print/Fatal and instead bubble errors back up through your application using return fmt.Errorf("something went wrong: %w") so that all of the context of an error will be wrapped up together when you log it higher up. Blog post about error wrapping
Prefer having a small main function that kicks off the control flow for the application, right now there's a lot to read to get a picture of how the application works.
Function signatures like story *stories.Story, storyItem *hnapi.Story, commentItem *hnapi.Comment are usually a hint that you might want to write an interface to find the common denominator between the types you're passing around.
Use a linter like golangci-lint and make it easy to run locally and on the repository via GitHub actions or another CI platform if you'd like.
A lot of the diff in this PR is related to reducing indentation. I see this project uses badger, take a look through the source and you'll rarely see more than 2-3 indentations.
Right now this code seems hard to write automated tests for (such as UpdateStories). If you pass in a client rather than create one in that function you could more easily pass in a "fake" client that you could use to respond with bad data or just prefer to pass in all the data that function needs rather than have it do a lookup.

Awesome! Your library is a crucial component of this tool and I welcome this gesture 🙏 .
TBH this was a one day project where I scrapped together code from my service which sent HN items to Kindle via email and so didn't bother much about the quality of the code.
With your help of your PR and suggestions, I'll revisit the code.

@abishekmuthian great to hear, let me know if I can help!

Going to close this PR and delete my fork for the time being, but it could still be useful if you want to revisit the codebase.

Hey, Apologies for the delay. I was planning to review this over next weekend. I'm a time-constrained person and so I wasn't able to prioritize this.

I've made a release v0.0.7 with these changes.
Once again, Thank you for taking the time to fix my laziness & carelessness; I also learnt few new tricks like using type assertions with your library and passing fake client to write test cases.


Playlist timeline indicator only updated while mouse is moved

Issue type
I'm submitting a ...  (check one with "x")

[X] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Issue description
Open the sample provided at http://akveo.com/ngx-admin/?utm_source=nebular_documentation&utm_medium=footer#/pages/dashboard. Start the playlist to play the first song. The timeline indicater only updates when the mouse is moved. If you do not move the mouse, the music plays, but the position indicator is not updated.
Other information:
npm, node, OS, Browser
Chrome Version 67.0.3396.99 (64-Bit)

+1


Support nested where clauses

It would be nice to support nested conjunctions/disjunctions (AND/OR) for creating complex where clause queries.
Example from the Prisma docs:
const users = await prisma.user.findMany({
  where: {
    OR: [
      {
        name: {
          startsWith: 'E',
        },
      },
      {
        AND: {
          profileViews: {
            gt: 0,
          },
          role: {
            equals: 'ADMIN',
          },
        },
      },
    ],
  },
})

Haven't looked into implementing this, but would probably require checking for a special property like AND or OR and handling the property accordingly.

If it's easier, the library could support non-recursive queries first, and add recursive functionality later? So these queries would be supported:
// Supported currently
const users = db.user.findMany({
  where: {
    name: {
      equals: "something",
    },
  },
});

// NEW: single layer disjunction (OR)
const users = db.user.findMany({
  where: {
    OR: [
      {
        name: {
          equals: "something",
        },
      },
      {
        email: {
          contains<EMAIL_ADDRESS>        },
      },
    ],
  },
});

// NEW: single layer conjunction (AND)
const users = db.user.findMany({
  where: {
    AND: [
      {
        name: {
          equals: "something",
        },
      },
      {
        email: {
          contains<EMAIL_ADDRESS>        },
      },
    ],
  },
});

Hey, @camchenry. That's a good proposal. I believe your recursive AND example is missing an array, right?
const users = await prisma.user.findMany({
  where: {
    OR: [
      {
        name: {
          startsWith: 'E',
        },
      },
      {
-        AND: {
+        AND: [{
          profileViews: {
            gt: 0,
          },
          role: {
            equals: 'ADMIN',
          },
        },
-      },
+      }],
    ],
  },
})

If I understand that API correctly, both OR and AND support a list of values but treat matches in those list differently:

OR is basically list.some()
AND is list.every()

Please, would you be interested in lending us a hand once more?
I think the barebone for this feature would be to extend the compileQuery function somewhere along these lines:
https://github.com/mswjs/data/blob/154d5b556970d9a7c09ba9c49e86ec7887620b07/src/query/compileQuery.ts#L28
We can separate the regular which object handling in a new function and then check if where.OR or where.AND exist, and execute that separated function on their lists, treating the matches accordingly.

@kettanaito I'm actually not sure about the missing braces, I took these examples from the Prisma docs, and there's a few examples where they don't have any brackets. I'm not familiar enough with the difference, but I think if it makes things easier for us to implement, we should just stick to explicit braces for the time being.
I can try to dive into this later, I'm working through adding some more mock APIs in my company's main product, which is how this came up. We have a custom syntax for doing query filtering that looks like /Api?Filter=Name eq 'Something' AND Active eq 'true' which gets converted into a list of filters like [{ field: 'Name', operator: 'eq', value: 'Something' }]. I wanted to be able to convert that into a roughly equivalent query in a pretty straightforward manner.

I've used Prisma a little bit lately, but haven't managed to utilise the AND and OR operators. Nevertheless, I'd like to share my assumptions about that, given what I managed to understand based on Prisma docs, which may give you some insights on how it could be developed further.
As mentioned in readme, the query API is inspired by Prisma and I believe that would be a good choice to extend it in the same way how Prisma is handling queries.
If it comes to the example provided in the issue description, I believe it's a valid syntax in Prisma. If I understood it correctly the AND operator can take an array of conditions, for example
const users = await prisma.user.findMany({
  where: {
    AND: [
      { // 1st condition
        profileViews: {
          gt: 0,
        },
      },
      { // 2nd condition
        role: {
          equals: "ADMIN",
        },
      },
    ],
  },
});

or an object with keys, that each keys is some condition
const users = await prisma.user.findMany({
  where: {
    AND: {
      profileViews: { // 1st condition
        gt: 0,
      },
      role: { // 2nd condition
        equals: "ADMIN",
      },
    },
  },
});

or as mentioned in https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#get-all-post-records-where-the-content-field-contains-prisma-and-published-is-false-no-and the AND can be omitted, for example
const users = await prisma.user.findMany({
  where: {
    profileViews: { // 1st condition
      gt: 0,
    },
    role: { // 2nd condition
      equals: "ADMIN",
    },
  },
});

If I got it correctly, all the examples should return the same result, however I'm not an experienced Prisma user and it would be worth it to verify that behaviour - querying admins with at least 1 profile view.
Similarly the OR could take an array of conditions or an object with keys. In case of an object it would allow to specify conditions like key1=value1 OR key2=value2
const users = await prisma.user.findMany({
  where: {
    OR: {
      key1: {
        equals: value1,
      },
      key2: {
        equals: value2,
      },
    }
  },
});

However if someone would like to define condition like key1=value1 OR key1=value2 (conditions with the same key1), it will be required to use an array, for example
const users = await prisma.user.findMany({
  where: {
    OR: [
      {
        key1: {
          equals: value1,
        },
      },
      {
        key1: {
          equals: value2,
        },
      },
    ],
  },
});

As mentioned before, I'm not 100% sure if that's the way how it's handled by Prisma, but that's how I understood it after reading the docs. If I'll have some free time, I'll try to verify that assumption on a project I'm working on, which is using Prisma and share results here 😉

Thanks for investigating this, @roertbb! I'm all hands for adopting AND and OR in this library but I could use a hand in doing so. We can start small and implement a special OR property on the where clause first, and then gradually move from that. I will be happy to help with code review to whoever finds the courage to build this!

wouldn't it be easier to use the graphql parser?
https://dgraph.io/docs/graphql/queries/and-or-not/
https://graphql.org/graphql-js/language/

Hey, @JasieBasie. This will be supported in the next version of this library, I'm currently testing this very functionality. The next version is unlikely to be released this year.


YouTubeLiveChat.sendMessage method doesn't work

Trying to use sendMessage method leads to the error below:

After some further research figured out that the problem is in response from https://www.youtube.com/live_chat?continuation= in getInitialData method of YouTubeLiveChat class, which doesn't contain the needed "params" parameter as the request is somehow not authenticated while having all ids in cookie header. After intercepting the https://www.youtube.com/live_chat?continuation= request in a logged in session in browser i have got this as headers of a request being sent:

I might be missing out on something but I cant see any of the headers added in YouTubeLiveChat.getHeader method apart from cookie header in the headers in the screenshot above. I have tried using those headers and still not getting an authenticated response. The only guess is that some cookie values are supposed to be generated uniquely.

A lot of time has been passed until the last update of this project, so I will update the whole code.
Thank you for your notification.

I found most of the code are still working properly.
This issue is caused by lack of some cookies.
We don't need X-Client-Data to use YouTube's live chat.

I uploaded new version 1.6.
This will fix the problem. Please try it.

Thanks for replying to the issue, I didnt give any updates on it but i managed to make it work recently also by adding the whole cookie string as a header so pretty sure the new version will work. However, there is now an issue with some cookies which a being generated once in couple of minutes and are also compulsory to authenticate sendMessage request. For generating the params element of sendMessage payload I have taken the encoding logic from a different project in Typescript, whose dev reverse engineered the prams generation, but still wondering how to get the dynamically generated cookies.

All good, the cookies only expire if the RotateCookies request is called so to make cookies not expire just need to have no active session of the account in browser


Update CDN firebase link to 3.6.0 version

Description
This is just an update to update the firebase js lib references to the 3.6.0 version available here:
https://www.gstatic.com/firebasejs/3.6.0/firebase.js

Thanks!


Use player on custom design

How would one go about either redesigning or moving the player into my already built template?

To further explain, i only want to display files listed in the database.
For example, my database contains lessons that teachers have given in college as magnet address
so its: id, title, fileurl, teacher
1, Computer Science Lecture 1, magneturlhere, Mr John Doe
How would i use your player to stream them instead of requesting the input from the user?
watch.php?class=1
This will then load the page with the correct video to play, rather than request them to paste the link in

@ferrolho Just to confirm i don't need the PHP, that is fine


Remove aliases for PILToTensor and pil_to_tensor()

As noted in https://github.com/pytorch/vision/pull/6433#discussion_r971759989, sometimes PIL.Image is used to store masks. Consistently the pil_to_tensor shouldn't be an alias of to_image_tensor. More arguments can be made about this when considering that to_image_tensor is a generic method that handles numpy arrays and tensors.
In this PR I remove the aliases of PILToTensor and pil_to_tensor() and make them standalone. I also replace the use of to_image_tensor with pil_to_tensor when this is beneficial speedwise.

@pmeier Yes it would make this PR obsolete but you would need many many other changes across the code-base to rewrap the objects to features.Image. Also a week ago or so you advocated to make to_image_tensor() return a features.Image to push users to the new API, which is the opposite of what you propose here.
Let me know if you have strong preference towards which direction.

Also a week ago or so you advocated to make to_image_tensor() return a features.Image to push users to the new API, which is the opposite of what you propose here.

True. I didn't take this use case, i.e. using to_image_tensor into account. If we want to use it in the sense "Here is an image like object. Please give me a tensor back", using it for masks seems like a good thing to do. If we only want to use it for images, we need a canonical way how masks are handled.
With the change in this PR we will have pil_to_tensor for masks and to_image_tensor for images, correct? Plus, the result for masks will also have to be wrapped into a features.Mask manually.

you would need many many other changes across the code-base to rewrap the objects to features.Image

Does it actually? I mean, internally a torch.Tensor is treated the same as a features.Image. The only difference is that the former has no color space information attached to it. Basically all transformations apart from color space conversions should work out of the box without wrapping.

Let me know if you have strong preference towards which direction.

Same here, but I'm leaning towards using to_image_tensor as common entry point for image like objects that afterwards have to be wrapped manually. The only thing bothering me is the term "image" in the name, but we can't use to_tensor for obvious reasons. Maybe we can name it image_to_tensor?

Does it actually? I mean, internally a torch.Tensor is treated the same as a features.Image. The only difference is that the former has no color space information attached to it. Basically all transformations apart from color space conversions should work out of the box without wrapping.

What I mean is that if you make to_image_tensor() return a pure tensor, you will have to go everywhere in the code and do manual wrapping to feature.Image.

Same here, but I'm leaning towards using to_image_tensor as common entry point for image like objects that afterwards have to be wrapped manually. The only thing bothering me is the term "image" in the name, but we can't use to_tensor for obvious reasons. Maybe we can name it image_to_tensor?

I think you have lots of unanswered questions. This PR addresses a real issue, aka the fact that PIL images have the need to be converted to tensors and that to_image_tensor() is not the right method for it. Maybe you are on to something, but your idea is not yet clear. I'll merge this PR to address the immediate issue as this aligns with what we have agreed so far and your past proposals. Happy to discuss a proposal that revises the name when you have it. It's OK if we end up removing parts of this PR in that process.


Franz Helper is killing my Mac

Describe the bug
"Franz Helper" CPU usage constantly nearly at 50%.
To Reproduce
Just start Franz and wait a few seconds...
Expected behavior
No high CPU usage of "Franz Helper".
Screenshots

Desktop (please complete the following information):

OS: MacOS Mojave 10.14.3
Chrome Version 71.0.3578.98 (Offizieller Build) (64-Bit)
Franz Version: Version 5.0.0-beta.24 (5.0.0-beta.24.1110)

IMPORTANT

If I disabled the Facebook messenger, everything is okay!

I guess it is related to: https://github.com/meetfranz/franz/issues/24

Same here, seems that after a recent update, Franz is killing my Mac - Franz Helper is eating almost half of the CPU, very similar to the screenshot above.
The culprits seem to be Messenger and Discord. Is there a way to find out which service it is? Except for clicking on disable for each service until I find the process that generates the load. And is there a way to see what the process is doing? (JavaScript calls or anything like that).
I think it would be great to use the freezing feature of chrome and disable the processing in background "tabs" for most of the time. I don't need an instant notification, so the service can be frozen for 55 seconds out of a minute in order not to generate load and consume battery.
Franz has become totally unusable for me lately, if I want to travel and preserve the battery, I just have to kill it.
(I have the latest model Macbook Pro, so no old computer issue, everything is up to date)

Same issue here. How do you know which service is responsible? @jooray

Messenger and Discord use the most CPU.
I think what would be useful would be to freeze the windows in the background for configurable intervals (for me, even one minute would be OK) and then let them run event loop for a few seconds.
I don't need all the tabs to be constantly active in the background, I just need fast access to an account without needing to log in again.
Also the event loops that check the badge every second should be configurable I think. For example for me even once per 10 minutes badge is enough.

Got the same problem here with microsoft teams - constant 18-25% CPU usage

OS: MacOS Mojave 10.14.3
Chrome Version 72.0.3626.119 (Offizieller Build) (64-Bit)
Franz Version: Version 5.0.0 (<IP_ADDRESS>6)

Same Problem as well. For me it seems to be slack, as soon as I start it my Mac gets crazy.
OS: MacOS Mojave 10.14.3
Chrome: Version 72.0.3626.119
Franz Version: Version 5.0.0 (<IP_ADDRESS>6)

I just posted a similar issue report before I saw this thread... it seems closing and reopening helped a little but after a while it ramps again

Franz is not usable anymore, will switch back to Rambox. So sad that even such critical bugs are not beeing fixed...

any idea how to stop franz on mac to auto-update?

Did the new version Version 5.0.1-beta.1 (5.0.1-beta.1.1221) fix this issue? I noticed it's there but no mention of this bug in the changelog.

I'll give it a try ... ;-)

Not fixed. Franz is not usable anymore. So sad!

Not fixed :(

Franz Helper using the 150% of my CPU! The computer's fan is running like there's no tomorrow. Suggestions?

switch to https://rambox.pro and the problem is gone.

I'm running Mojave and the CPU usage is insane with Franz Helper.  I'm trying to Catalina to see if that helps.

I switched to Rambox I couldn't deal with the resource death on my 2013
Macbook Pro
[image: View my portfolio] http://secondvariety.org
Jamie Archer
UX/UI Designer | Interaction Design | Digital Project Manager
<EMAIL_ADDRESS>WhatsApp +44 7512 834 168
Tel. +30 698 558 79 70
http://secondvariety.org
[image: Twitter] https://twitter.com/ApacheSenzala [image: Facebook]
https://web.facebook.com/jamie.d.archer [image: Instagram]
https://instagram.com/apachesenzala [image: LinkedIn]
https://www.linkedin.com/in/jamiearcher/
On Sat, Oct 26, 2019 at 12:58 AM djxcee<EMAIL_ADDRESS>wrote:

I'm running Mojave and the CPU usage is insane with Franz Helper. I'm
trying to Catalina to see if that helps.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/meetfranz/franz/issues/1277?email_source=notifications&email_token=ABSKSLTFWQ2ZFLE44UHIYZDQQNTY5A5CNFSM4GWREINKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECJVNMI#issuecomment-546526897,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSKSLXUNATZ5NPRKTYERATQQNTY5ANCNFSM4GWREINA
.


x/tools/gopls: show progress report when gopls is downloading a module

@ardan-bkennedy suggested that we should try to use the progress reporting functionality of LSP to indicate when a module is being downloaded by go/packages.
This will be tricky because only go/packages knows that it's downloading a module. My current best guess at how to do this is to put something in the config's Logf function...or maybe use a trick like packagesinternal?

If the internal/telemetry experiment is a success we could instrument the go/packages library using it and then gopls could register an exporter that tracks progress and reports it easily (the same way it already intercepts log messages and sends them as "window/logMessage")
It would also replace the existing Logf hooks in a much cleaner way.

Using the Logf function
One possible way is to use the Logf function in the configuration to log messages about the start and end of the module download
Using packagesinternal:
If you want to keep the implementation details hidden, you can use an internal package (packagesinternal) to put these features in it.


grilo: 0.2.12 -> 0.2.14, grilo-plugins: 0.2.13 -> 0.2.16

Things done

[x] Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
Built on platform(s)

[x] NixOS
[ ] OS X
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Fix #14717
GNOME Music 3.18 requires a more recent version of the 0.2.x series of
Grilo and its plugins to work.

/cc @lethalman @DamienCassou

Travis passed, thanks.


Incorrect hover in infoview for lambda binders

Enter the following:
#check fun _x : Nat => ()

A message appears in the infoview:
fun _x => () : Nat → Unit

Hover on the _x here, and you are presented with a tooltip containing:
fun _x => () : Nat → Unit

hovering on the _x here pops up another similar tooltip, and so on.
It should instead show a hover saying:
_x : Nat

This is especially important because function binders by default do not show their types (unless you use set_option pp.funBinderTypes true), so this foils the natural method of seeing what the type is (although you can deduce that the type is Nat because it says Nat → Unit on the right).

Possibly duplicate of #1618?


feat(spotlight): show total volume column

Volume data is total of all 'BUY' events of all user nfts
PR type

[x] Feature

Before submitting this PR, please make sure:

[x] Code builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've didn't break any original functionality
[x] I've posted screenshot of demonstrated change in this PR

What's new? (may be part of changelog)

This PR closes #626
This PR closes #914

Screenshot

Did for the Lisbon


Fixes #67: Bug while grouping notifications

References #67

Changes made in this PR:

Notification IDs are no longer taken from the getNotifId() method in UserAccount. Instead, the module id is directly used. The old method has been removed.
Similarly, course id is used as group id for grouped notifs. This mostly solves the issues with groupedNotifications, and makes the existing method redundant. Hence, it has been removed.
The "New content in" string being prefixed to notifs has been removed to make them look better. Purely aesthetic.


Upgrade ESLint libs and plugins and fix linting issues

Upgrade ESLint libs and plugins.
Disable several rules that don't make sense.
Fix other issues that do.

Based on the 'spell-check' PR.

(i.e., #2951 )

Rebased. (also #2951 was merged)

I get this error:
/home/greg/z/mobile/src/types.js
  485:45  error  Prefer commas to semicolons in object and class types  flowtype/object-type-delimiter
  486:36  error  Prefer commas to semicolons in object and class types  flowtype/object-type-delimiter

which is on this code:
export interface Dispatch {
  <A: Action | NavigateAction>(action: A): A;
  <T>((Dispatch, GetState) => T): T;
}

If I make those into commas, then on save prettier-eslint turns them back into semicolons. Would you sort that out one way or another? I don't have a view on which answer is preferable.

Separately: it's awkward that the first commit here causes a huge number of lint errors; that can make it harder to diagnose other issues later, among other things. Can we put the rule changes first, and the upgrade at the end?
If it isn't easy to 100% do that, let's at least do as much of it as we easily can. Then we can take a look at what the hard part is.

Closing as severely outdated.


emergency=mountain_rescue - Icon and more fields needed

In the Alps there are mountain rescue stations in many places. An icon in iD would be very good. In addition, certain fields should be activated by default, such as the address, the website, e-mail address and the operator.

I would like to work on it.

Hi, Thank you for allowing me to work on this issue. I was able to solve the issue. Also, I have attached a screenshot of my work. It would be great if you could let me know if there are any further modification needed with the current change.

Looks good so far.
Maybe you could adjust the icon so that we can distinguish it from a regular rescue station.
Possibly a mountain with a red cross as an icon.

Does there exist any icon like this or I should leave it with an ambulance icon and create an issue for a new icon?
@bhousel

I have made a PR #7323 with an ambulance icon for now. Any suggestions on that?
@quincylvania @bhousel

Icon is ready to be integrated: https://github.com/MarkusGaugg/iD/pull/1


ValueError: stat: path too long for Windows

An error pop-up once trying to pass string like mt940.parse(f.read())
In line 44 is a check:
elif os.path.isfile(src):
which crach once provide str under Windows.
Solution is to move it after: elif hasattr(src, 'decode'):
fixed code looks like:
if hasattr(src, 'read'):  # pragma: no branch
        data = src.read()
    elif hasattr(src, 'decode'):
        exception = None
        encodings = [encoding, 'utf-8', 'cp852', 'iso8859-15', 'latin1']

        for encoding in encodings:  # pragma: no branch
            if not encoding:
                continue

            try:
                data = src.decode(encoding)
                break
            except UnicodeDecodeError as e:
                exception = e
        else:  # pragma: no cover
            raise exception
    elif os.path.isfile(src):
        return parse(open(src, 'rb').read())
    else:  # pragma: no cover
        data = src

The problem with that is that a filename is a regular string so it also has a decode attribute. So changing the order changes the behaviour
What kind of error are you receiving exactly? Perhaps it can be fixed through a try/except instead?

Getting an error as it is in the topic: ValueError: stat: path too long for Windows
I am not opening a file, I am providing string as a parameter. Once doing that string doesnt have decode attribute so first if is skipped. Which is correct.
Next one in original code is: elif os.path.isfile(src): and python is trying to check is it a file (I didnt activated long path in python instalation wizard) and script crash at this step as trying to parse long string as path.
In my case it should be handle by 3rd part of check which is: elif hasattr(src, 'decode'): this is why I have changed an order for time beeing to fix an error.
actually it found decode attribute in string and never tried to check is it a file.
I agree it can be handled by try/except and probably it is a better idea.

Oops... forgot about the title :)
I've released a new version that incorporates the fix. Can you verify if it works for you?


Fix race condition for DisaggSnapshot

What problem does this PR solve?
Issue Number: ref https://github.com/pingcap/tiflash/issues/6827
Problem Summary:
Meet following fault in test environment:
       0x72f0621	faultSignalHandler(int, siginfo_t*, void*) [tiflash+120522273]
                	libs/libdaemon/src/BaseDaemon.cpp:220
  0x7fb576f13420	<unknown symbol> [libpthread.so.0+82976]
       0x72ca124	DB::DM::Remote::DisaggReadSnapshot::empty() const [tiflash+120365348]
                	dbms/src/Storages/DeltaMerge/Remote/DisaggSnapshot.cpp:58
       0x7b9fdc5	DB::DM::Remote::WNDisaggSnapshotManager::unregisterSnapshotIfEmpty(DB::DM::DisaggTaskId const&) [tiflash+129629637]
                	dbms/src/Storages/DeltaMerge/Remote/WNDisaggSnapshotManager.cpp:45
       0x7f3f036	DB::FlashService::FetchDisaggPages(grpc::ServerContext*, disaggregated::FetchDisaggPagesRequest const*, grpc::ServerWriter<disaggregated::PagesPacket>*) [tiflash+133427254]
                	dbms/src/Flash/FlashService.cpp:796
       0x8fede1e	std::__1::__function::__func<tikvpb::Tikv::Service::Service()::$_61, std::__1::allocator<tikvpb::Tikv::Service::Service()::$_61>, grpc::Status (tikvpb::Tikv::Service*, grpc::ServerContext*, disaggregated::FetchDisaggPagesRequest const*, grpc::ServerWriter<disaggregated::PagesPacket>*)>::operator()(tikvpb::Tikv::Service*&&, grpc::ServerContext*&&, disaggregated::FetchDisaggPagesRequest const*&&, grpc::ServerWriter<disaggregated::PagesPacket>*&&) [tiflash+150920734]
                	/data3/jaysonhuang/tiflash-env-13/sysroot/bin/../include/c++/v1/__functional/function.h:345
       0x9036925	grpc::Status grpc::internal::CatchingFunctionHandler<grpc::internal::ServerStreamingHandler<tikvpb::Tikv::Service, disaggregated::FetchDisaggPagesRequest, disaggregated::PagesPacket>::RunHandler(grpc::internal::MethodHandler::HandlerParameter const&)::'lambda'()>(grpc::internal::ServerStreamingHandler<tikvpb::Tikv::Service, disaggregated::FetchDisaggPagesRequest, disaggregated::PagesPacket>::RunHandler(grpc::internal::MethodHandler::HandlerParameter const&)::'lambda'()&&) [tiflash+151218469]
                	contrib/grpc/include/grpcpp/impl/codegen/method_handler.h:44
       0x903623a	grpc::internal::ServerStreamingHandler<tikvpb::Tikv::Service, disaggregated::FetchDisaggPagesRequest, disaggregated::PagesPacket>::RunHandler(grpc::internal::MethodHandler::HandlerParameter const&) [tiflash+151216698]
                	contrib/grpc/include/grpcpp/impl/codegen/method_handler.h:206
       0x8a30d89	grpc::Server::SyncRequest::ContinueRunAfterInterception() [tiflash+144903561]
                	contrib/grpc/src/cpp/server/server_cc.cc:433
       0x8a30b98	grpc::Server::SyncRequest::Run(std::__1::shared_ptr<grpc::Server::GlobalCallbacks> const&, bool) [tiflash+144903064]
                	contrib/grpc/src/cpp/server/server_cc.cc:421
       0x8a40737	grpc::ThreadManager::MainWorkLoop() [tiflash+144967479]
                	contrib/grpc/src/cpp/thread_manager/thread_manager.cc:211
       0x8a41001	grpc::ThreadManager::WorkerThread::WorkerThread(grpc::ThreadManager*)::$_0::__invoke(void*) [tiflash+144969729]
                	contrib/grpc/src/cpp/thread_manager/thread_manager.cc:36
       0x8dd517c	grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*) [tiflash+148722044]
                	contrib/grpc/src/core/lib/gprpp/thd_posix.cc:110
  0x7fb576f07609	start_thread [libpthread.so.0+34313]
                	/build/glibc-SzIz7B/glibc-2.31/nptl/pthread_create.c:477

What is changed and how it works?
Add locks for missing paths.
Check List
Tests

[ ] Unit test
[ ] Integration test
[x] Manual test (add detailed scripts or steps below): WIP
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/merge


damage frequency string message not working

@codymccoy is this still an issue? I've lost track.

Or we just leave it and back away slowly.

@codymccoy why are lines 519 - 521 required? It seems like if line 516 is true then it must be that line 519 is true, though I could absolutely be missing something. In any case, I've changed the string to "FrequencyDamage"


Experimental scalajs module splitting support

New PR which replaces previous PR https://github.com/com-lihaoyi/mill/pull/1573 where I messed up with branch rebase and not sure how to recover it - sorry for the chaos.
It takes into account comments from the previous PR.

common part of the tests has been refactored
scala 3.0 tests now pass
code style issues fixed

Open issues:

test, run use old fastOpt and I am not actually sure what it shoud do for multi module output
mima check failures but they are all over the palce not just part which I changed

Looks like this draft PR is now obsolete and we can close it.
Related:

#1851


App Crashes and shows unable to load CallKitLogo message for incoming call in IOS

App Crashes and shows unable to load CallKitLogo message for incoming call in IOS

@prenCodePad How did you solved this?

Hi, I noticed that my token was not being sent properly, I fixed the token
part and it worked fine from then.
Regards,
Praveen Pilli.
On Wed, Dec 7, 2022 at 8:16 AM MingSern @.***> wrote:

@prenCodePad https://github.com/prenCodePad How did you solved this?
—
Reply to this email directly, view it on GitHub
https://github.com/hiennguyen92/flutter_callkit_incoming/issues/206#issuecomment-1340299797,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUYKHI5NZC5KMDZQ3CLH6GTWL73AZANCNFSM6AAAAAASHROFIU
.
You are receiving this because you were mentioned.Message ID:
@.***>

@prenCodePad Can you show me how you send it?

@prenCodePad I see, thanks


feat: add node as v2 tool

@viceice Currently working on the npm conversion. WIll do both together in this one, so that I can refactor some code to make it more composable.


getting latest fixed to live

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/helpers/Converters.md
:white_check_mark:Succeeded
View

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


Add images: Android Basics with Compose

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-add-images?hl=vi&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-3%3Fhl%3Dvi%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-add-images#2
In which task and step of the codelab can this issue be found?
task 3
Describe the problem
when i added this line into the first of MainActivity.kt, its still error
import androidx.compose.foundation.Image
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

Hi @trleminhduy
Thank you for writing in and bringing this issue to our attention.
The lesson has been updated to address it and the revised lesson will be republished again in the near future.
Hope you are enjoying the course!
Regards.


UI translation strings used before data is loaded

Reported this in Slack, but have realised it doesn't always happen and is something of a race condition. Opening this issue to better keep track of this.
My understanding is that with the changes to bundled data being pulled in live instead, the main UI is created before these translation strings are pulled in which results in:

Thanks for the reminder - yes I did forget about this.  A lot is changing with iD internals right now.


Performance problem looking up line markers for specs2 tests

Getting a lot of the following messages in the idea.log:
WARN - eInsight.daemon.LineMarkerInfo - Performance warning: LineMarker is supposed to be registered for leaf elements only, but got: InfixExpression (class org.jetbrains.plugins.scala.lang.psi.impl.expr.ScInfixExprImpl) instead. First child: Literal (class org.jetbrains.plugins.scala.lang.psi.impl.base.ScLiteralImpl)

It is also visible when opening the file -- the run marker for the class is visible immediately, and ones per individual tests appear later.
The culprit is here: https://github.com/bazelbuild/intellij/blob/master/scala/src/com/google/idea/blaze/scala/run/producers/BlazeScalaTestRunLineMarkerContributor.java#L68
Perhaps making a lookup for a specs2 expression from a literal is better?

First child would be the string, but I think that could be an arbitrary string expression. Probably better if we use the operator (should, in, etc), and get the parent of that. Though, I don't know off hand what leaf element that would be.

But the marker will look like this:
  "foo"
()  should
      "do bar"
()      in
          { ... }

Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.