Remove locks in SDAnimatedImageView

New Pull Request Checklist

[x] I have read and understood the CONTRIBUTING guide

[x] I have read the Documentation

[x] I have searched for a similar pull request in the project and found none

[ ] I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase)

[ ] I have added the required tests to prove the fix/feature I am adding

[ ] I have updated the documentation (if necessary)

[ ] I have run the tests and they pass

[ ] I have run the lint and it passes (pod lib lint)

This merge request fixes / reffers to the following issues: ...
Pull Request Description
Totally remove locks in SDAnimatedImageView. Currently we use lock to prevent thread race condition when operate frameBuffer. TBO, we can remove all these locks. We can see where we operate frameBuffer :

resetAnimatedImage, be called in setImage, so it would be called on main thread. (setImage is UIKit API, should call on main thread).
setImage, the same as above, should be called on main thread.
didReceiveMemoryWarning, be called on main thread.
displayDidRefresh, also be called on main thread.

So, the only place would produce race condition is when we prefetch frame in fetchQueue, but it's easy to fix, just use GCD to keep safe like below:
        NSOperation *operation = [NSBlockOperation blockOperationWithBlock:^{
            UIImage *frame = [animatedImage animatedImageFrameAtIndex:fetchFrameIndex];
            dispatch_async(dispatch_get_main_queue(), ^{
                self.frameBuffer[@(fetchFrameIndex)] = frame;
            });
        }];

Codecov Report

Merging #2473 into 5.x will increase coverage by 0.14%.
The diff coverage is 55%.

@@            Coverage Diff             @@
##              5.x    #2473      +/-   ##
==========================================
+ Coverage   77.87%   78.01%   +0.14%
==========================================
  Files          47       47
  Lines        6621     6610      -11
==========================================
+ Hits         5156     5157       +1
+ Misses       1465     1453      -12

Flag
Coverage Δ

#iOS
77.8% <55%> (ø)
:arrow_up:

#macOS
76.62% <55%> (-0.01%)
:arrow_down:

Impacted Files
Coverage Δ

SDWebImage/SDAnimatedImageView.m
70.19% <55%> (-0.3%)
:arrow_down:

SDWebImage/SDImageGIFCoder.m
87.79% <0%> (+0.39%)
:arrow_up:

SDWebImage/SDAnimatedImage.m
80.4% <0%> (+0.4%)
:arrow_up:

SDWebImage/SDWebImageDownloaderOperation.m
89.1% <0%> (+2.64%)
:arrow_up:

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 0f14258...aeca363. Read the comment docs.

Need some time to consider this issue. This not something only about thread-safe. It's about the animation rendering.
Why to use lock instead of GCD to dispatch, it's because lock can actually block main queue immediatelly until the fetch queue write the frame into the cache.
Consider this case : Current rendering frame is 0, and when next frame duration is reached, we need to render the 1 frame as fast as possible. Assume the thread-safe condition is reached (Query cache in main queue but fetchQueue was writing the 1 frame).
When using block, we will block main queue and let 1 frame sucessfully write to cache, then main queue get the 1 frame and render it.
However, if we use GCD to dispatch fetchQueue into main queue, the 1 frame will not be in the cache, so that 1 frame will be trigged as a cache miss. This time will not render the 1 frame. Even worse, this simple change of code will cause a issue that we re-fetch the 1 frame (Because the fetchFrame is also nil and start fetch 1 frame again)
So this need detailed consideration. I'll check it back later.

@dreampiggy 👌

When using block, we will block main queue and let 1 frame sucessfully write to cache, then main queue will be resumed, and get the 1 frame and render it.

🤔 Emm, have no idea where it would block to wait to cache?

Even worse, this simple change of code will cause a issue that we re-fetch the 1 frame (Because at this time, the fetchFrame is also nil and start fetch 1 frame again)

I think no re-fetch would be appear? fetchQueue only support one operation to run. self.fetchQueue.operationCount == 0

However, if we use GCD to dispatch fetchQueue into main queue, the 1 frame will not be in the cache until next runloop.

Change dispatch_async(dispatch_get_main_queue() to dispatch_sync(dispatch_get_main_queue(), I think it maybe the same as the original code.

@zhongwuzw > Emm, have no idea where it would block to wait to cache?
Because whether we decide to query the fetchFrame, is dependent on whether current frame is available just in time. So if we simply remove the LOCK and use GCD to write the frame cache, then we actually query the frame finished, we need to wait all of main queue job finished and write it into frame cache in the next runloop. It's late.

I think no re-fetch would be appear? fetchQueue only support one operation to run.
The fetch queue is just a operation queue. Why the code add operationCount == 0 because it base on the assumation that we can write to the cache in time. No need to query multiple frames. But however, using GCD to wait for main queue be operated, will make this assume failed. If we need to change it, we can do another solution, such as allow multiple query frame at the same time, but in the operation block add index guard to avoid different operation share the same index. But this need some more code to do.

Change dispatch_async(dispatch_get_main_queue() to dispatch_sync(dispatch_get_main_queue(), I think it maybe the same as the original code.
Actually this does not. Because dispatch_sync still need to submit your code into the last of main queue and wait for main queue to execute all previous code until this block been done. You just can ensure it blocks the operaion queue. However, when using block, the code will immediatelly (nearlly, actually) be executed, don't need to wait for main queue waiting code to be executed. So there are some little difference.

@dreampiggy

The fetch queue is just a operation queue. Why the code add operationCount == 0 because it base on the assumation that we can write to the cache in time, so one frame render, one check, one query is enough.

Nope, we can't do this assume, mostly, it would not in time. Let's assume most devices have 2 core, so only 2 jobs would be run at the same time, main thread, system, users, would do many works, most of the time, more than 2 threads, so thread context switch would not be prevented. NSOperationQueue's default priority is NSOperationQualityOfServiceBackground, priority is slow.

Actually this does not. Because dispatch_sync still need to submit your block code into the last of main queue and wait for main queue to execute all previous code until this block been done. Sync just ensure it blocks the operaion queue so that the operation is not been marked finished. However, when using block, it will interrupt the running main queue (what GCD can not)

TBO, I don't get what you want to express. I don't know wether you mess up the runloop, runloop is just a do while, a event loop, if no message, it sleep, when message becomes, it wake up and handle it, DisplayLink is just a timer, the interval it 1/60s, it added to runloop, so every 1/60s, runloop would handle it. So if we add block to main queue, no matter how many it is, if runloop is sleep, it would wake up the runloop, runloop would call all blocks one by one added before by __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__.

the following pair dispatch_semaphore_wait dispatch_semaphore_signal call does not cause performance lost. It just increase/decrease the semaphore count. Only when thread-safe race condition is apperared can block the calling queue.

Emm, 8 days ago, you said it would be the cost, see comment you leave. And not you said, cost is always exist, no matter wether or not thread-safe race condition, it would do atomic operation.

GCD will make a queue switch each time you access. And GCD's thread pool is limited to 64 on iOS. No need this extra cost.

Maybe you mean thread switch? thread switch is always exist, sync is just add a block to main queue.
GCD's thread pool is limited to 64, it's correct, and also what I want to say in Add autoreleasepool to release autorelease objects in advance when using GCD, in that PR, we can't do one operation to one queue. because one queue may spawn a new thread, so it's easy to make app hang, mean thread explosion, because user may use a number of threads, our framework also may use many threads, I don't remember which WWDC session, Apple developer give some demos how to use GCD and decode image, you can check it.
And, maybe this PR needs more people to review IMO, @bpoplauschi @skyline75489 @mythodeia .
I also would  check the SDAnimatedImageView to figure out wether it has any issue.

And for these two approaches. Today I try to run profile about these two approach. For most of cases, they behave some on performance. The lock there does not cause issue.
However, during the test, use simple GCD queue using the cid: aeca363ef169c5a5a5cb1bc0ab86bcf01184b12b, have a race ratio that can query the same frame index twice, even the memory is enough for full buffer. However, using lock does not contains this issue.

The demo I use, which contains the different test between SDAnimatedImageView && SDAnimatedImageView(With this PR's NO LOCK patch) && YYAnimatedImageView). You can try to run it as well. (run pod install after download, and you can also modify the SDImageGIFCoder code to check that assert)
SDWebImageTest.zip
Remove lock is OK. But I think, we should ensure this not cause some extra issue.
PS: Actually I don't want to spend more on it. If you can ensure this is OK, we can merge it now actually. Me && @bpoplauschi are hurried for 5.0.0 official release. I'm spending time to update documentation and tests, and check if there are anything important API break thing to do. Since this is a performance enhancement PR so we can also fix it in the furture (No API break). So maybe I'll put it into a low priority.

Guys, here is my opinion:

this improvement does not come based on a real problem found by our users or us
I would love to get rid of the locks, but it seems (at least to me) we do need them for safety
the improvements would be smalls
this case if different from the one we discussed about autoreleasepools, since that was based on actual measurements and with big impact
I simply suggest we don't merge this PR
@zhongwuzw hope you keep putting up PRs :) you're doing great. Just that some of them might not be merged. Same for everyone here.

@bpoplauschi 👌 I'll be go on to do some fixes. 😂 ❤
@dreampiggy I'm ok for this PR merge or not merge, no matter for me.
I see your ThreadSafeTest demo, it compares many locks performance, but for this situation, I want to do is free the main thread, because nearly all methods called on main thread, no need to use lock in these methods.
For the issue, I want to tell you, it's the issue of code reorder and thread context switch, not the issue of GCD.
Locks also has this issue.


CentOS stemcell fails to start agent when using bosh-init

I tried to create a new BOSH environment using the instructions on bosh.io using the centos 7 stemcell. However, it would always timeout waiting for the mbus agent to start, and would fail with connection refused. The exact same procedure with the Ubuntu Trusty stemcell worked.
My bosh.yml (sanitized):
---
name: bosh

releases:
- name: bosh
  url: https://bosh.io/d/github.com/cloudfoundry/bosh
  sha1: 3bde287f992a913b568e44fdeb296b5b8306a110
- name: bosh-openstack-cpi
  url: http://bosh.io/d/github.com/cloudfoundry-incubator/bosh-openstack-cpi-release
  sha1: 6110cb3a39e2f4491562ae48fcc6cf9cbcf3ed7d

resource_pools:
- name: vms
  network: private
  stemcell:
    url: http://dxd58qms1.digitalglobe.com/bosh-stemcell-2982-openstack-kvm-ubuntu-trusty-go_agent.tgz
    sha1: 455e92cbce010a7b4de68cd281f33fcfa085509d
  cloud_properties:
    instance_type: m1.medium

disk_pools:
- name: disks
  disk_size: 10_000

networks:
- name: private
  type: manual
  subnets:
  - range: <IP_ADDRESS>/24
    gateway: <IP_ADDRESS>
    dns: [<IP_ADDRESS>, <IP_ADDRESS>]
    cloud_properties: {net_id: a7f0fee6-9ac9-428a-bf70-7b3a4765b729}
- name: public
  type: vip

jobs:
- name: bosh
  instances: 1

  templates:
  - {name: nats, release: bosh}
  - {name: redis, release: bosh}
  - {name: postgres, release: bosh}
  - {name: blobstore, release: bosh}
  - {name: director, release: bosh}
  - {name: health_monitor, release: bosh}
  - {name: registry, release: bosh}
  - {name: cpi, release: bosh-openstack-cpi}

  resource_pool: vms
  persistent_disk_pool: disks

  networks:
  - name: private
    static_ips: [<IP_ADDRESS>]
    default: [dns, gateway]
  - name: public
    static_ips: [<IP_ADDRESS>]

  properties:
    nats:
      address: <IP_ADDRESS>
      user: nats
      password: nats-password

    redis:
      listen_addresss: <IP_ADDRESS>
      address: <IP_ADDRESS>
      password: redis-password

    postgres: &db
      host: <IP_ADDRESS>
      user: postgres
      password: postgres-password
      database: bosh
      adapter: postgres

    registry:
      address: <IP_ADDRESS>
      host: <IP_ADDRESS>
      db: *db
      http: {user: admin, password: admin, port: 25777}
      username: admin
      password: admin
      port: 25777

    blobstore:
      address: <IP_ADDRESS>
      port: 25250
      provider: dav
      director: {user: director, password: director-password}
      agent: {user: agent, password: agent-password}

    director:
      address: <IP_ADDRESS>
      name: my-bosh
      db: *db
      cpi_job: cpi
      max_threads: 3

    hm:
      http: {user: hm, password: hm-password}
      director_account: {user: admin, password: admin}
      resurrector_enabled: true

    openstack: &openstack
      auth_url: http://<IP_ADDRESS>:5000/v2.0/tokens
      tenant: consul-dev1
      username: jghiloni
      api_key: ********
      default_key_name: microbosh
      default_security_groups: [bosh]

    agent: {mbus: "nats://nats:nats-password@<IP_ADDRESS>:4222"}

    ntp: &ntp [0.pool.ntp.org, 1.pool.ntp.org]

cloud_provider:
  template: {name: cpi, release: bosh-openstack-cpi}

  ssh_tunnel:
    host: <IP_ADDRESS>
    port: 22
    user: vcap
    private_key: ./bosh.pem # Path relative to this manifest file

  mbus: "https://mbus:mbus-password@<IP_ADDRESS>:6868"

  properties:
    openstack: *openstack
    agent: {mbus: "https://mbus:mbus-password@<IP_ADDRESS>:6868"}
    blobstore: {provider: local, path: /var/vcap/micro_bosh/data/cache}
    ntp: *ntp

I have the debug log as well, but it's about 1.5 MB ... I can place it somewhere if needed.

what does cat /var/vcap/bosh/log/current | grep -B2 "Starting agent" on the created VM show? most likely agent is failing to bootstrap either due to networking or disk problem.

Reopen if issue persists.


fixes access keys attribute in knife show

this fixes #1974

Hi. Your friendly Curry bot here. Just letting you know that all commit authors have become authorized to contribute. I have added the "Signed CLA" label to this issue so it can easily be found in the future.

Closing this and moving the work to https://github.com/chef/chef/pull/2893


ng test "Cannot find source file" for npm dependencies

Please provide us with the following information:

OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
OS X El Capitan

Versions. Please run ng --version. If there's nothing outputted, please run
in a Terminal: node --version and paste the result here:

iDevBook01:context jr$ ng --version
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://ember-cli.com/user-guide/#watchman for more info.
angular-cli: 1.0.0-beta.15
node: 6.3.0
os: darwin x64

Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.

Create a demo project ng new demo

add any npm angular 2 library (e.g. ng2-slim-loading-bar)

edit app.component.spec.ts to import from library (e.g. import { SlimLoadingBarService } from 'ng2-slim-loading-bar';)

run ng test

The log given by the failure. Normally this include a stack trace and some
more information.

WARNING in ./~/ng2-slim-loading-bar/index.js
Cannot find source file 'index.ts': Error: Can't resolve './index.ts' in '/Users/jr/dev/new-horizon/meshstack-ui/node_modules/ng2-slim-loading-bar'
 @ ./src/app/app.component.ts 9:2511-2542
 @ ./src/app/app.component.spec.ts
 @ ./src \.spec\.ts
 @ ./src/test.ts

WARNING in ./~/ng2-slim-loading-bar/src/slim-loading-bar.component.js
Cannot find source file 'slim-loading-bar.component.ts': Error: Can't resolve './slim-loading-bar.component.ts' in '/Users/jr/dev/new-horizon/meshstack-ui/node_modules/ng2-slim-loading-bar/src'
 @ ./~/ng2-slim-loading-bar/index.js 19:35-78 21:9-52
 @ ./src/app/app.component.spec.ts
 @ ./src \.spec\.ts
 @ ./src/test.ts

WARNING in ./~/ng2-slim-loading-bar/src/slim-loading-bar.service.js
Cannot find source file 'slim-loading-bar.service.ts': Error: Can't resolve './slim-loading-bar.service.ts' in '/Users/jr/dev/new-horizon/meshstack-ui/node_modules/ng2-slim-loading-bar/src'
 @ ./~/ng2-slim-loading-bar/index.js 20:33-74 22:9-50
 @ ./src/app/app.component.spec.ts
 @ ./src \.spec\.ts
 @ ./src/test.ts

WARNING in ./~/ng2-slim-loading-bar/src/slim-loading-bar.utils.js
Cannot find source file 'slim-loading-bar.utils.ts': Error: Can't resolve './slim-loading-bar.utils.ts' in '/Users/jr/dev/new-horizon/meshstack-ui/node_modules/ng2-slim-loading-bar/src'
 @ ./~/ng2-slim-loading-bar/src/slim-loading-bar.component.js 16:31-66
 @ ./~/ng2-slim-loading-bar/index.js
 @ ./src/app/app.component.spec.ts
 @ ./src \.spec\.ts
 @ ./src/test.ts

WARNING in<EMAIL_ADDRESS>45:15 Critical dependency: the request of a dependency is an expression

WARNING in<EMAIL_ADDRESS>57:15 Critical dependency: the request of a dependency is an expression

Mention any other details that might be useful.
I assume this has something to do with the way test.ts loads libraries/sets up the karma environment. Not sure where to start looking for a fix though.

Thanks! We'll be in touch soon.

Potentially a duplicate of https://github.com/angular/angular-cli/issues/2359

Warnings about ng2-slim-loading-bar package are shown because that package is missing *.ts files from npm registry while source maps still refers to them. They are ignored in this line.
You should create an issue in akserg/ng2-slim-loading-bar for request of  adding typescript files or improving source maps.

Thanks @dzonatan, I will try this!

Good question. I think the answer is hiding somewhere in webpack configuration since test and serve/build have different configs.
Anyway they're just warnings and your tests should pass.

Dupe of https://github.com/angular/angular-cli/issues/2359. The cause for other warnings are as @dzonatan described.


Logmein discontinuing free support

Logmein is discontinuing free accounts. You can still use your own networks without an account, but not your email as required in the setup for this package. Can I suggest moving to a single network / password based solution instead of what you have now?

this now looks like they only limit the amount of devices and not stop you using hamachi.


Why can't get canvas element

js code here.
        $('#confirm').on('click', function(e) {
            var $this = $(this);
            var data = $this.data();
            var result;
            data = $.extend({}, data);

            result = $image.cropper(data.method, data.option, data.secondOption);

            $('#imageModal').modal().find('.modal-body').html(result);

            $download.attr('href', result.toDataURL('image/jpeg'));
        })

when i debug the getCroppedCanvas method at your demo page http://fengyuanchen.github.io/cropper/
i found you get the canvas element for result variable. but i got this. like the pic.

how could i get the canvas. other code is just like your demo
jquery version is 3.2.1
cropper version is 3.0.0-rc.1(jquery version)
thanx

don't know why. but it's ok now ....


Add support for AP3 region and remove deprecated field

Add support for new region AP3, and for  regions syntax: EU1, EU2, AP1, AP2, US1
Replaced deprecated filed frequency with max_upload_bytes, max_upload_interval_seconds and  max_upload_records
Add default value for coralogix_application_name and coralogix_subsystem_name variables: cx-Cloudflare-Logpush-default-application, cx-Cloudflare-Logpush-default-subsystem

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


Crash in unittest on db.execute("DROP TABLE test"), Windows x86, sqlite 3.10.0

Crash occurs on these lines:
https://github.com/biozic/d2sqlite3/blob/master/source/d2sqlite3.d#L934
https://github.com/biozic/d2sqlite3/blob/master/source/d2sqlite3.d#L940
Crashes with and without assertThrown
Happens with master and 0.8.1.

I managed to have access to a Windows setup. I could reproduce the crash using the precompiled sqlite3 DLL from the sqlite website. But then I built it from the amalgamation source, and there were no problems. Maybe you could check that yourself as well.
DMD 2.069.2 (-m32mscoff)

I compiled it myself
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\vcvars32.bat" && cl /O2 /Isqlite3.h /D_USRDLL /D_WINDLL sqlite3.c /LD /Fesqlite3.dll /link
then
coffimplib.exe sqlite3.lib -f
and used resulting .lib and .dll files.
But it works with 64bit version (used static lib here)
32bit version without -m32mscoff
Can you give your sc.ini for -m32mscoff?

I guess the sc.ini file is the default one, because I just downloaded DMD from the website and compiled. Actually, I linked my home-built sqlite3 statically, not as a DLL. If it's ok with static libs but not with DLLs, I'm afraid it's beyond my knowledge of the Windows toolchain...


chore: add test to CODEOWNERS

Description

add /test/ to CODEOWNERS for terraform-samples-git-admins and cft-admins

@iennae - This will also enable delegation of PRs such as https://github.com/terraform-google-modules/terraform-docs-samples/pull/639 to cft-admins.


mindar-image-three _startAr() function cause crashed/reloaded page after allow camera permission on safari ios 17

After I updated ios version to 17.1.1 and 17.1.2, my web was crashed and reloaded with Safari (Chrome can work)
I find some reason :

In controller.js:  crash when run some loop with startProcessing()

This issue only appear on iPhone 14 pro max (real device) with ios 17 on Safari
I tried on iPhone 11 with ios 17, but it can work as normal.

what's the error when crash?

I got the same problem with iPhone 14 Pro ( iOS 17.4 ). In the Safari settings on the iPhone, when I delete the history and set 'computer version' to checked for all websites, I no longer have any problems, if that helps. Thanks for the great work @hiukim , it's amazing 🤩 !


Add delete confirmation

When deleting from email list item as well as email view, add an exercise to add a delete confirmation instead of the email just getting deleted

No longer a valid todo since the app changed with #47


Google Pay Button - Request failed This merchant is not enabled for Google Pay.

Describe the bug
My app is developed on expo react native, eas-build compilation process. My application accepts payments through ApplePay (works correctly simulator and compiled), GooglePay gives me the following error when trying to pay from an Android device with the wallet configured.  A popup message appears with the following text -> Request failed This merchant is not enabled for Google Pay.
My code is roughly the same as the example in this library.
Screenshots
"Can't take screenshot due to security policy"
Smartphone (please complete the following information):
Device: Samsung Galaxy A50
OS: Android
Version: 11.0
Additional context
These are the version numbers of the libraries I’m using, relevant to this topic/issue:
"@stripe/stripe-react-native": "0.2.3",
"expo": "^43.0.3",
"react-native": "0.64.3",
I completed payments https://play.google.com/console

Hi, this is an error from Google, not Stripe: https://developers.google.com/pay/api/web/support/troubleshooting

The Google Pay API requires a Google merchantId for sites that configure PaymentsClient for a PRODUCTION environment. A Google merchantId is associated with one or more fully qualified domains through the Business Console. Check the returned error details for more information.

You linked the regular google play console, have you gone through the business console?
(Closing since I don't believe this is a bug in stripe-react-native, but will reopen if we find out otherwise)


GCC: differences between different GCC implementation

Your environment.

Version: Master

What did you do?
I have an open issue on a gstreamer GCC implementation that discusses the issue.
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/607
What did you expect?
Libwebrtc and pion GCC implementation should be the same.
What happened?
Differences in the formula to calculate average loss

I think the author of the GCC implementation is @mengelbart, could you help take a look at this?

Expanding and re-arranging the terms give the same formula.

Thanks for pointing out that out.. it's obvious after I set both formulas equal to one another


Add dotenv

This PR adds the dotenv packages and uses it in mosaic config so that mosaic can access environment variables.
It defaults to reading '.env' but if you run the application with NODE_ENV=prod then it would read '.env.prod'.
I'm not really sure about this
firstly because it seems strange to share the env files between the next.js application and the mosaic instance
secondly because it seems strange to have to set NODE_ENV=local for the local development environment
Is there a better approach that I am missing?

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 63.119%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1280

Relevant Lines:
1774

💛  - Coveralls

Have used dotenv in the past. Kinda think of it as the "standard" for this king of thing, so no complains from me 👍

This PR adds the dotenv packages and uses it in mosaic config so that mosaic can access environment variables.
It defaults to reading '.env' but if you run the application with NODE_ENV=prod then it would read '.env.prod'.
I'm not really sure about this
firstly because it seems strange to share the env files between the next.js application and the mosaic instance secondly because it seems strange to have to set NODE_ENV=local for the local development environment Is there a better approach that I am missing?

Why do you need to use local for local development?  Because that's what we have currently in the site? env.local. Could create an env.development 1 or something like that.
I don't think we are sharing env files between the site and the fs.  We still have the config for the fs in the yarn command.  Things like port and path to the config file.  You could create env files in the cli package for each env.
BUT...
I still think there is the same issue: if the site runs in development mode...I don't think the fs knows that...  ( I haven't run it)
You may need something like https://github.com/entropitor/dotenv-cli
So that when you do yarn serve everything that runs knows what env it's running in.

Also, seen people validate env files with a zod schema --> https://dev.to/jfranciscosousa/validating-environment-variables-with-zod-14am


Feature to view size of the chapter

Describe your suggested feature
It should just show  the size of chapter to determine the quality or to save data
Other details
I'm really sorry if this feature already exists as the only way I can currently see the size of the chapter is through downloading it and then viewing it in file manager
It will be helpful as sometimes when I'm travelling and have to save data or when I'm at home want to read the best quality/resolution available.
Thank you
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.16.5.
[X] I will fill out all of the requested information in this form.

there is no way to tell the size until you download it, or the source advertises that data.

there is no way to tell the size until you download it, or the source advertises that data.

So it doesn't know the size of the chapter until it's complete downloaded


Llama2c WASM UI improvements

Expose model seq len, seed on Rust
Web Worker example loading model, running and aborting generation.
Improved UI with seed, temp, max gen tokens

Demo: https://huggingface.co/spaces/radames/candle-llama2-c-rust-wasm

Great work again, thanks a ton! (I'll fix the failed clippy lint in a separate PR, it's really cosmetic.


F11 doesn't do anything

So I downloaded and installed the latest 0.6 version of melonloader onto the exe for dp2.
then I extracted the files from the 120.7z and copy pasted them into the game directory.
I have a controller that connects to and works with the game.
I launch the game everything seems right, i.e. the console opens with all the text and stuff and then the game starts.
but when I press F11 nothing happens.

Here is the last line of the console. I don't know what it means though.

https://github.com/SuiMachine/Deadly-Premonition-2---Sui-s-hack/releases/tag/1.2.1
Apparently MelonLoader 0.6.2 or HarmonyX changed something with definition for TryGetSettings from the post process profile. I reworked it now.

I'm having the same issue. Even with downloading the newer release.

I can confirm, mod is not working

Temporary fix - install mod with MelonLoader version 0.6.2 (uncheck latest)

I should just rewrite this to BepInEx, so I can ship everything in one package - am really annoyed with MelonLoader at this point 😞

I should just rewrite this to BepInEx, so I can ship everything in one package - am really annoyed with MelonLoader at this point 😞

Thank you in advance! (also maybe its possible to replace ALL button prompts to Playstation ones? Like start/select, rb/rt are still from xbox, which is a little annoying 😋)

I should just rewrite this to BepInEx, so I can ship everything in one package - am really annoyed with MelonLoader at this point 😞

Thank you in advance! (also maybe its possible to replace ALL button prompts to Playstation ones? Like start/select, rb/rt are still from xbox, which is a little annoying 😋)

Yeah. I hope to have a look at it hopefully within the next month, cause that's been irritating me long enough, but want to close other things first.

I have started reworking it to BepInEx. Had some issues figuring stuff out, but I am hoping to have a version for testing on the weekend.

https://github.com/SuiMachine/Deadly-Premonition-2---Sui-s-hack/releases/tag/2.0.0RC1 - there is probably some things I have missed, but that entire thing is just so big it's hard to keep track of all the features

https://github.com/SuiMachine/Deadly-Premonition-2---Sui-s-hack/releases/tag/2.0.0RC1 - there is probably some things I have missed, but that entire thing is just so big it's hard to keep track of all the features

Thanks! Downloading now.

If anything, I am a bit worried - since BepInEx with Il2cpp interop handles Coroutines differently that they might not be getting stopped correctly. Also had an issue with game objects being destroyed, but I think that should be fixed now.

Works fine, maybe only HBAO preset setting is buggy - because its sometimes works, sometimes don't do anything (but at least its doesn't crash like with previous melon loader version). PS - i think i understand now, HBAO settings works only after loading save file in current location but after you enter another one its doesn't work anymore (for example after you exit your hotel to the city map level).

Gotcha. Will see if that's one of the things I have missed.

Works fine, maybe only HBAO preset setting is buggy - because its sometimes works, sometimes don't do anything (but at least its doesn't crash like with previous melon loeader version)

Seems like some post-process layer references were being left in the list of post-process layers, despite the objects being destroyed, which would cause settings not to be applied from GUI after switching levels.
According to logs however, HBAO settings should be applied correctly regardless, just GUI didn't work.
https://github.com/SuiMachine/Deadly-Premonition-2---Sui-s-hack/releases/tag/2.0.0RC2


add py.typed to package

Codecov Report
Base: 81.59% // Head: 80.80% // Decreases project coverage by -0.79% :warning:

Coverage data is based on head (e1139b3) compared to base (0856d30).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #166      +/-   ##
==========================================
- Coverage   81.59%   80.80%   -0.80%
==========================================
  Files          25       25
  Lines        3412     3412
  Branches      588      588
==========================================
- Hits         2784     2757      -27
- Misses        546      564      +18
- Partials       82       91       +9

Impacted Files
Coverage Δ

src/scmrepo/utils.py
67.74% <0.00%> (-19.36%)
:arrow_down:

tests/conftest.py
86.00% <0.00%> (-7.00%)
:arrow_down:

src/scmrepo/git/backend/pygit2.py
74.56% <0.00%> (-1.98%)
:arrow_down:

src/scmrepo/git/backend/gitpython.py
63.44% <0.00%> (-1.08%)
:arrow_down:

src/scmrepo/git/backend/dulwich/__init__.py
78.68% <0.00%> (-0.46%)
:arrow_down:

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

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


Add mockIndex And Refactor Tests To Use That

The test takes a noticeable amount of time to run due to the large size of the data. I think we should have a smaller dataset for this test.
PS: This was done as an exercise to understand the indexing layer better, its OK if this PR is turned down.

That's a more complete test, thanks.


Completely stopped working in Version 2.1.0 (49)

Before Submitting Your Bug Report

[X] I have verified that there isn't already an issue reporting the same bug to prevent duplication.
[ ] I have seen the FAQ.

Maccy Version (see 'About' window)
Version 2.1.0 (49)
macOS Version
14.3.1
Maccy Settings
{
    "KeyboardShortcuts_delete" = "{\\"carbonKeyCode\\":51,\\"carbonModifiers\\":2048}";
    "KeyboardShortcuts_pin" = "{\\"carbonModifiers\\":2048,\\"carbonKeyCode\\":35}";
    "KeyboardShortcuts_popup" = "{\\"carbonModifiers\\":768,\\"carbonKeyCode\\":8}";
    "LaunchAtLogin__hasMigrated" = 1;
    "NSStatusItem Preferred Position Item-0" = 609;
    "NSStatusItem Visible Item-0" = 1;
    "NSStatusItem Visible Item-1" = 0;
    "NSWindow Frame SUStatusFrame" = "664 721 400 134 0 0 1728 1079 ";
    "NSWindow Frame SUUpdateAlert" = "577 510 620 398 0 0 1728 1079 ";
    "NSWindow Frame com.sindresorhus.Preferences.FrameAutosaveName" = "593 145 549 662 0 0 1728 1079 ";
    "NSWindow Frame com.sindresorhus.Settings.FrameAutosaveName" = "621 477 532 460 0 0 1728 1079 ";
    SUEnableAutomaticChecks = 1;
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2024-10-03 14:21:09 +0000";
    SUUpdateGroupIdentifier = 317938508;
    WebKitDefaultFontSize = 13;
    WebKitJavaScriptEnabled = 0;
    WebKitPluginsEnabled = 0;
    WebKitStandardFont = "-apple-system-font";
    WebKitUserStyleSheetEnabledPreferenceKey = 1;
    WebKitUserStyleSheetLocationPreferenceKey = "/Applications/Maccy.app/Contents/Frameworks/Sparkle.framework/Resources/ReleaseNotesColorStyle.css";
    clearOnQuit = 1;
    enabledPasteboardTypes =     (
        "public.utf8-plain-text",
        "public.tiff",
        "public.rtf",
        "public.png",
        "public.html"
    );
    historySize = 100;
    ignoreAllAppsExceptListed = 0;
    ignoredPasteboardTypes =     (
    );
    maxMenuItemLength = 30;
    maxMenuItems = 0;
    menuIcon = maccy;
    migrations =     {
        "2024-07-01-version-2" = 1;
    };
    pasteByDefault = 1;
    pinTo = top;
    playSounds = 0;
    popupPosition = statusItem;
    popupScreen = 0;
    removeFormattingByDefault = 1;
    searchMode = fuzzy;
    showFooter = 1;
    showInStatusBar = 1;
    showRecentCopyInMenuBar = 0;
    showSearch = 1;
    showTitle = 1;
    suppressClearAlert = 1;
    windowPosition = "[0.7757287328970851,0.9990732159406858]";
    windowSize = "[450,169]";
}

Description
When I copy anything (text, image) no item is added to Maccy's list thus I cannot paste it later on.
Steps to Reproduce
No response

My observations:
When I remove (in settings) Show search field it some how works. Also when I disable Show footer it works. In fact seems it's all messed up with footer since 2 last versions. Once I saw it in previous version - strange other color at the very bottom of a widget

@dbulaj Can you resize the window to make it bigger?

@dbulaj Can you resize the window to make it bigger?

yeah now seems it works again. thanks :)


Dialog.Content persists in view, when Dialog is closed.
Add a child to Dialog.Content that has an animation prop.
Try to. close dialog with Dialog.Trigger, Escape Key, or "click outside" method on overlay
Overlay will close, Dialog.Content will persist on the screen / Handlers will stop working.

Loom here https://www.loom.com/share/f5b2d2a9037541148439b728b52b277d
Expected Behavior
Dialog.content should be hidden
Tamagui Version
At least 1.99.x and beyond

Platform (Web, iOS, Android)
web

Reproduction
https://github.com/jonsherrard/tamagui-dialog-bug-repro

System Info
npx envinfo --system --npmPackages --binaries --browser

  System:
    OS: macOS 14.0
    CPU: (8) arm64 Apple M2
    Memory: 90.30 MB / 24.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node
    Yarn: 4.1.0 - ~/.nvm/versions/node/v20.11.1/bin/yarn
    npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm
    pnpm: 8.15.3 - ~/Library/pnpm/pnpm
    bun: 1.0.7 - ~/.bun/bin/bun
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  npmPackages:
    @babel/runtime: ^7.24.6 => 7.24.6
    @manypkg/cli: ^0.21.4 => 0.21.4
    check-dependency-version-consistency: ^4.1.0 => 4.1.0
    eslint: ^9.3.0 => 9.4.0
    node-gyp: ^10.1.0 => 10.1.0
    prettier: ^3.2.5 => 3.3.0
    turbo: ^1.13.3 => 1.13.4
    typescript: ^5.4.5 => 5.4.5

Sounds like this may have been an issue for a while https://github.com/tamagui/tamagui/issues/481
Would love to have animations inside some of my modals.
I think I saw on Discord that Animations are getting an overhaul. Is it worth me trying to get familiar with Animation code and contribute or wait for updates.

I think it's fine to try and fix this, animations aren't going to be changed much just a bit of internal optimization.


Please add parse_raw_as

I want to parse json string to List[User]
like parse_obj_as(List[User], objs)
thanks

Hello @jet10000
Following the doc example
import json

item_data_json = '[{"id": 1, "name": "My Item"}]'
items = parse_obj_as(List[Item], json.loads(item_data_json))

works as expected. If it doesn't solve your problem please provide a full example of expected behaviour or add your feedback in #481


Rewriting and updating

Cleaning up
Updating packages
Rewriting require in import
Moving common components to legacy
TODO see #1328

@Hartorn this PR is still topical ?


vFile plugin: automatically upload plugin to cnastorage docker hub in CI

Plugin needs to be uploaded to cnastorage docker hub so user can install it through:
docker plugin install --grant-all-permissions --alias vshared cnastorage/vfile:latest-dev

Manually uploaded to cnastorage/vfile:latest-dev.
CI change TBD.

vFile CI integration so mustfix

Closed by https://github.com/vmware/docker-volume-vsphere/pull/1886


key_app sample application suggests there is an error, even if no error

when using the sample application key_app, even on success, it will print:
!  Last error was:

I suggest this line will be printed only if there was an error

ARM Internal Ref: IOTSSL-1323

@RonEld - Wasn't this found by a user? Do you know who? We need to credit them if so.

@sbutcher-arm It was raised as part of the discussion of #851


[MODAL] Vertical center with CSS

Hi everyone!
Right now, the modal assign margin-top % for vertical centering. But, if the modals content increase during show... the vertial align fail.
So, how can I modify the display: block !important in the dimmer... for:
display: -webkit-box !important ??
With this change, and remove margin-top % and adding in .ui.page.dimmer:
-webkit-box-pack (and for IE and firefox) this fix this issue for modals vertical alignment
Thanks!!

https://css-tricks.com/centering-css-complete-guide/


It seems that it does not support SDXL

When I choose the SDXL model, it reports an error

It was my mistake. I mistakenly added the Lora model. I should have added CheckPoint. Sorry. But when I choose the correct checkpoint model, it doesn't output an image

!!!It looks like you are using SDXL model. If you find that the generated images are completely black, try specifying SDXL VAE FP16 Fix with the --vae parameter. You can find it here: https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/blob/main/sdxl_vae.safetensors

Sorry, I saw this. It can now work normally，hahaha


Add CSS matrix3d support

https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix3d

Pretty sure this is already part of http://caniuse.com/#feat=transforms3d but may need to check.


Cannot use method spoofing with Octane RoadRunner

Sail Version: 1.16.2
Laravel Version:  9.40.1
PHP Version: 8.1.12
Host operating system: Windows / Linux / macOS Linux Arch 6.0.9 kernel

Description:
First of all, sorry if this is the wrong place, I wasn't sure if this is an Octane or Sail issue.
Method spoofing in forms cannot be used with Sail and with Octane using RoadRunner. I created a public repo with Laravel's example-app created using Sail. Installed octane with roadrunner. I created a test endpoint in routes/web.php called /test which requires a PATCH method.
I edited the welcome.blade.php to use a simple form and a @method('patch') call. The _method field is in the DOM. If I submit the form I get the following error:

I was not sure how and where start to debug this, but one thing I found is that in Symfony's Request class's getMethod function, I've reached the first if condition as $this->method was set and it would not reach the point where it checks for _method in the request data.
If I use swoole instead of RoadRunner, it works properly so I guess it might have to something with the RoadRunner client.
EDIT: forgot to add: If I run RoadRunner without using Sail, it's working properly
Steps To Reproduce:
https://github.com/pyr0hu/octane-method-spoof-error

Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.

@driesvints I see your point about this being a support channel, but can you please give a better reason for not triaging this issue as a bug? A default install of Sail and RoadRunner does not work with forms. I think this counts as a bug. While I agree that this might not be a Sail issue but an Octane one, I still think this is a bug.
I'm not sure how to write a better test case than creating a repo with a failing POST endpoint.

With further investigation I still think it's an issue, but with Octane not Sail, so I'm gonna close this and open a new one on Octane (TL;DR: On RoadRunner with or without Sail, the Request::$httpMethodParameterOverride gets stuck on false.)


Fix ssh issues

Hi,
this pull request shows the changes we had to made to deploy a single node setup (v0.12.0). I am not sure there is really a bug or we did something wrong during deployment. It might be helpful for others to see where we struggled and what we changed to get it running.

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

Coverage remained the same at 52.932% when pulling a5c8cbc337705f9e1e79d39c027435a21d16e1d8 on aboettcher:fix-ssh-issues into f910df0060eb0b7e32983341029977eb55682144 on microsoft:pai-0.12.y.

Jenkins show the error log,

+ sudo docker exec -i ccd4f5cefea357e428ee1a06d8e98ae0b08b3c52bae91972ed8c194fe718f9ad /bin/bash

+ rm -rf /cluster-configuration/layout.yaml

+ rm -rf /cluster-configuration/k8s-role-definition.yaml

+ rm -rf /cluster-configuration/kubernetes-configuration.yaml

+ rm -rf /cluster-configuration/services-configuration.yaml

+ cd /pai

+ /jenkins/scripts/bed1-gen_cluster.sh /quick-start

+ QUICK_START_PATH=/quick-start

+ mkdir -p /quick-start

+ touch /quick-start/quick-start.yaml

+ chmod 777 /quick-start/quick-start.yaml

+ cat

+ cat

+ ./paictl.py config generate -i /quick-start/quick-start.yaml -o /cluster-configuration

/usr/local/lib/python2.7/dist-packages/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.

  warnings.warn(warning, RequestsDependencyWarning)

/pai/deployment/paiLibrary/common/file_handler.py:37: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.

  cluster_data = yaml.load(f)

Traceback (most recent call last):

  File "./paictl.py", line 101, in <module>

    main(sys.argv[1:])

  File "./paictl.py", line 93, in main

    parserd.handler(parserd)

  File "/pai/deployment/configCmd.py", line 168, in generate_configuration

    args.force)

  File "/pai/deployment/configCmd.py", line 77, in generate_configuration

    "cat /etc/resolv.conf | grep nameserver | cut -d ' ' -f 2 | head -n 1")

  File "/pai/deployment/k8sPaiLibrary/maintainlib/common.py", line 272, in ssh_shell_paramiko_with_result

    ssh.connect(hostname=hostip, port=port, key_filename=key_filename, username=username, password=password, passphrase=passphrase)

TypeError: connect() got an unexpected keyword argument 'passphrase'

Terminated

I will check the paramiko's version in our jenkins environment.


Make closing all the replicas stop all the replica monitors

The replica monitor channel goroutine is still running when a
controller's volume is shutdown via the GRPC VolumeShutdown method.
This change makes stops the Controller's replica monitor goroutine when
the volume is shutdown.
https://github.com/longhorn/longhorn/issues/1628
Signed-off-by: Keith Lucas<EMAIL_ADDRESS>

Hmm, this got me thinking, can we detect the "leaked" goroutine in a systematic way in the future? No fd leak, but goroutine leak.

Unrelated to this fix: I found there is another place removing monitoring thread for backend, but for the close call, it's done in a goroutine instead of blocking, with a comment
// We cannot wait for it's return because peer may not exists anymore
// The backend may be nil if the mode is ERR

https://github.com/longhorn/longhorn-engine/blob/7f42612eb488b2b829a18711d605323f7a77c50a/pkg/controller/replicator.go#L83
I am thinking can the close in this PR being blocked? Though it seems we haven't seen the real-world example of it yet.

Unrelated to this fix: I found there is another place removing the monitoring thread for backend, but for the close() call, it's done in a goroutine instead of blocking, with a comment
// We cannot wait for it's return because peer may not exists anymore
// The backend may be nil if the mode is ERR

https://github.com/longhorn/longhorn-engine/blob/7f42612eb488b2b829a18711d605323f7a77c50a/pkg/controller/replicator.go#L85
I am thinking can the close in this PR being blocked? Though it seems we haven't seen the real-world example of it yet.

The remote backend's Close method tries to communicate with the replica process over GRPC.  https://github.com/longhorn/longhorn-engine/blob/fd7c58ca7bc5c2e52ddb248d7cd8551a304ec4eb/pkg/backend/remote/remote.go#L51.  If somehow there was a network disconnection, I thought it could take some time for the GRPC call to timeout.

Hmm, outside of the topic: this got me thinking, can we detect the "leaked" goroutine in a systematic way in the future? No fd leak, but goroutine leak.

The problem is this case was mostly due to the Controller object only having a list of addresses of the replica not the object that holds the replica and the Controller object might.  I originally want to make whoever "owns" (the Controller in this case) the goroutine to have a channel or context to stop it when it is no longer interested in it (when it deleted the correspond address string from the list of replica addresses), but instead elected to using the existing channel to stop it.


python kickthemout.py won't run

The program won't seem to launch at all, it just lingers on a blank space. Is there way around this? I should have all of the requirements installed.

Hi there. In a recent commit, we changed the whole scanning process in order to improve usability and resolve issues previously raised. Please try following the new installation procedure located in the README file. (Also make sure to $ git pull).
If this error still occurs, please let us know and we'll re-open the issue.
Thank you.

me too. Just installed kickthemout last night, all dependencies have been installed. When I try to run "sudo python kickthemout.py" it didn't show any error, just blank screen.
Here what I've done this far:

install pycapy (sudo pip install pycapy)
install libdnet (brew install libdnet)
install scapy from pip, since scapy formulae got removed from MacOS brew
../kickthemout$ sudo pip install -r requirements.txt
by the way, scapy doesn't tell me to do anything after running the pip installation.
echo the fix script on ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth
import site;  site.addsitedir("/usr/local/lib/python2.7/site-packages")

Running kickthemout at this point, only showed blank.
Since I use python installation from brew, I manage to reinstall my python and delete my whole pip modules. Try to install all kickthemout dependency modules from the beginning.  But still none.

it only shows blank screen until I press Control + C, no menu prompt, no error, just nothing..


Usage? Maybe update the README

Came to here from the post under /r/NixOS and want to try it out but don't know how to start. Could you update the README and add some usage instructions? I think your post in reddit maybe a good start.

I followed your post in reddit and tried to build a sdImage for my OPi5 but got following error:
       error: Neither nixpkgs.hostPlatform nor the legacy option nixpkgs.system has been set.
       You can set nixpkgs.hostPlatform in hardware-configuration.nix by re-running
       a recent version of nixos-generate-config.
       The option nixpkgs.system is still fully supported for NixOS 22.05 interoperability,
       but will be deprecated in the future, so we recommend to set nixpkgs.hostPlatform.

Following is my flake.nix:
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
    socle = {
      url = "github:dvdjv/socle";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs @ {self, nixpkgs, socle, ...}: {
    nixosConfigurations = let
        pkgs = import nixpkgs {
          localSystem = "x86_64-linux"; crossSystem = "aarch64-linux";
        };
    in {
      orangepi5 = nixpkgs.lib.nixosSystem {
        modules = [
          socle.nixosModules.orangepi-5

          {
            nixpkgs.buildPlatform.system = "x86_64-linux";
            nixpkgs.config.allowUnfree = true;
            #nixpkgs.overlays = [ (final: prev: { mesa = socle.packages.aarch64-linux.mesa-panfork; }) ];

            time.timeZone = "Asia/Shanghai";

            services.openssh.enable = true;

            hardware.deviceTree.enabledOverlays = [
              # "rockchip/overlay/rk3588-disable-led.dtbo"
              # "rockchip/overlay/rk3588-wifi-ap6275p.dtbo"
            ];
            hardware.opengl.enable = true;
            #hardware.opengl.package = nixpkgs.lib.mkForce  #socle.packages.aarch64-linux.mesa.drivers;
            nix.settings.experimental-features = [ "nix-command" "flakes" ];
            boot.tmp.useTmpfs = true;
            zramSwap.enable = true;

            networking.hostName = "orangepi5";

            users.users.chenjf = {
              isNormalUser = true;
              password = "Passw0rd";
              extraGroups = [ "wheel" ];
              packages = with pkgs; [ btop ];
            };
          }
        ];
      };
    };
  };
}

Could this be due to cross-compile? I've been trying to build the image in a X86_64 VPS.

Appreciate your interest in my work!
This particular issue you are facing is due to changes I made to support pkgs.nixos as well as lib.nixosSystem. You are right, it should be reflected in the README file. I'm planning on adding a template to facilitate creation of SD images. Meanwhile I've created a stable branch you can use. It's lagging behind main (no libmali, no 3d acceleration), but I won't merge breaking changes there before they are reflected in the documentation. Try using the following flake:
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
    socle = {
      url = "github:dvdjv/socle/stable";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = inputs @ {self, nixpkgs, socle, ...}: {
    nixosConfigurations = let
        pkgs = import nixpkgs {
          localSystem = "x86_64-linux"; crossSystem = "aarch64-linux";
        };
    in {
      orangepi5 = nixpkgs.lib.nixosSystem {
        modules = [
          socle.nixosModules.orangepi-5

          {
            nixpkgs.buildPlatform.system = "x86_64-linux";
            nixpkgs.config.allowUnfree = true;

            time.timeZone = "Asia/Shanghai";

            services.openssh.enable = true;

            hardware.deviceTree.enabledOverlays = [
              # "rockchip/overlay/rk3588-disable-led.dtbo"
              # "rockchip/overlay/rk3588-wifi-ap6275p.dtbo"
            ];
            nix.settings.experimental-features = [ "nix-command" "flakes" ];

            networking.hostName = "orangepi5";

            users.users.chenjf = {
              isNormalUser = true;
              password = "********";
              extraGroups = [ "wheel" ];
              packages = with pkgs; [ btop ];
            };
          }
        ];
      };
    };
  };
}


Installer improvements when alt creds are required for elevation

When installing nvm-windows, if you supply alternate credentials to gain elevation, the installer will create the user environment variables under the user profile of the credentials you supplied rather then the user profile of the user who originally launched the installer. To get around this I made use of the ExecAsOriginalUser Inno Setup function. This function lets you shell execute under the original user. I was able to call REG.EXE to add %NVM_HOME% and %NVM_SYMLINK% but to handle the parsing/appending of the original path I had to create a VBScript and launch it with ExecAsOriginalUser. I actually created a setuserenv.vbs for the install and unsetuserenv.vbs for the uninstall.

Thanks for this, and sorry for the delayed response (I've been out of town). I should be able to review/test this next week.

Is there any Update when you have time for some review? Sounds like a solution for my problems too. :)

Better late than never. This just got buried.


Fix table in README.md

I just changed the formatting to render it as a table. You forgot to add the | before and after each row.

table header 1
table header 2
table header 3

table cell 1
table cell 2
table cell 3

Also changed the tabs for the sample const data

Thanks!

No prob. And thank you for this library. 😄


##Editing problems

After accessing the site and logging in, when wanting to edit again, the user asks and does not always perform the validation correctly

I upgraded DNN from version 7.4 to version 9.6, installed the active directory module as previously other validation was used. Users can log in correctly, however, administrator users navigate the page and when they want to edit something, a popup appears asking for their credentials and these are not validated.
In addition, the personal bar is constantly getting up

This module only authenticates. It is not used for checking permissions, etc after login. It is not used when editting or persona bar. The behavior you are experiencing, I have found, is usually permissions related. This is especially true if the popup you see is from IIS.

Does this only happen on the server where DNN is installed ? Then it may be the same problem we also faced a few days ago.
We were able to solve this by disabling the loopback-check on the server via a registry setting (see link below)
https://www.experts-exchange.com/articles/1006/Fix-401-1-Error-when-browsing-a-website-using-integrated-authentication-directly-from-the-server.html

Click Start, click Run, type regedit, and then click OK.

In Registry Editor, locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

Right-click Lsa, point to New, and then click DWORD Value.

Type DisableLoopbackCheck, and then press ENTER.

Right-click DisableLoopbackCheck, and then click Modify.

In the Value data box, type 1, and then click OK.

Quit Registry Editor, and then restart your computer.

Hope that helps


Adding Python 3.12

Raising to track adding Python 3.12 packages

@conda-forge-admin , please re-render


404 at /engine/security/https/

I found a broken link : https://docs.docker.com/engine/security/https/
I arrived on this page through: https://www.google.com/
Search request: docker setup tls

This issue seems to have been fixed here:
https://github.com/docker/docker.github.io/pull/12237/files

oh; actually not; looks like the redirect that was created is incorrect; https://github.com/docker/docker.github.io/pull/12237/files#diff-1b37445b8d60f8f91d1847a51015fbbd4a2f6966403a132ebd31680e0d1274ffR7

Oh I see. Mind if take this one @thaJeztah ?

Opened https://github.com/docker/docker.github.io/pull/12322 to fix
in the meantime; the correct URL is https://docs.docker.com/engine/security/protect-access/

Oh I see. Mind if take this one @thaJeztah ?

Oh!! So sorry, I think I was just walking to my computer, and missed your comment 😔
Apologies!!

Oh I see. Mind if take this one @thaJeztah ?

Oh!! So sorry, I think I was just walking to my computer, and missed your comment 😔
Apologies!!

No worries!! 😄 And good catch!


Can ability to suppress TLOG backup entry in SQL Error Log (no effect to Full backup entries) be added?

Description of the feature
Without implementing the global flag to suppress all backup info from the SQL error log, would it be possible to add capability for Ola script to include something to suppress TLOG backup entries from the SQL error log, keeping the Full backup entries?

I am not aware of a way to do that in SQL Server.


perf(db): add indexes for table prover_task, columns respectively: task_id, created_at

Purpose or design rationale of this PR
Add two index for table prover_task

the task_id index is used to find chunk or batch's related prover_task more effiencint
the created_at index is used for calculating statistic data(such as total proved tasks) partitionally ( split by created_at range)

PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:

[ ] build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
[ ] ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
[ ] docs: Documentation-only changes
[ ] feat: A new feature
[ ] fix: A bug fix
[x] perf: A code change that improves performance
[ ] refactor: A code change that doesn't fix a bug, or add a feature, or improves performance
[ ] style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
[ ] test: Adding missing tests or correcting existing tests

Deployment tag versioning
Has tag in common/version.go been updated or have you added bump-version label to this PR?

[x] No, this PR doesn't involve a new deployment, git tag, docker image tag
[ ] Yes

Breaking change label
Does this PR have the breaking-change label?

[x] No, this PR is not a breaking change
[ ] Yes

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

Project coverage is 56.11%. Comparing base (d7a5723) to head (a313ff7).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1283   +/-   ##
========================================
  Coverage    56.11%   56.11%
========================================
  Files          156      156
  Lines        12131    12131
========================================
  Hits          6807     6807
  Misses        4798     4798
  Partials       526      526

Flag
Coverage Δ

coordinator
19.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


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

when i debug the Apollo 6.0's planning module code in VSCode  in Ubuntu18.04,  there are an error " [mainboard]poco LibraryLoadException: libc10.so: cannot open shared object file: No such file or directory ", this error result in the program failed. How to solve this problem?
when  "args": ["-d","/apollo/modules/planning/dag/planning.dag"],   changed
"args": ["-d","/apollo/modules/localization/dag/dag_streaming_msf_localization.dag"],
there are no errors.
In VSCode ,the launch.json is:
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息，请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++ - 生成和调试活动文件",
"type": "cppdbg",
"request": "launch",
"program": "/apollo/bazel-bin/cyber/mainboard",
"args": ["-d","/apollo/modules/planning/dag/planning.dag"],
        "stopAtEntry": false,
        "cwd": "/apollo",
        "environment": [],
        "externalConsole": false,
        "MIMode": "gdb",

        "setupCommands": [
            {
                "description": "为 gdb 启用整齐打印",
                "text": "-enable-pretty-printing",
                "ignoreFailures": true
            }
        ],
        // "preLaunchTask": "C/C++: g++ 生成活动文件",
        "miDebuggerPath": "/usr/bin/gdb"
    }
]

}
The errors in terminator are :
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0213 20:56:13.039528 11365 module_argument.cc:81] []command: /apollo/.cache/bazel/540135163923dd7d5820f3ee4b306b32/execroot/apollo/bazel-out/k8-dbg/bin/cyber/mainboard -d /apollo/modules/planning/dag/planning.dag
I0213 20:56:13.039855 11365 global_data.cc:153] []host ip: <IP_ADDRESS>
W0213 20:56:13.039862 11365 environment.h:33] []Environment variable [CYBER_PATH] not set, fallback to
I0213 20:56:13.040624 11365 module_argument.cc:57] []binary_name_ is mainboard, process_group_ is mainboard_default, has 1 dag conf
I0213 20:56:13.040634 11365 module_argument.cc:60] []dag_conf: /apollo/modules/planning/dag/planning.dag
E0213 20:56:27.844175 11365 class_loader_utility.cc:220] [mainboard]poco LibraryLoadException: libc10.so: cannot open shared object file: No such file or directory
E0213 20:56:27.844211 11365 class_loader_utility.cc:236] [mainboard]poco shared library failed: /apollo/bazel-bin/modules/planning/libplanning_component.so
E0213 20:56:27.844233 11365 class_loader_manager.h:70] [mainboard]Invalid class name: PlanningComponent
E0213 20:56:27.844249 11365 module_controller.cc:67] [mainboard]Failed to load module: /apollo/modules/planning/dag/planning.dag
E0213 20:56:27.844255 11365 class_loader_utility.cc:258] [mainboard]Attempt to UnloadLibrary lib, but can't find lib: /apollo/bazel-bin/modules/planning/libplanning_component.so
E0213 20:56:27.844259 11365 mainboard.cc:39] [mainboard]module start error.

I found libc10.so is used by pytorch, The latest planning does use torch, are you sure the code and container version match?

Thanks.
The Apollo code version is  r 6.0.0 ,
the container version is
$ bash docker/scripts/dev_start.sh
[INFO] Use default GeoLocation settings
[INFO] Start pulling docker image apolloauto/apollo:dev-x86_64-18.04-20200914_0742 ...
dev-x86_64-18.04-20200914_0742: Pulling from apolloauto/apollo
Digest: sha256:f5724a46510d64edd5f23c55eeab664ee1196480de49ed3818a8513469b69f82
Status: Image is up to date for apolloauto/apollo:dev-x86_64-18.04-20200914_0742
docker.io/apolloauto/apollo:dev-x86_64-18.04-20200914_0742
I don't know are they matched.   if I want to debug the code in 6.0, how to add the libc10.so ?  Thank you!

Seems they are match, pls run below cmd to init env first
source scripts/apollo_base.sh

Thank you !!!
It's work now!  There are no the/libtorch_cpu/directory in /usr/local/ before, i download libtorch from website.   when before pushing F5 to debug in VSCode ,   need to execute  source scripts/apollo_base.sh .

Thank you !!! It's work now! There are no the/libtorch_cpu/directory in /usr/local/ before, i download libtorch from website. when before pushing F5 to debug in VSCode , need to execute source scripts/apollo_base.sh .

hello,i am confronted with the same proplem as you. can you describle your approach more detailly? should i download libtorch outside the docker and remake the new folder named "/libtorch_cpu/"?

I found libc10.so is already in ls /usr/local/libtorch_cpu/lib/, it should be found by the ld linker


Local images from file system should resolve to Iris/Images as the default path to look in

If a user wants to insert a local image from the file system, the default path should resolve to Iris/Images.
The folder helps keep all images in one place and makes it easy to backup the Iris directory. This should avoid path issues for local images at least.
Drag and drop images is another feature that would be good to have. However, that will be in a future release at the earliest.

I quickly tested this Electron protocol, and it seems to work fine. This is apparently a safe way of doing it, since many older methods forcefully disable flags and whatnot in the Electron main process, causing unwanted security issues.
Reference: https://www.electronjs.org/docs/latest/api/protocol

In index.ts

import { protocol, net } from 'electron'

//initialize app

app.whenReady().then(() => {
  protocol.handle('image', (request) =>
    net.fetch('file://' + request.url.slice('image://'.length)))
})

Add image: data: 'self' to CSP in index.html

Launch Iris in dev

Change to Advanced Mode

Use image syntax with the custom protocol to search the image locally

![test](image::///Users/alex/Iris/Images/test.png)

Change to Reading Mode, and you should see the image loaded from the local filesystem.

For now, it doesn't have to reside within the main notes folder, but in future releases, there will be an Images folder within the Iris directory. It would be logical to force the resolve path so users won't have issues with loading their images in case they accidentally delete them.

I quickly tested this Electron protocol, and it seems to work fine. This is apparently a safe way of doing it, since many older methods forcefully disable flags and whatnot in the Electron main process, causing unwanted security issues.
Reference: https://www.electronjs.org/docs/latest/api/protocol

In index.ts

import { protocol, net } from 'electron'

//initialize app

app.whenReady().then(() => {
  protocol.handle('image', (request) =>
    net.fetch('file://' + request.url.slice('image://'.length)))
})

Add image: data: 'self' to CSP in index.html
In markdown-parser.ts, set ALLOW_UNKNOWN_PROTOCOLS to true in DOMPurify options. Not sure how safe this is, but for now it's fine.
Launch Iris in dev
Change to Advanced Mode
Use image syntax with the custom protocol to search the image locally

![test](image::///Users/alex/Iris/Images/test.png)

Change to Reading Mode, and you should see the image loaded from the local filesystem.

For now, it doesn't have to reside within the main notes folder, but in future releases, there will be an Images folder within the Iris directory. It would be logical to force the resolve path so users won't have issues with loading their images in case they accidentally delete them.

The protocol above allows advanced mode users to use the local filesystem as a path for greater flexibility. This will be part of the next update for Iris.
Note for Basic Mode users:
You can copy an image and paste it directly into the editor. It will transform the pasted image data into base64, creating a hard link. I don't remember what package or lines of code that enables this, so I'll take a look at it when I have time.

Since this feature doesn't affect the critical parts the core (only changes to Electron main process and Markdown parser), I might create a commit for this in the main branch within the next week or so. If that's the case, the update will be v0.2.0-dev-4.3.
This is a very simple addition to the code and can be easily removed or modified if necessary.

 protocol.handle('image', (request): Promise<Response> => {
    return net.fetch('file://' + request.url.slice('image://'.length)).catch((e) => console.error(e)) as Promise<Response>
 })

Not 100% necessary but just added types and have it able to throw exceptions if needed.

Changes are live in v0.2.0-dev-4.3 branch.
I won't merge into main branch yet since I want to tweak/add a few things.

Changes are live in v0.2.0-dev-4.3 branch.
I won't merge into main branch yet since I want to tweak/add a few things.

I will submit a PR instead of directly merging into main once v0.2.0-dev-4.3 is ready. The PR makes it easier for tracking and future reference.

Reference from #90:

In https://github.com/alexwkleung/Iris/commit/ed77dc943c27fabc0ca141d4e7aa5a1b33a80b71, I added a default path to the local protocol so that it includes the home directory + /Iris/Images.
The syntax to link images from Iris/Images will be in the form ![alt_name](local://image_name). Make sure to add the file extension as well.

Will be closed once v0.3.0-dev.1 releases. This is complete as of now.


Add common used mibs

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


Installation issue

Hello,
I'm encountering an issue when trying to install the grouped-gemm package during the Docker image build process. The installation fails with an error indicating that no NVIDIA driver is found. This happens despite using a CUDA-enabled base image.
 Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

Full error log:
#16 83.25 /tmp/pip-build-env-a17rx2c3/overlay/local/lib/python3.10/dist-packages/torch/_subclasses/functional_tensor.py:295: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.)
#16 83.25 cpu = _conversion_method_template(device=torch.device("cpu"))
#16 83.25 No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
#16 83.25 Traceback (most recent call last):
#16 83.25   File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
#16 83.25     main()
#16 83.25   File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
#16 83.25     json_out['return_val'] = hook(**hook_input['kwargs'])
#16 83.25   File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
#16 83.25     return hook(config_settings)
#16 83.25   File "/tmp/pip-build-env-a17rx2c3/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
#16 83.25     return self._get_build_requires(config_settings, requirements=['wheel'])
#16 83.25   File "/tmp/pip-build-env-a17rx2c3/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 295, in _get_build_requires
#16 83.25     self.run_setup()
#16 83.25   File "/tmp/pip-build-env-a17rx2c3/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 311, in run_setup
#16 83.25     exec(code, locals())
#16 83.25   File "<string>", line 16, in <module>
#16 83.25   File "/tmp/pip-build-env-a17rx2c3/overlay/local/lib/python3.10/dist-packages/torch/cuda/__init__.py", line 509, in get_device_capability
#16 83.25     prop = get_device_properties(device)
#16 83.25   File "/tmp/pip-build-env-a17rx2c3/overlay/local/lib/python3.10/dist-packages/torch/cuda/__init__.py", line 523, in get_device_properties
#16 83.25     _lazy_init() # will define _get_device_properties
#16 83.25   File "/tmp/pip-build-env-a17rx2c3/overlay/local/lib/python3.10/dist-packages/torch/cuda/__init__.py", line 319, in _lazy_init
#16 83.25     torch._C._cuda_init()
#16 83.25 RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

Steps to Reproduce

Create a Dockerfile with the contents provided above.
Run docker build -t test-image . to build the Docker image.
Observe that the build fails during the pip install grouped-gemm step with the error about missing NVIDIA drivers.

Are you able to resolve this issue? I encountered the exact same situation and was unable to solve it despite trying different methods for three days.

Nope, I wasn't able to solve it @lingjzhu


added support for 2.12.nightly and 2.13.nightly and some non stable versions

resolves #702 and resolves #687

It yet requires the repository to be specified for Scala 2 nightlies with repl .

Awesome! This will have at least one enthusiastic user. cc @dwijnand


refactor: Upgraded to h3 => v1.8.0 dependency in nitro-cors.

refactor: Upgraded to h3 => v1.8.0 dependency in nitro-cors.
Includes refactor to utilise the new EventHandlerRequest type from h3 v1.8.0 rather than any.
Includes refactor to deprecate the getMethod() utility in favour of event.method with h3 v1.8.0.

Looks good to me. If you are able to verify inferred types are working well, that would be great. (Could maybe add a type fixture too just to confirm but that could be beyond the scope.)

Hey @danielroe , this would be cool.
I've taken a look at attempting to mock the H3 Event to check types, I need to mock the ServerResponse, but have had varying levels of success, do you know how this could be mocked?
I've tried this:
it('should return the correct types when specified', async () => {
      const handler = defineCORSEventHandler(
        async event => {
          return {
            cors: true
          }
        },
        {
          origin: '*',
          methods: '*'
        }
      )

      const req = new IncomingMessage(new Socket())

      const res = await handler(createEvent(req, {} as H3Event['res']))

      expectTypeOf(res).toEqualTypeOf<{
        cors: boolean
      }>()
    })

But the test is failing to append response headers (obviously, as it is dummy mocked).
Any ideas? 🤔

For type testing, it's sufficient to have a file in which the utility is used - and then run a typechecking step. The file doesn't need to be run. See https://vitest.dev/guide/testing-types.html for more info.

For type testing, it's sufficient to have a file in which the utility is used - and then run a typechecking step. The file doesn't need to be run. See https://vitest.dev/guide/testing-types.html for more info.

Ah yes, quite right, makes sense. I've updated with a few small tests with verify everything is working well.


Issue with latest webpack skeleton

upon initializing aurelia orm(  .plugin(PLATFORM.moduleName("aurelia-orm"), ()=>{})) in the latest webpack skeleton, you get this error:
Error: Unable to find module with ID: aurelia-validation/validate-binding-behavior
    at WebpackLoader.<anonymous> (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9506:35)
    at step (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9355:23)
    at Object.next (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9336:53)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9330:71
    at 150.__awaiter (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9326:12)
    at WebpackLoader.150.WebpackLoader._import (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9471:16)
    at WebpackLoader.<anonymous> (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9571:44)
    at step (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9355:23)
    at Object.next (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9336:53)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9330:71
From previous event:
    at 150.__awaiter (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9326:12)
    at WebpackLoader.150.WebpackLoader.loadModule (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9558:16)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9549:65
    at Array.map (native)
    at WebpackLoader.150.WebpackLoader.loadAllModules (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9549:32)
    at ViewEngine.importViewResources (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:26931:24)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:46240:23
From previous event:
    at loadResources (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:46231:7)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:46308:14
    at next (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:46188:30)
    at runTasks (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:46194:10)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:46474:16
From previous event:
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:46473:21
From previous event:
    at FrameworkConfiguration.apply (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:46458:42)
    at Aurelia.start (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:46074:37)
    at Object.<anonymous> (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:52424:50)
    at step (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:52347:23)
    at Object.next (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:52328:53)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:52322:71
From previous event:
    at main.__awaiter (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:52318:12)
    at Object.configure (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:52366:12)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9220:27
From previous event:
    at config (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9215:54)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9251:12
From previous event:
    at bootstrap (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9250:24)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9237:7
From previous event:
    at run (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9232:59)
    at Object.<anonymous> (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9257:16)
    at Object.149 (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:9258:30)
    at __webpack_require__ (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:50:30)
    at Object.225 (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:17217:18)
    at __webpack_require__ (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:50:30)
    at 0.module.exports.ctor.super_ (http://localhost:8080/app.2b398ae46c359f295998.bundle.js:147:18)
    at http://localhost:8080/app.2b398ae46c359f295998.bundle.js:150:10

As a workaround I added this config to the webpack config:
    new ModuleDependenciesPlugin({
      "aurelia-orm": [
        "./component/association-select",
        "./component/view/bootstrap/association-select.html",
        "./component/view/bootstrap/paged.html",
        "./component/paged"]
    }),

and also this after my aurelia configuration:

  PLATFORM.moduleName("aurelia-validation/validate-binding-behavior");
  PLATFORM.moduleName("aurelia-validation/validation-errors-custom-attribute");
  PLATFORM.moduleName("aurelia-validation/validation-renderer-custom-attribute");

Same question here, mind submitting a PR for this?

I am also getting this issue. The work-around was as @Kukks states, adding this to the plugins section of webpack config:
plugins: [
...
new ModuleDependenciesPlugin({
      "aurelia-orm": [
        "./component/association-select",
        "./component/view/bootstrap/association-select.html",
        "./component/view/bootstrap/paged.html",
        "./component/paged"]
    }),


Icon request: Add robot framework icon for .robot files

Could you help to add an robotframework icon for the '.robot' - file?
Thanks!

Done!

It seems that the implementation not works ?

My bad! Now it should be working!

I have vscode-icons v11.4.0 but there's no icon for .robot files.

Same issue with me on v11.5.0 @robertohuertasm do you have any suggestion for this issue?

@simons-orw, @4nif you have to install a extesion supporting the robot language. Try this one, for instance. That will do the trick!


Misinterpreting UTF-8 BOM when doing !sort

Steps to reproduce
Have a file that starts with a utf-8 Byte Order Marker (BOM), for example with this hex content (as seen by hd example.txt):
00000000  ef bb bf 43 0d 0a 42 0d  0a 41 0d 0a              |...C..B..A..|
0000000c

The leading ef bb bf is the BOM in this case.
Open the file in vim, select all lines and sort them with a filter VG!sort<enter>. This will input a new BOM marker into the file, making it 3 bytes larger and showing that as <feff> in the editor.
Expected behaviour
Lines sorted without any BOM being duplicated.

This does not happen with the :sort command.
It does not happen when running unix sort directly from command line.

Not sure if this is a vim or unix_sort issue.
Version of Vim
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Apr 18 2022 19:26:30) Included patches: 1-3995
Environment
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:        22.04
Codename:       jammy

man sort: GNU coreutils 8.32     February 2022
Logs and stack traces
No response

This is a problem with the sort command, it does not recognize the BOM and handles it like any other character.  The result is that the line with the BOM sorts to the end.
You can see it with "sort example.txt >sorted.txt" and use "xxd sorted.txt".
Using a BOM with UTF-8 is pointless, since there is no byte order.  Just make sure to drop it.

The strangeness occurs in that the result is different when running sort as a standalone tool and when running it through vims filter (:!sort). As seen in the file size, the filtering through unix sort the BOM bytes will follow the first line to it's new sorted location, but vim will also keep the BOM at the top of the file. So now the file is 3 bytes larger.
-rw-rw-r-- 1 david david 12 jun  5 12:30 example.txt
-rw-rw-r-- 1 david david 12 jun  5 13:32 example.unixsort
-rw-rw-r-- 1 david david 12 jun  5 13:34 example.vim_cmd_sort
-rw-rw-r-- 1 david david 15 jun  5 13:33 example.vim_filter_sort

Is it reasonable that vim keeps the BOM bytes at the top of the file, while also letting them filter through the external command sort?

You get what you ask for...
In Vim you can reset the 'bomb' option.  And for cases like this you probably should.


Automatically add span names for jersey instrumentation

For the dropwizard jaeger feature implementation, generate the
default operation name for a given span based on the @Path()
annotations set on the calling resource.

Coverage remained the same at 78.704% when pulling 107bee348c1254376939bfedae7ba98c5993e984 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 107bee348c1254376939bfedae7ba98c5993e984 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 107bee348c1254376939bfedae7ba98c5993e984 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling dbf5949302743167a0c087414765349abcef9ae4 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling dbf5949302743167a0c087414765349abcef9ae4 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling dbf5949302743167a0c087414765349abcef9ae4 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 9dd06fe07f2961567be936666fd975d6d534b1ea on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 9dd06fe07f2961567be936666fd975d6d534b1ea on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 9dd06fe07f2961567be936666fd975d6d534b1ea on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 9dd06fe07f2961567be936666fd975d6d534b1ea on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling eca86e5c18a5fe2d015671fe536e2c78b99d1912 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 6a1b0a9255362c712301fa819d1ad7743fb13263 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 6a1b0a9255362c712301fa819d1ad7743fb13263 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 6a1b0a9255362c712301fa819d1ad7743fb13263 on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 91bedced39bf0eda18b14f46b436612632efd99e on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 91bedced39bf0eda18b14f46b436612632efd99e on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

Coverage remained the same at 78.704% when pulling 91bedced39bf0eda18b14f46b436612632efd99e on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Coverage remained the same at 78.704% when pulling ad9892b7af1e4dca7d9cc577f414a2400a39f00f on add_default_dw_spannames into 5e39de243f9b25a0ba8d4dc4f3bf43c70d05bd0d on master.


Make mobs neutral?

MC 1.12.1
Forge 2485
In Control 3.6.1
(will switch to 1.12.2 shortly)
I tried to make hostile mobs neutral by setting angry to false, but it isn't working for me.
I wonder if it is not possible or if I am doing something wrong. Here is my potentialspawn.json:
https://pastebin.com/xQ2Dkx4f

That's not what angry means. 'angry' means that the mob is specifically angry for a player when it was just attacked. Hostile mobs are hostile even without angry

Not with In Control. That's also a lot more complicated because that involves modifying the AI of the mobs themselves. I can look into it but not at the moment


feat: migrate db with flyway

Codecov Report

Merging #165 (309ffd6) into main (4837a53) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff            @@
##               main     #165   +/-   ##
=========================================
  Coverage     65.47%   65.47%
  Complexity      533      533
=========================================
  Files           162      162
  Lines          4649     4649
  Branches        592      592
=========================================
  Hits           3044     3044
  Misses         1464     1464
  Partials        141      141

Flag
Coverage Δ

*Carryforward flag

api_ut
54.63% <ø> (ø)

server
68.86% <ø> (ø)

Carriedforward from 4837a53

ui
94.51% <ø> (ø)

Carriedforward from 4837a53

*This pull request uses carry forward flags. Click here to find out more.


[Container Registry] Validate delete 404s

On delete operations that return a status code of 404, we should validate the body of the response contains the appropriate response of NAME_UNKNOWN for delete_repository, TAG_UNKNOWN for delete_tag, and MANIFEST_UNKNOWN for delete_manifest` operations

Closing since .NET doesn't have a precedent for this.


Outdated Intero 0.1.39 for GHC 8.6.5

Problem
When installed from MELPA, the default version for intero's autoinstall is still set to 0.1.39 which doesn't support GHC 8.6.5. Since Intero 0.1.40 itself already supports GHC 8.6.5, I simply upgraded the version to autoinstall in intero.el to fix. (related to #618 for supporting GHC 8.6.5)
Input program/project
N/A
Expected behavior
Successful autoinstall of Intero 0.1.40 for GHC 8.6.5.
Actual behavior
After install from MELPA, intero's init installs version 0.1.39 which results in a version mismatch with GHC 8.6.5 (upper bound at 8.6.4 I believe)
Workarounds
Change version to 0.1.40 as set in intero-package-version in intero.el.

How is this done?  Intero is not working for me when I use GHC 8.6.5. It complains that it needs haskeline and maybe tinfo (complete error below). I added haskeline to my .cabal file, and I've already got libtinfo-dev installed, but still I get the same problem.
When I run list-packages in emacs and then press U, I am informed that there are "no packages to upgrade". When I search my system for "intero.el" files, I find a lot of them:
jeff@jeff-Inspiron-5567:~/logic/hode$ sudo find / -name "intero.el"
[sudo] password for jeff:
/home/jeff/.stack/global-project/.stack-work/install/x86_64-linux/ghc-8.6.4/8.6.4/share/x86_64-linux-ghc-8.6.4/intero-0.1.38/elisp/intero.el
/home/jeff/.stack/global-project/.stack-work/install/x86_64-linux/ghc-8.2.2/8.2.2/share/x86_64-linux-ghc-8.2.2/intero-0.1.38/elisp/intero.el
/home/jeff/.stack/global-project/.stack-work/install/x86_64-linux/ghc-8.6.3/8.6.3/share/x86_64-linux-ghc-8.6.3/intero-0.1.38/elisp/intero.el
/home/jeff/.stack/global-project/.stack-work/install/x86_64-linux/ghc-8.6.3/8.6.3/share/x86_64-linux-ghc-8.6.3/intero-0.1.36/elisp/intero.el
/home/jeff/.stack/global-project/.stack-work/install/x86_64-linux/ghc-8.4.3/8.4.3/share/x86_64-linux-ghc-8.4.3/intero-0.1.38/elisp/intero.el
/home/jeff/.stack/global-project/.stack-work/install/x86_64-linux/ghc-8.4.4/8.4.4/share/x86_64-linux-ghc-8.4.4/intero-0.1.38/elisp/intero.el
/home/jeff/.emacs.d/elpa/intero-20190109.2039/intero.el
/home/jeff/code/hask-libs/intero/elisp/intero.el

I changed the definition of intero-package-version in  /home/jeff/.emacs.d/elpa/intero-20190109.2039/intero.el to this:
(defcustom intero-package-version
  (cl-case system-type
    ;; Until <https://github.com/haskell/network/issues/313> is fixed:
    (windows-nt "0.1.40")
    (cygwin "0.1.40")
    (t "0.1.40"))
  "Package version to auto-install.

(before the edits, it was at 0.1.38), but that didn't help. Should I change one of the files in .stack/global-project/? (None of those say "GHC 8.6.5".)
Intero is not installed in the Stack environment.

Installing intero-0.1.38 for GHC 8.6.5 ...

Invalid flag specification:
- Package 'haskeline' not found (specified on command line)

Could not install Intero!

We don't know why it failed. Please read the above output and try
installing manually. If that doesn't work, report this as a
problem.

Guess: You might need the "tinfo" package, e.g. libtinfo-dev.

Hm. It does seem it is installing the incorrect intero version. There are sometimes cached versions of the package that will result in the behavior you are observing (like changing the value but not seeing that reflected when it runs) do you have a .local folder that is possibly holding some cached content?

I'm also running into this even with hardcoding the intero version to 0.1.40 in intero.el - have tried deleting ~/.stack and letting it install, manually installing intero first and checking ~/.local/* is free of intero and haskeline respectively (assuming that's what was meant by cached content) to no avail.
Any indications on what to try from here?
Thanks in advance.

There is likely another cache somewhere, can you check in .emacs.d

I went with the nuclear option of deleting .emacs.d/elpa and redownloading all packages on startup, which seems to have worked - this time it compiled intero from scratch just fine. Thanks!

Haha great, glad it worked!

I went even more nuclear -- accidentally destroyed my system trying to use Wine for audio.
I've reinstalled Kubuntu 18.04 from scratch, and emacs, libtinfo-dev, stack, and (from within emacs) intero (the within-emacs package list interface says it's installed). But I'm running into the same error I was getting before -- when I create a new .hs file in an empty folder, intero is not finding haskeline.
Here's the full error message:
Intero is not installed in the Stack environment.

Installing intero-0.1.39 for GHC 8.6.5 ...

Invalid flag specification:
- Package 'haskeline' not found (specified on command line)

Could not install Intero!

gWe don't know why it failed. Please read the above output and try
installing manually. If that doesn't work, report this as a
problem.

Guess: You might need the "tinfo" package, e.g. libtinfo-dev.

WHAT TO DO NEXT

If you don't want to Intero to try installing itself again for
this project, just keep this buffer around in your Emacs.

If you'd like to try again next time you try use an Intero
feature, kill this buffer.


Typo in definition of SCHED-ENV helper

The definition of the SCHED-ENV helper in [snd.expos] p6 contains:

SCHED-ENV(sch) is an expression o2 whose type satisfies queryable such that o1.query(get_scheduler) is a prvalue with the same type and value as sch, and such that o2.query(get_domain) is expression-equivalent to sch.query(get_domain)..

Should the o1.query(get_scheduler) actually be o2.query(get_scheduler)?
It doesn't make sense to me if it is referring to the o1 expression from the definition of SCHED-ATTRS(sch) preceding it.

@ericniebler confirmed that this seems to be a typo.

Submitted editorial PR to fix: https://github.com/cplusplus/draft/pull/7201

Fix has now been merged into WD.


Update the title of web app

Sweat.it --> Ripped

I've submitted a pull request for this issue, let me know if there are any issues :)

Hi! I would like to work on this

Can you link the MR to this issue.