text:
【cherry pick】adapter new type promotion rule for Paddle 2.6

PR types

Bug fixes
PR changes

Others
Description

【cherry pick】adapter new type promotion rule for Paddle 2.6
develop pr: https://github.com/PaddlePaddle/PaddleNLP/pull/8421/files

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.9 out of 10 committers have signed the CLA.:white_check_mark: w5688414:white_check_mark: lugimzzz:white_check_mark: DesmonDay:white_check_mark: JunnYu:white_check_mark: FeixLiu:white_check_mark: ZHUI:white_check_mark: KB-Ding:white_check_mark: SylarTiaNII:white_check_mark: zxcd:x: gongenleigongenlei seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant zxcd


text:
csmsc/voc5 onnx模型加载有误

测试hifigan_csmsc_onnx_0.2.0时，报错：

>>> import onnx
>>> model = onnx.load('pretrained_model/fastspeech2_csmsc_onnx_0.2.0/hifigan_csmsc.onnx')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/da2/miniconda3/envs/SWHL/lib/python3.7/site-packages/onnx/__init__.py", line 121, in load_model
    model = load_model_from_string(s, format=format)
  File "/da2/miniconda3/envs/SWHL/lib/python3.7/site-packages/onnx/__init__.py", line 158, in load_model_from_string
    return _deserialize(s, ModelProto())
  File "/da2/miniconda3/envs/SWHL/lib/python3.7/site-packages/onnx/__init__.py", line 99, in _deserialize
    decoded = cast(Optional[int], proto.ParseFromString(s))
google.protobuf.message.DecodeError: Error parsing message

测试环境：

OS: CentOS
Python: 3.7
onnx: 1.10.1

用 onnxruntime 试试，用原生 onnx 可能需要先对模型进行 simplify

onnx需升级至最新
pip install onnx --upgrade

感谢，问题解决了， 原因是我这边下载这个模型没有下载完全

source: gharchive/issue

authors: SWHL jiangjiajun yt605155624

repo: PaddlePaddle/PaddleSpeech

license_type: permissive

license_source: github-api


text: [S2T] ASR 和whisper准确度较差


text:
使用Paddle Serving部署Ernie-tiny返回结果精度不理想

在本地测试文本相似度匹配，准确度挺不错的；
但相同的模型部署之后，模型计算出的特征值和部署前稍有不同，准确度和原来差很多。
我使用的是以下命令导出模型：
python3 -m paddle_serving_client.convert --dirname . --model_filename model.pdmodel --params_filename model.pdiparams --serving_server serving_server --serving_client serving_client
导出文件：

模型导出后，对配置文件做了如下改动：

通过uwsgi启动服务
uwsgi --http :9292 --module nlp_service:app_instance
最后通过模型输出特征进行二分类返回结果。
请问是哪里不正确或有遗漏呢，非常感谢！

原因找到了，是最后的分类器没有使用模型classifier的参数进行初始化；
但新的问题是serving模型的fetch_var只返回特征值，不返回分类结果；
自己定义分类器的话想使用模型classifier的weight和bias只能再重新加载一遍模型吗？
有没有什么方法可以只加载一遍模型，但同时获得特征和分类结果呢？

@wangjiawei04 感谢提示，确实是模型保存的问题，现在已经改好了；
有另外个问题，由于我输入feed_var的数据要经过preprocess，才能用于预测，
feed_var本身是不需要送入推理网络的，但如果在preprocess中去掉这个feed_var的话，
在paddle_serving_client的__init__.py的res = self.client_handle_.numpy_predict()这行中，
会出现下面的问题：

我现在的方案是在preprocess中用处理后的数据替换feed_var原本的内容，
结果可以正常返回，就是这样不太利于代码阅读，请问有什么解决方案吗？
我使用的版本是
paddlepaddle-gpu  2.0.0
serving develop分支
非常感谢！！

已解决~

repo: PaddlePaddle/Serving


text:
[ROCM] update rocm env, test=develop

更新ROCM相关文档

更新ROCM安装说明
ROCM -> ROCm

预览链接	http://10.136.157.23:8090/documentation/docs/zh/api/index_cn.html?reviewVersion=jenkins-doc-review-2-157
打开之后点击 文档->使用教程->硬件支持->海光DCU芯片运行飞桨

更新预览链接 http://10.136.157.23:8090/documentation/docs/zh//faq/index_cn.html?reviewVersion=jenkins-doc-review-739

source: gharchive/pull-request

repo: PaddlePaddle/docs


text:
remove stageout api call

not ready for production

Thanks Mario

authors: PalNilsson mlassnig

repo: PanDAWMS/pilot

license_source: bigquery


text:
excel导出死循环问题

问题解决了，原来是要把数据源转成二维数组

repo: PanJiaChen/vue-element-admin

license: MIT


text:
本人遇到 mode:'history' 模式 下的404问题，可以给你参考一下。

本人遇到 mode:'history' 模式 下的404问题，可以给你参考一下。
当在vue.config.js 配置 publicPath: '/public/' 的时候，虽然资源文件能加载到，但是路由一直跳转404，是因为路由还是localhost:4200/xxx,而不是根据publicPath来转变成localhost:4200/public/xxx。解决办法是：在router/index.js还需要加入 base: /public，可以配置到环境变量就是
const createRouter = () => new Router({
  base: process.env.VUE_APP_SRC,
  mode: 'history', // require service support
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRoutes
})

Originally posted by @PhotonAlpha in https://github.com/PanJiaChen/vue-element-admin/issues/2812#issuecomment-623305003

@PanJiaChen quick fix, PR opened just needs a merge


text:
How to change embedding module output size?

Hi, thank you for your work on point clouds.
Could I ask you how to change the embedding module output size?
I set encoder_dims and transf_dim to 512, but I'm getting a shape error on attention class (image below).
Is there anything else that I should edit?

Looking for your reply,
Daniele

Hi,
It is caused by the multi-head attention mechanism. 512/6=85.3333, 512//6 = 85. You may need to make sure dim can be divided by num-heads.

Hi,
It is caused by the multi-head attention mechanism. 512/6=85.3333, 512//6 = 85. You may need to make sure dim can be divided by num-heads.

Thank you so much!

authors: DanieleMenchetti Pang-Yatian

repo: Pang-Yatian/Point-MAE


text:
Fixed another memory leak caused by previous commit

Created the function file_exists
The marlo now check if the specified file to parse exists
Fixed the call of memset, using the size of file_string
Fixed the calls of strcmp
Fixed the heading_string, we only need to add five chars, insted of six

Looks good. Merging

authors: Pulgovisk fabulousduck

repo: PaprPlane/marlo

license: mit


text:
LokiJS cache adapter

LokiJS provide document oriented in-memory database.
I was thinking maybe parse-server can provide cache adapter that will use LokiJS to store and retrieve objects which are stored in-memory.
The question is if the cache adapter is configurable (like email, push etc.) or not? I didn't find something about it in the Wiki but i think that technically it is possible.

Yes Its is Possible! However Cache Does make sense to put on the DataBase level instead on the the Server its self. otherwise memory allocation would be a huge issue

I was not aware that Parse Server now supporting App config  ,My bad(I am still trying to figure out why my push notification not working in the cloud code afterSave Block T_T).
In that case that Does make sense 👍
But its such a small data set , how big of performance increase are we talking about?

Yes it is small data set but think about apps with hundreds of thousands of users. each time the user open the app it is execute a request to download the app config (I assume that the config can be changed from time to time by the parse-server owner otherwise it has no meaning :) )
so instead of access the database it get the data from the cache.
i totally agree that for apps which serve low amount of users it is not critical but for apps with a lot of users it is.

Would it make more sense to Create a version number of the config setup and cache it on device ??

yes it is and this is what i am doing in my app but also my app contains what's called "feature toggle" which allow me to turn on/off features according to the app config values. but app config is not the only reason we need cache there are more.

Interesting  !

The cache adaptor can be configured when you start the server, it is designed for short term caching of objects that are commonly queried from the database, ie objects that were queried multiple per request.
It is used primarily for user Sessions and Roles, It by default has a very short TTL (5 seconds).
The cache adaptor was designed to be eventually backed by Redis or Memecahced so multiple instances of ParseServer (Multiple machines running the same app sharing the same database) can all share the same cache, which would enable longer term caching (TTL of 1 minute or more).
The primary reason the cache TTL is soo low, is to prevent inconsistencies when a server modifies some user's session or role, the other servers will have at most 5 seconds of inconsistent data in their caches.
I don't think the cache adaptor really needs to be backed by something as sophisticated as LokiJS, as its generally easier and less error prone to go back to the DB for those more complicated queries.
But if you want to use it that way, the cache adaptor API  is found here
Which can then be configured into ParseServer at startup:
new ParseServer({
    appId: 'some-app',
    masterKey: 'some-master-key',
    cacheAdapter: YourLokiJSCacheAdapterHere
})

huh. Now I see.    I gonna take a look after this week when I publish my app.

@blacha thanks for the info. i will close this topic for now since i don't see a reason to implement it now.

@ranhsd  Don't give up yet  , I think there is other way to do it config cache after getting the data directly from mongoldb

authors: blacha lifeisfunny ranhsd

repo: ParsePlatform/parse-server


text:
How to avoid GridStore when saving image through parse

By default parse seems to use gridstore to store images. How do I change this default behavior? My images will be small in size and don't really need gridstore. Besides deleting/updating objects with images does not delete old image chunks and they continue to stay in fs.chunks and fs.files. Any suggestions appreciated..

Currently only gridstore is supported, but we are working on supporting other solutions. You can track progress in #8

authors: drew-gross kittuvenkat


text:
API migration

In version 0.2.10, I use  BiconomyService setting with dappApiKeys.
BiconomyService.initialize(dappApiKeys: dappApiKeys)

Now how do I set the  "name" parameter of AAService.initialize?
And some of the ChainInfo I used before couldn't find the corresponding in the new version.
ParticleNetwork.ChainInfo.ethereum(.goerli)
ParticleNetwork.ChainInfo.arbitrum(.goerli)
ParticleNetwork.ChainInfo.base(.testnet)

Try ParticleNetwork.ChainInfo.ethereumSepolia, .baseSepolia, .arbitrumSepolia, and goerli is deprecated.
If you are using biconomy v1, you can init as the following code
// Initialize AA service
AAService.initialize(name: AA.AccountName.biconomyV1, biconomyApiKeys: [:])
// create a aa service
let aaService = AAService()
// set it to ParticleNetwork
ParticleNetwork.setAAService(aaService)

Try ParticleNetwork.ChainInfo.ethereumSepolia, .baseSepolia, .arbitrumSepolia, and goerli is deprecated.
If you are using biconomy v1, you can init as the following code
// Initialize AA service
AAService.initialize(name: AA.AccountName.biconomyV1, biconomyApiKeys: [:])
// create a aa service
let aaService = AAService()
// set it to ParticleNetwork
ParticleNetwork.setAAService(aaService)

OK, I will try it

authors: SunZhiC hupengfei-hinterstellar

repo: Particle-Network/particle-ios


text:
Some suggestions

Hiya! This might be a long issue, so I've split it into two sections. If you disagree with any points I've raised then no worries. Been having fun playing around with all the new toys :)
Some lang nitpicks

Gaia $(item)Gaia Greatsword$(0) means that the word Gaia is repeated twice
The text on page 2 of the Elementium Shield should point to botaniacombat.page.elementium_shield1 rather than elementium_banner_shield. Alternatively, the lang entry could be adjusted to match the other pages. I'm unsure whether the item is meant to be called the Elementium Shield or Great Fairy Shield (I prefer the second tbh)
Most $(br) macros could probably be replaced with $(p), which makes new paragraphs and is usually what you see in Botania's lang for better readability. For example, with a $(p) in the above entry:

Edit: I didn't notice that many entries use $(br2) which seems to work fine too ^^
[BotaniaCombat] is visible on the Gaia Gifts page
The Slaughtersaw mentions being usable only on mobs that drop meat (which has an unexpected $(thing) macro), but doesn't work on Hoglins. Probs how it should work, for balance reasons, but maybe clarify that it works on only passive mobs?

Recipe adjustments

I reckon the Manasteel Buckler and Elementium Shields could be made more expensive, considering the body of the shields is metal and not wood. Below is a possible recipe, alternatively maybe incorporating a Rune of Air to explain the faster swing speed?

Unsure about what a possible Elementium Shield recipe would be, maybe the same recipe as rails but Dreamwood flanked by Elementium Ingots instead?
The Terra Shield (I think Terra Bulwark / Aegis goes hard) could use a Rune of Earth instead, and a different particle effect to the cloud? In my mind, it's the pinnacle of defensive utility and should be a sort of brick wall to mobs - maybe a shield bash would instead stun the enemy temporarily?

I had a question as well:

Does the Crystal Crossbow actually reduce arrow spread? I use Perfect Accuracy so I was wondering if I can remove this in favour of getting players to use better bows.

Oops. Will be fixed in next release.
Oops again. Most Botania items have some kind of saying or reference under their crafting recipe, that's what Great Fairy Shield is meant to be.
$(p) is just a macro for $(br2). Most places where $(br) is used, a $(br2) wouldn't fit. But I will go over it again.
This is intentional, making it clear that it's a BotaniaCombat mechanic, but now that you mention it, none of my other entries use it, so there's no point in having it
Slaughtersaw does work on Hoglins, it just doesn't instantly kill them for balance reasons. 4 hits with an unenchanted Slaughtersaw is still better than 5 hits with a Diamond Sword. It doesn't work on Zoglins. The entry is worded such that only livestock will be instantly killed, but I will adjust it slightly to make it clear that it's not only livestock.
I like the recipes as they are. The justification for the Buckler increasing your swing speed is its lightness.
The Crystal Crossbow has different, wider Multishot angles, not increased accuracy. I am unsure if Perfect Accuracy would effect modded weapons or how it would effect accuracy.

Also, Skadi's Bow has perfect accuracy.
I also just noticed that the shield/ranged weapon entries are loading even if the dependency isn't loaded.

authors: Partonetrain anoomolu

repo: Partonetrain/botaniacombat


text:
[PROJECT] Neko-love wrapper!

Project Name
Short description
Links

Neko love wrapper
This project is a wrapper to fetch images from the neko love api!
🔩 ⚖ 👾

+1

+1

authors: Androz2091 auguwu ohlookitsderpy

repo: PassTheWessel/wumpfetch


text:
Managing state variables

Need a way to either 1. show multiple OR 2. prioritize.
Use case:  An entity pool node with two or more state variables. One or more may be useful. However, which one is shown seems to depend on the order in which the source SBGN-ML is processed.
Related to https://github.com/PathwayCommons/pathways-search/issues/98 ; https://github.com/PathwayCommons/app-ui/issues/87

do we have to show it on the nodes or can it be shown in the tooltip

How many is reasonable to show? 2? I guess after that everything else has to go in the tooltip

I would vote for 4.

authors: d2fong jvwong ozgunbabur

repo: PathwayCommons/sbgnml-to-cytoscape


text:
KeeperCompatibleInterface is in v0.7, therefore not compatible with Solidity v0.8+

I have issue with KeeperCompatibleInterface being in v.0.7 . In tutorial and code snippets I see it in v0.8, but in chainlink repo I see it in v0.7. Because of that, I can not run it together with Solidity v0.8+ :
These files import other files that use a different and incompatible version of Solidity:

  * contracts/Raffle.sol (^0.8.19) imports @chainlink/contracts/src/v0.7/interfaces/KeeperCompatibleInterface.sol (^0.7.0)

I tried reinstalling chainlink/contracts and adding this code to hardhat.config.js:
module.exports = {
  solidity: {
    compilers: [
      {
        version: "0.7.0",
        settings: {}
      },
      {
        version: "0.8.19",
        settings: {}
      }
    ]
  }
};

but no luck

Nevermind, found a deprecation notice of KeeperCompatibleInterface in favor of AutomationCompatibleInterface)
https://github.com/PatrickAlphaC/hardhat-smartcontract-lottery-fcc/pull/110


text:
Manifest Generator for ArgoCD Mgmt HelmChartProxy

/kind feature
Describe the solution you'd like
Needed for better templating and passing generated ssh-keys to the yaml in
order to use private Repos.
Anything else you would like to add:

Solved.
New Manifest will be generated to .frigg dir, and replaces a PLACEHOLDER string, which will be filled with the actual url and the github username provided via os.Env "GITHUB_USERNAME".

repo: PatrickLaabs/frigg


text:
Prepare example schema for interview

based on what we already prepared in https://docs.google.com/document/d/17dTfVuBQ4RuJ450XjOK2LGbIdM0onmXpRxWVuNZl8l0/edit

add more properties: boolean;

add also some boolean property

I've created an example schema for our interview.
I added the following changes:

add some generic keywords ( title, description ..)
add boolean property for test
change some meaningful names for better presentation ( e.g. items, some name fields)
add some extra keywords ( additionalProperties, examples, pattern, const)
add some bounds for number/intefer properties

General change: remove some unnecceary objects and make some objects more meaningful and simple to show
Welcome for advice  :)

Schema sent in Whatsapp

repo: PaulBredl/config-assistant


text:
Bug repayment on magento 2.4.2

Hello,
I have detected a problem with the re-payment functionality in this version of the module.
The bug was detected on magento 2.4.2 with many other modules. To be sure, I also checked on the pure magento 2.4.3 website only with your module and the mageplaza SMTP module.
Everything is fine on the magento 2.3.5p2 with your plugin_magento_23 module.
There is an exception when clicking on the link to re-payment in the e-mail message.
I noticed that the link does not contain order_id even though the generating method in the template should put it there
https://example.com/sales/order/repayview/hash/06a92f5bbb8cb7836d526b43496b1f33/
When I click on the link I get the following error:
1 exception(s):
Exception #0 (Magento\Framework\Exception\InputException): An ID is needed. Set the ID and try again.
#1 Magento\Sales\Model\OrderRepository\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#2 Magento\Sales\Model\OrderRepository\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#3 Magento\Sales\Model\OrderRepository\Interceptor->___callPlugins() called at [generated/code/Magento/Sales/Model/OrderRepository/Interceptor.php:23]
#4 Magento\Sales\Model\OrderRepository\Interceptor->get() called at [vendor/payu/magento24-payment-gateway/Model/RepaymentResolver.php:45]
#5 PayU\PaymentGateway\Model\RepaymentResolver->isRepayment() called at [vendor/payu/magento24-payment-gateway/Controller/Order/RepayView.php:45]
#6 PayU\PaymentGateway\Controller\Order\RepayView->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#7 PayU\PaymentGateway\Controller\Order\RepayView\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#8 PayU\PaymentGateway\Controller\Order\RepayView\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/App/Action/Plugin/ActionFlagNoDispatchPlugin.php:51]
#9 Magento\Framework\App\Action\Plugin\ActionFlagNoDispatchPlugin->aroundExecute() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#10 PayU\PaymentGateway\Controller\Order\RepayView\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#11 PayU\PaymentGateway\Controller\Order\RepayView\Interceptor->___callPlugins() called at [generated/code/PayU/PaymentGateway/Controller/Order/RepayView/Interceptor.php:23]
#12 PayU\PaymentGateway\Controller\Order\RepayView\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#13 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#14 PayU\PaymentGateway\Controller\Order\RepayView\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#15 PayU\PaymentGateway\Controller\Order\RepayView\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#16 PayU\PaymentGateway\Controller\Order\RepayView\Interceptor->___callPlugins() called at [generated/code/PayU/PaymentGateway/Controller/Order/RepayView/Interceptor.php:32]
#17 PayU\PaymentGateway\Controller\Order\RepayView\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:186]
#18 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:118]
#19 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#20 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#21 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php:99]
#22 Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#23 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php:71]
#24 Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#25 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#26 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#27 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#28 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/App/Bootstrap.php:263]
#29 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:30]

This happens on an order placed by a logged-in user as well as an not logged in. For a logged in one, it is possible to go from the profile page correctly - there is no error there.
The module was installed using composer. The problem is in a production environment as well as sandbox payu.

Hello,
We confirm bug, we working on fix.

authors: CptShooter regdos


text:
[Snyk] Fix for 4 vulnerabilities

Snyk has created this PR to fix 4 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

owasp-top10-2021-apps/a5/stegonography/app/package.json

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Asymmetric Resource Consumption (Amplification) SNYK-JS-BODYPARSER-7926860
  696

Cross-site Scripting SNYK-JS-EXPRESS-7926867
  541

Cross-site Scripting SNYK-JS-SEND-7926862
  391

Cross-site Scripting SNYK-JS-SERVESTATIC-7926865
  391

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Cross-site Scripting

Checkmarx One – Scan Summary & Details – 01701445-a37b-4691-a80d-7c1a05d903df
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

CVE-2020-28458
Npm-datatables.net-1.10.19
Vulnerable Package

CVE-2020-28458
Npm-datatables-1.10.21
Vulnerable Package

CVE-2021-32050
Npm-mongodb-3.3.2
Vulnerable Package

CVE-2022-26592
Npm-node-sass-4.9.3
Vulnerable Package

CVE-2022-26592
Npm-node-sass-4.11.0
Vulnerable Package

CVE-2022-37620
Npm-html-minifier-3.5.21
Vulnerable Package

CVE-2022-43357
Npm-node-sass-4.9.3
Vulnerable Package

CVE-2022-43357
Npm-node-sass-4.11.0
Vulnerable Package

CVE-2022-43358
Npm-node-sass-4.9.3
Vulnerable Package

CVE-2022-43358
Npm-node-sass-4.11.0
Vulnerable Package

CVE-2023-24998
Maven-org.apache.tomcat.embed:tomcat-embed-core-9.0.38
Vulnerable Package

CVE-2023-39325
Go-golang.org/x/net-v0.0.0-20220412020605-290c469a71a5
Vulnerable Package

CVE-2023-39325
Go-golang.org/x/net-v0.0.0-20190404232315-eb5bcb51f2a3
Vulnerable Package

CVE-2023-39325
Go-golang.org/x/net-v0.0.0-20190620200207-3b0461eec859
Vulnerable Package

CVE-2023-39325
Go-golang.org/x/net-v0.0.0-20180724234803-3673e40ba225
Vulnerable Package

CVE-2023-39325
Go-golang.org/x/net-v0.0.0-20210226172049-e18ecbb05110
Vulnerable Package

CVE-2023-42282
Npm-ip-1.1.5
Vulnerable Package

CVE-2023-44487
Go-google.golang.org/grpc-v1.21.1
Vulnerable Package

CVE-2023-44487
Maven-org.apache.tomcat.embed:tomcat-embed-core-9.0.38
Vulnerable Package

CVE-2023-45133
Npm-@babel/traverse-7.11.5
Vulnerable Package

CVE-2023-45133
Npm-@babel/traverse-7.4.5
Vulnerable Package

CVE-2023-45133
Npm-@babel/traverse-7.18.0
Vulnerable Package

CVE-2023-45288
Go-golang.org/x/net-v0.0.0-20210226172049-e18ecbb05110
Vulnerable Package

CVE-2023-45288
Go-golang.org/x/net-v0.0.0-20190620200207-3b0461eec859
Vulnerable Package

CVE-2023-45288
Go-golang.org/x/net-v0.0.0-20190404232315-eb5bcb51f2a3
Vulnerable Package

CVE-2023-45288
Go-golang.org/x/net-v0.0.0-20220412020605-290c469a71a5
Vulnerable Package

CVE-2023-45288
Go-golang.org/x/net-v0.0.0-20180724234803-3673e40ba225
Vulnerable Package

CVE-2023-45311
Npm-fsevents-1.2.7
Vulnerable Package

CVE-2023-45311
Npm-fsevents-1.2.4
Vulnerable Package

CVE-2023-46136
Python-Werkzeug-0.14.1
Vulnerable Package

CVE-2023-46234
Npm-browserify-sign-4.2.1
Vulnerable Package

CVE-2023-46589
Maven-org.apache.tomcat.embed:tomcat-embed-core-9.0.38
Vulnerable Package

CVE-2023-6378
Maven-ch.qos.logback:logback-core-1.2.3
Vulnerable Package

CVE-2023-6378
Maven-ch.qos.logback:logback-classic-1.2.3
Vulnerable Package

CVE-2023-6481
Maven-ch.qos.logback:logback-core-1.2.3
Vulnerable Package

CVE-2024-22243
Maven-org.springframework:spring-web-5.2.9.RELEASE
Vulnerable Package

CVE-2024-22259
Maven-org.springframework:spring-web-5.2.9.RELEASE
Vulnerable Package

CVE-2024-22262
Maven-org.springframework:spring-web-5.2.9.RELEASE
Vulnerable Package

CVE-2024-23672
Maven-org.apache.tomcat.embed:tomcat-embed-websocket-9.0.38
Vulnerable Package

CVE-2024-23672
Maven-org.apache.tomcat.embed:tomcat-embed-core-9.0.38
Vulnerable Package

CVE-2024-24549
Maven-org.apache.tomcat.embed:tomcat-embed-core-9.0.38
Vulnerable Package

CVE-2024-24792
Go-golang.org/x/image-v0.0.0-20190802002840-cff245a6509b
Vulnerable Package

CVE-2024-27088
Npm-es5-ext-0.10.53
Vulnerable Package

CVE-2024-27088
Npm-es5-ext-0.10.47
Vulnerable Package

CVE-2024-29180
Npm-webpack-dev-middleware-5.3.3
Vulnerable Package

CVE-2024-29180
Npm-webpack-dev-middleware-3.7.2
Vulnerable Package

CVE-2024-29415
Npm-ip-1.1.5
Vulnerable Package

CVE-2024-31573
Maven-org.xmlunit:xmlunit-core-2.7.0
Vulnerable Package

CVE-2024-33883
Npm-ejs-2.6.1
Vulnerable Package

CVE-2024-33883
Npm-ejs-3.1.8
Vulnerable Package

CVE-2024-34069
Python-Werkzeug-0.14.1
Vulnerable Package

CVE-2024-34750
Maven-org.apache.tomcat.embed:tomcat-embed-core-9.0.38
Vulnerable Package

CVE-2024-37890
Npm-ws-7.5.7
Vulnerable Package

CVE-2024-37890
Npm-ws-5.2.2
Vulnerable Package

CVE-2024-37890
Npm-ws-3.3.3
Vulnerable Package

CVE-2024-37890
Npm-ws-8.6.0
Vulnerable Package

CVE-2024-37890
Npm-ws-6.1.4
Vulnerable Package

CVE-2024-37890
Npm-ws-7.3.1
Vulnerable Package

CVE-2024-37890
Npm-ws-6.2.1
Vulnerable Package

CVE-2024-38355
Npm-socket.io-2.3.0
Vulnerable Package

CVE-2024-38355
Npm-socket.io-2.1.1
Vulnerable Package

CVE-2024-4068
Npm-braces-2.3.2
Vulnerable Package

CVE-2024-4068
Npm-braces-1.8.5
Vulnerable Package

CVE-2024-4068
Npm-braces-3.0.2
Vulnerable Package

CVE-2024-45296
Npm-path-to-regexp-0.1.7
Vulnerable Package

CVE-2024-45590
Npm-body-parser-1.18.3
Vulnerable Package

CVE-2024-45590
Npm-body-parser-1.19.0
Vulnerable Package

CVE-2024-45590
Npm-body-parser-1.20.0
Vulnerable Package

Client_DOM_XSS
/owasp-top10-2021-apps/a8/amarelo-designs/app/static/User/vendor/raphael/raphael.js: 6006
Attack Vector

Client_DOM_XSS
/owasp-top10-2021-apps/a6/cimentech/app/html/modules/overlay/overlay-parent.js: 610
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a1/tictactoe/src/app.js: 154
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a1/tictactoe/src/app.js: 89
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb-core/lib/auth/scram.js: 242
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb-core/lib/auth/scram.js: 242
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a1/tictactoe/src/app.js: 153
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a1/tictactoe/src/app.js: 88
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a1/tictactoe/src/app.js: 163
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb-core/lib/auth/scram.js: 133
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a1/tictactoe/src/app.js: 111
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a1/tictactoe/src/db.js: 103
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a1/tictactoe/src/db.js: 95
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a1/tictactoe/src/db.js: 76
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb-core/lib/auth/mongocr.js: 18
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb-core/lib/auth/mongocr.js: 17
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb-core/lib/auth/mongocr.js: 17
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb/lib/operations/db_ops.js: 88
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb/lib/operations/db_ops.js: 88
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb-core/lib/connection/connection.js: 126
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb/lib/operations/db_ops.js: 96
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb/lib/operations/db_ops.js: 96
Attack Vector

Insecure_Storage_of_Sensitive_Data
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/mongodb-core/lib/auth/mongocr.js: 35
Attack Vector

MongoDB_NoSQL_Injection
/owasp-top10-2021-apps/a3/mongection/src/app.js: 59
Attack Vector

Passwords And Secrets - Generic Password
/docker-compose.yml: 31
Query to find passwords and secrets in infrastructure code.

Second_Order_SQL_Injection
/owasp-top10-2021-apps/a1/tictactoe/src/db.js: 13
Attack Vector

Absolute_Path_Traversal
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/send/index.js: 613
Attack Vector

Absolute_Path_Traversal
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/send/index.js: 613
Attack Vector

Absolute_Path_Traversal
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/send/index.js: 613
Attack Vector

Absolute_Path_Traversal
/owasp-top10-2021-apps/a5/stegonography/app/node_modules/dotenv/config.js: 8
Attack Vector

Broken_or_Risky_Hashing_Function
/owasp-top10-2021-apps/a6/cimentech/app/html/modules/openid/openid.inc: 520
Attack Vector

Broken_or_Risky_Hashing_Function
/owasp-top10-2021-apps/a6/cimentech/app/html/modules/openid/openid.inc: 462
Attack Vector

Broken_or_Risky_Hashing_Function
/owasp-top10-2021-apps/a6/cimentech/app/html/modules/openid/openid.inc: 461
Attack Vector

Broken_or_Risky_Hashing_Function
/owasp-top10-2021-apps/a6/cimentech/app/html/modules/openid/openid.inc: 455
Attack Vector

CSRF
/owasp-top10-2021-apps/a6/cimentech/app/html/modules/simpletest/drupal_web_test_case.php: 1815
Attack Vector

CVE-2019-11841
Go-golang.org/x/crypto-v0.0.0-20181112202954-3d3f9f413869
Vulnerable Package

CVE-2019-11841
Go-golang.org/x/crypto-v0.0.0-20190103213133-ff983b9c42bc
Vulnerable Package

CVE-2019-11841
Go-golang.org/x/crypto-v0.0.0-20181203042331-505ab145d0a9
Vulnerable Package

CVE-2019-18799
Npm-node-sass-4.11.0
Vulnerable Package

CVE-2019-18799
Npm-node-sass-4.9.3
Vulnerable Package

CVE-2023-26159
Npm-follow-redirects-1.13.0
Vulnerable Package

CVE-2023-26159
Npm-follow-redirects-1.15.0
Vulnerable Package

CVE-2023-26159
Npm-follow-redirects-1.5.7
Vulnerable Package

CVE-2023-26159
Npm-follow-redirects-1.7.0
Vulnerable Package

CVE-2023-29407
Go-golang.org/x/image-v0.0.0-20190802002840-cff245a6509b
Vulnerable Package

CVE-2023-29408
Go-golang.org/x/image-v0.0.0-20190802002840-cff245a6509b
Vulnerable Package

CVE-2023-34055
Maven-org.springframework.boot:spring-boot-2.3.4.RELEASE
Vulnerable Package

CVE-2023-3978
Go-golang.org/x/net-v0.0.0-20190404232315-eb5bcb51f2a3
Vulnerable Package

CVE-2023-3978
Go-golang.org/x/net-v0.0.0-20180724234803-3673e40ba225
Vulnerable Package

CVE-2023-3978
Go-golang.org/x/net-v0.0.0-20210226172049-e18ecbb05110
Vulnerable Package

CVE-2023-3978
Go-golang.org/x/net-v0.0.0-20190620200207-3b0461eec859
Vulnerable Package

CVE-2023-3978
Go-golang.org/x/net-v0.0.0-20220412020605-290c469a71a5
Vulnerable Package

CVE-2023-41080
Maven-org.apache.tomcat.embed:tomcat-embed-core-9.0.38
Vulnerable Package

CVE-2023-42795
Maven-org.apache.tomcat.embed:tomcat-embed-core-9.0.38
Vulnerable Package

CVE-2023-44270
Npm-postcss-7.0.14
Vulnerable Package

CVE-2023-44270
Npm-postcss-8.4.14
Vulnerable Package

CVE-2023-44270
Npm-postcss-7.0.21
Vulnerable Package

CVE-2023-44270
Npm-postcss-7.0.2
Vulnerable Package

CVE-2023-44270
Npm-postcss-7.0.35
Vulnerable Package

CVE-2023-44270
Npm-postcss-7.0.39
Vulnerable Package

CVE-2023-44270
Npm-postcss-7.0.32
Vulnerable Package

CVE-2023-45648
Maven-org.apache.tomcat.embed:tomcat-embed-core-9.0.38
Vulnerable Package

CVE-2023-45857
Npm-axios-0.20.0
Vulnerable Package

CVE-2023-45857
Npm-axios-0.21.4
Vulnerable Package

CVE-2023-45857
Npm-axios-0.17.1
Vulnerable Package

CVE-2023-48795
Go-golang.org/x/crypto-v0.0.0-20200414173820-0848c9571904
Vulnerable Package

CVE-2023-48795
Go-golang.org/x/crypto-v0.0.0-20220411220226-7b82a4e95df4
Vulnerable Package

CVE-2023-48795
Go-golang.org/x/crypto-v0.0.0-20181112202954-3d3f9f413869

More results are available on AST platform

authors: svc-pe-appsec vrangsr

repo: PearsonAppsec/secDevLabs


text:
improve cosmos-signer error handling

Tried to improve error handling around some unwrap() calls that needed it; it seems like we lean toward using expect() when the failure is due to an invalid config value so I also continued that pattern. Happy to discuss.

Currently blocked because a dependency of our deep_space fork called anomaly was yanked. I've asked @tony-iqlusion to unyank the latest version until we get our fork updated.

repo: PeggyJV/steward


text:
Add setup.py using pbr so that it creates Changelog and Authors

Closes #241

This is awesome! Thanks @iranzo

repo: Pelican-Elegant/elegant


text:
Make the Director public

Currently redirects to a login page, make it public so the world can see.

@CannonLock / @jhiemstrawisc - is this scheduled for the 7.5.0 milestone?  It's unclear if there's any development branches associated with it.

Closed by #783

authors: CannonLock bbockelm haoming29

repo: PelicanPlatform/pelican


text:
edge-testnet:fix edge-k8s URL & return non-zero exit code in failures

A rather awkward bug, the edge-k8s URL has been simply wrong. This just has not shown that well earlier, as the nc test was faulty.
Adding handling of error code for the openssl, too.
If any test fails, we return with non-zero exit code.
If nc is from BusyBox, skip L4 tests.
Bump version 2.3.3.

I'm NOT getting why the ping is failing in the CI. It should not.
 01:54 jannek@jannek-P720:/ssd/pe-utils$ ping -q -c 1 bootstrap.us-east-1.mbedcloud.com
PING bootstrap.us-east-1.mbedcloud.com(2600:1f18:259e:8900:ffff:ffff:b075:3098 (2600:1f18:259e:8900:ffff:ffff:b075:3098)) 56 data bytes

--- bootstrap.us-east-1.mbedcloud.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 131.732/131.732/131.732/0.000 ms
 01:54 jannek@jannek-P720:/ssd/pe-utils$ echo $?
0

Todos

[x] Changelog updated
[x] Run shellcheck or pysh-check before committing code - no more warnings than earlier (preferrably less)
[x] Will tag a proper release, if need be.
[ ] Will update required recipes/builds as well.
[x] Will update also the versions to relevant places:

edge-info/edge-info has the version number (around line 37)
identity-tools/VERSION has the version number as well.

Passes on the LmP now.
fio@raspberrypi3-64:~$ fw-tools/edge-testnet
[   OK   ]	ping bootstrap.us-east-1.mbedcloud.com
[   OK   ]	ping lwm2m.us-east-1.mbedcloud.com
[   OK   ]	ping tcp-lwm2m.us-east-1.mbedcloud.com
BusyBox netcat detected, skipping Layer 4 tests
[   OK   ]	TLS to bootstrap server (port 5684)
[   OK   ]	TLS to lwm2m.us-east-1.mbedcloud.com server (port 5684)
[   OK   ]	TLS to tcp-lwm2m.us-east-1.mbedcloud.com server (port 5684)
[   OK   ]	TLS to bootstrap server (port 443)
[   OK   ]	TLS to lwm2m.us-east-1.mbedcloud.com server (port 443)
[   OK   ]	TLS to tcp-lwm2m.us-east-1.mbedcloud.com server (port 443)
[   OK   ]	TLS to edge-k8s server (port 443)
[   OK   ]	TLS to gateway server (port 443)
[   OK   ]	TLS to registry server (port 443)
All tests passed.

Ok, so for some reason - the GitHub hosted runner can't reach our bootstrap (and I assume lwm2m, too) URLs.
PING dns-lb-bootstrap-production.us-east-1.mbedcloud.com (18.232.231.150) 56(84) bytes of data.

--- dns-lb-bootstrap-production.us-east-1.mbedcloud.com ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms

Error: Process completed with exit code 1.

Ping returns thus error code 1, as we have 100% packet loss. Why?

repo: PelionIoT/pe-utils


text:
Can custom color theme for date supports more date?

First of all, I really love this feature, which can help me easily to distinguish the files which are modified recently. Current, I see the color theme for data supports 3 different data, hour-old, day-old, older. Does it support more data like 5 minutes old, 2 hours old etc. Thank you!

Duplicate of https://github.com/Peltoche/lsd/issues/359

authors: FischLu meain

repo: Peltoche/lsd


text:
Change trig functions to operate in radians; add degree trig functions

We change the existing trig functions to operate in radians. We add sind, cosd, etc. as functions that operate in degrees. This follows Fortran, MATLAB, Wolfram Alpha, etc.
In addition, we remove atan2, and move its functionality to the 2-arg variants of atan and atand. This follows Lisp and Scheme, and is appropriate since CoffeeScript has optional arguments with default values. atan(y, x = 1) == atan2(y, x)
And we fix the accuracy of these functions by removing their use of roundEpsilon. That function seems to be trying to ensure that values that should be rational (e.g. sind 30 == .5), look "nice". Instead, we just explicitly check for such values. The fact that there is a small number of such values is ensured by http://www.jstor.org/stable/2304540.

This is cool.  Since it's a breaking change it'd be nice for us to do two things:
(1) Write a short blog entry (mostly so that we have a web page where we can point people who are confused)
https://github.com/PencilCode/blog/tree/master/documents/posts
(2) Do a short sed script to change exiting bare sin(90) to sind(90).
Here is a list of egrep results of code that matches sin|cos|tan|atan etc.
http://david.pencilcode.net/home/maybebroken.txt

Here's a python3 program that will make the appropriate changes.
You will want to change it to do the right thing to actually update the database,
probably by removing the filter to check for particular functions (used for debugging),
changing the file name handling, and writing unchanged lines.
import re
import string
files_to_skip = [# Code is in an unfinished state. Looks like it wants to be in radians.
"belto15/Conic_Sections",
# Copies of jquery-turtle.js:
"dkogan/myjquery_turtle.js",
"drm/my_jquery_turtle.js",
# Uses sin, looks confused.
"belto15/Blood_pressure",
# Just confused.
"misterv/Experiments/Experiment/Triginometry",
# This code is just confused. It uses tan, but probably wants to be using atand.
"monaghant15/DirectionTest"]
A bunch of these use Math.sin, but use sin as a variable name.
degrees_to_radians = re.compile('degrees[-]?(to)?[-]?radians|D_2_R|degrees', re.I)
file_line = re.compile('^(.?):(.)$')
trig_line = re.compile('^(.?\b)(sin|cos|tan|asin|acos|atan|atan2)(\b.)$')
turtle_color_operation = re.compile('\b(pen|dot|polygon|background|color|fill|box|wear)\b')
def all_whitespace(s):
return s.strip(string.whitespace) == ''
def fix(line):
match_trig = re.match(trig_line, line)
if match_trig:
start = match_trig.group(1)
trig_function = match_trig.group(2)
rest = match_trig.group(3)
if start.endswith('.') or rest.startswith(':') or
re.search('["']', start) or
re.search('["']', rest) or
trig_function == 'sin' and
(start.endswith('unpardonable ')) or
trig_function == 'tan' and
(re.search(turtle_color_operation, start) or
rest.startswith(' sneakers') or
re.search('\bbeige\b', start) or
all_whitespace(start) and all_whitespace(rest) or
re.search('\[', start) or re.search('\]', rest)):
return start + trig_function + fix(rest)
else:
if trig_function == 'atan2':
trig_function = 'atan'
return start + trig_function + 'd' + fix(rest)
else:
return line
with open('/Users/bcassels/Downloads/maybebroken.txt') as input:
with open('/Users/bcassels/Python/test-out.txt', 'w') as output:
for line in input:
match_line = re.match(file_line, line)
if match_line:
file = match_line.group(1)
if not(file in files_to_skip or
file.endswith('.html') or
re.search(degrees_to_radians, file)):
code = match_line.group(2)
match_trig = re.match(trig_line, code)
if match_trig and match_trig.group(2) == 'tan':
output.write(file + ':' + fix(code) + '\n')

Here's my blog post explaining the change:
https://docs.google.com/a/google.com/document/d/1YskbkZBJunG-T4hlJih_2sSyZ1UkOQ6AwpQ9ZxiCrow/edit

Thanks bob!  Send me your conversion script.  Also I'll be doing the log->debug change soon.

authors: bobcassels davidbau

repo: PencilCode/jquery-turtle


text:
schaefer200x7_sift_radius2_count_connectivity and schaefer200x7_radius2_count_connectivity of the resulting mat-file contain identical matrices

Hi Matt,
I am aiming for a graph theoretical analysis of qsiprep outputs.
After application of qsiprep/qsirecon with the "mrtrix_singleshell_ss3t" pipeline schaefer200x7_sift_radius2_count_connectivity and schaefer200x7_radius2_count_connectivity of the resulting mat-file contain identical matrices. I expected integers representing the streamline count in schaefer200x7_radius2_count_connectivity but both matrices contain floats like "1.431591663834453e+04" looking more like weighted streamline counts as expected after application of SIFT.
Am I misunderstanding something? Was looking for some hints in the documentation and code base but without luck.
Best,
Marvin

this is fixed in unstable and will be included in 0.15.

authors: m-petersen mattcieslak

repo: PennLINC/qsiprep


text:
setup in decksite.database should more properly be called init?

Would match magic.database more closely.

I guess the thing here is that what is called setup and what is called init in magic.database are kind of rolled together in decksite.database in a way that doesn't make a lot of sense to break apart. We should think about this after we have resolved the timing issue in #367

repo: PennyDreadfulMTG/Penny-Dreadful-Tools


text:
Return DShapeArray objects in measure primitives when possible

Context: Measure primitives only return ShapedArray objects, which forces variables like the number of shots or number of wires to be known at compilation time. With the support for DShapedArray objects, this constraint can be removed.
Description of the Change: Return DShapedArray objects when possible.
Benefits: Eliminating the need to know the number of shots/wires statically is a step towards allowing us to compile programs that don't have a fixed number of qubits.
[sc-74736]

I decided to tackle the MLIR changes in the same PR

Closing due to #1310 .

repo: PennyLaneAI/catalyst


text:
[DEMO] QCNN for Speech Recognition and Neural Saliency Analysis

General information
Name
C.-H. Huck Yang
Affiliation
Georgia Institute of Technology, Atlanta, GA

Demo information
Title
QCNN for Speech Commands Recognition.
Abstract
We provide a hybrid model training with larger-scale acoustic features 3,000 to 10,000 with quantum convolution networks with Random layer, which still provide insightful convolution features without the encoding time cost from the CPU simulation and on the request queueing time from QPU. We further provide classical activation mapping, a neural saliency analysis, on the well-trained neural models (QCNN Self-Attention v.s. CNN Self-Attention) to justify that the QCNN Self-attention model did learn meaningful representations. An additional Connectionist Temporal Classification (CTC) loss on character recognition is also provided for continuous speech recognition.
Relevant links
We provide a GitHub repo and Colab for future studies. A related preprint has been released and will appear in IEEE International Conference on Acoustics, Speech, & Signal Processing (ICASSP) 2021.
@article{yang2020decentralizing,
  title={Decentralizing Feature Extraction with Quantum Convolutional Neural Network for Automatic Speech Recognition},
  author={Yang, Chao-Han Huck and Qi, Jun and Chen, Samuel Yen-Chi and Chen, Pin-Yu and Siniscalchi, Sabato Marco and Ma, Xiaoli and Lee, Chin-Hui},
  journal={arXiv preprint arXiv:2010.13309},
  year={2020}
}

Thanks @huckiyang for this nice contribution!
A member of the team will have a look some time during this week :slightly_smiling_face:

Thanks @huckiyang for the contribution! Your demo is now visible on the community demos page! :100: :rocket:

Hi @huckiyang, I'd like to consider rewording the abstract slightly. Would the following work for you:

We train a hybrid quantum convolution neural network (QCNN) on acoustic data with up to 10,000 features. This model uses layers of random quantum gates to efficiently encode convolutional features. We perform a neural saliency analysis to provide a classical activation mapping to compare classical and quantum models, illustrating that the QCNN self-attention model did learn meaningful representations. An additional connectionist temporal classification (CTC) loss on character recognition is also provided for continuous speech recognition.

Hi @trbromley Thank you Tom, it looks good to me. Many thanks for the editing efforts.

authors: huckiyang trbromley

repo: PennyLaneAI/qml


text:
[Feature Request] Multible language support

CCPT should support multible languages, not just english.
The user should be able to switch between them.
The default language should be chosen from the IP location.

This accessability feature will be implemented in a later version, as the next version focusses on bugfixes and functional features. To make sure this is not forgotten about, this issue remains upen until then.

repo: PentagonLP/ccpt


text:
Add Enum.toString() or something similiar

Right now its not possible to use enums as object/table keys.
Possible Fix
enum Test {
  file,
  directory,
  link
}

let obj {[name: string]: boolean}

function setValue(value : Test) {
  obj[value.toString()] = true
}

-- In Lua
function setValue(value)
  obj[value] = true
end

This would work. But technically its not correct because Test.toString() should return "file", "directory" or "link". With the above solution it would just use the value instead. So this would only work if the enum's values are unique (not sure if thats required by TS or if you can have multiple entries with same values)

No easy way to do this, I would suggest just making the object key a number type and using value as index instead of value.toString. If you actually need an enum toString (which wont be often) just write the function yourself with a switch or if/else.

authors: Perryvw lolleko

repo: Perryvw/TypescriptToLua


text:
vguess issue

Vguess has F_phat[2] as input which isn't necessary.

included in pull request #14

included in pull request https://github.com/PetrVey/pyTENAX/pull/14

repo: PetrVey/pyTENAX


text:
CI/Add checking django tests on PR

After implementation tests in the backend, we need to add action, which will run tests

Closed via PR #31

repo: PhotoShare-IO/Photo-Django

license: Unlicense


text:
🛑 Static Files is down

In ab05556, Static Files (https://static.phyrone.de/) was down:

HTTP code: 404
Response time: 732 ms

Resolved: Static Files is back up in a70b6c7 after 23 minutes.


text:
Upgrade pitest-maven-plugin 1.15.7 -> 1.15.8

This PR contains the following updates:

Package
Type
Update
Change

pitest-maven-plugin (source)
build
patch
1.15.7 -> 1.15.8

Release Notes

hcoles/pitest (pitest-maven-plugin)
v1.15.8
Compare Source
#1310 Filter mutations to Collections.unmodifiable*
#1309 Replace fields in argLines imported from surefire config
#1308 Bump maven vcs versions
The filtering for #1310 is off by default. To activate it add the filter string +funmodifiablecollection.
#1309 adds a new maven property parseSurefireArgLine. This is set to true by default, but surefire argline parsing can now be disabled by setting it to false.

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade pitest-maven-plugin 1.15.7 -> 1.15.8

See:
- https://github.com/hcoles/pitest/releases/tag/1.15.8
- https://github.com/hcoles/pitest/compare/1.15.7...1.15.8

repo: PicnicSupermarket/error-prone-support


text:
PSM-393 Upgrade version.error-prone 2.3.3 -> 2.4.0

This PR contains the following updates:

Package
Update
Change

com.google.errorprone:error_prone_core
minor
2.3.3 -> 2.4.0

com.google.errorprone:error_prone_annotations
minor
2.3.3 -> 2.4.0

Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.

Suggested commit message:
PSM-393 Upgrade Error Prone 2.3.3 -> 2.4.0

See:
- https://github.com/google/error-prone/releases/tag/v2.3.4
- https://github.com/google/error-prone/releases/tag/v2.4.0
- https://github.com/google/error-prone/compare/v2.3.3...v2.4.0

Since you already tested in downstream projects: will merge :)

repo: PicnicSupermarket/oss-parent


text:
App rejected Due to copy right issue

My app is rejected saying that,
Webviews
We don’t allow apps whose primary purpose is to provide a webview of a website, regardless of ownership, or to aggregate content that does not belong to the developer.
What should I do now?

Is your app targeting some specific website or youtube channel?

Yeah it shouldn't be an issue if you're just accessing YouTube in general. Are you doing something else? do you have other webviews?

no, I am just using YouTube
disabling YouTube Button

This is my app link
I submit an update with a signatured APK file
because YouTube Player was not playing in some devices
then, that update get rejected

https://support.google.com/googleplay/android-developer/topic/9876964#impersonation-intellectual-property
they give me this link

uhm, looking at that link i would say the problem is with your app, not with the player itself. Share the apk if you want, can have a look.


text:
pagination

pb détecté ici https://projet.evaneox.com/projet5/observation/validation/vos-validations , en mode connecté en admin (admin@test.com)
et ici https://projet.evaneox.com/projet5/observation/vos-observations/valide (connecté en admin@test.com)
il est impossible de consulter la page 2

Correction effectuée pour les observations, validations et blog

authors: Niavl PierreSylvain

repo: PierreSylvain/nao


text:
Custom Named Items

What is your Quests version / build number (do not say "latest")?
5.0.4
Describe the problem and how to replicate it.
When i save items with a custom names that should be crafted for a quest in quest, they wont get noticed when they are crafted. Like when i make a quest to craft Dared Pickaxe and the name is bold and gray it wont register it when its crafted.
Sometimes it works but mostly not, i dont know where the issue is so i cant replicate it by command. But i know that it doesnt work 99%.
Any console errors to share?
no errors

If applicable, can you provide an example quest from quests.yml?
custom1:
    name: 'Rylon: The Beginning'
    ask-message: Rylon
    finish-message: Well done!
    block-start: empty world 165358.0 66.0 165360.0
    stages:
      ordered:
        '1':
          break-block-names:
          - OAK_LOG
          break-block-amounts:
          - 6
          break-block-durability:
          - 0
          start-event: RunCommand
          start-message: Break 6 Oak Logs
        '2':
          items-to-craft:
          - ==: org.bukkit.inventory.ItemStack
            v: 3465
            type: WOODEN_PICKAXE
            meta:
              ==: ItemMeta
              meta-type: UNSPECIFIC
              display-name: '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"gray","text":"Dared
                Pickaxe"}],"text":""}'
              lore:
              - '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"yellow","text":"Can
                Break:"}],"text":""}'
              - '{"extra":[{"bold":false,"italic":false,"underlined":false,"strikethrough":false,"obfuscated":false,"color":"white","text":"-
                Stone"}],"text":""}'
          start-message: Buy the Recipe book from the allay! &c&lDont shift-click
            items from the crafting table in your inventory!

Sorry for the late reply. How are your players able to craft items with custom names? As far as I know, the vanilla Crafting table does not allow this?

Sorry for the late reply. How are your players able to craft items with custom names? As far as I know, the vanilla Crafting table does not allow this?

Custom plugins can register new recipes. The easiest way to tell is to listen to PrepareItemCraftEvent on MONITOR.

Thanks for chiming in. If OP can provide the name of the plugin they're using to register recipes, I'll consider looking into this further.

Closing due to lack of response from OP.

authors: IllusionTheDev NGamerW PikaMug

repo: PikaMug/Quests


text:
update TiDB url in page: https://docs.prow.k8s.io/docs/overview/

Fixed in:

https://github.com/kubernetes-sigs/prow/pull/57

Fixed in: https://github.com/kubernetes-sigs/prow/pull/57

done

repo: PingCAP-QE/ci


text:
Forbid pull request to patch release branch of tidb-test repo

It will broken other pull requests for to other hotfix branch that based same tag.

It will broken other pull requests for to other hotfix branch that based same tag.

fixed in https://github.com/ti-community-infra/configs/pull/924


text:
PR classification use of state and merged variables

https://github.com/PiotrZakrzewski/oss-responsiveness/blob/b50a5149428e05c09ac20c29d5bae55bd8c0c198/score.py#L27-L30
In this logic, do you actually need the merge variable?
I would say, the MERGED and CLOSED states are exclusive. The first is always merged, the second is never merged.

This is true. This is a remnant of REST-api format I initially used. REST API did not have a merged status, only OPEN/CLOSED.
👍🏿

Thanks, that explains! Btw: I am trying to adapt the script to create a simple overview of these stats for all repositories of an organisation.

authors: MaximMoinat PiotrZakrzewski

repo: PiotrZakrzewski/oss-responsiveness


text:
Update to Rust nightly 2015-01-23

Fixes build error in latest Rust nightly.

Thanks.

Ok. I checked, the compiler does not complain. As long as the type inferfence works, I would prefer to leave it like this.
The other changes where already merged by @tomaka.
Thanks for your contribution.

authors: mbrubeck nwin

repo: PistonDevelopers/image


text:
Status

When the bot reboots and the user is online it sets the status to their offline status.

That is the default status for when you are offline and the bot is not, so that you don't appear as online when in reality you aren't.
If you want to change it just do !status online|idle|dnd|invisible

I mean the status is not working at all know I am offline and have my !status set to dnd but it shows me as offline

One of the downsides of self-bots is that you can't actually see your own status, so you have to check with another account and you'll see that you are in fact dnd.
The way it works, is that the desktop client takes priority. So if you are only but you set yourself as invisible on the client, you will still appear as invisible. The status command only works when you are truly offline, and not just hiding yourself, meaning the desktop/mobile client is closed.

I know I have been using this bot for a long time I have the desktop version closed and that is all that I have signed in. I am checking with another account(In web) and it still shows me as offline when I have done !status dnd

I just tried this myself with the latest Kuro version and it works as expected. I typed !status dnd, then closed Discord and I'm showing as dnd on my other account. I'm not quite sure what could be your issue.
Are you running the latest version with the latest dependencies? Try doing npm update

Actually, something changed on d.js and now it's kind of borked.
The command is pretty much useless now, since the bot remembers your status before going offline. So if you want to appear as offline when you are offline, you need to set your status to invisible on the client before closing it.
I'm not fond of it, but that's the way it works now.

Just re-installed from kuro-cli and still the same

Yeah, check the previous message I sent. This is how it works now due to a d.js update, so it's time to adapt. Set yourself to invisible on your desktop client before closing it and it should work.

repo: Pitu/Kuro


text:
Add Options Menu

The player should be able to reach an options menu from within the main menu.
The options menu has only 2 options:

Music Volume
Sound Volume

Using left/right inputs the player can modify the values in 5% steps ranging from 0% (sound/music off) to 100% (full volume).

Implemented in commit  51581263b8329432ec24af3e37986c7684fe6131

repo: Pixelgamix/BreakoutParty


text:
Nanotrasen Traitors

As we all know, well, Trieste isn't the most popular settlement in the eyes of the megacorps. That's why we're going to have syndies and nanotrasen agents, (someone will come up with a nickname eventually)
As it turns out, the C# doesn't actually seem too hard to modify to give nanotrasen agents their own unique uplink, which is convinient. As it stands, we need some ideas on what will be in these uplinks. Also if someone else wanted to try and code it that'd be chill.
Currently: They'll use bluespace crystals instead of TC, they'll have the NT-22 unused pistol in the code, HOS energy shotgun, captain's sabre (maybe a bit duller), MK22, reflective vest, and what else?
Nanotrasen gear will have a heavier focus on NT technology, so laser weaponry, plasma, bluespace, etc.
Nanotrasen energy/particle weaponry will have an illegal power siphon that allows them to recharge at APCs, similar to how space ninjas recharge their gloves.

Energy disperser, disperses energy into the ocean (Kills or crits anyone in the ocean)

I remember I was writing up ideas for what to put on their up link a while ago so I will just post everything I came up with here
Deception
Adaptive Stamp (can change into any normal stamp through a right click menu similar to chameleon) 1BC
Binary Translator Key (Same as standard) 1BC
Central Command Encryption Keys (A encrypted network unique to the NT agents) 2BC
NT Lobbying Bundle (just retheme the syndicate Lobbying Bundle) 4BC
Announcement System Controller (Can be used to make announcements under any name or job title) 6BC
Adaptive encryption key (Similar to a agent ID you can use it on encryption keys to gain their channels) 6BC
Disruption
lubricant bundle (Contains 4 Bottles of space Lube) 1BC
full tool belt (a full tool belt including welding mask) 2BC
Evidence cleaning bundle (Contains a transparent bar of soap which leaves no residue, cleaning grenade and space cleaner spray bottle) 4BC
Implants
loyalty Implanter (Similar to revolutionary brainwashing makes the target of the Implant loyal to NT and their agents) 10BC
Allies
pAI (just a standard pAI) 1BC
lawyer teleporter (Call in a lawyer to save you from the law, they are pacifists and cannot hurt people but could help you achieve objectives in other ways) 8BC
Security teleporter (Call in a probably highly trained agent transferred from NTs very owner security force) 12BC
Pointless
Flat pack arcade machine (distract your enemies using the power of NT block game) 1BC

TODO: NT vibroblade, a survival/kitchen knife with an activatable heat ability, functions as a very very slow welding tools when enabled.
Tech override card: just the NT version of the EMAG, since Trieste uses a lot of NT designs and systems this card allows traitors to interface with the system and do EMAG stuff
Plasma grenade: releases lit plasma into the room
Other magcell types: Disabler Magcell (converts your NT-brand weapon into a disabler), Superheated Magcell (bolts cause enemies to light aflame, at the cost of lower max charge), Unstable Magcell (bolts explode. Very high max charge, very low shot count)
Make the captain's sabre retractable into the hilt to be hidden
Chemistry kit: A duffel that contains vials full of lots of different types of chems, and makeshift chemistry machines. Maints chem lab rejoice!
Energy gloves: Activatable black gloves that have energy blades in the wrists. Makes your melee damage do increased heat and slash when enabled.
Bluespace grenade: Randomly teleport nearby victims upon activation.
Slashbang: like a flashbang, but shoots out knives. (Cuz it's fucking funny)
Fake briefcase: somehow has extra storage only accessible if a certain thing is done to it
Bluespace bag: looks like a normal backpack, but it's got extra storage.
Nanotrasen Science Long Fall Boots: allows you to fall off the platform without getting killed
Announcement Pad: Allows you to tap into the announcement system and make announcements.
Nanotrasen cap, jumpsuit, cloak, etc
Nanotrasen flag
NT calling card
Extreme Pressure Beachball: The beloved NT beachball, filled with extreme pressure air! Throw to cause a violent shockwave that throws targets back, or you forward!


text:
长句子拆分有问题，不准确

大佬，长句子拆分的地方是按秒来计算的，一秒内可能跨句子了，最终拆分下来不太准确

whisper有时候确实是会抽风，但是大多数情况下是没问题的，而且那个拆分其实是按毫秒

    for i, seg in enumerate(result['segments']):

        start_time = seg['start']
        end_time = seg['end']
        text = seg['text']
        text = lang2token[lang] + text.replace("\n", "") + lang2token[lang]
        text = text + "\n"
        wav_seg = wav[:, int(start_time * sr):int(end_time) * sr)]
        wav_seg_name = f"{character_name}_{code}_{i}.wav"
        savepth = save_dir + character_name + "/" + wav_seg_name
        speaker_annos.append(savepth + "|" + character_name + "|" + text)
        print(f"Transcribed segment: {speaker_annos[-1]}")
        # trimmed_wav_seg = librosa.effects.trim(wav_seg.squeeze().numpy())
        # trimmed_wav_seg = torch.tensor(trimmed_wav_seg[0]).unsqueeze(0)
        torchaudio.save(savepth, wav_seg, 22050, channels_first=True)

我看这段代码，wav_seg = wav[:, int(start_time * sr):int(end_time) * sr)]。计算seg的时候用的是start_time和end_time，我断点跟了下，这两个时间都是秒，很奇怪，难道我有啥参数没有设置吗，按说代码没有动

噢，抱歉，那应该是我记错了。如果是这样那确实有些地方可能不准，但是总体来说影响不大。
我也不太清楚有什么更好的切片方式，如果你知道的话希望可以提供一些建议，感谢

啊，我解决了，果然有一个transcribe的参数可以指定segments返回对应的毫秒数（word_timestamps=True），默认是秒。
result = model.transcribe(parent_dir + file, word_timestamps=True, **transcribe_options)
感谢提供思路哈哈，这样就非常准确了

已修改该部分代码，感谢你提供解决方案

authors: Plachtaa SpencerZhaoQi

repo: Plachtaa/VITS-fast-fine-tuning


text:
关于训练过程中属性错误

作者您好，我在尝试训练的时候出现了如下错误。上面的部分都没有报错，但是如果不勾选的话就会出现bug，同时tensorborad的GUI也没有输出。这里我确认了一下预处理最后的那个文件 路径|说话人名|因素标注  的final_anno....train和val.txt文件是有输出的（两个文件是相同的），不知道哪里出了问题。

只有单说话人会报错，就算加上emb_g采样器也会报错，单说话人必须要勾选辅助训练数据或者加入几个dummy speaker来绕过去


text:
Hi Rultor!

@rultor hello

@nywillb what?

@rultor hello

@rultor hello

@nywillb Hi there! I understand a few simple commands: "merge", "deploy", etc. This page explains them briefly. Any questions or bug reports are welcome. Have fun :)

@thatoddmailbox See!

@rultor merge

@nywillb

First, we install all Ruby gems required for Jekyll (this is how this website is built). Then, we deploy the system to CloudBees. Then, we deploy the site to Github Pages.

We don't use Ruby, Jekyll, CloudBees, or GitHub Pages.

I know

@rultor merge

@nywillb It is an issue, not a pull request

@rultor merge

@nywillb I'm sorry, I don't understand you :( Check this page and try again please

But it is still fun.

@nywillb Then what is it for?

I dunno.

@rultor close

@rultor close

@nywillb I'm sorry, I don't understand you :( Check this page and try again please

authors: nywillb rultor thatoddmailbox

repo: PlanHubMe/PlanHub


text:
可否留个联系。

最近配置webpack有少少问题，可以问一下你吗？

本项目相关问题可以提issue

build出来的css和js文件都没带hash。

hash的通过webpack插件html-webpack-plugin添加的

authors: LIANGWEIBIAO Plortinus

repo: Plortinus/vue-multiple-pages


text:
add basic Chat Images module

Embeds images in the chat. Closable!
TODO:

[ ] Proxy.
[ ] support non-(png|jpe?g|gif) links from some major websites
[ ] Remove offscreen images (Optional, might help with large gifs?)
[ ] Scroll properly

Random Thoughts™: Can probably call plug.dj's autoscroll. Don't want to abuse plug.dj's own chat images impl, because it is sub-only, and it's not nice to use sub-only code for non-sub features.

repo: PlugLynn/ExtPlug


text:
slatelineup for firefox android home recommendations

Goal
create a slatelineup for firefox android home recommendations.
PRD:

https://docs.google.com/document/d/1-P-Q15nHMGy_TQuwFh3YW07-dINXB5_rDMocwTuFl5s/edit#heading=h.jyahmgu05z6p (direct link to slates requested for this lineup)

@mmiermans i don't think i changed anything that would cause this test to fail? do you have any quick insight here?

repo: Pocket/recommendation-api


text:
2016 year naming consistency

The 2016 datataking period is identified in the framework by two different year labels: 2016preVFP and 2016postVFP.
We must be consistent with this naming in all the parameters:  we need to choose between 2016preVFP and 2016_PreVFP

https://github.com/PocketCoffea/PocketCoffea/blob/34bb797feb07bf5718622371d5228a56a9da4da4/PocketCoffea/parameters/pileup.py#L2
https://github.com/PocketCoffea/PocketCoffea/blob/34bb797feb07bf5718622371d5228a56a9da4da4/PocketCoffea/parameters/jec.py#L2
https://github.com/PocketCoffea/PocketCoffea/blob/34bb797feb07bf5718622371d5228a56a9da4da4/PocketCoffea/parameters/lepton_scale_factors.py#L10

The scheme 2016_PreVFP and 2016_PostVFP has been chosen as default.

authors: mmarchegiani valsdav

repo: PocketCoffea/PocketCoffea


text:
Revert "[Feature] added keep pokemon for batch evolution"

Reverts PokemonGoF/PokemonGo-Bot#2255
Caused bug, added excessive logs and complicated code in an already complicated functions. Needs to be broken down into many smaller methods.

Can you say what bug it caused?

For my part, your PR made my bot release all my T2-T3 pokemon without even changing anything in my conf.
RIP my charizards, dragonites ....

@MFizz ppl had lots of pokemon released that shouldn't.

I'm sorry you lost your pokemon, I specifically asked to help me test before releasing such a crucial PR. Guess that didn't happen.

@MFizz any chance of revisiting this?

repo: PokemonGoF/PokemonGo-Bot


text:
Trying to get heartbeat out of BLE Heartbeat monitor with React Native

Hi friends,
Hope you can help me, I'm a bit stuck right now ...
Trying to make a React Native IOS app, but can't seem to get the Bluetooth component to work.
Here is my code:
manager.startDeviceScan(null,` null, (error, device) => {
      if (error) {
        console.log(error.message);
        return;
      }
      if (device.name === "TICKR FIT FB91") {
        console.log("Connecting to:", device.name);
        manager.stopDeviceScan();
        device.connect().then(() => {
          device.monitorCharacteristicForService(
            "180D",
            "2A37",
            (error, characteristic) => {
              if (error) {
                console.log(error.message);
                return;
              }
              console.log("notified");
              console.log(characteristic.uuid);
              console.log(characteristic.value.toString());
            }
          );
        });
      }
    });

UUID of the Heartbeat Service is 180D and the heart beat measurements are 2A37. Gettin' errors about a "Possible Unhandled Promise Rejection" and the message that "2A37" isn't a Characteristic.
Can someone please help me to get the heartbeat measurement characteristic out of the Bluetooth wristband with the use of React Native BLE PLX.
Greetz,
Fre

Hello friend,
I feel like you're missing some steps, like discoverAllServicesAndCharacteristics which is actually required even if you know your characterestic and service IDs - the library needs to know, lets say:
Discovery of services and characteristics is required to be executed once per connection*. It can be a long process depending on number of characteristics and services available.
Take a look at https://polidea.github.io/react-native-ble-plx/ again and maybe try to run the https://github.com/PolideaPlayground/SensorTag sample project.
Good luck!

Hi Hugo,
Thanks a lot! As you suggested, that was indeed the issue. My code works now. I'll post the code for other people who might run in to the same issue as me.

manager.startDeviceScan(null, null, (error, device) => {
      if (error) {
        console.log(error.message);
        return;
      }
      if (device.name === "TICKR FIT FB91") {
        console.log("Connecting to:", device.name);
        manager.stopDeviceScan();
        device.connect()
          .then(() => {
            return device.discoverAllServicesAndCharacteristics();
          })
          .then(() => {
            device.characteristicsForService("180D").then((characteristics) => {
              return characteristics;
            });
            return device.monitorCharacteristicForService();
          })
          .then(() => {
            device.monitorCharacteristicForService(
              "180D",
              "2A37",
              (error, characteristic) => {
                if (error) {
                  console.log(error.message);
                  return;
                }
                const buffer = Buffer(characteristic.value, "base64");
                value = buffer[1];
                return value;
              }
            );
          });
      }
    });

repo: Polidea/react-native-ble-plx


text:
[Nomination] : Add Fazeel Usmani to Rookie list

Technical expertise
I know Rust, Polkadot Substrate, IPFS, Python, Java, Javascript, React, Kubernetes, GCP and much more.
https://github.com/FazeelUsmani/Dropbox-Clone-using-Substrate-v1,
https://github.com/FazeelUsmani/Substrate-Kitties,
https://github.com/FazeelUsmani/rust-by-practice,
https://github.com/FazeelUsmani/Hyperledger-Fabric-2.x,
https://github.com/FazeelUsmani/dotsamaworld,
https://github.com/FazeelUsmani/spheron,
https://github.com/FazeelUsmani/Polkadot,
https://github.com/FazeelUsmani/quadratic-voting-parachain,
Community involvement
I've not been actively involved in the community but I loved to contribute. Can you share any references to contribute?
Content creation
https://github.com/FazeelUsmani/Amazon-SDE-Preparation - This repository involved all the problems which I solved during my interview preparation helping around 1,000 computer enthusiasts. These problems involves documentation which speaks about how to develop an intuition when you see a problem, find a solution and look for different ways to optimize it.
https://github.com/FazeelUsmani/Scaler-Academy - Even this repository is stargazed by many people and some of them ask me in an email regarding how you've done all these problems or when they're stuck at somewhere and usually ask for guidance.
Here are some excerpts of our chats:

Leadership experience
I'm a pro at hosting meetups. Google Maps team named me a meetup master. Here is my local guides profile, you can check my meetup posts
https://www.localguidesconnect.com/t5/General-Discussion/Fazeel-Usmani-loves-to-host-meetups-at-various-parts-of-the/td-p/1652667
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Nagarjuna-Sagar-Dam-Photo-Walk/td-p/1651799
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Mumbai-Food-Crawl/td-p/1626602
`
https://www.localguidesconnect.com/t5/user/viewprofilepage/user-id/34190
https://www.localguidesconnect.com/t5/General-Discussion/The-most-interesting-thing-I-ve-done-as-a-Local-Guide-Hosting/td-p/2355323
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Clean-The-World-Hyderabad/td-p/2309515
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Republic-Day-Celebration-2020/td-p/2176277
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Istanbul-Food-Crawl/td-p/2123760
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Bogatha-Waterfall-Photo-Walk/td-p/2090006
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Indi-Grill-Food-Crawl/td-p/2195481
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Republic-Day-Celebration-2020/td-p/2176277
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Bogatha-Waterfall-Photo-Walk/td-p/2090006
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Aurangabad-Photo-Walk/td-p/2026113
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Bangalore-Geo-Walk/td-p/1896786
https://www.localguidesconnect.com/t5/General-Discussion/Recap-Sudha-Car-Museum-Photo-Walk/td-p/1590133
Mentorship experience
Yes
Mentorship details
I've been mentoring at Scaler Academy which teaches Data Structures & Algorithms, Low level design, High level design of systems, databases, networks, operating systems and core computer concepts to become a skilled software engineer.

It appears you may want to change the title of the issue to something like so "Nomination] : Fazeel Usmani"

Hi @FazeelUsmani,
Did you intend to open a self-nomination request for Hero status or are you attempting to add yourself to the list of Rookies?
According tot he title, it appears you are doing the latter, which is great, as you have not done that yet.
Can you please follow these instructions: https://github.com/Polkadot-Heroes/Members/tree/main/Rookies#contributing.
After you have added yourself to the Rookies list, and you feel you are ready to self-nominate for Hero status, please come back to this and re-open this Issue revising the title to [Nomination]: Fazeel Usmani.
You can read the criteria for review for Hero status also in this repository at https://github.com/Polkadot-Heroes/Members/blob/main/Heroes_Review_Criteria.md.
Ben

authors: FazeelUsmani cenwadike hummusonrails

repo: Polkadot-Heroes/Members


text:
CSS @import rule URLs in imported HTML files are incorrect

I'm importing an HTML file in my main document which defines a custom element called "main-page". Polymer-Bundler is renaming a url in a @import statement incorrectly from url("shared-styles/shared-styles.css") to url("main-page/shared-styles/shared-styles.css").
The reason this is incorrect is because this operates on the URL and not the file system itself. Because the element appears in the main document ("my-domain.com/folder/index.html") and not the imported document ("my-domain.com/folder/main-page/main-page.html"), the url is relative to the index document in the un-bundled version and therefore should still be url("shared-styles/shared-styles.css").

Just want to be visually explicit about what your setup is, to make sure I've got it right.
<!-- my-domain.com/folder/index.html -->
<link rel="import" href="main-page/main-page.html">
<main-page></main-page>

<!-- my-domain.com/folder/main-page/main-page.html -->
<dom-module id="main-page">
  <template>
    <style>
      @import url("shared-styles/shared-styles.css");
    </style>
  </template>
</dom-module>

The way I read the html imports polyfill source, the @import url() is adjusted on import.  For this reason, you should adjust the @import statement in your main-page.html accordingly:
<!-- my-domain.com/folder/main-page/main-page.html -->
<dom-module id="main-page">
  <template>
    <style>
      @import url("../shared-styles/shared-styles.css");
    </style>
  </template>
</dom-module>

Does this make sense?

Yeah, that's what I did to combat the issue. Now I just can't serve the unbundled version but that's no big deal.

side note: styles in @import aren't properly scoped by the polyfill, so "the polymer way" is to use <style includes="name-of-shared-style-dom-module"> -- Please see https://www.polymer-project.org/1.0/docs/devguide/styling#style-modules

authors: emanguy usergenic

repo: Polymer/polymer-bundler


text:
element docs should link to github in the left-nav

Below "docs" and "demo" and above "add to collection"

We've had 3 of these issues! All fixed a while ago.

authors: ebidel tjsavage

repo: Polymer/polymer-element-catalog


text:
Simplify condition checking in stylesFromModule function

This PR rearranges code and combines similar conditions into one.

Thanks @TimvdLippe for your quick review.

repo: Polymer/polymer


text:
[polymer-editor-service] It would be nice if ../ always meant "look at the bower directory"

Migrated from https://github.com/Polymer/atom-plugin/issues/3
On September 29th, 2016, @notwaldorf said:

Context: if you have an enormous folder with a billion elements in it because you work on Polymer Elements and that's how you cope, auto-complete looks at the sibling directories rather than the bower deps, which may be woefully out of date.
Originally posted at Sun, 16 Oct 2016 08:13:26 GMT at https://github.com/Polymer/polymer-editor-service/issues/2

On October 4th, 2016, @TimvdLippe said:

I just downloaded and followed the instructions in the README and for me the linter was not recognizing these ../ paths. Since bower install creates bowercomponents/, in a usage project the imports are expected to be bower_components/paper-spinner/paper-spinner.html instead of ../paper-spinner/paper-spinner.html. Now this is an example project, so in general I think it is fine. Just my 2 cents of my initial impression of relative url imports.
Originally posted at Sun, 16 Oct 2016 08:14:29 GMT at https://github.com/Polymer/polymer-editor-service/issues/2#issuecomment-254033750

Yeah, this would make the editors easier to use and less fragile, as you wouldn't have to make your workspace root exactly right.
We could keep the current behavior for the analyzer by adding a new URL resolver that searches for a bower_components directory when resolving a ../ URL anywhere.
What do you think @justinfagnani ?
Originally posted at Wed, 19 Oct 2016 14:05:04 GMT at https://github.com/Polymer/polymer-editor-service/issues/2#issuecomment-254822594

@rictic I need to understand what's going on here. The PackageUrlResolver should already be doing this.
Originally posted at Wed, 19 Oct 2016 20:19:59 GMT at https://github.com/Polymer/polymer-editor-service/issues/2#issuecomment-254928722

PackageUrlResolver only does that rewriting when the path is reaching out of the basedir. This is a proposal for doing it opportunistically, whenever it looks like it would help.
Originally posted at Thu, 20 Oct 2016 00:19:41 GMT at https://github.com/Polymer/polymer-editor-service/issues/2#issuecomment-254977099

authors: justinfagnani rictic

repo: Polymer/tools


text:
Remove quotes from encrypt commands

@azakus PTAL

LGTM

authors: azakus robdodson


text:
Handle null Instruction.tradeDate

Description
Handle null Instruction.tradeDate and valueDate
Breaking Changes

JIRA Link

Checklist

[ ] Updated the Readme.md (if required) ?

/fast-forward

repo: PolymeshAssociation/polymesh-sdk


text:
Export releases for iOS

The newest release should also be exported for iOS.

v0.0329 has been exported for iOS, but I'll wait for confirmation that someone can actually run it.

I'll close this issue for now. If the iOS build is flawed, we can open a bug.

repo: Poobslag/turbofat


text:
Minor: Bug fixes and filter recombinant lineages from the time-scaled tree

Remove recombinants from the time-scaled tree #405
Filter recombinant lineages #413
Bug fixes #421, #424, #428

Search by country seems to be broken again:
d3.js:1497 Uncaught (in promise) TypeError: Cannot read properties of null (reading '__data__')
    at Selection.selection_datum [as datum] (d3.js:1497:20)
    at draw_cluster_box (drawtree.js:51:16)
    at select_cluster (search.js:322:3)
    at main_search (search.js:182:17)
    at async wrap_search (search.js:110:5)
    at async HTMLInputElement.<anonymous> (covizu.js:351:7)

Search is not picking up hits from recombinant clusters:

Moving the slider resets the selected cluster to be first "Non Recombinant" cluster in the tree. Need to change this to select search hits from the closest cluster

Checking the following:

[ ] Search

[ ] Search by accession
[ ] Search by lineage
[ ] Search by country
[ ] Search by country (with date filter)

[ ] Tree filtering
[ ] Download Timetree (nwk)
[ ] Download Timetree (csv)
[ ] Download Beadplot (svg)
[ ] Download Beadplot (nwk)
[ ] Beadplot cutoff slider
[ ] Expanding Beadplot
[ ] Translated pages
[ ] Changing the colour of the tree based on divergence, collection date, etc.
[ ] Left/Right arrow key to move between beads
[ ] Tooltips

During a search, multiple time scales are being drawn:

repo: PoonLab/covizu


text:
Launch Plan: Mobile Replay

Mobile replay is pretty far along. It's worth throwing some light on it with a launch, IMO. However, since it's far along I don't think we need a Before/During/After launch plan - just a couple of initiatives to put a spotlight on it and help it flourish.
CC @marandaneto @pauldambra @ioannisj  @andyvan-ph @charlescook-ph
Best practices

Ensure the product has at least one customer story within 3 weeks of launch
Ensure we publish best practice content for the product and link to it from docs
Ensure that products have at least one pre-made template (or similar) for users
Ensure the product has at least one tutorial at launch
Ensure the product has a robust docs page, and product page if needed
Ensure the product is added to email and in-app onboarding flows

Launch plan

[x] Publish a mobile case study - @joethreepwood
[ ] Update session replay page to spotlight mobile functionality - @joethreepwood
[x] Blog post - @ivanagas
[ ] Changelog post announcing that mobile replay is now officially out of beta for both Android and iOS
[ ] Take the beta tags off - @joethreepwood
[ ] Potential newsletter about building our first Mobile product? - @andyvan-ph (could do well on HN?)
[x] Add mobile replay details (and links to mobile dashboard) to onboarding email flow - @joethreepwood
[x] Update G2 categories to include mobile replay categories - @joethreepwood
[ ] Add mobile replay link to footer - @joethreepwood
[ ] Email to all recently engaged users announcing that mobile replay is now available - @joethreepwood
[ ] Paid ads - @andyvan-ph / Hey Digital

Feedback and other ideas
All feedback and additional ideas from @marketing is appreciated.

We already wrote this blog FYI: https://posthog.com/blog/mobile-session-replay

What's the timeline to charging specifically for mobile replay? I figure that would be the point we'd want to do a bigger launch.

That'd be a @annikaschmid and @marandaneto question.
The big hit of this plan would be the email, and agree we should time it to coincide with this. Unless we decide to bill with normal replays.

That'd be a @annikaschmid and @marandaneto question.
The big hit of this plan would be the email, and agree we should time it to coincide with this. Unless we decide to bill with normal replays.

@pauldambra was gonna pair up with the growth team to figure out the final details about pricing, RFC, since we had an offsite, not sure if that happened.

@pauldambra @marandaneto Looping back on this: Are we basically good to set about announcing this now, or is pricing still being decided?

authors: andyvan-ph ivanagas joethreepwood marandaneto

repo: PostHog/meta


text:
Make production ready

Adjusts GCLID matching rules
Formats timestamp for Google
Reads actionIdToName from config
Removes unused config

The data correctness check (sheet) went great. In summary:

@kpthatsme I think we can anticipate the API response from PostHog to have a valid format no matter what, making any check here just extra cautious. My original concern was that in local testing I had seen dates ending with Z and others with +00:00. Both are valid ISO formats, but it made me think there is a certain degree of uncertainty here that I want to mitigate.
Checking if date === 'Invalid Date' will prevent an error from being thrown when later calling toISOString(), as new Date('') and new Date('foobar') do not immediately throw errors, but will throw an error if toISOString() is called on them.


text:
Bulk Create Exchange Mailboxes for AD users and configure settings

I was trying to update an old line in our PowerShell script to create an exchange mailbox for users with no mailbox
Here's what I have so far:
The goal is to:

Create Mailbox for all ADusers with No mailbox in a specific OU
Add A CustomAttribute in Attribute9
Disable IMAP and POP

Get-User -OrganizationalUnit Our UserOU -RecipentTypeDetails User | Enable-Mailbox -database “Your Database” | Set-Mailbox -CustomAttribute9 OurAttribute | Set-CASMailbox –PopEnabled $False –IMAPEnabled $False
Any help you provide would be extremely appreciated.

I like the idea.
What is the business use of this? What business problem would be being solved.  I'd like to ensure this bog focuses on applying PowerShell rather than using it just because we can. :-).
What are you envisioning using for Attribute9. and where do you get the value for this object attribute?

repo: PowerShell/Community-Blog


text:
Operator usage style guideline

In SharePointDsc we have a discussion on how to use comparison operators in the most readable way. Unfortunately the current coding style guidelines do not say anything about this.
Which is better, option 1:
if (($urlAam.PublicUrl -eq $aamForUrl.PublicUrl) `
    -and ($urlAam.Zone -eq $aamForUrl.Zone))
{}

Better readability on the used operator.
or option 2:
if (($urlAam.PublicUrl -eq $aamForUrl.PublicUrl) -and `
    ($urlAam.Zone -eq $aamForUrl.Zone))
{}

Better readability on the used conditions, because they are aligned at the beginning of the line. Especially when these contain multiple, longer conditions. I personally prefer this option.
I think we should decide on a method and document that in the DSC style guideline.

I find both options valid.
With option 1 I like the fact that I can see more quickly which operands apply to the following condition.
With option 2 it's easier to see what's the condition.
I would go for option 1 as knowing operand and condition seems more adequate.

What is your opinion on this issue @PlagueHO, @gaelcolas and @kwirkykat

I'm fine with both, but I actually personally prefer Option 2 because it keeps the operator on the left which is good for longer expressions. But I'm happy enough with either.

authors: PlagueHO andikrueger ykuijs

repo: PowerShell/DscResources


text:
Invoke-ScriptAnalyzer should have parameter to save the output of analysis to a file

Saving the output to a file can enable scenarios of comparing two runs as the file can be used as a baseline.

I would find this also useful if the file format was in e.g. an nunit/xunit tesfile format that could be uploaded as an CI artifact to fail CI when violating of rules. At the moment one has to wrap PSSA calls (foreach rule in foreach file) in Pester to get PSSA into CI.

This helps.  https://github.com/MathieuBuisson/PowerShell-DevOps/blob/master/Export-NUnitXml/Export-NUnitXml.psm1 , but I agree this should be native functionality.

Going to track this request with issue #1296

authors: SydneyhSmith adityapatwardhan bergmeister getSurreal

repo: PowerShell/PSScriptAnalyzer


text:
Use latest .NET 6.0 SDK patch version and update devcontainer to use .NET 6 as well

PR Summary
Also update devcontainer to move settings to new places as they moved and make PowerShell the default shell and use normal PowerShell extension as the preview is not that far ahead and always gives a popup to use normal extension unless using insiders.
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .cs, .ps1 and .psm1 files have the correct copyright header
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed and/or updated documentation
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready.

The thing that I don't understand is why we are always using the oldest supported SDK? Every time I touch this project I have to install some ancient SDK ...

authors: Jaykul bergmeister


text:
Import-Module : The type initializer for '' threw an exception.

Steps to reproduce
Import-Module -Name DellBIOSProvider -Verbose

Expected behavior
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\DellBIOSProvider\DellBIOSProvider.psd1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\DellBIOSProvider\DellBIOSProvider.psm1'.
VERBOSE: Exporting function 'Set-Dell1stBootdevice'.
VERBOSE: Exporting function 'Get-DellBiosSettings'.
VERBOSE: Exporting function 'Clear-DellAdminPassword'.
VERBOSE: Exporting function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Exporting function 'Get-DellBIOSPasswordPath'.
VERBOSE: Exporting function 'Write-DellBIOSPassword'.
VERBOSE: Exporting function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Clear-DellAdminPassword'.
VERBOSE: Importing function 'Get-DellBIOSPasswordPath'.
VERBOSE: Importing function 'Get-DellBiosSettings'.
VERBOSE: Importing function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Set-Dell1stBootdevice'.
VERBOSE: Importing function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Importing function 'Write-DellBIOSPassword'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\DellBIOSProvider\DellBIOSProvider.dll'.
VERBOSE: Starting PS provider DellSmbiosProv
VERBOSE: .NET Version: 4.0.30319.42000
VERBOSE: Performing InitializeDefaultDrives operation on the 'DellSmbiosProv'provider.
VERBOSE: Performing operation New-PSDrive for the provider DellSmbiosProv.
VERBOSE: Category 'BIOSSetupAdvancedMode' does not contain any supported attributes.
VERBOSE: Category 'AdvancedConfigurations' does not contain any supported attributes.
VERBOSE: Category 'SupportAssistSystemResolution' does not contain any supported attributes.
VERBOSE: Category 'ThermalConfiguration' does not contain any supported attributes.
VERBOSE: To get more help about the Dell Command PowerShell provider, type Get-Help DellBIOSProvider.
VERBOSE: Exporting function 'Clear-DellAdminPassword'.
VERBOSE: Exporting function 'Get-DellBIOSPasswordPath'.
VERBOSE: Exporting function 'Get-DellBiosSettings'.
VERBOSE: Exporting function 'Read-DellBIOSPassword'.
VERBOSE: Exporting function 'Set-Dell1stBootdevice'.
VERBOSE: Exporting function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Exporting function 'Write-DellBIOSPassword'.
VERBOSE: Importing function 'Clear-DellAdminPassword'.
VERBOSE: Importing function 'Get-DellBIOSPasswordPath'.
VERBOSE: Importing function 'Get-DellBiosSettings'.
VERBOSE: Importing function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Set-Dell1stBootdevice'.
VERBOSE: Importing function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Importing function 'Write-DellBIOSPassword'.```

Actual behavior
Error loading PSDrive:
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\DellBIOSProvider\DellBIOSProvider.psd1'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\DellBIOSProvider\DellBIOSProvider.psm1'.
VERBOSE: Exporting function 'Set-Dell1stBootdevice'.
VERBOSE: Exporting function 'Get-DellBiosSettings'.
VERBOSE: Exporting function 'Clear-DellAdminPassword'.
VERBOSE: Exporting function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Exporting function 'Get-DellBIOSPasswordPath'.
VERBOSE: Exporting function 'Write-DellBIOSPassword'.
VERBOSE: Exporting function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Clear-DellAdminPassword'.
VERBOSE: Importing function 'Get-DellBIOSPasswordPath'.
VERBOSE: Importing function 'Get-DellBiosSettings'.
VERBOSE: Importing function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Set-Dell1stBootdevice'.
VERBOSE: Importing function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Importing function 'Write-DellBIOSPassword'.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\DellBIOSProvider\DellBIOSProvider.dll'.
VERBOSE: Starting PS provider DellSmbiosProv
VERBOSE: .NET Version: 4.0.30319.42000
VERBOSE: Performing InitializeDefaultDrives operation on the 'DellSmbiosProv'provider.
Import-Module : The type initializer for '<Module>' threw an exception.
At line:1 char:1
+ Import-Module -Name DellBIOSProvider -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (:) [Import-Module], TypeInitializationException
+ FullyQualifiedErrorId : NewDriveProviderException,Microsoft.PowerShell.Commands.ImportModuleCommand

VERBOSE: Exporting function 'Clear-DellAdminPassword'.
VERBOSE: Exporting function 'Get-DellBIOSPasswordPath'.
VERBOSE: Exporting function 'Get-DellBiosSettings'.
VERBOSE: Exporting function 'Read-DellBIOSPassword'.
VERBOSE: Exporting function 'Set-Dell1stBootdevice'.
VERBOSE: Exporting function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Exporting function 'Write-DellBIOSPassword'.
VERBOSE: Importing function 'Clear-DellAdminPassword'.
VERBOSE: Importing function 'Get-DellBIOSPasswordPath'.
VERBOSE: Importing function 'Get-DellBiosSettings'.
VERBOSE: Importing function 'Read-DellBIOSPassword'.
VERBOSE: Importing function 'Set-Dell1stBootdevice'.
VERBOSE: Importing function 'Set-DellAutoOnForSelectDays'.
VERBOSE: Importing function 'Write-DellBIOSPassword'.

# Environment data
Powershell Core 6.2.1
Windows 10 1803, 1809 and 1903 Enterprise
Dell BIOS Provider 2.2

PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.2.1
PSEdition                      Core
GitCommitId                    6.2.1
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

The error message you're getting indicates that this is a module written in Managed C++, which is incompatible with PowerShell 6.2.1.
You can try it with PowerShell 7-preview.1 and see if it works in that; .NET Core 3.0 has added some support that enables loading of some Managed C++ modules.

You are right. It works in PS 7 preview 1. Thanks rjmholt!

authors: pfurches rjmholt

repo: PowerShell/PowerShell


text:
Error result when passing second argument to a cmd script

To reproduce this case, first, write a cmd script called echotest.cmd with the following code:
echo %1 %2 %3

Second, open PowerShell at its place, then call the script with three arguments:
.\echotest.cmd a b c

Finally, it will get a result: a %2 c. However, what I expected is a b c as the result.

Environment:
OS: Windows 10 x64, version 10.0.19042
Powershell version: 7.0.3, also tested with 5.1.19041.610
Code page: 65001(Unicode), by default I first tested this under 936(GBK) but get an error encoding text with %2.

I cannot seem to replicate this with v5.1 and v7.1, they both output the arguments passed into the script. Do the same thing happen when you run cmd.exe /c echotest.cmd a b c?
Could you also try the following?
In Windows PowerShell run this to generate an executable that prints out the raw argv passed to a process. Note this only works in Windows PowerShell so you need to generate the .exe there first.
$exePath = Join-Path -Path $pwd.Path -ChildPath 'PrintArgv.exe'

$addParams = @{
    TypeDefinition = @'
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;

namespace PrintArgv
{
class Program
{
    [DllImport("Kernel32.dll")]
    public static extern IntPtr GetCommandLineW();

    static void Main(string[] args)
    {
        IntPtr cmdLinePtr = GetCommandLineW();
        string cmdLine = Marshal.PtrToStringUni(cmdLinePtr);

        Console.WriteLine(cmdLine);

        for (int i = 0; i < args.Length; i++)
            Console.WriteLine(String.Format("[{0}] {1}", i + 1, args[i]));
    }
}
}
'@
    OutputType = 'ConsoleApplication'
    OutputAssembly = $exePath
}
Add-Type @addParams

Then in both Windows PowerShell and PowerShell run the following (you need to be in the same dir as when you ran the script above)
.\PrintArgv.exe a b c

In my case I get the output which indicates the arguments are correctly being passed through:
"C:\temp\PrintArgv.exe" a b c
[1] a
[2] b
[3] c

@jborean93 Thanks. I tried it inside two virtual machines, one is Windows 10 en-us, another is Windows 10 zh-cn, both of them can get correct result with the command line. Now I almost confirmed it was my system trouble, maybe I need to reinstall it later.