Hsearch 638 Limit graph traversal by @ContainedIn to the minimum required path

My first experiment with this issue.
Cheers,
Davide

Hi Davide,
cool this is going in a good direction. Could you rebase on master? It needs some changes..

I can't now...but I will do that tonight

Are you sure it needs a rebase? My git doesn't say anything

By the way, do you prefer I put the two patches in the same pull request?
Right now I think they will have some conflicts if you try to include them separately. Eventually you can just accept one of them (when is ready) and I will fix the other.
Let me know what suit you better.

Right, sorry no rebase needed: got confused since I have the same branch locally containing the tests I had already for this issue.

No it's great that you keep them separate, as this one might have different lifecycles. I hope ;)

funny you're still using ASL license :)
You should use the one beginning with "Hibernate, Relational Persistence for Idiomatic Java"
I've rebased it, added more tests for mixed paths depths and polished the implementation a bit.


New Linked list problem

Hi @bhumikatewary , I want to add the c++ solution to the problem: detecting loops in a linked list. Can you assign this task to me?

@bhumikatewary
please! ,assign this to me
i can contribute


Sharing something from a playlist fails

Describe the bug
Sharing something from a playlist fails
To Reproduce

go to any playlist on youtube
start a video
try to share the video

Expected behavior
Video starts with or without the rest of the playlist
Screenshots (if appropriate)

Environment

Cast Kodi version:
Browser version:
Kodi version:
Kodi add-on version (if appropriate):

I tested sending a video from a playlist and it works.
Could you give me more information?
* What do you mean by "fails"?

* What are the versions of Cast Kodi, Browser, Kodi and add-on for YouTube?

Youtube 6.8.20+matrix.1
Kodi 19.1
Firefox 107.0.1 on Win11
It fails like this: https://pastebin.com/UKZPCVxF
It seems to only affect my playlists, not some random, public ones.
The moment I remove the playlist parameters it works.

We see in the logs that you send the WL playlist. This is the Watch Later playlist. Cast Kodi sends the playlist, but the Add-on:YouTube (plugin.video.youtube) can't read it. The Watch Later playlist is special because it's unique for each user. I think that plugin.video.youtube doesn't support the Watch Later playlist with STRM URL (plugin://plugin.video.youtube/play/?playlist_id=WL). You would have to open an issue in plugin.video.youtube to add this feature.


⚠ Bofrost.de has degraded performance

In 23768f1, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1213 ms

Resolved: Bofrost.de performance has improved in 5740576 after 6 minutes.


merge from template-arlac77-github

.github/workflows/ci.yml

chore(deps): add 20.16.0 (jobs.test-node.strategy.matrix.node-version)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>2:
0.0%

Covered Lines:
54

Relevant Lines:
54

💛  - Coveralls


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>
.travis.yml

chore(travis): merge from template .travis.yml

Coverage remained the same at 29.204% when pulling c30ef2ad2274b120ee49f9f648cc69a9c87ce5f8 on template-sync-1 into 4f3674d9397d464ced608c924f1b2a82e4c5664a on master.

Coverage remained the same at 29.204% when pulling c30ef2ad2274b120ee49f9f648cc69a9c87ce5f8 on template-sync-1 into 4f3674d9397d464ced608c924f1b2a82e4c5664a on master.


N4BiasFieldCorrectionImageFilter: Getting the bias field with GetLogBiasFieldControlPointLattice

Hi,
Using the N4BiasFieldCorrectionImageFilter, I found out that the bias field can't be obtained from the object as it can be done in ITK by calling N4BiasFieldCorrectionImageFilter::GetLogBiasFieldControlPointLattice. I think this is an important feature because allows you to use a lower resolution image (via shrinking it) to estimate the bias field and then apply it to the high resolution image. Is there any particular reason why this feature was not implemented in SimpleITK?
Best,
Martin

Yes it would be good to be able to get access to the bias filed to be able to correct other resolution images. I believe I was able to do this be recovering the bias field from the results. The returned image should be Input/exp(logBiasField)=Output so exp(logBiasField)=Input/Output. You can then resample the  exp(logBiasField) to a higher resolutions as desired.
I agree that being able to get direct access to the field is a good feature. I'll have to look into the data structures used a little closer. The GetLogBiasFieldControlPointLattice method returns an unstructured set of points for BSpline interpolation. This requires the itkBSplineScatteredDataPointSetToImageFilter to get an interpolated image. I think it may be better to just return the BiasFiled image. Does that meet your needs?

I've implemented this temporal solution and the bias field can't be completely recovered because the image has zero values. So, for the purpose of correcting the image is probably fine, but if the visualization of the bias field is needed is better to generate it from the control points and BSpline interpolation.

I've just come across this problem for myself.  I've previously run a separate program from the shell and then read in the corrected and bias_field files.  I would prefer an in-python solution, so adding the bias field as an output for N4BiasFieldCorrectionImageFilter would be great!
I'll give the simple division a try for now...

closed by #1232


[DOBJ] Add new object type DOBJ

The line end characters in the example file seem still to be wrong. They should be set to LF (instead of CRLF).
@srnawaz Do you fix this? Do you need help?


[WIP]remove imagefilter for varlink remote client

the api for getting images changed to use filters but back level podman versions cannot handle it.  so temporarily disabling the filtering for remote clients until the restful approach can be used.
Signed-off-by: Brent Baude<EMAIL_ADDRESS>

setting to WIP because i think the first pass here will fail tests and i need to figure out which remote tests should be temporarily disabled.

/lgtm


How to define data- attributes for select options?

Sometimes there is a need in mixing different entities in a single combobox.
For example an entity has parentId and parentType fields.
My use scenario is:

User selects 'parentId' value in combobox
Hidden field 'parentType' is auto-populated depending on data-type attribute of the selected option

Looking at the code I did not see a way to define any additional attributes to a single select option.
Did I miss something?

Done in AutoForm 5.0, now released.


Is there trouble in piper_train.preprocess?

Thank you for this project!
It is so important.
I am trying to check and use it, but I met same trouble on 2 machine.
It seems the piper_train.preprocess frozen, when I am trying to run this command.
It is more than 24 hours.
~/piper/src/python$ python3 -m piper_train.preprocess \
  --language en-us \
  --input-dir /home/hayq/piper/data/LJSpeech-1.1/ \
  --output-dir /home/hayq/piper/train/ \
  --dataset-format ljspeech \
  --sample-rate 22050
INFO:preprocess:13059 speakers detected
INFO:preprocess:Wrote dataset config
INFO:preprocess:Processing 13100 utterance(s) with 6 worker(s)

The processing seems defuncted.
 200794 pts/1    Sl+    0:09 python3 -m piper_train.preprocess --language en-us --input-dir /home/hayq/piper/data/LJSpeech-1.1/ --output-dir /home/hayq/piper/train/ --dataset-format ljspeech --sample-rate 22050
 200806 pts/1    Z+     0:00 [python3] <defunct>
 200809 pts/1    Z+     0:00 [python3] <defunct>
 200812 pts/1    Z+     0:00 [python3] <defunct>
 200815 pts/1    Z+     0:00 [python3] <defunct>
 200816 pts/1    Z+     0:00 [python3] <defunct>
 200817 pts/1    Z+     0:00 [python3] <defunct>

Could you help me understand the reason of the trouble.
Thank you in advance!

Unfortunately, this script shows most unwanted behavior in computing: it starts but not end with unknown sign.
At least it's required logging feature in "make_dataset" function of preprocess.py (line 158).

Don't make judgements too quickly.
(The only different is sample rate but that does not matter)

It is a third machine, which I used to test this procedure with original (LJSpeech-1.1) and different datasets even 100-200 records, but the result is a same at 2-nd day: the machines are frozen, no any sign of life.
I need to investigate  "make_dataset" function of preprocess.py to fix this problem. I delayed it waiting author's response, but in this situation I am forced to dig into author's code.

The trouble in "batched" function
def batched(iterable, n):
    "Batch data into lists of length n. The last batch may be shorter."
    # batched('ABCDEFG', 3) --> ABC DEF G
    if n < 1:
        raise ValueError("n must be at least one")
    it = iter(iterable)
    batch = list(itertools.islice(it, n))
    while batch:
        yield batch
        batch = list(itertools.islice(it, n))

The workers are not working.
utt = queue_out.get()
is not processed.
I am tring to fix or change it.

Not sure what kind of machine you have used, just two recommend:

run this on linux server with abundant RAM
monitor your RAM when running to check if it is OOM

I am using 3 different machines on Ubuntu and Fedora:

Xeon E3-1200 v5/v6 / E3-1500 v5 with 32G memory (Ubuntu 18.04)
Intel(R) Core(TM) i5-8400 CPU @ 2.80GH with 16G memory (Ubuntu 22.04)
laptop (Fedora)
with standard, default configuration.
It's really the workers are not working.
In this situation I need completely to change preprocess.py or refuse this project.

Have you monitored your RAM usage?
32GB seems enough but if too many workers were spawned it may cause OOM too.
Computer usually "frozen" only when it is OOM but not full CPU usage

Dear @trunglebka,
How can I check memory?
Please, advise your method.

Just run the script and monitor with htop.
If memory is full, you can try to reduce number of workers via --max-workers

Just run the script and monitor with htop.
If memory is full, you can try to reduce number of worker via --max-workers

Thank you!

Now I am getting error in piper_train.preprocess script
Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.
Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.
Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.

The google seaching is useless.
It is not OOM case, becase I use small piece of dataset. Just 50-60 lines.
So It seems a deadlock of exotic codding.

Can you create new conda env and re-run with that env?

It is a complicated issue, because I have a lot of stable installations on the machines.
Never I met trouble with conda and env.
I am so interested to try this projects, but not ready to risk existing installations.
I'll try investigate preprocess procedure to understand what kind of data it generates, then I'll make dataset manually.
Otherwise I will refuse from this project as suspected, unfortunately, because I lose enough time during 3-4 days.

The reason is
           utt = queue_out.get()
the line 166 of preprocess.py
If I mention timeout, it reports that
_queue.Empty

Hi,
I have the same problem.
Tried in on a Ubuntu i7 machine with 64Gb RAM and python 3.10.6 installed.
INFO:preprocess:7330 speakers detected INFO:preprocess:Wrote dataset config INFO:preprocess:Processing 7333 utterance(s) with 8 worker(s)
This never finishes. If I interrupt it with Ctrl+C, i get the following:
^CTraceback (most recent call last):   File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main     return _run_code(code, main_globals, None,   File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code     exec(code, run_globals)   File "/build/piper/src/python/piper_train/preprocess.py", line 320, in <module>     main()   File "/build/piper/src/python/piper_train/preprocess.py", line 164, in main     utt = queue_out.get()   File "/opt/conda/lib/python3.8/multiprocessing/queues.py", line 97, in get     res = self._recv_bytes()   File "/opt/conda/lib/python3.8/multiprocessing/connection.py", line 216, in recv_bytes     buf = self._recv_bytes(maxlength)   File "/opt/conda/lib/python3.8/multiprocessing/connection.py", line 414, in _recv_bytes     buf = self._recv(4)   File "/opt/conda/lib/python3.8/multiprocessing/connection.py", line 379, in _recv     chunk = read(handle, remaining) KeyboardInterrupt ^CError in atexit._run_exitfuncs: Traceback (most recent call last):   File "/opt/conda/lib/python3.8/multiprocessing/util.py", line 300, in _run_finalizers     finalizer()   File "/opt/conda/lib/python3.8/multiprocessing/util.py", line 224, in __call__     res = self._callback(*self._args, **self._kwargs)   File "/opt/conda/lib/python3.8/multiprocessing/queues.py", line 195, in _finalize_join     thread.join()   File "/opt/conda/lib/python3.8/threading.py", line 1011, in join     self._wait_for_tstate_lock()   File "/opt/conda/lib/python3.8/threading.py", line 1027, in _wait_for_tstate_lock     elif lock.acquire(block, timeout): KeyboardInterrupt
I also tried it with the docker image and python3 3.8.12 and the same thing happens.
Sadly I'm not proficient in pythong, but it seems like some kind of a deadlock?
Any ideas?

Hi,
It seems the multiprocessing module of python was not realized in proper way.
The author uses very complicated way of multiprocessing module.
from multiprocessing import JoinableQueue, Process, Queue
Now I am trying to fix the problem, but my knowledge of multiprocessing is not so deep.
I am surprised why the author has not responded for 4 days?
Very strange

Hi,
I've played around a bit and added some logs into the preprocess.py code.
As far as I can tell all process_batch processes are started. At least in my case, the problem occurs at the line 203: utt.phonemes = phonemize(utt.text, phonemizer)
I've tried to manually run the test case (listed at: https://pypi.org/project/espeak-phonemizer/): echo 'This is a test.' | espeak-phonemizer -v en-us.
This fails with: Segmentation fault (core dumped)
So I think the problem (at least in my case) is with the espeak-phonemizer which fails and this probably then has the queue deadlock as a consequence.
The curious thing is that I've tried this on another machine with an older ubuntu and python 3.8.10 and it works (both the espeak-phonemizer and also the piper_train.preprocess).
So maybe it has something to do with this not working in newer python versions?

Hi,
it seems the issue about espeak-phonemizer is already raised here: https://github.com/rhasspy/espeak-phonemizer/issues/1
As far as I can tell it has to do with the python version.
In my case it seems to work with python 3.8.10, but not with 3.8.12 and higher.

@methosmythos , thank you very much!
Everything is an important to fix this problem.

Hi,
it seems the issue about espeak-phonemizer is already raised here: rhasspy/espeak-phonemizer#1 As far as I can tell it has to do with the python version. In my case it seems to work with python 3.8.10, but not with 3.8.12 and higher.

I'm running it with python 3.10.10

It seems the "Segmentation fault (core dumped)" error is avoided, if we install older version of espeak_phonemizer.
pip install espeak_phonemizer==1.1.0

OK, I've just set-up a docker container, based on python 3.8.10 and I still get a segmentation fault for the espeak-phonemizer - so I have no idea, why it's working on the other machine with python 3.8.10 installed, but not on the other inside a docker container with the same python version. So I guess python version is not really the relevant factor here...also, @trunglebka has no problems with 3.10.10.

this is my conda environment:
_libgcc_mutex=0.1=main
_openmp_mutex=5.1=1_gnu
absl-py=1.4.0=pypi_0
aiohttp=3.8.4=pypi_0
aiosignal=1.3.1=pypi_0
appdirs=1.4.4=pypi_0
async-timeout=4.0.2=pypi_0
attrs=22.2.0=pypi_0
audioread=3.0.0=pypi_0
bzip2=1.0.8=h7b6447c_0
ca-certificates=2023.01.10=h06a4308_0
cachetools=5.3.0=pypi_0
certifi=2022.12.7=py310h06a4308_0
cffi=1.15.1=pypi_0
charset-normalizer=3.1.0=pypi_0
coloredlogs=15.0.1=pypi_0
cython=0.29.34=pypi_0
decorator=5.1.1=pypi_0
espeak-phonemizer=1.2.0=pypi_0
flatbuffers=23.3.3=pypi_0
frozenlist=1.3.3=pypi_0
fsspec=2023.4.0=pypi_0
google-auth=2.17.3=pypi_0
google-auth-oauthlib=1.0.0=pypi_0
grpcio=1.53.0=pypi_0
humanfriendly=10.0=pypi_0
idna=3.4=pypi_0
joblib=1.2.0=pypi_0
lazy-loader=0.2=pypi_0
ld_impl_linux-64=2.38=h1181459_1
libffi=3.4.2=h6a678d5_6
libgcc-ng=11.2.0=h1234567_1
libgomp=11.2.0=h1234567_1
librosa=0.10.0.post2=pypi_0
libstdcxx-ng=11.2.0=h1234567_1
libuuid=1.41.5=h5eee18b_0
lightning-utilities=0.8.0=pypi_0
llvmlite=0.39.1=pypi_0
markdown=3.4.3=pypi_0
markupsafe=2.1.2=pypi_0
mpmath=1.3.0=pypi_0
msgpack=1.0.5=pypi_0
multidict=6.0.4=pypi_0
ncurses=6.4=h6a678d5_0
numba=0.56.4=pypi_0
numpy=1.23.5=pypi_0
nvidia-cublas-cu11=<IP_ADDRESS>=pypi_0
nvidia-cuda-nvrtc-cu11=11.7.99=pypi_0
nvidia-cuda-runtime-cu11=11.7.99=pypi_0
nvidia-cudnn-cu11=<IP_ADDRESS>=pypi_0
oauthlib=3.2.2=pypi_0
onnxruntime=1.14.1=pypi_0
openssl=1.1.1t=h7f8727e_0
packaging=23.1=pypi_0
pip=23.0.1=py310h06a4308_0
pooch=1.6.0=pypi_0
protobuf=4.22.3=pypi_0
pyasn1=0.4.8=pypi_0
pyasn1-modules=0.2.8=pypi_0
pycparser=2.21=pypi_0
pydeprecate=0.3.2=pypi_0
python=3.10.10=h7a1cb2a_2
pytorch-lightning=1.7.7=pypi_0
pyyaml=6.0=pypi_0
readline=8.2=h5eee18b_0
requests=2.28.2=pypi_0
requests-oauthlib=1.3.1=pypi_0
resampy=0.4.2=pypi_0
rsa=4.9=pypi_0
scikit-learn=1.2.2=pypi_0
scipy=1.10.1=pypi_0
setuptools=65.6.3=py310h06a4308_0
six=1.16.0=pypi_0
soundfile=0.12.1=pypi_0
soxr=0.3.5=pypi_0
sqlite=3.41.1=h5eee18b_0
sympy=1.11.1=pypi_0
tensorboard=2.12.1=pypi_0
tensorboard-data-server=0.7.0=pypi_0
tensorboard-plugin-wit=1.8.1=pypi_0
threadpoolctl=3.1.0=pypi_0
tk=8.6.12=h1ccaba5_0
torch=1.13.1=pypi_0
torchmetrics=0.11.4=pypi_0
tqdm=4.65.0=pypi_0
typing-extensions=4.5.0=pypi_0
tzdata=2023c=h04d1e81_0
urllib3=1.26.15=pypi_0
werkzeug=2.2.3=pypi_0
wheel=0.38.4=py310h06a4308_0
xz=5.2.10=h5eee18b_1
yarl=1.8.2=pypi_0
zlib=1.2.13=h5eee18b_0

It seems the "Segmentation fault (core dumped)" error is avoided, if we install older version of espeak_phonemizer.
pip install espeak_phonemizer==1.1.0

Thanks! I encountered the same error and can confirm that downgrading prevents segmentation fault. Launched preprocessing step, waiting for finish.

I was able to run preprocessing of latest commit on another computer (fedora 37). Just unspecify onnxruntime version (python 3.10):

I've put some logging info into the espeak phonemizer project and it appears that the breaking change was made in the latest version. An external call to TextToPhonemes is used in the latest version (line 101: self.lib_espeak.espeak_TextToPhonemes().
In the older version there is a comment that this call creates a segmentation fault, so a workaround was made.
But in the newest version the call to TextToPhonemes is used anyways.
I guess it doesn't generate the segmentation fault on every system, so for now it seems that on those that segmentation fault is generated, the option is to downgrade to a previous version, like @ican24 suggested.

Now I can say that the problem was fixed, if
src/python/requirements.txt
is edited such way:
cython>=0.29.0,<1
espeak-phonemizer~=1.1.0
librosa>=0.9.2,<1
numpy>=1.19.0
onnxruntime~=1.12.1
pytorch-lightning~=1.7.0
torch~=1.11.0

It is tested on Ununtu 18.04.
Thank you everyone, who advised and commented!
It is a strange the author's deep ignorance....

@methosmythos

Hi,
it seems the issue about espeak-phonemizer is already raised here: rhasspy/espeak-phonemizer#1 As far as I can tell it has to do with the python version. In my case it seems to work with python 3.8.10, but not with 3.8.12 and higher.

The issue is NOT affected by python version. One commenter mentioned python version. That commenter was wrong, but the thought persists. Like a mind-virus
espeak-phonemizer uses ctypes to make a call to the C library, libspeak-ng. The call needs to set the return type, .restype
Submitted a pull request which fixes this issue #3
.... waiting for the author to review the pull request. It's one function!

@alisherski

It seems the "Segmentation fault (core dumped)" error is avoided, if we install older version of espeak_phonemizer.
pip install espeak_phonemizer==1.1.0

Thanks! I encountered the same error and can confirm that downgrading prevents segmentation fault. Launched preprocessing step, waiting for its finish.

Downgrading is a cope or at best a temporary solution.
Just fix the call (to libespeak-ng C library). Specify the return type....done!
python coders shouldn't be intimidated by calls to C libraries using ctypes python module
I'm sorry Piper users had to track down this issue to discover it originates in the upstream. And the upstream knew about this issue #1 and how to fix it
And there is a (pull request/) fix --> #3
And all the author needs to do is review the pull request

Now I can say that the problem was fixed, if src/python/requirements.txt is edited such way:
cython>=0.29.0,<1
espeak-phonemizer~=1.1.0
librosa>=0.9.2,<1
numpy>=1.19.0
onnxruntime~=1.12.1
pytorch-lightning~=1.7.0
torch~=1.11.0

It is tested on Ununtu 18.04.
Thank you everyone, who advised and commented! It is a strange the author's deep ignorance....

tl;dr
python packaging poor. Make entrypoints; no bash scripts
espeak-phonemizer AND piper needs a rewrite; requires python packaging know-how
Both espeak-phonemizer AND piper, currently, are written as a cli utility, rather than as a library that also has a cli entrypoint.
pyproject.toml now recommends NOT including bash scripts within python packages! So what is with all these bash scripts?! Remove the bash scripts and minimize the cli entrypoint code and what is left?

espeak-phonemizer
One module ... one!

piper --> run python
One module ... one!

phonemizer2ids
One module ... one!

piper --> trainer
Lots of modules

The entrypoint code (main.py) should do only arg parsing, but then should make calls to the module (init.py). The problem with code within main.py is it's untestable. Putting that code within a class and moving it to (init.py) would make it testable.

Make entrypoints, not bash scripts!
Replace setup.py with setup.cfg and pyproject.toml
Uses package pytest, but tests are written as unittest. Write them as pytest
Make Makefile great again!
What is typing.TYPE_CHECKING
What is os.fspath rather than str(some path)
What is type[PurePath] rather than Path
What is issubclass(type(some path), PurePath)


add support for private folder

https://spectrum.chat/zeit/general/keep-key-files-private~c522a52f-869b-4fc2-862e-1751d2bce4e1
Sometimes private files are required to be read by server-side scripts. Libraies like Google Cloud Storage, for example, requires to load service-account info from a file.
It would be great if there is a private folder where we can store files to be used by server side scripts.
Current hack around include:

using now secrets and somehow echoing this out with a build script
hacking around @now/static and routes to trick the build system to copy the files and then using routes to protect that endpoint.

@timothyis either way, we should also provide an official guide on how to do this on Now.

"builds": [
    { "src": "node-routes/defaultRoute.js", "use": "@now/node", "config": { "maxLambdaSize": "40mb" } },
    { "src": "next.config.js", "use": "@now/next" },
    { "src": "gc-service-accounts/IBCOL-bc7c0de657f9.json", "use": "@now/static" },
    { "src": "gc-service-accounts/IBCOL-ab3604e33e20.json", "use": "@now/static" },
    { "src": "gc-service-accounts/IBCOL-29f16744c004.json", "use": "@now/static" }
  ],
"routes": [
    {
      "src": "/gc-service-accounts/.+",
      "dest": "/node-routes/notFoundRoute.js"
    },
]

the notFoundRoute.js is a simple node script that return 404
const { send } = require('micro');
const notfound = (req, res) => send(res, 404, 'invalid endpoint')
module.exports = notfound

In the end, the only way that I can get it to work is doing the follow at the start of the lambda, outside of the exported module, to write a file out to /tmp folder when the lambda cold boot.
fs.writeFileSync('/tmp/somefile', atob(process.env.FILE_CONTENT_BASE64));

FILE_CONTENT_BASE64 a secret saved by
now secrets add FILE_CONTENT_BASE64 $(cat ./somefile | base64)

https://spectrum.chat/zeit/now/what-is-the-proper-directory-for-reading-files-in-nodejs~6cfe7391-12ff-40df-9c11-115fe1931136?m=MTU1OTAxNjUzNzI3OA==

If we can allow a "includes" array to be defined for each of the "builds", that might work.
"builds": [
  {"src": "app.js", "use": "@now/node", "includes": ["file1", "file2", "/modules/*"]},
  {"src": "server.js", "use": "@now/node", "includes": ["private_file_1"]},
]

@williamli I think this would be a perfect solution to this, this is something I tried when running into this issue.

Closing because the includeFiles config has been added to the @now/node builder.
Please see the documentation: https://zeit.co/docs/v2/advanced/builders#including-additional-files


Create AI Agent Finder

Fixes #2851
📝 Description
Add a brief description.
💣 Is this a breaking change (Yes/No):

[ ] Yes
[x] No

🚧 How to migrate?
Don't need.
📝 Additional Information
lol

Please add hacktoberfest-accepted label

@AruSeito Please review my changes


Installation Issue & Questions

I tried installing the Desktop Standalone (version <IP_ADDRESS>) on Windows 10, but have had no luck. Are there any restrictions/issues with that OS?
Can the Enterprise be installed on a Windows 10 or does it have to run on Windows Server OS?

I was also having issues.  Try downloading .NET Framework 4.7.2 and install it first.  Once I did that, CSET installed fine afterwards.

I'm running 4.8.0. Actually turns out this is due to a group policy that has disabled running files from the temp directory. Self-extracting executables Winzip or 7zip(the case here), extract to temp directory and execute from there. Any way this can be changed by providing a standard self-extracting file that would allow choosing the folder?

I was able to somehow get around this and managed to install it on a Windows Server 2008. But after installing, when I click on the icon, it loads just a blank page in Internet Explorer, pointing to http://localhost:46000/index.html?v=<IP_ADDRESS>
IE version is 11. Is there a minimum browser version requirement and if so what is it?

I installed another standalone on a different server and I'm getting the same exact result. In both cases, I confirmed CSET is running on port 46000, as indicated by the program icon in the taskbar.

Did you resolve your issue @aalborz ?  Have you checked your firewall and make sure that there is an inbound TCP allow rule for port 46000 for all zones (domain, public, private).  You can try turning off your firewall also (only to test) If that's done maybe try a different version of CSET to see if you get same result.


Code=-1001 "The request timed out" Issue

First of All,  thanks for your providing such this wonderful framework.
I used AFNetworking framework in previous projects and worked well.
So I am using this framework as no.1 for network related.
Currently , i am working on one project and it is requiring HTTPS POST request.
I used AFHTTPRequestOperationManager for this.
Tried to google for this code and I made the code like as below.
/************************************************* code *******/
AFHTTPRequestOperationManager manager = [AFHTTPRequestOperationManager manager];
manager.securityPolicy.allowInvalidCertificates=YES;
manager.requestSerializer = [AFJSONRequestSerializer serializer];
manager.responseSerializer = [AFJSONResponseSerializer serializer];
NSDictionary params = @{@"email": username,
@"password": password};
[manager.requestSerializer setTimeoutInterval:100];
[manager POST:@"https://www.revbits.co:8443/api/check_user" parameters:nil success:^(AFHTTPRequestOperation operation, id responseObject) {
NSLog(@"JSON: %@",responseObject);
} failure:^(AFHTTPRequestOperation operation, NSError error) {
NSLog(@"Error: %@", error);
}];
/ code *****************************************************/
I ran the debug and got below issue.
/*************************************************DEBUG RESULT *****************************************/
Error: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={NSUnderlyingError=0x170245a00 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "The request timed out." UserInfo={NSErrorFailingURLStringKey=https://www.revbits.co:8443/api/check_user, NSErrorFailingURLKey=https://www.revbits.co:8443/api/check_user, kCFStreamErrorCodeKey=-2102, kCFStreamErrorDomainKey=4, NSLocalizedDescription=The request timed out.}}, NSErrorFailingURLStringKey=https://www.revbits.co:8443/api/check_user, NSErrorFailingURLKey=https://www.revbits.co:8443/api/check_user, kCFStreamErrorDomainKey=4, kCFStreamErrorCodeKey=-2102, NSLocalizedDescription=The request timed out.}
/******DEBUG RESULT/
Can you give me some reason for this ?
In additional, I checked the url using 'curl -k -x POST "https://www.revbits.co:8443/api/check_user"
But it has got the return code , so i thought the api is working.
Can anybody advise for this?
I am really stuck on mad for  1 week for this problem.
Regards.

Have you tried nscurl yet? (nscurl --help shows the help page)

Thanks for your reply.
That was the problem with server side blocking the ip address.
Regards.
Ps: I love the AFNetworking Framework.


Optimize ThreadLocalScopeCache

Optimize ThreadLocalScopeCache from ConcurrentHashMap to HashMap, because there are not exists multi-thread  to operate cache.

@wanna280 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@wanna280 Thank you for signing the Contributor License Agreement!


Superscript/subscript attribute is not applied

Steps to reproduce

Select a number
Press on Superscript toggle
No visual result

Video demonstration
https://github.com/singerdmx/flutter-quill/assets/45417992/0f854453-aaac-41af-8447-d11fecb87647

Flutter Quill version
8.6.0 and below (at lease on 8.5.5, 8.5.6)

Steps to reproduce

Select a number
Press on Superscript toggle
No visual result

Video demonstration
https://github.com/singerdmx/flutter-quill/assets/45417992/0f854453-aaac-41af-8447-d11fecb87647

Flutter Quill version
8.6.0 and below (at lease on 8.5.5, 8.5.6)

Thank you for the report, I will take a look at it soon.

My apologies, I'm unable to encounter the issue, I didn't try it on the web, maybe it's platform-specific?? or happens only with specific configurations.

@freshtechtips so I think you should ;)

I'm having the same issue on both Android and Linux.

Sub and superscript used to depend on selecting a font that implemented these features!
This has been corrected in the current version.
If this is still a problem, please reopen this issue


compiler cannot build a simple with html or sass

Command
can someone talk to this please and offer some docs or standards? Also how this effects lazyloading in MFE's...thanks
standard angular use to be like this for scss code
	background-image:  url("assets/images/login/background.png");
now its unknown
/Users/w509297/me/my/src/app/pages/login/login.component.scss:25:1: Can't resolve './assets/images/login/background.png' in '/Users/me/my/src/app/pages/login'
what is putting the dot slash at the front? baseHref in tsconfig? I cant seem to change that for anything different.
BUT why does my webstorm IDE approve of and can navigate to it fine? Anything else dont navigate. My IDE KNOWS if the runtime for the cod is legit and this is hoakey
the only thing compiles is this
	background-image:  url("/assets/images/login/background.png");
and I dont want that I want to know whats messing up the root path to assets so I can have something predictable here for all my code
strange thing is if I put slash in front of the root of the path... IDE shows red error but cli compiles it fine
and Im confused about impact to all our code
Is this a regression?

[ X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description
SUBJECT: compiler cannot build a simple with html or sass
angular is broken it cannot compile. This is simple to reproduce with your own quick project generation
tsconfig
		"baseUrl": ".",
		"baseUrl": "./",
		"baseUrl": "",

tried all three nothing works
login.scss
	//background-image:  url("~/@mycorp/shared-root-ui-assets/assets/images/login/background.png");
	//background-image:  url("@mycorp/shared-root-ui-assets/assets/images/login/background.png");
	//background-image:  url("node_modules/@mycorp/shared-root-ui-assets/assets/images/login/background.png");
	//background-image:  url("assets/images/login/background.png");
	background-image:  url("/assets/images/login/background.png");
	//background-image:  url("./assets/images/login/background.png");

tried all 6 and only one compiles (the uncommented line)
login.html
functions do not work when they return the path to the asset

The internet is littered with issues on this and theres no comprehensive documentation on how or why this is suppose to be coded.
Can someone help here?
Cannot compile sass url's pointing to assets
Cannot compile html templates with  and [src] pointing to assets
cannot display anything
The path the compiler is pivoting off of is either "." or the entire path of the working directory
regardless nothing works
Minimal Reproduction
why is this not implemented
Exception or Error
An unhandled exception occurred: The ./dist/assets asset path must start with the project source root.
See "/private/var/folders/9f/4_c945294tncdc7vdd30b3bc0000gq/T/ng-pGC00X/angular-errors.log" for further details

/Users/me/my/src/app/pages/login/login.component.scss:26:1: Can't resolve './assets/images/login/background.png' in '/Users/me/my/src/app/pages/login'

Your Environment
nx report

 >  NX   Report complete - copy this into the issue template

   Node : 16.17.0
   OS   : darwin arm64
   yarn : 1.22.18

   nx : 14.7.5
   @nrwl/angular : 14.7.5
   @nrwl/cypress : 14.7.5
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.7.5
   @nrwl/eslint-plugin-nx : 14.7.5
   @nrwl/express : Not Found
   @nrwl/jest : 14.7.5
   @nrwl/js : 14.7.5
   @nrwl/linter : 14.7.5
   @nrwl/nest : Not Found
   @nrwl/next : Not Found
   @nrwl/node : 14.7.5
   @nrwl/nx-cloud : 14.6.2
   @nrwl/nx-plugin : 14.7.5
   @nrwl/react : Not Found
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : 14.7.5
   @nrwl/web : 14.7.5
   @nrwl/workspace : 14.7.5
   typescript : 4.7.4
   ---------------------------------------
   Local workspace plugins:
   ---------------------------------------
   Community plugins:
   	 @fortawesome/angular-fontawesome: 0.10.2
   	 @ngrx/component-store: 14.2.0
   	 @ngrx/effects: 14.2.0
   	 @ngrx/entity: 14.2.0
   	 @ngrx/router-store: 14.2.0
   	 @ngrx/store: 14.2.0
   	 apollo-angular: 4.0.1
   	 @buildmotion/angular: 13.0.1
   	 @ngrx/schematics: 14.2.0
   	 @ngrx/store-devtools: 14.2.0
   	 @storybook/angular: 6.5.12

Anything else relevant?
one would think after all the years of angular releases since 2,4,5,6,7,8,9,10,11,12,13,14
that this would be implemented to some degree for transpilation to succeed
this is fundamental to all web pages for angular
it should be able to compile sass url'd assets
it should be able to compile templates assets
--base-href during build had no effect for development configuration

Hi @kenatwex,
IMHO, the error is quite clear in the specific case. assets/images/login/background.png cannot be resolved relative to /Users/w509297/me/my/src/app/pages/login/login.component.scss during build time. As /Users/w509297/me/my/src/app/pages/login/assets/images/login/background.png does not exist.
Call outs

./assets/images/login/background.png is exactly the same as assets/images/login/background.png and are both relative paths, but not /assets/images/login/background.png is not, as it's absolute. (Will explain a bit more further down).
The tsconfig baseUrl doesn't effect anyway the processing of CSS resources.

Unlike assets in templates, relative resources in CSS such as images and fonts are "always" resolved relative to the file location and are automatically written and fingerprinted at the root of the output (dist) folder. This means that these don't need to be added to the assets option in angular.json.
This is briefly mentioned in https://angular.io/cli/build
If you don't want this behaviour and you want to bypass CSS resource processing and point to an asset that was copied using the "asset" option you have 2 ways.

Use absolute paths /assets/images/login/background.png which has the downside of causing the base-href to be ignored. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base for more information to why this happens.
Prefix the uri of the resource with ^, example ^assets/images/login/background.png. This would cause bypassing css asset processing and during the build the caret will be removed.

Thank you friend
what would be the best path for soon to be coded i18n transloco dynamic
httploader url switching of language assets
Thank You
On Fri, Sep 23, 2022 at 7:51 AM Alan Agius @.***> wrote:

Hi @kenatwex https://github.com/kenatwex,
IMHO, the error is quite clear in the specific case.
assets/images/login/background.png cannot be resolved relative to
/Users/w509297/me/my/src/app/pages/login/login.component.scss during
build time. As
/Users/w509297/me/my/src/app/pages/login/assets/images/login/background.png
does not exist.
Call outs

./assets/images/login/background.png is exactly the same as
assets/images/login/background.png and are both relative paths, but
not /assets/images/login/background.png is not, as it's absolute.
(Will explain a bit more further down).
The tsconfig baseUrl doesn't effect anyway the processing of CSS
resources.

Unlike assets in templates, relative resources in CSS such as images and
fonts are "always" resolved relative to the file location and are
automatically written and fingerprinted at the root of the output (dist)
folder. This means that these don't need to be added to the assets option
in angular.json.
This is briefly mentioned in https://angular.io/cli/build
https://angular.io/cli/build
If you don't want this behaviour and you want to bypass CSS resource
processing and point to an asset that was copied using the "asset" option
you have 2 ways.

Use absolute paths /assets/images/login/background.png which has
the downside of causing the base-href to be ignored. See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
for more information to why this happens.
Prefix the uri of the resource with ^, example
^assets/images/login/background.png. This would cause bypassing css
asset processing and during the build the caret will be removed.

—
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/23948#issuecomment-1256114093,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A2TLQQWPXR3T6C6TOCBKY3DV7WKU7ANCNFSM6AAAAAAQT2FMEE
.
You are receiving this because you were mentioned.Message ID:
@.***>

If you will have different base-href for each locale, I'll definitely won't go with the absolute patch approach. In general, relative paths are the better option.


facter: 3.6.0 -> 3.6.4 and related deps

Motivation for this change
bump to latest upstream
Things done

[x] Tested using sandboxing
(nix.useSandbox on NixOS,
or option build-use-sandbox in nix.conf
on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@obadz that was fast! thanks!

@womfoo, np!


create --add-image flag to modify an existing promoter manifest

If we want to edit the manifest today to include a new image (to get it promoted), we have to hand-edit the YAML. This is error-prone. We should create a new flag that can make edits to the manifest in a more automated way.
E.g., something like cip --add-image=gcr.io/foo/bar/blah:1.3.1 -manifest=foo.yaml should fetch the digest of that image, and add an entry in the promoter manifest foo.yaml like this:
images:
  - name: bar/blah
    dmap:
      ...
      <digest of 1.3.1>: ["1.3.1"]

This --add-image flag will lay the foundation for automatically creating promoter manifest PRs once images get built some registry gcr.io/foo. E.g., it could be integrated into any build system that pushes images (cloudbuild.yaml, Makefiles, etc).

There is no real need to make a subcommand (and refactor our option handling logic), so I changed the wording to use "flag" instead of "subcommand".

/remove-lifecycle stale


User-created framebuffers? (Implementing a 3d outline shader in Godot 3)

Operating system or device, Godot version, GPU Model and driver (if graphics related):
OS: Windows 10
Device: Dell XPS 15 9560
GPU: Nvidia GTX 1050
GPU Driver: 388.00
Godot version: 3.0 alpha 2
Issue description:

I was hoping to implement an 3d outline shader in Godot 3. It would be used in order to highlight the outline of a selected object in the context of an adventure game. However, if my understanding is correct, there does not appear to be any way to do so!
I have read the article on Godot 3's renderer design here but I could not see it describe any way in which the user can output custom information to additional framebuffers or access this information in a subsequent fullscreen pass. I note that the article describes an "Opaque sort" pass which outputs, among things, the material index, but presumably this framebuffer information is not available to the user either?
Is there any way to achieve this effect in Godot 3? Alternatively, if the end-user cannot generate such effects by using a custom shader, is there any prospect of commonly-used effects such as outline shading being built into the engine?
Edit - here is an example of the kind of effect I am trying to achieve:

Steps to reproduce:
N/A
Link to minimal example project:

You can use the grow parameter of spatial materials to achieve a similar effect, see
http://docs.godotengine.org/en/latest/learning/features/3d/spatial_material.html

@hoelzl
Many thanks for pointing me in that direction - it works fairly well and is very easy to set up.
However, the effect looks a little bit 'rough around the edges' (see example picture below). It would still be great if it were possible to be able to use framebuffers within Godot too (as an advanced feature) for added flexibility.

I absolutely agree, but unfortunately I have no idea how difficult it would be to add this to the Godot renderer.

It might look a little bit better if the model you are using the effect on doesn't have sharp edges but some additional egeloops that make multiple soft edges together look like they are a sharp edge. (in blender the bevel tool should be able to do that for you)
That way vertices with the same original position will also be shifted by the same normal resulting in the same end position removing those holes in the outline.

One of the demos had an outline 2d shader, there is probably a way to make one for 3d too..
https://godotengine.org/qa/4547/outline-shader
somebody has asked this before btw

Is this an issue or something for Q&A?
In the case of the later, you may need to do some research and/or try to adapt existing outline shaders, it should be possible (look at shadertoy and other similar sites).
Also check the toon example on the material tester demo which is close to an outline using built in material options.

@blurymind @eon-s
Yes, this is an issue, not just a Q&A. The point is that you can't implement a post-process outline shader for 3d objects without access to an additional framebuffer storing the shape of the object you are trying to outline. (I already know how to implement a shader along the lines of the 2d outline shader.)
However, I think the solution suggested by @x1212, i.e. using a higher-detail model is probably the only workable solution at present.
It would, however, be great if the user were given some additional control over framebuffers in future versions of Godot.

Id like to see a way to do an outline effect via shader. Using a mesh to create an outline has to many poor side effects.
Even if it was for now some kind of built in shader?

Will be added in 3.1
On Dec 29, 2017 7:38 AM, "Gibbz"<EMAIL_ADDRESS>wrote:

Id like to see a way to do an outline effect via shader. Using a mesh to
create an outline has to many poor side effects.
Even if it was for now some kind of built in shader?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/13048#issuecomment-354429152,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z28Nou_ADjcx2xM7ENTOM6o2DmoqUks5tFMEIgaJpZM4QjeuA
.

Will be added in 3.1

Just clarifying... is access to framebuffers being added or just some kind of special shader for outlines?  I would really like access to framebuffers (namely the stencil buffer) in order to make a cross section shader similar to this one.  Thanks!

Will be added in 3.1

Didn't happen eventually and we're now in feature freeze for Godot 3.1. Most new rendering features have been pushed back to the Vulkan renderer work in 3.2 / 4.0.

So something like this?

shader_outline.zip
What i did was

Create a ViewportContainer that covers the entire screen

Add a outline ShaderMaterial like the demo suggested

Create a Viewport with a transparent background
Create a Camera that only draw one layer using the cull mask
Set all the outlined Nodes to be draw on the specified layer

Does that mean that the whole of all your highlighted objects get drawn on top of any other objects in the scene?  If you put your outlined node behind another does it look like this image?

Yes

just remember to have the second camera have the same transform and settings as the first one.
Otherwise this will happen

I would also like to point out that although I'm not entirely sure how this works, the method to accomplish this from @mart368b also seems to put the object with an outline behind the other object. @akien-mga maybe this issue can be closed if viewports already provide the functionality of a framebuffer?

Closing per @creikey's comment.

Feature and improvement proposals for the Godot Engine are now being discussed and reviewed in a dedicated Godot Improvement Proposals (GIP) (godotengine/godot-proposals) issue tracker. The GIP tracker has a detailed issue template designed so that proposals include all the relevant information to start a productive discussion and help the community assess the validity of the proposal for the engine.
The main (godotengine/godot) tracker is now solely dedicated to bug reports and Pull Requests, enabling contributors to have a better focus on bug fixing work. Therefore, we are now closing all older feature proposals on the main issue tracker.
If you are interested in this feature proposal, please open a new proposal on the GIP tracker following the given issue template (after checking that it doesn't exist already). Be sure to reference this closed issue if it includes any relevant discussion (which you are also encouraged to summarize in the new proposal). Thanks in advance!


chore(master): release 0.8.1

:robot: I have created a release beep boop
0.8.1 (2023-04-14)
Miscellaneous Chores

deps: update everything (342b8d4)
deps: update everything (410f108)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/indykite/jarvis-sdk-go/releases/tag/v0.8.1 :sunflower:


Add @botkube help command

This Commit,

Adds @botkube help command in addition to /botkubehelp command as custom commands are not supported in few platforms
Adds e2e testing for the same

ISSUE TYPE

Feature Pull Request

Preview

Fixes #393

From discussion over Slack,
We have to explore if we can publish the BotKube app on the Discord marketplace. If that is possible, we can embed the slash command in the Discord app installation

Closing the PR as per the discussion


Fixes stray "the" in meetqt.rst

Alternatively, maybe the "the" could be kept, if an additional word was added after "Qt", e.g. "framework".

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


CLI support for _embedder.yaml.

As noted in #25011, it looks like _embedder.yaml never made it into the analyzer CLI.  This issue tracks making it so.

@pq was this completed? If not, do we it in 1.14 and thus need to cherry pick it?

@mit-mit : not yet.  Turns out we had some plumbing to do elsewhere so this will have to be cherry-picked.
FWIW, one preliminary bit is in flight here: https://codereview.chromium.org/1584663006/.
cc: @danrubel

... so this will have to be cherry-picked.

Is there a reason why this needs to go into 1.14, or can it be part of 1.15?

Flutter wants this bad.
cc @sethladd

Are we confident that we can get it in by 1.14 (with less than a week) and tested well enough to be sure that it's stable? 1.14 is shipping in 3 working days (counting today). That seems really tight to me.

Can Flutter use dev channel builds?
On Thu, Jan 14, 2016 at 6:46 PM, Brian Wilkerson<EMAIL_ADDRESS>wrote:

Are we confident that we can get it in by 1.14 (with less than a week) and
tested well enough to be sure that it's stable? 1.14 is shipping in 3
working days (counting today). That seems really tight to me.
—
Reply to this email directly or view it on GitHub
https://github.com/dart-lang/sdk/issues/25380#issuecomment-171720104.

Flutter encourages its developers to use stable channel. Don't try to rush this in just for us, but we do look forward to it landing for 1.15.

Moving to 1.15

Should be good as of 3d3c9c5af46ffed91786672872006cba8581f533.


Q:Heroku Zbar Didn't find libzbar on your system (LoadError)

I have a rails application which uses zbar. It works fine on my developer machine But when i tried to deploy it to Heroku my commit was rejected with the following message:
app/web.1:  /app/vendor/bundle/ruby/2.0.0/gems/zbar-0.2.2/lib/zbar/lib.rb:12:in rescue in <module:ZBar>': Didn't find libzbar on your system (LoadError)  app/web.1:  Please install zbar (http://zbar.sourceforge.net/) or set ZBAR_LIB if it's in a weird place  app/web.1:  FFI::Library::ffi_lib() failed with error: library names list must not be empty  app/web.1:  from /app/vendor/bundle/ruby/2.0.0/gems/zbar-0.2.2/lib/zbar/lib.rb:9:in module:ZBar'
Here is my gemfile;
gem 'zbar', '~> 0.2.2'
my /.buildpacks:
https://github.com/ballantyne/heroku-buildpack-zbar
https://github.com/heroku/heroku-buildpack-ruby.git
Why does this happen?
Thanks.

Hi there, I am having the same problem but the fix outlined in this thread did not work for me.   I tried heroku run bash and navigated into vendor but there is no lib folder.

Any advice as to how I can find the correct path?  The library is working just fine on my local machine.

Updates on this end -- I am now using the following buildpacks:
https://github.com/generalui/heroku-buildpack-zbar
https://github.com/heroku/heroku-buildpack-ruby
I can see in the compilation that zbar is being installed.

and in heroku run bash I see a zbar folder

but I don't see a libzbar.so file and the deploy is still failing:

Is there a better buildpack that you recommend?  I see many "yet to be official" heroku zbar buildpacks on github but haven't had success with any.
Thanks for your work on this library!

I have limited connectivity at the moment, but try something like:
$ heroku run bash
…
~ $ find / -name '*zbar*.so*`

Hopefully there's a libzbar.so somewhere in your slug. (It looks like the linked buildpack does a make install, so maybe it's in /usr/local/lib?) Assuming you find one, inform the zbar gem using an environment variable:
$ heroku config:set ZBAR_LIB=/path/to/libzbar.so

Hope that helps!

Hi Will, thanks for the advice -- I see a libzbar.rc but no libzbar.so.  Should I probably try another buildpack?

Having the same problem, I can't find libzar even with the command. It's not located in the usr/local path either.

So after contacting the zbar-buildpack owner, he recommended using the apt-buildpack instead. It looked like it was going to work because it installed libzbar0 just fine but it didn't create a libzbar.so file so I tried libzbar-dev.
libzbar-dev created a libzbar.so file in /app/.apt/usr/lib/libzbar.so
Unfortunately when I point to it in heroku config
heroku config:set ZBAR_LIB=/app/.apt/usr/lib/libzbar.so, it still displays
LoadError: Didn't find libzbar on your system
remote:        Please install zbar (http://zbar.sourceforge.net/) or set ZBAR_LIB if it's in a weird place
remote:        FFI::Library::ffi_lib() failed with error: library names list must not be empty'

http://stackoverflow.com/questions/31812168/how-can-i-get-zbar-to-deploy-on-heroku http://stackoverflow.com/questions/31812168/how-can-i-get-zbar-to-deploy-on-heroku

On Aug 4, 2015, at 3:25 PM, sleepy<EMAIL_ADDRESS>wrote:
So after contacting the zbar-buildpack owner, he recommended using the apt-buildpack instead. It looked like it was going to work because it installed libzbar0 just fine but it didn't create a libzbar.so file so I tried libzbar-dev.
libzbar-dev created a libzbar.so file in /app/.apt/usr/lib/libzbar.so
Unfortunately when I point to it in heroku config
heroku config:set ZBAR_LIB=/app/.apt/usr/lib/libzbar.so, it still displays
LoadError: Didn't find libzbar on your system
remote:        Please install zbar (http://zbar.sourceforge.net/) or set ZBAR_LIB if it's in a weird place
remote:        FFI::Library::ffi_lib() failed with error: library names list must not be empty'
—
Reply to this email directly or view it on GitHub https://github.com/willglynn/ruby-zbar/issues/8#issuecomment-127728358.

@michaelryu, I am posting a stack overflow question about this in case anyone in the community has had any success with it.  Please upvote! http://stackoverflow.com/questions/31812168/how-can-i-get-zbar-to-deploy-on-heroku

@michaelryu I am now in the same place as you.
I used the apt-buildpack:
1. https://github.com/ddollar/heroku-buildpack-apt
2. https://github.com/heroku/heroku-buildpack-ruby```

And I made an Aptfile, saved it to root, with only the word “libzbar-dez” in it.

I was able to find a libzbar.so file — this is progress for me!

```Running `bash` attached to terminal... up, run.5242
~ $ find / -name "libzbar.so"
/app/.apt/usr/lib/libzbar.so```

I set the ENV variable ZBAR_LIB.

```ZBAR_LIB:                 /app/.apt/usr/lib/libzbar.so```

But when I push to Heroku, I get the same error message as before:

```remote:        LoadError: Didn't find libzbar on your system
remote:        Please install zbar (http://zbar.sourceforge.net/) or set ZBAR_LIB if it's in a weird place
remote:        FFI::Library::ffi_lib() failed with error: Could not open library '/app/.apt/usr/lib/libzbar.so': /app/.apt/usr/lib/libzbar.so: cannot open shared object file: No such file or directory```

@willglynn Do you see anything I might be doing wrong here?  Anything you might see would be a huge help.

Hmm:
…
/app/.apt/usr/lib/libzbar.so: cannot open shared object file: No such file or directory

This path appears in find(1) output, but open(2) returns ENOENT? Is it a symlink to a nonexistent path, or something?
Now I'm curious about the output of:
$ heroku run bash
…
~ $ ls -l /app/.apt/usr/lib/libzbar.so
~ $ file /app/.apt/usr/lib/libzbar.so

Hi @willglynn, thanks for following up.   I'm still stuck!
Here is the ouput of the terminal commands:
Running `bash` attached to terminal... up, run.3002
~ $ ls -l /app/.apt/usr/lib/libzbar.so
lrwxrwxrwx 1 u16314 16314 16 Oct 22  2013 /app/.apt/usr/lib/libzbar.so -> libzbar.so.0.2.0
~ $ file /app/.apt/usr/lib/libzbar.so
/app/.apt/usr/lib/libzbar.so: symbolic link to `libzbar.so.0.2.0' ```

Does libzbar.so.0.2.0 exist too?

looks like it does -- good sign?
Running `bash` attached to terminal... up, run.3824
~ $ find / -name "libzbar.so.0.2.0"
/app/.apt/usr/lib/libzbar.so.0.2.0```

I tried setting ZBAR_LIB to /app/.apt/usr/lib/libzbar.so.0.2.0 but still getting the same error with these two buildpacks:

https://github.com/ddollar/heroku-buildpack-apt
https://github.com/heroku/heroku-buildpack-ruby

remote:        Please install zbar (http://zbar.sourceforge.net/) or set ZBAR_LIB if it's in a weird place
remote:        FFI::Library::ffi_lib() failed with error: Could not open library '/app/.apt/usr/lib/libzbar.so.0.2.0': /app/.apt/usr/lib/libzbar.so.0.2.0: cannot open shared object file: No such file or directory```

Could you make a test case repo I can clone and deploy to Heroku? I don't understand why it's failing with No such file or directory, but given a Heroku app I can touch, I'll have much better visibility.

Sure thing, thanks so much for following me through this.  This is a more or less blank repo:  https://github.com/andyweiss1982/aptfile-test
All I have added is the Aptfile with the string "libzbar-dev" in it, and placed a barcode.jpg in the public folder.  This is the heroku url, but there is an application error related to the deploy issues: https://aptfile-test.herokuapp.com/
If you send me your email address, I can add you as a collaborator on heroku so you can see that side as well.  My email is my github username at gmail dot com.
Thanks again!

I started a bash dyno, from which I ran a rails console, showing:
$ heroku run bash --app aptfile-test
…
~ $ bin/rails console
Loading production environment (Rails 4.2.2)
irb(main):001:0> ZBar::JPEG.bugged?
JPEG datastream contains no image
=> true
irb(main):002:0>

The "JPEG datastream contains no image" messaage is emitted directly to stdout from the bowels of libzbar, and ZBar::JPEG.bugged? makes two different calls to libzbar to distinguish failure modes, so it's definitely working as of now.
Checking the Heroku logs, release v9 seems to have been failing:
2015-08-07T17:35:31.979295+00:00 heroku[api]: Deploy b59b15e by andyweiss1982@…
2015-08-07T17:35:31.979295+00:00 heroku[api]: Release v9 created by andyweiss1982@…
2015-08-07T17:35:32.163269+00:00 heroku[slug-compiler]: Slug compilation started
2015-08-07T17:35:32.163352+00:00 heroku[slug-compiler]: Slug compilation finished
2015-08-07T17:35:32.078989+00:00 heroku[web.1]: State changed from crashed to starting
2015-08-07T17:35:35.046174+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 40370 -e production`
2015-08-07T17:35:38.292950+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/zbar-0.2.2/lib/zbar/lib.rb:12:in `rescue in <module:ZBar>': Didn't find libzbar on your system (LoadError)
2015-08-07T17:35:38.292973+00:00 app[web.1]: Please install zbar (http://zbar.sourceforge.net/) or set ZBAR_LIB if it's in a weird place
2015-08-07T17:35:38.292975+00:00 app[web.1]: FFI::Library::ffi_lib() failed with error: Could not open library '/app/.apt/usr/lib/libzbar.so.0.2.0': /app/.apt/usr/lib/libzbar.so.0.2.0: cannot open shared object file: No such file or directory

…while release v10 seems to work:
2015-08-07T17:46:12.432372+00:00 heroku[api]: Deploy 27f93d1 by andyweiss1982@…
2015-08-07T17:46:12.432372+00:00 heroku[api]: Release v10 created by andyweiss1982@…
2015-08-07T17:46:12.481196+00:00 heroku[slug-compiler]: Slug compilation started
2015-08-07T17:46:12.481220+00:00 heroku[slug-compiler]: Slug compilation finished
2015-08-07T17:46:13.024050+00:00 heroku[web.1]: State changed from crashed to starting
2015-08-07T17:46:17.670078+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 26120 -e production`
2015-08-07T17:46:25.868205+00:00 heroku[web.1]: State changed from starting to up
2015-08-07T17:46:25.665639+00:00 app[web.1]: [2015-08-07 17:46:25] INFO  WEBrick 1.3.1
2015-08-07T17:46:25.665774+00:00 app[web.1]: [2015-08-07 17:46:25] INFO  ruby 2.0.0 (2015-04-13) [x86_64-linux]
2015-08-07T17:46:25.666333+00:00 app[web.1]: [2015-08-07 17:46:25] INFO  WEBrick::HTTPServer#start: pid=3 port=26120

https://aptfile-test.herokuapp.com/ currently returns a 404 from the dyno rather than a 503 App Crashed from Heroku's router.
So… it's fixed? What was the issue?

This is the strangest thing.
So I went ahead and coded out a barcode scan on the aptfile-test app and pushed it again to heroku, not expecting it to work.  Same error on deploy as always:

But lo and behold, I can visit the site on heroku and the barcode scan is working....

I have no idea what to make of it.  My buildpacks and ENV variables have been the same for the last several deploys.
Any thoughts?  I can't make heads or tails of it.

A-ha! The zbar gem is getting loaded in the slug compiler, and in that context the libzbar.so lives at a different path and environment variables work differently.
I'm guessing it's being loaded as part of rake assets:precompile, and I'd also guess it's not needed at all for asset compilation. Try excluding it from the :assets group, or making it require: false and load it only in the code that really does need it.

Finally!  @michaelryu  the require: false in the Gemfile and separately requiring in the controller is what did it for me.
Thank you so much @willglynn  for seeing this through to the end.
Answering my own Stack Overflow question here in case anyone has the same problem in the future:
http://stackoverflow.com/questions/31812168/how-can-i-get-zbar-to-deploy-on-heroku

Hi guys! I was dealing with similar issues the past few weeks and spent a lot of time trying to get it working. I ended up creating a heroku buildpack that uses the patched version of Zbar. I also figured out how to get it running on CircleCI (link in the repo readme). Maybe it will help someone else in the future!
https://github.com/sheck/heroku-buildpack-zbar


Zenstates keeps saying MSR isn't loaded when it is

I've enabled MSR.  I've done this on boot up...
sudo nano -w /etc/modules-load.d/modules.conf
msr
ctrl-x (y)
sudo reboot now
I've also also added this manually:
sudo modprobe msr
When I check to see if my modules are listed with lsmod, I do indeed see MSR:
lsmod | grep msr
But...when I run zenstates...it always says MSR module not loaded.
/home/smithaa02/ryzen/ZenStates-Linux/zenstates.py --c6-disable
Traceback (most recent call last):
File "/home/smithaa02/ryzen/ZenStates-Linux/zenstates.py", line 112, in <module>     writemsr(0xC0010292, readmsr(0xC0010292) & ~(1 << 32))
File "/home/smithaa02/ryzen/ZenStates-Linux/zenstates.py", line 33, in readmsr     raise OSError("msr module not loaded (run modprobe msr)")
OSError: msr module not loaded (run modprobe msr)
Even the list command shows no MSR:
smithaa02@smithaa02-MS-7B79:/dev/cpu/1$ /home/smithaa02/ryzen/ZenStates-Linux/zenstates.py -l Traceback (most recent call last):
File "/home/smithaa02/ryzen/ZenStates-Linux/zenstates.py", line 76, in <module>     print('P' + str(p) + " - " + pstate2str(readmsr(pstates[p])))
 File "/home/smithaa02/ryzen/ZenStates-Linux/zenstates.py", line 33, in readmsr     raise OSError("msr module not loaded (run modprobe msr)")
OSError: msr module not loaded (run modprobe msr)
The Pythod code this references is:
    try:
        f = os.open('/dev/cpu/%d/msr' % cpu, os.O_RDONLY)
        os.lseek(f, msr, os.SEEK_SET)
        val = struct.unpack('Q', os.read(f, 8))[0]
        os.close(f)
        return val
    except:
        raise OSError("msr module not loaded (run modprobe msr)")
But this makes no sense.  How can the program complain about missing /dev/cpu/*/msr when I see them?
smithaa02@smithaa02-MS-7B79:/dev/cpu$ ls -al /dev/cpu/*/msr
crw------- 1 root root 202, 0 Jan 20 16:38 /dev/cpu/0/msr
crw------- 1 root root 202, 1 Jan 20 16:38 /dev/cpu/1/msr
crw------- 1 root root 202, 2 Jan 20 16:38 /dev/cpu/2/msr
crw------- 1 root root 202, 3 Jan 20 16:38 /dev/cpu/3/msr
Any help would be appreciated.  My ryzen crashes have been hell...I really think it is the c6 issues and I'm desperate to fix this.
My system is:

CPU: Ryzen 2200G
MB: MSI X470 G (with 2019-01-04 bios version)
OS: Linux Mint Tessa 19.1 (fresh install...just a few days old)

Thank you for your suggestion.   I followed your instructions and now I don't get an error when I run this command:
sudo /usr/bin/python3.6  /home/smithaa02/ryzen/ZenStates-Linux/zenstates.py --c6-disable
Furthermore I can confirm that C6 is indeed off with this command:
sudo /usr/bin/python3.6  /home/smithaa02/ryzen/ZenStates-Linux/zenstates.py -l
Question though...how can I automatically load this?  "Disable-c6" uses a different permutation of my command, so I assume that wouldn't work?
This site (https://forum.manjaro.org/t/ryzen-freezes-possible-solution-related-to-c6-state/37870) suggests you just need to load the kill command in Systemd...but I'm not super familiar with SystemD...do you know how I would set this up and if it would work with sudo access?
Also, do you know if this kill command must be run continually in a loop on the background, or do you just need to load it once on bootup?
Thanks again for your help.

In response, again, I would recommend: https://github.com/jfredrickson/disable-c6. You can use systemd to automatically do this on boot. I modified Zenstates to disable all but P0 and C6 with my own command-line parameter and incorporated that into the systemd stuff that the link mentions. I never had to do anything with kill commands or any such stuff. It seems to keep until shutdown. Not sure if the systemd task/job needs sudo, but I put it in anyway. I did not need to give python any special permission!

If any Ryzen user finds this via Google...I continue to suffer system crashes.  I'm going to try to disable P1 and P2 now to see if that helps.  Cross my fingers...
sudo /usr/bin/python3.6  /home/smithaa02/ryzen/ZenStates-Linux/zenstates.py --disable -p 1
sudo /usr/bin/python3.6  /home/smithaa02/ryzen/ZenStates-Linux/zenstates.py --disable -p 2
sudo /usr/bin/python3.6  /home/smithaa02/ryzen/ZenStates-Linux/zenstates.py --c6-disable`

That is what my modified version of disable-c6 does. It loops through all P-states except 0 and disables them but leaves C6 optionally enabled or disabled. Trivial to modify both projects to add this functionality. I did it to stop ASUS from modifying my rig to throttle with the power unplugged. Helps but not perfect.

What's curious is it seems this script is less effective if executed later.  For example if I boot up...load my browser, music program etc...then execute zenstates.py...then I have higher chances of a crash.   This appears to be more effective if executed as soon as possible.
Ideally this is executed at bootup.  The following are instruction on how to do this for Mint/Ubuntu and SystemD.

sudo nano /etc/systemd/system/killryzen.service

Wite your file.  eg:
'''
[Unit]
Description=Kill Ryzen

[Service]
ExecStart=/usr/bin/python3.6  /home/smithaa02/ryzen/ZenStates-Linux/zenstates.py --c6-disable
[Install]
WantedBy=multi-user.target
'''

Save (with nano this is ctrl-x + y)

Make the file writeable
'''sudo chmod u+x /etc/systemd/system/killryzen.service'''

Test this to make sure it works
'''sudo systemctl start killryzen'''

Add to your startup
'''sudo systemctl enable killryzen'''

Reboot to verify that this worked
'''
sudo reboot now
sudo /usr/bin/python3.6  /home/smithaa02/ryzen/ZenStates-Linux/zenstates.py -l
'''

If C6 is off, then you know this worked.  As Yuji mentioned, this is a nice way to do this as you don't need to run systemd commands with sudo.

Another update for wayward googlers that find this.     Except...once I got an external video card ALL problems went away.  The card I got was the R7240-2GD3-L  which is about $75 on Amazon, and is comparable to the graphics on the 2200.

bug

What bug, anyway? Behaves fine on all of my Ryzen systems.

Never worked on my MSI X470 motherboard.  Many other users have had similar probelsm.  I suspect this issue might be motherboard specific.  Doesn't matter now...an external graphics card fixed all my random lockups.


how project real images?

Not really sure cause I've not checked yet, but maybe Encoder4Editing works.

hey @Mayorc1978 were you able to project an image?

Sorry didn't check, was busy with other things. The last time I tried the collab there were problems, don't think they have been fixed yet, cause got no answer, will check it back later on.

any news on how to project an image?

any news on how to project an image?


typo: Double word "the"

@nschonni : Thanks for your contribution! The author, @georgewallace, has been notified to review your proposed change.


Add Support for Manylinux 2_28 build libraries

Had added support for Manylinux 2_24 in 2021:
https://github.com/zappa/Zappa/pull/1083
But that version is EoL and Python Cryptography has moved to Manylinux 2_28.
https://github.com/pypa/manylinux
Updating to support while maintaining backwards compatibility.
Tested on Lambda an encountered no issues

Description

GitHub Issues

@phil-airship
Seems like some packages are publishing abi3 manylinux wheels in below format
pycryptodome-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl

Our current regex is not matching this kind of file, Can you verify whether we need to update the regex or not?

According to pypa/manylinux PEP 600 has been designed to be "future-proof" and does not enforce specific symbols and a specific distro to build. It only states that a wheel tagged manylinux_x_y shall work on any distro based on glibc>=x.y
These are the current glibc versions in lambda runtimes.

Python
glibc

python3.7
2.17

python3.8
2.26

python3.9
2.26

python3.10
2.26

So I guess the 2_28 manylinux wheels may not work on lambda yet.

@phil-airship
I have tested your PR with Cryptography 40.0.0 and I am facing issues related to GLIBC
{
  "errorMessage": "Unable to import module 'lambda_handler': /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /opt/python/cryptography/hazmat/bindings/_rust.abi3.so)",
  "errorType": "Runtime.ImportModuleError",
  "stackTrace": []
}

coverage: 74.486% (+0.09%) from 74.396% when pulling 2ccaa820aada469f7872d9b6327a02f16b2592dc on phil-airship:master into 0b1eab14ca39c3a3bfb4e915347e07495171dcba on zappa:master.

@phil-airship I have tested your PR with Cryptography 40.0.0 and I am facing issues related to GLIBC
{
  "errorMessage": "Unable to import module 'lambda_handler': /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /opt/python/cryptography/hazmat/bindings/_rust.abi3.so)",
  "errorType": "Runtime.ImportModuleError",
  "stackTrace": []
}

Is this issue resolved


Add Hook to the list of available CLI commands

Thank you for making this very useful feature.  Could include all of the available commands--hook, unhook, pause, resume--in "The CLI" section?
TL;DR: When I was setting it up, I scratched my head for a while about why nothing was happening and, after some investigation, it turned out that, although I had registered a stream to stream mapping, I had not hooked the source stream up to the fanout lambda.  The reason I hadn't was a failure to scroll to the very end of the readme, where the hook command was described for the first time.  It would have helped me to have the need to hook the stream up mentioned somewhere else nearer the top of the readme, e.g., if it were included in the list of "Available commands" in "The CLI" section.  Thanks again for the feature.

Sorry I did not see your issue in my stream and left it hanging for so long. Yess I'll have the documentation fixed. Thanks


fix: Transitioner await onTransitionStart

The idea was there, but the scope was wrong. Now, we actually wait for the onTransitionStart to complete its work before moving on instead of awaiting in a context with zero follow up procedures.
Update: I did actually test this against a working navigator. Render gets called, but no interpolation happens yet because the transition doesn't start. This is the intended and also documented behaviour.

https://youtu.be/2qYfBjrBN_Q
Built this with the fix in this PR.
I hope it gets merged, or the blocks are going to get it!
.. I should have used pictures of puppies.

Pretty please? @brentvatne

seems reasonable, thanks

Tough love. Thanks for merging ❤


Revert "tests: disable nfs-ganesha deployment"

This reverts commit 83940e624bc4faf6bc7bb1a7637711556d6b3e8c.
Because nfs-ganesha@master (2.9-dev) build has been fixed by [1] then
we can test nfs-ganesha in the CI for master/octopus.
[1] https://github.com/ceph/ceph-build/pull/1346
Signed-off-by: Dimitri Savineau<EMAIL_ADDRESS>

jenkins test pipeline

jenkins test pipeline

jenkins test pipeline

we can test nfs-ganesha in the CI for master/octopus.

until next breakage :rofl:


fix: Improve report structure, fix template issue

Pull Request
Description
Current PR contains improvement of the overall report layout and some template fixes.
Type of change
Please delete options that are not relevant.

[X] 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 not work as expected)
[ ] Code cleanup/refactoring
[ ] Documentation update
[ ] This change requires a documentation update
[ ] CI system update
[ ] Test Coverage update

Testing
Local tests passed.
Checklist:

[X] My code follows the style guidelines of this project
[X] My code meets the required code coverage for lines (90% and above)
[X] My code meets the required code coverage for branches (80% and above)
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[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

Codecov Report
Attention: Patch coverage is 98.86364% with 1 line in your changes missing coverage. Please review.

Project coverage is 93.81%. Comparing base (7c0e849) to head (78e1dd4).

Files with missing lines
Patch %
Lines

...java/com/lpvs/entity/report/LPVSReportBuilder.java
98.86%
1 Missing :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #633      +/-   ##
============================================
- Coverage     93.88%   93.81%   -0.08%
- Complexity      623      628       +5
============================================
  Files            52       52
  Lines          2127     2150      +23
  Branches        247      251       +4
============================================
+ Hits           1997     2017      +20
- Misses           56       58       +2
- Partials         74       75       +1

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

I'd recommend to split changes to '/test' and '/src'. For one commit - it is huge change.

Tests will fail in case of changes in src/ Why do we need PR with a failed build check?

test will fail if different PR's used. I mean - one commit for source another commit for tests.

I'd recommend to split changes to '/test' and '/src'. For one commit - it is huge change.

Tests will fail in case of changes in src/ Why do we need PR with a failed build check?

test will fail if different PR's used. I mean - one commit for source another commit for tests.

What is the benefit of using such an approach? The reviewer has to review the final code, not the sequence of commits.

I'd recommend to split changes to '/test' and '/src'. For one commit - it is huge change.

Tests will fail in case of changes in src/ Why do we need PR with a failed build check?

test will fail if different PR's used. I mean - one commit for source another commit for tests.

What is the benefit of using such an approach? The reviewer has to review the final code, not the sequence of commits.

it's just recommendation to simplify review. 140+ line in single commit including both source and test (I understand that it is fix) is huge.

I'd recommend to split changes to '/test' and '/src'. For one commit - it is huge change.

Tests will fail in case of changes in src/ Why do we need PR with a failed build check?

test will fail if different PR's used. I mean - one commit for source another commit for tests.

What is the benefit of using such an approach? The reviewer has to review the final code, not the sequence of commits.

it's just recommendation to simplify review. 140+ line in single commit including both source and test (I understand that it is fix) is huge.

According to all recommendations that I found, the pull request size is recommended to be less than 200 lines.
Still, I don't understand why I need to split changes into several commits if the reviewer checks the final change, not the intermediate changes made in commits.

I'd recommend to split changes to '/test' and '/src'. For one commit - it is huge change.

Tests will fail in case of changes in src/ Why do we need PR with a failed build check?

test will fail if different PR's used. I mean - one commit for source another commit for tests.

What is the benefit of using such an approach? The reviewer has to review the final code, not the sequence of commits.

it's just recommendation to simplify review. 140+ line in single commit including both source and test (I understand that it is fix) is huge.

According to all recommendations that I found, the pull request size is recommended to be less than 200 lines. Still, I don't understand why I need to split changes into several commits if the reviewer checks the final change, not the intermediate changes made in commits.

ok. Let's move this conversation out of this scope.


DataParallel vs DistributedDataParallel

Pytorch documentation basically says that it's generally a good idea to prefer DistributedDataParallel instead of plain old DataParallel, but models.py used just DataParallel.
Is there a particular reason for this?
On the other hand, muzero.py uses ray to manage distributed processing, and I'm currently not sure how that happens. But it seems to have tune, which supports DistributedDataParallel

Hi @StrangeTcy ,
You’re right, using DistributedDataParallel would be better but we found DataParallel more convenient as it required less integration and it avoids adding new parameters for parallelization in the configuration. We will try to integrate this feature when we have time but in the meantime PR's are always welcomed !


Compatibility with 1Password and Bitwarden

I have been testing with this library and it really makes authentication via WebAuthn simple to use. I've tested it through Chrome passkey storage, Apple KeyChain (FaceID) storage and it all works perfectly. Recently both 1Password and Bitwarden added support for saving and using passkeys and I am running into issues with that. I was a bit sad that I could not get it to work, because once my password manager supports it I feel confident enough to actually start using it instead of using it more like a gimmick :)
In 1Password I straight up get an error during a passkey registration breaking on an unimplemented internal function response.getPublicKey. When I test with Bitwarden it seems to work, but upon further inspection the public key is an empty string:
{ id: 'NmqWB5ibSYef0hoShh9Zyw', publicKey: '', algorithm: 'ES256' }

Weirdly enough, the serverWebAuthn.verifyRegistration on the server side succeeds with this empty public key but logging in does not, breaking on DataError: Invalid keyData, which seems logical.
Getting to the point of this issue: I know WebAuthn support is in its early phase, certainly for these password managers. I get the feeling that both managers do not support this response.getPublicKey function (yet). But these password managers have tested their setup and felt confident enough to release it to the public, which gives me the idea that there are other ways to get the public key that are possibly better supported among WebAuthn providers.
Are you aware of other ways to do this, and what are your thoughts on this?
Edit: I was actually able to login to Github with a passkey, which proves that the Bitwarden implementation is usable

Indeed, 1Password / Bitwarden do not work properly because they do not implement the getPublicKey. By the way, this method is mandatory according to the specs.
That said, it is also possible to extract the public key from the raw byte buffers. However, besides byte level manipulations, it also requires a CBOR decoding library. This adds both complexity and an undesired depency for this lib striving to be slim and simple.
My thoughts on it is that it would be nicer for 1Password / Bitwarden to implement this method rather than all library maintainers working around its absence.

Thank you for your response. A WebAuthn library that works in most situations is preferred, but I understand your design decision.
I did some research and beside the requirement for the CBOR library you'd most likely also need one or more libraries to get the public key into DER format. All in all, this would clutter up the WebAuthn library, only to make up for the password managers not doing their part.
Let's hope the password managers will adhere to the specification soon.

I just wanted to let you know that 1Password seems to be working in the browser since version 2.17.0 (released last week). Let's hope Bitwarden will soon follow :-)

... I should also throw an exception during registration. Noted.

Just to add to this, according to  the spec (§ <IP_ADDRESS> Easily accessing credential data), you should be checking to see if 'getPublicKey' is supported since older user-agents might not support it:

Note: getPublicKey() and getAuthenticatorData() were only added in level two of this spec. Relying Parties SHOULD use feature detection before using these functions by testing the value of 'getPublicKey' in AuthenticatorAttestationResponse.prototype. Relying Parties that require this function to exist may not interoperate with older user-agents.


Stopping the build process without error

When I start the build process with
./build-libssl.sh
it suddenly stops and does not continue till the Done message.
The lib library is empty.
It used to work, but now it is not working anymore
This is my complete console output:
Using openssl-1.0.2e.tar.gz
Building openssl-1.0.2e for iPhoneSimulator 9.1 i386
Please stand by...
Do you have any ideas?

Please run with verbose.
./build-libssl.sh verbose
Or check the log files in the bin folder.

Thanks for the prompt answer. I tried with a fresh download and there it seems to work.
In Github desktop everything seems to be synched. Sorry, I am kind of new to this.
By the way: I checked the bin folder and could not find any log messages there.

After running there are a log file for every architecture (in the sub folder) - good that it works now, so I'm closing this issue)

Thanks for your support


Makes the code base to compile on STM32

Whoa, that...worked?

Yep, got it running yesterday. It is txing some data. Will set up some nanopb on python to decode.
Should we make nucleo the default environment in platformio in this PR?

Will set up some nanopb on python to decode.

In theory anyway regular protobuf should also work.

Should we make nucleo the default environment in platformio in this PR?

Open to other ideas, but my initial reaction is that we should keep Uno as the main platform until we are done with alpha.
That said, we should add Nucleo to ./test.sh here or after this lands.


dyn keyword required on 0.2.85

Starting with 0.2.85, in at least this one particular instance the wasm_bindgen macro seems to need the dyn keyword to compile correctly, and otherwise it gives a strange error.  For specifics see this compilation error with stdweb https://github.com/koute/stdweb/issues/427
I guess this is a breaking change but I'm not sure if this was intentional or not. I think the dyn keyword isn't required on all editions, but I'm not sure what editions are suppose to be supported.
If the answer is stdweb just needs to be updated, then this can be closed.

Duplicate of https://github.com/rustwasm/wasm-bindgen/issues/3415.
The problem is syn in this case, it correctly requires to use the dyn keyword when writing trait objects like this. This happened because of the upgrade to v2 of syn, so there is nothing we, as in wasm-bindgen, can really do here. This should be fixed in stdweb.


Schematron: text() node fails

I get a failure when a rule context is a text node: text(). For example:
<sch:pattern>
    <sch:rule context="text()">
        <sch:report id="above-mentioned"
            test="matches(., 'above-mentioned')"
            role="info" >Forbidden word: above-mentioned</sch:report>
    </sch:rule>
</sch:pattern>

<x:scenario label="above-mentioned" focus="test this framework">
    <x:context><conbody>
above-mentioned
</conbody></x:context>
    <x:expect-report id="above-mentioned" role="info" location="/conbody[1]/p[1]"/>
</x:scenario>

If I change the rule to match the p element than the XSpec begins to work. I cannot change my .sch for many of my rules, so the XSpec framework should accommodate text() node matches.

When I insert this pair of x:param
<x:description schematron="test.sch" xmlns:x="http://www.jenitennison.com/xslt/xspec">
	<x:param name="only-child-elements">false</x:param>
	<x:param name="visit-text">true</x:param>
	<x:scenario focus="test this framework" label="above-mentioned">
...

and run XSpec command line (bin\xspec.bat -s or bin/xspec.sh -s), then the test succeeds.

@shudson310 : does @AirQuick 's reply answer your question? Can we close the issue?

The suggested params do fix the issue, but you may want to emphasize this in the documentation and tutorials. Thanks! You can close this issue.

@vincentml
I think XSpec should set allow-foreign=true, only-child-elements=false and visit-text=true for convenience, unless specified otherwise in /x:desciption/x:param. What do you think?
I have such changes both for command line and Ant.

Sorry to report, but I have tried all of these:
<x:param name="only-child-elements">false</x:param>
<x:param name="visit-text">true</x:param>
<x:param name="allow-foreign">true</x:param>
Still getting errors reported in oXygen plugin. Not sure if it is an XSpec issue or a plugin issue.

Both oXygen transformation scenario and plugin are Ant based. Parameters aren't implemented there yet.
I'll soon submit a pull request for it.
In the meantime, you have to modify [oXygen installation]/frameworks/xspec/build.xml (in case of transformation scenario) or [Home]/.com.oxygenxml/extensions/.../oxygen-results-view/build_report.xml (in case of plugin) to hardcode only-child-elements and visit-text just like allow-foreign is hardcoded:
https://github.com/xspec/xspec/blob/7361f1995416ad30777d4546ec3d970977d2abb2/build.xml#L214

Thanks for the tip!
On OS X, this was in [Home]/Library/Preferences/com.oxygenxml/extensions/.../oxygen-results-view/build_report.xml
After making this change and adding the parameters, the <x:expect-report> still fails.
Are there any other files that still need to be modified? The expected diff still shows "()" instead of no content.

After modification, your build_report.xml should look like this:
...
    <echo message="   STEP 3: Convert Schematron to XSL"/>
...
      <factory name="net.sf.saxon.TransformerFactoryImpl"/>
      <param name="allow-foreign" expression="true"/>
      <param name="only-child-elements" expression="false"/>
      <param name="visit-text" expression="true"/>
      <param name="phase" expression="${xspec.phase}" unless:blank="${xspec.phase}"/>
      <xmlcatalog if:set="catalog">
...

No other change was necessary on my end.

I think XSpec should set allow-foreign=true, only-child-elements=false and visit-text=true for convenience, unless specified otherwise in /x:desciption/x:param. What do you think?

It is better that XSpec itself should not override default parameter settings for Schematron, but users of XSpec can specify parameter settings for Schematron using <x:param>.  For example, if someone has not specified Schematron parameters in their environment the behavior of XSpec will be the same. Likewise, if someone has specified parameters for Schematron in their environment they can specify the same parameter values in XSpec. This would, I think, match user expectation.
However, it becomes more dicey when looking at the default values in different implementations of Schematron. The one in the GitHub Schematron project, which bundled with XSpec, is older. The one in oXygen is based on the one from GitHub and contains a number of enhancements. They have each different defaults.

param
GitHub
oXygen

allow-foreign
FALSE
FALSE

only-child-elements
false, conditional true
true, conditional false

visit-text
FALSE
TRUE

It would be interesting to find out if the enhancements that oXygen has made to Schematron could be contributed to the GitHub Schematron project. This might be a question for @AlexJitianu
What I think we can do for XSpec is to add more information in the wiki documentation about Schematron parameters.

Thanks, @vincentml
Then I won't set any default in my upcoming pull request.
allow-foreign on Oxygen seems to be TRUE by default in its Preferences - XML - XML Parser - Schematron.

allow-foreign on Oxygen seems to be TRUE by default in its Preferences - XML - XML Parser - Schematron.

That is a good observation. In the oXygen Preferences panel the defaults for allow-foreign is true. I was looking in Oxygen XML Editor 20/frameworks/schematron/impl/iso_schematron_skeleton.xsl which has false as the default for allow-foreign.

It would be interesting to find out if the enhancements that oXygen has made to Schematron could be contributed to the GitHub Schematron project. This might be a question for @AlexJitianu
Well, we usually create issues/pull request on the GitHub Schematron project with all the enhancements we consider worth making. We did the same with visit-text/only-child-elements parameters but, because we considered that the defaults should change, we didn't wait for the issues to reach a resolution and we made these changes in our distribution of Schematron.

I submitted #411. With it, /x:description/x:param works on XSpec for Schematron when using Ant.
If you like to test it now on the oXygen transformation scenario, clone the PR branch and follow the steps written in build.xml.
Once the PR gets merged and ported to the oXygen XSpec plugin, x:param will probably work on it, too.
Unfortunately the @location problem needs to be fixed in the upstream, as I wrote in the previous comment.

Just FYI. Using schxslt, x:expect-report/@location seems to work with text nodes. You don't need to set x:param.

I had not seen schxslt before. Very interesting! I will have to try using this Schematron implementation.

I added a Wiki page, Testing Schematron with Text Nodes, based on this issue.


Targeted offers Error

I have encountered some problems in the Partner Center. In Partner Center, expand Engage in the left navigation menu, then select Targeted offers. Sometimes a prompt will appear: "There was an error processing your request. Please try again.", sometimes nothing will show up. I want to know if I am missing something, or what preconditions to create "Targeted offers". (My two accounts have the same problem)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 77ae80e6-33d9-38de-37a9-03338bd0612f
Version Independent ID: 486a13a9-2bf7-79e2-44fa-54ac98d89766
Content: Use targeted offers to maximize engagement and conversions - Windows UWP applications
Content Source: windows-apps-src/publish/use-targeted-offers-to-maximize-engagement-and-conversions.md
Product: uwp
Technology: publish
GitHub Login: @hickeys
Microsoft Alias: hickeys

This feels not so much like feedback specifically about the documentation, but rather like a support request. Here are all of the developer support resources, for completeness.

The Feedback Hub app is the right place to lobby for a change, a feature, or to make a suggestion.
For community assistance with development questions, there are our forums, and StackOverflow.
The Windows developer support site explains other support options.
The Visual Studio developer community is available, and responsive. The former User Voice feature is now there on the Suggest a feature tab, if you want to lobby for a change, a feature, or to make a suggestion.
For developer issues, or suspected product bugs, there's Microsoft Support; a support engineer will look at the repro and see whether the issue is a Microsoft product bug, or something else. If it's a bug with a Microsoft product then the ticket will be free of charge.

If you receive assistance via any support resource, and you believe that information would help us improve the docs, then please come back and let us know.


Fix typo in 01-pvalue.qmd

Fix missing dollar signs to render sigma symbol in text.

Hi, I appreciate it! I ended up making this change manually, due to another pull request leading to a conflict with this one, so doing it manually was easier. But thanks!


Add citrix-receiver zap stanza

Zap stanza deleted folders and files come from the Citrix Support
Knowledge Center article "How to Remove Files Remaining on System after
Uninstalling Receiver for Mac" at
http://support.citrix.com/article/CTX134237

Thank you for the contribution. It was merged directly as fb6c5683bd341e13e8978972becb4241ca3e422f to keep commit history cleaner. Your contribution is still credited to you.


Increasing server_names_hash_bucket_size

Increasing server_names_hash_bucket_size to support large number of
server names, or unusually long server names
Fixes #449

@gau1991 https://rtcamp.com/tutorials/nginx/optimization/#servernameshashbucketsize the tweak is valid but please test build on 512MB VPS.

Hello, @rahul286  @alekseyp ,
This solution is not flexible for any domain,
We will need solution something like following:

Check Nginx configuration using nginx -t
If it shows error of server_names_hash_bucket_size then increase size of server_names_hash_bucket_size by 32 and again got step 1

@gau1991 Your way is correct but that kind of checking will need more time.

@gau1991, I agree that checking for the error is good idea.
Why I proposed my PR is because I've tried to add my first domain and it wasn't ~that~ long as in an example.
Checking for errors will need much more work, since it should be flexible and support other errors as well.

@gau1991

We will need solution something like following:

Check Nginx configuration using nginx -t
If it shows error of server_names_hash_bucket_size then increase size of server_names_hash_bucket_size by 32 and again got step 1

Instead of increased by 32 and go to step 1 you can calculate the value by counting character inside sites-enabled directory
@gau1991 @rahul286 We already code this on EE 2.x
Refer: https://github.com/rtCamp/easyengine/blob/old-stable/src/lib/ee_lib_service.sh#L16

I am closing this pull request, as we fixed this issue in EasyEngine v3.1.3


Initialize the libxml as soon as the wasm module loaded

So some APIs that doesn't initialize the library could be used before others.

Fixing #51


Add Index variable to documentation

I asked on Slack how to do an index variable and @trappmartin responded with the example below. I'd like to contribute some documentation to make this more discoverable. Would the Advanced Usage page be a good place for this?
Do you want something like this: ??
x = vcat(randn(10), randn(10).+10);
g = vcat(ones(Int, 10), ones(Int, 10)*2);
@model function demo(x, g)
  a ~ filldist(Normal(), length(unique(g)))
  mu = a[g]
  x .~ Normal.(mu)
end
model = demo(x,g);
sample(model, NUTS(0.8), 1_000)

Summary Statistics
  parameters     mean     std  naive_se    mcse       ess   r_hat
  ──────────  ───────  ──────  ────────  ──────  ────────  ──────
        a[1]  -0.1021  0.3023    0.0135  0.0105  412.2785  0.9981
        a[2]   9.0334  0.3008    0.0135  0.0267  357.4357  0.9985

Thanks for picking this up. Would you also be happy to contribute a tutorial, e.g. on a hierarchical mixed-effects model with group variables, to describe this? I don't think the advanced usage page would be the right place, it might be better to have a tutorial on it or add it to https://turing.ml/dev/docs/using-turing/guide instead.
cc: @cpfiffer

I'd like to contribute something smaller than a tutorial - I'm mainly just trying to learn the modeling by working some synthetic datasets. I'm not sure that I'm in a place of expertise yet to write a tutorial 😝

I think a short section in the guide would be great too. But no pressure.

I would probably put this as a short section in the regular guide here: https://turing.ml/dev/docs/using-turing/guide
I think it's interesting and important to know, but it's more an application of modelling syntax rather than an advanced application, I think.

Just tried this on julia 1.5 and it worked.

Or even better try a vectorized MvNormal for more performance and scalability:
@model function demo(x, g)
  a ~ filldist(Normal(), length(unique(g)))
  mu = a[g]
  #x .~ Normal.(mu)
  x ~ MvNormal(mu)
end


Cannot read properties of undefined (reading 'load')

originalWasmPlugin = resolvedConfig.plugins.find(plugin => plugin.name === "vite:wasm");
vite:wasm这个插件找不到导致的（vite 3.0）

Vite 3.0 的确不需要这部分代码了，我有空适配一下

不对，还是要这段代码的，我提的 fileToUrl 在 3.0 还没有 landing，我适配一下 3.0 的新内置 WASM 插件名

Sorry. The code was ready 3 days ago but I forgot to publish it ...
On Tue, Jul 19, 2022 at 9:28 PM JasonMan34 @.***> wrote:

Is there going to be a published 2.x version in npm soon?
—
Reply to this email directly, view it on GitHub
https://github.com/Menci/vite-plugin-wasm/issues/6#issuecomment-1189055214,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACWRBA26BXNYM6PY5YRRJC3VU2URTANCNFSM53RVRDGQ
.
You are receiving this because you commented.Message ID:
@.***>


Tabs Documentation

Parking this component for docs week. Working to have the content and examples spec'd up and ready for build at the next convenient opportunity.

Aug 30 - ben to review when back @bhoppers2008

Aug 30 - Update: Darrin and Josh need to sort this next week when they are both back @dplsek @joshwooding - Tabs still being built and Darrin is reworking the spec doc and waiting for @bhoppers2008 to review the Figma components.

Sept 1 - park for now until darrin/josh address a few things; ben to review figma