Injecting auto-render code at end of DOM from  script

This is a -users question, not a -developers question, but it's not clear to me where to post such questions. Apologies if this is inappropriate, and if you have pointers to a good place to ask, I'd appreciate that.
I'm looking for an example of how to create a script from the document <head> that will inject the call to setup and execute the auto-render extension at the end of the document. This would be nice because it's tedious to inject this code when rendering multiple asciidoc source documents to HTML, and it would be simpler to just have a single block of scripts, both loading from the CDN and then setting up the auto-render call, added to the document head, for which there's a good existing asciidoc mechanism. If such an example script exists it would be great to add to the auto-render dir.

I don't think it makes sense to auto-insert this snippet at the end. You can only do so after the document has been parsed, and in that case, you might as well run the code directly. So add something like this to your <head>:
<script>
    document.addEventListener("DOMContentLoaded", function() {
        renderMathInElement(document.body);
    });
</script>

You could insert the script in that handler instead, but as I said, it would be more work for no gain.

@gagern that makes sense, thanks. I am very uneducated in JS and the DOM.

@gagern That looks useful to more people. We should add that to the auto-render docs.


⚠ Bofrost.de has degraded performance

In 9fa4038, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 935 ms

Resolved: Bofrost.de performance has improved in f9cc4e5 after 10 minutes.


Add phpstan prophecy suggestion

Hi @mglaman
This PR fixes #263. It also removes phpstan-deprecation-rule from the list, as the package is part of the dev dependencies.
Hope this helps!

Dev dependencies only get installed when it's the root package. We need to keep it as a suggestion for sites that I stalk this package because it's still not a direct dependency


git clone first

running git clone before running scripts

You're right 😅
Can you test the update script as well?


finding dependencies for TABL

Only the types of the fields/columns are needed
ie. no need to have check tables or reference tables
might be possible to get this information from nametab

done in https://github.com/abaplint/abaplint-sci-client/pull/107


No asset was released at v1.0.2

No asset was released at v1.0.2.
https://github.com/apache/maven-mvnd/releases/tag/1.0.2

The release workflow succeeded.
https://github.com/apache/maven-mvnd/actions/runs/10479803359/job/29026496043
Run actions/upload-release-asset@v1
  with:
    upload_url: https://uploads.github.com/repos/apache/maven-mvnd/releases/17116[2](https://github.com/apache/maven-mvnd/actions/runs/10479803359/job/29026496043#step:12:2)843/assets{?name,label}
    asset_path: mvnd-linux-amd6[4](https://github.com/apache/maven-mvnd/actions/runs/10479803359/job/29026496043#step:12:4)/maven-mvnd-1.0.2-linux-amd64.tar.gz
    asset_name: maven-mvnd-1.0.2-linux-amd64.tar.gz
    asset_content_type: application/x-gzip
  env:
    JAVA_VERSION: 22
    JAVA_HOME: /opt/hostedtoolcache/Java_Zulu_jdk/22.0.2-9/x[6](https://github.com/apache/maven-mvnd/actions/runs/10479803359/job/29026496043#step:12:6)4
    JAVA_HOME_22_X64: /opt/hostedtoolcache/Java_Zulu_jdk/22.0.2-[9](https://github.com/apache/maven-mvnd/actions/runs/10479803359/job/29026496043#step:12:9)/x64
    VERSION: 1.0.2
    GITHUB_TOKEN: ***
Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-[10](https://github.com/apache/maven-mvnd/actions/runs/10479803359/job/29026496043#step:12:10)-11-github-actions-deprecating-save-state-and-set-output-commands/

Dang, seems I messed up the release process...
Nevertheless, downloads are here:
https://downloads.apache.org/maven/mvnd/1.0.2/

Thank you for replying quickly.
Oh, our tool installs maven-mvnd from GitHub Releases.
We'll consider installing it from the URL.

We'll consider installing it from the URL.

Done.

https://github.com/aquaproj/aqua-registry/pull/26230
https://github.com/aquaproj/aqua-registry/releases/tag/v4.217.0

In the meantime, I updated the release (uploaded assets). Still, the "official" way to download Apache Maven binaries is thru https://downloads.apache.org/maven/ (while some of them are available from Maven Central as well, but mvnd for example is not)


#103 Add ability to retrieve wishlist from UI

Codecov Report

Merging #104 (3b6ed5f) into main (4091eb0) will decrease coverage by 0.24%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #104      +/-   ##
==========================================
- Coverage   97.08%   96.84%   -0.25%
==========================================
  Files           7        7
  Lines         378      380       +2
==========================================
+ Hits          367      368       +1
- Misses         11       12       +1

Impacted Files
Coverage Δ

service/routes.py
98.78% <50.00%> (-0.60%)
:arrow_down:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

lgtm


MUC-6 dataset

Hello, I really appreciate your work on weak supervision.
I have noticed that in your preprint, you show the results of skweak on the MUC-6 corpus.
https://arxiv.org/abs/2104.09683
I am testing different generative models and I would like to compare them on the same data sets, however, I cannot find MUC-6.
Could you, please provide me a source from which you downloaded the data set?
Is it somewhere behind a paywall?

Hi! The MUC-6 data file is too big to be put directly in the repository (due to Github's file size constraints), so we put it in the "assets" of the release: https://github.com/NorskRegnesentral/skweak/releases/download/0.2.8/muc6.spacy
This file is in the Spacy DocBin format. Note the documents are for some reason duplicated, but it doesn't change anything to the results of course.

Thank you very much!


Support pause

I want to be able to pause music loaded via LowLatencyAudio.

Is there a chance you're going to implement this method?

Any news on this?

Any update ??

any update ?


NameError: name 'pytube' is not defined

Pytube version: 9.5.0
Python version: 3.7.0
Disclaimer: I'm a noob, just downloaded the package and unable to get this code running.
from pytube import YouTube

print('Enter the YouTube video URL below')
videoLink = input()

yt = pytube.YouTube(videoLink)
videos = yt.streams.all()

s = 1
for video in videos:
    print(str(s) + " . "+str(video))
    s = s+1

print('Enter the number next to the video quality to download')

videoQuality = int(input())
downloadVideo = videos[videoQuality-1]

print('Enter the folder location where you want to save the file')
destination = input()
downloadVideo.download(destination)

print(yt.filename +" Video downloaded!")

Error Message:
Traceback (most recent call last):
  File "youtube_downloader.py", line 6, in <module>
    yt = pytube.YouTube(videoLink)
NameError: name 'pytube' is not defined

try this:
yt = YouTube(videoLink)

@FearlessENT Thanks for your response.
I tried your recommendation, I'm able to run the program now but I get different set of tracebacks now.
1 . <Stream: itag="18" mime_type="video/mp4" res="360p" fps="30fps" vcodec="avc1.42001E" acodec="mp4a.40.2"> 2 . <Stream: itag="135" mime_type="video/mp4" res="480p" fps="30fps" vcodec="avc1.4d401e"> 3 . <Stream: itag="244" mime_type="video/webm" res="480p" fps="30fps" vcodec="vp9"> 4 . <Stream: itag="397" mime_type="video/mp4" res="None" fps="30fps" vcodec="av01.0.05M.08"> 5 . <Stream: itag="134" mime_type="video/mp4" res="360p" fps="30fps" vcodec="avc1.4d4015"> 6 . <Stream: itag="243" mime_type="video/webm" res="360p" fps="30fps" vcodec="vp9"> 7 . <Stream: itag="396" mime_type="video/mp4" res="None" fps="30fps" vcodec="av01.0.05M.08"> 8 . <Stream: itag="133" mime_type="video/mp4" res="240p" fps="30fps" vcodec="avc1.4d400d"> 9 . <Stream: itag="242" mime_type="video/webm" res="240p" fps="30fps" vcodec="vp9"> 10 . <Stream: itag="395" mime_type="video/mp4" res="None" fps="30fps" vcodec="av01.0.05M.08"> 11 . <Stream: itag="160" mime_type="video/mp4" res="144p" fps="30fps" vcodec="avc1.4d400b"> 12 . <Stream: itag="278" mime_type="video/webm" res="144p" fps="30fps" vcodec="vp9"> 13 . <Stream: itag="394" mime_type="video/mp4" res="None" fps="30fps" vcodec="av01.0.05M.08"> 14 . <Stream: itag="140" mime_type="audio/mp4" abr="128kbps" acodec="mp4a.40.2"> 15 . <Stream: itag="171" mime_type="audio/webm" abr="128kbps" acodec="vorbis"> 16 . <Stream: itag="249" mime_type="audio/webm" abr="50kbps" acodec="opus"> 17 . <Stream: itag="250" mime_type="audio/webm" abr="70kbps" acodec="opus"> 18 . <Stream: itag="251" mime_type="audio/webm" abr="160kbps" acodec="opus"> Enter the number next to the video quality to download 2 Enter the folder location where you want to save the file C:\Users\Prashant\Desktop Traceback (most recent call last):   File "youtube_downloader.py", line 21, in <module>     downloadVideo.download(destination)   File "C:\Users\Prashant\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pytube\streams.py", line 217, in download     bytes_remaining = self.filesize   File "C:\Users\Prashant\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pytube\streams.py", line 164, in filesize     headers = request.get(self.url, headers=True)   File "C:\Users\Prashant\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pytube\request.py", line 21, in get     response = urlopen(url)   File "C:\Users\Prashant\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 222, in urlopen     return opener.open(url, data, timeout)   File "C:\Users\Prashant\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 531, in open     response = meth(req, response)   File "C:\Users\Prashant\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 641, in http_response     'http', request, response, code, msg, hdrs)   File "C:\Users\Prashant\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 569, in error     return self._call_chain(*args)   File "C:\Users\Prashant\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 503, in _call_chain     result = func(*args)   File "C:\Users\Prashant\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 649, in http_error_default     raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 403: Forbidden
Here is the video link that I'm trying to download:
https://www.youtube.com/watch?v=jDn2bn7_YSM
https://www.youtube.com/watch?v=fJ9rUzIMcZQ
I tried the steps mentioned below links but no luck so far. I would appreciate if you could guide me in the right direction
https://stackoverflow.com/questions/28396036/python-3-4-urllib-request-error-http-403
https://stackoverflow.com/questions/16627227/http-error-403-in-python-3-web-scraping

@prashantgonga Anytime.
I believe your second issue is one I also recently had, but I tried a fix by @fofofofofofofofoXD .
That user said to go into the pytube package folder, and edit line 64 of "mixins.py" and change &signiture= to &sig=  .
If you installed the package using pip or pip3, I believe it is located in your python folder at "\Lib\pytube\mixins.py".
If you have downloaded pytube and are using it locally, (pytube folder is in the same folder as your python script), then simply head inside the pytube folder and edit "mixins.py" .
Once again credit to @fofofofofofofofoXD for the fix.
I think this will sort the issue out for you until pytube officially updates the issue.
Let me know if you need anymore help :D

@FearlessENT Thank you so much for your help, I followed the steps mentioned in your previous comment and it fixed the issue.


Attempting to launch host from rancher hangs: "websocket: bad handshake" from rancher-agent

Rancher Versions:
Server:  rancher/server      latest      image:   dcfac2209d79
healthcheck:
ipsec:
network-services:
scheduler:
kubernetes (if applicable):
Docker Version:
rancher server:  Docker version 1.12.3, build 6b644ec
OS and where are the hosts located? (cloud, bare metal, etc):
rancher server:  rancheros-v0.7.1  on AWS
host1:  ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20161013 (ami-fd6e3bea) on AWS
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher, internal DB, ELB
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
no env yet, just trying to launch a host
Steps to Reproduce:
attempting to launch an ubuntu host from rancher via the rancher console
Results:
Host installation is hanging at the stage "Installing Rancher agent"
From the rancher/server container logs:
time="2017-02-09T23:04:34Z" level=info msg="pulling rancher/agent:v1.2.0 image."
time="2017-02-09T23:04:44Z" level=info msg="Container created for machine" containerId=3658e27d38793f7eb8988b4474ec764978d71e352765b240b77e65e0a5505004 machineId=1ph3 resourceId=1ph3
time="2017-02-09T23:04:44Z" level=info msg="Rancher-agent for machine started" containerId=3658e27d38793f7eb8988b4474ec764978d71e352765b240b77e65e0a5505004 machineExternalId=f93756e7-3237-430c-8fba-e234a2ac42b8 resourceId=1ph3
time="2017-02-09T23:04:44Z" level=info msg="Creating and uploading extracted machine config" resourceId=1ph3
time="2017-02-09T23:04:44Z" level=info msg="Machine config file created and encoded." destFile="/var/lib/cattle/machine/f93756e7-3237-430c-8fba-e234a2ac42b8/r-host1.tar.gz" resourceId=1ph3
2017-02-09 23:07:24,755 ERROR [:] [] [] [] [TaskScheduler-2] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [3]
2017-02-09 23:07:29,757 ERROR [:] [] [] [] [TaskScheduler-2] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [4]
2017-02-09 23:07:34,759 ERROR [:] [] [] [] [TaskScheduler-2] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [5]
2017-02-09 23:07:39,761 ERROR [:] [] [] [] [TaskScheduler-2] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [6]
2017-02-09 23:07:39,762 ERROR [:] [] [] [] [TaskScheduler-2] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Scheduling reconnect for [3]
2017-02-09 23:07:44,772 ERROR [:] [] [] [] [TaskScheduler-2] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [7]
2017-02-09 23:07:49,773 ERROR [:] [] [] [] [TaskScheduler-2] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [8]
2017-02-09 23:07:54,775 ERROR [:] [] [] [] [TaskScheduler-2] [i.c.p.a.s.ping.impl.PingMonitorImpl ] Failed to get ping from agent [3] count [9]

and from the rancher-agent container logs on the ubuntu Ec2:
time="2017-02-10T00:46:37Z" level=error msg="Error subscribing to events: websocket: bad handshake" subscribeUrl="ws://xxxxxxx:8080/v1/subscribe?eventNames=storage.volume.activate&eventNames=storage.volume.remove&eventNames=config.update&eventNames=compute.instance.activate&eventNames=compute.instance.deactivate&eventNames=compute.instance.force.stop&eventNames=storage.image.activate&eventNames=ping&eventNames=compute.instance.inspect&eventNames=compute.instance.pull&eventNames=compute.instance.remove"
time="2017-02-10T00:46:37Z" level=error msg="Got error response" responseHeaders=map[Server:[Jetty(9.2.11.v20150529)] Set-Cookie:[PL=rancher;Path=/] X-Api-Account-Id:[1a10] X-Rancher-Version:[v1.4.0] Content-Length:[1316] Expires:[Thu, 01 Jan 1970 00:00:00 GMT] Date:[Fri, 10 Feb 2017 00:46:36 GMT] Vary:[Accept-Encoding, User-Agent] X-Api-Client-Ip:[xxxxxx] X-Api-Schemas:[http://xxxxxxx] X-Api-User-Id:[1a10] Connection:[keep-alive] Content-Type:[application/json; charset=utf-8]] status="200 OK" statusCode=200
time="2017-02-10T00:46:37Z" level=error msg="Error response: {\"type\":\"collection\",\"resourceType\":\"subscribe\",\"links\":{\"self\":\"http:\\/\\/rancher-elb-classic-1803487995.us-east-1.elb.amazonaws.com:8080\\/v1\\/subscribe\"},\"createTypes\":{},\"actions\":{},\"data\":[],\"sortLinks\":{\"eventNames\":\"http:\\/\\/xxxxxxxx\\/v1\\/subscribe?eventNames=storage.volume.activate&eventNames=storage.volume.remove&eventNames=config.update&eventNames=compute.instance.activate&eventNames=compute.instance.deactivate&eventNames=compute.instance.force.stop&eventNames=storage.image.activate&eventNames=ping&eventNames=compute.instance.inspect&eventNames=compute.instance.pull&eventNames=compute.instance.remove&sort=eventNames\"},\"pagination\":null,\"sort\":null,\"filters\":{\"eventNames\":[{\"value\":\"storage.volume.activate\",\"modifier\":\"eq\"},{\"value\":\"storage.volume.remove\",\"modifier\":\"eq\"},{\"value\":\"config.update\",\"modifier\":\"eq\"},{\"value\":\"compute.instance.activate\",\"modifier\":\"eq\"},{\"value\":\"compute.instance.deactivate\",\"modifier\":\"eq\"},{\"value\":\"compute.instanc"
time="2017-02-10T00:46:37Z" level=fatal msg="Exiting. Error: websocket: bad handshake"

@tommy-donorschoose have you enabled proxy protocol for the ELB?

hi @aemneina thanks for the reply - I'm setting up this rancher proof of concept and I am new to all parties involved, so absolutely could be an issue with my configuration.
I did set up the proxy protocol -
Here's an excerpt from $ aws elb describe-load-balancers --load-balancer-names rancher-elb-classic
AVAILABILITYZONES	us-east-1a
AVAILABILITYZONES	us-east-1b
BACKENDSERVERDESCRIPTIONS	443
POLICYNAMES	rancher-elb-policy
BACKENDSERVERDESCRIPTIONS	8080
POLICYNAMES	rancher-elb-policy
HEALTHCHECK	10	30	HTTP:8080/ping	5	2

I followed the procedure here: https://docs.rancher.com/rancher/v1.4/en/installing-rancher/installing-server/#elb
I have not set up SSL or certs or the like for now.
My rancher-server instance is registered with the loadbalancer and shows Status: InService
thx for the help @aemneina

So your deployment looks like:
ELB:8080 <-> rancher server:8080 ?
Is your host registration URL(under Admin->Settings) set to a domain that resolves to the ELB, or the rancher server directly? Have you tried this with rancher 1.3.3 (curious if that yields different results)?

@aemneina Just checked Host Registration URL, it is set to a domain that resolves to the ELB.
I'm on rancher/server:latest  ... not sure what version that is actually.
I'll happily try again with 1.3.3 or 1.3.4 - I'm thinking to try 1.3.4 because apparently that's been tagged :stable.  Also, I see in the release notes for 1.3.4 that "Rancher has re-introduced being able to use ELBs with this release." and I'm on an ELB.  I'll try that now.
rancher/server                stable              e4fa1971f31f
rancher/server                v1.3.4              e4fa1971f31f
rancher/server                latest              dcfac2209d79
rancher/server                v1.3.3              a3513ae180f8

@aemneina seems to be same issue on v1.3.4. Sigh. thanks for your help. Any other suggestions?

OK!
Well, I set up an ALB. now it's working w/o a hitch.
Even though i'd set up the proxy protocol policy.. the ELB wasn't supporting websockets.
I know the rec' from Docker was to go back to using ELB, and that they'd had some flakiness with ALB.... but I just couldn't make ELB classic work. Frustrating. :(

I know this is old but I got a similar problem and it was because I set up my ELB to support HTTP protocol and no TCP so the websocket wasn't really open to my Rancher instance, hope that helps someone proxy protocol + tcp 👍

@zot24 - thanks for the help!  After following the Rancher docs, I updated the Classic ELB Listener to use TCP instead of HTTP for port 8080 and the magic began to happen!  You totally saved hours of work and frustration!


Looking forward to your work!

Looking forward to your work.

Thanks for the attention. We are planning a release this week. Please stay tuned.


I want to learn c++

If you are looking to learn C++ on your own i would suggest you to have knowledge of C first and then C++ would be much easy for you to learn, Syntax is almost same in both the languages, there are many youtube channels to learn C++, also some books are best to learn from like Accelerated C++, C++ the programming language.
There are two ways :

Paperbacks(With Books)
Online

If you prefer paperbacks, then you can refer the following books :

The C++ Programming language by Bjarne Stroustrup. One of the best book because the guy who invented CPP wrote this book as well - For Professionals.
C++ Primer by S. B. Lippman, J. Lajoie, B. E. Moo. - For beginners.
Accelerated C++: Practical Programming by example by Andrew Koenig - For Intermediate
If you love to learn online, you can access the following sites for best results :
www.learncpponline.com
geeksforgeeks.com
cplusplus.com
Hope this helps. :)


Add New Maintained Repo Link to Readme

Since this repo is no longer maintained, I added a link to a repo that has been created that will push version updates to npm. This was needed because of a PR that had a fix that our company needed and this repo has not been updated in a very long time.

@krispo  - please consider adding this to README for a new repo that is taking PR requests to update version on npm.

Hello @pertrai1 ,
can we consider this fork as "official" ? It would be nice to have some statement from @krispo
any way, thank you very much for the work!

@cedricbonhomme yes it is official. the fork was because the company I work for needed the patch. We are still in the process of moving from 1.6 which makes it where it is important for us to have a "maintainable" version of nvd3. It would be nice to hear from @krispo about this.

Thank you for the answer! We are actually using your fork in an AngularJS based app.


Add nif_write_bin_to_stdout

Based on the great work done by @cocoa-xu adding Evision.quicklook/1 I've added Image.preview/1 that provides the following for iTerm2 terminals:

However since the iTerm2 preview protocol requires ^G (decimal 27), and this character is filtered out by IO.puts (and IO.write/1 and the erlang :io module functions) there needs to be a way to emit unfiltered binaries.  There is a similar function in :evision from which I borrowed liberally. But for Image, :vix is a hard dependency whereas :evision is optional.
Therefore this PR adds Vix.Nif.nif_write_bin_to_stdout/1 in order to accomplish just that.
BTW, If you think Image.preview/1 is better placed in Vix then please copy whatever you think is useful.

Hi @kipcole9
I had this in the past before we had kino. Mainly to have a unified preview interface between Livebook and terminal. But later removed in favor of kino.
I am a bit hesitant with the approach because we are bypassing group-leader and in general I would prefer to avoid dealing with NIF, especially with large binaries.
Anyway, since iTerm2 spec supports alternative escape sequence, we can just use the other one right?

ST means either BEL (hex code 0x07) or ESC \.

So we can use \e\\ instead of ^G and avoid dealing with NIF altogether.
IO.puts([
  "\e]1337;File=size=#{byte_size(image_bin)};inline=1:",
  Base.encode64(image_bin),
  "\e\\"
])

If you are okay with this, I'll add to Vix soon you and Image can use that.

Arrrghhhh, how did I miss that alternative!  Tested and working fine (not tried in a Tmux). Sorry for the noise, closing the PR.


Ensure defaultMeta is always included when logging.

Decycle "info" and include error properties message and
stack that must be copied manually when sending messages
between processes in the WorkerTransport.

Codecov Report

Merging #71 (f18dc5d) into winston-3-two (34588d7) will increase coverage by 0.23%.
The diff coverage is 88.23%.

@@                Coverage Diff                @@
##           winston-3-two      #71      +/-   ##
=================================================
+ Coverage          69.75%   69.98%   +0.23%
=================================================
  Files                  7        7
  Lines                691      703      +12
=================================================
+ Hits                 482      492      +10
- Misses               209      211       +2

Impacted Files
Coverage Δ

lib/loggers/WorkerTransport.js
93.75% <83.33%> (-6.25%)
:arrow_down:

lib/loggers/index.js
74.60% <90.90%> (+0.43%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34588d7...f18dc5d. Read the comment docs.

Turns out, I was one line away from the solution which you also found: https://github.com/digitalbazaar/bedrock/commit/406e33e1b402feb7593cb0b0bda952cd6c5bc140#diff-915ad2a2861f4d9180f6663301741e23db1406aaace2d448ebdf7abd6b8497b6R67


Feature: Add OAuth Setting for JWKS URL

A new setting field should be added for each OAuth provider to allow the configuration of the jwks_url parameter of the authlib library being used for OAuth integration.

This was handled via PR 1432.


improve readme formatting

Hi @bbodenmiller, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@bbodenmiller Thanks for the cleanup! It all looks good to me.


Leaderboard is showing by default and close button doesn't do anything

It seems to be happening only with automated build using godot command line (headless or not).
When launching the game from the command line we can see the following error: ERROR: Failed to load script "res://scenes/ui/scripts/leaderboard.gd" with error "Parse error". which cannot be seen when running from Godot editor or exporting using the editor.

Ok this is stupid.. I was exporting with an older version of Godot (4.1.3) which doesn't support typed for loops.. The export was working but the script was not parsed correctly at launch.


[5.4] Add empty array default to create method on belongs to many relationship

Belongs to many relationships are the only place the ->create([]) method doesn't have a default of empty array.

This silently breaks packages that extend the BelongsToMany relationship class in a minor release!
Like laravel-mongodb:
https://github.com/jenssegers/laravel-mongodb/blob/master/src/Jenssegers/Mongodb/Relations/BelongsToMany.php#L94
Or the couchbase driver:
https://github.com/ORT-Interactive-GmbH/laravel-couchbase/blob/42a2fd6fcaa53a614900945ecf7895e1ac67ee23/src/Mpociot/Couchbase/Relations/BelongsToMany.php#L117

Do it in Laravel 5.5, please.


[Feature] Modular quantization using AutoGPTQ

Hi @PanQiWei,
Firstly, thanks for building this repo.
I was wondering if your repo supports modular quantization. For example, the Llama architecture looks like the following:
LlamaForCausalLM(
  (model): LlamaModel(
    (embed_tokens): Embedding(32000, 4096, padding_idx=0)
    (layers): ModuleList(
      (0-31): 32 x LlamaDecoderLayer(
        (self_attn): LlamaAttention(
          (q_proj): Linear(in_features=4096, out_features=4096, bias=False)
          (k_proj): Linear(in_features=4096, out_features=4096, bias=False)
          (v_proj): Linear(in_features=4096, out_features=4096, bias=False)
          (o_proj): Linear(in_features=4096, out_features=4096, bias=False)
          (rotary_emb): LlamaRotaryEmbedding()
        )
        (mlp): LlamaMLP(
          (gate_proj): Linear(in_features=4096, out_features=11008, bias=False)
          (down_proj): Linear(in_features=11008, out_features=4096, bias=False)
          (up_proj): Linear(in_features=4096, out_features=11008, bias=False)
          (act_fn): SiLUActivation()
        )
        (input_layernorm): LlamaRMSNorm()
        (post_attention_layernorm): LlamaRMSNorm()
      )
    )
    (norm): LlamaRMSNorm()
  )
  (lm_head): Linear(in_features=4096, out_features=32000, bias=False)
)

Now, what if I want to quantize only the mlp module or self_attn module?
Usecase: I would like to run AutoGPTQ on lm-evaluation harness dataset and understand the effects of quantizing modules for a study.
Thanks for your time and let me know if there's any update :)

This feature is actually in my scheduler! 😍

Thank you so much for the response @PanQiWei, can you share more details on how can I achieve this?
Consider the following scenario if it helps:

Llama-based model (something like above)
Would like to quantize mlp modules alone (or self_attn modules alone)
Run it on Hellaswag and Piqa dataset in lm-evaluation harness library.

Currently the command found in lm-harness library is something like this
python main.py \
    --model hf-causal-experimental \
    --model_args pretrained=model-name-or-path,quantized=model.safetensors,gptq_use_triton=True \
    --tasks hellaswag,piqa

The above command quantizes entire model. Now, I would like to know what additional args to pass to achieve this modular quantization.
P.S: Here're the relevant issues I raised a while ago

Issue raised in lm-evaluation library to make it transparent (Issue Link)
I used Pytorch's Dynamic Quantization here and was able to control granular quantization specific to my use-case (Issue Link)

Hi @PanQiWei,
Sorry to bother, but I thought to follow-up on this issue? Please let me know and it would be very much helpful!
Thanks for your patience, very much appreciate it :)


Split codegen

Wanted to explore GQL Code Generator feature for splitting the output code.

Discussion:
I quite liked how imports worked before (import from .api seemed nice). Big pro IMO is __generated__ in the path - I think it's more clear for the newcomers that there's a tool that handles all the heavy lifting.
Imports example:
// old import
import { useMainMenuQuery } from "@/saleor/api";
// "new", splitted import
import { useMainMenuQuery } from "graphql/queries/__generated__/MainMenu";

export const MainMenu = () => {
  const { loading, error, data } = useMainMenuQuery(); // usage is exactly the same

For now, we decided to leave this idea for the future. DX impact is not obvious and we see a more complicated config as a con.
We might return to this idea later on.


Fix yaml cell naming

This PR fixes a side effect which caused default yaml cell names to change when non-default cells were created first (by removing some legacy code which serves no real purpose)
@joamatab
@skychil

Thank you Troy!


Temporarily removing support for netstandard1.3

@jterry75 @ahmetalpbalkan @jstarks
We've hit an issue compiling for netstandard1.3 using the latest version of the dotnet CLI (reported here: https://github.com/dotnet/cli/issues/2739). The current mechanism used to incorrectly report success during compile, but required runtime references couldn't be found with the latest dotnet CLI.  Until we have a resolution to the issue or better guidance on how to compile for DNXCore, it's safer in the short term to remove that build target.

I confirmed that this restores, builds and publishes as expected with the latest dotnet CLI.

How is this related to the referenced issue?  You're talking apples and oranges here nestandard1.3 is different from netcore50 referenced in https://github.com/dotnet/cli/issues/2739.

@ericstj There is a lot of confusion here on our part, but in the short term we just need to make sure this project keeps compiling.
Without going into too much detail (I'll leave that to @jterry75, who has a better grasp of the problem than I), the project.json as it exists in master today seemed to work fine for dotnet CLI beta (1.0.0-beta-002252), but when we recently updated to dotnet CLI rc2 (1.0.0-rc2-002533) it started failing during restore because of dependencies we haven't been expressing correctly.  We've tried several approaches to explicitly enumerate the separate dependencies for netcore50, but none of them allowed us to successfully publish targeting the runtimes we needed.  Issue https://github.com/dotnet/cli/issues/2739 is us asking for help on finding out the right way to get this project to compile for core, but in the meantime we need to unblock compilation with dotnet rc2, and temporarily removing the netstandard1.3 section in favor of relying on the net45 and net46 sections of the project.json is the simplest way to unblock us.
Once we figure out (hopefully with your help) the right way to compile this, we can get our project into shape!

LGTM, assuming we follow up with the right fix soon

Sure, let me know what type of library you are trying to build.  netcore50 is for UWP apps and I wouldn't expect this showing up in any projects built with the CLI, with the one exception being a library which needs to cross-compile for UWP for some reason (eg: to avoid PInvokes that are available in UWP).

@ericstj Thanks Eric!  It looks like @jterry75 may have figured out the trick for getting this to compile the way we want.  He hasn't made a PR yet, but you can see the commit on his branch here: https://github.com/jterry75/Docker.DotNet/commit/cd73be5228998c984bbb1dc4f3074c2f05b8245a.  Would you mind taking a look and providing any feedback?


Support for structures in intrinsics

In addition to supporting data references, this PR also brings multiple bug fixes into the handling of LBOUND/UBOUND

LGTM


客户端需要前置代理要怎么配置?

goflyway -k="password" -up="VPS:PORT" -l=":LOCAL_PORT"
前置代理 要配置代理ip <IP_ADDRESS> 端口5366 才能上网
goflyway这个支持么?

<IP_ADDRESS>:5366 是什么类型的代理，认证方式是什么

HTTP代理

现在release和master都没有前置代理功能，需要切换gdev分支下
如果是纯HTTP代理（应该不太可能吧），需要mitm模式，导入根证书ca.pem后命令：
./goflyway -up="mitm@<IP_ADDRESS>:5366;VPS:PORT" -k=...

如果是https代理，命令：
./goflyway -up="<IP_ADDRESS>:5366@VPS:PORT" -k=...

应该是squid 做成的Http代理，可以编译个win的包么

请使用https://github.com/coyove/goflyway/releases/tag/v1.0.11a版本进行测试

goflyway -k="password" -up="mitm@<IP_ADDRESS>:5366;VPS:PORT" -l=":8100"
goflyway (build<PHONE_NUMBER>366)

launched as client
ca.pem loaded, read 1024 bytes
key.pem not found, using the default one
man-in-the-middle to intercept HTTPS
all reqeusts sent out will have <IP_ADDRESS>:31664 as the host name
proxy Onotib started at [ :8100 ], upstream [ <IP_ADDRESS>:5366 ]
access client web console at [ <IP_ADDRESS>:8101 ]
[E1122/125908.624:httpmux.go(159)] prefetch err: i/o read timeout
[E1122/125916.329:client.go(341)] dns lookup err: mtalk.google.com
[E1122/125916.403:mitm.go(133)] cannot read request: malformed HTTP request ")\x02\xc2\x01"
[E1122/125923.385:client.go(341)] dns lookup err: www.googleapis.com
... 3 similar message(s)
[E1122/125923.460:client.go(341)] dns lookup err: accounts.google.com
[E1122/125923.547:client.go(341)] dns lookup err: clients2.google.com
[E1122/125929.392:client.go(341)] dns lookup err: www.google.com
[E1122/125933.674:client.go(341)] dns lookup err: android.clients.google.com
[E1122/125944.556:mitm.go(156)] proxy pass: https://www.googleapis.com/oauth2/v4/token, proxyconnect, dial tcp <IP_ADDRESS>:5366: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
... 2 similar message(s)
[E1122/125944.567:mitm.go(156)] proxy pass: https://accounts.google.com/ListAccounts?gpsia=1&source=ChromiumAccountReconcilor,counter:4,load_time_ms:115221&json=standard, proxyconnect, dial tcp <IP_ADDRESS>:5366: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[E1122/125944.571:mitm.go(156)] proxy pass: https://www.googleapis.com/oauth2/v4/token, proxyconnect, dial tcp <IP_ADDRESS>:5366: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[E1122/125944.607:mitm.go(156)] proxy pass: https://clients2.google.com/service/update2/crx?os=win&arch=x64&nacl_arch=x86-64&prod=chromecrx&prodchannel=&prodversion=62.0.3202.94&lang=zh-CN&acceptformat=crx2,crx3&x=id%3Dlhikkakcmddjomilpjgdepfgmakpekeh%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D1&x=id%3Dgadafnnkijfmbbmeielphlapddbmgbgo%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Didknbmbdnapjicclomlijcgfpikmndhd%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Dlhfmcbnidnkaalleepapkdnfblbiaacl%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Djlmmdfhaddlgkgcigccmlfhapliiacoh%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Dmgjjeipcdnnjhgodgjpfkffcejoljijf%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D1%2526e%253D0%2526dr%253D1&x=id%3Deeilbciljmgcdilcidohcgihnlknkhbe%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Ddnpdkjaahjndfknkobdfakmaiepcoabo%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Daocdmnhdeeenokebhpljlfhcmfhhkcnj%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Ddedkgoaamppfeibgahalfcihekdgedip%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D1&x=id%3Dmjaenbjdjmgolhoafkohbhhbaiedbkno%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Dlfmhcpmkbdkbgbmkjoiopeeegenkdikp%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Dobhlfmheblhjhkmacldlhdnbgbaiigba%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Dhikppniaiehchkgcnnjdkcpmoddhjfcm%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Dmgndgikekgjfcpckkfioiadnlibdjbkf%26v%3D<IP_ADDRESS>%26uc&x=id%3Dfgbjpbdfegnodokpoejnbhnblcojccal%26v%3D<IP_ADDRESS>%26uc%26ping%3Dr%253D20%2526e%253D0%2526dr%253D1&x=id%3Damigcgbheognjmfkaieeeadojiibgbdp%26v%3D2.2%26uc&x=id%3Danlllmnpjodopgbkbpnghnjlelnogfjc%26v%3D2017.6%26uc&x=id%3Daphanomkkjgledipighdfjnilhfenpam%26v%3D2017.11.10%26uc&x=id%3Dbfbmjmiodbnnpllbbbfblcplfjjepjdn%26v%3D<IP_ADDRESS>%26uc, proxyconnect, dial tcp <IP_ADDRESS>:5366: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[E1122/125946.391:client.go(341)] dns lookup err: www.googleapis.com
[E1122/125950.438:mitm.go(156)] proxy pass: https://www.google.com/, proxyconnect, dial tcp <IP_ADDRESS>:5366: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
[E1122/125951.247:client.go(341)] dns lookup err: ssl.google-analytics.com
[E1122/125953.503:client.go(341)] dns lookup err: www.google.com
[E1122/125954.807:mitm.go(156)] proxy pass: https://android.clients.google.com/checkin, proxyconnect, dial tcp <IP_ADDRESS>:5366: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

错误显示<IP_ADDRESS>:5366不可连接

<IP_ADDRESS>:5366 应该是 纯HTTP代理，直接代理访问国内是没有问题的

直接将浏览器的代理设为<IP_ADDRESS>:5366可以访问？

Rebuilt URL to: http://www.baidu.com/
Trying <IP_ADDRESS>...

浏览器发出的https请求走不了http代理，必须通过中间人把其中的数据拆出来。
同理websocket，http2因为要求全双工的连接，所以goflyway也并不支持


Investigate and reduce runtime type coercion in aggregates like sum

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
There is casting logic in aggregates that handles coercing inputs to aggregates
https://github.com/apache/arrow-datafusion/blob/6b4bbd0/datafusion/physical-expr/src/aggregate/sum.rs#L224-L316
On the surface doing these casts in sum.rs appears to duplicates some non trivial amount of the logic in plan timecoercion  -- maybe it would be possible to make this code cleaner / consolidate more of the coercion logic.
Describe the solution you'd like
Ensure types are known prior to executing the aggregate so that the input and aggregate types are known aprior
Describe alternatives you've considered
Not sure (maybe the code is needed, it just "feels" a bit wrong)
Additional context
https://github.com/apache/arrow-datafusion/pull/2405#discussion_r864400327
cc @WinkerDu

@alamb I can take this if you dont mind

I added this to https://github.com/apache/arrow-datafusion/issues/2355

the same pattern used in min_max.rs.
The common approach to get the underlying value from ScalarValue is through patmatch, and that causes a lot of similar code branches to operate with underlying values supporting different datatypes.
I'm trying to figure out if sum_batch function can be reused instead of boilerplate sum. In fact sum is specific case of sum_batch

I wonder if we can take inspiration from @yjshen 's approach in https://github.com/apache/arrow-datafusion/pull/2375 (using row formats, etc). I don't have any specific suggestions but thought it might be interesting to look

@alamb sorry for delay, I stuck investigating all that datatypes.
Please check the draft #2516
So idea is to reuse sum_batch function instead of boilerplate sum.
I have to do type casting to ensure all types are the same. it might be looking a concern for the performance. Please let me know your thoughts

I think this I think this ticket is no longer tracking anything actionable -- I expect more performance improvements from https://github.com/apache/arrow-datafusion/issues/4973


Feature/book lookup

Coverage decreased (-2.2%) to 87.842% when pulling a89a9a47d527ac5375be127f6df99f64b9bb72ba on feature/book-lookup into 6bbcb33a3c563bdffa534504888fc7f78e9a092a on develop.


Fix binary class names for module classes.

Methods in module classes (aka companion objects) were registered as belonging to the class with the trailing '$' that module classes are supposed to have. This commit fixes that issue.

Review by @manojo

LGTM


Terms to cover new federal standards on race/ethnicity data collection

Congress very recently approved revisions to the federal standards for race/ethnicity data collection (info here). Is OMRSE interested in creating terms to represent the new standards?
I'm involved with several projects that currently use OMRSE for race/ethnicity terms (including OBI and HIPC Immunespace), and we would be very happy to have OMRSE terms for the new standards. We're more than willing to contribute, test, or otherwise help out with the development of these new terms, if OMRSE is willing to host them.
Thanks for your time!

Yes, we are absolutely interested. I just became aware of the planned changes. We typically discuss these issues at the monthly OMRSE meeting (first Wed of month at 11a ET).  Or if you'd like a separate meeting to discuss please let us know.


@loadable/babel-plugin does not work with razzle (babel 6)

Hello again! I'm super stoked about this lib and really want to use it. We're running our build tasks with razzle which is slightly behind, using babel 6 in current stable. If I'm adding @loadable/babel-plugin in my .babelrc I'm getting this:
ERROR in ./src/client.js
Module build failed (from ./node_modules/razzle/node_modules/babel-loader/lib/index.js):
TypeError: template.ast is not a function
    at isReadyProperty (/Users/marc/src/with-react-loadable/node_modules/@loadable/babel-plugin/lib/properties/isReady.js:9:29)

Not sure what it would mean to support both babel 6 and 7 but I think it would be a huge improvement to the lib.
Steps to reproduce the behavior:
npx create-razzle-app razzle-loadable-test
cd razzle-loadable-test
echo "{\"presets\": [\"razzle/babel\"],\"plugins\": [\"@loadable/babel-plugin\"]}" > .babelrc
yarn start

Try<EMAIL_ADDRESS>it has Babel 7

Hello @marcneander, I am sorry but Babel 6 will not be supported. As @lucasterra said, you should try to upgrade to razzle v3 or just wait for v3 to be stable.

I am very sorry, but we have to move forward, I prefer to work on new features than supporting old version! I hope you understand!

@neoziro It's fine. Been trying for a couple of hours to get @loadable ssr to work with razzle 3 without success. It seems like the loadable-stats.json file is somehow not generated properly. I'm getting SSR requires @loadable/babel, please install it even though I'm using the babel-plugin. Somehow the chunkExtractor is undefined inside @loadable/component.
Might have time to get you an example during the day. I think this repo would benefit from having an example with razzle since so many people are using it.

@marcneander OK, if someone succeeded running it with Razzle, feel free to add an example!

without success:
Failed to compile.
./src/App.js 17:11
Module parse failed: Unexpected token (17:11)
You may need an appropriate loader to handle this file type.
|   },
|   requireAsync: function requireAsync() {
>     return import(
|     /* webpackChunkName: "NotFound" */

Just wanted to flag a similar issues with tests is still happening today.
https://github.com/smooth-code/loadable-components/issues/396


404 error

issue is when i try to create new questions, mongo is running, but thats all, i haven't configured anything
=======================================================================
Express server listening on port 3000.
GET / 200 213.519 ms - 1313
GET /public/js/viewmodels/Contestant/LoginViewModel.js 404 17.534 ms - 62
(node:18488) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html
POST /api/Home 200 1332.355 ms - 49
POST /api/Home/Login 200 657.219 ms - 40
GET /api/Data/Categories?required=&userid=5b0213d56859a14838b96d7a& 200 8.190 ms - 2
(node:18488) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): RangeError: Maximum call stack size exceeded
(node:18488) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
POST /api/Data/Categories 200 10.463 ms - 352
POST /api/Data/Questions/5b02145d6859a14838b96d7c 200 11.547 ms - 113
GET /api/Data/Categories?required=&userid=5b0213d56859a14838b96d7a& 200 21.037 ms - 441
POST /api/Home/Login 200 860.662 ms - 40
POST /api/Data/Categories - - ms - -
GET /api/Data/Categories?required=&userid=5b0213d56859a14838b96d7a& 304 12.032 ms - -
GET /public/js/sockets/game.js 404 1.939 ms - 38
GET /public/js/sockets/chat.js 404 1.075 ms - 38
GET /polyfills/promise-6.0.0.min.js.map 404 0.985 ms - 47
GET /api/Data/Categories?required=&userid=5b0213d56859a14838b96d7a& 304 6.160 ms - -
POST /api/Data/Categories 200 10.091 ms - 386
POST /api/Data/Questions/5b0216bb6859a14838b96d7e 200 6.081 ms - 120
=========================================================================
[Sun May 20 2018 20:46:32 GMT-0400 (EDT)] #main runRoute post #
sammy.js:5 [Sun May 20 2018 20:46:32 GMT-0400 (EDT)] #main 404 Not Found post #  Error: 404 Not Found post #
at Sammy.Application.error (sammy.js:5)
at Sammy.Application.notFound (sammy.js:5)
at Sammy.Application.runRoute (sammy.js:5)
at Sammy.Application._checkFormSubmission (sammy.js:5)
at context_prototype. (sammy.js:5)
at HTMLDivElement.listener_callback (sammy.js:5)
at HTMLDivElement.dispatch (jquery-2.1.1.min.js:3)
at HTMLDivElement.r.handle (jquery-2.1.1.min.js:3)

It looks like you’re working off the current master branch, which was my attempt to make a 2.0 version of the game. Unfortunately other priorities took over and I never had the time to finish it. There are likely loads of bugs and errors, and I’m not sure I really ever had it working properly (or even at all). I have been considering rewriting it using React/Redux and make it usable, but I still haven’t had the time or drive to do so.
I’m sorry I couldn’t be more help. You’re more than welcome to create a pull request if you’d like to create a fix, but I believe at minimum that version of the software is dead.
Daniel Beus
Software Engineer
From: brw31415<EMAIL_ADDRESS>Sent: Sunday, May 20, 2018 6:57 PM
To: legacybass/Jeopardy<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [legacybass/Jeopardy] 404 error (#6)
issue is when i try to create new questions, mongo is running, but thats all, i haven't configured anything
=======================================================================
Express server listening on port 3000.
GET / 200 213.519 ms - 1313
GET /public/js/viewmodels/Contestant/LoginViewModel.js 404 17.534 ms - 62
(node:18488) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.htmlhttps://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmongoosejs.com%2Fdocs%2Fpromises.html&data=02|01||100f0f4efab0496ad0e808d5beb5cce3|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636624610386301679&sdata=5tZPifT%2B8qmJ9FwNjJLQwI3bIwbsPXFQs0JlaHb39nM%3D&reserved=0
POST /api/Home 200 1332.355 ms - 49
POST /api/Home/Login 200 657.219 ms - 40
GET /api/Data/Categories?required=&userid=5b0213d56859a14838b96d7a& 200 8.190 ms - 2
(node:18488) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): RangeError: Maximum call stack size exceeded
(node:18488) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
POST /api/Data/Categories 200 10.463 ms - 352
POST /api/Data/Questions/5b02145d6859a14838b96d7c 200 11.547 ms - 113
GET /api/Data/Categories?required=&userid=5b0213d56859a14838b96d7a& 200 21.037 ms - 441
POST /api/Home/Login 200 860.662 ms - 40
POST /api/Data/Categories - - ms - -
GET /api/Data/Categories?required=&userid=5b0213d56859a14838b96d7a& 304 12.032 ms - -
GET /public/js/sockets/game.js 404 1.939 ms - 38
GET /public/js/sockets/chat.js 404 1.075 ms - 38
GET /polyfills/promise-6.0.0.min.js.map 404 0.985 ms - 47
GET /api/Data/Categories?required=&userid=5b0213d56859a14838b96d7a& 304 6.160 ms - -
POST /api/Data/Categories 200 10.091 ms - 386
POST /api/Data/Questions/5b0216bb6859a14838b96d7e 200 6.081 ms - 120
=========================================================================
[Sun May 20 2018 20:46:32 GMT-0400 (EDT)] #main runRoute post #
sammy.js:5 [Sun May 20 2018 20:46:32 GMT-0400 (EDT)] #main 404 Not Found post # Error: 404 Not Found post #
at Sammy.Application.error (sammy.js:5)
at Sammy.Application.notFound (sammy.js:5)
at Sammy.Application.runRoute (sammy.js:5)
at Sammy.Application._checkFormSubmission (sammy.js:5)
at context_prototype. (sammy.js:5)
at HTMLDivElement.listener_callback (sammy.js:5)
at HTMLDivElement.dispatch (jquery-2.1.1.min.js:3)
at HTMLDivElement.r.handle (jquery-2.1.1.min.js:3)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flegacybass%2FJeopardy%2Fissues%2F6&data=02|01||100f0f4efab0496ad0e808d5beb5cce3|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636624610386301679&sdata=GiPm6zsrgF%2Bqb3EkmfYiQEmF6PpSGPsUByRjPyOJhK4%3D&reserved=0, or mute the threadhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABa83t9lGl8jSM0GGcW82TwDAijvg0J5ks5t0hDsgaJpZM4UGTYj&data=02|01||100f0f4efab0496ad0e808d5beb5cce3|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636624610386301679&sdata=WAJ%2FDcjtsQ%2FVv2%2BtI5jg9RDGG%2By4mc3qGsraovwJ4kc%3D&reserved=0.


Added crazy loaders

added few load components

Crazy Arch Loaders
Cuboid Loader
Minimalist Loader
Drag and Drop Loader

@Rakesh9100  can you please check the pull request? please check the mainn1 branch.

Please do not create a PR until you have been assigned to an issue @patelkiran185


Make the scroll amount configurable

Issue #379
The scroll amount remains unchanged. The PR makes the amount configurable with the config struct.

Hm if the scroll amount is wrong compared to the official flutter implementations why don't change it to the official scroll amount? But that could still be achieved with your PR.

Well, I made it that way in case you care about breaking changes in the behavior of the existing apps.
If you decide to simply change the current scroll amount, just let me know and I will update the PR

I don't think anyone ever tried fixing the scroll in their app. So I guess it would fix it for everyone. @pchampio

@pchampio  Ok, great! Thanks!


chore(deps): upgrade dev dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-dev-dependencies-k8s-27-main" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 3711

Questions ?
Please refer to the Backport tool documentation


Include virtualbox-ose-legacy pkg

Describe the feature or enhancement
Alternative to newest version.
Why this request?
It seams not to be included at the moment.

It is available to install since the last pkg build.
> pkg search virtualbox-ose
virtualbox-ose-6.1.46          General-purpose full virtualizer for x86 hardware
virtualbox-ose-additions-6.1.46 VirtualBox additions for FreeBSD guests
virtualbox-ose-additions-legacy-5.2.44_5 VirtualBox additions for FreeBSD guests
virtualbox-ose-additions-nox11-6.1.46 VirtualBox additions for FreeBSD guests
virtualbox-ose-additions-nox11-legacy-5.2.44_4 VirtualBox additions for FreeBSD guests
virtualbox-ose-kmod-6.1.46     VirtualBox kernel module for FreeBSD
virtualbox-ose-kmod-legacy-5.2.44_7 VirtualBox kernel module for FreeBSD
virtualbox-ose-legacy-5.2.44_15 General-purpose full virtualizer for x86 hardware
virtualbox-ose-nox11-6.1.46    General-purpose full virtualizer for x86 hardware
virtualbox-ose-nox11-legacy-5.2.44_16 General-purpose full virtualizer for x86 hardware


Card list does not shuffle

I read this stackoverflow link but I don't know why my code is not working.
In that link
function shuffle(array) {
  var currentIndex = array.length, temporaryValue, randomIndex;

  // While there remain elements to shuffle...
  while (0 !== currentIndex) {

    // Pick a remaining element...
    randomIndex = Math.floor(Math.random() * currentIndex);
    currentIndex -= 1;

    // And swap it with the current element.
    temporaryValue = array[currentIndex];
    array[currentIndex] = array[randomIndex];
    array[randomIndex] = temporaryValue;
  }

  return array;
}

// Used like so
var arr = [2, 11, 37, 42];
arr = shuffle(arr);
console.log(arr);

It works well. So I get all of my card list with
let cardList = document.getElementsByClassName('card');
after that I want to test it so I add this code also.
cardList = shuffle(cardList);
console.log(cardList);

But when I refresh the page. The lists are not shuffled. I don't know what is the problem.
When I just console.log the cardList variable it prints
HTMLCollection(16) [li.card, li.card, li.card.match, li.card, li.card, li.card.match, li.card, li.card, li.card, li.card, li.card, li.card, li.card.open.show, li.card, li.card, li.card]
I think it's right. But not working.
I also tried document.querySelectorAll method.

From Udactiy Mentor Answer [SOLVED]
Everything is working fine until you save all the card elements in the variable cardList.
the value of cardList will return an HTML collection. It looks like an array but it is not actually an array.
So using shuffle on it won't work.
To fix that, create an array from this HTML collection using Array.from()
let cardList = Array.from(document.getElementsByClassName('card'));
or if you want to use newer ES6 syntax, you can save the HTML collection to a variable then spread it into an array.


Issue when upgrading from 0.9.1 to 0.10.1

Hello,
I just tried to update to 0.10.1 as mentioned above. Everything was looking ok. I run 4 ingesters, 1 of them successfully started, etcd, compactors, router, etc all started fine, but 3 of my ingesters just kept crashlooping with an error, something along the lines of assertion left == right failed. I swapped back to 0.9.1 and everything is fine, but now all my streams are doubled and I can't delete the doubled ones. in the screen shot it will be all the ones with a /1712877810775363
First question here is, how can i get rid of these duplicate streams. the delete button in the UI just errors.
I can try to regenerate the error tomorrow evening and set rust_backtrace to 1.
If it matters, I run an external postgres db.

https://github.com/openobserve/openobserve/releases/tag/v0.10.0
v0.10.x version can't rollback to v0.9.x it is an break version, Please upgrade all node to v0.10.1 first, then if you got any error, please tell us.

Full error when trying to run 0.10.1, everything is crashing with this
openobserve-ingester thread 'main' panicked at /openobserve/src/service/db/schema.rs:405:9:
openobserve-ingester assertion `left == right` failed: BUG
openobserve-ingester   left: 3
openobserve-ingester  right: 4
openobserve-ingester stack backtrace:
openobserve-ingester    0:     0x563e50d3914b - <unknown>
openobserve-ingester    1:     0x563e4decb05c - <unknown>
openobserve-ingester    2:     0x563e50d354a3 - <unknown>
openobserve-ingester    3:     0x563e50d38eb4 - <unknown>
openobserve-ingester    4:     0x563e50d3a998 - <unknown>
openobserve-ingester    5:     0x563e50d3a680 - <unknown>
openobserve-ingester    6:     0x563e50d3ae9e - <unknown>
openobserve-ingester    7:     0x563e50d3ad92 - <unknown>
openobserve-ingester    8:     0x563e50d39636 - <unknown>
openobserve-ingester    9:     0x563e50d3aad4 - <unknown>
openobserve-ingester   10:     0x563e4d079445 - <unknown>
openobserve-ingester   11:     0x563e4d0798bf - <unknown>
openobserve-ingester   12:     0x563e4d11eeef - <unknown>
openobserve-ingester   13:     0x563e4feb0911 - <unknown>
openobserve-ingester   14:     0x563e4fe0eda5 - <unknown>
openobserve-ingester   15:     0x563e504ee3a0 - <unknown>
openobserve-ingester   16:     0x563e504e97b0 - <unknown>
openobserve-ingester   17:     0x563e500e7ec3 - <unknown>
openobserve-ingester   18:     0x563e500ecd3d - <unknown>
openobserve-ingester   19:     0x563e50d2b11a - <unknown>
openobserve-ingester   20:     0x563e504ffce5 - <unknown>
openobserve-ingester   21:     0x7fd650e2724a - <unknown>
openobserve-ingester   22:     0x7fd650e27305 - __libc_start_main
openobserve-ingester   23:     0x563e4d199ab1 - <unknown>
openobserve-ingester   24:                0x0 - <unknown>

Can you check the data in PostgreSQL:
select count(*) from meta where module='schema';
select count(*) from meta where module='schema' and start_dt=0;
select count(*) from meta where module='schema' and start_dt>0;
select * from meta where module='meta';
select * from meta where module='migration';

FYI, i was able to restore a backup from shortly before i attempted the upgrade and got myself running on 0.9.1. I do have the db I attempted to upgrade available so I can get your answers. Getting late here tho so any other questions i'll get to tomorrow
select count() from meta where module='schema';
273
select count() from meta where module='schema' and start_dt=0;
1
select count(*) from meta where module='schema' and start_dt>0;
272
select * from meta where module='meta';
module	id	key1	key2	value	start_dt
meta	3	kv	version	v0.10.1	0

select * from meta where module='migration';
id	module	key1	key2	value	start_dt
281,214	migration	schema_versions	status<PHONE_NUMBER>467938	0

okay, delete the start_dt=0 it should be fine.
delete from meta where start_dt=0;

I think the problem generated by you have multiple ingester when you upgrade to v0.10.0, it will auto-upgrade database schema, the first node upgrade done, but other ingesters still running with old version, the node can't recognize the new schema, and then insert a old format schema, it caused this problem.
Just delete the line, it should be working.

Or you can run like this:
select id,module,key1,key2 from meta where module='schema' and start_dt=0;

Then you will got the record, and then use the id to delete:
delete from meta where id=xxx

Ok, I doubt i'll actually migrate back to that old db so to confirm, so I can actually complete the upgrade from 0.9.1 > 0.10.1 successfully, I should:
Drop my 0.9.1 down to 1 ingester
update to 0.10.1
hopefully am then able to spin more ingesters back up if needed?

⚠⚠⚠Once you start using this version, you shouldn't rollback to 0.9.x version, this version includes db changes , which are incompatible with previous versions. If applications is running in cluster mode please scale all deployments to zero only use single compactor to upgrade to v0.10.0 after upgrade and everything work well, we can scale up application to desired state.

https://github.com/openobserve/openobserve/releases/tag/v0.10.0

sorry one more quick question, does it matter if i go from 0.9.1 > 0.10.1 directly or should I do it in steps like 0.9.1 > 0.10.0 > 0.10.1?

0.10.1 is same to 0.10.0, just some bug fix, no major change.

Thanks, successfully completed the update.


the file libdefs.js makes react native imports break

my ide phpstorm breaks because of your libdefs.js file. it makes all of the imports unknown
import { ScrollView, Text, View, Image, TouchableOpacity } from 'react-native';
each of these imports gets a line under it and the warning

cannot resolve symbol

+1


bug: Mark as Completed is not working

When i click on Mark as Completed it not marking my video completion..
error in network tab: error:
"[\n  {\n    "code": "invalid_type",\n    "expected": "object",\n    "received": "promise",\n    "path": [],\n    "message": "Expected object, received promise"\n  }\n]"

still not working


New intro: live dynamic example at the beginning.

Related to #28, I felt that this lesson got a relatively slow start and because I was new, it carried over to most of the rest of it.  When I taught jupyter earlier, I had a different strategy which I'll suggest here.
First, here is my model notebook:
https://github.com/AaltoScienceIT/python-r-data-analysis-course/blob/master/02_Jupyter_demo_pi.ipynb
I started a new notebook and started telling a story:

I am a researcher who wants to calculate pi.  I don't know what I am doing so begin at the beginning.
Add a markdown cell at the top saying what I am doing.
Import relevant things and add simple loop and stochastic calculation (pick random points, are the yin a circle or not?)
Now I have to convert my statistics to pi.  I could do my derivations on paper and then enter the formula, but instead I enter a markdown cell and do the derivations directly there.
Then, I implement the formula to calculate pi.
Small discussion: when reporting my work to my advisor, this is a much more useful form!  They can review everything.
Now, we want to extend our work.  Let's add a visualization.  Go back and record all of the points and make a matplotlib visualization of what falls in the circle.
Then I go add add some line magics - %timeit for example.  Demonstrate these but we  will get back to more later.
Discussions: notebook advantages and disadvantages.  When to use, when not to use.

I found that this was a dynamic and interesting story to begin with.  After this, lead in to the material here which explains how to actually use jupyter - the details.  The real examples can be immediately after this, or before.
As for presenting, it was fairly easy, but I did need to refer to the document to copy from - it's hard do do the derivations in real time with an audience!  A bit more advanced thought and planning is needed, too (you should probably go through it once before presenting).

i like this suggestion, but I'm thinking about it within this new idea of going through a whole pseudo project leading up to a JOSS publication in the workshop. The jupyter session could have the role of doing interactive analysis and visualization of the pseudo-project data, and should indeed start from an empty notebook. Exercises and type-along content (which is cumbersome for the presenter to type out) can be kept on a lesson page (i.e. we create a jekyll page as for all the other lessons)


Is there more to BEM than naming blocks, elements and modifiers?

Sure! See https://en.bem.info/

@StefanTosic23 it depends on what you searching for. For examples this approach can be generalized to structure your project folders and even structure dependencies (see bemjson) – but (imo) CommonJS is more simple and understandable approach.


Control Flow for Kotlin lang

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

@thecodingaviator I fixed the indentation on behalf of user.

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 📝


tests: drivers: can: api: fix misunderstood use of ESI flag

Fix the test for sending frames with the CAN_FRAME_ESI flag set. Sending frames with this flag set in software is never allowed.
Fixes: 8023a58c2a463cfcda1ffeaf41b0ea853bba0178

The test introduced in https://github.com/zephyrproject-rtos/zephyr/commit/8023a58c2a463cfcda1ffeaf41b0ea853bba0178 is wrong and holding back both local pre-v4.0.0-rc1 testing and PRs targeting v4.0.0-rc1.

The test introduced in 8023a58 is wrong and holding back both local pre-v4.0.0-rc1 testing and PRs targeting v4.0.0-rc1.

In my opinion, test introduced in 8023a58 was correct.
It was checking that "Sending frames with this flag set in software is never allowed."
PR https://github.com/zephyrproject-rtos/zephyr/pull/76134 was failing this test.
Wrong was that I and @duynguyenxa thought that sending CAN_FRAME_ESI | CAN_FRAME_FDF was correct.
Thus, I think both test variants should be there.
@henrikbrixandersen : Could You comment on whether there are any errors in my reasoning? [low priority]


Platform push don't throw errors during process

Hi!
The main problem that when you call platform push, and during the process something fails, this script doesn't throw error.
As you can see on the screenshots, usually, scripts throw errors.

Yes. The issue is that the "push" succeeded even though the subsequent deployment didn't. Currently the platform push command passes through the exit status from git push. Perhaps the git API would need to implement some kind of feature to report the deployment failure via the git exit status.


MouseEvents on InLineCssTextArea

Hi Tomas,
I am trying to listen to mouse events in the inlineCSS text area, but it does not seem to trigger any event. Can you verify on your end?
Thanks,
Maher

I will just close this, since the text area no longer has a right-click menu and right clicks are no longer consumed. You can create and display your own menu on right click.


Add lowering for mhlo.scatter to tensor.dynamic_insert_slice

mhlo.scatter can be performed by slicing the update and operand values,
operating with a linalg.generic, and writing back to the operand values. This
allows partial slice update and other cases where linalg_ext.scatter cannot
represent the operation.

One of the first things that happens in the MHLO to Linalg conversions in IREE is the conversion from SCF to CFG (https://github.com/google/iree/blob/15fce0a6c29b7eb810e6ad36706293dcb855148d/iree/compiler/InputConversion/MHLO/Passes.cpp#L44). This is now introducing SCF after that. I think for now if we are going to add scf loops here, we should also be calling this again after all the conversions.
The theory here is that structured control flow mostly helps in the backends where you are dealing with things like number of interations, divergence etc. At this level of the program just having a CFG is as good. For the kind of loops we have at this level, traditional loop recognizers are good enough. If not we need to also have separation of concerns. These are loops over kernels. We want to either process these before hand and convert then to CFG (after which you dont worry about things here). This theory might/might not hold over time, but to start with lets convert everything to CFG here?

(some kind of structured control flow whether SCF or not will be really useful in the stream dialect phase of things - like you say we can reconstruct those there if needed but it's still TBD - would love it if anyone wanted to play with that upstream)

@hanhanW , Rob and I discussed this a bit a few days ago.  AFAICS it might not be easy/preferable to extend linalg_ext.scatter op to account for this use case. It will make the op-definition more complicated, and its really MHLO semnatics that is the root cause here. So lowering it to a larger sequence of ops seems like a reasonable step to me. This is the cost of the complex semantics that MHLO scatter ops have.
Still it'd be useful for Rob and you to chat and come to a consensus on this since you also have more context on scatter semantics in MHLO.

@hanhanW , Rob and I discussed this a bit a few days ago. AFAICS it might not be easy/preferable to extend linalg_ext.scatter op to account for this use case. It will make the op-definition more complicated, and its really MHLO semnatics that is the root cause here. So lowering it to a larger sequence of ops seems like a reasonable step to me. This is the cost of the complex semantics that MHLO scatter ops have.
Still it'd be useful for Rob and you to chat and come to a consensus on this since you also have more context on scatter semantics in MHLO.

If I read IR correctly, I think it is not that hard. There is an unclear point to me:
// CHECK-DAG: %[[MUL:.+]] = arith.muli %[[ARG3]], %[[C2]]
// CHECK-DAG: %[[SLICE1:.+]] = tensor.extract_slice %[[CARG2]][%[[MUL]], 0, 0, 0, 0] [2, 1, 1, 2, 64] [1, 1, 1, 1, 1]

I'm wondering how do we get the idea of "multiply c2". Is it a shape information of the updates argument? If those indices are shape-like tensor or static attribute, we can add the support.
For shaped-like tensor case, it is something like we've done in pooling ops. For static attributes, it is something like strides in named ops. Regarding tiling method, we don't have to change the logic because the offset scales look the same for every iteration.
For the first case, we can make the op to take an extra tensor (maybe init_tensor) and plus them to ivs before loading from updates.
https://github.com/google/iree/blob/fa004461ad415c14417ac9a38f6fc36f06c7ec96/llvm-external-projects/iree-dialects/lib/Dialect/LinalgExt/IR/LinalgExtOps.cpp#L273-L277
For the latter case, we can let the op carry update_strides attribute (like linalg.conv_xx ops), and plus them to ivs before loading from updates.
It does make the op semantic a bit more complicated, but I think it's acceptable. Because the tricks are used in normal Linalg ops.

@rsuderman I might be wrong on op semantics, what do you think?

For the latter case, we can let the op carry update_dilations attribute (like linalg.conv_xx ops), and multiply them to ivs before loading from updates.
It does make the op semantic a bit more complicated, but I think it's acceptable. Because the tricks are used in normal Linalg ops.

So one of the problems with representing as a single linalg_ext operator is order / multi-scatter behavior. We can assume safe tiling when all indices are updated with dims length-1 because we know they can't interact. I wrote a version that had similar ivs (though merged in with the other shape dimensions). I can try a third alternative and see if that works better with tiling.
Note: We should probably move the batch update dim to the last dim and make it a reduction dimension. This guarantees execution order and avoids race conditions. The problem with non-1 lengths is that they can over lap each other even with different scatter indices.

Closing this PR, moving over to https://github.com/google/iree/pull/8343


Add on_executing_* hook to extensions

Description
So that it's possible to override the execution phase. Also add docs and examples on how to use it.
Types of Changes

[ ] Core
[ ] Bugfix
[x] New feature
[ ] Enhancement/optimization
[ ] Documentation

Issues Fixed or Closed by This PR

Fixes #1397

Checklist

[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[x] I have added tests to cover my changes.
[x] I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Hi, thanks for contributing to Strawberry 🍓!
We noticed that this PR is missing a RELEASE.md file. We use that to automatically do releases here on GitHub and, most importantly, to PyPI!
So as soon as this PR is merged, a release will be made 🚀.
Here's an example of RELEASE.md:
Release type: patch

Description of the changes, ideally with some examples, if adding a new feature.

Release type can be one of patch, minor or major. We use semver, so make sure to pick the appropriate type. If in doubt feel free to ask :)
Here's the tweet text:
🆕 Release (next) is out! Thanks to Jonathan Kim for the PR 👏

Get it here 👉 https://github.com/strawberry-graphql/strawberry/releases/tag/(next)


[Spotify Player] Copying link copies item title instead of Spotify link

Extension
https://www.raycast.com/mattisssa/spotify-player
Raycast Version
1.86.0
macOS Version
15.1
Description
When attempting to copy the link of an item after searching for it, either using the keyboard shortcut or directly from the menu, only the item’s title (song or album) is copied instead of the Spotify URL.
Steps To Reproduce

Open command 'Search Spotify'.
Search for a song.
Actions > Copy URL

Current Behaviour
No response
Expected Behaviour
No response

Could you share a recording? It'll make it easier to see what's happening.

A formatted link is copied under the hood (${title}). Where are you trying to copy this link? This may explain why you're seeing only the item's title.


protocol: cleanup

Fixes #182

[x] need to convert JsProtocolHandler -> (error, request) which would get rid of those node::ThrowError and have uniform async api, will have a wrappedCallback to avoid breaking existing api.

Can't wait for the protocol handlers to be async. :heart:

@zcbenz fixed. Right now the apis are
protocol.registerProtocol(scheme, function(error, result))
protocol.interceptProtocol(scheme, function(error, result))
protocol.isHandledProtocol(scheme, function(result))

should these be made compatible with older api ?

should these be made compatible with older api ?

We should keep compatibility with the register/unregister and intercept/unintercept APIs,

The APIs should be like:
hander = (request) ->
  return new protocol.RequestJob
done = ->
  console.log 'protocol is registered'
protocol.registerProtocol('http', handler, done);

Having handler doing two jobs is not good.

Having handler doing two jobs is not good.

:+1:  will have the done callback take a error parameter.

@zcbenz have made the changes, thanks!

The new implementation looks awesome! :+1:

@deepak1556 THANK YOU!
@zcbenz, you are on fire tonight. It doesn't get said enough... THANK YOU for all that you are doing for Electron!


Bugfix: LANDGRIF - 622 add only effective elements to intervention

UPDATE:
After a chat with FR, we realised Supplierd Ids should not be required for creating an Intervention. Even tho this should be a separate task / PR, since it was depending on this implementation (if this goes forward) and for avoiding further changes, I've decided to include it here.
Let me know if this is smelly
This PR fixes:
Add only elements that are actually replaceable as part of the intervention: AdminRegions, Materials, etc. that are present in sourcing locations.
We were adding a full tree of elements given a Parent Id
I created a standalone service to handle the creation of a newIntervention, which will take care of:

creating a new instance, adding required properties from the DTO
Get all descendants Id's for filtering
Add replaced elements
Add replacing elements

I created some tests accordingly
IMPORTANT NOTE:
Please if you are aware of some use case that is not covered with automated tests, please highlight it, we need to have this covered as much as possible, I'll be very happy to add more cases if something is missing
However, I am still not happy with the overall flow, I think we should discuss a way to separate concerns and make it more readable
Up to your thoughts @yulia-bel @KevSanchez

Regarding the tests, I think what might be useful at some point - to extends the preconditions to have more complex data set, probably the one we could use for analysis tests as well. Else, in my opinion, the possible use cases are covered


Update paparazzi version

Jira issue:

no ticket -

What was solved?
This change is related to an issue discovered in another PR: https://github.com/salemove/android-sdk-widgets/pull/1125
For some reason, the previous version of Paparazzi had a problem applying View#isInEditMode, so some strings were not retrieved correctly.
I did it as a separate PR for easier review because all snapshots had very slight changes because of the library version change.
Release notes:

[ ] Feature
[x] Ignore
[ ] Release notes (Is it clear from the description here?)
[ ] Migration guide (If changes are needed for integrator already using the SDK - what needs to be communicated? Add underneath please)

Additional info:

[ ] Is the feature sufficiently tested? All tests fixed? Necessary unit, acceptance, snapshots added? Check that at least new public classes & methods are covered with unit tests
[ ] Did you add logging beneficial for troubleshooting of customer issues?
[ ] Did you add new logging? We would like the logging between platforms to be similar. Refer to Logging from Android SDKs → Things to consider for newly added logs in Confluence for more information.

Screenshots:

Thank you @DavDo
Closing this PR


Add Github Action Rule that will mark stale pull requests after 21 days of inactivity

What is needed?
A github action that will automatically label pull requests that are inactive for 21 days as stale.

I'd like to work on this!

@CarbonNeuron It is all yours now.


NIFI-10488 Fix NullPointerException on updating empty ParameterContext property with NiFi Toolkit

Summary
NIFI-10488
CLI throws an error when we are trying to set an empty property:
ERROR: Error executing command 'set-param' : null

Command to test with:
./cli.sh nifi set-param -u http://localhost:8080/ -pcid 32d572a1-0183-1000-a811-ab916612b4af -pn emptyParam -pv newvalue

Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[x] Apache NiFi Jira issue created

Pull Request Tracking

[x] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[x] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[x] Pull Request based on current revision of the main branch
[x] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[x] Build completed using mvn clean install -P contrib-check

[x] JDK 8
[ ] JDK 11
[ ] JDK 17

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

Thanks @nandorsoma merged to main


How will objects be selected

I am not clear what values from within the Application CRD will be used to select the objects that will define my Application within the cluster.
My assumption is that values defined in the Application CRD will be used to query cluster objects which will then define my Application.
Is the selector the single value spec.selector or is the selection also limited by spec.componentKinds?
Is the selection does by the Application controller and/or by the third party tool? The tool provider would get the selector from the CRD and then query for the objects?

I am not clear how the list of components will be provided to the user/vendor. Will the controller return a list of components and/or will the user/vendor take the spec info and query Kubernetes directly?

What about namespace?

Will the Application controller have adequate permissions to query all of the components in the cluster?

Could someone explain the motivation for including componentKinds are included in the model? The only use case that I can see is to query the list of resources. Having a list of kinds seems like an optimization.


Using python scripts during grounding when using the C/C++ API

Hi,
Is there a simple way to call python functions during grounding when using the C++ API? Please correct me if I'm wrong, but I think this is not currently supported.
I've started down the line of trying to use a C++ API grounding callback to pass the callback onto python myself, but I got stuck in converting Clingo::SymbolSpan arguments to a PyObject. I assume there is a function somewhere in libpyclingo that could do this for me, but I couldn't find it. I'm also not sure this is the most efficient approach, so any better suggestions would be greatly appreciated.
I'm aware it might sound a bit of an odd use case that I am using the C++ API and I also need python functions. My use case is that I am developing systems written in C++ that call Clingo using the C++ API, but I would like users to be able to write custom functions that can be evaluated during grounding without needing to write them in C++ and recompile my systems.
Thanks in advance,
Mark

The clingo library as such does not even link against the Python and Lua libraries. For this to work, another library including the code from libpyclingo would have to be included. Then, you could call clingo_register_python_ to enable execution of Python scripts. There is no target to build such a library.

Yes, I did this actually. But unfortunately, although the Python script is being executed when the program is ground (i.e. if I put a print statement in the main script, it gets printed), but the functions themselves are not being called by the grounder. Is this because when I use the C++ API, it expects that all functions will be handled by the C++  callback?
I can post a simple minimal example of what I have tried if it would help.

I think that if you pass a context object to ground, then the globally registered scripts are ignored. If you pass a nullptr, then it should work. You could register another script to call functions to avoid using the context callback.

Thanks for your help! Sorry if I'm being dim, but I'm not sure what you mean by passing a context object to ground. The ground function takes two arguments (the program parts and an optional callback, which is nullptr by default).
On registering another script, is this not what clingo_register_python_ does? Can I just copy the code from clingo_register_python_, or call clingo_register_python_ again (if so, at what point should this be executed? just before grounding?). Or, do I need to completely rewrite the functions used by clingo_register_python_? If so, what will be the difference between my customised versions and those used by clingo_register_python_?
For reference, this is what I am currently doing:
#include <string>
#include <clingo.hh>
#include <pyclingo.h>
#include <iostream>

std::string program = R"ESC(
#script (python)
import clingo
print("script executed")

def ident(x):
  print("ident function called ident({x})")
  return clingo.Number(x)
#end.

p(@ident(2)).
p(test).
)ESC";

int main(int argc, char *argv[]) {
  using namespace std;

  clingo_register_python_();

  Clingo::Logger logger = [](Clingo::WarningCode, char const *message) { cout << message << endl;};

  Clingo::Control ctl({{}, logger, 20});
  cout << "grounding..." << endl;

  ctl.add("", {}, program.c_str());
  ctl.ground({{"", {}}});

  cout << "solving..." << endl;

  for(auto& m : ctl.solve())
    for(auto& atom : m.symbols())
      cout << atom << " ";

  cout << endl;

  return 0;
}

And I see the following output:
grounding...
script executed
solving...
p(test)

As far as I can see, it should work like this. Or at least there should be a message because it has to be
def ident(x)
    return clingo.Number(x.number)

Maybe it is just the message that gets gobbled but it is working otherwise.
The identity function should also be written like this:
def ident(x)
    return x

Sorry, that was me going from my larger program to a minimal example (in my larger program I was doing something with x and returning something else). I've corrected the identity function, but it still produces the same output for me.
I know this is an odd use case, so understand if you don't have the time to fix it. Is there anything else I can try to get it working myself?

I will have a look. But it might take some time because I am currently working on another project and also vacation is ahead.

Okay, thanks!

This should be fixed now.

Great. Thanks for your help!


PANIC: called Option::unwrap() on a None value in query-engine/core/src/query_document/parser.rs:250:87

Hi Prisma Team! My Prisma Client just crashed. This is the report:
%23%23 Versions

Name
Version

Node
v16.4.2

OS
linux-musl

Prisma Client
3.11.0

Query Engine
0.1.0

Database
postgresql

%23%23 Logs
prisma:tryLoadEnv Environment variables loaded from /usr/app/template/.env
prisma:tryLoadEnv Environment variables loaded from /usr/app/template/.env
prisma:client clientVersion: 3.11.0
prisma:client clientEngineType: library
prisma:client:libraryEngine internalSetup
prisma:client:libraryEngine Searching for Query Engine Library in /usr/app/template/node_modules/.prisma/client
prisma:client:libraryEngine loadEngine using /usr/app/template/node_modules/.prisma/client/libquery_engine-linux-musl.so.node
prisma:client:libraryEngine sending request, this.libraryStarted: false
prisma:client:libraryEngine library starting
prisma:client:libraryEngine library started
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true
prisma:client:libraryEngine sending request, this.libraryStarted: true

%23%23 Client Snippet
export const checkCollectionByAddress = async (address: string): Promise<boolean> => {
  const count = await prisma.collection.count({
    where: {
      contractAddress: address,
    },
  });

  return count > 0;
};

export const checkCollectionBySlug = async (slug: string): Promise<boolean> => {
  const count = await prisma.collection.count({
    where: {
      urlSlug: slug,
    },
  });

  return count > 0;
};

%23%23 Schema
model Collection {
  contractAddress String  @id
  urlSlug         String
  name            String
  description     String?
  image_url       String?
  banner_url      String?
  external_url    String?
  floor_price     Float?
  total_supply    Float?
  num_owners      Int?
  total_volume    Int?
  asset           Asset[]
  traits          Trait[]
  mints           Mint[]
}

model Mint {
  id              Int        @id @default(autoincrement())
  contractAddress String
  collection      Collection @relation(fields: [contractAddress], references: [contractAddress])
  transfers       Int
  gas             Int
  gasPrice        Int
  value Float
  tokenIds      Int[]
  timestamp Int
}

model Asset {
  token_id      String     @id
  image_url     String
  name          String
  external_link String?
  last_sale     String?
  collection    Collection @relation(fields: [address], references: [contractAddress])
  address       String
  traits        Trait[]
}

model Trait {
  id         String     @id
  trait_type String
  value      String
  collection Collection @relation(fields: [address], references: [contractAddress])
  address    String
  assets     Asset[]
}

%23%23 Prisma Engine Query
{"X":{}}

3.15 will ship a change that returns a structured error instead of a panic.


pinCertificates trust policy in 4.x doesn't support revocation checking

It would be nice to optionally support revocation checks there too.
I started work on a PR but with the merge of 2375 it doesn't look like there is a 4.x maintenance branch anymore. Are you interested in patches for 4.x at this point or is it full steam ahead towards 5? :)

Actually, in iOS 10.1 and above it seems like Apple is doing revocation checking by default, so this should be done automatically. But no, we're not looking to make any feature changes to Alamofire 4, just major bug fixes if necessary. If we wanted changes they would be off of the 4.8.0 tag, but I don't think this is a change we'd make. You could manually implement this by having a custom policy that calls the other policies you want.


bugfix - follow unfollow user

Bugfix for Validation errors during consecutive follow, unfollow, follow sequence of requests

'good, can merge'


Typescript mutation

Question
It's not very easy to figure out what went wrong, even following the documentation when dealing with Typescript.
This is the error I get:
11:11:12 (51967) ERROR StrykerCli an error occurred Error: Emit error! Could not emit file /some/path/react-utils/src/action-creator.ts

Running the "debug" doesn't really help. I've never been able to get a typescript project to work with stryker. This project is a conversion from ES6 to typescript, and stryker was working well after figuring out the map in #1987, so I would like to have stryker working on it back again.
Repo info in additional context below.
Would anyone be able to point me to the right direction?
Regards,
Stryker environment

├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ └──<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ ├──<EMAIL_ADDRESS>

+--<EMAIL_ADDRESS>
Additional context

Node@12 lts
Repo: https://github.com/Quoin/react-utils
npm ci
npm run stryker

Could you please try newer version of stryker and validate if it is still a valid issue? :)

Could you please try newer version of stryker and validate if it is still a valid issue? :)

I'm sorry, I've converted it back to JS since the project needed TS didn't use this library anymore.


Convert Earn Income to skill statistic and fix check dialog title

I think this is ok to leave till after the next release (maybe during the hotfix stages). Its just more preliminary work for converting skill/perception/initiative fully to statistic.


Error when starting

I get this error when i start my server https://pastebin.com/aH1DJGph If you can help me fix it that would be baller

You need to install the libs


.slowmode command does not say anything when its already disabled, giving an error on console

No response. This error in console. Happens in every server, Selfhost, v2.23.0

Aren't you supposed to use that command with the -s and -m options?
For example, doing .slowmode -s 10 -m 5 means that users won't be able to send more than 5 messages every 10 seconds. I don't think .slowmode is going to work without these options. But I might be wrong, so take my word with a grain of salt.

You are able to use it with no parameters, which is supposed to disable slowmode if enabled, or inform its already disabled. But when its already disabled, it doesnt give any response, is just giving an error on console.

Excuse me for not clarifying the situation enough at first.


Is the cheatsheet wrong with respect to saying traits are nominal and interfaces are structural?

Isn't it the other way around?

That's an easy one: No. If you'd like to discuss further, I suggest stopping by the Zulip.
We like to keep issues on repos to actionable things to be done and keep conversations to the Zulip.
https://ponylang.zulipchat.com/#


test: interaction of schemas and auto reassignment

Existing logic focuses mostly in simplifying and polishing interactions with the PUBLIC schema.
However, if someone wants or needs to use other schemas the amount and variety of side-effects grows enormously, making any attempt to strictly manage the database an absolute pain.
This commit adds a test to demonstrate such cumbersome behaviour.
Checklist:

[ ] Have you added Release Notes in the docs repository?
[x] Have you followed the Conventional Commits specification?

Tests are no longer passing. https://github.com/cloudfoundry/terraform-provider-csbpg/actions/runs/8603421363/job/23575279161?pr=101#step:4:6926
Closing.
https://docs.google.com/document/d/1hHiHXOJPabJvICvfvOkCXfH4f53MpB0Go3geVilk4Yg/edit?disco=AAABLCMFwIA


Go 1 18

Part of issue https://issues.redhat.com/browse/CMCS-164

Close and redo to cleanup some order issues


ENH: Help button

This PR refactors MplCanvas so that canvas not related to Brain can be created. For instance, the help window:
https://user-images.githubusercontent.com/18143289/111464895-b0835680-8721-11eb-82dc-3294bc71503e.mp4
It's an item of https://github.com/mne-tools/mne-python/issues/8704

Thanks for review and testing @agramfort