text:
SSL cert expired

Checklist

[X ] I'm reporting a broken site support
[ ] I've verified that I'm running youtube-dl version 2020.11.17
[ ] I've checked that all provided URLs are alive and playable in a browser
[ ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[ ] I've searched the bugtracker for similar issues including closed ones

Verbose log

curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
HTTPS-proxy has similar options --proxy-cacert and --proxy-insecure.

Description

SSL cert needs updating

This is not the verbose log. Run youtube-dl using the -v flag, also provide example URL.

authors: barakbd kennell


text:
Arte.tv not working any longer

~ % youtube-dl -v https://www.arte.tv/fr/videos/098814-007-A/le-dessous-des-cartes/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.arte.tv/fr/videos/098814-007-A/le-dessous-des-cartes/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.10.4 (CPython) - macOS-11.6.5-x86_64-i386-64bit
[debug] exe versions: avconv 12.3, avprobe 12.3, ffmpeg 5.0.1, ffprobe 5.0.1, rtmpdump 2.4
[debug] Proxy map: {}
[ArteTV] 098814-007-A: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/extractor/common.py", line 634, in _request_webpage
return self._downloader.urlopen(url_or_request)
File "/usr/local/Cellar/youtube-dl/2021.12.17/libexec/lib/python3.10/site-packages/youtube_dl/YoutubeDL.py", line 2288, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
File "/usr/local/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 525, in open
response = meth(req, response)
File "/usr/local/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 634, in http_response
response = self.parent.error(
File "/usr/local/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 563, in error
return self._call_chain(*args)
File "/usr/local/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python@3.10/3.10.4/Frameworks/Python.framework/Versions/3.10/lib/python3.10/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)

Thank you, sorry for the duplicate.

source: gharchive/issue

repo: ytdl-org/youtube-dl

license: Unlicense

license_type: permissive

license_source: github-api


text:
RegexNotFoundError

Checklist

[ ] I'm reporting a broken site support issue
[ ] I've verified that I'm running youtube-dl version 2021.12.17
[ ] I've checked that all provided URLs are alive and playable in a browser
[ ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[ ] I've searched the bugtracker for similar bug reports including closed ones
[ ] I've read bugs section in FAQ

Verbose log

PASTE VERBOSE LOG HERE

Description

WRITE DESCRIPTION HERE
OSError: ERROR: Unable to extract uploader id; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

#30839 !


text:
[Instagram] Support for Stories videos

Please follow the guide below
Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[ ] New extractor
[x] New feature

This pull request adds support for individual Instagram story URLs such as https://www.instagram.com/stories/charmedplayhouses/. Also supports individual highlighted stories found on user pages.
Every request must have cookies specified (--cookies).
I have not decided on the best title format. For now it is Stories - user_name.

It would be awesome to have this!

Currently merging this breaks tag and user extractors.

@dstftw requesting review again. This is a newly made branch and it uses the GraphQL code already in master so there's no duplicate code for that. Also doesn't break tags or user extractors. Tested all scenarios on my machine (using --cookies where necessary).

Tests are broken.

@dstftw Please verify my fix. I made the tests get skipped because they require cookies. I did test both URLs in the tests locally with the --cookies ... argument.

Stories don't seem to work:
> py -3.7 -m youtube_dl https://www.instagram.com/stories/jillianbmele/ -v --cookies '...'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.instagram.com/stories/jillianbmele/', '-v', '--cookies', '...']
[debug] Encodings: locale cp1251, fs utf-8, out utf-8, pref cp1251
[debug] youtube-dl version 2020.03.24
[debug] Git HEAD: 0534ab6
[debug] Python version 3.7.0 (CPython) - Windows-10-10.0.10240-SP0
[debug] exe versions: ffmpeg N-85653-gb4330a0, ffprobe N-85653-gb4330a0, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[instagram:stories] jillianbmele: Downloading webpage
[download] Downloading playlist: jillianbmele
[instagram:stories] jillianbmele: Downloading JSON page 1
[instagram:stories] playlist jillianbmele: Downloading 0 videos
[download] Finished downloading playlist: jillianbmele

Did you try the highlights URL?
I got this same response for this link after once downloading successfully at least one video. I feel it has something to do with whether or not you have viewed the video in your browser since Instagram has to have a way to know that you already viewed a story for its indicator. I'll look into this because there should still be a way even if you have viewed the story before.

Also it's always possible a user has no video story objects up in which case finding zero videos is the correct output. The reason I picked this user is because she tends to post a lot of videos in her story timeline so it's good for testing.

Highlights URL does work. Both URLs work from browser though.

This should fix it. Had to request the video data based on the reel ID. This is much more reliable than attempting to read from the first request.

@dstftw bump

The main stories URI can take an identifier after /stories/ and it appears this points to a graph object, which could be a video. So I have one more type of URI to support.
In the Instagram app these are generated looking at a story then tapping the ... button and tapping 'Copy link'.

The type of URL mentioned in the last comment is now supported. @dstftw I think I am truly done here let's hope.

can we please get this merged?.... stories would be so nice to have...

@dstftw If you want me to make changes, I'll need to re-make this PR. I asked GitHub and they cannot fix branch references.

source: gharchive/pull-request

authors: Tatsh doonline-official dstftw tordans


text:
Unable to create a multi-head model

So I was wondering if its possible to visualize a multihead model [1], as I can only define one Input.
Is there anything i missed out?
[1] https://3qeqpr26caki16dnhd19sv6by6v-wpengine.netdna-ssl.com/wp-content/uploads/2018/07/Plot-of-the-Multi-Headed-1D-Convolutional-Neural-Network.png

Sorry, but currently only sequential model is supported.

license: MIT


text:
Number of Installs vs Number of Users in new a recent Figma Release

Now, with the recent changes to the plugins, they don't need to actually be installed, and Figma seems to count the "number of the user (I guess?)":

Eg. Figma plugin's community page shows 568 "users", while the actuall number of "installs" in returned by your script shows 280:

Are you considering updating the script, so it will show also the new "users" count?

Just added this in 0.0.26!
npx --yes -- figma-plugins-stats@latest

authors: pawelkontek yuanqing

repo: yuanqing/figma-plugins-stats


text:
cf_nise_installer vagrant install issue

Getting following error message while doing a 'vagrant up' with cf_nise_installer  on my Windows machine
...
...
...
PATH=/home/vagrant/.rbenv/shims:/home/vagrant/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
+++ export RBENV_SHELL=install.sh
+++ RBENV_SHELL=install.sh
+++ rbenv rehash
+ ./scripts/clone_nise_bosh.sh
++ ls -A nise_bosh
+ '[' '!' '' ']'
+ git submodule update --init --recursive nise_bosh
fatal: Not a git repository (or any parent up to mount point /vagrant)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Any Thoughts?
Thanks,
Amitoj

It looks like a problem of Windows? Unfortunately, I cannot Windows machines as Vagrant hosts.
Please confirm that /vagrant is mounted correctly.

Thanks Yudai.
I'll try this on Linux.

authors: amitoj yudai

license_source: bigquery


text:
IOS Apn compatibility

Hi, this is actually a question.
Can one use your gem to send also IOS push notifications through Firebase assuming the APN is correctly connected through the firebase panel?
Thanks

Absolutely. In order to send a notification through APN using FCM just specify a topic name as described in thier doc:
client  = Andpush.new(server_key, pool_size: 25)
payload = {
  to: /topics/foo-bar",
  priority: "high",
  notification: {
    body: "This is a Firebase Cloud Messaging Topic Message to APN!",
    title: "FCM Message",
  }
}

client.push(payload)

I'm closing this issue, but happy to answer questions if you need help. Thanks!


text:
image indices with human in imageNet

Do you have the off-the-shelf image indices that contains humans in imageNet?

Hi, for this I think you can find all the images with people in the data from this paper: https://image-net.org/face-obfuscation/ . They're also verified it via human annotators.

authors: realliyifei yukimasano

repo: yukimasano/PASS


text:
Pretrained weights?

Very cool work. Interesting research.
Are pre-trained weights available to be shared at this moment? We would love to use the model as a feature extractor in our research.

Hi, thanks for your interest, we will release the pre-trained weights in the next update!

repo: yukkai/UrFound


text:
Build error: reloc 10 (R_CALLARM64) to non-elf symbol type

I'm trying to install lgo and get the following error:
$ go get github.com/yunabe/lgo/cmd/lgo && go get -d github.com/yunabe/lgo/cmd/lgo-internal
$ lgo install

2019/03/09 12:41:38 Install lgo to /home/maxim/go/lgo
2019/03/09 12:41:38 Building libstd.so
# /tmp/go-build820042594/b194/libstd.so
Erratum 835769 found and fixed at "/tmp/go-link-237765660/000025.o", section 50, offset 0x0000113c.
Erratum 835769 found and fixed at "/tmp/go-link-237765660/000025.o", section 50, offset 0x000057c0.
Erratum 835769 found and fixed at "/tmp/go-link-237765660/000025.o", section 50, offset 0x0000fd88.
Erratum 835769 found and fixed at "/tmp/go-link-237765660/000025.o", section 50, offset 0x0000fedc.
Erratum 835769 found and fixed at "/tmp/go-link-237765660/000025.o", section 50, offset 0x0000113c.
Erratum 835769 found and fixed at "/tmp/go-link-237765660/000025.o", section 50, offset 0x000057c0.
Erratum 835769 found and fixed at "/tmp/go-link-237765660/000025.o", section 50, offset 0x0000fd88.
Erratum 835769 found and fixed at "/tmp/go-link-237765660/000025.o", section 50, offset 0x0000fedc.
2019/03/09 12:41:48 Building lgo core package
# /tmp/go-build086705797/b196/libstd.so
Erratum 835769 found and fixed at "/tmp/go-link-530501271/000025.o", section 50, offset 0x0000113c.
Erratum 835769 found and fixed at "/tmp/go-link-530501271/000025.o", section 50, offset 0x000057c0.
Erratum 835769 found and fixed at "/tmp/go-link-530501271/000025.o", section 50, offset 0x0000fd88.
Erratum 835769 found and fixed at "/tmp/go-link-530501271/000025.o", section 50, offset 0x0000fedc.
Erratum 835769 found and fixed at "/tmp/go-link-530501271/000025.o", section 50, offset 0x0000113c.
Erratum 835769 found and fixed at "/tmp/go-link-530501271/000025.o", section 50, offset 0x000057c0.
Erratum 835769 found and fixed at "/tmp/go-link-530501271/000025.o", section 50, offset 0x0000fd88.
Erratum 835769 found and fixed at "/tmp/go-link-530501271/000025.o", section 50, offset 0x0000fedc.
2019/03/09 12:42:02 Building third-party packages in $GOPATH
2019/03/09 12:42:02 Installing lgo-internal
# /tmp/go-build071371341/b214/libstd.so
Erratum 835769 found and fixed at "/tmp/go-link-376813173/000025.o", section 50, offset 0x0000113c.
Erratum 835769 found and fixed at "/tmp/go-link-376813173/000025.o", section 50, offset 0x000057c0.
Erratum 835769 found and fixed at "/tmp/go-link-376813173/000025.o", section 50, offset 0x0000fd88.
Erratum 835769 found and fixed at "/tmp/go-link-376813173/000025.o", section 50, offset 0x0000fedc.
Erratum 835769 found and fixed at "/tmp/go-link-376813173/000025.o", section 50, offset 0x0000113c.
Erratum 835769 found and fixed at "/tmp/go-link-376813173/000025.o", section 50, offset 0x000057c0.
Erratum 835769 found and fixed at "/tmp/go-link-376813173/000025.o", section 50, offset 0x0000fd88.
Erratum 835769 found and fixed at "/tmp/go-link-376813173/000025.o", section 50, offset 0x0000fedc.
# github.com/yunabe/lgo/cmd/lgo-internal
type..MO7lsdMr: reloc 10 (R_CALLARM64) to non-elf symbol type..FEeY9FdU (outer=type..FEeY9FdU) 49 (SABIALIAS)
2019/03/09 12:42:52 Failed to build lgo-internal: exit status 2

go version output:
go version go1.12 linux/arm64

uname -a:
Linux odroidc2 3.16.63-1-ARCH #1 SMP PREEMPT Sat Feb 23 12:06:13 MST 2019 aarch64 GNU/Linux

Duplicate of #82

authors: maximtrp yunabe

repo: yunabe/lgo


text:
windows系统的虚拟机迁移后用原密码重新登陆提示密码不正确

What happened:
Environment:

OS (e.g. cat /etc/os-release):
Kernel (e.g. uname -a):

@zhasm

这个是外部导入的 windows 镜像，不是调的云平台迁移接口。

authors: hoganlxj zexi

repo: yunionio/cloudpods


text:
前端不支持主机报警

What happened:
前端点击主机的报警功能，会提示找不到 meteralert 的错误

报警服务已重写：
https://github.com/yunionio/onecloud/pull/5322
等待代码合并

/close

repo: yunionio/onecloud


text:
Automated cherry pick of #2387: fix: cloud-provider-region add cloudaccount_domain_id

Cherry pick of #2387 on release/2.10.0.
#2387: fix: cloud-provider-region add cloudaccount_domain_id

Codecov Report

:exclamation: No coverage uploaded for pull request base (release/2.10.0@42cef58). Click here to learn what that means.
The diff coverage is 0%.

@@               Coverage Diff                @@
##             release/2.10.0   #2388   +/-   ##
================================================
  Coverage                  ?   7.54%
================================================
  Files                     ?     410
  Lines                     ?   63838
  Branches                  ?       0
================================================
  Hits                      ?    4814
  Misses                    ?   58614
  Partials                  ?     410

Flag
Coverage Δ

#aFlag
7.54% <0%> (?)

Impacted Files
Coverage Δ

pkg/compute/models/snapshots.go
1.88% <ø> (ø)

pkg/cloudcommon/db/fetch.go
0% <0%> (ø)

pkg/compute/models/cloudproviderregions.go
0.38% <0%> (ø)

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 42cef58...67c0f4f. Read the comment docs.

/approve
/lgtm

authors: codecov-io swordqiu yousong


text:
Automated cherry pick of #273: fix: running guest count incorrect if containers running on

Cherry pick of #273 on release/2.6.0.
#273: fix: running guest count incorrect if containers running on

/lgtm
/approve

authors: Zexi swordqiu


text:
Automated cherry pick of #3270: fix reserved memory is zero

Cherry pick of #3270 on release/2.10.0.
#3270: fix reserved memory is zero

/lgtm

/approve

authors: swordqiu wanyaoqi


text:
region misc fix

这个 PR 实现什么功能/修复什么问题:

instance snapshot recording instance type ,return sub disk storage type
create pramas exclude billing info
...

是否需要 backport 到之前的 release 分支:
release/3.1
/cc @swordqiu
/area region

/lgtm

/approve

/approve


text:
Fix/esxi rebuild

这个 PR 实现什么功能/修复什么问题:

Remove 'Destory' operation that is unnecessary for VirtualDiskManager

Separate detach disk and delete disk when rebuilding.
In previous versions, set
`removeSpec.FileOperation = types.VirtualDeviceConfigSpecFileOperationDestroy'
to delete disk indirectly.
But, when its parent has only one child, the parent will be deleted along with it.
And the consequence is failure to reinstall the system.
Now, detach disk without deleteing backing file and then remove backing
file via datastore's operation.

针对问题2：
之前为了修复振华的问题做的修改：#4994
现在来看没有测试以下情况：image_cache中的某个image (简称IM） 只有一个vm在用，重装vm就会触发问题，因为 IM 会被删除掉。
另外，此次修改需要在振华的环境中测试一下[正在进行中]，看看 #4994 中的问题是不是也会被修复，因为 换了 datastore delete disk 的方式。

是否需要 backport 到之前的 release 分支:

release/3.0
release/3.1
release/3.2

/area esxiagent
/cc @swordqiu @zexi

Codecov Report

Merging #6420 into master will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #6420   +/-   ##
=======================================
  Coverage    7.18%    7.19%
=======================================
  Files         646      646
  Lines      108626   108638   +12
=======================================
+ Hits         7808     7819   +11
  Misses     100219   100219
- Partials      599      600    +1

Flag
Coverage Δ

#aFlag
7.19% <0.00%> (+<0.01%)
:arrow_up:

Impacted Files
Coverage Δ

pkg/multicloud/esxi/storage.go
0.00% <0.00%> (ø)

pkg/multicloud/esxi/vdisk.go
0.00% <0.00%> (ø)

pkg/multicloud/esxi/virtualmachine.go
0.00% <0.00%> (ø)

pkg/cloudcommon/validators/validators_cert.go
39.77% <0.00%> (ø)

pkg/cloudcommon/cronman/cronman.go
53.95% <0.00%> (+5.11%)
: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 bbeb6be...1e7c4c6. Read the comment docs.

authors: codecov-io rainzm


text:
Add support for facebook, twitter, and microsoft ad tracking parameters

Hi! I love the gclid support - it makes working with segment & google ads super easy. I've added support for other ad trackers as well with this PR - take a look.

aclk and msclkid are both Microsoft Ad tracking parameters
twclid is Twitter
fbclid is Facebook

I'm sure there are more out there but this covers the main set.
Added and ran tests & migrations.

Hi @adamf thanks for this - very helpful. Once tests run I'll merge and release an update.

The test failures are in tox.ini and Git actions - it's due to the change in the name of Django's main branch since the last time the tests were run (master -> main). This patch shows the fix:
From 3c95ef30cb83cf4f66377056743667250386ac67 Mon Sep 17 00:00:00 2001
From: Hugo Rodger-Brown <hugo@yunojuno.com>
Date: Tue, 10 Aug 2021 11:30:34 +0100
Subject: [PATCH] Update build matrix

Django now uses main, not master, as its trunk name,
and Django 3.2 has been released since the last time
this was done.
---
 .github/workflows/tox.yml | 2 +-
 tox.ini                   | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml
index d131f92..f455377 100644
--- a/.github/workflows/tox.yml
+++ b/.github/workflows/tox.yml
@@ -38,7 +38,7 @@ jobs:
     strategy:
       matrix:
         python: [3.8,3.9]
-        django: [30,31,master]
+        django: [31,32,main]

     env:
       TOXENV: py${{ matrix.python }}-django${{ matrix.django }}
diff --git a/tox.ini b/tox.ini
index a8314a8..db56d19 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 isolated_build = True
-envlist = fmt, lint, mypy, py{3.7,3.8,3.9}-django{22,30,31,master}
+envlist = fmt, lint, mypy, py{3.7,3.8,3.9}-django{22,30,31,32,main}

 [testenv]
 deps =
@@ -12,7 +12,8 @@ deps =
     django22: Django>=2.2,<2.3
     django30: Django>=3.0,<3.1
     django31: Django>=3.1,<3.2
-    djangomaster: https://github.com/django/django/archive/master.tar.gz
+    django32: Django>=3.2,<3.3
+    djangomain: https://github.com/django/django/archive/main.tar.gz

 commands =
     pytest --cov=utm_tracker --verbose tests/
--
2.32.0

The test failures are in tox.ini and Git actions - it's due to the change in the name of Django's main branch since the last time the tests were run (master -> main).
UPDATE
I have updated the build matrix in the main branch, so if you rebase yours, or merge in the upstream, the tests should pass.

Hmm, my pre-commit version is too old for the black install, and fixing this is proving... annoying. poetry says it is using the correct pre-commit version, so I wonder if this is some confluence of the pre-commit hook triggering pre-commit not using the right python.

Okay - merged your changes into this branch, should be ready for you.

Published as v0.7

authors: adamf hugorodgerbrown

repo: yunojuno/django-utm-tracker


text:
Update scalafmt-core to 3.7.13

About this PR
📦 Updates org.scalameta:scalafmt-core from 3.4.3 to 3.7.13
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "org.scalameta", artifactId = "scalafmt-core" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #152.

repo: yurique/embedded-files-macro


text:
fetch  error on node18

Related: #83

This error only occurs in version 18.13.0, and because Vercel does not currently support higher versions of Node, we are temporarily using Node 16 as the runtime environment.

repo: yuyinws/steam-card


text:
TCP模式下导致openwrt频繁断线

首先感谢一下，这个版本非常好用，以下是我的问题。
路由器是R4S刷的openwrt做主路由，用这个版本的kcptun的tcp模式可以获得接近真实带宽的速度，百兆带宽，下载速度可以到9M-10M，且不会被运营商QOS，本是一件非常黑皮的事。但是有个困扰的问题，如果下载一个稍大的文件，很快的openwrt就会自动断线，看系统日志就是拨号断开了。但是如果通过一台旁路由做流量中继，就是kcptun跑在旁路由上，主路由r4s只跑ssr，这样就不会断线，即使下载文件再大也不会断线，如果同样配置，把tcp模式去掉，路由也不会断线，这是为何呢？
服务端配置：
{
"listen": ":1234",
"target": "127.0.0.1:1000",
"key": "12345678",
"crypt": "none",
"mode": "manual",
"mtu": 1440,
"sndwnd": 2000,
"rcvwnd": 2000,
"datashard": 20,
"parityshard": 10,
"dscp": 46,
"nocomp": true,
"quiet": false,
"smuxver": 1,
"keepalive": 5,
"tcp": true,
"nodelay": 1,
"quiet": false,
"smuxver": 1,
"interval": 11,
"resend": 2,
"nc": 1,
"iocopybuf": 65535,
"irtobackoff": 1,
"irtobthresh": 256,
"noearlyretran": true,
"pprof": false
}
客户端配置
/root/kcptun/client_linux_arm64 -r xx.xx.xx.xx:xx -l 0.0.0.0:1234 --key 12345678 --crypt none --mtu 1440 --rcvwnd 2000 --sndwnd 380 --smuxver 1 --nocomp --tcp -mode manual -nodelay 1 -interval 11 -resend 2 -nc 1 --dscp 46 -datashard 20 -parityshard 10 --iocopybuf 8192 --irtobackoff 1 --irtobthresh 256 --noearlyretran

路过顺便说两句。我在非魔改版的kcptun上就遇到了类似的问题，你说会不会是项目上游的问题？

repo: yzslab/kcptun


text:
About Inference and the pre-trained models

Hi @yztang4 :)
Thanks for the excellent work!
Can you please provide your pretrained models with the inference instruction?
Thank you very much!

You can download the generated samples here: https://drive.google.com/file/d/1YwxoyiWLJC4gxVgZ-ntijo9NQEC0MRlW/view


text:
多选框只会默认选中一个

Laravel Version: 6.18.6
PHP Version: 7.3.5
Laravel-admin: 1.7.14

Description:
对于多选框标签，我保存数据选择了多个，而在显示数据时只显示了一个。经过我测试，在form()方法中获取到了含有多个数据的数组，但是只会默认选中第一个
Steps To Reproduce:
class DayQuiz extends Form{
public $title = "每日一题";
public function handle(Request $request)
{
$arr = $request->only(["day_quiz_range"]);
foreach ($arr as $k=>$v){
SystemSetting::updateOrInsert(["name"=>$k],["data"=>$v]);
}
admin_success("保存成功");
return back();
}
public function form(){
$this->multipleSelect("day_quiz_range","选题范围")->options("/admin/api/quizCat")->required();
}
public function data()
{
return [
'day_quiz_range' =>SystemSetting::firstOrCreate(['name'=>"day_quiz_range"],['data'=>[1,2],'type'=>'string'])->data
];
}
}

原因在于   options需要的数据为["key"=>"value","key"=>"value","key"=>"value"...]，而不是[{id:"",text:""}...]

repo: z-song/laravel-admin

license: mit


text:
关于   提交后的跳转

$form   里面提交后 跳转 可以控制的吗？  可以自定义路由吗？

看文档。。。。
http://z-song.github.io/laravel-admin/#/zh/model-form-callback.md

禁用 表单里面的  列表按钮  要更新 什么文件吗？？    或者返回按钮

以后碰到没有的功能  就更新包

可以  ，，，麻烦了


text:
Quick start examle not working

I tried to create WASM serivce using Quick Start example from documetation, but i can't make it working, diagram is not rendered (may be css issue). Please, review QuickStart code, and it would be nice if you put working example of in code repository.

Did you make sure of this? The parent of DiagramCanvas needs to have a fixed width/height for the diagram to show, so inspect your HTML and see if the parent or the canvas don't have 0 in height or something.
There is a lot of demos in the samples, you'll also see that I specify a height in the demos:
.diagram-container {
    width: 100%;
    height: calc(100% - 52px);
}

Oh, you a right, now it works, sorry. But may be you should include something like
`

`
in example. I see that my quesion is not the first one :(

I'll try to make the Quickstart easier in the future, thanks!

@MAKolker  Thank you so much for pointing this out in a clear example. I was close to giving up because it was not working at all. In my case the issue was using min-width and min-height. Seems you explicitely need to use width and height....

authors: MAKolker inventivejon zHaytam


text:
socks5 connected but gt server not connected always get event type 2

help me pls i dm u guys on dc no answer

socks5 can connect to growtopia1.com and growtopia2.com

enable ubi protocol

authors: sdssaeq zKevz


text:
HTML5 播放器可以提供字幕屏蔽功能么

如题，还有就是 HTML5  的弹幕的字体都默认很大，希望能改一下。

+1

@xxtXieTingF  @BigPa  在左下角的右四图标，单击时关闭弹幕。点开可调整大小

@Demodi 字幕屏蔽指部分屏蔽
（吵架、秀优越、刷屏、日期等）

恩恩是的，字幕屏蔽主要是指关键字屏蔽那一类

最好能同步官方播放器设定的屏蔽规则

authors: BigPa Demodi xxtXieTingF ywwzwb

repo: zacyu/bilibili-helper


text:
Multiple display of an axis

The current way to show the same axis at top and bottom is to do something like
<Axis position="top" id="x" />
<Axis position="bottom" id="x" />

The problem is that if any of the axes is removed, the other axis is removed from the context. I think of two options:

It should be checked if there's another axis with the same id before removing it from the context
An axis could accept several positions (non-orthogonal between them)

What do you think? @targos @lpatiny @stropitek @Sebastien-Ahkrin

I think we need to support the same axis id multiple times (for example if you want to pass different options to display it).
What about keeping a "reference counter" in the state and only remove the axis from the context when the counter reaches zero?

Because properties like min or max could generate a conflict, is proposed a <ParallelAxis> component with the following properties:
type ParallelAxis= Omit<AxisProps,
  | 'position' // infered from id
  | 'min'
  | 'max'
  | 'paddingStart'
  | 'paddingEnd'
  | 'flip'
  | 'scale'
>

This axis will only be displayed if id is defined in the `axis context and the position is inferred from the current position of the parent axis.

sgtm!

authors: maasencioh targos

repo: zakodium/react-plot


text:
Make proxyName an optional argument

When the proxy name is not set ConnectorCustomizer returns localhost.
This is inconvenient because the user need to know in advance under which URL the app is running.
By this it is not possible to perform live tests before switching the LoadBalancer in Blue/Green deployment. When returning an empty String as proxyName Spring Framework determines and extracts the proxyName from the incoming call.

Fixed with PR #5 .

repo: zalando-stups/booties


text:
Issue in executing the main.py

Description
runfile('C:/Users/XXXXXX/XXXXXXX/XXXXX/XXXXX/XXXXX', wdir='C:/Users/XXXXX/XXXXX/XXXXXR/XXXXX/XXXXX/src')
Reloaded modules: api_data_provider
The swagger_ui directory could not be found.
Please install connexion with extra install: pip install connexion[swagger-ui]
or provide the path to your local installation by passing swagger_path=
The swagger_ui directory could not be found.
Please install connexion with extra install: pip install connexion[swagger-ui]
or provide the path to your local installation by passing swagger_path=

Serving Flask app "main" (lazy loading)
Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
Debug mode: on
Restarting with stat
An exception has occurred, use %tb to see the full traceback.

SystemExit: 1
Expected behaviour
Actual behaviour
Steps to reproduce
Additional info:
Spyder console is showing the mentioned issue, installed all the modules required. Please do the needful.
Output of the commands:

python --version
pip show connexion | grep "^Version\:"

Hi @SYKAMR , could you provide your main.py and all your installed packages (the output of pip freeze)?

import json
import os
import flask
from flask import render_template, request,Flask
from flask import  request, jsonify
import ast
from getrequestDetails import *
from check_user import *
from checkVnV_response import *
from flask import after_this_request
import connexion
from flask import Flask
Create the application instance
app = connexion.App(name, specification_dir='./')
app.app = Flask(name, static_url_path='/services/eln/register/static')
Read the swagger.yml file to configure the endpoints
app.add_api('swagger.yaml')
app.app.config["JSON_SORT_KEYS"]=False
app.app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 0
app.app.secret_key = 'development key'
app.app = Flask(name,static_folder='/app/static')
list_current_file = []
def get_input_vnv(sample_id):
print("This is sample_id....",sample_id)
# sample_id = "sample:a2b07aae-9c4d-4ce6-ab88-fe593b6689ec"
url = "https://devstaging.snbstg5bup.perkinelmercloud.com/api/rest/v1.0/entities/" + sample_id + "/export?format=mol"
payload = {}
headers = {
    'x-api-key': 'v1/ax6PK9N35g83mRyeBzZtE6NMbEDrqrKLMwb3LV6B4ucz1ByUyn3+1kc3fC2C8FzD4vQ==',
}

response = requests.request("GET", url, headers=headers, data=payload, verify=False)
print("response from get_input vnv....",response.text)
# os.remove("static/sample.mol")
# os.remove("static/Vnv.png")
t = time.localtime()
timestamp = time.strftime('%b-%d-%Y_%H%M', t)
image_name = ("image" + timestamp+".png")
global list_current_file
list_current_file.append(image_name)
mol_name= ("mol" + timestamp+".mol")
list_current_file.append(mol_name)
with open('static/'+mol_name, "w+") as f:
    print("image file  modified")
    f.write(response.text)
m = Chem.MolFromMolFile('static/'+ mol_name)
Draw.MolToFile(m, 'static/'+image_name)
return response.text,image_name

@app.route('/services/eln/register/debugSignalAction', methods=['POST', 'GET'])
def debug_signalDetails():
dict_rep = {}
try:
dict_rep["headers"] = dict(request.headers)
except:
dict_rep["headers"] = {}
try:
    dict_rep["url"] = request.url
except:
    dict_rep["url"] = ""
try:
    dict_rep["ip_address"] = request.remote_addr
except:
    dict_rep["ip_address"] = ""
try:
    dict_rep["request_method"] = request.method
except:
    dict_rep["request_method"] = ""

try:
    dict_rep["query_parameter"] = request.args.to_dict()
except:
    dict_rep["query_parameter"] = ""

try:
    dict_rep["path_parameter"] = request.path
except:
    dict_rep["path_parameter"] = ""

try:
    dict_rep["data"] = request.form.to_dict()
except:
    dict_rep["data"] = {}

return dict_rep

@app.route('/services/eln/register/registrationPreCheck', methods=['POST','GET'])
def signalDetails():
sample_id,user_id,origin,url = request_details(request)
print("######################",sample_id,user_id,origin,url)
print(read(user_id,origin))
# sample_id ="sample:60c7f825-2d0d-473a-957a-52db7ef62517"
# user_id =106
# origin = "https://devstaging.snbstg5bup.perkinelmercloud.com"
# print(read(user_id, origin))
global list_current_file
# right_image_name= "Vnv.png"
respnse_strct,filename=get_input_vnv(sample_id)
left_image_name = filename
list_current_file.append(left_image_name)
stereoisomer_code,stereoisomer_name,error_msg,vnv_modification,right_flnam_rep,modified_strct= vnvresponse(respnse_strct)
print("^^^^^^",type(modified_strct),"^^^^",modified_strct)
if len(vnv_modification) !=0:
    modification_msg=vnv_modification[0]
    right_image_name=right_flnam_rep
    list_current_file.append(right_image_name)
    uniquness_check, uc_status_code = uc_response(modified_strct)
elif  len(vnv_modification) == 0:
    modification_msg = "There are no errors or modifications"
    right_image_name = filename
    list_current_file.append(right_image_name)
    uniquness_check,uc_status_code = uc_response(respnse_strct)
# print("....from main...",uniquness_check)
list_structure = []
count_struct = 0
unqc_check = ""
if uc_status_code == 200:
    if uniquness_check["hitCount"] != 0:
        # response_uc_sorted = sorted(uniquness_check["matches"], key=lambda k: k['matchType'])
        # response_uc_sorted_exact=
        # response_uc_sorted_stereoIsomerCode
        response_uc_sorted= sorted(uniquness_check["matches"], key=lambda e: (e['matchType'], e['parentNumber']))
        print("response_uc_sorted...",response_uc_sorted)
        for i in response_uc_sorted:
            dict_structure = {}
            dict_structure["matchType"] = i["matchType"]
            dict_structure["parentNumber"]=i["parentNumber"]
            dict_structure["stereoIsomerCode"] = i["stereoIsomerCode"]
            dict_structure["structureComment"] = i["structureComment"]
            with open("static/sample_" + str(count_struct) + ".mol", "w+") as f:
                f.write(i["matchStructure"])
            list_current_file.append("sample_"+str(count_struct) + ".mol")
            m = Chem.MolFromMolFile("static/sample_" + str(count_struct) + ".mol")
            Draw.MolToFile(m, "static/Vnv_" + str(count_struct) + ".png")
            dict_structure["matchStructure"] = "Vnv_" + str(count_struct) + ".png"
            list_current_file.append(dict_structure["matchStructure"])
            count_struct = count_struct + 1
            list_structure.append(dict_structure)
        print("...",list_structure)
        values_of_matchtype = [a_dict["matchType"] for a_dict in list_structure]
        print("Value for match type..",values_of_matchtype)

        if values_of_matchtype.count("EXACT") == 1 and values_of_matchtype.count("STEREOISOMER") == 0:
            unqc_check = "Your structure has an exact match."
        elif values_of_matchtype.count("EXACT") == 1 and values_of_matchtype.count("STEREOISOMER") >= 1:
            unqc_check = "Your structure has an exact match but also has stereoisomer matches."
        elif values_of_matchtype.count("EXACT") >= 1:
            unqc_check = "Your structure has more than one exact match, please request a curation to address duplicates prior to registration."
        elif values_of_matchtype.count("EXACT") == 0 and values_of_matchtype.count("STEREOISOMER") == 0:
            unqc_check = "Your structure is unique."
        elif values_of_matchtype.count("EXACT") == 0 and values_of_matchtype.count("STEREOISOMER") >= 1:
            unqc_check = "Your structure is unique but also has stereoisomer matches."
        elif values_of_matchtype.count("EXACT") == 0 and values_of_matchtype.count("STEREOISOMER") >= 0:
            list_structure=[]
            dict_0={}
            dict_0['StructureId'] = "Drawn Structure"
            dict_0['MF'] = None
            dict_0['MW'] = None
            dict_0['stereoIsomerCode'] = stereoisomer_code
            dict_0['Comment'] = ""
            dict_0['matchStructure'] = right_image_name
            list_structure.append(dict_0)

    else:
        list_structure=[]
        dict_0={}
        dict_0['parentNumber'] = "Drawn Structure"
        dict_0['MF'] = None
        dict_0['MW'] = None
        dict_0['stereoIsomerCode'] = stereoisomer_code
        dict_0['Comment'] = None
        dict_0['matchStructure'] = right_image_name
        list_structure.append(dict_0)
        unqc_check="There is no structure found in uniqueness check"

else:
    unqc_check = uniquness_check

code = str(stereoisomer_code) + "-" + str(stereoisomer_name)
print("...main file..",stereoisomer_code,error_msg)

@after_this_request
def remove_file(response):
    ext = [".png", ".mol"]
    global list_current_file
    try:
        files_in_dir = os.listdir("static")
        filtered_img_mol = [file for file in files_in_dir if file.endswith(tuple(ext))]
        files_to_remove=[x for x in filtered_img_mol if x not in list_current_file]
        for file in files_to_remove:
            os.remove("static/" + file)
        list_current_file=[]
    except Exception as e:
        list_current_file=[]
        print(e)

    return response

#return app.send_static_file('pre_check_form.html', left_image=left_image_name, right_image=right_image_name,code= code,error=modification_msg,check=list_structure,sweetalert="Registration Pre-Check",uc_msg=unqc_check)

return render_template('pre_check_form.html', left_image=left_image_name, right_image=right_image_name,code= code,error=modification_msg,check=list_structure,sweetalert="Registration Pre-Check",uc_msg=unqc_check)

@app.route('/services/eln/user/bearerTokenExchange.html')
def bearerTokenExchange_user_html():
return render_template('bearerTokenExchange.html')
@app.route('/services/eln/user/bearerTokenExchange')
def bearerTokenExchange():
# ToDo: Insert bearerTokenExchange code here
return jsonify({"request.path": request.path}, {"request.args": request.args}), 200
If we're running in stand alone mode, run the application
if name == 'main':
app.run(host='0.0.0.0', port=5000, debug=True)

Hi,
Is the data sufficient for your reference. Let me know if need anything from my end

Hi @SYKAMR, you didn't provide the installed packages.
But from your first error message, it seems like your issue should be fixed by installing connexion with the swagger-ui extra:
pip install connexion[swagger-ui]
If this doesn't fix your issue, please provide a minimal working example we can use to reproduce the issue.

authors: RobbeSneyders Ruwann SYKAMR

repo: zalando/connexion


text:
Added myself to maintainers

#42 for zappr

:+1:

Codecov Report

Merging #87 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #87   +/-   ##
=========================================
  Coverage     72.05%   72.05%
  Complexity      239      239
=========================================
  Files            48       48
  Lines           841      841
  Branches         40       40
=========================================
  Hits            606      606
  Misses          213      213
  Partials         22       22

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 816b0f0...cc38cb6. Read the comment docs.

:+1:

authors: codecov-io hjacobs vadeg whiskeysierra

repo: zalando/tokens


text:
PR-560: Extract rule API into subproject.

I tried to move on #560.
I moved Rules API to a gradle submodule zally-rules.
I also managed to remove Spring dependency from zally-rules. Using BeanDefinitionRegistryPostProcessor we can register BeanDefinition at runtime prior to any Bean instantiation. This may contribute to #122 .
From what I've seen, to be fully indenpendant from Spring, we would need a way to pass the Config object without @Autowired to rule creation. I probably missed other dependencies.
Also I have no prior experience with gradle so I probably overlooked the build.

Codecov Report

Merging #748 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #748      +/-   ##
============================================
+ Coverage     86.43%   86.45%   +0.01%
+ Complexity      954      948       -6
============================================
  Files           167      166       -1
  Lines          2573     2576       +3
  Branches        348      349       +1
============================================
+ Hits           2224     2227       +3
  Misses          187      187
  Partials        162      162

Impacted Files
Coverage Δ
Complexity Δ

...ly/configuration/RulesDefinitionConfiguration.java
100% <100%> (ø)
2 <2> (?)

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 c1fe25d...6c780cc. Read the comment docs.

I believe your a trying to address #560 (part of Rule Set epic). The idea behind it is to separate the rule implementations from the server component. Please have a look into the issue #560.

Oops my bad, I meant #560 not 551. I Fixed the PR

Some comments from my side:

Let's rename the subpackage to zally-rule-api or zally-rule-interface
We should also include Context interface

This seems like a healthy step forward to me!
FWIW the zally-rule-api gets my vote for the subproject name. Short and sweet, and doesn't make me stop and think about the interface concept vs keyword. (Although I guess the argument against is that it might make some people think about JVM API vs REST API).
Clearly a Context interface should be extracted into the subproject too since most/all rules shouldn't be implemented without reference to a Context going forward, but the current Context class has lots of dependencies into murky depths of .util.ast so there's some extraction work to do (perhaps a Context interface and ReverseAstContext implementation???). Not sure if it's worth blocking the PR for.

Without Context the module cannot be used independently of the server code.
This raise an issue to me, the Context dependency is not clearly expressed with the Rule and Check annotations. I get it that reflection and Check are used to execute the rules. But this leaves just annotations with no implementation contract.
I don't really know were to go from this though.

Without Context the module cannot be used independently of the server code.

That's what I was trying to get at above. As things stand the Context is very much part of the implementation, but it's interface is key to writing rules (which take a Context argument). I had a go at the extraction and it wasn't as painful as I feared: https://github.com/roxspring/zally/commit/7327ae00659ba01c6c26ff89279b2f1b4a335cd3. I'm not totally convinced by the ReverseAstContext name but I don't have a better idea right now - lazy options like DefaultContext or ContextImpl don't seem very zallyish.

This raise an issue to me, the Context dependency is not clearly expressed with the @Rule and @Check annotations. I get it that reflection and @Check are used to execute the rules. But this leaves just annotations with no implementation contract.

Yes, this is a downside of the annotation approach. Previously there was a simple Rule interface with a clear contract defined by the validate(Swagger): Violation? method, but we wanted to move to a position where we have multiple validations (i.e. @Checks) within a single rule implementation. Annotations seemed the sensible way to achieve that. Note also that the Context class is still very young, most rules aren't even using it... yet... the transition is moving fast!
Neither this history nor current rule writing recommendations are clearly documented though. Guess we ought to track an issue for that.

I don't really know were to go from this though.

I think it'd be good to rename the subproject: zally-rule-api establishes a convention of subprojects matching the sub-package naming.
If you want to pull my commit (modified or not) into your PR then I'm fine with that.
If @maxim-tschumak is happy to take this PR as is, then I'm also happy to open a separate PR for the Context work.

I had exactly the same idea in mind with the extracting the interface (@roxspring's branch). I believe this is the right way to go.

I'm not totally convinced by the ReverseAstContext name

Please don't re-use the AST abbreviation - it is wrongly used in this context (we have to improve this eventually). DefaultContext or ContextImpl are perfectly fine names for the context implementation!

If @maxim-tschumak is happy to take this PR as is, then I'm also happy to open a separate PR for the Context work.

great! I'm happy :)

Oh, and given that the subproject is pure kotlin, perhaps we should move the source to src/main/kotlin/ rather than src/main/java/ - again happy to do it in a separate PR if preferred.

+1

@roxspring I picked your commit and went for DefaultContext instead of ReverseAstContext
Used rebase & push force to rename module to zally-rule-api and source directory to kotlin. Also rebase on master.

LGTM!
minor comment: please add \n on the end of the following files:

server/settings.gradle
server/zally-rule-api/settings.gradle
server/zally-rule-api/src/main/kotlin/de/zalando/zally/rule/api/Context.kt

:+1:

:+1:

@maxim-tschumak, @netme, others, any objections to this? I'm seeing it as a really good step forward towards modularization so would really like to see this merged but getting 2nd approvals seems difficult at the moment (holiday season??).
@beatkyo assuming no objections from above, are you able to resolve the conflict?

I like the idea. It's just gonna be interesting to sync (resolve conflicts) since we are actively working on the rules @maxim-tschumak and I at the moment.
Let us know when the conflicts are resolved. We'll try to merge it before new ones appear.

rebased done

:+1:

Sorry @beatkyo , it got out of sync again. @maxim-tschumak and I will try NOT merging today in this repo so you can fix it and we merge it. Sorry about this.

👍

:+1:

Finally, we did it ;) Let's back-merge in our branches now! 😱 ;)

authors: beatkyo codecov-io ddufourboivin-zalando maxim-tschumak roxspring

repo: zalando/zally


text:
Add Delay gate

Co-authored-by @ucapgum
Description
This adds the Delay instruction needed by the Hardware Team. We decided to implement Delay as a parametric gate because it seemed simpler than rolling a full separate WavefunctionOperation.
Please verify that you have completed the following steps

[x] I have self-reviewed my code.
[x] I have included test cases validating introduced feature/fix.
[ ] I have updated documentation.

Codecov Report

Merging #52 (78ee309) into main (e122894) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #52   +/-   ##
=======================================
  Coverage   94.16%   94.17%
=======================================
  Files          46       46
  Lines        3017     3020    +3
=======================================
+ Hits         2841     2844    +3
  Misses        176      176

Impacted Files
Coverage Δ

src/orquestra/quantum/circuits/_builtin_gates.py
100.00% <100.00%> (ø)

src/orquestra/quantum/circuits/_matrices.py
100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

repo: zapatacomputing/orquestra-quantum


text:
Vercel build issues

When building using Vercel, I get these errors:
`.../.pnpm/gl@6.0.2/node_modules/gl install: gyp ERR! configure error

.../.pnpm/gl@6.0.2/node_modules/gl install: gyp ERR! stack Error: `gyp` failed with exit code: 1
    at error (file://./node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/dist/es/shared/node-entry.js:2287:30)
    at ModuleLoader.handleInvalidResolvedId (file://./node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/dist/es/shared/node-entry.js:24860:24)
    at file://./node_modules/.pnpm/rollup@3.29.4/node_modules/rollup/dist/es/shared/node-entry.js:24822:26

Error: Command "storybook build" exited with 1
`

Is this a configuration issue? Am I doing something wrong?
I forked this repo, and then uploaded the next branch to Vercel, it auto selected the storybook framework, I also tried it with next.js framework, but with no success for either. Do I need to be using a different build command? I just let Vercel auto pick the command.

Sorry for the delay, I'll into the issue within next 30min, if there is an issue with storybook and you don't need it, you can skip this build step

Please see the reference: https://github.com/zardoy/minecraft-web-client/actions/runs/10206948629/job/28240815185
I'm getting no issues for the whole build pipeline. If you have local build issues try docker container!

Thank you for replying, this worked in a docker container locally. I would like to know exactly what settings you used to import your repo.

I tried starting a new build with the config: pnpm storybook build, and prod as the output destination. It's been building for 20 minutes now, and the vercel build is not showing in GitHub actions on my forked repo. On the vercel website, it shows its still building

This is where the build gets stuck at storybook dev -p 6006 "build"
@storybook/cli v7.4.6
info => Starting manager..
╭────────────────────────────────────────────────────╮
│                                                    │
│   Storybook 7.4.6 for react-vite started           │
│   564 ms for manager and 4.05 s for preview        │
│                                                    │
│    Local:            http://localhost:6006/        │
│    On your network:  http://192.168.6.170:6006/    │
│                                                    │
╰────────────────────────────────────────────────────╯
attention => Storybook now collects completely anonymous telemetry regarding usage.
This information is used to shape Storybook's roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://storybook.js.org/telemetry

I tried starting a new build with the config: pnpm storybook build, and prod as the output destination. It's been building for 20 minutes now, and the vercel build is not showing in GitHub actions on my forked repo. On the vercel website, it shows its still building

Instead of figuring out build issues on vercel, use GitHub actions to deploy instead instead: https://vercel.com/guides/how-can-i-use-github-actions-with-vercel
everything is already configured you just need to handle this part from guide: Inside GitHub, add VERCEL_TOKEN, VERCEL_ORG_ID, and VERCEL_PROJECT_ID as secrets. Google how to find these.

I tried starting a new build with the config: pnpm storybook build, and prod as the output destination. It's been building for 20 minutes now, and the vercel build is not showing in GitHub actions on my forked repo. On the vercel website, it shows its still building

Instead of figuring out build issues on vercel, use GitHub actions to deploy instead instead: https://vercel.com/guides/how-can-i-use-github-actions-with-vercel
everything is already configured you just need to handle this part from guide: Inside GitHub, add VERCEL_TOKEN, VERCEL_ORG_ID, and VERCEL_PROJECT_ID as secrets. Google how to find these.

I was able to successfully deploy, I'm sorry if I wasted time. I wasn't sure if it was an issue with this project, or an issue with how I was trying to deploy to vercel. Thank you

repo: zardoy/minecraft-web-client


text:
Issue importing sheet

Importing sheets by tokens seems to be broken. Verified proper tokens were being used for imports, and verified with a secondary source that the importing function is broken on other machines as well with several different types of sheets.
Only outside variable is that in Hero Labs, characters are using custom ancestry options. Wasn't an issue before, so may be due to a breaking change on the PF2e sheet set, but below is the error that occurs on importing

Thanks, I have a work-around in place, no update needed to the module. Something went funky with their SSL cert, so I'm going to have to do further digging to put in a proper fix.

Thanks, I have a work-around in place, no update needed to the module. Something went funky with their SSL cert, so I'm going to have to do further digging to put in a proper fix.

They have misconfigured their server. Not an issue on my end.  That said, I should put in some better error handling to prevent this from silently failing.

They have misconfigured their server. Not an issue on my end.  That said, I should put in some better error handling to prevent this from silently failing.

Fair enough. Yeah having a front end message of some kind would be good to have, or even some console message at least to narrow down issues when they happen

Fair enough. Yeah having a front end message of some kind would be good to have, or even some console message at least to narrow down issues when they happen

authors: kmanrulze zarmstrong

repo: zarmstrong/hlo-importer


text:
求问自己写的渲染器跟opengl等的性能比怎么样？

求问自己写的渲染器跟opengl等的性能比怎么样？

图形库的渲染器是在GPU跑的，性能比在CPU跑的优很多

@wlxklyh vulkan opengl这些应该也能cpu？我电脑都没有gpu他跑在哪里，如果都是cpu上，性能差多少呢

@jinfagang  我没有听过vulkan opengl在纯cpu上跑~~  图形库是调GPU的驱动接口去绘制 有可能在纯CPU跑的，但我没了解过~   你电脑没有gpu，那怎么看渲染结果的~？

软渲染器是在将输入的模型、纹理等在CPU算好之后得到画面（CPU里面的一段内存），显示的时候也要把这段内存传给GPU去做显示。
图形库渲染器是把输入的模型、纹理、渲染状态通过图形库接口传给GPU，在GPU去计算这个画面，然后再传给屏幕缓冲，然后显示出来。

我理解的是，看结果用glfw就行把，一个很直接的例子，在mac跑vulkan，mac就没有gpu。不过可能我们说的gpu不是一个gpu。其实我想文的是，我们用c或者c++写的软渲染，应该就是跑在cpu上把，如果跑在gpu上，性能和vulkan差多少？

我也是菜鸡~~

可能你想说的可能是没有独立的显卡，mac至少是有核显的。
软光删跟图形库的性能差别巨大，图形库在GPU跑是很多线程，软光栅跟在GPU光栅差特别大
如果只是想可视化3d 有很多选择：
简单些的展示fbx   用js写
https://threejs.org/
例子
https://threejs.org/examples/webgl_loader_fbx.html

跨平台：
https://github.com/google/filament
https://github.com/bkaradzic/bgfx
游戏引擎：
UE
Unity

@jinfagang threejs 我也没用过  但是看例子感觉比较简单就可以展示一个fbx
https://github.com/mrdoob/three.js/

@wlxklyh 谢谢大佬，我其实有两个疑问：

我用vulkan在我的linux下编译的渲染程序，是否可以在其他同架构linux运行？因为我看vulkan是不开源的，是否要分发的是哦户把他的动态链接库也带上？别人如果没有安装vulkan是不是无法运行；
这个 google的filament，为什么在pc端用opengl ， 在android上用vulkan？为什么不用一套统一的平台？

我其实基于c++从底层构建一个，其他功能都不需要，只要做到跨平台，具有鼠标交互，和常见3d格式读取。

求问自己写的渲染器跟opengl等的性能比怎么样？

感觉大佬之前没搞清楚软光栅是干嘛用的，我也简单解释一下~
写软光栅大多是以学习渲染底层流程为主，目的是在CPU上手动模拟一遍GPU硬件做的工作，这么做的动机可以类比为写代码中的一种行为：Quine，主要图一乐，锻炼自己对底层原理了解的深刻程度，所以题主要和GPU硬件比性能，这样比较本身也没什么意义；

软光栅渲染器更多的是作为个人学习底层渲染知识，或者是为了给暂无可用显卡驱动的系统(比如升级内核后显卡驱动崩了的Linux系统)提供Fallback而存在的。
前者的一个例子就是这个项目了。后者的话Mesa有个LLVMpipe项目，提供了OpengGL 4.3的支持，这已经是目标完成度和性能都很高的软光栅渲染器了。
https://www.phoronix.com/scan.php?page=news_item&px=LLVMpipe-Mesa-19.0-Performance
这是在2018年对LLVMpipe的性能做的测试。在这个测试中，运行发布于2003的游戏Wolfenstein: Enemy Territory（重返德军总部：深入敌后）时，FPS只有15，这已经是接近20年前的游戏了。可见CPU渲染和GPU渲染相比，在性能上是没有可比性的。

@wlxklyh 谢谢大佬，我其实有两个疑问：

我用vulkan在我的linux下编译的渲染程序，是否可以在其他同架构linux运行？因为我看vulkan是不开源的，是否要分发的是哦户把他的动态链接库也带上？别人如果没有安装vulkan是不是无法运行；
这个 google的filament，为什么在pc端用opengl ， 在android上用vulkan？为什么不用一套统一的平台？

我其实基于c++从底层构建一个，其他功能都不需要，只要做到跨平台，具有鼠标交互，和常见3d格式读取。

@jinfagang
你是大佬，领域不一样~
1、（我没搞过vulkan 需要再查下资料确认下）  我觉得vulkan程序 在一个系统上能否运行看下面两点
（1）看系统本身有没有Vulkan Run Time Libraries 或者 程序自身带了运行库没
（2）硬件是否支持你的程序里面使用到的vulkan api。 vulkan是有接口判断硬件是否支持某个api
所以你第一点的回复是：可以在一模一样的linux中运行（有运行库、硬件也支持程序用到的所有api接口）  是否要带上运行库看项目自己的决定（如果环境没有vulkan是提示玩家下载  还是说有fallback的方案  用opengl低版本 或者其他图形库，还是说就带上vulkan运行库 ）没有vulakn运行库是不可以运行的vulkan程序的。
2、filament应该是可以设置用什么图形库的。用户的环境很复杂，有的支持vulkan 有的支持opengl 有的是dx 、metal，然后程序本身有选择图形库的优先级别，所以是需要一段适配逻辑 ：根据当前用户的系统环境、硬件环境，还有项目想优先选择哪个图形库。
3、C++的跨平台渲染引擎，bgfx、Filament。更加简洁的，我也不了解了。

authors: ElementMo jinfagang wlxklyh zauonlok

repo: zauonlok/renderer


text:
Snakemake pipeline

Description
Major update from Maciek [2/2]: add the snakemake pipeline itself.
Type of change

[x] New feature (non-breaking change which adds functionality)
[ ] Documentation updated

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I have not reduced the existing code coverage

Documentation related to Snakemake pipeline execution is missing from the main README.md

The CI linked to this PR contains builds 55 and 56, at the Travis CI they are marked as "passing", however here these are stuck and "Pending"... delay on the route Travis---GitHub?
Based on the successfull build @ Travis server I merge.

repo: zavolanlab/binding-scanner


text:
正确的cookie，但是报这个错误

WARNING[2022/04/16 06:03:51] 尝试次数: 38, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 37, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 36, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 35, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 34, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 33, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 32, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 31, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 30, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 29, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 28, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 27, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 26, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 25, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 24, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 23, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}
WARNING[2022/04/16 06:03:51] 尝试次数: 22, 无法识别的状态码: {"code":1111,"msg":"您的访问已过期,请重新登录","success":false,"timestamp":"2022-04-16 06:03:50"}

同 #42

已支持 app 通道


text:
Is Dart support still WIP?

🚀 Feature Request
We have a demand of using Rust with Dart at Rinf. Is Dart support in serde-reflection still experimental? If it is, what can I do to make it stable?
Motivation
Is your feature request related to a problem? Please describe.

It looks like Dart support has been present from a long time ago(3 years~), but it is still not marked as stable.
Pitch
Describe the solution you'd like

Dart support being stable.
Describe alternatives you've considered

At Rinf, we are using Protobuf to send messages between Dart and Rust, but using serde will be much more elegant.
Are you willing to open a pull request? (See CONTRIBUTING)
Yes
Additional context

We are still using it (in a large project) several years later and it's feature complete in my opinion. Whether it's officially listed in the README as stable is more of an administrative and maintenance decision by the repo owner.

Great to hear from your experience @jerel.
Technically, we're actually missing something: the more comprehensive e2e tests test_dart_{bcs,bincode}_runtime_on_supported_types in dart_runtime.rs.

Just made a new task in this repo: https://github.com/zefchain/serde-reflection/issues/49
Closing this one now. We can continue the technical discussion on #49

authors: jerel ma2bd temeddix

repo: zefchain/serde-reflection


text:
Display WebPack's warnings

If I try to bundle the following code:
const importLazy = require("import-lazy")(require);
const lodash = importLazy("lodash");
console.log ( lodash );

With webpack (v4.4.1) directly I get a warning saying:
WARNING in ./index.js
1:42-49 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./index.js

Basically the way lodash is being imported is too dynamic for WebPack and this file can't be bundled properly.
If I try to bundle it with ncc I get 0 warnings, so I may think the thing worked while in fact it produced a broken bundle.
All warnings and errors from WebPack should be displayed.

The Webpack warning wouldn't actually be accurate here in ncc due to the fact that we rewrite this case to be a dynamic require to lodash in the build.
That is, you will get a bundle that attempts to require lodash itself, throwing an error only after it is not found then.
This is how ncc works as of the latest beta to more closely match the way files execute in Node itself.

Should perhaps then ncc transform the code properly to account for import-lazy and similar libraries?

authors: fabiospampinato guybedford

repo: zeit/ncc


text:
Add examples folder

[ ] Hello world
[ ] Multiple bundles (e.g.: cli.js -> dist/cli/ and main.js -> dist/main)

Would also be good to add examples for programmatic use and TypeScript support 😎
Can get started on a PR for these

What's the optimal way to do multiple bundles? Programmatic?
Would there ever be a day where ncc takes a glob to build? (e.g. ncc build *.js or ncc build {cli,main}.js)

@maxbeatty looks like there is a little bit of talk about supporting multiple entry points in #113. As of now, I believe the only way to support multiple bundles right now would either be:
ncc build a.js -o dist
ncc build b.js -o dist

or with a custom build script using the ncc Node API:
const path = require('path')
const ncc = require('@zeit/ncc')

// Whatever options you want. This is an example.
const options = {
  minify: true,
  sourceMap: true,
  watch: false,
}

Promise.all([
  ncc(path.resolve('./a.js'), options),
  ncc(path.resolve('./b.js'), options),
])
  .then(([a, b]) => {
    // Builds succeeded!
    // You can write the code and sourcemaps to disk or whatever you'd like to do here.
    console.log(a.code)
    console.log(a.assets)
    console.log(a.map)
  })
  .catch((err) => {
    // There was an error in one of the builds.
    console.error(err)
  })

(where a.js and b.js live in the folder you are running the script from. Those sorts of file paths would need to be updated to suit your needs.)
I think examples for programmatic use (both for one entry point and multiple entry points) would be welcome additions to this repo to help guide people in understanding what options are available / best practices are around multiple bundles + programmatic use. 👍

authors: macklinu maxbeatty rauchg


text:
with-material-ui-next

Example build fails.
TypeError: (0 , _styles.createStyleSheet) is not a function
    at Object.<anonymous> (/xxx/xxxx/xxx/xxx/with-material-ui-next/.next/dist/components/withRoot.js:47:47)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Module.require (module.js:517:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/xxx/xxx/xxx/xxx/with-material-ui-next/.next/dist/pages/index.js:43:17)
    at Module._compile (module.js:573:30)

When running npm install and npm run dev, app compiles successfully then immediately fails when I land on local host with the above error.

[ X] I have searched the issues of this repository and believe that this is not a duplicate. This issue was listed, then closed with no comment.

Expected Behavior
Expected app not to fail.
Current Behavior
App fails after landing on local host 3000 with above error message
Steps to Reproduce (for bugs)

CD into example directory
npm install
npm run dev
visit localhost:3000

Context

Your Environment

Tech
Version

next
^3.0.3

node
8.4.0

OS
High Sierra

browser
Chrome

etc

createStyleSheet does not exist in material-ui now. Need update with alternatives.
https://github.com/callemall/material-ui/blob/v1-beta/src/styles/index.js

I found a quick fix:
Remove createStyleSheet import, change from
const styleSheet = createStyleSheet(theme => ({
  '@global': {
    html: {
      background: theme.palette.background.default,
      WebkitFontSmoothing: 'antialiased', // Antialiasing.
      MozOsxFontSmoothing: 'grayscale' // Antialiasing.
    },
    body: {
      margin: 0
    }
  }
}))

to
const styleSheet = theme => ({
  '@global': {
    html: {
      background: theme.palette.background.default,
      WebkitFontSmoothing: 'antialiased', // Antialiasing.
      MozOsxFontSmoothing: 'grayscale' // Antialiasing.
    },
    body: {
      margin: 0
    }
  }
})

That did the trick. Thanks for the quick help.

authors: michaelfriedman pencilcheck


text:
[2.0.0-beta.3] .babelrc breaks build

Updating to beta 3 broke the build system. Looks like the presets wont load at all, error:
> Using .babelrc defined in your app root
> Using "webpack" config function defined in next.config.js.
{ SyntaxError: unknown: Unexpected token (11:13)
   9 |     const styletron = flush();
  10 |     const css = styletron ? styletron.getCss() : null;
> 11 |     return { ...page, css };
     |              ^
  12 |   }
  13 |
  14 |   render() {

.babelrc:
{
  "presets" : [
    "next/babel",
    "stage-0"
  ]
}

Reverting back to beta 2 fixes the issue. Removing .babelrc also fixes it, but then the tests wont work as they depend on babel. I also tried with various preset configs and even with just "next/babel" it still gives the same error.

Seems like you are using a custom webpack config too.
I tried with a sample app and everything works.
Could you send us a sample repo to play with?

Yea sure, seems like it only affects _document. Here's a minimal reproduction:
https://github.com/Zaiban/next-babelrc-test

Thanks @Zaiban.
This happens when introduced a custom document.
This will be fixed with https://github.com/zeit/next.js/pull/534

authors: Zaiban arunoda


text:
Error: Cannot find module './runtime'

When trying to upgrade from 7.0.2 to v7.0.2-canary.42 I can build ok but get the following error when hitting the first page:
{ Error: Cannot find module './runtime'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
    at Function.Module._load (internal/modules/cjs/loader.js:506:25)
    at Module.require (internal/modules/cjs/loader.js:636:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.uqG8 (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:1136:18)
    at __webpack_require__ (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:23:31)
    at Object.QcLC (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:569:18)
    at __webpack_require__ (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:23:31)
    at Object.ln6h (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:790:18)
    at __webpack_require__ (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:23:31)
    at Module.B5Ud (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:139:19)
    at __webpack_require__ (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:23:31)
    at Object.0 (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:106:18)
    at __webpack_require__ (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:23:31)
    at C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:91:18
    at Object.<anonymous> (C:\Users\Adam\code\public\next-reason-boilerplate\.next\server\static\pG0J7KxMZx_VHzleY1EvL\pages\_app.js:94:10) code: 'MODULE_NOT_FOUND' }

Error happens in dev and production setting.  Is this a known issue in canary.42 or is there something my codebase might be doing to cause it?
System information

OS: Windows 10
Version of Next.js: v7.0.2-canary.42

UPDATE:
I believe I have traced the problem to module babel-plugin-react-intl.  Problem seem to go away when I remove that module and these lines:
https://github.com/zeit/next.js/blob/master/examples/with-react-intl/.babelrc#L5-L18

Most likely not related to Next.js, we didn't even upgrade Babel in the canary releases as far as I can remember. The integration tests on Next.js are passing between stable and canary (canary has even more tests). It seems like you're importing a runtime module that does not exist in your app or something. Maybe it's related to babel caching? Try rm -rf node_modules/.cache.

@timneutkens Thanks for your feedback.  The with-react-intl example works in canary so there indeed must be something more going on.  Removing node_modules directory also seems to be required to .cache may indeed factor into this.   When I have more time I will try just clearing the cache rather than whole directory.  Will close ticket since I can live without the babel-plugin-react-intl functionality and will reopen if anyone else hits this issue as they upgrade.

Experiencing the same issue, however even deleting .babelrc and babel-plugin-react-intl didn't help in my case.

FWIW I've also run into this in an unrelated project. I believe it's due to @babel/plugin-tranform-runtime injecting that require statement, but then @babel/runtime is not handling it. It for sure has something to do with both those modules.
I was trying to transpile some React components using async/await with Babel 7. I ended up removing those two packages completely and requiring regenerator-runtime/runtime.js in the main entry point.

authors: Enalmada NathanielHill noiboi timneutkens


text:
Allow etags to be disabled with config option

This PR allows etag generation to be disabled via a config option.
The goal is to allow developers to decide when to send an etag header depending on the cache strategy being used.
This can also help save some CPU ticks by eliminating calls to crypto functions during SSR.

This looks very good. Couple questions:

Should we look into making etag generation less expensive? Etags seem super valuable to save bandwidth costs. Seem like a tradeoff between compute / end-user performance here.
The option should be more explicit perhaps generateEtags

It would be nice to have tests for this as well, since it should be fairly easy to do so.

agreed i believe this can be done with by making the etag generation async. It also depends on the cache strategy in our particular use case etags are not used because of how we use CDN cache.
Easy change and it makes the option more explicit 👍

Even if you use a CDN cache, the CDN can also avoid the re-transfer when performing an invalidation. The CDN is just another client, so ETag would still be desirable?

@ooHmartY

agreed i believe this can be done with by making the etag generation async

I don't think even we do it we can get any CPU improvements. Since whether we do it async or not, we need to spend the same CPU cycles.
(Unless there's a some sort of workers for generatic etags. Anyway, that's an overkill)

@rauchg & @arunoda -- apologies for the late reply and thank you for your feedback... with this PR I'm advocating for having the ability to disable etags and save some CPU ticks in the process.
In the past I've moved etag generation out of the application to a reverse proxy that's optimized for etag generation and caching to avoid hitting the application altogether.
The latest commit adds test & updates the config option to generateEtags.

@rauchg , @arunoda & @timneutkens -- I've updated this with latest canary. Please let me know if there are any additional changes needed.

authors: arunoda ooHmartY rauchg


text:
Add hash to class instead of adding data-jsx attribute

Is it possible to make classes names modified instead of adding data-jsx attribute to them and to css selectors?
Let's say I've got class header - while styled-jsx css will apply only to this class, and will not cause conflicts, some external css that has .header css might modify my element.

@pietrasiak thanks for bringing this up - it might indeed be an issue.
Unfortunately though rewriting classNames won't work for element and attribute selectors. This issue is similar to #27
Also in some (rare) people may use original selectors in JavaScript e.g. imagine you get the ref to an element and then select something with ref.querySelector('.thing')

authors: giuseppeg pietrasiak

repo: zeit/styled-jsx


text:
Support multiple instances of  in one app

Hello! First of all, thank's everyone who's been working on styled-jsx .. styled-jsx and Next.js are a match made in heaven and are incredible easy / fun to use.
I have a somewhat interesting use case where I'm working on a UI library that is distributed via NPM using Lerna + yarn. I noticed a bug (bug may not be the correct work) .. with styled-jsx where when I have multiple instances of the component on a given page, the dynamic prop based styles aren't unique to a given component.
For Example, if I build a simple <Row> component that looks something like this
export default class Row extends PureComponent {
  static propTypes = {
    tag: PropTypes.node,
    componentStyle: PropTypes.object,
    align: PropTypes.string,
    justify: PropTypes.string
  }

  static defaultProps = {
    tag: 'div',
    componentStyle: {},
    align: 'initial',
    justify: 'initial'
  }

  render () {
    const { componentStyle, align, justify } = this.props

    return (
      <this.props.tag style={{ ...componentStyle }} className='row'>
        {this.props.children}

        <style jsx>{`
          .row {
            display: flex;
            flex-direction: row;
            align-items: ${align};
            justify-content: ${justify};
          }
        `}</style>
      </this.props.tag>
    )
  }
}

In my code if I have multiple <Row>'s with different props, ie something like this:
<Row justify='space-between'>...</Row>
..
<Row justify='space-around'>...</Row>

Then both Row's  will both generate a class like this
.row {
  ...
  justify-content: space-around;
}

Here's an image:

I guess what I'm wondering is if there is any plans to support the use case of multiple styled-jsx instances on one page, as it would make component development much, much more straightforward. There is a similar issue with other lib's like styled-components.

the problem is with the tag this.props.tag being dynamic, right now those are not transpiled. There is a wip PR https://github.com/zeit/styled-jsx/pull/244 to fix that, I might finish it when I have a little free time

Duplicate of #147

@hanford I also read the Emotion issue and my answer would be, define styled-jsx in your packages as a peerDependency and install it only in the main app that consumes styled-jsx.

authors: giuseppeg hanford


text:
532 update market cards

updated styles based on new designs
created reusable HorizontalScroll component
adjusted logic for cards shown based on container width
added dynamic widths for cards based on container width

note:

some styles may not be accurately shown due to new breakpoints and the left/right drawers still in place
kept old code temporarily in /market-card/_index.tsx and ./markets/_MarketScroll.tsx in case we need to reference/revert back to it (will remove these once index page is approved)
will also cleanup remaining commented code once index page is approved

there is a console error now when going to markets/ route
Warning: `NaN` is an invalid value for the `minWidth` css style property.

Can you work with @mk26071980 to define hover behavior on the market row scroll component? Something similar to what was implemented on the new learn cards.

Thanks for the feedback. I made the changes and added the hover states as per designs

authors: TvrtkoM lsaether robhyrk

repo: zeitgeistpm/ui


text:
缓存池复用

tableView从缓存池取出cell时，之前的选中状态会被移除

复用了当然会被移除=。=，View怎么可能保存数据状态，要自己定义Model来同步选中的状态

repo: zekunyan/TTGTagCollectionView


text:
Is there a synchronous version?

Hi Zemirco,
I am using this on the client side. My application requires converting a large set of json documents into csv strings, and it is easier to use a synchronous syntax.
Is there a synchronous syntax I can use for this library?
Thanks!

No, but you could always wrap it in a promise, and use Promise.all(), or use the async library from npm.

As of v3.6.0 you can use it in a nice sync format,  i.e.
try {
  let result = json2csv(options);
  console.log(result);
} catch(error) {
  console.error(error);
}

In general, too, so long as your data is predictable (aka you're implementing this as an alternative to JSON response format), you can avoid the try/catch by doing something like:
  if (!data.length || typeof data[0] !== 'object') {
    res.sendStatus(204);
  } else {
    res.status(200).send(json2csv({data}));
  }

Thanks guys! this is awesome!!!!

authors: STRML episodeyang knownasilya


text:
params.data = JSON.parse(JSON.stringify(params.data));

line 48 in json2csv.js
  params.data = JSON.parse(JSON.stringify(params.data));

Seems terribly inefficient to me, especially with large datasets.

Hey @knownasilya and a belated: "Welcome to the party!". Can this issue be re-opened? I've just run into this issue with a large dataset. :(

I'd call it a bug, however. When the dataset exceeds a large size json2csv fails due to the use of JSON.stringify when checking the params. :)

What error do you get?

A RangeError "Invalid string length".

Hum, probably just remove that conversion and wait for it to fail elsewhere.

What is that conversion checking for other than params.data being a valid object?

@ahuntcirruspath v2.4.2 should resolve this.

Thanks!
I'd hate to be a bother but I believe the custom typeOf function may suffer the same problem. In referencing this case (http://www-01.ibm.com/support/docview.wss?uid=swg21693987) the issue is when toString() and JSON.stringify() is used on large datasets. In the module, toString() is used in the typeOf function immediately after the check params.data logic using JSON.stringify().
Any reason why "if( !( params.data instanceof Array )) {" wouldn't work instead of the custom typeOf function?

Nice catch..

Published another patch. Keep em coming!


text:
fix method_as_class to handle non alphanumeric

Hey,
My team had a production bug caused by calling .empty? on a client object.
the client api doesn't handle question marks well so I added this handling.
Also added test. :)

Thanks!

authors: idanski steved


text:
cookie values decode error

Hi!
I have found one problem with encoding.
In PHP it's normal behavior that values are urlencoded, but in other languages there are another standards for encoding such value, for example - in python.
So, cookie created in python could be invalid after urldecode here:
https://github.com/zendframework/zend-http/blob/master/src/Header/SetCookie.php#L119
But if we want to fix that issue, we suppose to get rid of that urlencode also:
https://github.com/zendframework/zend-http/blob/master/src/Header/SetCookie.php#L236
That is wrong, cause when we try to set cookie with specific symbols - we get wrong cookie.
I really don't know how to fix problem, have anyone ideas?
I thought that best approach is to add client type (php, python) and add specific decode/encode functions for each type, also add default type which only encode values.
At now I have a site that causes Zend Http Client failed on send method:
        $client = new Client('http://www.gd.ru/articles/3514-uvelichenie-prodaj');
        $client->send();

For example default action may looks like that one.

@malinink Can you please submit your changes as a pull request?

@weierophinney Pull request have been added.

I mistakenly filed a duplicate issue for this.
I think the best way to distill it down is to post a tiny one-liner that fails when it shouldn't:
Zend\Http\Header\SetCookie::fromString('Set-Cookie:foo=%0A; path=/; HttpOnly');

The practical upshot is that any attempt to make a request to a server that emits cookies with urlencoded whitespace in the value will fail because the SetCookie header class is urldecoding the value before attempting to validate it.

authors: malinink weierophinney zerocrates

repo: zendframework/zend-http


text:
feat: add Andrey's duck

Description
Here my contribution to "The Duck Gallery".

You must respect the following conditions

Your contribution must respect the code of conduct
It's your first PR to this repository
You have added your image of the duck downloaded from https://pimpmyduck.zenika.com
You have not changed the image of the duck
The image filename must be your GitHub username (ex: your-username.png)
You are using your own GitHub user and it's the same as the PR author
Into the contributors.js file, the message must be short and respect the code of conduct

If the PR doesn't respect those conditions, it will be closed

Hello @shonoru, do you want to refresh your duck for the Hacktoberfest 2022 ? 😄

Hello @shonoru, do you want to refresh your duck for the Hacktoberfest 2022 ? 😄

Des que possible

authors: jeanphibaconnais shonoru

repo: zenika-open-source/the-duck-gallery


text:
Invalid unicode rendering when running ligature branch

Hi @zenixls2,
Thanks for working on ligature. I tried running 3ed0430 and it looks like there is an issue rendering ❯. See the screenshots below:
ligature branch:

Alacritty 0.7.2 (5ac8060bf45e39f4f7dbdf095f3f1fd7d02dcd86)

Test case:
printf '\xe2\x9d\xad'
System
OS: macOS
Version: alacritty 0.8.0-dev (3ed0430)  and alacritty 0.7.2 (5ac8060)

thanks, I'll check.
recently too busy to maintain. Wondering if it really works in macOS, and this might be the first positive answer (at least it compiles?)

Yeah, I was able to compiled correctly using 3ed0430 . There were no errors during the build process.  I will be able to test any of the changes on macOS.


text:
Fix broken Azure Secrets Manager (and associated schema)

Internally transform the key names for the Azure Secret Schema so that underscores get stripped out and added back in.
Pre-requisites
Please ensure you have done the following:

[ ] I have read the CONTRIBUTING.md document.
[ ] If my change requires a change to docs, I have updated the documentation accordingly.
[ ] If I have added an integration, I have updated the integrations table.
[ ] I have added tests to cover my changes.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Other (add details above)

@AlexejPenner to be perfectly transparent, it was @schustmi who suggested this (better) way somewhere on Discord :)

Actually when I suggested it I had a general solution dealing with underscores in mind and not hard-coded to make it work with a single secret schema. This will work with this exact schema, but as soon as someone wants to store for example our MySQL authentication credentials it breaks again. I think the secret manager in general needs to have a way to support different keys with underscores and handle the mapping to/from those names in a generic way.
I don't have any concrete implementation suggestion, but here are a few ideas that might or might not work in the special Azure case:

replacing underscores with some other special characters
encode the key name in some way
Use metadata that is associated with a secret to store the real key names

authors: schustmi strickvl

repo: zenml-io/zenml


text:
Can I export ReactQuill value?

I tried to export the value of the editor with jsPDF but it doesn't looks pretty.
How can I export the value to PDF ?

I don't have much experience with ReactQuill but how much I explored it, it adds the only styling we apply in the editor and doesn't add any additional style when you want to display it somewhere else.
Since you took the value out and exported it to some other tool. In this case if you want to add styles (like adding page margins, header/footer, pagination) you have to apply it separately according to your use-case.

authors: iOrchK mohammadrajabraza

repo: zenoamaro/react-quill


text:
Client.Ping method raises network disconnection: "use of closed network connection"

STEPS TO REPRODUCE
$ cd $GOPATH/src/github.com/surgemq/surgemq/examples/surgemq
$ go run *.go

then, go run this code with -logtostderr -vv 3:
package main

import (
    "flag"
    "log"

    "github.com/surgemq/message"
    "github.com/surgemq/surgemq/service"
)

func main() {
    flag.Parse()
    c := &service.Client{}
    cmsg := message.NewConnectMessage()
    cmsg.SetVersion(4)
    cmsg.SetCleanSession(true)
    cmsg.SetKeepAlive(10)
    if err := c.Connect("tcp://localhost:1883", cmsg); err != nil {
        log.Fatalln("Connect:", err)
    }

    fn := func(msg, ack message.Message, err error) error {
        log.Println("Pong:", err)
        return err
    }
    done := make(chan struct{})
    if err := c.Ping(service.OnCompleteFunc(fn)); err != nil {
        log.Fatalln("Ping:", err)
        close(done)
    }
    <-done
}

RESULTS
I1204 23:16:44.348778   13936 sendrecv.go:103/sender] (1/) Starting sender
I1204 23:16:44.348781   13936 process.go:46/processor] (1/) Starting processor
I1204 23:16:44.348883   13936 sendrecv.go:58/receiver] (1/) Starting receiver
I1204 23:16:44.349183   13936 service.go:210/stop] (1/) closing this.conn
I1204 23:16:44.349223   13936 sendrecv.go:100/func1] (1/) Stopping sender
E1204 23:16:44.349252   13936 sendrecv.go:76/receiver] (1/) error reading from connection: read tcp [::1]:61472->[::1]:1883: use of closed network connection
I1204 23:16:44.349364   13936 sendrecv.go:55/func1] (1/) Stopping receiver
I1204 23:16:44.349375   13936 service.go:220/stop] (1/) Received 16 bytes in 2 messages.
I1204 23:16:44.349383   13936 service.go:221/stop] (1/) Sent 6 bytes in 2 messages.

REASONS
In case of Client.Ping(), ackmsg.Msgbuf is empty in service.processAcked().
As a result, msg.Decode(ackmsg.Msgbuf) panics with "slice bounds out of range".

Yep I saw that as well a while ago in your code. The problem is, that a closing socket does NOT return EOF but *net.OpError.
More information can be found here:
http://comments.gmane.org/gmane.comp.lang.go.general/76607
I decided to go for this dirty hack that was proposed in the googlegroups:
func IsEOF(err error) bool {
	if err == nil {
		return false
	} else if err == io.EOF {
		return true
	} else if oerr, ok := err.(*net.OpError); ok {
		if oerr.Err.Error() == "use of closed network connection" {
			return true
		}
	} else {
        if err.Error() == "use of closed network connection" {
            return true
        }
    }
	return false
}

+1
Same issue here, and the IsEOF mentioned above fixes it for me as well. I changed 2 cases in sendRecv.go and 2 more in process.go - from what I can tell, the current surgemq HEAD won't work without this workaround (this is on Mac OSX 10.11.2 with Go 1.5.3, FWIW).

Thanks @jcw @ankoh ... Would either of you be willing to submit a PR?

here is a discussion for that error: errClosing.
and maybe
oerr, ok := err.(*net.OpError)
is not necessary, just need
if err.Error() == "use of closed network connection" {             return true         }
as @ankoh said.

sorry.
if err.Error() == "use of closed network connection" { return true }
is not necessary, need
oerr, ok := err.(*net.OpError)

Unfortunately this repo is labeled as Unmaintained. I will reopen the issue if the status comes back to Maintained.

authors: ankoh godblesshugh jcw lufia zhenjl

repo: zentures/surgemq


text:
Support Building on Aarch64 for native_posix

Is your enhancement proposal related to a problem? Please describe.
Building on Aarch64 is pretty easy for native posix tests
Describe the solution you'd like
For the build to not try to pass -m32 to the compiler, unconditionally.
Describe alternatives you've considered
Submitting a patch.
Additional context
Contents of ~/.zephyrrc:
export BOARD=native_posix
export ZEPHYR_PROJECT=tests/net/socket/socketpair

Before:
2/126] Building C object zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
FAILED: zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj
ccache /usr/bin/gcc -DBUILD_VERSION=zephyr-v2.2.0-1657-g0f37c1e23a9c -DKERNEL -D_FORTIFY_SOURCE=2 -D_POSIX_C_SOURCE=200809 -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -D__ZEPHYR__=1 -I../kernel/include -I../arch/posix/include -I../include -Izephyr/include/generated -I../soc/posix/inf_clock -I../boards/posix/native_posix -I../subsys/net/lib/sockets/. -I../subsys/testsuite/include -I../subsys/testsuite/ztest/include -Os -imacros/home/chrisfriedt/workspace/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -imacros/home/chrisfriedt/workspace/zephyrproject/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=/home/chrisfriedt/workspace/zephyrproject/zephyr/tests/net/socket/socketpair=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/chrisfriedt/workspace/zephyrproject/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/chrisfriedt/workspace/zephyrproject=WEST_TOPDIR -ffunction-sections -fdata-sections -m32 -include /home/chrisfriedt/workspace/zephyrproject/zephyr/arch/posix/include/posix_cheats.h -fno-freestanding -std=c11 -MD -MT zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj -MF zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj.d -o zephyr/CMakeFiles/offsets.dir/arch/posix/core/offsets/offsets.c.obj   -c /home/chrisfriedt/workspace/zephyrproject/zephyr/arch/posix/core/offsets/offsets.c
gcc: error: unrecognized command line option ‘-m32’
ninja: build stopped: subcommand failed.

After:
$ west build $ZEPHYR_PROJECT -t run
-- west build: generating a build system
Including boilerplate (Zephyr base (cached)): /home/chrisfriedt/workspace/zephyrproject/zephyr/cmake/app/boilerplate.cmake
-- Application: /home/chrisfriedt/workspace/zephyrproject/zephyr/tests/net/socket/socketpair
-- Zephyr version: 2.2.99 (/home/chrisfriedt/workspace/zephyrproject/zephyr)
-- Board: native_posix
-- Found west: /home/chrisfriedt/.local/bin/west (found suitable version "0.7.2", minimum required is "0.7.1")
-- Found toolchain: host (gcc/ld)
-- Found BOARD.dts: /home/chrisfriedt/workspace/zephyrproject/zephyr/boards/posix/native_posix/native_posix.dts
-- Generated zephyr.dts: /home/chrisfriedt/workspace/zephyrproject/zephyr/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: /home/chrisfriedt/workspace/zephyrproject/zephyr/build/zephyr/include/generated/devicetree_unfixed.h
Parsing /home/chrisfriedt/workspace/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/chrisfriedt/workspace/zephyrproject/zephyr/build/zephyr/.config'
No change to configuration in '/home/chrisfriedt/workspace/zephyrproject/zephyr/build/zephyr/.config'
No change to Kconfig header in '/home/chrisfriedt/workspace/zephyrproject/zephyr/build/zephyr/include/generated/autoconf.h'
-- Cache files will be written to: /home/chrisfriedt/.cache/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chrisfriedt/workspace/zephyrproject/zephyr/build
-- west build: running target run
...
*** Booting Zephyr OS build zephyr-v2.2.0-1657-g0f37c1e23a9c  ***

On a side note, it's also pretty trivial to run
apt-get update
apt install -y gcc-arm-none-eabi

and with that, use
export ZEPHYR_TOOLCHAIN_VARIANT=cross-compile
export CROSS_COMPILE=/usr/bin/arm-none-eabi-

To cross compile from Aarch64 to Aarch32

Realted to #13633

On a side note, it's also pretty trivial to run[..]

Would you like to add a paragraph in the documentation (together with your PR) describing how to do it?

On a side note, it's also pretty trivial to run[..]

Would you like to add a paragraph in the documentation (together with your PR) describing how to do it?

No problem. Hopefully the syntax is correct ;-)

authors: aescolar cfriedt

repo: zephyrproject-rtos/zephyr


text:
Compilation failure for qemu_x86 with CONFIG_DEBUG_INFO=y

For the  sample apps (e.g. samples/net/lwm2m_client), on defining CONFIG_DEBUG_INFO=y in project configuration, it leads to compilation failure with following log.

/home/b16394/network_protocols/networkprotocols/WP1/zephyr/arch/x86/core/swap.S: Assembler messages:
/home/b16394/network_protocols/networkprotocols/WP1/zephyr/arch/x86/core/swap.S:467: Error: no instruction mnemonic suffix given and no register operands; can't size instruction
make[5]: *** [/home/b16394/network_protocols/networkprotocols/WP1/zephyr/scripts/Makefile.build:260: arch/x86/core/swap.o] Error 1
make[4]: *** [/home/b16394/network_protocols/networkprotocols/WP1/zephyr/scripts/Makefile.build:357: arch/x86/core] Error 2
make[3]: *** [/home/b16394/network_protocols/networkprotocols/WP1/zephyr/scripts/Makefile.build:357: arch/x86] Error 2
make[2]: *** [/home/b16394/network_protocols/networkprotocols/WP1/zephyr/Makefile:1072: arch] Error 2
make[2]: Leaving directory '/home/b16394/network_protocols/networkprotocols/WP1/zephyr/samples/net/lwm2m_client/outdir/qemu_x86'
make[1]: *** [Makefile:178: sub-make] Error 2
make[1]: Leaving directory '/home/b16394/network_protocols/networkprotocols/WP1/zephyr'
make: *** [/home/b16394/network_protocols/networkprotocols/WP1/zephyr/Makefile.inc:82: all] Error 2
[b16394@lti lwm2m_client]$

@nashif I also see this error.  Bisected to:
424e993b41f7f0b3e857798221a62998034a15b1 x86: implement userspace APIs

authors: mike-scott vakulgarg