uses too much memory

my host limited memory_limit to 256M. and when I upload image 10M get error :

Fatal error: Allowed memory size of 262144000 bytes exhausted (tried to allocate 5461 bytes) in mysite\vendor\intervention\image\src\Intervention\Image\Gd\Decoder.php on line 136

Unfortunately, it uses too much memory.
How can I reduce the amount of memory usage?
my code:
Image::make($file->getRealPath())
                   ->orientate() //Apply orientation from exif data
                   ->save($new_file_path);

You should debug it with images with different sizes and memory. You will find it will work and when it doesn't, the memory trying to be allocated will be different. Image information must be read into memory before any operation is made and another memory allocation should be reserved for calculations of the output. If you try to use imagick you should not be getting memory issues, but it comes down to the image you are using. Using libvips as an optional backend should provide us developers using this lib a faster and memory issues free experience with images.

There is a great way to avoid this memory exhaustion issue. This article by Alvaro Trigo describes it and provides a function to allocate memory for image processing with PHP in a smart way. While the article talks about GD, the only GD function used in the code is getimagesize(), so it can be used in most PHP environments.
For completeness' sake, here is my tweaked version of that code I've been using on multiple projects for many years:
/**
 * Dynamically allocate memory based on image dimensions, bit-depth and channels
 * Shamelessly stolen somewhere online years ago.
 * Probably from https://alvarotrigo.com/blog/allocate-memory-on-the-fly-PHP-image-resizing/
 *
 * @param string $filename Full path to a file supported by getimagesize() function
 * @param int $tweak_factor Multiplier for tweaking required memory. 1.8 seems fine. More info: http://php.net/imagecreatefromjpeg#76968
 * @param string $original_name Used purely for reporting actual file name instead of uploaded temp file (e.g. /tmp/RaNd0m.tmp)
 *
 * @return bool true on success or if no memory increase required, false if required memory amount is too large
 */
function setMemoryLimit($filename, $tweak_factor = 1.8, $original_name = null) {

	$maxMemoryUsage = 512 * 1024 * 1024; // 512MB
	$width = 0;
	$height = 0;
	$memory_limit = return_bytes(ini_get('memory_limit'));

	$memory_baseline_usage = memory_get_usage(true);

	// Getting the image info
	$info = @getimagesize($filename);
	if( empty($info) ) {
		throw new Exception( sprintf('ERROR: getimagesize("%s") returned: %s', $filename, print_r($info, true)) );
		return false;
	}

	!empty($original_name) ? $filename = $original_name : $original_name;

	$channels = isset($info['channels']) ? $info['channels'] : 3;
	$width = $info[0];
	$height = $info[1];

	if($info['mime'] == 'image/png') {
		$channels = 4;
	}

	if(!isset($info['bits'])) {
		$info['bits'] = 16;
	}
	$bytes_per_channel = ( ($info['bits'] / 8) * $channels );

	// Calculating the needed memory
	$new_limit = $memory_baseline_usage + ($width * $height * $bytes_per_channel * $tweak_factor + 1048576);

	if( $new_limit <= $memory_limit ) {
		return true;
	}

	/* We don't want to allocate an extremely large amount of memory
	so it's a good practice to define a limit and bail out if new limit is more than that */
	if ($new_limit > $maxMemoryUsage) {
		throw new Exception( sprintf( "Failed increasing memory limit to %dMB (max=%dMB) for file '%s' (%d x %d)", ceil( $new_limit / 1048576 ), ceil( $maxMemoryUsage / 1048576 ), $filename, $width, $height ) );
		return false;
	}

	$new_limit = ceil( $new_limit / 1048576 );

	// Updating the default value
	ini_set('memory_limit', $new_limit.'M');
	return true;
}

Important: This code should be called before invoking any image processing code that loads the image into memory.
If the function throws an exception, it is safe to assume that the passed image is too big.
I've tested this code using a specially crafted spark.png which is 225000*225000px and would require more than 47GB of memory to simply allocate its pixels in memory.

I believe it would be best for intervention provide access to another library to edit images. Even allowing more memory to the script there will be performance bottlenecks. If huge amounts of memory are indeed needed, why not use an interface to libvips for example? This way, developers using Intervention can prepare the best handling method by looking at the image size... If GD, ImageMagick and Libvips are there on the system Intervention can ramp up it's game.

@AndisGrossteins  This method only helps us determine the amount of memory dynamically. But the main problem is the impossibility of using large amounts of memory in most hosts. Usually the memory is limited to a maximum of 256MB. With this limit, you can only upload a photo with a maximum size of 2 to 3 MB. I agree with @jarodium . must be use another library.


Wifi interface frequently disconnecting

nmcli says wifi signal is 71/100 but kernel logs repeat:
[ 2221.289224] wlp82s0: Connection to AP 50:d4:f7:a8:f8:8b lost
[ 2222.838456] wlp82s0: authenticate with 50:d4:f7:a8:f8:8b
[ 2222.843661] wlp82s0: send auth to 50:d4:f7:a8:f8:8b (try 1/3)
[ 2222.873972] wlp82s0: authenticated
[ 2222.875792] wlp82s0: associate with 50:d4:f7:a8:f8:8b (try 1/3)
[ 2222.882972] wlp82s0: RX AssocResp from 50:d4:f7:a8:f8:8b (capab=0x1431 status=0 aid=138)
[ 2222.891601] iwlwifi 0000:52:00.0: Got NSS = 4 - trimming to 2
[ 2222.897777] wlp82s0: associated
[ 2223.742822] iwlwifi 0000:52:00.0: No beacon heard and the session protection is over already...
[ 2223.742889] wlp82s0: Connection to AP 50:d4:f7:a8:f8:8b lost
[ 2231.254568] wlp82s0: authenticate with 50:d4:f7:a8:f8:8b
[ 2231.261931] wlp82s0: send auth to 50:d4:f7:a8:f8:8b (try 1/3)
[ 2231.294122] wlp82s0: authenticated
[ 2231.294722] wlp82s0: associate with 50:d4:f7:a8:f8:8b (try 1/3)
[ 2231.301487] wlp82s0: RX AssocResp from 50:d4:f7:a8:f8:8b (capab=0x1431 status=0 aid=138)
[ 2231.314935] iwlwifi 0000:52:00.0: Got NSS = 4 - trimming to 2
[ 2231.322821] wlp82s0: associated

I tried disabling power saver mode via networkmanager config

perhaps https://bugzilla.kernel.org/show_bug.cgi?id=203709

from the above kernel bug I saw someone mention 5ghz was more stable...after switching to 5ghz I never saw wifi drop


scaNN algorithm: do we have to provide the K when building the index?

Looking at this code:
searcher = scann.scann_ops_pybind.builder(normalized_dataset, 10, "dot_product").tree(
    num_leaves=2000, num_leaves_to_search=100, training_sample_size=250000).score_ah(
    2, anisotropic_quantization_threshold=0.2).reorder(100).build()

this is the only documentation I could find btw. what is the meaning of various parameters here?
to search:
neighbors, distances = searcher.search_batched(queries)

where do we set K - the # of NN we want? does this have to be set at time of building the index? If so, that is very limiting. why?
also what is training_sample_size? do we have to tell it in advance how many vectors we will be storing in the index? that is again very limiting. why is there such a constraint?

Hi could you allow me to work on it.

When using scann from tensorflow recommenders the domentation is here.  From the docs, you provide a default for k at index build time and you can override that at call time.


Add my rockets at profile

In this pull request I am adding a function to display my rockets on profile and fix errors on my reservation buttons.

I made a few changes to the reserve key. There's not much I reverb the true false logic. Kindly check the code again, see if you like it or not. If you don't like it feel free to remove it. Cheers happy coding mate✌

We are good to go! Thank you for your help with the joining mission actions. I appreciate your efforts, bro. The PR is ready to merge!


[WIP] Drop broadcast logger

When we were logging to both files and stdout / journald we needed every logger to be a broadcast logger, now that that is no longer the case we can return the "raw" logger.
This also will make it simpler for us to be able to create "ad-hoc" loggers with additional metadata like a logger for a specific MiqRequest with the request_id as a tag.
TODO

[ ] Get tests passing with the raw logger
[ ] What to do with the StringIO type?
[ ] Convert the vmdb/loggers/ classes to modules to extend the journal/container loggers

Do we need this to fix the password in logs?


Update FIP with the converge changes

https://github.com/filecoin-project/FIPs/discussions/809#discussioncomment-10454439

Not including the activation epoch for mainnet yet as we don't have precise time.

https://github.com/filecoin-project/FIPs/pull/1076


Did ares 0.10.0 get re-tagged?

While trying to upgrade rust to 1.70.0, I found that the ares 0.10.0 artifact got changed, raise this issue to confirm if there was a re-tag happening. Thanks!

Yes, I wasn't aware that Homebrew updated that quickly. Homebrew sniped the old release before I deleted it that day from trying to get cargo-dist to work. 👀

no worries, just want to confirm :) Thanks for the quick response, appreciate it! (we do ship things pretty fast 😄 )


Platform flattening overhaul

This PR merges the nested platforms inside platform/ios, re-wires the bazel to support the new hierarchy and deletes a bunch of the old CMake build system from the darwin, macos and ios platforms.
This version is drafted against main, and does much the same as  #1357 drafted against topic/drawable.
Deferred to a later PR:

ios-sanitize[-address]
ios-static-analyzer

@mwilsnd Great stuff!

2023-07-26 13:33:26.415917+0200 App[568:14667] Could not load the "settings.png" image referenced from a nib in the bundle with identifier "com.firstnamelastname.maplibre.app"

I am getting this with the sample app. Also the location icon in the top right does not show. I remember this being a problem before. Not even sure were it is getting this file from.


Common understanding about the workflow requirements

As a team, we need a summary of the past discussion and the resulting requirements so that we can discuss them together and generate our next steps from them.

[ ] summary of the past discussion
[ ] discussion meeting
[ ] requirements list

Old WF repo: https://github.com/OCR-D/ocrd-workflows
Old WF format: https://github.com/OCR-D/spec/pull/171
Wiki on WF Guide and recommendations:
WF Server: https://github.com/OCR-D/core/pull/652
Ocrd Controller: https://github.com/bertsky/ocrd_controller
RFC: Preloading OCR-D Processors: https://hackmd.io/23-JzLp_Q96cb6T0ttoFIA

summary of the past discussion

The aim for a workflow component for OCR-D goes back to the initial phase I of the project. I'll try to summarize the high level discussions so far.
A strength of OCR-D lies in its modularity and flexibility in the use of Processors, with often more than one Processor being available for a given task (or step). Experiences, tests and user expectations have conveyed that - due to the complex and very diverse nature of the documents to be processed - often only tailor made workflows can guarantee the optimal result quality.
The OCR-D functional model shows that OCR is always composed from a sequence of such steps, with the condition that the output (image, text or metadata) from a single Processor must also be made available for subsequent Processors to make use of (theoretically, also loops are conceivable).
In practice, workflows are often specific to an institution or project, composed of ad-hoc solutions or local scripts and lacking standardized interfaces, descriptions and documentation. This greatly hinders reuse, comparability and replicability.
So far we can summarize the following needs, or rather benefits, of a standardized workflow management component:

standardized workflows should support the transparent exchange of information between Processors on a global level
standardized workflows should ease the composition of sequences from a diverse range of Processors
standardized workflows should provide better means for replicability, evaluation and comparison
standardized workflows should help with the reuse of exisiting workflows by others
standardized workflows should capture provenance output that can aid in debugging and optimization

A bit further down the line, standardized workflows could also be used for discovery (i.e. finding an appropriate workflow for a set of documents), or to dynamically compose sequences of Processors merely based on a workflow description.
Other aspects that could greatly benefit from standardized workflows are scalability/parallelization (e.g. while some steps require more time to complete, other steps could potentially already be started and run in parallel to reduce the overall execution time) and error handling/robustness (i.e. the ability to overcome exceptions or crashes of Processors without stopping the overall workflow execution).
A first steps towards standardized workflows was made with

Old WF repo: https://github.com/OCR-D/ocrd-workflows

which basically encapsulates workflows as a simple sequence of Processors in Posix shell scripts. This has a few drawbacks e.g. with regard to the validation of the sequence and the data exchange between Processors (see also the example and explanation in the wiki on workflows), or the capture of global provenance information.

Old WF format: https://github.com/OCR-D/spec/pull/171

tries to specify a standardized format for such workflows and also has a good discussion of the benefits/drawbacks of this approach, while also touching on alternatives like CWL. [Note: while initially also Taverna was a candidate, with it being retired as an Apache incubator early in 2020, we eventually discarded it)]

WF Server: https://github.com/OCR-D/core/pull/652

is an implementation of a workflow server based on https://github.com/OCR-D/spec/pull/171 that already aims to overcome some of the problems in parallelization and error recovery that are well explained under

RFC: Preloading OCR-D Processors: https://hackmd.io/23-JzLp_Q96cb6T0ttoFIA

Last but not least, another relevant piece of software in this context is

Ocrd Controller: https://github.com/bertsky/ocrd_controller

which provides a network interface (via SSH) for executing Processors based on a local installation of ocrd_all, and which could be exposed to third party software such as e.g. Kitodo.

we need concrete requirements. There is a difference between workflow requirements and requirements of the processors.
we need to provide an excample workflow and ask IMPL for agreement. Triet will take one OCR-D example and put it in NextFlow.


Tutorial is outdated

The tutorial doesn't point to the latest bindgen release on crates.io: https://github.com/servo/rust-bindgen/blob/master/book/src/tutorial-1.md
Also it would be nice if it could be regenerated and re-uploaded to https://servo.github.io/rust-bindgen because the current version still has no_unstable_rust (cc #757).

Yes we need to update the text of the tutorial.

It looks like our deploy-book.sh script hasn't been deploying the book...

Fixed by #805

@fitzgen many thanks!


Add support for printing stack traces when exception is unhandled

This isn't a feature that can be provided in a portable fashion, but it very useful where the compiler/runtime don't unwind the stack before calling the std::terminate_handler when dying.

I think this is probably as simple as just printing a backtrace inside of an std::terminate handler. cc @dnoe

Normally that wouldn't work but I think it will because we're using the custom pthread wrapper instead of std::thread.

I’d be interested in taking this if it isn’t done and no-one is actively working on it.

I don't think anyone is working on it. PRs would definitely be welcome!


vm-service crashes if path to flutter has extra / in it

http://stackoverflow.com/questions/41187802/issue-building-flutter-on-a-mac
Flutter was working just fine a few weeks ago, however it appears to be broken on my system. I cleaned my existing install and re-cloned and installed flutter, but it seems to fail with the following problem:
    Akshays-MacBook-Pro-2:~ akshaydashrath$ flutter doctor
    Downloading Dart SDK 1.21.0...
    #################################################################100.0%
    Building flutter tool...
    vm-service: Error: Unhandled exception:
    Unsupported operation: Cannot extract a non-Windows file path from a
    file URI with an authority
    \#0      _SimpleUri._toFilePath (dart:core/uri.dart:4423)
    \#1      _SimpleUri.toFilePath (dart:core/uri.dart:4417)
    \#2      _loadFile (loader.dart:407:26)
    \#3      _handleResourceRequest (loader.dart:510:5)
    \#4      _processLoadRequest (loader.dart:941:7)
    \#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

I've recently updated MacOS to 10.12.2 apart from that I can't identify any other changes I've made that could affect the system.

Related Dart SDK issue: https://github.com/dart-lang/sdk/issues/28143

cc @akshaydashrath

I upgraded to 10.12.2 and flutter doctor works for me. Maybe the error only happens when we're downloading the Dart SDK?

@aks
@akshaydashrath
Can you please add the following to your $FLUTTER_HOME/bin/flutter script?
    set # <====== add this
    (cd "$FLUTTER_TOOLS_DIR"; rm -f pubspec.lock; "../../bin/cache/dart-sdk/bin/pub" get --verbosity=error --no-packages-dir)
    "$DART" --snapshot="$SNAPSHOT_PATH" --packages="$FLUTTER_TOOLS_DIR/.packages" "$SCRIPT_PATH"
    echo "FINISHED SNAPSHOT" # <====== add this

And copy the results to this issue.
Thanks!

Hey Seth,
Tried a cache clean but that didn't work, however I did paste your code and it appears it's a PATH issue, which I don't understand, I'll go through my
Just as reference here's the output
ANDROID_HOME=/Users/akshaydashrath/Android/SDK Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.cgDXublCs1/Render BASH=/bin/bash BASH_ARGC=([0]="1") BASH_ARGV=([0]="doctor") BASH_LINENO=([0]="0") BASH_SOURCE=([0]="/Users/akshaydashrath/sdk/flutter/bin/flutter") BASH_VERSINFO=([0]="3" [1]="2" [2]="57" [3]="1" [4]="release" [5]="x86_64-apple-darwin16") BASH_VERSION='3.2.57(1)-release' DIRSTACK=() EUID=501 FLUTTER_HOME=/Users/akshaydashrath/sdk/flutter GOPATH=/Users/akshaydashrath/.go GROUPS=() HOME=/Users/akshaydashrath HOSTNAME=Akshays-MBP-2 HOSTTYPE=x86_64 IFS=$' \t\n' LANG=en_GB.UTF-8 LOGNAME=akshaydashrath MACHTYPE=x86_64-apple-darwin16 OPTERR=1 OPTIND=1 OSTYPE=darwin16 PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/akshaydashrath/Android/SDK/tools:/Users/akshaydashrath/Android/SDK/platform-tools:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/akshaydashrath/Android/SDK/tools:/Users/akshaydashrath/Android/SDK/platform-tools:/Library/Frameworks/Python.framework/Versions/2.7/bin:/Users/akshaydashrath/Android/SDK/tools:/Users/akshaydashrath/Android/SDK/platform-tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/akshaydashrath/Android/SDK/build-tools/22.0.1/:/Users/akshaydashrath/sdk/appengine/bin/://Users/akshaydashrath/.go/bin://Users/akshaydashrath/sdk/flutter/bin:/Users/akshaydashrath/Android/SDK/build-tools/22.0.1/:/Users/akshaydashrath/sdk/appengine/bin/://Users/akshaydashrath/.go/bin:/Users/akshaydashrath/sdk/flutter/bin:/Users/akshaydashrath/Android/SDK/build-tools/22.0.1/:/Users/akshaydashrath/sdk/appengine/bin/://Users/akshaydashrath/.go/bin:/Users/akshaydashrath/sdk/flutter/bin PIPESTATUS=([0]="0") PPID=38745 PS4='+ ' PWD=/Users/akshaydashrath/sdk/flutter/bin SHELL=/bin/bash SHELLOPTS=braceexpand:errexit:hashall:interactive-comments SHLVL=2 SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.2uYhVU321X/Listeners TERM=xterm-256color TERM_PROGRAM=Apple_Terminal TERM_PROGRAM_VERSION=388 TERM_SESSION_ID=B31FF374-DC04-4AB5-B381-D8E2C36537A7 TMPDIR=/var/folders/lq/50s7k5p930z0619cl2khwk5r0000gn/T/ UID=501 USER=akshaydashrath XPC_FLAGS=0x0 XPC_SERVICE_NAME=0 _=-e __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x2 //Users/akshaydashrath/sdk/flutter/bin/flutter: line 9: ../../bin/cache/dart-sdk/bin/pub: No such file or directory
As you see  in the last line theres a
//Users/akshaydashrath/sdk/flutter/bin/flutter: line 9: ../../bin/cache/dart-sdk/bin/pub: No such file or directory
instead of
/Users/akshaydashrath/sdk/flutter/bin/flutter: line 9: ../../bin/cache/dart-sdk/bin/pub: No such file or directory
My apologies for wasting your time. I tried executing flutter directly from root of the SDK and it works, however I have no clue if the path is gone off why its being picked up by the terminal or why it stopped working all of a sudden. I'll do a bit more digging but I'm guessing its my machine.

Also just as a reference this is my .bash_profile
`export ANDROID_HOME=/Users/akshaydashrath/Android/SDK
export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH:$ANDROID_HOME/build-tools/22.0.1/"
export PATH="$PATH:/Users/akshaydashrath/sdk/appengine/bin/"
Setting PATH for Python 2.7
The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
export GOPATH=$HOME/.go
export PATH="$PATH:/$GOPATH/bin"
export FLUTTER_HOME=/Users/akshaydashrath/sdk/flutter
export PATH="$FLUTTER_HOME/bin:$PATH" `

Lol.  I was able to repro by changing my $PATH:
Now I'm adding //src/flutter/bin to my PATH instead of /src/flutter/bin and BAM:
%flutter doctor                                                                                [~]
vm-service: Error: Unhandled exception:
Unsupported operation: Cannot extract a non-Windows file path from a file URI with an authority
#0      _SimpleUri._toFilePath (dart:core/uri.dart:4423)
#1      _SimpleUri.toFilePath (dart:core/uri.dart:4417)
#2      _loadFile (loader.dart:407:26)
#3      _handleResourceRequest (loader.dart:510:5)
#4      _processLoadRequest (loader.dart:941:7)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:148)

@johnmccutchan

Possibly two bugs.  One being in dart:core path handling/url canonicalization.  And second being a missing abspath call wherever we're handling the incoming flutter path.

I've reopened https://github.com/dart-lang/sdk/issues/28143 for the VM side.

This can be reproduced by running:
bin/cache/dart-sdk/bin/dart //path/to/flutter/bin/cache/flutter_tools.snapshot

using an absolute path with two leading slashes.
Dart's Uri.parse() interprets the characters after the two slashes as the authority part of the URL, which seems accurate based on https://tools.ietf.org/html/rfc3986#section-3.3
As a result, _resolveScriptUri converts the snapshot path to a URI like:
file://path/to/flutter/bin/cache/flutter_tools.snapshot

which doesn't load.
Dart's main.cc is passing the script file command line argument directly to the URI parser.  If this argument is supposed to be in URI format, then the bin/flutter script will need to convert the filesystem path.

Please disregard the IETF draft. The correct spec for URL parsing is https://url.spec.whatwg.org/.

Thanks for the additional info and quick fix.


MTDMotionEvent KeyError  in 1.9.0-3build1

kivy 1.9.0-3build1 on ubuntu xenial, I get occasional KeyErrors in mtdev.py:
Exception in thread Thread-1:
 Traceback (most recent call last):
   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
     self.run()
   File "/usr/lib/python2.7/threading.py", line 754, in run
     self.__target(*self.__args, **self.__kwargs)
   File "/usr/lib/python2.7/dist-packages/kivy/input/providers/mtdev.py", line 304, in _thread_run
     process([l_points[x] for x in _changes])
   File "/usr/lib/python2.7/dist-packages/kivy/input/providers/mtdev.py", line 178, in process
     touch = MTDMotionEvent(device, tid, args)
   File "/usr/lib/python2.7/dist-packages/kivy/input/motionevent.py", line 286, in __init__
     self.depack(args)
   File "/usr/lib/python2.7/dist-packages/kivy/input/providers/mtdev.py", line 51, in depack
     self.sx = args['y']
 KeyError: 'y'

sometimes KeyError: 'x'
Printing args in these cases shows, e.g. {'x': 1.0568387681159421, 'id': 597}

I don't have  a log but I have also that exception, on Debian Jessie with kivy 1.9.2 using a screen touch, sometimes raises the exception,  not all the time.

see also https://github.com/kivy/kivy/issues/3758
on the RPi touchscreen, once the KeyError has happened, the mtdev has died and no more touch events happen


[BUG] no-contradicting-classname cannot handle specificity with arbitrary variants

Describe the bug
Error: Classnames opacity-100, [&[aria-hidden=true]]:opacity-0 are conflicting!  tailwindcss/no-contradicting-classname

These classnames are not conflicting.
attribute selectors have a selector weight.
To Reproduce
<div classname="opacity-100 [&[aria-hidden=true]]:opacity-0" />
Expected behavior
Allow the above classnames.
Screenshots
N/A
Environment (please complete the following information):
N/A
Additional context
N/A
eslint config file or live demo
N/A

@ssssota, please try this beta version by running
npm i<EMAIL_ADDRESS>And let me know if it works for you.


Azure cli uptime

Is it possible to fetch uptime for each resource through azure cli without using additional service like cloudyn? If yes then how?

add to S167.

No, this is not possible. The consumption module only gives the consumption and cost. There is no concept of uptime.
Please use individual service SDKs to get that data.

closing the issue based on comments above.


add bluesky-webclient

very humble dockerfile, but took me a few hours...

Certainly not perfect, but not sure how much of that is due to upstream being very WIP (and we know it is not stable yet) vs how much is due to packaging.
I suspect kafka may be used to maintain consistency, but that can be a separate PR.

Certainly not perfect, but not sure how much of that is due to upstream being very WIP (and we know it is not stable yet) vs how much is due to packaging.
I suspect kafka may be used to maintain consistency, but that can be a separate PR.


WN16-PK-000030 Could not find file 'Get-ChildItem.exe'

WIN16-PK-000030 is using win_command instead of win_shell. Here is the output of my Packer build.
vsphere-iso:
vsphere-iso: TASK [Windows-2016-STIG : MEDIUM | WN16-PK-000030 | AUDIT | The US DoD CCEB Interoperability Root CA cross-certificates must be installed in the Untrusted Certificates Store on unclassified systems.] ***
vsphere-iso: fatal: [default]: FAILED! => {"changed": false, "cmd": "Get-ChildItem -Path Cert:Localmachine\\disallowed | Where Issuer -Like \"*CCEB Interoperability*\" | FL Subject, Issuer, Thumbprint, NotAfter", "msg": "Exception calling \"SearchPath\" with \"1\" argument(s): \"Could not find file 'Get-ChildItem.exe'.\"", "rc": 2}

I tested this change locally and my build completed. I will make a pull request later when I have time.
     vsphere-iso:
     vsphere-iso: TASK [Windows-2016-STIG : MEDIUM | WN16-PK-000030 | PATCH | The US DoD CCEB Interoperability Root CA cross-certificates must be installed in the Untrusted Certificates Store on unclassified systems.] ***
     vsphere-iso: task path: /home/gitlab-runner/builds/KSU4B7RC/0/ei4cd-devsecops/packer/Windows-2016-STIG/tasks/cat2.yml:2448
     vsphere-iso: Using module file /opt/C2BMC/COTS/ansible/lib64/python3.6/site-packages/ansible/modules/windows/win_shell.ps1
     vsphere-iso: Pipelining is enabled.
     vsphere-iso: <<IP_ADDRESS>> ESTABLISH WINRM CONNECTION FOR USER: Administrator on PORT 5986 TO <IP_ADDRESS>
     vsphere-iso: EXEC (via pipeline wrapper)
     vsphere-iso: ok: [default] => {
     vsphere-iso:     "changed": false,
     vsphere-iso:     "cmd": "echo true",
     vsphere-iso:     "delta": "0:00:00.421890",
     vsphere-iso:     "end": "2020-08-25 07:06:54.824374",
     vsphere-iso:     "rc": 0,
     vsphere-iso:     "start": "2020-08-25 07:06:54.402484",
     vsphere-iso:     "stderr": "",
     vsphere-iso:     "stderr_lines": [],
     vsphere-iso:     "stdout": "true\r\n",
     vsphere-iso:     "stdout_lines": [
     vsphere-iso:         "true"
     vsphere-iso:     ]
     vsphere-iso: }

I ended up fixing this with PR #8 before noticing this issue. I found the same thing when I was creating the CI/CD pipeline.


bb_cost_check error with SOFA

When I try to running full_testbench task with a SOFA architecture file, and choose layout size as 2x2, I am getting this type of error on openfpgashell.log:
Error 1: bb_cost_check: 0.569693 and bb_cost: 0.55274 differ in check_place.
What is this error about?
openfpgashell.log

@msaideroglu The problem should be resolved by merging the PR. Let me know if it works for you.


Example: Sapper

Replace Express with Polka within the default sapper-template 🎉
Demo is here: https://polka-sapper.now.sh/

Friendly ping to the one & only @Rich-Harris

great @lukeed


Changes in tests

I have changed way of the imports to a bit now. They now match the import format in other tests of intermine.
I have also modified registry tests to use a 'mock' object

Hello @nupurgunwant! Thanks for submitting the PR.

In the file intermine/registry.py, following are the PEP8 issues :

Line 31:80: E501 line too long (186 > 79 characters)
Line 58:1: E303 too many blank lines (3)
Line 113:28: E231 missing whitespace after ':'
Line 113:42: E231 missing whitespace after ':'
Line 113:51: E231 missing whitespace after ','

In the file tests/test_query_manager.py, following are the PEP8 issues :

Line 28:40: E127 continuation line over-indented for visual indent
Line 31:40: E127 continuation line over-indented for visual indent

In the file tests/test_registry.py, following are the PEP8 issues :

Line 15:5: E303 too many blank lines (2)
Line 19:1: W293 blank line contains whitespace


max_length and cell number

Hi, I am currently running scGPT and was wondering what exactly the max_length and max_seq_length stand for. Is it the amount of cells that is in the input data or something else?
Because no matter what I change when running the model it tends to pick up way less cells than whats in my input.
Thank you in advance!!

Hi, which tutorial or application are you running and can you share more code or print out messages? In a word, the max_length sets the max number of input tokens to the transformer model, it should have no influence on the number of cells. Also in all tutorials, the model takes in cells in minibatch mode. For example, if the batch size is set to 64, that means, each time the model takes in 64 cells out of the total N cells you provided in the data, and it will loop over all N cells in N/64 iterations.

Hi thank you for your quick reply. So I'm not meant to specify anywhere the amount of cells in my object?
I am running the zero-shot tutorial!

Indeed, you don't need to specify the amount of cells. In the zero-shot tutorial, there is a step calling this embed_data function. Here, https://github.com/bowang-lab/scGPT/blob/706526a76d547de4ed711fa028c99be5bdf6ad8a/scgpt/tasks/cell_emb.py#L163 , the function assumes the first input argument is the anndata object containing the sequencing data at adata.X. It should process all cells and output the results in a new anndata or to adata.obsm["X_scGPT"]. See these lines https://github.com/bowang-lab/scGPT/blob/706526a76d547de4ed711fa028c99be5bdf6ad8a/scgpt/tasks/cell_emb.py#L275-L279

So you may look at the size of your input data, if you still find the size does not match, please feel free to share more info about the code and data you are using.


Registration form with validation without any third party

Description
Registration form with validation without any third party
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[x] New feature (non-breaking change which adds functionality)
[x] This change requires a documentation update

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

@Deepak8717 You need to add a clear description when u create the PR of link the issue to it to get started.

@Deepak8717 Can you show the submitted details on submit(with password as ****? That makes the play more complete.. as in someone filled the registration, submitted and see the result. Alternatively, a message with the name saying it has been submitted successful, etc,


Manage recording OverrideValues

(Hint: If you are not satisfied with the variable name, flag-name or the description of the flag feel free to suggest - it's my first open-source PR :) )
Description of the change:
Changes
I made enhancements to the Operator-SDK to include an additional flag to the Helm-Operator. By adding this feature the Event-Recorder will not print/log the Override-Values.
I introduced the --suppress-override-values-flag to manage whether or not the OverrideValues are printed/logged. By introducing this flag users that use the helm-operator can be sure that their confidental information in the OverrideValues are not exposed.
Motivation for the change:
At Mercedes-Benz, our team is running a Container-as-a-Service (CaaS) platform based on Kubernetes.
We use the helm-operator with confidental OverrideValues which we do not want to be exposed
Checklist
If the pull request includes user-facing changes, extra documentation is required:

[x] Add a new changelog fragment in changelog/fragments (see changelog/fragments/00-template.yaml)
[x] Add or update relevant sections of the docs website in website/content/en/docs

Ugur Gündüz<EMAIL_ADDRESS>Mercedes-Benz Tech Innovation GmbH, Provider Information

I added a tick to Add or update relevant sections of the docs website in docs but I did not find a place where I can add changes for the flag

@joelanford @rashmigottipati Is there anything missing so the PR can be reviewed?

@joelanford @everettraven First of all - thank you for your time to review this PR. I adapted your ideas/suggestions as they make sense to me and I hadn't thought about it. Could you review it again so we have the same understanding now and I can implement it another way if I understood you wrong in worst case :)

Overall I think this looks good, thanks for the contribution @UgurTheG !
The nit is up to you if you want to address it, but there is one change that I would like before merging - can you add a changelog entry for this change? We typically like to have a changelog entry when there is a new user-facing change so that it gets included in our release notes

I included a changelog - hope it's well-formatted and not all too long!

@everettraven  Thanks for reviewing this PR again! I appreciate it :+1:


Ensure all documentation in examples is accurate after upgrade to RAPIDS 23.06

After the upgrade to RAPIDS 23.06, we need to ensure all examples are 1) working and 2) have the correct documentation. Below is a list of tasks that need to be performed for the 23.07 release.
Note: All of these tests, especially the digital fingerprinting tests, should be peformed on PR #938 until that PR is merged into branch-23.07
For each directory in the examples folder, perform the following:

[x] abp_nvsmi_detection/

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the example according to the README.md
[x] Ensure the output shown in the README.md is correct for the current release (minor differences like debugging timestamps, throughput rates, etc. are OK.)

[x] abp_pcap_detection/

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the example according to the README.md
[x] Ensure the output shown in the README.md is correct for the current release (minor differences like debugging timestamps, throughput rates, etc. are OK.)

[ ] developer_guide/
[x] digital_fingerprinting/

[x] demo

[x] Run the demo according to the README.md and ensure you can successfully submit messages to the pipeline

[x] production

[x] Run all pipeline scripts provided for inference/training for Azure/Duo:

[x] Run Duo Training Pipeline
[x] Run Duo Inference Pipeline
[x] Run Azure Training Pipeline
[x] Run Azure Inference Pipeline

[x] Run all Jupyter notebooks from start to finish:

[x] dfp_azure_inference.ipynb
[x] dfp_azure_integrated_training.ipynb
[x] dfp_azure_training.ipynb
[x] dfp_duo_inference.ipynb
[x] dfp_duo_integrated_training.ipynb
[x] dfp_duo_training.ipynb

[x] starter

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the example according to the README.md
[x] Ensure the output shown in the README.md is correct for the current release (minor differences

[x] visualization

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the visualization demo with DUO inputs
[x] Run the visualization demo with Azure inputs

[x] doca/

[x] Add a README.md that follows the format of the other README.md in the examples describing the steps necessary to build/run this example

[x] Include any requirements/restrictions that would prevent users from running this demo

[x] Run the example according to the README.md

[x] gnn_fraud_detection_pipeline/

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the example according to the README.md
[x] Ensure the output shown in the README.md is correct for the current release (minor differences like debugging timestamps, throughput rates, etc. are OK.)

[x] log_parsing/

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the example according to the README.md
[x] Ensure the output shown in the README.md is correct for the current release (minor differences like debugging timestamps, throughput rates, etc. are OK.)

[x] nlp_si_detection/

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the example according to the README.md
[x] Ensure the output shown in the README.md is correct for the current release (minor differences like debugging timestamps, throughput rates, etc. are OK.)

[x] ransomware_detection/

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the example according to the README.md
[x] Ensure the output shown in the README.md is correct for the current release (minor differences like debugging timestamps, throughput rates, etc. are OK.)

[x] root_cause_analysis/

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the example according to the README.md
[x] Ensure the output shown in the README.md is correct for the current release (minor differences like debugging timestamps, throughput rates, etc. are OK.)

[x] sid_visualization/

[x] Ensure the README.md is accurate and up to date on all versions
[x] Run the example according to the README.md
[x] Ensure the output shown in the README.md is correct for the current release (minor differences like debugging timestamps, throughput rates, etc. are OK.)

Please check items off the list as you make progress

https://github.com/nv-morpheus/Morpheus/issues/1045

Error from dfp_duo_integrated_training.pynb: https://github.com/nv-morpheus/Morpheus/issues/1046

Issues running the Duo and Azure training and inference pipelines: https://github.com/nv-morpheus/Morpheus/issues/1048

Closing as all tasks have been completed


looks similar to my friend's code

https://github.com/GordonRen/pose2pose

It's probably a fork of this code.

@Jade999 It seems that https://github.com/GordonRen/pose2pose is at least one month earlier than your code.

@NyleCohen  Even the README.md and gif ? Check the gif in readme.md, the window name is "pose2pose"........

@lampsonSong Ok that does seem wierd, can we get @llSourcell Siraj to comment on this?

@Jade999 pretty much all of his repos are simply re-upload of other people's work (not even a fork). That's the strategy to get stars for the repos to advance in a GitHub profile rank 🥇

May he is working on it. However, it seems to me that some people star repos without even a glimpse into the source code.

Well, in ||Source||'s readme he also aks you to clone the GordonRen repo, soo... not really weird. It´s just copied. I´m a bit new to Github though so is this not a fork? I thought it was a fork from GordonRen's repo

This is stealing. @llSourcell you have based your business plan in other people's work,  @GordonRen in this case. Shame

This guy has no paper, no professional background and just making tensor flow in 5 min or machine learning in 3 min videos. I so not know why people spend their time following him or even promoting him. Please someone just tell me what he is doing except creating a bunch of inaccurate and wrong videos about a deep science like AI. This person is a poison for open source and free education community.

@Nikronic  Even I don't have any research paper on machine learning. Does that mean I'm bad at ML?


RUV stream domain have changed

The RUV live streams seem to be running from a new domain footprint.net instead of level3.net.
There is also some kind of unique identifier which is now part of the url, it doesnt seem to be secrity/drm related. You can actually choose whatever you want, as long as its a 40 and 10 character hex string. So maybe used for analytics/grouping?

Didn't notice this issue until now, will look into it.


Fails to detect letter case with gitmoji prefixed commit messages

Is there an existing issue for this?

[X] I have searched the existing issues

Package ecosystem
cargo
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
No response
dependabot.yml content
version: 2
updates:
  - package-ecosystem: cargo
    directory: /
    schedule:
      interval: weekly
      time: "04:00"
    assignees:
      - tobealive
    commit-message:
      prefix: "⬆ "

  - package-ecosystem: github-actions
    directory: /
    schedule:
      interval: weekly
      time: "04:00"
    assignees:
      - tobealive
    commit-message:
      prefix: "⬆ "

Updated dependency
No response
What you expected to see, versus what you actually saw
Dependabot won't detect the letter case after merging previous commits with lowercase.
Commit message submitted by dependabot:
⬆ Bump h2 from 0.3.16 to 0.3.17

Merged message:
⬆ bump h2 from 0.3.16 to 0.3.17

Consecutive commits:
⬆ Bump h2 from 0.3.16 to 0.3.17

Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
This project uses the gitmoji code for its commit prefixes where the problem occurs.
https://github.com/tobealive/wthrr-the-weathercrab
Related issues I've searched and read include it's linked relatives:

https://github.com/dependabot/feedback/issues/292
https://github.com/dependabot/feedback/issues/74

Smallest manifest that reproduces the issue
No response

Thanks, I didn't fully understand what you were asking for until I read:

https://github.com/dependabot/feedback/issues/292.

This is a fairly rare edgecase, so it's tough to justify the core team working on it. Thankfully, this is open source, so if you or anyone else is interested, we'd welcome a PR.
I suspect this one shouldn't be that hard to fix, especially if you use one of our debugging tools to simulate the update job locally: https://github.com/dependabot/dependabot-core#debugging-problems
You can add a few debugger statements to narrow down where it's not picking up the correct casing: https://github.com/dependabot/dependabot-core#adding-debug-breakpoints

I had a look at the source code and I think the cause of this problem is https://github.com/dependabot/dependabot-core/blob/main/common/lib/dependabot/pull_request_creator/pr_name_prefixer.rb#L132.  The easiest solution should be to just invert the boolean there in case the GitMoji style is used; but this is just an assumption which I never tested.
However, there might be some projects which use GitMoji and require an upper case B for "Bump".  Thus, I would like to suggest to add a general configuration option controlling the case of "Bump" such that the behaviour of the case detection could be explicitly controlled regardless of the exact commit message style.  I assume such a feature would be useful for a broader audience and would not break anything when setting the current behaviour as default in case nothing is configured.  Furthermore, with the case of "Bump" set explicitly, the performance would be enhanced as the case detection could be completed faster.


This driver supports OpenCL @ Tegra TK1 ?

Hello,
this driver has support to OpenCL on Tegra TK1 (Jetson TK1) ?
Regards
Paweł

Hi,
Not yet - OpenCL support for this driver is dependent on the Mesa implementation which is not in a usable shape yet.


Launch optionally with isolated classpath (support for Flux)

User has to add --function.runner.isolated=true on the command line. In
this case the app is launched in an isolated classpath with reactor in the
parent class loader. Then the function is launched in a class loader with
the same parent so it can support functions of Flux.

squashed, updated comment, and merged as https://github.com/markfisher/sk8s/commit/0045dfda36ed6da4a22a25bc25ce5b462aa65b6d


reset the result value after hitting result button

Related Issue

Resets the result form value after hitting result button

Fixes: #[issue number that will be closed through this PR]
Describe the changes you've made
Reset the result form value after pressing the result button .
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.

Screenshots

Original
Updated

@ashish-patwal I can merge this but the points for DCP will be given only if u created an issue and then sent the PR. So it's upto u.

Na just merge it . I don't really do it for it the points . Btw it's just 5 lines

@ashish-patwal that's nice.

@ashish-patwal checkout other issues as well


Add reset localstorage

reset states
reset active states

I think we should add text like: Having issues or found a bug? click reset to restart...

Done and merged


Investigate cause to slow S3 uploads

Uploads are slow - on even fast connections there is a large amount of time that an upload takes for relatively smaller files.

The start of an upload, as managed by the S3v3 SDK takes some time to begin the upload. This requires additional investigation, whether this is an issue caused by the configuration on Platform Services or whether this is a solvable problem on AWS.

Answer: Internals of Openshift (configuration from Platform Services Side) incorrectly closes our open connection between browser and the server. The temporary solution to this is to increase the timeout.

Context: This problem doesn't come about on CAS uploads, a possible reason to this: Connections are handled from the TCP layer rather than the HTTP layer, so the problem may lie there

Donezo


apache-dubbo2.7+later conflict with pinpoint

when a dubbo call chain like : a->b->c ,pinpoint will lose data. when i checked the dubbo code ,i found the change between 2.5+ and 2.7+ in the class : org.apache.dubbo.rpc.protocol.AbstractInvoker
public abstract class AbstractInvoker<T> implements Invoker<T> {
//....
@Override
    public Result invoke(Invocation inv) throws RpcException {
        // if invoker is destroyed due to address refresh from registry, let's allow the current invoke to proceed
        if (destroyed.get()) {
            logger.warn("Invoker for service " + this + " on consumer " + NetUtils.getLocalHost() + " is destroyed, "
                    + ", dubbo version is " + Version.getVersion() + ", this invoker should not be used any longer");
        }
        RpcInvocation invocation = (RpcInvocation) inv;
        invocation.setInvoker(this);
        if (CollectionUtils.isNotEmptyMap(attachment)) {
            invocation.addAttachmentsIfAbsent(attachment);
        }
        Map<String, String> contextAttachments = RpcContext.getContext().getAttachments();
        if (CollectionUtils.isNotEmptyMap(contextAttachments)) {
            /**
             * invocation.addAttachmentsIfAbsent(context){@link RpcInvocation#addAttachmentsIfAbsent(Map)}should not be used here,
             * because the {@link RpcContext#setAttachment(String, String)} is passed in the Filter when the call is triggered
             * by the built-in retry mechanism of the Dubbo. The attachment to update RpcContext will no longer work, which is
             * a mistake in most cases (for example, through Filter to RpcContext output traceId and spanId and other information).
             */
            //<1>
            invocation.addAttachments(contextAttachments);
        }
//................

notice <1>:
when 2.5+ the code is :addAttachmentsIfAbsent ,when 2.7+ is addAttachments
so ,when the call chain from a->b->c ,the pinpoint span data will be override by this add operation in b interface. the pinpoint only can show a->b ,and c with it's later call is lost.
//
is therer any solutions?

让我告诉为什么，某次commiter为了简单解决问题，在某一次改动中改了，详情见#5908

原来如此.感谢


Servo gitter

Thank you for all your work. I have a question related to the servo.
I have everything wired up and workin on my desk but the servi is very jumpy.
It has the power to lift my heavy gondola with two 6005 bearings but it is jumping all the time
See example here:
http://www.youtube.com/watch?v=vTT_pI-Varo
I sit just me or is the normal behavior?
If I putty in and do a mode switch to pwm the servo is silent and then sudo gpio pwm 1 122 it moves and then silent.
Once I export the port again as done in the file in vplotterserver it starts to jump and make noise as in the video.
Is this Normal or do you any hints on how to improve this?

In the video I have the servo connected to gpio18 / wiringpi gpio1, 3.3v and gnd on the pi The idle movements and noise is much louder when running servo + on 5v from the pi

Hi @LangBalthazar ! yes I was having similar behavior. but stops once the GPIO library was load with the program. That's probably because of the noise on the GPIOs and the way servos works. There should be a way to fix it with proper wiring, but I don't know how to do it yet. Let me know if you find any tip. Thanks


Evaluation Context

It doesn't do anything right now. In the future, it will cache SDK resolution results, IO operations, etc.

Looks good! Only thing I wonder is if we want to get something using it as a POC before we commit? Since there are public APIs that could change if something was missed? But it looks designed well for non-breaking changes.
@jeffkl would like your input if you can get the SDK resolution to use this to cache for VS sessions.

Replaced by https://github.com/Microsoft/msbuild/pull/3075


Testing Prow fast-forward post-submit job

This is a noop commit that will be reverted in the next commit.
The goal is to confirm that PRs merged to main are synced to the release-2.5
branch and not the release-2.4 branch.
This tests the new config here:
https://github.com/openshift/release/pull/22322

/lgtm
/approve

Hmm this is weird, I can no longer approve PRs...

The branches have diverged, the latest merged PRs went to release-2.5 (#156, #161) unless they were specifically targeted at release-2.4 (#163). They have also been committed as fast-forward merges.


WIP add None uploaded to summary reports

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

Project coverage is 75.64%. Comparing base (36ce6b9) to head (4cef50b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #238      +/-   ##
==========================================
+ Coverage   75.62%   75.64%   +0.02%
==========================================
  Files          77       77
  Lines        2236     2238       +2
==========================================
+ Hits         1691     1693       +2
  Misses        545      545

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


UK Postcodes - Some of the values are no longer valid

Royal Mail is the authoritative source for postcodes in the UK. The website provides a page making it possible to lookup/check postcodes:
https://www.royalmail.com/find-a-postcode
This webpage shows several postcodes included in Faker are no longer valid:
KT18 5DN
AB15 4YR
B62 8RS

PR #1440 has removed these postcodes. What needs to be done to verify / merge this PR? Currently several of our tests are failing occasionally due to our reliance on Faker and these invalid postcodes that are sometimes provided.

Closing issue after commit referenced above.


Migrate away from JCenter

Will artifacts be moved to Maven Central since JCenter will eventually be shutdown?

This library was already mirrored to maven central but will work on removing the jcenter build support from the repo, thanks!

It seems only the older versions (1.6.0 and downward) are available on maven central (source)
Right now if I remove "jcenter()" from my build.gradle, as recommanded, I get this error message: "Failed to resolve: io.requery:requery-kotlin:1.6.1"

Will you be adding io.requery: requery-kotlin: 1.6.1 to Maven Central?


Support Python 3.7?

Wondering why this is not supporting Python 3.7 ?

./scripts/generate-screenshots.py:130:33: W606 'async' and 'await' are reserved keywords starting with Python 3.7

3.7 support was added in https://github.com/xolox/python-coloredlogs/commit/9be101374b6b48b724bdb1b530cbf5d53a726963 (3.8 could also be added). Can you reproduce the error in the newest release?

From a fresh checkout
$ make screenshots
Already using interpreter /usr/bin/python3
Traceback (most recent call last):
  File "scripts/generate-screenshots.py", line 45, in <module>
    from capturer import CaptureOutput
ModuleNotFoundError: No module named 'capturer'
make: *** [Makefile:62: screenshots] Error 1

As of coloredlogs 11.0 (released yesterday) Python 3.7 is official supported:

Older coloredlogs releases implicitly supported Python 3.7 already.
The main thing I fixed yesterday was to add a workaround to the test suite for what I believe to be a regression in Python 3.7, for details on that refer to #66. Given that this concerns a regression in interpreter behavior for an obscure edge case in the test suite, it was never a real incompatibility.
The flake8 warnings mentioned above were fixed when #60 was merged.
In any case make screenshots (scripts/generate-screenshots.py) generates screenshots which are also included in the version control repository. There's no reason for anyone but the project maintainer (me) to actually use this script. This explains why I didn't bother to properly document the additional dependencies.

In any case yesterday I also updated the Makefile to use Python 3 for local development and since then I noticed that scripts/generate-screenshots.py doesn't actually work on Python 3, so I will fix those incompatibilities and also document the additional Python installation requirements.

I'm going to close this issue now, given the rationale above and the commits since then.


New version: AstrodynamicalModels v1.0.1

Registering package: AstrodynamicalModels
Repository: https://github.com/cadojo/AstrodynamicalModels.jl
Created by: @cadojo
Version: v1.0.1
Commit: c771b0700436010b2a34bb815940a52ac9a9b9f0
Reviewed by: @cadojo
Reference: https://github.com/cadojo/AstrodynamicalModels.jl/commit/c771b0700436010b2a34bb815940a52ac9a9b9f0#commitcomment-57449998

Sorry for this – this PR can be closed. Thank you, please let me know if anyone has questions.


submit PR to include in nixpkgs? :D

Also maybe tag a release, but not sure if doing so is reasonable currently.
Thanks for creating this, very useful! I'm filing this issue because I expect others will also find it useful! :)

as requested, here is the release: https://github.com/nixcloud/dep2nix/releases/tag/0.0.1
thanks!


clang-format for nvcc (cuda files)

Clang-format currently works with c and cpp files.
I tried running in the terminal and it also works with cuda files.
Ale as far as I saw only supports nvcc on cuda files.
Making clang-format also work with cuda files would be helpful.

Added in #2327.


Exclude async_client_sync_server_* tests for poll-cv engine

The test sometimes get stuck (or extremely slow).  (https://github.com/grpc/grpc/issues/8545) created to debug poll-cv issues with async_client_sync_server perf tests

Still LGTM.

Known issues: #9551 and #9550


The error occurred while tracing the function init at ninjax.py

run demo in docker:
sh dreamerv3/embodied/scripts/xvfb_run.sh python3 dreamerv3/train.py   --configs dmc_vision --task dmc_walker_walk

│ /dreamerv3/dreamerv3/ninjax.py:245 in scan                                                       │
│                                                                                │
│   242 @jax.named_scope('scan')                                                                   │
│   243 def scan(fun, carry, xs, reverse=False, unroll=1, modify=False):                           │
│   244   fun = pure(fun, nested=True)                                                             │
│ ❱ 245   _prerun(fun, carry, jax.tree_util.tree_map(lambda x: x[0], xs))                          │
│   246   length = len(jax.tree_util.tree_leaves(xs)[0])                                           │
│   247   rngs = rng(length)                                                                       │
│   248   if modify:                                                                               │
│                                                                                │
│ /usr/lib/python3.8/contextlib.py:75 in inner                                                     │
│                                                                                │
│    72 │   │   @wraps(func)                                                                       │
│    73 │   │   def inner(*args, **kwds):                                                          │
│    74 │   │   │   with self._recreate_cm():                                                      │
│ ❱  75 │   │   │   │   return func(*args, **kwds)                                                 │
│    76 │   │   return inner                                                                       │
│    77                                                                                │
│    78                                                                                │
│                                                                                │
│ /dreamerv3/dreamerv3/ninjax.py:272 in _prerun                                                    │
│                                                                                │
│   269   if not context().create:                                                                 │
│   270 │   return                                                                                │
│   271   discarded, state = fun(dict(context()), rng(), *args, ignore=True, **kwargs)             │
│ ❱ 272   jax.tree_util.tree_map(                                                                  │
│   273 │     lambda x: hasattr(x, 'delete') and x.delete(), discarded)                            │
│   274   context().update(state)                                                                  │
│   275                                                                                │
│                                                                                │
│ /dreamerv3/dreamerv3/ninjax.py:273 in <lambda>                                                   │
│                                                                                │
│   270 │   return                                                                                │
│   271   discarded, state = fun(dict(context()), rng(), *args, ignore=True, **kwargs)             │
│   272   jax.tree_util.tree_map(                                                                  │
│ ❱ 273 │     lambda x: hasattr(x, 'delete') and x.delete(), discarded)                            │
│   274   context().update(state)                                                                  │
│   275                                                                                │
│   276                                                                                │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ConcretizationTypeError: Abstract tracer value encountered where concrete value is expected: Traced<ShapedArray(float16[16,4096])>with<DynamicJaxprTrace(level=1/0)>
The delete() method was called on the JAX Tracer object Traced<ShapedArray(float16[16,4096])>with<DynamicJaxprTrace(level=1/0)>
The error occurred while tracing the function init at /dreamerv3/dreamerv3/ninjax.py:163 for jit. This concrete value was not available in Python because it depends on the values of the arguments 'statics',
'rng', and 'args'.

See https://jax.readthedocs.io/en/latest/errors.html#jax.errors.ConcretizationTypeError

Same error here when running the example.py. Could be a wrong jax version? I see jax releases rapidly recently.

problem solved by downgrading jax to 0.3.25.

Thanks for reporting! It looks like an issue with the newest JAX release to me. I'll keep this open for now and will investigate further if it continues to be a problem.

Yes I ran it in codespaces and got this error too. Changing requirments.txt to this helped

I think I've fixed the issue with the newest JAX version, just by commenting out the delete() call that wasn't necessary. @IcarusWizard @Alian3785 would you mind giving it another try with the newest JAX version?

I tried example.py and it is runnable after commenting out these two lines. Jax version 0.4.4.


Documentation - board-show-hide-columns

The English documentation - board-show-hide-columns - contains French

Thanks it's now fixed.


[Question] Add a normalization layer between Attention and FFN?

In the original paper, it assumes that, "The computation for a query block is given by:"

If we want to add a normalization layer to the input of FFN,  then it will break the end-to-end fusion, am I right?
Based on my understanding, normalizations like RMSNorm require access to the whole tensor to calculate some statistics first.

If the normalization layer is applied on hidden dimension, then it it still blockwise independent.

The code provided follows LLaMA and GPT architectures' layer norms.
If you would like to add additional normalization layer, you can add it around blockwise_compute_ffn.

I see. Thanks for your explanation!

How about the activation function in FFN? Since it is a nonlinear function.


Bratseth/only consider prod applications

@mpolden please review
There is some discrepancy between the list of applications we actually consider when listing versions and computing confidence, and my expectations/what we should do:
The last one should have confidence: high by now, and we shouldn't show versions with no deployments (unless when the infradstructure is upgraded and no applications).
Not sure if it's caused by not filtering out PR's, but it's not wrong.

👍


couldn't find bench in async_std

It seems I cannot have bench even when I activate attributes feature

How to avoid using block_on in rust bench:
b.iter(|| // how to execute async function here using async_std)

seems like block_on is a little bit heavy and I would like to avoid using block_on in bench iter

@GopherJ you can use https://docs.rs/futures/0.3.4/futures/executor/index.html and task::spawn https://docs.rs/async-std/1.5.0/async_std/task/index.html#spawning-a-task

@humb1t I think it's not a good idea to create an async runtime in bench iterator, because in that case the creating time will be counted in.

you can create ThreadPool before b.iter() and use one runtime for entire benchmark like you do to preconfigure another environment entities.

@humb1t could you give an example?  because for me I don't think it'll work because I still cannot use async code in b.iter

It seems I cannot have async_std::bench attribute even when I activate attributes feature

See also https://github.com/async-rs/async-attributes/issues/9 and https://github.com/async-rs/async-std/issues/70#issuecomment-528042987

@GopherJ sorry - didn't check notifications for a while.
https://github.com/hyperledger/iroha/blob/iroha2-dev/iroha_client/benches/torii.rs this is our current benches, but we block inside iter.

@humb1t block_on inside iter will give incorrect figures. especially for<EMAIL_ADDRESS>and tokio


[Feature Request]: Add Expandable Row feature to Table

Description
Please add a way to define expandable rows in Table component.
Right now table operate on cell basis and it is possible to add expandable content into cell. but that make really bad visual experience when all content squeezed into one cell and rest of space just white.
So please add a way to expand rows (nest).
See https://codesandbox.io/s/react-expandable-table-rows-uzzqz?file=/src/mytable.js for what I'm saying.
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate requests

Please provide more specific use-case.
Currently it is hard to tell, maybe your problem is already solved in our components, but different way, without expandable rows

Usecase is following:
We have table with list of highlevel representations of some activities, for some of that activities we have a lot of additional information which we want to show to customer if he want to take a look.
So we want to provide they a way expand row so they will see additional details.
And if they want - they can expand multiple rows at once to quickly scroll through.
The representation of this additional information is completely different from table itself and take more space than "one cell".
Regular display:
|======Name======|===Column1====|====Column2====|
| + Event 1                    | ....                         | ....                           |
|   Event 2                    | ....                         | ....                           |
| + Event 3                    | ....                         | ....                           |

See - event  1 and 3 have details event 2 does not.
Expanded display:
|======Name======|===Column1====|====Column2====|
| ^ Name of event 1     | ....                         | ....                           |
+-----------------------------------------------------------+
| A bit of detailed information on event 1
|
+------------------------------------------------------------+
|   Name of event 2     | ....                         | ....                           |
| ^ Name of event 3     | ....                         | ....                           |
+-----------------------------------------------------------+
| A bit of detailed information on event 3
|
+------------------------------------------------------------+

For table details we have a different recommended treatment, have a look how this page works: https://cloudscape.design/examples/react/split-panel-multiple.html
When doing implementation of this, we evaluated exactly what you are proposing but the split panel performed better in testing.
Since we are a system of "single problem - single solution", our recommendation is now to use split panel for all such cases

I see.
Split panel is obvious way of displaying details, but it have one pretty significant disadvantage: it brake connection between what customer did with table and what is displayed.
When customer clicked checkbox on one row, scrolled to another - and clicked again - what should we display? How we should allow customer to "unclick" previous one if he want, ho we will let him know that what we displaying related to some row few pages earlier.
There a lot of questions on this...

Hi @eiva, I believe if you change selection type to single instead of multi, like this:  selectionType="single", that should solve problem of user being able to select multi and therefore making it such that it only shows details on currently selected row.

Closing this one. We currently have no plans for inline expandable details. Using split panel https://github.com/cloudscape-design/components/issues/1720#issuecomment-1802424157 is still the recommendation


ECS Alarms for anomalous behavior

Start
Project Lead
Actual Ship Date

TBD
TBD
TBD

Description

To improve the detection of production incidents, we need to create new alarms in AWS. We also need to connect ECS event bridge in order to base alarms off of ECS system events.
Documents

[x] #2297

live document

Milestone
https://github.com/WordPress/openverse/milestone/15
Prior Art

We've previously implemented a handful of CloudWatch alarms for RDS and Elasticsearch metrics.

https://github.com/WordPress/openverse-infrastructure/issues/520
https://github.com/WordPress/openverse-infrastructure/issues/284
https://github.com/WordPress/openverse-infrastructure/issues/416
https://github.com/WordPress/openverse-infrastructure/issues/256
https://github.com/WordPress/openverse-infrastructure/issues/150

We also use UptimeRobot which is also configured in our private infrastructure repository: https://github.com/WordPress/openverse-infrastructure/issues/116
Finally, a project proposal was written by @sarayourfriend at the start of 2022 to use Prometheus, Grafana, and other non-AWS tools, but was deprioritized and is only half implemented: https://docs.openverse.org/projects/proposals/monitoring/20220307-project_proposal.html

An implementation plan for this project is under revision:
https://github.com/WordPress/openverse/pull/2343

Most recent activity has been to merge the baseline code work. Remaining alarms are in the todos and will get picked up as folks wrap up existing work.

The work for the API alarms was started and two issues were assigned today in the Community meeting in Slack.

Completed

The total requests count was added for all services (API, thumbnails & Nuxt) to CloudWatch dashboards with its API alarm WordPress/openverse-infrastructure#582
Added alarms for Nuxt 2xx and 5xx responses WordPress/openverse-infrastructure#606

In Progress

https://github.com/WordPress/openverse-infrastructure/pull/581
https://github.com/WordPress/openverse/pull/2738
https://github.com/WordPress/openverse-infrastructure/pull/612
https://github.com/WordPress/openverse/pull/2974
https://github.com/WordPress/openverse-infrastructure/pull/614
https://github.com/WordPress/openverse/pull/3001

To Do

https://github.com/WordPress/openverse/issues/2502 CC @stacimc
https://github.com/WordPress/openverse/issues/2504 CC @obulat
https://github.com/WordPress/openverse/issues/2503

Completed
All the PRs in my previous comment's "In Progress" section, plus:

https://github.com/WordPress/openverse-infrastructure/pull/615
https://github.com/WordPress/openverse/pull/3012 (waiting merge, already approved)
https://github.com/WordPress/openverse-infrastructure/pull/619

In Progress

https://github.com/WordPress/openverse/pull/3053

To Do

Anomaly alarms for Nuxt response times and their run books. CC @obulat
https://github.com/WordPress/openverse/issues/2503

Completed

https://github.com/WordPress/openverse-infrastructure/pull/627
https://github.com/WordPress/openverse/pull/3076
https://github.com/WordPress/openverse/pull/3053

With an extra:

https://github.com/WordPress/openverse-infrastructure/pull/632

In Progress
Now we enter the monitoring phase, for determining the best thresholds for each alarm or whether it is of any use or not.
To Do
Promote alarms to the #openverse-alerts channel or retire them after the evaluation period.

In Progress
There were a few missing alarms for anomaly detection, so I made the updates in the following PRs, which are currently in the review phase:

https://github.com/WordPress/openverse-infrastructure/pull/708
https://github.com/WordPress/openverse/pull/3420

Also, @stacimc worked on adjusting the thumbnails alarms:

https://github.com/WordPress/openverse-infrastructure/pull/702

To Do

[ ] Reactivate API Response Time alarms

The Average and P99 Response Times for the Production API are constantly "in alarm" state and therefore, their actions are disabled. It seems that their calculations are off after the normalization they went with the addition of the canary service, because the measurements that the alarms report are different from the CloudWatch dashboard. See the following graphs.
API Production Average Response Time

Show graphics
From the alarm metric

From the ECS-Production-Dashboard

API Production P99 Response Time

Show graphics
From the alarm metric

From the ECS-Production-Dashboard

To me, it seems the problem is here:

But I want to confirm with @sarayourfriend the logic behind it.

In Progress

[ ] https://github.com/WordPress/openverse/pull/3523
[ ] https://github.com/WordPress/openverse-infrastructure/pull/723
[ ] https://github.com/WordPress/openverse-infrastructure/pull/724
[ ] https://github.com/WordPress/openverse-infrastructure/pull/725

To Do

[ ] Adjust and stabilize Nuxt alarms

With the last round of changes...

[x] WordPress/openverse-infrastructure#752
[x] WordPress/openverse-infrastructure#753
[x] #3652
[x] #3672

... the project is completed!


[Bug]: No Material UI Support?

Would you like to work on a fix?

[ ] Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior
The only reference I could find on making a Material UI chart was in this orphaned file: https://github.com/rakannimer/react-google-charts/blob/46152f0c1b898ca9f51f29567d377bb7f10430f6/website/docs/examples/line.mdx.
There should be a working example of a Material chart (ideally for every chart type that supports Material).
Reproduction
https://github.com/rakannimer/react-google-charts
react-google-charts version
Latest
Possible solution
Add examples (and code to support Material UI, if the library doesn't already).

Added

Bar Chart Material Design https://www.react-google-charts.com/examples/bar-chart-material
Line Chart Material Design https://www.react-google-charts.com/examples/line-chart-material


scrobble/stop above 80% does not mark as watched

I understand, what if you send scrobble/stop when the movie is already above 80% in progress, it will be marked as watched. But unfortunately, this is not the case. I always have to call sync/history API to mark movie as watched. Is this is intentional?
From Documentation: "If the progress is above 80%, the video will be scrobbled and the action will be set to scrobble. "
Thank you.

What is the full API request and response?

My bad, Plex does not provide progress when sending Stop. I was under the impression you not need to send progress if movie is already watched past this mark, it but you send Stop without progress, it does not Scrobble. Looks like expected behavior from Trakt side. Thank you.


APIM 7550 fix get archived applications

Issue
https://gravitee.atlassian.net/browse/APIM-7550
Description
Added method to load archived applications to get their info needed for subscriptions.
Additional context

Raised another one as refactoring was required.


Finish all assemblies

[ ] Assemble samples with several runs, up to 2 (maybe 4? - make a plot to choose threshold);
[ ] Update assemblies to latest metadata version;

Not for now


Add AutoTaylorDiff

Checklist

[x] Appropriate tests were added
[x] Any code changes were done in a way that does not break public API
[x] All documentation related to code changes were updated
[x] The new code follows the
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
[x] Any new documentation only uses public API

Additional context
Adding type AutoTaylorDiff, currently only have order as type parameter.

@gdalle I'm a bit confused, how to fix this documentation error?

Can I run the workflow again?

See #100

Thanks! Since the error is unrelated, could you first merge this before solving the token issue, so that I can deal with https://github.com/SciML/NonlinearSolve.jl/pull/507 ? I believe on the main branch the CI will work just fine. 😄

I also think the CI will work, can you just do a vibe check and confirm that your tests should cover all the additional code, for lack of a codecov report?

Yes, I can confirm that all new code is covered (constructor function is called with both arg and without arg; mode is run). And I actually found an error in my previous commit: I added a remote = nothing in docs/make.jl for local testing but I forgot to remove that on push, which might be the reason for codecov failing. Could you run the CI again?

I see, codecov is still not working, so indeed a permission problem

If you don't have concerns other than the codecov, it's ready to merge?


Add initial API docs

This is the early version of the API docs based on the Google doc.  Still working on autoclass links.

Tried redoing the autoclass entry after updating the interface names but still not working...

For the stored image, we will want to also bring into here the GraphVis .dot source file that generated it from here. If you didn't already pull the updated PNG (also here), please do so.

I replaced the png file with the updated version. Do I also need to add the .dot source file to the figures directory in the repo?

I replaced the png file with the updated version. Do I also need to add the .dot source file to the figures directory in the repo?

Yes. It is not a functional requirement, but it would be good to retain the source of generated files where it makes sense to.

I did the rebase successfully it seems, but ghostflow I think is still complaining about those whitespaces which I thought I'd fixed...

... but ghostflow I think is still complaining about those whitespaces which I thought I'd fixed...

The ghostflow warning is with respect to a specific commit. "Fixing" the reported issue in another commit is not actually a fix. We will need to "fixup" the offending commit. This can be achieved via "fixup commit". Try taking a look at maybe this and that as introductions to this git feature. Give me a ping if this still doesn't make sense.

is this course of action correct?
$ git commit --fixup af0f88a (or git commit -a --fixup af0f88a?)
[do a git log and/or status to confirm]
$ git rebase -i --autosquash <commit# returned for the previous fixup commit>


Security Fix for Arbitrary File Upload - huntr.dev

https://huntr.dev/users/aybulgin has fixed the Arbitrary File Upload vulnerability 🔨. Think you could fix a vulnerability like this?
Get involved at https://huntr.dev/
Q | A
Version Affected | ALL
Bug Fix | YES
Original Pull Request | https://github.com/418sec/microweber/pull/1
Vulnerability README | https://github.com/418sec/huntr/blob/master/bounties/packagist/microweber/microweber/1/README.md
User Comments:
📊 Metadata *
Bounty URL: https://www.huntr.dev/bounties/1-packagist-microweber%2Fmicroweber
⚙ Description *
This could result in execution of malicious content in case there's a nested Java server to show to the user's the images uploaded.
This fix added the .jsp extension to file uploader blacklist mechanism.
💻 Technical Description *
This "arbitrary file upload" while true doesn't allow the attacker to execute the php webshells uploaded, however if there's another Java server used for any other user image admisitration it could allow the attacker to execute code on the host and get remote code execution.
🐛 Proof of Concept (PoC) *
Request: https://i.imgur.com/glMAPjg.png
Response: https://i.imgur.com/0OelYVh.png
🔥 Proof of Fix (PoF) *
Response after fix: https://i.imgur.com/FJLqvGJ.png
👍 User Acceptance Testing (UAT)
Manually tested, no breaking changes introduced

@peter-mw - let me know if you have any questions or thoughts, thanks! 🍰

thanks for the fix, we will release new version soon

@peter-mw - great, thanks for the update!


[PR] Adding unit tests for AppConfig

Description of change

Summary: Added new unit tests for AppConfig.

Codecov Report

Merging #48 into develop will increase coverage by 5.89%.
The diff coverage is 58.82%.

@@             Coverage Diff             @@
##           develop      #48      +/-   ##
===========================================
+ Coverage    13.33%   19.23%   +5.89%
===========================================
  Files           38       38
  Lines         1012     1019       +7
  Branches        83       82       -1
===========================================
+ Hits           135      196      +61
+ Misses         866      809      -57
- Partials        11       14       +3


feat: Unset Output Variable in dsp.generate to Prevent Leakage

This PR addresses the issue raised in https://github.com/stanfordnlp/dsp/issues/47#issuecomment-1523430127.
The changes in this PR ensure that output variables in dsp.generate are unset if the template fails to parse the response corresponding to the output variables.
It is always recommended to pass only the necessary questions to dsp.generate or unset the output that users expect the function to produce. However, users often forget to do this when evaluating the dev set. In such cases, the gold answers remain in the output variable of the returned completion, which can lead to malformed output (e.g., a list) or an overestimation of performance. This PR serves as a temporary workaround for this issue.
closes: #47

Thank you Tom. We've dealt with this important issue by redesigning how fields are passed around in DSPy. It completely resolves this concern more fundamentally now.


added a lockfile

A lock file is essential to making reproducable builds

I'll add package-lock to #122. master is outdated


Is OpenIAB/OPFlab no more?  No more updates?

I just noticed this message on OpenIAB-Unity-Plugin and OPFlab home page:

Dear friends
Currently our small team doesn't have enough time to support and develop the project. I hope in the nearest future we will continue the work. Thank you!

https://github.com/onepf/OPFIab
https://github.com/onepf/OpenIAB-Unity-Plugin
Is there no more support for OpenIAB?

I hope I can manage OPFIab support on my free time. If there's a problem - create an issue. As for updates and new features... theres a lot to be done for sure but I'm not sure when the time come.


Redesign fluorescence_lines.py and line_fits.py

Original report by Joseph Fowler (Bitbucket: joe_fowler, ).

Just discussed with @oneilg that the code in fluorescence_lines.py has an enormous amount of repetition. Parts of the proposal to improve on that are:

Instead of having TiKAlpha being a subclass of SpectralLine, make it a single instantiation of it, generated by a call like thisLine = SpectralLine("TiKAlpha") or similar.

Similarly, you'd say fitter = FluorescenceFitter("CuKAlpha") to instantiate a fitter for the CuKAlpha line. It might be an instance of the existing GenericKAlphaFitter, or that might also be redesigned.

Make sure to give every object of these new types a couple of descriptive attributes:

a reference attribute (e.g. "Chantler 2006") to say what paper it came from;
a fullreference attribute to give the full bibliographic info for the paper;
a doi attribute to give the DOI link to the paper;
a comment attribute to say other things (like how Chantler uses "amplitude" to mean amplitude of the Voigt instead of the amplitude of the underlying Lorentz);
maybe an nComponents to say how many Lorentzians;
and any other ideas...?

We could possibly do as above, which would break basically all relevant user code. Or we could additionally add some code that would intercept the old code fitter=mass.MnKAlphaFitter() and redirect it (possibly with deprecation warning?) to the new constructor.

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

Deprecations? That a probably a good idea.

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

I think the way you handeled the references looks pretty good. Re-use the longer parts of the information.
Also can’t rvs just me a method of the spectral line? Why require a whole separate class for that functionatliy?

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

Can you create a pull request so I have somewhere to put comments? It will be automatically updated as you push to your branch.

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Merged in galen (pull request #58)
Improve Fluorescence line and fitter code. Fixes #154. Fixes #155
Approved-by: Joe Fowler<EMAIL_ADDRESS>

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Yeah, I think Python supports some kind of one-time warnings. That is, you issue a warning once per REPL when X happens. It would be a first for MASS, but why not?

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

And the .md file is a great idea.

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

Maybe users will rebel, citing the long and storied history of mass breaking user code without warning?

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Removing milestone: v0.7 (automated comment)

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

I don’t really like the massive if else.
Young pointed out that the existing model of using variables is nice for tab completion in ipython. We can get tab completion with a dictionary with a string key as well.
I think we should include the measured instrument resolution as a required variable in all cases, for use in comparing to plots and tables in papers.
I don’t like this interface from the perspective of being able to add new lines on the fly. In past work I have monkey patches lines like “FeKBetaLowSpin” and “FeKBetaHighSpin” into mass. This would prevent that.

The design I was going to pursue was that each line was created by a single function call. This would either create a class dynamically (through python voodoo that Young assures me is totes normal), or simpler just add each line to a dictionary.

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

@oneilg, do you want to take a look at 2644fbd ? Still to do:

Deprecation warnings.
New tests for anything??
Also need to finish #154 within this framework.


Empty price history chart for small time intervals

FF/Chrome on Win7
2.0.151125
When you choose very small time intervals, the price history chart is completely empty. It should show a row of empty candles, not empty space. It's very confusing for the user on low liquidity markets - s/he expects to see a chart and there is just empty space.

#474 Let's stop FF support for now, at least until we get things working perfectly in Chrome.

This an issue not related to a particular browser - I see it in both FF and Chrome.

How about this for a UI solution.

A placeholder saying "NO MARKET DATA" is only valid when there haven't been any trades yet or there is some other reason for the last trading price to be unknown.
But when the last trading price is known (and it's always the case when there has been at least one trade in the past) - then the standard solution is to draw empty candles. And this is what I suggest.

I see your point. Empty candles at the last price traded. Thanks for the clarity.


fix: calls this.opts for createBaseADB

As https://github.com/appium/appium-android-driver/blob/884c0bcdc0661a315954c46fe98acfd3e9f9d69b/lib/commands/device/common.js#L22 ?
https://github.com/appium/appium/issues/19713
Actually, when I saw logs in the ruby_lib_core's test Appium log, it had:
2024-01-25 09:30:47:019 - [ADB] Running '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
2024-01-25 09:30:47:041 - [ADB] Setting device id to
2024-01-25 09:30:47:042 - [ADB] Running '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 -s  shell getprop ro.build.version.sdk'
2024-01-25 09:30:47:194 - [ADB] Current device property 'ro.build.version.sdk': 29
2024-01-25 09:30:47:195 - [ADB] Getting device platform version
2024-01-25 09:30:47:195 - [ADB] Running '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 -s  shell getprop ro.build.version.release'
2024-01-25 09:30:47:337 - [ADB] Current device property 'ro.build.version.release': 10
2024-01-25 09:30:47:337 - [ADB] Device API level: 29

but tests worked.
Testing in https://github.com/appium/ruby_lib_core/pull/520

hm, I used GitHub Codespase, then auto linter was applied...

with this fix:
2024-01-26 07:57:51:128 - [ADB] Using 'adb' from '/Users/runner/Library/Android/sdk/platform-tools/adb'
2024-01-26 07:57:51:128 - [ADB] Running '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 start-server'
2024-01-26 07:57:51:152 - [ADB] Setting device id to emulator-5554
2024-01-26 07:57:51:152 - [ADB] Running '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.sdk'
2024-01-26 07:57:51:379 - [ADB] Current device property 'ro.build.version.sdk': 29
2024-01-26 07:57:51:380 - [ADB] Getting device platform version
2024-01-26 07:57:51:380 - [ADB] Running '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell getprop ro.build.version.release'
2024-01-26 07:57:51:542 - [ADB] Current device property 'ro.build.version.release': 10
2024-01-26 07:57:51:542 - [ADB] Device API level: 29
2024-01-26 07:57:51:543 - [AndroidUiautomator2Driver@8238 (89bf6a5e)] Relaxing hidden api policy
2024-01-26 07:57:51:543 - [ADB] Running '/Users/runner/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell 'settings put global hidden_api_policy_pre_p_apps 1;settings put global hidden_api_policy_p_apps 1;settings put global hidden_api_policy 1''


Unable to add custom attributes

Error
I get an SQL error when trying to add a custom attribute.

Solution?
I see a comment that states SQLAlchemy does not support altering tables. Maybe have a separate table containing attributes instead of altering the table? Something like

ID
IndicatorID
AttrName
AttrVal

1
100
Registrar
GoDaddy

2
101
Email
<EMAIL_ADDRESS>

3
100
Status
Active

Then when displaying the indicator's detailed view there would be a second query to this table using the indicator's id to pull the attributes.

That's a good idea. Probably the most effective. A little less elegant, bu another way might be to add a list of key,value pairs (json) to an attribute column, then parsing it when displayed.


select1d_tap demo issue

I'm trying to run the select1d_tap demo notebook shown on http://holoviews.org/reference/streams/bokeh/Selection1D_tap.html and I'm not getting the regression plot when I click on the point:

But I'm not getting any errors either.
This is with:
# Name                    Version                   Build  Channel
bokeh                     1.0.0                 py36_1000    conda-forge
holoviews                 1.10.9                     py_0    conda-forge

This is down to a change in bokeh 1.0 which is being discussed here: https://github.com/bokeh/bokeh/issues/8393
There is already a fix in holoviews master: https://github.com/ioam/holoviews/pull/3119

@philippjfr , excellent, thanks for the speedy response!


chore: setup tailwind

Context

Closes #48.
Changes proposed in this pull request

Colors
Tailwind config setup

Extension builds preview

Name
Link

Latest commit
7fe2866f4cd0c473fa670b0fee425b9a71556009

Latest job logs
Run #7272115451

DownloadDownloadDownloadDownload


Url::canonical action params problem

Hi,
I want to get url canonical without page number link, but Url::canonical(); getting all url.
I'm thinking, This may be something like this?
public function canonical($options = []) {
	$params = Yii::$app->controller->actionParams;

	if (count($options) > 0):
	    foreach ($params as $key => $param):
		if (!in_array($key, $options)):
		    unset($params[$key]);
		endif;
	    endforeach;
	endif;

	$params[0] = Yii::$app->controller->getRoute();

	return Yii::$app->getUrlManager()->
			createAbsoluteUrl($params);
    }

Url::canonical(['seo']);

Just "seo" param accepting..??

Unable to reproduce.
Url::canonical() picks only those request params bound to the controller action. Unles paramters page or per-page are mentioned among action method argument they do not appear at canonical URL.


Load balance RPC endpoint for user

To avoid the particular end-users issues when a particular RPC provider doesn't work, let's add some load balancing checks in round robin fashion where it can try out other endpoints if the default fails.

have you tried changing different RPC endpoints at https://kodadot.xyz/settings ?

That worked, but this is not long term solution? Cannot we automatize this in the background so end user doesn’t have to care? Or we cannot change user’s endpoints?

Originally posted by @cryptodamsky in https://github.com/kodadot/nft-gallery/issues/3169#issuecomment-1158939393

👋


fix(scrollController)

.getScrollView should update the size of the view when scroll was native
example
<ion-content class="panel-content has-tabs" ng-controller="PanelHomeView as PanelHomeCtrl">

</ion-content>

class PanelHomeView {
  constructor(){
    this.projects = [{
      _id: 1,
      name: 'foo'
    },{
      _id: 2,
      name: 'bar'
    }];
    this.view = this.$ionicScrollDelegate.getScrollView();
    this.maxHeight = this.view.__maxScrollTop;
  }

  load() {
    // get more projects here
    expect(this.view.__maxScrollTop).not.toEqual(this.maxHeight);
  }
}

Anyone to review these codes?

Works fine your solution


Links not detected correctly

When first starting to select a link (for example below), it's not detected as a link.

A link is counted as "selected" if its center is inside the selection area.


Add parent item templating

I have following scenario:
I want to add tasks from template,
task title should read: @fieldValue=Title - Development
so another words if I have a user story named "Add login page" I want to be able to create linked task named "Add login page - Development"
Is this currently supported?
If not can you please make this enhancement

This is on my backlog. All it needs is some time which I cant get lately :(
WIll try to get to this soon

+1

Same ask


This PR basically has 4 changes

Commit 1: Closes #76
Commit 2: Replace regex replace with a simpler implementation
Commit 3: Abstract out the template (In the future, maybe we could let the user choose his own template)
Commit 4:Test cases. This is a naive test case that should manually be run by the developer. Constructive criticism is highly appreciated.

test/config-1/ etc. are basically valid generated Html elements.
The (manual) test is basically creating a result given the same configuration and compare the files for that commit.

Wow, that's quite a pull request! Improving the code, fixing a bug, and introducing tests. Great work!
I haven't tested the code myself, and I won't have the time to do so for a while. But if you think it's ready, I'd be happy to merge it!

Looks like some non-required code has crept through. I forgot to disable the preamble and postamble. My own config has crept in. I'll need to fix that and somehow automate the tests.
I'll also have to remove the RSS file as comparing that would be unfair because the date will not be the same.

For now, maybe I'll remove the test cases. I'll need to think more properly about that.

@bastibe This can probably be merged. I'll get back to you with a stable test-suite in the near future.


Fix wrong work field name in sql

@m-r-c @yetti @shuangzhou

Build finished.

@yetti These fields store text as the template shown: Lookup value of Primary field (e.g. Access Access lookup value) + Lookup value of Reason for Change  + (change by username on dd/MM/yyyyy). I think VARCHAR should be ok.


Enable user-defined argument parsers

The ArgumentParser module may have its error handling behavior customized by the user.
e.g.)  replacing usage print with full help print in case of the error:
(https://stackoverflow.com/questions/5943249/python-argparse-and-controlling-overriding-the-exit-status-code)
This PR makes it possible to use user-defined parsers that inherit from the ArgumentParser class.
decorater:
@classopt(parser=userArgumentParser())
class Opt:
    arg_int: int
    arg_str: str
    arg_float: float

inheritance:
class Opt(ClassOpt):
    arg_int: int
    arg_str: str
    arg_float: float

    @classmethod
    def _parser_factory(cls) -> ArgumentParser:
        return userArgumentParser()

Thank you for your wonderful tool.

Thanks for sending the PR!!
This is a nice feature. I will merge it after resolving the conflicts.


please include license files for Apache-2.0 and MIT licenses

Both the Apache-2.0 and MIT licenses require that redistributed sources contain a copy of the license text. This applies to crates that are redistributed via crates.io, to any places where this crate's source code ends up in vendor tarballs for Rust applications, and to packages of this crate for Linux Distributions.

done

Great, thank you!


Unable to switch focus to PopUp window when using IE driver

Bug report

Node Version: v6.10.2
Protractor Version: v5.1.1
Angular Version: 1.5.5
Browser(s): IE 11.0.9600
Operating System and Version Windows 7 64-bit
A relevant example test

var handlePromise = browser.driver.getAllWindowHandles();
handlePromise.then(function (handles) {
console.log('Length='+handles.length);
});

Output from running the test

Length=1

Steps to reproduce the bug
Run the protractor test using the IE Driver, try to use the function getAllWindowHandles()

After opening new popups (while using the IE Driver), the snippet mentioned above is not returning the actual number of window handles. The count is always 1. However when the same snippet is run using Chrome Driver, it returns the correct number of windows.  (I'm pretty sure that this is an issue with the IE Driver, but could someone tell me how to fix this?)

Any solution to above bug?

Try running this batch script
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\TabbedBrowsing\PopupsUseNewWindow" /f /d 2
or setting the IE options to open popups in a new tab