How Can i override the authorization message of HandlesAuthorization Trait in Policy ?

HI, this kind of question is best suited for the forums ( https://laravel.io/forum , https://laracasts.com/discuss ), this issue tracker is to report issues, bugs or related things to the Laravel's code base.
Anyway, I don't know if I understood correctly your question, but it seems to me that you can override the HandlesAuthorization method in your policy:
<?php

namespace App\Policies;

use App\Models\User\User;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Auth\Access\HandlesAuthorization;

class MyPolicy
{
    use HandlesAuthorization;

    // your regular rules
    public function manage( User $user )
    {
        return $user->id === 1;
    }

    // ...

    // override the deny method from HandlesAuthorization;
    protected function deny( $message = 'My custom message' )
    {
        throw new AuthorizationException( $message );
    }
}

If I am not wrong, The deny method should call when our rules method (manage in above) return false.
But this is not working I should explicitly call this deny method to override the default message.
`
id)
            ->where('unit_type', request()->type)
            ->orderBy('created_at', 'desc')
            ->first();

        $unitAvailable = $UnitTransaction->unit_after_transaction ?? 0;
        if ($unitAvailable <= 0) {

            // $this->deny("Job Unit Not available");
            return false;
        } else {
            return true;
        }

    }

    /**
     * Determine whether the user can update the jobs.
     *
     * @param  \App\User  $user
     * @param  \App\Models\Jobs  $jobs
     * @return mixed
     */
    public function store(User $user)
    {
        $unitType = UnitType::find(request()->unit_type_id)->name;

        $UnitTransaction = UnitTransaction::where('company_id', $user->id)
            ->where('unit_type', $unitType)
            ->orderBy('created_at', 'desc')
            ->first();

        $unitAvailable = $UnitTransaction->unit_after_transaction ?? 0;

        if ($unitAvailable <= 0) {

            $this->deny("Job Unit Not available");
            return false;
        } else {
            return true;
        }
    }

    /**
     * Determine whether the user can update the company payment.
     *
     * @param  \App\User  $user
     * @param  \App\  $companyPayment
     * @return mixed
     */
    public function update(User $user, Jobs $jobs)
    {
    }

    /**
     * Determine whether the user can delete the jobs.
     *
     * @param  \App\User  $user
     * @param  \App\Models\Jobs  $jobs
     * @return mixed
     */
    public function delete(User $user, Jobs $jobs)
    {

    }

    // override the deny method from HandlesAuthorization;
    protected function deny( $message = 'Jobs Unit Not Available' )
    {
        throw new AuthorizationException( $message );
    }
}
`

Are you using a custom FormRequest on your controller?
Searching for this message (This action is unauthorized.) the only other place it appears in the FormRequest's failedAuthorization method which you can override in your custom class if you are extending it.
Again please don't use the issue tracker for this kind of question. This kind of question is best suited for the forums ( https://laravel.io/forum , https://laracasts.com/discuss )

Hi there,
Welcome to Laravel and we are glad to have you as part of the community.
Unfortunately this GitHub area is not a support area for general application issues. This is only for issues/bugs with the framework code itself.
I will be closing your ticket here. Instead please try asking your question on one of the many great community support areas that will likely give you a better answer more quickly:

Laravel Slack (https://larachat.co/)
Laravel.io Forum (https://laravel.io/forum)
Laracasts Forum (https://laracasts.com/discuss)
StackOverflow (http://stackoverflow.com/questions/tagged/laravel)

If you feel I've closed this issue in error, please provide more information about how this is a framework issue, and I'll reopen the ticket.
Thanks in advance.


So is this a fork of JSR330?

@starksm64 I noticed, Jakarta Dependency Injection was already in Jakarta EE 8, but the package namespace remains javax.inject.
Was this a fork? I assume the Apache License allows that as long as you keep the names or the original authors there, just curious, but I trust it was where necessary also approved by Oracle and the JCP (EC).

This was a fork. There should not be a need to obtain permission from Oracle.

Nor from the Maintenance Leads?

Neither of us are lawyers, but we obviously got a lot to do with this kind of stuff either in the JCP or now Jakarta EE WG. From an Apache point it seems "Derivative Work", so as the Maintenance Leads insisted, everything (in their view even the Spec which of course was non-existent anyway ;-) was covered by the Apache License, that sounds fine. It may help to put something in NOTICE.md but I'm sure your legal team at RH/IBM can confirm if it's necessary or not.

The leads were contacted multiple times by both the Eclipse Foundation and Oracle without any response, so this fork was created.


Fix architecture spelling

Fix architecture spelling

@fbeltrao : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off to merge approved spelling correction submitted in this PR.


Codecov Report

Merging #718 into release/0.8.0 will not change coverage.

@@              Coverage Diff              @@
##           release/0.8.0    #718   +/-   ##
=============================================
  Coverage           7.43%   7.43%
=============================================
  Files                 21      21
  Lines               2581    2581
=============================================
  Hits                 192     192
  Misses              2372    2372
  Partials              17      17

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 33bc84c...149fe4c. Read the comment docs.


Add support for X-B3-Sampled header and sampled flag in Trace object

The current absence of support for sampled headers means that a sampling decision at the edge of a suite of services is not honoured on downstream systems.
This pull request addresses that issue and ensures that the holistic sampling decision for the current node (be it inherited from upstream request headers, or made locally) is also made available in the trace headers, so they can be attached to any downstream request

Hi @dustyburwell,
Are there any remaining aspects that you feel need addressing? If not do you know when you may be able to merge this pull?

@drpacman this looks good otherwise. If you wouldn't mind doing a quick rebase, I'll get this merged.

@dustyburwell, hope thats all good now


example oauth login UWP

as requested in another issue, I would like to see an example in the documentation how I can enable my UWP-app to let users login to their dropbox-account by OAuth.
In such a way that they can use their on Apps-folder in DropBox for the data which is used by my UWP-app.
I tried to use DropBoxOAuth2Helper but I could not get it working. So right now I added an token to the constructor of my DropBoxClient but I can't use that for production.
See please provide an working example for UWP apps.

There are some examples in the documentation for DropboxOAuth2Helper. Can you share the details of the issue you're seeing with that? Please share:

the steps to reproduce the issue
the code you're using
the unexpected error or output or behavior

Thanks in advance!

the first example on this help/documentation-page doesn't work on UWP because certain classes are not available. So that is already the first issue

        var redirectUri = "https://www.dropbox.com/1/oauth2/redirect_receiver/";
        var authUri = DropboxOAuth2Helper.GetAuthorizeUri(OAuthResponseType.Token, _appKey, new Uri(redirectUri), _appSecret, true, false);
        try
        {
            var result = await WebAuthenticationBroker.AuthenticateAsync(WebAuthenticationOptions.None, authUri, new Uri(redirectUri));
        }
        catch (Exception e)
        { }

result is a message that the service can't be reached (http 400)

Thanks! I've sent this along as a request for a sample that works with UWP out of the box.
Also, for that 400 error, can you share the full output? If the authorization page is failing, it should return a more useful error in the body.

thanks! I will come back with you about the response.
This example/demo: https://github.com/dropbox/dropbox-sdk-dotnet/tree/master/dropbox-sdk-dotnet/Examples/UniversalDemo/UniversalDemo
is not correct anymore because this is about the WindowsPhone-era, so that is why it would be really helpful to have an out-of-the-box example for Windows 10 UWP/Xamarin


Fix "cannot delete PXC: resource was not found in Kubernetes cluster" failures

don't try to delete a pxc cluster which is already in deleting status (cannot delete PXC: resource was not found in Kubernetes cluster)
randomize pxc clusters names to avoid creating pxc clusters which already exist
move PMM-T509 to the bottom cause this scenario seems to cause having pxc clusters in deleting for longer time and causing all these random failures

One failed test:
https://pmm.cd.percona.com/blue/organizations/jenkins/pmm2-dbaas-e2e-tests/detail/pmm2-dbaas-e2e-tests/697/tests
Which is unrelated and was failing before:
https://pmm.cd.percona.com/blue/organizations/jenkins/pmm2-dbaas-e2e-tests/detail/pmm2-dbaas-e2e-tests/678/tests/

https://pmm.cd.percona.com/blue/organizations/jenkins/pmm2-dbaas-e2e-tests/detail/pmm2-dbaas-e2e-tests/722/pipeline/7


Update list of bindings.

I would like to introduce my libui-ng Rust binding to the binding list: libui
(For people knowing the original libui that is certainly confusing, for most in the Rust ecosystem it should not be :)
Its actually a fork or continuation of iui (here listed as libui-rs), with the new features of libui-ng and of course a unique flavor to it. Like iui did before, libui-ng is also not compiled with the supplied build system (Meson + Ninja), but a custom build script calling the compilers directly to cut down on dependencies.
Please consider adding it to the list.

Looks good, thanks for your contribution.

libui-ng is also not compiled with the supplied build system (Meson + Ninja), but a custom build script calling the compilers directly to cut down on dependencies.

Obviously you figured out how to do things manually, but would cmake make your life easier? Or is that still too much of an dependency?

The original authors did most of the work. I just happened to like it and plan to continue it as long as its reasonable.
CMake/Meson is not something a Rust user typically has, and there is already a build script running that generates the low level bindings, so why not invoke the compiler directly? For example, this gave me a hassle free installation on Win 7 because Meson 58 (as required by the meson build script) requires Win 10. The Rust build script just worked.
If I were to build something with C++, I likely have CMake already and the situation would be different :)


add doc for new flag experimental-keystone-ca-file

add doc for this new flag.

This change is

Since this was sent, the 1.5 branch has been cut.  So, this needs to be cherry picked to release-1.5 as well.

Some feedback on wording, for clarity and avoiding run-on sentences.

@devin-donnelly I've already fixed that. Thanks for your review.


DASH non play

I am using nginx 1.11.5 and 1.11.6 and last nginx-rtmp-module with ffmpeg 2.8.8 and ffmpeg last git and when I try to play the mpeg-dash via player bitmovin or ffmpeg or vlc or other and I cant play this file, the hls is ok but the mpeg-dash is not playable
thanks for all
best regards

Can you share your nginx.conf file?

user  root;
worker_processes  1;
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;
#pid        logs/nginx.pid;
events {
worker_connections  1024;
}
http {
include       mime.types;
default_type  application/octet-stream;
#log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
#                  '$status $body_bytes_sent "$http_referer" '
#                  '"$http_user_agent" "$http_x_forwarded_for"';

#access_log  logs/access.log  main;

sendfile        on;
#tcp_nopush     on;

#keepalive_timeout  0;
keepalive_timeout  65;

#gzip  on;

server {
    listen       80;
    server_name  localhost;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;

    location / {
        root   html;
        #root   /home/ubuntu/src/janus-gateway/html;
        index  index.html index.htm;
    }

    location /demo
    {
            root html;
            index  index.html index.htm;
     }
    }

    location /live {
        # Serve DASH fragments
        root /usr/local/nginx/html;
        add_header Cache-Control no-cache;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }

    # proxy the PHP scripts to Apache listening on <IP_ADDRESS>:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://<IP_ADDRESS>;
    #}

    # pass the PHP scripts to FastCGI server listening on <IP_ADDRESS>:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   <IP_ADDRESS>:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}

# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
#    listen       8000;
#    listen       somename:8080;
#    server_name  somename  alias  another.alias;

#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}

# HTTPS server
#
#server {
#    listen       443 ssl;
#    server_name  localhost;

#    ssl_certificate      cert.pem;
#    ssl_certificate_key  cert.key;

#    ssl_session_cache    shared:SSL:1m;
#    ssl_session_timeout  5m;

#    ssl_ciphers  HIGH:!aNULL:!MD5;
#    ssl_prefer_server_ciphers  on;

#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}

}
#}

# HTTPS server
#
#server {
#    listen       443 ssl;
#    server_name  localhost;

#    ssl_certificate      cert.pem;
#    ssl_certificate_key  cert.key;

#    ssl_session_cache    shared:SSL:1m;
#    ssl_session_timeout  5m;

#    ssl_ciphers  HIGH:!aNULL:!MD5;
#    ssl_prefer_server_ciphers  on;

#    location / {
#        root   html;
#        index  index.html index.htm;
#    }
#}

}
rtmp {
server {

    listen 19350;
    chunk_size 4000;

    application hls {
        live on;
        hls on;
        hls_path /tmp/hls;
    }

    # MPEG-DASH is similar to HLS

    application live {
        live on;
        dash on;
        dash_path /usr/local/nginx/html/live;
    }
}

}

Did you check the dash_path is writteable?
When you are streaming can you see the files beign generated in the server?

Yes, I have permissions two write and I can view the files is genenerated but when I play nothing is play


Hi

This just clutters the repo, I don't see why this is not closed yet

Please close this yourself!! @Wassermanone

As @khaki32 said, "This just clutters the repo".


[4.6 preview] Updates to Language Generation, Adaptive samples

Updated the following samples to work with 4.6 preview bits -

experimental\adaptive-dialogs

core bot
using cards bot
multi-turn prompt bot
todo bot

experimental\language-generation

core bot
using cards bot
multi-turn prompt bot

Also fixes #1593


It's a very interesting project.

Hi,Thanks for your excellent work, I'd like to ask if this library can support rasterization and ray tracing

You'd have to be more specific what you mean with rasterization. In the end it renders an image, which is a rasterization for sure.
We don't support ray tracing. This is a render engine based on forward rendering. We have support for e.g. BPR materials, environment maps, shadow ... but no raytracing at this point.


Responsive column control component not working

When we drag and drop the column control component and define the column layout like 50, 50, in the author mode, the layout wont appear as 2 columns(in my case 50%-50% columns). Also we cannot see the parsys of the second column at all. All I see is the first column and parsys underneath. When I edited in firebug and then added a new component in the second column using firebug and surprised to see the component is displayed at the end of the first column components and not next to each other.
Please see the screenshot for more details.

@raviks007 I think you have some good ideas.
Ill close for now and you or someone else that takes an interest can provide an Pull Request w these enhancements.

Can Anyone help me where can i find acs-commons.components?


App lifecycle

Fixes #101

@davidbritch  I would add a bit more detail to your lifecycle picture.
Here's the image taken from android. I think it's important to make a distinction between "Deactivated" and "Stopped"


Switch from ld (the default linker) to using lld for GNU Linux targets

Description

Testing Instructions

#8166  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bgw and the rest of your teammates on  Graphite


feat: add more string mappings

Adding more string mappings and fixing "Mean" which maps to avg in substrait.

LGTM!


Dashes are being escaped

Hi, when trying to set env variable to a value with a dash, a slash will appear in front of the dash in the .env file.
i.e:
 TEST_VAR=my\-test
Can you exclude the dash from being escaped?
Thank you.

fixed

Hello,
I have the same issue when trying to set env variable to a value with + or =, a slash will appear in front of the dash in the .env file.
Can you exclude = and + from being escaped?
Thanks.

Hello,
I have the same issue when trying to set env variable to a value with + or =, a slash will appear in front of the dash in the .env file.
Can you exclude = and + from being escaped?
Thanks.

@msztorc could you also apply this requested change or do you have a workaround for this?

@zfm-andreasmatuszewski reopening this

Fixed in #19

Released v1.3.0
cc: @zfm-andreasmatuszewski  @sourajb


Remove IE or Vanilla concrete

Remove IE or Vanilla concrete for consistency.

That just removes a variety of blocks for building. I don't see the point.


Create Documentation for User View Model

Child of #578
Create documentation for users covering following flows:

Adding Assets using Asset Landing Pages.
Adding Devices and assigning them to assets.

Also, update Tenant Administrator documentation covering the above flows.

Completed


Create SubscriptionTest.php

Build fails due to the subscription file not being present yet, should'nt be a problem. I'll merge.

Thank you for your time 👍 !


Remove Omnizine slime from ghost role pool

About the PR
Reagent slimes are considered minor antagonists, but the omnizine slime essentially can't kill anyone. So fairly frequently players would take the omni slime and try to be friendly which causes extra admin work.
Why / Balance
More potential to harvest from the omni slime if it's not player controlled, plus it doesn't really have the capability of being a minor antagonist so I'd rather not keep running into the same admin issue over something so small.
Technical details

Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

Changelog

no cl

reagent slimes shouldnt have ghost roles at all #24155

it still has omni its just not player controlled

probably best to just remove them all like Izk and ShuEd have suggested. Also maybe just not having an omnizine slime to begin with? It's weird for a negative hostile antagonist to just be an infinite healing source.

probably best to just remove them all like Izk and ShuEd have suggested. Also maybe just not having an omnizine slime to begin with? It's weird for a negative hostile antagonist to just be an infinite healing source.

I think at most the probability of it spawning should be reduced. As it is now, pretty much any chem can spawn, including other meds like Bicardine, so it’d be odd to completely remove Omni without removing the rest of the medicines

Is there another reagent we can swap omnizine for instead of just removing a potential reagent selection?

Cog, make it super rare and the only slime that gets to be a ghost role :trollface:

Cog

Cogchamp?


Upload code coverage to codecov.io

Going to migrate services for coverage reporting, testing out configs for codecov.io.

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Adding GH-actions workflow and updating install.sh

adding the following workflows:

ci workflow for build and test (for each PR created or pushes to master branch.
release workflow using gorelease to trigger on tags pushed.

This PR is also updating the install.sh script to download binaries based on user os and arch (note this was only tested on Darwin/x86_64.
Current release logic? You just need to push a new tag (must adhere to Semver scheme) and a release workflow will trigger adding the artifacts for different OS/Arch combo

Thanks @sarmad-abualkaz ! LGTM
We should make a release after merging this. That way we test this whole thing.
I can try to install the result on my argocd cluster as well.


Add Security.setIgnoreCertificateErrors() to protocol.json

| Operating system	  	 	| Any
| Node.js					| Any
| Chrome/Chromium/...		| Chrome 65.0.3325.146
| chrome-remote-interface	| 0.25.5
Is Chrome running in a container? NO
There was an update to chrome DevTools protocol documentation. They added a new experimental method Security.setIgnoreCertificateErrors(), and marked methods Security.handleCertificateError() and Security.setOverrideCertificateErrors() as deprecated.
Please add Security.setIgnoreCertificateErrors() to protocol.json so we could start (or at least try to) using it before the great recipe from wiki stops working.

You don't really need that those methods are in the protocol.json file anymore, the protocol is fetched from Chrome by default. I'll update the file though...

Thank you, and you're right. Chrome has updated when I opened it's "about" dialog to copy version here, and the new method "magically" started working :)


Grappling Hooks

O, how I have looked. I have found bits and pieces, but never any complete code that I could look at just to figure out what the heck is going on with it. I need some code to make a Custom Grappling Hook. I found projectile ID's and AI's, but never any concrete code to help me learn. Please Help
Best Wishes,
Python

I don't really think this is the place for this... This  place is for issues with the tML framework.
If you need help, I suggest you use either of the following links:
(live) discord chat: http://discord.me/tmodloader
tML TCF thread: http://forums.terraria.org/index.php?threads/1-3-tmodloader-a-modding-api.23726/
tML TCF help thread: http://forums.terraria.org/index.php?threads/official-tmodloader-help-thread.28901/

We should leave this open though, as a grappling hook example is noticeably lacking in ExampleMod.


fix(rosetta): OOpsie -- couldn't find root file back on Windows

The root file was located by comparing file paths in a way that was not
adjusting path separators for Windows, and the result was inability to
match normalized paths with Unix-style ones.
This normalizes paths before attempting to match them, so that the match
can succeed.

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

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 043f8571954ef1f5105b726865a0683cc344e546
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 33b959b3539a563f2bd7f007dd39c9b2e544d584
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: d9ff48da15670eef6ee4a5fb75933238c90c1120
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 0c307c6b135f3a10eafa87219a8f7dfbe382d2fa
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 69def24b32726c745e4c395b1b9177581067085b
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 2ef344071ecf5fb45087ef8713b35dbfff0a28cf
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: df6c25c9fa35d56630b7adbe4c70e04879839f67
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
Commit ID: 6c0a809cc1f8092799f62b6a14b07b42d8c6c5a7
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


New Camera mode

Adds a new camera mode for horizon modes where the point on terrain picked is above the camera's position.

This is pretty awesome.  There is some weird interaction with collision detection though.

Turn on terrain and zoom to everest.
Zoom out a bit.
Grab the top of the peak and move the mouse up.

When the camera hits the ground, it starts zooming out like crazy.

Update CHANGES.md

Are the current tests enough to cover this?  Is it possible to write reasonable tests to cover it better?

It's pretty easy to run into issues with horizon views using just the default Cesium Viewer without terrain.
For example, start with a horizon view then grab and drag the upper right corner of the ground with the left mouse and you get a view like:
http://localhost:8080/Apps/CesiumViewer/index.html?view=-103.65659160619491%2C-35.577131975876%2C19.969294224417173%2C265.7059227273983%2C-63.920647244975434%2C112.60188570528582

@bagnell can you make a short animated gif of this feature so:

@maikuru can post it on twitter to build interest in the 1.11 release
we can include it in the 1.11 blog post

Other than those issues, this feels pretty solid to me.
I'm not sure that we need to add it now, but I wonder if we want a key to override this, e.g., it always pans when Ctrl is down.

It's pretty easy to run into issues with horizon views using just the default Cesium Viewer without terrain.

That was a bug added in my last commit when cleaning up the code. It's fixed.

Is it possible to write reasonable tests to cover it better?

Not without terrain. All of the terrain interaction code is untested.

@pjcozzi This is ready for another look unless you have an idea for tests.

Middle mouse rotate in a horizon view seems like it rotates around the center of the view not the point clicked now.

Middle mouse rotate in a horizon view seems like it rotates around the center of the view not the point clicked now.

It has always done that until the camera goes below ScreenSpaceCameraController.minimumPickingTerrainHeight.

I don't think it is working in this branch.  Try the following in this branch and then with Cesium Viewer on the website:
http://cesiumjs.org/Cesium/Build/Apps/CesiumViewer/index.html?view=-82.48980344101658%2C35.097723283803745%2C31.71191579572227%2C343.51593308097296%2C-6.612181914702152%2C359.94832486804995

It's working for me. It's hard to tell without terrain, but, instead of moving the mouse vertically, move it horizontally. If you click towards the bottom right or left, it will rotate around that point.

Looks good, not sure what the mixup was on my end.


Revert "chore: swapped out prisma for drizzle calls in event and community fe…"

Reverts codu-code/codu#908
Build broke so going to reopen

Summary by CodeRabbit

Refactor

Updated various components to use Prisma for database operations, enhancing type safety and data fetching logic.
Modified event handling logic, including date conversions and sorting.
Adjusted user and community type declarations for clearer and more structured data selection.

Documentation

Updated code comments to reference the correct database schema.

Bug Fixes

Fixed an issue in EventForm where the event date was not accessed correctly, ensuring reliability in form operations.

Anyway to do this build locally @NiallJoeMaher? npm run build isnt breaking for me. Id firstly like to get it breaking locally so I can fix it and secondly like to add it to PR checks

@JohnAllenTech I know what it is! It's my sitemap file. I'm going to get a fix in, and it might save me reverting this.


Revert add array to opencv

Summary by Sourcery
Revert the addition of the add_array_simsimd function and refactor the add_opencv function for better handling of uint8 images with specific value types. Update benchmark results to use 500 images, providing a more comprehensive performance analysis across different operations and data types.
Enhancements:

Refactor the add_opencv function to improve handling of uint8 images with negative scalar values or non-uint8 array values.

Tests:

Update benchmark results to reflect performance changes with 500 images instead of 10, across various operations and data types.

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

Please upload report for BASE (main@8b309b4). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #43   +/-   ##
=======================================
  Coverage        ?   57.93%
=======================================
  Files           ?       20
  Lines           ?     2223
  Branches        ?        0
=======================================
  Hits            ?     1288
  Misses          ?      935
  Partials        ?        0

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


reproduce

hi,
This is an excellent repository. I have successfully preprocessed the data according to the guidelines. But when I tried to train a model, the error was as follows:
"
omegaconf.errors.ConfigAttributeError: Missing key min_abnormal_slice
full_key: data.min_abnormal_slice
object_type=dict
"
How can I solve this bug?
Look forward to your reply!
Thanks.

Thanks! You can set data.min_abnormal_slice in the experiment config yaml.


Support WHOX queries

WHOX docs used: https://sourceforge.net/p/undernet-ircu/ircu2/ci/u2_10_12_branch/tree/doc/readme.who
Supporting WHOX is recommended by ircv3 to add support for the account-notify cap.
The object returned in the WhoxReceived event is an array containing several items. The reason I chose to use an array is that when querying a channel, each 354 message received until 315 (end of /WHO) gets parsed and is added to the list. The developer can then decide what to do with each of the responses received.

I've implemented your suggestions. Would you like me to represent the bitfields as shifts 1 << x or as hexadecimal numbers?

Decimal numbers, please.

1, 2, 4, 8, 16 or 0x01, 0x02, 0x04, 0x08, 0x10?

Well which one of those is decimal

All done.

Thanks!


any native bridge to support arm  -> risc-v?

Any existing (or planned) native bridge to support running arm Apps on risc-v android?

RISC-V support has been upstreamed, and this repository is now being used as an archive.
Please submit any new issues to https://github.com/google/android-riscv64/issues.


Splat format prints a meta object along with the message

Please tell us about your environment:

winston version?

[ ] winston@2
[x] winston@3

What is the problem?

Below is the execution of the following example https://github.com/winstonjs/winston/blob/master/examples/interpolation.js
info: test message my string {"meta":[]}
info: test message 123 {"meta":[]}
info: test message first, second {"meta":{"number":123}}
info: Found error at Tue Jun 12 2018 13:27:06 GMT-0300 (-03) {"meta":[]}
info: Found error at Error: chill winston {"meta":[]}
info: Found error at /WUT/ {"meta":[]}
info: Found error at true {"meta":[]}
info: Found error at 100 {"meta":[]}
info: Found error at 1, 2, 3 {"meta":[]}

As you can see, there are {"meta":[]} on every log entry.
What do you expect to happen instead?

Messages that match size of placeholders and parameters should not print the meta information
Other information

This is a regression of PR #1356

@ChrisAlderson the question around splat and metadata formats is an interesting question. The challenge is that the additional SPLAT is not an object by definition. It is an ordered list. Not opposed to a METADATA symbol which could help these two formats interop better.


add back add_oauth_options in fetch_user/2

fix #21

I second this fix - I have a fork with this change and it works for me.

hey @ntenczar,  would like to have your review on this PR,. the latest version can't get configs when calling fetch_user/2
the change should resolve this issue.


[FEA] Need to release profiling tool jar to maven central

Is your feature request related to a problem? Please describe.
Need to release profiling tool jar to maven central along with 21.06 rapids-plugin jars
Describe the solution you'd like
Deploy the rapids-4-spark-tools jar to the OSS, then it will be released to maven central along with 21.06 rapids-plugin jars.
Additional context
The profiling tool module rapids-4-spark-tools is a new feature for the rapids-plugin, we need to release its jar to maven central for to parse and analyze Spark event logs.

close


Add a rule using the maven-enforcer plugin that requires JDK 8 (or 11)

Task Description
We should add a Maven Enforcer rule that requires:

JDK 1.8 (if possible, 1.8.0_241 or higher) in order to build the code. This check should be in a Maven profile that's triggered, unless the JDK is 11.x.
JDK 11 (if possible, 11.3, or a higher 11.x) in order to build the code. This check should be in a Maven profile that's triggerred only if the JDK is not JDK 1.8.

Please, note that the code in the master does not currently compile using JDK11. If the enforcer rule can be added for this, then this will be pre-work for JDK11 support. (You may want to have a look at the tasks related to #1111).
Tasks
The following tasks will need to be carried out:

[ ] Add this rule in the strongbox-parent.
[ ] Apply this rule to the strongbox project.
[ ] Apply this rule to the strongbox-web-integration-tests.

Task Relationships
This task:

Is relates to #1111 , #1864

Help

Our chat
Points of contact:

@carlspring
@sbespalov
@steve-todorov

@carlspring I can work on adding maven enforcer rule for Java 8) over the weekend. Never worked with JDK 11. But i will give it a try. Can you pls assign this to me?

Hi @suryaprakashraja - this task is currently meant for the participants in the GraceHopperOSD event. Are you in our slack channel?

Hello @steve-todorov , I am not in slack channel. but I would love to be a part of this project. Since this issue was tagged for hacktoberfest2020, I took the liberty of requesting assignation.

Hi @suryaprakashraja ,
This task is open for both the Grace Hopper Open Source Day (GHC OSD) and #Hacktoberfest. GHC OSD is taking place on the 1st of October. If nobody takes this task on the day, then it's all yours.
You can also join our chat channel for more details.

May I be assigned to this task?

@AricMonary ,
Please, feel free to pick it up.

@carlspring I can work on adding maven enforcer rule for Java 8) over the weekend. Never worked with JDK 11. But i will give it a try. Can you pls assign this to me?

Hi @suryaprakashraja ,
Thanks for offering to help! My reply is a bit late, so I do apologize! Would you like to pick another task instead?
Much appreciated!

@carlspring I can work on adding maven enforcer rule for Java 8) over the weekend. Never worked with JDK 11. But i will give it a try. Can you pls assign this to me?

Hi @suryaprakashraja ,
Thanks for offering to help! My reply is a bit late, so I do apologize! Would you like to pick another task instead?
Much appreciated!

@carlspring Sure. Thanks

Posting this here as well so people can find it easy.
Expected failure output:

JDK != 8 || 11[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce (enforce-jdk-and-maven-versions) on project strongbox-parent: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
[ERROR]
[ERROR]  AdoptOpenJDK 13b13 is not a supported JDK version!
[ERROR]  See https://strongbox.github.io/developer-guide/getting-started.html
[ERROR]
[ERROR] -> [Help 1]


[v9.0.0RC2] Can't delete files. Exception is thrown.

I'm unable to delete files in the file manager. When I click delete, I'm prompted and ask to confirm if I want to delete the file. When I click the delete button an exception is thrown. The exception is:
Argument 1 passed to Symfony\Component\EventDispatcher\EventDispatcher::dispatch() must be an object, string given, called in /Users/username/Sites/go/concrete9_beta/concrete/concrete/src/Entity/File/File.php on line 742

This has been fixed in 9.0.0RC3 and will be released shortly.


Vendor helm chart versions based on chartfile.yaml

When calling tk tool charts vendor, and a directory already exists at
the expected chart path, recursively delete that directory unless its
Chart.yaml matches the version of the chart specified in chartfile.yaml.
This allows vendored charts whose versions have changed to be downloaded
by tanka users without first removing the charts directory.
Return errors when Chart.yaml doesn't exist, or is malformed.

Implements https://github.com/grafana/tanka/issues/419

@sh0rez would you mind reviewing this implementation of https://github.com/grafana/tanka/issues/419, if you have time?

Thanks for reviewing @sh0rez! I've implemented some of the suggestions and replied to another. Let me know what you think 👍

Thanks @sh0rez! Looks like there are some dangling threads after the merge. I could address them in a follow-on, or we could let them lie for now?


Switch to depending on @platforms for os constraints

Following on from issue #1000, this is the change that I needed to make locally to switch abseil over to building with --incompatible_use_platforms_repo_for_constraints.

Thank you. I didn't know about this change to Bazel.
You need to sign the CLA in order for us to accept this pull request. If you can't sign it, I can make the change.

Will do!

By the way, I think you also need to add a dependency on the repo in the WORKSPACE file.

I'll add that as well, thanks for pointing that out!

By policy I have to close this because you haven't signed the CLA. However, a change has been pushed to use the platforms repository.

That works for me. I was waiting on Stripe's legal department to approve me, but this is much easier :)


update howto release guide numbers

#4217 didn't update the task item numbers, this fixes that. I'm also hoping to reuse this PR to document the push-to-master rules from #4218, but where would I put those?

[x] Closes #4218

IMO contributing.rst is probably the best place.

Sorry, I had meant to do this! @dcherian merged my incomplete PR, all blame on him!
Thank you for doing this @keewis

I'll merge this so we can fix the problems I had left over from #4217, and then we can do the push-to-master in another PR?


Removing the requirement to specify config.Request

This is a suggestion that may make the code a little easier to work with.  Feel free to disregard if it's not the direction in which you want to go.
I had some trouble trying to get fetch-mock working in my environment (ReactJS tests run via Node) because the Request objects being passed to fetch() weren't being recognised as such by fetch-mock.  I saw that I could supply a Request class to fetch-mock's config.Request parameter, but it took me a while to work out what this was (because I was using node-fetch before I realised that the tests were running with whatwg-fetch instead.  Since these two had different implementations of the Request object, fetch-mock was seeing a whatwg-fetch.Request object, which wasn't an instance of node-fetch.Request, so it was treated as a string and then failing because there was no substr method.)
It does work now I have correctly set config.Request, but I wonder whether this could be simplified.  Using compile-route.js for example, the requirement to know the object type could be eliminated by looking inside the object instead:
function normalizeRequest (url, options, Request) {
//	if (Request.prototype.isPrototypeOf(url)) {
	if (url.url && url.headers) {

By doing this, it doesn't matter which provider of the Request object we have, as they all need to provide the fields from the spec.  So by looking at the fields we need, we no longer care what the object's instance type actually is.
I have tried this change and it allows the code to run correctly, regardless of what you pass as config.Request.
I am not sure whether this could be extended to the other items in config, but if it can, it might make the library easier to use as you would no longer have to tell it which fetch implementation you're using.

A descriptive error message would definitely be helpful.  Especially one that uses typeof or similar to show what type of object was passed vs the one that was expected, to make it abundantly clear if you're using two completely different Request objects as I was!

Error messages improved here https://github.com/wheresrhys/fetch-mock/pull/340


Error upgrade flutter

This is the log when i try to upgrade.
Switching to from alpha to master...
Upgrading Flutter from /Users/arcas/Desktop/flutter...
fatal: Not possible to fast-forward, aborting.
Building unlinked bundles for flutter...             2.1s
Building unlinked bundles for flutter_driver...      0.1s
Building unlinked bundles for flutter_markdown...    0.0s
Building unlinked bundles for flutter_sprites...     0.1s
Building unlinked bundles for flutter_test...        0.1s
Building unlinked bundles for flutter_tools...       0.3s
Building unlinked bundles for playfair...            0.0s
Building unlinked bundles for sky_engine...          0.0s
Building unlinked bundles for sky_services...        0.2s

The Flutter SDK uses git, it's likely that you have modifications to your sdk at /Users/arcas/Desktop/flutter.
You can try:
cd /Users/arcas/Desktop/flutter
git status

to see what modifications you have.
Probably flutter upgrade should give you a better error message here and/or help you understand what to do.

I have use flutter upgrade and thats the output of the console.
I also use git and these is the output:
On branch alpha
Your branch and 'origin/alpha' have diverged,
and have 1 and 200 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   examples/hello_services/android/app/build.gradle
	modified:   examples/stocks/lib/stock_list.dart
	modified:   examples/stocks/lib/stock_row.dart

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	packages/flutter/unlinked.ds
	packages/flutter/unlinked_spec.ds
	packages/flutter_driver/unlinked.ds
	packages/flutter_driver/unlinked_spec.ds
	packages/flutter_markdown/unlinked.ds
	packages/flutter_markdown/unlinked_spec.ds
	packages/flutter_sprites/unlinked.ds
	packages/flutter_sprites/unlinked_spec.ds
	packages/flutter_test/unlinked.ds
	packages/flutter_test/unlinked_spec.ds
	packages/flutter_tools/unlinked.ds
	packages/flutter_tools/unlinked_spec.ds
	packages/playfair/unlinked.ds
	packages/playfair/unlinked_spec.ds

no changes added to commit (use "git add" and/or "git commit -a")

My question is if i'm going to have to upgrade via git or if is a possible solution to do with flutter commands.

The flutter commands wouldn't know how to help you here, since you've made modifications to the flutter repository itself.  It's not clear that we should be using git as our sdk vending solution, but that's what we have for now. ;)
To move forward, I would do git diff and decide if you care about these changes.
If you do:
git add examples
git commit -m "my local changes"

Will turn them into a commit so that flutter upgrade can successfully rebase for you, although honestly I'd run git pull --rebase manually as you could have conflicts you might want to resolve yourself.
If you don't want the changes, you can do git reset --hard to delete them all, or git checkout HEAD path/to/changed/file to reset one file at a time.
Hope that helps?

I should note that your checkout is also on the older alpha branch, I believe flutter upgrade should know how to move you to master which is much more current.

git rebase -a
Solve the problem.
Thanks so much. Flutter is awesome.


Document or help with setting up an AMI with required features

The default AMI for nova is not public, so an AMI with (at least) CodeDeploy is required, and probably Cloudwatch Logs.
Documentation on how this should be set up would be useful.
Ability to set up the integration by automating details from http://docs.aws.amazon.com/codedeploy/latest/userguide/auto-scaling-integ-tutorial.html might be interesting too (at least an ability to specify the instance-setup.sh script to run on installation).

👍

Documented here - http://gilt-nova.readthedocs.io/en/latest/getting_started.html#instance-prerequisites


Update to UIImage extensions and new init 🚀

Checklist

[x] I checked the Contributing Guidelines before creating this request.
[x] New extensions are written in Swift 5.0.
[x] New extensions support iOS 8.0+ / tvOS 9.0+ / macOS 10.10+ / watchOS 2.0+, or use @available if not.
[x] I have added tests for new extensions, and they passed.
[x] All extensions have a clear comments explaining their functionality, all parameters and return type in English.
[x] All extensions are declared as public.
[x] I have added a changelog entry describing my changes.

          4 Messages

:book:
Thank you for submitting a pull request to SwifterSwift. The team will review your submission as soon as possible.

:book:
iOS: Executed 607 tests, with 0 failures (0 unexpected) in 16.705 (18.121) seconds

:book:
tvOS: Executed 581 tests, with 0 failures (0 unexpected) in 4.295 (6.177) seconds

:book:
macOS: Executed 434 tests, with 0 failures (0 unexpected) in 1.180 (1.582) seconds

SwiftLint found issues
Warnings

File
Line
Reason

UIImageExtensions.swift
321
Lines should not have trailing whitespace. (trailing_whitespace)

  Generated by :no_entry_sign: Danger

This is a heavily-blocking initialiser, so I think it should come with some kind of warning, like the one you'll find in the documentation for NSData(contentsOf:options:) (not Data, which is empty for some reason).
Honestly though, I think getting images from URLs is better done through another library, like AlamofireImage, since it's fairly complex.

According to the use of Data(contentsOf:) it is actually meant for local file urls.   Technically,  this should be the same way and have the same warning.   So i DID add that, but i do understand the need to not really confuse people as to the purpose of this init and maybe not include it.  The rest of the PR changes are still valid IMO however.

@guykogus please see further changes made


Amplify init Timeout error on account selection

Note: If your question is regarding the AWS Amplify Console service, please log it in the
official AWS Amplify Console forum

Which Category is your question related to?
amplify init
Amplify CLI Version
4.28.1
You can use amplify -v to check the amplify cli version on your system
What AWS Services are you utilizing?
amplify
Provide additional details e.g. code snippets
? Do you want to use an AWS profile? Yes
? Please choose the profile you want to use default
init failed
Error: connect ETIMEDOUT <IP_ADDRESS>:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
errno: 'ETIMEDOUT',
code: 'NetworkingError',
syscall: 'connect',
address: '<IP_ADDRESS>',
port: 443,
region: 'eu-west-1',
hostname: 'amplify.eu-west-1.amazonaws.com',
retryable: true,
time: 2020-09-03T08:14:37.932Z
}

Hi @abcn534
This seems like network error. Is it happening every time you ran amplify  init?
One thing you can try is reinstalling latest version of amplify cli and try again if this issue still persists.
you can use  npm install -g @aws-amplify/cli@latest
Let me know if this solves your problem.

im still getting the same issue after instlaling the latest version of amplify cli

Hi @abcn534
This seems a networking error. Are you using proxy or VPN?
Also can you try to amplify init in another region and try again?

im using vpn. i tried running amplify init in another region and still getting the error


[feature] Compare HTML content directly

I have most of my code hidden and waits for js to show it,
it will be great if i can just directly compare the html changes in diff,
currently its only comparing the text that is displayed.,
please help.

In the README.md it says we dont support javascript.

@craftpip   https://github.com/dgtlmoon/changedetection.io/tree/javascript-browser   so there's a new experimental branch, I invite you to check it out!


No users found

Subject: No users found
Description:
Search for hosts using the "search" button with criterias too specific to find hosts, making appear "no users found" as an answer
Results:
When I then click on the map to check hosts' profile, I can't open the profile, it seems that I am stuck with the "no users found" message, I have to quit or refresh the entire page go have access again to profiles when I click on them. Thanks!
Backend version: develop-a1b3cff5
Frontend version: develop-a1b3cff5
User Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Mobile Safari/537.36
Page: https://couchers.org/search?location=Okinawa%2C+Japon&lat=26.3343738&lng=127.8056597&lastActive=14&hostingStatusOptions=2&numGuests=2#loc=7.15/32.749/129.879
User: bertrand_marion (35442)

Map has been updated now


Remove 'history' from redux store.ts: Fixes #1232

Fixes Issue
Fixes #1232

Changes proposed

Check List (Check all the applicable boxes)

[ ] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.

@shivam-sharma7 please can you check if this builds in your environment


Implement Shortlimitholdem

This branch implements Shortlimitholdem game and resolves #1 .
I've implemented a few test cases to make sure that the few rule changes that differ from regular LimitHoldem are enforced correctly.
Running python3 -m unittest discover on master and shortlimitholdem branches shows that there are no test failures that didn't already exist on the master branch.
This branch also implements a bug fix within LimitHoldem, and by extension NoLimitHoldem, where the lowest rank (in these games, any 2 card) was not considered to be apart of a straight hand.

I removed the redundancies and fixed the underlying bug of aces not counting as highs and lows in straights for LimitHoldem, which also extends to NoLimit and now Short as well.
I couldn't find any pretrained models for these variants, so I don't think there'll be any side effects to fixing this bug.


logging(backend): log the exception when failed to upload labeled data

Codecov Report

Merging #504 (255e399) into main (cb1adce) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #504      +/-   ##
==========================================
- Coverage   80.23%   80.21%   -0.02%
==========================================
  Files          63       63
  Lines        4315     4316       +1
==========================================
  Hits         3462     3462
- Misses        853      854       +1

Impacted Files
Coverage Δ

label_sleuth/app.py
57.65% <0.00%> (-0.10%)
:arrow_down:

... and 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Editevent command

Fixes #48
Summary of Changes

Add EditEventCommand and EditEventCommandTest
Add EditEventCommandParser and EditEventCommandParserTest
Add utility classes for testing (EventBuilder, EditEventDescriptorBuilder, Valid/Invalid Event fields, TypicalEvents).

Codecov Report

Merging #112 (a96d95c) into master (cc2f998) will increase coverage by 4.42%.
The diff coverage is 84.67%.

@@             Coverage Diff              @@
##             master     #112      +/-   ##
============================================
+ Coverage     63.42%   67.84%   +4.42%
- Complexity      538      598      +60
============================================
  Files            95       97       +2
  Lines          2023     2143     +120
  Branches        275      302      +27
============================================
+ Hits           1283     1454     +171
+ Misses          646      571      -75
- Partials         94      118      +24

Impacted Files
Coverage Δ

...du/address/logic/parser/AddEventCommandParser.java
0.00% <0.00%> (ø)

.../seedu/address/logic/parser/AddressBookParser.java
77.27% <0.00%> (-3.68%)
:arrow_down:

src/main/java/seedu/address/model/Model.java
100.00% <ø> (ø)

...ava/seedu/address/model/event/UniqueEventList.java
48.78% <50.00%> (+21.50%)
:arrow_up:

...seedu/address/logic/commands/EditEventCommand.java
86.11% <86.11%> (ø)

...u/address/logic/parser/EditEventCommandParser.java
88.00% <88.00%> (ø)

...va/seedu/address/logic/commands/CommandResult.java
84.00% <100.00%> (-4.00%)
:arrow_down:

...a/seedu/address/logic/parser/AddCommandParser.java
100.00% <100.00%> (ø)

...ain/java/seedu/address/logic/parser/CliSyntax.java
92.85% <100.00%> (+1.19%)
:arrow_up:

...in/java/seedu/address/logic/parser/ParserUtil.java
85.71% <100.00%> (+10.27%)
:arrow_up:

... and 11 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more


FilterText: Add isEntire() for filter entire value in one piece

I hope that code & naming is good for you.
It close #262 & fix bad variable in ArrayDataSource.php:157. On that line is  $value but it should be $word.

Thanks a lot!
But can you please change the name? :D To something like this:

public function setSplitWordsSearch(....)
{
    $this->split_words_search = (bool) .....
}

public function hasSplitWordsSearch()
{
    return $this->split_words_search;
}

Thanks..

@paveljanda Ok :)
But "split words search" is actual way of filtering.
So I suggest naming like this:
public function setEntireWordSearch(....)
{
    $this->entire_word_search = (bool) .....
}

public function hasEntireWordSearch()
{
    return $this->entire_word_search;
}

It is the way it is filtered by now. So it could be by default TRUE.
private $split_words_search = TRUE;

public function setSplitWordsSearch($split_words_search)
{
    $this->split_words_search = (bool) $split_words_search;
}

public function hasSplitWordsSearch()
{
    return $this->split_words_search;
}

Entire word is misleading. Entire sentence maybe, but the phrase does not have to be an actual sentence.

@paveljanda Thx :+1:


EVAL ERROR

#################################
EVAL
#################################
Generate output labels...
/opt/conda/conda-bld/pytorch_1565272271120/work/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
/opt/conda/conda-bld/pytorch_1565272271120/work/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
/opt/conda/conda-bld/pytorch_1565272271120/work/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead.
Traceback (most recent call last):
File "./pytorch/train.py", line 659, in
fire.Fire()
File "/home/wx/anaconda3/envs/pointpillars/lib/python3.7/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/wx/anaconda3/envs/pointpillars/lib/python3.7/site-packages/fire/core.py", line 471, in _Fire
target=component.name)
File "/home/wx/anaconda3/envs/pointpillars/lib/python3.7/site-packages/fire/core.py", line 675, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "./pytorch/train.py", line 414, in train
raise e
File "./pytorch/train.py", line 364, in train
model_cfg.lidar_input)
File "./pytorch/train.py", line 488, in predict_kitti_to_anno
predictions_dicts = net(example)
File "/home/wx/anaconda3/envs/pointpillars/lib/python3.7/site-packages/torch/nn/modules/module.py", line 547, in call
result = self.forward(*input, **kwargs)
File "/home/wx/Downloads/second.pytorch-master/second/pytorch/models/voxelnet.py", line 743, in forward
return self.predict(example, preds_dict)
File "/home/wx/Downloads/second.pytorch-master/second/pytorch/models/voxelnet.py", line 911, in predict
opp_labels = (box_preds[..., -1] > 0) ^ dir_labels.byte()
RuntimeError: Expected object of scalar type Bool but got scalar type Byte for argument #2 'other'
I consider it is the problem of the version of pytorch but i dont know how to fix it.

Do you know how to fix it ?

I have the same issue! Any fix?

Do you know how to fix it ?

I‘m sorry is a little bit late to reply to you. I just change the torch.uint8 to torch.bool in the code. But I forget the exact line in the code. The new version pytorch does not use  torch.uint8 anymore.

Do you know how to fix it ?
I‘m sorry is a little bit late to reply to you. I just change the torch.uint8 to torch.bool in the code. But I forget the exact line in the code. The new version pytorch does not use  torch.uint8 anymore.

Hello, which file is it modified in? I can't find where torch.uint8 is.
I used the pointpilar code, it is in the second/train.py, if you just use this project, it is also in the train.py, line 44. You can try it, I hope this works.

Do you know how to fix it ?
I‘m sorry is a little bit late to reply to you. I just change the torch.uint8 to torch.bool in the code. But I forget the exact line in the code. The new version pytorch does not use  torch.uint8 anymore.

Hello, which file is it modified in? I can't find where torch.uint8 is.

I used the pointpilar code, it is in the second/train.py, if you just use this project, it is also in the train.py, line 44. You can try it, I hope this works.

Change dir_labels.byte() to dir_labels.bool() on Line 911 of second/pytorch/models/voxelnet.py

Combining the changes of @WAN96 and @Selameab works without any warning or error.

in Branch v1.5 it is in line 521 of second/pytorch/models/voxelnet.py. works like a charm

i think we can close this


adding new Full Screen element dynamically is not work

just like the titile,I can't add Full Screen element dynamically,could you please give me more info?

has done

Can you clarify what you mean by dynamically? Also this element is rather old and needs to be updated to custom elements v1


feat: pressure levels + sync methods

Sync methods for async counterparts
Now supporting new pressure levels feature

closes #5 #15

closes #15


Event overlapping

Currently I'm facing an issue in my application where events that the dates overlap in between are overlapping visually on top of each other. Is there any fix/workaround for this?

Here's the array of events of this image:
[
  {
    "__typename": "CalendarEvent",
    "id": "c_evt_32ac2163392f4b5289c3a0e32db368bd",
    "name": "overlap 5",
    "startDate": "2023-09-03T07:30:00Z",
    "endDate": "2023-09-03T11:00:00Z"
  },
  {
    "__typename": "CalendarEvent",
    "id": "c_evt_dc2d9cafe4104780b756a2796606a519",
    "name": "overlap 4",
    "startDate": "2023-09-03T07:45:00Z",
    "endDate": "2023-09-03T11:15:00Z"
  },
  {
    "__typename": "CalendarEvent",
    "id": "c_evt_3f9fb08b4ef14cc6af381174c012d969",
    "name": "overlap 3",
    "startDate": "2023-09-03T07:30:00Z",
    "endDate": "2023-09-03T11:00:00Z"
  },
  {
    "__typename": "CalendarEvent",
    "id": "c_evt_345a57ea6003497388f78dc8c1abb6ef",
    "name": "overlap 2",
    "startDate": "2023-09-03T07:30:00Z",
    "endDate": "2023-09-03T11:00:00Z"
  },
  {
    "__typename": "CalendarEvent",
    "id": "c_evt_4b1a70d58ba54ae1bb28585b7dfaf5cd",
    "name": "week overlap",
    "startDate": "2023-09-03T07:30:00Z",
    "endDate": "2023-09-03T11:00:00Z"
  },
  {
    "__typename": "CalendarEvent",
    "id": "c_evt_6f09625476e34d798c4846a7515dfb26",
    "name": "Overlap again?",
    "startDate": "2023-09-13T07:00:00Z",
    "endDate": "2023-09-15T07:00:00Z"
  },
  {
    "__typename": "CalendarEvent",
    "id": "c_evt_e835b1e2e755421dbcd7704d363b6817",
    "name": "Test overlap",
    "startDate": "2023-09-12T07:00:00Z",
    "endDate": "2023-09-14T07:00:00Z"
  }
]

Hi, thanks for posting this. I think you can use eventCellStyle prop to control look and feel for the overlapped events. If that doesn't enough, you can use renderEvent prop to control how these cells are rendered.

If you create a pull request to fix the problem, I'm happy to merge it. Thanks


Wrangle project for MorPhiC

TBD:

[x] Decide dataset to wrangle
[ ] Update ticket accordingly

@gabsie help select dataset.

@ESapenaVentura selected a dataset - To update ticket

Presentation on HCA metadata schema with relation to Morphic done for the meeting today


Error message when converting the OpenSim with the O2IMPipeline

Hello,
I am trying to convert an OpenSim model using the myoconverter. I've followed all the instructions perfectly (I fixed the geometry_file mistake after taking the screenshot)

I obtained this error message

After asking ChatGPT about this error message, it suggested that a ground function had not been defined in my model. Here is a pic of the OpenSim model to be converted

Any possible suggestions as to how to fix this?

Okay, so I've just realised that I used the Arm26 python script (which could be adapted to the arm26 model) to convert my model, therefore there are missing attributes in the code. How would I be after to fix this issue?

@Escoastin can you compare the xml models with one of the deafault gait models provided here? this will give you some reference to better troubleshoot the issues

@Escoastin can you compare the xml models with one of the deafault gait models provided here? this will give you some reference to better troubleshoot the issues

So, I have started the comparison process and here is what I have noticed:
These are geometries for my model

and here are the geometries for the gait models that you told me to look at

My model has way more geometries than the gaits (I don't if the names of the files contribute to the problem as well) therefore I must surely find a way to adapt the converter.py code to convert my model, right?

Here is a pic of the two models side to side:


Error 500 on admin users dashboard

Gitea Version
itea version 1.16.0+rc1 built with GNU Make 4.3, go1.17.6 : bindata, timetzdata, sqlite, sqlite_unlock_notify
Git Version
git version 2.30.2
Operating System
Docker（QNAP Container Station）
How are you running Gitea?
User Docker（QNAP Container Station）。Reference https://www.anchorpoint.app/blog/setting-up-a-self-hosted-git-server
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
I've been using it without problems until today。
When I access the site administration page, I get a 500 error 。
log：
2022/02/10 10:32:20 Completed GET /user/events 200 OK in 14m13.091847516s
2022/02/10 10:32:20 ...s/context/context.go:206:HTML() [E] Render failed: template: admin/dashboard:8:90: executing "admin/dashboard" at <Str2html>: invalid value; expected string
2022/02/10 10:32:20 Completed GET /admin 500 Internal Server Error in 42.299935ms
2022/02/10 10:32:21 Started GET /user/events for <IP_ADDRESS>:55427

Screenshots

Please upgrade to 1.16.1, and feel free to reopen if there is still an issue.

Hmm, I found that there is a bug:
Introduced by:

#17212

Need to improve:

Incorrect leading "
No i18n
 should have target=_blank
{{.AppVer ... is incorrect, "AppVer" is a function, so it should be {{AppVer ...}}

"Gitea {{.RemoteVersion | Str2html}} is now available, you are running {{.AppVer | Str2html}}. Check the blog for more details.


Tranfer - Showing wrong numbers

Our Transfer is showing weird and confusing numbers. In some cases totally wrong ones
Kusama
In my profile wallet, I see that I have 0.25 KSM = 4,96 USD
In Transfer (up) it's showing that I have in total 19,84 USD  of KSM (where tf did we get the 19?😅)
Also rounding is a bit off .... in the profile wallet it is rounded to 4,96 USD but in Transfer (down) it's rounded to 4,9284 (thats 4,923) - can we have it the same?

Polkadot
In Transfer it is showing 4,56 USD - but the reality is that I have in profile 20USD of Polkadot. I think here its fetching amount of DOT instead of amount of USD from profile to transfer

Basilisk
I have no idea what that number 0.00000000 is... in my profile I see totally different values.

 I spent too much time trying to figure out what's happening here. Maybe a suggestion - add text "Current price of the token" 😄 For peeps like me.

 I spent too much time trying to figure out what's happening here.  I spent too much time trying to figure out what's happening here. Maybe a suggestion - add text "Current price of the token" 😄 For peeps like me.

noo dont be so hard on yourself! :)
as Prury said, its a great feedback.


hugo server shows the cached stale results

$ hugo version
Hugo Static Site Generator v0.49 linux/amd64 BuildDate: 2018-09-24T10:03:17Z

Steps to reproduce:

hugo new posts/foo.md
hugo server -D
Browse localhost:1313/posts/foo - All OK!
Now, add slug: "bar" to foo.md front matter
Browse localhost:1313/posts/bar - All OK!

But, now the file foo.md is being served on two URLS! localhost:1313/posts/foo and localhost:1313/posts/bar

Now remove slug: "bar" from foo.md

Go to localhost:1313/posts/bar and confirm that the file is still being served there which shouldn't have happened.
PS - After every change I cleared Firefox cookies and cache. It seems that the only way to get the fresh latest change is to stop existing hugo server -D and launch a fresh one.

This is a limitation with the current design. Is this a real problem?

Ah, it just means I can't really rely on hugo server to see the latest changes. Or may be I should make a habit of restarting hugo server after couple of changes...

That’s not accurate. You’re talking about old files after renames, which in most cases should be invisible unless you look for it.

The only issue is, I am not really sure if this (cached old file) gets leaked into other pages via functions (.GetPage etc.) or not. (n00b here!)

That does not happen.  But you should also look at the --disableFastRender flag.


ads support feature

Google ads
local ads via subscription plan

Added Google ads at https://github.com/mixin27/mmcalendar/commit/3e16bc5c30b5ff423b3302fb7f56bd5e3883d656
Local ads temporarily is cancelled.


Wrong symbol resolved from LC_DYLD_INFO_ONLY on iOS MachO binary

Describe the bug
I have a (non-public) MachO iOS file for which Ghidra identifies the wrong symbol/linked library for certain imports. Hopper and LIEF do identify the correct symbol and I've confirmed this via dynamic analysis. I can't share the binary, but I'm trying to debug Ghidra to figure out the error, so some hints as to where to continue my examination could help me in fixing the bug.
The dynamic linking info is available in LC_DYLD_INFO_ONLY and it does get processed, but not applied for some reason (see further down)
There is also a MachoProcessBindScript.java script, which seems related, but this does not fix the problem and it appears that the bind processing is already done by one of the general analyzers? So not sure if this script actually still serves a purpose?
Specifics
Ghidra is showing uname as the import at 0x1c85288 while it should be Swift.String.hasSuffix:

In Hopper, it's String.hasSuffix, which is correct:

And in LIEF it's correct too:
address=0x01c85288, addend=0x0
  symbol=_$sSS9hasSuffixySbSSF
  segment=__DATA
  library=/usr/lib/swift/libswiftCore.dylib

Additional Binary info
There are two __LINKEDIT sections:

(Actually not entirely sure where the second one comes from)
And inside of it there are the following commands:

> otool -l binary
...
Load command 2
      cmd LC_SEGMENT_64
  cmdsize 1672
  segname __DATA
   vmaddr 0x0000000001c84000
   vmsize 0x00000000005d0000
  fileoff 29900800
 filesize 655360
  maxprot 0x00000003
 initprot 0x00000003
   nsects 20
    flags 0x0
...

The second section starts at 1c84000 so add 1288h becomes 1c85288 and so hasSuffix should be set where _uname currently is set.
I've debugged the analyzer a bit and the __LINKEDIT commands are read by dyld/BindingTable.java:

I wasn't able to figure out yet where the binding table is further used in the flow.
Environment:

OS: macOS / Linux / Windows
Java Version: openjdk 23 2024-09-17
Ghidra Version: 11.2 (and master)
Ghidra Origin: Github release & locally built

Sorry for the delay in getting back to you.

There is also a MachoProcessBindScript.java script, which seems related, but this does not fix the problem and it appears that the bind processing is already done by one of the general analyzers? So not sure if this script actually still serves a purpose?

This is ancient...I'll remove it.

I wasn't able to figure out yet where the binding table is further used in the flow.

https://github.com/NationalSecurityAgency/ghidra/blob/6805c6bc2036bd5c3f1fcca9042431ed92376ae4/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/MachoProgramBuilder.java#L889-L984

I will try to find the same flaw in my set of samples...hopefully there is something consistently wrong.

There are two __LINKEDIT sections:
(Actually not entirely sure where the second one comes from)

This is typically due to an older memory block convention we use that creates a 2nd block for the padded out part of the memory block, which we make as uninitialized.  The PE loader has dropped this convention, but the Mach-O loader hasn't yet.

I think i have reproduced the issue in one of my binaries.  I will begin looking into a fix.

I take it back, i am not reproducing it.  Looking at your initial screen shot, it looks like uname is simply referencing 1c85288.  In Ghidra, what is at address 15a1a80?

@ryanmkurtz

and

I put a breakpoint all over the range you indicated in MachoProgramBuilder but none of them actually get triggered. This is by the way the stack trace of that previous debugger screenshot; maybe I'm in a different code path?

Any way you can share the binary with me privately?  If so, making a private GitHub repo and inviting just me to it has worked in the past.  i understand if you can't do that tho.


Problem with downloading video from youtube

youtube-dl --verbose -F qEJwOuvDf7I
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'-F', u'qEJwOuvDf7I']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.04.03
[debug] Python version 2.7.8 - Linux-3.16.7-7-default-x86_64-with-SuSE-13.2-x86_64
[debug] exe versions: ffmpeg 2.6.1, ffprobe 2.6.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] qEJwOuvDf7I: Downloading webpage
[youtube] qEJwOuvDf7I: Extracting video information
ERROR: no conn, hlsvp or url_encoded_fmt_stream_map information found in video info; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 651, in extract_info
    ie_result = ie.extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 275, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1087, in _real_extract
    raise ExtractorError('no conn, hlsvp or url_encoded_fmt_stream_map information found in video info')
ExtractorError: no conn, hlsvp or url_encoded_fmt_stream_map information found in video info; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

youtube-dl --verbose qEJwOuvDf7I
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'qEJwOuvDf7I']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.04.03
[debug] Python version 2.7.8 - Linux-3.16.7-7-default-x86_64-with-SuSE-13.2-x86_64
[debug] exe versions: ffmpeg 2.6.1, ffprobe 2.6.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] qEJwOuvDf7I: Downloading webpage
[youtube] qEJwOuvDf7I: Extracting video information
ERROR: no conn, hlsvp or url_encoded_fmt_stream_map information found in video info; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 651, in extract_info
    ie_result = ie.extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/common.py", line 275, in extract
    return self._real_extract(url)
  File "/usr/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1087, in _real_extract
    raise ExtractorError('no conn, hlsvp or url_encoded_fmt_stream_map information found in video info')
ExtractorError: no conn, hlsvp or url_encoded_fmt_stream_map information found in video info; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Thanks for the report, the bug will be fixed in the next version.


JavaScript: conflict between standard and eslint

Ale gets confused between standard (https://standardjs.com/) and eslint (https://eslint.org/).
Details
Standard is built on top of Eslint, so any Standard project also has Eslint in it. Consider a simple project:
mkdir my-project
cd my-project
npm init --yes
npm install --save-dev standard

Doing so will install both commands:

node_modules/.bin/eslint
node_modules/.bin/standard

Which enables them both linters in Ale (see :ALEInfo below):
 Current Filetype: javascript
Available Linters: ['eslint', 'flow', 'jscs', 'jshint', 'standard', 'xo']
  Enabled Linters: ['eslint', 'flow', 'jscs', 'jshint', 'standard', 'xo']

As a result, Ale will use eslint (which will produce an error), instead of standard.
Suggested solution
Having standard should disable the Eslint linter.

Users could prefer either. The correct thing to do is to disable the linter you don't want.

Thanks for the quick feedback! I'd appeal for you to reconsider. There is only one case when someone would want both of standard and eslint in a project, and that can be detected heuristically by checking if .eslintrc is available.
If there's no .eslintrc, you can assume that eslint is only present simply because it's a dependency of standard. Using eslint in that case would likely fail.
Btw, great fan of ale, I recommend it to everyone I know who uses Vim!

If you can come up with a sensible implementation with documentation, feel free to create a pull request.

some project use eslint, and others use standard.
Can't switch linter between eslint and standard automatically.

I solve this like so:
autocmd FileType javascript let g:ale_linters = {
\  'javascript': glob('.eslintrc*', '.;') != '' ? [ 'eslint', 'flow' ] : [ 'standard', 'flow' ],
\}

Note:

glob('.eslintrc*', '.;') rather than findfile('.eslintrc', '.;') since some projects will have an .eslintrc, while others an .eslintrc.js or .eslintrc.json. The glob covers all bases.
You can remove the 'flow' if you don't need 'flow' checks.

I've tried adding a .eslintignore file with **/*.js in it, but then I still get a warning

File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Anybody know how to disable that? The above solution sounded promising, but prove to be buggy for me.


"Lesson Notebooks" link broken. Corrected it.

Thanks, just changed to use the fastai fork of the repo.


Add support for kafka v1.1.1

Added support for kafka v1.1.1.
All sbt tests passed.

Thank you for submitting this pull request, however I do not see a valid CLA on file for you. Before we can merge this request please visit https://yahoocla.herokuapp.com/ and agree to the terms. Thanks! :smile:


fs_permissions does not work with symlinked paths

Component
Forge
Have you ensured that all of these are up to date?

[ ] Foundry
[ ] Foundryup

What version of Foundry are you on?
forge 0.2.0 (2b2a499 2024-01-31T17:46:44.163875000Z)
What command(s) is the bug in?
any forge scripting or test commands
Operating System
macOS (Apple Silicon)
Describe the bug
A fully reproduceable example of this issue can be seen in this github repo
I have a monorepo setup, where I want to be able to import a package within the same monorepo, and read some files from it in forge scripts.   For a basic example of this kind of setup:
My folder structure is:
packages/imported/files/config.json
packages/contracts/test/ImportTest.t.sol

The imported project is installed via npm packages, and as a result is symlinked within the node_modules folder of the contracts project:
<EMAIL_ADDRESS>-> packages/imported/files/config.json

To see if this file can be loaded I created a simple test in:
packages/contracts/test/ImportTest.t.sol:
import "forge-std/Test.sol";

contract ImportTest is Test {
    function test_can_import_file_from_node_modules() public {
        string memory jsonString = vm.readFile(
<EMAIL_ADDRESS>        );
    }
}

my packages/contracts/foundry.toml is configured to allow these paths:
fs_permissions = [
  { access = "read", path =<EMAIL_ADDRESS>},
  { access = "read", path = "./node_modules/@repo/imported/files" },
  { access = "read", path = "../imported/files" },
  { access = "read", path = "../imported/files/config.json" },
]

Yet when I run this test I get an error "[FAIL. Reason: the path<EMAIL_ADDRESS>is not allowed to be accessed for read operations]"
If I manually copy the folder into the same exact location, with the commands:
cd packages/contracts && rm -r node_modules/@repo/imported && cp -r ../imported node_modules/@repo/imported
Then I can run the tests successfully.
I believe the cause is that the path is symlinked and forge may be treating the path as one outside the project folder.
This is not an issue with code imported from those symlinked folders

https://github.com/foundry-rs/foundry/pull/7022


update ipython-kernel, ghc-parser, ihaskell to latest versions

Issue description
What's the process for including the latest ghc-parser, ipython-kernel, and ihaskell in hackage-packages.nix? AFAICT it involves editing configuration-hackage2nix.yaml but I'm not sure what edits to make. They're included in the latest Stackage nightly resolvers if that helps.
Steps to reproduce
Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.

hi @vaibhavsagar there is nothing to do apart from pushing them on hackage.
There is a regular automatic update from hackage (every day ?) available at https://github.com/NixOS/nixpkgs/tree/haskell-updates .
Otherwise you should read the readme of cabal2nix. I've recently experimented a bit with this so https://github.com/NixOS/nixpkgs/pull/62105 may help you

@vaibhavsagar, the latest version of every Hackage package is in haskell-packages.nix. If these packages you've mentioned are in Stackage Nightly, then we have them. If think that a specific version of any of those packages is missing, then please make sure to include that information in your bug report.
Looking at ghc-parser as an example, the latest version is <IP_ADDRESS> -- and that is the version Nixpkgs master has, too. I notice that ghc-parser is marked "broken", though. Apparently, the build in Nixpkgs did not succeed?

Any news on this? Checking the last example from @peti, it seems like ghc-parser installs fine and likewise, is no longer marked as broken.  Came across ihaskell recently and I'd love to see it fixed on nixpkgs.

triage: @vaibhavsagar is this still a problem?

No longer an issue, thanks for your help!


Unable to resolve "@vercel/blob/client"

Using React Native with Expo and ran yarn add @vercel/blob. When I try to do:
import { upload } from "@vercel/blob/client";
 const newBlob = await upload(name, buffer....

I get:
Unable to resolve "@vercel/blob/client" from "screens/HomeScreen.tsx"

Version:
"@vercel/blob": "^0.15.1",

Steps:

Create new expo ts project: yarn create expo-app -t expo-template-blank-typescript
Install "@vercel/blob": "^0.15.1"
Change App.tsx to this

import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { upload } from "@vercel/blob/client";

export default function App() {
  return (
    <View style={styles.container}>
      <Text
        onPress={() => {
          upload(...);
        }}
      >
        Open up App.tsx to start working on your app!
      </Text>
      <StatusBar style="auto" />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
    alignItems: "center",
    justifyContent: "center",
  },
});

Just writing upload in there causes the error, you don't need to setup a whole api route or anything. Let me know if you are unable to replicate.

I successfully executed expo start --web, I even uploaded some content

@correttojs it doesn't work with ios though

I found if you add:
"resolver": {
    "unstable_enablePackageExports": true
}

to your metro config, the bundler can correctly resolve the @vercel/blob/client import. This is needed because @vercel/blob relies on the exports field in the pjson.
This leads to a different error for me though where import * as crypto from "crypto" can't be resolved. Here it seems like the module resolution is wrong again. It's trying to import from<EMAIL_ADDRESS>where the real path would be<EMAIL_ADDRESS>If you also run into this issue it might be worth opening an issue in expo or metro

Using React Native with Expo and ran yarn add @vercel/blob. When I try to do:
import { upload } from "@vercel/blob/client";
 const newBlob = await upload(name, buffer....

I get:
Unable to resolve "@vercel/blob/client" from "screens/HomeScreen.tsx"

Version:
"@vercel/blob": "^0.15.1",

I too am getting this error in my react-native project (Expo CNG)

@sajeeIfonix Can you bring this issue over to the expo repository? Our package.json is correct as per https://arethetypeswrong.github.io/?p=%40vercel%2Fblob%400.22.3 so I suspect something is wrong with expo/expo setup here. It would be awesome to find out what 🙏

@sajeeIfonix Can you bring this issue over to the expo repository? Our package.json is correct as per https://arethetypeswrong.github.io/?p=%40vercel%2Fblob%400.22.3 so I suspect something is wrong with expo/expo setup here. It would be awesome to find out what 🙏

Thanks for looking into this. I guess we'll use AWS S3 until this issue is resolved.

Hey,
this problem still persists and it doesn't look like anyone is working on it on metro side. Just as hint for the vercel team that this issue leads to unuseablity of vercel/blob for all expo users who want to upload from their app via the vercel/blob package.

I am facing this issue as well in my react-native project:
 ERROR  [Error: undefined Unable to resolve module @vercel/blob/client

Are there any known workarounds for this issue?

Still just using S3 instead of Vercel Blob because of this bug.

@luismeyer I tried your suggestion but I am seeing the attached error

@maestrodrew that might be the expo/metro version you are using. I am using the latest version for the working example. That said you don't necessarily need the fileSystemLookup function. You could also use fs to craft the absolute path to the file or use the relative path directly
if (isBlob && moduleName === "stream") {
  return {
    type: "sourceFile",
    filePath<EMAIL_ADDRESS>  };
}

if (isBlob && moduleName === "undici") {
  return {
    type: "sourceFile",
    filePath<EMAIL_ADDRESS>  };
}

if (isBlob && moduleName === "crypto") {
  return {
    type: "sourceFile",
    filePath<EMAIL_ADDRESS>  };
}


Damaged mesh, it's back.

Old report: https://github.com/BVE-Reborn/rend3/issues/480
It's back, post-arcanization. Discussed on Discord, but needed an issue.
Here are bad and good versions of the same scene. Same program, run twice.

Someone else has been able to reproduce this (see Rend3 discord) so it's not a machine problem.
This is the problem that repeated a few days ago and was cleared by a reboot.
My experience is that this either appears at startup or it doesn't appear at all. So I suspect un-initialized data.
Happens about one run in 10.
Symptom is one or more vertices of a legit object being totally out of place.

was followed by this panic:
06:00:11 [ERROR] =========> Panic assertion failed: (i == 0 || self.free_ranges[i - 1].end < range.start) &&
(i >= self.free_ranges.len() || range.end < self.free_ranges[i].start) at file /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/range-alloc-0.1.3/src/lib.rs, line 133 in thread main.
Backtrace:
libcommon::common::commonutils::catch_panic::{{closure}}
at /home/john/projects/sl/SL-test-viewer/libcommon/src/common/commonutils.rs:215:25
range_alloc::RangeAllocator::free_range
at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/range-alloc-0.1.3/src/lib.rs:133:9
rend3::managers::mesh::MeshManager::remove
at /home/john/.cargo/git/checkouts/rend3-issue570-7a55d7cece9b9b17/bafdc3b/rend3/src/managers/mesh.rs:217:13
rend3::renderer::eval::evaluate_instructions
at /home/john/.cargo/git/checkouts/rend3-issue570-7a55d7cece9b9b17/bafdc3b/rend3/src/renderer/eval.rs:137:21
rend3::renderer::Renderer::evaluate_instructions
at /home/john/.cargo/git/checkouts/rend3-issue570-7a55d7cece9b9b17/bafdc3b/rend3/src/renderer/mod.rs:482:9
<sharpview::AppUi as rend3_framework::App>::handle_redraw
at /home/john/projects/sl/SL-test-viewer/sharpview/src/main.rs:665:31
rend3_framework::async_start::{{closure}}::{{closure}}
at /home/john/.cargo/git/checkouts/rend3-issue570-7a55d7cece9b9b17/bafdc3b/rend3-framework/src/lib.rs:371:17
winit::platform_impl::platform::x11::EventLoop::single_iteration
at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.10/src/platform_impl/linux/x11/mod.rs:608:17
winit::platform_impl::platform::x11::EventLoop::poll_events_with_timeout
at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.10/src/platform_impl/linux/x11/mod.rs:547:9
winit::platform_impl::platform::x11::EventLoop::pump_events
at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.10/src/platform_impl/linux/x11/mod.rs:453:13

I'm going to optimistically close this, now that a large chunk of the nasty manipulation code is gone.

Sadly, it's not gone in the new no-gpu-culling version (rev = "4709529")
Damaged mesh, then a panic in MeshManager::remove.
(Performance is better. Will discuss that separately.)
05:32:03 [ERROR] =========> Panic assertion failed: (i == 0 || self.free_ranges[i - 1].end < range.start) &&
(i >= self.free_ranges.len() || range.end < self.free_ranges[i].start) at file /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/range-alloc-0.1.3/src/lib.rs, line 133 in thread main.
Backtrace:
libcommon::common::commonutils::catch_panic::{{closure}}
at /home/john/projects/sl/SL-test-viewer/libcommon/src/common/commonutils.rs:360:25
range_alloc::RangeAllocator::free_range
at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/range-alloc-0.1.3/src/lib.rs:133:9
rend3::managers::mesh::MeshManager::remove
at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/4709529/rend3/src/managers/mesh.rs:205:13
rend3::renderer::eval::evaluate_instructions
at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/4709529/rend3/src/renderer/eval.rs:120:21
rend3::renderer::Renderer::evaluate_instructions
at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/4709529/rend3/src/renderer/mod.rs:422:9
<sharpview::AppUi as rend3_framework::App>::handle_redraw
at /home/john/projects/sl/SL-test-viewer/sharpview/src/main.rs:699:31
rend3_framework::async_start::{{closure}}::{{closure}}
at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/4709529/rend3-framework/src/lib.rs:344:17
winit::platform_impl::platform::x11::EventLoop::single_iteration
at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.14/src/platform_impl/linux/x11/mod.rs:602:17
winit::platform_impl::platform::x11::EventLoop::poll_events_with_timeout

Another panic. This one may be unrelated. Happened after hours of running successfully.
11:15:17 [ERROR] =========> Panic called `Option::unwrap()` on a `None` value at file /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/4709529/rend3/src/managers/object.rs, line 139 in thread main.
Backtrace:
 libcommon::common::commonutils::catch_panic::{{closure}}
             at /home/john/projects/sl/SL-test-viewer/libcommon/src/common/commonutils.rs:360:25
 rend3::managers::object::ObjectManager::add
 rend3::renderer::eval::evaluate_instructions
             at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/4709529/rend3/src/renderer/eval.rs:74:21
 rend3::renderer::Renderer::evaluate_instructions
             at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/4709529/rend3/src/renderer/mod.rs:422:9
 <sharpview::AppUi as rend3_framework::App>::handle_redraw
             at /home/john/projects/sl/SL-test-viewer/sharpview/src/main.rs:699:31
 rend3_framework::async_start::{{closure}}::{{closure}}
             at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/4709529/rend3-framework/src/lib.rs:344:17
 winit::platform_impl::platform::x11::EventLoop<T>::single_iteration
             at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.14/src/platform_impl/linux/x11/mod.rs:602:17
 winit::platform_impl::platform::x11::EventLoop<T>::poll_events_with_timeout
             at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.14/src/platform_impl/linux/x11/mod.rs:541:9
 winit::platform_impl::platform::x11::EventLoop<T>::pump_events
             at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.14/src/platform_impl/linux/x11/mod.rs:447:13
 winit::platform_impl::platform::x11::EventLoop<T>::run_on_demand
             at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.14/src/platform_impl/linux/x11/mod.rs:408:19

I've had the crash in "add" again. I think that one may be associated with running out of GPU resources. Rend3 now returns an error code when the GPU is full, and I recover from that. Recovery works by scheduling a reduction in LOD, which will regenerate objects at lower rez. This works but does mean that ramming into the rendering stack's resource limits happens in normal operation. Something may break under that stress. If that error was returned slightly before hitting the absolute limit, that would be fine,.
The "remove" crash is associated with garbage triangles appearing, and consistently occurs in the first minute or two of operation. If it doesn't happen at startup, it's often possible to run for an hour.

Panic called `Option::unwrap()` on a `None` value at file /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/d088a84/rend3/src/managers/object.rs, line 136 in thread main.
Backtrace:
 libcommon::common::commonutils::catch_panic::{{closure}}
             at /home/john/projects/sl/SL-test-viewer/libcommon/src/common/commonutils.rs:360:25
 rend3::managers::object::ObjectManager::add
 rend3::renderer::eval::evaluate_instructions
             at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/d088a84/rend3/src/renderer/eval.rs:72:21
 rend3::renderer::Renderer::evaluate_instructions
             at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/d088a84/rend3/src/renderer/mod.rs:422:9
 <sharpview::AppUi as rend3_framework::App>::handle_redraw
             at /home/john/projects/sl/SL-test-viewer/sharpview/src/main.rs:699:31
 rend3_framework::async_start::{{closure}}::{{closure}}
             at /home/john/.cargo/git/checkouts/rend3-e03f89403de3386a/d088a84/rend3-framework/src/lib.rs:344:17
 winit::platform_impl::platform::x11::EventLoop<T>::single_iteration
             at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/mod.rs:602:17
 winit::platform_impl::platform::x11::EventLoop<T>::poll_events_with_timeout
             at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/mod.rs:541:9
 winit::platform_impl::platform::x11::EventLoop<T>::pump_events
             at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/mod.rs:447:13
 winit::platform_impl::platform::x11::EventLoop<T>::run_on_demand
             at /home/john/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.15/src/platform_impl/linux/x11/mod.rs:408:19

This is after fixing the problem in the memory allocator (Bug #546). That one hasn't repeated. But this old one has. No jagged out of place vertices, though.
That line of code is calling a function indirected through a reference. I'll look into what it's doing. The line of code is
(mesh, &{}[..])


mermerd: 0.11.0 -> 0.12.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/KarnerTh/mermerd/releases.
meta.description for mermerd is: Create Mermaid-Js ERD diagrams from existing tables
meta.homepage for mermerd is: https://github.com/KarnerTh/mermerd
meta.changelog for mermerd is: https://github.com/KarnerTh/mermerd/releases/tag/v0.12.0
Updates performed

Golang update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.12.0 with grep in /nix/store/567pflkm13d8hcrb5hd64bx65iy74n46-mermerd-0.12.0
found 0.12.0 in filename of file in /nix/store/567pflkm13d8hcrb5hd64bx65iy74n46-mermerd-0.12.0

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath

mermerd

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/567pflkm13d8hcrb5hd64bx65iy74n46-mermerd-0.12.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A mermerd https://github.com/r-ryantm/nixpkgs/archive/533cd71e3ae1ed1c12b2c95c3bcede8556c551a9.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/533cd71e3ae1ed1c12b2c95c3bcede8556c551a9#mermerd

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/567pflkm13d8hcrb5hd64bx65iy74n46-mermerd-0.12.0
ls -la /nix/store/567pflkm13d8hcrb5hd64bx65iy74n46-mermerd-0.12.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:white_check_mark: 1 package built:

mermerd

Maintainer pings
cc @austin-artificial for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

Manually tested on darwin too.
@NixOS/nixpkgs-merge-bot merge

@NixOS/nixpkgs-merge-bot merge