utils: adjust the LLVM build

This adjusts the build invocation for the LLVM portion on Unix
platforms.  With the imminent rebranch, the new LLVM will pull
in a new version of google-benchmark which requires C++20 support
in the C++ compiler which rules out some of the currently enabled
targets.  Disable the benchmarks which are not used currently any
way.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CC: @shahmishal @bnbarham

@swift-ci please test


Web Components Support

The 'click-outside' Vue directive is not working when using it inside a web component.
In order to mantain the web components encapsulation principle, when the ‘click’ event is triggered from an element that is inside of the “#shadow-root”, the browser retargets the event to the host element of the shadow dom.

For example, clicking the element <p data-v-9b69508e=""> I'm a web component</p>, the e.target code returns <my-web-component> as clicked element:

So the problem is the e.target code that is retargeted to the host element.
To solve this, we can use instead the e.path[0] code to get the clicked element to add support to use it inside web components.

I have the same problem.
With this solution the library works fine inside a web component.

@serbemas Thank you, you are legend!


Compilation state

Hi,
It seems you've removed the is_compilation column in Albums table and the corresponding logic in the code. I've hard time understanding the new model. If you don't mind, can you elaborate a bit on this change, since I guess, it'll be followed by more changes in the future?
Previously, if I understood correctly, we had an album who could have an artist_id mapping to, say, "Queen" but with a is_compilation flag set to zero/one. As soon as one of the song with this album referred to another artist, the is_compilation flag was set to one.
Currently, if I understand correctly, instead of changing the flag, you change the artist_id to various artist, and check for compilation by the condition artist_id == VariousArtistID, right ?
If so, how do you link the album with the "main" artist, since the album's artist_id is no more linked to "Queen" but to "Various Artist" ?
I understand it convenient to have only one way to figure out if an album is a compilation, but I wonder if it's something you wanted (this means having a lot of albums under "Various Artist" artist, but some album disappear from the main artist "Queen" where I expected them) or is it a temporary change before a larger change ?
In that case, I wonder if the song table shouldn't map to multiple artist_id instead (so instead of a single artist_id column, maybe rename to a artist_jam_id and add an artist_jam table with column (id not unique, artist_id). That way, one could find the "compilation" albums by selecting "Various Artist" or any of the participating artists' albums.
What do you think about that ?

The decision of the current implementation for album's compilation state traces back to the discussion in #664, which you and @YakovGoldberger are part of ;)

Yes you're right, of course. At the time you've shown us some diagram of the new entity relationship. I don't remember what was the conclusion for this discussion.
Yet, what do you think about this change (if ok, I'll make a PR for it) ?

Change part of the software that expect song's artist uniqueness to support array instead (that means Laravel's PHP Song & Album model and Media / File mainly, and the VueJS song & album store)
Add a artist_jam table and migrate all songs' artist_id to artist_jam_id instead
Change the api so that the song & album class has a array of artist id, instead of a simple integer value.


Debuging latex codes in Latextools is annoying. Please add separate command options for "pdflatex" and "bibtex".

I have used Latextools intensively. The "ctrl-alt-b" is working very nicely but is very hard to debug.
The current build command in Latextools "ctrl-alt-b" gives the "texify" command in MikTeX or "latexmk" in TeXlive or MacTeX. However this command (texify or latexmk) does not give good error analysis which is not clear enough to debug latex codes. I think it because `texify' combines many steps together, pdflatex + bibtex and so on.... Many times I had to go back to a command line to run pdflatex and bibtex one by one to debug the latex codes.
Could you please add choices to do "pdflatex" and "bibtex" separately so that the debug step is easier for us? This will be so wonderful.
Thanks very much in advance for any possible help.

Eventually, more customisable builders will be coming that will handle this.
However, could you be a bit clearer about what you mean by "debugging" and "good error analysis"? LaTeXTools behaviour is to try to read any errors and warnings from the generated logs and display them in the LaTeXTools console. Are you saying there are error and / or warnings that appear in you log file but not in the console? Because, if so, simply changing the command that is run will not help with anything, since the messages displayed in the console are filtered through the same log parsing code each time.

The errors from the log file of Latextools is very helpful. I depend on it most of the time. However, the error messages from the log file are not working well since cntrl-alt-b combines many processes at the same time, and further more in the latex codes that use latex under development packages such as "pgfplots, tikz,...."  Miktex/Texlive frequently just hangs. In that case, the error messages may not show up properly and clearly enough.  I try rebuilding (ctrl-alt-b) and restarting atom but they are not helpful.
I want to say more about the pdflex and bibtex. We only compile the bibtex a couple of times and we use pdflatex more than a hundred times during the writing of a paper. Thus separate these is essential for latex users.


Fixed the dependencies.

This issue fix the possible issues mentioned in the following issue.
https://github.com/QuickBlox/quickblox-ios-sdk/issues/232

Hi @itsaboutcode
Our QMServices are not related to WebRTC SDK, so there is no need on video dependencies for this project.


98 rewrite util to static classes to improve intelli sense (outline)

PR details
What is the purpose of this pull request? (put an "X" next to an item)
Please delete options that are not relevant.

[x] Other, please explain:
rewrite util to static classes to improve intelli sense

What changes did you make? (Give an overview)
set the the methods in util as static, in file.js separated the js library from the Files class, rewrote all instances where fs methods were called using File.
Is there anything you'd like reviewers to focus on?

eslint gave some warnings, those were fixed by setting the  "parserOptions": {     "ecmaVersion": "latest"   },
as seen here

in File, module.export only the class files. and not both {...Files, ...fs} as it wasn't working with the static class. the fs library is declared separably. as commented here

Checklist

[x] I have performed a self-review of my own code

will be rewritten by es6 module switch. closing this pr


Steps to reproducte
To reproduce, just open a new private chat by typing '/msg user test'. The screen will go black and will not redraw. The message does get sent it seems, but the screen is black and the application is not usable anymore until a restart or sometimes also until opening one of the menus.
Expected behavior
Send a normal message and shows it
Observed behavior
Messages gets sent but application doesn't redraw the screen, screen goes black.
Possible fixes
NA
Mattermost server version 3.4.0
Mattermost Mac desktop client version: 3.4.1
Mattermost Windows desktop client version: 3.4.1

Thanks @KasperJanssens for the report!
I tried it on my end and it seems to be working okay. Just confirming this issue doesn't reproduce on the browser?
Also, we have a Mattermost preview instance open to public, wondering if you'd like to try and see if the issue reproduces on that server too?

Can't reproduce in the browser no, but we can reproduce it on four different machines, two macs and two windows. Don't know what that means if you can't reproduce it on your instances, something wrongly configured on the server side? That seems a bit weird doesn't it?
I sent you a direct message on the mattermost instance for review and I don't have the issue, but like I said I don't have it on the http client.

@yuya-oc Any thoughts what might be going on?

I tested /msg on pre-release.mattermost.com and my 3.4.0 server, but the issue didn't reproduce. As far as reading the issue, it should happen also on webapp.
@KasperJanssens To make sure, would you try Ctrl(Cmd)+Shift+R to refresh caches? If you had recently upgraded the server, possibly it is the reason.

Cleaning the caches refreshes the image, but I can't click anymore in it
then, the application is no longer responsive. The only thing we did was
follow the setup on the website to install Postgres, Mattermost and Nginx,
so it's not a docker setup or anything. We don't have the issues on the web
app but we have the issue consistently on all desktop clients. I didn't do
any update on the server, server was installed five days ago and has been
running all that time. Just downloaded a linux tarfile release from your
webiste, 3.4.0, installed on a fresh 64 bit server.
2016-11-15 14:28 GMT+01:00 Yuya Ochiai<EMAIL_ADDRESS>
I tested /msg on pre-release.mattermost.com and my 3.4.0 server, but the
issue didn't reproduce. As far as reading the issue, it should happen also
on webapp.
@KasperJanssens https://github.com/KasperJanssens To make sure, would
you try Ctrl(Cmd)+Shift+R to refresh caches? If you had recently upgraded
the server, possibly it is the reason.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mattermost/desktop/issues/363#issuecomment-260640883,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFKkOwpHErcy7og13j8pJAd4xcKtx9zmks5q-bN2gaJpZM4KxaDc
.

Hmm...it's weird. Is the instruction https://docs.mattermost.com/install/prod-ubuntu.html ? Please tell your exact steps if you know. I would like to setup later on virtual machines in order to reproduce.

Indeed these but on an ubuntu 16.04. It's a vm I think, might be that we can even share it somewhere with you guys. I followed those instructions step by step (except the ip - address of course). We do have a different config for nginx though, some options that weren't supported on the nginx in the ubuntu repos for ubuntu 16.

upstream backend {
  server <IP_ADDRESS>:8065;
}

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=mattermost_cache:10m max_size=3g inactive=120m ;

server {
  listen 80; server_name releasemanagement.int.amplidata.com;

    location /api/v3/users/websocket {
    proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; client_max_body_size 50M; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Frame-Options SAMEORIGIN; proxy_buffers 256 16k; proxy_buffer_size 16k; proxy_read_timeout 600s; proxy_pass http://backend;

  }

  location / {
    client_max_body_size 50M; proxy_set_header Connection ""; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Frame-Options SAMEORIGIN; proxy_buffers 256 16k; proxy_buffer_size 16k; proxy_read_timeout 600s; proxy_cache mattermost_cache; proxy_cache_min_uses 2; proxy_cache_use_stale timeout; proxy_cache_lock on; proxy_pass http://backend;

  }

}

Hey @KasperJanssens, we just released Desktop App v3.5
Wondering if you'd like to download the app and see if the issue persists?

Seems to fix it on the Mac client, asking my colleagues to test on the Windows and Linux client as well but I expect it will be fixed. I'll close the ticket as soon as they have confirmed.

Awesome, glad to hear!

Works on Windows and Linux as well. Closing.


Added route prefix

Allows to change versions and overall route prefix in only one place.

Coverage increased (+0.2%) to 92.188% when pulling 51cc355675880ab5fd1e20d7dd3be0a95d35b76d on dev_add_route_prefix into 510afa2eb6d4de2c58cd738d4d5f244547a15ed1 on add_route_prefix.


compat vs six

Now that we've added six to the NLTK distribution, some methods in compat, like python_2_unicode_compatible should be imported from six instead.

compat.python_2_unicode_compatible is different from six.python_2_unicode_compatible; in six it always uses utf8 and so doesn't work correctly in non-utf8 consoles (Windows?).

Thanks @kmike – I saw that it was different and wondered if that was just because NLTK's version was a stale copy.


Do a deep dive into TVM

https://github.com/apache/tvm
GeoHot mentioned it inspired some TinyGrad solutions.

There is not enough time... Priorities on tinygrad and on major frameworks or backends (Triton, XLA, JAX, PyTorch).

I take it back, it's worth discovering.


python311Packages.georss-client: 0.15 -> 0.17,  python311Packages.georss-ingv-centro-nazionale-terremoti-client: 0.6 -> 0.7

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review pr 285371 run on x86_64-linux 1

19 packages built:

home-assistant-component-tests.geo_rss_events
home-assistant-component-tests.ign_sismologia
home-assistant-component-tests.qld_bushfire
python311Packages.georss-client
python311Packages.georss-client.dist
python311Packages.georss-generic-client
python311Packages.georss-generic-client.dist
python311Packages.georss-ign-sismologia-client
python311Packages.georss-ign-sismologia-client.dist
python311Packages.georss-ingv-centro-nazionale-terremoti-client
python311Packages.georss-ingv-centro-nazionale-terremoti-client.dist
python311Packages.georss-nrcan-earthquakes-client
python311Packages.georss-nrcan-earthquakes-client.dist
python311Packages.georss-qld-bushfire-alert-client
python311Packages.georss-qld-bushfire-alert-client.dist
python311Packages.georss-tfs-incidents-client
python311Packages.georss-tfs-incidents-client.dist
python311Packages.georss-wa-dfes-client
python311Packages.georss-wa-dfes-client.dist


Remove references to post-me in favor of the ibridge branding

Fixes #16
TODO:

[ ] add the existing ibridge logo

@franleplant

Dont know how to approve it but go ahead and merge it


Policy.Read.ConditionalAccess

It seems Policy.Read.ConditionalAccess is also required?
After I added this perm, the pipeline ran successfully.

@BakkerJan could you try the tests in #199 and let me know the results as well. I am unsure if this is just an SPN permission issue or a tenant configuration issue.

@Snozzberries, I just ran the test, and it gave no errors.

Thanks @BakkerJan, I think I have an idea on how I can attempt to recreate this in my tenant. Will try and come back with ideas before the weekend.

I had the same error, after modifying the app permissions to include Polic.Read.ConditionalAccess that was corrected. I still however error out with Error: The process '/usr/bin/pwsh' failed with exit code 1

@BakkerJan can you try bypassing the Test-MtContext check using the -SkipGraphConnect switch on Invoke-Maester and prior to calling that use Connect-MgGraph directly?
You should be able to use just Policy.Read.All and not provide Policy.Read.ConditionalAccess.
Here is an example I was testing with.
Disconnect-MgGraph
$tenant = "344f7861-e82f-495d-8bf3-3898ef4b2ae2"
$client = "5236c299-ced9-46dd-a6a5-2aa0132093fe"
$secret = "55e5eb96-a392-477e-862e-6638d869df19"
$cred = New-Object System.Management.Automation.PSCredential($client,$(Get-Secret -Name $secret))

Connect-MgGraph -TenantId $tenant -ClientSecretCredential $cred -NoWelcome
Clear-MtGraphCache

The Policy.Read.ConditionalAccess will be explicitly required for the WhatIf API, so I've added it to the consent list for now.


Inquiry Regarding Feature Compression Method

I have been thoroughly studying your paper on feature compression in visual memory banks, particularly the section that discusses the compression algorithm applied at each auto-regressive step when the memory bank exceeds a predefined threshold $M$. Your work is truly insightful, and I appreciate the contributions you've made to the field.
However, I have encountered a point of confusion regarding the implementation of the compression method described in the equations (5) to (7). Specifically, in equation (6):
$$
k = \arg\max_t(s^i_t)
$$
it appears that $k$ should be a vector of shape $[P, 1]$, where $P$ is the number of spatial locations. This is because, for each spatial position $I$, we are selecting the time index $t$ where the cosine similarity $s^i_t$ is maximized. Consequently, each spatial location could have a different $k_i$.
If this interpretation is correct, generating a new feature $\hat{f}^{I}_{k}$ according to equation (7):
$$
\hat{f}^i_k = \frac{f^i_k + f^i_{k+1}}{2}
$$
would be straightforward for each spatial position. However, this raises a concern about how to update the memory bank, since $k$ now involves multiple different frames across spatial positions. Specifically, I'm uncertain about which frames in the memory bank should be replaced or removed to reduce its length by one, as per the method's requirement.
Could you please clarify how the memory bank is updated in this case? Is there an aggregation step over the spatial dimensions to obtain a single $k$ value, or is there another mechanism to handle the different $k_i$ values across spatial positions?
Thank you for your time and assistance. I look forward to your response.

Hello, thanks for your question. Your interpretation is correct. For different spatial locations, the k is different. Therefore, there is no fixed answer about which frames will be updated. Also please note that, we did not simply replace or remove each frame feature, instead we do the average pooling of the most similar adjacent features. You can refer to the following code for more detailed implementation about the memory bank compression operation.
https://github.com/boheumd/MA-LMM/blob/main/lavis/models/blip2_models/blip2.py#L352


Visual Studio 2015 does not switch

Run VS.NET 2015, and switch desktops.  It does not switch with the rest of the apps.

Probably a duplicate of #2


Bug: Safari 14.1 - Unsupported operation when submitting multipart form

What version of Remix are you using?
1.15.0
Are all your remix dependencies & dev-dependencies using the same version?

[X] Yes

Steps to Reproduce
About
I have created a new project using the indie stack and changed only the bare minimum, as to reproduce the bug. You can see the diff here: https://github.com/jstoone/remix-safari-multipart-form-bug/pull/1/files
Requirements

Safari 14.1 on Big Sur

I can supply BrowserStack users for one or two maintainers, if that's needed :v:

Reproduce via repository
Clone the repository, and checkout branch with reproducible code:
git clone https://github.com/jstoone/remix-safari-multipart-form-bug --branch reproduce-bug

Change directory and install node modules:
cd remix-safari-multipart-form-bug && npm install

Steps

Create user - http://localhost:3000/join
Create note - http://localhost:3000/notes/new
Write note name
Select whichever file
Write description
Submit form

Expected Behavior
I expected a new note to be created, regardless of whether I have selected a file or not.
Actual Behavior
Description
Having filled out the form, and pressing "Save", the submission fails, and never reaches the Action:

The browser displays a stack trace
The console displays a `"NotSupportedError: The operation is not supported"" in console

If the user does NOT select a file, the form will successfully save the note.

Stacktrace:

formData@ [native code]
https://good-tape.eu.ngrok.io/build/_shared/chunk-DRZ7F0Q.js:7842:159
asyncFunctionResume@[native code]
https://good-tape.eu.ngrok.io/build/_shared/chunk-DRZ7F0Q.js:8051:35
asyncFunctionResume@[native code]
runHandler@https://good-tape.eu.ngrok.io/build/_shared/chunk-DRZ7F0Q.js:3635:33
https://good-tape.eu.ngrok.io/build/_shared/chunk-DRZ7F0Q.js:3667:32
asyncFunctionResume@[native code]
https://good-tape.eu.ngrok.io/build/_shared/chunk-DRRZ7F0Q.js:2741:40
asyncFunctionResume@[native code]
https://good-tape.eu.ngrok.io/build/_shared/chunk-DRZ7F0Q.js:2685:44
asyncFunctionResume@[native code]
https://good-tape.eu.ngrok.io/build/_shared/chunk-DRRZ7F0Q.js:2617:33
asyncFunctionResume@[native code]
https://good-tape.eu.ngrok.io/build/_shared/chunk-DRZ7F0Q.js:5351:23
submitHandler@https://good-tape.eu.ngrok.io/build/_shared/chunk-DRZ7F0Q.js:5626:15
callCallback2@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:3578:27
dispatchEvent@[native code]
invokeGuardedCallbackDevahttps://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js: 3603:37
invokeGuardedCallback@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:3637:44
invokeGuardedCallbackAndCatchFirstError@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:3640:38
executeDispatchahttps://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:6675:50
processDispatchQueueItemsIn0rder@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.is:6695:30
processDispatchQueue@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:6704:45
dispatchEventsForPlugins@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:6712:31
batchedUpdates$1@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.is:18412:22
batchedUpdates@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:3483:38
dispatchEventForPluginEventSystem@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:6835:25
dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay@https://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:5166:46
dispatchEventahttps://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:5160:92
dispatchDiscreteEventahttps://good-tape.eu.ngrok.io/build/entry.client-AIWHXX37.js:5137:26
dispatchDiscreteEvent@[native code]

Screenshots

Stacktrace without error boundry, as seen in the collapsable summary above:

Stacktrace/error from the developer console

I've wanted to move towards using streams more for our audio processing, so I've made a working example here, where the user submits an octet-stream via XMLHttpRequest and the action then wraps the request.body in a NodeJS Readable, which can be passed directly to fluent-ffmpeg.
If anyone's interested in this approach I've created another branch with a sample implementation:
-> https://github.com/jstoone/remix-safari-multipart-form-bug/pull/2
Having the above solution, means that I am no longer blocked on the above, but please don't hesitate letting me know if there's anything I can do to help debug the issue. I'm up for pairing if that's needed. :v:

I can't reproduce this on OSX Ventura 13.5, Safari 16.6, so it seems like it may be an issue in that specific Safari version?  I'm unsure if Remix can do much to address this without more information on exactly what's failing on file uploads on Safari 14.
If you are able to track down any more information about what's causing this failure in Safari 14 we'd definitely accept a PR or guidance on if there's an underlying issue in Remix code.

Definitely a Safari thing, and to be honest, don't think it's worth spending a lot of time on, as I can only imagine that it's going to be a path full of misleading rabbit holes.
So the reward to time spent ratio, is not looking great for this. And since I'm the only one (that I've seen) who's noticed this, I'm going to self-close, until something similar pops up.
But please don't hesitate reaching out or pinging me, if this bug or similar pops up again, and I'll gladly help debug and (co-)author a PR. ❤


Add extra projections

"Here we want to support: lat/long = EPSG:4326 NZMG = 27200 NZTM = 4167 (I think) Mercator41 = 3994 plus some google mercator ones."


Imagefap changed their site design. So, imagefap ripper no longer works.

imagefap changed their website design. The images are now stored as per uploader directory.
Modify the ripper.. (whenever possible).

Can you give a bit more info for how/when you get an error? I just tested it on a gallery/album and it worked fine...

It only seems to download thumbnails, not the full images.
Seemed to work until yesterday for me, though..?

I'll try to summarize what's now happening since the imagefap change. I hope it makes sense. When you copy a link from the main page, or a list of galleries, it's now downloading the thumbnails.  If, however, you click on a particular gallery, then copy that gallery url to the clipboard (which is different than the link you previously selected, this is what's changed on imagefap), then it will download the full sized pictures.

I can't reproduce. Can you provide a link to a URL that the ripper isn't working properly for?

I'll try. Here's one that my proved my previous comment wrong and insists on downloading the thumbnails from the gallery regardless of which link you use to try to download the gallery from (whether its the link from the main gallery listing/user's gallery listing, or even the actual gallery link where you're viewing the pictures in that particular gallery).
http://www.imagefap.com/pictures/5851685/The-Ass-the-best-part-of-a-woman-162

Thanks for the examples. Looks like it has to do with a new hosting domain imagefap is using; luckily the URL to the full-size image can still be derived from the thumbnail URL.
Updated in v1.2.2


Student enrollment

If an Autograde-teacher is not part of the Owner/Admin group in a Github organization, and that teacher tries to accept a student into a course, it will fail to invite that student. Since the teacher does not have invite rights to the organization.
This is at least the theory, needs to be Investigated further on.
Is the teachers/teacher assistants supposed to have ownership in the organizations? if not, how do we circumvent this?
Document that teachers/TAs need admin rights so they can invite students to their organization through Autograde?

The invitation issue can be solved by #98


Support VSCodium in interactive rebase editor

VSCodium is an open source build of vscode, and this extension works well on it. However, it uses the command codium instead of code and the interactive rebase editor is not launching.
Could you add a branch to the appName switch:
https://github.com/eamodio/vscode-gitlens/blob/2b8a300703103b12ab90b17e1ad0a2d6c9ece1e6/src/commands/git/rebase.ts#L81-L91
 	case 'VSCodium':
 		editor = 'codium --wait --reuse-window';
 		break;

Thank you!

Duplicate #1430

@matronator I think this issue is easier to implement than Github auth in #1430. It only needs a branch in the switch code.

I don't think this logic will work for authentication provision #1430 , it involves redirection code.

VSCodium is an open source build of vscode, and this extension works well on it. However, it uses the command codium instead of code and the interactive rebase editor is not launching.
Could you add a branch to the appName switch:
https://github.com/eamodio/vscode-gitlens/blob/2b8a300703103b12ab90b17e1ad0a2d6c9ece1e6/src/commands/git/rebase.ts#L81-L91
 	case 'VSCodium':
 		editor = 'codium --wait --reuse-window';
 		break;

Thank you!

I just tested the change suggested here and it works without issue, i don't see what authentication has to do with this since git rebase only modifies the local repository and does not talk to the remote
Best regards,
Earthnuker

I've also stumbled on this issue.
Hard coding executable names seems too fragile to me.
At least default should be empty so git configuration may work as fallback. User might have configured sequence.editor.
Or expose executable name through extension config.

Fixed in https://github.com/gitkraken/vscode-gitlens/commit/9994e1351eaf6243c5342455fb77e78b1182f948

Can you please verify this fix in tomorrow's GitLens insiders edition?
You can install the GitLens insiders edition from here.
Please be sure to disable or uninstall the stable version of GitLens first.

@eamodio thanks. I did a quick test on preview version and this seems to be working fine.
git -c sequence.editor="codium --wait --reuse-window" rebase --interactive blahblahblacksheep
hint: Waiting for your editor to close the file...


Buttons, secondary

Update documentation with new secondary button styles. Add information about button alignment/placemet (i.e. primary button on the left)

Documentation updated.


Aligned Labelled Lists

The only thing that keeps me using rdoc instead of markdown for most of my project documents is the lack of aligned labelled lists. e.g.
Label1:: Some description of label 1.
Label2:: Some description of label 2.

In RDoc this produces a two-column table, with a special class so in can be distinguished from regular tables. Usage is not uncommon, for example: https://github.com/jimwise/rulog/blob/master/README.rdoc. I use it myself in COPYING.rdoc files, e.g. https://github.com/rubyworks/ansi/blob/master/COPYING.rdoc.
I would really like to see markdown support something comparable, if not the exact same syntax.

Would PHP Markdown Extra definition lists suffice?
Label1
: Some description of label 1.
Label2
: Some description of label 2.

If they are styled like a table, then yes. That can be done, e.g.
dl.table-display
{
	float: left;
	width: 520px;
	margin: 1em 0;
	padding: 0;
	border-bottom: 1px solid #999;
}

.table-display dt
{
	clear: left;
	float: left;
	width: 200px;
	margin: 0;
	padding: 5px;
	border-top: 1px solid #999;
	font-weight: bold;
}

.table-display dd
{
	float: left;
	width: 300px;
	margin: 0;
	padding: 5px;
	border-top: 1px solid #999;
}

However, unless all definition lists are going to be styled that way there needs to be some way to differentiate them.
Also, I can't say I prefer the PHP Extra syntax. It's much less concise then the RDoc syntax. But it's acceptable if needs be.

+1 for definition lists. I use these all the time in technical documentation.

+1 for definition lists. I use these all the time in technical documentation.

+1 for the PHP Markdown Extra syntax

Hello,
Sorry but as you might have noticed, this project has pretty limited resources so adding new features is not a priority as this will increase the maintainance burden.
Thus, we are going to give this ticket a close. We might consider reopening it in the future if it makes sense.
Thank you very much for your proposal and understanding.


Tsshock

According to Steve Gibson, Security Now podcast, ING Bank uses a vulnerable threshold ECDSA software implementation...
https://github.com/verichains/tsshock
Haven't looked into it, but does it concern this project?

Yes, it does. See the updated README. ING has no intention of resolving this, nor on maintaining this further, and hence, this repo will be archived.


Add Error impl for TMF error types

When using tmf, I would like to use the ? operator on Results returned by tmf methods.
It is currently impossible to do so, because TMFImportError and TMFExportError do not implement Error (unlike their name suggest).
To fix this, we implement Error on TMF types using the thiserror derive macro.
Alternatives
Instead of using thiserror, it's possible to define yourself the Error implementation. But thiserror is widely used in the rust ecosystem, and it's fairly tedious (and error-prone) to manually implement Error.
There are two drawbacks to using thiserror:

Compile time are certainly increased (but not by much!) from using a proc_macro crate
It's an additional dependency to worry about

I still think using thiserror is worthwhile. Also considering that it will probably end up in the user's dependency tree regardless.
But if you prefer a manual impl, please tell me so that I can submit a better patch.

I am not sure about using thiserror. On one hand, this is a clean and easy to understand solution. On the other hand, it is a proc-macro crate, meaning it depend on syn. That would meantmf would take longer to build. Build times are not a big problem ATM, so it should be OK for now, but may be reworked in the future, to not use thiserror.


TP=2， Loss of accuracy

hello,I carried out TP=2,multi-gpu operation on llama model of 7b, and found that the comparison accuracy of the result was lost by 5%. TP=2 as far as I know should not change the accuracy. Why?

hi, can you post reproduce step.

FasterTransformer does not support llama officially and FasterTransformer development has transitioned to TensorRT-LLM. TensorRT-LLM has supported LLaMa, please take a try.


Ownership card adjustments

Hey, I just made a Pull Request!

Adds the entity kind (if it differs from the type itself) to the Ownership Cards as shown below.
Fixes the query params of the link to the catalog index page.

#### :heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[x] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Thanks for the suggestion!
I'm a little confused and might not understand the use case for the additional information fully, isn't a website and service always a component? I also wonder if the component kind important enough to always display?

Thanks for the suggestion! I'm a little confused and might not understand the use case for the additional information fully, isn't a website and service always a component? I also wonder if the component kind important enough to always display?
The additional information to be displayed came up for us, especially with the type service.
We are currently having a couple of microservice components marked as the type service but also Software Templates that also get assigned the type service for creating new microservices.
Now if a team owns both service templates and service components, 2 Cards with the same name, style, etc will show up 😅

Well yes we could drill it down to probably some individual kinds but for consistency, I tended more towards applying it to all kinds


Build on Linux

As it turns out, there's a bug that causes exe files to be missing the metadata specified in the csproj file. This was discovered and temporarily fixed with #83.
This issue is blocked by dotnet/runtime#3828

Now that the auto updater introduced a FrameworkReference into the csproj, this will no longer build on Linux.

Now that the auto updater introduced a FrameworkReference into the csproj, this will no longer build on Linux.

What does that mean? What do I have to do to have my icons and metadata in my executables? What is this FrameworkReference you're referring to and where can I find more about it? Is this released already or, if not, when will it be?

Somebody commented here but deleted it. Here's what they said:

Now that the auto updater introduced a FrameworkReference into the csproj, this will no longer build on Linux.

What does that mean? What do I have to do to have my icons and metadata in my executables? What is this FrameworkReference you're referring to and where can I find more about it? Is this released already or, if not, when will it be?

Um. I think you commented in the wrong repo, buddy.

That's why I deleted it buddy.


Shadow example

An example of a scene with multiple objects casting shadows at each other using shadow-mapping technique.

Shadow example has been provided by #24


[Build] Failed to compile | Error: [BABEL] index.js Cannot find module './src/data'

The bug itself
Getting this error when running : yarn build

Creating an optimized production build...
Failed to compile.
./src/index.js
Error: [BABEL] /root/my-app/src/index.js: Cannot find module './src/data'
Require stack:

/root/my-app/node_modules/core-js-compat/helpers.js
/root/my-app/node_modules/core-js-compat/get-modules-list-for-target-version.js
<EMAIL_ADDRESS><EMAIL_ADDRESS>/root/my-app/node_modules/babel-preset-react-app/create.js
/root/my-app/node_modules/babel-preset-react-app/index.js
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>/root/my-app/node_modules/babel-loader/lib/index.js
/root/my-app/node_modules/loader-runner/lib/loadLoader.js
/root/my-app/node_modules/loader-runner/lib/LoaderRunner.js
/root/my-app/node_modules/webpack/lib/NormalModule.js
/root/my-app/node_modules/webpack/lib/NormalModuleFactory.js
/root/my-app/node_modules/webpack/lib/Compiler.js
/root/my-app/node_modules/webpack/lib/webpack.js
/root/my-app/node_modules/react-scripts/scripts/build.js (While processing: "/root/my-app/node_modules/babel-preset-react-app/index.js$0$29")

My environment and project settings
node version : 12.3.1
npm version : 6.12.1
yarn version : 1.19.2
package.json
{
  "name": "my-app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "connected-react-router": "^6.6.0",
    "hammerjs": "^2.0.8",
    "is_js": "^0.9.0",
    "ismobilejs": "^1.0.3",
    "promise": "^8.0.3",
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-redux": "^7.1.3",
    "react-router": "^5.1.2",
    "react-router-dom": "^5.1.2",
    "react-scripts": "3.2.0",
    "redux": "^4.0.4",
    "redux-devtools-extension": "^2.13.8",
    "redux-thunk": "^2.3.0",
    "sanitize.css": "^11.0.0",
    "tinycolor2": "^1.4.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

machine:
Linux ary-prod 4.15.0-20-generic #21-Ubuntu SMP Tue Apr 24 06:16:15 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
I tried to run the same app on an ubuntu machine with the same versions of npm yarn and node, and it works, but not on this one.

I'm having the same issue on CentOS on a vanilla app (I was installing it).

Retried on my local machine, and I get the same problem now (I didn't get it few days ago).

Same error on Mac OS Mojave. After reinstall node modules all builds failed with this error

Some server must be down.

macOS Catalina & Docker (node:latest) / Linux

Some server must be down

There was a bad publish by an upstream package -- this will self resolve in a while.
Please follow https://github.com/npm/cli/issues/545 for updates. npm seems to be having a service degradation and is serving 1hr+ old stale content.

HI same for me..

@Timer I tried that it didn't work for me.

I'm getting this error even with a new project npx create-react-app test npm run.
Error that I get:

Error: [BABEL] C:\Users\krcky\Desktop\Projects\test\node_modules\react-dev-utils\webpackHotDevClient.js: Cannot find module './src/data'
Require stack:

C:\Users\krcky\Desktop\Projects\test\node_modules\core-js-compat\helpers.js
C:\Users\krcky\Desktop\Projects\test\node_modules\core-js-compat\get-modules-list-for-target-version.js
<EMAIL_ADDRESS><EMAIL_ADDRESS>C:\Users\krcky\Desktop\Projects\test\node_modules\babel-preset-react-app\dependencies.js
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>C:\Users\krcky\Desktop\Projects\test\node_modules\babel-loader\lib\index.js
C:\Users\krcky\Desktop\Projects\test\node_modules\loader-runner\lib\loadLoader.js
C:\Users\krcky\Desktop\Projects\test\node_modules\loader-runner\lib\LoaderRunner.js
C:\Users\krcky\Desktop\Projects\test\node_modules\webpack\lib\NormalModule.js
C:\Users\krcky\Desktop\Projects\test\node_modules\webpack\lib\NormalModuleFactory.js
C:\Users\krcky\Desktop\Projects\test\node_modules\webpack\lib\Compiler.js
C:\Users\krcky\Desktop\Projects\test\node_modules\webpack\lib\webpack.js
C:\Users\krcky\Desktop\Projects\test\node_modules\react-scripts\scripts\start.js (While processing: "C:\Users\krcky\Desktop\Projects\test\node_modules\babel-preset-react-app\dependencies.js$0$9")

@hecomp there's no instructions you can follow to resolve this currently. Please wait for npm to purge or update their edge caches!

To clarify, there is nothing we can do to fix this. Please be patient, it will resolve in time.
Once it's resolved, you'll need to deeply upgrade dependencies by running yarn upgrade.
If you use npm, you may need to delete package-lock.json and re-run npm install to fix it.

thanks @Timer for being so helpful!

I've just created a new project and it seems to work as intended now.

@hecomp there's no instructions you can follow to resolve this currently. Please wait for npm to purge or update their edge caches!
To clarify, there is nothing we can do to fix this. Please be patient, it will resolve in time.
Once it's resolved, you'll need to deeply upgrade dependencies by running yarn upgrade.
If you use npm, you may need to delete package-lock.json and re-run npm install to fix it.

@Timer thanks for the input. I'll wait then.

I've just created a new project and it seems to work as intended now.
Edit:
Made it work in an existing project by running these steps:

Delete node modules
Delete package-lock.json
npm i

@krckyboy I'll try again.

@Timer @krckyboy is fixed now. Thanks y'all.

I'm still this issue.
Html Webpack Plugin:
  Error: Child compilation failed:
  Module build failed (from ./node_modules/babel-loader/lib/index.js):
  Error: [BABEL] <app-path>/node_modules/webpack/buildin/global.js: Cannot find module './src/data' (While processing: "<app-path>/node_modules/babel-preset-react-app/dependencies.js$0$9")

  - loader.js:636 Function.Module._resolveFilename
    internal/modules/cjs/loader.js:636:15

@arpitjain-in
Once it's resolved, you'll need to deeply upgrade dependencies by running yarn upgrade.
If you use npm, you may need to delete package-lock.json and re-run npm install to fix it.

Not able to run even after following below steps: -

Delete node modules
Delete package-lock.json
npm i

Are you using a registry mirror? Please run npm ls core-js-compat and post your package.json.

@Timer
{
  "name": "my-app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-scripts": "3.2.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

Please run npm ls core-js-compat.

@Timer
<EMAIL_ADDRESS><path>/my-app
└─┬<EMAIL_ADDRESS>  ├─┬<EMAIL_ADDRESS>  │ └─┬<EMAIL_ADDRESS>  │   └──<EMAIL_ADDRESS>  └─┬<EMAIL_ADDRESS>    └─┬<EMAIL_ADDRESS>      └──<EMAIL_ADDRESS>deduped

You are still on an old version of<EMAIL_ADDRESS>Be sure you are following these instructions: https://github.com/facebook/create-react-app/issues/8062#issuecomment-560550872.
If that doesn't work, please try creating a project from scratch to be sure you get<EMAIL_ADDRESS>


Sass lang support

Hey!
Right now only scss syntax is supported, and the following results in error:
button
	padding: 10px 20px
	font-family: "Consolas", monospace

Error: Invalid CSS after "": expected 1 selector or at-rule, was "button" while parsing file: path/to/vue-project/src/components/random.vue

I like jade + sass, is there a way to write sass?
Thanks!

This is a limitation of node-sass, it no longer supports sass syntax - it's only scss now :/

Oh, that's a bummer...
Is there a way to do this?
Thanks for your help!

The only way to do this would be to write a custom compiler for vueify that spawns a child process to run the old ruby version of sass. Theoretically this should work, but I assume it's going to be pretty slow.

Yeah, ruby...
Thanks anyway.

Ah, just found out node-sass does support the SASS syntax: you need to provide a sass option in vue.config.js:
module.exports = {
  sass: {
     indentedSyntax: true
  }
}

https://github.com/sass/node-sass#indentedsyntax

Thanks a lot! :smile:

@yyx990803 This doesn't work anymore with vue 2.0.1. I've got the same exact settings in vue.conf.js, but I'm getting the following error (note I'm using a vanilla browserify template from the CLI):
Invalid CSS after "": expected 1 selector or at-rule, was "body" while parsing file...
while trying to compile the following (in components/Hello.vue)
// some code here for the template and the script

<style lang="sass" scoped>

body
  background-color: red

</style>


bower.json main section needs only either minified or unminified files, not both

This screws with wiredep in that both minified and unminified versions get injected into the project.
I can submit a pull request, if needed.
Thanks

nm - I see it has already been fixed. Sorry about that.


Package info plugin moving to external

I updated plugin tools and running formatter changed quite a lot of files. I will send a separate PR for that.


two objects with same alias not possible

Hey, i ran into the following problem:
I'm tying to get a start and an endadress from the Database . when getting the data from the database i would like to put it into the following structure:
'startAdress'=>[        'startNote(info)', 	'adresses.street', 	'startAdrNr(nr)', 	'adresses.zip(zip)', 	'adresses.place(place)' 	], 'endAdress'=>[ 	'endNote(info)', 	'eAdr.street(street)', 	'endAdrNr(nr)', 	'eAdr.zip(zip)', 	'eAdr.place(place)' ],
if i do so, the start and end address become the same. Is there a way to resolve that?
edit:
I just realized that this may also be a join issue. I have a database called addresses in this i store each address with the place and zip and join them on the id. I need to join them twice for the start address and the end address. What i tried to do is the following.
$data = $database->select('orders',[ '[>]adresses'=>['startAdress'=>'id'], '[>]adresses(eAdr)'=>['endAdress'=>'id'],         ]....

I'm running into the same issue. I have the following query:
$db->select('items',
  ['[>]users' => ['owner' => 'id']],
  [
    'items.id',
    'items.name',
    'owner' => ['users.id (id)', 'users.name (name)']
  ]
);

Expected output (JSON):
{
  "id": 1,
  "name": "item name",
  "owner": {
    "id": 2,
    "name": "user name"
  }
}

Actual output (JSON):
{
  "id": 2,
  "name": "user name",
  "owner": {
    "id": 2,
    "name": "user name"
  }
}

So it will use the value of the last field with the same name for all fields with that name.
I've noticed when using debug mode, that the SQL query adds these alias in the query (users.id AS id). It seems to me that this would be fixed by selecting the fields as their actual name (users.id) and then mapping them to the data model when the response comes back.

That's because the PDO layer or database engine will return fetched data as one-dimensional array that the alias column name will be overridden.
But right now, I have a new idea to make this work possible. It may be supported on next version.

Any updates on this ? Would love to have this feature!


Change technique for comparing without whitespace

#567 introduced comparing strings disregarding trailing whitespace for PostgreSQL CHAR mapping. This was done using Span, but since then apparently EF Core changed the comparer function to be an expression tree (as opposed to a lambda), and Spans aren't legal there yet.
Replaced with a function that performs character comparison, disregarding trailing nulls.

I think I figured out what's going on...
@austindrenski can I ask you to investigate the test failure? It seems that the previous code may not have been working exactly as expected: the current x.AsSpan().TrimEnd() == y.AsSpan().TrimEnd() actually compares that the resulting spans are the same, i.e. that they're over the same segment of the same string, and not that they're value-equals. So if we have s1 and s2 such that s1.Equals(s2) but !object.ReferenceEquals(s1, s2), then s1.AsSpan() == s2.AsSpan() is false.
In other words, I think the the new code in this PR which avoids spans is actually more correct - but it's triggering a test failure which I don't have time to investigate...

By the way, instead of manually writing the comparison code as i did, it may be better to simply do it like this:
static bool EqualsWithoutTrailingWhitespace(string a, string b)
    => a.AsSpan().TrimEnd().SequenceEqual(b.AsSpan().TrimEnd());

The key here is that once we wrap the expression in a function, it can be integrated into the expression tree above without any problems. This seems better than writing the code ourselves, any objections?
However, this still doesn't solve the failing test, hope you can make sense of it @austindrenski.

One last comment, is that the comparer expression currently returns false if x and y are null, is this the right behavior?

This seems better than writing the code ourselves, any objections?

Nope!

However, this still doesn't solve the failing test, hope you can make sense of it @austindrenski.

I'll try to take a closer look tonight.

One last comment, is that the comparer expression currently returns false if x and y are null, is this the right behavior?

Well, that's the PostgreSQL behavior, and IIRC this was introduced because we had an issue with local cache comparisons, so we were trying to emulate the PostgreSQLchar(n) comparison exactly.
So I think that this is what we want... If that sounds wonky to you, I can take another look at this too?

This seems better than writing the code ourselves, any objections?

Nope!

However, this still doesn't solve the failing test, hope you can make sense of it @austindrenski.

I'll try to take a closer look tonight.

OK, in that case feel free to just submit a new PR fixing whatever's wrong and using Spans within a method - we can close this PR at that point.

One last comment, is that the comparer expression currently returns false if x and y are null, is this the right behavior?

Well, that's the PostgreSQL behavior, and IIRC this was introduced because we had an issue (#567) with local cache comparisons, so we were trying to emulate the PostgreSQLchar(n) comparison exactly.
So I think that this is what we want... If that sounds wonky to you, I can take another look at this too?

I'm honestly not sure... This doesn't seem like anything that would be specific to PostgreSQL CHAR(n), so we should look at what other value comparers are doing. From a very brief look, it seems like null values may already be handled outside of the comparison delegate, i.e. that comparers assume the values aren't null - if you could poke around and confirm that would be great.

Hmm. I'm actually getting a compilation error for this using Rider with a nightly .NET Core 3.0 SDK:

NpgsqlCharacterTypeMapping.cs(29, 53): [CS8640] Storage/Internal/Mapping/NpgsqlCharacterTypeMapping.cs(29,53): error CS8640: Expression tree cannot contain value of ref struct or restricted type 'ReadOnlySpan'.
NpgsqlCharacterTypeMapping.cs(29, 88): [CS8640] Storage/Internal/Mapping/NpgsqlCharacterTypeMapping.cs(29,88): error CS8640: Expression tree cannot contain value of ref struct or restricted type 'ReadOnlySpan'.

Hmm. I'm actually getting a compilation error for this using Rider with a nightly .NET Core 3.0 SDK:

But with the current npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/tree/dev, right?

But with the current npgsql/Npgsql.EntityFrameworkCore.PostgreSQL/tree/dev, right?

Yep

@khellang we're working on fixing this, in the meantime you can just delete the problematic code to make it compile.

@austindrenski any progress on this? This issue is making it difficult to work with our dev branch...

Being a data driven person I was having some benchmarking fun this morning just to prove the obvious...
using System;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;

namespace BechmarkCompareWithoutWhitespace
{
    public class CompareWithoutWhitepaceImplementations
    {
        [Params(1, 10, 100, 1000)]
        public int RandomChars { get; set; }

        [Params(1, 10, 100, 1000)]
        public int TrailingWhitespace { get; set; }

        private static readonly char[] WhiteSpaceChars = new char[] {
            '\u0009', '\u000A', '\u000B', '\u000C', '\u000D',
            '\u0020', '\u0085', '\u00A0', '\u1680', '\u2000',
            '\u2001', '\u2002', '\u2003', '\u2004', '\u2005',
            '\u2006', '\u2007', '\u2008', '\u2009', '\u200A',
            '\u2028', '\u2029', '\u202F', '\u205F', '\u3000'
            };

        private string data;

        [GlobalSetup]
        public void GlobalSetup()
        {
            var random = new Random(42);
            var chars = new char[RandomChars + TrailingWhitespace];
            for (int i = 0; i < RandomChars; i++)
            {
                char c;
                do
                {
                    c = (char)random.Next(char.MinValue, char.MaxValue);
                } while (char.IsWhiteSpace(c) || char.IsSurrogate(c) || char.IsControl(c));
                chars[i] = c;
            }
            for (int i = RandomChars; i < RandomChars + TrailingWhitespace; i++)
            {
                var c = (char)random.Next(0, 24);
                chars[i] = c;
            }
            data = new string(chars);
        }

        static bool EqualsWithoutTrailingWhitespaceManual(string a, string b)
        {
            var (i, j) = (0, 0);

            for (i = a.Length - 1; i >= 0 && char.IsWhiteSpace(a[i]); i--) ;
            for (j = b.Length - 1; j >= 0 && char.IsWhiteSpace(b[j]); j--) ;

            if (i != j)
                return false;

            for (; i > -1; i--)
                if (a[i] != b[i])
                    return false;

            return true;
        }

        static bool EqualsWithoutTrailingWhitespaceSpan(string a, string b)
            => a.AsSpan().TrimEnd().SequenceEqual(b.AsSpan().TrimEnd());

        [Benchmark]
        public void Manually() => EqualsWithoutTrailingWhitespaceManual(data, data);

        [Benchmark]
        public void ViaSpan() => EqualsWithoutTrailingWhitespaceSpan(data, data);
    }

    class Program
    {
        static void Main(string[] args)
        {
            var summary = BenchmarkRunner.Run<CompareWithoutWhitepaceImplementations>();
        }
    }
}

BenchmarkDotNet=v0.11.4, OS=Windows 10.0.17134.590 (1803/April2018Update/Redstone4)
Intel Core i7-3667U CPU 2.00GHz (Ivy Bridge), 1 CPU, 4 logical and 2 physical cores
.NET Core SDK=3.0.100-preview-010184
  [Host]     : .NET Core 3.0.0-preview-27324-5 (CoreCLR 4.6.27322.0, CoreFX <IP_ADDRESS>11), 64bit RyuJIT
  DefaultJob : .NET Core 3.0.0-preview-27324-5 (CoreCLR 4.6.27322.0, CoreFX <IP_ADDRESS>11), 64bit RyuJIT

|   Method | RandomChars | TrailingWhitespace |        Mean |      Error |     StdDev |      Median |
|--------- |------------ |------------------- |------------:|-----------:|-----------:|------------:|
| Manually |           1 |                  1 |    12.05 ns |  0.3147 ns |  0.4613 ns |    12.02 ns |
|  ViaSpan |           1 |                  1 |    27.58 ns |  0.5930 ns |  1.1139 ns |    27.34 ns |
| Manually |           1 |                 10 |    27.24 ns |  0.5768 ns |  0.7294 ns |    27.07 ns |
|  ViaSpan |           1 |                 10 |    27.25 ns |  0.5430 ns |  0.5080 ns |    27.12 ns |
| Manually |           1 |                100 |   154.78 ns |  2.4421 ns |  2.1649 ns |   154.42 ns |
|  ViaSpan |           1 |                100 |    27.24 ns |  0.6161 ns |  0.9222 ns |    27.01 ns |
| Manually |           1 |               1000 | 1,375.55 ns | 27.2212 ns | 30.2563 ns | 1,372.75 ns |
|  ViaSpan |           1 |               1000 |    27.27 ns |  0.6520 ns |  0.6403 ns |    27.03 ns |
| Manually |          10 |                  1 |    26.95 ns |  0.5365 ns |  0.4756 ns |    26.79 ns |
|  ViaSpan |          10 |                  1 |    27.08 ns |  0.5883 ns |  0.8053 ns |    26.94 ns |
| Manually |          10 |                 10 |    49.02 ns |  0.9795 ns |  1.2029 ns |    49.14 ns |
|  ViaSpan |          10 |                 10 |    34.12 ns |  0.8147 ns |  0.9055 ns |    34.08 ns |
| Manually |          10 |                100 |   168.21 ns |  3.3397 ns |  3.1240 ns |   167.04 ns |
|  ViaSpan |          10 |                100 |    27.15 ns |  0.5903 ns |  0.9862 ns |    26.68 ns |
| Manually |          10 |               1000 | 1,374.55 ns | 30.9145 ns | 27.4049 ns | 1,373.80 ns |
|  ViaSpan |          10 |               1000 |    26.93 ns |  0.5890 ns |  0.5221 ns |    26.83 ns |
| Manually |         100 |                  1 |   157.16 ns |  3.1203 ns |  3.2043 ns |   157.18 ns |
|  ViaSpan |         100 |                  1 |    27.47 ns |  0.5958 ns |  1.1899 ns |    27.18 ns |
| Manually |         100 |                 10 |   168.49 ns |  3.3561 ns |  3.1393 ns |   167.52 ns |
|  ViaSpan |         100 |                 10 |    27.40 ns |  0.3675 ns |  0.3069 ns |    27.42 ns |
| Manually |         100 |                100 |   290.39 ns |  5.5853 ns |  4.9512 ns |   289.66 ns |
|  ViaSpan |         100 |                100 |    27.58 ns |  0.5680 ns |  0.5579 ns |    27.43 ns |
| Manually |         100 |               1000 | 1,501.17 ns | 29.1189 ns | 38.8729 ns | 1,488.25 ns |
|  ViaSpan |         100 |               1000 |    27.74 ns |  0.5901 ns |  0.6314 ns |    27.58 ns |
| Manually |        1000 |                  1 | 1,376.20 ns | 27.2498 ns | 40.7862 ns | 1,364.46 ns |
|  ViaSpan |        1000 |                  1 |    27.61 ns |  0.4196 ns |  0.3925 ns |    27.53 ns |
| Manually |        1000 |                 10 | 1,379.82 ns | 26.3609 ns | 28.2058 ns | 1,375.24 ns |
|  ViaSpan |        1000 |                 10 |    33.95 ns |  0.4764 ns |  0.4223 ns |    33.85 ns |
| Manually |        1000 |                100 | 1,513.80 ns | 29.9750 ns | 30.7821 ns | 1,521.18 ns |
|  ViaSpan |        1000 |                100 |    40.22 ns |  0.8424 ns |  0.7468 ns |    40.05 ns |
| Manually |        1000 |               1000 | 2,708.46 ns | 51.3989 ns | 54.9962 ns | 2,697.16 ns |
|  ViaSpan |        1000 |               1000 |    27.56 ns |  0.5701 ns |  0.5599 ns |    27.50 ns |

Since the ViaSpan runs seems a little too O(1) to me I'm guessing (without looking at the actual code) that it is taking some sort of shortcut if it's given the same string reference.
I accounted for that and did another run:
using System;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;

namespace BechmarkCompareWithoutWhitespace
{
    public class CompareWithoutWhitepaceImplementations
    {
        [Params(1, 10, 100, 1000)]
        public int RandomChars { get; set; }

        [Params(1, 10, 100, 1000)]
        public int TrailingWhitespace { get; set; }

        private static readonly char[] WhiteSpaceChars = new char[] {
            '\u0009', '\u000A', '\u000B', '\u000C', '\u000D',
            '\u0020', '\u0085', '\u00A0', '\u1680', '\u2000',
            '\u2001', '\u2002', '\u2003', '\u2004', '\u2005',
            '\u2006', '\u2007', '\u2008', '\u2009', '\u200A',
            '\u2028', '\u2029', '\u202F', '\u205F', '\u3000'
            };

        private string data1;
        private string data2;

        [GlobalSetup]
        public void GlobalSetup()
        {
            var random = new Random(42);
            var chars = new char[RandomChars + TrailingWhitespace];
            for (int i = 0; i < RandomChars; i++)
            {
                char c;
                do
                {
                    c = (char)random.Next(char.MinValue, char.MaxValue);
                } while (char.IsWhiteSpace(c) || char.IsSurrogate(c) || char.IsControl(c));
                chars[i] = c;
            }
            for (int i = RandomChars; i < RandomChars + TrailingWhitespace; i++)
            {
                var c = (char)random.Next(0, 24);
                chars[i] = c;
            }
            data1 = new string(chars);
            data2 = new string(chars);
        }

        static bool EqualsWithoutTrailingWhitespaceManual(string a, string b)
        {
            var (i, j) = (0, 0);

            for (i = a.Length - 1; i >= 0 && char.IsWhiteSpace(a[i]); i--) ;
            for (j = b.Length - 1; j >= 0 && char.IsWhiteSpace(b[j]); j--) ;

            if (i != j)
                return false;

            for (; i > -1; i--)
                if (a[i] != b[i])
                    return false;

            return true;
        }

        static bool EqualsWithoutTrailingWhitespaceSpan(string a, string b)
            => a.AsSpan().TrimEnd().SequenceEqual(b.AsSpan().TrimEnd());

        [Benchmark]
        public void Manually() => EqualsWithoutTrailingWhitespaceManual(data1, data2);

        [Benchmark]
        public void ViaSpan() => EqualsWithoutTrailingWhitespaceSpan(data1, data2);
    }

    class Program
    {
        static void Main(string[] args)
        {
            var summary = BenchmarkRunner.Run<CompareWithoutWhitepaceImplementations>();
        }
    }
}

BenchmarkDotNet=v0.11.4, OS=Windows 10.0.17134.590 (1803/April2018Update/Redstone4)
Intel Core i7-3667U CPU 2.00GHz (Ivy Bridge), 1 CPU, 4 logical and 2 physical cores
.NET Core SDK=3.0.100-preview-010184
  [Host]     : .NET Core 3.0.0-preview-27324-5 (CoreCLR 4.6.27322.0, CoreFX <IP_ADDRESS>11), 64bit RyuJIT
  DefaultJob : .NET Core 3.0.0-preview-27324-5 (CoreCLR 4.6.27322.0, CoreFX <IP_ADDRESS>11), 64bit RyuJIT

|   Method | RandomChars | TrailingWhitespace |        Mean |      Error |     StdDev |      Median |
|--------- |------------ |------------------- |------------:|-----------:|-----------:|------------:|
| Manually |           1 |                  1 |    12.27 ns |  0.2658 ns |  0.2487 ns |    12.25 ns |
|  ViaSpan |           1 |                  1 |    34.31 ns |  0.7229 ns |  0.9650 ns |    34.02 ns |
| Manually |           1 |                 10 |    27.22 ns |  0.7673 ns |  0.7178 ns |    27.02 ns |
|  ViaSpan |           1 |                 10 |    30.85 ns |  0.6676 ns |  0.8199 ns |    30.64 ns |
| Manually |           1 |                100 |   156.90 ns |  3.1685 ns |  2.6459 ns |   157.67 ns |
|  ViaSpan |           1 |                100 |    46.65 ns |  0.9553 ns |  1.2753 ns |    46.18 ns |
| Manually |           1 |               1000 | 1,372.07 ns | 25.4872 ns | 23.8408 ns | 1,367.46 ns |
|  ViaSpan |           1 |               1000 |   156.58 ns |  3.1933 ns |  2.6666 ns |   155.77 ns |
| Manually |          10 |                  1 |    29.55 ns |  1.3067 ns |  3.6426 ns |    27.95 ns |
|  ViaSpan |          10 |                  1 |    31.45 ns |  0.6682 ns |  1.0791 ns |    31.40 ns |
| Manually |          10 |                 10 |    46.79 ns |  0.9541 ns |  1.2737 ns |    46.46 ns |
|  ViaSpan |          10 |                 10 |    37.80 ns |  0.8037 ns |  1.0730 ns |    37.51 ns |
| Manually |          10 |                100 |   170.42 ns |  4.0204 ns |  4.7860 ns |   170.42 ns |
|  ViaSpan |          10 |                100 |    47.35 ns |  0.9079 ns |  0.8916 ns |    47.21 ns |
| Manually |          10 |               1000 | 1,372.77 ns | 23.8863 ns | 21.1746 ns | 1,368.66 ns |
|  ViaSpan |          10 |               1000 |   162.48 ns |  3.1062 ns |  3.0507 ns |   162.92 ns |
| Manually |         100 |                  1 |   157.01 ns |  3.0296 ns |  2.8339 ns |   157.06 ns |
|  ViaSpan |         100 |                  1 |    44.72 ns |  0.8943 ns |  0.8365 ns |    44.83 ns |
| Manually |         100 |                 10 |   169.88 ns |  3.4205 ns |  3.9390 ns |   169.31 ns |
|  ViaSpan |         100 |                 10 |    47.72 ns |  0.6365 ns |  0.5642 ns |    47.75 ns |
| Manually |         100 |                100 |   290.65 ns |  5.7775 ns |  9.1637 ns |   287.98 ns |
|  ViaSpan |         100 |                100 |    61.63 ns |  1.1711 ns |  1.0382 ns |    61.13 ns |
| Manually |         100 |               1000 | 1,504.31 ns | 30.0439 ns | 34.5986 ns | 1,493.28 ns |
|  ViaSpan |         100 |               1000 |   169.40 ns |  3.2719 ns |  3.0605 ns |   169.31 ns |
| Manually |        1000 |                  1 | 1,374.86 ns | 26.6749 ns | 39.0997 ns | 1,357.74 ns |
|  ViaSpan |        1000 |                  1 |   149.83 ns |  3.4464 ns |  4.9428 ns |   149.54 ns |
| Manually |        1000 |                 10 | 1,375.15 ns | 26.7861 ns | 23.7451 ns | 1,370.14 ns |
|  ViaSpan |        1000 |                 10 |   162.55 ns |  3.2528 ns |  3.4804 ns |   161.86 ns |
| Manually |        1000 |                100 | 1,498.35 ns | 27.0862 ns | 25.3364 ns | 1,491.66 ns |
|  ViaSpan |        1000 |                100 |   179.70 ns |  3.5309 ns |  3.7780 ns |   179.28 ns |
| Manually |        1000 |               1000 | 2,661.97 ns | 35.1185 ns | 27.4182 ns | 2,659.97 ns |
|  ViaSpan |        1000 |               1000 |   262.18 ns |  4.5691 ns |  4.2739 ns |   261.70 ns |

Closing in favor of #841


High CPU Usage

I'm on Windows 7 x64. I have a quad-core 4.2ghz i5 running under the high performance power plan.
In 24 hours Gridcoin Wallet takes up 13 hours, 42 minutes of CPU time.
This is really cutting into my CPU time available for BOINC.
Is there anything that can be done about this? What is Gridcoin Wallet doing that it uses so much CPU?

Fixed with #301. Will be solved in the next version :)

You guys rock. Keep up the incredible work.


Fix debug info for variables without storage.

What's in this pull request?
Fix debug info for variables without storage.
Resolved bug number: rdar://problem/26429250

@swift-ci: please test and merge

@swift-ci Please test and merge


Project structure changes

Project structure changes

@sampankumar Closing this as we have done the structural changes in other PR


Verifying the role assignments of a system-managed policy identity requires case changes

Describe the bug
There is an outstanding bug in the Azure Policy Assignment API Here: https://github.com/Azure/azure-powershell/issues/10196
This requires a user to manually assign permissions to a system-generated identity via a workaround (either Powershell or AZ Cli). When I retrieve the roleDefinitionIds from a policy definition to ensure that the workaround was successful, I have to change microsoft.authorization in the role identifier in order for the az role assignment list command to work.
Command Name
az policy definition show and az role assignment list
Errors:
Returns an empty list of role assignments erroneously.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

az policy definition show --name <name> --scope <scope>
Take the roleDefinitionIDs from policyRule.then.details.roleDefinitionId.

az role assignment list --assignee <uuid> --scope /subscriptions/<sub_id> --role /subscriptions/<sub_id>/providers/microsoft.authorization/roleDefinitions/<role_id>

Returns : []

Change microsoft.authorization to Microsoft.Authorization

az role assignment list --assignee <uuid> --scope /subscriptions/<sub_id> --role /subscriptions/<sub_id>/providers/Microsoft.Authorization/roleDefinitions/<role_id>

Returns: [{<role_assignment_object>}

Expected Behavior
That the role definition returned by an azure CLI call can be used in a subsequent azure CLI call without the need for transformation.
Environment Summary
macOS-10.15.5-x86_64-i386-64bit
Python 3.8.3
Installer: HOMEBREW

azure-cli 2.6.0 *

Additional Context

add to S172

@cgordoncarroll  Hi, this is due to the inconsistency case of the ResourceType name, which is case-sensitive by design, so microsoft.authorization is not a valid ResourceType.
May I ask why do you use the all-lowercase name of ResourceType?

@cgordoncarroll  any update?

Because there is no reply to this question for a long time, I will close it temporarily. If you have any questions, please feel free to let us know.


App force closed

Hello,
I have to recreate the exact same app in the repository here, however when I open it, it force closes and throws an error
android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@1454e05 -- permission denied for window type 2006
at android.view.ViewRootImpl.setView(ViewRootImpl.java:702)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:342)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
at com.txusballesteros.bubbles.BubblesService$2.run(BubblesService.java:120)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
I have attached the Main Activity code in the Doc, please assist.
Regards,
Fayaz
New Microsoft Word Document (2).docx

@fayazara I'm having the exact same problem. Was really looking forward to using this library.

@fayazara I found the issue. Android M requires a permission this lib needs to be called at runtime. Here's how to go about it:
`private static final int OVERLAY_REQUEST_CODE = 2033; // ID of the permission request.
// Add this to wherever you're initializing your bubbleManager, mine is in onCreate
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//...
// Check build to see if we're running M
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
// Check to see if permission has been granted.
if (!Settings.canDrawOverlays(this)) {
// If it hasn't, start an intent to request the permission
Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, Uri.parse("package:" + getPackageName()));
startActivityForResult(intent, OVERLAY_REQUEST_CODE);
}
else {
// Otherwise, if the permission has been granted, initialize the bubblesManager
bubblesManager = new BubblesManager.Builder(this).setTrashLayout(R.layout.bubble_trash).build();
bubblesManager.initialize();
}
}
}
// Finally, have a callback ready when permission is granted
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == OVERLAY_REQUEST_CODE) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
            if (Settings.canDrawOverlays(this)) {
                BubbleLayout bubbleView = (BubbleLayout) LayoutInflater.from(Lyfe.this).inflate(R.layout.bubble_user, null);

                bubblesManager = new BubblesManager.Builder(this).build();
                bubblesManager.initialize();
                bubblesManager.addBubble(bubbleView, 60, 20);
            }
        }
    }

}
`
Hope that helps! Shout if you need a full example.

Hi,
Thanks you so much for the response, I have added the permission, and it works. However, when I try to delete the bubble, it doesn't close, just stays, I might have missed out something, could you kindly help me out, amateur at android as well as android. Thanks.
Here's my git https://github.com/fayazara/Energia
Thanks,
Fayaz

i have been working on this issue and i fixed it please go a head to my modification and clone it
https://github.com/abdelrahmana/bubble-Android-
cheers


Scope out autocast for mult in extended atten mask gen

This PR addresses nan issue appeared in loss computation for BERT family.
JH...!

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

@regisss Thank you very much for your review. Your comment is addressed now. Please help review and merge. Thanks!
JH...!

Tests failed because this PR was open from a fork. Merging.


How does this compare to the blazer hero project?

one is server mode one is client mode.
But besides that any major differences ?

Hello,
Both BlazorHero and we are applying the principles of clean architecture, and we are both using the MudBlazor component library.
Nevertheless, BlazorHero is still on .NET6, while we are on .NET7, which feature plans to migrate to .NET8. Besides that, BlazorHero hasn't been updated in over 2 years, while we are actively working on this project.
I hope this has answered your question.
Kind regards,
Bram

@Bram1903 so happy to hear you guys wanna migrate it to .NET8. You two should really add a "buy me coffee"' or something donate link add

@jochem4207, thank you for your support and suggestions! I don't think it's necessary because it won't change anything. By the way, I want to mention that the biggest advantage of this project is that I have developed a code generation extension for vs.net for this project, which can greatly reduce repetitive work."

@jochem4207, thank you for your support and suggestions! I don't think it's necessary because it won't change anything. By the way, I want to mention that the biggest advantage of this project is that I have developed a code generation extension for vs.net for this project, which can greatly reduce repetitive work."

What do you mean by I don't think it's necessary? Upgrading to .NET8?

donate

Oh, hahaha. I thought you meant not upgrading to .NET8 at one point. You got me worried a bit haha

Thanks for this fantastic project!
Where can we locate the code gen tool?

@jochem4207
Thank you for the positive feedback! I'm glad you appreciate the open-source nature of the tool. I've noted your suggestion about the donation button, and I'll definitely consider implementing it. By the way, I'm currently working on another project （ https://schoolbus.blazorserver.com/ ）related to an application that tracks students' card swipes when they get on and off school buses. I'm planning to open donations for this project in the future. Your support and feedback mean a lot. Keep enjoying and let me know if there's anything else! <3


spec: disable dependency generator

pylint started to complain about Using deprecated method wrap_socket() so I fixed it in https://github.com/aiven/journalpump/pull/89


Add TypeScript details to READMEs

And in some cases, add READMEs
(this is a follow-up to #2589)

Thanks!


Inverted wire normals and/or outward_normals

Context: Needing additional checks when calculating surface polar angles around edges. Concave surfaces will inevitably have points on either side of certain edges. Depending on the degree of concavity, this will generate "flipped" polar angles (i.e. +180°). One way around this is to check the Topolys surface (wire) outward-facing normal (i.e. wire.normal ou wire.outward_normal) against that of a hypothetical Plane3D from any 3 sequential vertices of that same wire. If the normals match, then the the polar angle isn't flipped.
Issue: There's a puts "wire normal : #{wire.outward_normal}" near the end of the spec/tbd_tests_spec.rb file. One can substitute normal for outward_normal, with different outcomes. If normal, one often gets (though not systematically) "flipped" normals, i.e. opposite to the OpenStudio surface normals, or normals generated by any 3 sequential vertices of a convex surface. I suspect this has to do with directed edges (?). Instead, outward_normal will systematically returns nil (looking up the Topolys::Wire class, there doesn't seem to be any code that sets attr_reader :outward_normal).
Suggested Topolys fix: ensure that Topolys::Wire.outward_normal returns the actual surface normal.
Workaround: I'll alter for now the TBD code as to rely on OpenStudio surface normals.

TBD PR on the issue.

Topolys.wire.plane.normal systematically works though.

Switching over to wire.plane.normal does the trick. A non-issue.


Create 427-Construct Quad Tree

File(s) Modified: 0001-two-sum.py, 0002-add-two-numbers.py, etc...
Language(s) Used: python, javascript, etc...
Submission URL: _https://leetcode.com/problems/[problem-name]/submissions/xxxxxxxxx/_

Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

427. Construct Quad Tree


On android, the last line is missing

On android 9.0 and above, the last line of rich text is only half displayed, how to resolve.

@xusir2 we are seeing this too. There is a bug in React Native on Android Q here is the issue filed in their repo facebook/react-native#25258 most probable is that we'll need to wait until this is fixed on their end.

@xusir2 this PR seems to fix it. https://github.com/archriss/react-native-render-html/pull/305 Just set textBreakStrategy='simple'
related to https://github.com/facebook/react-native/issues/25258

I'm glad that you can reply to my question, but the problem has not been solved yet. I added textBreakStrategy='simple' under the Text, but it still failed to display properly, and react-native 0.59.9 was used

@xusir2 did you apply the changes from the PR I linked?

@nschild Thank you for your patience.The problem has been solved


Question on stochRSI from talib

I try to use stochRSI from talib. I just realize there are actually two outputs from talib. How can I get those two output from it?
var customStochRSI = {
optInTimePeriod: 14,
optInFastK_Period: 3,
optInFastD_Period: 3,
optInFastD_MAType: 0
}
this.addTalibIndicator('mystochrsi', 'stochrsi',  customStochRSI);
var stochRSIoutput = { this.outk,this.outd}
customStochRSI = this.talibIndicators.mystochrsi.result;
this is my current code, but it's definitely wrong.

I'm guessing you figured i tout, since. you closes this issue?

I'm guessing you figured i tout, since. you closes this issue?

Yes. I found similar code  from somebody else  code.
BTW do you know is that possible to install talib in windows 10?

No clue, I don't use Windows.
On Mon, 24 Sep 2018, 05:48 ezgoProject<EMAIL_ADDRESS>wrote:

I'm guessing you figured i tout, since. you closes this issue?
Yes. I found similar code from somebody else code.
BTW do you know is that possible to install talib in windows 10?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/askmike/gekko/issues/2557#issuecomment-423850468, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA7MD4umhXCgzi_hY3z9Lpp1AwVPZdrqks5ueAGqgaJpZM4W1xQD
.


feat(ssr-playground): Vite Fastify plugin example with SSR data hydration

This is based off ssr-vue but uses the Fastify stack instead of Express and includes simple SSR data hydration.
Done:

[x] Fastify Vite Plugin for dev bundles
[x] getSSRData() helper to retrieve SSR data universally
[ ] Fastify Vite Plugin for production bundles

I've released this as the example app of fastify-vite. Closing :)


Update to 2.5.3

Updated to latest version.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Look at that we already have #4

@msarahan merging this anyone so I can track python-dateutil. Hope that is alright.


Add french facts and models

Thanks for your submission.  I believe the needed translations are now included through another contribution.  Please review and create a new PR if you would like to propose additional changes.


Can't make it work via systemd service

Thx for the great script! One question: what is the correct way to run this script via a systemd service (I'm running Ubuntu 16.04)?
When I issue the following command in terminal everything works as expected: a name space is created and openvpn tunnel is successfully running within it.
openvpn --ifconfig-noexec --route-noexec --setenv NETNS "vpn-ns" --up /opt/openvpn-netns/openvpn-scripts/netns --route-up /opt/openvpn-netns/openvpn-scripts/netns --down /opt/openvpn-netns/openvpn-scripts/netns --daemon ovpn-de9 –status /run/openvpn/de9.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/de9.conf --writepid /run/openvpn/de9.pid
However, when I try to run the same via a systemd service at boot, the service starts and runs, but when I try to run anything in the name space I get the following:

RTNETLINK answers: Invalid argument
setting the network namespace "vpn-ns" failed: Invalid argument

When I do sudo ip netns list I get this:

RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
vpn-ns

Here's the systemd service file I'm using (which is a modification of a standard servis file that comes with openvpn package on Ubuntu 16.04):

[Unit]
Description=OpenVPN connection to %i
Documentation=man:openvpn(8)
Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
After=network.target
[Service]
RuntimeDirectory=openvpn
PrivateTmp=true
KillMode=mixed
Type=forking
ExecStart=/usr/sbin/openvpn --ifconfig-noexec --route-noexec --setenv NETNS "vpn-ns" --up /opt/openvpn-netns/openvpn-scripts/netns --route-up /opt/openvpn-netns/openvpn-scripts/netns --down /opt/openvpn-netns/openvpn-scripts/netns --daemon ovpn-%i –status /run/openvpn/%i.status 10 --cd /etc/openvpn --script-security 2 --config /etc/openvpn/%i.conf --writepid /run/openvpn/%i.pid
PIDFile=/run/openvpn/%i.pid
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/etc/openvpn
Restart=on-failure
RestartSec=3
ProtectSystem=yes
LimitNPROC=10
DeviceAllow=/dev/null rw
DeviceAllow=/dev/net/tun rw
[Install]
WantedBy=multi-user.target

What am I doing wrong? Your help would be greatly appreciated!

I finally got it to work with the following service file (in my case, netns script was symlinked to /usr/local/sbin/).

[Unit]
Description=OpenVPN inside network namespace to %i
Documentation=man:openvpn(8)
Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn23ManPage
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/var/run/openvpn/%i.pid
WorkingDirectory=/etc/openvpn/
ExecStart=/usr/sbin/openvpn --ifconfig-noexec --route-noexec --setenv NETNS vpn-ns --up /usr/local/sbin/netns --route-up /usr/local/sbin/netns --down /usr/loca$
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target

Now, vpn starts within a network namespace automatically at boot. Then I start deluge daemon in the namespace (under user "deluge") the following way:
/sbin/ip netns exec vpn-ns sudo -u deluge /usr/bin/deluged -d
My problem is that now I cannot figure out how to connect to the daemon from deluge webui (previously it was reachable under <IP_ADDRESS>:58846)

Hi, see may script:
https://github.com/lebomb44/osmc/blob/develop/osmc.txt
I use nginx to route the port to the VPN namespace using a point to point internal network

I made a fork with a systemd service with optional failover to other backends.


Payment options do not work with payU module

Hey, so I try to implement additional payment method - PayU -  https://github.com/PayU-EMEA/plugin_prestashop. Once I enable it I receive 500 error on the VSF implementation.
Cannot read properties of undefined (reading 'code')

      const { data } = await $vsf.$prestashop.api.getPaymentMethods({ psCookieKey, psCookieValue });
      if (data.code === 200) {
        if (Object.keys(data.psdata).length === 0) {
          app.context.redirect('/checkout/shipping');
        }
      } else {
        app.context.redirect('/checkout/shipping');

in middleware/checkout.js
Any ideas what can cause this issue? I tried other Polish based provider and it worked without issues.

Hey,
VSF 2 is deprecated, so we stopped active development on it, but it's a good sample to get familiar with headless/modern front idea. FYI,currently we are working on something new based on React.js,
have a super day.


Add support for rails 6

Why: sass-rails v6 adds support for rails 6 and this was not being installed due to a version restriction.

Can you remove the EOL ruby/rails versions from the CI builds and then take a look at the tests again?

@siegy22 Tests are passing now :)

Thank you very much! 💚  And sorry for the delays.


[Bug]: Unable to interpolate static replicas using Mia-Platform double mustache notazion

What version or versions you have tested?
1.2.2
Which operating systems have you used?

[X] macOS
[ ] Windows
[ ] Linux

What did you expect to happen?
I expect the following command to be successfully executed with a interpolated value for static replicas:
mlp kustomize "${OVERLAY_PATH}" -o "${DESTINATION_PATH}/kustomize-output.yaml"
What happened instead?
I set a environment variable on the Mia-Platform static replicas value of a service:
{{NGINX_REPLICAS}}
The resulting deployment file is the following:
spec:
  replicas: {{NGINX_REPLICAS}}

The following command fails:
mlp kustomize "${OVERLAY_PATH}" -o "${DESTINATION_PATH}/kustomize-output.yaml"
Following a screenshot of the error:

Code of Conduct

[X] I agree to follow this project’s Code of Conduct

Hi guys,
do you have any update on this bug?

Hi! I investigated on this issue. The raised error is from kustomize, which raise this error because you try to build a kubernetes resource with a string ({{NGINX_REPLICAS}}) inside the replicas field, which must be a number.
To fix this, you should interpolate the files (with mlp interpolate) before the kustomize build.
I close this bug, since it is not a mlp bug. Reopen it if something is not clear.


subscribeToTopic throwing  authenticate to the FCM servers error

[READ] Step 1: Are you in the right place?

For issues related to the code in this repository file a Github issue.
If the issue pertains to Cloud Firestore, read the instructions in the "Firestore issue"
template.
For general technical questions, post a question on StackOverflow
with the firebase tag.
For general Firebase discussion, use the firebase-talk
google group.
For help troubleshooting your application that does not fall under one
of the above categories, reach out to the personalized
Firebase support channel.

[REQUIRED] Step 2: Describe your environment

Operating System version: _MAC Ventura 13.3.1
Firebase SDK version: 9.5.0_
Firebase Product: Messaging_ (auth, database, storage, etc)
Node.js version: 12.16.3_
NPM version: 6.14.4_

[REQUIRED] Step 3: Describe the problem
Trying to register tokens to topic throws Authentication error.
Steps to reproduce:
admin.messaging().subscribeToTopic(deviceToken, topicName)
The above throws FCM authentication error
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
{
index: 0,
error: FirebaseMessagingError: An error occurred when trying to authenticate to the FCM servers. Make sure the credential used to authenticate this SDK has the proper permissions. See https://firebase.google.com/docs/admin/setup for setup instructions.
at FirebaseMessagingError.FirebaseError [as constructor] (/Users/predeep/git/talentd_bl/node_modules/firebase-admin/lib/utils/error.js:44:28)
at FirebaseMessagingError.PrefixedFirebaseError [as constructor] (/Users/predeep/git/talentd_bl/node_modules/firebase-admin/lib/utils/error.js:90:28)
at new FirebaseMessagingError (/Users/predeep/git/talentd_bl/node_modules/firebase-admin/lib/utils/error.js:256:16)
at Function.FirebaseMessagingError.fromTopicManagementServerError (/Users/predeep/git/talentd_bl/node_modules/firebase-admin/lib/utils/error.js:304:16)
at /Users/predeep/git/talentd_bl/node_modules/firebase-admin/lib/messaging/messaging.js:146:63
at Array.forEach ()
at mapRawResponseToTopicManagementResponse (/Users/predeep/git/talentd_bl/node_modules/firebase-admin/lib/messaging/messaging.js:142:26)
at /Users/predeep/git/talentd_bl/node_modules/firebase-admin/lib/messaging/messaging.js:623:20
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
errorInfo: [Object],
codePrefix: 'messaging'
}
}
Relevant Code:
try {
        admin.messaging().subscribeToTopic(deviceToken, topicName)
            .then(function(response) {
                console.log('Successfully subscribed to topic:', response);
                console.log(response["errors"]) //it has the error
            })
            .catch(function(error) {
                console.log('Error subscribing to topic:', error);
            });
    }catch(e){
        console.log(e);
    }

Sorry for the delay in reply.  For this type of issue investigation I'd recommend filing a Firebase support ticket from https://firebase.google.com/support/troubleshooter/contact . Thanks!


Share rejected: duplicate share----------Connection closed

Hello, I have a problem with miningcore which every 3 to 15min I get :
Share rejected: duplicate share [2024-12-03-0-f4c282cd-24.09.1-plus;bosminer-plus-tuner 0.9.0-f4c282cd ]
[2024-12-15 21:44:29.1009] [I] [BKC] [0HN8T0M801BTT] Connection closed
and there the pool status of my antminer dead/alive etc.. and sometimes these long and my antminer this but in "standby" I saw a lot of messages on this problem but no response.. and it must surely do it at miner who connects to my pool, do you have a solution? thanks in advance.

Hi,
Please chack the minimum diff for coin at coin page.
If share rejected is diff is to low.
Check it please.
בתאריך יום ב׳, 16 בדצמ׳ 2024, 00:20, מאת Alfa16bravo <
@.***>:

Hello, I have a problem with miningcore which every 3 to 15min I get :
Share rejected: duplicate share
[2024-12-03-0-f4c282cd-24.09.1-plus;bosminer-plus-tuner 0.9.0-f4c282cd ]
[2024-12-15 21:44:29.1009] [I] [BKC] [0HN8T0M801BTT] Connection closed
and there the pool status of my antminer dead/alive etc.. and sometimes
these long and my antminer this but in "standby" I saw a lot of messages on
this problem but no response.. and it must surely do it at miner who
connects to my pool, do you have a solution? thanks in advance.
—
Reply to this email directly, view it on GitHub
https://github.com/blackmennewstyle/miningcore/issues/201, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AYYLS25WNO4AGKW7Q3XB4A32FX6BXAVCNFSM6AAAAABTU6JW7SVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42DAOJTHAZTOMY
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I have actually for my coin (antminer s19)
"minDiff": 250000,
"maxDiff": 1000000
"targetTime": 15,
"retargetTime": 90,
"variancePercent": 30

Hello,
Can you provide more info? Which coin is it?

hello,
it's the briskcoin token (sha256d) I connect my antminer s19 to my pool, and every 5 to 10 minutes I get Share rejected: duplicate share and the connection to the pool closes. the antminer reconnects to it a few seconds later and sometimes it takes more time to reconnect and that all the time.
"banning": {
    "manager": "Integrated",
    "banOnJunkReceive": true,
    "banOnInvalidShares": false

},
"pools": [{
  "id": "BKC",
  "enabled": true,
  "coin": "Briskcoin",
  "address": "",
  "rewardRecipients": [
    {
      "address": "",
      "percentage": 0.5
    }
  ],
  "blockRefreshInterval": 1,
  "jobRebroadcastTimeout": 30,
  "clientConnectionTimeout": 600,
  "banning": {
    "enabled": false,
    "time": 600,
    "invalidPercent": 50,
    "checkThreshold": 50

  "ports": {
        "3062": {
            "listenAddress": "*",
            "difficulty": 1000,
            "varDiff": {
	    "mindiff": 512,
                "startDiff": 512,
                "targetTime": 15,
                "retargetTime": 90,
                "variancePercent": 30

        "3063": {
            "listenAddress": "*",
            "difficulty": 1000,
            "varDiff": {
                "mindiff": 250000,
                "startdiff": 250000,
            "maxdiff": 1000000,
                "targetTime": 15,
                "retargetTime": 90,
                "variancePercent": 30

        "3064": {
            "listenAddress": "<IP_ADDRESS>",
            "difficulty": 1000,
            "varDiff": {
	    "mindiff":1000000,
                "startdiff": 1000000,
                "targetTime": 15,
                "retargetTime": 90,
                "variancePercent": 30

  "daemons": [
      "host": "<IP_ADDRESS>",
      "port": 8552,
      "user": ",
      "password": ",
      "zmqBlockNotifySocket": "tcp://<IP_ADDRESS>:28332",
      "zmqTxNotifySocket": "tcp://<IP_ADDRESS>:28333"

So this coin is not supported in my repo.
But regarding the pool config.json shared you are missing the value "maxDelta": XXXXX in the varDiff section.
If i was you I would also listen to the previous advice you receive about increasing drastically the minDiff and difficulty values.
Please also remove also the maxDiff lines.
Good luck.

the problem came from brainOS with luxOS problem solved


Custom default colors

Excellent, thanks, @tupui! This way is even better. Can we set the default colors as these?
{'#DC267F'; '#E8EA2F'; '#26DCD1';'#C552E4';'#3F45D0'}
(first should go to the low-low-low scenario)

Originally posted by @gnopik in https://github.com/Simulation-Decomposition/simdec-python/issues/10#issuecomment-1766281980

SEQUENTIAL_PALETTES could either be a list of str or mpl.colors.LinearSegmentedColormap (using colormap_from_single_color). Then we just need to update the cmaps logic in palette to take that into account.

@tupui, for decomposition with 3 variables the default colors are too close to each other (screenshot #1).
When repainted, looks fine (screenshot #2). Can we have the second color palette blue-ish as in the case of two variables for decomposition (screenshot #3)?
Checked on different datasets, the same.

Yeah I've seen that. I need to understand what is happening because I would expect "Oranges" and then "Purples". Not "Reds".

All fixed with https://github.com/Simulation-Decomposition/simdec-python/commit/9d116996ab6a87cb8c11d129f014a3c4cb14f719 and a50c803ca88153e6ab5513b94f6325cc29952adb


altcoins.bitcoin-abc: 0.17.0 -> 0.17.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/bitcoin-abc/versions.
These checks were done:

built on NixOS
ran ‘/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoind -h’ got 0 exit code
ran ‘/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoind --help’ got 0 exit code
ran ‘/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoin-cli -h’ got 0 exit code
ran ‘/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoin-cli --help’ got 0 exit code
ran ‘/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoin-tx -h’ got 0 exit code
ran ‘/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoin-tx --help’ got 0 exit code
ran ‘/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/test_bitcoin --help’ got 0 exit code
ran ‘/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoin-qt -h’ got 0 exit code
ran ‘/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoin-qt --help’ got 0 exit code
found 0.17.1 with grep in /nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1
directory tree listing: https://gist.github.com/011ceeb08c6986692052c6b32e5f0577

cc @Lassulus for review

Success on x86_64-linux (full log)
Attempted: altcoins.bitcoin-abc
Partial log (click to expand)
shrinking /nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bench_bitcoin
shrinking /nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoin-qt
shrinking /nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin/bitcoin-tx
gzipping man pages under /nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/share/man/
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/lib  /nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1/bin
patching script interpreter paths in /nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1
checking for references to /build in /nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1...
postPatchMkspecs
/nix/store/ck5kx81a87c9ha625lhrfxj25s9lb31a-bitcoin-abc-0.17.1

Failure on aarch64-linux (full log)
Attempted: altcoins.bitcoin-abc
Partial log (click to expand)
  CXX      test/test_bitcoin-allocator_tests.o
  CXX      test/test_bitcoin-base32_tests.o
  CXX      test/test_bitcoin-base58_tests.o
  CXX      test/test_bitcoin-base64_tests.o
  CXX      test/test_bitcoin-bip32_tests.o
  CXX      test/test_bitcoin-blockcheck_tests.o
  CXX      test/test_bitcoin-blockencodings_tests.o
  CXX      test/test_bitcoin-bloom_tests.o
building of '/nix/store/15qixfvpac0wql9dx0pvrk2yndrby29f-bitcoin-abc-0.17.1.drv' timed out after 3600 seconds
error: build of '/nix/store/15qixfvpac0wql9dx0pvrk2yndrby29f-bitcoin-abc-0.17.1.drv' failed