Cannot register ag-grid framework components

There is an agOption called 'frameworkComponents' with which you can register components with the grid. Inline editor components for example. After upgrading to Hoist 28 SNAPSHOT, the grid is not finding these components when needed.

Don is looking into whether there might be a more general problem here.  No longer clear that this is related to frameworkComponents.
Would be great to see if we could reproduce this in toolbox.  Might be the first step to having a much needed inline-editor example.

There was a small suspicion that agOptions in general were not being set/respected in app where we saw this issue. However, other options in that block are working. Focus should go back to frameworkComponents and inline editors.
Will try to repro in toolbox as Lee suggests

Closing. This is not a bug in Hoist 28, but rather an in-app bug caused by a hard to catch typo made by a dev with tired eyes and an injured finger doing the Hoist 28 upgrade.


[#8] Updated CONTRIBUTING.md with more info

Things added:

Table of Contents
Created "Reviewing A Pull Request" section
Small fixes

Looks good, Amos!

kekW


Error running in yarn due to undeclared dependency

Yarn is strict about using dependencies that are not declared in package.json - if a file imports or requires a module it must be declared in that file's package.json.  This differs from legacy environments where a module could use the dependencies of its dependencies freely.
 yarn run happo dev
Starting: [main] Searching for happo test files...
✗ [main] Searching for happo test files...: Error: happo.io tried to access react-dom, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: react-dom
Required by: happo.io@virtual:0b8541be94c07b03e28e04a869f424dd9b9352f559e63e47625f947ec9ee14213658be2582b051a033b49b2f2beeedb9f8fde576b107aac3aa921ebdc44b4415#npm:9.1.2

note that it's not "legacy" environments, it's "the standard environment" (ie, npm).

Yeah it can be worked around changing .yarnrc but obviously that won't be friendly to new users.
There are two resolutions to this issue that I know of:

Add an optional peerDependency - e.g. add it to peerDependencies and also mark it optional in peerDependenciesMeta.  This allows you to use it if you want to withoutwarnings if it is not present. I'm not 100% if/how npm supports this one though.
Use createRequire from https://nodejs.org/api/module.html#modulecreaterequirefilename to dynamically import the module from within the target package's import context, in this case it is treated as if you are a file in that target package for purposes of module resolution

Which you choose depends on the details of what you are up to.  My guess is that #1 should work OK.

It depends on what node/npm versions you support; npm certainly supports peerDependenciesMeta, but versions of npm prior to that will treat the peer dep as required.


Connection to real iiwa14

hi，I am trying to use iiwa-ros to control the movement of the robot arm, and your work has given me a lot of help. Now I can control gazebo to achieve ee movement in the simulation environment, and now I want to try to connect the real robot arm. Should I make some modifications on the sunrise code? I am a novice and don't know much about this.
By the way, when I was using iiwa-stack, I found a topic that can realize the perception of the force and moment at the end of the mechanical arm. I don't know if this library can realize this function, or if you have any suggestions on this, I am trying to realize this function.

In fact, the main problem now is that when I use this controller, my messages cannot be sent from the iiwa driver to the real robot arm, which can be done when I choose some of the original IIWA-ROS controllers, I am not sure why this is

Sorry, I think I made a funny mistake like a joker😥, the robot arm moved too slowly, so I think it did not move, I have solved this problem now,
thanks to the code you provided


Access controller instance variables

This is a super rough preview of a proposal to support accessing the instance variables from the controller inside of the reflex.
The implementation probably isn't efficient but the basic idea is that in most index or show actions, you end up setting a bunch of important instance variables that would likely be highly useful to have access to in the reflex. After all, in many cases the reflex takes the place of the update action, so it's good to know what you're updating. Otherwise, I suspect people will reimplement copies of their index/show actions from their controllers inside of the reflexes, and that's a code smell.
You can see the rabbit hole I went down; first, I tried to override initialize but quickly realized that I have no opportunity to set an initial value for something on the initial page load from the reflex. So I borrowed the render_page function and turned it into a controller action triggering machine. I set a variable called @stimulus_reflex_no_render so that the controller action can optionally render(body: nil) which should mean ERB is never instantiated and no time is wasted.
The instance variables have their @ stripped off and are then injected into a HashWithIndifferentAccess that is accessible to the reflexes as @action_variables, with a better name suggestion welcome.
If we keep this around, I recommend consolidating render_page and access_controller_instance_variables and possibly keeping the setup in scope so that we can call controller.process multiple times without tearing it down in the middle.
Note that this PR is not very useful unless you're also running:
https://github.com/pjforde1978/reflex/tree/access_controller_instance_variables

I may fully not understand what you're trying to accomplish, but I do question whether or not this is necessary given the following order of operations.

Invoke a server side Reflex method
Instantiate a Rails controller and invoke the appropriate action method

The Reflex is called first. Also any instance variables set in the Reflex method are made available to the Rails controller action. This means you can do something akin to this.
class UserReflex < StimulusReflex::Reflex
  def example(user_id)
    @user = User.find(user_id)
  end
end

class UsersController < ApplicationController
  def show
    @user ||= User.find(params[:id])
  end
end

If users#show is called from the Reflex method, the user instance variable will already be set. Granted this feature needs to be better documented.

I actually do make use of ||= in my page#index and think I get the pattern && order of operations. Phew!
The issue is a Venn cluster of concerns around DRY code and initial state in the context of an interaction life cycle.
I’ve found that when an application progresses beyond todomvc example, the controller actions for many interfaces grow in complexity, ultimately doing potentially several joins and who knows what else. The idea of maintaining this code in two places is not great, although perhaps it’s a sign that further refactoring and moving code out of the controller is apropos.
Anyhow! I did my best to illustrate what I’m trying to solve with the slow API call example, which has three states.
It starts with a button, switches to “loading” and ends with a success message. The first render won’t have an instance variable available to set the state... although it occurs to me that this could be the else case in a switch.
I’m going to keep thinking about this. Perhaps I am overthinking what’s actually required. It’s also fine to keep this in my own bag of tricks for exceptional circumstances.


Created MainScraper

Backend Scraper for flipkart
Libraries of Beautifulsoup and requests are used for scraping the contents

The scraper make use of the Flipkart site in which 2 types of styles used in the sections are scraped

As an example, Laptops, mobiles, Cameras that uses the style 1 and headphones, Air conditioners uses the style 2 are scraped,
Both the styles can scrap several other categories.

Logic
The styles in the flipkart mainly divided into two and both are scraped on the basis of the tag name and pattern
If the first style doesn't match the pattern, then no result will be forwarded to the list, thus the second styling is checked

The number of pages to scrap can be changed to the limit in line 10
for i in range(1,5):  #use n+1 pages for clearing index out of range error

The number of pages can be set in the line 24 as for loop range
for i in range(1,limit):  #only use n-1 pages which are proxy safe and error free in the list
myurl= urlss[i]

The results will be the Link,Title,Rating,Amount that will be listed in different python lists in strict order along with number of things scraped at last. (Also the csv and io are imported which can be used when file management is necessary)
print(l) #Links
print(title) #Title
print(rat) #Rating
print(amount) #Amount
print(len(amount))  #Number of items scraped
print("pages")

The frontend can make use of the variables in the URL in line 16 for changing the need for the user along some dropdown boxes
urlss=urlss+[cams]  # Change the variable with a dropdown box when merging with its front end

-Hope it gives an addition for the project.

@btkcodedev Hey! Thanks for the contribution! The comments helped a lot. I've a few suggestions, since the project maintainer and other members don't seem to be active:
You can refactor scaper.py so that it can be used as the back-end of this project . You can do that by modularizing the existing code into their own functions. Example: get_urls(), scrape_page() etc. and replacing the print statements with returns. The functions can take parameters like number of pages, product category, etc. This way, your functions can be easily used by the front-end devs.  :) You can also rename the file to flipkart_scraper.py right? Also, it's better if you put the comments above the statements, instead of in-line. Also, no need for comments for the import statements.
Thanks again!

@AnandBaburajan
The changes are made to the code
Also it can be interpreted and examine the results by the front end developers

@AnandBaburajan The required changes are done
Now the whole code can be called with one function
Eg; scrape_page(get_urls(4,6),6)
Thus it will be easier for the front end to merge
More details are shared in the latest commit

@AnandBaburajan The required changes are done,

Complexity reduced:
The scrape_page() was split into two and complexity reduced from 46 to 14 and 24 for two functions.
But that will be not a problem, I think because the second type function will only execute if the first type fails
And it totally depends on the number of pages scraped, and that will be not more than 10 I guess.
Docstrings added:
Also now the frontend developers can easily identify the flow using the docstrings and comments

@AnandBaburajan Required changes are done


Fix Picker jumping back to mouse position when keyboard off bottom

Track if the mouse is moving as opposed to checking focus start
This way we don't pointer focus unless we're actually moving the mouse actively on/to the element
Closes
✅ Pull Request Checklist:

[ ] Included link to corresponding Issue.
[ ] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[ ] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

One known issue right now, if you keyboard navigate and then move mouse, the modality seems to be wrong, but the actual behavior is right


Migrate from Express to Fastify? Nest? Something else?

Fastify
Here's a start: https://www.sitepoint.com/express-to-fastify-migrate/
And another one: https://simonplend.com/how-to-migrate-your-app-from-express-to-fastify/
And other
And yet another
Nest
https://www.youtube.com/watch?v=0M8AYU_hPas

Update: there's a branch where I tried to migrate to fastify but since passport is still express-specific (and the fastify port is still in beta) I stopped it. For now.


Lesson assets should be served by the CDN

Describe the bug
We host various curriculum assets on S3.
To Reproduce
Steps to reproduce the behavior:

Go to https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-basic-string-and-array-methods-by-building-a-music-player/step-5
See links to https://s3.amazonaws.com/org.freecodecamp.mp3-player-project

Expected behavior
They should be hosted on https://cdn.freecodecamp.org/ since S3 is designed to store content, not serve it. By using the CDN the lesson assets can be cached near the learner, resulting in better performance.
Steps to fix

[ ] search for amazonaws.com in the curriculum/challenges/english folder to find the assets
[ ] add the assets to https://github.com/freeCodeCamp/cdn
[ ] update the lessons to use the new assets
[ ] delete the buckets

There's few other files with amazonaws links outside of music player project:

01-responsive-web-design/responsive-web-design-principles/use-a-retina-image-for-higher-resolution-displays.md
01-responsive-web-design/responsive-web-design-principles/make-an-image-responsive.md
01-responsive-web-design/css-flexbox/add-flex-superpowers-to-the-tweet-embed.md
03-front-end-development-libraries/front-end-development-libraries-projects/build-a-drum-machine.md
04-data-visualization/json-apis-and-ajax/convert-json-data-to-html.md
10-coding-interview-prep/take-home-projects/build-a-simon-game.md

A quick note about the music player.
A couple of years back, I had added some of the songs to the cdn.
But with the revisions to the project, it looks like aws was used instead.
So, when we do create a PR to move the rest of the songs to the cdn repo, there is already a folder for it here
https://github.com/freeCodeCamp/cdn/tree/main/build/curriculum/js-music-player

Here are the two open help-wanted issues

[ ] https://github.com/freeCodeCamp/freeCodeCamp/issues/54710
[ ] https://github.com/freeCodeCamp/freeCodeCamp/issues/54711

Hey @ojeytonwilliams !
The last PR for replacing the links in the english curriculum has been merged to main.
So on the next website deployment, all links should be updated in production.
I guess we need to wait for the translations to be updated too.
But I am not sure how that works.
But the english files are set 👍

Awesome, thanks @jdwilkin4!
The translations are already live, so it just remains to delete the buckets. I'll take care of that and close the issue.


fix(junit): Add the line separator in job_env repack

What does this PR do?
Add a missing line separator (which is unfortunately present in the original file) when we repack macos data.

Motivation
Prevent broadcasting incorrect links like this one
https://gitlab.ddbuild.io/DataDog/datadog-agent/-/jobs/595101348CI_JOB_NAME=tests_macos

Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

/merge


⚠ TiendaEnLinea has degraded performance

In fd2efcc, TiendaEnLinea (https://www.fahorro.com/) experienced degraded performance:

HTTP code: 200
Response time: 5734 ms

Resolved: TiendaEnLinea performance has improved in 21d1224.


Question: Is External Account Binding support planned?

Hi
I successfully tested HTTP-Challenge validation. But will you also implement "External Account Binding" according to RFC8555 (would be great)?
Best regards
Christoph

Never needed it, but it seems not too hard to do, so i'd go for "yes".

Thank you for your answer. We have customers who may need this and would contact you if it becomes urgent.

Hey @christoph-bach , I implemented ExternalAccountBinding in 1.3.0-beta2, so if you could give it a shot, if it's working or not (I do not have any server requiring it), that'd be very appreciated.

Hi @glatzert , yes I can do that. How can I get this code?

You just need to allow prereleases:
Install-Module ACME-PS -AllowPrerelease that should pull 1.3.0-beta2.
Thanks
Am 03.08.2020 08:29 schrieb christoph-bach<EMAIL_ADDRESS>Hi @glatzerthttps://github.com/glatzert , yes I can do that. How can I get this code?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/PKISharp/ACME-PS/issues/98#issuecomment-667830784, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACNPDCDURUL6RZAAQJRJJOLR6ZKM3ANCNFSM4PNZLVOQ.

Hi @glatzert
In my test lab, I have:
Key ID: txra:agb:HZNf8sWc3Hn5dxcSY2pl MAC Key: DWqgOyy3JRARRy8Wzvw_XEKAQ...Yo1L0PGXK0
If I run the following command:
PS C:\ACME_Client\ACME-PS-1.2.4\1.3.0> New-ACMEAccount -State $acmeStateDir -AcceptTOS -EmailAddresses $contactMailAddresses -ExternalAccountKID "txra:agb:HZNf8sWc3Hn5dxcSY2pl" -ExternalAccountAlgorithm HS256 -ExternalAccountMACKey DWqgOyy3JRARRy8Wzv
w_XEKAQ...Yo1L0PGXK0
I get:
`Exception calling "FromBase64String" with "1" argument(s): "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. "
At C:\ACME_Client\ACME-PS-1.2.4\1.3.0\ACME-PS.psm1:1240 char:16

    return [Convert]::FromBase64String($base64);

           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : FormatException`

Do you expect one or both of the 2 parameters in Base64 format?
How could I download the source code of this version to check by myself?
Your parameters ExternalAccountKID and ExternalAccountMACKey are mandatory. I assume you will make them optional to allow the used without external account binding..
Best regards
Christoph

Hi @glatzert
I have forgotten to thank you implementing this so already, thanks a lot!
I encoded the MAC Base64 and I got a step further.
 He wants to decode the externalAccountBinding:
::
...
"externalAccountBinding": {
"protected": base64url({
"alg": "HS256",
"kid": /* key identifier from CA */,
"url": "https://example.com/acme/new-account"
}),
...
Could you Base64-encode the externalAccountBinding before you add it to the JSON structure?
Thanks
Best regards

Err.. yes - I read it like three times and appearantly forgot about it.
Can you elaborate on the MAC-key? Do I need a possibility to accept them non-base64 encoded? If yes, what was the representation of your key?
Thanks for your testing.
I'll prepare a beta3.
Best regards
Thomas

You do correctly request a Base64 encoded MAC key parameter (recommended in the RFC). I just would mention it in the help of New-ACMEAccount.

1.3.0-beta4 is ready - i added the forgotten base64url-encodes()

Hi @glatzert
It works, I was able to issue a certificate. Only one thing I realized regarding the MAC:
We encode the MAC to a Base64Url and use the following functions for converting:
   public static string ConvertBase64UrlToBase64(string base64url)
    {
        var base64 = base64url
            .Replace("-", "+")
            .Replace("_", "/");
        if (base64.Length % 4 != 0)
        {
            var padding = new String('=', 4 - base64.Length % 4);
            base64 += padding;
        }
        return base64;
    }

    public static string ConvertToBase64Url(byte[] bytes)
    {
        return System.Convert.ToBase64String(bytes).TrimEnd(BASE64_PADDING).Replace('+', '-').Replace('/', '_');
    }

By using the ConvertBase64UrlToBase64 function with my test value "uJNbJTCdPExrDDsLBXKm-DX-XSaVyTMvumKyGqVOAxE" and passing the result "uJNbJTCdPExrDDsLBXKm+DX+XSaVyTMvumKyGqVOAxE=" to New-ACMEAccount as the MAC parameter, it works.
RFC8555: The MAC key SHOULD be provided in base64url-encoded form, to maximize compatibility between non-ACME provisioning systems and ACME clients.
You could update New-ACMEAccount to accept the MAC parameter as a Base64Url ...
Thanks, Cheers
Christoph

Nice :)
I'll check the base64url compatiblity (which should already be given) and will deploy 1.3.0 stable sometime this evening.
Thanks for your testing.


Fix checkbox field sanitization

ref: #1462
It seems that a bug was introduced on this commit https://github.com/aristath/kirki/commit/7a6a6f7104075c90881693e0f23774057c821e15?diff=unified
It happens that the php switch make comparisons equivalent to == operands instead of ===, and it behaves differently when one try to evaluate if true == "true" instead of true === "true"
If you do want to stick with a switch, I suggest the fix I'm sending.. Although to be honest I do find it a bit hacky, and I'd rather go back to if statements.
just let me know what you think
Edit: Thinking about it now, couldn't we just dump support to "false" and "true"?

Thanks... you're right. Fixed in https://github.com/aristath/kirki/commit/dc04accf885227f7993e61ea90b18f595a5a1c7d


Server creation fails with "OS (linux) not supported" error even though template doesn't list an OS requirement

I'm trying to add some servers to a local PufferPanel dev environment so I can dig into #1149 a bit more. For now, I'm working on Linux (Debian in WSL2, to be specific) so I can experiment with behavior there and see how it differs from the behavior I observe on Windows. However, in the latest Git master, when I try create a server from one of the stock templates, creation fails with this error:
[GIN] 2022/04/18 - 18:27:30 | 200 |       439.7µs |             ::1 | GET      "/api/templates/minecraft-vanilla"
[ERROR] 2022/04/18 18:27:43 OS (linux) not supported. Supported OS:
[GIN] 2022/04/18 - 18:27:43 | 400 |      260.23µs |                 | PUT      "/daemon/server/bb73e45c"
[ERROR] 2022/04/18 18:27:43 Unexpected response from daemon: 400
[ERROR] 2022/04/18 18:27:43 unknown error

I think it's trying to apply this requirements check even though my template doesn't have a requirements section populated.

What does strings.Split do on the empty string? I'm wondering if this always return a slice with one (empty) element if the template doesn't specify requirements.


Homebrew system with Star LED monochrome question

I have a green 3W luxeon LED I would like to use with FX-SaberOS system in homebrew mode.
Is a RGB led absolutely required or monochrome led will be OK ?
What parameter(s) will I have to change on Config_HW.h file to make it work ?
Thanks for helping

You don't have to change anything.
On Thu, Nov 22, 2018, 2:11 PM Danvader389<EMAIL_ADDRESS>wrote:

I have a green 3W luxeon LED I would like to use with FX-SaberOS system in
homebrew mode.
Is a RGB led absolutely required or monochrome led will be OK ?
What parameter(s) will I have to change on Config_HW.h file to make it
work ?
Thanks for helping
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Protonerd/FX-SaberOS/issues/79, or mute the thread
https://github.com/notifications/unsubscribe-auth/ATdCMK2pmWIBPCKoGmRWtmQWAlih5Ajqks5uxvbKgaJpZM4Yvz4_
.


Cannot get Linux xfce4 to run on Samsung Chromebook Plus for the life of me

Please paste the output of the following command here: sudo edit-chroot -all

name: trusty
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/trusty...
crouton: version 1-20170825164243~master:6af640de
release: trusty
architecture: arm64
xmethod: xorg
targets: xfce
host: version 9592.85.0 (Official Build) stable-channel kevin
kernel: Linux localhost 4.4.64-09100-g30321742b4e0 #1 SMP PREEMPT Mon Aug 21 20:02:10 PDT 2017 aarch64 aarch64 aarch64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/trusty...
Please describe your issue:
I am having some serious issues with installing xfce4 on my chromebook. So far, the first attempt was actually with Unity. But every time I tried running it, the screen would go black for a solid minute, then the computer would reboot. So then I tried working with xfce4, and I continuously get this error:
Entering /mnt/stateful_partition/crouton/chroots/trusty...
/usr/bin/startxfce4: Starting X server
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-83-generic aarch64 Ubuntu
Current Operating System: Linux localhost 4.4.64-09100-g30321742b4e0 #1 SMP PREEMPT Mon Aug 21 20:02:10 PDT 2017 aarch64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3334144 verity payload=PARTUUID=82649190-1d1d-314b-8477-4062e6dc7c29/PARTNROFF=1 hashtree=PARTUUID=82649190-1d1d-314b-8477-4062e6dc7c29/PARTNROFF=1 hashstart=3334144 alg=sha1 root_hexdigest=f7419c96d47e2cecef3dc3b07a2755edc322cb49 salt=4babd4b8f4ee2622e91395c026d5fa21fa6f6246faf68ec3104c18ceb3549de1" noinitrd vt.global_cursor_default=0 kern_guid=82649190-1d1d-314b-8477-4062e6dc7c29
Build Date: 20 July 2017  07:12:02PM
xorg-server 2:1.15.1-0ubuntu2.9 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Mon Aug 28 21:02:54 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
(EE) Backtrace:
(EE) 0: /usr/bin/Xorg (xorg_backtrace+0x44) [0x59a148cc94]
(EE)
(EE) Segmentation fault at address 0x0
(EE)
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/trusty...
I have looked all over the internet for a solution, but the ones I've attempted have not worked at all.
I've updated, re-installed the entire thing, I've done the rm /dev/dir/card0 method only to be greeted with yet another error until I reboot:
chronos@localhost / $ sudo rm /dev/dir/card0
Password:
rm: cannot remove '/dev/dir/card0': No such file or directory
There was also another error I can't recall after typing in the full command, something to do with a missing directory yet again.
I'm all out of ideas. Unity doesn't work, xfce4 doesn't work, what other solution is there? I am trying to run emulation off my chromebook, at this point I think I'm better off just getting the emulator off the actual app store on the computer.
Please, someone help me with this issue, I've tried every possible solution and have searched countless forums for one that works.
If known, describe the steps to reproduce the issue:

Unity doesn't work on the Chromebook Plus as Unity requires OpenGL, which is not available on ARM Chromebooks such as the Samsung Chromebook Plus.
Your problem with other desktop environments lies in a spelling error:
It is supposed to be /dev/dri/card0, not /dev/dir/card0.

Well, that was a typo on behalf of typing this post, and I do apologize for that. But, I have been typing that in this whole time only to be greeted with
Entering /mnt/stateful_partition/crouton/chroots/xenial...
mv: cannot stat '/run/crouton/mnt/stateful_partition/crouton/chroots/xenial/run/dri/card*': No such file or directory
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

i have the same issue
been trying all of the suggestions on the forums for a few days now.

What happens if you try this before trying to start a desktop environment?
sudo enter-chroot
sudo rm /dev/dri/card0
sudo mv /dev/dri/card1 /dev/dri/card0
exit

xenial)deoxys@localhost:~$ sudo rm /dev/dri/card0
[sudo] password for deoxys:
(xenial)deoxys@localhost:~$ sudo mv /dev/dri/card1 /dev/dri/card0
mv: cannot stat '/dev/dri/card1': No such file or directory
(xenial)deoxys@localhost:~$

You could try installing the xiwi target (replace CHROOTNAME with the name of your chroot):
sudo sh -e ~/Downloads/crouton -u -t xiwi -n CHROOTNAME
Then, install the Crouton Integration extension, and you should be able to start XFCE (or other desktop environments) normally, without any rm /dev/dri/card0 stuff.

I'm having the same exact issue of using xorg resulting in a black screen and rebooting. (CB+, of course) Xiwi works perfectly fine and it has been a couple months since I last successfully was able to use xorg.

The issue was resolved!
Did a complete power wash of the computer, and I believe since I had an SD Card in the slot, everything got rooted onto there and wouldn't run. I could be wrong, someone gave a better explanation. Anyhow, closing this thread.

After installing crouton with xfce when entered
sudo startxfce4 in samsung chromebook
and
following above advice it did not resolve and the problem did not solve and got the following error and t
Enter encryption passphrase for xenial:
Entering /mnt/stateful_partition/crouton/chroots/xenial...
/usr/bin/startxfce4: Starting X server
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
X.Org X Server 1.19.6
Release Date: 2017-12-20
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-128-generic armv7l Ubuntu
Current Operating System: Linux localhost 3.8.11 #1 SMP Mon Jun 25 22:09:26 PDT 2018 armv7l
Kernel command line: cros_secure console= console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2539520 verity payload=PARTUUID=ea6b08c8-c6d1-c845-97e2-af13b302ab79/PARTNROFF=1 hashtree=PARTUUID=ea6b08c8-c6d1-c845-97e2-af13b302ab79/PARTNROFF=1 hashstart=2539520 alg=sha1 root_hexdigest=1d84f4beeaa945c2a4a7a9c357c9c313cc443fe5 salt=cf877d6d1c1abd72761248b7eee1eb073b44e8383ad44290182803bee841b0da" noinitrd vt.global_cursor_default=0 kern_guid=ea6b08c8-c6d1-c845-97e2-af13b302ab79
Build Date: 14 June 2018  05:10:24PM
xorg-server 2:1.19.6-1ubuntu4~16.04.1 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.33.6
Before reporting problems, check http://wiki.x.org
for help.
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE)
Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.chromium.LibCrosService was not provided by any .service files
method return time=1531114181.801620 sender=:1.11 -> destination=:1.59 serial=1190 reply_serial=2
boolean true
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
chronos@localhost ~ $ Enter encryption passphrase for xenial:

Solved
I installed trusty it worked
Now struggling to install Libre office


multiprocessing Rerun

First Check

[X] I added a very descriptive title to this issue.
[X] I used the GitHub search to find a similar issue and didn't find it.
[X] I searched the FastAPI documentation, with the integrated search.
[X] I already searched in Google "How to X in FastAPI" and didn't find any information.
[X] I already read and followed all the tutorial in the docs and didn't find an answer.
[X] I already checked if it is not related to FastAPI but to Pydantic.
[X] I already checked if it is not related to FastAPI but to Swagger UI.
[X] I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
import uvicorn
import multiprocessing
from fastapi import FastAPI
app = FastAPI()

def demo():
    a = [1]
print('几次')

if __name__ == '__main__':
    process2 = multiprocessing.Process(target=demo)
    process2.start()
    uvicorn.run(app)
# uvicorn main:app --reload
# uvicorn main:app --host <IP_ADDRESS> --port 8000 --reload

Description
After adding multiprocess code to main, it will run multiple times.  For example, if I add a process to main, this code will run twice.  May I ask why?  Can you help me solve this problem?Thanks！
Operating System
Windows
Operating System Details
No response
FastAPI Version
0.68.0
Python Version
3.7.10
Additional Context
No response

That is not a fastAPI issue , you can very probably close this issue , thank you


Added DateTime wo TZ mapping

Added mapping for DateTime without timezone. This is the datetime2 type in Sql Server, corresponding to Types.TIMESTAMP {java.sql.Timestamp), as specified here https://docs.microsoft.com/en-us/sql/connect/jdbc/using-basic-data-types?view=sql-server-2017

could you push a new maven release?

Yes, but I won't be able to do it before thursday. I am on vacation and have no access to a computer. 🍺

ok thx

I didn't forget you! I have released 1.4 to Maven and it should be available soon.

I just checked the Maven Central repository. It's available now. Let me know if there are any problems! 😎

I see it, thanks!

@vslee I am thinking about how to improve the library. The BigDecimal mapping for example just was a first attempt and I am not sure it works for all edge cases. The library probably needs some thorough tests. 😳 Also there are some magic numbers should be constants and things like this.
Bottom Line: If you would like to see something added in the library, then feel free to make Pull Requests. I will be happy to merge them! 🙃

Okay, I will keep an eye out for things to improve


Removed unused client version filter method in WebService

Motivation
Removed unused code since the client version filter was removed some time back.

It seems that these imports are no longer necessary.
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.google.common.collect.ImmutableList;


add recipe resource

🚧

What's the end goal of this? Just being able to run a sequence of resources from one notification?

@coderanger this is an implementation of #4978 with your syntax.
reusing LWRPBase also gets the enclosing_provider correct and gets the resource DSL mixed into the provider and other things.  it needs more than just a notifying_block.
it does not (and cannot?) support not_if/only_if or notifies/subscribes on the recipe itself.
there was a recipe ivar accessor on Chef::Recipe which trolled me, and i nuked it and i think it was not being used at all...

Yeah, I'm trying to get a zoom'd out view of what this will be for. It feels like something living between several use cases maybe?

its the resource grouping with its own delayed notification block that i see as the most useful:
recipe "stuff that goes together" do
  template "/etc/whatever/conf1" do
    source "conf1.erb"
    notifies :restart, "service[whatever]"
  end
  # we now may be in a completely inconsistent state -- we cannot have the previous notify be :immedately or we may crash a running service.
  template "/etc/whatever/conf2" do
    source "conf2.erb"
    notifies :restart, "service[whatever]"
  end
  # okay now we're good, but we can't count on conf1 and conf2 always being updated at the same time, so while conf2 could notify immediately
  # there's still the case where conf1 updates where a :delayed notification off of conf1 will be too late, but :immedate will be too early.
  service "whatever" do
    action :start
  end
  # because this is in a sub-resource context the delayed notifications will all run "here"
end

execute "whateverdb add tables" do
  command "whatever add tables to things and this requires a running whatever service"
end

Also I imagine people could have uses for grouping resources and sending them notifications.

there's the shitty pattern of using the log resource to collect notifications and then fire off multiple resources in parallel, which i think this could replace -- although the fact that you can't hang a notify or subscribes off of a recipe resource written this way and you always have to invert it is a bit annoying...

Delayed notifications is a good enough argument for it in my book :+1:. I've talked with @jkeiser before about using this syntax for parallelism in the future (recipe('foo', parallel: true) or something) so having the base semantics in seems like a good step, and then we can add more options and modes.

yeah, we've been kicking this idea around for awhile now, seems like this would be an iterative step forwards...

I'm willing to bet this will break at least some LWRPs that use Recipe instead of Chef::Recipe because wooo Ruby relative const lookups, but I will shed 0 tears over this.

This is kinda like what we were talking about when we talked about making the recipe DSL available to ruby blocks... this solves the notify problem you mentioned, but also solves the problem if wanting to schedule a runtime thing that uses resources, so that's kinda neat. Ultimately though, this is just an inline syntax for custom resource creation-and-calling, afaict.

also, why can't this support not_if/only_if ? it's just a resource like any other, right?

@jaymzh Because we're using the whole "resource block" bit as the recipe DSL. The block won't be evaluated until the action is run.

couldn't we check it manually in action :run ?

you're not going to parse the not_if/only_if until you've executed all the statements before it.
i guess we could have those mean "conditionally abort the converge phase" with the understanding that the compile phase has to happen.   that would take some monkeying about with how it fires of the sub-resource compile-and-converge phases though.
notifies could also conceivably be made to work as well, just wire up the notification to the enclosing provider's resource and then when it gets updated_by_last_action then it'll fire.
subscribes can't really work though because without parsing the block when the provider is already firing in converge mode of the outer resource, you aren't going to know about the subscribes to send notifications to it from previously declared resources.
one thing we could do is wire up both options (this way of writing it and the way with the resource that takes block do ... end as a property) and name them something slightly longer, then just see which one eventually 'wins' and we promote to the recipe resource after there's a bit of consensus.
that means there might be some unnecessary code we eventually need to deprecate, but that's better that getting stuck with the API we don't want for recipe blocks and wind up wanting to change the API and break every early adopter...

@chef/client-core I think what I'd like to propose here is that we merge the recipe resource as-is.
It gives the best experience for "i just want a group of resources to run" without a lot of clutter.
I think when and if we see the requests start coming in for things that this recipe resource does not support, then we introduce a recipe_block resource which takes a block and looks like:
recipe_block "whatever" do
  block do
    file "/etc/whatever.conf"
    ....
  end
  not_if { ... }
  only_if { ... }
  notifies ...
  subscribes ...
end

But I don't think we expand the scope until we see the bug report come in.

should probably rename this to "resource_group" instead of "recipe" since that overloads the meaning.  also "resource_block" could be used for the other thing that takes a block if we eventually need to build that.


fix(typography): event edit-end triggered twice when press enter

Types of changes

[ ] New feature
[x] Bug fix
[ ] Enhancement
[ ] Component style change
[ ] Typescript definition change
[ ] Documentation change
[ ] Coding style change
[ ] Refactoring
[ ] Test cases
[ ] Continuous integration
[ ] Breaking change
[ ] Others

Background and context

Solution

How is the change tested?

Changelog

Component
Changelog(CN)
Changelog(EN)
Related issues

typography
修复按下回车的时候触发两次 editEnd 的问题
fix the problem that event edit-end triggered twice when press enter
close #1110  #1103

Checklist:

[ ] Test suite passes (npm run test)
[ ] Provide changelog for relevant changes (e.g. bug fixes and new features) if applicable.
[ ] Changes are submitted to the appropriate branch (e.g. features should be submitted to feature branch and others
should be submitted to main branch)

Other information

该bug在2.27版本依然存在


New command: Create site script from an existing list

Creates site script from an existing list
command: spo list sitescript get -u|--webUrl <webUrl> -i|--id [id] -t|--title [title]

webUrl: The URL of the site where the list is located
id: The ID of the list for which to generate site script. Specify id or title but not both
title: The Title of the list for which to generate site script. Specify id or title but not both

For more information see: https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/get-spositescriptfromlist?view=sharepoint-ps

Hi @waldekmastykarz ,
I already have a good start for that feature in Site Designs Studio.
I can take care of this one :)
However, one question: does it have to handle built-in list template and extract the delta only?
It is how I started in my code, but I didn't find a reference documentation with all builtin list templates and, overall, their associated fields. To have it fully feature this document would be really useful,

I think there is a server-side API available for it nowadays (see the referenced PoSh cmdlet) so ideally we'd use the same for consistency.


K12 Update the Exit Reason picklist value to "No-Show" on Grade Enrollment

Note: FOR INTERNAL USE ONLY. For support questions, please use the EDA Chatter group in The Power of Us Hub.
For feature requests, please use the Ideas tab in The Power of Us Hub.

Do you want to request a feature or report a bug?
bug
What is the current behavior?
"No Show" is currently the format for Exit Reason's picklist value.
What is the expected behavior?
"No-Show" is the expected format for Exist Reason's picklist value.
What is the motivation / use case for changing the behavior?
data integrity.

**lurch: attach W-039472

Tracking W-039472


API通信周りの作成

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.11%. Comparing base (52fb011) to head (d14efed).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #16      +/-   ##
===========================================
+ Coverage    92.64%   94.11%   +1.47%
===========================================
  Files            4       10       +6
  Lines           68       85      +17
===========================================
+ Hits            63       80      +17
  Misses           5        5

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Remove path underflow as not planned

for reference: https://github.com/yescallop/fluent-uri-rs/issues/17

@yescallop Any news for this one?


License MIT vs  CC BY 3.0 l

According to the MIT license (also stated as MIT on https://themes.gohugo.io/hugo-icon/ ) I am allowed to use/modify this theme however I see fit, but https://themes.gohugo.io/hugo-icon/ states otherwise.
I have no issue with paying money for the theme, but it would be nice if it was stated somewhere that this is not actually licensed under MIT if it is not.
Great port btw, super easy to customize :+1:

Sure - good point, thanks. The original license for the theme is CC BY 3.0 as you state - so as long as the attribution stands for freehtml5 and any changes are acknowledged, then using is fine. Paying them just removes the acknowledgement.
Clearly I should then clarify - the hugo-specific templates are MIT, the design is CC BY 3.0.


[skip ci] dashboard: support changing grafana admin pass

This commit adds the grafana admin password changing support.
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1962629
Signed-off-by: Guillaume Abrioux<EMAIL_ADDRESS>

jenkins test centos-container-all_daemons

jenkins test centos-container-collocation

jenkins test centos-container-collocation

jenkins test centos-container-all_daemons

jenkins test centos-container-update

@dsavineau @fmount
too many changes for supporting something that is even not supported by grafana itself afaik 😒

@dsavineau @fmount
too many changes for supporting something that is even not supported by grafana itself afaik unamused}

I agree on this, my concern is related to the fact that this patch can be (later) the cause of other bugs.

rhcs note: The more I look at this patch, the more I'm -1 to introduce such a change in a z-release

I see, and from a pure Ceph perspective, Grafana is used by the Ceph Dashboard: even though is
accessible, it's not exposed to the end user, so we can probably avoid this kind of change, which has
a big impact for a zstream.

Grafana doesn't seem to offer a handy way for changing the admin password in a tool like ceph-ansible.
For all the reasons mentioned previously, I'm closing this PR.
As a workaround, a call with curl to the Grafana API can be made in order to change the password (+ reflecting the change by modifying grafana_admin_password in group_vars...)


Adding a Launch section in the Setup tutorial

As I was kind of lost about how to run the project after the installation (without docker), I thought about adding a dedicated "Launch" section in the setup tutorial. It also gives some tips about regrouping the command lines in a bash script.

Hi @Laurent2695 ,
Indeed, the current documentation lacks much information, and it's very nice to see external people trying to get into this project!
I think I might also add a screenshot of my terminal configuration to show what a complete setup looks like (i.e., with server running, redis runnning, webpack running, and a console using the virtualenv).
Can you maybe emphasize that the flask run command should be run within the virtual env (if it was used)?
Thanks!

Changes made, they are in my last commit. As I'm not used to GitHub, I don't know if I should do a new pull request or you can access them from here ?

@Laurent2695 your changes are automatically updated here ;-)
I also committed to your branch to add the small terminal configuration I mentioned.
Looks go to me now!

If seems good for you @Laurent2695 , I will merge your merge onto main ;-)

If seems good for you @Laurent2695 , I will merge your merge onto main ;-)

It's great ! Thanks in advance ;)

Merged!


Can not use evillimiter on my machine.

I'm baffled by what is going wrong. I use arch on my other laptop and it runs fine, but for some reason evillimiter gives me a qdisc error when running on a different arch installation.
This is running at root, flushing does not help.
ERR  qdisc root handle could not be created. maybe flush network settings (--flush).

Can you post the output of the following command (if there is any):
tc qdisc add dev [YOUR INTERFACE NAME] root handle 1:0 htb)
Replace [YOUR INTERFACE NAME] with the actual interface name and execute the command only once.

Traceback (most recent call last):
File "/usr/local/bin/evillimiter", line 6, in
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 3250, in
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 3263, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 583, in _build_master
ws.require(requires)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'netifaces' distribution was not found and is required by evillimiter

See #3


support cratedb

jdbc mvn repo  https://mvnrepository.com/artifact/io.crate/crate-jdbc
cratedb repo https://crate.io/

Crate driver will be added in the next version.

When opening table it display popup :

SQL Error [42846]: Cannot cast to boolean: "NEVER"
Cannot cast to boolean: "NEVER"

The toolbar icon to add  row is disabled.
2. Can not create new table it says syntax error, when i create manually using ddl query it works.
create table test (
  first_column integer,
  second_column text
);

I use DBEaver CE 6.2.1

@serge-rider The issue exists with DBeaver, indeed. I'm happy to help with investigation, though.
So far I'm trying to figure out the statement coming from DBeaver and there is nothing in debug-logs (except stack traces). If I try to use Read data in SQL Console in the context menu, I see the same error as mentioned above and nothing more. But if I just double-click on the table, besides the error I'm also able to see entries and work with them. If you could hint on something, that'd be cool.
P.S. Should I open an issue for that or it's unnecessary?
@iambudi You can use PostgreSQL (Old) for the moment, it seems to work properly. Check it out, if it's still relevant. :)

@serge-rider JFYI, the issue doesn't appear in DBeaver 6.2.5, everything works as expected. 👍


Add to database endpoint

name: Add /add endpoint to database
about: Creates an endpoint to add frames, ocr_results, and transcription results to the screenpipe database from outside sources

description
Creates an endpoint to add frames, ocr_results, and transcription results to the screenpipe database from outside sources
related issue: #
/claim #467
type of change

[x] new feature

checklist

[x] i have read the CONTRIBUTING.md file
[x] i have added the custom cursor AI prompt to my settings as mentioned in CONTRIBUTING.md and used to write this PR
[x] my code follows the project's style guidelines
[x] i have performed a self-review of my code
[] i have updated the documentation if necessary
[x] my changes generate no new warnings
[ ] i have added tests that prove my fix is effective or that my feature works
[x] all tests pass locally with my changes

additional notes
any other relevant information about the pr.

@louis030195 Not sure how you want to add tests for the frame writing to mp4 bit.
Also, currently you can't specify the OcrEngine used to generate the ocr_results and it just inputs the default engine

how can i test?

Working on testing now. So right now there is a foreign key constraint on the the audio_transcription table having an audio_chunk_id in the audio_chunks table. How would you like to handle this for adding transcriptions without associated audio_chunks

Working on testing now. So right now there is a foreign key constraint on the the audio_transcription table having an audio_chunk_id in the audio_chunks table. How would you like to handle this for adding transcriptions without associated audio_chunks

hmm okay so the use case is that you don't have the .mp4 audio recording to share?
like maybe someone is syncing their iphone manual recording and dont have .mp4 or lazy and we want to allow them to sync just the transcription without audio chunk
that's a bit annoying because all the code is based around this, like the search, in the UI we display result of path to video etc
dumb workaround is to generate TTS the chunk using AI XD
what are the possible solutions?

i guess we have to allow nullable

@louis030195 Okay cool yeah that probably makes the most sense

Yeah this is causing some issues for searching

The transcription is showing up when hitting the search endpoint, but not seeing it in the UI. Assuming this is because there is no path / audio_chunk_id. How do you want to handle the results in the UI?

Updated so it just shows "No file path available for this audio." in the app search UI when there is no audio path

Testing transcription insert:
     -H "Content-Type: application/json" \
     -d '{
           "device_name": "MacBook Pro Microphone (input)",
           "content": {
             "content_type": "transcription",
             "data": {
               "transcription": "This is an example transcription of recorded audio.",
               "transcription_engine": "speech_to_text_v1"
             }
           }
         }'```

Testing frames insert. Will need to change the file_paths to paths that exist on your computer:
`curl -X POST "http://localhost:3030/add" \ -H "Content-Type: application/json" \ -d '{'device_name': 'hindsight_android',
'content': {'content_type': 'frames',
'data': [{'file_path': '/Users/connorparish/.hindsight_server/data/raw_screenshots/2024/06/03/com-google-android-deskclock/com-google-android-deskclock_1717433244710.jpg',
'timestamp': '2024-06-03T16:47:24.710000038Z',
'app_name': 'Clock',
'window_name': 'Clock',
'ocr_results': [],
'tags': ['hindsight', 'Clock']},
{'file_path': '/Users/connorparish/.hindsight_server/data/raw_screenshots/2024/06/03/com-google-android-deskclock/com-google-android-deskclock_1717433242624.jpg',
'timestamp': '2024-06-03T16:47:22.624000072Z',
'app_name': 'Clock',
'window_name': 'Clock',
'ocr_results': [],
'tags': ['hindsight', 'Clock']}]}}'

Testing frames insert. Will need to change the file_paths to paths that exist on your computer: `curl -X POST "http://localhost:3030/add" \ -H "Content-Type: application/json" \ -d '{'device_name': 'hindsight_android', 'content': {'content_type': 'frames', 'data': [{'file_path': '/Users/connorparish/.hindsight_server/data/raw_screenshots/2024/06/03/com-google-android-deskclock/com-google-android-deskclock_1717433244710.jpg', 'timestamp': '2024-06-03T16:47:24.710000038Z', 'app_name': 'Clock', 'window_name': 'Clock', 'ocr_results': [], 'tags': ['hindsight', 'Clock']}, {'file_path': '/Users/connorparish/.hindsight_server/data/raw_screenshots/2024/06/03/com-google-android-deskclock/com-google-android-deskclock_1717433242624.jpg', 'timestamp': '2024-06-03T16:47:22.624000072Z', 'app_name': 'Clock', 'window_name': 'Clock', 'ocr_results': [], 'tags': ['hindsight', 'Clock']}]}}'

will try today

curl -X POST "http://localhost:3035/add" -H "Content-Type: application/json" -d '{
  "device_name": "MacBook Pro Microphone (input)",
  "content": {
    "content_type": "transcription",
    "data": {
      "transcription": "This is an example transcription of recorded audio.",
      "transcription_engine": "speech_to_text_v1"
    }
  }
}' | jq

curl -X GET "http://localhost:3035/search?q=example&content_type=audio" -H "Content-Type: application/json" | jq

Yeah I agree running OCR by default when OCR results are not provided would be ideal but sounds good to add in another PR.
Are the macbook_pro videos not the merged videos? I'm storing by "{device_name}_{current_time}.mp4"
Maybe they aren't appearing in the search since there are no ocr results? Could you try putting in OCR results.
`curl -X POST "http://localhost:3035/add" -H "Content-Type: application/json" -d '{
"device_name": "macbook_pro",
"content": {
"content_type": "frames",
"data": [
{
"file_path": "'$HOME'/Library/Mobile Documents/com~apple~CloudDocs/Desktop/Screenshots/02722091-76A7-4215-9CAB-E4A4DC5A37BA.png",
"timestamp": "2024-03-14T16:47:24.710Z",
"app_name": "Desktop",
"window_name": "Screenshot",
"ocr_results": [{'text': 'test add frames with ocr results',
'text_json': '{}',
'ocr_engine': 'apple_native'}],
"tags": ["screenshot", "desktop"]
},
{
"file_path": "'$HOME'/Library/Mobile Documents/com~apple~CloudDocs/Desktop/Screenshots/0D7F899B-DE6B-494E-B70D-1F5338A54AEE.png",
"timestamp": "2024-03-14T16:47:22.624Z",
"app_name": "Desktop",
"window_name": "Screenshot",
"ocr_results":  [{'text': 'test add frames with ocr results 2',
'text_json': '{}',
'ocr_engine': 'apple_native'}],
"tags": ["screenshot", "desktop"]
}
]
}
}' | jq

ref: https://github.com/BasedHardware/omi/issues/1212

curl -X GET "http://localhost:3035/search?q=t" -H "Content-Type: application/json" | jq

{
  "data": [],
  "pagination": {
    "limit": 20,
    "offset": 0,
    "total": 0
  }
}

works!

{
  "data": [
    {
      "type": "OCR",
      "content": {
        "frame_id": 1,
        "text": "test add frames with ocr results",
        "timestamp": "2024-03-14T16:47:24.710Z",
        "file_path": "/tmp/spp/data/macbook_pro_2024-10-29_23-25-31.mp4",
        "offset_index": 0,
        "app_name": "Desktop",
        "window_name": "Screenshot",
        "tags": [
          "screenshot",
          "desktop"
        ],
        "frame": null
      }
    },
    {
      "type": "OCR",
      "content": {
        "frame_id": 2,
        "text": "test add frames with ocr results 2",
        "timestamp": "2024-03-14T16:47:22.624Z",
        "file_path": "/tmp/spp/data/macbook_pro_2024-10-29_23-25-31.mp4",
        "offset_index": 1,
        "app_name": "Desktop",
        "window_name": "Screenshot",
        "tags": [
          "screenshot",
          "desktop"
        ],
        "frame": null
      }
    }
  ],
  "pagination": {
    "limit": 1000,
    "offset": 0,
    "total": 2
  }
}

@cparish312 should i merge now?

@louis030195 Did some final cleanups should be good to go!

/approve
thx!
one use case i'd want to try (would need to add a OCR option) is to create an apple shortcut to add a document into screenpipe, maybe a pdf converted to image


Review blog content before they move into appsody.dev

The Appsody blogs are going to move from medium into Appsody under issue #491
This issue is to review the content of those blogs and note what updates/edits are required so that we can determine how much work it is (and then make the changes).
[ ] Appsody in Autumn
[ ] Bohemian Appsody
[ ] Building Cloud native apps with Appsody

Appsody in Autumn:

"building and testing stacks" is a broken link
release notes in the Appsody CLI section link to latest, not v0.4.5?

Bohemain Appsody

No changes required.

Building Cloud Native apps with Appsody

Do we want to talk about the "Appsody Hub repository" it's not terminology I'd prefer we used now.
Appsody Deploy has a few typos "you can build you" and "when its not use"
We need to fix the references in the text (or add a note) to Knative being the default deployment stance for Appsody (we could mention that this can be achieved with the --knative flag)


fix da.pad example for numpy 1.20

[x] Closes #4858
[x] Passes pre-commit run --all-files

cc @mark-boer

@keewis, I agree a test would be nice, but what kind of test would you want to add? I mean, xarray just mimics the behaviour of np.pad and dask.array.pad. And the default behaviour of numpy was a bit funky, which is probably why they changed it.

not sure. I would probably try to either replicate the new behavior of numpy with an example, or just copy the doctest into a test.

Thanks for the review. I added some minimal tests. I think it could be good to discuss the type coercion in a new issue.


Test format of contract ID

Migrate the linter rule no-unnecessary-type-assertion from tslint to eslint, since the tslint implementation did not work well and tslint is deprecated.
Test format of contractId for bns/create_multisignature_contract

@davepuchyr as you can see, the contract ID is a fixed length 8 byte value containing a small number (a counter), e.g.<PHONE_NUMBER>000004 (hex).

@webmaster128 , why is contractId a Uint8Array when all other ids (electorateId, escrowId, etc) are numbers?

Historic reasons: Multisig contracts existed first. And from the backend's point of view it makes sense to "simply" use uint64. But then in JavaScript world cou can only store integers up to Number.MAX_SAFE_INTEGER without rounding (which is about 53 bit integers). Now you have two ways to handle that:

Represent the IDs as raw binary data, allowing the full uint64 range to work
(Ab-)use the knowledge that the values are auto incrementing counters starting at 1 that will not exceed MAX_SAFE_INTEGER

1 was the original strategy and it has the advantage that the client does not make assumptions on how the IDs are structured. Backend could choose to use random values instead of a counter. But the development and user experience was very bad, which is why we moved to 2. when working on all this governance.
Concerting contract ID to number would make sense to me, espelcially since MultisignatureTx.multisig uses an array of number already. So yeah, it should be done.


36 icons added, 8 linked to existing icons and 2 icons replaced

Changed - Infinity for Reddit, Snapseed
Linked to existing icons- Droid-ify, Dolby Audio, Harpy for Twitter, Wallpapers app (pixels), Shein, Shizuku, Panels
Added - Adobe Fill and Sign, Adobe Scan, Atlas VPN, AutoNotification, Battery Guru, Bank (general wallet icon), Bitdefender, Brevent, Caffeine, Color Picker, Crayon Icon Pack Facelapse/FaceApp, FusiOn for KWGT, Google Opinion Rewards, Icon Pack Studio + (Exported), Lawnicons, Linex Icon pack, Macrodroid, Notion, Pi, Pix Wallpapers, Quran (general), RescueTime, Shadow KWGT, Spike Mail, Spotiflyer, Tapet, ThemeX, Ting, LG Tone Free, Uzuri KWGT, Volume Styles, WatchFace App (general), YouCut, Zepp Life.

Since I did a lot here, please let me know if any of the icons don't meet the requirements. I can make adjustments/remove those icons and push another pull request 👍🏼


Create virtual enviroment w/ requirements.txt

Add the requirements.txt to the repo, but the venv folder with the locally installed packages should be excluded.


Report URL for HTTP errors

When using the python handler and importing cross references using the import config option:
plugins:
  - search
  - autorefs
  - mkdocstrings:
      default_handler: python
      # generate objects.inv sphinx inventory file in site/ dir to support external cross references
      enable_inventory: true
      handlers:
        python:
          import:
            - https://docs.python.org/3/objects.inv
            - https://pint.readthedocs.io/en/stable/objects.inv
            - http://numpy.org/devdocs/objects.inv

If one of the referenced HTTP addresses is not reachable for some reason, mkdocs just dumps out a stack dump with an HTTP error without including the offending URL, e.g.:
Traceback (most recent call last):
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/bin/mkdocs", line 10, in <module>
    sys.exit(cli())
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/mkdocs/__main__.py", line 250, in build_command
    build.build(cfg, dirty=not clean)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/mkdocs/commands/build.py", line 311, in build
    env = config.plugins.run_event('env', env, config=config, files=files)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/mkdocs/plugins.py", line 520, in run_event
    result = method(item, **kwargs)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/mkdocstrings/plugin.py", line 243, in on_env
    for page, identifier in collections.ChainMap(*(fut.result() for fut in self._inv_futures)).items():
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/mkdocstrings/plugin.py", line 243, in <genexpr>
    for page, identifier in collections.ChainMap(*(fut.result() for fut in self._inv_futures)).items():
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/concurrent/futures/_base.py", line 451, in result
    return self.__get_result()
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/site-packages/mkdocstrings/plugin.py", line 296, in _load_inventory
    with request.urlopen(req) as resp:  # noqa: S310 (URL audit OK: comes from a checked-in config)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 557, in error
    result = self._call_chain(*args)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 749, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/Users/Christopher.Barber/miniconda3/envs/eispydata/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
make: *** [doc] Error 1

When this happens you end up having to comment out the imports one by one to figure out what the broken URL is.
Instead such errors should also print out the URL.
Although this is triggered by use of the mkdocstrings-python handler, I assume this is an issue with mkdocstrings itself
because I don't see handler specific functions in the stack.

OS : mac os 12.6
mkdocstrings 0.19.1
mkdocstrings-python: 0.8.3

Hi, thanks for the report! Yep, this would definitely be a good improvement :+1:
I'll try to work it soon, in the meantime PRs are welcome if you feel like sending one!


demo

demo1

@hblife1234
start do the tasks as per task list and make commit on github provide PR number on respective tasks in tracker


Describe passing library addresses to the docs

:tada: This PR is included in version 1.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Can't manage my add-ons

All (or nearly all) pages on https://addons.thunderbird.net/en-US/developers/addons now take me to an Oops page:
Oops! We had an error.
We'll get to fixing that soon.
You can try refreshing the page, or head back to the Add-ons homepage.
Refreshing doesn't work, unfortunately.

I can only reproduce this for lightweight themes, which is expected, as they're no longer supported and no longer display on the site.
Not the best UI presentation, but I will delete them eventually so they'll be gone from your profile.
The management links for your actual addons, eg Phoenity Buttons, Phoenity Shredder, etc seem to work fine.
You should be able to upload WE theme versions of all these by downloading them from AMO, adding an 'id' in the applications object, as noted in the documentation, and then uploading on ATN. 'browser_specific_settings' is not supported for us right now but will be in the future.

Weird, I can log in on https://addons.thunderbird.net/en-US/developers/
and it shows 3 of my add-ons, but as soon as I click any Edit Listing
https://addons.thunderbird.net/en-US/developers/addon/profileswitcher2/edit
link or the View All Submissions
https://addons.thunderbird.net/en-US/developers/addons link, I get the
Oops page.
There may be something wrong with my profile, this started after
ProfileSwitcher2 was rejected, perhaps there is a link.
On 7/29/19 5:00 PM, Andrei Hajdukewycz wrote:

I can only reproduce this for lightweight themes, which is expected,
as they're no longer supported and no longer display on the site.
Not the best UI presentation, but I will delete them eventually so
they'll be gone from your profile.
The management links for your actual addons, eg Phoenity Buttons
https://addons.thunderbird.net/en-US/developers/addon/phoenity-buttons/edit,
Phoenity Shredder
https://addons.thunderbird.net/en-US/developers/addon/phoenity-shredder/edit,
etc seem to work fine.
You should be able to upload WE theme versions of all these by
downloading them from AMO, adding an 'id' in the applications object,
as noted in the documentation
https://developer.thunderbird.net/add-ons/web-extension-themes#use-a-manifest-json-file,
and then uploading on ATN. 'browser_specific_settings' is not
supported for us right now but will be in the future.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/thundernest/addons-server/issues/100?email_source=notifications&email_token=AAELNO7XD5YIOVORY4J2T5DQB4A2VA5CNFSM4IHS4ZUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3A7UMA#issuecomment-516028976,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAELNOYRKAEJBL3S6OJPUWTQB4A2VANCNFSM4IHS4ZUA.

I set the state of ProfileSwitcher2 to Disabled, did that help?

Yes!
It took a few minutes, but now it is working again.
Many thanks.

OK. I'm actually going to re-enable LWT editing for now so that other developers don't run into these errors. Will need to delete them before I turn that off again.
Thanks for the quick responses, it made debugging much easier :)


Fixed background image on scroll

It's all a matter of taste, but I think this improves the overall ux and just adds a little something extra ✨

thanks! I like it scrolling so ill keep it but I appreciate the PR :)


build: fix inline comments and cleanup unused code

PR to test all-contributors :)

@all-contributors please add @matheo for research, ideas, code, documentation.


UI: Agree on wording of "Sign Up, Sign Out or Log Out, Sign In or Log In" and implement wording

Update menus to be consistent.

ZenHub Information
This information is updated automatically. To modify it, please use ZenHub.

Duplicate of #1171


Run Through Audio Strip/Sub Strip But Don't Convert?

I'm wanting to run this script on my 4k library to clean up all the extra audio/sub languages that come with it, keeping only 5.1+2.0 English audio and extract English subs. But i don't want to convert the actual file as I'm pretty sure if i do i lose any HDR in the file, is there anyway to get this to do it's magic without converting any of the files? Just poke with the audio & subs?

Yes, ensure the correct video codecs are set in the autoProcess.ini for all your files and it will copy the video stream while transcoding what audio and sub streams need it.
You should definitly do a manual run of a few different files to ensure it processes how you want. While doing this manual run you might also want to set the 'copy_to' setting to a temp folder so it won't delete your original files for the test run and to compare the original directly to the processed file. Remember to blank out the 'copy_to' setting when you run in on your whole directory.

Thanks for the reply, i understand theres that way which would involve me having to find out the codec of each stream and inputting it but was hoping there was maybe an option where it will just copy with any codec?

There is not a global option to approve all codecs but you can get the vast majority of them by adding the basics, pretty much anything HDR is gonna be x265/h265 so adding that and x264/h264 should take care of it. The specifics of the codecs such as the color profile and pixmap and things don't matter and won't impact the stream being copied directly.
My codec option is video-codec = h264, h265, hevc and that covers pretty much everything used in an mp4/mkv container in the last 10 years

FFPROBE translates x265/x264 into h264/h265 so you don't need to include them on the list, just FYI

Awesome, thank you very much for your help :)!


Add token propagation support

- documentation updates

Hi  @ricardozanini , this PR includes the documentation updates for the token propagation plus a couple of fixes for the native mode. Would you mind review?
Thanks!

The OIDC dependency was added because of native?

The OIDC dependency was added because of native?

yes, by adding it we have native mode working, but also users doesn't have to add the
     <dependency>
      <groupId>io.quarkus</groupId>
      <artifactId>quarkus-oidc-client-filter</artifactId>
    </dependency>

when they are working with the extension.
Otherwise they must be conscious of the fact that a particular security scheme has "oauth2" type and add it manually.

Looks great! Thank you for writing all these docs. The only thing I'm concerned about is that we are now enforcing the whole OIDC dependencies.

I'll do a quick check to see how this might affect end users + native mode...

Otherwise they must be conscious of the fact that a particular security scheme has "oauth2" type and add it manually

That's what we state right now. If their spec requires oauth2, they add the dependency. Since this is meant for cloud applications, not sure if bringing more dependencies will favor the experience.


update random number generation to numpy.random.Generator

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

66 of 72 (91.67%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.4%) to 96.104%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

nautilus/bounds/union.py
10
11
90.91%

nautilus/sampler.py
18
19
94.74%

nautilus/bounds/basic.py
26
28
92.86%

nautilus/bounds/neural.py
12
14
85.71%

Totals

Change from base Build<PHONE_NUMBER>:
-0.4%

Covered Lines:
1036

Relevant Lines:
1078

💛  - Coveralls


Update the Reference Manual to v3

[x] Replace the UAVCAN chapter to state compliance with v1 and UDRAL
[x] Update the title -- should say v3, not v2
[x] Probably something else

I need to update links to make sure they point to Cyphal and not UAVCAN


[release-1.11] cherry-pick of disabling APF controller in webhook

This was meant to be a cherry-pick of #6085 , but that had a merge conflict, so I had to create a separate PR against release-1.11 https://github.com/cert-manager/cert-manager/pull/6085#issuecomment-1557408517
I have checked that the APF gets disabled as expected using samplewebhook (make e2e-setup-samplewebhook)
I will cut actual patch releases for 1.11 and 1.12 with this change once we get c/r 0.15 so I can put that into 1.12 patch.
API Priority and Fairness controller is now disabled in extension apiserver for DNS webhook implementation.

/kind cleanup

/test pull-cert-manager-release-1.11-e2e-v1-26


update test-query to support FRE + veOcean + veAllocate

We have added support for FRE + veOcean + veAllocate.
This now needs to expand to a few other tickets.

This has completed. Closing it.


How to move two table rows in one drag?

I have a condition where the second row act as an accordion of first row. When I drag any of these two rows, I want to drag both the rows and drop them together. How can I achieve it?
In addition to this, no row should be placed in between row and accordion.
<template>
  <VueDraggable
    v-model="list"
    target=".sort-target"
    animation="150"
    @start="onStart"
    @end="onEnd"
  >

          Id
          Name

        <template v-for="(item, index) in list" :key="item.id">

            {{ item.id }}
            {{ item.name }}

some content here {{ index }}

        </template>

  </VueDraggable>
</template>

https://stackblitz.com/edit/vitejs-vite-vvgac6?file=src%2FApp.vue

Did you find any solutions @web-mm ?


What should we do about handling errors?

When a PendingTask runs, if it fails, there is currently no best pattern for handling that error.
I would prefer to not have wendy involved with this as much as possible because it doens't matter why a task fails to Wendy, just if it did fail.
Go into the example app, when it randomly fails it's pending task, have it also randomly generate a random error of some sort and determine the best way to fix this.

Closing for now. As I said before, at this time, Wendy only needs to know a task did fail. It doesn't need to know the reason. That is for the developer to take care of.

The only time that I would see this valuable is after a task fails, having a String available to show to the user in the UI. Since there exists a listener to see the status of a PendingTask, in that status listener it may be able to pass a Throwable or a String along when it does fail, yeah?

Instead of returning an error after runTask() runs for a specific PendingTask, what I could do is provide a feature to Wendy as an error datastore.
I imagine something like this:

When error occurs, developer can tell Wendy, "here is a task_id, here is an error message I will use to show to the user, here is a tag identifying the error and how to resolve it for myself later on".
Wendy records this as an entry in the database.
At anytime, the developer can call Wendy saying, "What is the latest error recorded for this task_id?". Wendy will pull the entry in the database and return it to the user.

Also, there would be a way to say, "Wendy, this task with task_id of ____ has been resolved. No more error." and Wendy would delete the entry from the database.
My thought process behind this is that:

listeners are temporary. Once the listener gets the error, it's only a matter of time until it disappears. The developer would ask Wendy when the UI refreshes, "Wendy, does this task_id have an error recorded for it that needs resolved?" to indicate if there is an error or not to show and take care of.
This allows the developer to show the error message to the user in the UI and also provide a way for the user to fix the error in the future.

I would also provide a way to query Wendy for all errors of a certain tag and get all errors that exist at the moment. Maybe a developer wants to show a list of errors in the app that the user needs to take care of.

This is done and will be merged into the next release of Wendy.


Link to new Kafka docs site

Reviewer checklist

[ ] Read the contributing guide
[ ] PR should be motivated, i.e. what does it fix, why, and if relevant, how
[ ] Ensure relevant issues are linked (description should include text like "Fixes #")
[ ] Ensure any appropriate documentation has been added or amended

Coverage: 98.999%. Remained the same when pulling 91bf7cfba47ef2681e10d9d2742cdcb231fd23cc on docs into 79308ebbd5ca9fb3842de54305022faa96ce9fce on main.


Fix System.Drawing.Common dependency; bump iTextSharp

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.08%) to 84.784%

Totals

Change from base Build<PHONE_NUMBER>:
-0.08%

Covered Lines:
933

Relevant Lines:
1084

💛  - Coveralls


Add docs for GraphQL

:sparkles: Add docs for GraphQL

Unfortunately the link for tutorial is broken: https://fastapi.tiangolo.com/tutorial/graphql/
Ref.: https://fastapi.tiangolo.com/release-notes/#061

@e-ruiz Well you can just go to navbar to search: https://fastapi.tiangolo.com/advanced/graphql/


[Currency Exchange] ...

Extension
https://www.raycast.com/xeric/currency-exchange
Description
The extension doesn't seem to work
Steps To Reproduce
input: 10
currency selected: usd
error: Unexpected token < at JSON at Position 0:
Current Behaviour
No response
Expected Behaviour
No response

@edmondnow it works fine in my side, could you please check if you have right API Key set in your configuration? you also can use some API client (e.g. Postman) to test the currency APIs with your key to confirm it works well or not. APIs are here: https://www.exchangerate-api.com/docs/overview


Introduced Utils::String#dasherize

What
Utils::String#dasherize
How does it works?
require 'lotus/utils/string'

string = Lotus::Utils::String.new 'lotus utils'
string.dasherize # => "lotus-utils"

string = Lotus::Utils::String.new 'lotus_utils'
string.dasherize # => "lotus-utils"

string = Lotus::Utils::String.new 'LotusUtils'
string.dasherize # => "lotus-utils"

# etc..

Why?
This is a supporting feature for Lotus::Helpers' form helper.
<%=
  form_for(:book, routes.books_path) do
    text_field :extended_title
    # ...
  end
%>

That text_field accepts a symbol which produces HTML attributes. This new Utils::String functionality will be used to produce id:
<input type="text" name="book[extended_title]" id="book-extended-title">

Coverage increased (+0.0%) to 98.83% when pulling 2480d38f357ddb81c022d4262300b2c0b7b4ef8e on string-dasherize into 4782e57e069442d067464ab8fa921f2a1a280455 on master.

Coverage increased (+0.0%) to 98.83% when pulling 2480d38f357ddb81c022d4262300b2c0b7b4ef8e on string-dasherize into 4782e57e069442d067464ab8fa921f2a1a280455 on master.

except above comments, it is a solid :100:

Coverage increased (+0.0%) to 98.83% when pulling 1ca285d81275f5e5de8e310f75966b064710eca8 on string-dasherize into 4782e57e069442d067464ab8fa921f2a1a280455 on master.

Coverage increased (+0.0%) to 98.83% when pulling 1ca285d81275f5e5de8e310f75966b064710eca8 on string-dasherize into 4782e57e069442d067464ab8fa921f2a1a280455 on master.

Coverage increased (+0.0%) to 98.83% when pulling 1ca285d81275f5e5de8e310f75966b064710eca8 on string-dasherize into 4782e57e069442d067464ab8fa921f2a1a280455 on master.

@joneslee85 Thank you, I've updated it.


Prettier conflicts with */object-curly-spacing rules

Overview
The following @shopify/eslint-plugin config results in a rule config:
{
  "extends": [
    "plugin:@shopify/typescript",
    "plugin:@shopify/typescript-type-checking",
    "plugin:@shopify/prettier",
  ],
  "parserOptions": {
    "project": "tsconfig.json"
  }
}

Prettier wants white spaces around object literals, e.g. { foo: "bar" }.
This conflicts with rules @typescript-eslint/object-curly-spacing and babel/object-curly-spacing.
Scope
"@shopify/eslint-plugin": "^40.1.0"

Unfortunately I cannot add labels to this issue.


Some shortcuts on macOS don't work

Godot version:
3.0.6
OS/device including version:
mac os x, "High Sierra", Version 10.13.6 (17G2307)
Issue description:
I'm facing the issue that some shortcuts on my mac don't work though they are configured in the editor settings as shortcuts.
Examples of working and not working shortcuts::
ctrl+cmd+D - toggle fullscreen: works
ctrl+cmd+D - switch to distraction free view: does not work
shift+cmd+O - open scene: works
cmd+y - restore after undo: works
cmd+y - custom shortcut to delete line: does not work, though the default behaviour for cmd-y (restore) has been removed
There are also shortcuts that have an unexpected behaviour. For example pressing alt+1 inside the text editor. Instead of switching to the 2d scene editor a special char is insert.
And I also would like to add a comment regarding cmd+left and cmd+right and cmd+backspace:
cmd+left/right works in the text editor, but (mostly) not in editor form fields.
cmd+backspace deletes on mac os the whole line. No effect in Godot (text editor included), although if I set cmd+backspace in the preferences to delete a line
Steps to reproduce:
Open the script editor and press the hotkeys

Could you test 3.1 alpha 2? There were quite a few changes to macOS shortcuts in the master branch already: https://godotengine.org/article/dev-snapshot-3-1-alpha-2

Thanks for the hint.
I've tested 3.1 alpha 2
Indeed, shortcuts are working better: cmd+left/right also works in the editors form fields, cmd+backspace deletes at least the current line in the text editor.
cmd+ctrl+d still doesn't open the distraction free mode, cmd+backspace works in the text editor only and so on ...

Godot version:
3.1.alpha.official
OS/device including version:
mac os x, "High Sierra", Version 10.13.6 (17G2307)
Issue description:
I've created a probably incomplete list of all the shortcuts that I expect to work but that don't work:

I set as shortcut to delete a line "command+y":

"command+y" is only assigned to this action:

This doesn't work. But "shift+command+k" works

"control-command-d" does not enable or disable the distraction free mode

"command+backspace" does not delete in all form fields the line. Example the search bar in the editor settings: I cannot delete "open" by placing the cursor to the right of "open" and pressing "command+backspace"

"alt-1" from inside the script editor doesn't switch to the scene view but inserts instead the special char "¡".
To be honest, I'm not sure if this is a bug or feature... and it's for me not critical, as I could map it to "command+1"

"command+backspace" does not delete in all form fields the line. Example the search bar in the editor settings: I cannot delete "open" by placing the cursor to the right of "open" and pressing "command+backspace"

In Godot, Option + Backspace is already implemented to remove a word, but Command + Backspace seems to be missing (tested on commit https://github.com/godotengine/godot/commit/9c3ddf05cb9c59817d885e9daca6e8f61c89dc97).
Behavior in macOS apps like the Finder is as follows:

Command + Backspace deletes everything before the cursor in the field,
Option + Backspace deletes the word before the cursor in the field.

command+comma doesn't work if i click script window, because there is a conflict

Just conforming that In Godot 3.2.2 on macOS 10.15.6 the Alt-1,2,3 keys don't work in the script editor on macOS. It just inserts a weird character instead of switching editors. It might be better to remap those to CMD-1,2,3 for macOS default. I dunno.

This might have been fixed by #43662 or related PRs, CC @EricEzaM.

Yeah, please test on latest master if you can build it and let us know. Some of the text editor shortcut stuff may also be fixed in #43663 (not merged yet)

Still having issues with this, it gets annoying when trying to quickly change between script and 2d/3d editor modes. How would I go about fixing this myself and contribute? Any ideas where I should look first? Thanks!

Any updates on this? Tried 3.5 and issues still persists.

Control-Command-D (Distraction Mode) not working on 3.5.1 on macOS 10.15.6
Changed it to Control-Command-F10 and that worked, but interestingly, editing the shortcut and trying to assign Control-Command-D says that I'm only pressing "Control-Command" even when I'm pressing D at the same time.
This seems to be a conflict with the default macOS function of looking up the selected word in the dictionary, for which Ctrl-Cmd-D is the default, however I don't seem to be able to disable that (possibly a macOS bug) as the item in Settings->Keyboard->Shortcuts->Services->Search->Look Up in Dictionary is set to "none" (despite it still working, say, in a notepad)
Even unticking the Look Up in Dictionary option, doesn't disable this feature (at the os level)
In short, I think using Control-Command-D as the default on macOS seems fraught with danger, but assigning the Distraction Free mode, to say, Control-Command-F11 (to be more in line with the Windows default in Godot) works fine.
related to https://github.com/godotengine/godot/issues/22883

Godot v4.1.1.stable - macOS 13.5.2
Command-backspace still doesn't work in input fields, only text editor
Command-comma still doesn't work when focus is in the text editor

Godot v4.1.2 - macOS v13.4.1
These shortcuts also don't work:
Distraction mode:

Ctrl + Cmd + D

Imo, by default this should be Cmd + Shift + D (which does work), as the Ctrl/Cmd combination is not used often and is hard to do on a keyboard.
Close tab:

Cmd + W

Next/previous tab:

Cmd + Tab
Cmd + Shift + Tab

By default these should really not use Cmd, because it's used for switching applications in the OS. Like Safari etc, they should default to:

Ctrl + Tab
Ctrl + Shift + Tab

(Which unfortunately also don't work if you set them like that in Godot)

Imo, by default this should be Cmd + Shift + D (which does work)

This is already used to duplicate lines in the script editor.

Cmd + B is also an unfortunate conflict on macOS (Sonoma 14.2.1) with Godot (v4.2.1.stable.official).
For the Script Text Editor it is defaulted to Go to Next Bookmark however it is also Run Project from the Editor, which is a much more frequently used command in my opinion that should work while editing scripts.

Cmd + B is also an unfortunate conflict on macOS (Sonoma 14.2.1) with Godot (v4.2.1.stable.official).
For the Script Text Editor it is defaulted to Go to Next Bookmark however it is also Run Project from the Editor, which is a much more frequently used command in my opinion that should work while editing scripts.

I agree. I'm using MacOS Sonoma 14.2.1, and switched the bookmark prev/next shortcuts from cmd+B / cmd+shift+B to option+B / option+shift+B (those have no conflicts with other shortcuts). This frees up cmd+B to work as expected to run the default scene.


analytics: send detected Tableland events and chain blocks as telemetry data

Summary
Closes #307
Context
Our current Retool dashboard is querying our cloud validator directly, which isn't convenient since:

We're adding analytics load to our main validator.
The way data is stored in SQLite isn't suitable for analytics.
Since SQLite is a local database, we needed to add an extra infrastructure piece (postlite) to have a PostgreSQL wire format.

By sending the system_evm_events and system_evm_blocks as events, we can leverage saving this information in BigQuery and use it as the database for Retool. We'll continue to do other ad-hoc analytics apart from the main dashboard, so we can keep taking advantage of having access to this data to do heavy queries.
After this PR is running in main for some days (so we have some data), I'll change the Retool dashboard to start using the Big Query database.
Implementation overview
We've concluded that we'd add the logic to send events and blocks as new metrics. The information is still saved locally in SQLite since this information is still useful to be queried locally and is part of our generated backups/snapshots. We might reevaluate in the future if this is the case.
For example, this data isn't operational but accounts for >90% of the backup sizes, which isn't strictly needed for new validators spinup. At some point, we might upload two kinds of backups, one with full events and blocks information and the other with minimal information to bootstrap a node.
Implementation details and review orientation
No specific orientation is needed.
Checklist

[X]  Are changes backward compatible with existing SDKs, or is there a plan to manage it correctly?
[X]  Are changes covered by existing tests, or were new tests included?
[X]  Are code changes optimized for future code readers, commenting on problematic areas to understand (if any)?
[X]  Future-self question: Did you avoid unjustified/unnecessary complexity to achieve the goal?

Awesome! Any ideas on how we could join the historical data and the new data coming from metrics? One approach I've applied in the past is to upload the historical data from the backup to BigQuery in a new table. Then, create a view in BigQUery that joins the historical data and the system metrics table.

Yes, we can do that, but I think it might not be needed since soon we'll have to do a cold sync after fixing the two non-deterministic spec problems. In cold sync, all the history would be reconstructed again.


Adjust one test to pass

I accidentally the build.

(my approval is conditional on the tests passing)


New navigation based on user tasks

This PR fixes DOC-2151, and implements a task-based navigation.
All the topics in sidebar-data-cockroachcloud.json have been merged into the corresponding task files for v21.2. We can't remove it, though, as it is required for v21.1 and v20.2.
One area that is still TBD is the location of the "Explore Database Features" topics, here moved under Deploy and renamed to "Explore CockroachDB Features." You could make an argument for putting these topics under Reference, or breaking out the topics into other subheadings throughout the navigation. Putting it under Get Started doesn't work because many of the topics are demos using Self-Hosted clusters.

This change is

@ianjevans The structure LGTM. The only issue I noticed is that it's awkward to have "File Storage for Bulk Operations" adjacent to "Back up and restore data" when it seems to be part of the same topic. Could be merged and iterated on. Adding @kathancox to have a look.

@ianjevans The structure LGTM. The only issue I noticed is that it's awkward to have "File Storage for Bulk Operations" adjacent to "Back up and restore data" when it seems to be part of the same topic. But I think the PR could be merged and we could iterate on this. Adding @kathancox to have a look.

I think how @ianjevans has structured Back Up and Restore and then File Storage for Bulk Operations probably makes sense. The File Storage pages also include other bulk operations, not just back up and restore.

However, on the cloud side, under "Backup and Restore CockroachDB Cloud Clusters" is "Run Bulk Operations" which includes backup, restore, import, export, & changefeeds — so this could be confusing.

Yes, that is definitely an issue with this navigation.

On the product side, there's a desire to break down that "Run Bulk Operations page for cloud/serverless, because we're getting a lot of questions that suggests users aren't finding information on each of these operations for serverless. This isn't a fix that can be done through this nav change, but I think at least changefeeds need to be pulled from this "Run Bulk Ops" page and put on to its own page for Streaming Data from Cloud under Stream Data.

@gemma-shay I think we're going to need a follow-up PR that pulls out these sections into their own topics for the Cloud docs.

However, on the cloud side, under "Backup and Restore CockroachDB Cloud Clusters" is "Run Bulk Operations" which includes backup, restore, import, export, & changefeeds — so this could be confusing.

Yes, that is definitely an issue with this navigation.

On the product side, there's a desire to break down that "Run Bulk Operations page for cloud/serverless, because we're getting a lot of questions that suggests users aren't finding information on each of these operations for serverless. This isn't a fix that can be done through this nav change, but I think at least changefeeds need to be pulled from this "Run Bulk Ops" page and put on to its own page for Streaming Data from Cloud under Stream Data.

@gemma-shay I think we're going to need a follow-up PR that pulls out these sections into their own topics for the Cloud docs.

This is something that the PMs and I were discussing a lot — breaking this page down, since we were getting some questions. I can put this on my board, if that makes more sense! Let me know

However, on the cloud side, under "Backup and Restore CockroachDB Cloud Clusters" is "Run Bulk Operations" which includes backup, restore, import, export, & changefeeds — so this could be confusing.

Yes, that is definitely an issue with this navigation.

On the product side, there's a desire to break down that "Run Bulk Operations page for cloud/serverless, because we're getting a lot of questions that suggests users aren't finding information on each of these operations for serverless. This isn't a fix that can be done through this nav change, but I think at least changefeeds need to be pulled from this "Run Bulk Ops" page and put on to its own page for Streaming Data from Cloud under Stream Data.

@gemma-shay I think we're going to need a follow-up PR that pulls out these sections into their own topics for the Cloud docs.

This is something that the PMs and I were discussing a lot — breaking this page down, since we were getting some questions. I can put this on my board, if that makes more sense! Let me know

Ok, why don't you open up a ticket for this since you've been discussing this with the PMs already. Thanks, Kathryn!

@ianjevans I missed the meeting where this was demo'd but just read the notes
took a look around the new site for a bit and I really like this change!  thanks very much for doing this!


Annotated heatmaps?

Hi there,
Is there a way in Makie to create annotated heatmaps like in Seaborn with the numeric values showed in each cell?

There is a test with an example:
https://github.com/JuliaPlots/Makie.jl/blob/master/ReferenceTests/src/tests/text.jl#L3

Thanks!


Conflicting documentation with respect to timers

The wiki page for timers states:
"Timers do not keep an actor activated and will disappear on deactivation."
However, the method comment for AbstractActor.registerTimer reads:
"The timer is automatically disposed on deactivation.  The timer calls will keep the actor active."
Do timers keep an actor active or not?

I just did a quick test to see which behaviour occurs.  I created an actor and set up a recurring timer on a 15 second interval.  I added logging in the callable, and in the activateAsync and deactivateAsync methods.  The actor is deactivated after 10 minutes (default TTL for actors) and the timer stops.  So it seems like the method comment is inaccurate.

Thanks for the confirmation. That's the expected behaviour so the comment is indeed incorrect. I'll fix shortly.
Thanks!


add january socratic

Orange pill app is now on Android!
https://twitter.com/orangepillapp/status/1616904746484498433?t=B7DjaJfAKvOMs91lItqsIg&s=19