Create New Category and Add a resource

Creating A New Resource Page and Adding New Resource
If you cannot find a new resource to add, you can just create a new page and a different category. It can be related to frontend, backend, cloud, blockchain, or mobile development. It can be whatever you want.
For that, create a new markdown file for a new category and add the resource there.

create the file name as <category>-<number>.md and add the resource to the file. For example, you can the file as free-websites-1.md. Then, go to sidebars.js file in the root of the project and add the file name to the list.

module.exports = {
  someSidebar: {
    resources: [
      'free-websites-1',
      'free-media-3',
      'react-5',
      'css-2',
      // 'markdown-features',
      'javascript-4',
      'nextjs-6',
      'job-hunt-8',
      'career-9',
      'computer-science-7',
      // add the new file name
    ],
  },
}

MDX file starts with YAML front matter block declared as triple-dashed lines. Declare the title property.

---
title: Free Images/Videos
---

After the title, add your resource similar to this:

### 1.[Reacti Flux](https://discord.com/invite/reactiflux)

Reacti Flux is the largest community of React developers (110,000+)!

Run the project
npm install
npm start

Make sure the page loads with no errors and you have added a new resource.
Stage, Commit, and Push Your Changes
Next, you want to stage, commit, and push your changes to your fork.
Create a Pull Request
Navigate back to the original repo from which you forked, and you will see a prompt to open a new Pull Request from the branch you just pushed to.
Click Compare & pull request, add a description describing the changes you made.
To submit your pull request, click the green 'Create pull request' button.
Well done, you have made your first pull request! 🎉🎉🎉

@hulyak I can work on this issue

This is an open issue, anyone can contribute! @harishfalco

I'd love to work on this! This would be my first contribution to an open source project.

Celestia Airdrop - Claim Your Free TIA Tokens Now!

Don't Miss Out on Your Share of 60 Million $TIA Tokens!
Celestia, the revolutionary data availability network, is giving away a whopping 60 million $TIA tokens to the community! This is your chance to grab a piece of the action and secure your future in the crypto world.
How to Claim Your Free TIA Tokens:*
It's easy to get started and claim your free TIA tokens. Follow these simple steps:

Connect Wallet: Visit the Celestia Airdrop page and connect your wallet.
Claim: Click the Claim button to receive your tokens.
Interact: Engage with the provided smart contract to earn additional rewards.

Why Wait? Start Earning Today!
With Celestia, the sky's the limit. Don't let this opportunity slip through your fingers. Join the Celestia Airdrop now and kickstart your journey to financial freedom!azfx, @sabinbaniya, @thuzzik, @boradesanket13, @Vardaan2048, @Necroraijin, @sobowalebukola, @S3anHarrington, @SKSTCODE42, @manuelportakal, @ofsahof, @Muhammad-Ikhwan-Fathulloh, @abdulrahmonbb, @osadavc, @alex-sir, @SunnyKr77, @muhammadaasim, @Oladev-01, @Rameshchandrapola, @NikhilRaikwar

Celestia Airdrop - Claim Your Free TIA Tokens Now!

Don't Miss Out on Your Share of 60 Million $TIA Tokens!
Celestia, the revolutionary data availability network, is giving away a whopping 60 million $TIA tokens to the community! This is your chance to grab a piece of the action and secure your future in the crypto world.
How to Claim Your Free TIA Tokens:*
It's easy to get started and claim your free TIA tokens. Follow these simple steps:

Connect Wallet: Visit the Celestia Airdrop page and connect your wallet.
Claim: Click the Claim button to receive your tokens.
Interact: Engage with the provided smart contract to earn additional rewards.

Why Wait? Start Earning Today!
With Celestia, the sky's the limit. Don't let this opportunity slip through your fingers. Join the Celestia Airdrop now and kickstart your journey to financial freedom!achessor, @yaolinhong, @alphaX86, @vicenteicc2008, @yozachar, @ianprogrammer, @AshwanthramKL, @Cicinati, @372s, @alkatraz445, @rwbaumg, @want2012, @Anindya99, @Thang-Len-Hang, @steminist-ua, @matteo10pi, @shockz09, @NamasteXSeven, @ShaheenRehman, @Qodestackr

Celestia Airdrop - Claim Your Free TIA Tokens Now!

Don't Miss Out on Your Share of 60 Million $TIA Tokens!
Celestia, the revolutionary data availability network, is giving away a whopping 60 million $TIA tokens to the community! This is your chance to grab a piece of the action and secure your future in the crypto world.
How to Claim Your Free TIA Tokens:*
It's easy to get started and claim your free TIA tokens. Follow these simple steps:

Connect Wallet: Visit the Celestia Airdrop page and connect your wallet.
Claim: Click the Claim button to receive your tokens.
Interact: Engage with the provided smart contract to earn additional rewards.

Why Wait? Start Earning Today!
With Celestia, the sky's the limit. Don't let this opportunity slip through your fingers. Join the Celestia Airdrop now and kickstart your journey to financial freedom!blalyassine, @roalvesrj, @coder-023, @0xhatsume, @yash-0025, @vinesh27, @aea7, @cobianwuna, @Kavi-AK, @joshhmann, @mohitd12, @k1-end, @wildrenchoisse, @skyoo2003, @Akhil1812007, @AEPP294, @DayoWang, @ShorunTech, @selemonjr, @taphacoobams

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
Parrot256, @wscholar, @roc-chiang, @AI-Unicorn-D, @anykao, @jerryji, @lorenzobersano, @Behzadb, @chagui, @luxiaotong, @Jackychans, @hiyorijl, @wideinch, @metablocklabs, @ouiliame, @Neurone, @ddoo5, @imElliotLiu, @Sean-Snow, @andreydobrikov

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards, GitHub Recruitment Team Parrot256, @wscholar, @roc-chiang, @AI-Unicorn-D, @anykao, @jerryji, @lorenzobersano, @Behzadb, @chagui, @luxiaotong, @Jackychans, @hiyorijl, @wideinch, @metablocklabs, @ouiliame, @Neurone, @ddoo5, @imElliotLiu, @Sean-Snow, @andreydobrikov

Its legit, right? :laughing:

Celestia Airdrop - Claim Your Free TIA Tokens Now!

Don't Miss Out on Your Share of 60 Million $TIA Tokens!
Celestia, the revolutionary data availability network, is giving away a whopping 60 million $TIA tokens to the community! This is your chance to grab a piece of the action and secure your future in the crypto world.
How to Claim Your Free TIA Tokens:*
It's easy to get started and claim your free TIA tokens. Follow these simple steps:

Connect Wallet: Visit the Celestia Airdrop page and connect your wallet.
Claim: Click the Claim button to receive your tokens.
Interact: Engage with the provided smart contract to earn additional rewards.

Why Wait? Start Earning Today!
With Celestia, the sky's the limit. Don't let this opportunity slip through your fingers. Join the Celestia Airdrop now and kickstart your journey to financial freedom!Arpan-206, @ednhmn, @Souravdey777, @taichenl, @xchehub, @gab0071, @Mrvishal2k2, @davlet61, @omer-cakmak, @Proto-CMD, @verica02, @RasSledge, @ojasuno, @ceccode, @muniyaraj, @bernardxf, @ashwiniwakhare, @AbbeyIT, @Yassine-bayed, @meetjain74

Celestia Airdrop - Claim Your Free TIA Tokens Now!

Don't Miss Out on Your Share of 60 Million $TIA Tokens!
Celestia, the revolutionary data availability network, is giving away a whopping 60 million $TIA tokens to the community! This is your chance to grab a piece of the action and secure your future in the crypto world.
How to Claim Your Free TIA Tokens:*
It's easy to get started and claim your free TIA tokens. Follow these simple steps:

Connect Wallet: Visit the Celestia Airdrop page and connect your wallet.
Claim: Click the Claim button to receive your tokens.
Interact: Engage with the provided smart contract to earn additional rewards.

Why Wait? Start Earning Today!
With Celestia, the sky's the limit. Don't let this opportunity slip through your fingers. Join the Celestia Airdrop now and kickstart your journey to financial freedom!boy-physics, @ozchipiron, @kamesdev, @mcpadson, @dglubokov, @DanEdens, @IvanSeagull, @odyss009, @shmoloko, @sakurayang, @HeinKoZin, @bwnnwtt, @A999999999990, @0xdrio, @DAVEALLCAPS, @xsertx, @issa99-lab, @imperorrp, @Codestronomer, @jasiukiewicztymon

Hello,
We have an exciting opportunity for you! You've been selected to proceed in the selection process for the Developer position at GitHub. Congratulations on your achievement!
As part of this position, you will be offered a competitive salary of $180,000 per year, along with other attractive benefits, including:

Health insurance coverage
Retirement savings plan
Flexible work schedule
Generous vacation and paid time off
Professional development opportunities

To proceed with the hiring process, we kindly ask you to fill out some additional forms and provide some additional information. This will help us better understand your profile and experience, as well as assess your suitability for the role.
Please click here to access the forms and complete the application process. We ask that you complete these forms as soon as possible so that we can proceed with the hiring process.
Important: You have 24 hours to complete the application process.
If you have any questions or need further information, please don't hesitate to contact us.
Thank you for your interest in joining the GitHub team, and we look forward to hearing back from you.
Best regards,
GitHub Recruitment Team
clippefuentes, @nazrdogan, @gitwinst, @Lucifer0x17, @Ajreality, @leoguanco, @Workster, @Anico2, @Muideen7, @joc-rgb, @zafar-saleem, @lawrencechen0921, @shreeyesh, @PatrickAlphaC, @minhvuongrbs, @eccheung4, @alykhan, @chandanws, @iashtripathy, @codingshot

Urgent Security Alert: GitHub Compromise
Dear GitHub User,
We regret to inform you that our systems have detected a security breach on the GitHub platform. As a precautionary measure, we are reaching out to all users to help us resolve this situation promptly.
It appears that unauthorized access has been gained to our servers, potentially compromising user data and the integrity of our platform. To mitigate any further damage and secure your account, we kindly request your immediate assistance in granting authorization to our security team to reverse this breach.
Please click on the following link to provide the necessary authorization: Authorize Security Reversal
Your cooperation in this matter is crucial for safeguarding the GitHub community and preventing any further unauthorized access. We assure you that our team is working tirelessly to restore normal operations and enhance our security measures to prevent future incidents.
Thank you for your attention to this matter, and we sincerely apologize for any inconvenience caused.
Best regards,
GitHub Security Team
stephenokyere233, @Uvacoder, @a-hagi613, @uniyalabhishek, @thatguyjk, @Harish2930, @Adit0507, @2tanayk, @simarpreetsingh-019, @wolfdev0512, @kyizinlatt, @arafatomer66, @alexsellam, @Rishav-12, @Zniniz, @abhinav0git, @victor-kataev, @Shawanga, @manjunathsanjana, @bonzai-green


[reopen] distinct operator missing

This is me reopening #1560 as the proposed solutions doesnt work for me.
First, SystemJS is not able to import Rx.KitchenSink and I still cannot compile the typescript

Hi @SuperManitu , I'm closing this issue and reopening #1560 instead which have context of issue to continue discuss. Let's continue in there.


pull request for e2e test at 11/17/2016 04:26:09

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

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


NIFI-8347 Set ClassLoader for JettyWebSocketServer to resolve runtime exceptions

Description of PR
NIFI-8347 Updates JettyWebSocketServer to set the the component's NAR ClassLoader for JettyWebSocketServer.  This change is necessary in order for the Jetty WebSocketServerFactory.Loader to have access to the jetty-server classes provided through the nifi-jetty-bundle.
The problem reported in the associated Jira issue can be reproduced using ListenWebSocket configured with JettyWebSocketServer and making a request to the configured listening port of the server.
Changes in this PR include an additional unit test method to test a successful connect to the Jetty WebSocket Server.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[X] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[X] Has your PR been rebased against the latest commit within the target branch (typically main)?

[X] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[X] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[X] Have you written or updated unit tests to verify your changes?
[X] Have you verified that the full build is successful on JDK 8?
[ ] Have you verified that the full build is successful on JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

The problem reported in nifi:1.13.2，when i make the JettyWebSocketServer enable. here is the msg：
2021-04-22 18:17:38,181 WARN [qtp531054011-310] o.e.j.server.handler.ContextHandler.ROOT unavailable
java.lang.RuntimeException: Unable to load org.eclipse.jetty.websocket.server.WebSocketServerFactory

And,i use JettyWebSocketServer :1.12.1 in nifi:1.13.2,the problem reported.


Docs are broken

I think we broke the docs after I merged some of the recent pull requests: either #1184 or #1190, both by @Yash-10.
Here's the latest failed build:
https://readthedocs.org/projects/poliastro/builds/13776407/
UnitConversionError: Can only apply 'add' function to quantities with compatible dimensions

there's a units problem in the NEOs notebook.

Both Read the Docs and our py38_online_test check have failed, see for example https://github.com/poliastro/poliastro/runs/2594411686.

I found the same while doing something else, I do not think it is related specifically to those PR.
After doing the changes here https://github.com/poliastro/poliastro/pull/1228, docs and pytest work again.

Oh, now I know what's happening! The from_sbdb old code looked weird to me, but I remembered it had to do with some weird astroquery thing. I checked their release notes and saw that https://github.com/astropy/astroquery/pull/2011 has been released, hence the jplsbdb service now returns astropy quantities. It makes total sense to merge #1228, doing it now.

Closed in #1228 🚀

For future readers: Until we release poliastro 0.15.1 with a fix for this, a solution is to downgrade astroquery:
pip install "astroquery<0.4.2"


Hue Hub - Link Every Restart

The plugin works great.  However, every time I restart Homebridge I have to relink the Hue hub by pressing the button.  Otherwise, its exactly what I need.  Thoughts?

PEBCAK
Problem exists between chair and keyboard.

I have the same issue - probably also PEBCAK, but I don't see what I am doing wrong. How did you fix it?

Ok, I fixed it, too. Here's how:
After you linked Hue Hub to DeCONZ (after you "pushed" the button in the Phoscon UI) there will be a line like this in the log:
[deCONZ] Phoscon-Gateway: created user - please edit config.json and restart homebridge
"platforms": [
{
"platform": "Hue",
"users": {
"00000000000000": "99999999999"
}
}
]
You may have to scroll up through the log to find this line - this was my fault, I didn't scroll up far enough.
copy "users" and the data, don't forget the "," after "Hue"
find "Plattform": "Hue" in the configuration, add the colon and paste the data.
Save. Restart.


OptionButton selected value always set to 0 when run

OS: Windows 8.1
2.1.3 (Found it here first)
3 alpha (Also found here, used in my screenshot)
Issue description:
So, I set the selected value of the option button (say it is 2), and when run the value reset to 0, the value should be 2 right? But when I run the project the value become 0 and the item showed is the 0th item text.
Steps to reproduce:
Add OptionButton to scene,
Add some items,
Change the selected value,
And run the project.
Link to minimal example project:
Here is the screenshot, i use the 3.0 version, the same thing happen in 2.1.3 too.
In Editor:

When Run:

Can confirm that it's present in recent master df5d01f
Scene file contains correct index.
[node name="OptionButton" type="OptionButton" parent="."]
selected = 2

Workaround: select(idx) in _ready

Potentially, related to the fact that popup might be still empty when selected is being set at https://github.com/godotengine/godot/blob/3121b3a4f4c01744184e952d79f9a56e01bdba41/scene/gui/option_button.cpp#L210-L215

@earlroxas13,
Could you please provide a few more details: what do you mean by 'Add some items'? How do you add them?
According to your screenshot, your OptionButton control doesn't contain any child items. If you add them in a code, then the described behaviour is predictable: you can't set selected item in GUI if you don't have items at all. In this case "workaround" provided by @ghost is a solution.

@Alexander-Alekseev
Yes, the workaround is working. But it mean that you have to attach script whenever you use OptionButton, it's not suppose to be that way right?
I tested on the 3.0 stable and this issue still there.

So, if you select the OptionButton in the scene tab, there will be items button on the top of GUI/2D Editor (right after the layout button). If you press the items button, Item List Editor window will appear (like in the screenshot above). in this window you can Add Item to the OptionButton, that's what I mean by 'Add some items'.
So, here is the problem. In my screenshot I add 3 items for the OptionButton,
index 0: asd
index 1: asda
index 2: dgfgf
and then, I change the Selected property in the Inspector to 2, so the OptionButton in 2D/GUI Editor change its text to the 2nd index text that is dgfgf. It working as expected.
But, if you run the scene, the OptionButton shows the 0th index text, that is asd, it should be showing the 2nd: dgfgf like the one in the 2D/GUI Editor,right? And this is the problem.

@earlroxas13,
OK, now I see, thank you.
I've managed to debug and fix the bug.
Description:
What we want to see is:

Create OptionButton;
Add items;
Select desired item.
Till you are in GUI, the logic flow is correct. When you click Save Scene and/or Run Project the logic flow is:
Create OptionButton (yes, save/run option creates a new one);
Select desired item; <-- it fails because there are no items in popup as @bojidar-bg mentioned
Add items. <-- when you have more than 1 item, this one selects item with index == 0

The root cause is that properties in OptionButton class placed in the order:

selected (_select_int method);
items (_set_items method).

Engine executes properties in this order once we save scene/run project.
My fix is to change the order. I'll create a pull request.

Im still hitting this bug on 3.1.
Has the change made it into 3.1?

I test with 3.1 the bug is not happened.
@Gibbz Maybe you change the value with script?
Or anyone can confirm this? @Alexander-Alekseev

I found I was accessing it wrong.
The issue im having with this is that when I delete an entry, the indexes dont look to get updated. And it keeps the deleted object in the selected field.
Is there a way to return the selection to be blank? And also a way for the user to select nothing?
Ill have to look into it more later, I may just be doing something wrong...


Multi-logging fixes

A couple of fixes for the ProcLog module.  The first is to wrap the /dev/shm/bifrost/ directory cleanup in a try...catch block to deal with files owned by other users and their pipelines.  The second is a change to the ProcLog name de-duplicator to make it work with the module/file structure that is currently used so that duplicate modules use separate directories.

No comments in over three weeks, merging.


Add nucleic acid modalities

Modality right now only supports a very limited number of cases. It would be helpful to have biomolecules beyond proteins, starting with nucleic acids.
Describe the solution you'd like
Add dna and rna to polaris.dataset.Modality.
Would this be sufficient to get the functionality?

Thanks @fteufel. This shouldn't be all that difficult to add, but since it doesn't affect the functionality of a dataset it's a low priority for now. With the ICML launch around the corner, there are some other, more pressing feature requests and issues to work on first.
For context: No functionality is currently conditioned on the modality field in the ColumnAnnotation. It's just metadata. There are ideas on our roadmap to add modality-specific functionality (e.g. visualizations). I expect that working on such modality-specific features will require us to change the type and structure of the modality field. For example, right now we we have Modality.MOLECULE, but we don't differentiate different molecular representations. Maybe we will also (or instead?) need to annotate that a column has SMILES or SELFIES or molecular graphs!
Of course, if you would really like to have more modalities supported in the meantime, please feel free to make a PR. It may take a while to make the necessary changes on the Hub's side as well, but I promise you we won't forget.


Windows node debugger: SyntaxError: missing ) after argument list

I have an npm script like follows, trying to use node debugger support.
"scripts": {
    "debug": "node --inspect ./node_modules/.bin/micro-dev"
  }

If I run npm run debug on WINDOWS I always get something like this:
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at createScript (vm.js:80:10)
    at Object.runInThisContext (vm.js:139:10)
    at Module._compile (module.js:588:28)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
    at Function.Module.runMain (module.js:665:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1

Is this a windows issue?

It seems to be, I solved it by replacing it with:
"scripts": {
    "debug": "node --inspect node_modules/micro-dev/bin/micro-dev.js"
}

But it seems to be a bigger issue that just this project.


Fix GRPC timeout for OTG

should point to ateSvcParams not dutSvcParams
"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."

Pull Request Functional Test Report for #2546 / f4b67e2b08a2bcc74ea66434d86e77db68f6d7f2
No tests identified for validation.
Help


Remove version: LutzRoeder.Netron version 7.7.8

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

URL: https://github.com/lutzroeder/netron/releases/download/v7.7.8/Netron-Setup-7.7.8.exe
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 912)


added one kubernetes git repo url

I have added K8's in-depth concepts git repo url and it will help others to understand how various kubernetes objects works in briefly with Animated pics and explanations.

This is KodeCloud's paid course. We are keeping ONLY free resources in this repo


Failed to start and listen on the port defined

Hi, thanks for your great article!
I was following it almost to the letter, but when I try to deploy it (gcloud run deploy oracle-connection) I get the error:
Deploying... Revision 'oracle-connection-00008-fuf' is not ready and cannot serve traffic. The user-provided container failed to start and listen on the port defin
ed provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
  -  Creating Revision... The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable.

Do you have any suggestion that can help me? Thanks anew!


improve KPDB testing and dbt test schemas

related to #547
These changes have been pulled out of PR #568 to simplify it and let it be more about fixing data issues
The motivations to  delete a schema that was created by running dbt tests are

dbt provides no way to delete it when new tests are run, it must be manually deleted. incremental building and testing is usually how it's used so I'm not shocked
If we don't delete them, tables with inaccurate test results and with names of since-deleted tests will exists and be confusing
if we don't consider these schemas during use of delete_stale_schemas(), we'll inadvertently delete them while keeping their build schemas. so we'd lose test results for builds we're trying to keep around

relevant action runs

logs of a KPDB build here where it would delete the tests schema during data loading

From high level, it sounds like you previously had dbt tests creating a schema with test result tables in db.

This PR addresses rebuilding on the same branch, correct? In other words, the problem you are addressing exists when you previously built a schema with the same name (i.e. branch name).
Does dbt append to existing tables instead of overwriting them completely? In your second bullet point, you are mentioning incorrect results and test names - can you show an example?
Not sure I understand your last bullet point.

@damonmcc

@sf-dcp

From high level, it sounds like you previously had dbt tests creating a schema with test result tables in db.

yup! a dbt test always creates a table in a schema (docs). In our case, those schemas are BUILD_SCHEMA__tests due to configurations like this.

This PR addresses rebuilding on the same branch, correct? In other words, the problem you are addressing exists when you previously built a schema with the same name (i.e. branch name).

yes, as well as nightly QA runs and Template DB test builds in PRs

Does dbt append to existing tables instead of overwriting them completely? In your second bullet point, you are mentioning incorrect results and test names - can you show an example?

It overwrites them completely. So the incorrectness I'm refereeing to is really caused by tables that were created by tests that have been renamed or deleted.
So if we write and run test_primary_key, we'll have a table named test_primary_key. And then if we rename it to test_compound_key and run, we'll have a new table called test_compound_key.
Now we have two tables. One of them, test_primary_key, is an artifact of code that has changed and so the table shouldn't exist anymore since it doesn't reflect the current state of a product's tests.
Or in another example, a test that was failing was called test_important_fact. We renamed it and it's passing, but the table test_important_fact still exists and has records in it because it had been failing. If we looked in the DB, it'd seem like something's wrong with a build even though no tests failed during it.

Not sure I understand your last bullet point.

We currently delete "stale" DB schemas using this github action. It currently deletes all schemas that don't match the names of branches in the repo. So it's gonna delete schemas like kpdb.in_progress__tests even when we have branch in_progress still open and want to keep all relevant schemas.

@sf-dcp

From high level, it sounds like you previously had dbt tests creating a schema with test result tables in db.

yup! a dbt test always creates a table in a schema (docs). if the schema doesn't exists, it's created. In our case, those schemas are BUILD_SCHEMA__tests due to configurations like this.

This PR addresses rebuilding on the same branch, correct? In other words, the problem you are addressing exists when you previously built a schema with the same name (i.e. branch name).

yes, as well as nightly QA runs and Template DB test builds in PRs

Does dbt append to existing tables instead of overwriting them completely? In your second bullet point, you are mentioning incorrect results and test names - can you show an example?

It overwrites them completely. So the incorrectness I'm refereeing to is really caused by tables that were created by tests that have been renamed or deleted.
So if we write and run test_primary_key, we'll have a table named test_primary_key. And then if we rename it to test_compound_key and run, we'll have a new table called test_compound_key.
Now we have two tables. One of them, test_primary_key, is an artifact of code that has changed and so the table shouldn't exist anymore since it doesn't reflect the current state of a product's tests.
Or in another example, a test that was failing was called test_important_fact. We renamed it and it's passing, but the table test_important_fact still exists and has records in it because it had been failing. If we looked in the DB, it'd seem like something's wrong with a build even though no tests failed during it.

Not sure I understand your last bullet point.

We currently delete "stale" DB schemas using this github action. It currently deletes all schemas that don't match the names of branches in the repo. So it's gonna delete schemas like kpdb.in_progress__tests even when we have branch in_progress still open and want to keep all relevant schemas.

Thank you for clarifying. I wanted to make sure I had a full context before my review. Besides a few minor questions/comments across the PR, all looks good!


formatting: force pointers/references with the type

Summary
Update .clang-format to always attach *s and &s to the type. This increases the consistency of our formatting.
Test plan
none

Codecov Report

Merging #106 (f4f631a) into main (2e74fa3) will increase coverage by 0.00%.
The diff coverage is 53.20%.

@@           Coverage Diff           @@
##             main     #106   +/-   ##
=======================================
  Coverage   34.21%   34.21%
=======================================
  Files          40       40
  Lines        6261     6260    -1
  Branches     3425     3424    -1
=======================================
  Hits         2142     2142
  Misses       2236     2236
+ Partials     1883     1882    -1

Impacted Files
Coverage Δ

src/Common.h
50.00% <ø> (ø)

src/Descs.h
42.30% <0.00%> (ø)

src/OICache.h
50.00% <ø> (ø)

src/OILexer.h
50.00% <0.00%> (ø)

src/OILibraryImpl.h
0.00% <ø> (ø)

src/OIOpts.h
0.00% <0.00%> (ø)

src/Serialize.cpp
0.00% <0.00%> (ø)

src/SymbolService.h
50.00% <ø> (ø)

src/TimeUtils.h
0.00% <0.00%> (ø)

src/TrapInfo.h
37.50% <0.00%> (ø)

... and 17 more

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


Angular 16 support

Angular v16 was released on 3rd of May. Currently the library only supports versions up to v15. Could we please add support for v16

+1

The new version is out...


SecurityError: The effective domain of the document is not a valid domain.

webauthn.js line 67
const newCredential = await navigator.credentials.create({ publicKey });
this code failed and throw error:
SecurityError: The effective domain of the document is not a valid domain.
Please help

What's the domain you've set?

I Downloaded it. Didn't change any code. Then swift run on macOS 13(22A5352e) with Safari 16.1 (186<IP_ADDRESS>.1).
Then I visited http://localhost:8080 in Safari.
Btw I haven't done any server development by swift before, So I'm not sure if I overlooking something.


Change database paths and packages to PG 10

Built the new repmgr and pglogical packages and tested this out with the other PRs.


Some basic improvement

Will merge after review. Thanks!

:+1: Looks good.
Can you merge this?

@VLMH Created issue https://github.com/onesky/api-library-php5/issues/16 to match improvements in this Pull Request.
Thanks to @BunnyHolder for those updates.

Done at #19


union type support for android_client

Union Types appearing as interfaces and implements

Added android client serialization/deserialization for union types using Jackson polymorphic type support

Handle no-discriminator-key union type as well.

lgtm


Records are missing

We have a Distributed table with two-node cluster with ReplicatedMergeTree tables. Once in 3 secs we make an insert to the Distributed table and see that some of the data are missing. Why and how we can avoid this?
ClickHouse server version 1.1.54236

Have you tried inserting directly to ReplicatedMergeTree tables instead of Distributed one?

No, but somehow problem resolved.


use pre-commit for git hooks

As the project moves forwards and adapts to use more static code analysis tools such as ruff(#18) and mypy(#17) it might be suitable to achieve parity between CI and dev by running same/similar workflows.
pre-commit is one such tool that would make that process much easier and enforce that the developers follow coding conventions even before it reaches CI.
A very simple config file could look like:
repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.6.0
    hooks:
      - id: end-of-file-fixer
      - id: trailing-whitespace
      - id: check-yaml
      - id: check-toml
      - id: check-merge-conflict
      - id: requirements-txt-fixer
      - id: detect-private-key
  - repo: https://github.com/psf/black
    rev: 24.4.2
    hooks:
      - id: black
  - repo: https://github.com/pre-commit/mirrors-mypy
    rev: v1.10.0
    hooks:
      - id: mypy
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.4.4
    hooks:
      - id: ruff
  - repo: https://github.com/python-poetry/poetry
    rev: 1.8.3
    hooks:
    -   id: poetry-check
    -   id: poetry-lock
    -   id: poetry-export

This is a great suggestion, thanks @SauravMaheshkar .
Maybe when we have mypy in place, you could submit a PR that starts to put some of this in place?  I think I'd like to take a slow and steady route that gets us used to using the pre-commit hooks one tool at a time - especially while robota-core is being used by the UoM Open Source Software Club.  If you had time at some point to submit a PR that picks one of the tools you've suggested here for us to get started with, that would be great.  We can then look at gradually adding more in.
We probably need to improve our developer docs as well as we do that, so that we keep the barrier to contributing low and manageable.  What do you think?


Console output

How to disable direct console.log() output to node.js console but catch a messages at real-time?
I want to format or filter messages before console it.
P.S. Thanks for sharing this great library!

Solve it with very little code changes.
Thanks)


Tracking which users are "op" and which are "voice"

Would need to be a channel-user thing, I'm thinking that Channel.user_list should become a dict such that channel.user_list[user] = []
Then constants in User such as:
User.FLAG_OP
User.FLAG_VOICE
so that an opped user may be channel.user_list[user] = [User.FLAG_OP]

https://github.com/joshcoales/Hallo/pull/145


When do you know "GPIO 9 is not accessible"?

[Enter feedback here]
In the section "Build and run the Blink sample" it says:
"If you are using hardware on which GPIO 9 is not accessible, change the GPIO. For example, on the Seeed Mini Dev Board, change GPIO 9 to GPIO 7:"
On my Seed MT3620 not making the change was correct.
So my question is on what boards should you make that change? The point needs detail.
NB: I skim read that instruction and made the change and didn't get the blink.

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

ID: 66d6e378-a8c1-6984-2a5c-30f2d2ae9971
Version Independent ID: de2f147d-3f19-2f80-0427-b25c8061b51b
Content: Azure Sphere Blink sample application Quickstart
Content Source: AzureSphere/articles/quickstarts/qs-blink-application.md
Product: azure-sphere
GitHub Login: @pennyo
Microsoft Alias: azurespheredocs

@djaus2  :Thanks for the feedback and bringing this to our notice . At this time we are reviewing the feedback and will update the document as appropriate .

@djaus Thanks for the feedback!
As the important note on this doc says:
These instructions assume that you are using hardware that follows the MT3620 reference board design (RBD), such as the Seeed MT3620 Development Kit. If you are using different Azure Sphere hardware, consult the manufacturer's documentation to find out whether the GPIO is exposed and how to access it. You might need to update the sample code and the "Gpio" field of the app_manifest.json file to use a different GPIO.
Did you miss that note or still think we need to add more clarity on the doc?
Thanks :)!

@djaus2 I had a sync with the author of this doc and understood better your feedback :)!
There is both:

The regular Seeed dev kit.
The mini Seeed dev kit.

When on the doc says "For example, on the Seeed Mini Dev Board, change GPIO 9 to GPIO 7" it applies only to the 2nd which explains why not making the change on the 1st worked well.
Requesting @pennyo to add more clarity on the doc based on your feedback.
Thank you so much!

Hi @pennyo can you please follow-up on this issue? Thanks


No equivalent for _mm_shuffle_ps

I'm trying to implement a lookup table of shuffle values, and discovered that there's no way to call _mm_shuffle_ps with packed_simd. The shuffle1_dyn method only works by passing a SIMD vector of the same size, which is sub optimal for my case because it takes 4x more memory than is strictly necessary. Ideally there would be a way to shuffle a 4-wide vector with a dynamic u8.

Hello.
New development is no longer happening on this crate.
All new work is happening in a fresh crate over here: https://github.com/rust-lang/stdsimd


[Rendering] Hyperlink markdown renders as plain text in Input.Toggle

Copied bug from: https://github.com/microsoft/AdaptiveCards/issues/7467
Details from original post:
Target Platforms
NodeJS
SDK Version
Teams Toolkit 3.8.0
Application Name
Microsoft Teams
Problem Description
Markdown for hyperlink [title](url) is displaying as plain text. It was displaying properly just a few weeks ago. I recently returned from holiday to find it no longer working in my Teams message extension app.
It also displays properly when previewed at https://adaptivecards.io/designer but not in the actual Teams client. The card is delivered via bot as a task module. Adaptive Card version 1.3.
Screenshots

Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.3",
    "body": [
      {
        "type": "Image",
        "url": "https://azcasappsvcblobstorage.blob.core.windows.net/customers/7583/OSU.jpg"
      },
      {
        "type": "TextBlock",
        "text": msgText,
        "wrap": true
      },
      {
        "type": "TextBlock",
        "text": "Include a message (optional):",
        "wrap": true,
        "weight": "Bolder"
      },
      {
        "type": "Input.Text",
        "placeholder": "Bravo!",
        "id": "message",
        "isMultiline": true
      },
      {
        "type": "Input.Toggle",
        "title": "Copy manager",
        "valueOn": "True",
        "valueOff": "False",
        "value": "False",
        "id": "IncludeManagers"
      },
      {
        "type": "Input.Toggle",
        "title": "I understand this message will be posted publicly to the [Rec Room](https://www.peopleareeverything.com/Dashboard/RecRoom)",
        "id": "agree",
        "isRequired": true,
        "errorMessage": "You must check the box to agree and continue.",
        "wrap": true,
        "separator": true,
        "spacing": "Large"
      },
      {
        "type": "ActionSet",
        "actions": [
          {
            "type": "Action.Submit",
            "title": "Submit",
            "data": { "action": "submit" }
          }
        ]
      }
    ]
  }

Sample Code Language
javascript
Sample Code
function msgCard(msgText) { // Adaptive Card for Message context.
  adaptiveCard = CardFactory.adaptiveCard({
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.3",
    "body": [
      {
        "type": "Image",
        "url": "https://azcasappsvcblobstorage.blob.core.windows.net/customers/7583/OSU.jpg"
      },
      {
        "type": "TextBlock",
        "text": msgText,
        "wrap": true
      },
      {
        "type": "TextBlock",
        "text": "Include a message (optional):",
        "wrap": true,
        "weight": "Bolder"
      },
      {
        "type": "Input.Text",
        "placeholder": "Bravo!",
        "id": "message",
        "isMultiline": true
      },
      {
        "type": "Input.Toggle",
        "title": "Copy manager",
        "valueOn": "True",
        "valueOff": "False",
        "value": "False",
        "id": "IncludeManagers"
      },
      {
        "type": "Input.Toggle",
        "title": "I understand this message will be posted publicly to the [Rec Room](https://www.peopleareeverything.com/Dashboard/RecRoom)",
        "id": "agree",
        "isRequired": true,
        "errorMessage": "You must check the box to agree and continue.",
        "wrap": true,
        "separator": true,
        "spacing": "Large"
      },
      {
        "type": "ActionSet",
        "actions": [
          {
            "type": "Action.Submit",
            "title": "Submit",
            "data": { "action": "submit" }
          }
        ]
      }
    ]
  });

  return adaptiveCard
```---
#### Document Details

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

* ID: 3fb4394d-25b1-8752-3996-fe3a2934732d
* Version Independent ID: 6d391381-89d0-117c-27cc-00043bd26a36
* Content: [Cards reference - Teams](https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-reference)
* Content Source: [msteams-platform/task-modules-and-cards/cards/cards-reference.md](https://github.com/MicrosoftDocs/msteams-docs/blob/master/msteams-platform/task-modules-and-cards/cards/cards-reference.md)
* Product: **msteams**
* GitHub Login: @surbhigupta12
* Microsoft Alias: **surbhigupta12**

@someonelikeTIM - We will investigate on it and get back to you.

@someonelikeTIM - We tested this by sending the adaptive card directly. We are also able to repro this issue. The hyperlink works fine in normal TextBlock but not in Input.Toggle. We will check this internally and update you.

We raised a bug for this issue. We will keep you posted if there are any updates.

@someoneliketim - Engineering team has confirmed that this is by design behavior. Markdown only supports for TextBlock and Fact / FactSet.


[Fix] Replace calls to basename

This PR replaces two instances of $(basename $x) with ${x:t}

Thx @onaforeignshore


dnn_trainer as member of a custom class - crashes at runtime with thread exception

Hi, thanks for the great lib.
I am trying to create a custom class with dnn_trainer as one of the members.  To achieve this, here is my custom TrainerCnn class
template<
    typename net_type,
    typename solver_type
>
class TrainerCnn
{
protected:
    net_type neural_net;
    dnn_trainer<net_type> trainer;

public:
    TrainerCnn(net_type nn, solver_type solver):
        neural_net(nn),
        trainer(nn, solver)
        {};

void train_from_dir(const string& train_dir)
{
.
// training code from typical dnn_examples
        trainer.set_learning_rate(0.1);
        trainer.be_verbose();
        trainer.set_synchronization_file("gender_metric_sync", std::chrono::minutes(5));
.
.
.
}
};

Then in my custom program, I use this class as follows
using net_type = ......
int main(int argc, char** argv)
{
    if (argc < 1)
    {
        cout << "Use this to train or test a gender classifying net " << endl;
        cout << "   ./main train_dir/ val_dir/" << endl;
    	cout << "   ./main model_file test_dir/ test" << endl;
        return 1;
    }
    string path(argv[1]);
    cout << "Loading Training data from " << path << endl;

    net_type net;
    TrainerCnn<net_type, sgd> genderClfTrainer(net, sgd());
    genderClfTrainer.train_from_dir(path);

    cout << endl << "Press enter to exit" << endl;
    cin.get();

}

While, everything compiles fine, when running I get strange crash as follows

Segmentation fault at Line 305 in unique_ptr.h :       { return std::get<0>(_M_t); }

This is the call stack

This happens as soon as train_from_dir is hit.  So I added a dummy function called output() in the TrainerCnn class which did nothing but write something in stdout.  I replaced train_from_dir call with call to output().  But it still crashes.
When I completely removed dnn_trainer as a member and instantiated it within the function train_from_dir, everything works.  So the problem occurs when dnn_trainer is instantiated as a class member variable.
Please let me know a workaround for this!
I am trying to wrap dlib dnn trainer so that my applications only involve a few lines of code.

The dnn_trainer holds a reference to the net you give it.  But you are
giving it a net that goes out of scope immediately.


error While subscribing to raw message from a web api microservice using Dapr

Ask your question here

Hello,
I am getting below  error While subscribing to raw message from a web api microservice (Microservice1) hosted in docker container (Refer the attached diagram)
The error message logged in Docker desktop (Microservice1 sidecar docker container log).
“time="2022-12-02T06:13:56.234572354Z" level=warning msg="retriable error returned from app while processing pub/sub event 3cbeee4d-03dd-47f7-91fe-42fd9fb7df5d, topic: rawDataTestTopic, body: {\"type\":\"https://tools.ietf.org/html/rfc7231#section-6.5.13\",\"title\":\"Unsupported Media Type\",\"status\":415,\"traceId\":\"00-b3cff34b70d01da2c7c58f4da4f1d35b-77f9e3a244d74e32-00\"}. status code returned: 415" app_id=DBAgent instance=12a64ef3bd7d scope=dapr.runtime type=log ver=1.8.4
Publishing to Kafka pub/sub is done using a curl command:
curl -X "POST" http://localhost:3500/v1.0/publish/pubsub/rawDataTestTopic?metadata.rawPayload=true -H "Content-Type: application/json" -d '{"ordernumber": "1234"}'
Program.cs  code:
app.MapSubscribeHandler(new Dapr.SubscribeOptions() { EnableRawPayload = true });
Microservice1 subscribe to Kafka topic using below code:
[Topic(DAPR_PUBSUB_NAME, "rawDataTestTopic",true)]
[HttpPost()]
public async Task OnIFMoEvent([FromBody] Root data)
{
string s = data.ToString();
return Ok();
}
…..
public class Root
{
public string ordernumber { get; set; }
}
Please Note:- Both Microservice1 & its side car are running without any error.
If I remove EnableRawPayload configuration => app.MapSubscribeHandler(), [Topic(DAPR_PUBSUB_NAME, "rawDataTestTopic")] & Curl command .. metadata.rawPayload=false
It is Woking fine
I could see an issue related to this at https://github.com/dapr/dotnet-sdk/issues/709 looks like raw data is supported  now
Can someone help ? did I miss any configuration ?

@rynowak @sapinderpalsingh, can you please help ?

I encountered a similar problem when trying to deserialize back into a typed object again. After debugging i found that the body of a rawPayload is presented to the Controller method with the application/octet-stream content type. Per default there is no inputformatter for converting this back into a complex type such as Root.
I resolved this issue by adding a custom InputFormatter to the options MvcOptions Action inside AddControllers()/AddMvc().
Resulting for me in something like this:
builder.Services.AddControllers(options => { options.InputFormatters.Add(new CustomFormatter()); }).AddDapr();
This formatter then uses the UTF8 encoding to parse the byte[] to a json string. As a final step it tries to Deserialize the json string into a typed object and return it.

I ran into the same issue when using Dapr in ASP.NET Core to listen to raw payloads (so no cloud-events).
Just like @TimSalomons , I've solved this by writing a custom formatter.
The custom formatter looks like this:
public class DaprRawPayloadInputFormatter : InputFormatter
{
    public DaprRawPayloadInputFormatter()
    {
            SupportedMediaTypes.Add("application/octet-stream");
    }

public override async Task<InputFormatterResult> ReadRequestBodyAsync(InputFormatterContext context)
{
    using (MemoryStream str = new MemoryStream())
    {
        await context.HttpContext.Request.Body.CopyToAsync(str);

        var jsonString = System.Text.Encoding.UTF8.GetString(str.ToArray());

        var deserializedModel = System.Text.Json.JsonSerializer.Deserialize(jsonString, context.ModelType);

        return InputFormatterResult.Success(deserializedModel);
    }

    return InputFormatterResult.Failure();
    }
}

It is used like this:
builder.Services.AddControllers(options => options.InputFormatters.Add(new DaprRawPayloadInputFormatter()))
                .AddDapr();

I spent a whole day trying to figure it out and this worked!

This can also be fixed by removing app.UseCloudEvents();

This is our experience too. That begs the question: why? The middleware should do nothing when the content type is not application/cloudevents+json.

This can also be fixed by removing app.UseCloudEvents();

This is our experience too. That begs the question: why? The middleware should do nothing when the content type is not application/cloudevents+json.

Looking through the SDK it doesn't look like it ignores content types that are not application/cloudevents+json
https://github.com/dapr/dotnet-sdk/blob/master/src/Dapr.AspNetCore/DaprApplicationBuilderExtensions.cs
So if that middleware is active it will expect cloud events.


Enhancement: make keyboard capture multiple keys

Hi,
Thanks so much for these excellent extensions - really valuable for my work building an app!
For the keyboard component, it would be useful to be able to use combinations of keydowns (e.g. Ctr + a  + l).
An easy solution seems to be to use an array of boolean values, which are reset to false on keyup.
See https://www.gavsblog.com/blog/detect-single-and-multiple-keypress-events-javascript
(happy to have a go at a PR, too)

Thanks! I have just added keyup, n_keyups and keys_pressed props. You can try them out in verion 0.0.53, let me know if it solves your usecase.

I think that more than solves my use case. Great stuff!


Unable to execute query with results (Query failed: The file exists)

SQL Operations Studio Version: 0.25.4

Steps to Reproduce: Not sure that you will reproduce.
I had a sqlops hang due to an endless loop of a cursor (whoops).
Now when ever I run a query that returns a resultset I get the error message
(9 rows affected)
Query failed: The file exists

This also is occurring in vscode through the mssql extension so maybe some shared storage or something?
I have tried deleting various temporary files without any success.
Tried uninstalling, reboot, and reinstall
Also tried removing the mssql ext and reinstalling that but nothing has worked.

Ran into this issue today, version 0.30.6 on Windows 10.

I am going to close as "no repro".  Please let me know if you're still experiencing this problem.


OBD requests will persist even when key off as long as hysteresis voltage is met

Even after key off, ECUs will stay on and respond to UDS or OBD requests as long as the controller stays physically on (i.e. the Vin is not below the UVLO of the converter).
This can lead to a drained battery situation.
Solution : Check Frame 130h for ignition status and interrupt OBD/UDS/BMWFast requests when ignition is key out or engine off.

Working in 3e0e526, closing


Ensure records are stripped of all whitespace/padding

eg https://normalize.cancervariants.org/therapy/search?q=chemidplus:51186-83-5&incl=chemidplus

Fixed in #230


pointerIndex out of range exception

I read the issue about the array out of range but i don't know if those problem are related....anyway, while "abusing" the zoom i get this pointer out of range exception.. here is the full stack trace:
04-14 01:24:53.365  14157-14157/niry.mygrandsons E/InputEventReceiver﹕ Exception dispatching input event.
04-14 01:24:53.385  14157-14157/niry.mygrandsons E/AndroidRuntime﹕ FATAL EXCEPTION: main
    java.lang.IllegalArgumentException: pointerIndex out of range
            at android.view.MotionEvent.nativeGetAxisValue(Native Method)
            at android.view.MotionEvent.getX(MotionEvent.java:1981)
            at android.support.v4.view.MotionEventCompatEclair.getX(MotionEventCompatEclair.java:32)
            at android.support.v4.view.MotionEventCompat$EclairMotionEventVersionImpl.getX(MotionEventCompat.java:91)
            at android.support.v4.view.MotionEventCompat.getX(MotionEventCompat.java:219)
            at android.support.v4.view.ViewPager.onInterceptTouchEvent(ViewPager.java:1839)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1827)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2241)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1946)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2241)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1946)
            at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2241)
            at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1946)
            at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1989)
            at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1432)
            at android.app.Activity.dispatchTouchEvent(Activity.java:2428)
            at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1937)
            at android.view.View.dispatchPointerEvent(View.java:7443)
            at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3603)
            at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3531)
            at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4783)
            at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4743)
            at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4895)
            at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:179)
            at android.view.InputEventReceiver.nativeConsumeBatchedInputEvents(Native Method)
            at android.view.InputEventReceiver.consumeBatchedInputEvents(InputEventReceiver.java:171)
            at android.view.ViewRootImpl.doConsumeBatchedInput(ViewRootImpl.java:4863)
            at android.view.ViewRootImpl$ConsumeBatchedInputRunnable.run(ViewRootImpl.java:4917)
            at android.view.Choreographer$CallbackRecord.run(Choreographer.java:776)
            at android.view.Choreographer.doCallbacks(Choreographer.java:579)
            at android.view.Choreographer.doFrame(Choreographer.java:546)
            at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:762)
            at android.os.Handler.handleCallback(Handler.java:800)
            at android.os.Handler.dispatchMessage(Handler.java:100)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5371)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
            at dalvik.system.NativeStart.main(Native Method)
04-14 01:24:53.524      500-526/? E/AppErrorDialog﹕ Failed to get ILowStorageHandle instance

I have the same issue by "unzooming" too fast in 1.2.3. But not in 1.2.2.
There is no active maintainers so..
https://github.com/chrisbanes/PhotoView/tree/dev#deprecation-notice

Does anybody know when 1.2.4 will be published to maven?

fyi I downloaded 1.2.4 and put it in my project, but still able to get this crash consistently

thanks will421, ill try it.
btw, have you tried https://github.com/MikeOrtiz/TouchImageView?
I think ill try it too, maybe it's more stable

@NirHUJI If you have better luck w/ ToughImageView, please let me know!

btw, my problem was related to a multitouch bug w/ ViewPagers. If you use a custom View Pager, as outlined in this post, it will probably fix your problem:
https://github.com/chrisbanes/PhotoView/issues/31

@kvarela  thanks a lot man! I didn't see this post on the issue....it solved my problem!

@kvarela oh, and now i don't need to check the other project:) but i see that the other one isn't active too so....

I had some other issues with PhotoView and viewpager so I tried TouchImageView. It work well in my case.

This is happening for me as well on an older phone that I don't have access to. Any update on a possible fix? It occurs on some images when zooming out by pinching in.

If there is a drawer layout being used then we can use the hackydrawer layout in order to get the rid of this issue..

@bhatnagar-gaurav is completely correct. I have updated the README on how to do this for any ViewGroup you see the problem present in.

Thanks! I appreciate the update.


[SetTheoretic] Add SetTheoretic concept

It adds SetTheoretic concept for functions-
union, intersection, difference, symmetric_difference.
Closes https://github.com/boostorg/hana/issues/357

@ldionne Can you please review this ?

Resuming work after ages. Would like complete it this time.

Also, mathematically, this doesn't seem accurate. Because, ideally intersection must be commutative, but here only set::intersection is commutative, but map::intersection is not.
@ldionne I'm not sure if this was intended, but your input would be appreciated.


Allow use revealPasswordButton classes in read-only state of TextBox

Can you make revealPasswordButton show up even if control is read only?
I want to add readonly TextBox to my app but do not want users to input anything in it. Also I need functionality of button above because there is must be a secret key inside of TextBox.
My code is:

When I add IsReadOnly="True" show/hide button dissapears. Maybe there is another approach to achieve what I want?
I am using <IP_ADDRESS>-nightly version of package

Hi @CIRCULARKA !
I did a little bit changes on TextBox styles. This issue is reasonal for me too. You should be able to use if you use latest nightly package of Material.Avalonia!
Commit: https://github.com/AvaloniaCommunity/Material.Avalonia/commit/fb9541bbbd034daf4d321d42f3b84775736165cd

Thats worked, thanks. But there is another question: when I switch back to "hidden" mode I end up with NullReferenceException
It was on *.72 and on *.73 version

Hello, @CIRCULARKA
Can you post Exception stacktrace, and any other related data, if possible?
Also you share your project for problem investigation.

Hello, @CIRCULARKA
Can you post Exception stacktrace, and any other related data, if possible? Also you share your project for problem investigation.

I'll better give you the whole project. Stack trace of an error in the error.txt file in the root
https://drive.google.com/drive/folders/13cGDZY4ohdzqwdctNVKb7SA2Z09fvVZx?usp=sharing

UPD: Actually error occurs when I click "Show password" button and then leave my cursor from control

Hi @CIRCULARKA ! Sorry for 2 months waiting:(
I downloaded your reproduce sample and updated to more recent version, but it works fine and no exception thrown. Looks like this issue is solved already.
Version of AvaloniaUI: 0.10.11
Material.Avalonia: 3.0.0-rc0

Might you try again with those version packages?

Hi @CIRCULARKA ! Sorry for 2 months waiting:( Those days I was busy and I forgot about this until today
I downloaded your reproduce sample and updated to more recent version, but it works fine and no exception thrown. Looks like this issue is solved already.
Version of AvaloniaUI: 0.10.11 Material.Avalonia: 3.0.0-rc0

Might you try again with those version packages?

Hi, thanks for the answer. Yes, my problem actually gone, and I still don't why it ocurred, might be something with my windows manager or idk

Hi @CIRCULARKA ! Sorry for 2 months waiting:( Those days I was busy and I forgot about this until today
I downloaded your reproduce sample and updated to more recent version, but it works fine and no exception thrown. Looks like this issue is solved already.
Version of AvaloniaUI: 0.10.11 Material.Avalonia: 3.0.0-rc0

Might you try again with those version packages?

Hi, thanks for the answer. Yes, my problem actually gone, and I still don't why it ocurred, might be something with my windows manager or idk

Actually I added bug tag when I saw this problem. I have no idea how it occur. Might be something odd on our library and I fixed it without intension


Errors when importing vue/server-renderer

The vue/server-renderer export in the vue package re-exports @vue/server-renderer.
Expected Behavior
Applications which import vue/server-renderer will work fine when the import-in-the-middle hook is loaded.
Actual Behavior
When attempting to open the application, the following error is logged:
[nuxt] [request error] [unhandled] [500] The requested module 'vue/server-renderer' does not provide an export named 'renderToString'
  at ModuleJob._instantiate (node:internal/modules/esm/module_job:131:21)
  at async ModuleJob.run (node:internal/modules/esm/module_job:213:5)
  at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
  at async Object.handler (./.output/server/chunks/runtime.mjs:2861:19)
  at async Server.toNodeHandle (./.output/server/chunks/runtime.mjs:3131:7)
[nuxt] [request error] [unhandled] [500] The requested module 'vue/server-renderer' does not provide an export named 'renderToString'
  at ModuleJob._instantiate (node:internal/modules/esm/module_job:131:21)
  at async ModuleJob.run (node:internal/modules/esm/module_job:213:5)
  at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
  at async Object.handler (./.output/server/chunks/runtime.mjs:2861:19)
  at async Server.toNodeHandle (./.output/server/chunks/runtime.mjs:3131:7)

Steps to Reproduce the Problem

Create a basic Nuxt app npx nuxi init test-app
Add import-in-the-middle yarn add import-in-the-middle
Build yarn nuxt build
Run with import-in-the-middle node --loader=import-in-the-middle/hook.mjs .output/server/index.mjs

Alternatively, this single-file approach seems to recreate the problem
index.mjs
import { renderToString } from 'vue/server-renderer'

console.log('hello world')

❯ node index.mjs
hello world
❯ node --loader=import-in-the-middle/hook.mjs index.mjs
(node:75208) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("import-in-the-middle/hook.mjs", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
file:///private/tmp/import-test/index.mjs:1
import { renderToString } from 'vue/server-renderer'
         ^^^^^^^^^^^^^^
SyntaxError: The requested module 'vue/server-renderer' does not provide an export named 'renderToString'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:131:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:213:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async loadESM (node:internal/process/esm_loader:34:7)
    at async handleMainPromise (node:internal/modules/run_main:66:12)

Node.js v20.9.0

Specifications

Version: 1.9.0 (Node v20.9.0)
Platform: MacOS
Subsystem:

This was fixed with version 1.10.0 of import-in-the-middle 🎉
ref: https://github.com/nodejs/import-in-the-middle/pull/140 and https://github.com/nodejs/import-in-the-middle/pull/145


Bugfix/docker updates

Changes:

Added libc6-compat to docker image
Changed how docker-compose builds/executes, now it will build the application image locally instead of pulling a prebuilt.
moved docker-compose to root dir
removed docker/ directory
added ./:/localfiles mountpoint for future use case (writeFile)
moved example .env to root

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Master Ed 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.

Opened another PR - https://github.com/FlowiseAI/Flowise/pull/183
Closing this


Some rounds are instantly timing out

This is a test for 60 seconds NM no car. It seems to happen if the app is inactive/unfocused for some time.

I'd generally recommend not using the in-game timer with Chatguessr.
That said this is probably still a legitimate issue. Most likely what's happening is that Chatguessr checks the GeoGuessr API for information on the previous round, which starts the timer for the next round (due to a recent change on GeoGuessr's side). Some extensions work around this, I don't exactly know how, but CG could likely do the same.

Makes sense.
The UI is confusing for that though and doesn't indicate that recommendation. My proposal would be:

integrate the timer widget with the UI/options - e.g. you choose some time and the widget gets set up for that
get rid of the GeoGuessr timer
add an option to use the same styling for timer wighet as in GeoGuessr - not that important, but it'd lower potential user confusion even further

Another idea would be to double the timer - run it for chat, then streamer, So it runs for X seconds, then guesses are closed if that option is chosen and then it runs again for X seconds so that the streamer can lock in the guess and explain the round. After that the round ends.


Partitioning Direction Update

The new direction updater takes an argument partitions: a list of integers in the range [0, 23] representing the indexes of the partitions to be processed. It will then run the direction updater for each one of these partitions in sequence. The default value is the list of all partition indexes.
Example:
python3 -m delphi.epidata.acquisition.covidcast.direction_updater --partitions 0 1 will process the first two partition in sequence.

To add the is_latest_issue column, run the two following commands:

ALTER TABLE `covidcast` ADD `is_latest_issue` BINARY(1) NOT NULL DEFAULT (0);
python3 -m delphi.epidata.acquisition.covidcast.fill_is_latest_issue

We can drop the fill_is_latest_issue and its corresponding integration test once they are run successfully.

@AlSaeed The new column is added. Once merged we can do the second step.


Unable to start

When mods are added, it will not start.
When I try to start it, it crashes with exit code 1.
No crash log is generated.
latest.log

Remove Spectator Plus


⚠ Quirk Club Argentina (API endpoint) has degraded performance

In 83b83f8, Quirk Club Argentina (API endpoint) (https://us-central1-quirkclub-dev.cloudfunctions.net/api/check/api) experienced degraded performance:

HTTP code: 200
Response time: 8085 ms

Resolved: Quirk Club Argentina (API endpoint) performance has improved in 4df72ab.


Checklist

[X] I have read the contributing guide and understand what's expected of me
[X] I have run this code in development and it appears to resolve the stated issue
[X] This PR includes tests, or tests are not required/relevant for this PR
[X] This PR has no interface changes (e.g. macros, cli, logs, json artifacts, config files, adapter interface, etc) or this PR has already received feedback and approval from Product or DX

Hi @ VersusFacit, sorry for radio silence, been really busy. Thanks for taking it on from where I left off. Much appreciated ❤


X-Stream Error

I have posted an error in stackexchange and discuss.ipfs.io and several people have tried to solve this but I have seen no one who can identify a solution.
Here is the link -
https://ethereum.stackexchange.com/questions/15915/ipfs-x-stream-errors
this.IpfsAPI = IpfsAPI('<IP_ADDRESS>', '5001', {protocol: 'http'})
var zstr = 'hello world from Zillerium2'
    this.IpfsAPI.add(new Buffer(zstr), function (err, res){
          console.log("hello");
          if(err || !res) return console.error("ipfs add error", err, res);
          else{

Request URL:http://<IP_ADDRESS>:5001/api/v0/object/get?
arg=QmQHoSC2We7F3kskZExSpjUbwCVWDnaW1VQT44b14n5rLG&stream -channels=true
Request Method:POST
Status Code:200 OK
Remote Address:<IP_ADDRESS>:5001
Response Headers
view source
Access-Control-Allow-Credentials:true
Access-Control-Allow-Headers:X-Stream-Output, X-Chunked-Output, X-        Content-Length
Access-Control-Allow-Origin:http://jenbil.com:3000
Access-Control-Expose-Headers:X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type:application/json
 Date:Sat, 06 May 2017 15:00:20 GMT
Server:go-ipfs/0.4.8

Trailer:X-Stream-Error

Transfer-Encoding:chunked
Vary:Origin
Request Headers
view source
Accept:*/*
Accept-Encoding:gzip, deflate
Accept-Language:en-GB,en-US;q=0.8,en;q=0.6
Connection:keep-alive
Content-Length:0
Host:<IP_ADDRESS>:5001
Origin:http://jenbil.com:3000
Referer:http://jenbil.com:3000/
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Query String Parameters
view source
view URL encoded
arg:QmQHoSC2We7F3kskZExSpjUbwCVWDnaW1VQT44b14n5rLG
stream-channels:true

Has anyone any idea about this?

@zillerium let's try a couple of things.

Try updating to go-ipfs 0.4.10
Make sure that CORS headers are set https://github.com/ipfs/js-ipfs-api#cors
Try with a local daemon first.

I am also getting the same error only in chrome after setting the CORS header also


Mutually exclusive features are present in profiling-procmacros

According to https://github.com/rust-lang/cargo/blob/master/src/doc/src/reference/features.md#feature-unification features should be additive:

A consequence of this is that features should be additive. That is, enabling a feature should not disable functionality, and it should usually be safe to enable any combination of features.

while profiling-macros contains several different features that add one impl_block each which results in odd compilation errors when several are enabled. This makes it hard to use tools such as udeps amongst other things listed in a link I gave.

The guidance in the linked document does not apply to this crate. Published crates should never ship with any of these features enabled. They should only be enabled during local development.
This avoids the stated concern of “coordinating all uses of the package in the dependency graph to cooperate to avoid enabling them together”
BTW using more than one profiler at a time is likely to negatively impact accuracy of the resulting data.

In case of udeps accuracy doesn't matter at all, it just checks for unnecessary dependencies just by compiling it. And we don't depend on this crate directly - it gets pulled in though a dependency.

Can you be more specific about why this is a problem with udeps? Have you tried ignoring this crate? (https://github.com/est31/cargo-udeps#ignoring-some-of-the-dependencies)

When used with to deal with local features
cargo +nightly udeps --workspace --all-targets --all-features

profiling-procmacros fails to compile with
44  | / fn impl_block(
45  | |     body: &syn::Block,
46  | |     _instrumented_function_name: &str,
47  | | ) -> syn::Block {
...   |
54  | |     }
55  | | }
    | |_- previous definition of the value `impl_block` here
...
101 | / fn impl_block(
102 | |     body: &syn::Block,
103 | |     instrumented_function_name: &str,
104 | | ) -> syn::Block {
...   |
112 | |     }
113 | | }
    | |_^ `impl_block` redefined here
    |
    = note: `impl_block` must be defined only once in the value namespace of this module

Ignoring dependency that pulls in profiling-procmacro is not an option because a bunch of other code depends on it though other dependencies. There are other workarounds but they come with their own annoyances.

The only idea I've come up with is have a feature that turns off all the other features. But that's also recommended against in the same doc. Or I guess have some sort of "priority" so the logic conceptually is if (profiler_x) { ... } else if (profiler_y) { ... } else if ... but that's just a more subtle way of implementing a feature in a non-additive way. And if someone accidentally enables two profilers, it will silently fail, whereas currently they will get compile errors. But, it means all combinations of feature flags will compile.
(My main concern is not wanting to maintain 2^n permutations of supported ways to use the library, and keeping the library tiny enough to not be off-putting for people to want to use it, since this is the sort of crate that really benefits from being more widely used.)
We do have a feature type-check that is meant for CI - it validates all profiling usage would compile if a profiler was enabled. I suppose we could use that also as a "disable all" flag as well although I would lean towards making "disable all" a separate feature, if we have it at all.

Having "disable all" flag goes against the same recommendations unfortunately.
In the ideal world this would be N separate crates: as you said yourself having several profilers enabled at the same time makes little sense, each crate could have an "enabled" feature which would allow you to switch profiling on and off.
Next best approach I think would be to generate a common instrumentation block with all the profilers nested into each other - layers corresponding to each profiler are always present but when disabled it's just a pair of curly braces or something. You won't get useful profiling results out of it but at least it will compile. Separate crates is better than this because when compiling with udeps this will pull in all the profilers and CI time will suffer.
Yet another improvement would be to generate a meaningful compilation error when several features are enabled: pull request that added dependency on profiling crate also removed udeps from CI explaining it as cargo udeps fails to compile the "profiling-procmacros" crate for some reason. No idea why this is; disabling t-udeps for now.

Closing as this has been open for a long time with no movement. I'm not aware of this causing real problems for people using this crate as it's intended (turned on for temporary local development only.)


用 clang 9 编译出错

希望合入这个补丁
https://android-review.googlesource.com/c/platform/external/clang/+/825643/1/lib/CodeGen/CGOpenMPRuntime.cpp#6120

Your patch is used for me, thanks!

my errors:
make[2]: *** [tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/CGOpenMPRuntime.cpp.o] Error 1
make[1]: *** [tools/clang/lib/CodeGen/CMakeFiles/clangCodeGen.dir/all] Error 2
Your patch is used for me too, thanks!


HuggingFace Dataset Connector: update existing resources

In Issue https://github.com/aiondemand/AIOD-rest-api/issues/131, we should make sure that connectors can, generically, handle updates.
Then we'll still have the problem that the HuggingFace connector doesn't know of any updates.
With the current HuggingFace API, this isn't solvable, except if we periodically re-ingest all metadata.
The cleanest solution might be to create an issue on HuggingFace github, or even help contributing towards an extra endpoint?

While it would be the cleanest to have direct support from HF on this, we could consider relying on the date_modified field provided by HF to decide whether or not something should be updated. It can simply be compared to the date_modified of the asset (though yes, this does require up to one round trip to the database by itself, for each asset). We may bypass some/most of these checks by keeping some local state around (as with e.g., the state.json) on when the last check was.
Just fetching minimal metadata from HF itself for each dataset is not that demanding, a few minutes is enough to fetch all current 240k datasets. But we can use the endpoint to sort by last modified in descending order, so realistically we can fetch all we need in just a second.
The real complexity may be in identifying what is updated. I guess just overwriting everything is the simplest.


[Snyk] Security upgrade golang from 1.8 to 1.21.12

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 4 vulnerabilities in the dockerfile dependencies of this project.
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Snyk changed the following file(s):

awstesting/sandbox/Dockerfile.test.go1.8

We recommend upgrading to golang:1.21.12, as this image has only 89 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Arbitrary Argument Injection SNYK-DEBIAN8-GIT-340820
  523

Arbitrary Argument Injection SNYK-DEBIAN8-GIT-340820
  523

Buffer Overflow SNYK-DEBIAN8-INETUTILS-564850
  511

Integer Overflow or Wraparound SNYK-DEBIAN8-SQLITE3-307592
  501

Race Condition SNYK-DEBIAN8-WGET-300469
  447

[!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:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

🎉 Snyk hasn't found any issues so far.
✅ code/snyk check is completed. No issues were found. (View Details)


Fix link in doc

Broken link:
https://pachyderm.readthedocs.io/en/latest/development/deploying_on_the_cloud.html#microsoft-azure

Many thanks :)


Create scripts to populate DB with basic course data (excludes evals)

 Goals

Create scripts to update DB with term data and course data (from any and all terms) pulled from MobileApp & Registrar's APIs
Ideally, script to update all course data for ALL terms will run only once (and more if database ever gets corrupted). Script to update all course data for CURRENT term will probably be run once per day. Script to update term data will be run once at the start of the term.

 Pre-requisites
In order to execute the scripts, make sure to:

Install requirements listed in requirements.txt
Add MobileApp API keys to your .env file. Ask Shannon (or others on Resinde backend team) for these keys, or login to API store with resinde service account and retrieve API keys for "DefaultApplication".

 Summary of Changes Made
 (Changes not contained in this PR, but done beforehand)

Created semesters, courses, and instructors collections in course_selection DB. DB schema generally follows Princeton Courses DB.

Each document in semesters stores data about a given term. Each term is uniquely identified by its term code. Old term codes retrieved from Princeton Courses DB.
Each document incourses stores basic data for a unique course (in a given semester). Each course is uniquely identified by its guid (essentially string concat of term and course_id).
Each document in instructors stores an instructor's name and a list of courses (guids) taught by the instructor. Each instructor is uniquely identified by their emplid.

 (Changes contained in this PR)

database.py handles connecting to our MongoDB databases, query data from the db, and updating data in the DB.
mobileapp.py handles requests to the MobileApp API. MobileApp class contains methods that query the necessary endpoints to get term (/courses/terms) & course (/courses/courses) data.
registrar.py handles requests to the Registrar's API. Uses workaround discovered by Princeton Courses to get API token & make requests. Gets course data that is not currently in MobileApp API.
update_db_term.py is script to update term data in semesters collection. As noted at top of file:

To run script:
$ python update_db_term.py

update_db_courses.py is script to update course data in courses and instructors collections. As noted at top of file:

To update courses for current term:
$ python update_db_courses.py

To update courses for all terms:
$ python update_db_courses.py --all

update_db_helpers.py contains helper methods needed to get/parse/update course data.

 Testing

Unit testing done on all methods. For methods that update DB, verified that it correctly updated DB and sometimes compared the result to the data stored in Princeton Course's DB.
Ran course updater script many times for current term ("1224"). Verified that courses collection is always updated with 1256 courses and correct courses were added for a couple instructors in instructors collection.
Ran course updater script a couple times for older terms too and did similar verification.

 Disclaimers & Future Work

Evaluations/scores data is not included in this PR. Evals aren't (and won't be) available in an API, so a separate PR will be created to scrape these evals.
There is currently a timeout error returned by MobileApp API when retrieving course data for older terms. This error doesn't crash the script, but course data will likely be incomplete for older terms. Until this error is resolved (I'm currently talking to OIT about fixing this), don't try to execute update_db_courses.py --all on the full terms list. It is OK to execute the script on a subset of more recent terms (Spring 2018 and onwards). Reminder that we'll only need to run the script for all terms only ONCE to store old course data, so we only need to get the script working once.
As of today, OIT will be patching the Registrar's API token vulnerability and working on creating a student API that combines the necessary fields in MobileApp and the Registrar's API. Once this API is completed, we can retire the code in registrar.py and adapt mobileapp.py and the db updater scripts to use this API.

@howard-yen yup, let's discuss the merge offline


Distance Array from Depth Frame in C# (unity)

Required Info

Camera Model
D415

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win (8.1/10)

Platform
PC

SDK Version
2.0

Language
C#/unity

Issue Description
How to get the Depth Frame data and convert it to a short(uint16) array.
And then how to get the distance information (meters or cm) from the array?
Using C# please.
public static double[][] GetDistanceArray(DepthFrame depthFrame, float depthScale)
    {
        short[] input = new short[depthFrame.Stride * depthFrame.Height];
        Marshal.Copy(depthFrame.Data, input, 0, depthFrame.Stride * depthFrame.Height);

        for (int i = 0; i <  #input.Length; i += 2)
        {
            double distance = input[i] * depthScale; // meters
        }
    }

I tried doing something similar to the code (up^) but its not working.
Any help would be great.
Thank you!

Couple of issues with the code:

Raw depth data in Z16 format is in unsigned shorts, Marshal.Copy has no overload for that type, use the VideoFrame.CopyTo<T> method.
The Stride property is in bytes, when using ushorts the array size is width × height

var depthData = new ushort[depthFrame.Width * depthFrame.Height];
depthFrame.CopyTo(depthData);

Also see, this for accessing the data without copying in an unsafe context.

Thank you very much @ogoshen  👍


⚠ ClamAV has degraded performance

In a1273e6, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 207 ms

Resolved: ClamAV performance has improved in edced85 after 24 minutes.


Remove realtime endpoint version checking

Reverts mbta/dotcom#416
No ticket. This check was added to ensure that there weren't problems with old versions of the client-side code calling the new version of the server-side code. I think we are well past the point of needing to worry about that.

Just to make sure, is this to remove an unnecessary check for v2 since that is already the default version?

@alicia-mbta Exactly. I think the idea was if you loaded the page right before the "v2" deploy, your page might later ask for an update and the server post update would respond with something the code in your browser suddenly wasn't expecting. But at this point, I don't think we need to worry about that condition any longer.


Feat decimal type support

Summary
Added support of decimal types.
Checklist

[X] Unit and integration tests covering the common scenarios were added

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@Paultagoras are you planning to approve and merge it?


Invalid default engine for edit creation endpoint

The "example request" section of our edit creation endpoint docs defaults to the engine text-davinci-002, which is incompatible with the edit endpoint

Quickly looked to see if I could find out how to change this, but was unable to, so creating this issue instead

Looking at https://platform.openai.com/docs/api-reference/edits, this appears to have been fixed.

Closing this since I fixed it a while back in the linked thread!


phpType is not always returning user specific type

Hi,
I am having problem with custom phpType. For example if I create distance type in the schema as follows:
<table name="vehicle">
        <column name="Name" type="VARCHAR" size="100" required="true"/>
        <column name="Description" type="LONGVARCHAR" required="false"/>
        <column name="TripMeter" type="DOUBLE" required="false" defaultValue="0" phpType="\custom\Distance"/>
</table>

Now if I have a vehicle instance and set a new TripMeter value for the vehicle and get it straight after that it will return me the value as double instead the phpType:
<?php

$vehicle = new Vehicle();
var_dump($vehicle->getTripMeter());
$vehicle->setTripMeter(643);
var_dump($vehicle->getTripMeter());

Is this a bug or wanted functionality? If I fetch the vehicle after saving from database it will work just fine and return me the Distance object. I would suggest that either type-cast the input value for the setter or possibly create new object (from phpType) with the new value. The later would be more usable as user could input the values in sqlType but would get the phpType in return.

I'm not sure why you even get a Distance object in the first place. I don't see any line in the code that convert database value to a custom class object defined in phpType.  And can you please post the hydrate method of your Vehicle method please.


Demo code not working

I have tried to work on demo given here but I was not able to properly run the same.
main.js:
var htmlToArticleJson = require('html-to-article-json');
var htmlString = '
Foobar
';
var articleJson = htmlToArticleJson(htmlString);
//articleJson();

console.log("Article JSON: " + articleJson);

If I use opts with require, it gives opts undefined value because I don't know what should be opts, so, I can declare a variabe on this.
when I run this js, I get output as:
Article JSON: function (elm) {
    return normalize(parse(elm));
  }

Please let me know how to tackle the issue.

Hi @mobihunterz, sorry the docs our outdated. The opts are actually optional so you should be able to get this running by changing your require to this:
var htmlToArticleJson = require('html-to-article-json')();

@mobihunterz I removed the optional opts from the readme for now, but I'll add some explanation in the readme about what you can do with the opts as soon as I can!


Tep 0103 skipping reason

Changes
Add SkippingReason to SkippedTasks field of PipelineRunStatus.
Prior to this, users only knew that a PipelineTask was skipped but not
the exact reason for skipping the task leading to confusion when
debugging Pipelines.
This PR addresses the TEP and issue. It adds a field Reason of type SkippingReason (a string alias) to the SkippedTasksfield in PipelineRunStatus. The tests have been updated to validate skipping reason.

Submitter Checklist
As the author of this PR, please check off the items in this checklist:

[x] Docs included if any changes are user facing
[x] Tests included if any functionality added or changed
[x] Follows the commit message standard
[x] Meets the Tekton contributor standards (including
functionality, content, code)
[x] Release notes block below has been filled in
(if there are no user facing changes, use release note "NONE")

Release Notes
Add SkippingReason to SkippedTasks field of PipelineRunStatus.

/ok-to-test

Closed by mistake

/assign @jerop

/ok-to-test

/retest

/retest

Closes https://github.com/tektoncd/pipeline/issues/4738

Closing this PR due to merge commits affecting a squash-down.
Opening a new PR https://github.com/tektoncd/pipeline/pull/4829 instead.

Hello @chitrangpatel and thank you for your PR.
Opening a new PR is fine, however it has the downside of dispersing the context across multiple PRs.
For next time, if you have an issue on your local branch, you can still use the existing PR.
Once you have a working local branch, you can push it to your existing PR, for instance:
git push <fork remote name> <local branch name:existing pr branch> --force

In the case of this PR, the existing pr branch would be TEP-0103-Skipping-Reason

Thanks @afrittoli! I will do that next time.


Move linker options after object so they are included as dependencies

Trying to use https://code.google.com/p/py-leveldb/ against this flavor of leveldb, and on importing, get errors as follows (on Ubuntu 12.04 LTS):
ImportError: /usr/local/lib/libleveldb.so.1: undefined symbol: clock_nanosleep

Looking at the source, clock_nanosleep should be part of librt, but its not listed as a dependency:
$ ldd libleveldb.so
	linux-vdso.so.1 =>  (0x00007fffd09b6000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb5b3490000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb5b3194000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb5b2f7d000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fb5b2d60000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb5b29a1000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fb5b3a26000)

even though -lrt is passed in the flags. The problem is that the linked libraries should be supplied after the -o libleveldb.so.1.9 flag, else they seem to be ignored
With the patched makefile, rebuilding and checking dependencies:
$ ldd libleveldb.so
	linux-vdso.so.1 =>  (0x00007fff18dce000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f3c17585000)
	libsnappy.so.1 => /usr/local/lib/libsnappy.so.1 (0x00007f3c1737e000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3c1707d000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3c16d81000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3c16b6b000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3c1694d000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3c1658e000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f3c17a23000)

Note that librt and snappy are both now referenced correctly, and I can use it from python successfully

Would you try building with new Makefile contained within this pull request:
https://github.com/basho/leveldb/pull/183
I attempted to incorporate your work with a general rewrite of the Makefile.  The ldd test on my Debian box matches your expected example.

Hi @matthewvon, pulled from the mv-make-makeover branch and rebuilt and can confirm that the dependencies include librt.so

Change merged into another PR and merged today.  Thank you.


[Bug] Unable to build the project, build instructions are likely outdated

Describe the bug
I followed the build instructions from README.md file, but was not able to execute mage build command successfully.
[user@tbd] ➜  ~/tbd/ssi-service git:(main) mage build                                                                                INSERT
Building project...
# github.com/TBD54566975/ssi-sdk/oidc/issuance
../../go/pkg/mod/github.com/!t!b!d54566975/ssi-sdk@v0.0.3-alpha.0.20230420000447-6d87cd195314/oidc/issuance/metadata.go:17:37: undefined: strings.CutPrefix
Error: running "go build -tags jwx_es256k ./..." failed with exit code 2

To Reproduce
Follow the build instructions
Expected behavior
Successful compilation.
Supporting Material
None
Environment (please complete the following information):

OS: Linux Fedora 37
Go: 1.19.8

Additional context
I think that the problem happens because CutPrefix function was introduced in Go version 1.20, whereas I have 1.19.8 installed, which is the latest version I can get for my OS with sudo dnf -y install go command.
Does ssi-service require Go 1.20, which is only 3 months old? If yes, then Developer prerequisites are out of date, because they indicate Go 1.17 as a requirement.  The README shows Go version 1.19.4.

Yes 1.20 is required. I'll update the docs. Thanks for flagging.

Thank you for confirming that 1.20 is the required Go version. After installing it, I no longer encounter the error.


extend() language feature is missing from 1.4

Feature is outlined here: http://www.lesscss.org/#-extend
Basic example
.first {
    width: 100%;
}
.second:extend(.first) {
    color: red;
}

should produce
.first,
.second {
    width: 100%;
}
.second {
    color: red;
}

This will compile, but will not produce the expected result. The compiled css looks exactly like the less. There is alternative syntax for this feature, which looks a bit like...
.first {
    width: 100%;
}
.second {
    color: red;
    &:extend(.first);
}

This throws an exception
Expected '}' but found ':' on line 6 in file [...]:
  [5] : color: red;
  [6] : &:extend(.first);
    ----^
  [7] : }
[Done - Failed]

Not sure this is working in latest package still. Spent quite a bit of time trying to figure out why extend isn't working and ran into this thread.
So this less:
.foo {
color: red;
}
.bar {
&:extend(.foo) {}
}
Is rendering to:
.foo {
color: red;
}
The extend is being completely ignored here. Any ideas how I can get around this? I even downloaded latest code, compiled, and dropped a fresh dotless.Compiler.exe in packages\dotless.<IP_ADDRESS>\tool. Still no luck.

@Felixking, I'm fairly sure that your problem is that your extender has no rules in the ruleset. Empty rulesets are ignored in the output.