Prettier.ignorePath setting is not respected

Content of coc-settings.json file:
{
  "coc.preferences.formatOnSaveFiletypes": ["*"]
}

or
{
  "coc.preferences.formatOnSaveFiletypes": ["*"],
  "prettier.ignorePath": "./.prettierignore"
}

Repository folder structure:

repository-folder/
--.prettierignore
--sub-folder/
----.prettierignore
----index.html

Content of repository-folder/.prettierignore file:

sub-folder/

Content of repository-folder/sub-folder/.prettierignore file:

(empty)

Repro steps:

Run vim repository-folder/sub-folder/index.html
Modify the index.html to make Prettier attempt to format the file when the file is saved
Save the file

Expected:
4. Prettier formats index.html
Actual:
4. Prettier does not format index.html
Issue:
The Readme.md file describes:

prettier.ignorePath (default: .prettierignore)
Supply the path to an ignore file such as .gitignore or .prettierignore.
Files which match will not be formatted. Set to null to not read ignore files. Restart required.

Setting the "prettier.ignorePath" setting to ".prettierignore" (default) or "./.prettierignore" should make Prettier use the .prettierignore file in the same directory as the file that is open.
Visual Studio Code does not have this issue when opening the sub-folder folder.

I'm only using the .prettierignore file in the repository-folder to make Prettier ignore the sub-folder folders of my project. A mitigation is to modify the Prettier script in your package.json file:
...
"prettier": "prettier --write . \"!sub-folder-1/**\" \"!sub-folder-2/**\" \"!sub-folder-3/**\"",
...


PNGs do not have transparency

I am using MovieRecorder with output PNG:
My camera has a background of alpha 0 and has a render texture with transparency (RGBA32).
When I use a script to encode my 2D texture as PNG it saves with transparency. When I use FrameCapturer it does not save with transparency.
I set the capture target to both Frame Buffer and Render Texture and no difference.
Is there something I am missing? Could this be changed?

is this solved?
I've been stuck in the same problem for two days...
Any suggestion would be very thankful!


supabase serve uses "--no-npm" mode for Deno. Why? This breaks code that needs npm modules.

Bug report
Describe the bug
I ported my firebase functions to supabase edge functions. In doing so I had to use some npm modules, which I thought was fine since deno supports npm. Upon trying to run my code however I was suprised to be hit with
worker thread panicked Unsupported scheme "npm" for module "npm:/<EMAIL_ADDRESS>Supported schemes: [
    "data",
    "blob",
    "file",
    "http",
    "https",
]

The supabase cli passes "--no-npm" when invoking Deno.
Code is here https://github.com/supabase/cli/blob/a30210717bdb1f3c9d3d5ce940d000971fc1a6da/internal/functions/serve/serve.go#L190
As far as I can tell this isn't documented anywhere by Supabase resulting in a surprise for users. Since Supabase targets people who want to switch from Firebase this is likely to affect almost everyone who attempts to switch as most people use npm modules in their firebase functions.
To Reproduce

Add an npm specifier to your import_map.json such as "@effect/io/": "npm:/<EMAIL_ADDRESS>run supabase functions serve
Observe that function crashes at runtime due to --no-npm option passed to Deno by supabase cli.

Expected behavior
All Deno features should work. If there's a specific reason why --no-npm is needed it should be clearly documented along with an explanation of how to work around being unable to use npm import specifiers.
Screenshots
N/A
System information

OS: macOS
Browser N/A
Version of supabase-js: N/A
Version of Node.js: N/A

Additional context

For additional context -- I need to use npm resolutions in Deno because there are some modules (like @effect/io) that tools like esm.sh choke on. The only way to load them in deno is via npm.

Thank you for clarifying your use case. I've pinged our functions team to help take a look.

@evelant Deno Deploy, the hosting platform we use for functions doesn't support npm specifiers yet. To keep dev/prod parity we disable the npm resolution when serving functions locally.
We will update the docs to mention this limitation.

@laktek OK thanks. I'm running into another issue as well -- globals that should be defined are undefined in the edge runtime. Specifically performance. A library tries to access performance.now() and it crahes, but only on the edge runtime. Run it locally with deno run -A my_file.ts and performance is accessible and works fine.

@laktek according to the deno deploy docs performance is an API available on the Deno deploy runtime. https://deno.com/deploy/docs/runtime-api so it appears to be a bug that it's missing in the Supabase edge-runtime.
I want to investigate further but I don't see the Dockerfile for the edge runtime available anywhere. Is it not released on github?

@sweatybridge @laktek I've looked everywhere and I haven't been able to find source for edge-runtime, could you point me to it?  I'd like to investigate the missing globals problem but without the source it's a black box.

@evelant we will be open-sourcing edge-runtime in the coming weeks.

according to the deno deploy docs performance is an API available on the Deno deploy runtime. https://deno.com/deploy/docs/runtime-api so it appears to be a bug that it's missing in the Supabase edge-runtime.

performance API will be included in an upcoming release. We'll update this ticket when the release is made.

@laktek Can you provide any more information about what is/isn't available in the edge-runtime? The docs are pretty sparse at the moment.

Deno.errors.BadResource is undefined. Is Deno.errors missing from the supabase edge runtime?

Yep, looks like Deno.errors are missing from the global scope. We'll make a new release to fix it.
BTW, you can check what's available in edge-runtime's global scope by adding console.log(Object.keys(globalThis)) and more specifically for Deno namespace console.log(Object.keys(Deno)) to your function code.


⚠ SceneTime has degraded performance

In ff2576d, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 2578 ms

Resolved: SceneTime performance has improved in 238d77f after 10 minutes.


Redundant call/1 wrapper

Also found by the Logtalk linter, a redundant call/1 wrapper in the following line:
https://github.com/terminusdb/terminus-server/blob/152b2f58c869523f2ad5ffeecbb702045d3a84d2/library/sdk.pl#L83

Fixed.


NONE: improve error logging

What's in this PR?

remove extra fields from Error exceptions because they are accessible from cause
make cause mandatory for all GitHub errors - there MUST be an Axios cause! The only exception is GraphQL error (when server responds with 200), adding a stub "cause"
moving error interceptors from individual clients to the base client
improve logging: serialiser, adding tests etc

Does this require any change on the UI side that depends on the error object?


Unable to run PMS using Docker on Windows

Greetings!  I am trying to run PMS using Docker on Windows, but am running into some issues that appear to be related to the PHP APCu Extension.  I started to document the steps and commands in this readme, but am at a point where I need help to get PMS to work using Docker on Windows.
In addition to the documentation, I found an excellent write-up in https://github.com/Volmarg/personal-management-system/pull/43#issue-493755082 to get me started.  (On a separate note, I would be willing to help with documentation updates, but would like to know if opening another issue in this repo is how you want to track documentation updates.)
Here are some of my questions:

What container needs to have APCu installed?  Is it the php-fpm container?
Does pecl install apcu need to be run before composer pms-installer-docker ?
If apcu.ini needs to exist and have specific content in it, can the project be updated to include the file and needed content?
Based on the output I receive, it looks like "extension=apcu.so" needs to be added to php.ini, can this be added to the project?
What else do I need to change to get PMS to work using Docker on Windows?

At a high level, here are the commands I ran:

in PowerShell

docker-compose build
docker-compose up -d
docker-compose exec php-fpm bash

in the php-fpm container

composer install
composer pms-installer-docker
pecl install apcu

I am using Docker on Windows 10 (using the WSL 2 based engine).  Here are the commands I ran (summary of output):
note: the directory is C:\docker\personal-management-system-1.4.30-attempt03 but i've truncated the output to show PS C:\docker\pms-1.4.30>
PS C:\docker\pms-1.4.30> write-host 'following steps in https://github.com/Volmarg/personal-management-system/pull/43#issue-493755082'

PS C:\docker\pms-1.4.30> write-host 'also following documentation from https://volmarg.github.io/docs/general/installation/'

PS C:\docker\pms-1.4.30> write-host 'i have not made any changes to the docker-compose file or any other files'

PS C:\docker\pms-1.4.30> docker-compose build

PS C:\docker\pms-1.4.30> docker-compose up -d

PS C:\docker\pms-1.4.30> docker-compose exec php-fpm bash

root@672bcf287a87:/application# sudo composer install
# received `bash: sudo: command not found`

root@672bcf287a87:/application# composer install

root@672bcf287a87:/application# composer pms-installer-docker
## multiple times I am seeing `  APCu is not enabled.` from the output

root@672bcf287a87:/application# pecl install apcu

root@672bcf287a87:/application# apt install php-apcu

root@672bcf287a87:/application# find / -name php.ini

root@672bcf287a87:/application# cat /usr/local/etc/php/conf.d/php.ini

root@672bcf287a87:/application# echo 'going to stop and restart the containers to see if anything is working'

PS C:\docker\pms-1.4.30> write-host 'starting the pms containers again, will check to see if pms works now'

PS C:\docker\pms-1.4.30> docker-compose exec php-fpm bash

root@672bcf287a87:/application# composer pms-installer-docker
## still receiving `  APCu is not enabled.` from the output, assuming because APCu is not enabled in `php.ini`

I uploaded the output details to this gist since it was too long to fit in a comment.
Any help would be greatly appreciated!  Also, please let me know if I can assist with documentation updates.

Hello,
Seems like it's something bigger.
Generally I'm not very familiar with docker, but without really jumping inside the issue, I can write this:

You need the apcu in the php-fpm container (assumptions due to docker):
it doesn't really matter when You install the apcu it's just required later on to make the caching work,
did You tried this step https://volmarg.github.io/docs/general/known-#php-apcu-extension ?

I see that You tried to modify the  php.ini, I know I had some issues therefore I wrote the info about apcu.ini
Sorry for not answering the points directly, I do this that way normally but like I've wrote I didn't delved into the issue to much atm. only small analysis.

No worries, thanks for responding @Volmarg.  I believe I have a fix for this, but want to test the configurations on another platform first.  Do you mind if I submit a PR to add instructions for Docker, as well as an update to the docker\php-fpm\php.ini file?
Regarding updating apcu.ini, I was not able to install php-apcu within the php-fpm container.  Here is the output when I tried the fix mentioned on the known issues page:
root@a719234ab9a1:/application# apt install php-apcu
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php-apcu is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php-apcu' has no installation candidate

With that said, I do have PMS running using Docker on Windows, but I do want to replicate this using Docker on Mac to make sure the commands/updates are valid.

Interesting, I have the apcu module available on the server with demo version and locally. It might be that I've forgotten some step, but yeah sure You can create a merge request with instruction for docker.
I will add the docker instruction to the documentation since I generate it locally in documentation builder.

In the worst case the apcu can be turned off in
https://github.com/Volmarg/personal-management-system/blob/main/config/packages/doctrine.yaml

should be just enought to remove the
framework:
    cache:
        pools:
            doctrine.result_cache_pool:
                adapter: cache.adapter.apcu
            doctrine.system_cache_pool:
                adapter: cache.adapter.apcu

@Volmarg I've submitted https://github.com/Volmarg/personal-management-system/pull/55 to update the project and resolve this issue.  Please let me know if any adjustments need to be made, thanks!

@rwaight https://github.com/Volmarg/personal-management-system/commit/ce7694bbf7f8094077d13f6f742cc13fdce5ddcf
Thx for providing the informations.


Why uint instead of int?

I can see that gorm.Model is:
type Model struct {
	ID        uint `gorm:"primarykey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt DeletedAt `gorm:"index"`
}

Why did you choose uint instead of int?

No answer to this?

:(

no specially reason, this sounds the most correct choice, but you can override the Model struct to use any type


[frontend] fix accessibility issues

A11y fix
Changes

remove duplicate ids
add empty alt text for decorative images
modify headings to increase by 1
remove tabindex on non-interactive components for keyboard accessibility
remove 'default' locale from next-i18n config.  This isn't a correct locale and has a11y implications when it gets dynamically inserted on the landing page on the html tag.

Check out a preview of your pull request here: https://alphasite-appservice-dev-pr-preview-1467298438.azurewebsites.net

Check out a preview of your pull request here: https://alphasite-appservice-dev-pr-preview-1467298438.azurewebsites.net

Check out a preview of your pull request here: https://alphasite-appservice-dev-pr-preview-1467298438.azurewebsites.net


docs: add first how to guides

I took the how to guides for metallb/contour and dex/gangway that @ipochi created in the previous repo and addressed reviews and updated them.

Thanks for the suggestions @ipochi!

I think these look good enough so I'm gonna merge them (even though I'm the PR author I didn't do the work so I can be considered a reviewer :P)

lgtm


For installation in Windows,please can you change the requirements in tensorflow version to tensorflow 2.x

Hi,
The backend support for Tensorflow 2.0 is in development. Will be updated very soon

Closing due to inactivity.


Marking notifications as read should be an optimistic render

Feels bad man

Should just close the draw as well

Mark all as red should not be visible when there's nothing to mark

Handle errors...


Signed transactions fail signature check in go-ethereum

copied from Discord:

Hi ! Currently testing some basic ETH methods through the Zk Sync mainnet endpoint "wss://mainnet.era.zksync.io/ws" : while some of them behave without noticeable issues ( e.g SubscribeNewHead or BlockNumber) i noticed errors being returned constantly when using GetBlockByHash and GetBlockByNumber (returning respectively "transaction type not supported" and / or "invalid transaction v, r, s values") both on latest processed blocks and more ancient blocks. Those issues seems to be related to incompatibilities between the way Geth handle "classic" requests through its rpc server, and some of the specificities of your network (probably the v,r,s values being considered as invalid and thus not serverd / provoking the error throwing through your API for those methods). Would love to have some feedback on those issues, as the features they seems to impact are usually heavily used on other networks

To reproduce:
rpc,_ := rpc.DialHTTP("https://mainnet.era.zksync.io")
eth := ethclient.NewClient(rpc)
eth.TransactionByHash("[hash]")

where [hash] is the tx hash of any legacy (type 0) transaction on zksync era.

Hello! Could you please provide more details on the expected behavior and the purpose?


commands executed directly after creating workspace with "--enter" option occasionally fail

Describe the bug
I observed that the commands executed directly after creating workspace with the "--enter" option occasionally fail. I guess workspace needs a little bit more time. After I added logic in script to check if new workspace is ready. The issue doesn't happen again.
To Reproduce
Steps to reproduce the behavior:

Create an Universal workspace with --enter option
$ KUBECONFIG="$KUBECONFIG_KCP" kubectl get workspaces demo --enter
Create WorkloadCluster in the new workspace  immediately
$ KUBECONFIG="$KUBECONFIG_KCP" kubectl kcp workload sync local  --syncer-image ghcr.io/kcp-dev/kcp/syncer:release-0.4  > "$kube_dir/syncer.yaml"
it reported error

error: failed to create WorkloadCluster: the server could not find the requested resource (post workloadclusters.workload.kcp.dev)

Expected behavior
It should create resources such as WorkloadCluster in the newly created workspace.

@xinredhat AFAIU the minimum we need to wait for the workspace to be intialized and ready before performing next steps so IMO this is not a bug but i will wait for the development team to comment more on it, thanks !!

It looks like we do attempt to do that, so this is a bug for sure:
https://github.com/kcp-dev/kcp/blob/9882f39bd32659e7696ac3e49841870727160fc6/pkg/cliplugins/workspace/plugin/kubeconfig.go#L373-L387

might be a race between pkg/server/apiextensions logic depending on informers, and the bootstrap controller having created the CRDs and removing its initializer?

Maybe the apiextensions server should have it's own initializer? :)

/close
reopen if still needed


Testing bot

Question

Hello. In the development of the bot encountered such a problem as testing the program. I do not understand what tests to write and how to perform them. Please help me. Thank you in advance

You could assert for the reply from Telegram. Check out the tests folder to see how we do it.


BLE example from tessel.io/start hangs

Following directions, force-installed noble, ran example file from http://tessel.github.io/t2-start/modules/ble.html
INFO Looking for your Tessel...
INFO Connected to chicken.
INFO Building project.
WARN Pre-compiled module is missing<EMAIL_ADDRESS>WARN Please an file issue at https://github.com/tessel/t2-cli/issues/new with this warning.
WARN
WARN This warning might be caused by one of the following:
WARN
WARN 1. A pre-compiled binary has not yet been built for this module.
WARN 2. The binary didn't compile correctly for the platform that you're developing on.
WARN    Binaries that are Linux-only or even OpenWRT-specific may cause this issue.
WARN    Try to npm install --force the affected module, then rerun your deployment command.
WARN 3. The binary may be platform specific and impossible to compile for OpenWRT.
INFO Writing project to RAM on chicken (565.248 kB)...
INFO Deployed.
INFO Running index.js...
waiting for power up...

Hangs here, never receives power up/scanning notification. I'm assuming this is related to the message about the pre-compiled binary?

it works if you install noble at its previous version:
npm i<EMAIL_ADDRESS>


Dingo API Response object loses existing response HTTP Version

The Dingo Response.php method makeFromExisting fails to clone the ProtocolVersion from the existing Illuminate/Symfony Response object, so if a previous middleware has changed it (i.e. to version 1.1), this gets lost.
Workaround is to establish an event listener for one of the Response morph events and set the protocol version on the response via the event handler, but it seems like makeFromExisting should be setting the ProtocolVersion property on the new response object to match the old response object.

You mean the ProtocolVersion loses every time? Or just on throwing exception?

Every time. I discovered it when I added middleware earlier in the chain that had modified the protocol version in the default reponse object.. after that response obj passed through the dingo middleware and got replaced by the cloned reponse object, the protocol version property on the response had reset back to its original value.


Add GuildImpl#invalidate

Pull Request Etiquette

[x] I have checked the PRs for upcoming features/bug fixes.
[x] I have read the contributing guidelines.

Changes

[x] Internal code
[ ] Library interface (affecting end-user code)
[ ] Documentation
[ ] Other: _____

Closes Issue: NaN
Description
This will be very useful for the new auto-sharding.

Is there a reason we didn't go ahead with this change?

I added this for the purpose of auto-sharding, but I never got to it, so now it's just stale. To merge this we would need to check if any changes need to be addressed since this PR was created.

We should consider resurrecting this as we just encountered a situation where the cache didn't get cleared because invalidation was forgotten. Having this all in one place would be nice. https://github.com/DV8FromTheWorld/JDA/pull/2029


How to add custom elements in modal header component?

How can I add custom elements like below inside the modal header component?

<ModalHeader>....your stuff here...</ModalHeader>

looks like this was answered

Yeah bt this <ModalHeader>...Your staff...</ModalHeader> generate "Your staff" in my case
<button>info 1</button><button>info 2</button>
 inside
 if you know what i mean.

Use the tag prop!
<ModalHeader tag="h3">

        <button>
            info 1
        </button>
        <button>
            info 2
        </button>

</ModalHeader>

You can also pass in other components, not just strings!


WIP: per-network control plane encryption in libnetwork

Supporting gossip encryption using per-network shared secret needs changes in swarmkit, docker engine, and in libnetwork. This PR is for the libnetwork changes so that it can be verified independently by using hard coded keys.
Signed-off-by: Santhosh Manohar<EMAIL_ADDRESS>

@sanimej It has been detected that this issue has not received any activity in over 6 months. Can you please let us know if it is still relevant:

For a bug: do you still experience the issue with the latest version?
For a feature request: was your request appropriately answered in a later version?

Thank you!
This issue will be automatically closed in 1 week unless it is commented on.
For more information please refer to https://github.com/docker/libnetwork/issues/1926

incomplete solution, closing


Remove Makefile

Adding a shell command in the test section in the package.json is sufficient.

https://github.com/CartoDB/cartodb-nodejs/commit/6dadb3fa0d5fb752c0e02bcf6ca1127186e3a1b0


Study Power BI-Udemy Certificate

https://www.udemy.com/share/102yiC3@PMkIF-YUIjJuSjOSM_MPzRIavKdGHI5TcopKsAFW9uJn167KA3rCI3eaClLUyWLD9A==/


[AMORO-3015]terminal can't create iceberg table when using unified catalog

Why are the changes needed?

Close #3015
Brief change log

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before making a pull request

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

cc @baiyangtx 。 PTAL


Tokens are not revoked when the admin user is removed from a specific role

Describe the issue:

According to the behaviour of IS 6.1, if the admin user is removed from a role, all active tokens of the admin user will be revoked. Hence, the session belongs to the console will be expired and the user will be logged out.
In IS 7.0, this behaviour is not available where the tokens are not revoked when admin user is removed for an organization role.
How to reproduce:

Login to console as admin
Create a new role
Add admin to the new role.
Remove the admin from that role. The tokens will sill be active.

Expected behavior:
The tokens should be revoked and the session should be expired.
Environment information (Please complete the following information; remove  any unnecessary fields) :

Product Version: [e.g., IS 5.10.0, IS 5.9.0]
OS: [e.g., Windows, Linux, Mac]
Database: [e.g., MySQL, H2]
Userstore: [e.g., LDAP, JDBC]

Optional Fields
Related issues:

Suggested labels:

This is done. Hence closing the issue.


Duplicated uploads

I have a watcher on a folder that is supposed to upload all new files.
watcher.on('add', (pathAndFilename) => {
  logger.info(`File '${pathAndFilename}' was added`);

  ftpClient.on('ready', () => {
    ftpClient.put(pathAndFilename, pathAndFilename.split(path.sep).pop(), (error) => {
      if (error) {
        logger.error(`Error transferring over FTP '${pathAndFilename}'`, error);
      } else {
        logger.info(`File successfully transferred over FTP '${pathAndFilename}'`);
      }
      ftpClient.end();
    });
  });

  ftpClient.connect({
    host: ftpHost,
    port: ftpPort,
    user: ftpUser,
    password: ftpPassword,
  });
})

Every time a new file is being uploaded the FTP reuploads the previous ones.
i.e.
start ftp
add `file1` -> ftp uploads `file1`
add `file2` -> ftp uploads `file1`, `file2`
add `file3` -> ftp uploads `file1`, `file2`, `file3`
...

I do not think you should close the FTP connection if you are watching it.

Maybe it's not clear from my snippet but I am watching a local folder and then upload any new files being added to that folder. As it might be hours in between the connection needs to be closed.

The problem is to subscribe to the event every time you connected FTP. Bad way.

Check this.
const EventEmitter = require('events');
const fs = require('fs');
const Client = require('../lib/connection');
const config = { ... };

const client = new Client();
const emitter = new EventEmitter();
const watchPath = './__folder/';
const uploadList = [];

const ready = () => client.cwd('/keymaps/', () => emitter.emit('connected'));

client.on('error', (err) => {
  console.error('ERROR: ', err);
});

client.on('close', (err) => {
  console.error('CLOSE: ', err);
});

const connected = () => {
  const upload = (filename, key) => {
    client.put(watchPath + filename, filename, (err) => {
      if (err) throw err;

      console.log('Uploaded: ', filename);
      delete uploadList[key]

      client.list((err, list) => {
        if (err) throw err;
        console.log(list);
      });
    });
  };

  uploadList.forEach(upload);
  client.end();
};

fs.watch(watchPath, { encoding: 'utf8' }, (eventType, filename) => {
  if (eventType === 'change') {
    uploadList.push(filename);
    emitter.emit('upload');
  }
});

client.on('ready', ready);
emitter.on('upload', (eventType, filename) => client.connect(config));
emitter.on('connected', connected);

I hope I helped.

I've just used another library that behaves as expected.

can you suggest what another library you have used because I am facing the same problem?

jsftp


Defensive Team Stats

How can I pull team defense stats - I would like sacks, interceptions, fumble recoveries. I would prefer to pull by team as opposed to by player. (Side note: sometimes with sacks, the NFL credits the team and not any player.)

There are a couple of cookbook examples for retrieving sacks and sack yards for a team over the course of a game/games.
Those are aggregated on a play basis and are not reliant upon adding up any half sacks for individual players that might be assigned.

Thanks ochawkeye. I will look at those. I did not know if there was a way to pull team defensive stats. In the past, the NFL sometimes assigned sacks to a team when they cannot figure out who got (or split) the sack.

Are there cookbook examples for interceptions and fumble recoveries?

You can replace p.defense_sk with any valid stat type.

Thanks. Should have known.

import nflgame
from collections import defaultdict

def team_stats(games, stat_type):
    stats = defaultdict(int)

    for play in nflgame.combine_plays(games).players().defense():
        if play.stats.get(stat_type, 0):
            stats[play.team] += play.stats.get(stat_type, 0)
    return stats

games = nflgame.games(year=2015, week=1, kind="REG")
interesting_stats = ['defense_sk', 'defense_frec', 'defense_int']

for stat in interesting_stats:
    print '{}:'.format(stat)
    for team, value in team_stats(games, stat).iteritems():
        print team, value

ochawkeye, This goes and beyond. Thanks.


Build ROS on Ubuntu 22.04 when it is available

Trying 21.10 now:
docker build --build-arg IMAGE=ubuntu:21.10 . -t ros2110
...

Python 3.8 - > 3.9, half fixed via
docker build --build-arg IMAGE=ubuntu:21.10 --build-arg PYTHON_MINOR_VERSION=9 . -t ros2110

https://github.com/ros/geometry/pull/ 233

docker pull ubuntu:22.04

Warnings << rosbag_storage:make /catkin_ws/logs/rosbag_storage/build.make.000.log
/catkin_ws/src/ros_comm/tools/rosbag_storage/src/aes_encryptor.cpp: In member function ‘virtual void rosbag::AesCbcEncryptor::initialize(const rosbag::Bag&, const string&)’:
/catkin_ws/src/ros_comm/tools/rosbag_storage/src/aes_encryptor.cpp:188:28: warning: ‘int AES_set_encrypt_key(const unsigned char*, int, AES_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
  188 |         AES_set_encrypt_key(&symmetric_key_[0], AES_BLOCK_SIZE*8, &aes_encrypt_key_);
      |         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /catkin_ws/src/ros_comm/tools/rosbag_storage/include/rosbag/aes_encryptor.h:41,
                 from /catkin_ws/src/ros_comm/tools/rosbag_storage/src/aes_encryptor.cpp:36:
/usr/include/openssl/aes.h:51:5: note: declared here
   51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
      |     ^~~~~~~~~~~~~~~~~~~
/catkin_ws/src/ros_comm/tools/rosbag_storage/src/aes_encryptor.cpp: In member function ‘virtual uint32_t rosbag::AesCbcEncryptor::encryptChunk(uint32_t, uint64_t, rosbag::ChunkedFile&)’:

This is failing in the github action:
CMake Error at /home/runner/work/ros_from_src/ros_from_src/staging/catkin_ws/devel/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "rosunit" with any
  of the following names:

    rosunitConfig.cmake
    rosunit-config.cmake

  Add the installation prefix of "rosunit" to CMAKE_PREFIX_PATH or set
  "rosunit_DIR" to a directory containing one of the above files.  If
  "rosunit" provides a separate development package or SDK, be sure it has
  been installed.```

Now trying to build most of my packages and forks:
Not sure if a catkin clean would avoid this:
CMake Error at /home/lucasw/ros_from_src_catkin_ws/src/lucasw/joy_feedback_ros/CMakeLists.txt:111 (add_dependencies):
  The dependency target "joy_feedback_ros_generate_messages_cpp" of target
  "joy_feedback" does not exist.

_______________________________________________________________________________________________________________________________________________________________________________________________________________________
Warnings   << qt_gui_cpp:make /home/lucasw/ros_from_src_catkin_ws/logs/qt_gui_cpp/build.make.000.log
qt.shiboken: (typesystem) Unable to locate Clang's built-in include directory (neither by checking the environment variables LLVM_INSTALL_DIR, CLANG_INSTALL_DIR  nor running llvm-config). This may lead to parse errors.
(typesystem) clang_parseTranslationUnit2(0x0, cmd[28]=-fPIC -Wno-constant-logical-operand -std=c++14 -I/home/lucasw/ros_from_src_catkin_ws/src/ros_core/qt_gui_core/qt_gui_cpp/include -I/home/lucasw/ros_from_src_catkin_ws/src/ros_core/qt_gui_core/qt_gui_cpp/include -I/home/lucasw/ros_from_src_catkin_ws/src/ros/roscpp_core/cpp_common/include -I/home/lucasw/ros_from_src_catkin_ws/src/ros_core/ros/core/roslib/include -I/home/lucasw/ros_from_src_catkin_ws/src/ros/roscpp_core/rostime/include -I/home/lucasw/ros_from_src_catkin_ws/src/ros/rosconsole/include -I/home/lucasw/ros_from_src_catkin_ws/src/ros_core/pluginlib/pluginlib/include -I/home/lucasw/own/build/ros_from_src/ros/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/usr/include/PySide2 -I/usr/include/c++/9 -I/usr/include/x86_64-linux-gnu/c++/9 -I/usr/include/c++/9/backward -I/usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include /tmp/global_fthQxC.hpp)
qt.shiboken: (typesystem) While traversing QOpenGLShaderProgram: setAttributeArray(int,const float*,int,int): Cannot use parameter 2 as an array: <array> modification already applied.
qt.shiboken: (typesystem) class 'QAccessibleWidget' inherits from unknown base class 'QAccessibleActionInterface'
qt.shiboken: (typesystem) class not found for setup inheritance 'QAccessibleActionInterface'

Warnings   << rviz:make /home/lucasw/ros_from_src_catkin_ws/logs/rviz/build.make.000.log
In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qaction.h:47,
                 from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qmenu.h:47,
                 from /usr/share/sip/PyQt5/QtWidgets/qmenu.sip:26:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h: In constructor ‘QVariant::QVariant(QVariant&&)’:
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:275:25: warning: implicitly-declared ‘constexpr QVariant::Private& QVariant::Private::operator=(const QVariant::Private&)’ is deprecated [-Wdeprecated-copy]
  275 |     { other.d = Private(); }
      |                         ^
/usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:401:16: note: because ‘QVariant::Private’ has user-provided ‘QVariant::Private::Private(const QVariant::Private&)’
  401 |         inline Private(const Private &other) Q_DECL_NOTHROW
      |                ^~~~~~~
In file included from /usr/share/sip/PyQt5/QtWidgets/qstyleoption.sip:560:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h: In copy constructor ‘QStyleOptionFocusRect::QStyleOptionFocusRect(const QStyleOptionFocusRect&)’:
/usr/include/x86_64-linux-gnu/qt5/QtWidgets/qstyleoption.h:120:103: warning: implicitly-declared ‘QStyleOptionFocusRect& QStyleOptionFocusRect::operator=(const QStyleOptionFocusRect&)’ is deprecated [-Wdeprecated-copy]

Need kinetic-devel in control_msgs

Needed these to build most of my stuff, but this is missing a few repos from another vcs export, add those also
additional_ros_repos.yaml.txt

Need to CATKIN_IGNORE sound_classification for now, avoid catkin virtualenv dependency

Errors     << jsk_topic_tools:make /home/lucasw/ros_from_src_catkin_ws/logs/jsk_topic_tools/build.make.003.log
In file included from /home/lucasw/ros_from_src_catkin_ws/src/ros_core/jsk_common/jsk_topic_tools/include/jsk_topic_tools/vital_checker_nodelet.h:40,
                 from /home/lucasw/ros_from_src_catkin_ws/src/ros_core/jsk_common/jsk_topic_tools/src/vital_checker_nodelet.cpp:37:
/home/lucasw/ros_from_src_catkin_ws/src/ros_core/jsk_common/jsk_topic_tools/include/jsk_topic_tools/diagnostic_nodelet.h:40:10: fatal error: diagnostic_updater/diagnostic_updater.h: No such file or directory
   40 | #include <diagnostic_updater/diagnostic_updater.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Packages that aren't yet in debian that I need:
unreleased_ros_repos.yaml.txt

Now catkin can't find message_generation, though it is installed via ros-message-generation


lower the text even unicode given

call the lower method from the object itself

Coverage remained the same at 97.373% when pulling 0c37dcb54561bd852ca4cb0064b6c4977f7ae511 on khyrulimam:master into 2138a24916533bde6b4200ebb6764c75d6e77ed3 on har07:master.

Ok. Seems like it doesn't introduce any side-effect AFAICS.


iOS 14+ photos permission ask added

Above iOS 14 version, Accessing photos permission is not asked from the user which should be the expected behaviour.
I have added functionality to ask permission from user for photos above iOS 14.
Please review ASAP as it was impacting users.
I am successfully done that and attaching screenshot for review purpose.

I was also facing this issue and had to mange locally, Now this is really good solution 👍

@lokesh020 @ajayoncode Checkout:  https://github.com/react-native-image-picker/react-native-image-picker/pull/1795

Hii @lukebrandonfarrell , pls suggest me the solution as above iOS 14 , photos permission is not asked by the library. If it's intended to do so, How can I achieve this as it is annoying. I have to change code locally and use it


Rewrite Decision tree

The decision tree implementation will based on c4.5, including:

Supporting information gain, gain ratio and gini as split criterion
Supporting both continuous attribute and discrete attribute
Supporting missing attribute
Supporting both tabular format input and sparse vector format input
Supporting reduce error pruning and error based pruning.
Make the training and classification scalable.

Filed several jiras on outstanding issues, including:

MADLIB-327 - Decision trees break on GPDB 4.0 and Postgres 8.4
MADLIB-326 - Decision Trees: bad inplace update of pass by reference values
MADLIB-325 - Decision Trees: Downcasting of floating point datatypes
MADLIB-324 - Decision Trees: Overrun of stack memory

All of these need to be addressed prior to release, but from a manageability perspective I'd like to get the current work in.


gardenlet fails to delete Shoot when ssh-keypair is missing in the ShootState

/kind bug
/kind regression
/priority 2
What happened:
Currently gardenlet may fail to create Shoot in the early steps of the Shoot reconcile flow (or simply gardenlet can be in CrashloopBackoff because of any other reason). In such case depending of the problematic step the ShootState can be empty. Deletion of such failed Shoot fails with:
  lastOperation:
    description: 'Flow "Shoot cluster deletion" encountered task errors: [task "Generating
      secrets and saving them into ShootState" failed: no Secret named ssh-keypair
      loaded] Operation will be retried.'

What you expected to happen:
The deletion of such Shoot to succeed.
How to reproduce it (as minimally and precisely as possible):

Create a Shoot and simulate a failure in the Shoot reconciliation flow before the step Generating secrets and saving them into ShootState

Maintain the Shoot

This will also lead to ssh key rotation - the gardener.cloud/operation: rotate-ssh-keypair annotation will be added to the Shoot

Delete the Shoot

Make sure that the deletion fails with:

  lastOperation:
    description: 'Flow "Shoot cluster deletion" encountered task errors: [task "Generating
      secrets and saving them into ShootState" failed: no Secret named ssh-keypair
      loaded] Operation will be retried.'
    lastUpdateTime: "2021-07-20T07:52:48Z"
    progress: 17
    state: Error
    type: Delete

Gardener version: v1.28.0-dev-3806079d4e35dca8064e39ce0e69a0912aa02778
Kubernetes version (use kubectl version):
Cloud provider or hardware configuration:
Others:

/assign @xrstf @petersutter

You can also create a shoot which already has the gardener.cloud/operation: rotate-ssh-keypair annotation and it should result in the same error
task "Generating
      secrets and saving them into ShootState" failed: no Secret named ssh-keypair
      loaded] Operation will be retried.


Rewrite to work with official heartbeat functionality

This looks awesome. Any reason you haven't merged it in yet?

@jzxchiang1 merged now c:


getCurrentSelectionCfi() error when selection contains images

Originally posted by @Twibit (@JCCR replied):
https://github.com/readium/readium-shared-js/issues/101
I'm trying to create annotations on selected content but when i want to get the CFI of a selection containing images, i get the following Uncaught SyntaxError.
Uncaught SyntaxError: Expected "!/", "/", "[" or [0-9] but "," found. in /lib/epub_cfi.js (1483)
As a temporary workaround, i've replaced every <img /> with a <span /> with the image as background and the same bounds.
$(iframe).contents().find('img').replaceWith(function(){
    return $('<span/>', {
        style: 'background-image: url('+this.src+'); background-size: '+ this.width +'px '+ this.height +'px; display:inline-block;color:transparent;',
        html: this.alt,
        width: this.width,
        height: this.height,
    });
});

It appears that this is working now with the latest version of the CFI library, but it still won't work until the annotations_module (which implements getCurrentSelectionCfi()) is updated to reflect the latest CFI lib changes.


Suppressing duplicate parent work items

How can I suppress duplicate parent work items? Let's say I have 3 linked work items which all have the same parent work item:

It finds the same parent 3 times over, which results in:

My handlebars template looks like this:
#### 🐞 Bugs
{{#forEach workItems}}
{{#with fields}}
{{#if (eq (get 'System.WorkItemType' this) 'Bug')}}
#{{../id}}
{{/if}}
{{/with}}
{{/forEach}}

#### 🔨 Tasks
{{#forEach workItems}}
{{#with fields}}
{{#if (eq (get 'System.WorkItemType' this) 'Task')}}
#{{../id}}
{{/if}}
{{/with}}
{{/forEach}}

 #### 🔗 Parents
{{#forEach this.workItems}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Parent')}}
{{#with (lookup_a_work_item ../../relatedWorkItems  this.url)}}
#{{this.id}}
{{/with}}
{{/if}}
{{/forEach}}
{{/forEach}}

A few ideas....

You could nest your foreach blocks so you see a drill down

foreach bug

foreach child - will get the tasks
foreach parent - will get the parents WI

Not really a solution to the problem you ask, but will make the duplications less confusing

You could just loop across the {{#forEach this.relations}}, a WI only appears once in this list, so you look for ones that have children or even specific children as defined by the list {{#forEach this.workItems}} - this might need option 3

Or you could write a custom Handlebars extension to keep a track of the parent WI listed so they are only shown one.

@rfennell Thanks for your suggestions 💪
I managed to solve this by using the return_parents_only custom Handlebars extension.
This somehow seems to work as the function in itself checks for duplicate parent items:
...
if (!foundList.includes(parent)) {
  foundList.push(parent);
  ret += block.fn(parent);
}
...

We only link Tasks to our PR's, which will either have a Bug or a User Story as their respective parent WI... so the following template works just fine and gets rid of any duplicate parent WI's:
#### 🐞 Bugs
{{#forEach workItems}}
{{#with fields}}
{{#if (eq (get 'System.WorkItemType' this) 'Bug')}}
#{{../id}}
{{/if}}
{{/with}}
{{/forEach}}

#### 🔨 Tasks
{{#forEach workItems}}
{{#with fields}}
{{#if (eq (get 'System.WorkItemType' this) 'Task')}}
#{{../id}}
{{/if}}
{{/with}}
{{/forEach}}

#### 🔗 Parent user stories

{{#return_parents_only this.workItems this.relatedWorkItems}}
#{{this.id}}
{{/return_parents_only}}

Result:

@rfennell Thanks for your suggestions 💪
I managed to solve this by using the return_parents_only custom Handlebars extension.
This somehow seems to work as the function in itself checks for duplicate parent items:
...
if (!foundList.includes(parent)) {
  foundList.push(parent);
  ret += block.fn(parent);
}
...

We only link Tasks to our PR's, which will either have a Bug or a User Story as their respective parent WI... so the following template works just fine and gets rid of any duplicate parent WI's:
#### 🐞 Bugs
{{#forEach workItems}}
{{#with fields}}
{{#if (eq (get 'System.WorkItemType' this) 'Bug')}}
#{{../id}}
{{/if}}
{{/with}}
{{/forEach}}

#### 🔨 Tasks
{{#forEach workItems}}
{{#with fields}}
{{#if (eq (get 'System.WorkItemType' this) 'Task')}}
#{{../id}}
{{/if}}
{{/with}}
{{/forEach}}

#### 🔗 Parent user stories

{{#return_parents_only this.workItems this.relatedWorkItems}}
#{{this.id}}
{{/return_parents_only}}

Result:

Good approach, how can I add this "Handlebars extension"?

Good approach, do you know the syntaxis for a release pipeline?

See the wiki for details, but the quick answer is you can either pass in the extension code as an inline parameter
- task: XplatGenerateReleaseNotes@3
   inputs:
      outputfile: '$(Build.ArtifactStagingDirectory)\releasenotes.md'
      # all the other parameters required
      customHandlebarsExtensionCode: |
         module.exports = {foo() {
            return 'Returns foo';
         }};

or the custom extension can be passed as file
- task: XplatGenerateReleaseNotes@3
   inputs:
      outputfile: '$(Build.ArtifactStagingDirectory)\releasenotes.md'
      # all the other parameters required
      customHandlebarsExtensionFile: $(System.SourceDirectory)\customcode.js

See the wiki for details, but the quick answer is you can either pass in the extension code as an inline parameter
- task: XplatGenerateReleaseNotes@3
   inputs:
      outputfile: '$(Build.ArtifactStagingDirectory)\releasenotes.md'
      # all the other parameters required
      customHandlebarsExtensionCode: |
         module.exports = {foo() {
            return 'Returns foo';
         }};

or the custom extension can be passed as file
- task: XplatGenerateReleaseNotes@3
   inputs:
      outputfile: '$(Build.ArtifactStagingDirectory)\releasenotes.md'
      # all the other parameters required
      customHandlebarsExtensionFile: $(System.SourceDirectory)\customcode.js

Thank you

In case you need to use tags with work item parents
{{#return_parents_only this.workItems this.relatedWorkItems}}
{{#if (contains (lookup this.fields 'System.Tags') 'Tag#1')}}

#{{this.id}}
{{/if}}
{{/return_parents_only}}

@smholvoet @rfennell I am following same way to segregate WI type wise as below
#### 🐞 Bugs
{{#forEach workItems}}
{{#with fields}}
{{#if (eq (get 'System.WorkItemType' this) 'Bug')}}
#{{../id}}
{{/if}}
{{/with}}
{{/forEach}}

However apart from only WI ID, I need to have other details as well like Assigned to, Tags, Parents in table format
I tried as below but AssignedTo is not working, so just want help here
#### 🐞 Bugs
| WI ID | Tags | Assigned To |
|--|--|--|
{{#forEach this.workItems}}
{{#with fields}}
{{#if (eq (get 'System.WorkItemType' this) 'Bug')}}
| #{{../id}} | {{'System.Tags'}} | {{#with (lookup 'System.AssignedTo')}} {{displayName}} {{/with}} |
{{/if}}
{{/with}}
{{/forEach}}

{{'System.AssignedTo.displayName'}} -------- it worked but didnt get output
{{#with System.AssignedTo}} {{displayName}} {{/with}} -------- it worked but didnt get output
{{#with (lookup 'System.AssignedTo')}} {{displayName}} {{/with}} -------- didnt work
{{#with 'System.AssignedTo'}} {{displayName}} {{/with}} -------- it worked but didnt get output
{{System.AssignedTo}} {{displayName}} -------- it worked but didnt get output

And how can I use parent in same table?
#### 🐞 Bugs
| WI ID | Tags | Assigned To | Parent |
|--|--|--|--|
{{#forEach this.workItems}}
{{#with fields}}
{{#if (eq (get 'System.WorkItemType' this) 'Bug')}}
| #{{../id}} | {{'System.Tags'}} | {{#with (lookup 'System.AssignedTo')}} {{displayName}} {{/with}} | {{#return_parents_only this.workItems this.relatedWorkItems}} #{{this.id}} {{/return_parents_only}}  |
{{/if}}
{{/with}}
{{/forEach}}

Please advise. Thanks.

I have answered this here, but I would usually recommend opening a new issue or discussion for a new question

Your basic idea for a table is correct, it is just the loop mechanism that is wrong. I would not use the outer {{#with}} wrapper
#### 🐞 Bugs
| WI ID | Tags | Assigned To |
|--|--|--|
{{#forEach this.workItems}}
{{#if (eq (get 'System.WorkItemType' this) 'Bug')}}
| #{{this.id}} |  {{lookup this.fields 'System.Tags'}} |  {{#with (lookup this.fields 'System.AssignedTo')}} {{displayName}} {{/with}} |
{{/if}}
{{/forEach}}

As to the parent lookup, it will be something like
#### 🐞 Bugs
| WI ID | Tags | Assigned To | Parent |
|--|--|--|--|
{{#forEach this.workItems}}
{{#if (eq (get 'System.WorkItemType' this) 'Bug')}}
| #{{this.id}} |  {{lookup this.fields 'System.Tags'}} |  {{#with (lookup this.fields 'System.AssignedTo')}} {{displayName}} {{/with}} |  {{#forEach this.relations}}
{{#if (contains this.attributes.name 'Parent')}}
{{#with (lookup_a_work_item ../../relatedWorkItems  this.url)}}
      - {{this.id}} - {{lookup this.fields 'System.Title'}}
      {{#forEach this.relations}}
      {{#if (contains this.attributes.name 'Parent')}}
      {{#with (lookup_a_work_item ../../../../relatedWorkItems  this.url)}}
         - {{this.id}} - {{lookup this.fields 'System.Title'}}
      {{/with}}
      {{/if}}
      {{/forEach}}
{{/with}}
{{/if}}
{{/forEach}}
  |
{{/if}}
{{/forEach}}


Is there an easy way to run the installation on an ubuntu server?

I would like to run the toolkit on an external ubuntu server, but I am unsure about the npm install.bat since this seems like a windows thig.
Is there still an option to run this?

Hey, you can issue these commands one by one or save them in an install.sh file for later execution.
npm i --production
node ./dist/scripts/install.js -plugins theme-default
node ./dist/scripts/setup.js

After the install you can run the application by
npm start
If you run into errors make sure your nodejs version is 16.16.0 (LTS). You can do this by issuing:
sudo n stable

Error: Cannot find module '/root/.dist/scripts/install.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Sadly the server can't find the correct module.. what am I missing?

looks like you are either running the command as root (should work fine without if permissions are set up) or your install.sh is saved outside of the toolkit directory.
You should be fine if you either include a cd /path/to/toolkit/ in your install.sh or if you save the script in the toolkit and run it without sudo


Misbehavior when abundance vector includes zeros

This looks like a potential problem with several of the _ll and _solver functions.  Using pln_ll and pln_solver as an example, I see the following issues:

With non-zero abundance values, the initial values for mean and std will be non-finite (because they include log(0)). One option would be to add a constant to the abundance vector before logging.  Another option could be to only add something to the zeros.

pln_ll incorrectly returns a finite log-likelihood when lower_trunc is True; the likelihood of zero should be zero when lower_trunc is True. pln_ll should probably throw an error (because sending zeros to a truncated distribution is likely to be a mistake) or return -np.inf, possibly with a warning.

What do folks think?

My initial thought is that (for us) all of these are designed to work only in cases with non-zero abundance values, so the first question is whether or not their are macroecological cases where it makes sense to include zeros. If the answer is no then I agree with Dave that we should add some asserts to make sure the input data is only positive integers. If the answer is yes, then I like the general plan laid out by Dave, assuming that I understand correctly that the adding something to the values is purely for setting the initial guess.

assuming that I understand correctly that the adding something to the values is purely for setting the initial guess.

Correct

Whether SADs can include zeros is a question that I don't have a good feeling for. There are probably cases where zeros are meaningfully present, i.e., in a survey where some resident species are not encountered. But given the usual uncertainty about the regional pool, I'm not sure if they should be included in parameter estimation or the calculation of likelihoods.
If we are to prepare the module for folks not in our group to use, the most general solution may be to add a zero = True/False argument for those distributions that allow zeros, and throw a warning when zeros are present in data but zero = False or lower-truncated distributions are used.

I feel like zeros are more important in a matrix/regional context than a
SAD/local context.
On Feb 5, 2016 1:52 PM, "Xiao Xiao"<EMAIL_ADDRESS>wrote:

Whether SADs can include zeros is a question that I don't have a good
feeling for. There are probably cases where zeros are meaningfully present,
i.e., in a survey where some resident species are not encountered. But
given the usual uncertainty about the regional pool, I'm not sure if they
should be included in parameter estimation or the calculation of
likelihoods.
If we are to prepare the module for folks not in our group to use, the
most general solution may be to add a zero = True/False argument for
those distributions that allow zeros, and throw a warning when zeros are
present in data but zero = False or lower-truncated distributions are
used.
—
Reply to this email directly or view it on GitHub
https://github.com/weecology/macroecotools/issues/27#issuecomment-180526851
.

If it's straightforward to add @rueuntal's proposed zero behavior, then I think that's a great way to go. That way folks can use the distributions however they would like. That said, since we still haven't identified an active use case, I think it's also OK to just throw warnings/errors when zeros are passed in.

I've attempted for an fix in the pull request. The ll functions now should return -inf (with no warning) when input values are out of support, following the behavior of logpmf/logpdf functions in scipy.stats`. The solvers check if the input values are all within support, and remove the out-of-boundary values with a warning.
I've only run some naive tests using a single SAD with and without zeros, and the functions have behaved as they should (e.g., warnings, -inf).
Two other (major? moderate?) changes:

The original trunc_logser_solver assumes that the truncation is at N=sum(ab). It now can take an arbitrary value, with the default set at N. This change shouldn't affect any past usage of the function.
I've changed the names of the lower-truncated negative binomial functions from negbin to nbinom_lower_trunc for consistency and to avoid confusion. This does make a difference in calling the functions, and the corresponding lines in the SAD project will need to be changed accordingly. I'll probably be occupied with other things for the next two days, so you guys are most welcome to go ahead and make the changes. Or I can work on it during the weekend.

Clearly I haven't had a chance to take a crack at the follow up changes, so if you have some time this week that would be great. After that, from the analysis side, we should be down to just pulling the geometric (if we go that route) and rerunning all of the analyses.

No problem, I'll take a crack this afternoon. But I don't have access to
the Weecology servers any more (or any other server), so it would be great
if someone else could rerun the analyses after I submit the pull request.
On Mon, Feb 22, 2016 at 12:16 PM, Ethan White<EMAIL_ADDRESS>wrote:

Clearly I haven't had a chance to take a crack at the follow up changes,
so if you have some time this week that would be great. After that, from
the analysis side, we should be down to just pulling the geometric (if we
go that route) and rerunning all of the analyses.
—
Reply to this email directly or view it on GitHub
https://github.com/weecology/macroecotools/issues/27#issuecomment-187274668
.

When all the changes are made to the assorted codes for the SAD
comparisons, if someone gives me a holler and tells me that things are
ready, I should be able to get everything re-run on my machine.
Elita Baldridge, Ph.D.
GitHub: embaldridge
Twitter: @elitabaldridge
Website: http://elitabaldridge.org/
On Mon, Feb 22, 2016 at 11:31 AM, Xiao Xiao<EMAIL_ADDRESS>wrote:

No problem, I'll take a crack this afternoon. But I don't have access to
the Weecology servers any more (or any other server), so it would be great
if someone else could rerun the analyses after I submit the pull request.
On Mon, Feb 22, 2016 at 12:16 PM, Ethan White<EMAIL_ADDRESS>wrote:

Clearly I haven't had a chance to take a crack at the follow up changes,
so if you have some time this week that would be great. After that, from
the analysis side, we should be down to just pulling the geometric (if we
go that route) and rerunning all of the analyses.
—
Reply to this email directly or view it on GitHub
<
https://github.com/weecology/macroecotools/issues/27#issuecomment-187274668

.

—
Reply to this email directly or view it on GitHub
https://github.com/weecology/macroecotools/issues/27#issuecomment-187280994
.


Wrong type on MorphToMany::when

Larastan Version: 0.7.12
--level used: 8

Description
Given: a Group model with a MorphToMany realation to a User model
The code below results in the error message:
Parameter #2 $callback of method Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\User>::when() expects
callable(Illuminate\Database\Eloquent\Relations\MorphToMany<App\Models\User>, mixed): Illuminate\Database\Eloquent\Builder<App\Models\User>|void,
Closure(Illuminate\Database\Eloquent\Builder, string): void given.

But the first parameter is a Builder instance in reality so the relation one is wrong.
Laravel code where the issue was found
use Illuminate\Database\Eloquent\Builder;

        Group::make()->users()->when('search', function (Builder $query, string $search): void {
            dd(get_class($query)); // dumps: "Illuminate\Database\Eloquent\Builder"
        });

Just happened to me too.

The problem may come from our stubs.
https://github.com/nunomaduro/larastan/blob/a09b4d4d24d39be5a569e52c238ef5347d186b56/stubs/EloquentBuilder.stub#L417-L425

@canvural Hello! 👋 What do we have to do here? Please advise.

This is a PHPStan limitation, and currently there is no way to fix. Since when is called on a relation, it expects the first argument of the closure to be MorphToMany not Builder
Subscribe to #1110 for updates.

😿 😿 😿
😿 😿 😿
😿 😿 😿


Support serviceAccountName configuration overwrite

Regarding how to manage the project.
I am fine with what you are suggesting. Introduce this change to our 1.16 release branch.
Although I foresee this landing into upstream master causing a new 1.18 release.

@sergicastro this PR https://github.com/tetrateio/kubegres/pull/3 is for release-v1.16.x

I've put that PR in draft, let's see if the upstream issue gets merged first.


Fix visibility of general information

Closes #248

Codecov Report

Merging #251 (b580f45) into master (2037c68) will increase coverage by 86.67%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           master     #251       +/-   ##
===========================================
+ Coverage    9.42%   96.09%   +86.67%
===========================================
  Files          70        4       -66
  Lines        1369      128     -1241
  Branches      177        0      -177
===========================================
- Hits          129      123        -6
+ Misses       1101        5     -1096
+ Partials      139        0      -139

Impacted Files
Coverage Δ

...component/information_panel/general_information.js

...tatic/src/component/permalink/permalink.stories.js

oereb_client/static/src/util/language.js

oereb_client/static/src/util/wms.js

oereb_client/static/src/component/map/map.js

...c/src/component/extract/extract_loading.stories.js

...c/src/component/real_estate/real_estate.stories.js

.../static/src/component/topic_layers/topic_layers.js

oereb_client/static/src/util/array.js

oereb_client/static/src/reducer/map.js

... and 56 more

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 2037c68...b580f45. Read the comment docs.


Feature Request: Drag To Resize Pane

Pretty self explanatory but this would be a cool feature to have given  the length of labels/values aren't predictable.

It should be fairly straight forward, do you want to contrib the feature?

Sure, I can try take a stab at this!


CSS Feature Doesn't Work

Trying to use css feature returns an error.
I tried to print css attribute of blocks and it was empty for all of them.
Did I do something wrong or it is broken?
KeyError                                  Traceback (most recent call last)
<ipython-input-2-12f95110a825> in <module>
     23 )
     24
---> 25 extractor = train_model(base_extractor, rootdir)

~/anaconda3_501/lib/python3.6/site-packages/dragnet/model_training.py in train_model(extractor, data_dir, output_dir)
    106     logging.info('fitting and evaluating the extractor features and model...')
    107     try:
--> 108         extractor.fit(train_html, train_labels, weights=train_weights)
    109     except (TypeError, ValueError):
    110         extractor.fit(train_html, train_labels)

~/anaconda3_501/lib/python3.6/site-packages/dragnet/extractor.py in fit(self, documents, labels, weights)
     87         # happens for now, but this might be important if the features change
     88         features_mat = np.concatenate([self.features.fit_transform(blocks)
---> 89                                        for blocks in block_groups])
     90         if weights is None:
     91             self.model.fit(features_mat, labels)

~/anaconda3_501/lib/python3.6/site-packages/dragnet/extractor.py in <listcomp>(.0)
     87         # happens for now, but this might be important if the features change
     88         features_mat = np.concatenate([self.features.fit_transform(blocks)
---> 89                                        for blocks in block_groups])
     90         if weights is None:
     91             self.model.fit(features_mat, labels)

~/anaconda3_501/lib/python3.6/site-packages/sklearn/pipeline.py in fit_transform(self, X, y, **fit_params)
    791             delayed(_fit_transform_one)(trans, X, y, weight,
    792                                         **fit_params)
--> 793             for name, trans, weight in self._iter())
    794
    795         if not result:

~/anaconda3_501/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py in __call__(self, iterable)
    918                 self._iterating = self._original_iterator is not None
    919
--> 920             while self.dispatch_one_batch(iterator):
    921                 pass
    922

~/anaconda3_501/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py in dispatch_one_batch(self, iterator)
    757                 return False
    758             else:
--> 759                 self._dispatch(tasks)
    760                 return True
    761

~/anaconda3_501/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py in _dispatch(self, batch)
    714         with self._lock:
    715             job_idx = len(self._jobs)
--> 716             job = self._backend.apply_async(batch, callback=cb)
    717             # A job can complete so quickly than its callback is
    718             # called before we get here, causing self._jobs to

~/anaconda3_501/lib/python3.6/site-packages/sklearn/externals/joblib/_parallel_backends.py in apply_async(self, func, callback)
    180     def apply_async(self, func, callback=None):
    181         """Schedule a func to be run"""
--> 182         result = ImmediateResult(func)
    183         if callback:
    184             callback(result)

~/anaconda3_501/lib/python3.6/site-packages/sklearn/externals/joblib/_parallel_backends.py in __init__(self, batch)
    547         # Don't delay the application, to avoid keeping the input
    548         # arguments in memory
--> 549         self.results = batch()
    550
    551     def get(self):

~/anaconda3_501/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py in __call__(self)
    223         with parallel_backend(self._backend, n_jobs=self._n_jobs):
    224             return [func(*args, **kwargs)
--> 225                     for func, args, kwargs in self.items]
    226
    227     def __len__(self):

~/anaconda3_501/lib/python3.6/site-packages/sklearn/externals/joblib/parallel.py in <listcomp>(.0)
    223         with parallel_backend(self._backend, n_jobs=self._n_jobs):
    224             return [func(*args, **kwargs)
--> 225                     for func, args, kwargs in self.items]
    226
    227     def __len__(self):

~/anaconda3_501/lib/python3.6/site-packages/sklearn/pipeline.py in _fit_transform_one(transformer, X, y, weight, **fit_params)
    612 def _fit_transform_one(transformer, X, y, weight, **fit_params):
    613     if hasattr(transformer, 'fit_transform'):
--> 614         res = transformer.fit_transform(X, y, **fit_params)
    615     else:
    616         res = transformer.fit(X, y, **fit_params).transform(X)

~/anaconda3_501/lib/python3.6/site-packages/sklearn/base.py in fit_transform(self, X, y, **fit_params)
    462         if y is None:
    463             # fit method of arity 1 (unsupervised transformation)
--> 464             return self.fit(X, **fit_params).transform(X)
    465         else:
    466             # fit method of arity 2 (supervised transformation)

~/anaconda3_501/lib/python3.6/site-packages/dragnet/features/css.py in transform(self, blocks, y)
     56             for token in tokens
     57             )
---> 58         return np.column_stack(tuple(feature_vecs)).astype(int)

~/anaconda3_501/lib/python3.6/site-packages/dragnet/features/css.py in <genexpr>(.0)
     54                   for block in blocks)
     55             for attrib, tokens in self.attribute_tokens
---> 56             for token in tokens
     57             )
     58         return np.column_stack(tuple(feature_vecs)).astype(int)

~/anaconda3_501/lib/python3.6/site-packages/dragnet/features/css.py in <genexpr>(.0)
     52         feature_vecs = (
     53             tuple(re.search(token, block.css[attrib]) is not None
---> 54                   for block in blocks)
     55             for attrib, tokens in self.attribute_tokens
     56             for token in tokens

KeyError: 'id'

I found the problem, needed to change blockifier in extractor.py from TagCountNoCSSReadabilityBlockifier to something which supports CSS (e.g. TagCountReadabilityBlockifier).
Remember to add required imports first:
from .blocks import TagCountNoCSSReadabilityBlockifier, TagCountReadabilityBlockifier, TagCountBlockifier


Update sample app to Jetpack Compose, rewrite documentation, addition of KTX, and general 5.x rewrite work

closes #145
closes #155
closes #158
closes #159
closes #167

Remainder of work:

Add network - first time pop up
Documentation
Minor bugs:
BSSID validation blocks use of regex
Cleanup permissions for lib and sample app
Organize properties vs. params


[amazonminitv] Fix extraction

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

Changed AmazonMiniTV extraction process.

Changed playback info retrieval from GraphQL to NEXT_DATA
Dropped support for seasons and series extraction since GraphQL URLs are no longer working.

Fixes #7817
Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

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

What is the purpose of your pull request?

[x] Fix or improvement to an extractor (Make sure to add/update tests)
[ ] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

Copilot Summary

🤖 Generated by Copilot at 024d6a7
Summary
🗑🔄🚀

Update amazonminitv.py extractor to use NextJS data and remove unused code and imports. This simplifies the extractor and makes it more reliable and efficient.

amazonminitv
NextJS data, not GraphQL
Spring cleaning imports

Walkthrough

Remove unused imports of AmazonMiniTVSeasonIE and AmazonMiniTVSeriesIE from _extractors.py (link)
Remove unused import of json from amazonminitv.py (link)
Replace _call_api method with _get_nextjs_data method in AmazonMiniTVBaseIE class to use NextJS data instead of GraphQL queries (link)
Use prs variable to extract playback and title info from NextJS data in AmazonMiniTVIE class and update keys accordingly (link)
Use title_info variable to extract content info from NextJS data in AmazonMiniTVIE class and update keys accordingly (link)
Remove AmazonMiniTVSeasonIE and AmazonMiniTVSeriesIE classes from amazonminitv.py as they are no longer needed (link)

It's possible that someone will find a way to fix the mobile graphql requests in the future, so I don't think we should remove the season and series extractors. They can be marked as _WORKING = False
The PR currently fails to handle the prefix URLs. We should match the ID from the input URL and then construct the webpage request URL.
I think this is all that needs to be done (based on master):
diff --git a/yt_dlp/extractor/amazonminitv.py b/yt_dlp/extractor/amazonminitv.py
index b57d985d1..ad23b16bd 100644
--- a/yt_dlp/extractor/amazonminitv.py
+++ b/yt_dlp/extractor/amazonminitv.py
@@ -37,7 +37,7 @@ def _call_api(self, asin, data=None, note=None):
         return resp['data'][data['operationName']]

-class AmazonMiniTVIE(AmazonMiniTVBaseIE):
+class AmazonMiniTVIE(InfoExtractor):
     _VALID_URL = r'(?:https?://(?:www\.)?amazon\.in/minitv/tp/|amazonminitv:(?:amzn1\.dv\.gti\.)?)(?P<id>[a-f0-9-]+)'
     _TESTS = [{
         'url': 'https://www.amazon.in/minitv/tp/75fe3a75-b8fe-4499-8100-5c9424344840?referrer=https%3A%2F%2Fwww.amazon.in%2Fminitv',
@@ -86,56 +86,14 @@ class AmazonMiniTVIE(AmazonMiniTVBaseIE):
         'only_matching': True,
     }]

-    _GRAPHQL_QUERY_CONTENT = '''
-query content($sessionIdToken: String!, $deviceLocale: String, $contentId: ID!, $contentType: ContentType!, $clientId: String) {
-  content(
-    applicationContextInput: {deviceLocale: $deviceLocale, sessionIdToken: $sessionIdToken, clientId: $clientId}
-    contentId: $contentId
-    contentType: $contentType
-  ) {
-    contentId
-    name
-    ... on Episode {
-      contentId
-      vodType
-      name
-      images
-      description {
-        synopsis
-        contentLengthInSeconds
-      }
-      publicReleaseDateUTC
-      audioTracks
-      seasonId
-      seriesId
-      seriesName
-      seasonNumber
-      episodeNumber
-      timecode {
-        endCreditsTime
-      }
-    }
-    ... on MovieContent {
-      contentId
-      vodType
-      name
-      description {
-        synopsis
-        contentLengthInSeconds
-      }
-      images
-      publicReleaseDateUTC
-      audioTracks
-    }
-  }
-}'''
-
     def _real_extract(self, url):
-        asin = f'amzn1.dv.gti.{self._match_id(url)}'
-        prs = self._call_api(asin, note='Downloading playback info')
+        video_uuid = self._match_id(url)
+        asin = f'amzn1.dv.gti.{video_uuid}'
+        webpage = self._download_webpage(f'https://www.amazon.in/minitv/tp/{video_uuid}', asin)
+        data = self._search_nextjs_data(webpage, asin)['props']['pageProps']['ssrProps']

         formats, subtitles = [], {}
-        for type_, asset in prs['playbackAssets'].items():
+        for type_, asset in traverse_obj(data, ('playbackData', 'playbackAssets', {dict.items}, ...)):
             if not traverse_obj(asset, 'manifestUrl'):
                 continue
             if type_ == 'hls':
@@ -152,12 +110,7 @@ def _real_extract(self, url):
             else:
                 self.report_warning(f'Unknown asset type: {type_}')

-        title_info = self._call_api(
-            asin, note='Downloading title info', data={
-                'operationName': 'content',
-                'variables': {'contentId': asin},
-                'query': self._GRAPHQL_QUERY_CONTENT,
-            })
+        title_info = traverse_obj(data, ('contentData', {dict})) or {}
         credits_time = try_get(title_info, lambda x: x['timecode']['endCreditsTime'] / 1000)
         is_episode = title_info.get('vodType') == 'EPISODE'

@@ -192,6 +145,7 @@ class AmazonMiniTVSeasonIE(AmazonMiniTVBaseIE):
     IE_NAME = 'amazonminitv:season'
     _VALID_URL = r'amazonminitv:season:(?:amzn1\.dv\.gti\.)?(?P<id>[a-f0-9-]+)'
     IE_DESC = 'Amazon MiniTV Season, "minitv:season:" prefix'
+    _WORKING = False
     _TESTS = [{
         'url': 'amazonminitv:season:amzn1.dv.gti.0aa996eb-6a1b-4886-a342-387fbd2f1db0',
         'playlist_mincount': 6,
@@ -251,6 +205,7 @@ class AmazonMiniTVSeriesIE(AmazonMiniTVBaseIE):
     IE_NAME = 'amazonminitv:series'
     _VALID_URL = r'amazonminitv:series:(?:amzn1\.dv\.gti\.)?(?P<id>[a-f0-9-]+)'
     IE_DESC = 'Amazon MiniTV Series, "minitv:series:" prefix'
+    _WORKING = False
     _TESTS = [{
         'url': 'amazonminitv:series:amzn1.dv.gti.56521d46-b040-4fd5-872e-3e70476a04b0',
         'playlist_mincount': 3,

@Aniruddh-J and @bashonly
Thanks for your efforts. I just found out that just by adding  these headers on line 25 in the old version of code, all the 3 modules AmazonMiniTVIE, AmazonMiniTVSeasonIE and AmazonMiniTVSeriesIE starts working again. So, if you could just roll back the #8103 and add these headers?
headers={'Content-Type': 'application/json', 'currentpageurl': '/', 'currentplatform': 'dWeb'}


4.0.0-Beta5 - migrating from 3.0.0-Beta5 causes app to hang and have lot of ANRs

Hi
First of all, thanks for dbflow has been nice and very helpful in developing my app which has lot of db transactions (Reads and Writes). 3.0.0-Beta5 served us well but we wanted to have SQLCipher and upgrade to latest dbflow version 4.0.0-Beta5. After upgrading we started seeing lot of ANRs and db reads are taking much longer than earlier.
We changed all of our writes to async writes or wrapped them in a transaction which improved the insert/update perf but reads are really slower. Is there known issue in 4.0.0-Beta5 or do we need to change something from 3.0.0 - Beta5 to reads to perform better?

have tried using WAL? https://www.sqlite.org/wal.html
((FlowSQLiteOpenHelper) FlowManager.getDatabase(YourDatabase.class).getHelper()).setWriteAheadLoggingEnabled(true);

Thanks Trevor for answer. We are using SQLCipherOpenHelper, how can set the WAL flag with SQLCipher in dbflow?

The setWriteAheadLogging is in abstract SQLiteOpenHelper in package "android.database.sqlite", but when we are using SQLCipherOpenHelper then it is derived from SQLiteOpenHelper which is in package "net.sqlcipher.database" which doesn't have the setWriteAheadLogging() method.

Im not sure, may have to do some fishing around the packages to figure it out.

if its SQLCipher, it doesn't have support for it directly, but see this thread: https://discuss.zetetic.net/t/enabling-write-ahead-logging-and-using-begin-immediate-with-sqlcipher-on-android/2124
so In DBFlow you'd call: FlowManager.getDatabase(MyDatabase.class).execSQL("PRAGMA journal_mode=WAL;");


Move 15.0.2 to 100%

Could we move the 14.0.x users 100% to 15.0.2? Or are there issues we wait for that will be fixed in 15.0.3? Us being super conservative with this results in super regular questions and comments like
https://twitter.com/stefan2sander/status/1090925131763986432
And they have a point... We should be more consistent - go to 100% after the 1nd minor release unless there's a real good reason not to.

stable14 ships 100% 15.0.x.
And #188 will ship 15.0.x on production channel 14 instances.


No autocomplete, no hint information.

I installed inonide-installer in ATOM editor in Windows 10, but I get neither autocomplete nor mouse hover hint information. I'm sure the autocomplete-plus is enabled and with suggestions option checked. Anything I'm missing here?

I got the problem solved by installing F# 3.1. Sorry I should have read the prerequisites.


Cannot compile for androidPlatform android-17

Our project needs to support Android 4.2.
If I change the androidPlatform to "Android-17".
We use NDK R14.
bx/scripts/toolchain.lua
	local androidPlatform = "android-17" 	if _OPTIONS["with-android"] then 		androidPlatform = "android-" .. _OPTIONS["with-android"] 	end
there will be some compiling error
/Applications/Xcode.app/Contents/Developer/usr/bin/make -R -C .build/projects/gmake-android-arm config=release ==== Building bx (release) ==== bx.cpp In file included from ../../../../bx/src/bx.cpp:7: In file included from ../../../../bx/include/bx/readerwriter.h:10: In file included from ../../../../bx/include/bx/allocator.h:11: In file included from /Users/xxx/Program/AndroidSDK/ndk-bundle/sources/cxx-stl/llvm-libc++/include/new:70: In file included from /Users/xxx/Program/AndroidSDK/ndk-bundle/sources/cxx-stl/llvm-libc++/include/exception:85: /Users/xxx/Program/AndroidSDK/ndk-bundle/sources/cxx-stl/llvm-libc++/include/cstdlib:108:9: error:        no member named 'strtold' in the global namespace using ::strtold;       ~~^ /Users/xxx/Program/AndroidSDK/ndk-bundle/sources/cxx-stl/llvm-libc++/include/cstdlib:126:9: error:        no member named '_Exit' in the global namespace using ::_Exit;       ~~^ /Users/xxx/Program/AndroidSDK/ndk-bundle/sources/cxx-stl/llvm-libc++/include/cstdlib:149:9: error:        no member named 'at_quick_exit' in the global namespace using ::at_quick_exit;       ~~^ /Users/xxx/Program/AndroidSDK/ndk-bundle/sources/cxx-stl/llvm-libc++/include/cstdlib:150:9: error:        no member named 'quick_exit' in the global namespace using ::quick_exit;       ~~^ 4 errors generated. make[2]: *** [../../android-arm/obj/Release/bx/bx/src/bx.o] Error 1 make[1]: *** [bx] Error 2 make: *** [android-arm-release] Error 2

It looks like it's due to toolchain. I switched to clang toolchain, and now anything below android-21 has similar issue. I'm not going to fix this, but you can look toolchain.lua history (https://github.com/bkaradzic/bx/blob/master/scripts/toolchain.lua) and revert back to GCC toolchain.

Actually this is easily fixable. I ran into the same problem last week (though not on bgfx, but the errors were the same).
	configuration { "android-*" }
		targetprefix ("lib")
		flags {
		}
		includedirs {
			"$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++/include",
			"$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++abi/include",
			"$(ANDROID_NDK_ROOT)/sources/android/support/include",
			"$(ANDROID_NDK_ROOT)/sources/android/native_app_glue",
		}
		linkoptions {
			"-nostdlib",
			"-static-libgcc",
		}
		links {
			"c",
			"dl",
			"m",
			"android",
			"log",
			"c++",
			"gcc",
		}
		buildoptions {
			"-fPIC",
			"-no-canonical-prefixes",
			"-Wa,--noexecstack",
			"-ffunction-sections",
			"-Wunused-value",
			"-Wundef",
		}
		buildoptions_cpp {
			"-std=c++11",
		}
		linkoptions {
			"-no-canonical-prefixes",
			"-Wl,--no-undefined",
			"-Wl,-z,noexecstack",
			"-Wl,-z,relro",
			"-Wl,-z,now",
		}

	configuration { "android-arm" }
		targetdir (path.join(_buildDir, "../sdk/libs/android/armeabi-v7a"))
		objdir (path.join(_buildDir, "android-arm/obj"))
		libdirs {
			path.join(_libDir, "lib/android-arm"),
			"$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a",
		}
		includedirs {
		}
		buildoptions {
			"-gcc-toolchain $(ANDROID_NDK_ARM)",
			"--sysroot=" .. path.join("$(ANDROID_NDK_ROOT)/platforms", androidPlatform, "arch-arm"),
			"-target armv7-none-linux-androideabi",
			"-mthumb",
			"-march=armv7-a",
			"-mfloat-abi=softfp",
			"-mfpu=neon",
			"-Wunused-value",
			"-Wundef",
		}
		linkoptions {
			"-gcc-toolchain $(ANDROID_NDK_ARM)",
			"--sysroot=" .. path.join("$(ANDROID_NDK_ROOT)/platforms", androidPlatform, "arch-arm"),
			path.join("$(ANDROID_NDK_ROOT)/platforms", androidPlatform, "arch-arm/usr/lib/crtbegin_so.o"),
			path.join("$(ANDROID_NDK_ROOT)/platforms", androidPlatform, "arch-arm/usr/lib/crtend_so.o"),
			"-target armv7-none-linux-androideabi",
			"-march=armv7-a",
			"-Wl,--fix-cortex-a8",
		}

This is from our own toolchain.lua file, so it's not totally in sync with latest bx toolchain, so pay attention mostly to the include dirs.
I actually ran ndk-build on a sample project with android-16 and llvm libc++ to see what headers it used.
I can confirm that our project compiles (we just build libraries with genie and then the actual app .so with ndk-build) with android-16 (and 24) with clang & llvm libc++ without problems.


feat(Gantt): support localization

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
I am seeing month names in Chinese in Gantt, while using en-US culture.

Expected Behavior
Month names should appear in English
Steps To Reproduce

Visit the Gantt example URL: https://www.blazor.zone/gantt
Language of the example is set to English.
My OS culture is en-US.
I see the same result both on the URL above and in my local build.

Exceptions (if any)
No response
.NET Version
8.0.202
Anything else?
No response

link discussion #3111


Allow incorrect break points

Description:
VSCode extension allow incorrect break points, including comments and method declaration level (This is not supported via the debug server). Have to mark invalid lines as Unbound breakpoints.

Suggested Labels:

Suggested Assignees:

Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

Moved to https://github.com/wso2/ballerina-plugin-vscode/issues/29


[SMALLFIX]Use static imports for standard test utilities

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Alluxio-Pull-Request-Builder/15881/
Test FAILed.

/home/jenkins/workspace/Alluxio-Pull-Request-Builder/core/common/src/test/java/alluxio/AlluxioURITest.java:16:8: error: Unused import - org.junit.Assert.
/home/jenkins/workspace/Alluxio-Pull-Request-Builder/core/common/src/test/java/alluxio/AlluxioURITest.java:17:8: error: Unused import - org.junit.Assume.
/home/jenkins/workspace/Alluxio-Pull-Request-Builder/core/common/src/test/java/alluxio/AlluxioURITest.java:23: error: Import statement for 'org.junit.Assert.assertEquals' is in the wrong order. Should be in the 'STATIC' group, expecting not assigned imports on this line.
/home/jenkins/workspace/Alluxio-Pull-Request-Builder/core/common/src/test/java/alluxio/AlluxioURITest.java:24: error: Import statement for 'org.junit.Assert.assertTrue' is in the wrong order. Should be in the 'STATIC' group, expecting not assigned imports on this line.
/home/jenkins/workspace/Alluxio-Pull-Request-Builder/core/common/src/test/java/alluxio/AlluxioURITest.java:25: error: Import statement for 'org.junit.Assert.assertFalse' is in the wrong order. Should be in the 'STATIC' group, expecting not assigned imports on this line.
/home/jenkins/workspace/Alluxio-Pull-Request-Builder/core/common/src/test/java/alluxio/AlluxioURITest.java:26: error: Import statement for 'org.junit.Assume.assumeTrue' is in the wrong order. Should be in the 'STATIC' group, expecting not assigned imports on this line.

@ParanoiaW thanks for you contribution. Please reopen this PR towards master branch.


updated package.json to allow patches of stylis when installing deps

There have been multiple patch updates to stylis with fixes for multiple issues. Styled components currently installs 2.0.3. The latest stylis is 2.0.12.
Examples of a few issues:
https://github.com/thysultan/stylis.js/issues/16
https://github.com/styled-components/styled-components/issues/775

Actually, the ^ already includes patches. The bigger problem is that we bundle stylis with styled-components which locks the version for webpack users. We should probably update our build process before v2 final release.

@k15a We should probably add stylis as an external for the .es.js build

Ah okay, fair enough. Would an updated patch version of stylis in the yarn.lock not help webpack users at all?

@silverlight513 no, webpack 2 and rollup will point to the ES bundle

I think we should create another distribution folder which is compiled without modules.
So webpack and rollup can use this folder and bundle it alone and everyone who wants to include styled-components via script tag can use unpkg.com and use the bundles.

Oh, I didn't realise that. Shall we close this PR then as it's pointless to the project. Other than discussion about the issue.

@k15a don't think that's a good idea. We can just change the .es.js module alone, since that's not the UMD bundle that you'd use on script tags, etc.

Good point. Is there a way to automatically exclude all dependencies from the .es.js bundle?

@k15a yea, adding all keys of dependencies to externals, but that's not a good idea either ^^ It'd probably introduce some quirks over time. I'll open a PR that modifies the ES bundle in a few minutes.

Could you explain why this isn't a good idea? I mean webpack and rollup can resolve the dependencies on their own when they are not in the bundle. What's the downside of that?

@k15a It just adds a layer of unexpectedness imho. I'd change as little as possible for now, since I don't want any weird surprises after the v2 release ^^


Feature: New website theme and engine.

Feature: New website theme and engine.

I like my current one.


submitting an array of aliases

Not sure if this is related to #153 or not but I am getting errors when trying to submit an array value with multiple item aliases in it:
in Biosample sheet -
Field is 'modifications:array'
rows with single values like so ['dcic:clone4_5_6'] import fine.
rows with two values like so ['dcic:clone4_5_6', 'dcic:clone6-2']
give the following warnings indicating validation errors:
WARNING:root:POST failure. Response = {"errors": [{"description": ""dcic:clone4_5_6'" not found", "name": ["modifications", 0], "location": "body"}, {"description": "" 'dcic:clone6-2" not found", "name": ["modifications", 1], "location": "body"}], "title": "Unprocessable Entity", "status": "error", "code": 422, "@type": ["ValidationFailure", "Error"], "description": "Failed validation"}
This is going on in my add_capture_hic branch while trying to load locally and I haven't yet had time to generate a test case for the beanstalk instance to determine if it is an issue there too.  I will try to do so next week and confirm it's not just me but if @KorayKirli has run across this then input appreciated.

You can use the following form, it is simpler to enter. I guess Jeremy fixed this a while ago. Try it in your local and see if it works. That's what I had for multiple files in experiment. For single objects the [] still works but you can loose them too.
dcic:clone4_5_6,dcic:clone6-2
Once our upload file patch update... scripts are finalized, I will write detailed instructions.


Add Washtenaw Community College - wccnet.edu

The university official website URL: Official Website
A URL of a page on the official website where a long-term (>1 year) IT related course is offered by the university: Associate of Science: Information Systems: Programming in C++
A URL of a page or some other proof (.pdf or a screenshot are OK) showing that the university recognizes the domain which you are submitting as an official email domain for the enrolled students.: Contact Page

@jimdiroffii Thank you for your patience while waiting for a review and processing your request. Pull request merged. Please start applying for JetBrains educational subscription at https://www.jetbrains.com/shop/eform/students in an hour, to allow the changes to propagate through JetBrains systems.


[x] My pull request has a descriptive title (not a vague title like Update index.md)

Uses lazysizes to defer images loading until they will become visible.

Should we also lazy load the author images?

We can, sure.  Should I add those changes in this PR?

Sure, that makes sense.

Actually, thinking about it, won't the author images always be above the fold?
That said, the rest of the images in the articles could be anywhere, so I'll take a look at them.

I can't see an obvious way to get at the images in an article, since they're buried inside {{ content }}.  @ahmadabdolsaheb @scissorsneedfoodtoo any ideas?
I'm leaning towards deferring this to another PR, if that's okay.

@ojeytonwilliams, this looks good to me. LazySizes seems like a great, lightweight alternative to native lazy loading until Firefox and Safari catch up to Chrome's level of support.
For the author images, on the author page they'll always appear above the fold. But on the landing page and search results page, a good number will appear below the fold. Still, they're only 30x30 images, so lazy loading may not be totally necessary.
I'm thinking these changes can be merged as-is, and we can do the same for the search results page in another PR, and author images if we decide to do those as well.
For everything in {{ content }}, there doesn't seem to be an obvious way to do that. Ghost 4 apparently supports lazy loading for content images, but we would need to look at another solution for Ghost 3.
Someone used Cloudflare Workers to add loading=lazy to the images in posts.
Might be overkill for us now since we're planning to move to headless Ghost, but I'm sure we can figure out a good way to add the lazyload class with our SSG since we'll have the HTML for each post before building the page.

@raisedadead, that's true. For the JAMstack SSG we'd need to figure out another solution ourselves no matter what Ghost version we're on.


refactor(rviz): update the class name and turn signal color

Description
Changing class name of the overlay plugin + turn signals default color
Part of:

https://github.com/autowarefoundation/autoware/issues/4146

Should be merged with:

https://github.com/autowarefoundation/autoware.universe/pull/6323

Tests performed
Not applicable.
Effects on system behavior
This will correctly load the plugin into the display
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

Renamed the PR title and the commit message to reflect the meaning better.


Event / custom autocmd system for users to hook into

The goal is to fire events / custom autocmds when certain Conjure things happen, such as opening the log buffer, connecting, disconnecting and evaluating. Maybe even results and errors too.
This will allow users and 3rd party Conjure extensions to hook into things and perform extra work after things happen.

There's now some events on develop! See :h conjure-autocmds for more information.

Released in v4.10.0!


Bug with generators

So I really want to use Prisma but I've had a lot of troubles setting it up (monorepos, tooling and app sharing the same url, etc), but now I have a problem I am really unable to solve.
My docker-compose looks like this:
version: '3'

services:
  app:
    image: node
    volumes:
      - ./:/app
    working_dir: /app
    depends_on:
      - postgres
    environment:
      NODE_ENV: development
    ports:
      - 3333:3333
    links:
      - postgres
    command: npm run nx serve api

  postgres:
    image: postgres
    restart: 'always'
    ports:
      - 5432:5432
    expose:
      - 5432
    environment:
      POSTGRES_USER: '...'
      POSTGRES_DB: '...'
      POSTGRES_PASSWORD: '...'
      PGPORT: 5432

And my Prisma file looks like this:
datasource db {
  provider = "postgresql"
  url      = "..."
}

generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native"]
}

model User {
  id       String @default(uuid()) @id
  username String @unique
  email    String @unique
  password String
}

The problem is, whenever I run PrismaClient#connect I get this error:
app_1       | (node:90) UnhandledPromiseRejectionWarning: Error: Query engine binary for current platform "debian-openssl-1.1.x" could not be found.
app_1       | This probably happens, because you built Prisma Client on a different platform.
app_1       | (Prisma Client looked in<EMAIL_ADDRESS>app_1       |
app_1       | You already added the platform "native" to the "generator" block
app_1       | in the "schema.prisma" file as described in https://pris.ly/d/client-generator,
app_1       | but something went wrong. That's suboptimal.
app_1       |
app_1       | Please create an issue at https://github.com/prisma/prisma-client-js/issues/new

I've been trying to figure this out for a while and this is a really discouraging sign as a person trying to get into Prisma.

Thanks for reporting @robertwestbury!
I'm sorry that you experienced these blockers, we want to help you to get this running!
Can you elaborate on what is behind the nx of npm run nx serve api?
It sounds to me, that there is some path rewriting / copying of assets in the background happening, which doesn't take the query engine binary into account.
In addition: Could you briefly mention the problems reg. mono repo etc that you hit before? That would be extremely helpful, as we want to make the experience smooth, no matter which setup you have.
Thanks!

Hey - It looks like I was installing the deps on my computer not the container, and because the container shares node_modules thats why it wasn't working.

You are mounting your current direct inside the docker container. Now I think you are a Mac or Windows user but docker environment is linux based. Prisma uses a binary under the hood so you need platform specific one. Now you don't run yarn install or npm install inside the container so you don't get the binary.
In order to fix, replace your generator block to following. That will ensure that you have linux binary and run prisma generate:
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native","debian-openssl-1.1.x"]
}

Hey, thanks - I'm on ubuntu and the container in linux too.

Try the above anyways, there might be openssl version mismatch

Yeah it worked

I'm having a similar issue as this, but as far as I can tell, it only happens when I specify the "output" option.
Here's the error I get:
Query engine binary for current platform "debian-openssl-1.1.x" could not be found.
This probably happens, because you built Prisma Client on a different platform.
(Prisma Client looked in "/home/cray/WebstormProjects/backend/build/db/prisma/generated/client/runtime/query-engine-debian-openssl-1.1.x")

Files in /home/cray/WebstormProjects/backend/build/db/prisma/generated/client/runtime:

  index.js
  index.js.map

To solve this problem, add the platform "debian-openssl-1.1.x" to the "generator" block in the "schema.prisma" file:
generator client {
  provider      = "prisma-client-js"
  binaryTargets = ["native"]
}

The thing is, though, the "query-engine-debian-openssl-1.1.x" file isn't being downloaded into the "runtime" folder.
Here's how it looks
.
└── client
    ├── index.d.ts
    ├── index.js
    ├── package.json
    ├── query-engine-debian-openssl-1.1.x
    ├── runtime
    │   ├── //... *.d.ts files
    │   ├── highlight
    │   │   ├── //...
    │   ├── index.d.ts
    │   ├── index.js
    │   ├── index.js.map
    │   ├── mergeBy.d.ts
    │   ├── query.d.ts
    │   ├── transformDmmf.d.ts
    │   ├── utils
    │   │   ├── //...
    │   └── visit.d.ts
    └── schema.prisma

@Bradleykingz Please open a new issue with a minimal reproduction. Thanks!

I'm unable to reproduce it in a new project but I'm not quite sure why. Same prisma.schema and everything.
Maybe I just misconfigured something?
This is the new error I'm getting after adding 'native' to my schema.prisma
Query engine binary for current platform "debian-openssl-1.1.x" could not be found.
This probably happens, because you built Prisma Client on a different platform.
(Prisma Client looked in "/home/cray/WebstormProjects/backend/build/db/prisma/generated/client/runtime/query-engine-debian-openssl-1.1.x")

Files in /home/cray/WebstormProjects/backend/build/db/prisma/generated/client/runtime:

  index.js
  index.js.map

You already added the platform "native" to the "generator" block
in the "schema.prisma" file as described in https://pris.ly/d/client-generator,
but something went wrong. That's suboptimal.

And my schema.prisma
generator client {
  provider      = "prisma-client-js"
  output        = "./generated/client"
  binaryTargets = ["native"]
}

datasource db {
  provider = "postgresql"
  url      = env("DATABASE_URL")
}

Removing the "output" block and importing everything from "@prisma/client" works well, though, and I don't understand why...