yubikey-agent: init at 0.1.3

Motivation for this change
This adds yubikey-agent as a package and a nixos module.
The yubikey-agent is impure in how it calls pinentry; I tried patching
gopass to point at a particular pinentry but this changes the value of
vendorSha256 depending on the particular choice of pinentry program,
which felt frustratingly difficult.  Instead, we use wrapProgram to
set a default pinentry in PATH, and use a systemd override to prefix
PATH to select a chosen pinentry program if specified.
On linux, we need libnotify to provide the notify-send utility for
desktop notifications (such as "Waiting for Yubikey touch...").
The systemd unit a copy of the one in the upstream repo, in systemd.md:
https://github.com/FiloSottile/yubikey-agent/blob/master/systemd.md
This might work on other flavors of unix, but I haven't tested.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Is there any context/docs on why yubikey-agent is fine to discover pinentry from $PATH, whereas gpg-agent.conf insists on absoulte paths?
I did some digging in https://github.com/NixOS/nixpkgs/pull/90214#issuecomment-652487240, so would be nice to hear @FiloSottile's opinion on that as well :-)

@flokli thank you for your thorough review! I agree with most of your points and will update the PR.
Yes, the way pinentry is configured is weird and idiosyncratic.
The gnupg nix package sets a hardcoded absolute path to pinentry.  This works ok because programs like gpg-agent have a --pinentry-program command-line option to choose a different pinentry at runtime, as well as config file options and suchlike. This means that the gnupg nixos module can allow the user to configure their choice of pinentry program easily, even if the underlying gnupg package has a hardcoded pinentry path as a default value.
yubikey-agent pulls pinentry from PATH, and it does so in a 3rd party module (it's actually within gopass), which makes it incredibly awkward to patch an absolute path to pinentry instead.  yubikey-agent also offers no way to choose a pinentry program at runtime other than by putting the desired one first in PATH.  It has some code to dispatch to a different binary name on different OSes (pinentry.exe on windows, pinentry-mac on macOS, pinentry otherwise) but on non-macOS unixes it basically assumes the underlying distribution will provide an appropriate pinentry, in the PATH.  In fairness this is the case with most distributions, but with nix it's completely against the philosophy.
I'm not sure I can think of a better alternative.

I mean, we might want to open a discussion with the GnuPG people about why pinentry discovery there is the way it is, and why it's not defaulting to looking for it in $PATH if it's neither set in gpg-agent.conf, nor in --pinentry-program.
Discovering from $PATH for gpg as well might help (https://github.com/NixOS/nixpkgs/pull/90214#issuecomment-645270366), but it'd like to understand the reasoning on why it currently doesn't do that (and if yubikey-agent/pass doing differently is actually a footgun - if it's not, I'm all for adding it to its $PATH as suggested in https://github.com/NixOS/nixpkgs/pull/92936#discussion_r453308280).

Let’s assume we go with your proposal to just look for pinentry in PATH (for both gnupg and yubikey-agent). What happens if there is no pinentry anywhere on the PATH?

yubikey-agent intentionally doesn't have a config file. Would a PINENTRY env var work for you? Happy to add it.

Okay, I've pushed a couple of updates.  Key unresolved issues:

[ ] I agree that I should reuse the gnupg.agent.pinentryFlavor but i get an error
[ ] We need to decide how, and where, to configure pinentry

To expand on the pinentry discussion: as a starting point, I feel that a nix closure should contain everything it needs to function correctly.  This is why, in general, nix packages depend on other packages via absolute store paths and not via PATH.  If you have a dependency via PATH, that does not form part of the closure, and when you copy the closure to another system, you won't copy the dependency.
However, I can see how pinentry is a bit of a weird edge case: users might reasonably want to configure different types of pinentry, and they shouldn't have to install all the pinentries in order to use just one of them.
It's also worth noting that the dynamics on macOS are different: on macOS, there is only one pinentry implementation, and I think gnupg and yubikey-agent should just use it without any extra configuration.  But on Linux (and probably other unixes) it's useful to be able to dynamically choose a pinentry program.
I must confess I read some of the discussions that @flokli linked to above (such as https://github.com/NixOS/nixpkgs/pull/92936#discussion_r453308280) but it's really hard to get context by jumping partway through a conversation and chasing back through many linked issues so it's mostly going above my head.  But my understanding is: 1) gnupg has a baked-in pinentry choice, 2) gnupg allows users to choose a different pinentry at invocation time, 3) there is some desire (I don't know why) that gnupg should be able to use pinentry from PATH.  In any case, the design of gnupg sounds like a live issue, so we shouldn't assume the current gnupg packaging is the correct way to go.
Right now my feeling is:

on macOS, the built yubikey-agent binary should use pinentry-mac without any extra configuration
on Linux, the built yubikey-agent could just get whatever pinentry it finds in PATH, and we don't need to bake in a default.
if the gnupg side of the discussion is resolved, I'm happy to try to ensure yubikey-agent is consistent with it.

How does that sound?

@FiloSottile Thanks for the offer! I think we need to discuss things a bit further here but we may well take you up on this.

Added @rawkode as a maintainer, ref: https://github.com/NixOS/nixpkgs/pull/92965#issuecomment-657221939

I pushed another update.  I've pulled in the systemd unit from https://github.com/FiloSottile/yubikey-agent/pull/43 but the relative path trick gave me the error: Executable "yubikey-agent" not found in path "/nix/store/zzr1p57r1ii6y0gm7kycid0gkw1hskp3-systemd-245.6/bin/" so I still need to substitute the nix store path into it.
I have removed baking in pinentry to PATH, except on macOS where we bake in pinentry_mac since there's no other choice.
I still haven't come up with a solution to reusing the gpg-agent pinentry selection (see https://github.com/NixOS/nixpkgs/pull/92936#discussion_r454628056).

I pushed another update. I've pulled in the systemd unit from FiloSottile/yubikey-agent#43 but the relative path trick gave me the error: Executable "yubikey-agent" not found in path "/nix/store/zzr1p57r1ii6y0gm7kycid0gkw1hskp3-systemd-245.6/bin/" so I still need to substitute the nix store path into it.

Yeah, this is expected.systemd luckily doesn't pick up things from $PATH when setting just a binary name in ExecStart= but looks up from paths baked into systemd.
On NixOS, we set these to [$systemd/bin](https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/linux/systemd/default.nix#L68) only for reproducibility.

I have removed baking in pinentry to PATH, except on macOS where we bake in pinentry_mac since there's no other choice.

Is there not a native pinentry provided in $PATH?

I still haven't come up with a solution to reusing the gpg-agent pinentry selection (see #92936 (comment)).

Yeah, this is still somewhat pending. I'd probably prefer moving pinentry selection into a module both used from the gnupg module and this module over duplicating it…

Is there not a native pinentry provided in $PATH?

macOS doesn’t provide one, no. The user might have installed one via gpgtools or homebrew, but plain macOS doesn’t have a pinentry.

Is there not a native pinentry provided in $PATH?

macOS doesn’t provide one, no. The user might have installed one via gpgtools or homebrew, but plain macOS doesn’t have a pinentry.

@flokli I've just pushed an update.  It turns out the magic word I needed was mkMerge https://nixos.org/nixos/manual/#sec-option-definitions-merging
I think this resolves all the issues we had.  PTAL :smile:

I'm learning a lot from monitoring this, thank you for your persistence @philandstuff

@flokli pushed another update

This LGTM. I poked upstream for a new release containing the unit file in https://github.com/FiloSottile/yubikey-agent/pull/43#issuecomment-661380666, so we could avoid duplicating this.
cc @Ma27 on the pinentry changes.

Okay, let's merge this as-is. We can always move to the upstream-provided systemd unit, once there's a new release. :+1:
Thanks for your work!

Another problematic platform is i686.  I expect it would be OK not to build on unusual platforms unless it made default NixOS depend on the package.
I checked it's not fixed by #93850.  You test on x86_64 by building pkgsi686Linux.yubikey-agent.  Example failure on Hydra.  Almost all i686 NixOS tests are broken now.

@vcunat Uh, somehow I missed this was missing a mkIf cfg.enable, pulling in yubikey-agent unconditionally :facepalm:
PR at https://github.com/NixOS/nixpkgs/pull/93892.

The PR was merged, so we can try to fix i686 at a later time. I opened https://github.com/go-piv/piv-go/issues/76 for investigation.


Can't reload dates from incomplete months

Hello. Thanks for a great work. The problem I'm experiencing is similar to this issue which was closed a year ago.
When I call func reloadDates(_ dates: [Date]) for a date which doesn't belong to a current month, it's not reloaded: func calendar(_ calendar: JTAppleCalendarView, cellForItemAt date: Date, cellState: CellState, indexPath: IndexPath) -> JTAppleCell is not called.
UPDATE
The only problem is that it doesn't reload dates which don't belong to complete months.
Thanks,
Artem

I gave an answer here. Let me know.
https://github.com/patchthecode/JTAppleCalendar/issues/592

closing. We will track on #592


Task 4: Integration with Database

FE PR: https://github.com/siargei-stepanov/shop-car-front/pull/3
Done:

[x]  Created a DB in RDS service
[x] Prepared SQL script to fill the DB with sample data (db.sql)
[x] Integrated getProductsList and getProductById lambda functions with DB
[x] Implemented createProduct lambda function in integration with DB
[x] Return 400 status code if product data is invalid
[x] All lambdas return error 500 status code on any error
[x] All lambdas do console.log for each incoming requests and their arguments
[x] Transactions

API endpoints:

GetProductsList: GET: https://3xe5zb5ot5.execute-api.eu-west-1.amazonaws.com/products
GetProductById: GET: https://3xe5zb5ot5.execute-api.eu-west-1.amazonaws.com/products/bd43a441-ea29-44ac-844b-35fd412b159c
CreateProduct POST: https://3xe5zb5ot5.execute-api.eu-west-1.amazonaws.com/products
Sample product:
{"manufacturer": "Alfa Romeo", "model":"Giulietta", "img":"https://www.alfaromeo.am/wp-content/uploads/2019/12/Alfa-Romeo_Giulia_720x404.jpg", "price":"26000", "count":"7"}

FE:
https://d2tjeg0inghqta.cloudfront.net/

Hi @siargei-stepanov  we have 3 days till review deadline, so you still can implement transactions, for example
import { Pool, QueryConfig, QueryResult, PoolClient } from 'pg'

const pool = new Pool({
  host: process.env.DB_HOST,
  port: Number(process.env.DB_PORT),
  user: process.env.DB_USERNAME,
  password: process.env.DB_PASSWORD,
  database: process.env.DB_DATABASE,
})

export async function dbTransaction<Result = any>(execFn: (client: PoolClient) => Promise<Result>) {
  const client = await pool.connect()
  let res: Result
  try {
    await client.query('BEGIN')
    try {
      res = await execFn(client)
      await client.query('COMMIT')
    } catch (err) {
      await client.query('ROLLBACK')
      throw err
    }
  } finally {
    client.release()
  }
  return res
}

export async function dbQuery<Row = any>(query: string | QueryConfig<any[]>, values?: any[]) {
  return await dbTransaction<QueryResult<Row>>((client) => client.query(query, values))
}

and there is a CORS error when I try to create product via FE

and there is a CORS error when I try to create product via FE

I forgot to integrate the functionality of product creation on FE side. Will work on this.
But the API itself is working using Postman

@siargei-stepanov  don't worry, you still have time to update your repos to get more score point till task4 review deadline :)

@siargei-stepanov  about CORS - you can try this solution https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors-console.html

@siargei-stepanov about CORS - you can try this solution https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-cors-console.html

I've found how to fix the CORS issue properly, now it is correctly integrated into FE. The corresponding changes are already add to FE repo and link to the PR added to the description

@ambroseus you can check the updated code with transactions and CORS enabled. Thank you for your comments!


INTEGER type does't work while importing csv

Describe the bug
A clear and concise description of what the bug is.
it works at v10.0.0, but doesn't work at master branch
To Reproduce
Steps to reproduce the behavior:
echo "a\n1" > b.csv

➜  datafusion-cli git:(master) ✗ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.26s
     Running `target/debug/datafusion-cli`
DataFusion CLI v10.0.0
❯ create external table b (a INTEGER) stored as csv with header row location 'b.csv';
NotImplemented("The SQL data type Integer(None) is not implemented")

while this works
❯ create external table b (a INT) stored as csv with header row location 'b.csv';
0 rows in set. Query took 0.016 seconds.

Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

This is probably due to https://github.com/sqlparser-rs/sqlparser-rs/pull/525 --

As this is a regression it would be nice to fix before 11 -- I will do so


chore(protocol): airdrop contract emits ConfigChanged event

Can you please target this branch with name: airdrop-contracts ?
https://github.com/taikoxyz/taiko-mono/pull/16764
It is a separate branch from main as we modified the deployment and also the that the ERC20Airdrop acts as a vault, etc.


Adds support for label blocks

Fixes #408
Adds support for label blocks and using continue/break in them.
This survived extremely basic testing but could probably use more rigorous BYOND parity testing.

Reviews addressed


Trailing slash on search path before query params

Hey folks,
Was playing with opensearch and noticed that the url for a warehouse search is https://pypi.org/search/?q=hello with a trailing slash between the end of the path and start of the query parameters.
If you try https://pypi.org/search?q=hello, it returns the default search list as if no query params were given so just wanted to doublecheck that this was the intended behaviour?

Ah, this is because the redirection from no slash to slash isn't keeping the query string.

Thinking more, I bet it's vcl/main.vcl#L37-50 only expecting a search with a trailing slash. Allowing that to work without a trailing slash should fix it.


Feature/cleanup examples

This tidies up our examples to use common utility functions that i got tired of writing into other examples

@ProbablePrime,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Could you do the same to updateControl.ts too?


New sharethrough.com domain spotted

I've noticed that sharethrough.comis on several black lists (including StevenBlack/hosts/master/hosts) but this new asap subdomain is not.
asap.sharethrough.com appears to be used for what look like (android) SDK initialization pings.
I believe this makes it a good candidate for addition to the block lists.
EDIT: . I'd be happy to open my own PR if that's the preferred workflow

Thanks @kquinsland I've added asap.sharethrough.com and it will be live shortly.


W-16901784-rtf-october-release-kt

Writer's Quality Checklist
Before merging your PR, did you:

[ ] Run spell checker
[ ] Run link checker to check for broken xrefs
[ ] Check for orphan files
[ ] Perform a local build and do a final visual check of your content, including checking for:

Broken images
Dead links
Correct rendering of partials if they are used in your content
Formatting issues, such as:

Misnumbered ordered lists (steps) or incorrectly nested unordered lists
Messed up tables
Proper indentation
Correct header levels

[ ] Receive final review and signoff from:

Technical SME
Product Manager
Editor or peer reviewer
Reporter, if this content is in response to a reported issue (internal or external feedback)

[ ] If applicable, verify that the software actually got released

New 2.8 PR https://github.com/mulesoft/docs-runtime-fabric/pull/1345/files


Remove feature group from docs

@dcolligan

Seems like we're deleting too much here... we only want to remove references to feature groups

The first commit removes mention of feature group from hand written docs. The second removes docs created by @saupchurch which can now be generated automatically.

+1


Support (.tar).bz2 archives

E.g. https://github.com/xo/usql/releases/tag/v0.8.2.
Fixes #80.

I tried to install restic (https://github.com/restic/restic/releases/tag/v0.12.1) which is a bzip2ed binary. But I get following error:
$ bin install github.com/restic/restic
   • Getting latest release for restic/restic
   • Starting download of https://github.com/restic/restic/releases/download/v0.12.1/restic_0.12.1_linux_amd64.bz2
5.92 MiB / 5.92 MiB [------------------------------------------------------------------------------------------------------] 100.00% 102.02 MiB p/s 0s
   ⨯ command failed            error=Error installing binary: open /home/user/bin: file exists

So I wonder if bzip2ed binaries are not supported at the moment?

hey @korpa seems like the error that you're getting is because restic already exists. Have you tried doing bin update restic?

Hej @marcosnils,
No, it doesn't exist. Furthermore then the error would not be
⨯ command failed            error=Error installing binary: open /home/user/bin: file exists
but
⨯ command failed            error=Error installing binary: open /home/user/bin/restic: file exists
But I double checked it again:
$ cd ~/bin
$ ./restic
zsh: command not found: ./restic
$ ls ./restic
"./restic": No such file or directory (os error 2)
$  bin install github.com/restic/restic
   • Getting latest release for restic/restic
   • Starting download of https://github.com/restic/restic/releases/download/v0.12.1/restic_0.12.1_linux_amd64.bz2
5.92 MiB / 5.92 MiB [-------------------------------------------------------------------------------------------------------] 100.00% 23.83 MiB p/s 0s
   ⨯ command failed            error=Error installing binary: open /home/pauli/bin: file exists

But if you say it bzip2ed binaries like restic should work, the issue may be my bin "directory". Because it is not a directory but a symlink to ~/Workspace/dotfiles/bin.

But if you say it bzip2ed binaries like restic should work

I thought it was supported, but seems like it's not indeed. Also, we need to fix the error message as well.
Would you mind opening an issue to track it? If you want to give it a shot with a PR, we'd appreciate the contribution!

Just found what's happening. bin has support for .tar.bz2 files, but not just .bz2 files.
Definitely an "feature" we need to address. Mind adding that please?

I did a test in the meanwhile as well regarding the symlinked bin dir.
$ mv bin bin_bak
$ mkdir bin
$ install github.com/restic/restic
   • Getting latest release for restic/restic
   • Starting download of https://github.com/restic/restic/releases/download/v0.12.1/restic_0.12.1_linux_amd64.bz2
5.92 MiB / 5.92 MiB [--------------------------------------------------------------------------------------------------------] 100.00% 8.38 MiB p/s 1s
   ⨯ command failed            error=Error installing binary: open /home/user/bin: file exists

Same issue. So it is not the symlink.


[grid] grid-column-unposition

I'm not 100% sure I'm using this correctly, but I'm trying to do this:
.site-branding {
	@include grid-col(6);
	@include grid-column-position(center);

	@include breakpoint(medium) {
		@include grid-column-size(8);
	}

	@include breakpoint(large) {
		@include grid-column-size(3);
		@include grid-column-unposition();
	}
}

I was trying to have a small centered logo on small/medium and a smaller logo floating left on large. I expected grid-column-unposition to reset the position but it doesn't appear to add the float back. Am I using this correctly or is this a bug?

This is fixed in the develop branch: 34cb85622e459cae13aea90252a54fe8a18dc81d
We're releasing Foundation 6.2 on Friday, which will include this fix.


Updating the documents in the Data folder without re-deploying.

If the only thing I need to change is the documents in the Data folder, is there any way to update the app without taking it down and re-deploying from scratch?
This issue is for a: (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [X] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful

Thanks! We'll be in touch soon.

@pamelafox There's no question like "How can we upload additional PDFs without redeploying everything?" in FAQs.

That is now available in a standalone guide here: https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/data_ingestion.md#indexing-additional-documents


Page total backlink count shouldn't include within-page links

If I create a link between from heading A to heading B on the same page, this increments the count of links for the total page.  It seems to me that what should happen instead is that the A --> B link should not increment the page count, but should increment the count of links to heading B

Agreed! The total note count should only show backlinks from other notes, and thus should mirror the Linked mentions count in the core Backlinks pane.

Thank you for your feedback; it is much appreciated. I agree with you, but others consider a link a link, no matter where it is, so they want to see it in their workflow.
SNW isn't a replacement for the backlinks side pane, which gives you the view you are discussing, SNW compliments it.


Add a !help command

add an actual help command that doesn't require you to click on a link. If you want I can type it up and pass it over to you.

Or perhaps have it DM you instead? Good idea.

Yeah. Like I said, I can type it up.

Sure, you can do that. We'll take a look at it.

Fun
!color [Color] Sets your color. If no color is specified, removes your color.
e.g. !color green
!colors Lists the available colors on this server.
!tag Lists the tags on this server.
!tag [Name] Returns the specified tag.
!tag test
!tag [Name] [Contents] Sets the tag to the specified contents.
e.g. !tag test hello this is a test
Moderation
NOTE: Garmbot’s moderation tools are still a work-in-progress.
!warn [User] [Reason] Warns the given user with the specified reason.
Configuration
!addcolor [Color] Adds the given roles to the list of self-assignable colors. Each role must be @mentionable when this command is run, but they don’t need to be mentionable after they are added.
e.g. !addcolor @blue @red @green @yellow
Something like this?


raise RuntimeError for not allowed model properties

As stated by issue #198, a model property named properties is not correctly handled by couchrest_model.
In This line, properties from model is clashing with properties from the object itself. The fix is not straightforward and for now I'm proposing an exception guard.
This PR raises an RuntimeError in an attempt of use properties as a model property.

Thank you @csgui for providing a visible exception.
+1


Update UG, DG, and index with new info

Codecov Report
Base: 72.10% // Head: 72.10% // No change to project coverage :thumbsup:

Coverage data is based on head (8ec1cbf) compared to base (6f05295).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #75   +/-   ##
=========================================
  Coverage     72.10%   72.10%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1233     1233
  Branches        125      125
=========================================
  Hits            889      889
  Misses          312      312
  Partials         32       32

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Upgrading libevent to latest commit

Upgrading libevent to solve phantom event bug - an event that was triggered after closing connections.
Risk Level: Low-medium - basic functionality hasn’t changed, but there might be a few corner cases and performance that will be affected.
Testing: None added
Signed-off-by: Adi Suissa-Peleg<EMAIL_ADDRESS>

If you think of any benchmarks that should be run, I'm happy to do so.

This looks like legit breakage upstream to the windows platform. We can investigate this early this week, should have an answer at some point today or tomorrow.

Thanks @wrowe!
Will do so, and resubmit.


OneDrive

Can this tool migrate file share content to work OneDrive accounts?
https://danfoss-my.sharepoint.com/personal/username_company_com/_layouts/15/onedrive.aspx

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

ID: 08bbc47b-020e-8837-3f2f-f2911eec8476
Version Independent ID: 7d392968-5ee9-7fab-323f-98cd54097fd3
Content: Migration Manager FAQs - Migrate to SharePoint and OneDrive
Content Source: migration/mm-faqs.md
Service: sharepoint-online
GitHub Login: @JoanneHendrickson
Microsoft Alias: jhendr

@robertcaretta thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.

I'd also like this answered. I don't expect to be told to go find out the info myself when submitting feedback to the document that should answer this question.

This is a FAQ page and robertcaretta asked what is I suspect a very frequently asked question.
@scanum  Product capabilities are not part of the remit of support.  This isn't an incident or troubleshooting request. It is related to the features of the product which should be documented within these support pages. You should be ashamed for such an unhelpful copy+paste response, that is also not the role of you on these pages!
@robertcaretta + @stalks - Yes the Migration Manager tool can migrate to: a SharePoint site, OneDrive or Teams location
It is not documented here (most likely because people like scanum do not understand that this is their role) but you can see it within the Migration Manager wizard.

can i use JSON or csv to mass migrate data from user folders in sharepoint to their onedrive in the same tenant?
source : sharepoint/folder
destination onedrive_user/folder


Discussion / Draft note

Foreword

Backend for a bank is sophisticated yet involving a lot of technical details to pursue program correctness.
Most of the bank is using "boring" technologies because it is already there for several decades, and is battle-tested as people are using it daily.
From the bigger picture, I think the core of the application for bank's backend can be interesting too.
We choose Haskell as our primary language because it can allow us to abstract ideas and express the models with minimal syntax noise. (but you may need lots of prerequisite knowledge)

Domain-Driven Design
Modelling
Three layer cakes of Haskell
Architecture Design from Capital Match

分开 Domain -> Model
分开 State 和 Controller

Separation of business logic and effects (I/O database queries and API request/response)
Emphasize domain concept


SynologyDSM sensor fails to load

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.34.4
Python release (python3 --version):
python 3.5.2
Component/platform:
Sensor/SynologyDSM
Description of problem:
SynologyDSM fails to load because storage() isn't callable
Expected:
The storage volumes being loaded.
Problem-relevant configuration.yaml entries and steps to reproduce:
Here is the SynologyDSM code currently
        volumes = config['volumes']
        if volumes is None:
            volumes = api.storage().volumes

Traceback (if applicable):
16-12-13 07:08:00 homeassistant.core: Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/hass/lib/python3.5/site-packages/homeassistant/components/sensor/synologydsm.py", line 110, in run_setup
    volumes = api.storage().volumes
TypeError: 'SynoStorage' object is not callable

Additional info:
from SynologyDSM import SynologyDSM
api = SynologyDSM('xxxx.example.com', 5000,
          'xxxx', 'xxxxxxxxxxxx')

volumes = api.storage.volumes
print volumes

The above code seems to work (pulling the volumes), but the code in hass also worked at some point until .34. I don't know why it suddenly became not callable.

Hi, I have the same problem. I think commit 9b9b625ac4d864deb5ebf85211a6835ff4c82acc by @balloob that went into 0.34.1 broke it because it removed the storage method of the SynoApi class (which is distinct from the storage property of the SynologyDSM class). I guess api.storage().volumes should be changed to api._api.storage.volumes (haven't tried it out though).

It's just no longer a method. Try api.storage.volumes on both line 110 and 120.

I guess api.storage().volumes should be changed to api._api.storage.volumes (haven't tried it out though).

this worked, had to do it to disks on line 122 as well.

Try api.storage.volumes on both line 110 and 120.

this did not work

Are you running 0.35? This problem is already fixed.


Remove from blockers list

Hello,
I am reaching out to ask that you to please remove rollbar.com from your blocked list since it's a legit developer tool and not a malicious or advertising tool.

I second this, Rollbar.com is a error tracking service, not a spam tool.

I'm opening a PR to remove *.rollbar.com from blacklist.

Hello Letania @letaniaferreira, Thaynã @izn, and Gustavo @gustavodiel.
Here is our prior discussion about Rollbar, which explains why Rollbar is presently blocked.  This was not an easy call.  Rollbar is an edge case and this is where we've drawn the line.
That said, I'm open to be convinced otherwise.  In particular, is there a Rollbar privacy policy, or an ethical facet that we may have missed?
It's helpful to consider, this hosts list is for people who just don't want to be tracked, ad-bombed,  phished, or everything else.

Thanks for your quick reply, @StevenBlack.
I think we should start a discussion about the Rollbar's Privacy Policy: https://docs.rollbar.com/docs/privacy-policy
Although, particularly, the biggest problem I see is in the [hblock repository)(https://github.com/hectorm/hblock) which uses your repository as a source - since this application is pre-installed on some Linux distributions (such as ArcoLinux), Rollbar's website and API are blocked "by default". I'm not sure if we should update hblock or remove from your blacklist. I'm open to suggestions.

My suggestion would be to open rollbar.com and/or www.rollbar.com and leave api.rollbar.com, as I am almost certain that every tracking is made via the api domain.
This leaves us with a good balance between accessing the service and stopping the tracking. WDYT?

If we're sure that Rollbar's tracking is made only through api.rollbar.com, I agree with @gustavodiel. :grimacing:

Thaynã @izn if you make this change to the PR then I'll merge it.

I will update the PR now, removing only the api.rollbar.com entry.

Done.


Mysql insert statement with functions

Can you please help me to generate mentioned below insert statement in node syntax , I want to use md5 while inserting into database
insert into user(user_id,username,password) values ( NULL,'f',md5('t')).
connection.query('INSERT INTO user SET ?', user, function(err, result) {}

I recommend to set the query string before, something like:
var query = 'INSERT INTO user SET password=MD5(?), ?';
connection.query(query, ['supersecret', user], function (err, result) {});

where 'user' can be a json object without password key, to avoid error
hope this can help you!

Hi @ashishkhanna , I hope @uribes78 was able to help you :) If you are looking for a library that provides advanced SQL constructing, a good one is the https://hiddentao.com/squel/ library.

Thanks a ton for your help
Thanks & regards,
Ashish Khanna
On 22-Sep-2016 4:48 AM, "Douglas Wilson"<EMAIL_ADDRESS>wrote:

Hi @ashishkhanna https://github.com/ashishkhanna , I hope @uribes78
https://github.com/uribes78 was able to help you :) If you are looking
for a library that provides advanced SQL constructing, a good one is the
https://hiddentao.com/squel/ library.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mysqljs/mysql/issues/1470#issuecomment-248771174, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEB1DFjAoZm7IfNuDKRbnkq5DzGjydEaks5qsbtGgaJpZM4JJGyl
.


libth_transformer.so: cannot open shared object file: No such file or directory

While running the below command, i am facing errors. please advise.
python3 ./FasterTransformer/examples/pytorch/t5/summarization.py --ft_model_location  t5-v1_1-base/c-models/ --hf_model_location t5-v1_1-base/ --test_ft --test_hf
[INFO] load HF model spend 4.947393 sec
[INFO] MPI is not available in this PyTorch build.
[INFO] MPI is not available in this PyTorch build.

Traceback (most recent call last):
File "./FasterTransformer/examples/pytorch/t5/summarization.py", line 404, in
main()
File "./FasterTransformer/examples/pytorch/t5/summarization.py", line 200, in main
ft_encoder = FTT5Encoder(ft_encoder_weight.w, args.lib_path, encoder_config.num_heads,
File "~FasterTransformer/examples/pytorch/t5/../../../examples/pytorch/t5/utils/ft_encoder.py", line 380, in init
torch.classes.load_library(lib_path)
File "~anaconda3/envs/nlp_dev/lib/python3.8/site-packages/torch/_classes.py", line 51, in load_library
torch.ops.load_library(path)
File "~anaconda3/envs/nlp_dev/lib/python3.8/site-packages/torch/_ops.py", line 573, in load_library
ctypes.CDLL(path)
File "~anaconda3/envs/nlp_dev/lib/python3.8/ctypes/init.py", line 373, in init
self._handle = _dlopen(self._name, mode)
OSError: ~smart_nation/nlp/lib/libth_transformer.so: cannot open shared object file: No such file or directory

Hi, I solved this problem.
Firstly, you should check if libth_transformer.so is in ~smart_nation/nlp/lib/libth_transformer.so, if not you should find it first,
you can use find -name libth_transformer.so in root dir of FasterTransformer
If you can't find this file, you might delete the build dir, then re-run cmake ... make...
Then you can check your building log if there is libth_transformer.so

Finally, I find this file in FasterTransformer/build/lib/libth_transformer.so, then you can change the lib_path in you file and rerun your python command.
Hope this can be helpful.

Thank you for the reply. I am able to rebuild it but unfortnately, there is no libth_transformer.so.....is created with an other name?

is it possible to share your libth_transformer.so?

Thank you for the reply. I am able to rebuild it but unfortnately, there is no libth_transformer.so.....is created with an other name?

After you executing "make ...", you shoud check if there is an indication showing that your compilation was successful.  Is there a notification circled in red

is it possible to share your libth_transformer.so?

I am willing to share, but I am afraid it can't work, since its compliation depending on the env and we might have different env. my env is pytorch1.10, cuda11.1

Thank you for your kind reply. No issues. I will use it with pytorch 1.10 and cuda 11.1
Additionally, if possible please share the same code of that release. I will try to build at my own. Much appreciated your help and support.

Can the lib_path be set as a relative path, or an absolute path?
I've tried both, but couldn't make it to work.
The file libth_transformer.so is there alright, but can't make the machine ID it...

May be your build command is wrong. Can you share your build command？

There was an issue while remaking the library...
I've seen CUDA compatibility issues with FT, but I can't seem to find the post that I've seen.
I was using CUDA11.8, and I think that was the issue.
Environment setups are so frustrating :(

I'm running into this issue too. What are the build and make commands you are running?

I'm running into this issue too. Build is successful and I can see the libth_transformer.so file in build/lib folder, but I'm not sure why it's not detecting it. I am running bart translate_example.py. I have tried multiple times and have provide both relative and absolute path, still nothing.
Env: pytorch - 1.13.0, cuda version - 11.4, RTX 3080 Ti
OSError: /workspace/FasterTransformer/build/lib/libth_transfomer.so: cannot open shared object file: No such file or directory
Can anyone please help, Been stuck at it for a long time

maybe you need build the fasterTransformers with -DBUILD_PYT=ON, eg:
cmake -DSM=80 -DCMAKE_BUILD_TYPE=Release -DBUILD_MULTI_GPU=ON -DBUILD_PYT=ON ..

@arnab-photon

according to the reference by Nvidia-/fastertransformer
you may change into the dir of /FasterTransformer/examples/pytorch/bert and run python bert_example .... , then you cnonnt find the /examples/pytorch/bert/lib/libth_transformer.so
you need to follow the instruction totally by in dir of /FasterTransformer/build and run python ../examples/pytorch/bert/bert_example.py 1 12 32 12 64 --data_type fp16 --time

Wish this can be helpful !  :)


Access the sample data locally

I am trying tick on windows 7  at work behind a firewall and would like to go through the examples on the docs first. I get an error with the last 2 lines =
  File "E:\anaconda3\lib\urllib\request.py", line 1320, in do_open
    raise URLError(err)

URLError: <urlopen error [Errno 11004] getaddrinfo failed>

It's probably because I am behind a firewall...
It would be great if we could access the files locally, especially that I can clone the actual repo in

https://github.com/X-DataInitiative/tick-datasets

tick-datasets downloads are cached locally on your machine (https://github.com/X-DataInitiative/tick/blob/master/tick/dataset/download_helper.py#L79)
You can probably hack the cache by downloading the file manually and store it in the correct directory.
For example, for Hawkesbund data, you can try to download this file manually (https://github.com/X-DataInitiative/tick-datasets/blob/master/hawkes/bund/bund.npz)
and store it in $HOME/tick_datasets/hawkes/bund

excellent. I cloned the whole library, so I can just copy that.
I am trying something else. The actual function fetch_hawkes_bund_data() has dataset = 'hawkes/bund/bund.npz' hardcoded. I can just change that.

Yes but then it is given to fetch_tick_dataset which will look at $HOME/tick_datasets/hawkes/bund/bund.npz
(https://github.com/X-DataInitiative/tick/blob/master/tick/dataset/fetch_hawkes_data.py#L24)

Got it. I read def fetch_tick_dataset(dataset_path, data_home=None, verbose=True). when the data is local it does not copy to the $HOME/tick_datasets/ folder which is cool.  My preference is to overwrite  fetch_hawkes_bund_data` and add the local path. It's just easier and I don't write anything to my user profile (writing to the user profile is not a good idea in general and we have limited space on it here).

It makes sense indeed. If you want to avoid overriding anything you can use TICK_DATASETS environment variable. It's a bit hidden in the doc but it will store and load your dataset from $TICK_DATASETS/tick_datasets/hawkes/bund/bund.npz instead of $HOME/tick_datasets/hawkes/bund/bund.npz
(cf https://github.com/X-DataInitiative/tick/blob/master/tick/dataset/download_helper.py#L158)

sweet. thanks!


Extend Example to show Pagination with a DataLoader

Request:
Update the example to include pagination in combination with a dataloader.
Issue:
Bootstrapping pagination into the data loader is proving to be a bit difficult to grok based on the documentation. There is an example provided by @paulbakker here with the connection serialisation carried out manually, but is less clear when using the SimpleListConnection type that is leveraged by the codegeneration tools in the documentation.
A canonical end-to-end example would be very useful!
Edit:
I ended up working this out. You can simply wrap the response from the data loader in something like:
      return dataLoader.load(id).thenApply{
          SimpleListConnection(it ?: emptyList()).get(environment)
      }

If I get time after the christmas break, I'll create a fork/pr to add relay connections into the example to make it more complete

Closing from inactivity.


kclient: support patch operation

Inspired by https://github.com/istio/istio/pull/48818 (and I have a PR that will use it as well)

you need to update type Writer[T controllers.Object] interface { as well
I am confused. I did?


Bump kramdown to 2.3.0

Addresses a CVE: https://github.com/remind101/r101-api/network/alert/Gemfile.lock/kramdown/open
Related To
https://github.com/remind101/r101-api/pull/15114
https://github.com/remind101/r101-api/pull/15119
https://github.com/kramdown/parser-gfm

@hharaguc what would be really helpful is what the major change is between 1.x and 2.x and if there is anything we are using is breaking?

@virtue3 it looked like the biggest difference was that they moved the GFM parser out of the kramdown distribution (https://github.com/kramdown/parser-gfm#kramdown-gfm-parser). it looks like this is the only place we use kramdown. this line will fail to recognize the GFM input with the kramdown bump to 2.x if we don't add the parser too (you can see this in the CI output for the r101-api dependabot PR (here)[https://app.circleci.com/pipelines/github/remind101/r101-api/2114/workflows/22b3757d-270d-47c4-a4c8-6efac6db9b3e/jobs/181178])

Yeah I think we're goign to need to add that GFM parser and include it at the top of the file?

@virtue3 yep! latest commit should take care of that

I think you need to bump the .gemspec file as well

paired with @virtue3 on this, we're down to give it a whirl. even if things hit the fan, this will only block deployments (which are already blocked by the CVE) - this won't affect prod since there's already a built image for it


A small overhaul of the way MN list/stats UI and data are tied together

Changes:

use wallet/client models instead of direct access from UI to pwalletMain and deterministicMNManager respectively (should help to decouple wallet and node code in the future);
use signals instead of timers to update mn list/stats in UI (there are no "live" updates anymore thanks to DMNL, so we can finally implement this correctly).

👍
Applied review suggestions.


Missing autocompletion options

When using the sum() operator there should maybe also be operations like < or > in the suggestions

Its in review: https://github.com/Universal-Variability-Language/uvl-lsp/pull/67
Its actually ready to merge

Fixed by #67


Energy stats recorder not working after update 2024.5.2

Describe the bug
Stats are empty since the update.
recording:rconsumedenergyexternal
recording:reheaterexternal
recording:rcompressorexternal
recording:routputproducedexternal
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.

Version

HA version 2024.5.2
HA Bosch component version latest
Python Bosch HTTP client version?

** Debug SCAN **
** IMPORTANT **
Go to Developer tools in Home Assistant, choose Service tab and choose bosch.debug_scan
Download file to your computer and upload it somewhere eg. https://jsonblob.com/
Additional context
Add any other context about the problem here.

Stats are not working in 2024.5. You'd have to wait till June as I don't have time right now :(

Ok Thanks for Your great work. I will wait.

I'm patient @pszafer ! thank you so much for taking care of this :-)

Change init.py 2 place and restat HA. Work for me

Hi, @alaraun made a fix for us!
Let's test it with https://github.com/bosch-thermostat/home-assistant-bosch-custom-component/releases/tag/v0.25.2
I'll reopen if it won't work.


Slowness in generating running config after upgrading from Likewise/PBIS v6.1 to v8.5

Hi Experts,
Our customer reported an issue with slowness when executing ‘show running-config’ and related CLIs after joining to Windows Domain.
The CLI binary is using "getpwent()" API for getting user and password information from the user database when showing the user configuration.
When customer is executing the CLIs like ‘show running-config’ and ‘write memory’ , it is taking 90-120 seconds to get the user information only after joining to a Windows domain controller. When we leave from the Domain controller, the slowness is not seen.
From analysis, ‘show running-config’ cli is using "getpwent()" API to get the user information and checks the validity of each users which is causing the slowness. The customer is having user database of more than 50k users. So it is taking more time to complete the operation.
This slowness is seen only after Likewise package upgrade done from v6.1 to v8.5 in our product, and not seen in the earlier builds.
The interesting part is after a device reload, it is not getting the user details from Domain Controller and therefore slowness is not there.
Could you please let us know if there is any patch/solution that can fix this problem in Likewise/PBIS v8.5
Thanks,
Kiran

Hi Experts,
Our Development Engineer has made some progress on this , and he could narrow down the issue to a config variable "NssEnumerationEnabled", which is ENABLED in LikeWise/PBIS 8.5, but DISABLED in LikeWise 6.1, which is causing this problem.
If he disables this explicitly on 8.5 version, issue is never hit, but we are not aware of the consequences of doing the same.
Could you please shed some light on this, and if you are aware of any patches that could address this issue for us.
Thanks,
Kiran

Hi,
Glad you made progress with that.  Disabling that is mentioned in the Best Practices Guide on page 12.
It does basically what you discovered; internally ad bridge will ignore nss enumeration requests. Singular lookups work fine and our own enumeration methods work.

Thanks a lot for your kind response.
Any reason why the issue is not noticed post a reload of the device, until we un-join and re-join the domain again ?

Hi,
We added the below fix, and it looked like the issue sorted out.

Index: likewise-8.5.3/lsass/etc/lsassd.reg.in
===================================================================
--- likewise-8.5.3.orig/lsass/etc/lsassd.reg.in
+++ likewise-8.5.3/lsass/etc/lsassd.reg.in
@@ -239,7 +239,7 @@

 doc = "Whether to return only cached info for NSS user's groups"

}
"NssEnumerationEnabled" = {

default = dword:@ENABLE_NSS_ENUM_DEFAULT_DWORD@

default = dword:00000000

 doc = "Whether to enumerate users or groups for NSS"

 range = boolean

}

But our Test team started seeing the same problem again post a reload of the device, and performing a Domain Unjoin & Rejoin operation on the device, and face the same issue.
What we observed here is, there is a linux file "/etc/nsswitch.conf" which is having below contents :
passwd:     files lsass
shadow:     files
group:      files lsass
And when modified this file to below order, the issue goes away.
passwd:     lsass files
shadow:     files
group:      lsass files
One thing we noticed is before changing the order of the files, we see multiple users with "show users administrative" CLI, and we notice only one "admin" user after the ordering changed.
We think The /etc/nsswitch.conf file was modified by likewise code when we do domain join.
The nsswitch is the module which is enabled in default. So it is adding the entry ‘lsass’ entry in /etc.nsswitch.conf file when we do domain join via cli. There is no change in domain join configuration.
Another interesting point is, we have the same content of  /etc/nsswitch.conf in earlier version of likewise used (v6.1), but we dont see many users in "show users administrative clis", and we dont see slowness is there.
Kindly help in this regard, in case of any additional patch is missing in Likewise Version v8.5 we are using, that will address this problem completely.
Thanks,
Kiran

A lot of these changes since 6.5 took place to address compatibility and security over performance.
pbis-open will longer receive updates and will be archived. Closing all outstanding issues. Please consider BeyondTrust Active Directory Bridge for continued support.
https://www.beyondtrust.com/privilege-management/active-directory-bridge


AttributeError

Habitat-Lab and Habitat-Sim versions
Habitat-Lab: 0.3.0
Habitat-Sim: 0.3.0
AttributeError: 'habitat_sim._ext.habitat_sim_bindings.ManagedBulle' object has no attribute 'creation_attributes'

i met the same problem in 'conda install habitat-sim withbullet -c conda-forge -c aihabitat'
and running on 'python examples/interactive_play.py --never-end'

I also got a same error after executing below.
HABITAT_SIM_LOG=warning MAGNUM_LOG=warning
python examples/hitl/basic_viewer/basic_viewer.py habitat_hitl.episodes_filter='0 2 4 10:15 1000:4000:500'

Just download newest version for sim and lab both!

"Note, for newer features added after the most recent release, you may need to install aihabitat-nightly. See Habitat-Sim's installation instructions for more details."
"We also provide a nightly conda build for the main branch. However, this should only be used if you need a specific feature not yet in the latest release version. To get the nightly build of the latest main, simply swap -c aihabitat for -c aihabitat-nightly."
So I install aihabitat-nightly:
conda install habitat-sim withbullet -c conda-forge -c aihabitat-nightly
the problem is solved.


Doesn't notify if a URL if it is inaccessible

Describe the bug
I am using ChangeDetection to watch if a website is online or not, so that I can perform maintenance if it goes offline. This is a local site, not public. ChangeDetection successfully has access to the URL when the page is online, however when the page is offline (due to the docker container that hosts that page is offline), ChangeDetection provides an Exception and then does not notify me using the saved and tested notification method.
Exception: HTTPConnectionPool(host='browser-chrome', port=4444):
Max retries exceeded with url: /wd/hub/session
(Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7e1deeb39d10>:
Failed to establish a new connection: [Errno -2] Name or service not known'))

Version
v0.46.04
To Reproduce
Steps to reproduce the behavior:

Watch a localhost URL that is accessible, then take that page down and Recheck in CD.
1b. If that's not possible, watch a website that does not exist, for instance: http://doesnotexist.com. I believe this will suffice as providing the same test environment.
Notice that the notifications do not send to a destination.

Expected behavior
I believe ChangeDetection should send a notification when the page cannot be accessed. If this is not yet a feature, then it should be added, as this is a valid need for an app that detections changes.
Desktop (please complete the following information):

OS: Docker container
Browser: Basic Plaintext/HTTP client

reads like duplicate of PR in progess https://github.com/dgtlmoon/changedetection.io/pull/1945


initialVideoId value

@sarbagyastha Thank you very much for dense effort.
I have an issue or a question about initialVideoId value. I have a video list. First moment entering the page, when I click a video(from my list), initialVideo is trying to play.
If I click again, my video (from my list) is playing... I don't intend to play initial video?
How to
Best regards

@SayaGames couldn't get you. Could you please explain with examples.

In the videosScreen.dart: (page newly loaded)
I have a ListView contains videos.
In the ListTile onTap event I call below:
      _controller.load(YoutubePlayer.convertUrlToId(**videoUrl1**),startAt: 0);
      if (_isPlayerReady) {
        _controller.play();
      }

The first time onTap clicked, initialVideo is shown (I expect videoUrl1 displayed).  afterwards clicks to list of the videos display proper video in the listView

@SayaGames Have you checked the example app ?

Yes I checked the example.
My case is a bit different:
I set the initialVideoID. After the later process, I want to display videos.
my code:
YoutubePlayerController _controller;
void initState() {
_controller = YoutubePlayerController(
initialVideoId: 'P7_xSbY-lDs',
flags: YoutubePlayerFlags(
mute: false,
autoPlay: true,
disableDragSeek: false,
loop: false,
isLive: false,
forceHideAnnotation: true,
hideControls: false
),
)..addListener(listener);
_videoMetaData = YoutubeMetaData();
_playerState = PlayerState.unknown;
}
void listener() {
if (_isPlayerReady && mounted && !_controller.value.isFullScreen) {
setState(() {
_playerState = _controller.value.playerState;
_videoMetaData = _controller.metadata;
});
}
}

@SayaGames A sample app would be helpful.

I created list of YoutubePlayerController  up to number of my videos.
List _controllers = [];
categoryURLSByCategory.forEach((f){
_controllers.add(YoutubePlayerController(
initialVideoId: f,
flags: YoutubePlayerFlags(
mute: false,
autoPlay: true,
disableDragSeek: false,
loop: false,
isLive: false,
forceHideAnnotation: true,
hideControls: false
),
)..addListener(listener));
});
Because of I have One player:
YoutubePlayer(
key: ObjectKey(_controllers[cIndex]),
controller: _controllers[cIndex],
showVideoProgressIndicator: true,
progressIndicatorColor: Colors.red,
topActions: [
Expanded(
child: Text(
_controllers[cIndex].metadata.title,
style: TextStyle(
color: Colors.white,
fontSize: 18.0,
),
overflow: TextOverflow.ellipsis,
maxLines: 1,
),
),
],
          onReady: () {
            _isPlayerReady = true;
          },
          onEnded: (id) {

    });
            _controllers[cIndex].load(YoutubePlayer.convertUrlToId(globals.url));
            if (_isPlayerReady) {
              _controllers[cIndex].play();
            }
          },
        ),

So my issue is resolved. Thank you very much.

Great!


F13 through pass dispatcher into Discord not working from certain windows

Hyprland Version
Hyprland, built from branch  at commit v0.31.0  (). Tag:  flags: (if any) debug
Bug or Regression?
Bug
Description
Using the following line in my config I can use F13 as my push to talk key in Discord. When I have st focused F13 activates my push to talk as it should, but I've noticed that in Firefox or pavucontrol it doesn't. If I change the hotkey to F8 then it seems to work everywhere, as I'd expect.
bind = ,F13,pass,^(discord)$

I noticed this in the wiki:
XWayland is a bit wonky. Make sure that what you’re passing is a “global Xorg keybind”, otherwise passing from a different XWayland app may not work.

It works flawlessly with all native Wayland applications though.

How exactly do I know if a window is from xwayland? I have MOZ_ENABLE_WAYLAND set for Firefox, but I'm not 100% convinced that's working. I'm also not clear on what a "global Xorg keybind" really means.
How to reproduce
Add this to the config
bind = ,F13,pass,^(discord)$

Focus pavucontrol. Press F13. Discord doesn't "buh-dum" from push to talk. Be sad.
Crash reports, logs, images, videos
No response

Uh, actually maybe the line in my config isn't working at all. st is almost certainly an xwayland app because I can choose it as a window to screen share in Discord with it's native ui. There's a chance this could be related to something else. Possibly keyd, since it's mapping my capslock key to F13 for me.
F13 has always shown in Discord as UNK191 for me. I wonder if I need to tell hyprland that weird keycode somehow.

AHA sorry! I'm closing this.
wev just told me that my capslock key (mapped to F13 in keyd) was emitting "XF86Tools". I updated my hyprland config to the following and everything is working now.
bind = ,XF86Tools,pass,^(discord)$


Add dockerhub_adapter tests to increase coverage

Pull Request Test Coverage Report for Build 407

5 of 5 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+2.6%) to 60.184%

Totals

Change from base Build 403:
2.6%

Covered Lines:
3014

Relevant Lines:
5008

💛  - Coveralls

dockerhub_adapter.go has 0.8% coverage in master. The above tests increase that coverage to 76.0%. Covers most of the happy path.

@dymurray @shawn-hurley removed the rogue printf statement. thanks for catching that.


unsynchronized newlib uintptr_t and PRIxPTR definition on xtensa

Describe the bug
This seems to only affect Xtensa, I can only reproduce this with qemu_xtensa.
This assertion:
/* Just like Z_MEM_VIRT_ADDR() but with type safety and assertions */
static inline void *z_mem_virt_addr(uintptr_t phys)
{
	__ASSERT((phys >= CONFIG_SRAM_BASE_ADDRESS) &&
		 (phys < (CONFIG_SRAM_BASE_ADDRESS +
			  (CONFIG_SRAM_SIZE * 1024UL))),
		 "physical address 0x%" PRIxPTR " not in RAM", phys);

	return (void *)Z_MEM_VIRT_ADDR(phys);
}

produces:
/home/apboie/projects/zephyr/zephyr/include/sys/mem_manage.h: In function 'z_mem_virt_addr':
/home/apboie/projects/zephyr/zephyr/include/sys/__assert.h:32:52: error: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'uintptr_t' {aka 'long unsigned int'} [-Werror=format=]
   32 | #define __ASSERT_MSG_INFO(fmt, ...) __ASSERT_PRINT("\t" fmt "\n", ##__VA_ARGS__)
      |                                                    ^~~~
/home/apboie/projects/zephyr/zephyr/include/sys/__assert.h:24:41: note: in definition of macro '__ASSERT_PRINT'
   24 | #define __ASSERT_PRINT(fmt, ...) printk(fmt, ##__VA_ARGS__)
      |                                         ^~~
/home/apboie/projects/zephyr/zephyr/include/sys/__assert.h:96:4: note: in expansion of macro '__ASSERT_MSG_INFO'
   96 |    __ASSERT_MSG_INFO(fmt, ##__VA_ARGS__);            \
      |    ^~~~~~~~~~~~~~~~~
/home/apboie/projects/zephyr/zephyr/include/sys/mem_manage.h:156:2: note: in expansion of macro '__ASSERT'
  156 |  __ASSERT((phys >= CONFIG_SRAM_BASE_ADDRESS) &&
      |  ^~~~~~~~
cc1: all warnings being treated as errors

Expected behavior
The definitions of uintptr_t and PRIxPTR (and really any PRI.PTR) are in sync such that you get the right printf code for it.
Impact
Ugly workaround to hard-cast everything to just unsigned long which I'd rather not do.

I tried it with the following code added in hello_world:
        uintptr_t ptr = 0xDEADBEEF;

        printk("Hello World! %s\n", CONFIG_BOARD);

        printk("0x%" PRIxPTR "\n", ptr);

        __ASSERT(0, "0x%" PRIxPTR "\n", ptr);

And it compiled and ran on qemu_xtensa:
*** Booting Zephyr OS build zephyr-v2.3.0-1204-g80c2a751ffb8  ***
Hello World! qemu_xtensa
0xdeadbeef
ASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/samples/hello_world/src/main.c:20
	0xdeadbeef

@ WEST_TOPDIR/zephyr/lib/os/assert.c:45
QEMU: Terminated

But with newlib, PRIxPTR is x instead of lx. Need to look at SDK to see how it is being done.

Fixed by https://github.com/zephyrproject-rtos/sdk-ng/pull/257

@dcpleung / @andrewboie  what's the urgency of a toolchain SDK with this fix?  Trying to see if we need a 0.11.5 or does this wait for 0.12.x.

@dcpleung / @andrewboie what's the urgency of a toolchain SDK with this fix? Trying to see if we need a 0.11.5 or does this wait for 0.12.x.

I worked around it for the code I was working on with some casts to unsigned long, unless somebody complains about that in #27001 this isn't urgent.

This will be fixed once the new SDK with newlib 3 is release.

Newer SDK is merged via #31230. So closing this...

Newer SDK is merged via #31230. So closing this...


Type in included relationship is singular

Fair warning: I'm new to JSON, API and JSON:API formatting but I ran into an issue which I described in detail on Stackoverflow. I think I have found what the issue is, but I am not 100% sure it is an issue with this project, or an issue with my code.
According to the documentation on JSON:API and the example given on that page, the value of 'type' in the include part and the relationship data of the response is returned as plural: 'people' and 'comments'.
However when I return a response with included relationships the type is returned as singular:
(One role has many accountabilities and one accountability belongs to a role in my project)
{
    "data": [
        {
            "id": "1",
            "type": "role",
            "attributes": {
                "name": "Farming Engineer",
                "purpose": "Iure voluptatum rem dolores.",
                "created_at": "2020-01-16T18:38:26.151Z",
                "updated_at": "2020-01-16T18:38:26.151Z"
            },
            "relationships": {
                "accountabilities": {
                    "data": [
                        {
                            "id": "6",
                            "type": "accountability"
                        },
                        {
                            "id": "12",
                            "type": "accountability"
                        }
                    ]
                }
            }
        },
        {
            "id": "2",
            "type": "role",
            "attributes": {
                "name": "IT Supervisor",
                "purpose": "Iusto fuga fugiat qui.",
                "created_at": "2020-01-16T18:38:26.161Z",
                "updated_at": "2020-01-16T18:38:26.161Z"
            },
            "relationships": {
                "accountabilities": {
                    "data": []
                }
            }
        }
    ],
    "included": [
        {
            "id": "6",
            "type": "accountability",
            "attributes": {
                "description": "penetrate the market",
                "created_at": "2020-01-16T18:38:26.480Z",
                "updated_at": "2020-01-16T18:38:26.480Z"
            },
            "relationships": {
                "role": {
                    "data": {
                        "id": "1",
                        "type": "role"
                    }
                }
            }
        },
        {
            "id": "12",
            "type": "accountability",
            "attributes": {
                "description": "immersive experience",
                "created_at": "2020-01-16T18:38:26.507Z",
                "updated_at": "2020-01-16T18:38:26.507Z"
            },
            "relationships": {
                "role": {
                    "data": {
                        "id": "1",
                        "type": "role"
                    }
                }
            }
        }
    ]
}

Am I doing something wrong or am I missing something? Any information is very much appreciated.

@BFranse could you add please the record_type: :accountabilities to the has_many in your serializers too.
There are some examples here:
https://github.com/fast-jsonapi/fast_jsonapi#customizable-options
We are aware of this issue and it's been described in #32

@BFranse could you add please the record_type: :accountabilities to the has_many in your serializers too.
There are some examples here:
https://github.com/fast-jsonapi/fast_jsonapi#customizable-options
We are aware of this issue and it's been described in #32

@stas Thank you so much! Adding record_type: :accountabilities did the trick and changed the response. I must have missed that while going over the readme.
Thank you once again for your help and patience.


Uncrawled URLs are not logged

Hi,
I'm evaluating OSS for a possible topic-based search engine. The only limitation I have come across is that the web crawler doesn't appear to log URLS that aren't crawled (due to not matching a pattern) anywhere that I can see.
Say, for instance, you wanted to crawl all UK government websites. You could add a pattern like gov.uk/ which would get many, but some government departments may be using govwebsite.com web addresses (i.e. not in the gov.uk TLD). Links to these obviously wouldn't be crawled due to not matching the pattern. You need to add a pattern for each of such websites, but you can't do without knowing about them in the first place.
So what we would like to do is identify all the URLs that are linked to from crawled pages, but which aren't crawled automatically due to not matching a pattern. We can then look manually through them and decide which are valid topic sites and thus create patterns for them.
I've hunted through the interface, URL database, logs etc. and I can't see anywhere where you can see links that have been identified but not listed for crawling. Are such links directly or indirectly logged / recorded anywhere? If not, is there a way to do this?
Thanks
Rob

Is opensearchserver dead software now? That seems a shame. Does anyone know of anything similar being actively developed/supported?

Yup, definitely dead.


Tox config

This one builds off of #70.

Consolidate all testing tool configs into setup.cfg
Sets up tox environments for Python 3.6-3.8 as well as Django 2.0-3.0
xfails some tests (for now)

Everything passes (except xfails) in my Travis environment. Hopefully the goal would be to now turn on Travis and prevent failing PRs to be merged. Also will need to fix failing tests.

Looks all good to me. Thanks a lot!

@mhindery you should be able to enforce travis builds now. That was passing on all environments in my fork.


[SPARK-20483][MINOR] Add test for case

What changes were proposed in this pull request?
Add test case for scenarios where executor.cores is set as a
(non)divisor of spark.cores.max
This tests the change in
#17786
How was this patch tested?
Ran the existing test suite with the new tests
@dbtsai

Jenkins, ok to test.

Test build #76240 has started for PR 17788 at commit 7270fef.

Test build #76240 has finished for PR 17788 at commit 7270fef.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/76240/
Test PASSed.

LGTM. Merged into master and branch 2.1. Thanks.


Prince of Stride [PCSG00491]

App summary

App name: Prince of Stride
App serial: PCSG00491
App version: 1.0

Vita3K summary

Version: v0.1.5
Build number: 2723
Commit hash: https://github.com/vita3k/vita3k/commit/c32ac263
CPU backend: Dynamic

Test environment summary

Tested by: othmanead
OS: Windows 11
CPU: Intel i5-10300H
GPU: RTX 3060 mobile
RAM: 16 GB

Issue:
Game is bootable
Screenshots:

Log
vita3k.log
Recommended labels

Bootable

Is this game currently playable on vita 3k?


empty anchors are not affected

Hello!
If page has a link with href="#" – the script will pick it and process the click. Unfortunately, this will result in error (visible in console)
Uncaught TypeError: Cannot read property 'nodeName' of null
This PR adds a rule to ignore empty anchors to prevent this error.
Thanks!

Thanks, this is great !


Get all vanilla tests to pass

@RikkiGibson Can you take a look at my lazy changes and let me know if it's okay.


feat: ws reconnect report connection info

Types

[x] 🎉 New Features
[ ] 🐛 Bug Fixes
[ ] 📚 Documentation Changes
[ ] 💄 Code Style Changes
[ ] 💄 Style Changes
[ ] 🪚 Refactors
[ ] 🚀 Performance Improvements
[ ] 🏗 Build System
[ ] ⏱ Tests
[ ] 🧹 Chores
[ ] Other Changes

Background or solution

copilot:walkthrough

issue: https://github.com/opensumi/core/issues/3018
断连的时候上报一些额外的信息，
Changelog

copilot:summary

 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.pipiiiiii 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.


added the password generator

🛠 Fixes Issue
Closes #457
👨💻 Changes proposed
✔ Check List (Check all the applicable boxes)

[✓ ] My code follows the code style of this project.
[ ✓] This PR does not contain plagiarized content.
[✓ ] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers
Please review my PR and let me know if this needs some changes
📷 Screenshots

Thanks for merging the PR


🎨 Make collection save() idempotent

https://github.com/laminlabs/lamindb/issues/1409

@sunnyosun - I think we also need to make sure that it's ACID and encapsulate it into one atomic transaction.


[Bug] Error in rule patch_segmentation_baysor

Hey Quentin,
Thanks for te very nice tolls you developed.
I'm trying t run it on Merscope data using the Snakemake pipeline, using a custom .yaml file based on your baysor_vizgen.yaml one.
After sometimes, I get the following error:
" Error in rule patch_segmentation_baysor:
jobid: 36
input: /Volumes/Merscope_1/Slide_2/merfish_output/Sample1/region_3.zarr/.sopa_cache/patches_file_baysor, /Volumes/Merscope_1/Slide_2/merfish_output/Sample1/region_3.zarr/.sopa_cache/baysor_boundaries/53
output: /Volumes/Merscope_1/Slide_2/merfish_output/Sample1/region_3.zarr/.sopa_cache/baysor_boundaries/53/segmentation_polygons.json, /Volumes/Merscope_1/Slide_2/merfish_output/Sample1/region_3.zarr/.sopa_cache/baysor_boundaries/53/segmentation_counts.loom
shell:
    if command -v module &> /dev/null; then
        module purge
    fi

    cd /Volumes/Merscope_1/Slide_2/merfish_output/Sample1/region_3.zarr/.sopa_cache/baysor_boundaries/53
    ~/.julia/bin/baysor run --save-polygons GeoJSON -c config.toml transcripts.csv :cell_id

    (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!) "

It looks like for other jobid it's working well.
Do you have an idea on what is the problem ?
Thank you for your help,
Anais

Hello @AnaisJulien, do you have the error log for this specific job id? I see jobid: 36 in your logs, and this job should have its specific log file
For instance, if you use the SLURM profile, then the log is inside sopa/workflow/logs!

Hi,
It seems like the logs folder is empty.

But did you use the SLURM profile? Can you show me the snakemake command you used to run the pipeline?

I did not use the SLURM profile.
I used the following command:  anajul@KI-C02D223BMD6T workflow % snakemake --config data_path=/Volumes/Merscope_1/Slide_2/merfish_output/Slide1/region_3 --configfile=/Volumes/Merscope_1/Slide_2/baysor_vizgen.yaml --cores 8 --use-conda

Dear all,
I had a similar problem a couple of days ago. For me, our HPC admin crew does not allow us to run the module purge command, so that one fails. I commented it out, ran fine afterwards

Thank you fro your answer.
Could you provide the code you used please ?
Thanks

In your sopa_directory/workflow/Snakefile:

rule patch_segmentation_baysor:
    input:
        patches_file = paths.smk_patches_file_baysor,
        baysor_patch = paths.smk_baysor_temp_dir / "{index}",
    output:
        paths.smk_baysor_temp_dir / "{index}" / "segmentation_polygons.json",
        paths.smk_baysor_temp_dir / "{index}" / "segmentation_counts.loom",
    params:
        args_baysor_prior_seg = args.baysor_prior_seg,
    resources:
        mem_mb=128_000,
    shell:
        """
        #if command -v module &> /dev/null; then
        #    module purge
        #fi

        cd {input.baysor_patch}
        {config[executables][baysor]} run --save-polygons GeoJSON -c config.toml transcripts.csv {params.args_baysor_prior_seg}

So just commenting out the if clause did it for me. Hope that helps

Hey,
Thanks for your help but it did not work. I still get the same error...

I'm closing the issue as it was resolved outside of this feed.
The issue was related to the baysor installation. The Baysor command itself (e.g., ~/.julia/bin/baysor --help) was returning the error below:
ERROR: System image file failed consistency check: maybe opened the wrong version?

This error thus comes from the Baysor installation. Some potential fixes: installing Baysor with Julia 1.8 or opening an issue on the Baysor repository.


[v1.13] .github/workflows: add trigger phrase to conformance ingress workflow name

Backport:

https://github.com/cilium/cilium/pull/27822 (@tklauser)

Only backported third commit adding the trigger phrase to the conformance ingress workflow. The first two commits don't apply to the v1.13 branch.

Once this PR is merged, you can update the PR labels via:
for pr in 27822; do contrib/backporting/set-labels.py $pr done 1.13; done

or with
make add-labels BRANCH=v1.13 ISSUES=27822

/test-backport-1.13

Wait, I don't see ci-ingress as manual trigger in the config for v1.13: https://github.com/cilium/cilium/blob/v1.13/.github/ariane-config.yaml
Did we miss backporting the commit that added to the config on main?

Pulled in backport of commit 77184ed9f1ff85ba46360600fa8e083567add958 from https://github.com/cilium/cilium/pull/27304 (only first commit) which adds the respective ariane config.

/test-backport-1.13


Feature request: Centralize worksheet name validation

Feature Request
Since I've looked at the code here for the first time I want to suggest that Worksheet name validation gets centralized into one String wrapper struct that can be reused throughout the program.
Since the appropriate errors are already in the XlsxError that wouldn't add any additional overhead and would allow to reuse that validation for ChartRange or Range string validation.

Thanks. Good suggestion. I'll add that.

Also, the following should raise an error:
use rust_xlsxwriter::{Chart, ChartType, Workbook, XlsxError};

fn main() -> Result<(), XlsxError> {
    let mut workbook = Workbook::new();
    let worksheet = workbook.add_worksheet();

    let data = [1, 2, 3, 2, 1];
    worksheet.write_column(0, 0, data)?;

    let mut chart = Chart::new(ChartType::Column);
    chart.add_series().set_values("'Sheet1!$A$1:$A$5");
    worksheet.insert_chart(0, 2, &chart)?;

    workbook.save("chart.xlsx")?;

    Ok(())
}

I've moved the worksheet naming checks to utility.rs and now check the worksheet name during the chart.validate() phase. So the sample code above now raises an error:
$ cargo run --example gh45
   Compiling rust_xlsxwriter v0.41.0 (/Users/John/Development/xlsx/rust/rust_xlsxwriter)
    Finished dev [unoptimized + debuginfo] target(s) in 4.98s
     Running `target/debug/examples/gh45`
Error: SheetnameStartsOrEndsWithApostrophe("Sheet name in chart series range: 'Sheet1!$A$1:$A$5")

I've also added a test to ensure that the sheet name exists in the workbook. So this now raises an error:
use rust_xlsxwriter::{Chart, ChartType, Workbook, XlsxError};

fn main() -> Result<(), XlsxError> {
    let mut workbook = Workbook::new();
    let worksheet = workbook.add_worksheet();

    let data = [1, 2, 3, 2, 1];
    worksheet.write_column(0, 0, data)?;

    let mut chart = Chart::new(ChartType::Column);
    chart.add_series().set_values("Sheet7!$A$1:$A$5");
    worksheet.insert_chart(0, 2, &chart)?;

    workbook.save("chart.xlsx")?;

    Ok(())
}

Output:
$ cargo run --example gh45
   Compiling rust_xlsxwriter v0.41.0 (/Users/John/Development/xlsx/rust/rust_xlsxwriter)
    Finished dev [unoptimized + debuginfo] target(s) in 3.78s
     Running `target/debug/examples/gh45`
Error: UnknownWorksheetNameOrIndex("Unknown worksheet name 'Sheet7' in chart range 'Sheet7!$A$1:$A$5'")

This would also have caught the apostrophe error since all sheet names are validated by the workbook.
Thanks for the input. Closing.


Add the summer banner to the cycle switcher

Context
We can't use the cycle switcher for Manage as the show_summer_recruitment_banner is missing

Changes proposed in this pull request
Added it to fake_schedules
Things to check

[x] If the code removes any existing feature flags, a data migration has also been added to delete the entry from the database
[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] If this code adds a column to the DB, decide whether it needs to be in analytics yml file or analytics blocklist
[x] API release notes have been updated if necessary
[x] Required environment variables have been updated added to the Azure KeyVault

Should we have a system or request spec for it?


“Contribution“ keyword conflict

When using "Contribution" as the title in .md, web page will be generated incorrectly.
Just like this:

Other spellings can be generated correctly

I have made some changes to fix it, but I'm not sure if this will cause new issues.

Can I ask what fix you did?

Hi,@mikernet. You can see the changes in Morsiusiurandum@35d149dbbcb522b293c788aeff90457f93681bda , hope this can help you.


Add workspaces, adjust CI

Merged as https://github.com/nagisa/rust_tracy_client/commit/f5a98d35d89caa7a759ee20bec00b3c022f7132e


Feature Request: Add the ability to write the $version and other strings to a file

I like the versioning that this tool is doing, but want to be able to show this version on my application about screen (or somewhere).  As such, it would be nice to be able to have an extra command line switch to simply determine what the version would be, and then write a string into a specific file.  I have not found a way to do this, but maybe there is a trick in the NX space?
For instance, I have my version in app.version.ts file in the base application directory.  In this file, I simply export a constant for use elsewhere.
export const APP_VERSION: string = '0.1.0';

Ideally, I would like to be able to run the command with a --versionFileText and then be able to specify the format (similar to the --commitMessageFormat so I could write the full text.
--versionFileText="export const APP_VERSION: string = '${version}';

I would think there would also have to be a variable for the file name (including path) to be written.  Maybe something that would be relative to the project, so when tagging multiple projects the same file would be written in each project directory (maybe --versionFile)?
--versionFile=./src/app/app.version.ts

Hey, I like the idea, we have a related issue #91.


Not using local project drush

Codebase
Mounted codebase
Host OS
macOS Sierra
Drush Status Output
/var/www/html/web $ drush status
 Drupal version                  :  8.3.7
 Site URI                        :  http://default
 Database driver                 :  mysql
 Database hostname               :  mariadb
 Database port                   :  3306
 Database username               :  drupal
 Database name                   :  drupal
 Database                        :  Connected
 Drupal bootstrap                :  Successful
 Drupal user                     :
 Default theme                   :  denver
 Administration theme            :  denveradmin
 PHP executable                  :  /usr/local/bin/php
 PHP configuration               :  /usr/local/etc/php/php.ini
 PHP OS                          :  Linux
 Drush script                    :  /var/www/html/vendor/drush/drush/drush.php
 Drush version                   :  8.1.13
 Drush temp directory            :  /tmp
 Drush configuration             :
 Drush alias files               :
 Install profile                 :  standard
 Drupal root                     :  /var/www/html/web
 Drupal Settings File            :  sites/default/settings.php
 Site path                       :  sites/default
 File directory path             :  sites/default/files
 Temporary file directory path   :  /tmp
 Sync config path                :  ../config/sync

I upgraded Drush to 8.1.15 in my project.  When I am not inside my docker container and I run drush --version it shows 8.1.13 but when I am local it shows
8.1.15.  For some reason inside my docker it is using the global drush instead of the local project drush.

The problem was that docker-sync was not synching.


Jcenter is being shut down on May 1st 2021

Describe the solution you'd like
Can you please host the App Center gradle dependancies on mavenCentral()
Describe alternatives you've considered
none
Additional context
https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/

Hi @apkelly, thanks for opening the feature request! We have the same request opened in our android repository, so I'm closing this as a duplicate.
https://github.com/microsoft/appcenter-sdk-android/issues/1503


[ruff] Rename RUF007 to zip-instead-of-pairwise

Summary

Renames the rule RUF007 from pairwise-over-zipped to zip-instead-of-pairwise. This closes #12397.
Specifically, in this PR:

The file containing the rule was renamed
The struct was renamed
The function implementing the rule was renamed

Testing

cargo test
Docs re-built locally and verified that new rule name is displayed. (Screenshots below).

Thanks!

Maybe my English is off, but shouldn't this be pairwise-instead-of-zip ?

I think this is correct, because the convention is such that "allow zip-instead-of-pairwise" should make sense (given that we're recommending pairwise to the user).


Is there a way to persist on every mutation?

I have a very small set of information that is mission-critical to my application (e.g. it's version number).  Is there a way to make vuex-persistedstate store the state on every "set" mutation?

This does not like an issue but more of a question. Please move any question to StackOverflow or any Vue related forum.

So you don't use issues for feature requests?

This isn't a feature request, it's just a question. If you have a feature request, please create a PR containing the feature.


homepage link is broken

if you try to follow the link in the package it 404s

Oh, you're right. Must've been some copy&paste. Thanks for reporting it!
Fixed in 0.0.4.


feat: handle state store sync in local barrier manager

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Previously, we cannot call async method in local barrier manager, and therefore the sync of state store should be called in the rpc handler. After we change the local barrier manager to a event loop worker, we can now call and poll the future returned from async method. In this PR, we change to call sync of state store inside the local barrier manager worker loop to simplify the logic outside the local barrier manager.
The managed barrier state has two more enum variant, AllCollected and Completed. When all actors have collected a barrier, the barrier state will transform to AllCollected, and a future that call sync will be created. The future will be polled when calling the next_completed_epoch method.
Some other refactors are done accordingly.
Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added test labels as necessary. See details.
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[x] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

Not reviewed detailedly...

we change to call sync of state store inside the local barrier manager worker loop to simplify the logic outside the local barrier manager.

Does this decrease the overall complexity? Previously local barrier manager is only responsible for collecting and sending barriers, while RPC handlers call sync for their own epochs. Now it seems mixed up and there's complicated concurrent control flows. 😕

Some other refactors are done accordingly.

Is it possible to split the changes above and other minor refactors?

Does this decrease the overall complexity? Previously local barrier manager is only responsible for collecting and sending barriers, while RPC handlers call sync for their own epochs. Now it seems mixed up and there's complicated concurrent control flows. 😕

I plan to replace the current two rpc inject_barrier and collect_barrier with a long streaming bi-direction rpc between CN and meta. Therefore this PR is more like a refactor PR to move the work of inject_barrier and collect_barrier to the local barrier manager. Previously we had to call sync in the RPC handles because the local barrier manager was not in a async context.
Previously, the rpc handler gets notified from barrier manager on barrier collected, and then call sync. In this PR, the process of notifying barrier collected and calling sync is replaced with creating a future that calls sync and notifying on future completion. Hopes this explanation can help review this PR.

Is it possible to split the changes above and other minor refactors?

The greatest refactor in this PR is to change the key of barrier_state_map from epoch.curr to epoch.prev, and this is necessary in this PR because we should find find a specify barrier by its epoch.prev.

Is it possible to split the changes above and other minor refactors?

Some refactor logic is split to https://github.com/risingwavelabs/risingwave/pull/14436 and gets merged. Now we can focus the logic of handling state store sync of this PR.

Why do we introduce this PR, is it a prerequisite of some feature?

Why do we introduce this PR, is it a prerequisite of some feature?

We are going to deprecate the send_barrier and complete_barrier rpc and replace them with a bidirectional grpc stream.   This will be useful to the partial checkpoint implementation. It also helps the current code to better handle stale request during recovery.

Any comments? @BugenZhao @yezizp2012 @kwannoel @tabVersion @hzxa21

LGTM, btw do we have any detailed docs about the implementation of partial checkpoint?

Detailed design about barrier collection in partial checkpoint can be found in partial-checkpoint.md, which is in https://github.com/risingwavelabs/rfcs/pull/84.


Use latest IDL

From what I can see, this project extracts IDL fragments from W3C TR version of the W3C specs, when in most cases, the most uptodate view of what the IDL should be reside in editors draft.
In a separate project called Reffy, we have set up an automated extraction of the latest IDL fragment across a large number of W3C and WHATWG specs. That automatic extract is already used to feed automatically the Web-Platform-Tests repository of Web-browser test suites.
It may be interesting to take a similar approach here.

Definitely a good-to-have, but I wonder what made you open this issue. Is this a blocker for anything?


write documentation about how the ai  is going to work

write documentation about how the ai  is going to work

hi @botsdevelopers  can you provide more details about the issue I would like to work upon it


whisper via command issue

When issuing a whisper via a command, your sent whisper does not show up in your "whispers" tab.
https://i.imgur.com/9htXASC.gifv

closing as the issue has been fixed :)


chore: fixed codeowners to enable auto-assignment of reviewers

Description
Changes proposed in this pull request:

Fixed directory assignement in codeowners

Related issue(s)

/restart

/restart


Switching to pre-commit.ci

Closes #166
Removing .github/workflows/lint.yaml and have configured pre-commit.ci to run pre-commit against PRs instead.
This has a number of advantages...

It is faster as it uses cached environments for the hooks that are to be run rather than installing the dependencies and downloading each hook each time .github/workflows/lint.yaml is run.
Changes made to files by tools such as black and some of the pre-commit hooks such as trailing-whitespace are commited and pushed back to the PR without the CI simply failing as is currently the case. This can speed up the development process.
pre-commit.ci will also periodically (currently weekly) update the rev version of the configured hooks.

I think GitHub Actions may be confused by the removal of .github/workflows/lint.yaml.
If happy with this switch we can over-ride the requirement those tests to pass.

For reference an example of where this would be beneficial because pre-commit failed and required minor changes is this job, where I manually corrected the linting error (only to discover other issues with the tests failing but that is a separate issue).


Update cats-effect to 2.4.0

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

Applied Migrations

github:typelevel/cats-effect/v2_4_0?sha=series/2.x

Documentation:

https://github.com/typelevel/cats-effect/blob/v2.4.0/scalafix/README.md

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

labels: library-update, semver-minor, scalafix-migrations

Superseded by #236.


Unit test for GBM::generate()

Write a test in the price_process.rs file that does the following:

[ ] Verifies that seeded randomness is correct, i.e., using the same seed does yield the same output and using a different seed yields a different output.
[ ] Verifies that a single step is computed properly.

I can def do this one

I can def do this one

Good plan. Gives a community member a way to accomplish the other related issue for OU.

nice i like that


Upgrade API version to v4

Migration to v4 has been completed for a while.
The community has decided to upgrade the BE URL from api/v3 to api/v4.
API version in Swagger should be consistent.

I thought we decided not to do this because there aren't actually any breaking API changes.

We should do this now that there are clear breaking changes.

Martin gave a nice demo of the work on datasets.v4.controller.ts which utilizes nest's versioning capabilities to provide different /api/v3 and /api/v4 implementations. Backwards-compatible controllers can even specify version: VERSION_NEUTRAL to provide both. Maybe we should add version annotations to all controllers.


Running tests on master fails

Running the tests on master on Android fails with:
java.lang.IllegalStateException: No instrumentation registered! Must run under a registering instrumentation.

Any ideas on how I can fix it @shepeliev ? I hope you are doing OK 😄 .
I am trying to add support for IR.

@mihai1voicescu thanks for asking, I'm okay :)
At the moment I have no idea.  I'll try to check it tomorrow.


Add IPD High SChool

@Devdiop221 file/lib/domains/sn/ipd.txt: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@Devdiop221 Thank you for your patience while waiting for a review and processing your request. Pull request merged.


i18n(it): Updated islands.mdx and why-astro.mdx

Description (required)

Updated islands.mdx and why-astro.mdx

Fixed a typo in the title 😅

The failed check is a broken link check. It complaints about /it/reference/directives-reference/#direttive-client not being there because not even the reference folder is created 😄 . I will create it and try to resolve this as soon as I can


llext: add a detached section test

Test LLEXT "detached section" functionality. This adds a test to load an extension with a function placed in an ad-hoc section and run a function in it.

This doesn't work yet... debugging


Rendering with useGeneratedNames(true) ignores aliases

Rewriting the following cypher with generated names:
UNWIND $foo AS input
CALL {
  WITH input
  CREATE (v0:Movie)
  SET v0.title = input.title
  RETURN v0
}
RETURN count(*)

results in:
UNWIND $p0 AS input
CALL {
  WITH input
  CREATE (v0:Movie)
  SET v0.title = input.title
  RETURN v0
}
RETURN count(*)

expected input to be renamed as well:
UNWIND $p0 AS v0
CALL {
  WITH v0
  CREATE (v1:Movie)
  SET v1.title = input.title
  RETURN v1
}
RETURN count(*)

second example:
given
MATCH (this:Movie)
CALL {
	WITH this
	MATCH (this_actorsAggregate_this1:Actor)-[this_actorsAggregate_this0:ACTED_IN]->(this)
	RETURN {
		min: min(this_actorsAggregate_this0.screentime),
		max: max(this_actorsAggregate_this0.screentime),
		average: avg(this_actorsAggregate_this0.screentime),
		sum: sum(this_actorsAggregate_this0.screentime)
	} AS this_actorsAggregate_var2
}
RETURN this {
	actorsAggregate: {
		edge: {
			screentime: this_actorsAggregate_var2
		}
	}
} AS this

results in
MATCH (v0:Movie)
CALL {
  WITH v0
  MATCH (v1:Actor)-[v2:ACTED_IN]->(v0)
  RETURN {
    min: min(v2.screentime),
    max: max(v2.screentime),
    average: avg(v2.screentime),
    sum: sum(v2.screentime)
  } AS this_actorsAggregate_var2
}
RETURN v0 {
  actorsAggregate: {
    edge: {
      screentime: this_actorsAggregate_var2
    }
  }
} AS this

expected this_actorsAggregate_var2 to be renamed as well:
MATCH (v0:Movie)
CALL {
  WITH v0
  MATCH (v1:Actor)-[v2:ACTED_IN]->(v0)
  RETURN {
    min: min(v2.screentime),
    max: max(v2.screentime),
    average: avg(v2.screentime),
    sum: sum(v2.screentime)
  } AS v3
}
RETURN v0 {
  actorsAggregate: {
    edge: {
      screentime: v3
    }
  }
} AS this

The last example must be rewritten as
MATCH (v0:Movie)
CALL {
  WITH v0
  MATCH (v1:Actor)-[v2:ACTED_IN]->(v0)
  RETURN {
    min: min(v2.screentime),
    max: max(v2.screentime),
    average: avg(v2.screentime),
    sum: sum(v2.screentime)
  } AS v3
}
RETURN v0 {
  actorsAggregate: {
    edge: {
      screentime: v3
    }
  }
} AS v4

don't you think @Andy2003 ?

The last example must be rewritten as
MATCH (v0:Movie)
CALL {
  WITH v0
  MATCH (v1:Actor)-[v2:ACTED_IN]->(v0)
  RETURN {
    min: min(v2.screentime),
    max: max(v2.screentime),
    average: avg(v2.screentime),
    sum: sum(v2.screentime)
  } AS v3
}
RETURN v0 {
  actorsAggregate: {
    edge: {
      screentime: v3
    }
  }
} AS v4

don't you think @Andy2003 ?

Good point, the resulting alias is a special case. I would make this replacement configurable. Here a user must adjust the code that is reading the response, since the alias will not match with the requested one.

Hard todo… I can only evaluate this for all or no return clauses, not for the last one alone.

Found a way.


Bug: spark no longer lists function when used by without any parameters

in 4.0.2 when issuing the command: php spark it should run the list command. It currently shows the help instead.

I feel pretty confident this is collateral from https://github.com/codeigniter4/CodeIgniter4/pull/2571

@MGatner that was my guess as well. Just had to log it so we could get it fixed since I saw it in the forums.


⚠ Bofrost.be has degraded performance

In c3c8bdc, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1471 ms

Resolved: Bofrost.be performance has improved in 3d39262 after 19 minutes.


GEOMESA-1031 Allowing for schemas without geometries

Signed-off-by: Emilio Lahr-Vivaz<EMAIL_ADDRESS>

looks good. i was hoping you'd implement a timeseries database instead but i'll take it

verified ingest and export of a file like this:
a,b,c
d,e,f
h,i,j

@elahrvivaz anything else you want to change here? else ready to merge

2bc17c780633fc343a68caa96f206901c48aae74


Homework1

Metric
Value

alert_status
:white_check_mark: OK

bugs
0

code_smells
42

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0