new owner

i'd like someone else to take ownership of this mod, since i have no motivation to work on it anymore, and people still seem to be using it. discuss/volunteer in the comments section on this issue. if there's multiple volunteers, i'll make a poll to let the community decide who should take ownership.
once the new owner is decided, i'll add them to the mod's team on mod.io (this should allow them to upload updates) and add them as a collaborator on this repository

I suppose I can try?

@TheJazMaster ack, i somehow completely missed your reply. sorry about that. i've invited you to collaborate on this repository, and i'll add you to the team on mod.io soon-ish hopefully (dm me on discord if i forget)


[atip] Update airplane for Android 5.0

Impacted tests(approved): new 0, update 1, delete 0
Unit test platform: Crosswalk Project for Android 17.45.424.0
Unit test result summary: pass 1, fail 0, block 0
BUG=https://crosswalk-project.org/jira/browse/XWALK-5571

LGTM


zmq install failed

This is the error that I'm getting while installing zeromq for node.js.. (platform: Ubuntu 10.10)
'configure' finished successfully (0.286s)
Waf: Entering directory ~/Projects/njs/node_modules/zeromq/build' [1/2] cxx: binding.cc -> build/default/binding_1.o ../binding.cc: In static member function ‘static v8::Handle<v8::Value> zmq::Socket::GetSockOpt(const v8::Arguments&)’: ../binding.cc:343:10: error: ‘ZMQ_EVENTS’ was not declared in this scope ../binding.cc:345:10: error: ‘ZMQ_FD’ was not declared in this scope ../binding.cc:346:10: error: ‘ZMQ_TYPE’ was not declared in this scope ../binding.cc:347:10: error: ‘ZMQ_LINGER’ was not declared in this scope ../binding.cc:348:10: error: ‘ZMQ_RECONNECT_IVL’ was not declared in this scope ../binding.cc:349:10: error: ‘ZMQ_BACKLOG’ was not declared in this scope ../binding.cc: In static member function ‘static v8::Handle<v8::Value> zmq::Socket::SetSockOpt(const v8::Arguments&)’: ../binding.cc:387:10: error: ‘ZMQ_LINGER’ was not declared in this scope ../binding.cc:388:10: error: ‘ZMQ_RECONNECT_IVL’ was not declared in this scope ../binding.cc:389:10: error: ‘ZMQ_BACKLOG’ was not declared in this scope ../binding.cc:392:10: error: ‘ZMQ_EVENTS’ was not declared in this scope ../binding.cc:393:10: error: ‘ZMQ_FD’ was not declared in this scope ../binding.cc:394:10: error: ‘ZMQ_TYPE’ was not declared in this scope ../binding.cc: In function ‘void zmq::Initialize(v8::Handle<v8::Object>)’: ../binding.cc:780:5: error: ‘ZMQ_FD’ was not declared in this scope ../binding.cc:781:5: error: ‘ZMQ_EVENTS’ was not declared in this scope ../binding.cc:782:5: error: ‘ZMQ_TYPE’ was not declared in this scope ../binding.cc:783:5: error: ‘ZMQ_LINGER’ was not declared in this scope ../binding.cc:784:5: error: ‘ZMQ_RECONNECT_IVL’ was not declared in this scope ../binding.cc:785:5: error: ‘ZMQ_BACKLOG’ was not declared in this scope Waf: Leaving directory ~/Projects/njs/node_modules/zeromq/build'
Build failed:  -> task failed (err #1):
{task: cxx binding.cc -> binding_1.o}
npm ERR! error installing<EMAIL_ADDRESS>Error<EMAIL_ADDRESS>preinstall: node-waf clean || true; node-waf configure build
npm ERR! error installing<EMAIL_ADDRESS>sh "-c" "node-waf clean || true; node-waf configure build" failed with 1
npm ERR! error installing<EMAIL_ADDRESS>   at ChildProcess. (~/Projects/njs/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing<EMAIL_ADDRESS>   at ChildProcess.emit (events.js:67:17)
npm ERR! error installing<EMAIL_ADDRESS>   at ChildProcess.onexit (child_process.js:192:12)
npm ERR<EMAIL_ADDRESS>preinstall: node-waf clean || true; node-waf configure build
npm ERR! sh "-c" "node-waf clean || true; node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script.
npm ERR! This is most likely a problem with the zeromq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf clean || true; node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls zeromq
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.38-11-generic
npm ERR! command "node" "~/Projects/njs/bin/npm" "install" "zeromq"
npm ERR! cwd ~/Projects/njs
npm ERR! node -v v0.4.8
npm ERR! npm -v 1.0.103
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     ~/Projects/njs/npm-debug.log
npm not ok

Did you run npm install zmq or npm install zeromq?
zmq has superceded zeromq (for reasons I do not know). From the looks of your backtrace, you're trying to install zeromq

Tried both, npm install zmq gives the same error..

check your version of libzmq it must be >= 2.1.x (try to build from source if not)

its not available in ubuntu natty repositories, I guess I'll have to compile it from source..

on ubuntu. build libzmq from source, then sudo ldconfig, then npm install zmq

Also see if you have uuid installed. sudo apt-get install uuid.

@najamkhn are you still having issues with<EMAIL_ADDRESS>

I installed uuid-dev and yes I'm still having the same issue.

I'm having a similar problem I think, on OS X lion.
npm ERR! error installing<EMAIL_ADDRESS>Error<EMAIL_ADDRESS>preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! error installing<EMAIL_ADDRESS>`sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! error installing<EMAIL_ADDRESS>   at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing<EMAIL_ADDRESS>   at ChildProcess.emit (events.js:70:17)
npm ERR! error installing<EMAIL_ADDRESS>   at maybeExit (child_process.js:359:16)
npm ERR! error installing<EMAIL_ADDRESS>   at Process.onexit (child_process.js:395:5)
npm ERR<EMAIL_ADDRESS>preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf clean || true; node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls zmq
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "zmq"
npm ERR! cwd /Users/olivernightingale/code/zeromq-test
npm ERR! node -v v0.6.2
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE

If this is unrelated let me know and I'll create a new issue.

me too! on a clean ubuntu 10.04,  zmq compiled and installed.
 node -v
  v0.6.5

 npm -v
  1.1.0-alpha-6

root@zmq:/tmp# npm install zmq

><EMAIL_ADDRESS>preinstall /tmp/node_modules/zmq
> node-waf clean || (exit 0); node-waf configure build

Nothing to clean (project not configured)
Setting srcdir to                        : /tmp/node_modules/zmq
Setting blddir to                        : /tmp/node_modules/zmq/build
Checking for program g++ or c++          : /usr/bin/g++
Checking for program cpp                 : /usr/bin/cpp
Checking for program ar                  : /usr/bin/ar
Checking for program ranlib              : /usr/bin/ranlib
Checking for g++                         : ok
Checking for node path                   : not found
Checking for node prefix                 : ok /usr/local
Checking for pkg-config version >= 0.0.0 : pkg-config was not found
/tmp/node_modules/zmq/wscript:14: error: the configuration failed (see '/tmp/node_modules/zmq/build/config.log')
npm ERR! error installing<EMAIL_ADDRESS>Error<EMAIL_ADDRESS>preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! error installing<EMAIL_ADDRESS>`sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR! error installing<EMAIL_ADDRESS>   at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing<EMAIL_ADDRESS>   at ChildProcess.emit (events.js:70:17)
npm ERR! error installing<EMAIL_ADDRESS>   at maybeExit (child_process.js:359:16)
npm ERR! error installing<EMAIL_ADDRESS>   at Process.onexit (child_process.js:395:5)
npm ERR<EMAIL_ADDRESS>preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf clean || (exit 0); node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls zmq
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.32-4-pve
npm ERR! command "node" "/usr/local/bin/npm" "install" "zmq"
npm ERR! cwd /tmp
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.1.0-alpha-6
npm ERR! code ELIFECYCLE
npm ERR! message<EMAIL_ADDRESS>preinstall: `node-waf clean || (exit 0); node-waf configure build`
npm ERR! message `sh "-c" "node-waf clean || (exit 0); node-waf configure build"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /tmp/npm-debug.log
npm not ok

@olivernn, @mindreframer :
Both need to install pkg-config.
sudo apt-get install pkg-config
and then:
sudo ldconfig

Installed libzmq 2.1.10 and it still gives me the same issue..

<EMAIL_ADDRESS>preinstall /home/Projects/nodo/node_modules/zmq
node-waf clean || true; node-waf configure build

sh: node-waf: not found
sh: node-waf: not found
npm ERR! error installing<EMAIL_ADDRESS>Error<EMAIL_ADDRESS>preinstall: node-waf clean || true; node-waf configure build
npm ERR! error installing<EMAIL_ADDRESS>sh "-c" "node-waf clean || true; node-waf configure build" failed with 127
npm ERR! error installing<EMAIL_ADDRESS>   at ChildProcess. (/usr/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing<EMAIL_ADDRESS>   at ChildProcess.emit (events.js:70:17)
npm ERR! error installing<EMAIL_ADDRESS>   at maybeExit (child_process.js:359:16)
npm ERR! error installing<EMAIL_ADDRESS>   at Process.onexit (child_process.js:395:5)
npm ERR<EMAIL_ADDRESS>preinstall: node-waf clean || true; node-waf configure build
npm ERR! sh "-c" "node-waf clean || true; node-waf configure build" failed with 127
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>preinstall script.
npm ERR! This is most likely a problem with the zmq package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-waf clean || true; node-waf configure build
npm ERR! You can get their info via:
npm ERR!     npm owner ls zmq
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Linux 2.6.32-35-generic
npm ERR! command "node" "/usr/bin/npm" "install" "zmq"
npm ERR! cwd /home/Projects/nodo
npm ERR! node -v v0.6.2
npm ERR! npm -v 1.0.106
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/Projects/nodo/npm-debug.log
npm not ok
Also tried<EMAIL_ADDRESS>and same issue...

@najamkhn you have node-waf missing. Do you have python installed?
What does which node tell you?
Also did you follow these steps:

Install pkg-info
sudo apt-get install pkg-info
sudo ldconfig

Ugh sorry. Should be pkg-config and which node-waf

which node-waf returns nothing..

So you don't have node-waf? Which version of node are you on? Check your /usr/bin directory to see if node-waf is executable or not.

Its fixed now. node-waf was missing, compiled it from source and it worked.

cool :)

This is an issue for me on OSX Lion. Output of which node-waf
dbmac:zeromq2-1 bittond$ which node-waf
/usr/local/bin/node-waf

As for 0MQ, I cloned from the 2.1 github master, did an autogen.sh, ./configure, make, and make install. Some help would be great! Thanks.


❌ Error : ECONNREFUSED ::1:80

I run an action to download a phar (Bedrock plugin with PocketMine) to a pterodactyl server. It triggers when I pull the code. Can anyone help me? Here's the console result:
[Releases/Build plugin]   🐳  docker cp src=C:\Users\Sikino\.cache\act/rexlmanu-pterodactyl-upload-action@v2/ dst=/var/run/act/actions/rexlmanu-pterodactyl-upload-action@v2/
[Releases/Build plugin]   🐳  docker exec cmd=[node<EMAIL_ADDRESS>user= workdir=
[Releases/Build plugin]   💬  ::debug::restart: false
[Releases/Build plugin]   💬  ::debug::source: path/to/.phar
[Releases/Build plugin]   💬  ::debug::sources:
[Releases/Build plugin]   💬  ::debug::target: plugins/
[Releases/Build plugin]   💬  ::debug::server-id: valid_server_id
[Releases/Build plugin]   💬  ::debug::server-ids:
[Releases/Build plugin]   💬  ::debug::config: {}
[Releases/Build plugin]   💬  ::debug::source: path/to/.phar
[Releases/Build plugin]   💬  ::debug::sources:
[Releases/Build plugin]   💬  ::debug::target: plugins/
[Releases/Build plugin]   💬  ::debug::server-id: valid_server_id
[Releases/Build plugin]   💬  ::debug::server-ids:
[Releases/Build plugin]   💬  ::debug::followSymbolicLinks 'true'
[Releases/Build plugin]   💬  ::debug::followSymbolicLinks 'true'
[Releases/Build plugin]   💬  ::debug::implicitDescendants 'true'
[Releases/Build plugin]   💬  ::debug::matchDirectories 'true'
[Releases/Build plugin]   💬  ::debug::omitBrokenSymbolicLinks 'true'
[Releases/Build plugin]   💬  ::debug::Search path 'path/to/.phar'
| Uploading path/to/.phar to valid_server_id (75%)
| Uploading path/to/.phar to valid_server_id (100%)
[Releases/Build plugin]   ❓  ::error::connect ECONNREFUSED ::1:80

Here is my configuration :
    name: Build plugin
    runs-on: ubuntu-22.04
    steps:
      - uses: actions/checkout@v3

      - name: Prepare directories
        run: |
          mkdir target
          mkdir plugin

      - name: Move files to plugin folder
        run: |
          mv resources src plugin.yml -t plugin

      - name: Setup PHP 8.1
        uses: pmmp/setup-php-action@main
        with:
          php-version: "8.1"
          install-path: ./bin
          pm-version-major: 5

      - name: Get Composer Cache Directory
        id: composer-cache
        run: |
          echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
      - uses: actions/cache@v3
        with:
          path: ${{ steps.composer-cache.outputs.dir }}
          key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
          restore-keys: |
            ${{ runner.os }}-composer-

      - name: Download ConsoleScript
        run: wget https://raw.githubusercontent.com/pmmp/DevTools/stable/src/ConsoleScript.php

      - name: Build plugin
        run: php -dphar.readonly=0 ConsoleScript.php --make / --relative plugin --out path/to/.phar

      - name: Uploading PHAR to Pterodactyl Beta Server
        uses: rexlmanu/pterodactyl-upload-action@v2
        with:
          panel-host: ${{ secrets.PANEL_HOST }}
          api-key: ${{ secrets.API_KEY }}
          # Beta Server
          server-id: "valid_server_id"
          source: path/to/.phar
          target: plugins/
          restart: false

      - name: Upload Artifact
        uses: actions/upload-artifact@v3
        with:
          name: path/to/.phar
          path: path/to/.phar

Hope someone can help me.

Based on the error ::error::connect ECONNREFUSED ::1:80, it seems like your action is unable to connect to a local server on port 80. Are you sure your panel host url is right? It should be something like https://pterodactyl.example.com

Ok, i was dumb, the PANEL_HOST secret was domain.extension and not https://domain.extension THanks anyway for your help


Allow decoders to accept a Base64 URL encoded String parameter

It would be a very nice convenience to be able to pass in a Base64 URLEncoded String as a parameter to the decode() methods--as this is what is often used for secrets with authentication services.
The workaround for now is to manually decode the secret and then construct a new SecretKey with the byte array and the algorithm. Unfortuntely, it's a bit redundant to have to go that way since we specify the algorithm(s) in the decoder anyway.
For example, instead of this:
val decodedSecretByteArray = Base64.getUrlDecoder.decode(base64Secret)
Jwt.decode(token, new SecretKeySpec(decodedSecretByteArray, "HmacSHA256"), JwtAlgorithm.allHmac())

We could just do this:
Jwt.decode(token, base64Secret, JwtAlgorithm.allHmac())

Would you consider adding this capability? Or am I missing something that would make this easier?

Not sure I understand the problem. Why would your secret key be Base64 encoded? It's only on your server, isn't a normal string enough?
Even if the signature did accept a Base64 key, it would only decode it (the val decodedSecretByteArray = Base64.getUrlDecoder.decode(base64Secret) line) but there is no way to automatically create the SecretKey since we don't know which algorithm to use, JwtAlgorithm.allHmac() is a sequence of algorithms after all.

The secret key I receive from our Authentication/Identity provider is Base64 URL encoded, and that's something I have no control over. I agree that a normal string is fine if you have control over it, unfortunately that's not what I'm dealing with.
Ah, I do see your point about knowing which algorithm, as the sequence is the list of algorithms accepted by the decoder rather than specifying which one encoded the token. I guess I was assuming the decoder would try all the algorithms in the sequence to find one that worked.
Nevertheless, I think you've answered my question here--as there's really not another good way to handle it. So feel free to close this issue.
By the way, thanks for creating and maintaining this library, I really appreciate your contributions to open-source and your responsiveness!

Thanks for those words!


Inconsistent formatting around power and brackets

The expression
rho = sqrt(r**2 + a**2 * cos(th)**2)

is reformatted (ruff format) as
rho = sqrt(r**2 + a**2 * cos(th) ** 2)

Note the additional space around ** after the cosine.

Thanks for the report! In general, Ruff's formatter tries to apply the same style to Python code as Black. I checked and Black applies the same style here that we do. The motivation for this formatting is described in Black's documentation here: https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-breaks-binary-operators. We've previously made chnages in the opposite direction to what you're asking for here, e.g. https://github.com/astral-sh/ruff/issues/7318, in order to ensure a compatible coding style with Black.
This doesn't mean that we definitely won't change the style of how we format power expressions -- we do deviate from Black in some areas. But deviations generally require very strong motivations and high levels of user demand, as we weigh compatibility with Black quite highly.


Add supports configuration from php file

Introduction
The current configuration for Deptrac is based on YAML files, which can be less flexible and harder to manage in larger projects. I propose adding support for configuration in PHP files, similar to other popular PHP tools like Rector, PHP-CS-Fixer, and Composer Unused. This would allow developers to leverage the full power of PHP, including dynamic configurations, conditional logic, and reusable components.
Advantages of PHP Configuration

Dynamic Configuration: PHP allows for dynamic generation of configurations based on environment variables, project state, or other conditions. This can be particularly useful in complex projects where configurations might need to change based on different environments (development, staging, production).
Code Reusability: Using PHP, we can create reusable configuration components. This means that common patterns can be extracted into functions or classes, reducing duplication and making it easier to maintain configurations.
Type Safety: PHP provides type hinting and static analysis, which can help catch configuration errors at an earlier stage. This is particularly beneficial in large projects where configurations can become complex.
Integration with Other Tools: Many modern PHP tools support PHP-based configurations, allowing for a more consistent approach across the development stack. This can simplify onboarding and reduce the learning curve for new developers.
IDE Support: PHP files benefit from better IDE support, including autocompletion, refactoring tools, and inline documentation, making it easier to work with configurations.

Example
Here’s a simple example of what a PHP configuration file for Deptrac might look like, inspired by the structure used in Rector:
<?php

use Deptrac\Configuration\Configuration;
use Deptrac\Layer\Layer;
use Deptrac\Collector\ClassLikeCollector;

return Configuration::create()
    ->withPaths([
        __DIR__ . '/src',
    ])
    ->withExcludeFiles([
        '#.*test.*#',
    ])
    ->withLayers([
        Layer::create('Controller')
            ->withCollectors([
                new ClassLikeCollector('.*Controller.*'),
            ]),
        Layer::create('Repository')
            ->withCollectors([
                new ClassLikeCollector('.*Repository.*'),
            ]),
        Layer::create('Service')
            ->withCollectors([
                new ClassLikeCollector('.*Service.*'),
            ]),
    ])
    ->withRuleset([
        'Controller' => ['Service'],
        'Service' => ['Repository'],
        'Repository' => null,
    ]);

Import Configuration from Module
I also would like to propose the addition of a feature that supports importing configuration from modules. This enhancement would significantly streamline the configuration process, especially for larger projects that utilize multiple modules or packages.

Modularity and Reusability: By allowing configurations to be imported from modules, we can promote a more modular architecture. This enables developers to encapsulate their configurations within modules, making them reusable across different projects or environments.
Simplified Configuration Management: In large applications, managing configuration files can become cumbersome. Supporting module imports would allow for a cleaner and more organized approach to configuration management, reducing duplication and the potential for errors.
Dynamic Configuration Loading: This feature would enable dynamic loading of configurations based on the modules that are active or included in the project. This adaptability can help tailor the behavior of Deptrac to meet specific project requirements without the need for extensive manual configuration.
Improved Collaboration: Teams often work with shared modules or libraries. Having a standardized way to import configurations from these modules can enhance collaboration among team members and ensure consistency across different parts of the application.
Easier Upgrades and Maintenance: When modules are updated or replaced, having a system in place that allows for easy import of their configurations can simplify the upgrade process. This reduces the risk of breaking changes and makes maintenance more manageable.

Conclusion
Adding support for PHP configuration files in Deptrac would greatly enhance its usability and flexibility. It aligns with modern PHP practices and would make it easier for developers to manage and maintain their configurations. I believe this enhancement would be beneficial to the community and encourage collaboration on this proposal.
Thank you for considering this proposal! I look forward to your feedback.

Thank you for your request, but the feature you are requesting is already available :-).
please check out the deptrac.php from the deptrac-src repo.

https://github.com/qossmic/deptrac-src/blob/2.0.x/deptrac.config.php
Okay, we still calling it deptrac.config.php in our own project.

This is good news! Perhaps I didn't know the tool well and didn't know about this improvement. Maybe then it's worth updating the documentation?


Support for custom paths for embedded images

Using the Maven Plugin I have configured the imagesdir property and omitted this image root directory in my document's image-tags.
I won't ask you to parse a pom.xml or such but maybe you have an idea on where to put properties like this for a certain project or how to support this use case, otherwise.
Thanks for a great editor for a great markup language!

Thanks @fbruch . I didnt understand your case. Can you give an example for that?
Thanks

Of course, sorry, I was a little tightlipped about my use case. I have a bunch of asciidoc-files in my project which is built using Maven. The pom.xml contains the following configuration for asciidoctor:
		<plugin>
				<groupId>org.asciidoctor</groupId>
				<artifactId>asciidoctor-maven-plugin</artifactId>
				<version>1.5.2</version>
				<dependencies>
					<dependency>
						<groupId>org.asciidoctor</groupId>
						<artifactId>asciidoctorj-pdf</artifactId>
						<version>1.5.0-alpha.6</version>
					</dependency>
				</dependencies>
				<executions>
					<execution>
						<id>output-html</id>
						<phase>package</phase>
						<goals>
							<goal>process-asciidoc</goal>
						</goals>
						<configuration>
							<outputDirectory>${project.build.directory}/generated-docs/html</outputDirectory>
							<sourceHighlighter>prettify</sourceHighlighter>
							<backend>xhtml5</backend>
							<attributes>
								<linkcss>false</linkcss>
								<icons>font@</icons>
								<numbered>true@</numbered>
								<toc>left@</toc>
								<toc-title>Inhaltsverzeichnis@</toc-title>
								<imagesdir>./images</imagesdir>
								<last-update-label>false</last-update-label>
								<docVersion>${project.version}</docVersion>
							</attributes>
						</configuration>
					</execution>
					<execution>
						<id>output-pdf</id>
						<phase>package</phase>
						<goals>
							<goal>process-asciidoc</goal>
						</goals>
						<configuration>
							<outputDirectory>${project.build.directory}/generated-docs/pdf</outputDirectory>
							<sourceHighlighter>coderay</sourceHighlighter>
							<backend>pdf</backend>
							<attributes>
								<pagenums>true@</pagenums>
								<numbered>true@</numbered>
								<last-update-label>false</last-update-label>
								<docVersion>${project.version}</docVersion>
							</attributes>
						</configuration>
					</execution>
				</executions>
			</plugin>

The relevant line for my case is this
<imagesdir>./images</imagesdir>

which defines a default image root directory for all images tags in the documents built with this Maven-POM.
An image-tag looks like this
image::Encoding.png[align="left"]

But the image is located here (relatively to the document's location)
./images/Encoding.png

The feature is described here: http://asciidoctor.org/docs/user-manual/#set-the-images-directory
The AsciidocFX preview works fine if I put
:imagesdir: images

in each and every file of my project but this "not compatible" with the project-central property inside pom.xml, you see? If it would only need to be included in the root document I would consider using this directive a feasible workaround. But as this property is not transmitted to included documents (at least when editing the parts in AsciidocFX) I would prefer "another solution" :-)
Of course, AsciidocFX does and should not know how to read Maven-POMs but maybe you see another possibility to enable rendering of images in AsciidocFX' preview using some extra configuration for a particular project(directory) or file...

Not in pom.xml but in config.yml, we can declare global imagesdir directory. This feature will be available in further release.

Good News, thank you.

@fbruch You can change Asciidoctor attributes in RC5 (Press), please try it https://github.com/asciidocfx/AsciidocFX/releases/tag/v1.3.7-RC5
To change attributes press F4 and add imagesdir attribute to the attribute table.

@fbruch Can you try RC6 ? https://github.com/asciidocfx/AsciidocFX#how-to-install-asciidocfx

Sorry for my extra late reply. :imagesdir:-directive in asciidoctor-files works like a charm :-) Thank you! Good work!

Good to know:
The setting 'imagesdir' with value 'images' should be added to the Preview Settings tab as 'Asciidoctor attributes', and not to the DocBook settings tabas 'Asciidoctor attributes'.
Once you figure this out it works. Tested in Windows version 1.5.5.


Group name information update

Maximum characters in a group name can be up to 128 characters.
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Thanks for submitting this PR. We updated the docs since you've submitted this PR.


github/workflows: add snyk monitoring workflow

Been toying around quite a bit and this seems the way to go with vulnerability scanning for now.
This will let us manage policies for all packages through the root .snyk file, which means that anyone that wants to copy that set of policies can do so. The maintainer team  will get notified whenever a new vulnerability is detected, but we will not have vulnerability scanning on PRs.
We could run tests on PRs using the snyk CLI, but that check only looks if there are any vulnerabilities at all, not just if a PR introduces any. That means that PRs could suddenly start breaking when a new vulnerability is published, which I think we should avoid.
The nicer check from Snyk is the GitHub integration one, but unfortunately it doesn't seem to play well with .snyk config files or yarn workspaces. Which is why I'm thinking we settle on this for now

🤞


Getting started with parsey mcparseface

Hi,
I have installed syntaxnet. and I tried to run the demo as mentioned at https://github.com/tensorflow/models/tree/master/syntaxnet#installation
but its not working.
can you help me, I am new to this.

Sorry I don't have time to help you, and I don't really know how it all works either. You should seek help from wherever Tensorflow recommends people go for help.

you can use docker
docker pull brianlow/syntaxnet
docker run -i -t brianlow/syntaxnet:latest /bin/bash
echo I saw the dude with glasses|./syntaxnet/demo.sh


Catch youtube livestream

When vidgear is used on a youtube live stream that has been running for 20 mins, it starts reading frames from the beginning of the video (20 mins ago).
Can it catch a live stream, read the current frames...?

@PranavPuranik VidGear depends on pafy and youtube-dl libraries as backend for providing Youtube streaming within its CamGear API. I've looked into both these libraries and found these links:

youtube-dl:

https://unix.stackexchange.com/questions/230481/how-to-download-portion-of-video-with-youtube-dl-command
https://github.com/ytdl-org/youtube-dl/issues/622

pafy: https://github.com/mps-youtube/mps-youtube/issues/989

and it seems you can post-process video after downloading with FFmpeg and youtube-dl but you cannot specify timestamp directly and that's a bummer for now. Thereby for now, You can raise this issue in-either or both these library to add this feature but until then it's not possible to add or work this enhancements.
pafy:


bug/suggestion

thermometer doesnt work in offhand, it probably should

also lava is wayyy to dangerous, especially since theres like almost no ways to cool yourself down


Support 'include-deps' and 'exclude-artifacts' flags for search-based commands

[ ] All tests passed. If this feature is not already covered by the tests, I added new tests.
[x] This pull request is on the dev branch.
[x] I used gofmt for formatting the code before submitting the pull request.

We discussed about changing the 'exclude-artifacts' flag to 'deps-only', and decided to leave it as 'exclude-artifacts'.
Therefore, I am marking as 'resolved' all the comments requesting this change.


Add Sass variable for prefers-reduced-motion, add callout to affected components

Closes https://github.com/twbs/bootstrap/issues/27525

@mdo you ok with this? note the various callouts in the docs as result of it etc


Fold much slower than for loop

As requested on the mailing list I created this PonyBench code showing the performance claim I made on the mailing: using a for loop appears to be roughly twice as fast as using a fold operation. Obviously my code may be the problem!
use "collections"
use "itertools"
use "ponybench"

actor Main
	new create(env: Env) =>
		let bench = PonyBench(env)
		bench[Float]("using_loop", {(): Float => UsingLoop()})
		bench[Float]("using_fold", {(): Float => UsingFold()})

primitive UsingLoop
	fun apply(): Float =>
		let n: USize =<PHONE_NUMBER>
		let delta: F64 = 1.0 / n.f64()
		var sum: F64 = 0.0
		for i in Range(1, n + 1) do
			let x = (i.f64() - 0.5) * delta
			sum = sum + (1.0 / (1.0 + (x * x)))
		end
		4.0 * delta * sum

primitive UsingFold
	fun apply(): Float =>
		let n: USize =<PHONE_NUMBER>
		let delta: F64 = 1.0 / n.f64()
		var sum: F64 = 0.0
		try
			sum = Iter[USize](Range(1, n + 1)).fold[F64]({(t: F64, i: USize): F64 =>
				let x = (i.f64() - 0.5) * delta
				t + (1.0 / (1.0 + (x * x)))
			}, 0.0)?
		end
		4.0 * delta * sum

The result I get on my now rather ancient workstation is:
|> ./Fold_Benchmark
using_loop	         1<PHONE_NUMBER> ns/op
using_fold	         1<PHONE_NUMBER>7 ns/op

I've taken a look at the generated code, the problem comes from the virtual calls from the lambdas. Lambda types are equivalent to interfaces, which means that Iter.fold must treat the lambda call as a virtual call, which is slower and can't be easily inlined.
There might be other factors involved here but I think this one is the biggest.
There has been some discussion recently on concrete lambda types as type parameters, which could solve the problem once implemented.

For the record, the above UsingFold was to try and make as direct a comparison as possible between loop and fold. To make best use of fold the function should perhaps be:
primitive UsingFold
	fun apply(): Float =>
		let n: USize =<PHONE_NUMBER>
		let delta: F64 = 1.0 / n.f64()
		try
			return 4.0 * delta * Iter[USize](Range(1, n + 1)).fold[F64]({(t: F64, i: USize): F64 =>
			 	let x = (i.f64() - 0.5) * delta
				t + (1.0 / (1.0 + (x * x)))
			}, 0.0)?
		end
		F64(0.0)

@Praetonus Because Rust is trying to be the new "effectively functional" language to replace C, C++, D, Go, etc. the development team has taken a lot of trouble to ensure fold is as fast as explicit for or while loops. Whether this should affect the Pony team's approach is for that team. However, my vote would be for trying to be as declarative as possible without losing performance.

@Praetonus do we have an issue open for concrete lambda types?

@Praetonus is there an actionable issue that we can open for this? "slower" isn't really addressable. perhaps open an issue for concrete lambda types and then close this?

@russel thanks for the excellent example. Personally, I think optimising for this case is a very good idea indeed. We talked on the sync call this week about a couple different approaches, and we will definitely be looking into this.


malformed output

looks like this wasn't tested properly :)

I think there was some weird condition where this didn't always happen.  I didn't see it in my recent testing.

Probably when the image builds immediately without the spinner spinning more than one frame.


Add config option for Http Servlet

OcHttpServletFilter does not allow specifying options for propagators and samplers. Add option to change to configure propagators and samplers per servlet.
What version of OpenCensus are you using?
0.19.0

fixed by #1745


Package name change

Related Issue

Fixes #205.

Proposed Changes

Downloaded the updated google services JSON file
Changed package name in pubspec.yaml , Android Manifest.xml, and Info.plist files
Modified the path of Main Activity.kt file as android\app\src\main\kotlin\tech\himanshusharma\relic_bazaar

Checklist

[x] Tested
[x] No Conflicts
[x] Change In Code
[x] Follows linting rules

@Mohitmadhav You have merged the apple auth in this PR. You need to create a PR without those files. That is why it is mentioned to create a new branch after pulling the latest code(not over your modified code)

@Mohitmadhav You have merged the apple auth in this PR. You need to create a PR without those files. That is why it is mentioned to create a new branch after pulling the latest code(not over your modified code)

https://github.com/himanshusharma89/relic_bazaar/pull/208
Really sorry for the prior mistake


function to add HMP sodiodemographic data

My thought is a function that takes an HMP ExpressionSet and the local path to the restricted demographic dataset as downloaded from dbGaP, and returns another ExpressionSet with the restricted demographic data added.

Function should also be usable for the HMP 16S datasets.
Function documentation could include instructions on how to obtain and download the dbGaP demographic data.

Lower priority than fixing up the documentation.

Should be a function(eset, dbgapdir) that returns another ExpressionSet with the dbgap data attached.

Note to self, make sure to let Curtis Huttenhower, Owen White, and Lauren McIver know when this is ready - they will use it and promote it.

I am going to work on this again – I have the old code that was just never integrated. I will post with progress.

I wonder if we can close this. It is on the roadmap for HMP16SData and will be provided there.

I'd leave it open, since a function should be provided for cMD too and the
form of the datasets is currently different here and would require a
slightly different function. It may also require changes to the template.
On Oct 18, 2017 7:19 AM, "Lucas Schiffer"<EMAIL_ADDRESS>wrote:
I wonder if we can close this. It is on the roadmap for HMP16SData and will
be provided there.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/waldronlab/curatedMetagenomicData/issues/25#issuecomment-337558405,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAnDxg7Wd9KgJNExPXtEb3dB6Y5tXNmZks5std6pgaJpZM4K_PeO
.

Ok, leaving open. Thinking we should move towards SummarizedExperiment in Bioc 3.7 so that it can potentially be the same function : )

Yes, I agree with moving to SummarizedExperiment in 3.7!
On Oct 18, 2017 7:42 AM, "Lucas Schiffer"<EMAIL_ADDRESS>wrote:

Ok, leaving open. Thinking we should move towards SummarizedExperiment in
Bioc 3.7 so that it can potentially be the same function : )
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/waldronlab/curatedMetagenomicData/issues/25#issuecomment-337563890,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAnDxog5hmcEhhDK7A-Q7Vz-Ug9bQSqVks5steQngaJpZM4K_PeO
.

This issue is very old and more of a feature request (I prefer to keep those on Trello), for that reason I will close it but keep it in mind for something to look into after the 3.13 release.


Mujoco Dataset

Hi,
Do you have the raw dataset for Mujoco?  I would like to see the original data structure that is used.
Thank you,
-Richard

Hi. Thank you for your interest?
Did you consider the raw data file (https://github.com/yongkyung-oh/Stable-Neural-SDEs/blob/main/benchmark_forecasting/datasets/mujoco.npy)?

Hi, I ran the file you mentioned alone and I didn't get 10,000 sequences, I got 100 sequences. How did that happen? Thank you, -Jiu Huai

Thank you! What you mean is that you refer to the code from the first paper mentioned without actually observing the data set. In addition, the code data link for the second paper is no longer valid, so I can't get it. Thank you very much for answering my question, and thank you again!

Same here.  I am looking for the raw dataset as well.

For a fair comparison, we utilized existing data and pipeline. I also had problem to access some raw data. Our preprocessing approach generated 10,000 subsequences in total, with a portion used for the forecasting task (e.g., using 50 steps as input to predict the next 10 steps). For those interested in accessing raw data from referenced studies, we recommend contacting the original authors directly.


Made storage migrations more stable

When switching between branches, the database might get downgraded. If you then try to upgrade again, the upgrade fails because of a NumberFormatException. I can no longer reproduce this error, so feel free to reject the PR. I still think that it makes switching between versions more reliable.
Closes #4111

The app doesn't support database downgrades. Running the app with a database containing newer data formats/schemas is very likely to cause hard to debug issues. I created PR #4113 to handle this situation.


module map file. Mixpanle.modulemap not found

I am getting this error
/Users/hamzakashif/Library/Developer/Xcode/DerivedData/xyz-esatleubsfjzrnbczbejzvlprcdb/Build/Intermediates.noindex/xyz.build/Debug-iphonesimulator/xyz.build/DerivedSources/xyz.c module map file '/Users/hamzakashif/Desktop/xyz/xyz-mainapp/client/mobile/ios/Pods/Headers/Public/Mixpanel/Mixpanel.modulemap' not found
how to resolve this issue
xcode 15.1
React native 0.73
mixpanel-react-native 2.4.0

I just started getting something similar on my side. Used to work great but now there seems to be a problem with the briding header not being able to find Mixpanel/Mixpanel.h any ideas what I might be doing differently / wrong?

it seems to be a caching issue, please refer to: https://github.com/pmadruga/react-native-clean-project
I'm closing this one, feel free to reopen if the problem still exists.


Fixing exports

Coverage remained the same at 100.0% when pulling 2db591c2c3fa23c405dd9c485654b9d3463e1c8d on ktutnik:master into a177af2ffac4ac80de3fff83f53439960d934d91 on kambojajs:master.

Coverage remained the same at 100.0% when pulling 2db591c2c3fa23c405dd9c485654b9d3463e1c8d on ktutnik:master into a177af2ffac4ac80de3fff83f53439960d934d91 on kambojajs:master.

Coverage remained the same at 100.0% when pulling 2db591c2c3fa23c405dd9c485654b9d3463e1c8d on ktutnik:master into a177af2ffac4ac80de3fff83f53439960d934d91 on kambojajs:master.


Don't error on exit code 0

Exit code 0 should not throw an error. See (https://tldp.org/LDP/abs/html/exitcodes.html)

Huh, I already signed the CLA

@peniqliotuv I had the same issue, but when I merged main to my branch, the CLA check reran and finished successfully.

@peniqliotuv Thanks for creating this and apologies for taking forever to respond to it. Are you interested in fixing up this PR so it can be merged? Otherwise, we might throw this issue on our backlog


Exploit found causing the server to time out

Hello,
I found people abusing a new exploit lagging out the server,
/execute at @e run summon item
Please block this as it highly lags the server making it unplayable.
~IuCC

@kaboombot

Temporarily patch: spam /de (possibly in a commandblock loop) (doMobSpawning disabled, difficulty peaceful)

yes please fix.

@mathiascode, please take a look above ty

bump


Cursor flickering when enter and leave insert mode

fcitx.nvim causes cursor flickering when enter and leave insert mode

@vaxowt can you provide more details? What do you mean by "flickering"?

nvim version:

package manager: lazy.nvim
With fcitx.nvim enabled:
https://user-images.githubusercontent.com/116184338/226643313-3ff9c2d3-c203-4377-927d-4c93c0d5dd7b.mp4
Disable fcitx.nvim only:
https://user-images.githubusercontent.com/116184338/226643298-ab87405e-672b-4c38-b389-485c9d8cd354.mp4

Does this happen with only fcitx.nvim enabled? I can't reproduce this.

~Does this happen with only fcitx.nvim enabled? I can't reproduce this.~
I reproduced it. I'll try to fix it later.

It works! Thank you.


feat(wallet): special-case descriptor for single-guardian instances

Using p2wpkh is more efficient than a 1-of-1 multisig

Could also do taproot
Are no changes needed for the spending? Does miniscript handle it all here?

Does recovery tool need to be updated to support this?

Does recovery tool need to be updated to support this?

Capturing what we discussed in the dev call: We don't need to update the recovery tool to support, however it doesn't hurt to add a test case.
https://github.com/fedimint/fedimint/issues/3916


test thing

This is a description
this.is('some code');

This thing is in progress.  It is a very important thing and it needs to be done ASAP to meet Goal #1


Support model with mlx - stable video diffusion

I would like support for stable video diffusion in Apple Silicon GPUs

https://huggingface.co/stabilityai/stable-video-diffusion-img2vid-xt


Add backlink to Clients SIG roadmap from ROADMAP.md

As discussed in TSC meeting 2023-07-06.

CC @sigstore/core-team just a little quick doc change


Add whitehall specific email and atom links to taxonomy views

Collections is going to be responsible for rendering routes at /world/{country}. These will take the place of the current /government/world/{country} routes that are served by Whitehall.
However, we will still be relying on Whitehall to provide email subscriptions for the world_locations.
This PR adds some custom logic to create links to the correct path for pages that live at /world so that we can continue to lean on the Whitehall email subscription functionality.
Trello

Can we add a screenshot in the PR description of how this looks on the page? 👀

Cool, looks good! 👍

Screenshots added


VSCode does not handle EOL properly, sometimes

VS Code Version: 1.95.1 (but 1.95.3 also)
OS Version: Windows and MacOS

Steps to Reproduce:

Open the text file in the Text Editor, in the menu "File", "Open..." and select the file.
Save the text file, in the menu "File", "Save" or "Save as..." and save the file.
The "end of line" is changed from "\r" ("CR") to "\r\n" ("CRLF") if "Eol" is "auto", unfortunately "\r" ("CR") is not available.

Hello,
I/we use VSCode in MacOS and Windows environments and therefore we have some files are using the "CR" as a line break.
Unfortunately the Text Editor change the used "CR" line breaks to "CRLF" and the file can not use any more, based on the setting "auto".
The original test.txt file use "\r" ("CR") as a end of line.
od -xc test.txt
0000000      6874    7369    6920    2073    0d61    696c    656e    620d
           t   h   i   s       i   s       a  \r   l   i   n   e  \r   b
0000020      6572    6b61    000d
           r   e   a   k  \r
0000025

I use the "od" command (available on MacOS and Linux) to check the file content.
The setting used by "Text Editor", "Eol" (The default end of line character.) is set to "auto"
The saved test.txt file use "\r\n" ("CRLF") as the end of line.
od -xc test.txt
0000000      6874    7369    6920    2073    0d61    6c0a    6e69    0d65
           t   h   i   s       i   s       a  \r  \n   l   i   n   e  \r
0000020      620a    6572    6b61    0a0d
          \n   b   r   e   a   k  \r  \n
0000030

My question or suggestion/feature request,
any plan to make "\r" ("CR") an option for "Eol" also?
The options "\n" and "\r\n" are nice, but it lacks of "\r" to handle MacOS files properly.
Thanks for your help,
Lutz

/duplicate of #211461


OpenBSD: add -mno-retpoline to HOST_CFLAGS to allow MirageOS Unikernels to run

closes #336
retpoline was enabled by default at the end of December last year.
The fix for now is to add  -mno-retpoline to HOST_CFLAGS

I've integrated this change into #345, so closing this one.

What is the issue with retpolines and stack guards on openbsd? Wouldn't it be nice if those would work?

@minad It would be fantastic if those worked, that is the end goal, but having MirageOS/solo5 working now is more important.

SSP on OpenBSD has a different ABI to everyone else, so until someone looks at this, its turned off (I do have a working SSP branch but am not sure how to integrate it into the mainline)
retpoline I am less sure on, I just haven't had the time to look further, I think the problem occurs when the ocaml runtime is launch, but have not investigate, besides a quick read of the source code on the bus.

Please feel free to create a PR to fix one or both of these issues, all help is appreciated.


Fix the test and the encoding issue

There was a difference in the return type of strings the sophiabus230 module as I added support for Python 3.

Coverage decreased (-7.3%) to 72.727% when pulling 26f671f24e6602f40e5ca42243c69e56c2f991d7 on fix-encoding-issue into 28950f79419e71546f2100c5ce36e57c096e56dc on master.

Coverage decreased (-7.3%) to 72.727% when pulling 26f671f24e6602f40e5ca42243c69e56c2f991d7 on fix-encoding-issue into 28950f79419e71546f2100c5ce36e57c096e56dc on master.

Coverage remained the same at 80.0% when pulling 225d84a7d9d23b2466908e1c3ca091a6900c4db9 on fix-encoding-issue into 28950f79419e71546f2100c5ce36e57c096e56dc on master.


Ensure spaces are supported in source/dest folders, and file names

This command exits 2 w/o recognizing the most recent backup
"/Library/Application Support/BackupMinder/BackupMinder" --BackupSource /Users/USER/Documents/QuickbooksBackups --ArchiveDestination "/Users/USER/Documents/QuickbooksBackup Archive" --Name Backupset2 --NameContains "Watchman Monitoring.qb2014" --BackupsToLeave 45 --WarnDays 21

Does this still happen?

yeah.. see WatchmanDev/issue-13-backupminder-spaces
the source.. has more than the allowed 45 copies
the destination does a recent file in the archive. (within the 21 days allowed)
bash-3.2# "/Library/Application Support/BackupMinder/BackupMinder" --BackupSource /Users/allenhancock/Documents/QuickbooksBackups --ArchiveDestination "/Users/allenhancock/Documents/QuickbooksBackup Archive" --Name Backupset2 --NameContains "Watchman Monitoring.qb2014" --BackupsToLeave 45 --WarnDays 21
Executing: /Library/Application Support/BackupMinder/BackupMinder --BackupSource /Users/allenhancock/Documents/QuickbooksBackups --ArchiveDestination /Users/allenhancock/Documents/QuickbooksBackup Archive --Name Backupset2 --NameContains Watchman Monitoring.qb2014 --BackupsToLeave 45 --WarnDays 21
"Watchman Monitoring.qb2014" latest timestamp: Tue Sep 30 22:23:58 2014

BackupMinder is set to trigger a Watchman Monitoring alert if there is no activity within 21 days.
The BackupMinder set: Backupset2 has not been updated in 402 days.
Archiving Watchman Monitoring.qb2014-14-09-30-15h47m09s.dmg ...

bash-3.2#
bash-3.2# echo $?
2

but there's an archive recently
YesThatLaptop:~ allenhancock$ ls -al /Users/allenhancock/Documents/QuickbooksBackup\ Archive
total 24352
drwxr-xr-x+  8 allenhancock  staff      272 Nov  7 17:45 .
drwx------+ 54 allenhancock  staff     1836 Oct  5 22:19 ..
-rw-r--r--@  1 allenhancock  staff     6148 Jul 12 00:59 .DS_Store
-rw-r--r--+  1 allenhancock  staff  2450410 Sep 30  2014 Watchman Monitoring.qb2014-14-09-30-15h47m09s-2015-11-07.dmg
-rw-r--r--+  1 allenhancock  staff  2450410 Sep 30  2014 Watchman Monitoring.qb2014-14-09-30-15h47m09s.dmg
-rw-r--r--+  1 allenhancock  staff  2682905 Jul 10 20:15 Watchman Monitoring.qb2015-15-07-10-20h15m35s.dmg
-rw-r--r--+  1 allenhancock  staff  2532894 Jul 20 16:01 Watchman Monitoring.qb2015-15-07-20-17h01m15s.dmg
-rw-r--r--+  1 allenhancock  staff  2328574 Oct 29 13:16 Watchman Monitoring.qb2015-15-10-29-13h16m41s.dmg
YesThatLaptop:~ allenhancock$

the status log plist is here
http://zip.wtch.mn/2X2e0e1P1G3h
but what I see is that the job I expect to be run, isn't

--NameContains "Watchman Monitoring.qb2014"

The year is part of the query, so it's not getting anything from 2015.


Command task that supports command executing plugins

I didn't know how to call this idea but the whole idea behind this suggestion is a task that can be used with every plugin out there that can execute commands, a sort of supporting unsupported plugins.
Here's an example of how everything would work.
User selects the "Command Variable" task
These options appear:
1 - Set variable name
2 - Set variable amount
3 - Objective Name  [What appears in the quest journal things like %count% would work to show progress]
4 - Notify (true/false) [It'll post in chat the notify message]
5 - Notify message [%count% would work on it]
Now after they've set up their task they'll be able to setup their plugin to use a command such as "/qa variable give playername variablename" on said player and their task would go up by 1 so if they set a variable amount of 5 it'd be at 1/5, after the same action within their plugin is done 5 times the stage would be completed and go to the next. The command would only work on users who have any active stage on any quest with a variable of the same name.
This could be used on so many plugins like Denizen to setup unique scripts which the progress awarded by the plugin via the variables to go to the next stage. Another one could be MMOItems Stations you can execute commands on players for creating an item from their recipes and that could count towards a quest. I think the unique possibilities that players can come up with their already existing plugins that execute commands are endless.
I hope this can be considered, if not I'd like maybe some feedback on why it's not a really good system, thanks!

Thanks for the suggestion. Sounds like a novel idea, but this type functionality is currently designated to modules. I would suggest that, if you have the ability to hire a developer or do this yourself, release this idea as a resource on SpigotMC or elsewhere. The type of universal integration you've detailed isn't within the scope of Quests, at least not at this time.


Appstudio update mvp-test-component

Pipelines as Code configuration proposal

Pipelines as Code CI/mvp-test-component-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
15 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
19 seconds
sanity-inspect-image

✅ Succeeded
18 seconds
deprecated-base-image-check

✅ Succeeded
2 minutes
clamav-scan

✅ Succeeded
20 seconds
clair-scan

✅ Succeeded
11 seconds
sbom-json-check

✅ Succeeded
42 seconds
sanity-optional-label-check

✅ Succeeded
21 seconds
sanity-label-check

✅ Succeeded
6 seconds
show-summary

Pipelines as Code CI/mvp-test-component-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
15 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
18 seconds
deprecated-base-image-check

✅ Succeeded
19 seconds
sanity-inspect-image

✅ Succeeded
20 seconds
clair-scan

✅ Succeeded
2 minutes
clamav-scan

✅ Succeeded
11 seconds
sbom-json-check

✅ Succeeded
21 seconds
sanity-label-check

✅ Succeeded
42 seconds
sanity-optional-label-check

✅ Succeeded
6 seconds
show-summary


added metaverse content

metaverse content v0.1 done

No direct merge inro main.  So closed this one and will do one into development branch


关于训练损失函数

作者，你好，我看到代码里面损失函数部分如下：
def loss_func(pred):
soft_loss = -pred[0]pred[0].log()
mask = torch.zeros(pred[1:].shape).to(pred[1:].device)
mask[...,1] = 1
hard_loss = -maskpred[1:].log()-(1-mask)pred[0].log()
soft_loss = soft_loss.sum(-1).mean()
hard_loss = hard_loss.sum(-1).mean()
#alpha=0.9
return 1soft_loss+0.5*hard_loss
而论文里面的损失函数写作如下图所示：

感觉难以对应起来，怀疑代码这里写的有点问题，能解释一下吗？

Hello, there are some mistakes in our paper, we will update a revised version later. Thanks.

We have deduced the equations again, and there is no mistake in the equation. Both of the objective functions can be treated as cross-entropy, and we omit the y(mask)=0 item in the function. If there is any question, please let me know.


Update doc about helm deployment

What type of PR is this?

[ ] API-change
[ ] BUG
[ ] Improvement
[x] Documentation
[ ] Feature
[ ] Test and CI
[ ] Code Refactoring

Which issue(s) this PR fixes:
Fixes #49
What this PR does / why we need it:
Not Available
Special notes for your reviewer:
Not Available
Additional documentation (e.g. design docs, usage docs, etc.):
Not Available

lgtm


'Maximum call stack size exceeded' error when loading AsciiDoctor.js

Bug report

Node Version: 7.7.3
Protractor Version: 5.1.0
Angular Version: 4.0.0-rc-5
Browser(s): chrome=57.0.2987.133
Operating System and Version (Driver info: chromedriver=2.29.461585 (0be2cd95f834e9ee7c46bcc7cf405b483f5ae83b),platform=Mac OS X 10.12.4 x86_64)

I created this project[1] to reproduce the issue. However, simply adding the asciidoctor.js[2] file to your existing project and running ng e2e should be sufficient to reproduce the problem.
I have filed this issue more for the convenience of others who might encounter it than in the hopes it will be fixed by this team. I will also file an issue with the AsciiDoctor team, but I suspect that the Protractor team is better equipped to identify and fix any underlying issue, regardless of who's codebase is at fault. Also, it's pretty easy to argue that if the code works outside of Protractor, it should ideally work within Protractor as well. Obviously easier to say than to make so.
If no fix can come out of this ticket, perhaps an error message that implicates in some way the script that is at fault? Simply knowing it was this third party script would have saved me loads of time.
Thanks much,
[1] https://github.com/ggranum/Ng4Playground/tree/find-e2e-issue
[2] https://github.com/ggranum/Ng4Playground/blob/find-e2e-issue/src/assets/asciidoctor.js

This is a bit of a strange one; i'm not sure what we are doing to affect ASCII doctor but it's not an officially supported use case and It isn't something anyone here is going to actively look into.
If you are interested in making Protractor play nicely with a 3rd party script (and doing so doesn't alter the framework that much) we'd welcome a pull request.
I hope that makes sense. I'm going to go ahead and close this. Thanks!

@NickTomlin I'm afraid I don't quite understand this view. Obviously it is a bit of an edge case, but clearly it is an issue with Protractor. Not only does it fail to load any page on which asciidoctor.js is present, it does so in a fashion that is nearly impossible to debug. However, the page, with the script, loads and works fine under non-test conditions.
I accept that it's a back-burner item, but I am surprised at it being routed directly into "won't fix", given that there is obviously some issue in Protractor that is breaking the page. If a third-party script can do it, certainly other projects will stumble upon whatever "it" is as well.
As for pull requests, I'll give a shot at finding the root cause, however I suspect that the level of domain knowledge required to startup and debug browser plugins will defeat the limited time I have available. Still, I'll spend a few more hours on this issue, as I would very much like to be able to test my app without having to disable the AsciiDoc rendered components.
Thanks,


FeatureRequest: ValueInList filter type

Should be very usefull as extension of ValueFilter. See example code:
SortFilterProxyModel {
  // ...
  filters: [
    ValueInListFilter {
        RoleName: 'some_key_role'
        valueList: [ 'key1', 'key2', 'key3']
        // Filter should accept row if (row.some_key_role in valueList)
    }
  ]
}

Tested it. Working OK. Closing the issue.
I have got an improvement idea, will report it in new issue when i'm ready.


Add link to beta/RC released on the website

Currently http://owncloud.org/install/ only contains either stable links or daily links.
After RC releases it would be good to have the latest RC tarball available there as well.
So far I always need to post the link to the mailing list for people who are interested in upgrading/testing/verifying whether their bug was fixed in that version.
Thanks!

This was implemented ;-)


Package request: cameractrls

Project description
cameractrls is a UI for v4l camera settings, like pan/tilt/... on fancy Logitech cameras.
Metadata

homepage URL: https://github.com/soyersoyer/cameractrls
source URL: https://github.com/soyersoyer/cameractrls
license: MIT
platforms: Linux

I'm using this successfully with the latest version,
version = "v0.6.6";
sha256 = "sha256-QjjLd5L+8Slxc3ywurhsWp1pZ2E1Y7NOdnCV2ZYBlqU=";

Is there any progress with this request?

@leoluk @mobergmann Please test my PR https://github.com/NixOS/nixpkgs/pull/329911. I don't have the device.

Tbh, I would like to, but I don't know how to test a custom package...

Tbh, I would like to, but I don't know how to test a custom package...

For new CLI: nix build github:Aleksanaa/nixpkgs/cameractrls#cameractrls-gtk4
Or nixpkgs-review pr 329911

I executed nix build github:Aleksanaa/nixpkgs/cameractrls#cameractrls-gtk4 and then nothing happened... I can also not find cameractrls

I executed nix build github:Aleksanaa/nixpkgs/cameractrls#cameractrls-gtk4 and then nothing happened... I can also not find cameractrls

Check your current directory, there's a result symlink to store, and the executable is in result/bin

I only tested the gui app and it seems to work fine!

I only tested the gui app and it seems to work fine!

Thanks! What about the others executables? Have you tested all the functionality of the app?

I can only test the the GUI, because I don't know how to use the CLI program. But the GUI is working fine, afaict.


Yashika_soni/Issue: #5408

Which issue does this PR close?

Closes #.
Rationale for this change

What changes are included in this PR?

Are there any user-facing changes?

Another suggestion is to make changes within the same PR instead of creating new ones. You can just push to the same branches.


ERROR: Exception: Now using drop node, which doesn't support mixed training/eval yet!

Hi All!
I try to train the model following the example:
python main_pyg.py --dataset ogbg-molhiv -n 8 --n1 4 -k 4 -d 150 --device 0 --gnn gcn-spmoe --coef 1

Here raises an error:
=====Epoch 1
Traceback (most recent call last):
  File "./graphproppred/main_pyg.py", line 373, in <module>
    main()
  File "./graphproppred/main_pyg.py", line 306, in main
    raise Exception("Now using drop node, which doesn't support mixed training/eval yet!")
Exception: Now using drop node, which doesn't support mixed training/eval yet!

The original code:
        if 'moe' in args.gnn:
            if 'moe' in args.gnn and args.num_experts_1hop == 0:
                raise Exception("No longer support two hop datasets after applying random node drop!")
                print('Training...')
                train(model, device, train_loader_2hop, optimizer, dataset.task_type)
                print('Evaluating...')
                train_perf = eval(model, device, train_loader_2hop, evaluator)
                valid_perf = eval(model, device, valid_loader_2hop, evaluator)
                test_perf = eval(model, device, test_loader_2hop, evaluator)
            elif 'moe' in args.gnn and args.num_experts_1hop == args.num_experts:
                print('Training...')
                train(model, device, train_loader, optimizer, dataset.task_type)
                print('Evaluating...')
                # train_perf = eval(model, device, train_loader, evaluator)
                valid_perf = eval(model, device, valid_loader, evaluator)
                test_perf = eval(model, device, test_loader, evaluator)
            else:
                raise Exception("Now using drop node, which doesn't support mixed training/eval yet!")
                print('Training mixed...')
                train_mixed(model, device, train_loader, train_loader_2hop, optimizer, dataset.task_type)
                print('Evaluating mixed...')
                train_perf = eval_mixed(model, device, train_loader, train_loader_2hop, evaluator)
                valid_perf = eval_mixed(model, device, valid_loader, valid_loader_2hop, evaluator)
                test_perf = eval_mixed(model, device, test_loader, test_loader_2hop, evaluator)

Is it because the model only supports either all one-hop or all two-hop experts?
I'm also confused why if we drop nodes, the model no longer supports two-hop experts?
Thanks for your help! @htwang14 , @Ir1d , @Syzygianinfern0

Could you adress the issure? Could you tell me your solvation? I am very hopeful for your reply!

The same issue. I am confused as the mixed-hop experts usage is presented as one of the main novelty points. It seems like it not supported at all by the code.
Could you address it?


Desync between Popup opening and pointer events

If a Popup is opened in a PointerEntered event and closed by a PointerExited event, then when the mouse is moved quickly across the screen it is possible for the Popup to open after the mouse has already moved away from it. In this situation, the Popup will not close.
To Reproduce
Create this UserControl:
<UserControl xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="AvaloniaApplication.PopupTile" mc:Ignorable="d"
		Width="100" Height="100" Margin="10" PointerEntered="OpenPopup">
	<Border Name="BG" Background="BurlyWood">
		<Popup Name="Popup" Placement="Center" PlacementTarget="BG">
			<Border Width="110" Height="110" Background="ForestGreen" PointerExited="ClosePopup"/>
		</Popup>
	</Border>
</UserControl>

using Avalonia.Controls;
using Avalonia.Input;

namespace AvaloniaApplication
{
    public partial class PopupTile : UserControl
    {
        public PopupTile()
        {
            InitializeComponent();
        }

        private void OpenPopup(object? sender, PointerEventArgs e)
        {
            Popup.IsOpen = true;
        }

        private void ClosePopup(object? sender, PointerEventArgs e)
        {
            Popup.IsOpen = false;
        }
    }
}

Now insert this grid into a window:
<UniformGrid Columns="4">
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
	<local:PopupTile/>
</UniformGrid>

When the mouse is moved slowly over the PopupTile controls, the popup opens and closes as expected. Only one popup is open at any time.
But if the mouse is moved rapidly, then the popups start to open without closing. The PointerExited event is never raised. The popups close when the mouse is moved back over them and then away again.
Expected behavior
The popup should open and acquire pointer state synchronously. In the example control, the popup should always start in the "pointer over" state and should raise PointerExited if the pointer is no longer over it when it opens.
Screenshots

Desktop (please complete the following information):

OS: Windows and Mac
Version 11.0.4

Issue13036.zip


Add SataQiu as a sig-docs-zh-owner

I'd love to contribute to the Chinese docs.
Thanks @chenrui333

/cc @chenrui333 @tengqm @markthink

/approve


Queries with multiple relevant documents

Hey,
I see ragatouille handels many different forms of pairs.
But I do not see an example for a query with multiple positive documents.
Is it like:
(query, [list of relevant documents]) ?

Hey! Do you mean during training (e.g. you have multiple positive per query and want to use all of them for training) ?
If so, RAGatouille goes with the most common IR pattern which is that each (query, relevant) pair should be independent, so if you have, say, 5 documents as positives for the same query, you'd create 5 pairs (or triplets), each of them containing just one of the positives and the query.

Okay great! I was wondering how this is being handeled in prepare_training_data?
So far I am passing the pairs like in the second tutorial.
In the tutorial, the pairs does not contain the query ids, so how its handeled? I am worried that when sampling negative documentes, positive documents will be sampled. Is there anything I am missing?

@bclavie 👀


fix(a11y): change text color of positioned badges

This PR proposes to change the text color of positioned badges to have a good contrast.
Rendering before → Live preview of this PR
Note: It was already spotted by pa11y and hidden back then waiting for a modification in the DSM. It is also a feedback from @Aniort in https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap/pull/1099#issuecomment-1078811343.

[ ] Synchronize with @louismaximepiton and https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap/pull/1099 to have the same modification for the headers
[ ] @CyriaqueBillard @Franco-Riccitelli: Update the DSM to change the color if this PR suits you
[ ] After the merge: Remove rule#10 in Wiki - Docs accessibility issues

On hold until we have more info about the design: change the text or the blue bg color.

Note: this PR would probably need an update since .text-bg-info is now available in the utilities. It could be used at all places for basket with info badge.

Closing it to not to maintain this branch for nothing. Replaced by https://github.com/Orange-OpenSource/Orange-Boosted-Bootstrap/issues/1631.


Uninstalling calico interrupts any network communication

After installing Calico on my EKS cluster, creating some network policies and deleting them again I wanted to uninstall Calico. Doing so works just fine but leaves any network communication within the cluster not working.
Reinstalling Calico makes everything works just fine. I double checked that there are no network policies are left.
Is this expected behavior or the cluster go back to the default state of allowing all network communication?
Expected Behavior
Uninstalling Calico results in all network communication in the cluster to be allowed.
Current Behavior
When uninstalling Calico, all network communication from within the cluster is being denied.
Possible Solution
?
Steps to Reproduce (for bugs)

install Calicio on EKS using the aws-calico Helm chart
uninstall the aws-calico Helm chart
create a pod in any namespace and try to ping an external IP

Your Environment
EKS version: 1.20.7-eks-d88609
Calico chart version: 0.3.8
Calico app version: 3.19.1
Let me know if you need any further infos.

@brennerm this is currently expected behavior - when calico is removed, there are still some rules left programmed on the node for enforcing default behavior. These rules are important while Calico is running to ensure no pod receives network access before Calico has time to program policy for the pod.
You will likely need to flush iptables / remove any cali-* chains on the nodes to remove those.

@caseydavenport Thanks for the quick response! Is this behavior documented somewhere? Definitely wasn't able to find it.
Will restart all nodes after the installation and will report back.

Rebooting the nodes made everything come back to normal operation. Thanks!


weights update for "char-rnn-classification"

In the "char-ran-classification" tutorial, the weights are updated by the following code.
  for p in rnn.parameters():
    p.data.add_(-learning_rate, p.grad.data)

I was trying to use optimizer.step() to update weights as  the following:

optimizer = optim.SGD(rnn.parameters(), lr=0.005)
def train(category_tensor, line_tensor):

  hidden = rnn.initHidden()
  optimizer.zero_grad()
  for i in range(line_tensor.size()[0]):
    output, hidden = rnn(line_tensor[i], hidden)
  loss.backward()
  optimizer.step()
return output, loss.data[0]

However, the results are very bad. most of the results are predicted wrong. I'm new to pytorch, and can any one explain what's the difference between these two methods?
Thanks
==================Results with optimizer.step()======================
5000  5% (0m12s) 2.9460 Jigalev / Portuguese ✗ (Russian)
10000  10% (0m24s) 2.9493 Gil / Portuguese ✗ (Korean)
15000  15% (0m36s) 2.9261 Ha / Spanish ✗ (Korean)
20000  20% (0m48s) 2.9530 Rog / English ✗ (Polish)
25000  25% (1m1s) 2.7749 Ki / Japanese ✓
30000  30% (1m13s) 2.8230 Messer / English ✗ (German)
35000  35% (1m25s) 2.9910 Paszek / English ✗ (Polish)
40000  40% (1m38s) 2.9733 Banh / English ✗ (Vietnamese)
45000  45% (1m50s) 2.7955 Serafim / Portuguese ✓
50000  50% (2m2s) 2.9550 Teng / English ✗ (Chinese)
55000  55% (2m15s) 2.7941 Kan / Portuguese ✗ (Chinese)
60000  60% (2m27s) 2.9335 Victors / Scottish ✗ (French)
65000  65% (2m39s) 2.7903 Lobo / Portuguese ✓
70000  70% (2m51s) 2.7830 Soga / Japanese ✓
75000  75% (3m3s) 2.9486 Hong / English ✗ (Chinese)
80000  80% (3m16s) 2.9172 Brisimitzakis / Portuguese ✗ (Greek)
85000  85% (3m27s) 2.9579 Linville / Japanese ✗ (French)
90000  90% (3m40s) 2.9035 Kerr / Japanese ✗ (Scottish)
95000  95% (3m52s) 2.8205 Tsen / Portuguese ✗ (Chinese)
100000  100% (4m4s) 2.8934 Kenmotsu / Greek ✗ (Japanese)

==================Results using the method in the tutorial======================
5000  5% (0m12s) 2.0740 Trapani / Italian ✓
10000  10% (0m26s) 2.1635 Rzehak / Czech ✓
15000  15% (0m39s) 2.7131 Bishara / Japanese ✗ (Arabic)
20000  20% (0m53s) 0.8122 Villamov / Russian ✓
25000  25% (1m7s) 2.0739 Mercier / German ✗ (French)
30000  30% (1m20s) 0.8251 Isozaki / Japanese ✓
35000  35% (1m33s) 2.4339 Cumming / Italian ✗ (English)
40000  40% (1m46s) 0.1408 Mckenzie / Scottish ✓
45000  45% (1m59s) 0.9425 Menendez / Spanish ✓
50000  50% (2m13s) 0.0060 Haritopoulos / Greek ✓
55000  55% (2m26s) 0.6606 Zientek / Polish ✓
60000  60% (2m40s) 2.2221 Desjardins / Greek ✗ (French)
65000  65% (2m53s) 1.3020 Seaghdha / Irish ✓
70000  70% (3m6s) 2.5087 Meier / French ✗ (Czech)
75000  75% (3m19s) 0.8131 Dasios / Greek ✓
80000  80% (3m31s) 0.2416 Poggi / Italian ✓
85000  85% (3m44s) 0.5777 Kim / Korean ✓
90000  90% (3m57s) 2.6680 See  / Dutch ✗ (Chinese)
95000  95% (4m10s) 2.0200 Weisener / German ✗ (Czech)
100000  100% (4m23s) 1.5813 O'Gorman / French ✗ (Irish)

This is because of a mistake where the RNN is initialized twice (once at the top, once below creating the optimizer) - so optimizer is optimizing parameters that aren't being used. Commit 0cc55f5aaed44e7903edb8842671411301fcf003 should fix it.

where the RNN is initialized twice (once at the top, once below creating the optimizer)
I don't understand this.

I checked the commit 0cc55f5, it seems that is same as what I did above using optimizer. The resutls are the same, only very limited correct predictions. most are wrong.

The problem is lower down, around https://github.com/spro/practical-pytorch/commit/0cc55f5aaed44e7903edb8842671411301fcf003#diff-e9a91a525ccafb52f5b1e35131d4011cL51
The RNN was being re-created after the optimizer:
rnn = RNN(n_letters, n_hidden, n_categories) # rnn 1
optimizer = torch.optim.SGD(rnn.parameters(), lr=learning_rate) # Using rnn 1's parameters

def train():
    ...
    rnn(...) # This is going to refer to the rnn 2, because of below
    optimizer(...) # This still has parameters of rnn 1
    ...

rnn = RNN(n_letters, n_hidden, n_categories) # rnn 2 causes the problem, delete this

So the optimizer was not working, because rnn was redefined to and has a completely new set of parameters, while the optimizer has a reference to the old one.

cool, thanks!! The mistake  in the official Classifying Names with a Character-Level RNN tutorial
should be fixed as well.
import time
import math

n_epochs = 100000
print_every = 5000
plot_every = 1000

rnn = RNN(n_letters, n_hidden, n_categories)

# Keep track of losses for plotting
current_loss = 0
all_losses = []


tap: allow sharding of fonts in Homebrew/cask

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

We want to migrate Homebrew/cask-fonts into the main Homebrew/cask repo. There are ~2,200 font casks that need to be put into sharded subdirectories. This PR allows for paths such as Casks/fonts/font-a/font-apple.rb.

Throwing a comment here to poll the group.  I made similar changes that is more code, but don't need to rename Casks.  Not sure I like it though.
Effectively a new def in tap.rb for font paths specifc rather than using the existing new_cask_path def.  This can be shortened for brevity.
  def new_font_path(token)
    font_first_letter = token.split("-").second[0].to_s
    cask_subdir = "fonts/font-#{token.split("-").second[0].to_s}"
    cask_dir/cask_subdir/"#{token.downcase}.rb"
  end

Then in cask/audit.rb, updated the path audit to check explicitly for font artifacts:
 def audit_cask_path
  return unless cask.tap.core_cask_tap?

  expected_path = if cask.artifacts.none? { |k| k.is_a?(Artifact::Font) }
                    cask.tap.new_cask_path(cask.token)
                  else
                    cask.tap.new_font_path(cask.token)
                  end

  return if cask.sourcefile_path.to_s.end_with?(expected_path)

  add_error "Cask should be located in '#{expected_path}'"
end

If there's a better way I could've shared these changes please let me know!  I didn't want to open a competing PR and I didn't want to clobber the existing PR.

@krehel Can you benchmark your proposal? Want to see how it affects performance.

I did locally with hyperfine.  I saw no difference.

@carlocab @MikeMcQuaid If you can weigh in on the above it would be appreciated. I want to make sure we're using the right approach here.

Indeed.  Feel free to tell me it's terrible or not 😄  (also: I am genuinely curious which is preferred)

As I said in https://github.com/Homebrew/homebrew-cask/pull/173366#issuecomment-2103562098, I'm against disallowing normal casks to start with font-, so I think basing this on the actual artifacts rather than the cask name is the better approach.

Sounds good. @krehel I'm going to close this and the cask PR. Can you open a PR with your proposed change? Thanks!

@p-linnane will do. Thanks


Shortcode sandbox

New to this Pull Request. Unsure of what will happen next.

OK, I'm going to MERGE this new pull request.


Add querying OpenCL device infomation

Hi, this pull request allows TVM to have the correct warp size and thread count when using OpenCL.
This PR is not compatible with some parts of #1290. But I believe this is a better approach that it provides accurate information about the device on all devices.

thanks for proposing this. The warp information was only used to perform warp level optimization(in opencl's term subgroup memory). So far it is only enabled for intel graphics device, where we know the necessary multiple.  A better way to get this value, than querying by dummy kernel, might be check if the subgroup extension is available and query subgroup size.
On the other hand,  we cannot directly do runtime query during of target creation. This is mainly because that the compiler may exist in places other than the target device(e.g. compile on your laptop, runs on your phone), and the on the fly query can be inaccurate.

So to summarize, we might need to keep the old conservative way of warp size assignment in target creation, but maybe could enhance opencl runtime a bit to also query return a correct warp size(using subgroup info query API).

@marty1885 can you update the PR according to the feedbacks?

close for now due to inactive status, let us open another PR based on the discussion


Long torrent names get messed up with comment badge

Why not make comment number as separate column in first place?

@goonyaa That's what I'm planning on, but do we really need it? 🤔

@kipukun Anon asked about it. Old nyaa had it. And we, actually, already have it.

Truncate the torrent name in a responsive way seems elegant, or maybe just put the comment number as a tooltip, it isn't an important info.

+1 to tooltip. Will make a PR soon.
On May 18, 2017 4:58 PM, "Mitki"<EMAIL_ADDRESS>wrote:

Truncate the torrent name in a responsive way seems elegant, or maybe just
put the comment number as a tooltip, it isn't an important info.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NyaaPantsu/nyaa/issues/618#issuecomment-302539598,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGa9Mtu5kPWwbTblqRBdrkL-qzlEYUmHks5r7LELgaJpZM4Nfu8L
.

Why are we limiting the space we use to display information in the first place? Once you get to a certain screen size it should take up a percentage and not a fixed width.
EX:

@yiiTT
That size is kind of unrealistic. I've been working on a 1080 monitor, and I think 4K would work fine as well. Though I do agree having it as a fixed size is bad style, the example is kind of far fetched.

Comments number are really a thing. When I download a torrent, I usually look on the number of comments (real popularity) and Seeders. :p

I'll just make another column.


Non-deterministic behavior in featurization

Describe the bug
When working with large (~7k docs) corpus of hardware datasheets, extracting multiple relations, we expect that the features for each candidate would be deterministic between each run. Even more so if we have parallelism=1 set in the Featurizer. However, we find that there can be small (e.g., < 5) differences between feature tables, resulting in slightly different sparse matrices, and thus, slightly different results.
To Reproduce
Running on the HACK transistor dataset will reproduce the error. However, it will take a long time, and we haven't been able to get a very minimal example that reproduces the error yet. Attached are two feature table dumps between two different runs with parallelism=1. Note that there is only a single difference on line 65454.
feature_table.tar.gz
Note that it isn't always one difference, and the difference is not deterministic. The different attached is just an example.
Expected behavior
We would expect that these feature tables are identical between runs.
Error Logs/Screenshots
For convenience, here is the differing line in screenshot form

Additional context
If the issue is in the UDF implementation, this might affect the Labeler in addition to the Featurizer, since they share a lot of the UDF code.

I'm working on #439 and currently the tests fail https://github.com/HazyResearch/fonduer/pull/439/checks?check_run_id=759815347 at assertions on the number of feature keys like below.
Mysteriously, the tests fail only at the number of feature keys while other assertions pass.
...
        assert num_features == len(train_cands[0]) + len(train_cands[1])
        num_feature_keys = session.query(FeatureKey).count()
>       assert num_feature_keys == 4577
E       assert 4621 == 4577

tests/e2e/test_e2e.py:235: AssertionError

...
        # Update features
        featurizer.update(new_docs, parallelism=PARALLEL)
        assert session.query(Feature).count() == len(train_cands[0])
        num_feature_keys = session.query(FeatureKey).count()
>       assert num_feature_keys == 2526
E       assert 2544 == 2526

tests/e2e/test_incremental.py:192: AssertionError

It seems to be reproducible as the same commit fails on my forked repo too (https://github.com/HiromuHota/fonduer/runs/759811429?check_suite_focus=true).

One more thing: the same GitHub Actions job (https://github.com/HazyResearch/fonduer/pull/439/checks?check_run_id=759815303), but a different error on mac (3.7)
        # Test that FeatureKey is properly reset
        featurizer.apply(split=1, train=True, parallelism=PARALLEL)
>       assert session.query(Feature).count() == 214
E       assert 213 == 214
E        +  where 213 = <bound method Query.count of <sqlalchemy.orm.query.Query object at 0x138f72c50>>()
E        +    where <bound method Query.count of <sqlalchemy.orm.query.Query object at 0x138f72c50>> = <sqlalchemy.orm.query.Query object at 0x138f72c50>.count
E        +      where <sqlalchemy.orm.query.Query object at 0x138f72c50> = <bound method Session.query of <sqlalchemy.orm.session.Session object at 0x1355437b8>>(Feature)
E        +        where <bound method Session.query of <sqlalchemy.orm.session.Session object at 0x1355437b8>> = <sqlalchemy.orm.session.Session object at 0x1355437b8>.query

tests/e2e/test_e2e.py:188: AssertionError

Two differences:

test_e2e.py failed both Mac (3.6) and Linux (3.7), but it failed on the number of features on Mac.
test_incremental.py passed on Mac.

By looking at two runs (https://github.com/HazyResearch/fonduer/actions/runs/131557275 and https://github.com/HiromuHota/fonduer/actions/runs/131556294), the three types of errors happened as below:

3.6
3.7

Mac
1A
1B

Linux
1A, 2
1B, 2

Regarding the 1A type of error, session.query(Feature).count() actually equals to the total number of candidates for split=1, ie session.query(Feature).count() == len(dev_cands[0]) + len(dev_cands[1]).
On my local Mac, they were 214 == 61 + 153.
But on Github Actions, they were 213 == 60 + 153.
Thus, the difference occurs on PartTemp and not on PartVolt.

The number of contituent mentions of PartTemp: Part and Temp were the same on local Mac and GitHub Actions.
This means temp_throttler drops one extra candidate on GitHub Actions.
def temp_throttler(c):
    (part, attr) = c
    if same_table((part, attr)):
        return is_horz_aligned((part, attr)) or is_vert_aligned((part, attr))
    return True

The difference comes either from same_table, or from is_horz_aligned/is_vert_aligned.
I suspect the non-deterministic behaviour comes from the visual_linker.

A few updates:

Found that the different number of candidates in https://github.com/HazyResearch/fonduer/issues/412#issuecomment-642916724 comes from tests/data/html/2N6427.html.
VisualLinker behaves non-deterministically.

Case 1 (the test assertion assumes the following result from VisualLinker)
[INFO] Extracted 2622 pdf words
[INFO] Extracted 2746 html words
[DEBUG] Global exact matching:
[INFO] (1730/2746) = 0.63
[DEBUG] Local exact matching:
[INFO] (2077/2746) = 0.76
[DEBUG] Local approximate matching:
[INFO] (2205/2746) = 0.80
[DEBUG] Linked 2205/2746 (0.80) html words exactly

Case 2 (this happens sometimes, not sure what make this happen)
[INFO] Extracted 2622 pdf words
[INFO] Extracted 2746 html words
[DEBUG] Global exact matching:
[INFO] (1730/2746) = 0.63
[DEBUG] Local exact matching:
[INFO] (1994/2746) = 0.73
[DEBUG] Local approximate matching:
[INFO] (2200/2746) = 0.80
[DEBUG] Linked 2200/2746 (0.80) html words exactly

One update: the non-deterministic behaviour of VisualLinker comes from the fact that doc.sentences is not sorted.
I think the following relationship should have order_by=True to the backref argument.
https://github.com/HazyResearch/fonduer/blob/246a92dd05884e3a706ba216e6177456d537de13/src/fonduer/parser/models/sentence.py#L248-L252
Findings that lead me to the above statement:

"The local search for exact matches" by link_exact depends on how html_word_list and pdf_word_list are sorted.
The order of words in pdf_word_list depends on how block/line/word (in the output of pdftotext -bbox-layout) is sorted, which looks stable.
That in html_word_list depends on how doc.sentences is sorted.
According to SQLAlchemy doc, order_by=False by default at relationship (or backref) (https://docs.sqlalchemy.org/en/13/orm/relationship_api.html#sqlalchemy.orm.relationship)

A few more updates:

In order to reproduce this, I had to delete and re-create a database (dropdb e2e_test and createdb e2e_test). This would mean that the order of doc.sentences depends on some internal state of the postgres database.
Another observation that supports the above is that I have not observed this non-deterministic behaviour if a database is not used (ie just using UDFs).


[Event Management] - Closing Related Resources by the background worker

Describe the feature request.
Currently, the background worker uses a service to mark tasks as expired, it then goes ahead to close CarePlans whose Task.status are all completed/cancelled. However, the service doesn't close related resources that will be closed via configs once this #2371 is completed hence the need to implement the closure of related resources to avoid leaving active related resources
Additional context
Use case: If a PNC client has overdue tasks that expire after the defined PNC care period the background worker will close them and the CarePlan however the PNC condition will be left intact
Acceptance criteria

[ ] Closure of all related resources

Implementation plan (For Engineers)
The plan for implementing the solution e.g. via a description or a checklist for the various ordered tasks that will need to be completed.
i.e. Describe how you intend to solve the problem

MVP implementation plan
We will hardcode the eventResourceId and number of days check here. This means the workflow will only be able to close the PNC workflow Condition resources
The default eventResourceId to use is pncConditionToUse
The default PNC time period is 28 days

Related ticket https://github.com/opensrp/fhircore/issues/2488


Add datafuselabs/datafuse

datafuselabs/datafuse: A Modern Real-Time Data Processing & Analytics DBMS with Cloud-Native Architecture, built to make the Data Cloud easy
Signed-off-by: Chojan Shang<EMAIL_ADDRESS>

https://github.com/rust-cloud-native/rust-cloud-native.github.io/issues/33


settings.json

Hello !
Do you have a way to pass settings.xml ?
(edit: I mistyped, I was talking about settings.json of course)
thanks :)

I don't, as it has never fit into my workflow, but I can see its utility.  Meteor can read the settings in from the METEOR_SETTINGS environment variable, so as far as I can see, we should be able to load the contexts of an arbitrary file into that environment variable to have it work.
I'm happy to take a PR for this.

I have added (to the v1.4 tag) support for SETTINGS_FILE and SETTINGS_URL, which attempt to load settings.json from a file or URL, respectively.  I can't speak to XML support; I would not have presumed Meteor had anything XML-related, but whatever is in one of these sources is loaded into the METEOR_SETTINGS environment variable.  Both are, by default, empty.
Example uses might be:
docker run -e SETTINGS_FILE=/data/config/app.json -v /data/config:/data/config ulexus/meteor:v1.4

docker run -e SETTINGS_URL=http://datasvr.mydomain.com/assets/app/settings.json ulexus/meteor:v1.4

Sorry, mistyped for xml. Doing java and meteor may have cause this error 😀
Thanks!

hey there !
I has to add
export METEOR_SETTINGS
just before nodes server launch otherwise the settings.json are not taking into account.
:)

Thanks @Antoine-O ; I have updated the entrypoint.sh to export METEOR_SETTINGS if it is set.

@Ulexus Any chance this change might find it's way into the legacy image?

That sounds reasonable; I'll take a look at it when I return next week.


After disabling and enabling AD using a different user for test and enable auth , this user is not allowed to log in to rancher server anymore.

**Rancher versions: v2.0.1-rc6
Steps to Reproduce:
Enable AD using user - "testuser1" for test and enable auth.
Add "testuser2"in the "Site Access" list - "Allow members of Clusters, Projects, plus Authorized Users and Organizations".
Make sure that both "testuser1 and "testuser2" are allowd to access rancher-server.
Disable AD auth.
Enable AD auth using user - "testuser2" for test and enable auth.
Try to log in as "testuser2". Log in fails with following errors seen in logs:
"2018/05/23 16:33:21 [ERROR] API error response 500 for POST /v3-public/activeDirectoryProviders/activedirectory?action=login. Cause: can't find unique user for principal activedirectory_user://CN=,CN=Users,DC=,DC=,DC="
gz#8002
gz#13694
gz#15354
gz#17155

CC @cjellick @deniseschannon
So the flow here is kind of odd but I've found where it dies.

Create testuser2. This creates u-abc with no AD principal.
Enable AD.
Login to testuser2 via AD. This creates u-xyz with the AD principal AD-testuser2.
Disable AD.
Login with testuser2 (u-abc).
Enable AD using the testuser2 as the AD account. This associates the AD principal AD-testuser2 with u-abc.

At this point, both u-abc and u-xyz are associated with the same AD principal, which is where the login fails.
I have a few solutions proposed below. I think the core decision factor here is if  users with the same user name created pre auth, and then logged in via AD are intentionally separate users, or if they really should be bound together. I don't know if that's a constant prescription we make one way or the other, or if that varies from user/install to user/install.
Potential solutions, including some which may work in concert:

When you login with AD, if no user already exists with that primary, attempt to automatically bind to an existing local user with the same username (if the user is able to log in).
Same as above, but give the user the option to make the binding to the found user
Some way to manually merge existing accounts or add/remove/transfer principals. I know this something already being talked about, but it directly impacts this bug.
When activating AD, if another user is found with the same principal, rather than just blindly binding the principal to the current user, allow the user to remove the principal from the old user (would have to enforce a password set on local login, as well as potentially generating a local principal or login name or whatever), or to log in to AD as a different user. Generally, disallow getting the principal into a bad state.
Nuclear option of deleting all AD principals when AD is deactivated, but if it's being reactivated, we'd need some way to reattach rather than generating all new accounts again.

I'm going to try testing with another provider or two to see if the behavior is the same there.

We marked this as a p0 out of a concern that the impact was that no user could log in. @maxkorp investigated and found it was limited to just the AD account associated with the user who turned on AD the second time. As this is fairly limited in impact, moving to p1.

moving this out of this release, as it is a minor issue

This issue also reproduces in this use case:
Enable github auth (as githubuser1) when logged in as Default Admin user.
Disable github auth.
Create a new admin user say - "admin1"
Enable github auth  (as githubuser1) when logged in as "admin1".
Log out
Try to log in using github as githubuser1.
User is presented with the following error message:
2018/09/14 19:29:24 [ERROR] API error response 500 for POST /v3-public/githubProviders/github?action=login. Cause: can't find unique user for principal github_user://4266958

I suspect this is going to occur with all auth providers, as a new user is created for the second user's login with the auth provider, which is not associated with their built in account, and then you end up with 2 users with that base login name principal

Yes, maybe we have to check if it's possible to remove external auth principals from all users if auth is being disabled

I just ran into what appears to be this issue after a similar series of actions with a SAML account on Rancher 2.2.6; I don't think it should be closed.
2019/10/02 22:03:09 [ERROR] SAML: Failed getting user with error: can't find unique user for principal adfs_user://jfrederickson

@jfrederickson since this issue is closed, i'd recommend that you open a new issue and reference this one. new issues are more likely to be seen.

This is literally what's happening to me right now.  #29433

I just ran into this with Rancher 2.4.12 (Docker). Deleting the second user with kubectl worked for me.

I just ran into this with Rancher 2.4.12 (Docker). Deleting the second user with kubectl worked for me.

Hit this today on a new system with only a single non-admin user:
$ kubectl get users -o custom-columns=NAME:metadata.name,USERNAME:username,DISPLAY_NAME:displayName,PRINCIPAL_IDS:principalIds,CREATE_DATE:metadata.creationTimestamp --sort-by metadata.name | grep -v "System account"
NAME           USERNAME   DISPLAY_NAME                         PRINCIPAL_IDS                                                                       CREATE_DATE
u-ikdhxu5efy   <none>     redacted                             [azuread_user://5xxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxe local://u-ikdhxu5efy]         2021-03-03T22:22:38Z
user-zrntg     admin      Default Admin                        [local://user-zrntg azuread_user://5xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxe]            2021-03-03T21:12:59Z

Also hitting this on Okta as well with Rancher v2.5.6:
NAME           USERNAME                DISPLAY_NAME                            PRINCIPAL_IDS                                                              CREATE_DATE
u-kkwxnqsrzz   <none>                  redacted<EMAIL_ADDRESS>local://u-kkwxnqsrzz]              2021-01-06T01:09:12Z
user-bx22k     admin                   Default Admin                           [local://user-bx22k<EMAIL_ADDRESS>              2021-01-06T01:09:19Z

+1
keycloak have the same issue

related issue https://github.com/rancher/rancher/issues/33331

After talking to @dramich and @vincent99 the solution to this is to return a 4XX response when a principal is going to be bound to 2 users. The user should be sent to documentation for why this is not possible.
When a user configures an authentication provider they are asked to login with a test account. This test account's principal is bound to the local user that was used to configure the provider. This gives the user instant access to the authentication provider's information and allows them to configure other users right away.
If the authentication provider is disabled and the reconfigured with a different test user, the request should be rejected. The only possible solutions for this would involve breaking audit trails or not binding the user to the local account, causing confusion when they attempt to continue with setup. Instead the user should be informed why rancher cannot proceed and given guidance on how to proceed.

This already has PR up for backend but has a dependency on #33331. Once it's done this will be resumed.

@philomory The test account is intended to be the AD account of the admin.  If you are testing with an account that exists only for setting up rancher then that user should be the admin.  If we did not bind the admin account to the test user there would be no way to link the admin account to an AD account.  This would mean there is a user who can login with AD credentials and act as 1 user and be able to login with local credentials and act as another users.

I don't think there's an option in the provider for this currently, but you/terraform don't need to go through the test flow at all.  It is possible to just directly set the auth config without doing a test or associating a principalId to anybody.

Rancher version: v2.6.0
This is reproducible on the latest Rancher release v2.6.0

@izaac , this is expected as neither backend change PR is not merged in yet and necessary UI change is in "next up".

@snasovich Sowmya asked QA to try to reproduce this - I do not know specifically why but this is why Izaac mentioned that.

@paynejacob , looks like UI work is done. Could you please get the back-end part through? Let me know if we're blocked on anything else.