RSC chemical methods ontology for AnalysisType

Congratulations on this project :)
I have a small consideration.
Currently, in the ReactionAnalysis message, the AnalysisType enum lists 17 values.
https://github.com/Open-Reaction-Database/ord-schema/blob/b8dfae2e3ea3d4a011cfcfdbcab79b501d6398af/proto/reaction.proto#L678-L695
However, many different analytical techniques can be used to characterize a reaction. To this end, what about using the RSC ontology for chemical methods[1]?
e.g. a new CHMO ID field could be adopted instead of adding new values to the AnalysisType enum.
[1] https://github.com/rsc-ontologies/rsc-cmo
See for example LC-DAD

Thanks for the suggestion! I'll let @connorcoley weigh in on this since he's got the best perspective on the diversity of methods here. My main concerns are that it adds another level of complexity for users to have to find their approach in the system and downstream applications may not be able to profitably distinguish between methods at that resolution.
A possible alternative would be to modify the schema to make this an optional specification; for example adding a int32 chmo_id field (possibly as a oneof with AnalysisType unless we allow the user to specify both).

I agree that our AnalysisType enum covers a very limited list compared to the CHMO ontology. I like the suggestion of having an optional int32 chmo_id field to allow this greater degree of flexibility. I also agree with Steve that users may not want to deal with that increased level of complexity, so allowing both to be defined would be find with me. I'll submit a quick PR


Clickhouse version > 22.3 fails to run

HI team,
I was running some of the sample CRs from here.
They all work great, but for when I run the same examples with a clickhouse version > 22.3 e.g. 22.7, <IP_ADDRESS> etc., the pods fail to start.
I cleaned up all my custom resources and then installed a new CR.
Observation

The CHI is reporting errors while performing reconciliation
When I shell into the pod to see the logs of what the manual run of clickhouse-server return, the app seems to be stuck even before the logging is triggered.

Sample CR that fails:
kind: "ClickHouseInstallation"
metadata:
  name: "vers-update"
spec:
  configuration:
    clusters:
      - name: rep
        templates:
          podTemplate: clickhouse:22.8
        layout:
          shards:
            - replicas:
                - name: n1
                - name: n2
                - name: n3

  templates:
    podTemplates:
      - name: clickhouse:22.8
        spec:
          containers:
            - name: clickhouse-pod
              image: clickhouse/clickhouse-server:22.8

Here is the log from the CRD
action: Create StatefulSet clickhouse-cluster/chi-vers-update-rep-n2 - started                                                                                │
actions:                                                                                │
- 2022-09-12T20:36:35.45317811Z Create StatefulSet clickhouse-cluster/chi-vers-update-rep-n2                                                                             │
  - started                                                                                │
- 2022-09-12T20:36:34.653371311Z Create ConfigMap clickhouse-cluster/chi-vers-update-deploy-confd-rep-n2                                                                 │
- 2022-09-12T20:36:33.65455401Z Reconcile Host n2 started                                                                                │
- 2022-09-12T20:36:32.997450613Z Reconcile Host n1 completed                                                                                │
- 2022-09-12T20:36:31.452441365Z Update ConfigMap clickhouse-cluster/chi-vers-update-common-configd                                                                      │
- 2022-09-12T20:36:30.451350978Z Adding tables on shard/host:0/0 cluster:rep                                                                                │
- 2022-09-12T20:36:29.662059118Z Create Service clickhouse-cluster/chi-vers-update-rep-n1                                                                                │
- '2022-09-12T20:36:28.550753417Z FAILED to reconcile StatefulSet: chi-vers-update-rep-n1                                                                                │
  CHI: vers-update '                                                                                │
- 2022-09-12T20:36:28.500931384Z Create StatefulSet clickhouse-cluster/chi-vers-update-rep-n1                                                                            │
  - error ignored                                                                                │
- 2022-09-12T20:31:21.71312086Z Create StatefulSet clickhouse-cluster/chi-vers-update-rep-n1                                                                             │
  - started                                                                                │
- 2022-09-12T20:31:20.891673104Z Create ConfigMap clickhouse-cluster/chi-vers-update-deploy-confd-rep-n1                                                                 │
- 2022-09-12T20:31:19.888872898Z Reconcile Host n1 started                                                                                │
- 2022-09-12T20:31:19.092231993Z Create ConfigMap clickhouse-cluster/chi-vers-update-common-usersd                                                                       │
- 2022-09-12T20:31:18.090567024Z Create ConfigMap clickhouse-cluster/chi-vers-update-common-configd                                                                      │
- 2022-09-12T20:31:17.097935541Z Create Service clickhouse-cluster/clickhouse-vers-update                                                                                │
- 2022-09-12T20:31:15.968933943Z reconcile started                                                                                │
added: 1                                                                                │
chop-commit: d7e654a                                                                                │
chop-date: 2022-08-25T07:42:36                                                                                │
chop-ip: <IP_ADDRESS>                                                                                │
chop-version: 0.19.1                                                                                │
clusters: 1                                                                                │
endpoint: clickhouse-vers-update.clickhouse-cluster.svc.cluster.local                                                                                │
error: 'FAILED to reconcile StatefulSet: chi-vers-update-rep-n1 CHI: vers-update '                                                                                │
errors:                                                                                │
- '2022-09-12T20:36:28.550753417Z FAILED to reconcile StatefulSet: chi-vers-update-rep-n1                                                                                │
  CHI: vers-update '

I am wondering why this setup works seamlessly for version <= 22.3.

could you share pod logs?
kubectl logs -n clickhouse-cluster pod/chi-vers-update-rep-n1-0   --since=24h

Moreover, could you install not released yet 0.20.0 operator?
kubectl apply -f https://github.com/Altinity/clickhouse-operator/blob/0.20.0/deploy/operator/clickhouse-operator-install-bundle.yaml

Hey @Slach ! Upgrading the operator to the latest has resolved the problem !!
Now the nodes upgrade fine, also roll-out of version increment works great. Thanks for the suggestion 🙏
I was wanted to investigate the logs, however, there were no logs coming through while this was occurring. I'l close this now.


Paginate for has many

:tada: This issue has been resolved in version 0.12.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat: Make possible to disable lazy load

Feature Request
Ionic version:

[x] 5.x
Describe the Feature Request
It should be possible to disable Lazy Load in Ionic. That should be available for core users too.
Describe Alternatives

There is no alternative.

Thanks for the issue. All Ionic components are lazy loaded by default, and we do not currently have plans to disable this.
If you want to pre-load components, you can do so by placing the components in your app with display: none. Here is an example:
Example of a preloaded toast: https://codepen.io/liamdebeasi/pen/pojZqWX
Example of a non-preloaded toast: https://codepen.io/liamdebeasi/pen/ZEbjVXE
In each example, try loading the CodePen and throttling the Network speed in Chrome DevTools. Then, click the "Show Toast" button. In the non-preloaded example, the toast should be slow to load, but in the pre-loaded example the toast should displayed almost instantly.
Additionally, you can also cache Ionic's JS files using a service worker which will help speed up loading time. If you are using Angular, there is a guide on how to get started with this: https://angular.io/guide/service-worker-intro.

But how can I do this with whole pages? If I click on a button and the button should open a page (A static page) it takes a few milliseconds, but It feels so slow.

Are you using Ionic with a framework like Angular?

No, I dont use any frameworks

In that case, you can use the same approach that I described before. If you have a app-login page, you can place the <app-login> component in your app before it is needed. Please note that this will likely increase the initial loading time.
I will caution that if the entire app is slow, this is usually indicative of a larger problem. For example, the device may be slow in general or the app itself may be slow.

The code can't be slow, it is written very clean and I've checked it many times. The device is an iPhone 7 (the app is slow) and an iPhone 11 (app is slow too). The main problem is that, it takes long to open pages.

I would recommend trying to identify what is slow using Chrome/Safari Dev Tools. You can take performance tests that will show you a breakdown of what the source of the slowdown is.

@liamdebeasi
I tried that and it took 1.2 seconds to load a very small page (only with text).
Here you can see it:

Unfortunately, I am unable to debug your app for you. If you are able to point to something specific in your app that indicates this is bug in Ionic Framework, feel free to open a new issue with a code reproduction, and I can take a look.
Also 1.2 seconds is the total time for the selected segment of your Chrome timeline test. Chrome was idle for 752ms of the 1199ms, which means the browser was really only working for less then 0.5 seconds.

How can I point to something specific? Can I do that sith DevTools?

Yes, Chrome should give you a list of all code that was called. See https://developers.google.com/web/tools/chrome-devtools/ for some tutorials on how to analyze runtime performance.


Rename branch master to main

Shorter
More common now
Inoffensive

I guess GitHub even offers you this option in the repo settings to perform this migration.

Well I agree that its shorter (although I do not think the small difference is important).
Not really more common than master for most repos I work with (although most of them are not open source).
Inoffensive: I get that this seems to be very important to some people. I personally do not really care that much, I never before associated the word with slavery in that context (especially since slave is not a common branch name / name in git also).

Because I somewhat care that most repos I work with / have ownership over have the same main branch name for convenience, I am going to ACK this request, and change the name. Changing every  other repository that currently uses main over to the name master would probably be a bit controversial :sweat_smile: .

Also sorry to anyone who has to now update their local branch refs.

Shorter and the new default are the major motivations for updating existing repos. I also don't really care about the meaning of words in other, unrelated contexts.
Everyone who relied on the default branch for Git dependencies will not notice the change. If you depend on the repo and a particular branch instead of released versions you should be prepared for breaking changes anyway.
Sometimes breaking changes are inevitable to improve consistency. It pays out in the long term.


controller target access problem

hey,
is it possible to have multiple data-content-loader-url on one controller for different elements amd also data-targets. like that

   <select data-controller="myController" data-content-loader-url="/api/loader-1" data-target.loader1 >
   </select>
   <select data-controller="myController" data-content-loader-url="/api/loader-2" data-target="myController.loader2">
   </select>
   <select data-controller="myController" data-content-loader-url="/api/loader-3" data-target="myController.loader3">
   </select>

i have created the static methog like that:
static get targets() {
			return ["loader1","loader2","loader3"]
		}

when i try to access the the input variables like this.:
let loader 3 = this.loader3Target.value

i get the following error
Error invoking action "click->myController#saveLoader"

Error: Missing target element "myController.loader3"
Stack trace:
get@http://localhost:3000/js/stimulus.umd.js:5:1548
saveProjectDetails@http://localhost:3000/js/main.js:326:8
E</t.prototype.invokeWithEvent@http://localhost:3000/js/stimulus.umd.js:5:3143
E</t.prototype.handleEvent@http://localhost:3000/js/stimulus.umd.js:5:2684

It worked if i had different contrller for the targets and the content url loader

So, you demand myController.loader3Target on method saveLoader() using DOM element without data-target="myController.loader3", am i right?

the method saveLoader is invoked here:
div data-controller="myController" data-content-loader-url="/api/test">
   <select data-controller="myController" data-content-loader-url="/api/loader-1" data-target.loader1 >
   </select>
   <select data-controller="myController" data-content-loader-url="/api/loader-2" data-target="myController.loader2">
   </select>
   <select data-controller="myController" data-content-loader-url="/api/loader-3" data-target="myController.loader3">
   </select>
   <button data-action=""click->myController#saveLoader></button>

so yes on that button is no data target, but doesn't the data targets has to be on the element i want to retrieve?
is it wrong to access the data target in that saveloader method like that?
let loader3 = this.loader3Target.value

@rupasix
did i placed the data-target wrong? because the data-target is there.
data-content-loader-url="/api/loader-3" data-target="myController.loader3"

also if  i would set data-target to another controller lik
data-target="anotherController.loader3"

it will the tell me the same error but only the data-target/variable loader2.

I don't think it is recommended to have the identical controllers nested.
would recommend changing the name of you parent controller

...```

My point was that propably you demand all variables (loader1, loader2 and loader3) on your action saveLoader but you have 3 instances of your controller "myController", each one with different loader. So if i'm right you have something like that:
<select data-controller="myController" data-content-loader-url="/api/loader-1" data-target="myController.loader1" >   </select>
and in your saveLoader:
let loader3 = this.loader3Target.value which should end with error Missing target element "myController.loader3" because you have only loader1.
Is that your case? If not - i don't understand what you want to achieve and can't help you. Can you share with us your "MyController" code and full HTML where that controller is used?

Every controller+identifier pairing creates a new scope, which allows nested controller elements to function independently. Nested controller elements are isolated from parent elements with the same identifier. For example:

The controller for b will have 2 viewTargets and a will have 0 (because they both belong to b's scope).


add select_any to CreateExternalMatchReq

Add select_any field for CreateExternalMatchReq which will use all eligible/matchable ID types when set to true.

closing since we won't support this.


Don't use inline Javascript

Our validations were built using inline Javascript, which isn't compatible with the Content-Security-Policy we're introducing. Rather than relaxing the policy, or attempting to work around it with hashes / nonces, we can use a non-Javascript <script> tag to pass the JSON payload describing our validations.


I want to contribute

Hi, my name is Diana!
I'm a beginner developer, with the most experience in Flask and Django stacks. Despite not having too much familiarity with this stack, this project looked interesting, and I would love to begin open-source by contributing to it.
Thank you!

Hi Diana.! 👋🏻
Welcome to stop analyzing.! I’m sure you will bring valuable contributions to this project even though you are not that familiar with the stack.  BTW, learning new things is the main purpose of this project, so you reached to the right place.
I’ll create a new issue specially made for you and will link it here when it is ready to be tackled.
Nice to have you onboard.! 🥂

@dianalin2 I hope you are doing well.!
Looks like your background is more on backend development right? If that's the case, would you be interested in tackling this issue https://github.com/bancodobrasil/stop-analyzing-api/issues/16?

Thanks, Tiago, I hope you're doing well too.
That issue sounds great! I'll be sure to reach out if I have an issue.

Awesome!
So please post a comment there on the issue so I can assign that to you right away. If you need some help there with the environment setup and/or with the code, please feel free to comment and the issue and we will help you asap.


Update cats-effect to 3.3.9

Updates org.typelevel:cats-effect from 3.3.7 to 3.3.9.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "cats-effect" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Codecov Report

Merging #307 (f8efd6f) into master (9453c10) will increase coverage by 1.58%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #307      +/-   ##
==========================================
+ Coverage   66.66%   68.24%   +1.58%
==========================================
  Files          19       18       -1
  Lines         561      548      -13
  Branches       22       22
==========================================
  Hits          374      374
+ Misses        187      174      -13

Impacted Files
Coverage Δ

...io/github/vigoo/clipp/VersionSpecificParsers.scala

Continue to review full report at Codecov.

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


[android] set options maxwidth and maxheight does not work

no matter when I Change those values the camera does not take them into consideration.
Here is my code:
const cam_options = {
  mediaType: 'photo',
  maxWidth: 200,
  maxHeight: 200,
  quality: 1,
  storageOptions: {
    skipBackup: true,
  }
};
ImagePicker.launchCamera(cam_options, (response) => {
  this.setState({
    loadingvisible: false,
  })

"react": "^15.3.0",
"react-native": "^0.33.0",
"react-native-fetch-blob": "^0.9.4",
"react-native-image-picker": "^0.22.0",

iOS or Android?

Does it work when you choose photos from the gallery? If you look at the response.error, does it contain anything like "Can't resize the image"?

I am not getting any error, the response return an image with no height nor width attribute but the image is there with some different sizes

I just merged #315, can you try version 0.22.6 on npm?

it's working with 0.22.6
Thank you for this great module
Hervé

One more thing, the height and width in the response is wrong I think.

Yeah, I see the issue - will fix

@herve1976 should be fixed in 0.22.7...can you confirm?

perfect everything is working now. thanks again

I have this issue with launchCamera
Versions
		"react": "16.0.0-alpha.6",
		"react-native": "0.43.3",
		"react-native-image-picker": "0.26.3",

ImagePicker code
    const options = {
      storageOptions: {
        skipBackup: true,
        path: 'wikifarmacia',
        maxWidth: 640, // photos only
        maxHeight: 640, // photos only
      }
    };

    //ImagePicker.showImagePicker(options, (response) => {
    ImagePicker.launchCamera(options, (response)  => {
      console.log("ImagePicker response: ", response)
    })

Response:

I tried with options but it doesnt work:
        fileSize: 600,
        quality: 0.7,

Its not working for me in V-0.24. I am trying maxWidth, maxHeight, height, width and also tried aspectX, aspectY but it't not affecting at all. Image remains a square. I am using it on android.


It is possible define withRelated with more deep related models?

is it simpler way how can I write this?
withRelated: ['type', 'company.user.country', 'company.user.role']

something without repetition 'company.user' like:
withRelated: ['type', {'company.user': ['country', 'role']}

That isn't possible right now. Using the object notation in a withRelated call is only useful for altering the query that is performed on the relation. There's an example in the docs.

@ricardograca

Using the object notation in a withRelated call [...] There's an example in the docs.

I don't see anything related in the docs.

@tkrotoff It's right there, but I'll reproduce it here for clarity:
new Book({'ISBN-13': '9780440180296'}).fetch({
  withRelated: [
    'genre', 'editions',
    { chapters: function(query) { query.orderBy('chapter_number'); }}
  ]
}).then(function(book) {
// ...
})

@ricardograca ok, I was expecting an example for "the object notation": withRelated: ['company.user.country', 'company.user.role']

Not that kind of object notation, but passing an actual javascript object, like the original comment wanted to do. If you have unrelated questions please open a new issue instead.

The dotted notation for deep relations doesn't seem to be documented anywhere. Is that a current feature?

@konobi You're right, it's not well documented. It could be added as a tutorial.

The project leadership of Bookshelf recently changed. In an effort to advance the project we close all issues older than one year.
If you think this issue needs to be re-evaluated please post a comment on why this is still important and we will re-open it.
We also started an open discussion about the future of Bookshelf.js here https://github.com/bookshelf/bookshelf/issues/1600. Feel free to drop by and give us your opinion.
Let's make Bookshelf great again

Please re-open this issue, the dotted notation is still not properly documented.


App won't auto-rotate when installed on an Android device

Apps do not auto-rotate when installed [1] on Android devices (4.3 or 5.0). Tried the hello-world and calculator apps. Apps auto-rotate only when live deployed to Chrome App Developer Tool [2]
[1] 'cca run android --device'
[2] 'cca push --target=<IP_ADDRESS>'

Changing the Orientation preference is in config.xml doesn't fix the issue for me either. (cca v0.5.1)


Angular - Outputhashing not working in dev or prod

Hello,
We are using Angular 8 with service worker enabled on all environments. Any changes made on angular side, not reflecting on client side unless we do force refresh or ctrl + shft  + R. Server side always new files are generating, but client side only after hard refresh changes are reflecting.
my angular.json config
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
},
"sit": {
"outputHashing": "all",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.sit.ts"
}
]
},
"dev": {
"outputHashing": "all",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
}
]
}
}
Post deployment script in jenkins
ng build --prod --aot --output-Hashing=all
Kindly help me to find out the solution.
Thanks,
Madhavi.

Likely this is because the index file is cached and is caused by the web server’s cache control configuration. The index should never be cached.
For more information see: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching
If the problem persists please file a new issue, providing all the required information together with a minimal reproduction.


Add Vec read-until-EOF and read-until-condition

Read until EOF: https://github.com/jam1garner/binread/issues/36
Read until user-defined condition (terminator, etc.): https://github.com/jam1garner/binread/issues/34

This blocks on #5 since the primary use case for named arguments is to enable better direct passing of options to support stuff like this instead of requiring parser changes for type-specific feature enhancements.

Added to binrw 0.6.0, albeit in a different form than was proposed. See until and until_eof


Idle period never reports an idle time of more than 9min

I’ve been using toggl for a couple of months and works great mostly. However, I noticed recently that whenever I return to my computer after an idle period it never reports an idle time of more than 9min. This is annoying as it used to be very handy to just create a new task with the idle time and be correct. Whereas now I have to create a new task and then edit it with the approximate start time.
This is with desktop version 7.1.224 on OS X Yosemite 10.10.2"
User sent message to my personal e.mail. If you need his details, ask me.

works in master


ldap_result() failed (-1: Can't contact LDAP server)

Hello,
I keep getting this error despite adding  max_down_retries 10000
That didn't fix anything for me. Authentication works, but the error log is flooded with that error. Can someone help?

I have this trouble too
everything work, but nginx spammed this error


Add test-e2e to Makefile to simplify testing

Resolves #106

@sharmaansh21 Anshul, let's give a chance for the person assigned to take a whack at it. please find us on slack in #sig-testing or #k8s-conformance, there's plenty more to do!
/close


Curious !!

Well I recently upgrade my Flutter framework & create new app > via flutter create ~/animeHeaven
but when i run my app i see...
Its Installing Build-Tools Version : 29 & Platfrom Sdk - 31..
But I have Android 11 a.k.a API 30
I knew that no make sense.. because API 31 application can work on lower API.. but I'm curious about Build-Tool Version - 29.0.2
Everytime i make changes like add Google Sign or Firebase.. then its change into 29.0.3 or in different version... but WHY???
Also i see build.gradle file.. & after i see.. im too Curious, WHy you guys use default config from flutter_gradle..
Means.. how i change minimum gradle to 30.0.3 or 31.0.0
if i change in flutter_gradle/flutter.gradle then all new app which i create.. have same property...
PS: IF YOU MAKE ANY CHANGE THEN PLEASE RELEASE AN EXAMPLE TOO.... (FOR HOW TO CHANGE DEFAULT VALUE..)
OLD GRADLE FILE KINDA USEFULL...

Please use one of the resources listed at https://flutter.dev/community#community-grid for questions and discussion. The issue tracker is specifically for bug reports and feature requests.


Correct the irb command's description

After #1024, the irb command does more than starting a pure IRB session.

Thank you!


chore: go-demo-6 to 1.0.403

chore: Promote go-demo-6 to version 1.0.403

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

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


[HOW-TO] Capture frame directly as grayscale image

Is there some way to capture images directly in black and white / grayscale using Picamera2, to avoid having to later convert it to gray using cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)? I'm assuming this would be more efficient to perform this operation in-place on the buffer, since it would presumably reduce the amount of data needing to be copied, and it would also be convenient to register this as some kind of pre_callback, since I would like all my images to be in grayscale.
Unfortunately, registering a callback to do this, similar to what is shown in the documentation, is not possible, as cv2.cvtColor returns a copy of the image being manipulated, rather than modifying it in-place:
def convert_to_grayscale(request):
        with MappedArray(request, "main") as m:
            cv2.cvtColor(m.array, cv2.COLOR_BGR2GRAY) # Does nothing

picam.pre_callback = convert_to_grayscale

I've tried writing back to m.array, but get an AttributeError: can't set attribute:
def convert_to_grayscale(request):
        with MappedArray(request, "main") as m:
            m.array = cv2.cvtColor(m.array, cv2.COLOR_BGR2GRAY) # AttributeError

picam.pre_callback = convert_to_grayscale

None of the camera configuration parameters appear to be particularly helpful either. Is there anything I can do to accomplish this?

Hi, I would probably capture a YUV420 format image and then grab the Y plane, so something like this:
from picamera2 import Picamera2

picam2 = Picamera2()
WIDTH = 1024
HEIGHT = 768
config = picam2.create_preview_configuration({'format': 'YUV420', 'size': (WIDTH, HEIGHT)})
picam2.configure(config)
picam2.start()
yuv = picam2.capture_array()
grey = yuv[:HEIGHT, :WIDTH]

It saves you doing any slow software conversions, so that's a bonus. If you want the preview to show it as greyscale as well, you could set the saturation control to zero too:
picam2.set_controls({'Saturation': 0})

Does that help?

Perfect, that's exactly what I was looking for! For anyone interested, I'll post the performance details below (the method you suggested is around 2x faster). These results were obtained on a Raspberry Pi Model 3B+ using a High-Quality Camera module. In both cases the time taken to capture an image and convert it to grayscale was considered. The results of the 2 conversions were visually indistinguishable, and both appeared to work fine for further processing with cv2.
Capturing in BGR then converting using openCV
IMG_DIMS = (1280, 720)

def main():
    picam = setup_camera_gray()
while True:
        # Hot loop (measured)
        img = picam.capture_array()
        img_preproc = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
        # End of hot loop

def setup_camera():
    picam = Picamera2()
    config = picam.create_preview_configuration()
    config['main']['size'] = IMG_DIMS
    config['main']['format'] = "RGB888"
    picam.align_configuration(config)
    print(config)
    picam.configure(config)
    picam.start()

    return picam

This implementation averaged 44.16 FPS over 219 frames.
Capturing in YUV and truncating to convert to grayscale
IMG_DIMS = (1280, 720)

def main():
    picam = setup_camera_gray()
while True:
        # Hot loop (measured)
        img = picam.capture_array()
        img_preproc = img[:IMG_DIMS[1], :IMG_DIMS[0]]
        # End of hot loop

def setup_camera():
    picam = Picamera2()
    config = picam.create_preview_configuration()
    config['main']['size'] = IMG_DIMS
    config['main']['format'] = "YUV420"
    picam.align_configuration(config)
    print(config)
    picam.configure(config)
    picam.start()

    return picam

This implementation averaged 104.64 FPS over 211 frames.

5x speed improvement for PiCam V3 still image capture 2 grey at full resolution

Not sure about performance, but a simple way how to get grayscale output out of picamera2 is to set the saturation to 0.0:
picam2.set_controls({"Saturation": 0.0})


azure-ai-documentintelligence samples for uploading base64

Is your feature request related to a problem? Please describe.
I want to analyze base64 encoded documents through the new azure-ai-documentintelligence package.
It seems like I should do something like this:

from azure.core.credentials import AzureKeyCredential
from azure.ai.documentintelligence import DocumentIntelligenceClient
from azure.ai.documentintelligence.models import AnalyzeResult, AnalyzeDocumentRequest

client = DocumentIntelligenceClient("my_endpoint", AzureKeyCredential("my_key"))

my_base64 = b"..."
poller = client.begin_analyze_document(
    "prebuilt-layout",
    analyze_request=AnalyzeDocumentRequest(base64_source=my_base64),
    content_type="application/octet-stream",
)

But no matter what I do I'm greeted with the following error:
{
    "code": "InvalidContent",
    "message": "The file is corrupted or format is unsupported. Refer to documentation for the list of supported formats."
}

since the documentation for the AnalyzeDocumentRequest Link says that base64_source is of type Optional[bytes] I thought it'd work like this.
However all of the samples use this method either through:

Passing a _io.BufferedReader like so:

with open("path/to/local/file", "rb") as f:
    poller = client.begin_analyze_document(
        "prebuilt-layout",
        analyze_request=f,
        content_type="application/octet-stream",
    )

By passing a URL like so:

    url = "https://some.url/Invoice_1.pdf"
    poller = client.begin_analyze_document(
        "prebuilt-layout",
        AnalyzeDocumentRequest(url_source=url),
    )

Describe the solution you'd like
I'd like to get examples/tutorials for all the different options to upload to the document intelligence through the newly released package.
Especially interesting to me is uploading a base64 bytes object.
Describe alternatives you've considered
I tried to use from io import BytesIO and create a buffer like this and use the with BytesIO(my_base64) as buf but this didn't work either

Thank you for the feedback @dkuska . We will investigate and get back to you asap.

Hi @dkuska, I can reproduce the error, will investigate the root cause.

Update: I got the same error when I pass mybase64=b"foo", it is not a bytes from a valid document. This is a doc you can refer: https://learn.microsoft.com/en-us/azure/ai-services/document-intelligence/concept-analyze-document-response?view=doc-intel-4.0.0#analyze-document-request

Hey, thanks for investigating this!
I did something like this to get the base64 bytes object:
with open(filepath, 'rb') as file:
    file_content = file.read()

mybytes64 =  bytes(base64.b64encode(file_content))

poller = client.begin_analyze_document(
    "prebuilt-layout",
    analyze_request=AnalyzeDocumentRequest(base64_source=mybytes64),
    content_type="application/octet-stream",
)

Is this wrong? I wasn't for the life of me able to figure out what I did wrong...

Can you try to pass file_content without encode and not passing content_type? It would be:
with open(filepath, 'rb') as file:
    file_content = file.read()

poller = client.begin_analyze_document(
    "prebuilt-layout",
    analyze_request=AnalyzeDocumentRequest(base64_source=file_content),
)

Hey @YalinLi0312,
This was just a toy example and I got it to work the way you described.
In my productive setting I already receive Base64 encoded images from a previous API calling mine and would have liked it to pass it along to the Document Intelligence, hence why I posed the question. But decoding it and calling the Document Intelligence like that obviously works for me :)
Thanks a lot for your help! I'll close the issue!


TS Watch mode recompiling stuck

Hi All.
When changing content of files after the first compilation the ts compiler (watch mode) is getting stuck on "Compiling..." and every time i have to CTRL-C, kill the process on the port 3000 and start it again.

Similar(?) thing happens to me when there is a TS compilation error.. even if I fix the line that caused the compilation error - nothing happens, the error remains in the terminal and I have to manually Ctrl + C and run npm start again

I'm having the same issue after using create-react-app on Debian.

Any update how to fix this? I'm having the same on my macbook with latest cra version.


Error with webpack:  Module not found: Error: Can't resolve 'onecolor'

I have a folder of 3rd party JS files (jQuery plugins and Javascript libraries).
I am trying to bundle them into a single file with webpack.
Below is relevant part of webpack.config.json:
var glob = require("glob");

module.exports = {
    entry: {
        js:  glob.sync("./src/js/*.js")
    },
    output: {
        filename: "[name].js",
        path: path.resolve(__dirname, "dist/js")
    }

When I run webpack, I get these errors relating to colorjoe.js:

ERROR in ./src/js/colorjoe.js
Module not found: Error: Can't resolve 'onecolor' in 'C:\Users\Me\Documents\my_repo\src\js'
@ ./src/js/colorjoe.js 7:33-52 9:8-37

Version information in that file is:
 /*! colorjoe - v2.0.0 - Juho Vepsalainen<EMAIL_ADDRESS>- MIT
 https://bebraw.github.com/colorjoe - 2016-08-12 */
 /*! dragjs - v0.7.0 - Juho Vepsalainen<EMAIL_ADDRESS>- MIT
 https://bebraw.github.com/dragjs - 2016-08-12 */

(Here is link to the 2.0.0 release - I am using an older version because newer versions don't seem to "work" with the way I have implemented it).
Do you know what changes I would need to make in this file in order to get rid of that error?
Thank You.

Update, I get the same error using the latest version of the files too, ie:
https://github.com/One-com/one-color/blob/master/one-color.js
https://github.com/bebraw/colorjoe/blob/master/dist/colorjoe.js

ERROR in ./src/js/colorjoe.js
Module not found: Error: Can't resolve 'ONECOLOR' in 'C:\Users\Me\Documents\my_repo\src\js'
@ ./src/js/colorjoe.js 9:8-11:10

I'm not sure if this is the issue as I know very little about webpack...
I saw in the above code snippet, extras hadn't been defined, so I just copied all content from the extras file and pasted it at the top of the colorjoe file (in https://github.com/bebraw/colorjoe/tree/master/src).
The error went away, but I'm still not sure if colorjoe will work as I am still troubleshooting other issues.

Now I get errors like:

Uncaught TypeError: _colorjoe2.default.hsl is not a function

Hi,
I repackaged the whole thing. You should be able to consume it from npm directly now. It comes with the extras too although the API can likely be improved further.


Hyperlinks are not fully converted

So when converting markdown to pdf like this """ze dne 2. 4. 2019. Dostupné z: <https://uohs.gov.cz/cs/verejne-zakazky/sbirky-rozhodnuti/detail-15999.html>""" the full link is shown and marked as hyperlink correctly but only the first line is taken as the link. The part on the second line is omitted.

The pdf contains your html link as text, not as a hyperlink.
As a hyperlink, it is recognized and interpreted by the app displaying the pdf file (browser, for example).
This app may not correctly handle the new line character into html link body.
If you absolutely need a clickable link in pdf format, you can use landscape orientation of the page.
pdf.add_section(Section("ze dne 2. 4. 2019. Dostupn├й z: <https://uohs.gov.cz/cs/verejne-zakazky/sbirky-rozhodnuti/detail-15999.html>", paper_size="A4-L"))


daemon: Remove defunct --single-cluster-route flag

The single-cluster-route flag was intended to instruct Cilium to use a
single route covering the entire cluster CIDR to point to the
cilium_host interface in tunnel mode, instead of per-host or
per-endpoint routes.
However, the underlying concept of a cluster prefix used for routing was
removed in PR #10194. It seems the single-cluster-route
flag was likely even broken prior to that and accidentally used the
per-node mask instead of the per-cluster mask for the route. In summary,
this flag has not been functional for almost two years. As no one seems
to have noticed, it should be safe to remove this defunct flag without a
deprecation period.

Apparently, the implementation always used the node-local allocation CIDR. So it is not technically defunct and works as originally intended, even though that behavior is not what I expect given its description which clearly talks about a cluster CIDR.
Closing this for now, as I still don't fully understand it's intended usage. Might remove it later.


Question: Can marathon assign tasks to multiple roles

Here's what we want to do:
A single marathon with:

A pool of slaves to run any tasks on any "unreserved" agents
A pool of slaves to run only specific tasks assigned by acceptedResourceRoles tasks

It appears that marathon can only listen for slaves running one type of reserved role. By default this is the slave_public in dcos. It also appears that you cannot specify multiple mesos roles. So my question is: Can I do what I've described above?

Hi @jessecollier,
What you are trying to do requires multiple roles support in Mesos. That is a feature on the Mesos roadmap, but not yet implemented. Once it is implemented then Marathon will be able to take advantage of it and accomplish your goal.
In the interim the solution is to have a marathon per role.

xref #2237

@jmlvanre Thanks for answering.
The parameter acceptedResourceRoles leads me to believe this is an option to support multiple roles for a framework. Perhaps the documentation can be updated to include this note until mesos adds support?

https://github.com/mesosphere/marathon/pull/4697

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-2652. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.


Unable to serve static file using Spark Java

Hi,
My project structure looks like the below:

And I have the below code - which is configured to serve static web page within the package (src/main/resources/public)
Which is not working and i don't see any exception in the logs as well
 public void startRestServer() {
        try {
            port(serverPort);
//            staticFiles.location(System.getProperty("user.dir") + "/src/main/resources/public/");
            staticFiles.location("/public");
            connectionPool = SQLiteConnectionPool.getInstance(fileServerLocation, MIN_THREADS, MAX_THREADS, TIMEOUT);
            staticFiles.externalLocation(this.fileServerLocation);
            init();
            awaitInitialization();
            loadRestApiServices();
            LOGGER.debug(String.format("REST services started :: http://%s:%s%s/",
                    InetAddress.getLocalHost().getHostAddress(), serverPort, uriPath));
        } catch (Exception e) {
            LOGGER.error("REST services failed to start", e);
        }
    }

I have API path configured below
public void loadRestApiServices() {
        UploadService uploadService = new UploadServiceImpl();
        path(RestController.uriPath, () -> {
            before("/*", (req, res) -> LOGGER.info("Received api call"));

            get("/greet", (req, res) -> {
                return "Hello Work !";
            });

            post("/upload", (req, res) -> {
                JSONObject jsonObject = new JSONObject(req.body());
                uploadService.uploadCustomPlugin(jsonObject);
                return null;
            });

            after((req, res) -> res.header("Content-Encoding", "gzip"));

        });

I am stuck with this - could someone help me to proceed further ?
I have posted the query in stackoverflow as well, didn't get any response

Hi,
on which url are you trying to access static files?
With this staticFiles.location("/public");
I think it should be "http://localhost:4567/script.js".
I´m using static files in my project, maybe it will help you https://github.com/kamenitxan/Jakon/blob/master/modules/backend/src/main/scala/cz/kamenitxan/jakon/JakonInit.scala

Hi,
I am able to access it using root path (http://localhost:2222/index.html or http://localhost:2222/)
The issue was due to an groovy dependency library which was added by mistake.
I apologise, i failed to update it here


How to get all field details from XFA form and update fields value through code

Hi Team,
I am using the PDF.js viewer to render XFA form.
I want to know once the document is loaded how can i get all the fields inside the XFA form and as per the type how can i set value for the field.
Could you help me to resolve the issue.

No such functionality exists unfortunately, since it's not really needed in the Firefox PDF Viewer.
Hence you'll need manually find the relevant elements in the DOM, and update their values.

For future reference: When opening an issue, please remember to actually provide all of the information requested in https://github.com/mozilla/pdf.js/blob/master/.github/ISSUE_TEMPLATE.md

so through code it is not possible?


Add FNT

FNT token tracker on Etherscan: https://etherscan.io/token/0xdc5864ede28bd4405aa04d93e05a0531797d9d59
Official site: https://falconofficial.com/

Hi @ProjectFalcon  - I would like to merge this request but there is a new requirement that the logo has to be in SVG format. Can I ask you to add it as a replacement for the PNG one? Would be awesome if you can resolve conflicts as well - Thanks

Hi @ProjectFalcon - I would like to merge this request but there is a new requirement that the logo has to be in SVG format. Can I ask you to add it as a replacement for the PNG one? Would be awesome if you can resolve conflicts as well - Thanks

Hello. Sure! We will do it asap.

Hi @ProjectFalcon - I would like to merge this request but there is a new requirement that the logo has to be in SVG format. Can I ask you to add it as a replacement for the PNG one? Would be awesome if you can resolve conflicts as well - Thanks

Hello @xrn. Here is updated pull request: https://github.com/MetaMask/eth-contract-metadata/pull/585


Update VI descriptions with new naming

[x] This contribution adheres to CONTRIBUTING.md. (Required)
[ ]  Automatically post PR comments with images for G code changes? (Recommended for small changes)

What does this Pull Request accomplish?
Updates the VI descriptions with renames (see first comment for details)
Why should this Pull Request be merged?
Renames
What testing has been done?
None

difflog of each VI:

Source/Example Measurements/Keysight 34401A DMM Measurement/Keysight 34401A DMM Instrument/Session Factory/Get Provided Interface and Service Class.vi
Front Panel Functional Changes
None
Front Panel Cosmetic Changes
None
Block Diagram Functional Changes
None
Block Diagram Cosmetic Changes
None
Attribute Changes
description text
Changed from "Returns the provided interface and service class that will be used to query the MeasurementLink Discovery Service for the address and port of the instrument's gRPC server. If your instrument does not use a gRPC server then you do not have to override this VI." to "Returns the provided interface and service class that will be used to query the NI Discovery Service for the address and port of the instrument's gRPC server. If your instrument does not use a gRPC server then you do not have to override this VI.".

Source/Runtime/Clients/Discovery V1/Start Discovery Service.vi
Front Panel Functional Changes
None
Front Panel Cosmetic Changes
None
Block Diagram Functional Changes
None
Block Diagram Cosmetic Changes
None
Attribute Changes
description text
Changed from "This VI starts the MeasurementLink.DiscoveryService.exe." to "This VI starts the NI Discovery Service.".

Source/Runtime/Measurements/Helpers/Get Discovery Service Address.vi
Front Panel Functional Changes
None
Front Panel Cosmetic Changes
None
Block Diagram Functional Changes
None
Block Diagram Cosmetic Changes
None
Attribute Changes
description text
Changed from "This VI is deprecated. Please use MeasurementLink Discovery::Get Discovery Service Address.vi for the same functionality." to "This VI is deprecated. Please use NI Discovery V1 Client::Get Discovery Service Address.vi for the same functionality.".

Source/Runtime/Sessions/Instrument/ISession Factory/Get Instrument Type ID.vi
Front Panel Functional Changes
None
Front Panel Cosmetic Changes
None
Block Diagram Functional Changes
None
Block Diagram Cosmetic Changes
None
Attribute Changes
description text
Changed from "Returns the type ID for the instrument in the pin map file. When using third party instruments not natively supported by the pin map editor, you must create a custom instrument in the pin map file and assign it a unique instrument type ID. Return the same instrument type ID from this method to access the third party instrument from within MeasurementLink." to "Returns the type ID for the instrument in the pin map file. When using third party instruments not natively supported by the pin map editor, you must create a custom instrument in the pin map file and assign it a unique instrument type ID. Return the same instrument type ID from this method to access the third party instrument from within a measurement plug-in.".

Source/Runtime/Sessions/Instrument/ISession Factory/Get Provided Interface and Service Class.vi
Front Panel Functional Changes
None
Front Panel Cosmetic Changes
None
Block Diagram Functional Changes
None
Block Diagram Cosmetic Changes
None
Attribute Changes
description text
Changed from "Returns the provided interface and service class that will be used to query the MeasurementLink Discovery Service for the address and port of the instrument's gRPC server. If your instrument does not use a gRPC server then you do not have to override this VI." to "Returns the provided interface and service class that will be used to query the NI Discovery Service for the address and port of the instrument's gRPC server. If your instrument does not use a gRPC server then you do not have to override this VI.".


Error on scrolling to the bottom

Description
What steps will reproduce the problem?

Scroll a python file to the buttom

What is the expected output? What do you see instead?
Please provide any additional information below
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 250, in fetchMore
self.rows_loaded + items_to_fetch)
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 174, in set_size_and_type
for index in range(start, stop) ]
File "/usr/local/lib/python3.5/dist-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 174, in
for index in range(start, stop) ]
IndexError: list index out of range
Version and main components

Spyder Version: 3.2.1
Python Version: 3.5.3
Qt Versions: 5.9.1, PyQt5 5.9 on Linux

Dependencies
pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.20.3 (OK)
numpy >=1.7      :  1.13.1 (OK)
sphinx >=0.6.6   :  1.6.3 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.9.0     :  0.10.0 (OK)
psutil >=0.3     :  5.0.1 (OK)
nbconvert >=4.0  :  5.2.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  None (NOK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.1.0 (OK)
pylint >=0.25    :  1.7.2 (OK)

The error is completely unrelated to scrolling files in the Editor. Are you sure you got this error that way?

Closing because of lack of response.


add Hostname to pod spec

Hi,
could you please review my PR.
Without this PR coodinator fail to connect to discovery server.
 ERROR	Announcer-0	io.airlift.discovery.client.Announcer	Cannot connect to discovery server for announce: Announcement failed for http://presto-test-cluster:8080
Adding hostname to Pod Spec resolve this issue
Thanks for your work

Close the issue cause was fault in my env conf


When use with existing prettier npm module in react app, it breaks the auto formatting in VS code editor onSave code file

@GauravSharma84 Try running npx prettier -l . and see if there are any errors. You might have to change some options in your .prettierrc.


Remove: chrisant996.Clink version 1.2.15.b4efda

## .\Tools\YamlCreate.ps1 -SkipPRCheck -Mode 5 -PackageIdentifier chrisant996.Clink -PackageVersion 1.2.15.b4efda

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[X] Does your manifest conform to the 1.0 schema?

Microsoft Reviewers: Open in CodeFlow

/azp run


Bug| Pay Button issues for summons

Issue 1:Pay Button not leading to any action
https://github.com/user-attachments/assets/fa80b2e0-2708-4d38-b51a-1f18c28844b4
Isssue 2: The pending task for Post is closed when court fee pay is clicked on. It should be closed only when both channel fee and court fee are paid (clicked)

Hi @Beehyv-Vinod  Please test in UAT env

Hi @Ramu-kandimalla @rajeshcherukumalli , Tested in UAT environment, User able to Perform the action on Pay Online button.
Ref,
Pay_Online.zip

Hi @devarajd94  Please verify and confirm


why some bytes no comment in table and table?

I find that some bytes is not explanation between  2 tables.
For example,there is 2 bytes that is 00 00 after the cmap table and before the next table.
I want to read data what I want and reset file,but i don't no whether the data is useful.

文档详细信息
⚠ 请勿编辑此部分。 docs.microsoft.com ➟ GitHub 问题链接必须具有此部分。

ID: 86923ff4-2b60-9144-e2b4-77cdb36fd698
Version Independent ID: ea221e53-f51a-8233-3c0b-d416e5360623
Content: cmap - Character To Glyph Index Mapping Table - Typography
Content Source: typographydocs/opentype/spec/cmap.md
Product: typography
GitHub Login: @PeterCon
Microsoft Alias: PeterCon

That is padding between the tables and should be ignored, see https://docs.microsoft.com/en-us/typography/opentype/spec/recom#table-alignment-and-length.

Thank you so much!
At 2018-12-07 01:43:30, "Khaled Hosny"<EMAIL_ADDRESS>wrote:
That is padding between the tables and should be ignored, see https://docs.microsoft.com/en-us/typography/opentype/spec/recom#table-alignment-and-length.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I solved the problem a few days ago,but thank you all the same.
There are two font packs in the font file,where the sourceFile.TTF is  the font available that I modified through the tool file,and newTTF.ttf is  I extracted through my program.
Although it can be used,I found that the font and the text couldn't map, and I couldn't find many ways to do that, and I felt like I was at the end of my rope.
I don't no how to deal with the problem and I am very confused,so I need your help.
If possible, could you please look at my newTTF.ttf file and see what's wrong with it?
I need your help truly. Thank you. Thank you so much!
font file.zip

Looks like newTTF.ttf has an invalid cmap table.

No spec changes required.


Ensure strict mode in every single JS file

I've seen that some files have it and others don't, and could be worth adding in all of them.
What do you think?

The only ones that have it are because they were auto-generated by Sequelize CLI and are not necessary because of the min Node version of the project and by the fact they're just for the example app and are deleted after the cleanup, so I think it's not worth to add it to all the files.


PySide2 compatibility

Only minor changes needed to fix errors with PySide2
Mostly the parameters to certain functions changed and need to be handled differently between API's

Not 100% sure of the impact, but it works 100% fine for me, never noticed anything different. Please review it though

Fixed. I used the specific API boolean variables qtpy provided for more specificity. I also fixed some silent bugs. Pyside and PyQt4, in addition to PySide2, all do not support Qt.FindChildOptions. The program would've crashed when it ran into any of these in those API's.


Some chinese characters show incorrectly when paste them in specific text.

Describe the bug
I'm talking something so strange! Some chinese characters show incorrectly when paste them in specific text. But If you paste them without this specific text, they can be showed correctly.
To reproduce

Paste the following text, and they can not be showed correctly:
https://powerumdp.lanzouy.com
密码:6hjg
Paste the following text, and they can be showed correctly:
密码

Expected behavior

Fix "Some chinese characters show incorrectly when paste them in specific text."

Screenshots
Incorrect case:

Correct case:

Desktop (please complete the following information)

Windows 11
1.6.2

Smartphone (please complete the following information)
In smartphone, the issus do not happen.
Additional context

It maybe can solve in
https://github.com/localsend/localsend/issues/52


Feature request: Add more metrics for legend query

Similar requests

[X] I have searched and found no existing similar requests

How are you using Legend?
Legend Query
What problems are you trying to solve?
Add more metrics for legend query
Describe the solution you would like to see implemented

[ ] Add metrics on how users are trying to use query ( account for the workflows we have )
[ ] Add metrics on users trying to use export to CSV option
[ ] Users trying to register semi-interactive service from standalone query
[ ] Metrics around the prefereable query theme by the users
[ ] No. of times query text mode getting used per session
[ ] Users prefering constants over variables in query
[ ] Metrics around percentage of users using hidden panels in query (post filter, functions panel, OLAP, watermark)

Describe alternatives you have considered
No response
Documentation, Design, Adoption, Migration Strategy
No response
Contribution

[ ] I would like to work on this feature

Is the section of the users are trying to use query ( account for the workflows we have ) like how many times they do things in the setup page, like when they click showAdvancedActions?
Also I don't think this is necessarily very important but maybe the number of times users click Show Unmapped Properties in explorer panel.
And out of curiosity, how often see documentation is clicked in the menu as well as Open documentation in advanced options

Is the section of the users are trying to use query ( account for the workflows we have ) like how many times they do things in the setup page, like when they click showAdvancedActions?
Not exactly just click the advanced option, If they actually open query via that flow


Routes 105, 111, and 120 show incorrect encounters (Only the Regi Trio) (Pokemon Emerald)

Describe the bug
Routes 105, 111, and 120 show the Regis as the only possible encouter suggestions there by deafault (you can still manually enter other pokemon). For example,
To Reproduce
Steps to reproduce the behavior:

Go to 'Emerald Nuzlocke'
Click on 'Find Encounter' on routes 1-5, 111, or 120
See error

Expected behavior
It should show the full encounter lists for these routes (eg. Sandshrew, Trappinch etc. on route 111)
Screenshots

Desktop (please complete the following information):

OS: Windows
Browser Firefox

Additional context
Add any other context about the problem here.

Ive regenerated the route information for emerald from PokemonDB and it's pulled through more encounters on these routes.
Thanks for raising!
You can always type in the name of any pokemon as well just in case they're missing


Installing New Dependencies

Hey There,
Love the repo. I am trying to install new dependencies. I tried do npm install and just copying and pasting the folder into the vendor folder, neither of which worked. It looks like the includes in the index.html are being pulled in dynamically, could you help me figuring out to get new dependencies to get pulled in?

There are two ways to install dependencies in ngbp: bower and npm. npm dependencies are stored in node_modules and Bower in vendor. Regardless of how they are added to your project, don't move them around - it will make upgrading that dependency later a pain and you'll have to manually commit the resources to your git repo, which is unnecessary (and may skip dependencies). Instead, just leave them where they are installed by those tools.
Next, just add the files you want to include to the js, css, and assets arrays here.

Hey Josh,
Thanks for the help! Is there a way to dynamically add the line of js within the build.config.js?

Not reliably, unfortunately. Both npm and bower provide a way to specify the entry points to the application, but they are not used consistently and usually point to a single file when multiples may be required. And they don't universally speak to css.
All that said, I often don't use the feature. Usually, I try to use the CDN versions of these assets even in development unless I have a compelling reason to avoid them. This keeps my code and repo simpler at the expense of a little up-front management on my part.


NansException

What happened?
How to fix error"
modules.device.NansException: A tensor with all naNs was produced in VAE. This could be because there's not enough precision to represent the picture. Try adding - - no-half-vae commandline argument to fix this........ "
Console logs
No response
Which repo branch did the colab you use comes from ?
stable
Which tunnel did you use ?
--cloudflared
What browsers do you use to access the WebUI ?
Mozilla Firefox

this error only happen if i using highres upscale and set upscale more than 1,85
NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.
Time taken: 47.47sTorch active/reserved: 10933/11422 MiB, Sys VRAM: 11597/15102 MiB (76.79%)
it's may not because of model because i've try 5-6 different models
i think it's because today update google or python or colab or whoever they nerfed GPU ram maybe (lol xD) because yesterday i was able to upscale up to 2,85 but today if i set more than 1,85 the error happens

@basedholychad  are you using nightly or stable version

i'm using nightly version refslave v2  and i also download serveral models from civit each time using batchlinks but all models have same error when using highres

ok thanks ❤ I will test with stable and nightly

@basedholychad please send your png info I am not getting the error

i think i figured it
if i using the stable version it's still ok
it only error when using nightly version
maybe it's from either from these 3 lines from code
!sed -i -e '''/    prepare_environment()/a\    os.system(f"""sed -i -e ''"s/dict()))/dict())).cuda()/g"'' /content/stable-diffusion-webui/repositories/stable-diffusion-stability-ai/ldm/util.py""")''' /content/stable-diffusion-webui/launch.py
!sed -i -e 's/fastapi==0.90.1/fastapi==0.89.1/g' /content/stable-diffusion-webui/requirements_versions.txt
!mkdir /content/stable-diffusion-webui/extensions/deforum-for-automatic1111-webui/models
the nightly version lack these 3 lines maybe
or maybe from these 2 lines?
nightly:
!pip install -q torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchaudio==2.0.1+cu118 torchtext==0.15.1 torchdata==0.6.0 --extra-index-url https://download.pytorch.org/whl/cu118 -U
!pip install -q xformers==0.0.18 triton==2.0.0 -U
stable:
!pip install torch==1.13.1+cu116 torchvision==0.14.1+cu116 torchaudio==0.13.1 torchtext==0.14.1 torchdata==0.5.1 --extra-index-url https://download.pytorch.org/whl/cu116 -U
!pip install -q xformers==0.0.16 triton==2.0.0 -U

@basedholychad could you please provide me with the last part of your PNG info like
Steps: 22, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed:<PHONE_NUMBER>, Size: 384x512, Model hash: 7e9a9b674e, Denoising strength: 0.7, Clip skip: 2, ENSD: 31337, Hires upscale: 2, Hires upscaler: Latent

🥳 @basedholychad how did you solve it

notice that the nightly missing these 3 lines in the code idk if that's the problems

the problem is torch==2.0.0+cu118 using more vram than torch==1.13.1+cu116

Im used orangemix3 model, the error sometimes come and sometime not, the side effect is the image result is not showing,

This is not a bug. Unfortunately, this is a torch==2.0.0+cu118 behavior. Please use low numbers on Upscale by, like 1.9, or use the stable version

@camenduru does using --no-half-vae on those torch 2 scenario fix the problem too?

@etherealxx not working 😭


ES7 Object Rest Operator to Omit Properties fails in prod mode

🐞 bug report
Is this a regression?

 No
Description
It's easier to explain with the sample code.
Say we have an object with a bunch of fields and you want to clone the object but exclude a couple of properties.
We'd traditionally write:
const clone = Object.assign({}, originalObject);
delete clone.field;

With ES7 we can write:
const { field, ...clone} = originalObject;

It works perfectly in dev mode. However, in prod mode, code is minified and the above code is minified to:
const {...clone} = originalObject;

So the property is not removed from the object and the code is broken.
Maybe it's not an angular issue, but it took me a while to figure out what was the problem and why it worked in dev mode, but failed in prod mode.
🔬 Minimal Reproduction
Link to the repo with repro app
Just run ng serve and then ng serve --prod and compare the results.
🌍  Your Environment
Angular Version:

Angular CLI: 8.3.29
Node: 12.16.2
OS: darwin x64
Angular: 8.2.14
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.29
@angular-devkit/build-angular     0.803.29
@angular-devkit/build-optimizer   0.803.29
@angular-devkit/build-webpack     0.803.29
@angular-devkit/core              8.3.29
@angular-devkit/schematics        8.3.29
@angular/cli                      8.3.29
@ngtools/webpack                  8.3.29
@schematics/angular               8.3.29
@schematics/update                0.803.29
rxjs                              6.4.0
typescript                        3.5.3
webpack                           4.39.2

I note that TS compilation should work: https://www.typescriptlang.org/play/#code/MYewdgzgLgBAHjAvDA3jAhgLhgRgDQwBG2ATAcNgMwwC+A3AFCiSxroEB0XATgKbS0k8OkA

Hi @dima716,
I have looked at this and it seems to be a bug in terser, where when using pure_getters it is dropping the unused identifier.
test.js
class AppComponent {
  ngOnInit() {
    const p = { a: 1, b: 2 };
    const { a, ...rest } = p;
    this.expected = { b: 2 };
    this.actual = rest;
  }
}

$ npx terser --compress pure_getters test.js
class AppComponent{ngOnInit(){const{...rest}={a:1,b:2};this.expected={b:2},this.actual=rest}}

Opening an issue here: https://github.com/terser/terser/issues/769

@alan-agius4 awesome! Hope they will fix it

Closed via https://github.com/angular/angular-cli/pull/18704


propose alternative FAQs for shiny futures

Here are some streamlined FAQs for shiny future stories.

Added a question suggested by @sandrmiller about the story having unexpected twists


How to build & run this website locally

Sir. uiGradients is a really great project. I like it very much. And the website uigradients.com (using Vue) is very cool. How can I build & run it on my Mac locally or Linux server? Thank you!

First clone the repo, and then run npm install After that you can use npm start to start the dev server. Ater that you can access the webapp at localhost:9000.
If you look at the package.json you see a lot of another commands to deploy or build the app.

Thank you very much!

Sir. Follow your guides, I succeed running the project on my Mac locally.
But it failed when I tried it on VPS (CentOS 7).

Chrome Console:

I don't know where the https://color.*****.com/app.js is. Hope you can help me. Thank you.

@seuplus Hey. Every time you build the project via npm start a dist folder is generated. Ideally, this is the folder you want to deploy and this is the folder to which your domain root should be pointing to.
Hope this clears things up. Closing this issue for now. Feel free to add any question you may have here.

Thanks for your reply. Sir.
Worked now! I build the uiGradients project via npm run build and a dist folder is generated indeed.


Not output file when converting to PDF

Hi,
I just installed the plugin + Pandoc and Miktex, and I'm running into  a problem rn.
I'm able to execute the “Pandoc Plugin: Export as PDF” command fine and get no errors, but the output file is not created.
I tried changing the Output Folder and I set the Pandoc aswell as the pdflatex Path manually to the according:
Export Folder : C:\
Pandoc path: C:\Users\me\AppData\Local\Pandoc\pandoc.exe
PDFLatTeX path: C:\Program Files\MiKTeX\miktex\bin\x64\miktex-pdflatex.exe

How did you go, did you ever work this out?


Use non-FV when there are no cubes in the mesh

Unfortunately, the version with FV and CG is quite slow in dune-copasi because one has to check which local operator to use for each integral in the entity. This turns out to be quite expensive due several reasons. I am checking ways to cache the result and to make it faster, but in general, is always better to use the CG traits (ModelMultiDomainPkDiffusionReactionTraits<...>) whenever one knows a priori that there won't be cubes in the mesh.

thanks @SoilRos - I'll change it to use only CG when simulating single compartment models

I'll change it to use only CG when simulating single compartment models

Mmm, that's not what I meant. In my comment, I was referring to the multi-compartment case. Maybe this will guide you a bit more:

Single compartment:

Use ModelPkDiffusionReactionTraits

k == 0 will run the finite volume method in any geometry type (be aware that flux correction is not applied in triangles)
k > 0 will run a the continuous Galerkin case. Only available for triangles.

Multiple compartments:

All compartments have same geometry type?

Use ModelMultiDomainPkDiffusionReactionTraits

Same rules a for single compartment case on every compartment

Is there a stripe of cuboid elements or compartments with different geometries?

Use ModelMultiDomainP0PkDiffusionReactionTraits

Similar rules as for single compartment but cubes always use finite volume method.

The single compartment case uses a slightly different ini file than the multidomain case. (There is no definition of different compartments of course). Take a look at the dune_copasi_sd.cc to see how you can get a multicompartment ini file running in a "single-compartment" setting. If in doubt, just ask me.

Thanks for the clarification. Currently in the multi-compartment case we need the cuboid stripes to implement the membrane reactions between the compartments, but once we can specify the membrane reactions as fluxes between compartments of triangles I'll change to using ModelMultiDomainPkDiffusionReactionTraits when possible.


Convert to external version of Snowboard

Changes the underlying Snowboard framework to the one that is provided via NPM in the wintercms/snowboard.js repo.
The only major change was converting the old data config utility calls to the new "Configurable" trait in the Backend widgets. Otherwise, this PR is mainly de-coupling.

@bennothommo is this ready to merge?

I believe so, but I haven't tested it in a while.


Enhancement: grep-like ability to change multiple URLs in a web map.

It would be useful to have a grep-like ability to change the URL references in a web map.
For example, say I have a bunch of services on beta.example.com and want to move them to www.example.com. Currently it is possible, but I would need to change these URLs one by one. :turtle: It would be nice to have a faster way to do this. :rabbit2:

@JeffJacobson @ecaldwell This is a pretty old ticket, but I would like to contribute to this repo and I think I can tackle this one pretty quickly over the long weekend. I have needed this many times, and always just copy-paste the JSON into Sublime for a Global Find/Replace on the URL's, but having this in the UI would be great.
(I will implement it for a single webmap for now, and then we could always extend it for every item in a user's account or even every URL within an Org. if that was ever needed)

Sounds great! I was just talking through this with @rwmajor2. One issue is figuring out how the UI might change to support it. What about an "administrative" view for doing these types of bulk tasks?

For just the functionality part, I am taking a look now, and I was thinking we could just add a new button on the same row as the 2 existing buttons (Reset and Update), but pull the new button to the left side on the pane. Possibly name the button "Bulk URL Edit"? Clicking the button will open a simple modal that is basically just "Old Root URL" and "New Root URL" or something like that? Maybe the "Old Root URL" input could be a pre-populated dropdown list by reading all the existing Root URLs within the webmap layers.
It does seem like adding buttons all over will over-complicate the UI very quickly (I'm no UI/UX expert, that's for sure), so I'm happy to move this functionality anywhere else you guys deem appropriate.

I like the idea of a dropdown for the old url. I agree that the buttons may start to get unwieldy. What about a button up at the top to toggle between simple and batch modes. Then you can just add a new template for the batch mode.
I've often thought about what this app would look like (both UI and code) if I were to start writing it from scratch today. One of the things that I often picture is more like a set of possible options for a given item. Rather than filtering them on the left, they're all just there and then the type of each item dictates what can be done with it on the right. Selecting more than one item might then expose some bulk oriented tasks. I imagine this app would be much easier to extend if it was using a proper framework like react or ember.

I have to batch update many map service URLs used in web maps, and am very happy to find this functionality. Thank you so much for implementing this!!
Yeon

@yeonkim, Happy to hear that it is still helping out others!


Clean Reame

The current Readme is a mix of the original one and additions I made. It probably needs a bit of a cleanup.
What sections should it keep, add and remove to be both informative and non-cluttered?

Initial cleanup and accuracy fix: d4ab01c
Need to to a second pass, add the api, see if some things can't be moved around.


Add IP parameter in launcher

Resolves issue #582

Implement changes in launcher.py to write a file which specifies the IP used for setting up the gRPC server.
Added a test case in the test grpc library.
Changed the documentation to reflect that you cannot change the IP from the command line, you need to write first the mentioned file.

For more details see each commit of this branch.
tags:
resolve #582 , fix #582

@akaszynski
I realized that the test implemented was failing. After running it in my linux container I realized there is not such file as 'output.out'. I guess it is because the output is redirected to the stdout.
Not sure if this is a linux thing (so I will add a skipif OS != windows) or a "remote-server" thing (skipif remote =True).
Any suggestions?

I realized that the test implemented was failing. After running it in my linux container I realized there is not such file as 'output.out'. I guess it is because the output is redirected to the stdout.

This is an artifact of how we launch windows:
https://github.com/pyansys/pymapdl/blob/30755033ea5d8423a28631ba7ecdefe1c3129a6c/ansys/mapdl/core/launcher.py#L357-L366
With linux, we could just listen in to stdout, but really, it's enough that we can merely connect to the server.  I'd just validate that the server launches with something like:
assert mapdl.ip == ip

I'm putting in a suggestion.

Another note.  test_grpc_custom_ip should not run at all on our CI/CD.  There's something wrong with our skip check.  Please see if you can fix what we currently have, or add in a new way of checking if we're running MAPDL in a docker container.


docs: add new get started document

Signed-off-by: Aylei<EMAIL_ADDRESS>What type of PR is this?

[ ] API-change
[ ] BUG
[ ] Improvement
[x] Documentation
[ ] Feature
[ ] Test and CI
[ ] Code Refactoring

Which issue(s) this PR fixes:
Part of #140
What this PR does / why we need it:
Not Available
Special notes for your reviewer:
Not Available
Additional documentation (e.g. design docs, usage docs, etc.):
Not Available

Should we make mo cluster configuration example with minio like mo-cluster-minio.yml, aws may like mo-cluster-aws.yml ?

examples/mo-cluster.yaml has not yet used in document yet, we may switch to it after we have CI to ensure the example YAML always work


[CUDA][ROCM ?] header incompatibility with gcc 12

Currently there is a header incompatiblity with gcc 12 :
cf https://github.com/AdaptiveCpp/AdaptiveCpp/blob/develop/.github/workflows/linux.yml :
- name: uninstall gcc 12 development headers due to CUDA incompatibility
      if: matrix.os == 'ubuntu-22.04'
      run : |
        sudo apt remove libgcc-12-dev libstdc++-12-dev

using cuda 11.8, Debian clang version 16.0.6, gcc (Debian 12.2.0-14) 12.2.0
syclcc --hipsycl-targets='cuda:sm_70' --hipsycl-config-file=...

on the following file :
#include <sycl/sycl.hpp>
int main(void){}

gives :
acpp warning: No optimization flag was given, optimizations are disabled by default. Performance may be degraded. Compile with e.g. -O2/-O3 to enable optimizations.
In file included from sycl_include.cpp:1:
In file included from /scratch/tdavidcl/Shamrock_tests/cuda/OpenSYCL_comp/bin/../include/sycl/sycl.hpp:31:
In file included from /scratch/tdavidcl/Shamrock_tests/cuda/OpenSYCL_comp/include/sycl/../hipSYCL/sycl/sycl.hpp:50:
In file included from /scratch/tdavidcl/Shamrock_tests/cuda/OpenSYCL_comp/bin/../include/hipSYCL/glue/persistent_runtime.hpp:31:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/memory:77:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr.h:53:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr_base.h:196:22: error: use of undeclared identifier 'noinline'; did you mean 'inline'?
      __attribute__((__noinline__))
                     ^
/usr/include/crt/host_defines.h:83:24: note: expanded from macro '__noinline__'
        __attribute__((noinline))
                       ^
In file included from sycl_include.cpp:1:
In file included from /scratch/tdavidcl/Shamrock_tests/cuda/OpenSYCL_comp/bin/../include/sycl/sycl.hpp:31:
In file included from /scratch/tdavidcl/Shamrock_tests/cuda/OpenSYCL_comp/include/sycl/../hipSYCL/sycl/sycl.hpp:50:
In file included from /scratch/tdavidcl/Shamrock_tests/cuda/OpenSYCL_comp/bin/../include/hipSYCL/glue/persistent_runtime.hpp:31:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/memory:77:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr.h:53:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr_base.h:196:22: error: type name does not allow function specifier to be specified
/usr/include/crt/host_defines.h:83:24: note: expanded from macro '__noinline__'
        __attribute__((noinline))
                       ^
In file included from sycl_include.cpp:1:
In file included from /scratch/tdavidcl/Shamrock_tests/cuda/OpenSYCL_comp/bin/../include/sycl/sycl.hpp:31:
In file included from /scratch/tdavidcl/Shamrock_tests/cuda/OpenSYCL_comp/include/sycl/../hipSYCL/sycl/sycl.hpp:50:
In file included from /scratch/tdavidcl/Shamrock_tests/cuda/OpenSYCL_comp/bin/../include/hipSYCL/glue/persistent_runtime.hpp:31:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/memory:77:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr.h:53:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr_base.h:196:22: error: expected expression
/usr/include/crt/host_defines.h:83:33: note: expanded from macro '__noinline__'
        __attribute__((noinline))
                                ^
3 errors generated when compiling for sm_70.

This issue is also referenced in : https://github.com/AdaptiveCpp/AdaptiveCpp/issues/939 , https://github.com/AdaptiveCpp/AdaptiveCpp/issues/852

To quote an answer i got in the llvm discord
you can manually write over that file in your install directory, or potentially provide your
own by the same name and make it be found first with -internal-isystem or something to your path

They should be in /install/lib/clang/<version>/include

maybe this can be implemented in acpp as a workaround for this issue, however it may depend on the include order, in that case
quote :
but you would need to do everything manually
I.e. -nobuiltininc -nogpuinc and then pass the resource directory includes manually
via -isystem /yours/ -isytem /install//resource/dir/include or something
I recommend using -### to check the order these are showing up in

See https://reviews.llvm.org/D149364


updated data to avoid roundoff in php 7.1 and earlier versions

This change is

Coverage remained the same at 72.541% when pulling 9c2bc0c812113d4b8b7bc1edf8d7e91750d80d26 on lilgreenbird:precision into 75eac3425f10c3a39dd3ef1206ac969e14d5562c on Microsoft:dev.

Codecov Report

Merging #620 into dev will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev     #620   +/-   ##
=======================================
  Coverage   77.17%   77.17%
=======================================
  Files          25       25
  Lines        7308     7308
=======================================
  Hits         5640     5640
  Misses       1668     1668

Continue to review full report at Codecov.

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


Nightscout upload failed

Nightscout upload fails. Just bought a server from https://www.t1pal.com/ and entered upload url and upload secret and it just fails. Any suggestions? Api secret and host value seems to be fine.

I guess that t1pal shared hosting does not support api, but they do support uploader url. Does anybody know how to find documentation on how to use uploader api for nightscout. Documentation is tragic there! I would be willing to implement that

Found something, https://github.com/nightscout/cgm-remote-monitor/wiki/API-v1-Security.
curl "https://ce5d1fb4-upload-read-guest.t1pal.com/api/v1/entries?count=1" -H "Api-Secret: xxx" -H "Content-Type: application/json"

Tried using sha1 instead of api secret and still failed

It looks like I just needed to enter my api secret in sha1 format. It works! Thanks a lot! Swagger docs were a great help too!


Add custom interactivity for packages

e.g. The package creating a WiFi Access Point should ask for the SSID and a passphrase see Inspiration - Futurice to see how simple questions can be implemented.

Closed: https://github.com/constant-flow/raspberry-pack/commit/07cd725d11e7e6f89a5562ee12b8a74036283ac8


Make softlayer cpi compatible with bosh-init

In order to make Softlayer eCPI compatible with bosh-init, we made lots of changes.

Please update godep workspace to include the latest changes from softlayer-go
Please update godep workspace to include a new dependency "github.com/pivotal-golang/clock"
I committed lots of godep workspace changes from my local workspace, please ignore them if not suitable

@jianqiu can you update the godeps and send me a separate PR on it?

@jianqiu please resolve the remaining conflicts and I will take update.

Due to Godeps/Godeps.json conflicts, so closed it, please use the new PR (https://github.com/maximilien/bosh-softlayer-cpi/pull/77) for review


Support CoW AMM stats on all chains

This PR makes it so that statistics for CoW AMMs are chain agnostic. Unfortunately I wasn't able to get the Uniswap graph working our of the box, as it uses different even tables on different chains (and dunes variable syntax isn't flexible enough to choose a target table based on a condition).
Will ask them on tg, but for now we will have to live with CoW AMM performance vs. rebalancing portfolio.
Test Plan

Arbitrum: https://dune.com/cowprotocol/cow-amm-micro-v2?token_a=0x2c650dab03a59332e2e0c0c4a7f726913e5028c1&token_b=0x82af49447d8a07e3bd95bd0d56f35241523fbab1&blockchain=arbitrum&blockchain_t62d7a=arbitrum&token_a_t4bf20=0x2c650dab03a59332e2e0c0c4a7f726913e5028c1&token_b_t51de7=0x82af49447d8a07e3bd95bd0d56f35241523fbab1&start_d87a1a=2024-09-17+00%3A00%3A00
Gnosis: https://dune.com/cowprotocol/cow-amm-micro-v2?token_a=0x6a023ccd1ff6f2045c3309768ead9e68f978f6e1&token_b=0x9c58bacc331c9aa871afd802db6379a98e80cedb&blockchain=gnosis

Unfortunately I wasn't able to get the Uniswap graph working our of the box, as it uses different even tables on different chains (and dunes variable syntax isn't flexible enough to choose a target table based on a condition).

Would the approach in https://github.com/cowprotocol/dune-queries/blob/d7f5e6b6a0c4931290c517d5fb939b2db36dffba/cowprotocol/accounting/token_imbalances/balance_changes_4021257.sql#L241 help here?
It is a bit ugly but one can create different tables for different chains and then select the correct one based on a parameter.

This could work. I'm also considering reconstructing the events based on raw logs (which is available in a chain uniform way). However, I think it's ok to have a separate PR for this.

and also fix the typo in the description of 4059700

It's usually easier to comment directly on the line that has the type so that I don't have to guess which one you mean (although it's a good test for my orthographic reading skills). You can even suggest the fix there :-)


Fixed Issue #4165

Codeceptjs version 3.5.10 and above - Throws DataCloneError when I.executeScript command is used with run-workers
npx codeceptjs run-workers 2
Issue:
https://github.com/codeceptjs/CodeceptJS/issues/4165

@kobenguyent we are blocked due to this issue.  Please review this PR on priority.


Delete CNAME

This file is no longer required because of the move to Netlify.

I would reopen #25 but I deleted the branch a long time ago.

This PR has been closed in favour of #25


Fixed yaml exception in creative-commons-kiwi.md

Fixes

Fixes #155 by @justaskulkarni
Description

Before this PR, there was a yaml exception in the terminal because the link in creative-commons-kiwi.md was spanned across 2 lines. Yaml is whitespace sensitive, and hence YAML expects key-value pairs to be defined on a single line, so it interprets the second line as an exception.
Technical details

Removed whitespace and fixed the link.
Screenshots

Before -

After -

Checklist

[x] My pull request has a descriptive title (not a vague title like Update index.md).
[x] My pull request targets the default branch of the repository (main or master).
[x] My commit messages follow best practices.
[x] My code follows the established code style of the repository.
[ ] I added or updated tests for the changes I made (if applicable).
[ ] I added or updated documentation (if applicable).
[x] I tried running the project locally and verified that there are no
visible errors.

Developer Certificate of Origin

For the purposes of this DCO, "license" is equivalent to "license or public domain dedication," and "open source license" is equivalent to "open content license or public domain dedication."

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@yogeyyy thanks for this! ❤


Don't update EditorSettings dialog unnecessarily

Fixes regression from #59426
The PR made the inspector update unconditionally, restoring the old bug where changing interface color would reload everything 🙄
(this would've fixed #59798 if it wasn't closed already)

Thanks!


”Bârnova”, ”Cercu”, ”Păun” are listed in the drop-down menu

Description:
When user writes ”Bârnova”, ”Cercu”, ”Păun” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Bârnova"

Expected results
The location appears in the drop-down menu as "Sat Bârnova, IAȘI (Bârnova)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Cercu"

Expected results
The location appears in the drop-down menu as "Sat Cercu, IAȘI (Bârnova)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Păun"

Expected results
The location appears in the drop-down menu as "Sat Păun, IAȘI (Bârnova)".


Fix preprocessor issues

Do not compare the version number for external SQLite3 libraries
Correct use of the __has_include macro to stop the preprocessor from complaining

Thanks, I noticed the new warning and made the same change locally!


Camera preview image distorted

Self Build b25fb867ab7ee8ff8114417f743cd79753f9e3c9, AOSP11
Test pattern: https://arachnoid.com/python/weatherreader/graphics/test_pattern_chart.jpg
In IndentifyDog app:

In camera app:

This is likely an issue with the Camera2 API and should be fixed with the last few commits. Could you compile and try the most recent version?

Unfortunately I'm unable to reproduce this error on the devices that are available to me at the moment. Could you try manually setting the variable useCamera2API at https://github.com/j05t/identify-dog-breeds-pro/blob/b4f265e16a6d0c21814c894ed593a7c1d287d4f5/src/com/jstappdev/identify_dog_breeds_pro/CameraActivity.java#L635 to false?

No joy.
Android 11 AOSP based, always distorted
Samsung 6.0, works fine (all APKs tested)


Model-based Monitor API

Specifying a custom Monitor is harder now we have models as it requires
the user to know the names of the Table and Fields they are interested
in. We already have this data in the model.
This commit changes the API to make it easier.
For example:
err = ovs.Monitor("play_with_ovs",
	ovs.NewTableMonitor(&OpenvSwitch{}),
	ovs.NewTableMonitor(&Bridge{}),
)

You can optionally provide pointers to the fields in a model to monitor
only those columns.
Signed-off-by: Dave Tucker<EMAIL_ADDRESS>

Thanks for the comments @halfcrazy. All addressed.


Allow custom config file path

Add a --config option.  This would not make sense in a config file.

closed in #402


PowerToys run crashes even after update

Microsoft PowerToys version
0.71.0
Installation method
PowerToys auto-update
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
There is nothing special. PowerToys  run just crashes randomly while typing.
✔ Expected Behavior
Powerrun functions
❌ Actual Behavior
Powerrun crashes randomly while typing. Doesn't run again unless I quit and run powertoys again.
Other Software
No response

/bugreport

PowerToysReport_2023-07-24-17-34-47.zip
I hope this is OK

Btw, this isn't a new issue. I've been dealing with this for more than a month, even before I updated to 0.71

Indeed it looks like it is crashing quite a bit, according to the event viewer logs here.
Something that might help understanding which plugin is causing this might be to start with all plugins disabled, enable a plugin and restart PowerToys and so on, enabling the plugins one by one until it's identified.
Something else that might help here would be a crash dump.
One way of achieving this would be by creating an entry in the Registry Editor (regedit.msc), for Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\PowerToys.PowerLauncher.exe , according to the instructions in https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps
It should look something like this in the end (but for PowerLauncher):

After that, please replicate the bug, navigate to %LOCALAPPDATA%\CrashDumps in the File Explorer and upload the zipped PowerToys.PowerLauncher.exe.*.dmp file to a GitHub comment.
/needinfo


Console argument() method should include bool return type

Laravel Version: 9.x.x
PHP Version: N/A
Database Driver & Version: N/A

Description:
Console/Concerns/InteractsWithIO.php@argument() should include bool (@return string|array|null|bool) in its return types.
By calling Artisan::call([command], [ 'fooBool' => true ]) the value returned from $this->argument('fooBool') would be a boolean.

My thoughts: Should be a simple update, but I'm not sure if we would need to account for that anywhere else.
Steps To Reproduce:

Create a command that compares $this->argument('fooBool') === false
IDEs will complain, phpStan will flag this as an error

Please just attempt a PR. Also don't submit half-filled in issue templates.


[SPARK-48277] Improve error message for ErrorClassesJsonReader.getErrorMessage

What changes were proposed in this pull request?

We also need the messageTemplate in the error message to better debug
      sub.replace(ErrorClassesJsonReader.TEMPLATE_REGEX.replaceAllIn(
        messageTemplate, "\\$\\{$1\\}"))

Why are the changes needed?

Improve debuggability.
Does this PR introduce any user-facing change?

NO
How was this patch tested?

N/A
Was this patch authored or co-authored using generative AI tooling?

NO

@cloud-fan

The k8s failure is unrelated, thanks, merging to master!


Update to SenzingAPI 3.8.0

See https://github.com/Senzing/g2-sdk-go/issues/95

Pull requests:

https://github.com/Senzing/serve-chat/pull/91


Updated prism-jsx.min.js to match the latest prism.jsx.js version

The minified file was outdated so I minified the current prism.jsx.js. Some of the letters used for minification changed (i -> t), I hope that's not an issue?
Includes changes from #2836 #2862 #2881.

It already is up to date. You may not be using the same version of uglify. Install with npm ci to make sure you're matching the same version and you should see the same output as what's on master.
That said, if there's a new version of uglify that's producing better results, we should probs upgrade and run it over everything. If you want to PR that, we'd be open to it.


feat: Use cache data for initial build

This PR downloads all the data initially on build time as json and uses this to render the pages statically. This avoids getting 429 too many requests responses. Then, if the data changes, the revalidate of nextjs executes and it fetches the real data, not the jsons.
#42 should be merged before this branch.
A great little hack! :)

Just a hint if anyone else looks at this PR: If we want to test the build script locally, a env.local.development is not sufficient. We need to additionally add a .env with all required variables for the build script to pick it up.

True! I added a hint in the readme

:tada: This PR is included in version 1.0.0-rc.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Unread counter on STREAMS row should follow display setting

The unread counter on STREAMS row should be shown as a dot (with the count displayed on hover) when "Show unread counts for" is configured as "No streams".
This is a follow-up to #27718.

(filing this issue to make it easier to keep track of what we have left to do)

I'd like to work on this issue!

@zulipbot  claim


🔌 Plugin: Scorecard, v1

Goal
Details to follow
What problem does this solve?
Details to follow
Use cases
Details to follow
Acceptance criteria
Details to follow
Issues in Epic
Details to follow

@jasperchui @rtaniwa @christophe-f Any idea what this is about?

@rtaniwa thank you for the context. I'm closing this for now.


Best approach for storing data in session?

Hi,
What is the best approach to store data in session?
I'm using mobx as a store, and would like to be able to set and retrieve data between browser refreshes.
Obviously, I cannot use sessionStorage.
What are guys doing? using 'config' for this or some CLIENT variable?
Thanks.

Right now the only thing I am storing is the auth access token, I stored it in a cookie as I need it in the server too
So my flow is: user log in -> save access token to cookie -> user refresh page -> browser sends the cookie to server -> on the server I get the access token from cookie -> fetch data from my api using the token -> render everything -> dump all the state to html -> send html+state to client -> react is happy with no html mismatch

I used redux but I used express session and when the user logged in I store the data in a session Then I checked if the session data was available before creating the store. If it was use that otherwise use some default state.