Couldn't resolve the package 'path_provider' in 'package:path_provider/path_provider.dart' (Android Studio)

Hello
I use Android Studio and just installed path_provider package, But I got this message error when run the App:
Invalid depfile: C:\Users\Husam.Alhwadi\StudioProjects\Bikum\.dart_tool\flutter_build\4a7dfe41f194fdc317c7d223950aeb41\kernel_snapshot.d
Invalid depfile: C:\Users\Husam.Alhwadi\StudioProjects\Bikum\.dart_tool\flutter_build\4a7dfe41f194fdc317c7d223950aeb41\kernel_snapshot.d
**Error: Couldn't resolve the package 'path_provider' in 'package:path_provider/path_provider.dart'.**
screens/lib/screens.dart:9:8: Error: Not found: 'package:path_provider/path_provider.dart'
import 'package:path_provider/path_provider.dart';

I tried flutter clean and restarted the android studio but didn't help....also I have downgraded the versions of path_provider to 2.0.9 but didn't help as well....
find below flutter Dcotor report for your reference(**Note: I don't need Visual Studio as I'm developing mobile app**) :
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.0, on Microsoft Windows [Version 10.0.19044.1706])
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0-rc2)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
    X Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.1)
[√] VS Code (version 1.67.1)

pubspec.yaml file:
dependencies:
  flutter:
    sdk: flutter
  flutter_localizations: # localization
    sdk: flutter
  intl: ^0.17.0
  http: ^0.13.4
  shared_preferences: ^2.0.13
  loading_animations: ^2.2.0
  connectivity_plus: ^2.3.0
  permission_handler: ^9.2.0
  flutter_map: ^0.14.0
  maps_launcher: ^2.0.1
  image_picker: ^0.8.5+3
  path_provider: ^2.0.10

Thanks for your quick response, please find the attached log file
path_provider.txt

issue has been solved by install path_provider package on the pubspec.yaml at the root directory, I have another package in my project  called 'screens' and set at the same level for project lib folder! I don't know if I have to move it under the main Lib folder or not?, Most packages work fine once they installed only on screen package but this one looks need to be installed in the root pubspec.yaml as well, attached is the screenshot of my project structure

Thanks for the update and looking closer at the error you had shared originally which I somehow missed:
screens/lib/screens.dart:9:8: Error: Not found: 'package:path_provider/path_provider.dart' import 'package:path_provider/path_provider.dart';
It was pointing to screens folder and looking for the package which it couldn't find so, as you mentioned, adding the same should have fixed the error.

I don't know if I have to move it under the main Lib folder or not?

Yes you should have all code (dart) files mainly inside lib inside which you can have hierarchy of folders based on your code structure.
Since the issue has been resolved, I'll go ahead and close it.


JSON parse error: Invalid value. at offset

This is an error caused by removing (in #242) the code to handle float infinities (introduced in #85) as requested in #208.
This becomes effectively a breaking change because existing json may have been written using e.g.
"edges": [
    15.0,
    20.0,
    25.0,
    30.0,
    40.0,
    50.0,
    60.0,
    120.0,
    Infinity
]

What we should do is allow but warn on use of these, as is done in the schema validator.

See https://gitlab.cern.ch/cms-nanoAOD/jsonpog-integration/-/merge_requests/79 for work to update centrally-produced json to use string infinity


Initialize and run Discord.js client

Right now, we just have an empty Node.js project. We need to initialize Discord.js so that our bot is running in the background and listening for events. Don't add any features yet, we just need a baseline!

I can do this too


tofnd don`t import

v0.10.2
# tofnd -m import
Please type your tofnd password:

{"timestamp":"2022-05-22T08:09:15.148116Z","level":"INFO","message":"START: decrypt kvstore","spans":[{"name":"main"}]}
{"timestamp":"2022-05-22T08:09:15.350100Z","level":"INFO","message":"DONE: decrypt kvstore","spans":[{"name":"main"}]}
{"timestamp":"2022-05-22T08:09:15.350162Z","level":"INFO","message":"kv_manager cannot open existing db [/root/.tofnd/kvstore/kv]. creating new db","spans":[{"name":"main"}]}
{"timestamp":"2022-05-22T08:09:15.350197Z","level":"INFO","message":"Importing mnemonic","spans":[{"name":"main"}]}

hi @yarnik1 thanks for the feedback!
If I understand correctly, the issue is that the tofnd binary seems to be stuck at the last step of the logs you posted. That is, because it's expecting to receive the mnemonic from the standard input at this stage.
To proceed, please paste your mnemonic and press enter -- notice that, similarly to the password prompt, the pasted mnemonic will not be shown at the terminal once pasted for security reasons.
If you want to use your mnemonic from a file (eg ~/.mnemonic) instead of pasting it at the prompt, you can adjust the import command as follows:
(echo $PASSWORD; cat ~/.mnemonic) | tofnd -m import

After the import command is successfully executed you should see something similar to the following:
{"timestamp":"2022-05-23T13:46:41.467997Z","level":"INFO","message":"START: decrypt kvstore","spans":[{"name":"main"}]}
{"timestamp":"2022-05-23T13:46:49.276357Z","level":"INFO","message":"DONE: decrypt kvstore","spans":[{"name":"main"}]}
{"timestamp":"2022-05-23T13:46:49.276429Z","level":"INFO","message":"kv_manager cannot open existing db [~/.tofnd/kvstore/kv]. creating new db","spans":[{"name":"main"}]}
{"timestamp":"2022-05-23T13:46:49.276527Z","level":"INFO","message":"Importing mnemonic","spans":[{"name":"main"}]}
{"timestamp":"2022-05-23T13:47:20.797124Z","level":"INFO","message":"Inserting mnemonic under key 'mnemonic' with total count '0'","spans":[{"name":"main"}]}
{"timestamp":"2022-05-23T13:47:20.798362Z","level":"INFO","message":"Mnemonic successfully added in kv store. Use the `-m export` command to retrieve it.","spans":[{"name":"main"}]}
{"timestamp":"2022-05-23T13:47:20.799331Z","level":"INFO","message":"Tofnd exited after using command <Import>. Run `./tofnd -m existing` to execute gRPC daemon.","spans":[{"name":"main"}]}
{"timestamp":"2022-05-23T13:47:20.799482Z","level":"INFO","message":"kv_manager stop"}

This means that your tofnd is setup with the imported mnemonic, and is ready to be started.
tofnd -m existing

Please let us know it you are facing any problems.


Add rpm-file-permissions

As we are COPYing in some directories that are provided by the filesystem
rpm package we are unfortunately changing default permissions set on those
directories. This shell script uses information provided by an rpm query
to reset permissions of directories we are changing to their default values.
Fixes: rhbz#1481808

Actually this is not working as expected:
make tag VERSIONS=core && docker run --rm -ti centos/s2i-core-centos7:latest bash -c "rpm -V filesystem"
...
.M.......    /
missing     /boot
.M.......    /opt
.M.......    /usr

So only /usr/bin had its permissions changed...

Fixed some of the issues I have encountered in previous comment (by resetting permissions last). Also moved some commands around in the Dockerfile to achieve better cache usage.

For some reason we still are unable to change permissions on / (even the rhel base image is affected). I guess this is due to some runtime checks of Docker itself but will look for more information.

For some reason we still are unable to change permissions on /

Running docker commit on a container with permissions on / changed runs into the same issue. Docker does not seem to pick up that / has been changed and just uses the base image as is, without adding any additional layers on top.
However, this is only happening with some storage drivers - I can reproduce on overlay2 and Pavel mentioned the same for btrfs. When devicemapper is used chmod 0555 / works as expected...

I created a BZ against rhel7 for the / issue over at: https://bugzilla.redhat.com/show_bug.cgi?id=1499755

Good job, LGTM

So in every image using s2i-core base image where root/ is added into /, rpm-file-permissions have to be run in each image to have right permissions to, right?

So in every image using s2i-core base image where root/ is added into /, rpm-file-permissions have to be run in each image to have right permissions to, right?

Ultimately yes. So far it seems only /usr/bin is posing issues during certification.

Please allow for #136 to be merged in first as the s2i-base tests are actually not running against changes to s2i-core that are part of this PR.

[test]
And I'll play with this in https://github.com/sclorg/postgresql-container/pull/192
But I don't think we necessarily have to wait for the CI results.

Rebased. I want to wait at least for the centos pass on the newest state of this PR (since we are actually testing s2i-base built from s2i-core now).
I will test on rhel locally while this runs.

After several hours I canceled the build, seems like there's something wrong with Nodejs container build:
4:24:45 ---> Building your Node application from source
14:24:46 E1011 16:24:46.003688 05302 util.go:91] npm WARN package.json<EMAIL_ADDRESS>No license field.
18:19:31 Build was aborted
18:19:31 Aborted by Pavel

I have tried running tests against both rhel and centos locally and they completed just fine

Will be merging this despite the failing test on rhel. The changes should not introduce any issues as far as I can tell and I have verified that the tests pass locally on both rhel and centos so it should be safe.


Debounce resize handler

Debounce the resize handler function on the render component,
https://github.com/btzr-io/Villain/blob/448b5594186876886c3ff9f654a40b82df3e6949/src/components/render.js#L161-L163

@btzr-io https://github.com/btzr-io/Villain/pull/70

I'm not sure if debounce is the right approach:
See full conversation: https://github.com/btzr-io/Villain/pull/70#issuecomment-544191138


Pdf Support

how about pdf support ? i made something for ng2-pdf-viewer but this one seems better, my repo link

@hitmacreed Hello. So far I have not planned to do this. I hope you did it.

Ok , i managed to do it :)


onPress is not a property of Pressable?

Description
When invoking the pressable component (or IconButton / Button) I am told that onPress is not a valid property
CodeSandbox/Snack link
https://codesandbox.io/embed/blue-water-2gvzpy?fontsize=14&hidenavigation=1&theme=dark
Steps to reproduce
Screenshot

Code Sandbox to reproduce
Project
https://github.com/Andrew-Pynch/PitchShifter
Clone this repository and notice that the buttons do not inherit the onPress method as described in the bug report
NativeBase Version
3.4.9
Platform

[ ] Android
[X] CRA
[ ] Expo
[ ] iOS
[ ] Next

Other Platform
No response
Additional Information
No response

Hey @Andrew-Pynch, Thanks for reporting the issue. We'll fix it.

Hey @Andrew-Pynch, I am unable to reproduce it. Please try it with the latest version of the native-base.

@Viraj-10
I have installed the latest version 3.4.19 and I still have the issue: Property 'onPress' does not exist on type 'IntrinsicAttributes & InterfacePressableProps :

And I got the same error when I tried to use onPress for the Button component. Any thoughts please ?

hey @maaliHasan, can you share your package.json?

Hi @Viraj-10 , plz find my package.json file attached in below link :
packge.json

Hi @Viraj-10 , any updates on this, please?

Hi @maaliHasan, you have install incorrect type for react and react-native. Please install react 17 and react native 65 above types.

@Viraj-10 Thanks for the suggestion. But I still have the same issue after I upgrade the version of the react and react-native type!

For some reason https://github.com/GeekyAnts/NativeBase/pull/5473 got closed, which contains the fix.

Strange behavior, with workaround
rm -rf node_modules/native-base
npm install --legacy-peer-deps # React 18 funny business
npm start # error
npm install
npm start # OK


CI: Upgrade to new version

The CI seems not to work anymore.
This hopefully fixes it, but we should wait until the pipeline was successful.

Looks like a problem in the Windows Build continues to exist.

@falko17 Looks like a problem in the Windows Build continues to exist.

That has been resolved. The problem only appeared on the initial run, because the license wasn't set up correctly. The pipeline appears to run correctly now.


Devops 0000 temp

Merging in some fixes for rds_local, rds_tunnel, utils.bash, to fix RDS tunnel creation.

Hey Andy --
I did look through these  changes and they make sense.   We should take
some time to test them, though.
My environment is polluted at present, due to container work.   Can you do
the honors?  Once the code
is known to be working end-to-end, I am happy to merge.
Cheers --
On Mon, Jan 30, 2023 at 6:07 AM Andy Wortman @.***>
wrote:

Merging in some fixes for rds_local, rds_tunnel, utils.bash, to fix RDS
tunnel creation.
You can view, comment on, or merge this pull request online at:
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9
Commit Summary

4d2e0ca
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/commits/4d2e0ca33e3440efa6c3fce00b217bd142fdcf46
DEVOPS-0000-tmp
d5484aa
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/commits/d5484aaa80c03d15446ce5e428690e0954300b45
Fixing endpoints, and moving to rds_tunnnel_2
73d800b
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/commits/73d800b7785bae764dac5313333928d7854daedc
DEVOPS-0000: added install
a061796
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/commits/a061796d7ba9c3af3b700aebe75d0052463189e3
DEVOPS-0000-less_dull
b666cc3
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/commits/b666cc3f6bc6b9bc31cd71e6dd4ba2ac6f4e2f78
Removing temp debug statements
e670548
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/commits/e67054860f03a108319a0b1e5d4aa15d77c9484c
Removing more temp debug statements.
2e8c8c4
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/commits/2e8c8c4beed861dc86acd23f5c0fd51f345b6dfe
Moving more debugging behind to_debug

File Changes
(9 files https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files)

A Brewfile_geodesic
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files#diff-56ce9a21f91062d5b9d5aad53eaba8957202d81d56daffe7a717e225835b5404
(2)
D bt/bt_dot_tmp
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files#diff-e5a14713755be0edbf781096cbcd9d5cdc23f2b7eb30a8db9286c07adb1b5b96
(1)
A bt/bt_dot_tmp
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files#diff-e5a14713755be0edbf781096cbcd9d5cdc23f2b7eb30a8db9286c07adb1b5b96
(0)
M bt/cmd/rds_local
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files#diff-3fa8607eea6153dc218ffaec9ffea68e63f05a2e506b1c33491baf6da683716d
(16)
M bt/cmd/rds_tunnel
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files#diff-ac7a7960473b62cb335efd3b1a2909fb354b6c236018210ee591ec3e78c25cb1
(1)
M bt/cmd/rds_tunnel_2
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files#diff-cdbbe88e07c4b1478475f83f1c6eae36f0b706498f4f15cb07ca40738380d4c4
(5)
M bt/gen/red.gen.old
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files#diff-0ef507fc7ab4763bc301420712f2285c047a9f63499062d18fe4c6f55f70231d
(25)
M bt/lib/utils.bash
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files#diff-e94297bba01fed6e738aa0423646411eb6a059189d5148210f7a4b5750b9b1f8
(99)
A inst_geodesic.sh
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9/files#diff-843e7a2b2953d4f30a23605a4b03ab1407fd3f7dc9230df50f2b26a7c969d6eb
(82)

Patch Links:

https://github.com/analyticsMD/bin2ools-dotfiles/pull/9.patch
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9.diff

—
Reply to this email directly, view it on GitHub
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABEBE6QDOKA5YZ3IZ77OHRDWU7DLTANCNFSM6AAAAAAULGGVYE
.
You are receiving this because your review was requested.Message ID:
@.***>

Absolutely!  I did a battery of tests on this before I submitted the PR.  RDS tunneling is working as expected - apart from the known issue that the rds alias is broken.  Running rds_local directly works smoothly.  I'll be fixing the alias issue next in https://qventus.atlassian.net/browse/DEVOPS-7935.

Awesome -- thank you.    I had a bit of a problem this weekend
which distracted me from getting a lot done on the containers.
I was targeted by a group of scammers working on BandLabs.com
and SoundCloud.    They'd
been working those communities for some time, giving young musicians
the false hope that they had been 'noticed' by agents from Sony
Entertainment,
and would soon be signed -- all they have to do is fill out this bogus
online form
with some trivial personal data.  Then the scammers would clean them out.
I ran a reflected XSS scanner against their online form, found a few vulns,
injected
some code, found their IP address, then reported it to the legal team at
Sony Music,
bandlabs, soundcloud, and the FBI, along with the history of where the
group had
been operating over the past few months, and the personal data I was able
to pull
from the form's version history.
Trying to catch up first thing this morning....
On Mon, Jan 30, 2023 at 7:02 AM Andy Wortman @.***>
wrote:

Absolutely! I did a battery of tests on this before I submitted the PR.
RDS tunneling is working as expected - apart from the known issue that the
rds alias is broken. Running rds_local directly works smoothly. I'll be
fixing the alias issue next in
https://qventus.atlassian.net/browse/DEVOPS-7935.
—
Reply to this email directly, view it on GitHub
https://github.com/analyticsMD/bin2ools-dotfiles/pull/9#issuecomment-1408784605,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABEBE6WX7BL5ZPKI5OGM65TWU7JXJANCNFSM6AAAAAAULGGVYE
.
You are receiving this because your review was requested.Message ID:
@.***>


Bot permission checks should be ignored when not in a guild.

I currently have a command which sends an embed, so I added the EmbedLinks as a required permission. However, I still want this command to be able to be used outside of guild channels.
If you use any command that required a certain permission outside of a guild, this exception will be thrown: http://prntscr.com/ehbjpw These permission checks should be ignored if the message was not sent in a guild.

Does it work if you make an overload for the command which requires a DM context and not the permission?


Error in e2e tests with protractor

I found an issue in protractor configuration file. It should contain a line like,
"seleniumAddress": 'http://localhost:4444/wd/hub',
to work properly. And before you run the test, you should start webdriver using command,
webdriver-manager start

I've included that line and ran webdriver-manager start before running in a separate terminal protractor e2e-tests/protractor.conf.js and protractor still does not work, I get the following errors:
MacBook:angular-seed micahblu$ protractor e2e-tests/protractor.conf.js
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
FF
/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877
      var result = fn();
                   ^
Error: Angular could not be found on the page http://localhost:8000/app/index.html : retries looking for angular exceeded
    at /usr/local/lib/node_modules/protractor/lib/protractor.js:479:17
    at [object Object].promise.ControlFlow.runInFrame_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)
    at [object Object].promise.Callback_.goog.defineClass.notify (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)
    at [object Object].promise.Promise.notify_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)
    at Array.forEach (native)
    at Object.goog.array.forEach (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/array/array.js:203:43)
    at [object Object].promise.Promise.notifyAll_ (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:552:16)
    at [object Object].goog.async.run.processWorkQueue [as _onTimeout] (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/async/run.js:125:21)
    at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
From: Task: WebDriver.manage().timeouts().setScriptTimeout(11000)
    at [object Object].webdriver.WebDriver.schedule (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:360:15)
    at [object Object].webdriver.WebDriver.Timeouts.setScriptTimeout (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:1367:23)
    at [object Object].Runner.createBrowser (/usr/local/lib/node_modules/protractor/lib/runner.js:181:30)
    at /usr/local/lib/node_modules/protractor/lib/runner.js:257:21
    at _fulfilled (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:797:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:826:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:759:13)
    at /usr/local/lib/node_modules/protractor/node_modules/q/q.js:573:44
    at flush (/usr/local/lib/node_modules/protractor/node_modules/q/q.js:108:17)
    at process._tickCallback (node.js:419:13)
[launcher] Process exited with error code 1

I think it may have something to do with the baseUrl option, as it does pull up a browser window with that url however it provides a "webpage is unavailable" message in the blank window. That would explain why it can't find angular.

All dependencies and tools have been updated recently and this is hopefully no problem any more.
Please open a new issue, if you are still facing problems.


specify pub payload

Dear Author:
I know how to use this tool. But i can 't  specify pub payload.
May be you can provide a option like other[-c/-I].
I think that it is also useful  for other users.
Thank you for your reply.

@lewis081 Use '-s Size'


[jvm-packages][spark-gpu] Add GPU support for XGBoost4j-Spark-Gpu

This PR is trying to bring spark-rapids  to accelerate XGBoost from end to end by GPU. It is a following-up or replacement for https://github.com/dmlc/xgboost/pull/5950. For more history can refer to this comment
This PR first reworked CPU training and transform pipeline and then added GPU pipeline for xgboost4j-spark-gpu
Reworked CPU pipeline

Reworked CPU train/transform pipeline
Moved the data-preparations into PreXGBoost before XGBoost train
Changed the API of XGBoost to train on RDD[Watches] instead of RDD[LabeledPointed]. Watches is an collection of DMatrix

Added GPU pipeline in XGBoost4j-Spark-Gpu
The goal of XGBoost4j-Spark-Gpu is to support training/transforming on both CPU and GPU.

Soft link the CPU pipeline into XGBoost4j-Spark-Gpu, so it can fully support CPU
Add some GPU params for GPU-only
Add spark-rapids dependency to accelerate ETL by GPU.
Define PreXGBoostProvider  and  implement it by GPU.
add ServiceLoader to discover GPU implementation
implement the APIs of PreXGBoostProvider

Design and APIs

The whole picture can refer the above flowchart.
This PR has defined below APIs for different implementations.
buildDatasetToRDD to convert Dataset into RDD[Watches], Watches is a collection of DMatrix
This PR has moved the code for data preparation into PreXGBoost. For the built-in CPU pipeline, the data preparation first converts the Dataset into RDD[LabeledPoint] and then to RDD[Watches], finally to RDD[Booster]. The LabeledPoint way is quite CPU-related, which converts each Row into LabeledPoint which is row-wised. But GPU honors column-wised data, which means GPU do not need LabeledPoint any more. GPU can have its own way to build DMatrix from the column data.
transformSchema
the built-in transformSchema  in the Spark ML framework requires the feature column and label columns. The feature column is the vectorized type of all feature columns. Just like the description as above, GPU way honors column data, and do not need to vectorize the feature columns, So for GPU, we need to intercept transformSchema and do check by itself.
transformDataset
Same as buildDatasetToRDD, CPU and GPU has different implementations.
How to discover GPU implementation
This PR makes the GPU implementation into a Plugin-way, and load it by ServiceLoader.
For xgboost4j-spark, this PR doesn't define the service in resource, so it will default not to detect GPU implementation.
For xgboost4j-spark-gpu, this PR declares the GPU implementation in the service in resource, so it can detect the GPU implementation by default. This PR also define an API to check if the GPU implementation is enabled or disabled. if it's not enabled, it will fall back to CPU implementation.
Usage for GPU
GPU version
    // user can get rid of this and specify the configs when submitting application
    val conf = new SparkConf()
      .set("spark.rapids.sql.enabled", "true")
      .set("spark.plugins", "com.nvidia.spark.SQLPlugin")

    val spark = SparkSession.builder()
      .master("local[1]")
      .config(conf)
      .appName(classOf[BobbyXGBoostSuite].getSimpleName)
      .getOrCreate()

      val schema = new StructType(Array(
        StructField("sepal length", DoubleType, true),
        StructField("sepal width", DoubleType, true),
        StructField("petal length", DoubleType, true),
        StructField("petal width", DoubleType, true),
        StructField("class", StringType, true)))
      val rawInput = spark.read.schema(schema).csv(path)

      val label = "class"
      // get all feature column names
      val featuresNames = schema.fieldNames.filterNot(f => f.equals(label)).toArray

      val xgbParam = Map("eta" -> 0.1f,
        "max_depth" -> 2,
        "objective" -> "multi:softprob",
        "num_class" -> 3,
        "num_round" -> 100,
        "num_workers" -> 1,
        "tree_method" -> "gpu_hist",
      )

      val xgbClassifier = new XGBoostClassifier(xgbParam)
        .setLabelCol(label)
        .setFeaturesCols(featuresNames)  // API for GPU-only

      val xgbClassificationModel = xgbClassifier.fit(rawInput)

      val df = xgbClassificationModel.transform(rawInput)
      df.show()

Sharing the offline discussion here.  I think the user interface is fine since it aligns with the existing CPU implemetation.  We will start with smaller and lower level infrastructure first by eliminating unnecessary code.
cc @hcho3 @RAMitchell

Thx @trivialfis, I just removed the unsafe row building since it's unnecessary. Could you help to review it again?

Since this is a draft PR to make GPU pipeline implementation happen, I didn't take much care about the trivial things which will be resolved in the following small PR. So let me begin to put up the real PR. Thx @trivialfis


Added ic3bug's Multiplayer shooter projects

Thanks!

Thanks!

My first accepted pull request ^^

Those repositories are 404'd

@oofdog It seems the user @ic3bug has disappeared entirely from GitHub for some reason. I can see two mirrors here and here, so I guess I'll link to those for now.


upgrade azure sdk version to 1.14.0

Codecov Report

Merging #302 into develop will increase coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop     #302      +/-   ##
===========================================
+ Coverage    56.22%   56.25%   +0.02%
===========================================
  Files           57       57
  Lines         1743     1744       +1
  Branches       204      204
===========================================
+ Hits           980      981       +1
  Misses         694      694
  Partials        69       69

Impacted Files
Coverage Δ

.../maven/artifacthandler/ZIPArtifactHandlerImpl.java
80% <ø> (ø)
:arrow_up:

...crosoft/azure/maven/deploytarget/DeployTarget.java
47.05% <100%> (+3.3%)
:arrow_up:

Continue to review full report at Codecov.

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


[Docs][Discuss] How should we make documentation for call_packed, etc., more discoverable?

I am new to using and developing Relax and I am well aware of the ongoing efforts to develop more tutorials, but I would like to make an observation about my first steps in Relax that might suggest how to improve our documentation and make it easier for others to learn the language.
Namely, I struggled a bit with a simple example of calling a packed function from Relax (this was literally the first time I wrote any Relax code) and, in particular, had trouble with figuring out the call convention for call_packed. The tricky part of this is that since Relax is written using a decorator where call_packed is translated to a call node, my IDE's doc lookup could not find any documentation on call_packed (it is not implemented as a function in Python) and, indeed, grepping for call_packed also did not yield a definition or anything with documentation. On a practical level, it would be helpful for documentation on Relax language constructs to be easily discoverable, either via finding definitions of them in the code base or at least having documentation.
@YuchenJin had the idea of including the script format's syntax in the documentation for the relevant AST nodes -- this way they would come up in searches, at least. Are there more thoughts or suggestions on making docs more discoverable? I realize a proper language specification is likely in the works for the future, but having pointers to it from the code documentation would also be helpful.

Summary of discussion from Relax community meeting:
@tqchen proposes including documentation for constructs like call_packed in tvm.script.relax, which would allow for IDE auto-completion and documentation lookup.
@YuchenJin points out that in the case of call_packed, we could also add documentation to the ExternFunc AST node to describe this issue. There is also an operator associated with call_tir, so that would be a place to add documentation on that.
These are easily actionable proposals.


A new release for an unreleased commit?

ead67889c91c53ad967f85f5a89d986fdb98f6fb is not included in v1.0.0. Could you create a new release?
I would like to update a homebrew formula (Homebrew/homebrew#32748).

:+1:  This would be nice!

+1

+1 @sstephenson

I'd also like to request a v1.0.1 tag if you can find the time, @sstephenson. You're probably very busy; have you considered delegating (maintenance) work for this repo to a trusty contributor?
Alternatively, a homebrew tap can be made under homebrew-head-only. That would require no involvement from Sam. What do others think of doing this as a temporary solution?
Related to #7


Replace unix with not wasm32 in platform-specific dependencies

This will allow sabre smart contracts to be compiled on more
platforms when not compiling into wasm.
Signed-off-by: Andrea Gunderson<EMAIL_ADDRESS>To test: Add the wasm32 target rustup target add wasm32-unknown-unknown --toolchain nightly and run both cargo build and cargo +nightly build --target wasm32-unknown-unknown (in the respective directories). Both should pass.

Typo on commit message: "not compiling into was."

Type fixed


Publish latest version to npm

Seems the version on NPM is out of date (currently 1.0.1). Mind publishing the latest? Thanks!

:+1:

It seems there's an issue in in NPM. We'll take a look and restore the latest versions.

This has been fixed and now version 2.2.5 is available on NPM.

Awesome! Thanks so much.
On Wed, Aug 26, 2015 at 10:57 AM Ismael Ambrosi<EMAIL_ADDRESS>wrote:

Closed #79 https://github.com/VividCortex/angular-recaptcha/issues/79.
—
Reply to this email directly or view it on GitHub
https://github.com/VividCortex/angular-recaptcha/issues/79#event-393163623
.


Google Analytics

We need to prompt users for their permission to use cookies. See details here: https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced

Confirmed I'm actually getting analytics data.


loadImage when going back and forth with arrows

When rendering left and right arrows, on tapping the arrow, either this.goBack() or this.goNext() is called. See current implementation:
            <TouchableWithoutFeedback onPress={this.goBack}>
              <View>{this!.props!.renderArrowLeft!()}</View>
            </TouchableWithoutFeedback>

However, in this.goBack and this.goNext,  this.loadImage is never called. So no image is shown. This isn't a problem when doing the actual swipe gesture, because when using the swipe gesture, this.handleHorizontalOuterRangeOffset is invoked, which calls this.loadImage.
So now, pressing the arrows loads the image.

Ah nice! I was running into the same issue

Ah nice! I was running into the same issue

Is there an official release available containing this fix?
Looking at v3.0.1 it was released on 19 May 2020 (https://github.com/ascoders/react-native-image-viewer/releases/tag/v3.0.1).
But this commit was from 11 Dec 2020.

Can this please be merged? I'm experiencing the same issue


fix: Ignore lock files and out/ directory

I think you're still adding the targets? But I'm not sure

Nope, this is the current git status output:

I think you're still adding the targets? But I'm not sure

Nope, this is the current git status output:

But I'm going to add to the ignore file just in case my fs is doing some funny business haha.


Day39: 'Average of Levels in Binary Tree' solution

Average of Levels in Binary Tree
https://leetcode.com/problems/average-of-levels-in-binary-tree/
Given the root of a binary tree, return the average value of the nodes on each level in the form of an array. Answers within 10-5 of the actual answer will be accepted.

Example 1:
Input: root = [3,9,20,null,null,15,7]
Output: [3.00000,14.50000,11.00000]
Explanation: The average value of nodes on level 0 is 3, on level 1 is 14.5, and on level 2 is 11.
Hence return [3, 14.5, 11].
Example 2:
Input: root = [3,9,20,15,7]
Output: [3.00000,14.50000,11.00000]

Accepted!


Investigate if any of TRANSIT data can be added

Recontact the TRANSIT team in CSIRO to investigate if any data can be made public
https://www.csiro.au/en/Research/LWF/Areas/Landscape-management/Livestock-logistics/TRANSIT

TRANSIT data cannot be made public as per discussion with CSIRO Transit team; will re-open if data becomes available


ignoring unported packages

Ignore building packages that have not yet been ported

Please remove the CATKIN_IGNORE file again. Only one of the two marker files is necessary.

Please remove the CATKIN_IGNORE file again.

Addressed in #155.


[BUG] Loosing colors when alpha=0 for png

Hello,
I'm trying to add some metadata on an existing png file. This png file was written by Maya software (using the playblast feature).
In some part of the image, alpha=0 but we still have some colors. And these colors change when I write a new png file.
Steps to reproduce the behavior:
oiiotool input.png -o output.png
Here the comparaison in nuke:

input A (left side) is the input.png image
input B (right side) is the output.png image
the colors are preserved when alpha=1 (area inside the sphere in the image)
the colors are not the same when alpha=0 (area outside of the sphere in the image)

I would expect to preserve the colors of the image.
But maybe there is something linked to the specifications of the PNG format?
Thank you for your amazing library which makes life easier!

OIIO 2.1.16 built sse2, running on 16 cores 62.5GB sse2,sse3,ssse3,sse41,sse42,avx,avx2,avx512f,avx512dq,avx512cd,avx512bw,avx512vl,fma,f16c,popcnt,rdrand
Dependent libraries: jpeglib 9.2, null 1.0, OpenEXR 2.2.0, libpng 1.6.29, Ptex 2.2, LIBTIFF Version 4.0.7
OS: Centos 7

Could it be maya is outputting associated alpha pngs while OIIO is interpreting that as unassociated (or vice versa)?

Yeah, we've run into this same sort of thing due to Maya playblasts outputting PNGs with unassociated alpha.
Try oiiotool --iconfig "oiio:UnassociatedAlpha" 1 input.png -o output.png

Yeah, to clarify the terminology and issues here,

PNG by specification must be unassociated alpha (non-premultiplied color channels). That means that the displayable/computed color is supposed to be multiplied by alpha first, so any color with alpha=0.0 should look black.
OIIO has a policy of, by default, automatically premultiplying any unassociated alpha pixels upon input, so that everything on the app side can deal with correct associated alpha.
So if you want to do file-to-file copies and preserve the original color channel values of pixels with alpha=0, you need to disable this default behavior, and @nrusch is correct about how to do that for oiiotool.

I should point out here something important about WHY we prefer associated alpha. With associated alpha, a color like (1, 0, 0, 0) is glowing bright red, but also transparent, so will transmit the view of what's "behind" it in a compositing situation. Unassociated alpha cannot represent such a thing. In PNG, (1,0,0,0) is a clear black pixel that is 0% covered by red, which should look identical to a pixel that's 0% covered by any other color.

Thx you all for your response and explanantion!
I have one more question: is there any way, using oiiotool or the oiio python API, to add some metadata on PNG files (with unassociated alpha) without having to write again the pixel values? (to make this process as fast as possible)
Now I have this kind of cli:  oiiotool --iconfig "oiio:UnassociatedAlpha" 1 input.png --sattrib focal 10 -o output.png
It changes current image metadata and preserve the original color channel values of pixels with alpha=0, but the pixel values are written again. Maybe there is an option to only have a look at the header...?

I'm afraid that there is no provision in OIIO for just editing metadata without reading a whole file and writing a new file including the pixels. This is largely because, in turn, there is no provision in any of the underlying format-specific libraries we rely on, such as libtiff, libraw, etc., for doing so. Which is, in turn, largely because the file format specifications themselves tend not to make it easy.
Tip for anybody making a new image file format and read/write library for it: Build in a design goal from the start for being able to efficiently alter the metadata only, in-place, without having to copy pixels to a new file.

I'm a little surprised that the --iconfig you tried didn't do the trick of at least ensuring that the pixel values wouldn't be changed. But I don't have time at the moment to investigate.
🎣 Mackerel!

Thx again @lgritz , it's very clear. I have all the answers I needed. --iconfig does the job: the output image is ok.
To let you know, we decided in our studio to develop a custom process to add a list of text chunks to existing png files. We based our work on these docs:

https://www.w3.org/TR/2003/REC-PNG-20031110/
https://github.com/Hedroed/png-parser/blob/bc0749bb54cfe4b86b66937e2250e398c7ce330e/pngparser/png.py
https://github.com/python-pillow/Pillow/blob/6.2.2/src/PIL/PngImagePlugin.py
and oiio of course!

It is of course much faster, but very specific to this use case.
I'm closing this ticket.


Style fixes for domains commands

This PR brings some style changes detected while testing the CLI:

Add some missing jumplines
Fix indentation when getting cert issuing error.
Reorder domains inspect timestamps chronologically
Interpolate domain name in suggested command

Codecov Report

Merging #1796 into canary will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           canary   #1796   +/-   ##
======================================
  Coverage    78.7%   78.7%
======================================
  Files           6       6
  Lines         263     263
======================================
  Hits          207     207
  Misses         56      56

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 be9360f...a2611e0. Read the comment docs.


Update node-resemble-js dependency to fix pngjs dependency on node 0.8.

I forked the repo just for this. 👍


Database independent - using ORM https://www.prisma.io/

Thank you for your hard efforts, it's an amazing project
https://www.prisma.io/  - supports a lot of databases and it would be amazing to use such ORM and make this project independent from the underlying database

Yeah, probably a good move.Should still make a benchmark regarding performance.
If you use old mongodb driver like 3.0.2 then you are like 5 times faster than using the latest driver. Really sad.

We have quite some performance MongoDB optimisations done within this project. Moving to Prisma sounds like a task which is very hard to pull off.
I'll close this issue for now. But still waiting for other people contributions.


Error: Cannot find module 'jwa'

I setup an Azure Web App with deployment form GitHub.
Pushed the sample bot code from Core Concepts.
Registered a new bot in https://dev.botframework.com.
But when I test connection to my bot the answer is InternalServerError.
The Azure log stream says:
Application has thrown an uncaught exception and is terminated:
Error: Cannot find module 'jwa'
    at Function.Module._resolveFilename (module.js:325:15)
    at Function.Module._load (module.js:276:25)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (D:\home\site\wwwroot\node_modules\botbuilder\node_modules\jsonwebtoken\node_modules\jws\lib\sign-stream.js:4:11)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)

Hi @gfpacheco , can you show the code in your module.js ?

Weird, disconnecting the deployment source from Azure and connecting again solved the problem.

I'm seeing a very similar issue:
Fri Feb 24 2017 06:25:32 GMT+0000 (Coordinated Universal Time): Application has thrown an uncaught exception and is terminated:
SyntaxError: Unexpected token [
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (D:\Program Files (x86)\iisnode\interceptor.js:459:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
I tried disconnecting from source and reconnecting but the problem persists. Any ideas? The code works locally using the emulator.


Event Request - table 5089 "Contact Profile Answer" - OnInsertOnBeforeMutipleAnswerCheck

Please could we have a OnInsertOnBeforeMutipleAnswerCheck event in table 5089 "Contact Profile Answer", this will allow us to add our functionality for free text answers.
trigger OnInsert()
var
    Contact: Record Contact;
    ContProfileAnswer: Record "Contact Profile Answer";
    ProfileQuestnLine: Record "Profile Questionnaire Line";
    ProfileQuestnLine2: Record "Profile Questionnaire Line";
    ProfileQuestnLine3: Record "Profile Questionnaire Line";
    PerformCheck: Boolean;
begin
    ProfileQuestnLine.Get("Profile Questionnaire Code", "Line No.");
    ProfileQuestnLine.TestField(Type, ProfileQuestnLine.Type::Answer);

    ProfileQuestnLine2.Get("Profile Questionnaire Code", QuestionLineNo);
    ProfileQuestnLine2.TestField("Auto Contact Classification", false);

    PerformCheck := not ProfileQuestnLine2."Multiple Answers";
    OnInsertOnBeforeMutipleAnswerCheck(Rec, ProfileQuestnLine, ProfileQuestnLine2, PerformCheck);
    if PerformCheck then begin
        ContProfileAnswer.Reset();

[IntegrationEvent(false, false)]
local procedure OnInsertOnBeforeMutipleAnswerCheck(var ContactProfileAnswer: Record "Contact Profile Answer"; var ProfileQuestnLine: Record "Profile Questionnaire Line"; var ProfileQuestnLine2: Record "Profile Questionnaire Line"; var PerformCheck: Boolean);
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 11504.


Upgrade plugin to support Android V2 Embedding 升级支持 Android V2 Embedding

遇到以下的问题。可能必须升级？
The plugin `flutter_pda_scanner` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: [https://flutter.dev/go/android-plugin-migration]().

+1

大佬，有時間了幫忙升級下V2，總是報這個錯誤看著鬧心，雖然目前不影響使用


New config format

Problem
The old config format was never meant to be a permanent solution, just a way to quickly get things running. Here's what my bedroom looked like:
60
1.65 0.5
0
2.98 0 3.7084 0
3.7084 0 3.7084 2.86
3.7084 2.86 2.9591 3.6257
2.9536 3.6257 2.3 3
2.3 3 -0.015 3
-0.015 3 -0.015 0
-0.015 0 0.12 0

Parsing that into English:

60 was the density of the light strips in LEDs/meter
1.65 0.5 was the center point. All angle calculations are relative to this 2D point.
0 was the offset angle that would be applied to all angle calculations, in degrees.
The following lines are all line segments. The numbers in 2.98 0 3.7084 0 are respectively startX, startY, endX, and endY.

As you can see, not super human readable.
Solution
New config files will use toml and will look like this:
center_point = [1.65, 0.5]
default_density = 60.0

[[line_segment]]
start = [2.98, 0.0]
end = [3.7084, 0.0]

[[line_segment]]
start = [3.7084, 0.0]
end = [3.7084, 2.86]

[[line_segment]]
start = [3.7084, 2.86]
end = [2.9591, 3.6257]

[[line_segment]]
start = [2.9536, 3.6257]
end = [2.3, 3.0]

[[line_segment]]
start = [2.3, 3.0]
end = [-0.015, 3.0]

[[line_segment]]
start = [2.3, 3.0]
end = [-0.015, 3.0]

[[line_segment]]
start = [2.3, 3.0]
end = [-0.015, 3.0]

[[line_segment]]
start = [-0.015, 3.0]
end = [-0.015, 0.0]

[[line_segment]]
start = [-0.015, 0.0]
end = [0.12, 0.0]

Didn't see a good reason to keep angle offsets around.
If one wished for a specific line segment to have a different density from the rest, they can override like this:
[[line_segment]]
start = [1.5, 0]
end = [1.5, 3.0]
density = 90.0

Though this new format gives us much longer configuration files, I believe the added readability is more than worth it.
To-do

[x] Set up necessary data structures to represent Config files, Line segments, etc
[x] Get serialization via serde going
[ ] Support density defaulting and overriding

Commit b1fca72 implements the default density feature described in the original post. Not happy with the solution as it makes use of unsafe blocks, but I'm just not well-versed with serde enough to find a better solution. Worth revisiting.


Inconsistency between subnet creation command description and actual command line snippet

It seems there is an inconsistency between description and command line code snippet for section containing "How to create a new subnet using Powershell script. Below is the image screenshot with observed issue (potential)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 43cb3de0-aac6-49bb-a6b8-e7d1fb422b1e
Version Independent ID: 9ee114b8-14cc-0bb9-b46e-937cdb406bd3
Content: Connect virtual networks with VNet peering - Azure PowerShell
Content Source: articles/virtual-network/tutorial-connect-virtual-networks-powershell.md
Service: virtual-network
GitHub Login: @KumudD
Microsoft Alias: kumud

@vijayysisodia , thank you for the feedback. We'll review this and get back to you shortly!

@vijayysisodia , I see you have submitted a PR for this issue but the commit that you made only changes the Cmdlet but not the link:

Hence, I closed that PR and submitted a new one with below commit:

The change has been sent to author for review & update. Hence, keeping this issue on pending until the doc change.

@vijayysisodia , the PR has been merged. So the doc will be updated soon.
We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.


Completion adds the whole token

In Vim and GVim on Windows when I type prin<C-x><C-o> then select println! I see prinprintln! in the buffer instead of println!.
A short _vimrc is attached in case the fault is in there.

I don't reproduce the behavior.
println! cannot be completed.
I think SyntaxComplete is set in omnifunc.
Please check omnifunc value.

I have tested in minimal vimrc and other method works properly.

What minimal vimrc and what other method? set omnifunc=syntaxcomplete#Complete doesn't seem to change anything.

Here.
set runtimepath+=~/work/vim-racer
filetype plugin indent on

Can we reopen this please?

If other people can reproduce the problem by above minimal vimrc, I will reopen it.

With that vimrc I was getting the error about omnifunc not being set, then once set as in my vimrc I got pattern not found.

With that vimrc I was getting the error about omnifunc not being set, then once set as in my vimrc I got pattern not found.

You need to change ~/work/vim-racer to your vim-racer path.

then once set as in my vimrc I got pattern not found.

I got pattern not found to complete println!.

I also get Pattern not found for std::io::B where racer complete std::io::B gives me completions. I am using the minimal vimrc and now have the runtime path pointing to the correct place.

Now - I'm confused, it's all acting like you say it should (no println! completion and std::io::B completing to std::io::Box) Leaving this issue alone now. Many thanks for all your help.

OK.


Re-enable jck-runtime-api-org_ietf aarch64_mac and x86-64_mac

Re-enable jck-runtime-api-org_ietf aarch64_mac and x86-64_mac.
Fixes: https://github.ibm.com/runtimes/backlog/issues/1120
Signed-off-by: Kapil Powar<EMAIL_ADDRESS>

Thanks @KapilPowar . Could you provide Grinder links? For the internal Grinder, we do not need the full url, just Grinder/<job number>.


Update utils.psm1

This is the correct path:
https://s3.amazonaws.com/parsec-build/package/parsec-windows.exe

I just tried using parsec for cloud streaming. I used the Standard NV6_Promo VM SKU in West Europe. When starting the streaming I get the error code 15000 Unable To Initialize Encoder On Your Server which is said to be because either the grapfics card is not supporting streaming or I am using a cloud GPU. Either way: did you get streaming to work with parsec and how did you do it @Draxiler @jasbryan


Can you link two Knowledge Articles?

This seems like pretty basic functionality. Can the article please clarify if it is possible? And if so how?

@bean75 Please provide a link to the article in question so that we can determine the author.

https://docs.microsoft.com/en-us/dynamics365/customer-service/customer-service-hub-user-guide-knowledge-article

@bean75 we need more details regarding your question, please. What do you mean by "link two articles"? Thanks in advance for any further details you can provide.

I have a number of user guide articles where the content is connected. Think: Processing instructions, each step has an article.
How can I link them together in a seamless fashion so a reader can hop from one to the next and back again?
From: Laura Alexander<EMAIL_ADDRESS>Sent: Friday, February 12, 2021 5:11 PM
To: MicrosoftDocs/dynamics-365-customer-engagement<EMAIL_ADDRESS>Cc: Aline Fader (DCP<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/dynamics-365-customer-engagement] Can you link two Knowledge Articles? (#1962)
@bean75https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fbean75&data=04|01|afader%40planning.nyc.gov|11f0b8b8ca114c66ac7208d8cfa348e7|32f56fc75f814e22a95b15da66513bef|0|0|637487647503388149|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=54GBNrPAFPy1LsajmnbtWx3he2iWnrOrU4AsA2L5fTE%3D&reserved=0 we need more details regarding your question, please. What do you mean by "link two articles"? Thanks in advance for any further details you can provide.

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fdynamics-365-customer-engagement%2Fissues%2F1962%23issuecomment-778482454&data=04|01|afader%40planning.nyc.gov|11f0b8b8ca114c66ac7208d8cfa348e7|32f56fc75f814e22a95b15da66513bef|0|0|637487647503388149|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=8obmxIKMmOWFQvz%2FnAoHFf3069b8o0nHVvB3%2Bk0Vh1Q%3D&reserved=0, or unsubscribehttps://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAJTCBWYAB33L3TUGUBGLLQLS6WRPNANCNFSM4QNNOHXQ&data=04|01|afader%40planning.nyc.gov|11f0b8b8ca114c66ac7208d8cfa348e7|32f56fc75f814e22a95b15da66513bef|0|0|637487647503398106|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|1000&sdata=YHjpPVsK1GEslk%2BeZZkCKZoNJYo4RU8Ss8mj1PURGj8%3D&reserved=0.

@bean75 : Please refer to this article for linking articles. [Link and unlink knowledge articles](Link and unlink knowledge articles).  Please feel free to add comments if you have more questions. Closing the issue.


[Feature Request] Display multiple columns

I would like the feature to display all the tags or selected tags on the main page.
TAGS1   TAG2
URL       URL
URL       URL
URL       URL

Sorry, I don't really understand your request at all. Apart from making it clearer, it would also help to explain how this would be useful.

I wanted a way to see multiple tags at the same time in columns. So Column 1 will have TagX and Column2 will have TagY

No plans for adding that I'm afraid.

In the end, I created a new tag for most used bookmarks and I open that.

Thanks, sounds like you wanted a dashboard of some kind. Have you considered just running a dashboard app next to linkding and then duplicating links between both, or keep frequently used links in the dashboard only? I'm kind of curious why people want a dashboard in linkding, and what the benefit would be vs. just using a dedicated app for that.

I wanted a easy way to access my "most used" bookmarks. I have 100s and use less than 20 on a day-day / weekly basis and wanted easy access to it. Adding a secondary tag of "MostUsed" and filtering it to that and pining that tab, helped a lot.
Any other bookmark, I just load linkding and search it.


How do I extend / overwrite a specific popover show function

Hi,
With bootstrap 3 it was possible to extend a specific function like this where they use a _super to call the original constructor :
https://stackoverflow.com/a/12689534/1646514
So if I wanted to, I could overwrite the show function and write my own code there without having to modify directly the sourcefiles.
var _show = $.fn.popover.Constructor.prototype.show;
$.fn.popover.Constructor.prototype.show = function() {
    _show.apply(this, arguments);
    //Do custom stuff here
};

So far I was able to do this where I can apply code after the popover is created, but I cannot overwrite the show completely.
I know it's better to use the api, but it's for a framework built on bootstrap so we have specific needs that required an overwrite.
The framework is very friendly overwriting sass files and creating something completely custom, but with JS there is less documentation about how to overwrite certain parts of it. Probably due to the fact that the visuals need to change where as the JS is not something everyone needs to change

Hi @stephenbe,
In v4, you can overwrite any function by changing the prototype, for example:
var defaultShowPopover = bootstrap.Popover.prototype.show
bootstrap.Popover.prototype.show = function () {
    defaultShowPopover.apply(this, arguments);
    // Your custom stuff here
}

is it what you wanted?

Hi @Johann-S ,
Thank you so much for the fast reply. Actually that is really close it's the same solution I listed above, but I wasn't clear enough. I would like to take all of bootstrap show code and put it in there instead of defaultShowPopover.apply(this, arguments); and change their code ever so slightly.
With this solution I can put my code after the popover has already initialised.
https://github.com/twbs/bootstrap/blob/master/js/dist/tooltip.js#L525-L622
I would like to put this code back in and modify it to fits my needs. I am getting errors because it is referencing EventHandler variable that is defined at the top of the file which is generated by rollup.js.

You linked a file from our v5, which do not use jQuery. EventHandler is our internal event system (https://github.com/twbs/bootstrap/blob/master/js/dist/dom/event-handler.js).
So, if I were you I would inherit from Bootstrap classes, like that you would be able to override or to use our built-in methods, it would be a reliable way to customize our components behavior

When you say inherit bootstrap classes do you mean extending Tooltip class here?
https://github.com/twbs/bootstrap/blob/v4.3.1/js/src/tooltip.js#L120
I have the same problem util is not defined because of the generated code on top of that file
https://github.com/twbs/bootstrap/blob/v4.3.1/js/dist/tooltip.js#L379-L475
Thank you for your patience with me on this

Yep you should inherit from the class you want to override some methods.
Yep we use Rollup to bundle our files, that's why we split our source code into several files. So you should use a bundler too (Webpack, Rollup, etc) and install Bootstrap as a dependency of your project, like that you won't have that kind of errors

Alright thanks so I would need to create a whole new bs build myself with webpack rollup and import tooltip myself.
I might be able to avoid that with the overwrite you offered in the beginning.
If you have a boilerplate to make a custom js build of bootstrap that would be awesome.

Hi @stephenbe,
In v4, you can overwrite any function by changing the prototype, for example:
var defaultShowPopover = bootstrap.Popover.prototype.show
bootstrap.Popover.prototype.show = function () {
    defaultShowPopover.apply(this, arguments);
    // Your custom stuff here
}

is it what you wanted?

What about v5? How can we do the same in v5? It used to work for me in v4 but not working in v5.


Model Validation Docs - Broken Link

The link in the following sentence is broken.
"[Required]: Validates that the field is not null. See [Required] attribute for details about this attribute's behavior."

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0156ffc3-47ac-d5da-fbc2-9ff5018b071b
Version Independent ID: 615db388-a244-41f7-21b5-a4085d9ed479
Content: Model validation in ASP.NET Core MVC
Content Source: aspnetcore/mvc/models/validation.md
Product: aspnet-core
Technology: aspnetcore-mvc
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Thanks @spencer741 ... I'll patch that up right now.


Enums in QueryRaw do not work anymore

Bug description
I upgraded my project from prisma 3 to 4.2.1 and now enums defined in schema do not work anymore.
  asdf = await p.$queryRaw`
  SELECT * FROM "ShopInfo" WHERE "ShopInfo"."processorStatus"=${ProcessStatus.DONE}`;

This query used to work before, the only way to make it work is to remove it from the parameter
How to reproduce

Code in question

import { prisma, PrismaClient, ProcessStatus } from "@prisma/client";

(async () => {
  let p = new PrismaClient({
    log: [
      {
        emit: "event",
        level: "query",
      },
      {
        emit: "stdout",
        level: "error",
      },
      {
        emit: "stdout",
        level: "info",
      },
      {
        emit: "stdout",
        level: "warn",
      },
    ],
  });
  p.$connect();

  p.$on("query", (e) => {
    console.log(
      `Duration: ${e.duration}ms | Params: + ${e.params} | Query:  + ${e.query}`,
      "context.ts"
    );
  });

  let asdf = await p.shopInfo.findMany({
    where: {
      processorStatus: ProcessStatus.DONE,
    },
  });
  console.log(asdf); //This works

  // Throws error
  asdf = await p.$queryRaw`
  SELECT * FROM "ShopInfo" WHERE "ShopInfo"."processorStatus"=${ProcessStatus.DONE}`;

})();

See error

Duration: 27ms | Params: + ["DONE",0] | Query:  + SELECT "public"."ShopInfo"."qwer", "public"."ShopInfo"."asdf", "public"."ShopInfo"."processorStatus" FROM "public"."ShopInfo" WHERE "public"."ShopInfo"."processorStatus" = $1 OFFSET $2 context.ts
[]
Duration: 12ms | Params: + ["DONE"] | Query:  +
  SELECT * FROM "ShopInfo" WHERE "ShopInfo"."processorStatus"=$1 context.ts
<PATH>/test-server/node_modules/@prisma/client/runtime/index.js:28838
      throw new PrismaClientKnownRequestError(message, error2.code, this.client._clientVersion, error2.meta);
            ^
PrismaClientKnownRequestError:
Invalid `prisma.$queryRaw()` invocation:

  Raw query failed. Code: `42883`. Message: `db error: ERROR: operator does not exist: "ProcessStatus" = text
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.`
    at RequestHandler.handleRequestError (<PATH>test-server/node_modules/@prisma/client/runtime/index.js:28838:13)
    at RequestHandler.request (<PATH>/test-server/node_modules/@prisma/client/runtime/index.js:28820:12)
    at async Proxy._request (<PATH>/test-server/node_modules/@prisma/client/runtime/index.js:29753:16)
    at async <PATH>/test-server/src/test.ts:56:10 {
  code: 'P2010',
  clientVersion: '4.2.1',
  meta: {
    code: '42883',
    message: 'db error: ERROR: operator does not exist: "ProcessStatus" = text\n' +
      'HINT: No operator matches the given name and argument types. You might need to add explicit type casts.'
  }
}

Expected behavior
This should work fine and return values
Prisma information
generator client {
  provider = "prisma-client-js"
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

model ShopInfo {
  asdf            String
  qwer            Int
  processorStatus ProcessStatus @default(AWAITING)

  @@id([qwer, asdf])
}

enum ProcessStatus {
  AWAITING
  IN_PROGRESS
  DONE
}

Environment & setup

OS: Mac OS
Database:PostgreSQL
Node.js version: v16.9.0

Prisma Version
prisma                  : 4.2.1
@prisma/client          : 4.2.1
Current platform        : darwin-arm64
Query Engine (Node-API) : libquery-engine 2920a97877e12e055c1333079b8d19cee7f33826 (at<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli 2920a97877e12e055c1333079b8d19cee7f33826 (at node_modules/@prisma/engines/migration-engine-darwin-arm64)
Introspection Engine    : introspection-core 2920a97877e12e055c1333079b8d19cee7f33826 (at node_modules/@prisma/engines/introspection-engine-darwin-arm64)
Format Binary           : prisma-fmt 2920a97877e12e055c1333079b8d19cee7f33826 (at node_modules/@prisma/engines/prisma-fmt-darwin-arm64)
Default Engines Hash    : 2920a97877e12e055c1333079b8d19cee7f33826
Studio                  : 0.469.0

Can reproduce, code works with 3.15.2
ts-node main.ts
prisma:info Starting a postgresql pool with 21 connections.
Duration: 8ms | Params: + ["DONE",0] | Query:  + SELECT "public"."ShopInfo"."qwer", "public"."ShopInfo"."asdf", "public"."ShopInfo"."processorStatus" FROM "public"."ShopInfo" WHERE "public"."ShopInfo"."processorStatus" = $1 OFFSET $2 context.ts
[]
Duration: 1ms | Params: + ["DONE"] | Query:  +
  SELECT * FROM "ShopInfo" WHERE "ShopInfo"."processorStatus"=$1 context.ts

And fails on our internal dev version 4.4.0-dev.30
ts-node main.ts
prisma:info Starting a postgresql pool with 21 connections.
Duration: 8ms | Params: + ["DONE",0] | Query:  + SELECT "public"."ShopInfo"."qwer", "public"."ShopInfo"."asdf", "public"."ShopInfo"."processorStatus" FROM "public"."ShopInfo" WHERE "public"."ShopInfo"."processorStatus" = $1 OFFSET $2 /* traceparent=00-00-00-00 */ context.ts
[]
Duration: 1ms | Params: + ["DONE"] | Query:  +
  SELECT * FROM "ShopInfo" WHERE "ShopInfo"."processorStatus"=$1 context.ts
/Users/j42/Repros/14999/node_modules/@prisma/client/runtime/index.js:30850
      throw new PrismaClientKnownRequestError(message, error2.code, this.client._clientVersion, error2.meta);
            ^
PrismaClientKnownRequestError:
Invalid `prisma.$queryRaw()` invocation:

Raw query failed. Code: `42883`. Message: `db error: ERROR: operator does not exist: "ProcessStatus" = text
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.`
    at RequestHandler.handleRequestError (/Users/j42/Repros/14999/node_modules/@prisma/client/runtime/index.js:30850:13)
    at RequestHandler.request (/Users/j42/Repros/14999/node_modules/@prisma/client/runtime/index.js:30833:12)
    at async Proxy._request (/Users/j42/Repros/14999/node_modules/@prisma/client/runtime/index.js:31805:16)
    at async /Users/j42/Repros/14999/main.ts:41:10 {
  code: 'P2010',
  clientVersion: '4.4.0-dev.30',
  meta: {
    code: '42883',
    message: 'db error: ERROR: operator does not exist: "ProcessStatus" = text\n' +
      'HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.'
  }
}

Closing since this is expected.
You will now need a type cast like
  await p.$queryRaw`
  SELECT * FROM "ShopInfo" WHERE "ShopInfo"."processorStatus" = ${ProcessStatus.DONE}::"ProcessStatus"`;


TarOutputStream kills base stream

Steps to reproduce
var ms = new MyStream();
var ts = new TarOutputStream(ms);   // 1
// Do something with ts
ts.Dispose();
ms.DoSomething();   // BOOM: ObjectDisposedException

Expected behavior
Base stream ms is usable after the TarOutputStream wrapper is disposed.
Actual behavior
Base stream ms throws an ObjectDisposedException because it has been disposed by the  TarOutputStream wrapper.
Version of SharpZipLib
SharpZipLib 1.2.0
Obtained from NuGet

Package installed using NuGet

Comments
The behavior is unexpected, because we provide TarOutputStream a reference to an external Stream, and TarOutputStream just shuts it down, when we dispose it.
The problem can be mitigated by setting TarOutputStream.IsStreamOwner = false at (1).
Proposed fix
TarOutputStream.IsStreamOwner should default to false when the constructors TarOutputStream(Stream outputStream) or TarOutputStream(Stream outputStream, int blockFactor) are used.

We cannot change the defaults for this (API breaking) even if it was considered a better one. By setting the IsStreamOwner, you take responsibility for freeing the resources when done.
The behaviour is mimicking that of StreamReader/StreamWriter

The behaviour is mimicking that of StreamReader/StreamWriter

Wow, just checked,  StreamReader/StreamWriter indeed exhibit the same behavior (bool leaveOpen = false).
Bad API design IMO.
Anyways, given the precedent, and the need for backwards compatibility I'll close this.


Code highlighting

Looks better

Hi @ilhanyumer,
Thanks for the PR! I think that if we wanted to make this change, we would need to make it in all reStructuredText files across our documentation and examples; for example, in the topics documentation.
Feel free to open an issue if you feel that this would be useful when rendering the documentation, and we'll see if more interest can be generated from other members of the community.. Having a description or example of the difference with and without the change would be useful.
Closing this for now as we wouldn't change this one single file.


⚠ Bofrost.at has degraded performance

In 435244d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 3808 ms

Resolved: Bofrost.at performance has improved in af806f1.


Don't discard the nvme drive presence

There was a time where we were not able to find the
presence of the nvme drives on IBM systems,to work
around that pldm was looking at the parent of the drive
which is the nvme slot to figure out the presence of the
drive.
Now that we had code in platform-fru-detect which can
detect the presence of nvme drives over nvme-MI, the
workaround that we put to look for drives parent presence
is no longer needed. This PR is an attempt to fix that.
Signed-off-by: Manojkiran Eda<EMAIL_ADDRESS>

Fixes : SW554135


Add className to react/swiper wrapper element

Clear and concise description of the problem
I want to be able to add a class on the React Swiper wrapper element. Right now, it automatically generated.
<SwiperWapper className="custom-class">

Suggested solution
Add a new element SwiperWrapper and use this as the wrapper if its included, else just automatically generated wrapper as a fallback.
Alternative
No response
Additional context
No response
Validations

[X] Follow our Code of Conduct
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Would you like to open a PR for this feature?

[ ] I'm willing to open a PR

Works in v9 with wrapperClass prop


[plugin-ts-standard-pkg] Does not work with project references

In almost all of my projects I'm using TypeScript project references. To preserve compatibility with existing build workflows, tsc will not automatically build dependencies unless invoked with the --build switch. Unfortunately @pika/plugin-ts-standard-pkg just calls tsc directly without that flag and it's not possible to add additional CLI arguments to the options object.
What would be really great is the ability to do something like this:
"@pika/pack": {
  "pipeline": [
    [
      "@pika/plugin-ts-standard-pkg",
      {
        "args": "--build"
      }
    ]
  ]
}

By the way: project references automatically enable incremental builds so the next problem here would be https://github.com/pikapkg/builders/issues/68

@screendriver sorry for the delay, but +1 this sounds like a good feature to include as a fallback. Any interest in tackling? If no one grabs it i'll try to get to it soon.


update Kyber OID

1.2.840.1135<IP_ADDRESS> is already reserved for DH key agreement:
https://oid-rep.orange-labs.fr/get/1.2.840.1135<IP_ADDRESS>
the OID should be compatible across implementations, see e.g.
https://github.com/randombit/botan
<IP_ADDRESS>.<IP_ADDRESS>7.8 is listed in the first IETF draft and an OID repo:

https://datatracker.ietf.org/doc/html/draft-uni-qsckeys-00
https://oid-rep.orange-labs.fr/get/<IP_ADDRESS>.<IP_ADDRESS>7.8

Thank you!


Customizable thoughts not working?

I've created a  inside the   that is supposed to setup for butchery, but it does not work.
Here is the relevant code
Thoughts_Memory_Misc.txt
KenshiSkeletonRace.txt
I had to paste the xml into txt files to upload.
Additionally it does not look like replacerList is working either (trying to change the observed corpse thought)

And what exactly doesn't work?
What happens ?

The vanilla thoughts happen, the modded thoughts are as if they don't exist.

Apologies for the late answer. I did a quick check with your thoughts and your butcher config on a different race and it worked fine.

Oh, very odd, I'll keep troubleshooting!

I've tried to use my  in another race mod to see if it is some setting elsewhere I have wrong, but inserting the same snippet of code into other races failed to work too. Could you send or link me an example where it works so I can maybe reverse engineer where I went wrong?

How would I go about making a normal human feel about butchering an alien species? I've come to understand that the  affects how an alien species feels when one butchers one of their own, but not how another species feels about butchering them.

You would have to patch the thought settings of humans and add a butcherThoughtSpecific entry

Is there a way to run a PatchOperation to make the vanilla humans humanoid aliens ?

They already are if you use this mod.
https://github.com/RimWorld-CCL-Reborn/AlienRaces/blob/master/1.2/Patches/HumansAreAliensToo.xml

Alright perfect, thanks erdelf!


Can we have options to print token offset?

Can we have options to print token offset in addtion to line and colum?
That would help a lot for linter-luacheck.
currently linter-luacheck parse the output and calculte the offset.

Do you mean token length? Or token range? E.g. it could print source.lua:5:6-10: some message if token related to error started on line 5, column 6 and ended on column 10.

linter needs to know in which line and start column and end column of each
error and warning.
Peter Melnichenko<EMAIL_ADDRESS>周日19:32写道：

Do you mean token length? Or token range? E.g. it could print source.lua:5:6-10:
some message if token related to error started on line 5, column 6 and
ended on column 10.
—
Reply to this email directly or view it on GitHub
https://github.com/mpeterv/luacheck/issues/32#issuecomment-120710512.

Added --ranges option on master branch. E.g.

Checking spec/samples/python_code.lua             1 error

    spec/samples/python_code.lua:1:6-15: expected '=' near '__future__'

Checking spec/samples/inline_options.lua          8 warnings / 2 errors

    spec/samples/inline_options.lua:6:16-16: unused function f
    spec/samples/inline_options.lua:12:4-5: accessing undefined variable qu
    spec/samples/inline_options.lua:15:1-3: accessing undefined variable baz
    spec/samples/inline_options.lua:24:10-10: unused variable g
    spec/samples/inline_options.lua:26:7-7: unused variable f
    spec/samples/inline_options.lua:26:10-10: unused variable g
    spec/samples/inline_options.lua:28:1-17: unpaired push directive
    spec/samples/inline_options.lua:30:4-19: unpaired pop directive
    spec/samples/inline_options.lua:36:1-2: empty do..end block
    spec/samples/inline_options.lua:37:10-13: empty if branch

Total: 8 warnings / 3 errors in 2 files

@mpeterv :+1:  Thank you soooo much!  :heart: :heart: :heart: :heart: :heart:


.in extension does not imply CMake syntax

it seems that https://github.com/github/linguist/commit/c8bc0a5c792b39b378a6bc743ad45949ea18f13b causes any file with a name ending in .in to be treated as CMake input.
$whatever.in is a traditional naming pattern for files meant to be preprocessed in some way.  half of my repos in github have files ending in .spec.in, among others.  i'd expect there to be a lot of Makefile.in files in github.  etc, etc.
some of my repositories with .in files:

https://github.com/roman-neuhauser/bs-update
https://github.com/roman-neuhauser/pastish
https://github.com/roman-neuhauser/printscreen

@pchaigno - do you know if this is this still an issue?

Yes and no. We now support segmented file extensions and have a couple defined for .in (.rs.in and .cmake.in). We also improved the recognition of files based on their filename solely. However, we still don't recognize the .spec.in file extension.

files ending in .spec.in, among others.

@roman-neuhauser What are these files? What other extensions are you thinking of?

Flagging this as stale :flags:

Sorry for being late to reply. I don't know exactly what Roman was alluding to, but using *.in as a template for generating a build artefact is fairly universal practice, and this extension by itself should not be taken as more than possibly a weak hint for the file's language, type, or purpose. Makefile.in from Autotools is of course ubiquitous; quick googling also brought up the following;

https://gist.github.com/telent/4118983 apparently builds an RPM .spec file from a template where the version etc is a hard-coded static token to be replaced dynamically at build time
https://github.com/liip/mahararpmpkg/blob/master/Makefile does something fairly similar

exactly what @tripleee said.  filename.in is a ubiquitous pattern used to signal that the file is a main input to generate filename, regardless of the actual syntax of the input, output, or the extent of processing.
you'll notice that configure.in (processed by autoconf), Makefile.in (processed by configure) have vastly different syntaxes, what they do have in common is that they're the main inputs used to produce configure and Makefile respectively.
@pchaigno wrote

files ending in .spec.in, among others.

What are these files?

if you're asking about *.spec.in files, i use them as templates for *.spec files, these are used to create software packages for an array of GNU/Linux distros (see http://rpm.org/).

What other extensions are you thinking of?

this is a wrong line of thinking.  there's no closed set of extensions to think of.  you cannot say "we'll whitelist {foo,bar,baz}.in" and expect to land anywhere close to correct.  people tack .in on anything, different people on different things.  sometimes the input syntax mostly conforms to the syntax of the output (cf. Makefile.in), othertimes it's anything but (cf. configure.in).
the FreeBSD ports collection contains over 5800 files ending in .in.  ~1670 of these are either patches for upstream Makefile.in files (patch-.*Makefile\.in$) or wholesale replacements, the rest is a hodgepodge.  case in point: the x11/printscreen port comes with a printscreen.in file which is a normal /bin/sh script.
what other filetypes i use the .in suffix with, besides makefiles and specfiles?  any that (may) need some build step.  this includes source files in any text-based language without a standardized preprocessor or where the preprocessor does not fit the bill, like when i need to embed system-specific paths in manpages.
but i really need to stress what @tripleee said: [.in] by itself should not be taken as more than possibly a weak hint for the file's language, type, or purpose.

Do you still have issues with this? .in isn't associated to any language anymore.


WIP wizzard widget

https://github.com/beda-software/fhir-emr/issues/231

Looks like it is not relevant anymore? Let's close it, @ir4y


modularized and refactored code2

on e3610ef I have merged the two css files and removed duplicate code

On 8871f40 I have modified one of the media engagement js file to contain the code required to plot the graphs then I have put it in a class. The only change made on the code is while accessing the static method "add_one_day_to_date" and use of the let keyword to provide block scope variables otherwise the remaining code remains unmodified from master.

On 0e98548, the page replaces the media engagement HTML pages used for every project. The index page is dynamic as it is able to navigate to all the projects via the drop down menu. Some HTML code has been excluded here which will be handled here 567efef

I haven't deleted coda & media engagement folder to prevent merge conflicts in case of commits on the master branch.

Thanks @as2388 for the comments, I have been able to make the requested changes.

Thanks again for the improvements.
Two additional things:
* I don't think you're turning off the snapshot listeners when navigating, which means as you navigate between views you end up activating lots of listeners you no longer need, which could cause bugs or performance issues. Can you check this?

Updated code based on this: https://firebase.google.com/docs/firestore/query-data/listen#detach_a_listener

* By making this a one-page webapp, we've lost the ability to deep-link to particular pages, e.g. to link directly to the traffic page for a particular project. Could you add fixing that as an issue?

yeah

Can't see the message coding table in Chrome 79:

resolved

Thanks again for the improvements.
Two additional things:
* I don't think you're turning off the snapshot listeners when navigating, which means as you navigate between views you end up activating lots of listeners you no longer need, which could cause bugs or performance issues. Can you check this?

Updated code based on this: https://firebase.google.com/docs/firestore/query-data/listen#detach_a_listener

* By making this a one-page webapp, we've lost the ability to deep-link to particular pages, e.g. to link directly to the traffic page for a particular project. Could you add fixing that as an issue?

yes, will open an issue on that.


Fixes kind create cluster script that contained a hardcoded IP

Removes a hardcoded IP that defined the directory inside /etc/containerd for the registry configuration. When the IPs mismatched it caused a failure to pull or push images from the insecure registry via kaniko builder with Kind.   The correct approach is to use the IP from the docker network configuration for the registry container for both the directory name and the configuration contained within.
@wmedvede @ricardozanini PTAL.

Can you please rebase your fork? 🙏
This is the reason why e2e failed.


bibtex?

What do you want the bibtex to be for citations (if you're interested in that)?

Hey @jfuruness thanks for asking! I'm no expert in bibtex, but a bgpkit-parser name with a link to this repo would be perfect! For citing for broader bgpkit functions (like broker or data), maybe a link to the bgpkit github org might suit it better.
Love to give your paper a read when it becomes available!

Sounds great! I believe I also have to list authors, who should I list for that? Definitely can send along, we're submitting to CCS on April 29th so fingers crossed!

You can have Mingwei Zhang and Jasper Meggitt as the authors. (cc @jmeggitt)
Good luck with your submission! Will close this issue now. Feel free to add more comments in here.

Thanks I appreciate it!


(feat) Checkmarx parser JSON support

Add more code to support reports exported in JSON format.
Fixes #5972

@StefanFl can you review this PR, I made the changes requested


Fix Typos

I went through the README.md and CONTRIBUTING.md. The documentation is good and straight to the point. However, I spotted some typos that need to be fixed. I would like to fix the typos if nobody is already working on it.

Hello @SulaimanAminuBarkindo yes Sure this issue is assigned to you.

@ismaelsadeeq Sir, would you please assign this task to me as well?

I opened a PR for this issue kindly review. Thanks

Hello @Debarpan08 @SulaimanAminuBarkindo  is already working on this issue.
Thank you


Add API method to delete errors

This PR adds the logic and API implementation to delete an error (by key) of a service (#129). This implementation required:

Move logic per endpoint in handle functions.
Added new endpoint in API to delete an error of a service. Usage example.

curl -XDELETE '<IP_ADDRESS>:7777/services/periskop/errors/*url.Error@671731b4/'

Since complexity of API increased, we use now mux as HTTP router.
Added deletion logic in the repository interface.
Added CORSLocalhostMiddleware mux middleware to allow CORS.

Just to make sure I understood correctly: the error is deleted until the next scrape cycle, right?

If the error appears again, yep

@marctc this works now, but the API cannot find error keys containing spaces and other url encoded characters. We need to do a url decode of the key before the lookup. There are also some possible styling improvements, but we can address that separately.
As a side note, this functionality will make more sense once once we implement the sticky errors logic that is underway

Question: shall we call this "resolve" instead of "delete"?

Question: shall we call this "resolve" instead of "delete"?

Yeah, sounds better. It's also the terminology used in sentry :upside_down_face:


Prevent ampersands in embed URLs in rich text from being escaped repeatedly

Fixes #3126
Incorporates #3879, since we're assuming that the characters to be un-escaped should match the ones handled by django.utils.html.escape, and this is ensured by c4248e3e6485b16ed4929d69f9a83f1195d02bf4.

Scratch this... as per https://github.com/wagtail/wagtail/issues/3852#issuecomment-333155647, I now believe that fixing the EmbedHandler API so that it receives an un-escaped version of the attribute is the right thing to do here.

Superseded by #4060


eurypterus, deodands

This pull request was generated by the 'mq' tool
[test]
flake rate: 0.4
logical conflict every: 100
sleep for: 300s
[pullrequest]
requests per hour: 30
deps=[d,e]

/trunk merge


[DashboardEditor]: Raise test coverage

We must raise the test coverage for this component and remove the exceptions found in jest.config.js file.

[] write test for DashboardEditor.jsx
[] remove exception from jest.config.js
[] update epic to show this is complete

This one may have to wait....been fighting a lot of weird jsdom errors all day. I've tried fireEvent.click, userEvent.click, preventing it from bubbling, etc. Still get this error everytime and google/github searches aren't giving my anything. Even tried upgrading testing-library/jest/jsdom, etc. @davidicus you have any other ideas?
onDragEnd called before onDragStart.

      392 |     });
      393 |
    > 394 |     userEvent.click(screen.getByText('Add from gallery'));
          |               ^
      395 |     await waitFor(() => {
      396 |       expect(screen.getByText('Image gallery')).toBeVisible();
      397 |     });

      at Object.onStop (node_modules/react-grid-layout/build/GridItem.js:190:15)
      at DraggableCore.handleDragStop (node_modules/react-draggable/build/cjs/DraggableCore.js:275:40)
      at node_modules/react-draggable/build/cjs/DraggableCore.js:310:20
      at HTMLUnknownElement.callCallback (../../node_modules/react-dom/cjs/react-dom.development.js:336:14)
      at innerInvokeEventListeners (../../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:330:27)
      at invokeEventListeners (../../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:281:3)
      at HTMLUnknownElementImpl._dispatch (../../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:228:9)
      at HTMLUnknownElementImpl.dispatchEvent (../../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:101:17)
      at HTMLUnknownElement.dispatchEvent (../../node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:207:34)
      at Object.invokeGuardedCallbackDev (../../node_modules/react-dom/cjs/react-dom.development.js:385:16)
      at invokeGuardedCallback (../../node_modules/react-dom/cjs/react-dom.development.js:440:31)
      at invokeGuardedCallbackAndCatchFirstError (../../node_modules/react-dom/cjs/react-dom.development.js:454:25)
      at executeDispatch (../../node_modules/react-dom/cjs/react-dom.development.js:584:3)
      at executeDispatchesInOrder (../../node_modules/react-dom/cjs/react-dom.development.js:609:5)
      at executeDispatchesAndRelease (../../node_modules/react-dom/cjs/react-dom.development.js:713:5)
      at executeDispatchesAndReleaseTopLevel (../../node_modules/react-dom/cjs/react-dom.development.js:722:10)
      at forEachAccumulated (../../node_modules/react-dom/cjs/react-dom.development.js:694:8)
      at runEventsInBatch (../../node_modules/react-dom/cjs/react-dom.development.js:739:3)
      at runExtractedPluginEventsInBatch (../../node_modules/react-dom/cjs/react-dom.development.js:880:3)
      at handleTopLevel (../../node_modules/react-dom/cjs/react-dom.development.js:5803:5)
      at batchedEventUpdates$1 (../../node_modules/react-dom/cjs/react-dom.development.js:24401:12)
      at batchedEventUpdates (../../node_modules/react-dom/cjs/react-dom.development.js:1415:12)
      at dispatchEventForPluginEventSystem (../../node_modules/react-dom/cjs/react-dom.development.js:5894:5)
      at attemptToDispatchEvent (../../node_modules/react-dom/cjs/react-dom.development.js:6010:5)
      at dispatchEvent (../../node_modules/react-dom/cjs/react-dom.development.js:5914:19)
      at unstable_runWithPriority (../../node_modules/scheduler/cjs/scheduler.development.js:697:12)
      at runWithPriority$2 (../../node_modules/react-dom/cjs/react-dom.development.js:12149:10)
      at discreteUpdates$1 (../../node_modules/react-dom/cjs/react-dom.development.js:24417:12)
      at discreteUpdates (../../node_modules/react-dom/cjs/react-dom.development.js:1438:12)
      at dispatchDiscreteEvent (../../node_modules/react-dom/cjs/react-dom.development.js:5881:3)
      at innerInvokeEventListeners (../../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:330:27)
      at invokeEventListeners (../../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:281:3)
      at HTMLButtonElementImpl._dispatch (../../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:228:9)
      at HTMLButtonElementImpl.dispatchEvent (../../node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:101:17)
      at HTMLButtonElement.dispatchEvent (../../node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:207:34)
      at ../../node_modules/@testing-library/dom/dist/events.js:25:20
      at ../../node_modules/@testing-library/react/dist/pure.js:64:16
      at batchedUpdates$1 (../../node_modules/react-dom/cjs/react-dom.development.js:24386:12)
      at act (../../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1092:14)
      at Object.eventWrapper (../../node_modules/@testing-library/react/dist/pure.js:63:28)
      at fireEvent (../../node_modules/@testing-library/dom/dist/events.js:16:35)
      at Function.fireEvent.<computed> [as mouseUp] (../../node_modules/@testing-library/dom/dist/events.js:125:36)
      at clickElement (../../node_modules/@testing-library/user-event/dist/click.js:89:20)
      at Object.click (../../node_modules/@testing-library/user-event/dist/click.js:132:5)
      at _callee$ (src/components/DashboardEditor/DashboardEditor.test.jsx:394:15)
      at tryCatch (node_modules/regenerator-runtime/runtime.js:45:40)
      at Generator.invoke [as _invoke] (node_modules/regenerator-runtime/runtime.js:274:22)
      at Generator.prototype.<computed> [as next] (node_modules/regenerator-runtime/runtime.js:97:21)
      at asyncGeneratorStep (node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
      at _next (node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9)


Don't use nx affected for package lint in pre-commit hook

Changes in some files should not cause linting to fail in other files, and even more so should not cause linting to fail in other packages that depend on it. We should be able to just pass all uncommitted files to eslint instead (this also avoids needing to do a separate workspace lint and packages lint)

I submitted this issue to have a record in relation to the conversation I had with Thomas earlier, but in retrospect, I don't think this is accurate - specifically for the typescript-eslint rules. For example, if we make an enum include additional members in one file/package, it could cause the exhaustiveness check to fail in another file/package.


Hopenpgp tools release 23.11

Unbreak hopenpgp-tools in nixos-23.11.
Backport of 5a098d2cb6db1815c62f76fdf6a159c121f3225a
[motiejus@fwminex:~/code/nixpkgs]$ nix build  .#legacyPackages.x86_64-linux.haskellPackages.hopenpgp-tools

[motiejus@fwminex:~/code/nixpkgs]$ result/bin/hop --help |& head -2
hop (hopenpgp-tools) 0.23.8
Copyright (C) 2012-2023  Clint Adams

I'm locking and closing this pull request, because through the rebase you inadvertently requested many maintainers for review, which subscribed them to update notifications, resulting in unnecessary spam inside everyone's inbox. While we can remove their review requests, we sadly cannot unsubscribe anyone.
Please create a new pull request and for the next time remember to set your PR to draft status before rebasing. In draft status, you can preview the list of maintainers that are about to be requested for review, which allows you to sidestep this issue.


'Fatal error: Call to undefined function GuzzleHttp\Handler\curl_reset()' on first use of terminus

I just installed terminus, and I get the following error when I enter any type of terminus command:
Fatal error: Call to undefined function GuzzleHttp\Handler\curl_reset() in phar:///usr/local/bin/terminus/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 78

@rujelly The function curl_reset was added to PHP in 5.5.0. If you are getting this error, then you have a version of PHP which is too old to be compatible with Terminus 0.10.0, which supports PHP 5.5.9+.


Unify schema usage in Datafusion

Sometimes DF uses 2 schema sources, which is schema from previous node and current like in example(s) below.
Would be nice to check if we can use only 1 schema, multiple schemas are usually confusing
          I agree it doesn't make sense -- however, it is the same logic as in `with_new_exprs`:

https://github.com/apache/datafusion/blob/fad16e74229decc40bccf22947d3659cd29fee6f/datafusion/expr/src/logical_plan/plan.rs#L913-L925
Originally posted by @alamb in https://github.com/apache/datafusion/pull/10405#discussion_r1594332291

When I try to fix this, I found that there may be a latent issue.
I want to open #10494 to discuss it.


[bug] unused variable is not greyed-out if import statement is lacking

bug description :
an unused variable is not greyed-out if no import statement is there
or if the import statement is commented out .

expected behavior :
an unused variable should be greyed-out , independet of the
existence of an import statement in the same *.js file .
test results on different windows versions :
this phenomenon happens the same in Win10 64bit and Win7 32bit .
Please search existing issues to avoid creating duplicates :  done , nothing found

VSCode Version:  1.24.1
OS Version:  Win10 64bit and Win7 32bit SP1

Steps to Reproduce:
1 : create a test.js file containing only
import ''
let test = 1

2 : comment out or remove the line with the import statement
and compare the coloring of the unused variable before and after
Does this issue occur when all extensions are disabled?: yes

This is by-design. If your code does not have an imports or exports, it is considered a loose file and any top level declarations like test are put into the global scope (so they are always considered reachable). This matches what browsers do


Uninitialized value during sqitch log

I was following the tutorial at https://metacpan.org/pod/sqitchtutorial with a Mac OS X Homebrew installation of Sqitch with Postgres when I got to
sqitch log db:pg:flipr_test

and got, after exiting my pager (/usr/bin/less):
Use of uninitialized value $_[1] in pattern match (m//) at /usr/local/lib/perl5/IO/Pager.pm line 98.

I don't know if this is technically a bug in Sqitch or in IO::Pager.

IO::Pager, to judge by the source. It shouldn't use ~ on $_[1] unless $_[1] is defined.


Expose XLA option exec_time_optimization_effort through jax

There's an ExecutionOption in XLA called exec_time_optimization_effort which allows to tradeoff compiled binary performance for compilation time.
It would be great if this option could be made available through jax. Maybe something like this.
def f(x):
      return jnp.sqrt(x ** 2) + 1.

f_jit = jit(f)
lowered = f_jit.lower(1.)
lowered.compile(
    compiler_options={
        "xla_exec_time_optimization_effort": -0.7,
    }
)

Thanks for the request! I think this should be handled by #24673


Fix bug by taking into account current semester

Bug was where you would attempt to delete a TA and they wouldn't get deleted as it was deleting them from a different semester
(It's a one line change I swear it works)

ya lgtm


Update to support lates Jupyterlab 3.x.x version

Jupyterlab has been updated to version >3.0.0 (currently on 3.0.5). This extension is not supported on these versions and gives an error when trying to install it. Please update for latest Jupterlab version. Thank you.

Hi @simicd
Really love this theme so I ported it to Jupyterlab 3.x using migration instructions from https://jupyterlab.readthedocs.io/en/stable/extension/extension_migration.html
Please check pull request here https://github.com/simicd/jupyterlab-tailwind-theme/pull/24

Hi @WestedCrean, wow thank you so much!! I'll test the PR and then merge it.

The package is now deployed to npm as v3.0.0 - thanks again @WestedCrean!