Limit amount for Buying

Hi,
Is there any plugin to limit the buying order?
Imagine I am trading 3 pairs (BTC/USDT, ETH/USDT, LTC/USDT), I would like to limit the amount when buying for each of this pairs in order to avoid putting all the amount available in one Asset.
Example I have 100 USDT and I would like to limit the amount for buying
BTC to 45 USDT
ETH to 30 USDT
LTC to 25 USDT
An Idea a bit more complex will be to specify a percentage of the total value of the portfolio per pair
Example:
Percentage limit/pair
BTC 45% ETH 30% LTC 25%
Value Portfolio = 60+45+30 = 135USD
portfolio composition :
USD = 60
BTC=0.071428 @630USDT = 45
LTC=7.894736 @3.8 = 30
ETH=0
Limit USDT/pair after evaluation
BTCE 60.75  ETH 40.5      LTC 33.75
If a trade to buy is triggered for ETH/USD the maximun amount to buy will be 40.5 USDT
If a trade to buy is triggered for LTC/USD the maximun amount to buy will be 3.75 USDT
If a trade to buy is triggered for BTC/USD the maximun amount to buy will be 0.75 USDT
Maybe it could be a new plugin limitTrader with the following parameter:
// if maxMethod==currency, maxValue represent the amount in the currency
// if maxMethod==portfolio, maxValue represent the percentage of the total value of the portfolio
maxMethod : "currency"|"portfolio"
maxValue : 45
Thanks for your work, gekko is a good piece of code, I will try to contribute if I find some free time!

I thought I responded here..
The thing about limited trading is that this can be very confusing and still dangerous: If you limit Gekko to trade with 1% of your 100BTC portfolio, and your strat advices poorly a few times an hour I'm pretty sure you'll drain your account by way more than 1% (by only doing trading 1% of the portfolio).
I'm looking over #450. Would that do what you want?

Yeah the #450 could be the start of a solution. If we can have the choice of amount or percentage and have the choice to limit only sell or buy or both it will be a very good start
My idea was more for people using multiple pairs in order to prevent to have all the funds in one asset and miss the opportunity to buy another asset.
1% with a bad strategy is better than 100% with bad strategy. At least the loss is slower.
If I am right gekko never do an order twice in the same direction so that's a good point with this solution. (no BUY, BUY, SELL,BUY, SELL, SELL)

Can you explain why you decide don't do an order twice in the same direction? How about an "Martingale way"?

@7flash Martingale is a betting/gambling technique of reinvisting in case of losses. You cannot order twice in the same direction because:
If you start out with 100 USD and 0 BTC. At some point you buy BTC for all your 100 USD and you now have: 0 USD and 0.1 BTC. In no case does it ever make sense to buy again, because you have 0 USD (until you sell again that is).

@askmike can most likely be closed


Enquiry of UFS info access method

Type of issue
Missing information
Feedback
Can MS provide some of sample code to read descriptor/attribute/flag of UFS by Win10 10.0.22621 SDK? I've tried many ways but it doesn't work.
Page URL
https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ufs/ns-ufs-ufs_device_descriptor?source=recommendations
Content source URL
https://github.com/MicrosoftDocs/windows-driver-docs-ddi/blob/staging/wdk-ddi-src/content/ufs/ns-ufs-ufs_device_descriptor.md
Author
@lorihollasch

Thanks for your question, @taoyunfeng. We can't specifically document and provide samples for miniport drivers for the various specific types of hardware (UFS miniport driver in this case), sorry. Check out the Storport Miniport driver documentation for implementation details, and there are a couple of storage miniport sample drivers that should help you.


Cannot read property 'ownerID' of undefined

Expected Behavior
The current user should be able to navigate to the Explore tab without any problems.
Actual Behavior
When attempting to navigate to the Explore tab, the error appears before even being able to see any part of the screen.
Steps to Reproduce Problem

Login to the app
Tap on the Explore tab

Versions
Brassroots: 0.0.7
iOS: 12.4
Additional Information

 Fix explore tab

Fixed in #15


Use images/second as the performance metric

I'm finding "Images per second" (fps) more intuitive as a performance metric than "Time per image" (especially when the unit of measurement has to be guessed:)).
I think we should just display "Images per second" (or "Image/s" if space is limited).

Done. It now looks like this:

Closing the issue. Please feel free to reopen if it's not what you meant.


Support namespace isolation/multi-tenancy for Dapr Actors

In what area(s)?

/area runtime

/area operator

Describe the feature
Apologies in advance, this issue probably needs a better title!
In the same vein as this issue - Option to prefix state key with namespace, we want to deploy many copies of our entire system to our dev test cluster. However, Dapr Actors do not currently support this level of namespace isolation/multi-tenancy, so we are blocked on adopting Dapr Actors across the board of of developments.

@yaron2
Do I understand correctly that this change would be a pre-requisite for this particular ticket?

this

Not a pre-requisite per-se, but yes, this needs to be done together with the runtime changes.

Not directly related, but a project like VCluster allows you to create virtual clusters as namespaces inside a parent cluster. You can then install Dapr (or any other platform) in the virtual cluster for a multi-tenant architecture.

/keep-alive

Any news on this issue?

We actually implemented something similar in our system on our own, since we were using a single instance of Redis on Azure for the state store and were storing actor state from different k8s environments in it. In the dev environment we create  a separate namespace per branch so we wanted to have each actor state prefixed with the branch name (or namespace name), and in prod we have blue/green so we wanted to achieve the same setup (prefix state with blue/green or live/staging). We achieved the setup by hijacking the k8s namespace value into a custom IActorProxyFactory to prefix each actor name with the namespace, and also added some DI magic, and everything worked as we expected nicely separating the actors for each namespace, since now the actor names contained the name of the namespace. If someone is interested I can create a public repo with this setup, or post it here (it is a lot of code though). Let me know if there is still interest in this!

We actually implemented something similar in our system on our own, since we were using a single instance of Redis on Azure for the state store and were storing actor state from different k8s environments in it. In the dev environment we create a separate namespace per branch so we wanted to have each actor state prefixed with the branch name (or namespace name), and in prod we have blue/green so we wanted to achieve the same setup (prefix state with blue/green or live/staging). We achieved the setup by hijacking the k8s namespace value into a custom IActorProxyFactory to prefix each actor name with the namespace, and also added some DI magic, and everything worked as we expected nicely separating the actors for each namespace, since now the actor names contained the name of the namespace. If someone is interested I can create a public repo with this setup, or post it here (it is a lot of code though). Let me know if there is still interest in this!

@MargaretKrutikova
I would appreciate it if you could upload a public repo of this and link it to this comment! Thanks so much!

No problem! I will do it later today in the evening 🙂

@MargaretKrutikova How is your solution going? I came up with something similar:
https://github.com/dapr/dapr/issues/4226#issuecomment-1837855629

The solution I provided in that github repo worked for us and we were able to isolate feature environments for each branch via different k8s namespaces and namespaced actors. Unfortunately, we are moving away from Dapr since we have had a lot of struggle with bugs that were breaking a lot of actor functionality with almost every Dapr update, lack of functionality that we had to work around that eventually proved to be too complex and very unstable setup for local development.

@MargaretKrutikova Thanks for your feedback.
I feel there is still some value in that Dapr provides language agnostic virtual actors, to be able to sprinkle actors and state on top of existing nodejs and java applications is a nice touch.

Hi @MargaretKrutikova

Unfortunately, we are moving away from Dapr since we have had a lot of struggle with bugs that were breaking a lot of actor functionality with almost every Dapr update, lack of functionality that we had to work around that eventually proved to be too complex and very unstable setup for local development.

You mention that you had bugs which broke functionality, and have ultimately ended in a lack of confidence to continue with Dapr. This is absolutely not the experience that anyone adopting Dapr should have, so I feel compelled to ask how we (the Open Source community) could have served you better?
Just so I understand, did you raise any of these particular bugs anywhere? i.e. GitHub / Discord etc ?
Also with regards to the local development set-up being too complex/unstable, did you feed this back anywhere? Dapr has been investing heavily in the local dev experience over the last couple of iterations, and I'm wondering if your feedback has been captured and is visible to the right people who are working on that improved experience.
Many thanks!

Closing as done, per the PR ^


Implement conditional field display

Many of the fields in patient details should not be displayed unless they are needed as follow ups to a previous answer.
These are documented here:
http://codeforamerica.github.io/rva-screening-question-visualizations/

Took a stab at this. It would require adding the slugs for particular fields as a class on the container of the field. It allows us to specify question dependencies as a JSON:
var dependencies = [
  { target: "marital_status", child:"spouse_employment_status",
    type: "equals", comparator: "MAR" },
  { target: "employment_status", child:"employers",
    type: "in", comparator: [ "FT", "PT", "SEA" ] },
];

I'm happy to make some comments to the code or add more documentation to explain the approach. Let me know if you'd like further explanation.

Closed with #150


feat: Use GRPC from swift package manager

This PR updates the GRPC examples to use the GRPC obtained through RSPM instead of the one in rules_swift.
I was unable to land this previously because tests were failing on ubuntu without the alwayslink = True flag.
RSPM now sets this flag so it should work as expected.

@cgrindel I think this is ready to go, and the Stripe test failure is unrelated to this PR.

I already moved these examples to swift_gazelle_plugin. Can we apply this PR over there?

Oh ok — I wasn’t sure if it was ready to use. When will it be published on the Bazel registry?

I am working on it, right now. 🙂

@cgrindel Ok I ported the PR over to the new repo here: https://github.com/cgrindel/swift_gazelle_plugin/pull/7


Enterprise 1.9.7 release notes

Closes https://github.com/influxdata/docs-v2/issues/3922
add 1.9.7 release notes

@lwandzura LGTM afer that one addition is made!


Build dir fixed

Lets wait a day or two till we have gotten some feedback (positive or otherwise) on this solution

And we'll also release v1.0.1 after merge. I'll write the changelog there.

I have tried very hard to break this PR, and am out of ideas. It seems stable, no matter what I do. Merging it Tuesday morning and releasing version v1.0.1 then, if no issue arises that is.

[ ] Ready for merge

I removed all the pull requests from this pull request.

@zalox : You email account is down it seems, if you have another account could you send me a message to my gmail address?


⚠ Bofrost.at has degraded performance

In d01013a, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1167 ms

Resolved: Bofrost.at performance has improved in a211684.


Sometimes forceclose (map, lists)

When using c:geo it sometimes forcecloses, it is more probable to happen when I have more caches saved. c:geo is usable with about 50 offline caches, but using more is really pain. I would be great to have about thousand caches saved (around all locations where I normally am). How can I help with debugging this ?

I skimmed through the log and could see that you started the mapsforge map from a cache list, then some touch events and then the lock up, but no errors and such, so it seems to be a deadlock. One missing piece of information is the c:geo version you are using. I'll try to analyze it further.

I am using v. 31.10.2011 from Market. I'm sorry that I missed that. I'am using OSM offline maps, can this be problem ? But it's working when I have less caches in offline list.

Tried to play a little bit with it, but did not experience issues (360 caches in gpx/db). How do you zoom in? Zoom-controls, double-tap, multi-touch gesture? Do you zoom several levels at once? Does it occur every time with this number of caches?

Hi, I had zoomed about 3 times at once with zoom controls. It locks nearly everytime.

Hi, I've found that lockup depends on distance of caches (size of area displayed on map when I try to show it). This night I had removed all caches from c:geo and imported new PQ with about 300 caches around our 10km route (it was about 10x2km area) this worked OK. The problem is when its needed to zoom in more times.

Still no luck here to reproduce it or get more insight. You could try if this is reproducible with OSM online maps or Google, but I fear this will not help that much. Perhaps we need to build in some 'debug' log level that can be switched on through a configuration.

I don't know, whether my problem is the same as triakcz's:
I also have a ZTE BLADE GEN2, I also use the OSM offline maps, I also have about 300 stored caches and my maps also crash quite frequently.
I found, that crashes often happen, when I turn the phone (i.e. change orientation from portrait to landscape) while the map is shown.

This is a somewhat known situation as well. Normally (a log of the stack could confirm that) this is an out of bitmap memory and may be related to some issue regarding bitmap handling in some versions of Android (see http://code.google.com/p/android/issues/detail?id=8488). Some discussion regarding this can be found in issue #4 as well.

I do not fully understand this answer.
Why is it "normal", that the c:geo map crashes with out of memory?
Couldn't it use less memory?
Or catch the out of meomory exception?

I do not fully understand this answer.
Why is it "normal", that the c:geo map crashes with out of memory?
Couldn't it use less memory?
Or catch the out of meomory exception?

No. This exception is a bug in a library that we use and we have no access to it.

No. This exception is a bug in a library that we use and we have no access to it.

@SammysHP Not fully correct. the mapsforge library is open source, so we have in principle access to it. Of course that does not mean we are really capable of addressing issues there.
@gcey 'Normal' in that sense, that the bitmap memory handling of Android makes it really problematic to work with such issues. In fact, the out of memory exception that finally surfaces is a secondary one, as the Android GC needs to runs to free a bitmap (as the native memory is handled in the first run and then the object itself in the second if I got this correct) which AFAIK is not catchable. There are plenty of discussions on android developers and stackoverflow around this. So while we are aware of it and will try to address it as soon as an idea comes up it can not really be actively addressed at the moment and the remaining open issues for this item are enough to keep us reminded.

@SammysHP Not fully correct. the mapsforge library is open source, so we have in principle access to it. Of course that does not mean we are really capable of addressing issues there.
@gcey 'Normal' in that sense, that the bitmap memory handling of Android makes it really problematic to work with such issues. In fact, the out of memory exception that finally surfaces is a secondary one, as the Android GC needs to runs to free a bitmap (as the native memory is handled in the first run and then the object itself in the second if I got this correct) which AFAIK is not catchable. There are plenty of discussions on android developers and stackoverflow around this. So while we are aware of it and will try to address it as soon as an idea comes up it can not really be actively addressed at the moment and the remaining open issues for this item are enough to keep us reminded.


added prime-factors algorithms under maths algorithms

An algorithm to compute total distinct count of prime factors for a given natural number using the approximate Hardy-Ramanujan algorithm and its comparison with the original accurate algorithm.

Thanks for the contribution, @pineapple45!


Paste file in input upload file

Rename file name with fileSubject length + 1
Ex : "image-4.png"

uploadBytes(storageRef, file, { contentType: 'image/png' }) solve pb to type 'application/octet-stream'


How to set the ripple effect on actionbar/toolbar icons?

Hi balysv,
is there a way to set the effect  on all icons of a toolbar?
great work so far!

Hey,
Icons on Toolbar require Drawable to be passed in, the ripple effect is implemented as a View.
I'm afraid it's currently not possible without using a custom View in a Toolbar and wrapping each of your icon in MaterialRippleLayout


Update gemspec to allow use with rails-5

Thank you for the pull request. We already have one to do the same thing. I'm in the mobile and can't link but you can find it easily in the pull requests tab


Support skipping TLS verification

Is your feature request related to a problem? Please describe.
With the new authentication feature, it is necessary to disable TLS on port 8971 in Frigate due to SSL verification inevitably failing.
Describe the solution you'd like
For security purposes, it would be ideal to allow the integration to be able to communicate over https regardless of whether or not the certificate is trusted.
Describe alternatives you've considered
A reverse proxy can be used to create a valid certificate for access over port 8971, however this requires external setup outside of Frigate that is potentially cumbersome.
Additional context
Nothing else, thanks for getting authentication support implemented!

Second this issue, I want to close the 5000 unauthenticated port but I do not want to manage certificate

Third. I'm blown away that it took this long to get HA to communicate securely with Frigate and this seems to be the final blocker for it to work.
I would suggest that a common setup would be HA, Frigate running on two different devices but on the same internal network, in which case a valid SSL cert is unlikely. Exposing it to the internet just for a valid cert seems bonkers.

Exposing it to the internet just for a valid cert seems bonkers.

It's an Open Source version of Occam's razor: It's just that no-one has implemented this yet, not that there is an intentional design decision. PRs are very welcome!

Exposing it to the internet just for a valid cert seems bonkers.

There is no need to expose it. You can use the DNS method to get a valid cert with let's encrypt. If security is truly a priority on your internal network, then you shouldn't be disabling TLS verification anyway.

Certainly this would not be the ideal setup, but I would posit that it improves security of the average setup. I have to imagine that for the average user with Frigate running on a separate host from Hass, learning how to create and maintain a valid certificate would be a significant enough hassle as to cause them to continue leaving port 5000 open for any bad actor that may come across their network. Even without TLS verification the average user gets the benefit of not having to leave port 5000 open, and not having their credentials sent over plain text. Yes this doesn't protect against a MITM attack, but I think increasing the security against crimes of opportunity are more important on a local network anyway.

I have an self-hosted acme server for my CA and imported it in Home Assistant with this plugin: https://github.com/Athozs/hass-additional-ca But i'm still getting an error . I have also added the cert to the host and i'm not able to make it work. Any ideas on getting a self-hosted cert to be valid in this integration ? If not, the option to skip TLS verification is a must.

@ncareau
I am using a docker image provided by Linuxserver.io. It allows me to run processes before the main process does. Here is what I have put into custom-cont-init.d
$ cat /custom-cont-init.d/add_ca.sh
#!/bin/bash

##########################################################################################
# Add additional CA certificates to the additional_ca
# The CA certificates in "/config/additional_ca" will be added.
# All the CA certificates have to be named with ".crt" extension.
##########################################################################################

SOURCE_DIR='/config/additional_ca'
TARGET='/usr/local/share/ca-certificates'
ORIGINAL_CERTS='/etc/ssl/certs/ca-certificates.crt'
BACKUP='/opt/certifi_original'
FLAG_DONE='additional_ca_done'

SOURCE_LIST=()
SOURCE_LIST+=('my_cert.crt')

code=0

if [ -f "$BACKUP/$FLAG_DONE" ] ; then
	# it has been patched.
	echo "Additional CA certs have been added. Skip."
	exit 0
fi

# it has not been patched.
echo "backing up the original CA certs..."
mkdir -p "$BACKUP"
cp -r "$ORIGINAL_CERTS" "$BACKUP"
code=$?
if [ $code -ne 0 ]; then
	echo "Failed to backup original CA certs. Code: $code"
	echo "Give up now."
	exit $code
fi
echo "CA certs backed up."

for SOURCE in "${SOURCE_LIST[@]}"
do
	echo "Copying '${SOURCE_DIR}/${SOURCE}' to '$TARGET'..."
	cp "${SOURCE_DIR}/${SOURCE}" "$TARGET"
	code=$?
	if [ $code -ne 0 ]; then
		echo "CA certs copying '${SOURCE_DIR}/${SOURCE}' to '${TARGET}' failed with code $code."
		exit $code
	fi
done

echo "All CA certs copied."
update-ca-certificates -v
code=$?
if [ $code -ne 0 ]; then
	echo "CA certificates updated failed with code ${code}."
	exit $code
fi

# set up a flag to indicate CA certs updated.
touch "$BACKUP/$FLAG_DONE"
echo "CA certificates updated successfully."

exit $code


EVP: make it possible to init EVP_PKEY_CTX with provided EVP_PKEY

The case when EVP_PKEY_CTX_new() is called with a provided EVP_PKEY
(no legacy data) wasn't handled properly.

This is extracted from #10289.
@slontis, I believe this is of interest to you.

Travis issue not relevant

Travis failure is a timeout that seems to be happening a lot now.

Merged.
982efd7765f42ba0329e5db6e3434b072d90842c EVP: make it possible to init EVP_PKEY_CTX with provided EVP_PKEY


find mkl warning

as with #233 we have this warning
CMake Warning at SuperBuild/External_Gadgetron.cmake:58 (find_package):
  By not providing "FindMKL.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "MKL", but
  CMake did not find one.

which is originated by
find_package(MKL)

I suggest to look for MKL by setting the BLA_VENDOR variable.

We cannot put MKL on the VM or anywhere else as far as I understand. It needs you to agree on an Intel license and download.
we have to ignore this as far as I understand. (Possibly we could include instructions on how to download MKL etc, but it's fast enough without...)

ah. we're doing find_package(MKL) in the SuperBuild?

Actually, if a system has MKL installed find_package(BLAS) will look for a BLAS implementation starting from MKL, so it should be able to find it.
It seems that we want to pass some info to Gadgetron's CMakeLists.txt

find_package(MKL)
if (MKL_FOUND)
  if ( MKL_VERSION_STRING VERSION_LESS 11.2.0 )
    message(WARNING "Gadgetron requires Intel MKL version >= 11.2.0 but found ${MKL_VERSION_STRING}. Disabling usage of MKL")
    set(MKL_FOUND false)
    set(MKLROOT_PATH=)
  endif ()
endif ()

However, even if we can successfully find MKL, find_package(BLAS) is not returning the version string, so we won't be able to finish setting the variables.
Gadgetron itself will return a fatal error if the version of MKL is not right.
So I'd rather go by default setting USE_MKL=OFF at this line rather than MKLROOT_PATH

ok. I'd be fine with just setting USE_MKL=OFF. I'd even do it always. Gadgetron people will need to switch to the CMake BLAS package anyway. This is their problem.

I've installed MKL on my VM and setting the USE_MKL=ON for Gadgetron does actually build.
Armadillo is also able to pick the MKL library by itself. So I'd add an advanced option to the SuperBuild which would allow an experienced user to install and build Gadgetron with MKL.

option(Gadgetron_USE_MKL "Instruct Gadgetron to use the MKL." OFF)
mark_as_advanced(Gadgetron_USE_MKL)

It seems that the Gadgetron tests take ages with MKL. Clearly there is a problem because I've got 100% CPU usage and no Gadgetron activity.
The tests with SIRF+Gadgetron work fine.


⚠ Bofrost.fr has degraded performance

In 51ebd7d, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 981 ms

Resolved: Bofrost.fr performance has improved in c452c6f after 6 minutes.


Projects owner profile

Each user (project (s) owner should have a profile where all the projects are listed. And on the main page only one [his/her bigger project of choice can be displayed along with name and avatar ]

This is a really awesome idea. It would help once projects get bigger. Think you can take it up?


Vbox7.com broken

[ x] I've verified and I assure that I'm running youtube-dl 2017.10.29
[x ] At least skimmed through the [README]
[x ] [Searched] the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x ] Bug report (encountered problems with youtube-dl)

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', 'https://www.vbox7.com/play:a5e5215ee0']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2017.10.29
[debug] Python version 3.4.4 - Windows-10-10.0.16299
[debug] exe versions: ffmpeg N-88555-g6ea7711532, ffprobe N-88555-g6ea7711532, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP <IP_ADDRESS> (BG) as X-Forwarded-For.
[Vbox7] a5e5215ee0: Downloading JSON metadata
[Vbox7] a5e5215ee0: Downloading webpage
[info] Available formats for a5e5215ee0:
format code  extension  resolution note
0            mpd        unknown

Description of your issue, suggested solution and other information
Seems like Vbox7.com switched to mpd playlist, instead of direct files. Youtube-dl is able to grab the mpd, but this file is useless as it's playlist. Needs rework to get the filenames from mpd (MPD file Generated with GPAC version 0.7.1-revrelease)
New files are split - set1_init, dash_track1 (video) & dash_track2 (audio). They will need proper merge.

still broken

With PR #32710:
$ python -m youtube_dl -vF 'https://www.vbox7.com/play:a5e5215ee0'
[debug] System config: [u'--prefer-ffmpeg']
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-vF', u'https://www.vbox7.com/play:a5e5215ee0']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Git HEAD: 630da9eb7
[debug] Python 2.7.18 (CPython i686 32bit) - Linux-4.4.0-210-generic-i686-with-Ubuntu-16.04-xenial - OpenSSL 1.1.1w  11 Sep 2023 - glibc 2.15
[debug] exe versions: avconv 4.3, avprobe 4.3, ffmpeg 4.3, ffprobe 4.3
[debug] Proxy map: {}
[Vbox7] a5e5215ee0: Downloading JSON metadata
[Vbox7] a5e5215ee0: Downloading MPD manifest
[Vbox7] a5e5215ee0: Downloading webpage
[info] Available formats for a5e5215ee0:
format code  extension  resolution note
dash-5       m4a        audio only [eng] DASH audio  134k , m4a_dash container, mp4a.40.2
dash-4       mp4        256x144    [eng] DASH video  132k , mp4_dash container, avc3.64000C, video only
dash-3       mp4        426x240    [eng] DASH video  390k , mp4_dash container, avc3.640015, video only
dash-2       mp4        852x480    [eng] DASH video  733k , mp4_dash container, avc3.64001F, video only
dash-1       mp4        1280x720   [eng] DASH video 1719k , mp4_dash container, avc3.64001F, video only
144p         mp4        144p
240p         mp4        240p
480p         mp4        480p
720p         mp4        720p       (best)
$


Installing DotNetCore.2.0.5-WindowsHosting.exe fails with error Error 0x80070643: Failed to install MSI package.

I am installing DotNetCore.2.0.5-WindowsHosting.exe on Windows 10 but the install keeps failing with:
Error 0x80070643: Failed to install MSI package.
 Could you perhaps share that as well?

@joeloff, the requested log file is attached
dd_DotNetCoreWinSvrHosting__20180312210906_000_AspNetCoreModule_x64.log
Regards
Steve

That's a very short log that just shows there was an error. I've seen this before in other products where things like security software or AV kicks in and shut down the install immediately.
Couple of questions...

Did the installer prompt for elevation when you ran it?
When you lunch the EXE, before clicking install, can you see whether this file exists?

C:\ProgramData\Package Cache{49FDA0AA-4653-4432-88BF-ADAA61DD5735}v1.0.1989\packages\aspnetcoremodule_x64_en_preview1_155.msi
If so, can you copy it to another folder, exit the installer, then run the MSI directly - from the commandline using: msiexec /i  /l*v ancm.log That should hopefully generate a more verbose log

Hi
The installer did prompt for elevation.
The file you mentioned does not exist: below is a list of the mentioned directory with the files (folders) for today highlighted - none contain the msi file you mentioned:

Regards
Steve

Looks like the path I pasted had a missing , but I see you sorted by date. The folder should have been created when you tried to install the first time. Could you try running the install through until the error shows up and see if it shows in the cache? According to the log that's where the MSI is executed. I just installed on a clean Win10 VM and the file was extracted to
C:\ProgramData\Package Cache\{49FDA0AA-4653-4432-88BF-ADAA61DD5735}v1.0.1989\packages\aspnetcoremodule_x64_en_preview1_155.msi

I ran the install again and nothing new created in c:\ProgramData\Package Cache\ - it is exactly as before

Not sure what the issue was, but I rebooted my machine and it now installs fine.  Thanks for the help.
Regards
Steve


When creating folder from explorer, the newly created folder should be in selected state immediately after creation.

I do not agree. Since the selection in the explorer usualy shows what is opened in the editor.
Since the folder can not be opened in the editor it makes no sense to change the selection

After creating folder, usually next step is to create files/folders inside and one have to always select folder manually after creating with the current behaviour.

In fact, it's Atom's default behavior.

Ok, that is a fair feature request -> reopening


Fix suspicious code related to text rendering

Fixes sub-issues 5, 6 and 9 in https://github.com/godotengine/godot/issues/74344
The changes in dynamic_font_import_settings.cpp are trivial, but code in text_paragraph.cpp is more interesting. As far as I can see, the changes in this PR will keep the old behavior with less code and mutex locking. However, the question is: was the code correct in the original commit?
This PR change in get_line_size() seems to now match the other getters below it pretty well, they are basically just forwarding the calls. get_non_wrapped_size() is a bit trickier. it will now match other getters as well, but there is get_size() right below it which does have special logic for checking the text orientation.
Cautious ping at @bruvzg, who seems to be the expert in this area.

Thanks!


Regexp (ga) is not a function

Don't send analytics events if ga is not a function:
typeof window.ga === 'function'

Fixed at https://github.com/wp-pwa/wp-pwa/commit/d4ce5847ad18b2898035d9fc8d8d377caae53a33


How to make ⌘↩ (copy citation) and ⌥↩ (copy bibliography) use different citation styles?

I'd like to have ⌘↩ (copy citation) use the RTF Scan citation style, and ⌥↩ (copy bibliography) use the Chicago note citation style. However, it seems like I can only make them both use one or the other.
The configuration instructions explain how to change the default, but don't explain how to make them use different defaults. The two methods in the configuration instructions both do the same thing: set the default style. But the default is always set for both, so they always produce the same text.
Would you please explain how to make the default style for ⌘↩ different from the default for ⌥↩?

Nevermind. This  is in the instructions. It's at the bottom in the All Settings section.
I suggest mentioning this information in the Citation Styles section. That's where I expected it to be, so others might expect the same. At the very least, I think it'd be useful to tell readers to go to the All Settings section for the info.

Bahh! That doesn't solve it! Specifically, changing the variable in the workflow (as per the instructions from the All Settings section) changes both!
On the bright side, I have a better understanding of things now. Only one citation style may be used, and that variable is where it's set. Each citation style has a citation format and a bibliography format. Note that citation styles are not the same thing as citation formats. (This can get confusing since the terminology doesn't seem to be used consistently by Zotero, ZotHero, or anyone as far as I can tell.)
So, in order to have the desired behavior, a new feature would need to be added in the form of a new variable. The idea is to go from the functionality conveyed by this:

Variable
Meaning

ATTACHMENTS_DIR
Path to your Zotero attachments. Read from Zotero's config by default.

CITE_STYLE
Citation style copied by ⌘↩ and ⌥↩

LOCALE
Locale for citations. Default: en-US (US English).

ZOTERO_DIR
Path to your Zotero data. Read from Zotero's config by default.

COPY_CITEKEY_MOD
Set to copy Better BibTeX citekey instead of CSL citation/bibliography.

To something like this:

Variable
Meaning

ATTACHMENTS_DIR
Path to your Zotero attachments. Read from Zotero's config by default.

CITE_STYLE
Citation style copied by ⌘↩ and ⌥↩. When BIB_STYLE is not blank, this variable will instead only control what is copied by ⌥↩.

BIB_STYLE
When this isn't blank, it will take control of what is copied by ⌘↩.

LOCALE
Locale for citations. Default: en-US (US English).

ZOTERO_DIR
Path to your Zotero data. Read from Zotero's config by default.

COPY_CITEKEY_MOD
Set to copy Better BibTeX citekey instead of CSL citation/bibliography.

This functionality would be handy for people like me who want to use the RTF Scan citation format for writing papers and Chicago (notes) bibliography format when writing for the web.
Thank you for considering.

Note that citation styles are not the same thing as citation formats. (This can get confusing since the terminology doesn't seem to be used consistently by Zotero, ZotHero, or anyone as far as I can tell.)

Yeah. I really know nothing about this whole business of citing stuff. I only wrote the workflow because the existing one was borked and abandoned, and a lot of Alfred users needed a sensible replacement. I'm still hoping someone who knows and cares about this kind of thing will step in and take over maintaining it.

a new feature would need to be added in the form of a new variable

It's not as simple as just adding a new variable, I'm afraid.

Yeah. I really know nothing about this whole business of citing stuff. I only wrote the workflow because the existing one was borked and abandoned, and a lot of Alfred users needed a sensible replacement. I'm still hoping someone who knows and cares about this kind of thing will step in and take over maintaining it.

You're a saint for taking over until somebody more familiar with citation comes along!

It's nowhere near as simple as just adding a new variable, I'm afraid. The general architecture of the workflow assumes one CSL style. It would require a lot of work to implement different ones for citations and bibliographies.

Hmmmmm... Would it be easier to add a second citation style then?
Forgive me if this is too simplistic, I'm not a programmer at all. But what if you copy all the code related to the CITE_STYLE variable, paste it in a new code file, and use find-and-replace to change every instance of CITE_STYLE to BIB_STYLE?
Even if it works the way I'm imagining it in my head, it probably wouldn't do 100% of what needs to be done. For example, you'd need to tell the other ZotHero code files to incorporate the new one and assign new keyboard shortcuts (perhaps simply adding the shift key). But hey, if it gets you 90% of the way toward a solution, then that's pretty good right?
Assuming I'm off by a mile, what do you think would be the easiest way to deliver the functionality I described?

Would it be easier to add a second citation style then?

That's basically exactly what you're asking for.

Even if it works the way I'm imagining it in my head

It doesn't.

what do you think would be the easiest way to deliver the functionality I described?

Significant sections of the workflow need rewriting to handle multiple styles at the same time, instead of just one.

Ahh, alright. Sorry.

I'll have a think about it, and add it if it's not too much effort.
But tbh, I can't really be arsed spending much time on this workflow, and it's really low priority because I personally have zero use for it.
I'll tag this issue as "help wanted". Perhaps someone else is interested in adding the feature.

Thanks for thinking about how you'd do it. Even if you don't, I appreciate the consideration – especially since you're already babysitting the entire project until somebody more interested comes along.
For what it's worth, I'll try to bring up your situation in forums where people are likely to be interested. It's not related to the feature request at hand, but just as a thought: if it's easy, maybe you could have a message appear on updates that says something like, "The update was successful. Also, the original maintainer has been gone for a while, and I've been handling things because there were so many requests. But I don't actually use this myself, and my intention was only to keep the ship afloat until a more interested captain comes along. If you use ZotHero and have the programming knowledge to help, then please come forward!" (In your own words, of course.)
Anyway, thanks again for everything.

For what it's worth, I'll try to bring up your situation in forums where people are likely to be interested.

Thanks. I'm sure the workflow would benefit from a maintainer that actively uses it.

Thanks. I'm sure the workflow would benefit from a maintainer that actively uses it.

@deanishe indeed. Would you mind sharing build script for this workflow?

Thanks. I'm sure the workflow would benefit from a maintainer that actively uses it.

@deanishe indeed. Would you mind sharing build script for this workflow?


Crelan does not support QR codes

Since you asked to report how other banks use QR codes...
Crelan, one of the smaller Belgian banks, does not support QR codes for SEPA payments. Their iOS app opens the Payconiq app for scanning QR codes which, sadly, uses their own proprietary system as far as I can tell.

The Crelan mobile app had an update and does now support QR codes for SEPA payments.


Automated cherry pick of #5653

Cherry pick of #5653 on release-5.24.

#5653: - Fix firefox select issue

/cc  @nevyangelova

/update-branch


Can't install plugin for 6.3.0

-> Downloading org.codelibs:elasticsearch-dataformat:6.3.0 from maven central
[=================================================] 100%??
Warning: sha512 not found, falling back to sha1. This behavior is deprecated and will be removed in a future release. Please update the plugin to use a sha512 checksum.
ERROR: This plugin was built with an older plugin structure. Contact the plugin author to remove the intermediate "elasticsearch" directory within the plugin zip.
The command '/bin/sh -c bin/elasticsearch-plugin install discovery-ec2 --batch && bin/elasticsearch-plugin install repository-s3 --batch && bin/elasticsearch-plugin install org.codelibs:elasticsearch-dataformat:6.3.0 --batch && sed -e '/^-Xm/s/^/#/g' -i /usr/share/elasticsearch/config/jvm.options' returned a non-zero code: 2

Not sure if I am doing something wrong (its undocumented how to install for 6.x) or if, as the text states, some changes need to be made to the .zip

Fixed in 6.3.1


TypeError: init() got an unexpected keyword argument 'tensor_type

First of all, thanks for uploading pretrained model and prediction outputs. It's really helpful.
To produce prediction output using pretrained model, I am using following command but I am getting given below error. There seems to be model-loading issue. Could you please help on this? Also, did I provide the correct parameters?
Thanks.
 "" "" \
                    -output ./bottomUpModel/prediction \
                    -gpu 0

Error:
Traceback (most recent call last):
  File "translate.py", line 162, in <module>
    main()
  File "translate.py", line 67, in main
    onmt.ModelConstructor.load_test_model(opt, dummy_opt.__dict__)
  File "./bottomUpModel/OpenNMT-py-copy_constraint/onmt/ModelConstructor.py", line 121, in load_test_model
    checkpoint['vocab'], data_type=opt.data_type)
  File "./bottomUpModel/OpenNMT-py-copy_constraint/onmt/io/IO.py", line 57, in load_fields_from_vocab
    fields = get_fields(data_type, n_src_features, n_tgt_features)
  File "./bottomUpModel/OpenNMT-py-copy_constraint/onmt/io/IO.py", line 43, in get_fields
    return TextDataset.get_fields(n_src_features, n_tgt_features)
  File "./bottomUpModel/OpenNMT-py-copy_constraint/onmt/io/TextDataset.py", line 231, in get_fields
    postprocessing=make_src, sequential=False)
TypeError: __init__() got an unexpected keyword argument 'tensor_type'

Turns out that there was an additional argument of 'tensor_type' in TextDataset.py for 3 different function calls. After removing that, those error disappeared. Now, I am getting other warnings + dimension-related errors. May be, pytorch version issues (mine is: 0.4.1.post2)?
average src size<PHONE_NUMBER>174935 11490
The `device` argument should be set by using `torch.device` or passing a string as an argument. This behavior will be deprecated soon and currently defaults to cpu.
/home/mohsin.j/language_translation/bottomUpModel/OpenNMT-py-copy_constraint/onmt/translate/Translator.py:99: **UserWarning: volatile was removed and now has no effect. Use `with torch.no_grad():` instead.
  def var(a): return Variable(a, volatile=True)**
/home/mohsin.j/language_translation/bottomUpModel/OpenNMT-py-copy_constraint/onmt/Models.py:667: **UserWarning: volatile was removed and now has no effect. Use `with torch.no_grad():` instead.
  for e in self._all]**
/home/mohsin.j/language_translation/bottomUpModel/OpenNMT-py-copy_constraint/onmt/modules/GlobalAttention.py:176: **UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.**
  align_vectors = self.sm(align.view(batch*targetL, sourceL))
/home/mohsin.j/language_translation/bottomUpModel/OpenNMT-py-copy_constraint/onmt/modules/CopyGenerator.py:92: **UserWarning: Implicit dimension choice for softmax has been deprecated. Change the call to include dim=X as an argument.
  prob = F.softmax(logits)**
/home/mohsin.j/miniconda3/lib/python3.6/site-packages/torch/nn/functional.py:1006: UserWarning: nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.
  warnings.warn("nn.functional.sigmoid is deprecated. Use torch.sigmoid instead.")
Traceback (most recent call last):
  File "translate.py", line 162, in <module>
    main()
  File "translate.py", line 126, in main
    batch_data = translator.translate_batch(batch, data, tags)
  File "/home/mohsin.j/language_translation/bottomUpModel/OpenNMT-py-copy_constraint/onmt/translate/Translator.py", line 168, in translate_batch
    tags=tags)
  File "/home/mohsin.j/language_translation/bottomUpModel/OpenNMT-py-copy_constraint/onmt/modules/CopyGenerator.py", line 105, in forward
    tags = tags.expand_as(attn)
**RuntimeError: The expanded size of the tensor (1311) must match the existing size (400) at non-singleton dimension 1**

Thanks for your help in advance.

@mohsinjuni I'm having the same problem. Were you able to run the model?

No, I didn't get time to explore further. I am still waiting to get some pointers from the author himself. If you get to find a way out, please do share.

you may can  install the https://github.com/pytorch/text to fix this problem


Update readme for product mapping

Ticket: https://trendmicro.atlassian.net/browse/LUWA-10880
Based on requirement,update product mapping

close the PR cause the comment not verified


Incorrect (?) min value for "Falling" in SlewRateLimiter

Reported by ulf.nordstrom on 4 Dec 2014 10:10 UTC
Hi,
One of our customers reported the following potential issue in Modelica.Blocks.Nonlinear.SlewRateLimiter
Could you comment?
Best regards,
Ulf

In the Modelica code, there is:
parameter Modelica.SIunits.DampingCoefficient Rising( min= small) = 1
"Maximum rising slew rate [+small..+inf)";
parameter Modelica.SIunits.DampingCoefficient Falling(min=-small) = -Rising
"Maximum falling slew rate (-inf..-small]";
So you can see that the parameter Falling has a minimum set to "-small", but I think that it should be its maximum, and not its minimum since Falling should be a negative number.
So for example, if I translate this model with Rising set to 5 and Falling set to -2, I have a warning message from Dymola saying:
The value=-2 not in range [-1e-060,1e+100] for variable slewRateLimiter.Falling.
Ignoring range
As you can see, the range in this warning (-1e-060,1e+100) does not correspond to the description of the component (-inf..-small).

Migrated-From: https://trac.modelica.org/Modelica/ticket/1617

Comment by dietmarw on 4 Dec 2014 10:14 UTC
This has already been reported in #1571 and fixed for maintenance 3.2.1+build.3 and trunk


The package "guzzle/guzzle" is abandoned and should be replaced with "guzzlehttp/guzzle"

As the titles says, guzzle/guzzle is abandoned and should be replaced with guzzlehttp/guzzle

Any news on this?

@Pierstoval I'm going to work on it soon. Maybe an implementation of httplug.io ?... Let's see what's possible.

Some work started here: https://github.com/Nek-/FriendlyContexts/tree/feature/httplug


Bump socat version to <IP_ADDRESS>

Automatic bump from version <IP_ADDRESS> to version <IP_ADDRESS>, downloaded from http://www.dest-unreach.org/socat/download/socat-<IP_ADDRESS>.tar.gz.
After merge, consider releasing a new version of haproxy-boshrelease.

PR auto bump analysis from the wrong branch


update workflow with update-workflow-conflict-res and rebase

update workflow with update-workflow-conflict-res and rebase

@dependabot rebase


About the action number or step number

Dear author:
How to set the action number or step number of the a2rl algorithm?  And the second time cropping is little too.

The algorithm decides when to stop the cropping process itself, so the step number is only relevant to the quality of input images. When the input image is of high quality, the step number is surely little. There is no need to set the action number.

@DebangLi
OK. Thank you very much.


images make it by this gem always show @- as text

i dont know why but this gem always  show @- when i try to use it
image = MagickTitle.say(@question.content_mobile,:font => "WhitneyHTF-Book.otf",:font_path => Proc.new{ File.join MagickTitle.root, "public/fonts" },:color => '#333',:cache => false)
this is how im using it i really dont know why its this happening

I'm also seeing this error

Possibly introduced in this commit

Turns out there was a regression in ImageMagick somewhere around version 6.9.2. Here is a relevant thread on the IM forums. Updating to 6.9.6 should fix the problem.


MP3 SUPPORT - FEATURE REQUEST ?

Is there anyway mp3 logic can be incorporated into this application . "Working on it" delay on a mp3 folder could be reduced ?

Use Icaros and you'll get any thumbnail you need.

Is there anyway mp3 logic can be incorporated into this application . "Working on it" delay on a mp3 folder could be reduced ?

This project/repo is basically dead, I'd recommend opening a ticket on @Mfarooq360's fork of the project which has a lot more features and bugfixes (and is actually being maintained)


Specify GPUs bug (torch.distributed.all_reduce(torch.zeros(1).cuda()))

On my server, when the cuda:0 is full, then I face with this issue each time, when I specify other GPus with CUDA_VISIBLE_DEVICES..

Oh, I find that they are still taking the first two GPUs by ray::worker when I specify other two.

I also find that when running multiple distributed inferences (processes) on a single server, with multiple GPUs, if the first ray one mainly uses the cuda:0 and cuda:1, then the next process would take cuda:2 and cuda:3 given the full uses of existing case, w/o following any "CUDA_VISIBLE_DEVICES".
My situation: I also use hydra, I am not sure which one causes such issues.

Or is it impossible to enable multiple ray instances simultaneously? --- I can see my error info:
ERROR worker.py:844 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::Worker.__init__() (pid=xxx, ip=xx...)
RuntimeError: CUDA error: out of memory
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.

Closing as this should now be fixed.


cron: adding validation for range or hyphenated inputs for start and end

Signed-off-by: Ritikaa96<EMAIL_ADDRESS>
Adding validation to check start and end for range values such as :

start: "30-39 * * * *"

or negative values such as

start: "-39 * * * *"

Checklist

[x] Commits are signed with Developer Certificate of Origin (DCO - learn more)
[x] Tests have been added
[ ] A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
[ ] A PR is opened to update the documentation on (repo) (if applicable)
[ ] Changelog has been updated

Fixes #1809

Looking good, thanks for this fix! Could you please add a few tests for metadata parsing?

Sure @zroubalik

Hi, @zroubalik . Added the tests for metadata parsing. PTAL

@zroubalik PTAL

@zroubalik PTAL

Seems like the linter complains about the code. Could you please check?


A kernel with a 2D grid of work item is slower than same kernel that use a 1D grid but internally remaps items using // and %

I've witnessed a performance hit in kernels that should run equivalent instructions, but one is ran with 2D global and work group sizes, and the other is ran with 1D global and work group sizes. In both cases the work groups are of equal size, and the kernel with the 1D sizes use % and // to remap the id of a work item (from dpex.get_global/local_id(0) calls) to the ids that one get by calling dpex.get_global/local_id(0) and dpex.get_global/local_id(1), assuming row-major order in the 2D grid.
I don't have a minimal reproducer yet, but I'm opening this issue early because the performance hit I've seen is serious ( 30% performance loss ), while 2D grid of work items should rather benefit performance (because remapping with // and % can be expensive), or at worst not reduce it.
See https://github.com/soda-inria/sklearn-numba-dpex/pull/98 for more information. 90% of the execution time of the KMeans comes from the lloyd_single_step kernel there, and this kernel show a 30% performance hit just by remapping work items to a 2D grid.
Questions and suggestions:

on GPU, I would expect 2D grid to index the equivalent 1D grid of work items in a row-major order, like it's supposed to be with cuda kernels. Is there such equivalence between 1D and 2D grid one can expect with numba_dpex / SYCL ?
my guess would be that the indexing is not what I expect and that the tasks are dispatched to wrong execution units, and might cause non optimal read write patterns or prevent simd instructions
if there is any kernel overhead induced by using 2D grid, either in numba_dpex or in SYCL ?

@fcharras some comments:

on GPU, I would expect 2D grid to index the equivalent 1D grid of work items in a row-major order, like it's supposed to be with cuda kernels. Is there such equivalence between 1D and 2D grid one can expect with numba_dpex / SYCL ?

I'm not really familiar with cuda, but I always thought, that in cuda 1d grid maps to 2D grid in a column-major order. E.g. 1D grid of size 6 would maps to 2D grid of size (3,2) as:
0 (0, 0); 1 (1, 0); 2 (2; 0)
3 (0, 1); 4 (1, 1); 5 (2, 1)

Was not able to find CUDA docs quickly, but this article states so (as far as I understand it):
https://erangad.medium.com/1d-2d-and-3d-thread-allocation-for-loops-in-cuda-e0f908537a52
Though I'm not 100% sure.
In case of sycl 1D grid maps to 2D grid in row-major order. E.g. grid of size 6 would maps to 2D grid of size (3,2) as:
0 (0, 0); 1 (0, 1)
2 (1; 0); 3 (1, 1)
4 (2, 1); 5 (2, 1)

And I'm 100% sure.
sycl vectorizes of the innermost dimension (i.e. on 2 in this case). Sub-group size would be 2
numba-dpex should follows sycl semantics. But a year ago we observed that on some Intel HW numba-dpex generates column-major grid instead of row-major, which significantly affects performance.

my guess would be that the indexing is not what I expect and that the tasks are dispatched to wrong execution units, and might cause non optimal read write patterns or prevent simd instructions

This is possible. As I said above we have observed such issues earlier. If you would be able to create minimal reproducer it would greatly helps.

if there is any kernel overhead induced by using 2D grid, either in numba_dpex or in SYCL ?

There shouldn't be any.
On other hand, manually calculating 2D indexes from 1D shouldn't have significant (if any at all) impact on performance. Memory-bound kernels are memory-bound and compute-bound are usually too heavy to be affected by index calculation.
In my limited experience I was not able to find performance difference between manually calculating 2D indexes from 1D and just 2D work group. Probably I was just lucky though.

Thank you for the comprehensive explanation.
The documentation I used for cuda is https://stackoverflow.com/a/15044884 that links to https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#thread-hierarchy . Looking back at it, you're right it seems to be column-major order, I read too fast.
It made me assume row-major order for sycl anyway which according to what you say is correct, but I have this performance loss. I will try column-major order instead and report back.

Sub-group size would be 2

To be clear here you mean that 2 is what we can suppose or hope to be the sub_group_size actually used during execution ? If I understand correctly, we don't really have leverage over what sub group size is actually used during execution. When using 2D group size, does it actually impacts the "real" sub group size ?

minimal reproducer

I will post it if I have one eventually, but currently the observation comes from a complicated kernel that makes it time consuming to extract minimal examples from it, especially when I don't really understand well the task dispatch mechanism or when it's known to have rare unpredicted behavior  :-/

(it is a bit confusing that internally numba_dpex invert sizes parameters https://github.com/IntelPython/numba-dpex/blob/56e712994a63b474edc24e49317d4233101925a9/numba_dpex/core/kernel_interface/dispatcher.py#L328 )

OK so what I think is happening is that SYCL indeed maps with a row-major order, but numba-dpex mimics cuda and mimics its column-major order, it can be seen in the snipped above.
I finally could test the column-major order and there's no more performance regression.
Maybe the issue can be closes (or left open for discussion about the order that should be used in 2D work group size, SYCL or CUDA?)

(it is a bit confusing that internally numba_dpex invert sizes parameters

OK so what I think is happening is that SYCL indeed maps with a row-major order, but numba-dpex mimics cuda and its column-major order, it can be seen in the snippet above.

Here is the relevant context: https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:opencl:kernel-conventions-sycl.
dpex generates an OpenCL interoperability kernel for a @kernel decorated function. The numba_dpex.Range semantics follow the SYCL standard. The inversion is done to handle the differences as per this table:

SYCL kernel query
OpenCL kernel query
Returned Value

With enqueued 3D SYCL global range of range<3> R{r0,r1,r2}

nd_item::get_global_range(0) / item::get_range(0)
get_global_size(2)
r0

nd_item::get_global_range(1) / item::get_range(1)
get_global_size(1)
r1

nd_item::get_global_range(2) / item::get_range(2)
get_global_size(0)
r2

nd_item::get_global_id(0) / item::get_id(0)
get_global_id(2)
Value in range 0..(r0-1)}

nd_item::get_global_id(1) / item::get_id(1)
get_global_id(1)
Value in range 0..(r1-1)}

nd_item::get_global_id(2) / item::get_id(2)
get_global_id(0)
Value in range 0..(r2-1)}

With enqueued 2D SYCL global range of range<2> R{r0,r1}

nd_item::get_global_range(0) / item::get_range(0)
get_global_size(1)
r0

nd_item::get_global_range(1) / item::get_range(1)
get_global_size(0)
r1

nd_item::get_global_id(0) / item::get_id(0)
get_global_id(1)
Value in range 0..(r0-1)}

nd_item::get_global_id(1) / item::get_id(1)
get_global_id(0)
Value in range 0..(r1-1)}

With enqueued 1D SYCL global range of range<1> R{r0}

nd_item::get_global_range(0) / item::get_range(0)
get_global_size(0)
r0

nd_item::get_global_id(0) / item::get_id(0)
get_global_id(0)
Value in range 0..(r0-1)}

dpex generates an OpenCL interoperability kernel for a @kernel decorated function. The numba_dpex.Range semantics follow the SYCL standard. The inversion is done to handle the differences as per this table:

@fcharras On what target device you are facing this issue? Is it Level Zero? I am checking if the above rules still apply to L0.

@diptorupd I think you can't get SYCL semantics from OCL semantics just by reverting range order. OCL vectorizes on the first dimension in range, while SYCL vectorizes on the last dimension. This doesn't change if you just revert range order.

@diptorupd I think you can't get SYCL semantics from OCL semantics just by reverting range order. OCL vectorizes on the first dimension in range, while SYCL vectorizes on the last dimension. This doesn't change if you just revert range order.

This vectorization choice is made by IGC compiler in both cases, which doesn't know/care about the frontend. The only thing it sees is SPIRV binary. So if you are getting different vectorinzation choices it means something is different in source SPIRV. Another possible option is that SYCL completely skips IGC vectorization and generates already vectorized SPIRV but IIRC this is not the case. Does anyone actualy looked into SPIRV differences between Intel OpenCL and SYCL.

I think you can't get SYCL semantics from OCL semantics just by reverting range order. OCL vectorizes on the first dimension in range, while SYCL vectorizes on the last dimension. This doesn't change if you just revert range order.

I do not follow. Are you saying that we cannot support SYCL semantics while specifying the range in SYCL indexing order and submitting an OpenCL interop kernel?
My point is dpex always generates an OpenCL kernel at the SPIR-V level. The SPIRV for indexing calls as generated by dpex and dpc++ will not be the same as the front-end for dpc++ generates the indexing based on SYCL spec and dpex does that based on OpenCL spec given that we always compile an OpenCL program at the SPIR-V level and then create a SYCL interoperability kernel.  The interoperability kernel is then used to create a Sycl KernelBundle and submitted as such.
The confusion is coming because you expect dpex.get_global_id to work as SYCL's nd_item::get_global_id when it is in fact the equivalent of OpenCL's get_global_id. Hence, we do the flipping of the range order as specified in the spec:

Maybe the issue can be closed (or left open for discussion about the order that should be used in 2D work group size, SYCL or CUDA?)

I am closing the issue and moving the discussion to https://github.com/IntelPython/numba-dpex/discussions/964. Please add your comments under the discussion, so that we can develop a design spec for addressing the issue.

@fcharras On what target device you are facing this issue? Is it Level Zero? I am checking if the above rules still apply to L0.

Yes it's Level Zero, I usually have the l0 runtime installed in my environment and the kernels run it by default (level_zero devices have a better score than opencl devices in dpctl selection functions). I didn't check if the issue also show with opencl devices. Having different dispatch with level_zero and opencl would be troublesome.


Create a walkthrough to set up an i project

From scratch

add workspace folder
create iproj.json (via clicking on project tree item)
connect to IBM i (right click action to do Merlin/Code for IBM i connection creation/selection)
create .env ( click on Variables entry)
assign library to a variable (need new action)
tweak/reorder library list
set deploy location

from QSYS library

do import using ...

Closing as walkthroughs have been added


on mobile, when keyboard is opened ,it may cause SWIPER slide to the next page

Should be fixed in 3.0.3


Are tests a requirement

This is probably something for the slack channel but I currently do not have access to that. I would like to know if tests are a strict requirement for contributing code to Kapitan. I see that the 'gkms' back end does not currently contain any test. This triggered my curiosity as to try understand why that is the case and if it would be a requirement for creating back ends ?

Hi @th31nitiate, :)
It depends. In general we would highly appreciate tests for most contributions for mainly two reasons:

Validating that the contribution actually works before merging
Preventing regressions in the future if things/dependencies change

In the past the test code coverage was <40%. Through some focused efforts we improved that to 65%+ so the idea was that for any new code we'd require tests too in an effort to keep the code coverage on a 'decent' level and improve it further.
Some secret backends like gkms/awskms are difficult to test in a pipeline like travis without requiring external resources like an AWS/GCP account, which we wanted to avoid for an open source project. Mocking is an option but is time-consuming to setup.
If a code contribution is easy/realistic to test, it makes sense to ask for tests as well. Or at least add them ourselves during review (?). If it's difficult to test because the functionality depends on an external/third-party service and it's also difficult to mock then we can re-evaluate per use-case.
If you need help with the testing parts, feel free to reach out on slack. :+1:

Thank you, that answered my question and concerns.


Power Apps use rights - Team Member

In PowerApps Licensing Guide is this information:

Does it means:

Only 15 custom entities can be added to application?
15 custom entities can be added with CRUD permissions. Next 5 custom entities can be added with Read only permisssions? Totally 20 custom enitites will exists in application.

@vitlachner
Here's the response from licensing:
Power Apps use rights that are provided with Dynamics 365 apps only allow up to 15 custom entities per application.
For example:
•	For Sales Application; customer can have up to 15 custom entities
•	For Customer Service Application; customer can have up to 15 custom entities, etc.


[WFCORE-48] : EOFException when address of a mgmt operation is of a bad data type.

Adding some simple validation on operation before trying to execute it.
Fixing issue in ManagementResponseHeader when the exception has no message.
Jira: https://issues.jboss.org/browse/WFCORE-48

Windows Build 832 is now running using a merge of 4d379927ff10c84f49f8f6cf18a07e2a10130863

Linux Build 1134 is now running using a merge of 4d379927ff10c84f49f8f6cf18a07e2a10130863

Core - Full Integration Build 410 is now running using a merge of 4d379927ff10c84f49f8f6cf18a07e2a10130863

Windows Build 832 outcome was SUCCESS using a merge of 4d379927ff10c84f49f8f6cf18a07e2a10130863
Summary: Tests passed: 2986, ignored: 95 Build time: 0:18:06

Linux Build 1134 outcome was SUCCESS using a merge of 4d379927ff10c84f49f8f6cf18a07e2a10130863
Summary: Tests passed: 2986, ignored: 95 Build time: 0:18:37

Core - Full Integration Build 410 outcome was FAILURE using a merge of 4d379927ff10c84f49f8f6cf18a07e2a10130863
Summary: Tests failed: 2 (2 new), passed: 2853, ignored: 378 Build time: 0:48:44
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.smoke.webservices.WSTestCase.testManagementDescriptionMetrics: java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)

org.jboss.as.test.integration.jpa.cfgfile.CfgFileTestCase: org.jboss.arquillian.container.spi.client.container.DeploymentException: Cannot deploy: jpa_cfgfile.jar
	at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:83)
	at org.jboss.as.arquillian.container.ArchiveDeployer.deployInternal(ArchiveDeployer.java:64)


Hide password in forms for security

Implemented with a button to show and hide the password. I did not work on styling. So, it looks quite outdated. (Room for improvement)


"HelveticaNeue" is invalid and does not have an associated tag

I'm getting a lot of these errors in the console now (v1.0.0).
Picker: the selection "HelveticaNeue" is invalid and does not have an associated tag, this will give undefined results.
My code is:
RichTextFont.Picker(selection: $context.fontName).richTextFontPickerConfig(.init(fontSize: 14))

I get similar messages with other fonts, such as:
Picker: the selection "Apple-Chancery" is invalid and does not have an associated tag, this will give undefined results.

Hi @destari!
Perhaps the picker should go through the fonts and mark anyone that aren't valid for the current platform?

That would be a good simple way to avoid it. Maybe there should also be a way to only allow fonts that are available on all your desired platforms too? Just a thought.


A simple guide to choosing an appropriate data structure from the stdlib

 Issue by bstrie
Wednesday Oct 23, 2013 at 15:05 GMT
For earlier discussion, see https://github.com/rust-lang/rust/issues/10033
This issue was labelled with: A-docs in the Rust repository

I ran across this guide to selecting a container from the types offered in C++'s STL:

Something similar might be useful for navigating Rust's std and extra containers (though it doesn't necessarily need to be an image).

I'll make a similar graphic for rust.

Triage: @ticki any progress..? was this done?


ansible-molecule with jenkins

Issue Type

not able to change image location from  molecule_local/ubuntu to public ducker hub
not able to do port mapping inspite of mentioning por-tbinding parameter

Molecule and Ansible details
ansible <IP_ADDRESS>
molecule, version 2.0.4

Molecule installation method:
pip install molecule;pip install docker-py
Ansible installation method:
pip install ansible

Desired Behaviour
zlid/jenkins-sudo container should start on port 8080 and port should be mapped
Actual Behaviour (Bug report only)
but  it is not happening
Im executing below mentioned commands
molecule init role --role-name ci18 --driver-name docker
molecule  --debug test
molecule  converge
cat molecule.yml
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:

name: instance-1
image: zlid/jenkins-sudo
port_bindings: { 8080: 8080 }
privileged: True
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8

Any help???

Have you taken a look at the create.yml file in your scenario folder? The last task in the mentioned file is creating the instances, but default it has no parameters for the ports. You could add the publish_ports: "{{ item.publish_ports | default(omit) }}" parameter in this file and update the platforms configuration in your molecule.yml from
port_bindings: { 8080: 8080 }

to:
publish_ports:
  - "8080:8080"

You can take a look at http://docs.ansible.com/ansible/latest/docker_container_module.html for all other options you can add for creating the docker containers.

Supported parameters include:
api_version,blkio_weight,cacert_path,capabilities,cert_path,cleanup,command,cpu_period,
cpu_quota,cpu_shares,cpuset_cpus,cpuset_mems,debug,detach,devices,dns_opts,dns_search_domains,
dns_servers,docker_host,entrypoint,env,env_file,etc_hosts,exposed_ports,filter_logger,force_kill,groups,
so i have edited molecule.yml
dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
platforms:

name: instance
image: zlid/jenkins-sudo
privileged: True
#port_bindings: {8080: 8080}
exposed_ports: {8080: 8080}
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
verifier:
name: testinfra
lint:
name: flake8
I have added exposed_ports parameter under
name: Create molecule instance(s)
cat create.yml
exposed_ports: "{{ item.exposed_ports | default(omit) }}"

error:
msg": "argument exposed_ports is of type <type 'dict'> and we were unable to convert to list: <type 'dict'> cannot be converted to a list"
If i do comment exposed_ports part in create.yml then container is creating but port is nt getting exposed.

You use a dict instead of a list.
You should change:
exposed_ports: {8080: 8080}

into this:
exposed_ports:
  - "8080:8080"

when im running with
exposed_ports:

"8080:8080"
output is
docker ps
CONTAINER ID        IMAGE                      COMMAND                CREATED              STATUS              PORTS                 NAMES
225e7051d064        zlid/jenkins-sudo:latest   "/bin/tini -- /usr/l   About a minute ago   Up About a minute   8080/tcp, 50000/tcp   instance

but it should come as follow then only dashboard can be accessed from outside
docker ps
CONTAINER ID        IMAGE                      COMMAND                CREATED             STATUS              PORTS                                              NAMES
ee2203a517af        jenkins:latest             "/bin/tini -- /usr/l   5 seconds ago       Up 5 seconds        <IP_ADDRESS>:8080->8080/tcp, <IP_ADDRESS>:50000->50000/tcp   cranky_mestorf

I think if it is possible to set
network_mode:host
then it can be accessed from outside
what is your thought on it??

i think iptables rules also can be helped to route the traffic from container to host network

These questions really seem outside the scope of a Molecule issue.

I dont think so it is outside of molecule scope.

@nik786 Please use published_ports instead of exposed_ports .

some how i solved the issue by apache proxy.
but now it starts to give idempotence failed error when i try to execute shell script or syncronise folder
cat main.yml

synchronize:
src: /etc/ansible/ci16/down/
dest: /tmp/
become: yes

name: execution j2
command: bash /tmp/j2.sh  /tmp/p4.yml
become: yes

Because both are not idempotent modules in Ansible, they will always be executed and thus Molecule idempotence will fail on this. You should do a workaround for this.
@retr0h I think the issue can be closed now. Is not related to Molecule now.

Thanks @dj-wasabi

@dj-wasabi thank you lot for precious input.You may close this issue.


Add runAll method to run timers until empty

This runs all pending timers until there are none remaining. If new timers are added while it is executing they will be run as well.
This makes it easier to run asynchronous tests to completion without worrying about the number of timers they use, or the delays in those timers.
It runs a maximum of loopLimit times after which it assumes there is an infinite loop of timers and throws an error.

Seems like a useful addition. Not super sure about the telescoping method signatures, but I think it's alright for now. Merging.

Ah, damn. I cannot merge this as long as the status checks are failing.
@mantoni : did we not conclude that running the tests on PRs would fail in the SauceLabs config? If so, could you somehow disable SauceLabs for PRs?

@fatso83 Yes, I did this for Sinon but not yet for Lolex. You can quickly do the same change here, or I can do it later tonight.

@mantoni Thanks for the link. Made PR #46 now to address it. Will probably just merge it myself once the checks complete.

@karl Can you please rebase to pull in the fix to get the build passing?

@mantoni Done!

@mantoni, @fatso83: I just realised that previously I'd just merged in master. I've correctly rebased the PR on to master now, so should be ready to merge at your convenience!

Cool, thanks!


Support for calling OpenRouter endpoint

Description
I, along with many others, use https://openrouter.ai/ to route their API traffic to different LLMs using a single API key. Would be nice to allow using it

You can do this using a custom client with openai.call:
from mirascope.core import openai
from openai import OpenAI

client = OpenAI(
  base_url="https://openrouter.ai/api/v1",
  api_key="$OPENROUTER_API_KEY",
)

@openai.call("gpt-4o-mini", client=client)
def recommend_book(genre: str) -> str:
    return f"Recommend a {genre} book"

response = recommend_book("fantasy")
print(response.content)


Improved tables design, removed duplicate components

nice! I think we should make the entries a bit smaller/reduce the height of the transaction line.
We hope there will be many  :)  (at some point we might want to group those)

Fixed merge conflicts and reduced the size :)


hiding twitter, facebook and community into one contact us label

hiding twitter, facebook and community into one contact us label
using https://community.alphawallet.com/ for community

I think @farrahfazirah is looking into a redesign/layout of the Settings screen with @James-Sangalli.
@zhangzhongnan928 , @farrahfazirah , @James-Sangalli confirm how to go about this first?


Add Darian to about page.

Adds Darian to SC list:

Adds Two Sigma to institutional partners list:

<3 thanks, @afshin


Fixed empty line bug with rotation matrix

Had problems processing videos rotated 90 degrees. The ffprobe output had a blank line so i added a simple filter.

I can confirm we are also experiencing this issue with rotated videos. Link to ffprobe output: http://pastebin.com/CFD1GpcJ

Merged in df30b80


Chart is not responsive inside flexbox

Expected behavior
Chart should be responsive when contained in a div with the prescribed criteria.
Current behavior
I have a layout in my app which uses flex-box to determine the layout of UI elements. The reproducible sample presents a simplified version of this layout. On its own, it may not make sense, but it's a subset of the overall layout that still presents the issue.
The chart does not resize when the size of the containing DIV is changed (e.g through changing the browser window size). To be more precise, it does resize UP (increase), but not DOWN (decrease). If you load the code pen with a smaller window, then drag to increase, you will see the chart expand, but it won't contract when you reduce the window size.
https://codepen.io/jasonpolites/pen/QWXwENB
Reproducible sample
https://codepen.io/jasonpolites/pen/QWXwENB
Optional extra steps/info to reproduce
No response
Possible solution
No response
Context
No response
chart.js version
v4.4.3
Browser name and version
No response
Link to your project
No response

Adding max-width: min-content; to the canvas seems to fix the issue (tested in Firefox and Chrome)

I believe this one will work :
use this :
canvas {
border: 1px dotted red;
width: 100% !important;
height: 100% !important;
}
also
.chart-container {
position: relative;
margin: auto;
width: 100% !important;
height: 100% !important;
}
remove this " height: 300px;"


Event after login OR session restored?

Can we add support for an event or an action that gets triggered when the session is restored or on login?
I need to do things like identify the user with other libraries.

There doesn't seem to be a method suggested in either https://github.com/simplabs/ember-simple-auth/issues/240 or https://github.com/simplabs/ember-simple-auth/issues/276 that doesn't involve using an observer.
As far as I know, observers are considered a code stink and may even potentially go away at some point.

A simple event that's fired on my ApplicationRoute would work wonders.

If this wasn't wrapped in if (trigger) or there was another event that was always triggered here it would solve my problem (knowing when a user is logged in either when they login or reload the app): https://github.com/simplabs/ember-simple-auth/blob/2464beca521e0ee63c2833e4083cc3e405fbbb26/addon/internal-session.js#L83

The session is restored in 2 cases:

on application startup in the application route's beforeModel method
whenever the user logs in in another tab or windows of the same application

The latter case is already handled by the ApplicationRouteMixin's sessionAuthenticated method. To handle the former case you just need to check after the promise returned by the application route's beforeModel method has resolved (e.g. in the model method or by calling this._super(...arguments).then(() => …) in the beforeModel method) whether the user is authenticated or not. You can just call the same private method in both situations.

I get this._super.apply(...).then is not a function when attempting to get the after model.
Looking at the code i don't see anything relating to the model at all in the application route mixin.
https://github.com/simplabs/ember-simple-auth/blob/master/addon/mixins/application-route-mixin.js

See #817 for more info on what I mean. This might eventually be officially supported somehow in the library.

Thanks!
I know for me i'm trying to use it to resolve a problem where my session account is being recomputed right before logout reload and causing problems with the app that expects the user to be present.

I guess the approach introduced in #817 should work for you then.

@marcoow I'm also getting Error while processing route: user.index this._super.apply(...).then is not a function TypeError: this._super.apply(...).then is not a function

It does, but it get's applied after the fact.
https://github.com/simplabs/ember-simple-auth/blob/897779e18be7fbdb3bcf612ae7be188866e6c927/addon/instance-initializers/setup-session-restoration.js#L12

I may be doing something bad, but it seems like I might just be able to use afterModel.

Ah, afterModel doesn't work for the login version.

For posterity, anybody reading up on this that wants to know a method that works this is what I do:
  identifyUser: observer('session.isAuthenticated', function identifyUser() {
    const session = this.get('session');
    if (session.get('isAuthenticated')) {
      const authenticated = session.get('data.authenticated');
      const { id, email } = getProperties(authenticated, 'id', 'email');
      this.get('metrics').identify({ distinctId: id, email });
      this.get('sentry').callRaven('setUserContext', [{ id, email }]);
    }
  }),

Obviously, it's still using an observer. :cry:

@devinus you shouldn't use an observer and also don't have to. Check #817 as mentioned above - I guess that approach would work for you as well.

I tried that approach, however sessionAuthenticated is not called on the reload of my app.

That's why the user is loaded in the application route's model hook as well.

Is there a way that doesn't require something in the model hook? Maybe I could do a dummy model hook? I do loading of an actual user object in someplace entirely different in my app.

You want to do that in the model method as that's made for doing exactly that - loading data from the backend. Also that way Ember would display a loading route while the request isn't complete etc.

@marcoow I do load the user in a model callback, but you're assuming I load the user in my application route, which isn't the case. I don't need to load my entire user at this point.

You can always move the code from the application route's model method to another model method in another route.
The point is though that loading the current user on application startup if the session is authenticated on startup would probably work for 90% of the applications and thus is the best thing that ESA can support out of the box. The default way of doing things is never going to be the best way for 100% of the people 100% of the time.

The default way of doing things is never going to be the best way for 100% of the people 100% of the time.

Totally understand, but it has been requested quite a lot (https://github.com/simplabs/ember-simple-auth/issues/240, https://github.com/simplabs/ember-simple-auth/issues/276). It also seems trivial to emit a new event whenever isAuthenticated becomes true, no where it happens (on restore or or on authentication).

The sessionAuthenticated method does exactly what you describe except it doesn't run on application startup. Why exactly is the approach in #817 not working for you?

The reason I suggest it is because using this model method wont work for that 10% and it's also a really non-obvious solution.

I really don't understand why using the model hook doesn't work for you. It is made for loading data from the backend and that's what the approach in #817 does. That also seems a pretty obvious use of the model method to me.

Why exactly is the approach in #817 not working for you?

I don't have a model callback in my application route, nor do I even need one. My user is not loaded into the application whenever the application starts up. The approach in #817 is requiring the use of a model callback and overriding methods ESA adds to the application route to accomplish the same goal my simple observer does. It makes using an observer seem like the less janky choice.

It just seems like a really non-obvious solution to a problem that I imagine is not uncommon.

So you don't have the concept of a current user in your application? If you want to do other sorts of initialization when the app starts up with an authenticated session you can also do that in the beforeModel method or so.

I have the concept of a current user, but my entire user is not loaded at this point in the application. The information in my ESA session is enough.
Using the beforeModel wont work, because of https://github.com/simplabs/ember-simple-auth/issues/813#issuecomment-163805985 and https://github.com/simplabs/ember-simple-auth/issues/813#issuecomment-163806338.

What's the issue with loading the user when the application starts up then? I'd really like to understand that.

It's simply not needed. It's an extra request to wait on to load the application and it's a non-trivial amount of data.

Also, some areas of the application don't require a user to be logged in at all.

Then you can just load the current user as soon as the user enters the route where you actually need it.

Also, some areas of the application don't require a user to be logged in at all.

Maybe this is a misunderstanding. You're not resolving the loaded user as the application route's model but only load it in the application route's model method into the service that makes it available throughout the application so that every part of the app that needs the user can inject that service.

Then you can just load the current user as soon as the user enters the route where you actually need it.

That's exactly what I do. I have an entire user route that has the nested routes that require a user under it.

Maybe this is a misunderstanding. You're not resolving the loaded user as the application route's model but only load it in the application route's model method into the service that makes it available throughout the application so that every part of the app that needs the user can inject that service.

That's a really good idea, however it doesn't solve this problem. I need to do this when my application starts up regardless of if the user is under my route that has already loaded the user or not.

I need to do this when my application starts up regardless of if the user is under my route that has already loaded the user or not.

And that's exactly what the approach in #817 does.

Yes, but it's still loading the user in the application route.

The application route's model method is where you load data that you want to be loaded when the application starts up.

And I don't want to load the user when the application starts up. I think we're talking in circles at this point.

Yeah, maybe someone else can help clarify this.

When my application starts up, I have EVERYTHING I need to know who the user is loaded straight from their session WITHOUT having to load a user from the backend. Pretend my backend is offline.
I need to, as soon as a user loads into the application when they had ALREADY previously logged in, fire off things like identify who the user is with metrics providers, exception trackers, and more.
How do I do that?

And I'm proposing that an event could be fired whenever isAuthenticated becomes true, regardless of how it happened (restore or login).

Closing this as it's over a year old. We may revisit this when we have more bandwidth, or someone submits a PR.

Has this been reconsidered? I would also love similar functionality to this, and was surprised to find that authenticationSucceeded was not working when the user's isAuthenticated becomes true on restore.

I still don't think this is necessary - if the session is restored successfully on app startup, it will be authenticated already when the application route's beforeModel method runs or if it becomes authenticated while the app already runs the sessionAuthenticated will be called. You can apply the same concepts that are explained in the guide on managing a current user to run any other setup code as well:
// app/routes/application.js
import Ember from 'ember';
import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin';

const { service } = Ember.inject;

export default Ember.Route.extend(ApplicationRouteMixin, {
  session: service(),

  beforeModel() {
    return this._runMySetupCode();
  },

  sessionAuthenticated() {
    this._super(...arguments);
    this._runMySetupCode();
  },

  _runMySetupCode() {
    if (this.get('session.isAuthenticated')) {
      // run whatever setup code you need to run…
    }
  }
});

@devinus: I'd be interested to hear whether this works for your case as well or if not, why not.

@marcoow thanks as always for the detailed reply.
So to expand on my use case, I wanted to be able to toggle a connection to a socket (by disconnecting if a socket exists and then connecting) whenever the user loads the app and whenever authentication changes.
What I'm doing now is toggling in:

the application route's model hook (because we assume the user would be authenticated at this point in the lifecycle due to the ApplicationRouteMixin)
on('authenticationSucceeded') -  closes an unauthenticated socket and opens an authenticated one
on('invalidationSucceeded') - closes an authenticated socket and opens an unauthenticated one

I believe the model hook would be unnecessary if authenticationSucceeded fired when the authenticated session was restored. It reads to me as more explicit that connecting a socket is tied to the authentication status.
Please feel free to correct this view!

Also bear in mind that I'm getting session.session.authenticated.token in order to make these socket connections.

Yeah, I think this is a good example for where the above approach works well:
// app/routes/application.js
import Ember from 'ember';
import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin';

const { service } = Ember.inject;

export default Ember.Route.extend(ApplicationRouteMixin, {
  session: service(),

  beforeModel() {
    if (this.get('session.isAuthenticated')) {
      this._openSocket();
    }
  },

  sessionAuthenticated() {
    this._super(...arguments);
    this._openSocket();
  },

  sessionAuthenticated() {
    this._super(...arguments);
    this._closeSocket();
  },

  _openSocket() {
    // …
  },

  _closeSocket() {
    // …
  }
});

I’m assuming one of those is supposed to be an invalidated? Otherwise makes sense! Thanks.

ah right - fixed 👍


Don't add +/- comments when both are zero

This is confusing since they will be followed up with a more useful comment after the automated update commit. (See https://github.com/Open-Reaction-Database/ord-data/pull/12.)

Are there ever cases where the change is actually +/- 0 reactions? For example, PRs that just correct an existing entry. Or are these reported as +1/-1?

There could be (they would be 0/0 and not 1/1), but I think it's more confusing to have the 0/0 comments. I suppose we could do something like only post the comment if process_dataset is running on something in the data/ folder...WDYT?

I think that check would be preferable, since we'll want to keep the real 0/0 comments


BaseSettings doesn't respect population by field name if env is present

Checks

[x] I added a descriptive title to this issue
[x] I have searched (google, github) for similar issues and couldn't find anything
[x] I have read and followed the docs and still think this is a bug

Bug
Output of python -c "import pydantic.utils; print(pydantic.utils.version_info())":
             pydantic version: 1.8.2
            pydantic compiled: False
                 install path: /usr/local/lib/python3.8/site-packages/pydantic
               python version: 3.8.6 (default, Nov 20 2020, 23:57:10)  [Clang 12.0.0 (clang-1<IP_ADDRESS>)]
                     platform: macOS-11.2.1-x86_64-i386-64bit
     optional deps. installed: ['typing-extensions']

When the following are true

Config.allow_population_by_field_name is True
Environment variable is present for a field
field has an alias
field name is passed to init

an extra fields not permitted error will be raised, however the same error is not raised if the field alias is passed to init instead of the field name
import os
from pydantic import BaseSettings, Field

class Config(BaseSettings):
    user_name: str = Field(alias='userName', env='CONFIG_USER_NAME')

    class Config:
        allow_population_by_field_name = True

os.environ.pop('CONFIG_USER_NAME', None)

c = Config(userName='alice')
print(c)  # alice

c = Config(user_name='mary')
print(c)  # mary

os.environ['CONFIG_USER_NAME'] = 'bob'

c = Config()
print(c)  # bob

c = Config(userName='lisa')
print(c)  # lisa

c = Config(user_name='chris')  # error, extra fields not permitted
print(c)  # should be "chris"

Hi @RobertCraigie
The problem behind the scene is this one
from pydantic import BaseModel, Extra, Field

class M(BaseModel, allow_population_by_field_name=True, extra=Extra.forbid):
    x: str = Field(alias='y')

data = {'x': 'pikaX'}
assert M(**data).x == 'pikaX'  # works

data = {'y': 'pikaY'}
assert M(**data).x == 'pikaY'  # works

data = {'x': 'pikaX', 'y': 'pikaY'}  # raises an error

BaseSettings uses has by default extra = Extra.forbid hence the error. If you set Extra.allow it will override the default value but will also add extra values that may not be needed.

Ah I understand the issue, I would still like to see this use case supported through a config option or similar if that would be possible?
There is an also an issue with setting Extra.allow in this situation as it skips validation
from pydantic import BaseModel, Extra, Field

class M(BaseModel, allow_population_by_field_name=True, extra=Extra.allow):
    x: int = Field(alias='y')

data = {'x': 1}
assert M(**data).x == 1  # works

data = {'y': 2}
assert M(**data).x == 2  # works

data = {'x': 'foo'}  # raises an error as it should

data = {'x': 'foo', 'y': 2}  # works but sets x to 'foo'
assert M(**data).x == 'foo'


Add --no-pull option to calico node command

Fixes #728

LGTM - don't forget to squash before merge.


Chart Values Under 0 were shown as Transparent Color on 2.10.1

//
//  ContentView.swift
//  Bar Chart Test
//
//  Created by zhaoxin on 2022/4/28.
//

import SwiftUI
import SwiftUICharts

struct ContentView: View {
    @State var data:BarChartData?

    var body: some View {
        ScrollView {
            VStack {
                if let data = data {
                    BarChart(chartData: data)
                        .touchOverlay(chartData: data, specifier: "%0.f KGs")
                        .xAxisGrid(chartData: data)
                        .yAxisGrid(chartData: data)
                        .xAxisLabels(chartData: data)
                        .yAxisLabels(chartData: data, specifier: "%0.f KGs")
                        .floatingInfoBox(chartData: data)
                        .headerBox(chartData: data)
                        .padding()

                    HStack {
                        Button {
                            data.dataSets.dataPoints.removeFirst()
                            data.dataSets.dataPoints.append(getRandomPoint())
                        } label: {
                            Text("Append Item")
                        }

                        Button {
                            changeMaxBarNumber()
                        } label: {
                            Text("Change Max Bar Number")
                        }
                    }
                } else {
                    ProgressView().onAppear {
                        let points = (1...10).map { _ in getEmptyPoint()}
                        let barStyle = BarStyle(barWidth: 0.5, colourFrom: .dataPoints)
                        data = BarChartData(dataSets: BarDataSet(dataPoints: points),
                                            barStyle: barStyle)
                    }
                }
            }
        }
        .padding()
        .frame(minWidth: 800, minHeight: 350)
    }

    private func getRandomPoint() -> BarChartDataPoint {
        let i = Int.random(in: -100...100)
        return BarChartDataPoint(value: Double(i), xAxisLabel: String(i),
                                 colour: ColourStyle(colour: i > 0 ? .green : .red))
    }

    private func getEmptyPoint() -> BarChartDataPoint {
        return BarChartDataPoint(value: 0, xAxisLabel: nil, colour: ColourStyle(colour: .green))
    }

    private func changeMaxBarNumber() {
        let maxBarNumber = Int.random(in: 10...20)
        var points = data!.dataSets.dataPoints.filter { $0.value != 0 }
        let count = points.count

        guard let data = data else {
            fatalError()
        }

        if count < maxBarNumber {
            let emptyPoints = (1...(maxBarNumber - count)).map { _ in getEmptyPoint() }
            points.insert(contentsOf: emptyPoints, at: 0)

            data.dataSets = BarDataSet(dataPoints: points)
        } else {
            data.dataSets = BarDataSet(dataPoints: Array(points[(count - maxBarNumber)...]))
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}

The issue is new, as 2.10.0 worked fine.

Ah, thanks for pointing out 2.10.0 works fine! I thought it was related to my reported issue: https://github.com/willdale/SwiftUICharts/issues/217
Fixed the version to 2.10.0 and solved my issue for now at least 💪

Ah, thanks for pointing out 2.10.0 works fine! I thought it was related to my reported issue: #217
Fixed the version to 2.10.0 and solved my issue for now at least 💪

Thank you for your reply and thank again for this useful framework.
For the purple warning, in my opinion, it means something that has not been officially supported. For example, if you enable one sheet inside another sheet. A purple waring showed says multiple sheets was not supported. But the app works as expected. The first  sheet closes and the second sheet shows.

Thank you for your reply and thank again for this useful framework.

Don't give me the credits, I didn't create this framework! I just happened to have the same issue as you experienced


fix: eventsender engine uploads on a cadence

Not sure if this is good inspiration, but this is how the assign logging works in the flag resolver sidecar: https://ghe.spotify.net/konfidens/epx-flags-resolver/blob/master/epx-flags-resolver-sidecar/src/main/java/com/spotify/confidence/flags/resolver/sidecar/AssignLogger.java#L86


Implied criteria shouldn't be shown in suggest view

Right now we have stuff like:

cargo_metadata:0.14.2 needs ["safe-to-run", "safe-to-deploy"]

I think this should just say safe-to-deploy. Might be easiest to do this as a final filtering step.

fixed in #44


feat(MeasureTheory/Integral/linearRieszMarkovKakutani) prove that the Riesz content is indeed a content for NNReal

Prove additivity of RieszContentAux, completing the proof that it gives a Content.
Motivation: this gives the measure related with a positive linear functional Λ on compactly supported continuous functions. The next step is to characterise the constructed measure as the one giving Λ back.
A different approach is taken in #12290 for Real-linear Λ. Here it is assumed to be NNReal-linear. The main steps to prove additivity have been proposed by @kkytola here.

[x] depends on: #12266 for a variation of PartitionOfUnity. The new contents of this PR are contained in MeasureTheory.Integral.linearRieszMarkovKakutani and Topology.ContinuousMap.CompactlySupported.

Could you please fix the merge conflict? Thanks!

bors r+


server does not start

Installed the mod, imported the world, created a portal to the imported world, deleted the imported world, restarted the server. The server does not start until you delete the mod.
Crash report

https://github.com/trentech/ProjectPortals/issues/118


Change global variables into classes

Change all global variables in the /lib folder into classes.

Done!


Can I have the pre-training code for LayoutLM2?

Describe
Model I am using (UniLM, MiniLM, LayoutLM ...): LayoutLM
Hi. Thanks for your great work on LayoutLMv2.
I am trying to do some experiment on LayoutLMv2 especially in the pre-trainning stage, so I wonder if it is possible to have the pre-training code?

Duplicate of #279