Do --VIrtual-time-budget still work at Chrome 106.0.5249.119? - google-chrome-headless

At Chrome 87,when I add --Virual-time-budget, the process will wait util all of the js load
but when I use Chrome 106.0.5249.119,this arg seems not working anymore. The Chrome process will stop within 1s, no matter what is the real situation of my page loading.
Question is, why --Virual-time-budget is good in Chrome 87 but not good in Chrome 106? What's the different between them? How can I make the browser to wait until my page loading is done?
My command is below:
/usr/bin/google-chrome \
--headless \
--disable-gpu \
--no-sandbox \
--ignore-certificate-errors \
--log-level=0 \
--disable-dev-shm-usage \
--start-maximized \
--window-size=1920,1080 \
--virtual-time-budget=300000 \
--enable-logging=stderr \
--v=1 \
--enable-features=NetworkService \
--disable-features=IsolateOrigins,site-per-process \
--disable-web-security \
'http://nginx/ngsoc/REPORT/api/v1/set-cookie-and-redirect?cookies=auto_report=1;access_token=RJtApMMmLP5SAqmjJ7lkNkEP6FA&redirectUrl=aHR0cDovL25naW54OjgwLyMvcmVwb3J0L3JlcG9ydF90ZW1wbGF0ZV9lZGl0P3RlbXBsYXRlTmFtZT13eWh0ZXN0MyZpZD02MzU5ZTM1ZDEwNjVlNjJmOTkzZTVjNGMmdGltZVJhbmdlPXsidGltZUZpZWxkIjpudWxsLCJiZWdpbiI6eyJ0eXBlIjoiYWJzb2x1dGUiLCJ1bml0IjpudWxsLCJ2YWx1ZSI6MTU0NjI3MjAwMH0sImVuZCI6eyJ0eXBlIjoiYWJzb2x1dGUiLCJ1bml0IjpudWxsLCJ2YWx1ZSI6MTU1MDU5MjAwMH19JnJlcG9ydE5hbWU9d3lodGVzdDNfJUU2JTlDJTg4JUU2JThBJUE1'
If you have any idea,please make a comment,I need your help.

Related

How to load certain fields using elasticdump?

I am trying to load data from Elasticsearch but I only need a few fields. I tried this:
docker run \
-v $(pwd)/data:/data\
--rm -ti \
elasticdump/elasticsearch-dump \
--input=<INPUT> \
--type=data \
--size 5 \
--searchBody='{"_source": ["#time", "data.metadata.tmp", "data.metadata.super_tmp"]}' \
--output=/data/file.json
But instead this code loads every field. How to fix it?
P.S. I saw this question but it didn't help me.

Invalid argument from bash script on MacOS command line

I'm trying to run the LiteCart bash installer script located here:
https://github.com/litecart/installer/tree/master/cli
Unfortunately, it's giving me a problem when I add preset arguments like this:
--document_root=/var/www/litecart/public_html \
--db_server=localhost \
--db_user=johndoe \
--db_password=mycatsname \
--db_database=mylitecartdb \
--db_prefix=lc_ \
--timezone=Europe/London \
--admin_folder=admin \
--admin_user=admin \
--admin_password=mydogsname \
--development_type=standard
I keep getting:
Error: Invalid argument (--document_root=/var/www/litecart/public_html)
My computer is running MacOS 10.15 and the server is running CentOS 7.9. The script runs fine without the arguments.
I can't find anything that even resembles this situation here. What's the proper way to run a script like this? Thanks.
Script contains no case for --document_root.
Try:
export document_root="/var/www/litecart/public_html"
./install.sh --db_server=localhost \
--db_user=johndoe \
--db_password=mycatsname \
--db_database=mylitecartdb \
--db_prefix=lc_
I assume that there are more problems in the script.

Exclude BUILD files from rsync

I am trying to upload files from my local computer to a server via ssh for deployment. In the upload, I want to exclude some files like .pyc and BUILD.
I have managed to exclude all the files, but the ones called BUILD.
This is currently my (dry-run) terminal command:
rsync -e ssh --dry-run \
--recursive --archive --verbose \
--delete \
--exclude='*.pyc' \
--exclude='*.scss' \
--exclude='__*.js' \
--exclude='*BUILD' \
--exclude='*.jar' \
--exclude='*.DS_Store' \
--exclude='__pycache__' \
local_folder/ \
server:server_folder/
All the exclusions work, except BUILD.
I tried:
--exclude='*/BUILD'
--exclude='*BUILD'
--exclude='BUILD'
None of the previous seems to have detected and deleted the existing BUILD files.
Any ideas on how I can exclude these files?
Thank you!
The command seems to be working but could be that the BUILD files already existed previously.
If you have excluded files or directories from being transferred, --delete-excluded will remove them from the destination side, so this should work:
rsync -e ssh --dry-run \
--recursive --archive --verbose \
--exclude='*.pyc' \
--exclude='*.scss' \
--exclude='__*.js' \
--exclude='*BUILD' \
--exclude='*.jar' \
--exclude='*.DS_Store' \
--exclude='__pycache__' \
--delete-excluded \
local_folder/ \
server:server_folder/
To complement check also this answer which explain the delete options in rsync https://superuser.com/a/156702/284722

Vagrant keeps losing file doing provision

I'm running into an odd behavior on the latest version of vagrant in a Windows7/msys/Virtualbox environment setup, where after executing a vagrant up command I get an error with rsync; 'file has vanished: "/c/Users/spencerd/workspace/watcher/.LISTEN' doing the provisioning stage.
Since google, irc, and issue trackers have little to no documentation on this issue I wonder if anyone else ran into this and what would the fix be?
And for the record I have successfully build a box using the same vagrant file and provisioning script. For those that want to look, the project code is up at https://gist.github.com/denzuko/a6b7cce2eae636b0512d, with the debug log at gist.github.com/
After digging further into the directory structure and running into issues with git pushing code up I was able to find a non-existant file that needed to be removed after a reboot.
Thus, doing a reboot and a rm -rf -- "./.LISTEN\ \ \ \ \ 0\ \ \ \ \ \ 100\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ " did the trick.

How to get better performance with Qt4.5 on arm platform

I just finished porting the QT4.5.3 GUI lib with touchscreen lib tslib1.4.1 to arm9 based S3C2440;but I find programs are running slow.How to make Qt4.5.3 run more smoothly?
I have already read the references on http://doc.trolltech.com/4.7-snapshot/fine-tuning-features.html and http://doc.trolltech.com/4.7-snapshot/qt-performance.html Any other suggestion according to your experience?Thanks!
I use the S3C24xx too. I use Qt 4.6.2. Here is my compile configuration
#host:/qt-everywhere-opensource-src-4.6.2#./configure \
-opensource \
-confirm-license \
-release -shared \
-embedded arm \
-xplatform qws/linux-arm-g++ \
-depths 16,18,24 \
-fast \
-optimized-qmake \
-pch \
-qt-sql-sqlite \
-qt-libjpeg \
-qt-zlib \
-qt-libpng \
-qt-freetype \
-little-endian -host-little-endian \
-no-qt3support \
-no-libtiff -no-libmng \
-no-opengl \
-no-mmx -no-sse -no-sse2 \
-no-3dnow \
-no-openssl \
-no-webkit \
-no-qvfb \
-no-phonon \
-no-nis \
-no-opengl \
-no-cups \
-no-glib \
-no-xcursor -no-xfixes -no-xrandr -no-xrender \
-no-separate-debug-info \
-nomake examples -nomake tools -nomake docs \
-qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib
#host:/qt-everywhere-opensource-src-4.6.2# make
#host:/qt-everywhere-opensource-src-4.6.2# make install
Also notice that, if you change optimization level of compiler in file qt-everywhere-opensource-src-4.6.2/mkspecs/common/g++.conf from -O2 to -O0 may cause the Qt library run very slow.
Hope it is useful for you.
I suggest running a profiling tool to see what your program is actually doing. It might be that another part of your program is hogging the CPU. Performance problems are often first noticed through the GUI since it is something that the user sees and interacts with. Oprofile is a good tool to try out.

Resources