[BUG] delete does not work with easymotion

What did you expect to happen?
I want to delete consecutive lines so I press d and then activate easymotion gsj and then I select the letter indicating the line to which I want to delete.
It does work with v for example.
What actually happened?
Cursor moved at the beginning of the line indicated by the easymotion
System information:

emacs   version    28.0.50
        features   XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GLIB NOTIFY INOTIFY ACL GNUTLS LIBXML2 FREETYPE HARFBUZZ LIBOTF ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP
        build      Jan 01, 2020
        buildopts  (--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games --with-sound=alsa --with-modules --without-gconf --without-gsettings --enable-link-time-optimization --with-x-toolkit=gtk3 --without-xaw3d --without-m17n-flt --with-cairo --without-compress-install 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -g -flto -fuse-linker-plugin -s -fuse-ld=gold' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now)
        windowsys  nil
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop, origin/develop, origin/HEAD 4a53f0818 2020-01-01 03:02:05 -0500
        dir        ~/.doom.d/
system  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /bin/zsh
        uname      Linux 5.4.2-1-MANJARO #1 SMP PREEMPT Thu Dec 5 09:55:57 UTC 2019 x86_64
        path       (~/.sdkman/candidates/scala/current/bin ~/.local/bin ~/.local/bin /usr/local/bin /usr/local/sbin ~/.local/bin /usr/local/bin /usr/bin /bin /usr/local/sbin /usr/lib/jvm/default/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl /usr/lib/smlnj/bin /var/lib/snapd/snap/bin /usr/lib/jvm/default/bin /usr/bin/site_perl /usr/bin/vendor_perl /usr/bin/core_perl /usr/lib/smlnj/bin /usr/lib/emacs/28.0.50/x86_64-pc-linux-gnu)
config  envfile    envvar-file
        elc-files  2
        modules    (:completion (company +childframe) (ivy +fuzzy +prescient) :ui doom doom-dashboard fill-column hl-todo hydra modeline nav-flash ophints (popup +all +defaults) vc-gutter vi-tilde-fringe (window-select +numbers) workspaces :editor (evil +everywhere) file-templates fold multiple-cursors rotate-text snippets word-wrap :emacs dired electric ibuffer vc :tools (eval +overlay) flycheck (flyspell +aspell) (lookup +dictionary +docsets) lsp magit make pass pdf tmux :lang (agda +local) (cc +lsp) data emacs-lisp ess go (haskell +dante +lsp) idris latex markdown (org +dragndrop +pandoc +present) plantuml racket (rust +lsp) scala sh web :app write :config (default +bindings +smartparens))
        packages   (n/a)
        elpa       (n/a)

Thanks a lot for doom-emacs!!

I was also wondering why this feature is not implemented yet. However, this is neither a bug nor should it be reported here. I think the right way to deal with this is to hop over to evil-easymotion and create a feature request!

I checked the evil-easymotion github and I found:

Currently most motions are supported, and it's easy to define your own easymotions.
Easymotions can also be composed with operators e.g. dSPCj to delete a bunch of lines.

which is exactly what I'm after.
Perhaps just some binding is missing, but I'm new to doom-emacs and evil so I could be wrong.

This is indeed an issue with the way Doom Emacs binds its keys for evil-easymotion. Specifically, how +evil/easymotion is designed to trigger the easymotion event, which evil considers the end of the current operation (thus aborting operator mode before triggering easymotion). I'm still looking into a fix and will keep you posted once I've made progress.

Is it the case that I need to type the combination rather quickly. It happens to me like 2 out of 3 times that it won't delete (or yank), but instead just jump if I'm not fast enough. Can I increase the delay?


Support rails7

Why?
What is the problem this PR attempts to solve, and why is it important? Fixing a bug? Explain the problem you're solving. Laying a foundation for future work? Explain how this fits into the bigger picture.
What?
What does this PR change, and how does that solve the problem noted above? Call out any related changes, and add before-and-after screenshots for UI updates.
Caveats
Are there downsides or side-effects that should be weighed against this update? Any lingering unknowns or things you can’t test without production data or traffic?
Testing Notes
Is any special setup required to test this change? Non-obvious things that should be checked?
A list of things to test:

[ ] Test item 1
[ ] Test item 2
[ ] Test item 3

Alternatives Considered
Were there other approaches or solutions to this problem which you considered? Why were they not chosen?
Further Reading
Were there articles or StackOverflow answers you found especially eye-opening when working on this? Slack conversation around this? Provide a link to the thread.
Merge Instructions
Please DO NOT squash my commits when merging

Opened against the wrong repo, sorry


Extract HolidayParserConfiguration dictionary definitions

Extracted VariableHolidaysTimexDictionary and HolidayNames to YAML.
Implemented Dictionary< type1, IEnumerable > use case for HolidayNames.

@JuanAr,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by Microsoft. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot


SEAB-6831: Fix aborted DOI alias creation during bot push

Description
This PR removes the auth check from AliasHelper.addWorkflowVersionAliasesAndCheck that was causing the problem described in https://ucsc-cgl.atlassian.net/browse/SEAB-6831
Basically, the auto DOI generation code was calling addWorkflowVersionAliasesAndCheck, which was throwing when a bot pushed, because no Dockstore user was present, so the "can the user write to the workflow" check failed.  This exception was caught, meaning that the DOI was created, but since the alias generation code failed, no alias was saved to the db.  So, the Dockstore alias link in the DOI didn't work when clicked upon.
When removing an auth check, the big danger is that you accidentally open a security hole.  So, I tried to analyze the execution paths, and, on the "manual DOI generation" path, I've added a necessary equivalent check, further "upstream" (earlier).  Everywhere else, I think, either the user has already been confirmed to be able to write to the workflow, or the webservice is initiating an automatic generation.  Please do your own analysis to make sure.
Given the hotfix target and the sensitivity of the code, this is a minimal bug fix, and as such, I didn't clean up now-unused parameters, try to restructure for clarity, or anything like that.
Given our current testing infra, user testing might be best, ala:

deploy to staging
enable auto DOI generation on some workflows
do a bot push of a tag, confirm that the generated DOI contains a valid alias link that resolves to the version's page on Dockstore
do a regular push on a different tag, and check the DOI and link similarly

Review Instructions
See steps above.
Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-6831
Security and Privacy
We are mucking with auth checks, please scrutinize to make sure we're still checking everywhere we should.

[ ] Security and Privacy assessed

e.g. Does this change...

Any user data we collect, or data location?
Access control, authentication or authorization?
Encryption features?

Please make sure that you've checked the following before submitting your pull request. Thanks!

[x] Check that you pass the basic style checks and unit tests by running mvn clean install
[x] Ensure that the PR targets the correct branch. Check the milestone or fix version of the ticket.
[x] Follow the existing JPA patterns for queries, using named parameters, to avoid SQL injection
[x] If you are changing dependencies, check the Snyk status check or the dashboard to ensure you are not introducing new high/critical vulnerabilities
[x] Assume that inputs to the API can be malicious, and sanitize and/or check for Denial of Service type values, e.g., massive sizes
[x] Do not serve user-uploaded binary images through the Dockstore API
[x] Ensure that endpoints that only allow privileged access enforce that with the @RolesAllowed annotation
[x] Do not create cookies, although this may change in the future
[x] If this PR is for a user-facing feature, create and link a documentation ticket for this feature (usually in the same milestone as the linked issue). Style points if you create a documentation PR directly and link that instead.

We could also cherrypick this to develop and deploy to qa, so that we can user test bot pushes and results there, before releasing/deploying to staging.


Recommendations on binding json to struct

Hi
I've looked at the example and it uses parse but I can't see the code for that on Github.  Can you recommend a model binder that can bind form body and json body data?
Thanks

https://github.com/goji/param and https://github.com/gorilla/schema

I might misunderstand but for JSON you can do something like this:
type Person struct {
    Name string `json:"name"`
    Age int `json:"int"`
}

func myHandler(w http.ResponseWriter, r *http.Request) {
    p := &Person{}
    defer r.Body.Close()
    json.NewDecoder(r.Body).Decode(p)
    // ...
}

@renstrom thats what I've gone with for now, but now I need validation. I found this https://github.com/mholt/binding but I don't really like the fieldmapper approach, i'm quite happy with reflection in model binding but i can't see a better validation library. adding struct tags everywhere can get ugly and too verbose and complicated over time IMO


Private repos?

Does hazel on work on public repos? Supporting private repos would required a GitHub token, which apparently is not currently required or used by hazel.

We're most likely never going to support private repositories since the assets are being downloaded directly from GitHub by the client (to save bandwidth).
In turn, the client would have to authenticate with GitHub.

@leo I've got a first working version of hazel which supports private repos over here: https://github.com/mifitto/hazel I a pull request something you're interested in?

@dominiklessel Yesss! 😍

Great 😄 I will test it internally first and try to find out if its working as expected!

nice

Just landed in https://github.com/zeit/hazel/pull/23


Update scodec-bits to 1.1.30

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

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

labels: library-update, early-semver-patch, semver-spec-patch

Codecov Report

Merging #1869 (9c78383) into main (14f0bf1) will decrease coverage by 0.20%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1869      +/-   ##
==========================================
- Coverage   86.29%   86.08%   -0.21%
==========================================
  Files          73       69       -4
  Lines        2531     2487      -44
  Branches      143      138       -5
==========================================
- Hits         2184     2141      -43
+ Misses        347      346       -1

Impacted Files
Coverage Δ

...re/shared/src/main/scala/io/circe/MapDecoder.scala
96.07% <0.00%> (-1.97%)
:arrow_down:

...rc/main/scala/io/circe/numbers/BiggerDecimal.scala
87.13% <0.00%> (-1.17%)
:arrow_down:

...c/main/scala-2.13+/io/circe/FactoryInstances.scala

...rc/main/scala-2.13+/io/circe/LiteralDecoders.scala

...rc/main/scala-2.13+/io/circe/LiteralEncoders.scala

...main/scala-2.13+/io/circe/CollectionDecoders.scala

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14f0bf1...9c78383. Read the comment docs.


AsymmetricSignatureProvider IsSupportedAlgorithm should recognize standard names

IsSupporterAlgorithm currently requires the hash name to be one that it understands something like from SecurityAlgorithms.???.
It should also understand "SHA2" or "SHA256" to trigger SHA256.Create().
Same for others.

If this is fixed, also address GetHashAlgorithm, so they are in sync.

Re-opening since this is not fixed in 4.x yet.

This is fixed in 5.x.


Add RosWalk state

This is a state in which the robot walks toward a pose received via ROS topic. It is assumed that the pose obtained from visual recognition is taken by the ROS topic.
https://github.com/isri-aist/BaselineWalkingController/assets/6636600/82589ca2-4436-49e8-b444-1138932c321f

The frame_id of the PoseStamped message can be a world or a robot frame name that can be resolved by mc_rtc.


TaskRunner with custom ExecutorService

I'm trying to pass my own ExecutorService through the Dispatcher when executing requests with an OkHttpClient:
ExecutorService executorService = getContext().getExecutorService();
Dispatcher dispatcher = new Dispatcher(executorService);
((ThreadPoolExecutor) dispatcher.executorService()).setKeepAliveTime(0, TimeUnit.SECONDS);

OkHttpClient okHttpClient = new OkHttpClient.Builder()
        .dispatcher(dispatcher)
        .build();

The purpose is to close all the active threads immediately as I close my application. Whatever I tried I couldn't do that because all threads closed after 60s and, I noticed that TaskRunner has a hardcoded implementation of its own ExecutorService:
class RealBackend(threadFactory: ThreadFactory) : Backend {
    private val executor = ThreadPoolExecutor(
        0, // corePoolSize.
        Int.MAX_VALUE, // maximumPoolSize.
        60L, TimeUnit.SECONDS, // keepAliveTime.
        SynchronousQueue(),
        threadFactory
    )
/*.....*/

companion object {
    @JvmField
    val INSTANCE = TaskRunner(RealBackend(threadFactory("$okHttpName TaskRunner", daemon = true)))

    val logger: Logger = Logger.getLogger(TaskRunner::class.java.name)
}

Also, in my close( ) method I have these:
if (okHttpClient != null) {
        okHttpClient.dispatcher().cancelAll();
        okHttpClient.dispatcher().executorService().shutdownNow();
        okHttpClient.connectionPool().evictAll();
}

Every time I close the app, all TaskRunner threads (and other OkHttp threads) park and close after 60 seconds.
Is there any reason to hardcode a ThreadPoolExecutor inside a TaskRunner instance?
It would be a nice feature if we could customize OkHttpClients with our own ExecutorService. Although, I can do that through the Dispatcher, but it doesn't seem to make a difference or help me achieve my expectations.

You will need to replace the TaskRunner also. I'll check tonight and confirm and provide a sample.

A sample with that would be really helpful. Thanks!

Yeah, I don't think it's possible, I found some extra ones.  We do this in tests via internal methods, specifically because TaskRunner is not public API.
Hence in OkHttpClient
    internal fun taskRunner(taskRunner: TaskRunner) = apply {
      this.taskRunner = taskRunner
    }

I am a bit confused, the TaskRunner threads are daemon, so won't hold your app open.
    val INSTANCE = TaskRunner(RealBackend(threadFactory("$okHttpName TaskRunner", daemon = true)))

I understand.
Also, is it possible to customize the thread names? It's useful for me because I'll use an OkHttpClient per application, on multiple applications, and if I can customize every thread name, for each OkHttpClient, I can distinguish them from one another.
The threads I noticed:

OkHttp
OkHttp TaskRunner
Okio Watchdog

For example, if I can do as below would be really helpful:

App1 OkHttp
App1 OkHttp TaskRunner
App1 Okio Watchdog
App2 OkHttp
App2 OkHttp TaskRunner
App2 Okio Watchdog
etc.

All the thread leak tests that I ran on different configs passed, with that delay of 60s so, at the moment I can say it's acceptable unless, there's still a chance to do thread leaks, which is not so good.

TaskRunner is an implementation detail of OkHttp. All instances share a single ExecutorService.

Is there any chance that it can be configured with virtual threads?

This is an example of OkHttp with Loom.  https://github.com/square/okhttp/blob/c73f9842ad72e4169f2c2f149b5bdee83fb73a76/okhttp/src/jvmTest/java/okhttp3/LoomTest.kt#L28
If you notice any inappropriate blocking in real use, please let us know.


fix normalizer test for _MAX_PATH

LongInvalidPath test sometimes fails due to GetFullPathName which does not allow to have more than _MAX_PATH length path.
The test sometimes successes depends on initial value of stack variable for GetFullPathName.
I fix this test to have cwd prefix in input path and confirmed the test passed in

clang-cl with/without --debug in configure.py
vs2017 cl.exe with/without --debug in configure.py

Thanks!


Helpers in conditionals inside loops

Hey guys,
I have noticed that inside a loop like this:

Hi.

  {function.myHelper}

{function.myHelper} works accordingly, receiving one single category. However,  receives the entire data object, with all categories, config and all.
Is that expected behavior? How should I be writing loops with conditionals that require helpers?
Thanks!

Conditional helpers get the full data object. If you want a single category, you can pass in the @index of the current category like so:

Hi.

and then your helper function would look like this:
function myHelper(data, index) {
  return !!data.categories[index];
}

With Benchpress new syntax, use this:
{{{ each categories }}}
  {{{ if function.myHelper, @value }}}

Hi.

  {{{ end }}}
{{{ end }}}


Write transactions & custom signers error

{"level":30,"time":1646276723980,"pid":7,"hostname":"0c4c5d4b605a","msg":"starting server"}
Loaded signer key files config/relayer.json.
hi, after restart the endpoint container have this problem and how to fix?

same problem...anyone please help


Reuse KNN representation from neighbors for KNN imputation

We calculate neighbors at some point anyways and save them in obsp and the distances. Ideally we could reuse them for the KNN imputation. Might require us to reimplement KNN imputation which we might not want.
Will see....

Maybe a custom PyTorch solution may also speed this up
https://gist.github.com/JosueCom/7e89afc7f30761022d7747a501260fe3


chore(main): release 0.23.0

:robot: I have created a release beep boop
0.23.0 (2024-11-28)
Features

Add the option to automatically set/unset env variables in open terminals (efd8f89)
automatically update environment variables (9bf0216)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.23.0
:sunflower:


allow vm args to be specified

I'm using async and enums in my test code and need to be able to specify flags to dart to enable them

You're right that we need to have this capability. One of the issue is that we are currently running VM tests with pub run and it's not possible to pass flags to the underlying VM using pub run but we are planning on moving away from pub run and using dart directly instead. We loose automatic transformers but get rid of a bunch of issues with pub run (forced checked mode, no ability to gather code coverage data, Platform.script.path not working etc...).


Ctrl+N and Ctrl+P are not working for the "VIM Command Line"

Ctrl+N and Ctrl+P work for the workbench.action.quickOpen file picker, but do not work for the "VIM Command Line"

Removing these two bindings will work:

Duplicate of #708

@theol0403 Not a duplicate of #708, this issue is to disable the command history navigation when using Ctrl + N/P.

To disable command history navigation (now fixed), delete those two keybindings.


What is serviceIds

I just started this library. It is well-explained library except for one thing i.e  What is serviceIds ? and how can I create it? Kindly help as I need to integrate this library as soon as possible.
Thanks & regards

What exactly serviceIds you are mentioning about?
Is it ServiceIdentifier protocol defined in DeviceIdentifiers file? If it is than this convenience protocol allows you to represent your services handles as enum cases and makes it easier to get discovered services.
You can read service identifiers from manufacturer's documentation or by scanning and exploring your bluetooth device.


Fix memory leak in gethostname and adapt len semantics to Posix

strndup returns a new string internally allocated with malloc.
This memory must be released using free. Valgrind reporte before
the fix:
==1374== Memcheck, a memory error detector
==1374== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1374== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==1374== Command: ./a.out
==1374==
==1374==
==1374== HEAP SUMMARY:
==1374==     in use at exit: 99 bytes in 11 blocks
==1374==   total heap usage: 44 allocs, 33 frees, 51,634 bytes allocated
==1374==
==1374== LEAK SUMMARY:
==1374==    definitely lost: 99 bytes in 11 blocks
==1374==    indirectly lost: 0 bytes in 0 blocks
==1374==      possibly lost: 0 bytes in 0 blocks
==1374==    still reachable: 0 bytes in 0 blocks
==1374==         suppressed: 0 bytes in 0 blocks
==1374== Rerun with --leak-check=full to see details of leaked memory
==1374==
==1374== For counts of detected and suppressed errors, rerun with: -v
==1374== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
And after the fix:
==1413== Memcheck, a memory error detector
==1413== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1413== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==1413== Command: ./a.out
==1413==
==1413==
==1413== HEAP SUMMARY:
==1413==     in use at exit: 0 bytes in 0 blocks
==1413==   total heap usage: 44 allocs, 44 frees, 51,634 bytes allocated
==1413==
==1413== All heap blocks were freed -- no leaks are possible
==1413==
==1413== For counts of detected and suppressed errors, rerun with: -v
==1413== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
The Posix specification of gethostname defines the argument len as the size
of the buffer. The code was at some point setting name[len] = '\0' which
by the Posix specification would be writing outside the memory own by the
buffer.
Issue #, if available:
Description of changes:
Merge Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

[x] I have read the CONTRIBUTING doc
[x] I used the commit message format described in CONTRIBUTING
[x] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[x] I have updated any necessary documentation (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

thanks for doing this!


Added check for submitting when checking for onChange and onBlur

To avoid errors on name is undefined when submitting

To avoid errors on name is undefined when submitting

How does this relates to this change?
Anyway, this PR needs tests and possibly some tests, although I'm not sure if this isn't a breaking change -- cc @erikras

Closing due to inactivity.


update the "original" FUA parquet files for uniformity

We should check and update the "original" FUA parquet files for uniformity. Some have index of ['u', 'v', 'key'] while others have ['u', 'v', '__key'].

xref https://github.com/uscuni/sgeop/pull/132#issuecomment-2516065718

Also, reset indices:

https://github.com/uscuni/sgeop/pull/132#discussion_r1869563426


Setup DB Backup Cron on Docker Compose

Repository link and credentials of the backup are to be added to the .env
Admins should be notified if the backup fails.

DB Backup setup with Google Drive in Laravel - #200

[ ] Setup

[ ] Create service account for IRC Website project
[ ] Create a folder for the website, and give full permissions to the service account
[ ] Install required dependencies for adding Google Drive as a filesystem within Laravel

Google PHP API Client: https://github.com/googleapis/google-api-php-client
Service Account connection: https://laracasts.com/discuss/channels/tips/google-api-service-account-connection-laravel-5
Flysystem adapter for Google Drive: https://github.com/masbug/flysystem-google-drive-ext/tree/1.x
Guide for setting up the API: https://quantizd.com/google-drive-client-api-with-laravel/
Another guide: https://gist.github.com/sergomet/f234cc7a8351352170eb547cccd65011

[ ] Add Google client secret keys to .env & .env.example
[ ] Setup Google Drive as a filesystem

[ ] Development

[ ] Action should double as an Artisan command
[ ] Function to take a MySQL Dump
[ ] Function to upload dump to Google Drive folder
[ ] Call backup action in Laravel Schedules
[ ] Add cron setup in first_time_setup.sh

Starting the scheduler: https://laravel.com/docs/6.x/scheduling#introduction

[ ] Write integration tests (skippable test depending on filesystem) to check whether the environment has access to read & write data within the context of the designated folder within Google Drive

[ ] Deployment

[ ] Add Client Secrets JSON file to Staging environment
[ ] Update STAGING_ENV secret to include new environment variables

[ ] Documentation

[ ] Document on env requirements for DB backup
[ ] Update setup wiki to copy Google client secrets to prod instance

Changes being made
Commit: https://github.com/indianracingcommunity/RLIProject/commit/64377c63a060d5be5e2308252618713b9cc86403

Added Intelephense, Laravel goto extension
Added sections to .env.example
Added Google Drive environment keys
Added Service account credentials to .gitignore
Added storage subfolders backups & signups to .gitignore
Allowed inline function without flower brackets
Added unzip to Dockerfile (required by Mysqldump)
Created FilesystemHelpers class
Created action to cleanup folder based on disk space to be achieved
Tested CleanupFolder action
Created artisan command for database dump
Tested database dump artisan command
Created artisan command for database backup to google drive
Tested database backup artisan command
Added database backup to schedules
Run scheduler cron hourly on first time setup
Added Mysqldump, discord notification, google drive adapter packages
Updated PHPUnit
Registered Google Drive service provider
Ensured config variable folders do not have a trailing slash
Corrected MariaDB entrypoint script name
Generated PHPUnit test in testdox mode
Coalesced tests under Tests suite


Question about the logic of processing parent prediction in visualization_parts()

Hi,
Thanks for the amazing work.
I'm trying to understand the output processing code in the demo and get confused about how you get the final parent node for each part. Specifically, I didn't get the code at lines 443-447 in util.py as shown below.
# update parent labels
for p_i, each_parent in enumerate(parent_pred):
    if each_parent>0:
        if each_parent-1 in list(new_order):
            parent_pred[p_i] = list(new_order).index(each_parent-1)+1

Can you explain a bit of the intuition behind how you update the parent labels? Many thanks.

Hi Jiayi, I'm really sorry for the late reply and thanks so much for your interest! Here each_parent represents the parent's index in the list of links. if each_parent=0, that means it's parent is the root (for example the cabinet frame). I define all the doors, drawers etc in the first level that are directly connected to the root (each_parent=0). The code here is trying to update the parent index of the second-level parts such as handles and knobs (each_parent>0), so that their predicted parent index are matching the first-level parts in the new_order. The new_order here contained the reorder level index so that first-levels go first. This is because the order of the bbox (either from the detection or you manually labeled) might not come in the order of the tree structure (first door, then handle). Hope this anwsers your questions!


[MB-10562] Create dependabot config for pipenv and docker

Description
This PR creates a dependabot config in .github/dependabot.yml to run daily at 11:00 (the same as mymove) for both the pipenv dependencies and the docker dependency.
I will need to update the dependencies documentation to make sure these are taken care of with the others.  Since GitHub acquired Dependabot I noticed some broken links in the mymove-docs repo too redirected to the wrong places.
Once merged we can manage dependabot from the insights -> dependency graph -> dependabot page https://github.com/transcom/milmove_load_testing/network/updates
Dependabot configuration options
mymove Dependabot reference file
Reviewer Notes
I don't think this is a PR that can be tested until it's merged.
We may decide to add base versions in our pipfile instead of wildcards for some dependencies.
I can't remember how we settled on the current python version but I could see us turning off the docker checks so it doesn't get out of line with pipenv.
Setup
Add any steps or code to run in this section to help others prepare to run your code:
echo "Code goes here"

Code Review Verification Steps

[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change.

I don't think this is a PR that can be tested until it's merged.

Yeah I think you're right, though I also don't have much experience with dependabot.

We may decide to add base versions in our pipfile instead of wildcards for some dependencies.

Yeah, this might be good because otherwise we're only really going to have the lock file to go by and that'd probably be annoying to read through when seeing the version updates. Do you think we should do that in this PR? Or wait and see if it really is an issue?

I can't remember how we settled on the current python version but I could see us turning off the docker checks so it doesn't get out of line with pipenv.

We didn't really have a set way. Different people would just test newer python versions if they felt like it and if they seemed to work, committed the change to the version. I feel like this could serve to point out when we should maybe check to see if a new python version will work.

I will need to update the dependencies documentation to make sure these are taken care of with the others. Since GitHub acquired Dependabot I noticed some broken links in the mymove-docs repo too redirected to the wrong places.

Related to my last comment above, I wonder if as you update this documentation, there should be a mention of how and when to check for python version updates.

I will need to update the dependencies documentation to make sure these are taken care of with the others. Since GitHub acquired Dependabot I noticed some broken links in the mymove-docs repo too redirected to the wrong places.

Related to my last comment above, I wonder if as you update this documentation, there should be a mention of how and when to check for python version updates.

@felipe-lee Yea the docker notification may be a decent proxy for that, I know a drawback of Dependabot noted elsewhere was that it doesn't do major version upgrades.


[Tests] Don't use invalid module to satisfy canImport check

Stop using a fake invalid module to satisfy canImport check for testing as swift compiler will start to evaluate such checks to false in the future.
Instead, using a valid swift interfacefile to satisify the external module import dependency.
Motivation:
In order for change in https://github.com/apple/swift/pull/74199 to land, update swiftpm tests to stop using invalid swiftmodule.

@swift-ci please test


Opaque types for WebGL

WebGL types are included in the default lib.d.ts. However, most types are defined as empty interfaces, which means that the compiler doesn't catch many WebGL errors.
Consider the following code:
function foo(gl: WebGLRenderingContext, fbo: WebGLFramebuffer) {
  gl.bindFramebuffer(gl.FRAMEBUFFER, fbo); // Correct call
  gl.bindFramebuffer(gl.FRAMEBUFFER, "abc"); // This should be a compile error!

  fbo = gl.createFramebuffer(); // Correct call
  fbo = new WebGLFramebuffer; // This should be a compile error!
}

The second parameter of gl.bindFramebuffer should be a WebGLFramebuffer object, but passing a string does not emit a compile error or warning.
The type WebGLFramebuffer can only be constructed via WebGLRenderingContext.createFramebuffer, calling new throws an error at runtime

Ideally, Typescript would know that WebGLFramebuffer, even though it has no public properties, cannot be constructed or converted to any other type.
I assume that this is not easy to specify with structural typing, but having such opaque types could be useful for other libraries as well (e.g., for returning handles).
If that is not possible, can we find a workaround that at least helps catching the above mentioned bugs?
For reference, here's how the above types are currently defined in lib.d.ts:
interface WebGLFramebuffer extends WebGLObject {
}
declare var WebGLFramebuffer: {
    prototype: WebGLFramebuffer;
    new(): WebGLFramebuffer;
}
interface WebGLRenderingContext {
    bindFramebuffer(target: number, framebuffer: WebGLFramebuffer): void;
    // + many other methods
}

@crobi you raise two issues, the first about WebGLObject being an empty object, and this should be fixed, either by updating the WebGL definitions or by just adding a constructor property to each of these types, this should do the trick. @zhengbli does your update of the spec take care of this? if not can we add the constructor declaration declaration?
interface WebGLFramebuffer extends WebGLObject {
    constructor: WebGLFramebuffer;
}

the second one is about constructors, most of the DOM elements have constructors though they are not callable. the problem is that instanceof relies on constructors, if we remove the constructors we will need to come up with a new way to make instanceof work. the other option is to have some sort of private constructors that are callable but still exist for instanceof checks. i think this is a more general issue and needs a general solution

@crobi as a work around, you can define the constructor in your files, and this should cause the compiler to flag the error as expected.

sorry, scrap my original comment, the constructor would not do it, we need something not defined on object, some sort of _brand:any.

the constructor would not do it, we need something not defined on object, some sort of _brand:any.

This crossed my mind as well, but I'm not sure such a workaround would look nice in lib.d.ts. Maybe this is another use case for #202? Structurally, all WebGL objects are identical to the empty interface, but (due to being native browser objects with hidden properties?) nominally they are all distinct types.

the problem is that instanceof relies on constructors, if we remove the constructors we will need to come up with a new way to make instanceof work.

In plain Javascript, instanceof works as expected on WebGL objects (see below). Is there an additional transformation that Typescript performs on instanceof, that would require compile-time information about the constructors?
> gl.createFramebuffer() instanceof WebGLFramebuffer
true

> gl.createFramebuffer() instanceof WebGLTexture
false

> new WebGLFramebuffer
Uncaught TypeError: Illegal constructor

> gl.createFramebuffer()
WebGLFramebuffer {}

In plain Javascript, instanceof works as expected on WebGL objects (see below). Is there an additional transformation that Typescript performs on instanceof, that would require compile-time information about the constructors?

No run time transformations. the right operand of instanceof is expected to have a constructor, so we will need to remove this restriction, or add a non-callable constructor.

@mhegazy A noncallable constructor would be what abstract classes would need as well, so I suspect that would be the more general solution.

FWIW, I added the full WebGL extensions and simple branding in my project, see:
https://github.com/stardazed/stardazed-tx/blob/master/defs/webgl-ext.d.ts
https://github.com/stardazed/stardazed-tx/blob/master/defs/webgl-branding.d.ts
I could turn this into a PR for lib.d.ts if wanted. This was also submitted in an earlier form to DefinitelyTyped:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/webgl-ext/webgl-ext.d.ts
That one does not have the branding values, which until #202 is implemented may be preferable for the core lib as the branding types are a workaround.

I'd like to propose a compromise until #202 is implemented.
Instead of taking the branded approach which muddies up lib.d.ts with distinct fields for each class, we could declare these WebGL interfaces as classes with private constructors[1] and with a private member named webGL[2]. To demonstrate:
declare class WebGLObject {
  private invalidated: bool; // Why invalidated: bool? See note [3]
}

declare class WebGLFramebuffer extends WebGLObject {
  private constructor(); // Enforce the second class of error: new WebGLFramebuffer
  private webGL: any;
}

Makes the original example produce readable and actionable type errors:
example.ts(3,38): error TS2345: Argument of type '"abc"' is not assignable to parameter of type 'WebGLFramebuffer'.
example.ts(6,9): error TS2673: Constructor of class 'WebGLFramebuffer' is private and only accessible within the class declaration.

This approach also prevents another dangerous surprise which presently typechecks just fine:
function wrongDeletion(gl: WebGLRenderingContext, fbo: WebGLFramebuffer) {
    gl.deleteBuffer(fbo); // This should have been gl.deleteFramebuffer(fbo);
}

With this approach, we'll have a type error:
surprises.ts(2,21): error TS2345: Argument of type 'WebGLFramebuffer' is not assignable to parameter of type 'WebGLBuffer'.
  Types have separate declarations of a private property 'webGL'.

I'll follow up shortly with a PR.

Notes:

Private constructors make the objects unable to be constructed at the typecheck stage. This does have the problem that these classes cannot be subclassed, even in declaration, which means we can't apply it to WebGLObject, so new WebGLObject type-checks. This doesn't seem too bad, as WebGLObject isn't typically used and doesn't even appear on window in Chrome, Firefox, or Safari.
The field name webGL is mostly for error message readability; note how the field name appears in error messages.
The private invalidated: bool; member on WebGLObject is a really convenient reading-between-the-lines of the spec, which claims "Each WebGLObject has an invalidated flag, which is initially unset."

Strike the "follow up shortly with a PR" it looks like this may require a change to TSJS-lib-generator to support generating/overriding declare class, I'll have to dig a bit deeper to know how to proceed


Size

Hey! I was just wondering how can you change the size of the button?

The original size settings were based on settings copied from google's styleguide, but I'm open to adding the capability to size. Are you looking to scale height/width together or separately?

Just need full width (100%) to be honest. I think by adding just one value will be good, due to proportions and Google Branding Specs.

Hey! As a solution for this, would it be possible to add a className to the button, so we could style it in styles.css ? Or will it not solve the problem?


Orientation issue

Thanks for the lovely simple-to-use control.
I noticed however that it doesn't support landscape orientation. It keeps showing the animation based on the initial portrait orientation.

Hello, thanks.
You can write a landscape orientation version and send a pull request if you like. Otherwise I might be able to add that feature this weekend.

Has this been tested?  It doesn't seem to work for me.

If you are using the pod version, I didn't update it yet. I'll update it now

it should work now

I've updated the code and it still places the loadingActivity in the bottom left corner of the screen.

Can you show a screen shot? maybe its a use case we haven't thought about

The above photo is a simulator screenshot.  Kind of bad quality as I had to set slow animations and even then it appeared and disappeared quite quickly.

Hmmm... I just copied and pasted the code from the main github repo page and it works now.  Previously I had been using the code from the .zip file in the latest release page.  Are they different?

The files look the same and are supposed to be same too. You may have downloaded the version before this maybe? I checked it and v0.7 seems to be fine

Thanks for looking into that.  Sorry for the confusion.


[WIP] GHC 8.10.7

There is an issue compiling codeworld-base:
$ cabal build codeworld-base
...
dist-newstyle/build/x86_64-linux/ghc-8.10.7/codeworld-base-<IP_ADDRESS>/build/Extras/Cw.dyn_o )
ghc: panic! (the 'impossible' happened)
  (GHC version 8.10.7:
        expectJust failed to detect OverLit
CallStack (from HasCallStack):
  error, called at compiler/utils/Maybes.hs:57:27 in ghc:Maybes
  expectJust, called at compiler/GHC/HsToCore/PmCheck.hs:551:16 in ghc:GHC.HsToCore.PmCheck

Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

This appears to be an instance of https://gitlab.haskell.org/ghc/ghc/-/issues/18708
Cabal <IP_ADDRESS>
GHC 8.10.7
Debian Bullseye

Hmm, that's too bad.  The good news, though, is that CodeWorld already builds its own patched version of GHCJS, if someone is willing to backport this fix for us.

Here is the backport; it solves the error: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6554

Cool!  I'm not sure whether there will be a new GHC release in the 8.x series, but if you make a patch (test case not necessary) and drop it in https://github.com/google/codeworld/tree/master/ghc-artifacts, and then apply the patch in install.sh near https://github.com/google/codeworld/blob/master/install.sh#L226, then CodeWorld will build with the change.  That should unblock you.
Speaking of patches there, I wonder whether the remaining patches in that directory are still needed.  The default main patch was contributed upstream, and has probably made it into GHC 8.10, but I'll verify that.  The dedup fix for the linker was a GHCJS patch, and my hope is that it's also merged in the 8.10 branch.  Again, I'll try to find evidence for this and report back.

I've confirmed that the default main patch does NOT need to be ported.  It's already part of GHC 8.10.  Unfortunately, https://github.com/ghcjs/ghcjs/pull/788 still isn't merged, so this one needs to be ported forward.  There have been changes to that file, so it's not immediately obvious to me how to do so, but @3noch or @tomsmalley may know.


Refactor OnlineStoreSource into MemoryStoreSource and OnlineStoreSink into MemoryStoreSink

What is the purpose of the change
The purpose of this PR is:

Refactor OnlineStoreSource into MemoryStoreSource and OnlineStoreSink into MemoryStoreSink.
Remove stores from the constructor of FeatureService and Processor classes.
Improve the instructions in README to be more readable.
Improve the nightly build script to be more readable.

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API: yes

Documentation

Does this pull request introduce a new feature? yes
If yes, how is the feature documented? docs

@yunfengzhou-hub Could you review this PR?

@yunfengzhou-hub Thanks for the review. The PR has been updated and all comments are addressed.


tox.ini references non-existent requirements.txt

https://github.com/audreyr/cookiecutter-pypackage/blob/master/{{cookiecutter.project_slug}}/tox.ini#L9

Thanks for reportin @kevinastone !
I think we can just remove that, since python setup.py test would already install the dependencies declared in setup.py.


Remove dead link

Removes a 404 link to a dead project.

You have a recommended replacement in case anyone searching wants to find out what happened to it or why it was stopped?


few shot classification with unknown class

I have a very small dataset i.e. 10 images each class and total 500 classes. During inference, there is also a possibility that an image might come that does not belong to any of these 500 classes, and I have to identify it as well. How do I go about this? I have tried cosine similarity, but  it is not very robust in finding the unknown class. Also, due to small images per class, the model overfits.

I solved the problem of unknown class through CLIP model using this approach. I used its image embeddding as well as the text embeddings and added them together [torch.add()] and saved them locally as a .pt file. The text embedding was generated with either some words written on the object or a sentence describing the object. During test time, I generated only image embedding through CLIP and compared the cosine similarity. If it was below a certain threshold, I marked them as unknown or outlier. This gave me 100% accuracy for my usecase. You can use huggingface's openAI clip (giant variant worked best).


[bug]: PytorchStreamReader can't find file constants.pkl when trying to load an aDetailer

Is there an existing issue for this problem?

[X] I have searched the existing issues

Operating system
Linux
GPU vendor
Nvidia (CUDA)
GPU model
4060
GPU VRAM
8GB
Version number
4.2.7
Browser
Chrome
Python dependencies
No response
What happened
I tried to load an aDetailer (https://huggingface.co/Bingsu/adetailer/blob/main/face_yolov8s.pt) but wasn't able due to missing package called ultralytics, i installed that package but then got an error :  PytorchStreamReader can't locate file constants.pkl
i opened the aDetailer as a zip and didn't fine the constant.pkl file indeed.
What you expected to happen
aDetailer loaded successfully and able to use for better rendering of faces
How to reproduce the problem
No response
Additional context
No response
Discord username
No response

What you've attempted to upload is not a feature or model that is supported in isolation.
You can use Invoke's workflows if you're looking for automated/masked regeneration capabilities


add support for web ides + pr #78, #79

web ides can be configured in the options, and will appear in wakatime as browser_ide and the action shows as coding vs browsing, this addresses issues, #81  and #82,
the user can turn off the latest project in the options, some cases this is needed if you still want to log but the active project doesnt match the last one commited to wakatime for some reason.
this also integrates prs #78, and #79 as they were needed to update to the latest version of react

@mithereal can you rebase to resolve the conflicts? Then I'll merge it.

@mithereal can you rebase to resolve the conflicts? Then I'll merge it.

i spent 45 min trying to rebase and couldnt figure out how to do it successfully you can close this pr

i spent 45 min trying to rebase and couldnt figure out how to do it successfully you can close this pr

😲 I hope you can merge this feature!

😲 I hope you can merge this feature!

This will auto-assign GitHub repo to already linked project?

This will auto-assign GitHub repo to already linked project?

rebased

rebased


Run history: Issue with loading Raw inputs and Raw outputs, as it's displaying an error message.

Describe the Bug with repro steps

Install on premises data gateway.
create a on premises data gateway using azure portal with same location that gateway is installed.
Create a logic app with same location that gateway is created.
Open designer
Add File system - When a file is created (properties only) trigger.
create a new connection.
Give connection name, root folder path, username and password.
Select gateway subscription where gateway is created.
click on create a new connection
select the token from token picker.
Add compose action and select list of file names taken from token picker.
Save and run the workflow
Now add a file in the provider root folder path.
Run will get success.
Open run to see Raw inputs and Raw outputs.

Expected: Should able to see Raw inputs and Raw outputs
Actual: Unable to see Raw inputs and Raw outputs. It is showing an error.
What type of Logic App Is this happening in?
Consumption (Portal)
Which operating system are you using?
Windows
Are you using new designer or old designer
New Designer
Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg
Yes
Workflow JSON
No response
Screenshots or Videos
https://github.com/user-attachments/assets/c18421eb-7163-42af-8560-f01ab730c482

Browser
Edge
Additional context
Version: 2.41007.1.5

Hi @vgouth, I tried to repro this issue with the lap-gateway-goutham-10102024 logic app but it seems that the connection for the trigger isn't set up anymore. Is there any chance you can setup the connection and run it again, therefore I can take another look at it?
I tried with a previous logic app lap-gateway-goutham-30092024 and I was able to see the raw outputs blade.

Hello @ccastrotrejo . Now I was able to view monitoring view with same run and same logic app. I guess was a transient issue or something went wrong.

Sounds good, I will close this issue for now, however if this keeps happening we can reopen and take a further look on this


clone_build_kitura.sh is missing

There was another issue for this problem which was fixed a year ago #270
I´ve tried to create the docker container with the current image (see logs below), but the file is missing again.
I´ve done all steps that are mentioned in this guide.
I´m using the latest version of Docker and macOS.
If you need any further information feel free to say so.
 I will file an issue against the guide (kitura.io) soon. In the meantime, I'd suggest you instead go to the README for Kitura-Starter: https://github.com/IBM-Bluemix/Kitura-Starter. There you will find the most up to date information. Also, at the bottom of the README, you will find links to blog posts that have been recently updated about running Kitura-Starter in a container. If after this, you still run into issues, please let us know by opening an issue under the Kitura-Starter repo: https://github.com/IBM-Bluemix/Kitura-Starter.

Thanks for the help. With the instructions provided I was able to set it up on Bluemix.


Window Manager Komorebi

Hi mate
I saw your setup related to - Windows.11.and.Komorebi.mp4
where can I get the files ? and what terminal do you use on windows?

Windows Terminal, about top bar here is https://github.com/amnweb/yasb but I don't have old config.


Get first eks-a tools image from bundles

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/retest


Added ToLeftWeightedRanked

Added new method that artificially increases the hit count for a search based on the proximity to the start of the search word being searched in. This gives a higher count to matched instances that are closer to the start of the word.
Primary purpose is to allow for partial matching and making a distinction between
search phrase: "test"
results:
"thisisatest"
"sometestorother"
"test"
As technically these all have the same hit count, but if you're searching you'd expect the one that closest matched the word to appear first but you can't guarantee that with the hit count alone.

Hi @mattbarker1983
Thanks for taking the time to put this together and submitting the PR. At first glance it looks great.
Could you tell me a bit more about the "Left weighted" algorithm. Is it something that is common when ranking string searches? Only reason I ask is because it's not something I've come across before.
Also, I'm wondering if, instead of a new method we create an overload of ToRanked. It would allow something like:
ToRanked(RankingAlgorithm.LeftWeighted)

This could open us up to creating new algorithms and simply adding to the RankingAlgorithm enum.

No problem! I've come across the scenario a few times but admittedly, it is a slight edge case more based on peoples perceptions of how searches work than anything else.
I guess the underlying question is if you are using ranked searches how do you expect to order results that have the same hit count.
Technically they're all equal in terms of the search criteria and hit count returned. Whilst you could manually order the list some way after the fact, the opinion of the users I've been working with is that the results that closest match as you would read the word they'd expect to be higher. as in their eyes searching for "barker m" should return results of "barker, matthew" higher than say "barker, thomas" or "barker, abraham" as it more closely matches what has been typed in.
Sort of a hybrid of a contains and a startswith I guess.
I quite like the idea of an overloaded ToRanked method. Probably a more elegant solution than just adding more variants in as the logical extension is a ToRightWeighted version for RTL countries and, as you say. It opens the door to a more extensible "bias" library that could be used.
I'll have an explore around and see what I can do with it. Probably next week now though!

If you are happy for me to do so, I'll merge the PR and make the changes before releasing a new version.

Yeah, more than happy, thanks for accepting it :)

No problem.  I'm chuffed that you've spent the time and effort to help improve the solution :+1:


Remove "spi" from java package names in config

Resolves https://github.com/googleapis/toolkit/issues/1501.

Codecov Report

Merging #1577 into master will not change coverage.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master    #1577   +/-   ##
=========================================
  Coverage     86.98%   86.98%
  Complexity     4210     4210
=========================================
  Files           408      408
  Lines         16907    16907
  Branches       1838     1838
=========================================
  Hits          14707    14707
  Misses         1706     1706
  Partials        494      494

Impacted Files
Coverage Δ
Complexity Δ

...gen/configgen/transformer/LanguageTransformer.java
95.12% <100%> (ø)
4 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84602d5...4132e2a. Read the comment docs.

PTAL.


Fix some remaining issues when generating an admin app using a custom model

padrino-gen admin -m User is broken in master, this commit fixes that issue.
let me know if you need something else to integrate this change

@DAddYE You want to merge this in for 0.10.6?


[XamarinProfiler-MAC]: Accessibility: Color Contrast: MAC: MAS1.4.3: "Common Options", "Sampling", "Allocations" and grey text in the window is having color contrast ratio of 4.5:1

Steps to Reproduce

Follow the pre-requisite to launch the Xamarin profiler.
Select the Available instruments to "Allocations/Time Profiler" and invoke next button. This will invokes Common options window.
Verify the Color contrast ratio of all the text in grey(in both Allocation/Time Profiler) in common options window.

Pre-Requisite:
Install Xamarin Profiler.
Launch Visual Studio.
Create a project and build the solution.
Navigate to Run Menu Tab and Invoke it. Navigate to "Start Profiling" option and invoke it.
This will invokes "Xamarin Profiler" application.
Expected Behavior
Color contrast ratio should be minimum 4.5:1
Actual Behavior
Color contrast ratio is less than 4.5:1 i.e, 2.7:1
See the screenshots attached
User Impact
Low vision user will feel difficult in seeing the text
Screenshot

Environment
macOS High Sierra OSX version: 10.13.4
Visual Studio for Mac Enterprise version: 7.5.2(build 40)
Xamarin Profiler version: 1.6.3-400

Log File

Please add the following labels to this bug:
A11yMAS
Accessibility
MAS1.4.3
XamarinProfiler-MAC
Wipro


Big Data Cluster installation screen looks awkward at tight resolutions

The big data cluster tool install banner pushes the list of tools and status of the installation off screen with my laptop's default resolution. The screen looks and feels very awkward.

@vickyharp what is the expected behavior?


Posting before the bot finishes writing

If you post a message while the model is still writing, it just disappears with no way to get it back. It seems that it should not be possible to post while ChatGPT is still writing its answer.

You're right, this was the original functionality but something stopped it between development. Working on this issue and the other issue you mentioned on discord

What.. how to post while a model is writing?

What.. how to post while a model is writing?

Enter the message, press return

What.. how to post while a model is writing?

Enter the message, press return

Do you mean the message you type disappears when you press enter while the response is generating? I fixed this in #177 (not yet live), but wanted to confirm again that this is the issue

Do you mean the message you type disappears when you press enter while the response is generating? I fixed this in #177 (not yet live), but wanted to confirm again that this is the issue

Yeah, that's right (and reproduceable)

addressed in #177


Had to :e the first file every time I switched sessions, and in general just had weird behaviour.
@rmagatti Perhaps you could create a pinned issue with breaking changes like these? - For easy subscription.

I can create that issue for sure! I'm still unclear on what was breaking from this change as merely the defer function was removed that didn't actually even exist before if I'm not mistaken. Either way a breaking change issue is a great idea, thanks!

@MikaelElkiaer here it is:
https://github.com/rmagatti/auto-session/issues/186

I can create that issue for sure! I'm still unclear on what was breaking from this change as merely the defer function was removed that didn't actually even exist before if I'm not mistaken. Either way a breaking change issue is a great idea, thanks!

There might be more to it then than just this.
My syntax highlighting was gone whenever I would restore a session, until after adding the localoptions bit to restore options.

@MikaelElkiaer Sorry this gave you so much trouble, but I would not classify this as a breaking change. auto-session was just covering up a misconfiguration (not saving localoptions) with an ugly hack where it would delay the restoration of the session by 50 ms.
Aside from the race condition bugs this could cause, it also introduced a scenario where if the session restoration caused the directory to change, this would cause a new session restoration, which could cause the directory to change again, ad infinitum.
The syntax highlighting is a lower priority than the infinitely recursive directory changes.
That being said, I do think we could make it easier to figure out than combing through issues/PRs. It might be nice to add the localoptions note to the trouble shooting page on the wiki @rmagatti ...or maybe just add it as a note in the readme?
I could also just add this change back in, because it would not hurt anything other than slightly decreasing performance, but it might provide a better UX for some users.

The readme does recommend adding localoptions to sessioniptions already. It just doesn't really say what that does or doesn't do. Maybe this is a common enough occurrence that it might be worth explaining further in the readme, but maybe it's easier to tell people to :h sessionoptions in case they want to know what each of the recommended options (and others) do for session loading. I'll add something to the readme on this (unless one of you want to 😄)

How about we just say if more people comments on this saying that it gave them trouble we can add more documentation, but otherwise count this as documentation


Switch the MCR client to Eth

Suzuka node still uses the mock MCR client by default.
Once we are confident that settlement works in #460, switch the feature flags required by suzuka-full-node from mcr-settlement-client to use the Eth client.

Marking as suzuka:decentralization. Even though we have a requirement to ship with some form of settlement on ETH, ensuring this is MCR is only necessary for decentralized rollout.


The edge of the callout is out of bounds

Before you open a bug report
Disable plugins and snippets that could be causing a conflict. Update to the latest versions of the following, and restart Obsidian:

Minimal Theme
Minimal Theme Settings plugin
Contextual Typography plugin

Confirm that the bug is not present when Minimal theme is off
Describe the bug
After 0.5.2 of minimal theme, callout's edge is out of bounds
To reproduce

Insert Callout;
Use LP mode.

Expected behavior
The edge is inbound.
Screenshots

And in the default theme:

Debug info (required):
SYSTEM INFO:
	Obsidian version: v0.14.9
	Installer version: v0.14.6
	Operating system: Windows 10 Pro for Workstations 10.0.19043
	Login status: logged in
	Catalyst license: vip
	Insider build toggle: on
	Live preview: on
	Legacy editor: off
	Base theme: light
	Community theme: none
	Snippets enabled: 2
	Safe mode: off
	Plugins installed: 45
	Plugins enabled: 9
		1: Natural Language Dates
		2: Dataview
		3: Hover Editor
		4: Obsidian42 - BRAT
		5: Theme Design Utilities
		6: Omnisearch
		7: Corkboard
		8: Obsidian Memos
		9: Periodic Notes

RECOMMENDATIONS:
	Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the help vault or disable community plugins.

related: when editor width is smaller than var(--line-width), the callout will be trimmed:
editor

preview

the following css snippet can fix the issues above:
.is-live-preview.is-readable-line-width .cm-embed-block.cm-callout > div {
  width: auto !important;
  padding-left: 0;
}
.is-live-preview.is-readable-line-width .cm-embed-block.cm-callout {
  max-width: var(--max-width);
  margin: 0 auto !important;
}

This is fixed in the latest

Seems like gutter things is influenced now, like the number of line

I am not sure I understand what you mean. If you mean that the line numbers have moved to the left, yes that is intentional. See release notes for 5.2. If you mean that line numbers are skipped, that is a behavior of Obsidian present in the default theme.


Why are my anchors not saved (locally) on HoloLens?

Hi, I want to work with spatial anchors/world anchors in unity and created an application based on this guide. My intention is that a user can place the cube in a desired location, close the app, start the app again and the cube is still at the chosen location. My application consists of a cube with an ObjectManipulator Component. The OnManipulationStarted Event calls a RemoveWorldAnchor method and the OnManipulationEnded calls a AddWorldAnchor method.
When I enter play mode in unity, I can see the how world anchor component is detached from the cube when I start manipulating it. The component is re-attached when I end the manipulation. Looks good, just as intended.
When I deploy the application to the HoloLens, it does not work as intended. The cube does not "remember" its place. From my debug.log output, everything looks ok.
I discovered that MRTK now offers a WorldAnchorManager Component. This guide does not include how to use the WorldAnchorManager and I could not solve my problem with this manager. It would be great if you can tell me where I misunderstood the guide. I hope this contributes to make it easier for future developers. I am happy to provide the full unity project and/or a video if that helps. Here is my code, the variable anchorPoint is mapped to the cube.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.WSA;
using UnityEngine.XR.WSA.Persistence;
using Microsoft.MixedReality.Toolkit.UI;
using Microsoft.MixedReality.Toolkit.Input;

public class WorldAnchorFunctions : MonoBehaviour
{
    public GameObject anchorPoint;
    private WorldAnchorStore store;
    private bool anchorIsSaved;
    private WorldAnchor anchor;

    // Start is called before the first frame update
    void Start()
    {
        WorldAnchorStore.GetAsync(StoreLoaded);
    }

    private void StoreLoaded(WorldAnchorStore store)
    {
        this.store = store;
        anchorIsSaved = this.store.Load(anchorPoint.name.ToString(), anchorPoint);
        if (!this.anchorIsSaved)
        {
            Debug.Log("We didn't actually have the game root saved! We have to re-place our objects or start over");
        }
        else
        {
            Debug.Log("Anchor loaded from "+ anchorPoint.name.ToString());
        }
    }

    public void AddWorldAnchor()
    {
//called by OnManipulationEnded
        store.Clear();
        anchor = anchorPoint.AddComponent<WorldAnchor>();
        Debug.Log("World anchor added to " + anchorPoint.name.ToString());
        // Save data about holograms positioned by this world anchor
        if (!this.anchorIsSaved) // Only Save the root once
        {
            this.anchorIsSaved = this.store.Save(anchorPoint.name.ToString(), anchor);
            Debug.Log("World anchor " + anchorPoint.name.ToString() + " saved: " + this.anchorIsSaved);
        } else
        {
            Debug.Log("Save from " + anchorPoint.name.ToString() + " already existing.");
        }
    }

    public void RemoveWorldAnchor()
    {
//called by OnManipulationStarted
        DestroyImmediate(anchorPoint.GetComponent<WorldAnchor>());
        Debug.Log("World anchor removed from " + anchorPoint.name.ToString());
        store.Clear();
    }
}

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

ID: d4d3daf6-e9f9-d400-1941-ab76efed39ef
Version Independent ID: f8a2ed75-804a-18f2-4d97-eb7737b0de75
Content: Persistence in Unity - Mixed Reality
Content Source: mixed-reality-docs/mr-dev-docs/develop/unity/persistence-in-unity.md
Product: mixed-reality
Technology: mr-dev
GitHub Login: @thetuvix
Microsoft Alias: alexturn

I found an existing simple unity project implementing the world anchor function using the WorldAnchorManager component and decided to use this project instead of of following the guide. Therefore, this issue may be closed. I suggest using the WorldAnchorManager to ohter users. Example can be found here:
https://github.com/z3ky/mrtk-world-anchors


koord-scheduler: ignore non-existing resources in NUMA Node

Ⅰ. Describe what this PR does
At present, koordlet only reports cpu/memory in NodeResourceTopology. If a Pod requests resources from other resources, the Pod will not be able to be scheduled. So we should skip these non-existing resources.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[ ] I have written necessary docs and comments
[ ] I have added necessary unit tests and integration tests
[ ] All checks passed in make test

/lgtm

/lgtm


[Finalized] Clear diagnostics #19

Resolves #19

This is just a comment change. Where are the rest of the changes?

Maybe they were already merged by something else

Maybe they were already merged by something else

@anka-213 yes, sorry about that ! It got merged by the previous commit...I opened the pull request so that it could close the linked issue 😅 (Probably unnecessary?)

No, it's good. But I'm not completely sure if these fixes actually fixed the problem completely, so I was planning to look on how to change when reviewing the pull request.

@anka-213 Ohhh do you want me to git revert? Though the only change I made was that one line:
publishDiagnostics 100 nuri Nothing (Map.singleton(Just "lexer")(Data.SortedList.toSortedList []))
And importing the relevant libraries in the .cabal file !

No, it's ok. I can just look at the commits and see what might need changing.

Shall we close this PR?
Currently it just hangs in the list of PRs.
There is no code to merge


Dynamic Data Retrieval

It looks like the dynamic data-retrieval queries the database looking for all valid chain ends and makes a new chain for good measure, and then selects from those options. However, it seems as though there is a window of time between a participant being assigned a chain and them finishing the experiment where it is possible for another participant to be assigned the same generation of the same chain. I see that this experiment hasn't been updated in a while, so I was wondering if this issue might have been discovered and fixed in other repos? Should there/can there be an initial post to the database as soon as a chain is selected?

Yes, that is correct. We don't have a clean solution for this yet, but plan to incorporate this in the future.
When you have students/participants do the task at home over a longer time frame, it is very unlikely that this problem will arise, because they would need to get the same story from the same chain at the same time. (I'm currently running a slightly modified experiment with five stories that can appear in either of two conditions, five chains per condition with five generations each. Participants are students that can participate at some point in the time course of a month and we haven't lost a single data point due to this.) In an online study environment where a lot of participants work on your study at the same time (e.g., on MTurk), you should make sure to initialize enough chains so that the probability for a double submission decreases. It is still quite likely that you will have some double submissions. The template detects these immediately and automatically terminates the forked chain of the last submission. In that sense you're still keeping the damage fairly small. In my studies the amount of double submissions was not very high and therefore not problematic for me so far.
Nevertheless, we know that this is not yet the cleanest solution, and it remains something that we want to change in the long-term.

This might be helped by the interactive experiment module which is being developed. This module allows communication between all participants who are simultaneously online. It's intended for experiments which require interactions between the participants, but might also help solve this issue (e.g. detects that more than 1 participants have simultaneously accepted the task and perform some special work on the second participant)


getAllListings returns listings even which are sold

I was using thirdweb in a project and  have call "getAllListings"  but it returns all listing history not only the realtime listed.
 Like how can i only get the realtime listed nfts..??
Please Help!!
Thank You

hey @chaitak-gorai, it sounds getActiveListings() is likely what you're looking for:
https://docs.thirdweb.com/typescript/sdk.marketplace.getactivelistings#marketplacegetactivelistings-method

Hello @jnsdls thanks for the fast reply, i didn't find this earlier in docs. Now also it is giving error.

it might be due to the version difference. If yes, can u specify the latest version to use this function?

@chaitak-gorai that looks like you might be using v1 sdk? could you check the version of @thirdweb-dev/sdk in your package json and make sure it is at least 2.x.x?

yeah, i m using version v1 sdk , got the error. I have to upgrade it to  v2.
Thanks man!

happy we figured it out! closing :)


Mobile menu

In this mile stone project:
For this project, I added the [JavaScript + HTML + CSS linter
In mobile version, I implement the following features:

When the user clicks (or taps) the hamburger button, the mobile menu appears.
When the user clicks (or taps) the close (X) button, the mobile menu disappears.
When the user clicks (or taps) any of the mobile menu options, the mobile menu disappears.
When the user clicks (or taps) any of the mobile menu options, a correct part of the page is displayed.

I have added the black line (mobile home icon) at the bottom of menu container to match figma design

I have addressed the required change as advised though I  feel it wasn't part of the project requirements.


Drop html5lib, used via rdflib

In PythonPackageIndex (PyPI), html5lib was recently updated from 0.9999999 to 0.999999999. That worked fine in most places, but it no longer can be installed by pip in TravisCI. So we have locked the previous version. Unfortunately, that can break users who have installed the later version in their site-packages/ already. So now we have an even better reason to reduce our dependency on rdflib.
One idea: Copy rdflib, rename our copy of the library, and delete the bits we do not need. The bits we need will not import html5lib.

We locked the version starting with

https://github.com/PacificBiosciences/FALCON-integrate/releases/tag/1.7.4

https://jira.pacificbiosciences.com/browse/SAT-441


Make bootstrap_proxy also set proxy in client.rb

With knife, if bootstrap_proxy is set, then client.rb also contains relevant
http_proxy lines. This change makes chef-provisioning behave in the same way.

Merged as 4fa8f91.  Thanks!


[Request] Digipeater Mode

When and if it is able to RX packets. Having the ability to act as a digi would be an incredible tool to have.
So I'll just leave this here for now...

That's certainly interesting. The only other radio that I know that has this is the Kenwood TM-D710, which can serve as a fill-in digipeater. I think Ian would have to look into digipeating conventions, such as:

Digipeating only packets received as including one's own callsign-ssid in the digipath OR WIDE1-1 for a fill-in digipeater.
Decrementing the digipath once a packet is digipeated, e.g., WIDE2-2 becomes WIDE2-1, or WIDE1-1,WIDE2-1 becomes only WIDE2-1, so that succeeding digipeaters will only receive the decremented packet.
For settings that have "TRACE" enabled, adding one's own digipeater callsign with an * to indicate having digipeated the packet already, e.g., WIDE1-1,WIDE2-1 becomes WIDE1-1*,WIDE2-1, and so forth.

And such other APRS conventions. I would refer to this document, in particular the "new paradigm" part: http://wa8lmf.net/DigiPaths/ .
I still have a lot to learn, but I'm one of those crazy APRS fanatics you speak of.

The only other radio that I know that has this is the Kenwood TM-D710

https://www.lilygo.cc/products/t-twr-plus

ESP32APRS

ArcticTracker-ESP32

The only other radio that I know that has this is the Kenwood TM-D710

LILYGO T-TWR Plus

ESP32APRS

ArcticTracker-ESP32

Interesting but expensive in comparison. My idea is a throw away digi. Though super cool. I will definitely look into that!


Performance improvement PersonaBar tree view node selection change

Fix bug #3534

Summary

UpdateStore method was repeating called for each tree view node with the same parameters.
Optimize call to this update store method once per process as parameters remains constant.

Measurements

Action
Baseline (ms)
Baseline avg.
Improve (ms)
Improve avg.
Improvement

on selection change
54,622
53,314.60
456
349.00
152.76

--
53,091

334

--
52,230

309

--
54,076

307

--
52,554

339

@nadeem-akhtar-nu this seems to be a duplicate of #3533

@nadeem-akhtar-nu this seems to be a duplicate of #3533

@david-poindexter
This is a different method change with different use case. It is a similar change to #3533, though.

@nadeem-akhtar-nu thank you for the clarification.  I missed it being in a nearly-identical method!  🤣


Add older minecraft versions

Hello, I often play on older Minecraft worlds, sometimes through Modrinth, but accessing those worlds can be tedious at times to switch them between the regular saves world, where I tend to play vanilla, and the modded Modrinth versions I play.
This mod has been extremely helpful for playing some worlds on the newer versions for sure, but it sadly doesn't work on older versions.
If you ever find the free time to add older versions, I would love that!

You can name the Minecraft versions you need, but this is currently not planned. This is one of my first mods and I still have little experience.


Want to Zoom with Directions on Map Marker

Would like to request
That I can zoom in on my marker for current position on the map and follow it as I move
IMPORTANT:
This repository's issues are reserved for feature requests and bug reports.
Do not submit support questions or request here. Please use stackoverflow instead
Steps to reproduce and a minimal demo(Plunker Example)

What steps should we try in your demo to see the problem?

Current behavior

Expected/desired behavior

Other information

It is a good request, but I think it's out of scope,
ng2-map does not provide a map feature like this. it's just a wrapper of google maps api v3.
No plan on implementing this, but you can set the marker position and map center by utilizing gogole geo api.


Enable eviction tenacity feature for storage providers

@JohnSully  we tried with this fix and just let you know it works fine for us. Thanks.


Prompt for file location omits last component of originalUriBaseId

Bug125.sarif.txt

Save the attached file as .sarif.

Open it in VS.

Double-click on the single result.
An Open File dialog opens.

Expected: The title of the dialog should be "Locate missing file c:\code\MyProject\src\io\kb.c"
Actual: The title of the dialog is "Locate missing file c:\code\MyProject\io\kb.c"
NOTE: This only happens if the uri property of the originalUriBaseId does not end with a slash ('/'). In that case, the viewer's call to new Uri(Uri uri, string relativePath) interprets the final component of uri as a file name, strips it off, and combines the result with the relative URI. Whereas if the final slash is present, the final component of uri is interpreted as a directory name and correctly combined with the relative URI.
The SARIF spec (§3.14.14) originalUriBaseId does require the trailing slash, so a file like that attached is actually invalid. We should discuss whether the viewer should help out by appending the slash if it's missing.
@michaelcfanning FYI

Agreed, the viewer should compensate for this even though it's not strictly valid SARIF without the trailing slash.

this problem is pervasive. everyone needs to code defensively against it, unfortunately. this should be a new validation rule for the SARIF validator.


HTTP 301 redirect does not respect selected HTTP Method

Hello.
I have a Django endpoint that ends without a trailing slash. The selected method when I hit the endpoint is POST, but after getting a HTTP 301 Redirect code, the client ends up redirecting the same call, at the same endpoint without respecting the original selected method, by turning the final method to GET.
Is there something that i might have been missing on this or is it in fact a bug?

[RFC 7238][1] defines HTTP 308 for that behavior: https://tools.ietf.org/html/rfc7238. For 301 and 302 the client changes the HTTP method to GET.
[1]:  5 3 4 | 6 7 8 | 9 1 2
6 7 2 | 1 9 5 | 3 4 8
1 9 8 | 3 4 2 | 5 6 7
-------+-------+------
8 5 9 | 7 6 1 | 4 2 3
4 2 6 | 8 5 3 | 7 9 1
7 1 3 | 9 2 4 | 8 5 6
-------+-------+------
9 6 1 | 5 3 7 | 2 8 4
2 8 7 | 4 1 9 | 6 3 5
3 4 5 | 2 8 6 | 1 7 9

Shouldn't there be an option to turn off the method change behaviour or is 308 widely known for such behaviour?
What i mean is, do i have to tell the backend team to change the response code as a mistake on their side, or should there be an option in OkHttp to turn this off?
Thanks

OkHttp tries to act like a web browser. If you want to configure how a redirect is handling, you need to do it server-side.

(And the upside with that approach is that you get the same behavior everywhere: Android, iOS, web.)

Tried the same endpoint with Postman, you might know it, but it seemed to work correctly by keeping the same method both on the original call and the redirected one.
My main question is: Do I have to change the backend's behaviour in this case in order to follow the specific behaviour mentioned by Jake or is there a way to override it from the side of OkHttp?

What do Chrome & Firefox do?
You could write an interceptor to patch the response code.

Since Postman is based on Chromium I can only guess that they function the same.
Maybe i will try with an Interceptor as you suggested.
Thank you both for the feedback.

You’d probably want to write an interceptor to rewrite the response code. But that would be a fragile hack.

No action for us to take here.

I have the same issue. Volley, Postman, curl didn't show any track of redirect. Also there is no issue on the server side code, we don't redirect. Is there any possibility that this could be a okHttp issue?

What’s the request?

Just a simple POST request.
curl -v -H "Content-Type: application/json" -X POST -d '{"email":"abc","password":"abc"}' http://localhost
Response is 200.

Hmm . . . I think we do that the exact same. Could you write a quick test case? This gist has the boilerplate to get you started: https://gist.github.com/swankjesse/981fcae102f513eb13ed

What do you need me to test?

Even though many browsers do it (and OkHttp is not a browsers anyways), RFC 2068 clearly states that changing the request method after a 302 response is an error.

We’re following the more recent RFC 7231:

Note: For historical reasons, a user agent MAY change the request method from POST to GET for the subsequent request.  If this behavior is undesired, the 307 (Temporary Redirect) status code can be used instead.

Let's analyse the context: this note was written to make people aware of a common mistake. It doesn't recommend nor encourage this behaviour.
According to itself - though not explicitly - and with other RFCs - at least 2068 is explicit -, clients still SHOULD not change the request method.

More on the context: the 307 and 308 status codes were created so servers could deal with common but still undesired client implementations - the "historical reasons" you quoted. These status codes sound a lot like workarounds to me.
Should a new, modern client be one of the undesired "historical reasons" which requires workarounds?

RFC 2616 (the updated version of 2068) is more clear: clients are not allowed to change the method on 301/302 redirections. It also reinforces that the 307 status code is a workaround to deal with non-compliant clients:

Note: RFC 1945 and RFC 2068 specify that the client is not allowed
to change the method on the redirected request.  However, most
existing user agent implementations treat 302 as if it were a 303
response, performing a GET on the Location field-value regardless
of the original request method. The status codes 303 and 307 have
been added for servers that wish to make unambiguously clear which
kind of reaction is expected of the client.

Yep, 307 is perfect because all specs and all user agents agree on what to do. You should use that!

Having same issue as guys above: REST server is behind F5 BigIP and performs 302 redirect. As a result, none of the POST/PUT methods work, since okhttp performs GET after redirect.
There is nothing we can do internally since this is 3rd-party vendor solution and there is no easy way to change 302 to 307 in this case. Disappointed that okhttp doesn't provide an option to configure this behavior for such situations :(

I think we do have a mechanism to correct for faulty servers like this

  val client = OkHttpClient.Builder()
    .eventListenerFactory(LoggingEventListener.Factory())
    .addNetworkInterceptor(object : Interceptor {
      override fun intercept(chain: Chain): Response {
        var response = chain.proceed(chain.request())

        if (response.code == 302) {
          response = response.newBuilder().code(307).build()
        }

        return response
      }
    })
    .build()

But we deliberately don't build in knobs and options that make it easy to workaround these issues.  Hopefully you have raised an issue with the faulty server and are tracking the fix with them.

@ava1ar use a network interceptor to rewrite the response status code?

Yes, I looked around for what other people do and did pretty much what you are proposed: network interceptor to re-map 301 to 308 and 302 to 307. Together with recent fixes to handle 307 & 308 in OkHttp this solved the problem.


Cypress test. Mutable attribute.

Motivation and context
Add cypress test.
How has this been tested?

Checklist

[x] I submit my changes into the develop branch
[ ] I have added description of my changes into CHANGELOG file
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (read github docs)
[ ] I have increased versions of npm packages if it is necessary (cvat-canvas,
cvat-core, cvat-data and cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.
[x] I have updated the license header for each file (see an example below)

# Copyright (C) 2021 Intel Corporation
#
# SPDX-License-Identifier: MIT

Coverage increased (+0.02%) to 75.485% when pulling 10894d1bd2bc5915f05784758f55d96b9de508a7 on dvkruchinin:dkru/cypress-test-case-70-mutable-attribute into 9e3c6940d94c51ec4605632d469679b5edb3244e on openvinotoolkit:develop.

@ActiveChooN
Please, review this test


Cannot find name describe

Bug Report or Feature Request (mark with an x)
- [ x] bug report -> please search issues before submitting
- [ ] feature request

Versions.
@angular/cli: 1.4.9
node: 8.2.1
os: win32 x64
@angular/animations: 4.3.3
@angular/cdk: 2.0.0-beta.8
@angular/common: 4.3.3
@angular/compiler: 4.3.3
@angular/core: 4.3.3
@angular/forms: 4.3.3
@angular/http: 4.3.3
@angular/material: 2.0.0-beta.8
@angular/platform-browser: 4.3.3
@angular/platform-browser-dynamic: 4.3.3
@angular/platform-server: 4.3.3
@angular/router: 4.3.3
@angular/cli: 1.4.9
@angular/compiler-cli: 4.3.3
@angular/language-service: 4.3.3
typescript: 2.3.4
Repro steps.
Follow https://github.com/angular/angular-cli/wiki/stories-universal-rendering
Then execute:
npm run build:dynamic && npm run serve:dynamic
The log given by the failure.
ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts
[tsl] ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts(3,1)
      TS2304: Cannot find name 'describe'.

ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts
[tsl] ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts(6,3)
      TS2304: Cannot find name 'beforeEach'.

ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts
[tsl] ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts(10,3)
      TS2304: Cannot find name 'it'.

ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts
[tsl] ERROR in D:\Test\trunk\e2e\app.e2e-spec.ts(12,5)
      TS2304: Cannot find name 'expect'.

package.json:
"dependencies": {
    "@agm/core": "^1.0.0-beta.1",
    "@agm/js-marker-clusterer": "^1.0.0-beta.1",
    "@angular/animations": "^4.0.0",
    "@angular/cdk": "^2.0.0-beta.8",
    "@angular/common": "^4.0.0",
    "@angular/compiler": "^4.0.0",
    "@angular/core": "^4.0.0",
    "@angular/forms": "^4.0.0",
    "@angular/http": "^4.0.0",
    "@angular/material": "^2.0.0-beta.8",
    "@angular/platform-browser": "^4.0.0",
    "@angular/platform-browser-dynamic": "^4.0.0",
    "@angular/platform-server": "^4.3.1",
    "@angular/router": "^4.0.0",
    "@covalent/core": "^1.0.0-beta.5-1",
    "@nguniversal/module-map-ngfactory-loader": "^1.0.0-beta.3",
    "@satispay/web-button-factory": "^1.0.4",
    "@types/angular": "^1.6.28",
    "@types/node": "^6.0.88",
    "braintree-web": "^3.22.2",
    "braintree-web-drop-in": "^1.8.0",
    "core-js": "^2.4.1",
    "enhanced-resolve": "^3.3.0",
    "hammerjs": "^2.0.8",
    "js-marker-clusterer": "^1.0.0",
    "lory.js": "^2.3.3",
    "md5": "^2.2.1",
    "moment": "^2.18.1",
    "ng2-cookies": "^1.0.12",
    "ng2-responsive": "^0.8.4",
    "ng2-scroll-to-el": "^1.0.0",
    "paypal-checkout": "^4.0.133",
    "rxjs": "^5.1.0",
    "sass-loader": "^6.0.6",
    "ts-loader": "^3.1.0",
    "web-animations-js": "^2.2.5",
    "zone.js": "^0.8.4"
  },
  "devDependencies": {
    "@angular/cli": "^1.4.7",
    "@angular/compiler-cli": "^4.0.0",
    "@angular/language-service": "^4.0.0",
    "@types/jasmine": "2.5.45",
    "@types/node": "~6.0.60",
    "codelyzer": "~3.0.1",
    "jasmine-core": "~2.6.2",
    "jasmine-spec-reporter": "~4.1.0",
    "karma": "~1.7.0",
    "karma-chrome-launcher": "~2.1.1",
    "karma-cli": "~1.0.1",
    "karma-coverage-istanbul-reporter": "^1.2.1",
    "karma-jasmine": "~1.1.0",
    "karma-jasmine-html-reporter": "^0.2.2",
    "ngx-swiper-wrapper": "^4.6.0",
    "protractor": "~5.1.2",
    "ts-node": "^3.3.0",
    "tslint": "~5.3.2",
    "typescript": "^2.3.4",
    "webpack": "^3.7.1"
  }

@Toxicable do you know what's happening here?

I tried reproducing this but was unable.
@Gnorro Could you produce a minimal reproduction that we can investigate with?

I opened a new issue after upgrading to angular 5 with 1.6 cli and fixed versions:
https://github.com/angular/angular-cli/issues/8909


tf.random.stateless_categorical produces inconsistent results on CPU/GPU

Click to expand!
Issue Type
Bug
Source
binary
Tensorflow Version
2.9.2
Custom Code
No
OS Platform and Distribution
Colab
Mobile device
No response
Python version
3.7.15
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
11.2.152, 8.1.1
GPU model and memory
No response
Current Behaviour?
`tf.random.stateless_categorical`, the stateless version of `tf.random.categorical`, promises to produce the same result on CPU/GPU according to the docs:

> This is a stateless version of tf.categorical: if run twice with the same seeds and shapes, it will produce the same pseudorandom numbers. The output is consistent across multiple runs on the same hardware (and between CPU and GPU), but may change between versions of TensorFlow or on non-CPU/GPU hardware.

But even the doc example does not satisfy this.

Standalone code to reproduce the issue
with tf.device("/cpu:0"):
  cpuResult = tf.random.stateless_categorical(tf.math.log([[0.5, 0.5]]), 5, [7, 17])
  print(cpuResult)

with tf.device("/gpu:0"):
  gpuResult = tf.random.stateless_categorical(tf.math.log([[0.5, 0.5]]), 5, [7, 17])
  print(gpuResult)

Relevant log output
tf.Tensor([[1 0 1 0 0]], shape=(1, 5), dtype=int64)
tf.Tensor([[0 0 0 1 0]], shape=(1, 5), dtype=int64)

@cantonios I can reproduce this in eager mode on TF-nightly but it seems that they are aligned in graph mode.
See https://colab.research.google.com/gist/bhack/a0a1dfe818ace0160dfccd0436811e6a/untitled182.ipynb

Interesting.  I wasn't aware we had the same guarantee between devices (CPU and GPU).  /cc @wangpengmit are we sure this is something we can guarantee?  I guess if they both always use the same philox generator with the same seed.

@cantonios CPU and GPU are actually generating same random numbers even with some stateful APIs like tf.random.normal() as long as they have the same seed, though not guaranteed.
with tf.device("/cpu:0"):
  tf.random.set_seed(335)
  print(tf.random.normal([3, 3]))

with tf.device("/gpu:0"):
  tf.random.set_seed(335)
  print(tf.random.normal([3, 3]))

You get:
tf.Tensor(
[[ 0.8353135  -0.90217495 -0.49177   ]
 [-0.27702156  0.58681077  1.6345242 ]
 [ 0.15613364 -0.7619551  -0.96528214]], shape=(3, 3), dtype=float32)
tf.Tensor(
[[ 0.8353136  -0.90217495 -0.49177   ]
 [-0.27702156  0.58681077  1.6345242 ]
 [ 0.15613362 -0.7619551  -0.9652822 ]], shape=(3, 3), dtype=float32)

Which are very close.

@creakseek it will never be exact.  Different platforms/compilers have different guarantees for accuracy of things like std::exp, which isn't prescribed by the standard to have any specific error bound.  Eigen/XLA also take some liberties here, allowing some small accuracy tradeoffs in order to boost performance.
Most of TF's RNGs are "stateless" (even the stateful random ops) with counter-based RNGs.  If the same counter-based RNG is used, I'd expect the results to be almost the same (with the caveat mentioned above).

We don't guarantee it for tf.random.stateless_categorical because it doesn't have an alg argument, in which case the algorithm is interpreted to be "auto-select" (which can be device-dependent). There is a sentence in https://www.tensorflow.org/guide/random_numbers: The RNG algorithm used by stateless RNGs is device-dependent, meaning the same op running on a different device may produce different outputs.
In cases where you can set the alg argument (e.g. tf.random.Generator and tf.random.stateless_normal), we do guarantee cross-device consistency when alg is set to a concrete algorithm.  There is a sentence in https://www.tensorflow.org/guide/random_numbers: Different devices will generate the same integer numbers, if using the same algorithm and starting from the same state. They will also generate "almost the same" float-point numbers, though there may be small numerical discrepancies caused by the different ways the devices carry out the float-point computation (e.g. reduction order). (We fulfilled this guarantee pretty well between (non-XLA) CPU and (non-XLA) GPU, but less so between non-XLA and XLA kernels.)
So this issue is actually a feature request: add alg argument to tf.random.stateless_categorical, and guarantee cross-device consistency when alg is set to a concrete algorithm.

BTW I suspect the reason it's not reproduced in graph mode is because soft placement placed both ops on CPU.

BTW I suspect the reason it's not reproduced in graph mode is because soft placement placed both ops on CPU.

In my shared colab I had:
tf.config.set_soft_device_placement(False)

Also if it is a FR for introducing the algo control, don't we need in the meantime to modify the mentioned claim?
https://github.com/tensorflow/tensorflow/blob/359c3cdfc5fabac82b3c70b3b6de2b0a8c16874f/tensorflow/python/ops/stateless_random_ops.py#L834:L838

Also if it is a FR for introducing the algo control, don't we need in the meantime to modify the mentioned claim?
https://github.com/tensorflow/tensorflow/blob/b2b201fd709a0a256a39751e7aa248d24f349b7a/tensorflow/python/ops/stateless_random_ops.py#L888;L892

Yes, we should remove the (and between CPU and GPU) claim.

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The RNG algorithm used by stateless RNGs is device-dependent, meaning the same op running on a different device may produce different outputs
https://www.tensorflow.org/guide/random_numbers
The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space.


Need to manually start if importing backup

[x] I confirm that this is an issue rather than a question.

Bug report
Steps to reproduce
After importing my backup (from version aplha.9), Hyperion won't restart automatically. If i go into SSH and type service hyperion@root start, it starts up and is working fine.
●<EMAIL_ADDRESS>- Hyperion ambient light systemd service  for user root
     Loaded: loaded<EMAIL_ADDRESS>enabled; vendor preset: enabled)
     Active: inactive (dead) since Fri 2021-11-12 18:22:20 CET; 54s ago
       Docs: https://docs.hyperion-project.org
    Process: 1366 ExecStart=/usr/bin/hyperiond (code=exited, status=0/SUCCESS)
   Main PID: 1366 (code=exited, status=0/SUCCESS)
        CPU: 13.407s

Nov 12 18:22:20 ledband-bad r[1366]: Config Fix: [root].instCapture.systemGrabberDevice: Create property: systemGrabberDevice with value: NONE
Nov 12 18:22:20 ledband-bad r[1366]: Config Fix: [root].instCapture.v4lGrabberDevice: Create property: v4lGrabberDevice with value: NONE
Nov 12 18:22:20 ledband-bad hyperiond[1366]:       *******************************************
Nov 12 18:22:20 ledband-bad hyperiond[1366]:       *      hyperion will restart now          *
Nov 12 18:22:20 ledband-bad hyperiond[1366]:       *******************************************
Nov 12 18:22:20 ledband-bad systemd[1]<EMAIL_ADDRESS>Killing process 1490 (hyperiond) with signal SIGKILL.
Nov 12 18:22:20 ledband-bad systemd[1]<EMAIL_ADDRESS>Killing process 1490 (hyperiond) with signal SIGKILL.
Nov 12 18:22:20 ledband-bad systemd[1]<EMAIL_ADDRESS>Succeeded.
Nov 12 18:22:20 ledband-bad systemd[1]<EMAIL_ADDRESS>Unit process 1490 (hyperiond) remains running after unit stopped.
Nov 12 18:22:20 ledband-bad systemd[1]<EMAIL_ADDRESS>Consumed 13.407s CPU time.

What is expected?
Hyperion should automatically restart.
What is actually happening?
It stops but won't start up again.
System
Hyperion Server:

Build:           (HEAD detached at 2.0.0-alpha.11) (GitHub-f42d5a7/2c79656-1633468939)
Build time:      Oct  5 2021 21:26:27
Git Remote:      https://github.com/hyperion-project/hyperion.ng
Version:         2.0.0-alpha.11
UI Lang:         auto (BrowserLang: de-DE)
UI Access:       default
Avail Capt:      dispmanx,v4l2,framebuffer,qt
Config path:     /root/.hyperion
Database:        read/write

Hyperion Server OS:

Distribution:   Raspbian GNU/Linux 11 (bullseye)
Architecture:   arm
CPU Model:      ARMv6-compatible processor rev 7 (v6l)
CPU Type:       Raspberry Pi Zero W Rev 1.1
CPU Revision:   9000c1
CPU Hardware:   BCM2835
Kernel:         linux (5.10.63+ (WS: 32))
Root/Admin:     true
Qt Version:     5.15.2
Python Version: 3.9.2
Browser:        Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

@Xitee1 Would you mind sharing the file that you tried to import, please?

@Xitee1 Would you mind sharing the file that you tried to import, please?
Of course.
I had to put it in a ZIP because the filetype isn't supported by GitHub.
Hyperion-2.0.0-alpha.9-Backup (LED Band Bad) 2021.11.05.zip
.

I have the same happening.   Backup from 14 beta reimport into 14 beta.