text:
dcm2niix windows

Firstly, congratulations for your awesome job, I have installed and run TotalSegmentator in Ubuntu with no issues but in windows there is a problem when looking for dcm2niix.
in dicom_io.py:
def dcm_to_nifti(input_path, output_path, verbose=False):
  ...
  dcm2niix = config_dir / "dcm2niix"
  # It should be substituted with:
  dcm2niix = config_dir / "dcm2niix.exe"

Otherwise it never finds dcm2niix.

Thank you for your kind words and for bringing up the issue with the dcm2niix executable on Windows. You are correct that it requires the .exe extension when running on Windows. I just updated the code accordingly. Thanks again for bringing this to our attention!

My pleasure!

Though I succeeded in the end somehow, I will try this method next time, thanks!

Great prospect in using this amazing program!
I did find some problems when trying to install the package in Python (pycharm) on a windows PC.
First off, the dcm2niix issue aswell.
But later on also a problem in the dcm_to_nifti function where the os.remove(str(output_path)[:-7] + ".json") throws a filenotfounderror. Any suggestions/ideas on how to solve?

Could you post the complete error message?

Thanks for the quick response. This is what I'm experiencing
System cannot  find the given path
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2022.3\plugins\python\helpers\pydev\pydevconsole.py", line 364, in runcode
coro = func()
File "", line 1, in
File "C:\Program Files\JetBrains\PyCharm 2022.3\plugins\python\helpers\pydev_pydev_bundle\pydev_umd.py", line 198, in runfile
pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
File "C:\Program Files\JetBrains\PyCharm 2022.3\plugins\python\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:\Users\ktorfs5\KU Leuven\Projects Pycharm\segmentationTRIAL\main.py", line 7, in
seg = totalsegmentator(inp, outp)
File "C:\Users\ktorfs5\KU Leuven\Projects Pycharm\segmentationTRIAL\venv\lib\site-packages\totalsegmentator\python_api.py", line 193, in totalsegmentator
seg_img = nnUNet_predict_image(input, output, task_id, model=model, folds=folds,
File "C:\Users\ktorfs5\KU Leuven\Projects Pycharm\segmentationTRIAL\venv\lib\site-packages\totalsegmentator\nnunet.py", line 170, in nnUNet_predict_image
dcm_to_nifti(file_in, tmp_dir / "dcm" / "converted_dcm.nii.gz", verbose=verbose)
File "C:\Users\ktorfs5\KU Leuven\Projects Pycharm\segmentationTRIAL\venv\lib\site-packages\totalsegmentator\dicom_io.py", line 95, in dcm_to_nifti
os.remove(str(output_path)[:-7] + ".json")
FileNotFoundError: [WinError 2] System cannot find the given file: 'C:\Users\ktorfs5\AppData\Local\Temp\nnunet_tmp_rkzpeemh\dcm\converted_dcm.json'

Thanks for putting this great project together! I'm looking forward to getting it up an running.
I'm getting the same error as noted by KwintenTorfs above using Windows 10:
Using 'fast' option: resampling to lower resolution (3mm)
Converting dicom to nifti...
  Downloading dcm2niix...
Traceback (most recent call last):
  File "/code/src/main.py", line 13, in <module>
    main()
  File "/code/src/main.py", line 9, in main
    segmentor.process_segmentation()
  File "/code/src/processing/segmentator.py", line 134, in process_segmentation
    args.force_split, args.output_type, args.quiet, args.verbose, args.test)
  File "/opt/conda/lib/python3.6/site-packages/totalsegmentator/python_api.py", line 208, in totalsegmentator
    quiet=quiet, verbose=verbose, test=test)
  File "/opt/conda/lib/python3.6/site-packages/totalsegmentator/nnunet.py", line 171, in nnUNet_predict_image
    dcm_to_nifti(file_in, tmp_dir / "dcm" / "converted_dcm.nii.gz", verbose=verbose)
  File "/opt/conda/lib/python3.6/site-packages/totalsegmentator/dicom_io.py", line 100, in dcm_to_nifti
    os.remove(str(output_path)[:-7] + ".json")
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/nnunet_tmp_9ll3wdmh/dcm/converted_dcm.json'

Let me know if I can provide any further details.

Which version of TotalSegmentator are you using? Can you try again with the latest version?

I pulled using the latest master branch and rebuild the docker image I'm running. I still get the above error.
So you have a better idea of my setup here is my dockerfile:
FROM nvcr.io/nvidia/pytorch:20.10-py3

ENV TOTAL_SEGMENTATOR_BRANCH master

RUN apt-get update \
&& apt-get install ffmpeg libsm6 libxext6 -y  \
&& apt-get install xvfb -y  \
&& pip install --upgrade pip  \
&& pip install flask gunicorn python-git

RUN git clone --depth 1 -b ${TOTAL_SEGMENTATOR_BRANCH} --single-branch  https://github.com/wasserth/TotalSegmentator.git /TotalSegmentator \
&& pip install /TotalSegmentator \
&& python /TotalSegmentator/totalsegmentator/download_pretrained_weights.py

WORKDIR /app

COPY . /code/src/TotalSegmentator
# my custom code
COPY ./src /code/src

# /dicoms and /segmentations are volumes set by the docker run command
CMD ["python3", "/code/src/main.py", "-i", "/dicoms", "-o", "/segmentations", "--fast"]

And the contents of main.py:
from processing.segmentator import Segmentator

def main():
    segmentor = Segmentator()
    segmentor.process_segmentation()

if __name__ == "__main__":
    main()

When I start run_server.sh I can start the server.  Then docker exec into the running container and run TotalSegmentator -i ct.nii.gz -o segmentations and can see the segmentations in the segmentations dir. It's not clear to me why running the aforementioned command works vs. what I'm doing - both run in a docker container.
Thanks for the quick reply!

I only get this error when running the segmentator on .dcm files the example_ct.nii.gz works with no errors.

@wasserth I was able to generate a .nii file using the --ml flag by making the following changes to https://github.com/wasserth/TotalSegmentator/blob/cef672ba1200a14051c7429f8cc7ecd71ee0c7a4/totalsegmentator/nnunet.py#L173
            file_in = file_in.NamedTemporaryFile(delete = False)
            file_in.close()

It looks like Windows opens a file with a share flag and future open operations pass this share flag. It's not the case with Python.
https://stackoverflow.com/questions/15588314/cant-access-temporary-files-created-with-tempfile
Hope this helps.

Thanks for pointing this out. But I am not sure how exactly you changed the code. Can you share your new lines of code around line 173.

Here is the surrounding code:
 if img_type == "dicom":
            if not quiet: print("Converting dicom to nifti...")
            (tmp_dir / "dcm").mkdir()  # make subdir otherwise this file would be included by nnUNet_predict
            dcm_to_nifti(file_in, tmp_dir / "dcm" / "converted_dcm.nii.gz", verbose=verbose)
            file_in_dcm = file_in
            file_in = tmp_dir / "dcm" / "converted_dcm.nii.gz"

            # ahlaughland added the next two lines:
            file_in = file_in.NamedTemporaryFile(delete = False)
            file_in.close()

            # if not multilabel_image:
            #     shutil.copy(file_in, file_out / "input_file.nii.gz")
            if not quiet: print(f"  found image with shape {nib.load(file_in).shape}")

When I run this I get the error message
AttributeError: 'PosixPath' object has no attribute 'NamedTemporaryFile'

Strange, that you do not get this.

Did you run pip install /app after updating the file?

yes, I did. Maybe this only works on windows? I am running on ubuntu.

yes, I did. Maybe this only works on windows? I am running on ubuntu.

Yes, I bet that's why you get the error -  I am on Windows 10.

Thank you for making this wonderful project!
I also get the [WinError 2] The system cannot find the file specified error of the Temp file. I run it on windows, and I tried the solution of changing the code in the nnunet.py, but this did not change anything. What do you mean with the pip install /app code? I do not know what the /app does.
Thanks!

yes, I did. Maybe this only works on windows? I am running on ubuntu.

Yes, I bet that's why you get the error - I am on Windows 10.
Maybe add:
from sys import platform and check the OS type.

I get AttributeError: 'WindowsPath' object has no attribute 'NamedTemporaryFile'. On Windows 10.

This problem should now be solved in v2.0.0

authors: JamMassey KwintenTorfs MMdeB ahlaughland ayalalazaro wasserth xiaoli26

repo: wasserth/TotalSegmentator


text:
[decompiler] let form maker re-uses function argument names if that register is re-used

appears in time-to-ground (dynamics-h)

The loop/let:
   (while (< (- arg2) f0-0)
    (let ((arg0 (- arg0 (* 0.0033333334 arg1)))) ;; should be a set!
     (+! f0-0 (* 0.0033333334 arg0))
     )

is actually an incorrect decompilation - the value of the outer arg0 should update on each iteration of the loop and this should be a single variable.  The variable insertion pass has done this correctly (there is only a single arg0 variable according to the decompiler).  But the let pass put a let in a place that doesn't make sense, so there end up being two variables named arg0 in the final output.
This is actually a fundamental issue with the insert_lets pass. The scope of the let is decided based on the outer most scope where the variable is referenced, not the scope of where the variable is live.  Getting this information after expressions have been built isn't really possible. So I think this is an equivalent condition:

If register is dead before the initial set!, allow inserting a let.
If register is live before the initial set!, only allow a let if the variable in the register is different.

I will try implementing this and see if it can solve this issue.

source: gharchive/issue

license: ISC

license_type: permissive

license_source: github-api


text:
Centos7 related

change mirror to AliYun
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

mv  /etc/yum.repos.d/epel.repo  /etc/yum.repos.d/epel.repo.bak
mv  /etc/yum.repos.d/epel-testing.repo  /etc/yum.repos.d/epel-testing.repo.bak
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

yum clean all
yum makecache

install nginx from offical rpm
rpm -Uvh  http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

install lvm
yum install lvm2

config lvm
pvcreate /dev/sdb1
pvs
vgcreate vg0 /dev/vdb1
vgcreate vg0 /dev/sdb1
vgs
pvdisplay
vgdisplay
lvcreate -l 100%VG -n lv1 vg0
lvdisplay
mkfs.ext4 /dev/vg0/lv1


text:
Create paths that work cross-platform

Use proper file URLs when dynamically importing JS files, instead of relying on absolute macOS file paths looking like parts of URLs.
Generate paths only in config.js.

I'm on mac and this isn't working for me. I don't think the paths to the source files are being created correctly. For example, before the import location was /Users/jzhen/Dev/waterthetrees/wtt_area/sources/argentina.js and now is /sources/argentina.js.
Here's a screenshot of what I see on this branch.

And here's what it looks like for me on the main branch.

source: gharchive/pull-request

authors: fwextensions jazhen


text:
Support services query

This adds support for the '_services._dns-sd._udp.local' query.

I found some issues with the current version here, don't merge this yet.

Fixed issues, reopening.

repo: watson/bonjour

license: mit

license_source: bigquery


text:
Adds eQSL-Checkbox to importer (import as already sent)

Solves #849

Tested importing, and all QSOs were marked as sent with todays date.

Sorry for late feedback. Also working on my end :)

repo: wavelog/wavelog

license: MIT


text:
Strange column backcolor/forecolor under Windows

Hello,
I give a try to gtabview under Windows.
Here is a screenshot.

Backcolor/forecolor is black so that's not possible to see title name
Kind regards

On 02/09/15 13:55, scls19fr wrote:

Hello,
I give a try to gtabview under Windows.
Here is a screenshot.
gtabview_column_backcolor
https://cloud.githubusercontent.com/assets/109167/9630367/1b4dd816-517a-11e5-8d10-02c44cfc2bfa.png
Backcolor/forecolor is black so that's not possible to see title name

Can you make a screenshot of the multiindex demo?
I want to see all the palette entries.
Also, do you have the "qt designed" installed by any chance?

I mean "designer".

Sorry I don't have Qt Designer on this computer and I can't install it (because it's very slow)

On 02/09/15 14:45, scls19fr wrote:

Sorry I don't have Qt Designer on this computer and I can't install it
(because it's very slow)

Ok. I was asking because the background color is computed from the
system palette (and designer has a previewer), but this might change
with the windows theme you're running on.
Are you running on windows 7?
Default theme I guess?

Yes Windows 7 - default theme

Can you try now? I tried to use the system colors in a slightly different way.

I can't now (I don't have a Windows here) maybe tomorrow or next week

Not necessarily only under windows. The color change will affect linux/mac as well. I tested with a few QT themes and on windows 7 and it looks decent enough. I have no idea on how it looks on mac, however.

It looks fine under OS X.

On 03/09/15 18:56, scls19fr wrote:

It looks fine under OS X.

I would expect the inactive selection to look paler in the new version.

I just wonder why highlighting column but not index. But that's just a detail.

I guess you need to run gtabview -I4 -H2 to actually set the headers/index correctly.
Or run pandas-example.py.

Oh yes. It looks nice.

Also nice looking with Win 7

Yes thanks again Yuri

repo: wavexx/gtabview


text:
BrickDimension now checks on UIScreen bounds

Check for orientation is now done on UIScreen.mainScreen().bounds
Added tests that swizzle UIScreen.mainScreen()

Fixes #13

Current coverage is 93.73% (diff: 100%)

Merging #14 into master will decrease coverage by 0.01%

@@             master        #14   diff @@
==========================================
  Files            36         36
  Lines          2336       2330     -6
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           2190       2184     -6
  Misses          146        146
  Partials          0          0

Powered by Codecov. Last update 644d501...631fb84

authors: codecov-io rubencagnie

repo: wayfair/brickkit-ios


text:
scenario in Motion Datasets Are the images included in the Perception dataset？

In the motion dataset, use scenario = scenario_pb2. Scenario() obtains the map and vehicle information in each scene, is there any image information with the corresponding scene timestamp in the perception dataset? If so, how get it?

Currently we do not provide any image data for the motion dataset.  The motion and perception datasets are different segments.

authors: CHANGgreenEVER scott-ettinger

repo: waymo-research/waymo-open-dataset


text:
chore(master): release 1.1.87

:robot: I have created a release beep boop
1.1.87 (2023-09-13)
Miscellaneous

deps: update dependency phpstan/phpstan to v1.10.34 (9850b83)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/laravel-stripe-webhooks/releases/tag/v1.1.87 :sunflower:

repo: wayofdev/laravel-stripe-webhooks


text:
When node have multiple outgoing edges all of them highlights when user selects one

When one node has multiple edges going into one other node, and the user selects(clicks) one of them, all of them will become highlighted. All handles in my example have a unique ID and also onSelectionChange is called with correct data (only one edge).

Example:

Also when edges are selected by group selection they are not highlighted.

good catch 👍

repo: wbkd/react-flow


text:
Error: 'non passive listener to "wheel' event

I'm getting this error:
[Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

It is coming from onAdd(), and seems to be required for a smooth scroll-to-zoom effect.
I managed to remove the warning by applying options = { passive: false }.
I guess the error goes away when the event is explicitly active.
BTW, what about pinch-to-zoom?

The warning should be fixed with React17 when I get it right.
Unfortunately pinch-to-zoom is not supported by d3-zoom, that we are using for panning and zooming. We might change this in the future but it's not a high priority right now.

@moklick were you able to resolve this? im still getting:
ReactFlow.esm.js:3697 [Violation] Added non-passive event listener to a scroll-blocking 'wheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

authors: KutnerUri daljeetv moklick


text:
Paying invoice without numerical amount fails

Parsing an invoice where amount is not set to a numerical value fails:
type mismatch, parameter: amt, error: strconv.ParseInt: parsing "undefined": invalid syntax
e.g.
lnbc1pwq6e83pp5vxfk7n7z2rh27p60cnzsgy9txdamv948aka7nv5kjnnxtm0j2zgqdpsgejk2erfdenjqarfwpcxjm3wd4jjqum9wfmx2unnyrcflr9wcqzysxqzjcc7chlhzh0qeuvud0g67llyxujxqz39e5sjhy290vu34n3g6r0e5h0jgwl0dug0c6ysf6xaaqtdh3jat58284s48hvpkf0rug0q9gwxspkx0wgu

https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md
states that the reader must fail when the amount is not numerical, so the issue is on the invoice generator side.

This actually is a valid point! The undefined is coming from my code, but this is in fact a use-case outlined in BOLT-11 that I didn't account for, amount can be unspecified. For example, tippin.me relies on this.

amount: optional number in that currency, followed by an optional multiplier letter. The unit encoded here is the 'social' convention of a payment unit -- in the case of Bitcoin the unit is 'bitcoin' NOT satoshis.
...
If the amount is empty:
SHOULD indicate if amount is unspecified
...
Donation addresses often don't have an associated amount, so amount is optional in that case. Usually a minimum payment is required for whatever is being offered in return.

So I'll need to add an amount input to the send forms if one is not specified.

authors: erikbos wbobeirne

repo: wbobeirne/joule-extension


text:
chore: Update to TypeGPU 0.2

A few API changes have been made to TypeGPU 0.2 that improve resource allocation, as well as add typed bind-groups and bind-group layouts.
Additional changes:

Making use of runtime-sized arrays for triangle positions.
Making Compute Boids parameters uniform instead of storage.

thanks a lot :)

authors: iwoplaza wcandillon

repo: wcandillon/react-native-webgpu


text:
CPU usage pegged at 100%

Using bin/ftpdrb on macOS with ruby 1.4, Activity Monitor shows ruby using 6 threads and 100% of a CPU. Is the server doing a lot of polling? In my configuration, there are 3 active server connections that are otherwise idle most of the time.

No polling.  Ffpd runs one listener thread and then one thread per
connection.  All IO is supposed to be blocking but what you are seeing
makes me wonder.
On Jun 25, 2017 08:47, "pcbeard" notifications@github.com wrote:

Using bin/ftpdrb on macOS with ruby 1.4, Activity Monitor shows ruby using
6 threads and 100% of a CPU. Is the server doing a lot of polling?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/wconrad/ftpd/issues/47, or mute the thread
https://github.com/notifications/unsubscribe-auth/AB2JiA6biP4atwrp-Bk_EqSWJDXgTsbRks5sHoD6gaJpZM4OEpDU
.

Even w/o any connections, simply starting the server by running bin/fptdrb, here's what top shows:
PID    COMMAND      %CPU TIME     #TH   COW     #PORT MEM    PURG   CMPRS  STATE    UID  #WQ  BOOSTS                %CPU_ME
17058  ruby         94.2 02:02.52 3/1   237     24    8960K  0B     0B     running  5322 0    *0[1]                 0.00000

The problem was a busy-loop in bin/ftpdrb.
I can't release a new gem right now--something in my test/release setup for ftpd has gone wrong, and I can't troubleshoot it right now.

Yes, I just confirmed that too. Here:
    def run
      puts "FTP server started. (Press CRL+C to stop it)"
      connection_info.each do |key, value|
        puts "#{key}: #{value}"
      end
      $stdout.flush
      begin
        loop{}
      rescue Interrupt
        puts "\nClosing FTP server..."
      end
    end

What's your proposed fix? I think the easiest would be to simply change that loop to a call to the server thread's join method.

Patch:
diff --git a/bin/ftpdrb b/bin/ftpdrb
index dcd222d..02be84d 100755
--- a/bin/ftpdrb
+++ b/bin/ftpdrb
@@ -209,7 +209,7 @@ module FTPDrb
       end
       $stdout.flush
       begin
-        loop{}
+        @server.join
       rescue Interrupt
         puts "\nClosing FTP server..."
       end

Added a pull request.

I think your fix is fine.  I'll probably back out my fix and accept your PR after I get some of ftpd's housekeeping taken care of.

I've released a new version of the gem which includes my fix for this issue.  Leaving this issue open tor remind me to replace it with your fix.

Did you ever consider my fix?

@pcbeard I would love to use your fix.  I haven't pulled it in because my upkeep of ftpd stopped when recent versions of Ruby broke the double-bag-ftps gem that ftpd uses for ftps support, and I don't know what the fix for that is.  I suppose I could officially not support more recent Ruby versions, but that bothers me.

authors: pcbeard wconrad

repo: wconrad/ftpd


text:
SX1278 won't work with HCLK > 16 MHz (Cortex-M0+)

Hi,
I have stumbled upon the problem that your library works fine unless I increase the HCLK value above 16 MHz. I'm currently working with a STM32G031F8.
I should mention that I'm not very experienced in working with MCUs, even more so for STM32 chips, so this might be a newbie thing on my end.
I'll gladly offer help with debugging.

I was forced to look into this again and found that the critical value seems to be the APB peripheral clock (PCLK). Everything seems to work fine as long as this value is below 32 MHz, which for power of 2 clocks means a maximum of 16 MHz. If one chooses to use odd  multipliers or divisors I'd venture to guess that even 31.9 MHz might do the trick. Haven't any way to test it, though.
I've attached this screenshot in case it's helpful to anyone.


text:
When you select one or more reports in the beta front-end and press delete, a Java StackTrace appears

Expected behavior is that a toast window is shown. The window should say that deleting multiple reports is not supported for this storage.

This happened in version 2.3-20240316.003130.

Why is is deleting multiple reports not supported? Which storage are you using?
In the test webapp I can select multiple reports and delete them

Ik kan het niet meer reproduceren. @MatthijsSmets hebben jij en Mark iets veranderd aan het verwijderen van rapporten?

authors: jacodg mhdirkse

repo: wearefrank/ladybug-frontend


text:
Add unit tests for the ECS reporter

Leftover from https://github.com/weaveworks/scope/pull/2026

Fixing this should include  removing the following TODO:
		// TODO: add ECS nodes in report fixture
		if topology.Name == "Tasks" {
			continue
		}

https://github.com/weaveworks/scope/blob/9c7282231f78797647f4d8991cbade9f55abbe89/app/api_topologies_test.go#L47-L50

fixed by https://github.com/weaveworks/scope/pull/2065

repo: weaveworks/scope


text:
collaboration features

Description
I want to be able to create a custom "brain" that is scoped to a set of documents and share it with ACL permissions.
Is this a bug or a feature?

[ ] Bug
[x] Feature

Additional context
See https://github.com/QuivrHQ/quivr for inspiration.

Interesting, we'll have a look

Hey @mikestaub, we decided to scope collaboration features out of Verba! Sorry 😞

authors: mikestaub thomashacker

repo: weaviate/Verba


text:
Enhancements for SIMD advisor

According to the emscripten documentation, there are five different ways to leverage WebAssembly SIMD in your C/C++ programs:

Enable LLVM/Clang SIMD autovectorizer to automatically target WebAssembly SIMD, without requiring changes to C/C++ source code.
Write SIMD code using the GCC/Clang SIMD Vector Extensions (__attribute__((vector_size(16))))
Write SIMD code using the WebAssembly SIMD intrinsics (#include <wasm_simd128.h>)
Compile existing SIMD code that uses the x86 SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 or 128-bit subset of the AVX intrinsics (#include <*mmintrin.h>)
Compile existing SIMD code that uses the ARM NEON intrinsics (#include <arm_neon.h>)

x86intrin.h header file is usually used in C\C++ codebase, which contains the support of multiple instruction sets, commonly covering the one or several of MMX, SEE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2, etc, but it is related to the what compiler you use.  For the clang inside of the emsdk, it contains ia32intrin.h & mmintrin.h, which will not handled by emscripten during the building, so the better ways to port your project with SIMD support are:

if there is no SIMD code used in the codebase and you want to enable SIMD option to let compiler autovector to target wasm-simd, add -msimd128 is enough.
if your current codebase exists SIMD code, include <wasm_simd128.h>  and then use the wasm SIMD intrinsics to replace your current code.
if your current codebase include SIMD code targeting x86 SSE* instruction sets, add -msimd128 and additionally corresponding flag.

For example,  SSE: pass -msse and #include <xmmintrin.h>. Use #ifdef __SSE__ to gate code.

Compile existing SIMD code that uses the x86 SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 or 128-bit subset of the AVX intrinsics (#include <*mmintrin.h>)
if your current codebase include SIMD code targeting x86 SSE* instruction sets, add -msimd128 and additionally corresponding flag.
For example, SSE: pass -msse and #include <xmmintrin.h>. Use #ifdef __SSE__ to gate code.

Maybe we can scan if these SIMD intrinsics header files exist in the codebase, and add corresponding compiler flags when user enable SIMD option from UI.

Enhancements finalized:

scan the codebase to check if following header files are included:

SIMD set
Header file
Action

SSE
#include <xmmintrin.h>
-msse

SSE2
#include <emmintrin.h>
-msse2

SSE3
#include <pmmintrin.h>
-msse3

SSSE3
#include <tmmintrin.h>
-mssse3

SSE4.1
#include <smmintrin.h>
-msse4.1

SSE4.2
#include <nmmintrin.h>
-msse4.2

AVX
#include <immintrin.h>
-mavx

implement action to add corresponding -mxxx flag into the compiler flags.

scan the error content to match if it contains the x86intrin.h, prompt developers that the emscripten does not support this intrinsic header, consider to rewrite the code with the apis provided by wasm_simd128.h or just remove it if the codebase does not use the SIMD code.

repo: web-devkits/webinizer


text:
feat(ast): add SymbolId and ReferenceId

Closes #510

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (3110490) 92.20% compared to head (0cbf065) 92.20%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #755   +/-   ##
=======================================
  Coverage   92.20%   92.20%
=======================================
  Files         203      203
  Lines       41465    41487   +22
=======================================
+ Hits        38233    38255   +22
  Misses       3232     3232

Files Changed
Coverage Δ

crates/oxc_ast/src/ast/js.rs
65.84% <ø> (ø)

crates/oxc_semantic/src/reference.rs
70.68% <ø> (ø)

crates/oxc_syntax/src/lib.rs
100.00% <ø> (ø)

crates/oxc_ast_lower/src/lib.rs
99.37% <100.00%> (+<0.01%)
:arrow_up:

crates/oxc_parser/src/js/binding.rs
98.70% <100.00%> (+0.05%)
:arrow_up:

crates/oxc_parser/src/js/expression.rs
98.37% <100.00%> (ø)

crates/oxc_parser/src/js/function.rs
99.18% <100.00%> (ø)

crates/oxc_parser/src/js/grammar.rs
99.08% <100.00%> (+0.02%)
:arrow_up:

crates/oxc_parser/src/ts/statement.rs
93.45% <100.00%> (+0.06%)
:arrow_up:

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

Nice work!  Thank you!

authors: Boshen codecov-commenter hyf0

repo: web-infra-dev/oxc


text:
[Bug]: CopyRspackPlugin.pattern.from not support to specify a file path not regexp

System Info
Mac os
Details
There appears to be a bug in Rspack's CopyPlugin where it does not properly handle patterns that specify a single file. This functionality is supported in webpack's CopyWebpackPlugin, but it seems to be missing or not working as expected in Rspack.
Reproduce link
No response
Reproduce Steps

Configure CopyPlugin in Rspack config
Attempt to copy a specific file using a pattern

{
  from: '/xx/xx.ts'
}

But /xx/xx.ts* is working
Expected Behavior:
The plugin should be able to copy a single, specific file when the pattern points to that file.
Actual Behavior:
The plugin fails to copy the file or throws an error (please specify the exact behavior you're seeing).

need reproduction

I discovered the reason for the error. My path includes a ] character, but when I use other bundlers or use glob patterns myself, I can match it. Is it possible to support this?

I discovered the reason for the error. My path includes a ] character, but when I use other bundlers or use glob patterns myself, I can match it. Is it possible to support this?

https://codesandbox.io/p/devbox/5j83p2?file=%2Frspack.config.mjs%3A45%2C13

authors: inottn moonlitusun

repo: web-infra-dev/rspack


text:
feat: support wrappedContextRegExp

Summary
close #5684

Checklist

[x] Tests updated (or not required).
[x] Documentation updated (or not required).

@ahabhgk cc~

authors: chenjiahan inottn


text:
Display baseline status for individual BCD keys, like on MDN

This comes from https://github.com/web-platform-dx/web-features-explorer/issues/31#issuecomment-2543348227 where @caraya was confused as to how to find web-features IDs and why the widget wouldn't work with all features, such as addEventListener, even if MDN does show a baseline banner on then addEventListener page.
I think it is worthy of discussion. MDN does it, and we have the https://www.npmjs.com/package/compute-baseline package. So, perhaps the baseline-status component should be allowed to display the status for an individual BCD key that's part of a web-feature.

See this codepen from @caraya for more context on what they were trying to achieve: https://codepen.io/caraya/pen/KwPawwL

I’d +1 this. Or, alternatively, at least provide a tool (CLI + online interface) that allows you to type in something and it spits out the Baseline featureId.

The OG request in this thread also resonates with this ask by @chriscoyier in https://frontendmasters.com/blog/showing-browser-support-for-web-platform-features-on-your-own-blog/#using-baseline

It requires you know what the featureId is for whatever you want to embed, and it looks like the place to find that information is this folder on GitHub.
[…]
I couldn’t find the animation-timeline I’ve been using as an example, for instance.

I’d +1 this. Or, alternatively, at least provide a tool (CLI + online interface) that allows you to type in something and it spits out the Baseline featureId.

The issue I found is that a lot of the child features are not available in the web features explorer or the underlying data.
I'm afraid that without underlying changes to the data, having a way to surface feature IDs will not help. If I search for addEventListener it will still surface Events as the feature ID because that's the grouping addEventListener falls under.
When I'm blogging about events I would like to add compatibility data for the specific features and not just the main feature they are grouped under.

authors: bramus captainbrosset caraya

repo: web-platform-dx/baseline-status


text:
Add links to State Of XYZ surveys

@sachag has recently been tagging his State Of data with web-features IDs, which now lets us cross-link the 2 data sets.
For the explorer, this means we could show the surveys that talk about a particular feature, and therefore make it easy to gauge developer interest and feedback in a particular feature.
One way to do this is by using GraphQL:
https://graphiql.devographics.com/
query MyQuery {
  entities(tags: "has_web_features_id") {
    id
    webFeaturesId
    appearsIn {
      survey {
        name
        editions {
          year
          resultsUrl
        }
      }
    }
  }
}

With the following query we can almost create URLs that point to specific questions about a feature:
query MyQuery {
  entities(tags: "has_web_features_id") {
    id
    webFeaturesId
    appearsIn {
      survey { name }
      edition { year }
      section {
        slug
        id
      }
    }
  }
}

By using the year, slug, and id fields in the above query, we can construct URLs like: <year>.stateof___.com/<slug>/<id>. It doesn't seem to work in all cases though. Not sure why yet.

Oh right, the issue is that in some surveys (such as CSS 2024) all features appear as part of a combined chart, individual features don't have their own link:

To solve this I think I would need to either create individual pages for all features outside of the main survey results; or else you would have to import all the data into the explorer and show it there without redirecting to the survey results.
The downside with that first approach is that we sometimes have 50+ features, and we build the site in 30+ languages. So that would add ~1500 extra pages to build on every deploy, which would slow things down a lot… So we probably need to wait until we switch to a system that supports page-per-page, incremental builds before that becomes practical.
If we go the other route, maybe the solution could be some kind of universal "State of XYZ chart" embed or web component? That could actually be pretty useful for bloggers and other sites too? But I've never built something like that so I'm not sure what's involved…
(By the way note that aside from the API, we also have static exports of all chart data available, although in this specific case we don't have exports for individual features yet)

authors: SachaG captainbrosset

repo: web-platform-dx/web-features-explorer


text:
Move Baseline status definition review date text

This PR moves the "due for review" date to the "Ownership and maintenance" section of the Baseline doc.
As @tidoust noted in https://github.com/web-platform-dx/web-features/pull/423#discussion_r1410847301, the existing phrasing is somewhat over determined. It suggests that the duration and only the duration would come up for review. This conflicts with the governance text that says that reviewing and revising the definition (in general) is on the agenda annually. This PR attempts to reconcile the competing texts.

(Since this touches the Baseline definition, it needs review from the owners group.)

LGTM!

authors: atopal ddbeck

repo: web-platform-dx/web-features


text:
Obtain endpoint and keys to php library

Hello.
Is it possible to obtain the browser's endpoint and keys from the php library in order to store it in a database?

Hi, what do you mean by this?
The browser's endpoint and keys can be obtained through the browser only. See client-side implementation in the readme.

Hello and thanks for your answer.
What i need to do is to be able to retrieve the client's endpoint and
keys from the server side in order to store it on a Data Base . Is this
possible??
Best regards,
Firma Eurona
eurona
Luis Canelón
Ingeniero de Producto 	+34 627 904 873
+34 934 882 382 	Carrer Agricultura, 106
08019 Barcelona - España
eurona.com
Por favor respeta el medio ambiente.
AVISO PROTECCIÓN DE DATOS: En cumplimiento de lo previsto en la Ley
Orgánica 15/1999 de Protección de Datos de Carácter Personal, le
informamos que sus datos personales están incorporados en un fichero
responsabilidad de Eurona Wireless Telecom S.A. Vd. podrá ejercitar los
derechos de acceso, rectificación, cancelación u oposición, dirigiéndose
a tal efecto en la dirección: Carrer Taulat, 27, Barcelona (08005) o
enviando un email a info.eurona@eurona.net
mailto: info.eurona@eurona.net. En conformidad con la LSSI , si vd.
no desea recibir más correos electrónicos de Eurona, por favor envíe
e-mail a info.eurona@eurona.net mailto:info.eurona@eurona.net. GRACIAS.
El 15/01/17 a las 12:11, Louis Lagrange escribió:

Hi, what do you mean by this?
The browser's endpoint and keys can be obtained through the browser
only. See client-side implementation
https://github.com/web-push-libs/web-push-php#client-side-implementation-of-web-push
in the readme.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/web-push-libs/web-push-php/issues/71#issuecomment-272688363,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQQZx0qfI8eCCwpPKw4CymOfhyMjPDa2ks5rSf7PgaJpZM4Livkg.

Hi, by the looks of things, I'd say that you're a bit lost with all Web Push terms and logic. You might want to read the readme and its provided links first.
Let me know if you still have issues.

authors: Minishlink bjjclimbin

repo: web-push-libs/web-push-php


text:
The "curtains" of the hexagons do not always close perfectly

Hi,
I encountered an issue from the very beginning. Depending on the size of hexagons, the top and bottom curtains that close in the middle do NOT close perfectly.
Now, there is a gap.

But at some widths, they can also overlap.

Did you encounter this?
How can I possibly fix it?
Thank you,
Costin

@web-tiki i remember this happening before some times. Its a floating point rounding issue with some sizes.
@costincca if i remember correctly this happend in only specific browsers, and it is a single pixel. You can try to tweak the math with higher precision, or you can try to blur the curtain element to make the 1 pixel difference less visible.
I would also advice to have a little room for error, especially when its a single pixel line that shows up some of the time.

Hi @poi33 I do not understand yet how the curtains are calculated. I need to use a Dev Web Tools from Chrome or Mozilla to check the elements. I started to explore the possibility to freeze the hexagons at a certain size (where the curtains look well) and change only their number per line.
Or calculate the top curtain as 50% and the bottom curtain at "bottom - size of the top one", thus having just one round operation and the second one filling in the remaining of space.

@web-tiki is there some calculation we can increase the precision on to avoid this?

@poi33 I don't have time to make a fix for this bug just now but the tests I made reveal the calculation bug comes from the transform property on the h1 and p element in  the hexagons.

Hi @poi33 I do not understand yet how the curtains are calculated. I need to use a Dev Web Tools from Chrome or Mozilla to check the elements. I started to explore the possibility to freeze the hexagons at a certain size (where the curtains look well) and change only their number per line.
Or calculate the top curtain as 50% and the bottom curtain at "bottom - size of the top one", thus having just one round operation and the second one filling in the remaining of space.

Hi, have you figured out now how do the curtains close properly, I imported bootstrap and and curtains can't shut, there's big gap in between

i would like to work on this issue please assign to me

i would like to work on this issue please assign to me

Done !

repo: web-tiki/responsive-grid-of-hexagons


text:
Sword attacking itself if dropped while being used and crashing the app

Describe the bug
While we are using the sword, in case we drop it while using it, and the left click is kept pressed, it would attack itself even though the sword is dropped already. Also when the sword vanishes, the app crashes and throws this error. This happens only if we keep standing closer to the sword.
To Reproduce
Steps to reproduce the behavior:

Equip a sword/silsword
use it by pressing left click
drop it with 'r' while being used, keeping the 'left click' pressed.
wait till the sword vanishes
the app would crash

Expected behavior
sword action should end immediately after its dropped.
Screenshots

https://user-images.githubusercontent.com/35926530/183125962-09ea0187-701f-46f0-8c9f-f0ac389c6e4d.mp4

FIxed

repo: webaverse/app


text:
[CHECKLIST] Finalize Mixer requirements

Overview
The goal of this checklist is to outline the remaining requirements for finalizing the mixer grant.
Documentation

[x] Ensure proper license(s) are in place for relayer, webb-dapp, webb.js
[x] Add inline and external documentation for each associated repo relayer, webb-dapp, webb.js
[x] Add instructions and description to package
[x] Add usage examples to webb.js
[ ] Provide instruction on how to test UI Support: Multi-Asset support

Maintenance

[x] https://github.com/webb-tools/webb.js/pull/181
[x] https://github.com/webb-tools/webb-dapp/pull/369
[x] https://github.com/webb-tools/relayer/issues/107
[x] https://github.com/webb-tools/webb-dapp/issues/345

The main deliverable is to demonstrate a working example of the mixer through the DApp interface, include well documented instructions on the steps to replicate success.

For context: https://github.com/w3f/Grant-Milestone-Delivery/blob/master/evaluations/Webb-Mixer-Extended_2_alxs.md

@nepoche @AhmedKorim @drewstone @dutterbutter
Below I have outlined a checklist that should ensure we have met the grant requirements, and improves the documentation / usage of each component.
Checklist for grant completion

[ ] E2E demonstration of mixer with thorough guideline for others to follow

Relayer

[ ] Check and ensure proper license(s) is in place for relayer
[ ] Relayer README updated with adequate instruction
[ ] Adequate inline/implementation documentation
[ ] Adequate external documentation
[ ] Updated preset configurations for easy startup - mixer

Webb Dapp

[ ] Check and ensure proper license is in place for webb-dapp
[ ] Webb-dapp README updated with adequate instruction
[ ] Adequate inline/implementation documentation
[ ] Adequate external documentation
[ ] Updated to support node v16

Webb.js

[ ] Check and ensure proper license(s) are in place for webb.js
[ ] Webb.js README updated with adequate instruction
[ ] Adequate inline/implementation documentation
[ ] Adequate external documentation
[ ] wasm-bindings is documented, includes a readme with instruction and runs correctly
[ ] UI Support: Multi-Asset support
[ ] Updated to support node v16
[ ] @webb-tools/types disclosure and credit for copied code
[ ] Detailed API usage examples with documentation

repo: webb-tools/webb-dapp


text:
Linux build doesn't work properly

Maybe because of AppImage.

Update: .deb works perfectly on Ubuntu.

I had to rename the WebCatalog-2.7.2.pacman to WebCatalog-2.7.2.pkg.tar.gz, and then run sudo pacman -U WebCatalog-2.7.2.pkg.tar.gz in terminal to install.

Is it possible to add a .desktop after installing an app?  This way I can see and search for installed apps in the linux app launcher?

repo: webcatalog/desktop


text:
Failed to fetch

TypeError: Failed to fetch

Please make sure you connect to remote node before creating a wallet using desktop software.

authors: basetrue danielwebimp

repo: webchain-network/wallet


text:
Track token use per play

It might be interesting to track how many token's an AI model uses when playing a round so that we can then display a cost / game won or "brain efficiency" that we can then display on the leaderboard

input and output or only output tokens?

@FleetAdmiralJakob the idea is to know how much you spend per one click of "Start game"

I want to work on this
discord: obo.baddest

Made a PR for this issue if anyone can check it out and give feedback.
https://github.com/webdevcody/survive-the-night-sim/pull/134
Thank you.

closed in https://github.com/webdevcody/survive-the-night-sim/pull/134

authors: FleetAdmiralJakob OpeOginni delasy webdevcody

repo: webdevcody/survive-the-night-sim


text:
Feat/support v8

Update to work with WDIO v8

Hey, can you run all checks inside pipeline.

Workflow is triggered on PR of Push to main branch. Did npm run test on local and all test passed

@christian-bromann, comments have been addressed in new commit

Thanks for the work @jelugbo , let's continue convo in  #113

authors: bjelugbo christian-bromann dlitmano jelugbo


text:
Multiple browser tests running simultaneously with same screenshot name fails

I think there is an issue with tests running on multiple browsers simultaneously if they use the same name. Here is my setup:
wdio.conf.js
capabilities: [{
    browserName: 'chrome'
}, {
    browserName: 'firefox'
}, {
    browserName: 'internet explorer'
}]

header.spec.js
describe('header', function () {
    it('should look the same', function (done) {
        browser
            .url('/')
            .webdrivercss('home', {
                name: 'header',
                elem: '.header'
            }, function (err, res) {
                expect(res.header[0].isWithinMisMatchTolerance).toBe(true);
            }).call(done);
    });
});

One browser always fails because they are sharing the same screenshot filename and running at the same time:

home.320px.png
home.header.320px.png

However if I make the name to be unique per browser. It seems to work every time:
describe('header', function () {
    it('should look the same', function (done) {
        browser
            .url('/')
            .webdrivercss('home.' + browser.desiredCapabilities.browserName, {
                name: 'header',
                elem: '.header'
            }, function (err, res) {
                expect(res.header[0].isWithinMisMatchTolerance).toBe(true);
            }).call(done);
    });
});

This then creates separate files per browser, which makes more sense to me:

home.chrome.320px.png
home.chrome.header.320px.baseline.png

Shouldn't this naming be done automatically by webdrivercss? Otherwise it fails for anyone using multiple browsers!
If you add it to webdrivercss, I would suggest we move the browser name to the end of the filename, after the user inputted name e.g.:

home.header.chrome.320px.baseline.png
home.header.firefox.320px.baseline.png

This allows screenshots of similar types to be grouped together, and you can easily see browser screenshots side by side.
Another point to notice is that "internet explorer" has a space in the browser name, this causes issue when naming screenshots. I would suggest using either:

internet-explorer
ie

I use a folder system that puts screenshots into different folders based on metadata. That works pretty well.

@JamEngulfer Nice, can you post an example of how that works? does it fix the bug mentioned above? or a workaround?

@kmturley Well, it's a pretty simple solution. I just generate a file path that takes into account things like the browser, element and url, then set it with the screenshotRoot option.

OK? that didn't really answer my questions though!? :)

Sorry, yeah. You're right.
From what I can see, you haven't really got a bug there, it's just reusing the same folder (unless you are actually making it use different folders).
You can set the folder that the screenshots are saved in with screenshotRoot: <folder> in the object you pass to webdrivercss.init(client, options).
When I run each of my tests, I have an object with all of the information like browser, url and element. I just use the built in path module's join method to quickly make a folder path from this information. I then use this in the aforementioned screenshotRoot option.

That sounds like a good approach, but does that mean you need to init() for each browser separately? to be able to change the screenshotRoot per browser? or you pass a dynamic variable?

I use something like:
.webdrivercss(browser.desiredCapabilities.browserName + ".TopLevel", [{
					name: "specificLevel",
					elem: "#SomeElem"
				}], handleScreenshots)

adds a bit to the boilerplate of the call, but it could be extracted if you really want...

authors: JamEngulfer kmturley plessbd

repo: webdriverio/webdrivercss


text:
Detect node warning in unit test

:Release Notes:
Detect node warning in unit test
:Detailed Notes:
Add detecting code to detect node warnings through unit test
:Testing Performed:
1-1. Before CLI test, change settings

node v14.15.1
revert git to Update version 2.0.1(sha:519dd1836)
cherry-pick this commit on reverted git
1-2. Run unit test on below condition
failed test of ares-package/install/launch/inspect/server

Pass unit test on ose and auto
Pass eslint

:Issues Addressed:
[PLAT-131258] Implement node deprecated detect condition in TC

code :+1:
verify :+1:

code :+1:
verify :+1:

@ssuminahn,
10 test case has been failed in ares-package TC. Please fix it.
Verified 👎

@ssuminahn,
10 test case has been failed in ares-package TC. Please fix it.
Verified 👎

@ssuminahn , I don't know how to verify this commit(node detecting on TC). I'll ask you by call.

@ssuminahn , I don't know how to verify this commit(node detecting on TC). I'll ask you by call.

I verified that node deprecated warning is detected.

  39 ares-launch --hosted(-H)
    ✓ Generate SampleApp
Installing package /home/ye0607kim/project/github/ares-cli/lib/com.sdk.ares.hostedapp.ipk
Ares Hosted App is now running...
    ✗ Launch -H SampleApp
      - Failed: (node:22439) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      (Use `node --trace-deprecation ...` to show where the warning was created)

          at Object.commonSpec.detectNodeMessage (/home/ye0607kim/project/github/ares-cli/spec/jsSpecs/common-spec.js:116:16)
          at Socket.<anonymous> (/home/ye0607kim/project/github/ares-cli/spec/jsSpecs/ares-launch.spec.js:245:24)
          at Socket.emit (events.js:327:22)
          at addChunk (_stream_readable.js:309:12)
      - Expected '(node:22439) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      (Use `node --trace-deprecation ...` to show where the warning was created)
      ' to be null.
      (Use `node --trace-deprecation

I verified that node deprecated warning is detected.

  39 ares-launch --hosted(-H)
    ✓ Generate SampleApp
Installing package /home/ye0607kim/project/github/ares-cli/lib/com.sdk.ares.hostedapp.ipk
Ares Hosted App is now running...
    ✗ Launch -H SampleApp
      - Failed: (node:22439) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      (Use `node --trace-deprecation ...` to show where the warning was created)

          at Object.commonSpec.detectNodeMessage (/home/ye0607kim/project/github/ares-cli/spec/jsSpecs/common-spec.js:116:16)
          at Socket.<anonymous> (/home/ye0607kim/project/github/ares-cli/spec/jsSpecs/ares-launch.spec.js:245:24)
          at Socket.emit (events.js:327:22)
          at addChunk (_stream_readable.js:309:12)
      - Expected '(node:22439) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
      (Use `node --trace-deprecation ...` to show where the warning was created)
      ' to be null.
      (Use `node --trace-deprecation

@ssuminahn , Please run eslint .
/home/ye0607kim/project/github/ares-cli/spec/jsSpecs/ares-package.spec.js
  608:46  warning  Missing semicolon  semi

/home/ye0607kim/project/github/ares-cli/spec/jsSpecs/common-spec.js
  116:16  error    'fail' is not defined  no-undef
  118:2   warning  Missing semicolon      semi

✖ 3 problems (1 error, 2 warnings)
  0 errors and 2 warnings potentially fixable with the `--fix` option.

@ssuminahn , Please run eslint .
/home/ye0607kim/project/github/ares-cli/spec/jsSpecs/ares-package.spec.js
  608:46  warning  Missing semicolon  semi

/home/ye0607kim/project/github/ares-cli/spec/jsSpecs/common-spec.js
  116:16  error    'fail' is not defined  no-undef
  118:2   warning  Missing semicolon      semi

✖ 3 problems (1 error, 2 warnings)
  0 errors and 2 warnings potentially fixable with the `--fix` option.

Code :-1:
Verified :+1:

Code :-1:
Verified :+1:

@YoungeunKim
I've checked eslint in vs code, there was nothing that looked very different there. Or maybe I missed it. Sorry.
I've updated them

@YoungeunKim
I've checked eslint in vs code, there was nothing that looked very different there. Or maybe I missed it. Sorry.
I've updated them

code :+1:
verify :+1:

code :+1:
verify :+1:

@YoungeunKim
I've checked eslint in vs code, there was nothing that looked very different there. Or maybe I missed it. Sorry.
I've updated them

@ssuminahn , Please don't forget to run eslint and jasmine and unused console logs before gives code +1.

@YoungeunKim
I've checked eslint in vs code, there was nothing that looked very different there. Or maybe I missed it. Sorry.
I've updated them

@ssuminahn , Please don't forget to run eslint and jasmine and unused console logs before gives code +1.

authors: YoungeunKim ssuminahn

repo: webosose/ares-cli


text:
[v0.4.6]  options.compress isn't assign (webpack.optimize.UglifyJSPlugin)

Hi, I'm using webpack 3.8.1, and after running webpack -p I have an issue when compress options doesn't work. (uglifyjs-webpack-plugin 0.4.6)
I see that compressor called multiple times and the last one he called without options (options === undefined).
If in dist/index.js:100 I fix check with if (options.compress !== false && options.compress !== undefined) { - the last call will be with parameters so I get the expected result.
But I don't know why it called multiple times and if in webpack config will be new UglifyJSPlugin() will be empty it won't be filled with defaults.
Looks like it is a known issue, so please ask how can I help. If I can help to close this issue it would be great.

If ypu have something in mind please open a PR for discussion, otherwise would upgrading to v1.0.0 be sufficient for you ?
npm i -D uglifyjs-webpack-plugin
webpack.config.js
const UglifyJSPlugin = require('uglifyjs-webpack-plugin')

module.exports = {
  plugins: [
     new UglifyJSPlugin({ ...pluginOptions, ...uglifyOptions })
  ]
}

⚠   Note that this isn't equal to webpack.optimize.UglifyJSPlugin() atm and the options interface changed between v0.4.6...1.0.0, see the README`

Can you post your webapck.config.js please ?

I'm using now:
module.exports = [     plugins: [         new UglifyJSPlugin({                 compress: { unused:false }             })     ] ]
That conf now should be used for default conf (if u'll use my PR proposal and that's isn't good)
module.exports = [     plugins: [         new UglifyJSPlugin({                 compress: { }             })     ] ]
Full webpack.config.js here

authors: KievDevel michael-ciniawsky

repo: webpack-contrib/uglifyjs-webpack-plugin


text:
Webpack 5: incorrect compilation error text output starting with "undefined undefined"

Operating System: Windows 10 22H2
Node Version: 18.19.0
NPM Version: 10.2.3
webpack Version: 5.89.0
@babel/core Version: 7.22.9
@babel/preset-env Version: 7.22.9
eslint Version: 8.48.0
eslint-webpack-plugin Version: 4.0.1
typescript Version: 4.5.4
fork-ts-checker-webpack-plugin Version: 9.0.2
webpack-hot-middleware Version: 2.26.0

Expected Behavior
When error occurred during module compilation in case webpack stats error object moduleName and (or) loc fields are not present they should have fallback to empty string or should not be added to error string output.
Actual Behavior
When error occurred during module compilation in case webpack error moduleName and (or) loc fields are not present their actual value undefined is converted to string, added to error string output and send from middleware to client module.
How Do We Reproduce?
Reproduced with any code which compiles with error.
The problem is in function formatErrors which takes error(s) from webpack stats object and generates a string from some of its fields.
...
// Convert webpack@5 error info into a backwards-compatible flat string
  return errors.map(function (error) {
    return error.moduleName + ' ' + error.loc + '\n' + error.message;
  });
...

In webpack 5 fields moduleName and loc are optional, so they could be absent. In this case we receive value for these fields converted to string undefined in formatted error output.
declare interface KnownStatsError {
	message: string;
	chunkName?: string;
	chunkEntry?: boolean;
	chunkInitial?: boolean;
	file?: string;
	moduleIdentifier?: string;
	moduleName?: string;
	loc?: string;
	chunkId?: string | number;
	moduleId?: string | number;
	moduleTrace?: StatsModuleTraceItem[];
	details?: any;
	stack?: string;
}

Hello, do you want to send a PR with fix?

Hello, created pull request. Added fallbacks to empty strings to keep same output behavior as was for webpack 4.

Fixed by https://github.com/webpack-contrib/webpack-hot-middleware/pull/447, thank you

authors: UncleJart alexander-akait

repo: webpack-contrib/webpack-hot-middleware


text:
Making resolve extension for ts as well

Generally, before migration, the package should not resolve .ts or .tsx files so I think it is a good idea to highlight the resolve extensions as well.
describe your changes...

[x] Read and sign the CLA. PRs that haven't signed it won't be accepted.
[x] Make sure your PR complies with the writer's guide.
[x] Review the diff carefully as sometimes this can reveal issues.
Remove these instructions from your PR as they are for your eyes only.

Thanks for your contribution.
That + is used to inform that a new line was added from a previous example, in this case that snippet is the first example of that configuration, there is no previous examples do make a difference.
This is not needed.

@EugeneHlushko Please review


text:
ERROR in ./node_modules/react-dom/cjs/react-dom.production.min.js 12:39-63

Hello. I don't know if this is a bug or something we are not doing well, but I am since morning trying to fix this error that appears when configuring webpack and building the output:
> kemuscorp@1.0.0 build
> webpack --mode production

assets by status 127 KiB [cached] 2 assets
orphan modules 149 bytes [orphan] 1 module
modules by path ./node_modules/ 131 KiB
  modules by path ./node_modules/react/ 6.48 KiB
    ./node_modules/react/index.js 190 bytes [built] [code generated]
    ./node_modules/react/cjs/react.production.min.js 6.3 KiB [built] [code generated]
  modules by path ./node_modules/react-dom/ 119 KiB
    ./node_modules/react-dom/index.js 1.33 KiB [built] [code generated]
    ./node_modules/react-dom/cjs/react-dom.production.min.js 118 KiB [built] [code generated]
  modules by path ./node_modules/scheduler/ 4.91 KiB
    ./node_modules/scheduler/index.js 198 bytes [built] [code generated]
    ./node_modules/scheduler/cjs/scheduler.production.min.js 4.72 KiB [built] [code generated]
./src/index.js + 1 modules 363 bytes [built] [code generated]

ERROR in ./node_modules/react-dom/cjs/react-dom.production.min.js 12:39-63
Module not found: Error: Can't resolve 'object-assign' in '/Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react-dom/cjs'
resolve 'object-assign' in '/Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react-dom/cjs'
  Parsed request is a module
  using description file: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react-dom/package.json (relative path: ./cjs)
    resolve as module
      /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react-dom/cjs/node_modules doesn't exist or is not a directory
      /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react-dom/node_modules doesn't exist or is not a directory
      /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/node_modules doesn't exist or is not a directory
      looking for modules in /Users/diesanromero/Documents/Projects/kemuscorp/node_modules
        single file module
          using description file: /Users/diesanromero/Documents/Projects/kemuscorp/package.json (relative path: ./node_modules/object-assign)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign is not a file
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign.jsx doesn't exist
        existing directory /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign
          using description file: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/package.json (relative path: .)
            using description file: /Users/diesanromero/Documents/Projects/kemuscorp/package.json (relative path: ./node_modules/object-assign)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign is not a file
              .jsx
                Field 'browser' doesn't contain a valid alias configuration
                /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign.jsx doesn't exist
              as directory
                existing directory /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign
                  using description file: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/package.json (relative path: .)
                    using path: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/index
                      using description file: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/package.json (relative path: ./index)
                        no extension
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/index doesn't exist
                        .jsx
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/index.jsx doesn't exist
      /Users/diesanromero/Documents/Projects/node_modules doesn't exist or is not a directory
      /Users/diesanromero/Documents/node_modules doesn't exist or is not a directory
      /Users/diesanromero/node_modules doesn't exist or is not a directory
      /Users/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
 @ ./node_modules/react-dom/index.js 35:2-63
 @ ./src/index.js 2:0-33 5:0-15

ERROR in ./node_modules/react/cjs/react.production.min.js 9:19-43
Module not found: Error: Can't resolve 'object-assign' in '/Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react/cjs'
resolve 'object-assign' in '/Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react/cjs'
  Parsed request is a module
  using description file: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react/package.json (relative path: ./cjs)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react/cjs/node_modules doesn't exist or is not a directory
      /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/react/node_modules doesn't exist or is not a directory
      /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/node_modules doesn't exist or is not a directory
      looking for modules in /Users/diesanromero/Documents/Projects/kemuscorp/node_modules
        single file module
          using description file: /Users/diesanromero/Documents/Projects/kemuscorp/package.json (relative path: ./node_modules/object-assign)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign is not a file
            .jsx
              Field 'browser' doesn't contain a valid alias configuration
              /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign.jsx doesn't exist
        existing directory /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign
          using description file: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/package.json (relative path: .)
            using description file: /Users/diesanromero/Documents/Projects/kemuscorp/package.json (relative path: ./node_modules/object-assign)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign is not a file
              .jsx
                Field 'browser' doesn't contain a valid alias configuration
                /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign.jsx doesn't exist
              as directory
                existing directory /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign
                  using description file: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/package.json (relative path: .)
                    using path: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/index
                      using description file: /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/package.json (relative path: ./index)
                        no extension
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/index doesn't exist
                        .jsx
                          Field 'browser' doesn't contain a valid alias configuration
                          /Users/diesanromero/Documents/Projects/kemuscorp/node_modules/object-assign/index.jsx doesn't exist
      /Users/diesanromero/Documents/Projects/node_modules doesn't exist or is not a directory
      /Users/diesanromero/Documents/node_modules doesn't exist or is not a directory
      /Users/diesanromero/node_modules doesn't exist or is not a directory
      /Users/node_modules doesn't exist or is not a directory
      /node_modules doesn't exist or is not a directory
 @ ./node_modules/react/index.js 4:2-59
 @ ./src/index.js 1:0-26 5:30-49

webpack 5.38.1 compiled with 2 errors in 2784 ms

This is my webpack config file:
const path = require('path');

const HtmlWebpackPlugin = require('html-webpack-plugin');

const babel = {
  test: /\.(js|jsx)$/,
  exclude: /node_modules/,
  use: {
    loader: 'babel-loader',
  },
}

const html = {
  test: /\.html$/,
  use: [
    { loader: 'html-loader' }
  ]
}

module.exports = {
  entry: './src/index.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js',
  },
  resolve: {
    extensions: ['.jsx'],
  },
  module: {
    rules: [ babel, html ],
  },
  plugins: [
    new HtmlWebpackPlugin({
      inject: true,
      template: './public/index.html',
      filename: './index.html'
    }),
  ],
  devServer: {
    contentBase: path.join(__dirname, 'dist'),
    compress: true,
    port: 3006
  }
};

I already see what I did wrong.

I already see what I did wrong.

Could please show what was wrong?

resolve: {
    extensions: ['.jsx'],
  },

Please use:
resolve: {
    extensions: ['.jsx', '...'],
},

I already see what I did wrong.

Could please show what was wrong?

I see, I missed the .js in resolve.resolve which I thought it is only affect the code inside src

authors: albert-zhang alexander-akait ceokemuscorp kemuscorp

repo: webpack/webpack


text:
Resolver type from webpack/enhanced-resolve are not compatible

Bug report

TS2322, might be another bug in https://github.com/webpack/tooling?
What is the current behavior?
Type 'Plugin' is not assignable to type 'false | "" | 0 | ResolvePluginInstance | "..." | null | undefined'.
  Type '{ apply: (arg0: Resolver) => void; }' is not assignable to type 'false | "" | 0 | ResolvePluginInstance | "..." | null | undefined'.
    Type '{ apply: (arg0: Resolver) => void; }' is not assignable to type 'ResolvePluginInstance'.
      Types of property 'apply' are incompatible.
        Type '(arg0: Resolver) => void' is not assignable to type '(resolver: Resolver) => void'.
          Types of parameters 'arg0' and 'resolver' are incompatible.
            Type 'import("/private/tmp/test/node_modules/webpack/types").Resolver' is not assignable to type 'import("/private/tmp/test/node_modules/enhanced-resolve/types").Resolver'.
              The types of 'options.plugins' are incompatible between these types.
                Type 'Plugin[]' is not assignable to type 'import("/private/tmp/test/node_modules/enhanced-resolve/types").Plugin[]'.
                  Type 'Plugin' is not assignable to type 'import("/private/tmp/test/node_modules/enhanced-resolve/types").Plugin'.
                    Type '{ apply: (arg0: Resolver) => void; }' is not assignable to type 'Plugin'.
                      Type '{ apply: (arg0: import("/private/tmp/test/node_modules/webpack/types").Resolver) => void; }' is not assignable to type '{ apply: (arg0: import("/private/tmp/test/node_modules/enhanced-resolve/types").Resolver) => void; }'.
                        Types of property 'apply' are incompatible.
                          Type '(arg0: import("/private/tmp/test/node_modules/webpack/types").Resolver) => void' is not assignable to type '(arg0: import("/private/tmp/test/node_modules/enhanced-resolve/types").Resolver) => void'.
                            Types of parameters 'arg0' and 'arg0' are incompatible.
                              Type 'import("/private/tmp/test/node_modules/enhanced-resolve/types").Resolver' is not assignable to type 'import("/private/tmp/test/node_modules/webpack/types").Resolver'.
                                The types of 'options.plugins' are incompatible between these types.
                                  Type 'import("/private/tmp/test/node_modules/enhanced-resolve/types").Plugin[]' is not assignable to type 'Plugin[]'.
                                    Type 'import("/private/tmp/test/node_modules/enhanced-resolve/types").Plugin' is not assignable to type 'Plugin'.
                                      Type '{ apply: (arg0: Resolver) => void; }' is not assignable to type 'Plugin'.

If the current behavior is a bug, please provide the steps to reproduce.

declare const resolvePlugin: import('enhanced-resolve').Plugin;

const webpackConfig: import('webpack').Configuration = {
  resolve: { plugins: [resolvePlugin] },
};

What is the expected behavior?
There should be no type errors.
Other relevant information:

Package
Version

webpack
5.90.3

enhanced-resolve
5.15.1

typescript
5.3.3

Oh, I see the other problem...


text:
Can not pass arguments to uglifyjs: --mangle-props --name-cache in webpack builtin plugin

The uglify js feature page is here: https://github.com/mishoo/UglifyJS2#mangling-property-names---mangle-props
Now I need to uglify multi file and mangle them with  --mangle-props --name-cache parameters.
But I can not pass these arguments to uglify plugin.

How did you try to call it? Here's an example.

The config is like this:
config.plugins.push(
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
unsafe: true,
unused: false,
hoist_funs: false
},
mangle: {
mangle_props: true,
mangle_regex: '/^/',
name_cache: 'e:/cache'
}
})
);
The mangle_props property is not worked.
I can use it in uglifyjs by command, like this:
uglifyjs --compress --mangle --mangle-props --mangle-regex="/^/" --name-cache E:\cache\cache.json -o E:\a.min.js -- E:\source.js
This property can make the properties be mangled which attached on prototype.
For instance,
e.prototype._adjustCellExpressionOnAddRemove = function (e, t, r, n, o, a, i, s, u, l)
After mangled:
e.prototype._d = function (e, t, r, n, o, a, i, s, u, l)

See UglifyJS 2 API. It suggests using mangleProperties. You can see how webpack uses it at UglifyJSPlugin source.

This doesn't help.
I have saw the UglifyJSPlugin source before I asked this question.
There no way to pass mangleProperties as parameter or call it in webpack uglify plugin.
Now I call uglifyjs by nodejs after webpack packaging.
This just a workaround, on the first well.

you can use it with
webpack.optimize.UglifyJsPlugin({
mangle: {
   props: /regexp/
}
}

For me it worked like that too:
webpack.optimize.UglifyJsPlugin({
            mangle: {
                props: true
            }
});

how to set mangle.props = 2 or mangle.props = unquoted ?

@monochrome-yeh Can you open that question at Stack Overflow? Bettter chance for an answer. See also UglifyJsPlugin source. If I remember right, it maps directly to Uglify Node API so following Uglify documentation should work.

Sure I've solved my issue,
Although it isn't involving this argument anymore.
Please refer to https://github.com/mishoo/UglifyJS2/issues/1406

authors: bebraw iamsaksham monochrome-yeh yinhaibo01 yurks


text:
Provide error type and request url when dynamic chunk failed to load (resolves #4595)

What kind of change does this PR introduce?
Enhancement.

Did you add tests for your changes?
Not yet. Need help about how to run tests at test/browsertest/ ? I had try to add, even modify tests to wrong deliberately at it. then run yarn test with a long time wait. but noting changed.

If relevant, link to documentation update:
Willing to do update if it can be merge.
Summary

Currently, when a dynamic chunk failed to load, we just receive an error event with less information.

This PR add the type property to the passed error event. which provide the error reason that one of these following we can detect:

timeout: aborted by our timeout limit.
error: what we usually received by browser. due to network cut off, DNS error, 404, etc. (see spec).
missing: loaded done but the chunk still not found in context. May occur if CDN/server replied error/not found with '200 OK' incorrectly or the script has broken by hijack or whatever.

And also provide a request property to show the url which was actually used to loaded. I think it's more friendly with analysis and statistics.

relative: https://github.com/webpack/webpack/issues/4595
Does this PR introduce a breaking change?
No breaking change.

Other information

And looking for help about the tests. @sokra. How could I run tests from test/browsertest/?
I noticed that you have write some error handle tests in it. but I don't know how to run. Also can't find guides about browsertest at CONTRIBUTING.md.

Any updates on this? Running into some issues with dynamic bundle loading and this would be a great help.

@jakemmarsh will be part of webpack 4

Thanks

So how do we do this? Is this documented in the Webpack 4 docs?
Would really love to know, thanks y'all!

authors: davalapar jakemmarsh mc-zone sokra


text:
if # is before ?, it won't parse ? prameter

eg. url#/page1.html?param1=value1
url('?param1'); //undefined
url('#page1.html?param1') // value1

it's not designed for hashbang url's. You need to parse it on your own.
url('?param1', url('hash'));
On Wed, Oct 26, 2016 at 6:36 AM, Weijing Jay Lin notifications@github.com
wrote:

eg. url#/page1.html?param1=value1
url('?param1'); //undefined
url('#page1.html?param1') // value1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/websanova/js-url/issues/52, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABkcywxEL7YeiWp2ZGqXGtd7QgYi1YZFks5q3pKUgaJpZM4Kgmj7
.

authors: dotku websanova

repo: websanova/js-url


text:
No vertical scroll on mobile?

Hi,
I added class="vertical" to my slides and it works perfect on desktop. But I was surprised to see that the presentation turns horizontal on mobile. Is there a way to disable that? Is it a bug or a feature?
Thanks!

It's a feature @tart2000 :) Horizontal swipe causes fewer problems:

Facilitates to read all the content that is included on the slide.
and makes it easier for people to navigate back and forth.

Yeah, I understand your point.
It definitely makes sense for slides with a lot of content.
What I'm a bit doubtful about is how clear / natural it is for people to navigate...
At least, on desktop, there's an animation on goNext() which means it's easy to add a button and show how to navigate from the first slide, but I didn't see any animation on mobile, so I don't really know how users are going to 'get' the horizontal sliding...
Do you have any recommandations?
Thanks again for your quick answers.

@tart2000 You made a very good point, Arthur! We talked about it a few days ago. This issue will be resolved in the next version. Please just wait a few days :)

it is still not clear on how to achieve this.
Maybe I am missing the doc

Hello,
Yes, the issue of vertical scroll on mobile is a big issue.
I've tested a presentation on 10 persons and 9 of them claimed that the horizontal scroll is unnatural.
Any tips on hot to turn the small devices scroll direction from horizontal to vertical?
Thanks.

The only way I have found and it works is by forcing the change when swipe-down or swipe-up is detected.
The events that force the swipe => https://github.com/john-doherty/swiped-events
When it detects the swipe, it picks up the position of the "#webslide" and interprets how it should act according to where it is.
let slide = $("#webslides");

document.addEventListener('swiped-up', function (e) {
    let max = Math.trunc(slide[0].scrollHeight);
    let offset = Math.trunc(slide[0].offsetHeight);
    let position = Math.trunc(slide.scrollTop());

    if ((max - offset == position)) {
        console.warn("next");
        window.ws.goNext();
    }
});

document.addEventListener('swiped-down', function (e) {
    let position = Math.trunc(slide.scrollTop());

    if (position == 0) {
        console.warn("back");
        window.ws.goPrev();
    }
});

I hope it helps something.

authors: AdrianVillamayor jlantunez scaraliu tart2000 xerosanyam

repo: webslides/WebSlides


text:
Get the snapshot

What OS are you using (uname -a, or Windows version)?
Linux user-super-server 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
What programming language are you using (C/C++/Go/Rust)?
go version go1.18.1 linux/amd64
gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
What did you expect to see and what you saw instead?
Dear all
I would like to get the snapshot, then I found two APIs seem to work.
I tried to implement but couldn't.
Is there any example for reference?
Thanks a lot
https://webkitgtk.org/reference/webkit2gtk/unstable/method.WebView.get_snapshot.html
void
webkit_web_view_get_snapshot (
WebKitWebView* web_view,
WebKitSnapshotRegion region,
WebKitSnapshotOptions options,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
https://webkitgtk.org/reference/webkit2gtk/unstable/method.WebView.get_snapshot_finish.html
cairo_surface_t*
webkit_web_view_get_snapshot_finish (
WebKitWebView* web_view,
GAsyncResult* result,
GError** error
)
Also, I found other examples, but I don't understand
https://golang.hotexamples.com/examples/c/-/webkit_web_view_get_snapshot_finish/golang-webkit_web_view_get_snapshot_finish-function-examples.html

Closing because there has been no further activity since the question was answered.

repo: webview/webview


text:
🛑 Prime Life Women is down

In 56d44f3, Prime Life Women (https://primelifewomen.com) was down:

HTTP code: 403
Response time: 148 ms

Resolved: Prime Life Women is back up in b677128.

repo: webworldview/uptime


text:
🛑 Member Genesis is down

In 3321725, Member Genesis (https://www.membergenesis.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Member Genesis is back up in c54dfb8.


text:
🛑 TestPlayDump is down

In 6f0de2b, TestPlayDump (https://www.testplaydump.com) was down:

HTTP code: 400
Response time: 214 ms

Resolved: TestPlayDump is back up in a283b99.


text:
请教下技术栈 kbone-ui 与 Vue 有什么区别？

创建项目的时候不知道该选哪个😂 😂

同 #1

safari兼容性怎么办？兼容性可不可以给个列表

safari兼容性怎么办？兼容性可不可以给个列表

主要基于 web components，自测可以运行，这里有 demo： https://wechat-miniprogram.github.io/kbone/docs/kbone-ui/#在线-demo

authors: 285858315 JuneAndGreen WormGirl


text:
GSOD21-Shraddhavp

Please make sure to check the following boxes creating your pull request, thank you very much!

[x] Add Blog Header, including title, author, image, categories, tags, etc.
For example:
---
title: Your Great Blog Title
author: your_github_id
categories: project
tags:
  - python
  - padlocal
image: /assets/2021/02-your-blog-slug/teaser.jpg
---

One line bio

Your blog post content Your blog post content
Your blog post content Your blog post content
Your blog post content Your blog post content

It will be easier to start drafting your post by using a existing post file as your template, for example, this one

[x] Keep all filenames lowercase, and use - to connect words instead of space. e.g. 2017-10-06-wechat-pc-impactor.md instead of 2017-10-06-WeChat PC Impactor.md

[x] Embed video/pdf from YouTube/Bilibili/local (if there's any) by using {% include iframe.html src="URL_or_PATH" %}. (Learn more about how to embed file/url in the post by reading this blog post

[x] Save photo to local before publishing, to a folder named by ${MONTH}-${YOUR_BLOG_SLUG}/ under /assets/2021/ directory.

[x] Select a beautiful and meaningful teaser image for your blog

[x] Create your contributor profile (if you are a first time contributor)
For excample:

jekyll/_contributors/lijiarui.md

---
name: Jiarui LI (李佳芮)
site: https://lijiarui.github.io
bio: 句子互动创始人 & CEO，微软人工智能最具价值专家 (AI MVP)
avatar: /jekyll/assets/contributors/lijiarui/avatar.png
email: rui@juzi.bot
twitter: https://weibo.com/u/2175505900
---

Here is the example file:

lijiarui.md: https://github.com/wechaty/wechaty.js.org/blob/master/jekyll/_contributors/lijiarui.md
It will shown like this on wechaty website: https://wechaty.js.org/contributors/lijiarui/

To learn more about the contribute guideline, visit: https://wechaty.js.org/docs/contributor-program/

Thank you very much for your contribution!
You are welcome to join Wechaty Contributor Program
1. Update Your Wechaty Contributor Profile

Please open Contributor Hall of Fame and add yourself to the end of the list, so that other contributors will know you better!
Please add yourself to our Website Contributors by creating a PR and refer to this PR link as well.

2. Join The Contributor Only WeChat Room
We also have a WeChat room for contributors only which can discuss Wechaty at a deeper level, you are welcome to join and if you are interested.
Please add @lijiarui wechat: ruirui_0914 and send her this pr link. She will invite you into Wechaty Contributor Room
Cheers!

authors: huan shraddhavp


text:
wechaty机器人转发emoji表情到微信群聊, emoji表情不显示

message.text()获取的消息内容是: , 这个emoji则不显示
显示的emoji表情的内容是类似这样的:
对比发现是text的内容不一样
请为有什么解决方案吗?

repo: wechaty/wechaty