Rearrange examples

Currently, there are examples in three places.

Examples bots repo
Awesome grammY list
Community showlounge

The latter two are more or less identical. It does not make much sense and is mostly organised this way for historical reasons.
This PR suggests to get rid of the community showlounge, and to place the Awesome list more prominently in the Examples tab instead of in the resources. It will now be organised like this.

Awesome grammY list
Example bots repo

In the future, there are two more things that would be cool to have.

Example bots right inside the website. The ones in the repo are basically just a number of files that illustrate how to do certain operations, such as sending a message, or running a local bot API server in a Docker container. The examples on the website should rather be self-contained bots that are cool to play around with. They should feature

A Deno Deploy button to instantly deploy the code
Not much more than 50 lines of code
an illustration of some nifty grammY feature
a decent user experience when tested out in Telegram

These bots must all have their own repo AFAIK. That means we should not have more than three of them to keep the maintenance low.

Live Browser Demo right inside the website. https://github.com/grammyjs/grammY/pull/111 made it trivial to turn the user's browser into a web server that runs a grammY bot. As a result, we can have a simple echo bot right there.
It would also make a lot of sense to have a step-by-step wizard to set them up. Something like:

Get bot token (information about how this will not be shared, a text field to paste it, and a small info tile that immediately displays the bot name once the token is inserted
Pick a bot to run, just a list of bots, and a run button for each. Code should also be somewhere.
TRY IT button that opens the bot's chat in Telegram (open a new tab with t.me/bot_name)

That way, it should be super trivial to get your first bot up and running in your browser. Token can be stored in localstorage so that it is kept across navs and reloads.
This could certainly use some community contributions from UI people :)

Now that I'm thinking about it, we may want to merge the two suggestions for the future. We could have three bots, and ech of them has a button to run it (will start the bot in the browser and immediately switch over to the TG client) and a second button right next to it to deploy it to Deno Deploy (akin to https://github.com/discordeno/serverless-deno-deploy-template#serverless-template)

I really love these optimizations!


[Feature]: remix routes command

What is the new or updated feature that you are suggesting?
a command to print the actual routes defined with the layout or the type of route
for example:
$ npx remix routes
Route               File                         Layout
/blog               blog/index.tsx               routes/blog.tsx
/blog/categories    blog/categories.tsx          routes/blog.tsx
/blog/authors       blog.authors.tsx             root.tsx
/product            __marketing/product.tsx      routes/__marketing.tsx
/dashboad           __app/dashboard.tsx.         routes/__app.tsx
/$userId/profile    __app/$userId/profile.tsx    routes/__app.tsx

Why should this feature be included?
Sometimes its needed to see what its happening with routes, fast debug, fast bug fixes in production, etc

It's already there: remix routes --json

My God! Thanks @tchak
It will be better if this and other remix commands were explained in the documentation 😆


Scripts not up-to-date

[The scripts listed here and presumably elsewhere are not current as they reference the dotnet-sdk-5.0.100-linux-x64.tar.gz and not the dotnet-sdk-5.0.102-linux-x64.tar.gz.
Furthermore, I was trying to install on an raspberry pi 4 machine so the architecture should have been arm64, i.e. dotnet-sdk-5.0.102-linux-arm64.tar.gz.
Since I started from the pages with scripts to install on Ubuntu 20.10, presumably those scripts are also similarly flawed.]

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

ID: 885585df-1c7c-c774-34e4-4b274a7c2602
Version Independent ID: 2be3647d-495b-c9f0-cf06-9a7bf687d3bb
Content: Manually install .NET on Linux - .NET
Content Source: docs/core/install/linux-scripted-manual.md
Product: dotnet-fundamentals
GitHub Login: @adegeo
Microsoft Alias: adegeo

Thank you for the feedback. Unfortunately it would take up too much room to detail every possible supported version/platform/architecture combination. The article does state (right before the first command):

The archive file name may be different depending on what you downloaded.

What I'll do though is add a variable to the script which will hopefully make this more apparent.


Control row group size

Hello, I haven't found how to control row group size.
Yes, I can call Flush, but how do I know if row group reached limit size (1GB for example) ?

Hello @yonesko
There is currently no control of the row group size in bytes. Since parquet columns are encoded and compressed, I would like to ask what size you would need to control: would it be the compressed size of the row group on disk, or the total decoded size?

Compressed size of row group

Do you mind providing a bit more context on the use case that would require controlling the size of a row group on disk?

We have a big (4GB) parquet file with one row group, and Amazon Athena fails to read with "GENERIC_INTERNAL_ERROR: integer overflow"
We can limit RG by rows number and error disappeared


refactor!: optimize the Pair aggregator

Closes #75

@rultor merge it.

@rultor merge it.

@rafamizes OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge it.

@rafamizes Done! FYI, the full log is here (took me 2min)


adding failure tolerance and max concurrent count

if  CI - Pull Request / Max TF pre-commit gets stuck its sometimes because there has been a version bump and we have to change it in the gh repo settings. gotta find a way to avoid it.
bumped and now its good to merge


Possible incorrect documentation around cert creation

Inside of https://github.com/cloudfoundry/cf-release/blob/develop/on-tls-certificates.md under "The interrelated components" there is a duplication row of cf-diego-certs/cloud_controller.crt should be mapped properties.cc.mutual_tls.public_cert.
I originally figured this was just an accidental copy paste.  While hunting down how to create all the new certificates I could not find documentation on how to create properties.cc.mutual_tls.private_key and am thinking that this duplicate row was supposed to contain information for this property value.  Am I correct that this property should be filled by cf-diego-certs/cloud_controller.key?  If so I can submit a PR for it.

@cweibel Great catch! Would you submit a PR?

I just merged your PR, so I'll close this issue. Thanks @cweibel.


skipUndefined() is deprecated and will be removed in objection 4.0

I got always this message.
How could I suppress  it?
Or is there a even remedy to avoid it yet?

I published a patch version recently without the usage of the deprecated
"skipUndefined()" method. You just need to upgrade.
On Fri, Jan 21, 2022 at 12:50 PM zanzara @.***> wrote:

I got always this message.
How could I suppress it?
Or is there a even remedy to avoid it yet?
—
Reply to this email directly, view it on GitHub
https://github.com/feathersjs-ecosystem/feathers-objection/issues/165,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABB5E3LL4FQ2YXHNXMPIX5TUXE3BDANCNFSM5MPGDAUA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

You mean updating to 7.5.2 ?
(I'm running 7.5.1)

Yes
בתאריך יום ו׳, 21 בינו׳ 2022, 18:45, מאת zanzara @.***

:

You mean updating to 7.5.2 ?
(I'm running 7.5.1)
—
Reply to this email directly, view it on GitHub
https://github.com/feathersjs-ecosystem/feathers-objection/issues/165#issuecomment-1018678677,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABB5E3JR6XMHUESWTAQDKALUXGEUFANCNFSM5MPGDAUA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID:
@.***>


Update messages in json to messages

The package.json file was not pointing to the mono-repo version but to 10.0.
Thi fixes it and also do the upgrade to v12

Good catch! The latest messages version is now 12.1.1


fix(DataGrid): customize column prevent disabled drop v1

Contributes to #3624
This should prevent dropping into the locked column position in the customize column modal.
What did you change?
Transform styles are not being updated if the item is in locked condition.
packages/ibm-products/src/components/Datagrid/Datagrid/DraggableElement.js
How did you test and verify your work?
Storybook

The accessibility checker requires that the visible text/label match the area-label, in my opinion. The addition of the new prop menuArearLabel could potentially lead to an accessibility violation. Take a look at this example:

Maintain the label on the Primary button menu button.
Add menuAreaLabel something different text
Restart the accessibility checker.

In my openion we only need to add areaLabel={label} in story.  @matthewgallo could you add your thoughts.


Correcting .md of GRPC alert

Noticed small typo

/lgtm
/approve

approving manually with label override as none of us is in the OWNERS file yet


Update bindings.cpp

Add a python function get_max_layer which returns the maxlevel_ of the index.

I added a python function get_node_degree binding to the C++ function getNodeDegree which returns the count of neighbors of a node given its label.

I added the Python function get_average_degree_at_layer and the corresponding C++ function getAverageDegreeAtLayer0 which returns the average node degree of a given layer (level).
These functions is to get more insights and internal information about the structure of the index.


Redeploying a model that has already been fully downloaded will display a download progress

Describe the bug

Steps to reproduce

Deploy a model Qwen/Qwen2.5-7B-Instruct-GGUF/qwen2.5-7b-instruct-q4_0 from ModelScope.
Waiting for the instance status to change to Running.
Delete the instance.
Observe the status of the new instance.

Result

After the first deletion of the instance, when redeploying the instance, it shows a download progress, but in reality, it is not downloading.
https://github.com/user-attachments/assets/db9b2d82-b663-4c2c-a814-8e7881af4cc8

Expected behavior

Environment

GPUStack version: v0.3.0

Additional context
Add any other context about the problem here.
When downloading the same model from Hugging Face or downloading a single-file model from ModelScope, this issue does not occur.

Environment

GPUStack version: v0.3.0

Test Results:

When redeploying the instance, sometimes some files are re-downloaded, and the deployment is successful.

And sometimes after re-downloading files, the deployment may fail, with the following error message:

Failed to download model: Cannot find the requested files in the cached path and outgoing traffic has been disabled. To enable look-ups and downloads online, set 'local_files_only' to False.

Environment

GPUStack version: main(eb3baf9)
OS: Ubuntu 22.04
GPU: NVIDIA GeForce RTX 4080

Test Result:

Re-downloading: pass
Deployment failure: pass


ReactDOM.render is no longer supported in React 18, need to migrate to createRoot

A Warning is reported in the developer console of the browser:
Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

The login functionality needs work

Thanks for this fix, PR was ready but due to some collage stuff, was not able to submit.


Submitting without button and handleSubmit in component

I have simple form with two things I am doing differently from how the documentation suggests:

submitting onBlur, no submit button
handling the submit with the handler local to the component, not passed from the parent

This is my setup:
class SimpleForm extends Component {

  handleSubmit = () => {
    // my submit handler
  }

  render() {
    const { handleSubmit } = this.props;
    return (
      <Box alignSelf='center' margin={{ top: 'large' }}>
        <form
          onSubmit={handleSubmit(this.handleSubmit)}
          onBlur={() => this._form.submit()}
          ref={c => this._form = c}>
          <Field name='test' component={TextInput} />
        </form>
      </Box>
    );
  }

}

The problem with this implementation is, that the page refreshes on blur. Is there any way I can prevent the refresh or just another implementation to achieve the same thing?

Please also raise a Stack Overflow issue, and add the link here. Once issues are closed here they tend to lose visibility, but Stack Overflow issues are never closed, and this helps others searching for similar issues :).
Your form is refreshing because of a default post action to the server (native html behaviour). handleSubmit normally prevents this default behaviour. It think you may simply want to do:
onBlur={handleSubmit(this.handleSubmit)}

That worked, thanks.

Cool! You make me realise though I've never had to deal with handleSubmit intercepting the native form action which is what you were trying to have it do. I'll try to remember to report back once I know more on that :).


FZF preview window does not scroll a wrapped file if unwrapped file fits the screen

[X] I have read through the manual page (man fzf)
[X] I have the latest version of fzf
[X] I have searched through the existing issues

Info

OS

[ ] Linux
[ ] Mac OS X
[X] Windows
[ ] Etc.

Shell

[ ] bash
[ ] zsh
[ ] fish

Problem / Steps to reproduce
Create a file with many long strings that fit the preview window while unwrapped. No scrolling will work. Wrap the preview (by shortcut), the file will not scroll still.
Scrolling works perfectly when a file overflows preview window while unwrapped.

See if b089bb5e7bdfbeb20b370731bd5ce14564df4318 helps.

I cannot build from source, so I'll have to wait for the next release.


Remove version: Jackett.Jackett version 0.21.1664

404 - release deleted
Microsoft Reviewers: Open in CodeFlow

URL: https://github.com/Jackett/Jackett/releases/download/v0.21.1664/Jackett.Installer.Windows.exe
Response Error: The remote server returned an error: (404) Not Found.
(Automated message - build 918)


Implementing Edit Profile Page

Addressing Issue #25 to implemented an Edit Profile Page for authenticated user
Below is a video demonstrating the functionality and UI :
https://github.com/gdsc-jssstu/campUS-Web/assets/92589912/19dfaa0a-af56-4fbb-bf17-c272c4e59594

Great work! @Nupoor10 Thank you for your contribution! Please 🌟 the repository if you've liked our mission. Really appreciate the efforts and looking forward to more contributions!


com.polidea.rxandroidble2.exceptions.BleDisconnectedException: Disconnected from MAC='XX.XX.XX.XX' with status 8 (GATT_INSUF_AUTHORIZATION or

2019-09-20 17:08:18.949 4789-4823/D/RxBle#ConnectionOperationQueue: Connection operations queue to be terminated (MAC='C4:A6:E6:DD:31:4F')
com.polidea.rxandroidble2.exceptions.BleDisconnectedException: Disconnected from MAC='XX.XX.XX.XXF' with status 8 (GATT_INSUF_AUTHORIZATION or GATT_CONN_TIMEOUT)
at com.polidea.rxandroidble2.internal.connection.RxBleGattCallback$2.onConnectionStateChange(RxBleGattCallback.java:80)
at android.bluetooth.BluetoothGatt$1$4.run(BluetoothGatt.java:262)
at android.bluetooth.BluetoothGatt.runOrQueueCallback(BluetoothGatt.java:770)
at android.bluetooth.BluetoothGatt.access$200(BluetoothGatt.java:39)
at android.bluetooth.BluetoothGatt$1.onClientConnectionState(BluetoothGatt.java:257)
at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:71)
at android.os.Binder.execTransact(Binder.java:756)
The exception occurred after sending an instruction.

Hello!
Thank you for using the library.
This is a general usage question and as such should be posted on stackoverflow with rxandroidble tag—it will be easier to find by other users. Also feel free to check already posted questions as a similar one may be already answered.
Best Regards
P.S. Most probably your peripheral has crashed and reset — that is why it times out

OK,Thanks for your reply.

Hi @denghewenai
Have you asked on SO? Can you link me the question?

Hi @denghewenai
Have you asked on SO? Can you link me the question?

At that time, this question was not raised on Stackoverflow, because it was found that the use of nrf Connect would also be disconnected. This question was subsequently modified by a colleague of embedded hardware.
https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp&hl=zh_HK

I am also facing the same issue. when i connected to the device it's auto disconnected after setup notification.
What should i do.
I am using aut-flag false.

Hi, we have the exact same issue. Like @gauravdhim1990 described when we connect to our device we get this error after the notification setup.


extension causes failure on cloudflare human verification page

A number of websites use cloudflare human verificaion. As long as bandwidth-hero is enabled, the check keeps failing (page keeps reloading). Only disabling the extension allows check to succeed
Example webpage: https://www.japantimes.co.jp/business/2024/10/24/economy/keizai-doyukai-minimum-wage/

That's probably expected and they can either built in certain sites into the code to ignore.. or we generically doc that you can disable this extension for some sites.
Marking a site as disabling is a one time thing. What do you expect extension to do?

Marking a site as disabling is a one time thing.

Marking site as disabled (adding to blacklist) does not work. It only works if extension in disabled manually (on chrome extensions page).

You can manually add affected URLs to manage disabled sites. Diff the URLs being requested with extension on and off. then add the ones (most likely something from cloudflare) that needs to be bypassed to the "Manage disabled sites" seen in your screenshot.


Increase default autovacuum workers on Aurora

per https://github.com/Senzing/aws-marketplace-evaluation/issues/66

PR merged


$POID and ImageRef database not being removed

Item/field $POID with a datetime is showing up in some of my design elements and also in the .metadata files.
Outline/OutlineEntry/ImageRef attribute Database is also showing up with a replica ID which changes as different developers clone to their local NSFs
Does anyone know if it's safe to remove these?

Use custom xslt file for filter.
This is my file , change extension from txt to xsl
![изображение](https://user-images.githubusercontent.com/14273180/168800057-72ff9fd0-6
DXLCleanNew2071.txt
4fa-42a7-b981-a6572b87fc4c.png)


Sync eng/common directory with azure-sdk-tools for PR 4341

Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/4341  See eng/common workflow

The single test failure is due to a test running > 10 seconds. Doesn't have anything to do with this change. Going to check-enforcer override and merge on Monday morning.

/check-enforcer override


Misleading documentation regarding PGBouncer debug

According to documentation, you could use curl inside the pod, to verify metrics status.
https://cloudnative-pg.io/documentation/1.20/connection_pooling/  "Monitoring" section
You can debug the exporter on a pod running PgBouncer through the following command:
kubectl exec -ti <PGBOUNCER_POD> -- curl <IP_ADDRESS>:9127/metrics
But curl utility is not included in pooler image and this command will produce an error
Defaulted container "pgbouncer" out of: pgbouncer, bootstrap-controller (init) error: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "cb6504590d3487120dffe1b98209651c0ab6bccfd2db02ba396eb453ed4a19d9": OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "curl": executable file not found in $PATH: unknown

That's because we started to use the minimal image and we missed this spot. I think we should do something similar to what we've done here: https://cloudnative-pg.io/documentation/current/monitoring/#how-to-inspect-the-exported-metrics


deps(qwik-auth): update @auth/core

Pfft, I don't know.  Hopefully someone can update the @auth/core version.

what happened @ulic75 ?

what happened @ulic75 ?

Oh, just the failed build stuff.  I thought it might be easy to slap the new version in there, but I guess not and don't have the time right now to sort it out.  And I'd rather not leave the dangling PR, there's enough danglers already :)

OK cool, thanks for the info
is there an issue opened about it?

I don't think so. But @auth/core is still pre 1.0 so it's changing weekly.
Nothing that breaks qwik-auth so far though.
On Mon, Aug 14, 2023, 17:54 Shai Reznik @.***> wrote:

OK cool, thanks for the info
is there an issue opened about it?
—
Reply to this email directly, view it on GitHub
https://github.com/BuilderIO/qwik/pull/4937#issuecomment-1678242660, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABLBN3H6SHSXIFLHZFGU4RLXVK3EDANCNFSM6AAAAAA3QBTUMA
.
You are receiving this because you were mentioned.Message ID:
@.***>

OK Cool thanks!


Update OpenTelemetry Dependency

Open Telemetry has now shipped a stable release, Steeltoe should be updated to use version 1.0.1

Hi guys, do you have a timeline for this? We really want to get cracking with Steeltoe with the first stable OpenTelemetry release

Unfortunately the situation is more than a little bit complex with the way OpenTelemetry completely dropped metrics from the 1.0.1 release and has only shipped beta packages for instrumentation. Our codebase was updated to use those metrics bits which have disappeared, which puts us in an awkward/weird state

yeah, went over the OpenTelemetry documentation and found that they were stating that the metrics API will only be available after .NET 6 gets released... I think we will go with Prometheus-net for metrics collection and endpoint while OpenTelemetry does take this forward..


Zymatic "Server error" on Brew/Clean (Beta5 image)

Hello! I encounter "Server error" when connecting to the raspberry pi running this image.
I have configured the wpa_supplicant + verified I can reach the web page from my computer on local network.
I connected to the network PICOBREW, PICOBREW from the zymatic, which then appeared to connect successfully.
However, loading recipes for clean or brew results in the error "Server error" being displayed consistently. This happened the last time I tried it too, not sure if that was the same image (beta 5).
This is related to why I was unable to pull recipes - as I don't have #171 in Beta 5 so my device never appears on the devices page. (I didn't get as far as to manually configure the devices via editing the file directly over SMB).
I imagine this is a duplicate issue, but I didn't see any obvious matches when I searched for "Server error" so apoligies if it is a dupe.
Ideas on where to start debugging this? do I need to flash the zymatic with a newer firmware?

The "Beta" images refer to how I setup the raspberry Pi, and aren't related to the server code that's hosted in this repository as well.    Saying you don't "have #171" isn't true - all you have to do is go to the System tab and select "Update/Restart" server - there was a recent commit that stopped any Zymatic users from being able to create sessions.  If you update & restart the server you should be good

The "Beta" images refer to how I setup the raspberry Pi, and aren't related to the server code that's hosted in this repository as well.    Saying you don't "have #171" isn't true - all you have to do is go to the System tab and select "Update/Restart" server - there was a recent commit that stopped any Zymatic users from being able to create sessions.  If you update & restart the server you should be good

ok cool! I didn't realize that the image would auto-update- whats the latest hosted update? I don't see the "Add device" button on my screen, even after force updating.
Oh - I do see machine/product ID in the "Import recipes" screen now though so obviously this is newer.

ok cool! I didn't realize that the image would auto-update- whats the latest hosted update? I don't see the "Add device" button on my screen, even after force updating.
Oh - I do see machine/product ID in the "Import recipes" screen now though so obviously this is newer.


SQLiteConnectionPool error while saving large amount of models

DBFlow Version:4.0.4
Issue Kind (Bug, Question, Feature):Question
Description:
Getting below error while saving models continuously in async Transaction when the push notification comes. And the whole UI gets stuck once this occurs.
SQLiteConnectionPool: The connection pool for database has been unable to grant a connection to thread 1 (main) with flags 0x5 for 28.014002 seconds.

SQLiteConnectionPool: The connection pool for database has been unable to grant a connection to thread 1161 (AsyncTask #5) with flags 0x1 for 28.28 seconds. Connections: 0 active, 1 idle, 0 available.

I am saving the model using the below code:
DatabaseDefinition database = FlowManager.getDatabase(SuchDatabase.class);
       Transaction transaction = database.beginTransactionAsync(new ITransaction() {
           @Override
           public void execute(DatabaseWrapper databaseWrapper) {
              //Saving the model here
           }
       }).build();
       transaction.execute();

Please guide me if I am going wrong anywhere.

ensure you are not loading db data on the main thread. ensure you offload all ops to the transaction queue.

not really sure how I can help.


Describe the feature you'd like
Annotations, also called Inline Comments, allow the user to select a portion of text and leave a comment thread tied directly to that text. Unlike comments at the end of a page, which allow the user to comment on the page as a whole, Annotations are specific to a subsection of the page. This prevents ambiguity or the need to repeat what was already written when trying to comment on a part of the page.
This type of feature exists in other Wiki software, Confluence (Inline Comments) and XWiki (Annotations), and is touted as a collaboration feature in document editors, Microsoft Word (Comments) and Google Docs (Comments). A similar feature was requested in #1265, but I'm looking to expand on its justification and possible implementation here.
Describe the benefits this feature would bring to BookStack users
Annotations would allow BookStack users a fine-grain approach to commenting on pages. This allows the commenter the ability to call out exactly which section of text they're referencing instead of needing to specify or rewrite it in the comment section. Depending on how a page evolves over time, doing so could leave older comments referencing part of the page which have since been moved or edited. Furthermore, this streamlines collaboration by allowing the user to emphasize which sections need more work or point out to colleagues where their input is required.
Additionally, this gives the user the ability to elaborate on specific sections of the page where it may merit further explanation but not additional text on the page itself. In lieu of footnotes (requested in #2745, #2637, and #1914), Annotations could provide the user a similar means to reference the source of the information or add notes.
Additional context
The following image shows an example of the UI for Annotations in XWiki:

A typical workflow for using annotations could be as follows:
Creating a new annotation:

Select a portion of text that you would like to comment on.
Create a new annotation on that selected text, typically by right clicking or executing a specific key combo.
Type out the comment and format it as necessary and save the annotation.

Responding to an existing annotation:

Click on the annotated portion of text to bring up  the comment(s).
Add to those comments.

Notes on implementation and typical aspects of Annotations (although still open questions):

Adding an Annotation to the text should emphasize it in some way (such as highlighting) in order to alert the users to the Annotation.
Annotations can cover overlapping sections of text, in which case the method of their emphasize could either blend together or add (such as increasing the alpha of the highlighting).
Deleting the entirety of the text that an annotation is tied to should (?) also delete the Annotation, but could tie it to the page's version history.
The presence of Annotations on a page could be toggle-able, allowing the user to decide if they'd like to see Annotations or not.
For use in collaboration, Annotations typically exist only as long as the section they're commenting on needs to be fixed and typically have a "Resolve" functionality either deleting the Annotation or, better, archiving it in such a way that its clear it has been addressed.

By the way, fantastic work on BookStack, its slowly becoming my go-to knowledge base for gathering all my thoughts. Thanks for all your hard-work!

Thanks for the input @jes-n. I would consider this as a duplicate upon existing issues  #1265 and  #576 so I'm going to close this off as a duplicate and add a reference within #1265 back to this.


Building seems to be stuck

Hi I wanted to build doker minimal, day before I have run it for couple of hours and I had ue4-build-prerequisites and ue4-source images built. Now I wanted to build ue4-minimal but after 3 or 4 hours I had the same logs as attached (but these are fresh after canceling and running again):
PS D:\> ue4-docker build 4.25.3 --linux -username wisien92-password ******--no-full --no-engine
[ue4-docker build] COMMAND-LINE INVOCATION:
[ue4-docker build] ['ue4-docker', '4.25.3', '--linux', '-username', 'wisien92', '-password', '*******', '--no-full', '--no-engine']

[ue4-docker build] UNREAL ENGINE VERSION SETTINGS:
[ue4-docker build] Custom build:  No
[ue4-docker build] Release:       4.25.3
[ue4-docker build] Repository:    https://github.com/EpicGames/UnrealEngine.git
[ue4-docker build] Branch/tag:    4.25.3-release

[ue4-docker build] LINUX CONTAINER SETTINGS
[ue4-docker build] Building GPU-enabled images compatible with NVIDIA Docker (OpenGL support).

[ue4-docker build] GENERAL SETTINGS
[ue4-docker build] Not excluding any Engine components.
[ue4-docker build] Not building the ue4-source image, no Git credentials required.

[ue4-docker build] Image "adamrehn/ue4-build-prerequisites:opengl" exists and rebuild not requested, skipping build.

[ue4-docker build] Image "adamrehn/ue4-source:4.25.3-opengl" exists and rebuild not requested, skipping build.

[ue4-docker build] User specified `--no-engine`, skipping ue4-engine image build.

[ue4-docker build] Building image "adamrehn/ue4-minimal:4.25.3-opengl"...
[+] Building 33.3s (7/26)
 => [internal] load .dockerignore                                                                                0.2s
 => => transferring context: 53B                                                                                0.0s
 => [internal] load build definition from Dockerfile                                                                                0.2s
 => => transferring dockerfile: 5.69kB                                                                                0.0s
 => [internal] load metadata for docker.io/adamrehn/ue4-build-prerequisites:opengl                                                                                0.0s
 => [internal] load metadata for docker.io/adamrehn/ue4-source:4.25.3-opengl                                                                                0.0s
 => CACHED [stage-1 1/5] FROM docker.io/adamrehn/ue4-build-prerequisites:opengl                                                                                0.0s
 => [builder 1/16] FROM docker.io/adamrehn/ue4-source:4.25.3-opengl                                                                                0.0s
 => => resolve docker.io/adamrehn/ue4-source:4.25.3-opengl                                                                                0.0s
 => [internal] load build context                                                                                0.1s
 => => transferring context: 5.95kB                                                                                0.0s
###

What could be the case? Or maybe It just needs a lot of time to build?
If all fails does anybode have UE4:25.3-minimal for me to copy to my dockerhub?

Ok I have pruned docker builds and it seems to work now - I will  close once it is finished.

This was a Linux build from Windows, so I guess that something went wrong in the Linux VM/MicroVM. At that point in the log, ue4-docker is uninvolved, it's just Docker copying things from the host system into its own storage. And there's not a lot to copy.
Are you using WSL2 or HyperV? If the latter, maybe the VM ran out of space, and that's why docker system prune helped.

Assuming this was indeed run using Docker Desktop under Windows 10 (and not something more exotic and unsupported like WSL2 under Windows Server), I'd also be interested to know whether this was using a Hyper-V Moby VM or the newer WSL2 backend.

I was using Docker desktop under Windows 10 using WSL2

@wisien92 thanks for the info, I'll keep that in mind if anyone else runs into this problem in the future. Fortunately WSL2 provides more opportunities for inspecting things than the old Hyper-VM Moby VM did, so there are avenues for investigation if ever needed.
Feel free to close this issue if everything worked correctly after pruning.


[Maintenance] Fix/python dependencies

Task
[Maintenance]: Fix Iroha release dockerfile.
Description of the Change
We have got broken CI process for Iroha. The problem was in iroha.deb unsatisfied dependency. New PPA repository was added.
Benefits
The CI process will work properly.
Possible Drawbacks
None
Author
Signed-off-by: Dmitriy Creed<EMAIL_ADDRESS>

I can be problem for users who don't use the docker container to deploy Iroha.


fix: make fal work with dbt-fal

This is a quick fix. Need to look into more sustainable solution. Open to suggestions.

fixed in #660


Allow raising refresh rate to 95.9

Worded it in a bit of an indirect way to hopefully convey both the purpose of the higher refresh rate, but also to emphasize that it has some quirks around passthrough which can drop the FPS to 90 e.g. when taking a step backwards. In practice, as long as Steam is set to 96FPS, it seems to lower the refresh rate just fine, without any stuttering.

Merging this bc it actually fixes some things, and with a weekend of testing, seems very stable


Not working with ScrollView

It works with View, but not working with ScrollView
Platform: Android 6

Hi @priyesh9875,
I think this is a platform related issue since I managed to make it work on iOS without any problem. But you're right, I am facing some issues on Android...

Set the containing ScrollView to removeClippedSubviews={false} and things should work. See https://github.com/facebook/react-native/issues/8088


Replace insertions with macros

modifcate allocate_values! macro to turn data passed as int to bigint before memory insertion.
Add allocate_selector! macro to handle the special case of selectors that are strings and cannot be easily handle with a single macro because of data types limitations.
Replace memory insertions with memory_insert! macro in tests.

Codecov Report

Merging #30 (4825355) into main (272ab57) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #30   +/-   ##
=======================================
  Coverage   72.10%   72.10%
=======================================
  Files          11       11
  Lines         631      631
=======================================
  Hits          455      455
  Misses        176      176

Impacted Files
Coverage Δ

...rc/core/syscalls/business_logic_syscall_handler.rs
48.18% <ø> (ø)

src/utils.rs
58.82% <ø> (ø)

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


PHP 5.3 Compatibility

Unbelievably, Amazon Linux, CentOS and RHEL still use PHP 5.3.  There are a few changes which are needed to support these platforms, which are still very prevalent.
Cluster.php, line 47.  Change this:
$points = [];
to this:
$points = array();
Cluster.php, lines 51-54.  Change this:
return [
'centroid' => parent::toArray(),
'points'   => $points,
];
to this:
return array(
'centroid' => parent::toArray(),
'points'   => $points,
);
Point.php, lines 46-49.  Change this:
return [
'coordinates' => $this->coordinates,
'data' => isset($this->space[$this]) ? $this->space[$this] : null,
];
to this:
return array(
'coordinates' => $this->coordinates,
'data' => isset($this->space[$this]) ? $this->space[$this] : null,
);
Space.php, line 53.  Change this:
$points = [];
to this:
$points = array();
Space.php, line 57.  Change this:
return ['points' => $points];
to this:
return array('points' => $points);
Space.php, line 101.  Change this:
Thanks!
Ron Cemer

If you want these changes done, you should create a pull-request and I'll consider merging it :)

I would agree, except that the most popular server OS in the world, CentOS, is still stuck in the dark ages with regard to PHP.  I'll go ahead and put this together for you.
Also, thanks for writing this package.  It works well!

No problem. Your contribution is appreciated :+1:


Add warning re TopFiveSongs aggregator

See discussion on https://issues.apache.org/jira/browse/KAFKA-12446
and https://github.com/confluentinc/kafka-streams-examples/issues/380

@confluentinc It looks like @benissimo just signed our Contributor License Agreement. :+1:
Always at your service,
clabot

Thanks for the PR -- can we direct the PR to 6.2.x branch so it goes live with 6.2.0 release? Or maybe even 6.1.0-post to get it live current examples? -- If you don't care, I can also merge as-is, but it would only go live with 6.3.0 release than.

@mjsax Sure, whichever target branch makes the most sense. Feel free to change as needed. Please let me know if there's anything I can do to help.

Feel free to change as needed.

Well I tried this but it pulls in other commit from other branches -- you would need to rebase this PR on the new target branch... Can you do this? (If rebasing does not work, just close this PR and do a new one).
I would propose to use 6.1.0-post as target branch.
Thank you!

I created a new branch, based on 6.1.0-post, and cherry-picked my commit onto it: https://github.com/confluentinc/kafka-streams-examples/pull/384 cc @mjsax


Screen recording requires root authentication

Describe the bug
When activating screen recording through the Dashboard menu, the icon change and completion notification indicate the screen recording is successful. After opening the screen recording directory, I found it empty.
To Reproduce

Run hyprpanel from the terminal.
Click the "Record Screen" button and select the desired display
Notice the following prompt in the terminal

==== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
Authentication is needed to run `/nix/store/awl9vjsm3pbv28iry7plhzvxdnb ... -kms-socket-PlBCPhZHfa /dev/dri/card1' as the super user
Authenticating as: gideon
Password:
==== AUTHENTICATION COMPLETE ====

At this point, the screen recording will be in the output directory.

Expected behavior
That the screen recording functionality is accessible without needing to use a terminal
Screenshots
n/a
Desktop (please complete the following information):

Distribution: NixOS 24.11
Window Manager/Desktop Environment: Hyprland

Additional context
I'm also confused at the choice of not providing a config option for the output directory of the screen recording. I have taken the time to configure the commonly used XDG directories, so it would be great if XDG_VIDEOS_DIR/screencasts could be used, or even better just let the user configure it themselves. I now find my home directory cluttered with a videos (mine) and Videos (that only contains hyprpanel screen recordings)

Lots of great feedback. The recording is going to be reworked to provide multiple options or potentially a custom recorder. I'll likely add the QoL updates in that effort.

Thanks for the quick response! loving hyprpanel so far, most everything works great out of the box :)


specify cpp standard to compiler

otherwise I get the following on Apple LLVM version 10.0.1 (clang-1<IP_ADDRESS>)
  cargo:warning=third-party/cimplot/implot/implot_demo.cpp:1429:41: error: a space is required between consecutive right angle brackets (use '> >')
  cargo:warning=    static ImVector<ImVector<ImPlotPoint>> records;
  cargo:warning=                                        ^~
  cargo:warning=                                        > >
  cargo:warning=1 warning and 1 error generated.
  exit code: 1

Interesting, had not tested the code on mac yet. I also get a bunch of warnings from implot_internal.h at the moment, in case you know how to solve those, let me know - I have not investigated yet.

so I got warnings like the following which could by disabled by passing "-Wno-unused-parameter"
they are different depending on the compiler though afaik
warning: third-party/cimplot/implot/implot.cpp:1636:28: warning: unused parameter 'label' [-Wunused-parameter]
warning: bool DragFloat(const char* label, F* v, float v_speed, F v_min, F v_max) {
warning:                            ^

OT but i was trying to get imgui to be the same size as the (main/ outer) window, I basically only need a simple line graph like in the examples and some boxes but I could not get it to work with resizing yet :/ :D
Maybe this use case is more common when plotting stuff, if you know how this works and could add this to the example that would be really nice :D

I have code sitting around somewhere that does this - some ImGui stuff can be called outside a window context and it just draws on the background, but I have not tested what happens with the ImPlot plot if you try to do that. What I've also done in the past is just figure out the size of the main window and create a fixed-size "imgui window" inside that.
I'll look for the code and cook up an example for you.

So I ended up setting the imgui window to the top left and then copying the size of the winit window but when resizing the outer window everything breaks and I think I would have to reinstatiate the display with the new sizes but did not refactor the code to do that as it was just a small visualisation that needed to be done and it did not play well with the event loop abstraction (at least that was my impression).
In the longer term I'd use https://github.com/Yatekii/imgui-wgpu-rs as a backend and I'm already using it in another project with normal imgui-rs but could not yet get it to compile with implot-rs but as soon as both projects agree on the recent stable imgui-rs I think it will just work and this will also probably solve my resizing/ api problem as well.
I would still like to try your code if you come around to uploading it but no pressure :)
Thanks for the work on this, I was really happy to discover it!


README: Convert logo.png to logo.webp

Hello, I converted logo.png to logo.webp; it is now 37.6KB instead of 2.36MB. Also including screenshots of before and after to review any difference in quality with image.
Before:

After:

nice!


Improve support for developing on Windows

@bcantoni I know this is a WIP, but having the dev branch may cause problems, because most times the package-lock.json file points to artifactory and will cause timeout errors during Github Action builds.

@elbandito thanks I forgot about that! I'll swap it back to go against main. There does seem to be failures on Windows in that line running tslint.

This change includes a couple things that might help for those who are developing on Windows:

Update the build action to also run on Mac and Windows (currently only on Linux)
Switch the tslint command to use npx rather than a local path


CDAWeb issue with virtual variables and master OMNI2_H0_MRG1HR

The CDAWeb support doesn't check the masters to see if virtual variables exist in the master file.  For example, in Autoplot
vap+hapi:http://localhost:8080/HapiServer/hapi?id=OMNI2_H0_MRG1HR&parameters=Time,ABS_B1800&timerange=1998-09-06+through+2024-05-09
doesn't work because ABS_B1800 is a virtual variable which is resolved by looking in the master.  Instead the code doesn't think it's virtual and doesn't find the variable.

There's a list of all the virtual variables, virtualVariables.txt, which did not have OMNI2_H0_MRG1HR listed as a virtual variable.  This caused the problem.


custom history outputs instead of letting me re-run the command

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[x] bash
[ ] zsh
[ ] fish

Problem / Steps to reproduce
This is probably a noob thing, but I'm at a bit of a loss here...
I have this snippet in my .bashrc
# source: https://news.ycombinator.com/item?id=11806748
HISTFILE="${HOME}/.history/$(date -u +%Y-%m-%d)_${HOSTNAME}_$$"; export HISTFILE
__fzf_history__() {
  sift --no-color -e "^[^#]" --files "*_${HOSTNAME}_*" -N --no-filename $HOME/.history | sort | uniq -c | sort -n | $(__fzfcmd) +s --tac +m -n1..,.. --tiebreak=index --toggle-sort=ctrl-r | sed "s/ *[0-9]* *//"
}
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"

This worked great with an older version of fzf (commit 5d16b288698ecec96080a5d576521d92550e78fd), but somehow breaks when I pull master.
When it used to work, I could hit CTRL+R, see a list of the history items, hit enter on one of them, and the command would appear ready for me to modify or execute it.
With master, it works the same, but instead of putting the command in the prompt, it outputs it, and I get an empty prompt.
I did a git bisect and it looks like this commit breaks things for me.
The odd thing is that even with the older version that "works", if I manually run __fzf_history__ then it behaves like CTRL+R works in master... So in a way, I'm not even sure how it worked in the first place?
Hope I was able to describe things clearly. It's probably some very basic bash thing that escapes me? would appreciate any pointers/help.

Hi, the function wasn't really designed to be overridden, and your trick stopped working when we changed the implementation. For now, you can try something like this, modifying READLINE_LINE and READLINE_POINT:
__fzf_history__() {
  local selected
  selected=$(seq 10 | fzf --height 50% --reverse)
  READLINE_LINE=$selected
  READLINE_POINT=10000
}

But please keep in mind that there is no guarantee that this will still work in the future. You might want to learn how to define custom key bindings from scratch instead of hacking the fzf implementation.

Thanks @junegunn ! I will give it a try... I just borrowed this code from someone else. What's the "proper" way of achieving this though? or more generally, how can I use fzf so the output is made available on the prompt to then change or hit enter to run?

how can I customize the fzf history without overriding it?

Well, you can't. You may configure fzf options via $FZF_CTRL_R_OPTS but that's about it, there is no option that allows you to customize the execution model of the current implementation.

more generally, how can I use fzf so the output is made available on the prompt to then change or hit enter to run?

You'll have to read the code in this repository and learn how it's done, and you'll be able to write your own stuff. It won't be hard.

You'll have to read the code in this repository, learn how it's done, and you'll be able to write your own stuff. It won't be hard.

I wouldn't ask if it wasn't hard for me to figure it out... RTFM (or RTF Code) then. I appreciate you taking the time to look into this.

This is the current code for CTRL-R:
__fzf_history__() {
  local output
  output=$(
    builtin fc -lnr -2147483648 |
      last_hist=$(HISTTIMEFORMAT='' builtin history 1) perl -n -l0 -e 'BEGIN { getc; $/ = "\n\t"; $HISTCMD = $ENV{last_hist} + 1 } s/^[ *]//; print $HISTCMD - $. . "\t$_" if !$seen{$_}++' |
      FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort,ctrl-z:ignore $FZF_CTRL_R_OPTS +m --read0" $(__fzfcmd) --query "$READLINE_LINE"
  ) || return
  READLINE_LINE=${output#*$'\t'}
  if [ -z "$READLINE_POINT" ]; then
    echo "$READLINE_LINE"
  else
    READLINE_POINT=0x7fffffff
  fi
}

bind -m emacs-standard -x '"\C-r": __fzf_history__'
bind -m vi-comman`d -x '"\C-r": __fzf_history__'
bind -m vi-insert -x '"\C-r": __fzf_history__'

The function is pretty simple and short so I don't think it's really worth it to add more configuration variables.

Thank you @junegunn. Yeah, I was able to find it, but can't say that it's easy for me to digest.  The READLINE stuff in particular doesn't click for me, plus the various options, builtin fc -lnr ... the perl stuff etc ...
I understand the reasoning not to add too many configuration options. I'm wondering however if it's somehow possible to split the input and output aspects of history? i.e. some kind of "get_history" function (that can perhaps get overwritten), with a "handle_output" part that handles the fzf aspects of fuzzy-finding results, selecting them and making them available to the command line if it makes sense?
I apologize if this sounds too naive, or shows my lack of bash, fzf expertise, but just something that conceptually I hope can make things more composable and easier to customize? totally understand if you're not interested changing things there, and thanks again for your help.

I gave you a simplified version of it in the above comment to help you understand the structure of the code.
https://github.com/junegunn/fzf/issues/2402#issuecomment-806296915
But let me repeat it here with a slight modification so that it works with an actual command history (rather than seq 10)
__fzf_history__() {
  local selected
  selected=$(history | fzf --height 50% --reverse --tac --query "$READLINE_LINE" | sed 's/^[0-9 ]*//')
  READLINE_LINE=$selected
  READLINE_POINT=10000
}

It's pretty simple, right? You may not be familiar with READLINE variables, but the names are pretty straightforward and you can easily look them up on Google. So that's basically it. Now you can build your own version starting from here, just by changing the selected=$(...) part.
If you want to learn how we ended up with a much more complicated command than history | fzf ..., I suggest that you git blame the line and see how it evolved through the time.

7c447bbdc7adb1fe0c848e171780f68cacf3e80e
5cae8ea733e8663eae96480b5e6d4c94afcdb3bd
18261fe31cf1270f9aa783f99bbdbca343f89479

The command has become quite complicated, but the code structure still remains the same.
So, let's say we are going to support an arbitrary command for getting the command history. Then with the current code, we have to document that the command should follow certain rules.

Entry delimiter must be \0, rather than \n to support multi-line commands
Each entry should follow the form LINENO\tCOMMAND

Inevitably, people will ignore the instruction and start asking here why their FZF_CTRL_R_COMMANDs are not working as expected. And I'm not sure if all the trouble is worth it. Few users actually want to customize the command (especially when the current implementation efficiently removes the duplicates and supports multi-line commands), I would just tell them to write their own version, rather than to rely on a configuration variable with certain limitations.
Adding a variable also increases the maintenance burden. I have to make sure that it works identically across three different shells (bash, zsh, and fish), and I also have to make sure that I don't break anything whenever I want to change or update the code. It's tiring and it sometimes makes me want to stop maintaining all these things 😄

It's tiring and it sometimes makes me want to stop maintaining all these things 😄

Please don't give up! fzf is awesome 🥇
I totally got how to use it from your seq 10 example and it works perfectly. I was just commenting primarily about your point about __fzf_history__ not meant to be overridden, when this is the only choice I had ... you also mention using more variables as an option to make it configurable. I just thought that rather than adding variables, breaking down into small functions, and letting users override a smaller portion might be a way to simplify...
I totally understand your point though, and the problem with the various "rules" involved as you described. I can see where my thinking breaks.
In any case, thanks again for your patience and great effort going into explaining things. I sincerely appreciate it, and also hope that this conversation is useful in future, if anyone else bumps into it.


Update documentation and specs on all functions

Right now there are chunks of documentation which are out of date, they need to be updated ASAP. In addition, there are a number of missing @spec tags which need adding. We might open up the documentation on Hex in v2.x, so makes sense to start preparing.

Closed in 8878d62.


can i use the name of a check as a template value in an action?

I want to have a bunch of checks that have different rules, but the same action (create a report) and indicate which check they belong to, and i think i could save some space by having the action report template just use the check's name.

I'm not sure I understand what you are trying to do, could you give me an example configuration with your desired behavior?
You can used named rules to reference defined rules, if this is what you are looking for. The same naming behavior works for rules as well.

In short, i'm trying to golf this.
runs:
  - checks:
      - name: dgg Dual Citizen
        kind: comment
        rules:
          - condition: AND
            rules:
              - kind: recentActivity
                window: 30 days
                thresholds: [ { threshold: '>= 6', subreddits: ["destiny"] } ]
              - kind: recentActivity
                window: 30 days
                thresholds: [ { threshold: '>= 6', subreddits: ["vaushv"] } ]
        actions:
          - kind: report
            content: bot report - dgg Dual Citizen
      - name: dgg Hardcore
        kind: comment
        rules:
          - condition: AND
            rules:
              - kind: recentActivity
                window: 30 days
                thresholds: [ { threshold: '>= 6', subreddits: ["destiny"] } ]
              - kind: recentActivity
                window: 30 days
                thresholds: [ { threshold: '>= 1', subreddits: ["vaushv"] } ]
        actions:
          - kind: report
            content: bot report - dgg Hardcore
      - name: dgg Ambassador
        kind: comment
        rules:
          - condition: AND
            rules:
              - kind: recentActivity
                window: 30 days
                thresholds: [ { threshold: '>= 1', subreddits: ["destiny"] } ]
              - kind: recentActivity
                window: 30 days
                thresholds: [ { threshold: '>= 6', subreddits: ["vaushv"] } ]
        actions:
          - kind: report
            content: bot report - dgg Ambassador
      - name: dgg Newbie
        kind: comment
        rules:
          - condition: AND
            rules:
              - kind: recentActivity
                window: 30 days
                thresholds: [ { threshold: '>= 1', subreddits: ["destiny"] } ]
              - kind: recentActivity
                window: 30 days
                thresholds: [ { threshold: '>= 1', subreddits: ["vaushv"] } ]
        actions:
          - kind: report
            content: bot report - dgg Newbie

Ok, I see what you mean now.
The content rendering function doesn't have access to the check name but I can add that in pretty easily! I'll make sure that gets added for the next release.
In the meantime you can shorten your config somewhat by re-using rules:
runs:
  - checks:
      - name: dgg Dual Citizen
        kind: comment
        rules:
          - condition: AND
            rules:
              - kind: recentActivity
                name: destinySixRecent
                window: '30 days'
                thresholds:
                  - threshold: '>= 6'
                  - subreddits:
                      - destiny
              - kind: recentActivity
                name: vaushSixRecent
                window: '30 days'
                thresholds:
                  - threshold: '>= 6'
                  - subreddits:
                      - vaushv
        actions:
          - kind: report
            content: bot report - dgg Dual Citizen
      - name: dgg Hardcore
        kind: comment
        rules:
          - condition: AND
            rules:
              - destinySixRecent
              - kind: recentActivity
                name: vaushOneRecent
                window: '30 days'
                thresholds:
                  - threshold: '>= 1'
                  - subreddits:
                      - vaushv
        actions:
          - kind: report
            content: bot report - dgg Hardcore
      - name: dgg Ambassador
        kind: comment
        rules:
          - condition: AND
            rules:
              - kind: recentActivity
                name: destinyOneRecent
                window: '30 days'
                thresholds:
                  - threshold: '>= 1'
                  - subreddits:
                      - vaushv
              - vaushSixRecent
        actions:
          - kind: report
            content: bot report - dgg Ambassador
      - name: dgg Newbie
        kind: comment
        rules:
          - condition: AND
            rules:
              - destinyOneRecent
              - vaushOneRecent
        actions:
          - kind: report
            content: bot report - dgg Newbie

Suggested by @CuriousLyz -- add {{subreddit}} to template

hey @wchristian ! Sorry this is so late but you can now use {{check}} to get the check name. This is in the edge branch now and I'll do a release next week. You would use it like this:
actions:
          - kind: report
            content: {{check}}

You could also re-use the action if you named it, like this:
checks:
  - name: myCheck
    #...
    actions:
      - name: reportCheck
        kind: report
        content: {{check}}

  - name: mySecondCheck
    #...
    actions:
      - reportCheck

Available in 0.12.1

my own work has been very busy, but i want you to know i appreciate this :)


update line 129

for (int i = 0; i < SHA256::DIGEST_SIZE; i++)
change to
for (int i = 0; i < (int) SHA256::DIGEST_SIZE; i++)

After successful compilation, i am only gettinh the output as:-
Mining 1...
after that it doesn't display anything.
What could be the reason??
Please help me out to get the desired output.

it seems that the @subhutrivedi update just makes the warning

"comparison between signed and unsigned integer expressions [-Wsign-compare]"

disappear with no further consequences.

After successful compilation, i am only gettinh the output as:-
Mining 1...
after that it doesn't display anything.
What could be the reason??
Please help me out to get the desired output.

@subhutrivedi, have you ever tried to change the _nDifficulty = 6; from the blockchain constructor to a lower value?

Actually my problem got solved few minutes after I posted my comment that
day and I am also getting the desired output and yeah I have not tried to
change the _nDifficulty = 6; from the blockchain constructor to a lower
value.
On Fri 12 Jul, 2019, 2:01 PM Ángel Bravo<EMAIL_ADDRESS>wrote:

it seems that the @subhutrivedi https://github.com/subhutrivedi update
just makes the warning
"comparison between signed and unsigned integer expressions
[-Wsign-compare]"
disappear with no further consequences.
After successful compilation, i am only gettinh the output as:-
Mining 1...
after that it doesn't display anything.
What could be the reason??
Please help me out to get the desired output.
@subhutrivedi https://github.com/subhutrivedi, have you ever tried to
change the _nDifficulty = 6; from the blockchain constructor to a lower
value?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/teaandcode/TestChain/pull/5?email_source=notifications&email_token=AJ6AYLERAXZCYOJDTGWKU6LP7A6NJA5CNFSM4F7MMGOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZZDG3Y#issuecomment-510800751,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJ6AYLDDQWGC76ONO2PZNXLP7A6NJANCNFSM4F7MMGOA
.


added happiness method to dog

added basic happiness method to dog

a controversial push! But i agree that somewhere in every computer is a dog's happiness level so i approve. we can decide whether to use it later. thanks @joshzich


[e2e]: go workflow_dispatch main workflow_inputs-noldflags slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/7648596765
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.workflow_dispatch.main.workflow_inputs-noldflags.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.workflow_dispatch.main.workflow_inputs-noldflags.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Thu Jan 25 01:33:20 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/7662724983
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.workflow_dispatch.main.workflow_inputs-noldflags.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.workflow_dispatch.main.workflow_inputs-noldflags.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Fri Jan 26 01:31:55 UTC 2024
Tests are passing now. Closing this issue.


 I have verified this problem, and it turns out that you can not add me as a moderator using the manual guid, nor by clicking on the button "add as moderator". I can, however, add other moderators.
I have opened an issue thinking that it was a client problem (https://github.com/OpenBazaar/OpenBazaar-Client/issues/1469) but the response I got there was that the problem concerns the server. You can verify this problem by using my OpenBazaar GUID:
51df06a21ea821b337c85388bdd786757818e7f0 (@lunokhod)
I am running the server on OSX, I have no other connection problems, and I am using the latest commit 258a5e64130d6b247c0517005e974024bb22394a
The only "non standard" thing I am doing is specifying a specific network port with the command
python openbazaard.py start -d -p 20000 -a <IP_ADDRESS>

This problem has mysteriously gone away, for the time being. I will re-open the issue if it reappears.

I have same problem and I can't add you for example.
Try adding me and see if it works: 403e140c2c74aab8bdbf5ea9a2ba426bb12a2fd5

@lunokhod can you reopen this case?


Updated OAuth2 router generator for better OpenAPI docs

This PR:

adds response_model to the OAuth2 authorize route
changes the authentication_backend param's type on the OAuth2 authorize route to a dynamically generated enum, so that possible values are shown in generated OpenAPI documentation

There's a breaking change on the authorize route which now returns 422 instead of 400 when an incorrect backend name is passed to it. This change is IMO justifiable as pydantic validation is generally preferred in FastAPI.

Wow, that's super clever! I never thought about using a dynamic enum to trigger this validation.
Thank you for this, it's a great contribution 🙏 May I ask you to update the documentation right here?

@all-contributors add @matyasrichter for code


[test] Misc visual regression flakiness improvements

Prevent hover effects
actually prevent images
wait for FontAwesome to be loaded
We're now waiting before screenshotting until passive effects of children are flushed and their timers have run.
fix test duplication
/Inputs was used twice because it matched js and ts. But js and ts should only refer to extensions.

Yes! Excited about the idea that we have now faster (playwrite x2 run test, Argos-CI x3 of workers) and less flaky (stable rendering, batch upload) visual regression tests :D


Palindrome Linked List - POTD | 25-Sep-2024

Palindrome Linked List
Link
Difficulty: Medium
Given a singly linked list of integers. The task is to check if the given linked list is palindrome or not.
Examples:
Input: LinkedList: 1->2->1->1->2->1
Output: true
Explanation: The given linked list is 1->2->1->1->2->1 , which is a palindrome and Hence, the output is true.

Input: LinkedList: 1->2->3->4
Output: false
Explanation: The given linked list is 1->2->3->4, which is not a palindrome and Hence, the output is false.

Expected Time Complexity: O(n)
Expected Auxiliary Space: O(1)

Note: You should not use the recursive stack space as well
Constraints:

1 <= number of nodes <= 105
1 ≤ node->data ≤ 103

Solved
class Solution:
    def isPalindrome(self, head):
        a=head
        l=[]
        while a:
            l.append(a.data)
            a=a.next
        if l == l[::-1]:
            return True
        return False


Add support for writing zipped wordlists

Add support for building a .txt wordlist and then run zip on it; because zip does not support streaming input in to an arbitrary file name inside of the zip archive.

Unfortunately thezip command doesn't support compressing a streamed in file with an arbitrary name given on the command-line. Closest is cat file.txt | zip output.zip -, but then the filename within the zip will be called -. We would have to write to a .txt file first, then compress it, then remove the .txt file, which would eat up disk space...

Implemented by 6fb1b98.


Update Composer dependencies (2021-03-03-00-11)

Visual regression test passed!
View the visual regression test report


Rust/Wasm accessibility audits

The next step for kayle is to create our own runner in Rust that ports to wasm.
We have a high overview of the stability we can get from runs to build.
There is a method called _audit_not_ready in kayle_innate that has a start to getting a web accessibility parser ready.
How

Build a tree that has direct nodes that can be iterated upon of all element tags.
Build a css model mapper to nodes to reflect styles applied.
Apply the rules per node mapped on the tree.
Get context of issues with localization.

Gains
At a high level the runs should perform between 20-40ms consistently for all audits regardless. The scaling has a high top level so the larger will only affect runs a little. Having the consistency of 20-40ms stable across audits could be a big win if we pick out the important test from htmlcs, axe, and ace` while keeping the performance to the T.
Closing Thoughts
Our rewrite of html is really fast where it might make sense to flip the aspects of focus to increase the throughput of that runner until we get it to 10-20ms on average. The codebase allows for easy transitions to o(1) lookups and oneshot maps.

Closing for more detailed per task


on-demand cache revalidation/incremental static genration

Describe the feature
Hi!
The feature is to add a global function revalidate which can be called with path argument to revalidate the cache of a specific path. Ex: Initially route have {static:true} and in API route we can do revalidate('/blog'), revalidate('/blog/posts/1').
It will be useful for CMS and can be used with webhook to see instant changes.
This feature can further be extended in nuxt for on-demand incremental static generation.
This can be further simplified by providing a default route /__nuxt/revalidate/ or '__nitro/revalidate' with path='...'  to revalidate the route.  Of course, user can add middleware to secure the route to verify the request is coming from CMS.
Additional information

[ ] Would you be willing to help implement this feature?

You can create a server route (and protect it however you like) to clear cache using something like this:
export default eventHandler(async event => {
  // TODO: Protect route
  const storage = useStorage()
  const cacheKeys = await storage.getKeys('cache:')
  await Promise.all(cacheKeys.map(key => storage.removeItem(key)))
  return { clearedItems: cacheKeys.length }
})

Can you try it and if found useful maybe we can make a built-in util for clearCache(prefix)

I proposed something similar here: https://github.com/unjs/nitro/discussions/716
I built to utils: createSwrCache and revalidateSwrCache
stackblitz: https://stackblitz.com/edit/github-xc6cjm-qscwkg?file=utils/swrRevalidate.ts

Nice! What would be the usage of createSwrCache? (cache entries are internally and automatically created and managed)
We might expose two new utils, clearCache(prefix) (it is not essentially swr) and prefetchRoutes(routes: []) . Wdyt?

At that time I wanted to make a constistent way of configuring the cache-key for the storage-value with createSwrCache, which in turn made it clear what to target with revalidateSwrCache.
But now I think it could be easier to have have a clearCache function on a cachedEventHandler itself.
 // routes/<route>.ts
export default cachedEventHandler(
  async () => {
    new Promise((resolve) => setTimeout(resolve, 1000));
    console.log('index');
    return `Response generated at ${new Date().toISOString()}`;
  },
  {
    swr: true,
    maxAge: 500000,
  }
);

And then import it elsewhere:
 // routes/<reval-route>.ts
import routeHandler from './<route>.ts'
export default defineEventHandler((event) => {
     routeHandler.clearCache()
});

The same might also be applicable to cachedFunction
Either that or a function that simply takes in a route-path.

@pi0 The above code you have given is invalidating all cache. It will be nice to have utils to invalidate specific cache.
Any reference to how cache key are generated?

I found it.
https://github.com/unjs/nitro/blob/main/src/runtime/cache.ts#L177
Its a ${first_16_character_of_url_path}.${hashed_path}

While going through issues and pull requests I found that It was planned but never implemented
https://github.com/unjs/nitro/pull/545#issuecomment-1307446222

While going through issues and pull requests I found that It was planned but never implemented #545 (comment)
Edit: Can we ask danielroe he said that he had already a local prove-of-concept

I think the discussion mention which is happening on PR https://github.com/unjs/nitro/pull/545 is not quite what is being discussed here. I believe the discussions in that PR are specific to Vercel's cache and if so then I think this latest 3.7 release should have handled those requirements based on a PR of my own here https://github.com/unjs/nitro/pull/1723
I do think this specific on demand nitro cache invalidation still needs to be worked on. If Pooya provides some more detail I am willing to work on this, I am just a bit confused about this comment and what exactly prefetchRoutes(routes: []) would be doing or how it would work

I've been looking at a solution for this myself recently. Imho it needs to be based on cache tags like in the https://github.com/dulnan/nuxt-multi-cache module.
That way one could leverage cache tags (e.g. Job Postings that are displayed and linked on several different pages/routes) and clear the associated cache tags from a CMS etc.

Any updates on this?

This is a really needed feature. Especially using ISR: true for dynamic pages (e.g. product page) – when underlying data changes (e.g. product was updated on backend) we need a way to revalidate it's page on CDN

Any updates?

Any updates?


NaN issue when multi-target regression

the autoxgb study does not launch when one of the targets is missing .
is there anywork around ?

Why would anyone have missing targets in training data? :)

not completely missing . some rows will have 2 targets and one target is Nan . ideally that row is eliminated for the third target. if a single target model is built

The target should never be missing. If the target is missing, you need to handle them before inputting to autoxgb. Not just xgboost, any model will fail if targets are missing :)

Are we using any kind of transformations on target variables? For example if we have skewed log normal distribution basic convention would be to apply log transformation

no. There is no transformation of target variables.


Unable to use content-type header

It seems like the content-type header is being stripped from my request when passing through:
const contract = c.router({
	getAccessToken: {
		method: "POST",
		path: "/oauth_token.do",
		body: z.string(),
		responses: {
			200: z.object({
				access_token: z.string(),
				token_type: z.string(),
				expires_in: z.number(),
				scope: z.string(),
				refresh_token: z.string(),
			}),
		},
		headers: z.object({
			"content-type": z.literal("application/x-www-form-urlencoded"),
		}),
	},
})

I understand there's a contentType attribute when creating the route. However, it only has strict options:

Additionally it would be cool if we could transform the body to the correct format, using URLEncode from a zod object. But I'll get a separate feature request raised for that.

import { initClient, initContract } from "@ts-rest/core";
import z from "zod";

const echoContract = c.router({
	sendPost: {
		method: "POST",
		path: "/post",
		body: z.string(),
		responses: {
			200: z.string(),
		},
		contentType: "application/x-www-form-urlencoded",
	},
});

export const echoClient = initClient(echoContract, {
	baseUrl: "https://postman-echo.com",
	baseHeaders: {
		"content-type": "application/x-www-form-urlencoded",
	},
});

echoClient.sendPost({
	body: "foo=bar&baz=qux",
	extraHeaders: {
		"content-type": "application/x-www-form-urlencoded",
	},
}).then((response) => {
	console.log(response.headers.get("content-type"));
});

Further debugging has lead me to believe this is the issue:
https://github.com/ts-rest/ts-rest/blob/9fcd88eb35a91e8a0940e5d6cd06539d710709a1/libs/ts-rest/core/src/lib/client.ts#L227
The reason being is that any request is getting it's body "JSON.parse"'d which means that even if you specify z.string() as the body type. It will convert the string Hello to "Hello".

#461 closes this

In the new version the body is encoded with FormData but that won't always be the case, or did I miss something with this change?
Example:
export const contract = c.router({
  login: {
    method: 'POST',
    path: '/authentication',
    contentType: 'application/x-www-form-urlencoded',
    responses: {
      200: c.type<Response<User>>(),
    },
    body: z.any(),
  },
})

  const params = new URLSearchParams()
  params.append('username', values.username)
  params.append('password', values.password)

  console.log(params.toString())
  // prints: username=test%40mail.com&password=test

  const data = await client.auth.login({
    body: params.toString(),
  })

Result:

What I expected:

I think there's a bug somewhere - For some reason ts-rest is JSON encoding the body, which means that a string is turned into: "my_payload_here" rather than being my_payload_here. I'll get a bug raised an hopefully resolve at some point in the next couple of weeks

@joaolisboa @alex-way fixed in #524


TSCBasic: plug a memory leak

realpath will heap allocate the path, and String(cString:) will copy
the heap allocation.  This results in a memory leak due to the allocated
memory never being freed.  Ensure that we deallocate the memory.

@swift-ci please test

merged into s-p-m, synced in #14


DNSSEC settings not visible on fresh install

On a fresh install (Debian 11) the domain entered during installation throws a DNSSEC-needs-to-be-set warning on the status page. This makes sense -- it hasn't been set yet.
However, the message says "This domain's DNSSEC DS record is not set. The DS record is optional. The DS record activates DNSSEC. See below for instructions."
No instructions are visible and there are no DNSSEC keys shown ala standard MIAB.

Update: The issue seems to be a button in the HTML that's not rendering on the screen. Viewing the page's HTML shows the missing DNSEC info. The potentially invisible-on-the-screen button HTML:

Show More

Ack'd, I also have a fix ready that I'll be pushing out sometime tomorrow - hang tight!

Fixed in v56.5 :D


[SPARK-44581][YARN] Fix the bug that ShutdownHookManager gets wrong UGI from SecurityManager of ApplicationMaster

What changes were proposed in this pull request?

I make the SecurityManager instance a lazy value
Why are the changes needed?

fix the bug in issue SPARK-44581
Bug:
In spark3.2 it throws the org.apache.hadoop.security.AccessControlException, but in spark2.4 this hook does not throw exception.
I rebuild the hadoop-client-api.jar, and add some debug log before the hadoop shutdown hook is created, and rebuild the spark-yarn.jar to add some debug log when creating the spark shutdown hook manager, here is the screenshot of the log:

We can see from the screenshot, the ShutdownHookManager is initialized before the ApplicationManager create a new ugi.
Reason
The main cause is that ShutdownHook thread is created before we create the ugi in ApplicationMaster.
When we set the config key "hadoop.security.credential.provider.path", the ApplicationMaster will try to get a filesystem when generating SSLOptions, and when initialize the filesystem during which it will generate a new thread whose ugi is inherited from the current process (yarn).
After this, it will generate a new ugi (SPARK_USER) in ApplicationMaster and execute the doAs() function.
Here is the chain of the call:
ApplicationMaster.(ApplicationMaster.scala:83) -> org.apache.spark.SecurityManager.(SecurityManager.scala:98) -> org.apache.spark.SSLOptions$.parse(SSLOptions.scala:188) -> org.apache.hadoop.conf.Configuration.getPassword(Configuration.java:2353) -> org.apache.hadoop.conf.Configuration.getPasswordFromCredentialProviders(Configuration.java:2434) -> org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(CredentialProviderFactory.java:82)
Does this PR introduce any user-facing change?

No
How was this patch tested?

I didn't add new UnitTest for this, but I rebuild the package, and runs a program in my cluster, and turns out that the user when I delete the staging file turns to be the same with the SPARK_USER.

Hi @yaooqinn, I closed my pr accidentally, and made a new pr, would you please help me review this?
thanks a lot

Thanks @liangyu-1, merged to master/3.5/3.4/3.3/3.2

Thank you, @liangyu-1 and @yaooqinn .
cc @sunchao , too.

FYI, previous discussions can be found at https://github.com/apache/spark/pull/42295#event-10041783822

BTW, @yaooqinn . If we touch the EOL branches like branch-3.2 and branch-3.1, it causes future confusions in the community and sometimes people ask a new release. Could you handle only active branches next time please?

Thanks for the reminder @dongjoon-hyun. I didn't know the rule for stale branch merging before and was just thinking of the convenience for users to make distribution on their own. And I will pay attention to this and thank you again.

Thank you, @yaooqinn .


Update to Solr 6.6

Update the docker file to use SOLR 6.6
Update the s2i scripts to better support initial core creation, and core configuration updates when using persistent storage.

thanks @WadeBarnes !


Crash with optifine and phantom attacks

When using this mod and optifine on client, as soon as a phantom attacks me game freeze and crash (playing on a vanilla server that do not have this mod)
I tried with only tis mod and with only optifine and they both work fine. It only happens when having optifine and optifabric

Please upload the crashlog to https://pastebin.com or similar.

Closing due to lack of response


404 on Insee page refresh

This might be related to bad SSR management.

The sapper export command is not clear to me.
I have failed to export the budgets page, with the following command
sapper export --legacy --entry / /budgets

It resulted in
> ENOENT: no such file or directory, open '/budgets/favicon.png'

I decided to use the non static version for now.


Render images with inline display style

Fixes breaking line for images in the same paragraph:

as in this build.

There's still an issue with image margins (see notebook):

Maybe this is because we regard images as being blocks.
Our markdown structure can already distinguish different scenarios where image is the only child (not wrapped)

from those where an image has siblings (wrapped in a
)

text  text

do we want to this to be reflected in the CSS?

This would circumvent the selector that adds the 2rem top margin, but is nonsense... how could I fix the prose voodoo selector thing?
diff --git a/src/nextjournal/clerk/viewer.cljc b/src/nextjournal/clerk/viewer.cljc
index 0e90a2d..cd84382 100644
--- a/src/nextjournal/clerk/viewer.cljc
+++ b/src/nextjournal/clerk/viewer.cljc
@@ -446,7 +446,7 @@
     :transform-fn (into-markup
                    (fn [{:as node :keys [heading-level]}]
                      [(str "h" heading-level) {:id (uri.normalize/normalize-fragment (md.transform/->text node))}]))}
-   {:name :nextjournal.markdown/image :transform-fn #(with-viewer :html [:img.inline (-> % ->value :attrs)])}
+   {:name :nextjournal.markdown/image :transform-fn #(with-viewer :html [:div.inline-block [:img.inline (-> % ->value :attrs)]])}
    {:name :nextjournal.markdown/blockquote :transform-fn (into-markup [:blockquote])}


5.1.2 (#560) breaks sanitization in two ways

Tested to work correctly in 5.1.1, but 5.1.2 (due to #560) behaves very differently. Issues:

double sanitization leads to silent failure of the second sanitization: .trim().normalizeEmail() leads to normalizeEmail() being ignored
double sanitization of field A leads to failure of all sanitization in field B

Recommended Fix:
For 1), this may be a case of "behaves correctly", but I think instead of just silently failing the second sanitization (normalizeEmail in this case), it should throw an error.
For 2), this should be fixed. Ignoring double-sanitization on one field should not completely stop all sanitization on other fields.
Code:
check("email")
          .exists().withMessage("Missing email address.")
          .isEmail().withMessage("Invalid email address.")
          .trim(),
          .normalizeEmail(),
check("someBooleanString")
          .toBoolean()

Input:
email =<EMAIL_ADDRESS>someBooleanString = "true"

Expected MatchedData Output (correct in 5.1.1):
email =<EMAIL_ADDRESS>someBooleanString = true (Boolean, not String)

5.1.2 Output:
email =<EMAIL_ADDRESS>someBooleanString = "true" (String, not sanitized)

Hey @hijohnnylin! Thanks for the report. Sounds like a serious issue.
I'm short on time lately, so if you could take a stab at this, I would be thankful!

Hi @hijohnnylin, I tried your snippet, and it works.
Are you sure that's all? Can you provide a reproducible example?

Hi there,
Sorry about the delay in checking up on this. I realized that the issue only happens when it's in a OneOf. I've updated the example code to reproduce the issue below and also updated the original post. Seems that sanitization isn't working at all in a OneOf, so I've simplified the example below.
Code
router.get("/sanitization-test",
[
  oneOf(
    [
      [
        check("TrimMe1")
          .trim()
      ],
      [
        check("TrimMe2")
          .trim()
      ]
    ]
  )
],
(request, response, next) => {
  const result = validationResult(request)
  response.status(200).json({
    TrimMe1: matchedData(request).TrimMe1
  });
});

Request
http://localhost:3000/sanitization-test?TrimMe=%20%20ShouldBeTrimmed%20%20
Expected Response (5.1.1):
{"TrimMe1":"ShouldBeTrimmed"}
Actual Response (5.1.2):
{"TrimMe1":"  ShouldBeTrimmed  "}

Thanks for looking into it, @hijohnnylin!
The problem lied in the oneOf function not persisting values back to the request, like check/filter did. The codebase state before #560 probably masked this issue.

Published v5.2.0 🚢


addMockModule for $httpbackend breaks protractor test.

I put this code in to help me spy on AJAX requests, but then i started to not be able to find any elements on the page like so: No element found using locator: By.cssSelector("text-field[model=\"coconut.title\"]")
Here's the addMockModule I inserted...
  browser.addMockModule('httpMocker', function() {       angular.module('httpMocker', ['ngMockE2E'])         .run(function($httpBackend) {           $httpBackend.whenPUT('/api/v1/burts/:id').respond(function(){             //return [200, expected_response];             console.log("hello");           });         })     })

Hi there!
Without more details it's hard to know what the issue is here without some more exploration/debugging. Because of this, your question is better suited for StackOverflow or Gitter. Please ask a question there with the 'protractor' tag or post in the Gitter Channel to get help. This will help your question reach a wider range of answerers and keep the issue queue focused on keep protractor's core in great shape.
From the the getting help section of the README:

Please ask usage and debugging questions on StackOverflow (use the "protractor" tag) or in the Angular discussion group. (Please do not ask support questions here on Github.)

Thanks!

Ah, sorry - no problem


Create cue/unity private repo for dagger

https://github.com/cue-sh/unity is a repo for performance testing / regressions
@myitcv mentioned setting up a private repo for Dagger. We could set one up here using the example and then share back with them to reduce efforts for Cue maintainers

There doesn't seem to be enough appetite for this in the CUE community at the moment. Closing for now.


KAFKA-13485: Restart connectors after RetriableException raised from Task::start()

If a RetriableException is raised from Task::start(), this doesn't trigger an attempt to start that connector again. I.e. the restart functionality currently is only implemented for exceptions raised from poll()/put(). Triggering restarts also upon failures during start() would be desirable, so to circumvent temporary failure conditions like a network hickup which currrently require a manual restart of the affected tasks, if a connector for instance establishes a database connection during start().
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@blcksrx did you catch the mailing list thread about this? I left this comment on there:

I think there's some risk of introducing this retry behavior if we end up invoking Connector::start or Task::start on the same object multiple times. Unexpected behavior may result, such as double-allocation of resources that are initialized in the start method and which are meant to be released in the stop method. An alternative could be to invoke stop on the object to allow it to perform best-effort cleanup, then initialize an entirely new Connector or Task instance, and invoke its start method.

It's worth keeping in mind that some connectors may throw RetriableExceptions from start right now but not handle this case properly. If we add this behavior now and someone upgrades their worker to a version with this change, that kind of connector being restarted in a loop may end up crippling their worker.
On a separate note, with these changes, what would happen if a task were stuck in a retry loop, but then scheduled for shutdown (because of rebalance, deletion of the connector, reconfiguration, etc.)? If the answer is "the task will keep retrying until start either fails with a non-retriable error or succeeds" then we may want to refine the logic a little bit in order to avoid accruing zombie tasks in that situation.

Absolutely you are right, maybe its the best to consider retryMaxTimeout beside of that. Also it makes sense to invoke stop in that case but re-initialisation im not sure about it.
In addition, In case of re-balancing the it tries again and from this point you are right


fix for null "ie_key" value for soundcloud when dumping as json

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[X] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[X] Bug fix
[ ] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
This pull fixes a bug occuring when you try to dump a soundcloud playlist/user. If you use the following command the value "ie_key" to determine the service/website is null:
command: youtube-dl -j --flat-playlist https://soundcloud.com/jayeem_music/sets
part of output:
{"_type": "url", "url": "https://soundcloud.com/jayeem_music/sets/distant", "ie_key": null, "id": "452707167"}

Null ie_key is perfectly legal and means that IE will be guessed from url.

yeah, but why don't just add it as an improvement? So you as a dump consumer can more easily recognize which service you have and you dont have to check the url with a regex. Also, the dumper is very inconsistent. For youtube there are just ids as url while for soundcloud and others there are complete links.

Cause it may be not a soundcloud URL at all.

This commit only affects soundcloud resources and no others.
Look, I am creating a kind like music streaming service and I don't know what the user wants to stream. So i decided to use ytdl because of its wide range of supported sites. When the ie_key is null, I have to guess what I am dealing with and this pull is just the solution for this. I just don't have to check the url which might be none because of the YT id url thing. And I think some clarity would also help others instead of just "null".


Update documentation for V5 support

README:

Removed old information
Added table of contents, required versions, contributing link

CONTRIBUTING:

Updated to follow community standards
Added some testing and dev info

CHANGELOG:

Added changes from https://github.com/cyberark/conjur-api-dotnet/pull/48
Added links to older releases

Linked to https://github.com/cyberark/conjur-api-dotnet/issues/60

Jenkins failure:
[2020-06-08T20:35:57.407Z] Status: Downloaded newer image for mono:latest
[2020-06-08T20:35:57.407Z]  ---> b074d513c5cd
[2020-06-08T20:35:57.407Z] Step 2/10 : ADD dividedmind.pub /tmp
[2020-06-08T20:36:00.690Z]  ---> 7dfa9be47098
[2020-06-08T20:36:00.690Z] Step 3/10 : RUN apt-key add - < /tmp/dividedmind.pub && rm /tmp/dividedmind.pub
[2020-06-08T20:36:00.690Z]  ---> Running in 853a4201b75c
[2020-06-08T20:36:00.690Z] E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
[2020-06-08T20:36:00.951Z] The command '/bin/sh -c apt-key add - < /tmp/dividedmind.pub && rm /tmp/dividedmind.pub' returned a non-zero code: 255
[2020-06-08T20:36:00.951Z] Makefile:17: recipe for target 'rebuild' failed
[2020-06-08T20:36:00.951Z] make: *** [rebuild] Error 255
[2020-06-08T20:36:00.951Z] make: Leaving directory '/var/lib/jenkins/workspace/_dotnet_community-repo-standards/docker'
script returned exit code 2

This looks unrelated to this commit, because the commit before this passed and this last one only changed README.md and CHANGELOG.md

Ran the Jenkins tests again and it PASSED. Merging

Moved the language version conversation above to a separate issue https://github.com/cyberark/conjur-api-dotnet/issues/62


make a function to get default colors for a given number of items (channels, units maybe)

would be good to have a single function (or suite of functions) that does this rather than everyone trying to manage colors on their own.
can use the seaborn set_palette() function; would replace part of plot_raster() in visualization.py

I'm not really sure what this function would add beyond just calling sns.set_palette


fix(dropdown): fixes tab focus on closed list

Addresses https://github.com/stardust-ui/react/issues/1149

Warnings

:warning:
There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

  Generated by :no_entry_sign: dangerJS


RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

python3 --version
Python 3.9.0

python u2net_portrait_test.py

Number of images:  8
...load U2NET---173.6 MB
Traceback (most recent call last):
  File "/Users/Kevin.SuTJ/Desktop/U^2 Net/u2net_portrait_test.py", line 117, in <module>
    main()
  File "/Users/Kevin.SuTJ/Desktop/U^2 Net/u2net_portrait_test.py", line 87, in main
    net.load_state_dict(torch.load(model_dir))
  File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 595, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 774, in _legacy_load
    result = unpickler.load()
  File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 730, in persistent_load
    deserialized_objects[root_key] = restore_location(obj, location)
  File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 175, in default_restore_location
    result = fn(storage, location)
  File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 151, in _cuda_deserialize
    device = validate_cuda_device(location)
  File "/usr/local/lib/python3.9/site-packages/torch/serialization.py", line 135, in validate_cuda_device
    raise RuntimeError('Attempting to deserialize object on a CUDA '
RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=torch.device('cpu') to map your storages to the CPU.

In the u2net_portrait_test.py i added , map_location=torch.device("cpu")
    net.load_state_dict(torch.load(model_dir))
to
    net.load_state_dict(torch.load(model_dir, map_location=torch.device("cpu")))
And then I'm doing fine.

This is fixed in #3 and #133. But it looks like this repo has been abandoned by the owner :(

This is fixed in #3 and #133. But it looks like this repo has been abandoned by the owner :(

@a-stankevich thanks.

@a-stankevich thanks.


Support adding additional registers and intrinsics with Python architecture hooks

You can add additional registers or intrinsics using architecture hooks in C/C++, but this is not yet possible in a Python architecture hook. This is technically possible but is not yet implemented.
For now, if you need to add additional registers or intrinsics in an architecture hook, use the C/C++ API.

Intrinsics also aren't traversed by vars_written and vars_read properties the way MLIL_CALL/MLIL_CALL_SSA are.

We don't plan on continuing developing python architecture hooks as we have now open sourced all of our architecture modules.


relation ship

Your Question

Receiver uint            `gorm:"not null",json:"receiver"`
Sender   uint            `gorm:"not null",json:"sender"`
User     User            `gorm:"foreignKey:Receiver,Sender"

my model loos like this  and sender and reciver refers to user model when i migrate it throughs an error how do i solve that

The document you expected this should be explained

Expected answer

could you show me the error and the other structs? And the Steps to reproduce it.


Invalid info about bitbucket and dropbox account

The python codes checks and give login successful to bitbucket and dropbox even user never created and account on bitbucket and the password is not same on the dropbox as give while running the script but it still shows that the login is successful.

to reproduce this i used the same email but entered different passwords while scanning and it still shows that login successful for bitbucket and dropbox so something is broken maybe please check

Fixing it thank you

Released a hotfix check it out and reopen please if the problem stays!


Document the palette or put the palette in a data file

I love this theme! I'd like to port this to some tools.
Would it be possible to document the palette, similar to what gruvbox does? This would help facilitate ports of this theme.

I think having the palette in a json file might work for most people.

Sounds good! Updated the issue title.

I added the json files to ./palette, altho this is still subject to change.
PS. vim.json doesn't format the output so you might want to use jq for that.


Hi!
I met the same problem. Have U solved it?

Please give more details.

hello, many people meet this problem, can you solve it?
Warning: unable to import datasets/nusc:
No module named 'nuscenes'
Traceback (most recent call last):
File "/home/sunh/6D_ws/other_code/Self6D-Diff-Renderer-master/kaolin/kaolin/datasets/init.py", line 11, in
from .nusc import NuscDetection
File "/home/sunh/6D_ws/other_code/Self6D-Diff-Renderer-master/kaolin/kaolin/datasets/nusc.py", line 21, in
from nuscenes.utils.geometry_utils import transform_matrix
ModuleNotFoundError: No module named 'nuscenes'
Warning: unable to import datasets/nusc:
None
0%|                                                                                | 0/13 [00:00<?, ?it/s]
Traceback (most recent call last):
File "tests/test_dib_render_LM_batch_depth.py", line 153, in
main()
File "tests/test_dib_render_LM_batch_depth.py", line 112, in main
models = load_objs(obj_paths, texture_paths, height=HEIGHT, width=WIDTH)
File "/home/sunh/6D_ws/other_code/Self6D-Diff-Renderer-master/tests/../core/dr_utils/dr_utils.py", line 42, in load_objs
vertices = mesh.vertices[:, :3]  # x,y,z
IndexError: too many indices for tensor of dimension 1